var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var V="prototype;push;---;split;cmo=;path;://;Pj;&;mn;splice;startsWith;match;length;rr;youtube.player.web_20250909_14_RC00;fromCharCode;join;set;;slice;clone;local;EN;indexOf;Untrusted URL;K;1970-01-01T03:44:58.000+03:45;hf;/initplayback;fallback_count;toString;forEach;sp;n;W;file;/videoplayback;scheme;i6;playerfallback;Wi9dZms7-rY9J4Bi-H-_w8_;=;index.m3u8;reverse;BS;r;get;for;rr?[1-9].*\\.c\\.youtube\\.com$;replace;undefined;url;pop;N;/file/index.m3u8;1;1970-01-01T05:45:17.000+05:45;/;s;unshift;a1.googlevideo.com;,(}');redirector.googlevideo.com;//;Y;%3D;d1;\\.a1\\.googlevideo\\.com$;/api/manifest;\\.googlevideo\\.com$;1970-01-01T09:01:01.000+09:00;cmo;,;?;assign;fvip;http://local;cmo=pf;1969-12-31T15:30:45.000-08:30;www.youtube.com;https://local;signatureCipher;nN;PQMD;cmo=td;:".split(";"), yi,qCg,jj8,F9,Qjp,vDs,d9S,$D,TgH,KS,xD,Wp,Zs,V3i,OSC,Ds,u8,wps,Ij,JHg,cp,UC,Fbf,rg,AH,e3,Bp,i8,YCC,X9,Q_,ph,h2b,bSb,hm,$9i,KbC,$q,x9i,Wb2,We,t3j,EDi,Uu,kfC,Be,LbC,asp,Am,NgC,SC3,HSj,R2C,yE,QE,sjb,M38,VE,fM,lsS,Z0,tn,Eo,kG,LM,aU,u93,NO,SL,RU,Isg,gD8,MO,cHi,uo,nM,eL,BK,Gu,PK,U9b,rHH,io,CM,X2,oDf,AHb,e28,Bgg,P8C,qR,jk,Qs,pI,dV,Vs,Oj,C8f,JK,YZ,fI,hK,bl,KI,xZ,ym9,WQ,Zd,kZ,jng,Qn9,pe3,LI,NR,Sk,sj,MR,zq,Dd,FSD,Yu9,fCC,h_8,ul,bhs,I2,nI,gV,$wi,cQ,KSs,WSj,AK,BQ,il,mX,CI,Eq9,tm2,Su8,aCi,v0,d0,JY,Mmj,z_S,lC3, Yn,hY,Dw3,fi,W0,pi,Nd,ucj,H0,S_,QH,IC9,Rl,Md,sQ,nq2,z7,gqp,un,Il,ni,g0,c0,UQ,r0,AY,e_,XU,m0,qe,Uwf,oqs,rm2,AmS,e_C,TK,Vh,Jl,GX3,Fi,PG8,ihj,YB,Xei,qoD,fv,yng,mwg,hl,bX,$B,jU3,Kv,QUp,xB,vG3,pKg,dOi,E2,VL2,OMi,Fnp,wKi,Yoj,kB,Lv,f02,hJS,bMg,aq,Ne,$Op,ZMi,So,tL8,EGj,Sob,Me,NOD,ku8,RJj,l09,zK,uX,nv,Iq,zJf,gM,c5,U2,Al,eo,B5,Xi,cnD,mg,UOH,q_,px,Ani,TE,OJ,Ji,eJ9,wu,BOg,Gup,Fv,Vt,Y4,fx,Po9,hi,x4,XKD,Wk,Z8,ti,yKj,N_,qj9,aA,Lx,EJ,mOS,CoH,j2p,pQi,vZ2,dRi,RA,sJ,M_,TV9,D8,IA,nx,UJ,VkC,wQg,oA,JKi,Bk,e7,bI3,Pk,GE, KXp,WX9,mm,iO,ZIp,Cx,yS,qH,Xv,QS,j5,vv,pA,wF,tks,dF,VS,JO,EZi,Fk,kq2,Y$,fA,KA,x$,Eq,hO,$$,bD,aM,LXg,NH,S5,Hv,NVs,RM,Sj3,sq,Oq,MH,lD,z6,R68,Do,uD,nA,gF,cv,Uq,rF,oM,AO,e5,G6,Bv,Pv,iD,Xk,m6,OS,s2C,ldf,JL,z6C,DRp,uBH,Y6,fQ,$6,nZ9,gZg,x6,URp,Wo,oZ9,Zb,tL,ES,AKg,k6,e69,LQ,BV3,Gq2,a5,Plf,NE,Sa,Ho,iIS,sS,ME,mRg,Db,qQi,XQ8,uZ,nQ,Bo,p0f,jlS,Po,mR,vn2,T03,V_D,CQ,yr,q1,jr,Qr,pW,vG,JYf,F02,YQi,hxC,$dD,K0g,xd9,TT,Vr,W0s,Ow,Zi8,t_9,a5g,JR,N0b,SQ2,HiC,Rxi,slD,Yb,M_C,hR,zxb,KW,xb,uU9,WG,Zu,tR,I5D,nns,aR,N1,HG,RR, cY9,Udj,rYg,IR,u_,Du,ong,AY8,ex8,nW,g4,cG,G73,er,BG,ii8,X0S,mdC,GT,PG,Cn9,ylH,i_,q2j,jqp,Qq2,p5C,yf,mD,qW,jD,Qf,vBD,de8,TMj,pf,vi,Vob,d5,Ovi,w5b,Jlj,TO,Fgf,Vf,Op,Y2b,fni,hlH,bvi,$e3,Kg8,Fr,Y8,ff,br,Zv9,$8,Kf,EBj,WgD,hT,kK8,x8,Wi,ZQ,NW,tT,LgC,an9,NM3,SD,Hvs,Hi,sq3,Mo2,lnS,zlg,Def,uii,Inj,nBj,MW,lr,zO,n4S,gBg,g4i,ci3,ur,U_8,Iz,rif,o4b,nf,ci,Up,Aig,r5,oz,e8C,AT,eD,Bi,GO,Pi,ir,Xr,mZ,Bui,GED,POS,ixg,Cf,Xkf,COi,m_H,qa,jJ,qqp,yOp,pv9,TFg,dHi,QN,V59,OAi,wv9,F69,JOC,Yqi,pY,foH,hGC,dr,bAj,$HS,K69,xH2,Ty,W6S, VN,ZA9,Ol,wr,E$2,Jv,k6C,Fu,YU,L62,ao3,fY,bm,Sq2,$U,NF3,HAS,RG3,sMD,loi,KY,zGp,ZA,tv,uk9,Iof,cOC,UH2,El,kU,LY,aK,Na,SJ,H2,RK,sl,Ma,lm,zy,DA,eG8,AO2,BFS,PD9,G6D,Xv2,o$3,iAC,rO9,um,IK,CDg,yLs,qSC,Av,eJ,B2,Ul,Q5g,Gy,mHs,v6b,dED,po9,P2,im,Xu,mv,TRS,j59,Va8,CY,OQj,wog,JLC,FR9,YSf,bQ9,$ES,KRj,xEC,y$,qS,WR8,ZQS,kRb,LRD,jP,pR,NRs,vP,Q$,HQC,SS9,RHH,s53,MaC,Te,V$,lbb,zHH,DE8,u38,IbS,n69,g63,cL9,UEC,rLC,wD,Jj,FG,YK,fR,hj,o6C,BR9,GRj,PZ9,Xof,iQD,mEC,KR,xK,CZ9,yRs,qwS,WP,Z7,tj,EN,kK,LR,a_,NS,jRp,HP,pGs,sN,vbH, d1D,MS,l3,ze,u3,D7,T4D,OWS,I_,d4,bi3,rD,wGs,JRs,o_,FDf,UN,fuD,Yw9,cP,Aj,eP,huC,bWp,$1j,KDs,BP,x13,Ge,eH9,ALj,PP,i3,mk,CR,trj,yp,qN,Qp,EbD,kTf,py,HWS,h9,au3,Sw9,FO,TD,xv,Wq,RuS,En,sR3,kv,Ly,Mr9,zu8,uH2,Dj,Iw,cRf,U19,rRH,ny,B43,lu,nb8,P_H,euD,ob8,AR2,iWb,GTb,cq,ow,m13,C_s,yTD,qpj,jzp,et,Qzs,GD,pip,T5i,VD2,Pq,wiD,FZs,JT8,YpC,XO,yn,pG,dN,TQ,Vn,OI,wN,bf8,$Ws,KZC,JS,Fo,vw,Y9,fG,hS,dD,bW,xW9,KG,tD2,x9,Ww,kO9,E8f,LZf,aQb,N5j,ZM,Spi,Hf8,RnH,tS,EI,MDi,DWf,uri,k9,cTD,g83,UW9,rTi,o88,LG,ATp,IQs,aT,enH,B5b,Nv, PrH,ifj,XiH,mWi,Crf,Hw,yvb,ql9,jKs,QK8,daS,p2i,RT,sI,Mv,lW,zQ,DM,uW,IT,TrC,gN,nG,VJ9,UI,Jvp,cw,Fv8,YlC,Kv8,fAS,hbi,bYg,$ag,rN,oT,AS,xaH,eT,Bw,GQ,Pw,iW,Xo,ky3,Wvg,qn,EUb,jx,tJb,y3,mC,ZYj,CG,pX,aAC,dP,vH,Nr9,Sl2,HY8,JA,F4,fX,MJ9,Y0,$0,lAS,KX,Rb8,uuf,IA9,nUC,Ze,tA,Ea,gUg,k0,ap,Nn,Sx,cv9,HH,Rp,sa,Ua9,rv9,Mn,oUi,znS,ebg,Br9,GyS,Pm3,X2g,Avi,ma3,Cm9,yji,qNp,j_3,vKf,TDs,VP3,zo,De,OR3,Fki,f78,u6,nX,hhf,bRC,$Sj,xS3,WkS,KkH,cH,ke8,EKj,Ua,op,a7S,rP,NDb,Go,SN8,PH,X4,mu,HRg,Rh2,vO,s_D,T9,MPC,l7g,bx,zhH,uGf,$y, I7D,nK9,oK9,gKS,tr,E$,ky,a4,NM,P3s,S4,HO,R4,XPH,lx,mS9,C3g,z9,qnH,ux,I4,nU,gl,jwi,cO,rl,o4,Ar,e4,Qw9,pqS,vvH,G9,PO,ix,Xn,mO,CU,dN9,ToH,Vt9,Oyp,wq8,J9f,yM,Ffj,Tc,Yn2,fj9,hQ8,VM,wX,Jt,FY,ht,bp,$2,$Ni,WA,Z9,tt,Kf2,xNS,Ee,Wfb,Zyb,LE,Hy3,RQ3,sw9,a3,Mts,lj9,uOD,Sc,nvD,IjH,gvC,UN9,r9b,se,M$,ovS,lp,zc,D9,up,I3,nE,gX,cA,Ue,o3,At,ec,BA,Gc,A9b,eQi,BoS,ip,mJ,GDf,js,Q9,p9,vF,d_,V9,Ox,mNg,w_,JM,Fq,yS9,CuC,Puj,hM,f9,pwj,bb,ao,Ex,N7,Ss,dv9,Ro,wwb,VTj,OG8,FC9,$vs,YIs,hLp,bGj,v9D,M7,sx,xv3,zS,D1,ub,WCs,r_,ZGp,oo,AM, es,GS,tTC,ib,Xq,E9f,mU,C9,LCC,je,p_,vn,df,TH,VB,OM,wf,Jp,FW,NNC,YJ,bw,hp,HGS,lM3,sTf,MT8,zLp,DvH,IMD,n9C,uop,cSD,xJ,Wn,EM,UvD,rS9,tp,kJ,AS8,eL9,iGi,PWs,Se,Hn,Re,sM,Mx,mvi,CWH,gf,cn,yAs,qa3,jpH,Ap,ee,Bn,Qp3,pHg,dnb,Vxf,XW,OXD,yY,mF,QY,pd,dU,wHj,YC,fd,h_,bv,Kd,xC,ZG,hej,bXS,Ef,$nf,Kui,Ld,xni,Wup,ak,Nb,ZX9,txi,kog,H9,Mb,ae9,NPD,Rk,Sa2,HXD,sp3,Re9,uv,Lus,leb,ze8,rU,c9,Dn2,u4f,ok,A_,IeC,n08,G3,g09,cA3,Un9,rAf,Cd,o0H,AAb,eej,BPb,Go2,P6b,iXb,XHC,q3,mn9,Q1,yr9,q$D,j4p,Q4g,pO9,p0,JP,dMS,OU9,FX,wOp,FOS,vy2, Y$j,ff3,hrD,TlH,V49,vV,dW,O9,JrC,V1,TU,bU3,$Mf,KOp,xM3,WO2,ZUg,afS,t42,bI,$f,xf,HUH,M4b,s4S,K0,tP,lfD,L0,zr9,un3,Rc,DMg,ers,If3,Arf,zU,Bls,iUS,Dw,lI,G9C,Pxb,XOf,Ic,Cx2,yt9,qe9,j3g,Q3s,pAS,v2j,mMH,TX2,Vcs,OEg,Jti,wA9,YeH,U9,f9H,rW,oc,AP,hpb,bEs,GU,PV,KJ8,$$D,iI,x$p,ZEs,E23,tcH,kc9,NX9,LJ2,Jz,fb,Yi,Ses,Fs,hz,bt,$i,Kb,HEi,Wa,Mcj,s3S,E4,tz,Lb,a$,NB,S$,l99,Ha,s4,zpH,lt,uY8,DX,ut,I9D,n2C,g2i,ctp,I$,gw,U$3,ca,U4,rw,o2i,o$,Az,At2,Ba,Xs,Pa,G_,mz,Cb,Gcj,yMb,joH,Cp2,m$b,qx9,jp,vW,d78,Qo2,pFH,vQj,BXS,hfj,h4, f1b,KUj,Yxg,qq,b$,O0,Yl,b9D,TI,iEj,Pps,XA2,pD,FUi,WW,kSi,Zh,a13,N_9,Sx9,E0,H9j,Rfj,sof,l1D,zfH,aO,uqS,Nq,I1H,nQC,cMs,U7b,rMs,HW,oQD,efH,RO,B_j,s0,Mq,Of,CbS,pn8,nD,dx9,O_g,cW,Jp3,FF9,YM8,m3,fW2,hI8,i$,RrH,GI,XK,PW,U0,vN,TM,da,OP,JJ,$x9,F1,f1,hJ,KFg,xxi,K1,Z_j,tep,EJ2,tJ,kHg,LF9,aWg,NfH,SMb,H_3,RI2,EP,ses,ke,Me3,ay,lWS,zI9,Dxb,uWg,NP,SA,HN,IWs,nJH,gJs,cpS,Uxi,rpS,oJ3,l7,zM,DI,Api,u7,eIS,n1,GHS,BfD,UP,ra,oy,AJ,Pw8,eA,BN,i_f,Xnj,GM,PN,qfb,mxi,y_g,Cw3,i7,X1,mj,jk9,Qkf,p98,C1,dbb,Ods,VKg,yI,qG,jn,QI,ps, dS,T5,VI,Os,wS,Jx,w9i,J_D,FG8,FM,Yz,fs,hx,$z,xz,hgb,fGb,ZB,bdi,tx,Es,kz,Ls,am,Ht,Rm,MG,lK,z5,DB,uK,Im,xbi,ns,gS,ct,WGH,tK2,Ax,EC8,en,Bt,aGs,NU3,Sfi,Rg3,MKi,yT,lGC,jf,qo,uy9,IGC,nCC,pp,vD,c_p,Tn,VT,OR,wY,r_i,Jd,Fl,YR,oCD,fp,Ubb,hd,bg,egs,A_g,$R,Kp,xR,WD,td,G3j,Pv2,kR,Lp,No,Sf,idS,a0,Cv8,yPi,q9s,jcH,Qcf,pV2,vfS,R0,HD,mb2,VBi,sR,wVp,JP2,ug,FL3,lg,zn,Y9b,I0,hjS,$38,np,gY,KLp,cD,WLg,UR,awb,kUH,Z0C,EfC,tBg,o0,Ad,ef,BD,Gn,PD,ig,mr,S9f,sci,qs,abb,jd,MBC,D3s,pr,VL,vJ,Ts,dT,nf8,Iw8,uXf,gfp,O6,cPf,APD,wT,Fx, BWi,YS,fr,h0,bj,GUs,PIj,$S,Kr,xS,i0f,XVs,ZF,Lr,aC,Ns,Sd,HJ,RC,m3C,s6,Ms,lj,zs,DF,uj,IC,CIp,yzf,nr,gT,cJ,mw,Cr,yX,q4g,j$8,qp,vB,vig,dB9,dH,T2,YV,V$i,bd,$V,Obs,WB,wab,Fzg,Jzj,Y4j,fXD,h$b,bbp,$BH,Kzj,Wzf,xB9,Zb9,k_H,aXj,Eip,Nwi,S4j,R$j,tV,Er,M$p,s$D,kV,Lo,ab,z$b,Np,SR,HB,usb,IXs,Rb,DB9,sr,cz8,Mp,ld,z2,D$,ud,Ib,no,gH,cB,Ur,rH,ob,AV,eR,BB,G2,PB,id,Xe,m$,Co,yV,qc,j0,QV,pg,vZ,d3,TA,VV,OX,w3,JN,Fp,YN,fg,hN,by,$N,Kg,xN,WZ,ZL,tN,EX,kN,Lg,aG,Nc,S0,HZ,RG,sX,Mc,ly,zA,DL,uy,IG,ng,g3,cZ,UX,r3,oG,AN,e0,BZ,GA,PZ, iy,Xp,Cg,ye,rzC,qI,P,jb,mo,Qe,pz,vl,Azb,Tm,Bwj,dm,G_g,OH,Ptb,Jc,Ve,Fj,Yt,fz,bF,Xab,mBf,Cti,y4D,Lz,aI,Zi,NI,jOH,QO8,pW2,vlg,ib3,dqS,hc,TyC,Vpj,Hl,zm,RI,Kz,OD8,$t,Sb,sH,Di,J4g,xt,Wl,lF,MI,F3f,uF,II,nz,gm,Y03,cl,UH,rm,oI,Ac,fhp,h7D,$q3,K33,Gm,Pl,W3p,iF,kIS,ahD,S0C,HD9,ma,sO2,Mpj,pt,lhg,v1,dC,T0,Vb,OT,wC,z73,uKH,Ihb,Dqj,nls,gl9,ft,h8,$r,xr,W1,Zm,c43,t8,UqH,ET,kr,bB,NV,Sw,H1,RD,r4D,aD,A48,sT,e7f,ByH,MV,GIj,lB,z0,P$j,iDb,Dm,XWi,mqD,uB,C$C,yJb,qP9,jyf,ID,nt,Qy3,pNS,gC,c1,UT,ve9,rC,oD,A8,ew,dP8,B1,G0,Ta8, P1,VAb,iB,O1H,wND,JJs,Fji,YP2,fIS,XJ,hRi,b1f,$Pg,mP,Kj9,Ct,xPD,yC,Wjp,qL,Z1i,tAj,j6,Tw,EeH,VC,OU,wZ,J7,kM2,Fm,Yp,fN,Lj3,aIp,bN,$p,SP2,KN,H1j,RRg,Naf,syg,MA2,lIf,Ws,zRD,Zr,EU,kp,DPs,LN,aZ,S6,u1g,Hs,RZ,IIf,ML,cJp,rJf,oeS,UPp,Dr,IZ,uN,AJH,eRp,GMS,Ba9,lN,P7C,i1H,XNH,mPD,zw,jm9,Qm2,ptD,qs3,yx9,C72,vz8,nN,neb,dGS,ge9,TSC,Vn9,Jxf,OsH,gZ,wtf,fB3,FHC,Ys2,bsS,hmb,$Gs,KHb,UU,Zsg,xGi,tng,WHb,EzH,k5p,LHg,aBb,NS2,Ssp,Hs9,Rmi,sm8,Mn9,lBg,zmg,rZ,uMp,e6,oZ,iN,Xm,IB9,mI,nzf,yR,q6,j2,gz2,pj,cx2,T$,VR,OA,Gw,wQ,JX,UGj, F7,YA,fj,rxD,hX,bS,$A,Kj,xA,Wb,tX,EA,kA,Lj,oz2,Ax3,emb,Hb,aJ,RJ,sA,BSs,G59,M6,lS,z$,PKD,isp,S2,Xt3,mGp,DU,CK3,uS,IJ,gQ,cb,UA,rQ,oJ,e2,Bb,Pb,iS,X7,m8,G$,j08,Q0b,yD,qD,jX,pDi,pB,dof,vS,dL,TYH,Th,OK,J$,VfH,wL,FP,YI,fB,Op9,$I,Jdf,Fr2,YRC,xI,KB,f_8,h9D,bp2,WS,Krf,QD,$oS,xob,ZJ,Wr9,t$,ZpS,EK,tf9,ERb,kng,Lrs,a_i,kI,SRS,NYD,LB,SX,HpH,HS,R9S,Rh,s0g,Mf9,sK,l_p,z99,DoD,ulj,MD,I_C,l2,gRf,DJ,u2,Uo9,cd8,rdg,oRS,Ad3,nB,gL,cS,e9S,BY9,GnC,Pg8,ipg,XD9,moj,CgS,y09,q68,rL,oh,jC9,QC9,A$,eX,pJf,BS,Gh,i2,vSS,XP,m5,CB,dsi, yy,TTg,q8,VdS,jV,Or8,wJ8,Qy,J0j,Fw3,Y6D,p6,vh,d7,TB,Vy,fF9,hOS,OL,w7,Jq,br2,F$,Yj,f6,hq,bP,$sj,KwC,K6,xj,xs9,Wh,Zc,tq,EL,bDj,Wws,Zrb,kj,tdi,ESi,ks9,L6,a6,N8,SV,Hh,uP,I6,n6,g7,ch,UL,Lwp,aFf,Ph,iP,S63,X$,pF,C6,Tr,lFi,gSC,zOC,c0f,r0D,oS9,Usb,A0i,eOg,BTS,ZY,ir3,CjD,msp,qrC,jbD,QbC,LF,aS,vVD,dpi,wB8,NY,JVC,THs,Su,Hc,RS,sk,Yrg,bo9,f$g,xpC,a$9,L$D,W$i,NHj,lE,tRf,Zo9,RBf,l$3,MRS,I$C,zBS,zr,DY,rVC,nF,oVD,mpi,XBC,io2,G2s,Pdp,eBS,qXb,yN3,BH9,dcS,vNS,T39,oS,wZj,V03,OgD,AVf,Fo8,YX2,gi,Uk,QGp,jGp,pZC,fL2,cc,Cdi, JN8,bg9,Ko3,Wo9,t0b,Lob,aLb,SXC,Hgp,sGH,RAb,upD,lL9,M0s,IL9,cNf,UcH,rN8,oN9,ql,Ek,B38,ANj,pZ,Tb,Vv,igS,XZ8,Pyj,Og,mcg,wc,J3,J8,F6,Pj3,Y7,fZ,h3,Cyp,ycD,bz,qHs,jIi,QIb,$7,KZ,x7,W$,Z4,t3,Eg,k7,LZ,pl9,vtj,ar,dI8,Nl,ND,SG,H$,OzH,Tmg,Rr,wl2,Jcf,Fa2,sg,Vb9,Ml,YH9,lz,fi8,hC8,yVS,bzS,zb,FJ,Bl,Aa,$I2,KaD,uz,Upp,uE,xIp,jG,Qv,Bc,eu,MY,Pc,EN8,N3j,Gr,nVg,nND,WaC,Srb,EVf,Ir,GAb,kT,tbp,Zz9,F$8,kAg,Eti,gNg,CF,gV9,cVg,sbg,Zg2,xcf,K$i,hBb,Ooj,VRi,pB8,hA9,k2C,zAD,Dpf,uej,XE,mA,iE,Dcs,$c8,La8,kmi,nZ,c$,D$g,Ug,ai2,rc, or,A3,NmS,Gb,SH9,P$,X6,mh,iz,CZ,y7,HzH,qm,RC3,Mb3,sI2,Q7,lip,zCC,p3,v_,dz,TW,V7,O1,wz,Jo,ntD,YF,gti,F0,ccp,uj8,Iif,UIp,f3,ho,rcD,otS,bH,Acp,VY,Bmi,eC3,PF9,XlC,mIf,izb,qTb,jDD,p19,vrb,to,E1,dVb,TCg,kF,L3,Vw2,Ot9,w1b,J8i,Nm,FPp,YT3,H_,Rt,h18,btb,$V2,WPj,Mm,Dk,It,Ztp,n3,gz,LPp,NCS,amg,Ht3,nrj,sDH,GW,U1,STg,k0i,ErH,tw2,B_,rz,el,C3,yP,UVj,qf,jM,m2,e1j,r8S,org,BCs,QP,pm,PBb,ds,Ta,VP,OE,ws,J1,Fg,it8,X19,Yw,fm,b0,CBb,y7H,h1,qU8,psg,vpi,$w,dLH,WY,TZi,ZH,EE,V6g,t1,kw,ON3,aW,J79,FIs,SM,HY,za,frj,sE,DH,IW,hNS, gs,l0,u0,bN3,cY,$Lj,UE,KIs,RW,Mf,YUi,nm,rs,xLS,WI2,oW,ZN3,A1,eM,BY,Ga,t6j,i0,PY,Xg,mq,Ep2,kwC,Cm,yF,qX,jE,QF,LIj,p5,vj,ar8,NZH,dB,TJ,VF,HNp,SUj,OV,RNf,sZ8,M63,wB,lrD,zNf,DLf,umS,Irf,Jy,Ff,Ya,f5,npD,gpC,bq,c7g,$a,K5,ULD,r79,xa,op3,A78,PN3,iN8,eNS,BZ9,Gw3,Z3,ty,EV,ka,Xs9,mLD,yX2,CN8,QJC,NX,vAi,TQ2,d6g,MX,sV,OjH,wbb,JXb,lq,F83,D3,uq,YAs,h3i,bjg,n5,rB,W8g,uJg,ot,t29,EAj,k$f,L8D,aU2,c_,gB,eE,Bj,R3f,sJ9,M2b,GJ,u7S,lUg,z3S,nA8,gA9,Pj,IUC,cXj,iq,Xf,ms,U6j,rXj,C5,yz,oAS,qC,AX8,jz,o8,dK,e3g,Im9,R1p,Tt,Vz,wK, JB,Fh,YE,f8,Od,$E,G$i,xE,ijj,Wg,m6C,Xb9,PSD,CSi,y$i,kE,pSb,qKC,QhC,jh2,L8,ag,vIf,dDf,VXD,NC,c8b,Sz,wS3,F5H,P_,YKi,fJ3,Ao,Mw9,z1S,DV9,OB2,Rg,sd,lU,hyH,bB8,$Ds,K53,xDp,W5s,ZBi,tX3,EIC,khb,NLS,aJC,SKj,HBC,RyH,zt,shp,Ig,MXb,lJD,zys,n8,DDp,cg,Ud,rK,og,AB,uPg,ez,Bg,IJ3,nI3,Pg,iU,Xh,ml,C8,yK,Gt,qj,gID,UDD,c$S,Wr,Kn,ZO,Ev,ko,tB,r$8,XS9,EH,xo,Sj,qLC,Q6b,VK,zd,Td,DO,nn,vjC,$o,g1,O68,cr,Uv,wh3,Jqp,F4f,YLi,r1,fcS,hTb,os,b6p,Z6i,W43,$88,x8i,K4H,A6,tV2,ej,Ejp,kB9,acj,N7b,SLi,H6S,zTi,X_,md,IcH,Cn,yQ,njs,U8p,rqp, ojC,Aqs,qg,jC,QQ,pL,eT9,GBf,PPs,Y3,pcg,CPC,yai,dY2,fL,TiD,OFj,Vuf,wcj,bc,x3,JaH,hk,W3,ZD,FAC,fY9,LL,SC,lc,uc,SkS,HFp,UB,c3,of,Ak,Rvp,Muj,lY9,B3,eC,zvD,uEC,IYH,gTj,ic,nTC,caS,UY9,mc,CL,oTi,k3,P3,WAf,Ykb,krp,v4,rx,DYg,FQ,z1,f$,hs,jrD,p$3,Qr9,DD,If,v73,K$,xW,TcH,W4,Zt,VG9,nL,ts,sSC,kW,PES,L$,KA9,$Yi,hvg,aF,w$f,SY,J3H,Fh9,ZZg,Whp,E7j,kbS,s7,lh,zl,M4,uh,IF,LhS,n$,Nc2,g6,HZ9,r6,SgD,oF,As,l4i,u6b,I4b,Gl,n7b,Ulj,dp,Vl,OY,Fa,r3p,YX,fq,Kq,xX,Wy,Za,tW,o79,EY,kX,GbH,Lq,aV,Pzb,iZ8,NZ,Si,X$D,ml9,Czp,MZ,lQ,Da,yoS, uQ,q13,IV,jt9,Qtf,p_g,vF2,gp,cy,dm9,Tzg,UY,Vl3,rp,oV,AW,w_2,Jos,ei,F2p,Y13,By,h5i,fkC,b32,Gj,K23,$ms,xmD,Py,iQ,W2C,tls,EFf,Xa,my,qu,kWs,akg,S12,R5i,Ml9,st8,Nzg,L22,lkD,H3j,jh,z5D,u0S,Qj,IkD,vU,nFb,pP,dn,TG,Vj,Um8,oFp,gFs,rog,AoS,cop,e5j,BzH,Oi,GWf,i3p,CH9,qE8,y19,$d,b9,WU,QW2,ZR,tf,Ei,vw2,kd,dfD,pYp,LP,OmD,a9,Nu,wYp,Sh,J1p,m8S,QS8,Fq2,fHf,YEi,hVj,HU,R9,si,Mu,bm9,xfb,DR,u9,I9,Wq8,l9,Zm9,tM9,Ewf,Lqj,nP,zV9,c1j,o9,Ufp,Jf,owi,A1s,eV3,BsS,eh,Ga3,BU,GG,PU,P0S,mM,img,XY9,CP,yJ,mfb,C08,yy8,qVp,qk,XZ,j8D, jy,pjp,vaD,dX2,QJ,TB8,VED,O5S,pu,Jy9,vI,YVb,Fs9,hEb,f3C,$Xs,OW,wj2,dG,wG,Ksf,xXj,Wsb,Z5j,tE8,Jb,FT,Yc,fu,bM,EaS,$c,kJ9,xc,H58,s8g,MEC,l3D,EW,zEf,SVs,DXD,WI,uf2,nai,Ku,ZZ,a3C,NB9,tb,gaD,cyp,REH,Ls9,UXp,Lu,aQ,Nk,ryj,Sy,eE9,oaS,Ayp,HI,BBS,RQ,sW,Mk,lM,GJ9,Pq9,i59,zN,mXf,Cq9,DZ,yBi,uM,IQ,qdj,jg9,Qg9,pgj,vE9,dCj,JBS,Vzb,X_b,nu,YdC,O82,wg2,TKC,UW,KlH,cI,gG,Fl8,WlS,$CH,b8f,hds,fTS,oQ,Z8s,wn,Ab,ey,BI,tzS,GN,kt3,EEp,LlD,xd,aTD,NK8,Yd,hf,PHi,iM,mt,sgC,MzH,yZ,XT,PI,qK,H8g,Sdg,Rdf,jI,lTi,VJ,b5S,FZ,QZ,Cu,zd3,DC9, uh9,ITS,nEC,gEC,cB9,UCS,rBg,oEH,I3g,rn,vm,edb,pl,BKj,TsS,VM8,dq,Gt9,PUH,i83,Xg9,Tx,y6p,mC9,qvj,pr3,CUD,voi,VjS,VZ,J2,wrb,OnS,fOD,Fdp,J6g,YvS,h4i,FV,bnD,KdD,$jp,Ys,Q88,xji,WdH,Zn9,tj3,Eo9,Ld8,aOs,N1f,Svp,Hng,kd3,fl,Kqg,h2,Mjp,bs,ssj,lO2,z4C,$fH,zG,DjD,u_S,Kl,oo8,r6C,E3,A6i,UjC,Pe2,inC,Xrj,mjS,Ce3,ykg,qBH,jfC,Qfs,p32,v3H,dgC,TxS,VCD,aL,$s,w39,Jkj,ks,YB9,OLS,Ll,fDC,hWf,Kc9,ZLg,xgp,SI,tC9,Hm,bLb,NK,Gx,$gj,is,aD3,SBD,Nx8,HLC,LcS,RWg,sfD,MCf,E3S,lD8,zWs,uI9,ID9,n3D,Dgj,XV,UgD,cki,eWC,o3f,g33,rki,Bx3,Ak2, G1b,Pcg,iL8,Cc9,mg9,X3b,mK,ys8,q7f,jF2,QFC,p4H,d49,VY8,O$9,w4g,Jsi,F_3,Cl,Y79,ftp,b$j,$49,QW,x4i,vX,tYH,Z$H,EWp,klf,L_9,N6C,atS,Rt9,sF2,MY2,ltf,dA,zt8,S7i,H$9,uQ9,It9,nWD,gWS,csg,U48,TN,rsC,oWD,As3,etD,GlS,Pm,T1p,Phi,yW2,X4p,Chs,xC8,VW,i$b,m4p,KP,fP,Wcg,vXi,pyS,dZs,Vif,Oq8,D4H,wq,O3,jVs,wy9,QV9,JW9,Qsb,Fy9,jsp,k1H,djg,JD,Fb,YYg,YY,faH,hZg,bq3,$Z2,Kyg,Wyi,Zqb,LyH,tib,kj2,aa8,hD,RZ9,SYC,Hq9,lab,zZi,DZj,b5,ua3,fO,IaD,Mi9,Npi,$Y,ilH,EX9,XmS,KO,Csj,mK2,q_D,jBH,QBg,yDS,xY,dr2,vYi,OOS,VFb,TAs,wX2,JD3,WX, FEp,Y_g,hcf,bOj,f2i,KE9,xrS,kPg,ZOs,tF8,EYs,LEg,a2D,NAD,HOg,S_p,RcH,sB8,MF8,Z2,l2i,zc2,ubH,Drp,I2p,nYj,cDC,UrC,ADj,rDp,eci,BA3,GP2,gYp,P58,oY2,E_,iOs,XX9,mri,C5g,LO,qhb,y5S,ji3,QiD,pM8,TI9,v_s,wMb,aB,d0f,J5f,Nr,Fxs,SF,HX,Yh9,RB,fzj,s_,$0f,bV9,x0j,Wx9,ZVH,tH9,E_3,Kx3,kp9,Mr,Lx9,hM9,W_j,kY,NIi,Sh3,HV8,RMf,sig,MHp,lzf,zMD,uFD,zP,Izf,D0g,n_i,g_9,c5p,U0p,A58,o_9,r58,eMg,u5,qRg,BIi,Gpf,IB,PLg,iVD,gA,CL9,yIg,U_,qG3,jHH,cX,m02,rA,nO,XMH,eF,oB,QH9,BX,AD,Tjj,wT8,Fe8,fgp,v1b,JIf,hYp,dQp,bC9,$Q8,Kej,Xb,GP,ZCC, tWC,xQC,i5,kzH,Le3,OC2,VW8,E1i,agD,YGD,Wes,pT9,mE,CO,yc,NjS,q0,lgf,RYC,zYH,sH9,HCD,DQ2,SGs,n1p,u5S,jH,g1s,UQ9,o1i,AI2,Gz9,Tp,Pkj,eY9,dI,mQb,Ck8,FF,Fcf,Qc,ywb,qZS,QNj,jNi,pui,XTD,Oh,vhf,dFi,TJf,VOg,B69,Vc,Ok3,Jw9,wu8,YZs,FTS,rIs,hwC,fli,wI,pV,bkH,fV,$FD,KT9,xF8,WT9,Zkf,Y_,Bj3,qYb,PX,tOp,h5,Eh2,k4D,LTf,al8,NJH,bL,$_,Rw9,sNp,MO9,SZC,Hkj,KV,utD,zw2,DF8,Ili,nh3,x_,ghp,cwp,UF9,WM,rwj,Aw3,ewS,BJS,Zz,ohf,t5,Eh,G4b,PVC,ikp,Xui,mFg,CVp,yZ9,ai,k_,LV,qyi,N0,jd8,Qdb,p8C,vOD,TtH,dT8,lL,OKS,w8j,VUb,JZg,zp,FQf,Dz, Yy9,uL,fqC,bKp,tU9,$Tf,xTg,WQs,KQD,hXC,ZKp,EO9,kiC,LQD,aqD,nV,Nt2,Uh,gI,Syg,rI,oi,RXg,sdH,eH,BM,MU9,A5,Gp,zX9,lqS,iL,XF,mx,Iqi,DTD,u8f,CV,nO2,rZ9,cZb,gOj,UTC,yu,AZp,Pa8,iK3,qQ,X8D,eXp,mTj,jW,Bt9,q8j,Qu,Qx2,jxb,p62,v59,dUg,Tdi,dj,w6S,JG8,FWp,Tz,O4j,hSs,vT,Vu,OG,VvS,F5,KW3,$U2,hI,xUi,WWg,E53,bk,Y1,KC,fC,tvH,Z48,$1,kLj,x1,LWD,ap8,Ndb,WT,Zg,S89,H4S,RSj,sxg,Mvb,lpD,zSD,Ipj,DUH,n5i,g59,rGD,o5C,X62,MQ,yhH,Qui,jub,qDb,PRf,i43,AG9,BdS,mUC,lk,zz,vu2,C$,RqD,d5C,uk,nC,ThH,VS9,eSi,CRH,wzg,Jhg,FYj,cT,gj,Gz,fND, haC,bHH,PT,$5g,x5g,KY8,WY9,ik,X5,ZHf,kZi,LYD,y5,EuS,aNp,Nhs,tSD,Q5,SDb,HHf,jO,Rab,suj,MS2,lN8,D53,zaH,nus,guj,uLD,U5p,rh2,INb,dJ,T4,ouD,PJ2,V5,Ahi,ea3,GZ8,Bh9,iHH,m5i,Xz9,CJH,OZ,yUf,qmi,jES,QEC,pdC,vPi,dy9,V9H,T9C,OaS,wds,JU2,FV3,Ymj,h0p,Jw,wJ,Ft,bab,$yb,fV2,EPj,k89,LV9,Sm2,N9j,aV2,Ha8,R09,Yh,fk,sEp,M9f,lVC,z09,uRg,IVC,bV,nP3,hw,Kk,DyH,xh,gP8,cUf,Uyf,rU8,oPi,Wu,AUD,e0j,PT8,Zl,iag,G89,tw,EZ,kh,my2,CTC,yQs,XdD,jYs,qtf,QY2,Lk,pfj,vx8,T2g,wfD,dA9,VZH,aN,JQs,Ytg,fK9,b79,$AS,NF,SO,K9g,F93,Z73,W9p,xAH,Hu, RN,ExH,tZ2,sZ,MF,lV,kV9,z4,L98,aK3,N2b,St2,Dl,H7i,uV,Ri3,IN,sY3,nk,gJ,MZs,cu,lKg,UZ,rJ,DAs,nx9,gxS,zij,cQ9,ox9,AQH,eiS,rQ3,UA9,GV9,B2i,PCD,mAb,eO,yFp,CC2,i7j,Xfb,q5s,j1H,Bu,G4,Q1C,px9,vgC,dzH,Tb9,V8b,wxp,JFp,xzg,f69,hKg,F1C,Zcg,yg,jU,a6C,Nbf,v8,S5D,dt,HcS,t89,Ck,Oy,Vg,Qg,s1g,M8C,wt,zKf,uz8,Dzs,JZ,pK,mT,l6j,Ti,Egf,RKC,ng9,Pu,F8,ggs,cFp,qT,kgf,YO,fK,Uz8,hZ,rFS,ba,ogD,AFp,Bb9,Gg2,eK2,$O,P42,KK,xO,icg,XxS,mzf,C4C,qO9,j7i,p7D,Q7D,vMb,Zq,W8,yED,dts,Vq2,T89,tZ,Ey,Oe9,JEf,Fp9,kO,w7g,YO8,fy3,beg,LK,hzi,$t2, KpH,xt2,NT,SU,ZeC,Wp8,tqS,H8,Rd,kFC,EM2,Lpi,N8p,ayp,SOD,MT,He3,RzC,zi,s7g,lyD,Mq2,ua,zzH,Dtj,uCb,nMC,gM8,cEg,IyC,Ut2,rEb,oM9,AE9,ezC,B89,GFj,Pis,ie9,gt,X7b,mt8,Cif,qF9,vLb,QvH,yuH,rt,jv2,Uy,pRS,od,TED,dhp,AZ,OTf,wR2,Ju8,WE9,P8,c39,B8,ia,Gi,mQ,FB3,CK,$h9,KB2,xhf,ZT3,WBi,tNi,EL9,kC8,LB3,NEg,SFs,HTp,RDi,aS2,ISD,nLH,uSS,gLp,Uhi,oLj,Aub,eDf,p4,ru9,cu8,svD,v6,PY3,iT8,GCD,BEf,CYH,mhC,yC9,qc3,jPj,QPb,dd,pLi,zDp,jv,vHf,di3,T$f,V13,MN9,lSH,QU,VU,JC9,F79,Ycs,OJD,TL,wL3,hFi,xi2,wd,W73,ZJ9,$i8,FD,t13,EH9,fx9, kYi,K79,L7H,Y5,JG,axi,ScS,N$C,O8,RF2,f4,iCg,sPD,zFH,lxi,udp,IxD,Di8,bR,hG,gHS,cCb,UiC,rCb,jas,mis,Cfs,iJj,PfD,x5,d29,pEj,K4,Zp,tG,Vg9,Owg,k5,qbj,Sv,JgC,NU,E8,YbD,fvH,hPi,Qa8,s8,lR,bwj,ygC,wE2,L4,W6,$2H,uR,FN8,KNS,x2C,Ix,n4,WN3,ax,vmH,Zwf,tg9,MU,Em8,H6,kkC,Rx,U7,LNj,NeD,gd,c6,Sbs,Hwf,RPH,Dp,zL,saH,M1f,Mg2,XLb,lvC,zP3,D2p,uNf,U8,rd,gmD,rg3,Agj,nm9,CAf,yeH,qz9,jXj,QXb,pCf,vkC,Tv8,dJ3,ox,AG,ev,VQp,O2S,wCH,ah,Jes,B6,Fii,GL,Yz9,P6,iR,fP2,xp,XD,eb,hsC,v$,eAp,b2H,IS,$JH,h$,b2,Kii,D4,xJf,Wip,dc,XJH,Z2C,tQH, EkS,mW,Li3,aPH,C4,q5,jS,Nvs,Rs8,sXC,Qd,MQC,Sz2,zss,H2g,lPj,DJC,uw2,IPD,nkg,pH,cef,olC,Kt,zh,UJ9,reb,Ih,gk2,Lt,okD,AeS,esi,vz,Cj,Gv3,P18,dh,TZ,i29,Vd,OD,yd,XCb,mJf,wD9,wh,Jh,C1p,FL,Yu,yHk,fH,qCk,hh,bJ,jjG,Qje,nRS,$u,ppS,d9h,vDC,KH,xu,Tgm,Wz,V3_,OSu,wpC,JHk,FbX,YCu,h2S,th,fsu,bSS,$9_,Kbu,x9_,ED_,Wb_,ZSX,t3n,Lbu,Ngu,SCm,HSn,ase,ED,R2u,sjS,M3G,lsh,z2_,LH,D9u,au,N5,SS,u9m,Isk,gDG,cH_,U9S,rHm,AHS,oDX,e2G,Hz,Ru,P8u,Bgk,Gfm,sD,iSm,Xpc,M5,lJ,m9G,zZ,C8X,DN,ymw,uJ,Iu,qu_,nH,gh,jnk,Qnc,cz,UD,pem,rh,vqh,dwh,Bz, GZ,Tku,Vmh,Ohk,FSq,JmG,Pz,Yuc,fCu,h_G,Gs3,wem,$w_,KSC,WSn,yHg,JH;yi=function(y){return function(){return yHg[y].apply(this,arguments)}}; g.vp=function(y,q){return yHg[y]=q}; qCg=function(y){var q=0;return function(){return q=this.length))return this[y]}; i8=function(y){return y?y:Bp}; YCC=function(y,q,Q){y instanceof String&&(y=String(y));for(var p=y.length-1;p>=0;p--){var v=y[p];if(q.call(Q,v,p,y))return{Ku:p,iy:v}}return{Ku:-1,iy:void 0}}; X9=function(y){return y?y:function(q,Q){return YCC(this,q,Q).Ku}}; g.y_=function(y,q,Q){y=y.split(".");Q=Q||g.CS;for(var p;y.length&&(p=y.shift());)y.length||q===void 0?Q[p]&&Q[p]!==Object.prototype[p]?Q=Q[p]:Q=Q[p]={}:Q[p]=q}; Q_=function(y,q){var Q=g.qw("CLOSURE_FLAGS");y=Q&&Q[y];return y!=null?y:q}; g.qw=function(y,q){y=y.split(".");q=q||g.CS;for(var Q=0;Q2){var p=Array.prototype.slice.call(arguments,2);return function(){var v=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(v,p);return y.apply(q,v)}}return function(){return y.apply(q,arguments)}}; g.wk=function(y,q,Q){g.wk=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?h2b:bSb;return g.wk.apply(null,arguments)}; g.Yq=function(y,q){var Q=Array.prototype.slice.call(arguments,1);return function(){var p=Q.slice();p.push.apply(p,arguments);return y.apply(this,p)}}; g.fh=function(){return Date.now()}; hm=function(y){return y}; g.bG=function(y,q){function Q(){} Q.prototype=q.prototype;y.FC=q.prototype;y.prototype=new Q;y.prototype.constructor=y;y.l4=function(p,v,d){for(var T=Array(arguments.length-2),O=2;O=0;--Q)Q in p&&q.call(void 0,p[Q],Q,y)}; g.ZC=function(y,q,Q){q=We(y,q,Q);return q<0?null:typeof y==="string"?y.charAt(q):y[q]}; We=function(y,q,Q){for(var p=y.length,v=typeof y==="string"?y.split(""):y,d=0;d=0;p--)if(p in v&&q.call(Q,v[p],p,y))return p;return-1}; g.Eu=function(y,q){return ZSf(y,q)>=0}; t3j=function(y){if(!Array.isArray(y))for(var q=y.length-1;q>=0;q--)delete y[q];y.length=0}; g.Lh=function(y,q){q=ZSf(y,q);var Q;(Q=q>=0)&&g.kq(y,q);return Q}; g.kq=function(y,q){return Array.prototype.splice.call(y,q,1).length==1}; g.Mw=function(y,q){q=We(y,q);q>=0&&g.kq(y,q)}; EDi=function(y,q){var Q=0;Wb2(y,function(p,v){q.call(void 0,p,v,y)&&g.kq(y,v)&&Q++})}; g.lG=function(y){return Array.prototype.concat.apply([],arguments)}; g.zX=function(y){var q=y.length;if(q>0){for(var Q=Array(q),p=0;p>>1),w=void 0;Q?w=q.call(void 0,y[O],O,y):w=q(p,y[O]);w>0?v=O+1:(d=O,T=!w)}return T?v:-v-1}; g.Pe=function(y,q){y.sort(q||Am)}; asp=function(y,q){var Q=Am;g.Pe(y,function(p,v){return Q(q(p),q(v))})}; g.iG=function(y,q,Q){if(!g.ve(y)||!g.ve(q)||y.length!=q.length)return!1;var p=y.length;Q=Q||NgC;for(var v=0;vq?1:y0&&(q[v]=p)},y); return q}; Isg=function(y){y=RU(y);var q=[];g.qO(y,function(Q,p){p in Object.prototype||typeof Q!="undefined"&&q.push([p,":",Q].join(""))}); return q}; gD8=function(y){aU(y,"od",nDi);aU(y,"opac",so).K=!0;aU(y,"sbeos",so).K=!0;aU(y,"prf",so).K=!0;aU(y,"mwt",so).K=!0;aU(y,"iogeo",so)}; MO=function(y,q){return y.lastIndexOf(q,0)==0}; cHi=function(y,q){var Q=y.length-q.length;return Q>=0&&y.indexOf(q,Q)==Q}; g.zu=function(y){return/^[\s\xa0]*$/.test(y)}; g.D0=function(y,q){return y.indexOf(q)!=-1}; uo=function(y,q){return g.D0(y.toLowerCase(),q.toLowerCase())}; g.gO=function(y,q){var Q=0;y=IU(String(y)).split(".");q=IU(String(q)).split(".");for(var p=Math.max(y.length,q.length),v=0;Q==0&&vq?1:0}; g.cK=function(){var y=g.CS.navigator;return y&&(y=y.userAgent)?y:""}; eL=function(y){if(!Uo&&!rO||!oU)return!1;for(var q=0;q0:!1}; PK=function(){return Gu()?!1:BK("Opera")}; U9b=function(){return Gu()?!1:BK("Trident")||BK("MSIE")}; rHH=function(){return Gu()?eL("Microsoft Edge"):BK("Edg/")}; io=function(){return BK("Firefox")||BK("FxiOS")}; CM=function(){return BK("Safari")&&!(X2()||(Gu()?0:BK("Coast"))||PK()||(Gu()?0:BK("Edge"))||rHH()||(Gu()?eL("Opera"):BK("OPR"))||io()||BK("Silk")||BK("Android"))}; X2=function(){return Gu()?eL("Chromium"):(BK("Chrome")||BK("CriOS"))&&!(Gu()?0:BK("Edge"))||BK("Silk")}; oDf=function(){return BK("Android")&&!(X2()||io()||PK()||BK("Silk"))}; AHb=function(y){var q={};y.forEach(function(Q){q[Q[0]]=Q[1]}); return function(Q){return q[Q.find(function(p){return p in q})]||""}}; e28=function(y){var q=g.cK();if(y==="Internet Explorer"){if(U9b())if((y=/rv: *([\d\.]*)/.exec(q))&&y[1])q=y[1];else{y="";var Q=/MSIE +([\d\.]+)/.exec(q);if(Q&&Q[1])if(q=/Trident\/(\d.\d)/.exec(q),Q[1]=="7.0")if(q&&q[1])switch(q[1]){case "4.0":y="8.0";break;case "5.0":y="9.0";break;case "6.0":y="10.0";break;case "7.0":y="11.0"}else y="7.0";else y=Q[1];q=y}else q="";return q}var p=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");Q=[];for(var v;v=p.exec(q);)Q.push([v[1],v[2],v[3]||void 0]); q=AHb(Q);switch(y){case "Opera":if(PK())return q(["Version","Opera"]);if(Gu()?eL("Opera"):BK("OPR"))return q(["OPR"]);break;case "Microsoft Edge":if(Gu()?0:BK("Edge"))return q(["Edge"]);if(rHH())return q(["Edg"]);break;case "Chromium":if(X2())return q(["Chrome","CriOS","HeadlessChrome"])}return y==="Firefox"&&io()||y==="Safari"&&CM()||y==="Android Browser"&&oDf()||y==="Silk"&&BK("Silk")?(q=Q[2])&&q[1]||"":""}; Bgg=function(y){if(Gu()&&y!=="Silk"){var q=oU.brands.find(function(Q){return Q.brand===y}); if(!q||!q.version)return NaN;q=q.version.split(".")}else{q=e28(y);if(q==="")return NaN;q=q.split(".")}return q.length===0?NaN:Number(q[0])}; P8C=function(){var y=null;if(!Gf3)return y;try{var q=function(Q){return Q}; y=Gf3.createPolicy("goog#html",{createHTML:q,createScript:q,createScriptURL:q})}catch(Q){}return y}; qR=function(){ys===void 0&&(ys=P8C());return ys}; jk=function(y){this.K=y}; Qs=function(y){var q=qR();y=q?q.createScriptURL(y):y;return new jk(y)}; pI=function(y){if(y instanceof jk)return y.K;throw Error("");}; dV=function(y){this.K=y}; g.Tq=function(y){if(y instanceof dV)return y.K;throw Error("");}; Vs=function(y){this.hj=y}; Oj=function(y){return new Vs(function(q){return q.substr(0,y.length+1).toLowerCase()===y+":"})}; g.wV=function(y,q){q=q===void 0?iSH:q;a:if(q=q===void 0?iSH:q,!(y instanceof dV)){for(var Q=0;Q4);v++)q[NR(y[v])]||(Q+="\nInner error "+p++ +": ",y[v].stack&&y[v].stack.indexOf(y[v].toString())==0||(Q+=typeof y[v]==="string"?y[v]:y[v].message+"\n"),Q+=LI(y[v],q));v")!=-1&&(y=y.replace(VmS,">")),y.indexOf('"')!=-1&&(y=y.replace(Ohg,""")),y.indexOf("'")!=-1&&(y=y.replace(we3,"'")),y.indexOf("\x00")!=-1&&(y=y.replace(Jm8,"�")));return y}; g.ll=function(y){return y==null?"":String(y)}; zq=function(y){for(var q=0,Q=0;Q>>0;return q}; Dd=function(y){var q=Number(y);return q==0&&g.zu(y)?NaN:q}; FSD=function(y){return String(y).replace(/\-([a-z])/g,function(q,Q){return Q.toUpperCase()})}; Yu9=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; fCC=function(y){return y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(q,Q,p){return Q+p.toUpperCase()})}; h_8=function(y){var q=1;y=y.split(":");for(var Q=[];q>0&&y.length;)Q.push(y.shift()),q--;y.length&&Q.push(y.join(":"));return Q}; ul=function(){return Uo||rO?!!oU&&!!oU.platform:!1}; bhs=function(){return ul()?oU.platform==="Android":BK("Android")}; I2=function(){return BK("iPhone")&&!BK("iPod")&&!BK("iPad")}; nI=function(){return I2()||BK("iPad")||BK("iPod")}; gV=function(){return ul()?oU.platform==="macOS":BK("Macintosh")}; $wi=function(){return ul()?oU.platform==="Windows":BK("Windows")}; cQ=function(y){cQ[" "](y);return y}; KSs=function(y,q){try{return cQ(y[q]),!0}catch(Q){}return!1}; WSj=function(y,q){var Q=xwD;return Object.prototype.hasOwnProperty.call(Q,y)?Q[y]:Q[y]=q(y)}; g.Uj=function(y){return WSj(y,function(){return g.gO(ZhS,y)>=0})}; g.rV=function(y,q,Q){return Math.min(Math.max(y,q),Q)}; g.o2=function(y,q){y%=q;return y*q<0?y+q:y}; AK=function(y,q,Q){return y+Q*(q-y)}; g.ek=function(y,q){this.x=y!==void 0?y:0;this.y=q!==void 0?q:0}; BQ=function(y,q){return y==q?!0:y&&q?y.x==q.x&&y.y==q.y:!1}; g.Gq=function(y,q){this.width=y;this.height=q}; g.PQ=function(y,q){return y==q?!0:y&&q?y.width==q.width&&y.height==q.height:!1}; il=function(y){return y.width*y.height}; mX=function(y,q){this.K=y===XB&&q||""}; CI=function(y){if(y instanceof fI)return y;y=String(y).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return hK(y)}; Eq9=function(y){return tm2(y)}; tm2=function(y){var q=CI("");return hK(y.map(function(Q){return bl(CI(Q))}).join(bl(q).toString()))}; Su8=function(y){var q;if(!kXp.test("div"))throw Error("");if(LSs.indexOf("DIV")!==-1)throw Error("");var Q="":(y=Eq9(q.map(function(p){return p instanceof fI?p:CI(String(p))})),Q+=">"+y.toString()+""); return hK(Q)}; aCi=function(y){for(var q="",Q=Object.keys(y),p=0;p2&&Dw3(v,T,p,2);return T}; Dw3=function(y,q,Q,p){function v(O){O&&q.appendChild(typeof O==="string"?y.createTextNode(O):O)} for(;p0)v(d);else{a:{if(d&&typeof d.length=="number"){if(g.dk(d)){var T=typeof d.item=="function"||typeof d.item=="string";break a}if(typeof d==="function"){T=typeof d.item=="function";break a}}T=!1}g.mS(T?g.zX(d):d,v)}}}; g.bn=function(y){return fi(document,y)}; fi=function(y,q){q=String(q);y.contentType==="application/xhtml+xml"&&(q=q.toLowerCase());return y.createElement(q)}; g.$n=function(y){return document.createTextNode(String(y))}; g.Ki=function(y,q){y.appendChild(q)}; g.xn=function(y){for(var q;q=y.firstChild;)y.removeChild(q)}; W0=function(y,q,Q){y.insertBefore(q,y.childNodes[Q]||null)}; g.Z5=function(y){return y&&y.parentNode?y.parentNode.removeChild(y):null}; g.Li=function(y,q){if(!y||!q)return!1;if(y.contains&&q.nodeType==1)return y==q||y.contains(q);if(typeof y.compareDocumentPosition!="undefined")return y==q||!!(y.compareDocumentPosition(q)&16);for(;q&&y!=q;)q=q.parentNode;return q==y}; pi=function(y){return y.nodeType==9?y:y.ownerDocument||y.document}; g.al=function(y,q){if("textContent"in y)y.textContent=q;else if(y.nodeType==3)y.data=String(q);else if(y.firstChild&&y.firstChild.nodeType==3){for(;y.lastChild!=y.firstChild;)y.removeChild(y.lastChild);y.firstChild.data=String(q)}else g.xn(y),y.appendChild(pi(y).createTextNode(String(q)))}; Nd=function(y){return y.tagName=="A"&&y.hasAttribute("href")||y.tagName=="INPUT"||y.tagName=="TEXTAREA"||y.tagName=="SELECT"||y.tagName=="BUTTON"?!y.disabled&&(!y.hasAttribute("tabindex")||ucj(y)):y.hasAttribute("tabindex")&&ucj(y)}; ucj=function(y){y=y.tabIndex;return typeof y==="number"&&y>=0&&y<32768}; H0=function(y,q,Q){if(!q&&!Q)return null;var p=q?String(q).toUpperCase():null;return S_(y,function(v){return(!p||v.nodeName==p)&&(!Q||typeof v.className==="string"&&g.Eu(v.className.split(/\s+/),Q))},!0)}; S_=function(y,q,Q){y&&!Q&&(y=y.parentNode);for(Q=0;y;){if(q(y))return y;y=y.parentNode;Q++}return null}; QH=function(y){this.K=y||g.CS.document||document}; IC9=function(){this.K=this.j_=null}; Rl=function(){}; Md=function(){if(!sQ())throw Error();}; sQ=function(){return!(!ln||!ln.performance)}; nq2=function(y){return g.FU?"webkit"+y:y.toLowerCase()}; z7=function(y){return function(){return y}}; g.D5=function(){}; gqp=function(y){var q=q||0;return function(){return y.apply(this,Array.prototype.slice.call(arguments,0,q))}}; un=function(y){var q=!1,Q;return function(){q||(Q=y(),q=!0);return Q}}; Il=function(y){var q=y;return function(){if(q){var Q=q;q=null;Q()}}}; ni=function(y,q,Q){var p=0;return function(v){g.CS.clearTimeout(p);var d=arguments;p=g.CS.setTimeout(function(){y.apply(Q,d)},q)}}; g0=function(y,q,Q,p){this.top=y;this.right=q;this.bottom=Q;this.left=p}; c0=function(y){return y.right-y.left}; UQ=function(y,q){return y==q?!0:y&&q?y.top==q.top&&y.right==q.right&&y.bottom==q.bottom&&y.left==q.left:!1}; r0=function(y,q,Q){q instanceof g.ek?(y.left+=q.x,y.right+=q.x,y.top+=q.y,y.bottom+=q.y):(y.left+=q,y.right+=q,typeof Q==="number"&&(y.top+=Q,y.bottom+=Q));return y}; g.ol=function(y,q,Q,p){this.left=y;this.top=q;this.width=Q;this.height=p}; AY=function(y,q){return y==q?!0:y&&q?y.left==q.left&&y.width==q.width&&y.top==q.top&&y.height==q.height:!1}; g.B0=function(y,q,Q){if(typeof q==="string")(q=e_(y,q))&&(y.style[q]=Q);else for(var p in q){Q=y;var v=q[p],d=e_(Q,p);d&&(Q.style[d]=v)}}; e_=function(y,q){var Q=cmf[q];if(!Q){var p=FSD(q);Q=p;y.style[p]===void 0&&(p=(g.FU?"Webkit":G7?"Moz":null)+fCC(p),y.style[p]!==void 0&&(Q=p));cmf[q]=Q}return Q}; g.P0=function(y,q){var Q=y.style[FSD(q)];return typeof Q!=="undefined"?Q:y.style[e_(y,q)]||""}; XU=function(y,q){var Q=pi(y);return Q.defaultView&&Q.defaultView.getComputedStyle&&(y=Q.defaultView.getComputedStyle(y,null))?y[q]||y.getPropertyValue(q)||"":""}; m0=function(y,q){return XU(y,q)||(y.currentStyle?y.currentStyle[q]:null)||y.style&&y.style[q]}; g.yh=function(y,q,Q){if(q instanceof g.ek){var p=q.x;q=q.y}else p=q,q=Q;y.style.left=g.Ci(p,!1);y.style.top=g.Ci(q,!1)}; qe=function(y){try{return y.getBoundingClientRect()}catch(q){return{left:0,top:0,right:0,bottom:0}}}; Uwf=function(y){var q=pi(y),Q=m0(y,"position"),p=Q=="fixed"||Q=="absolute";for(y=y.parentNode;y&&y!=q;y=y.parentNode)if(y.nodeType==11&&y.host&&(y=y.host),Q=m0(y,"position"),p=p&&Q=="static"&&y!=q.documentElement&&y!=q.body,!p&&(y.scrollWidth>y.clientWidth||y.scrollHeight>y.clientHeight||Q=="fixed"||Q=="absolute"||Q=="relative"))return y;return null}; g.jo=function(y){var q=pi(y),Q=new g.ek(0,0);if(y==(q?pi(q):document).documentElement)return Q;y=qe(y);q=v0(q);q=z_S(q.K);Q.x=y.left+q.x;Q.y=y.top+q.y;return Q}; oqs=function(y,q){var Q=new g.ek(0,0),p=Yn(pi(y));if(!KSs(p,"parent"))return Q;do{var v=p==q?g.jo(y):rm2(y);Q.x+=v.x;Q.y+=v.y}while(p&&p!=q&&p!=p.parent&&(y=p.frameElement)&&(p=p.parent));return Q}; g.Qh=function(y,q){y=AmS(y);q=AmS(q);return new g.ek(y.x-q.x,y.y-q.y)}; rm2=function(y){y=qe(y);return new g.ek(y.left,y.top)}; AmS=function(y){if(y.nodeType==1)return rm2(y);y=y.changedTouches?y.changedTouches[0]:y;return new g.ek(y.clientX,y.clientY)}; g.pv=function(y,q,Q){if(q instanceof g.Gq)Q=q.height,q=q.width;else if(Q==void 0)throw Error("missing height argument");y.style.width=g.Ci(q,!0);y.style.height=g.Ci(Q,!0)}; g.Ci=function(y,q){typeof y=="number"&&(y=(q?Math.round(y):y)+"px");return y}; g.v5=function(y){var q=e_C;if(m0(y,"display")!="none")return q(y);var Q=y.style,p=Q.display,v=Q.visibility,d=Q.position;Q.visibility="hidden";Q.position="absolute";Q.display="inline";y=q(y);Q.display=p;Q.position=d;Q.visibility=v;return y}; e_C=function(y){var q=y.offsetWidth,Q=y.offsetHeight,p=g.FU&&!q&&!Q;return(q===void 0||p)&&y.getBoundingClientRect?(y=qe(y),new g.Gq(y.right-y.left,y.bottom-y.top)):new g.Gq(q,Q)}; g.dM=function(y,q){y.style.display=q?"":"none"}; TK=function(y){return y?y.passive&&BkC()?y:y.capture||!1:!1}; Vh=function(y,q,Q,p){return typeof y.addEventListener==="function"?(y.addEventListener(q,Q,TK(p)),!0):!1}; Jl=function(y){if(y.prerendering)return 3;var q;return(q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[y.visibilityState||y.webkitVisibilityState||y.mozVisibilityState||""])!=null?q:0}; GX3=function(){}; Fi=function(y){try{return!!y&&y.location.href!=null&&KSs(y,"foo")}catch(q){return!1}}; PG8=function(y){for(var q=y;y&&y!=y.parent;)y=y.parent,Fi(y)&&(q=y);return q}; ihj=function(){return(Uo||rO)&&oU?oU.mobile:!YB()&&(BK("iPod")||BK("iPhone")||BK("Android")||BK("IEMobile"))}; YB=function(){return(Uo||rO)&&oU?!oU.mobile&&(BK("iPad")||BK("Android")||BK("Silk")):BK("iPad")||BK("Android")&&!BK("Mobile")||BK("Silk")}; Xei=function(y){var q,Q;return(Q=(q=/https?:\/\/[^\/]+/.exec(y))==null?void 0:q[0])!=null?Q:""}; qoD=function(y){y=y||fv();for(var q=new mwg(g.CS.location.href,!1),Q=null,p=y.length-1,v=p;v>=0;--v){var d=y[v];!Q&&CGf.test(d.url)&&(Q=d);if(d.url&&!d.K){q=d;break}}v=null;d=y.length&&y[p].url;q.depth!==0&&d&&(v=y[p]);return new yng(q,v,Q)}; fv=function(){var y=g.CS,q=[],Q=null;do{var p=y;if(Fi(p)){var v=p.location.href;Q=p.document&&p.document.referrer||null}else v=Q,Q=null;q.push(new mwg(v||""));try{y=p.parent}catch(d){y=null}}while(y&&p!==y);p=0;for(y=q.length-1;p<=y;++p)q[p].depth=y-p;p=g.CS;if(p.location&&p.location.ancestorOrigins&&p.location.ancestorOrigins.length===q.length-1)for(y=1;yq&&(q=Q.length);return 3997-q-y.N.length-1}; xB=function(y,q){this.K=y;this.depth=q}; vG3=function(){function y(O,w){return O==null?w:O} var q=fv(),Q=Math.max(q.length-1,0),p=qoD(q);q=p.K;var v=p.W,d=p.N,T=[];d&&T.push(new xB([d.url,d.K?2:0],y(d.depth,1)));v&&v!=d&&T.push(new xB([v.url,2],0));q.url&&q!=d&&T.push(new xB([q.url,0],y(q.depth,Q)));p=g.W5(T,function(O,w){return T.slice(0,T.length-w)}); !q.url||(d||v)&&q!=d||(v=Xei(q.url))&&p.push([new xB([v,1],y(q.depth,Q))]);p.push([]);return g.W5(p,function(O){return pKg(Q,O)})}; pKg=function(y,q){g.Zn(q,function(v){return v.depth>=0}); var Q=tl(q,function(v,d){return Math.max(v,d.depth)},-1),p=SC3(Q+2); p[0]=y;g.mS(q,function(v){return p[v.depth+1]=v.K}); return p}; dOi=function(){var y=y===void 0?vG3():y;return y.map(function(q){return Kv(q)})}; E2=function(y){y.qgs=!0;return y}; VL2=function(y){var q=TOC;if(q)for(var Q in q)Object.prototype.hasOwnProperty.call(q,Q)&&y(q[Q],Q,q)}; OMi=function(){var y=[];VL2(function(q){y.push(q)}); return y}; Fnp=function(){var y=wKi("IFRAME"),q={};g.mS(Jnb(),function(Q){y.sandbox&&y.sandbox.supports&&y.sandbox.supports(Q)&&(q[Q]=!0)}); return q}; wKi=function(y,q){q=q===void 0?document:q;return q.createElement(String(y).toLowerCase())}; Yoj=function(y){var q=!1;q=q===void 0?!1:q;ln.google_image_requests||(ln.google_image_requests=[]);var Q=wKi("IMG",ln.document);q&&(Q.attributionSrc="");Q.src=y;ln.google_image_requests.push(Q)}; kB=function(y){var q="gh";if(y.gh&&y.hasOwnProperty(q))return y.gh;var Q=new y;y.gh=Q;y.hasOwnProperty(q);return Q}; Lv=function(){this.W=new GX3;this.K=sQ()?new Md:new Rl}; f02=function(){aq();var y=ln.document;return!!(y&&y.body&&y.body.getBoundingClientRect&&typeof ln.setInterval==="function"&&typeof ln.clearInterval==="function"&&typeof ln.setTimeout==="function"&&typeof ln.clearTimeout==="function")}; hJS=function(){aq();return dOi()}; bMg=function(){}; aq=function(){var y=kB(bMg);if(!y.K){if(!ln)throw Error("Context has not been set and window is undefined.");y.K=kB(Lv)}return y.K}; Ne=function(){throw Error("Invalid UTF8");}; $Op=function(y,q){q=String.fromCharCode.apply(null,q);return y==null?q:y+q}; ZMi=function(y){var q=!1;q=q===void 0?!1:q;if(KnS){if(q&&(xOH?!y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(y)))throw Error("Found an unpaired surrogate");y=(WnC||(WnC=new TextEncoder)).encode(y)}else{for(var Q=0,p=new Uint8Array(3*y.length),v=0;v>6|192;else{if(d>=55296&&d<=57343){if(d<=56319&&v=56320&&T<=57343){d=(d-55296)*1024+ T-56320+65536;p[Q++]=d>>18|240;p[Q++]=d>>12&63|128;p[Q++]=d>>6&63|128;p[Q++]=d&63|128;continue}else v--}if(q)throw Error("Found an unpaired surrogate");d=65533}p[Q++]=d>>12|224;p[Q++]=d>>6&63|128}p[Q++]=d&63|128}}y=Q===p.length?p:p.subarray(0,Q)}return y}; So=function(y){g.CS.setTimeout(function(){throw y;},0)}; tL8=function(y){return Array.prototype.map.call(y,function(q){q=q.toString(16);return q.length>1?q:"0"+q}).join("")}; EGj=function(y){for(var q=[],Q=0;Q>6|192:((v&64512)==55296&&p+1>18|240,q[Q++]=v>>12&63|128):q[Q++]=v>>12|224,q[Q++]=v>>6&63|128),q[Q++]=v&63|128)}return q}; g.Rq=function(y,q){q===void 0&&(q=0);ku8();q=Ln9[q];for(var Q=Array(Math.floor(y.length/3)),p=q[64]||"",v=0,d=0;v>2];T=q[(T&3)<<4|O>>4];O=q[(O&15)<<2|w>>6];w=q[w&63];Q[d++]=""+J+T+O+w}J=0;w=p;switch(y.length-v){case 2:J=y[v+1],w=q[(J&15)<<2]||p;case 1:y=y[v],Q[d]=""+q[y>>2]+q[(y&3)<<4|J>>4]+w+p}return Q.join("")}; g.s2=function(y,q,Q){if(a0C&&!q)y=g.CS.btoa(y);else{for(var p=[],v=0,d=0;d255){var O=Error("go/unicode-to-byte-error");if(Q)throw O;p[v++]=T&255;T>>=8}p[v++]=T}y=g.Rq(p,q)}return y}; Sob=function(y){var q=[];NOD(y,function(Q){q.push(Q)}); return q}; Me=function(y){var q=y.length,Q=q*3/4;Q%3?Q=Math.floor(Q):g.D0("=.",y[q-1])&&(Q=g.D0("=.",y[q-2])?Q-2:Q-1);var p=new Uint8Array(Q),v=0;NOD(y,function(d){p[v++]=d}); return v!==Q?p.subarray(0,v):p}; NOD=function(y,q){function Q(w){for(;p>4);T!=64&&(q(d<<4&240|T>>2),O!=64&&q(T<<6&192|O))}}; ku8=function(){if(!lX){lX={};for(var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),q=["+/=","+/","-_=","-_.","-_"],Q=0;Q<5;Q++){var p=y.concat(q[Q].split(""));Ln9[Q]=p;for(var v=0;v=q||(p[y]=Q+1,y=Error(),Qn9(y,"incident"),So(y))}}; U2=function(y,q,Q){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Q===void 0?0:Q)&&Symbol.for&&y?Symbol.for(y):y!=null?Symbol(y):Symbol():q}; Al=function(y,q){rM||oq in y||nGb(y,gGg);y[oq]|=q}; eo=function(y,q){rM||oq in y||nGb(y,gGg);y[oq]=q}; B5=function(){return typeof BigInt==="function"}; Xi=function(y,q){return q===void 0?y.K!==GK&&!!(2&(y.Ib[oq]|0)):!!(2&q)&&y.K!==GK}; cnD=function(y,q){if(y!=null)if(typeof y==="string")y=y?new zK(y,Dn):uX();else if(y.constructor!==zK)if(u2p&&y!=null&&y instanceof Uint8Array)y=y.length?new zK(new Uint8Array(y),Dn):uX();else{if(!q)throw Error();y=void 0}return y}; mg=function(y,q){if(typeof q!=="number"||q<0||q>=y.length)throw Error();}; UOH=function(y,q,Q){var p=q&128?0:-1,v=y.length,d;if(d=!!v)d=y[v-1],d=d!=null&&typeof d==="object"&&d.constructor===Object;var T=v+(d?-1:0);for(q=q&128?1:0;qq.length)return!1;if(y.lengthv)return!1;if(p>>0;vk=q;du=(y-q)/4294967296>>>0}; OJ=function(y){if(y<0){TE(0-y);var q=g.t(Vt(vk,du));y=q.next().value;q=q.next().value;vk=y>>>0;du=q>>>0}else TE(y)}; Ji=function(y,q){var Q=q*4294967296+(y>>>0);return Number.isSafeInteger(Q)?Q:wu(y,q)}; eJ9=function(y,q){var Q=q&2147483648;Q&&(y=~y+1>>>0,q=~q>>>0,y==0&&(q=q+1>>>0));y=Ji(y,q);return typeof y==="number"?Q?-y:y:Q?"-"+y:y}; wu=function(y,q){q>>>=0;y>>>=0;if(q<=2097151)var Q=""+(4294967296*q+y);else B5()?Q=""+(BigInt(q)<>>24|q<<8)&16777215,q=q>>16&65535,y=(y&16777215)+Q*6777216+q*6710656,Q+=q*8147497,q*=2,y>=1E7&&(Q+=y/1E7>>>0,y%=1E7),Q>=1E7&&(q+=Q/1E7>>>0,Q%=1E7),Q=q+BOg(Q)+BOg(y));return Q}; BOg=function(y){y=String(y);return"0000000".slice(y.length)+y}; Gup=function(){var y=vk,q=du;q&2147483648?B5()?y=""+(BigInt(q|0)<>>0)):(q=g.t(Vt(y,q)),y=q.next().value,q=q.next().value,y="-"+wu(y,q)):y=wu(y,q);return y}; Fv=function(y){if(y.length<16)OJ(Number(y));else if(B5())y=BigInt(y),vk=Number(y&BigInt(4294967295))>>>0,du=Number(y>>BigInt(32)&BigInt(4294967295));else{var q=+(y[0]==="-");du=vk=0;for(var Q=y.length,p=0+q,v=(Q-q)%6+q;v<=Q;p=v,v+=6)p=Number(y.slice(p,v)),du*=1E6,vk=vk*1E6+p,vk>=4294967296&&(du+=Math.trunc(vk/4294967296),du>>>=0,vk>>>=0);q&&(q=g.t(Vt(vk,du)),y=q.next().value,q=q.next().value,vk=y,du=q)}}; Vt=function(y,q){q=~q;y?y=~y+1:q+=1;return[y,q]}; Y4=function(y){return Array.prototype.slice.call(y)}; fx=function(y){if(y!=null&&typeof y!=="number")throw Error("Value of float/double field must be a number, found "+typeof y+": "+y);return y}; Po9=function(y){return y.displayName||y.name||"unknown type name"}; hi=function(y){if(y!=null&&typeof y!=="boolean")throw Error("Expected boolean but got "+ph(y)+": "+y);return y}; x4=function(y){switch(typeof y){case "bigint":return!0;case "number":return bO(y);case "string":return iM8.test(y);default:return!1}}; XKD=function(y){if(typeof y!=="number")throw gM("int32");if(!bO(y))throw gM("int32");return y|0}; Wk=function(y){return y==null?y:XKD(y)}; Z8=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return bO(y)?y|0:void 0}; ti=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return bO(y)?y>>>0:void 0}; yKj=function(y){var q=0;q=q===void 0?0:q;if(!x4(y))throw gM("int64");var Q=typeof y;switch(q){case 512:switch(Q){case "string":return EJ(y);case "bigint":return String(k4(64,y));default:return Lx(y)}case 1024:switch(Q){case "string":return mOS(y);case "bigint":return px(k4(64,y));default:return CoH(y)}case 0:switch(Q){case "string":return EJ(y);case "bigint":return px(k4(64,y));default:return aA(y)}default:return YZ(q,"Unknown format requested type for int64")}}; N_=function(y){return y==null?y:yKj(y)}; qj9=function(y){var q=y.length;if(y[0]==="-"?q<20||q===20&&y<="-9223372036854775808":q<19||q===19&&y<="9223372036854775807")return y;Fv(y);return Gup()}; aA=function(y){x4(y);y=S7(y);Hk(y)||(OJ(y),y=eJ9(vk,du));return y}; Lx=function(y){x4(y);y=S7(y);Hk(y)?y=String(y):(OJ(y),y=Gup());return y}; EJ=function(y){x4(y);var q=S7(Number(y));if(Hk(q))return String(q);q=y.indexOf(".");q!==-1&&(y=y.substring(0,q));return qj9(y)}; mOS=function(y){var q=S7(Number(y));if(Hk(q))return px(q);q=y.indexOf(".");q!==-1&&(y=y.substring(0,q));return B5()?px(k4(64,BigInt(y))):px(qj9(y))}; CoH=function(y){return Hk(y)?px(aA(y)):px(Lx(y))}; j2p=function(y){if(y==null)return y;var q=typeof y;if(q==="bigint")return String(k4(64,y));if(x4(y)){if(q==="string")return EJ(y);if(q==="number")return aA(y)}}; pQi=function(y){if(y==null)return y;var q=typeof y;if(q==="bigint")return String(Q2H(64,y));if(x4(y)){if(q==="string")return x4(y),q=S7(Number(y)),Hk(q)&&q>=0?y=String(q):(q=y.indexOf("."),q!==-1&&(y=y.substring(0,q)),y[0]==="-"?q=!1:(q=y.length,q=q<20?!0:q===20&&y<="18446744073709551615"),q||(Fv(y),y=wu(vk,du))),y;if(q==="number")return x4(y),y=S7(y),y>=0&&Hk(y)||(OJ(y),y=Ji(vk,du)),y}}; vZ2=function(y){if(y==null||typeof y=="string"||y instanceof zK)return y}; dRi=function(y){if(typeof y!=="string")throw Error();return y}; RA=function(y){if(y!=null&&typeof y!=="string")throw Error();return y}; sJ=function(y){return y==null||typeof y==="string"?y:void 0}; M_=function(y,q){if(!(y instanceof q))throw Error("Expected instanceof "+Po9(q)+" but got "+(y&&Po9(y.constructor)));return y}; TV9=function(y,q,Q){if(y!=null&&y[lO]===zE)return y;if(Array.isArray(y)){var p=y[oq]|0;Q=p|Q&32|Q&2;Q!==p&&eo(y,Q);return new q(y)}}; D8=function(y){return y}; IA=function(y){var q=hm(uO);return q?y[q]:void 0}; nx=function(){}; UJ=function(y,q){for(var Q in y)!isNaN(Q)&&q(y,+Q,y[Q])}; VkC=function(y){var q=new nx;UJ(y,function(Q,p,v){q[p]=Y4(v)}); q.e9=y.e9;return q}; wQg=function(y,q){q<100||c5(OIi,1)}; oA=function(y,q,Q,p){var v=p!==void 0;p=!!p;var d=hm(uO),T;!v&&rM&&d&&(T=y[d])&&UJ(T,wQg);d=[];var O=y.length;T=4294967295;var w=!1,J=!!(q&64),F=J?q&128?0:-1:void 0;if(!(q&1)){var Y=O&&y[O-1];Y!=null&&typeof Y==="object"&&Y.constructor===Object?(O--,T=O):Y=void 0;if(J&&!(q&128)&&!v){w=!0;var f;T=((f=ru)!=null?f:D8)(T-F,F,y,Y,void 0)+F}}q=void 0;for(f=0;f=T){var b=f-F,Z=void 0;((Z=q)!=null?Z:q={})[b]=h}else d[f]=h}if(Y)for(var k in Y)O=Y[k],O!= null&&(O=Q(O,p))!=null&&(f=+k,h=void 0,J&&!Number.isNaN(f)&&(h=f+F)0?void 0:y===0?h68||(h68=[0,void 0]):[-y,void 0];case "string":return[0,y];case "object":return y}}; Pk=function(y,q,Q){return y=GE(y,q[0],q[1],Q?1:2)}; GE=function(y,q,Q,p){p=p===void 0?0:p;if(y==null){var v=32;Q?(y=[Q],v|=128):y=[];q&&(v=v&-8380417|(q&1023)<<13)}else{if(!Array.isArray(y))throw Error("narr");v=y[oq]|0;if($RH&&1&v)throw Error("rfarr");2048&v&&!(2&v)&&KXp();if(v&256)throw Error("farr");if(v&64)return p!==0||v&2048||eo(y,v|2048),y;if(Q&&(v|=128,Q!==y[0]))throw Error("mid");a:{Q=y;v|=64;var d=Q.length;if(d){var T=d-1,O=Q[T];if(O!=null&&typeof O==="object"&&O.constructor===Object){q=v&128?0:-1;T-=q;if(T>=1024)throw Error("pvtlmt");for(var w in O)d= +w,d1024)throw Error("spvt");v=v&-8380417|(w&1023)<<13}}}v|=64;p===0&&(v|=2048);eo(y,v);return y}; KXp=function(){if($RH)throw Error("carr");c5(xRb,5)}; WX9=function(y,q){if(typeof y!=="object")return y;if(Array.isArray(y)){var Q=y[oq]|0;y.length===0&&Q&1?y=void 0:Q&2||(!q||4096&Q||16&Q?y=iO(y,Q,!1,q&&!(Q&16)):(Al(y,34),Q&4&&Object.freeze(y)));return y}if(y!=null&&y[lO]===zE)return q=y.Ib,Q=q[oq]|0,Xi(y,Q)?y:Xv(y,q,Q)?mm(y,q):iO(q,Q);if(y instanceof zK)return y}; mm=function(y,q,Q){y=new y.constructor(q);Q&&(y.K=GK);y.W=GK;return y}; iO=function(y,q,Q,p){p!=null||(p=!!(34&q));y=oA(y,q,WX9,p);p=32;Q&&(p|=2);q=q&8380609|p;eo(y,q);return y}; ZIp=function(y){var q=y.Ib,Q=q[oq]|0;return Xi(y,Q)?Xv(y,q,Q)?mm(y,q,!0):new y.constructor(iO(q,Q,!1)):y}; Cx=function(y){if(y.K!==GK)return!1;var q=y.Ib;q=iO(q,q[oq]|0);Al(q,2048);y.Ib=q;y.K=void 0;y.W=void 0;return!0}; yS=function(y){if(!Cx(y)&&Xi(y,y.Ib[oq]|0))throw Error();}; qH=function(y,q){q===void 0&&(q=y[oq]|0);q&32&&!(q&4096)&&eo(y,q|4096)}; Xv=function(y,q,Q){return Q&2?!0:Q&32&&!(Q&4096)?(eo(q,Q|2),y.K=GK,!0):!1}; QS=function(y,q,Q,p,v){Object.isExtensible(y);q=j5(y.Ib,q,Q,v);if(q!==null||p&&y.W!==GK)return q}; j5=function(y,q,Q,p){if(q===-1)return null;var v=q+(Q?0:-1),d=y.length-1;if(!(d<1+(Q?0:-1))){if(v>=d){var T=y[d];if(T!=null&&typeof T==="object"&&T.constructor===Object){Q=T[q];var O=!0}else if(v===d)Q=T;else return}else Q=y[v];if(p&&Q!=null){p=p(Q);if(p==null)return p;if(!Object.is(p,Q))return O?T[q]=p:y[v]=p,p}return Q}}; vv=function(y,q,Q,p){yS(y);var v=y.Ib;pA(v,v[oq]|0,q,Q,p);return y}; pA=function(y,q,Q,p,v){var d=Q+(v?0:-1),T=y.length-1;if(T>=1+(v?0:-1)&&d>=T){var O=y[T];if(O!=null&&typeof O==="object"&&O.constructor===Object)return O[Q]=p,q}if(d<=T)return y[d]=p,q;if(p!==void 0){var w;T=((w=q)!=null?w:q=y[oq]|0)>>13&1023||536870912;Q>=T?p!=null&&(d={},y[T+(v?0:-1)]=(d[Q]=p,d)):y[d]=p}return q}; wF=function(y,q,Q,p,v){var d=y.Ib,T=d[oq]|0;p=Xi(y,T)?1:p;v=!!v||p===3;p===2&&Cx(y)&&(d=y.Ib,T=d[oq]|0);y=dF(d,q);var O=y===T6?7:y[oq]|0,w=VS(O,T);var J=4&w?!1:!0;if(J){4&w&&(y=Y4(y),O=0,w=Oq(w,T),T=pA(d,T,q,y));for(var F=0,Y=0;F32)for(Q|=(T&127)>>4,p=3;p<32&&T&128;p+=7)T=v[d++],Q|=(T&127)<>>0,Q>>>0);throw Error();}; Bv=function(y,q){y.K=q;if(q>y.N)throw Error();}; Pv=function(y){var q=y.W,Q=y.K,p=q[Q++],v=p&127;if(p&128&&(p=q[Q++],v|=(p&127)<<7,p&128&&(p=q[Q++],v|=(p&127)<<14,p&128&&(p=q[Q++],v|=(p&127)<<21,p&128&&(p=q[Q++],v|=p<<28,p&128&&q[Q++]&128&&q[Q++]&128&&q[Q++]&128&&q[Q++]&128&&q[Q++]&128)))))throw Error();Bv(y,Q);return v}; iD=function(y){var q=y.W,Q=y.K,p=q[Q+0],v=q[Q+1],d=q[Q+2];q=q[Q+3];Bv(y,y.K+4);return(p<<0|v<<8|d<<16|q<<24)>>>0}; Xk=function(y){var q=iD(y);y=iD(y);return Ji(q,y)}; m6=function(y){var q=iD(y),Q=iD(y);y=(Q>>31)*2+1;var p=Q>>>20&2047;q=4294967296*(Q&1048575)+q;return p==2047?q?NaN:y*Infinity:p==0?y*4.9E-324*q:y*Math.pow(2,p-1075)*(q+4503599627370496)}; OS=function(y){for(var q=0,Q=y.K,p=Q+10,v=y.W;Qy.N)throw Error();y.K=q;return Q}; ldf=function(y,q){if(q==0)return uX();var Q=s2C(y,q);y.Yp&&y.J?Q=y.W.subarray(Q,Q+q):(y=y.W,q=Q+q,Q=Q===q?new Uint8Array(0):Mk2?y.slice(Q,q):new Uint8Array(y.subarray(Q,q)));return Q.length==0?uX():new zK(Q,Dn)}; JL=function(y,q,Q,p){if(wR.length){var v=wR.pop();v.init(y,q,Q,p);y=v}else y=new e5(y,q,Q,p);this.K=y;this.Y=this.K.K;this.W=this.N=-1;z6C(this,p)}; z6C=function(y,q){q=q===void 0?{}:q;y.Iu=q.Iu===void 0?!1:q.Iu}; DRp=function(y,q,Q,p){if(F3.length){var v=F3.pop();z6C(v,p);v.K.init(y,q,Q,p);return v}return new JL(y,q,Q,p)}; uBH=function(y){var q=y.K;if(q.K==q.N)return!1;y.Y=y.K.K;var Q=Pv(y.K)>>>0;q=Q>>>3;Q&=7;if(!(Q>=0&&Q<=5))throw Error();if(q<1)throw Error();y.N=q;y.W=Q;return!0}; Y6=function(y){switch(y.W){case 0:y.W!=0?Y6(y):OS(y.K);break;case 1:y=y.K;Bv(y,y.K+8);break;case 2:if(y.W!=2)Y6(y);else{var q=Pv(y.K)>>>0;y=y.K;Bv(y,y.K+q)}break;case 5:y=y.K;Bv(y,y.K+4);break;case 3:q=y.N;do{if(!uBH(y))throw Error();if(y.W==4){if(y.N!=q)throw Error();break}Y6(y)}while(1);break;default:throw Error();}}; fQ=function(y,q,Q){var p=y.K.N,v=Pv(y.K)>>>0;v=y.K.K+v;var d=v-p;d<=0&&(y.K.N=v,Q(q,y,void 0,void 0,void 0),d=v-y.K.K);if(d)throw Error();y.K.K=v;y.K.N=p}; $6=function(y){var q=Pv(y.K)>>>0;y=y.K;var Q=s2C(y,q);y=y.W;if(IdD){var p=y,v;(v=hL)||(v=hL=new TextDecoder("utf-8",{fatal:!0}));q=Q+q;p=Q===0&&q===p.length?p:p.subarray(Q,q);try{var d=v.decode(p)}catch(J){if(bZ===void 0){try{v.decode(new Uint8Array([128]))}catch(F){}try{v.decode(new Uint8Array([97])),bZ=!0}catch(F){bZ=!1}}!bZ&&(hL=void 0);throw J;}}else{d=Q;q=d+q;Q=[];for(var T=null,O,w;d=q?Ne():(w=y[d++],O<194||(w&192)!==128?(d--,Ne()):Q.push((O&31)<<6|w&63)): O<240?d>=q-1?Ne():(w=y[d++],(w&192)!==128||O===224&&w<160||O===237&&w>=160||((v=y[d++])&192)!==128?(d--,Ne()):Q.push((O&15)<<12|(w&63)<<6|v&63)):O<=244?d>=q-2?Ne():(w=y[d++],(w&192)!==128||(O<<28)+(w-144)>>30!==0||((v=y[d++])&192)!==128||((p=y[d++])&192)!==128?(d--,Ne()):(O=(O&7)<<18|(w&63)<<12|(v&63)<<6|p&63,O-=65536,Q.push((O>>10&1023)+55296,(O&1023)+56320))):Ne(),Q.length>=8192&&(T=$Op(T,Q),Q.length=0);d=$Op(T,Q)}return d}; nZ9=function(y){var q=Pv(y.K)>>>0;return ldf(y.K,q)}; gZg=function(y){if(y!==KQ)throw Error();}; x6=function(y,q){this.W=y>>>0;this.K=q>>>0}; URp=function(y){if(!y)return cK2||(cK2=new x6(0,0));if(!/^\d+$/.test(y))return null;Fv(y);return new x6(vk,du)}; Wo=function(y,q){this.W=y>>>0;this.K=q>>>0}; oZ9=function(y){if(!y)return rKg||(rKg=new Wo(0,0));if(!/^-?\d+$/.test(y))return null;Fv(y);return new Wo(vk,du)}; Zb=function(){this.K=[]}; tL=function(y,q,Q){for(;Q>0||q>127;)y.K.push(q&127|128),q=(q>>>7|Q<<25)>>>0,Q>>>=7;y.K.push(q)}; ES=function(y,q){for(;q>127;)y.K.push(q&127|128),q>>>=7;y.K.push(q)}; AKg=function(y,q){if(q>=0)ES(y,q);else{for(var Q=0;Q<9;Q++)y.K.push(q&127|128),q>>=7;y.K.push(1)}}; k6=function(y,q){y.K.push(q>>>0&255);y.K.push(q>>>8&255);y.K.push(q>>>16&255);y.K.push(q>>>24&255)}; e69=function(){this.N=[];this.W=0;this.K=new Zb}; LQ=function(y,q){q.length!==0&&(y.N.push(q),y.W+=q.length)}; BV3=function(y,q){a5(y,q,2);q=y.K.end();LQ(y,q);q.push(y.W);return q}; Gq2=function(y,q){var Q=q.pop();for(Q=y.W+y.K.length()-Q;Q>127;)q.push(Q&127|128),Q>>>=7,y.W++;q.push(Q);y.W++}; a5=function(y,q,Q){ES(y.K,q*8+Q)}; Plf=function(y,q,Q){if(Q!=null){switch(typeof Q){case "string":URp(Q)}a5(y,q,1);switch(typeof Q){case "number":y=y.K;TE(Q);k6(y,vk);k6(y,du);break;case "bigint":Q=BigInt.asUintN(64,Q);Q=new x6(Number(Q&BigInt(4294967295)),Number(Q>>BigInt(32)));y=y.K;q=Q.K;k6(y,Q.W);k6(y,q);break;default:Q=URp(Q),y=y.K,q=Q.K,k6(y,Q.W),k6(y,q)}}}; NE=function(y,q,Q){a5(y,q,2);ES(y.K,Q.length);LQ(y,y.K.end());LQ(y,Q)}; Sa=function(){function y(){throw Error();} Object.setPrototypeOf(y,y.prototype);return y}; Ho=function(y,q,Q){this.Ib=GE(y,q,Q)}; iIS=function(y,q){if(q==null||q=="")return new y;q=JSON.parse(q);if(!Array.isArray(q))throw Error("dnarr");Al(q,32);return new y(q)}; sS=function(y,q,Q){this.Xm=y;this.ZW=q;y=hm(R5);this.K=!!y&&Q===y||!1}; ME=function(y,q){var Q=Q===void 0?R5:Q;return new sS(y,q,Q)}; mRg=function(y,q,Q,p,v){q=XQ8(q,p);q!=null&&(Q=BV3(y,Q),v(q,y),Gq2(y,Q))}; Db=function(y,q,Q,p){var v=p[y];if(v)return v;v={};v.o$=p;v.lQ=bI3(p[0]);var d=p[1],T=1;d&&d.constructor===Object&&(v.extensions=d,d=p[++T],typeof d==="function"&&(v.QS=!0,lZ!=null||(lZ=d),zR!=null||(zR=p[T+1]),d=p[T+=2]));for(var O={};d&&Array.isArray(d)&&d.length&&typeof d[0]==="number"&&d[0]>0;){for(var w=0;w>BigInt(32)));tL(y.K,Q.W,Q.K);break;default:Q=oZ9(q),tL(y.K,Q.W,Q.K)}}}; vG=function(y,q,Q){q=Z8(q);q!=null&&q!=null&&(a5(y,Q,0),AKg(y.K,q))}; JYf=function(y,q,Q){q=q==null||typeof q==="boolean"?q:typeof q==="number"?!!q:void 0;q!=null&&(a5(y,Q,0),y.K.K.push(q?1:0))}; F02=function(y,q,Q){q=sJ(q);q!=null&&NE(y,Q,ZMi(q))}; YQi=function(y,q,Q,p,v){q=XQ8(q,p);q!=null&&(Q=BV3(y,Q),v(q,y),Gq2(y,Q))}; hxC=function(y,q,Q){if(Q!==KQ)throw Error();this.typeName=y;this.K=q;if(Q!==KQ)throw Error();f58.set(y,this)}; $dD=function(){var y=d4;this.K=bi3;this.isRepeated=0;this.W=NH;this.defaultValue=void 0;this.N=y.messageId!=null?Cv:void 0}; K0g=function(y,q){return function(Q,p){var v={uy:!0};p&&Object.assign(v,p);Q=DRp(Q,void 0,void 0,v);try{var d=new y,T=d.Ib;Bo(q)(T,Q);var O=d}finally{Q.free()}return O}}; xd9=function(y){return function(){var q=new e69;T03(this.Ib,q,Db(iZ,Po,mR,y));LQ(q,q.K.end());for(var Q=new Uint8Array(q.W),p=q.N,v=p.length,d=0,T=0;T-1)return q.apply(null,g.hH(Q));try{return y.K=y.N.K.now(),q.apply(null,g.hH(Q))}finally{y.Y+=y.N.K.now()-y.K,y.K=-1,y.W+=1}}}; Zi8=function(y,q){this.W=y;this.N=q;this.K=new W0s(y)}; t_9=function(){this.K={}}; a5g=function(){this.N=void 0;this.W=this.G=0;this.J=-1;this.JU=new LM;aU(this.JU,"mv",EnD).K=!0;aU(this.JU,"omid",so);aU(this.JU,"epoh",so).K=!0;aU(this.JU,"epph",so).K=!0;aU(this.JU,"umt",so).K=!0;aU(this.JU,"phel",so).K=!0;aU(this.JU,"phell",so).K=!0;aU(this.JU,"oseid",k7g).K=!0;var y=this.JU;y.K.sloi||(y.K.sloi=new Eo);y.K.sloi.K=!0;aU(this.JU,"mm",w4);aU(this.JU,"ovms",L0H).K=!0;aU(this.JU,"xdi",so).K=!0;aU(this.JU,"amp",so).K=!0;aU(this.JU,"prf",so).K=!0;aU(this.JU,"gtx",so).K=!0;aU(this.JU, "mvp_lv",so).K=!0;aU(this.JU,"ssmol",so).K=!0;aU(this.JU,"fmd",so).K=!0;aU(this.JU,"gen204simple",so);this.K=new Zi8(aq(),this.JU);this.Y=!1;this.flags=new t_9}; JR=function(){return kB(a5g)}; N0b=function(y,q,Q,p){if(Math.random()<(p||y.K))try{if(Q instanceof bX)var v=Q;else v=new bX,hl(Q,function(T,O){var w=v,J=w.Y++;T=$B(O,T);w.K.push(J);w.W[J]=T}); var d=v.i6(y.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+q+"&");d&&(aq(),Yoj(d))}catch(T){}}; SQ2=function(y,q,Q){Q=Q===void 0?{}:Q;this.error=y;this.meta=Q;this.context=q.context;this.msg=q.message||"";this.id=q.id||"jserror"}; HiC=function(){var y=y===void 0?g.CS:y;return(y=y.performance)&&y.now&&y.timing?Math.floor(y.now()+y.timing.navigationStart):g.fh()}; Rxi=function(){var y=y===void 0?g.CS:y;return(y=y.performance)&&y.now?y.now():null}; slD=function(y,q,Q){this.label=y;this.type=q;this.value=Q;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Yb=function(){var y=window;this.events=[];this.W=y||g.CS;var q=null;y&&(y.google_js_reporting_queue=y.google_js_reporting_queue||[],this.events=y.google_js_reporting_queue,q=y.google_measure_js_timing);this.K=FH()||(q!=null?q:Math.random()<1)}; M_C=function(y){y&&fW&&FH()&&(fW.clearMarks("goog_"+y.label+"_"+y.uniqueId+"_start"),fW.clearMarks("goog_"+y.label+"_"+y.uniqueId+"_end"))}; hR=function(y,q,Q,p,v,d,T){var O="";y&&(O+=y+":");Q&&(O+="//",q&&(O+=q+"@"),O+=Q,p&&(O+=":"+p));v&&(O+=v);d&&(O+="?"+d);T&&(O+="#"+T);return O}; g.b_=function(y){return y.match(l53)}; zxb=function(y){return y?decodeURI(y):y}; g.$b=function(y){return zxb(g.b_(y)[3]||null)}; KW=function(y){return zxb(g.b_(y)[5]||null)}; g.Ddb=function(y){y=g.b_(y);return hR(y[1],y[2],y[3],y[4])}; xb=function(y){y=g.b_(y);return hR(null,null,null,null,y[5],y[6],y[7])}; uU9=function(y){var q=y.indexOf("#");return q<0?y:y.slice(0,q)}; WG=function(y,q){if(y){y=y.split("&");for(var Q=0;Q=0){var d=y[Q].substring(0,p);v=y[Q].substring(p+1)}else d=y[Q];q(d,v?sj(v):"")}}}; Zu=function(y,q){if(!q)return y;var Q=y.indexOf("#");Q<0&&(Q=y.length);var p=y.indexOf("?");if(p<0||p>Q){p=Q;var v=""}else v=y.substring(p+1,Q);y=[y.slice(0,p),v,y.slice(Q)];Q=y[1];y[1]=q?Q?Q+"&"+q:q:Q;return y[0]+(y[1]?"?"+y[1]:"")+y[2]}; tR=function(y,q,Q){if(Array.isArray(q))for(var p=0;p=0&&qQ)v=Q;p+=q.length+1;return sj(y.slice(p,v!==-1?v:0))}; RR=function(y,q){for(var Q=y.search(Sr),p=0,v,d=[];(v=N1(y,p,q,Q))>=0;)d.push(y.substring(p,v)),p=Math.min(y.indexOf("&",v)+1||Q,Q);d.push(y.slice(p));return d.join("").replace(gnp,"$1")}; cY9=function(y,q,Q){return aR(RR(y,q),q,Q)}; Udj=function(){var y=M1;this.K=l_;this.TP="jserror";this.OR=!0;this.hI=null;this.W=this.Yz;this.AU=y===void 0?null:y}; rYg=function(y,q,Q){var p=zT;return Ow(JR().K.K,function(){try{if(p.AU&&p.AU.K){var v=p.AU.start(y.toString(),3);var d=q();p.AU.end(v)}else d=q()}catch(O){var T=p.OR;try{M_C(v),T=p.W(y,new Du(u_(O)),void 0,Q)}catch(w){p.Yz(217,w)}if(!T)throw O;}return d})()}; IR=function(y,q,Q,p){return Ow(JR().K.K,function(){var v=g.nS.apply(0,arguments);return rYg(y,function(){return q.apply(Q,v)},p)})}; u_=function(y){var q=y.toString();y.name&&q.indexOf(y.name)==-1&&(q+=": "+y.name);y.message&&q.indexOf(y.message)==-1&&(q+=": "+y.message);if(y.stack)a:{y=y.stack;var Q=q;try{y.indexOf(Q)==-1&&(y=Q+"\n"+y);for(var p;y!=p;)p=y,y=y.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");q=y.replace(/\n */g,"\n");break a}catch(v){q=Q;break a}q=void 0}return q}; Du=function(y){SQ2.call(this,Error(y),{message:y})}; ong=function(){ln&&typeof ln.google_measure_js_timing!="undefined"&&(ln.google_measure_js_timing||M1.disable())}; AY8=function(y){zT.hI=function(q){g.mS(y,function(Q){Q(q)})}}; ex8=function(y,q){return rYg(y,q)}; nW=function(y,q){return IR(y,q)}; g4=function(y,q,Q,p){zT.Yz(y,q,Q,p)}; cG=function(){return Date.now()-B0i}; G73=function(){var y=JR().N,q=Uw>=0?cG()-Uw:-1,Q=r4?cG()-oR:-1,p=AR>=0?cG()-AR:-1;if(y==947190542)return 100;if(y==79463069)return 200;y=[2E3,4E3];var v=[250,500,1E3];g4(637,Error(),.001);var d=q;Q!=-1&&Q1500&&p<4E3?500:T}; er=function(y,q,Q){var p=new g0(0,0,0,0);this.time=y;this.volume=null;this.N=q;this.K=p;this.W=Q}; BG=function(y,q,Q,p,v,d,T,O){this.Y=y;this.X=q;this.N=Q;this.G=p;this.K=v;this.J=d;this.W=T;this.C=O}; ii8=function(y){var q=y!==y.top,Q=y.top===PG8(y),p=-1,v=0;if(q&&Q&&y.top.mraid){p=3;var d=y.top.mraid}else p=(d=y.mraid)?q?Q?2:1:0:-1;d&&(d.IS_GMA_SDK||(v=2),sjb(Pns,function(T){return typeof d[T]==="function"})||(v=1)); return{h7:d,compatibility:v,TKs:p}}; X0S=function(){var y=window.document;return y&&typeof y.elementFromPoint==="function"}; mdC=function(y,q,Q){if(y&&q!==null&&q!=q.top){if(!q.top)return new g.Gq(-12245933,-12245933);q=q.top}try{return(Q===void 0?0:Q)?(new g.Gq(q.innerWidth,q.innerHeight)).round():Mmj(q||window).round()}catch(p){return new g.Gq(-12245933,-12245933)}}; GT=function(y,q,Q){try{if(y){if(!q.top)return new g0(-12245933,-12245933,-12245933,-12245933);q=q.top}var p=mdC(y,q,Q),v=p.height,d=p.width;if(d===-12245933)return new g0(d,d,d,d);var T=v0(q.document);var O=z_S(T.K);var w=O.x,J=O.y;return new g0(J,w+d,J+v,w)}catch(F){return new g0(-12245933,-12245933,-12245933,-12245933)}}; PG=function(y,q){q=Math.pow(10,q);return Math.floor(y*q)/q}; Cn9=function(y){return new g0(y.top,y.right,y.bottom,y.left)}; ylH=function(y){var q=y.top||0,Q=y.left||0;return new g0(q,Q+(y.width||0),q+(y.height||0),Q)}; i_=function(y){return y!=null&&y>=0&&y<=1}; q2j=function(){var y=g.cK();return y?XH("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(q){return uo(y,q)})||uo(y,"OMI/")&&!uo(y,"XiaoMi/")?!0:uo(y,"Presto")&&uo(y,"Linux")&&!uo(y,"X11")&&!uo(y,"Android")&&!uo(y,"Mobi"):!1}; jqp=function(){this.N=!Fi(ln.top);this.isMobileDevice=YB()||ihj();var y=fv();this.domain=y.length>0&&y[y.length-1]!=null&&y[y.length-1].url!=null?g.$b(y[y.length-1].url)||"":"";this.K=new g0(0,0,0,0);this.Y=new g.Gq(0,0);this.J=new g.Gq(0,0);this.X=new g0(0,0,0,0);this.frameOffset=new g.ek(0,0);this.G=0;this.C=!1;this.W=!(!ln||!ii8(ln).h7);this.update(ln)}; Qq2=function(y,q){q&&q.screen&&(y.Y=new g.Gq(q.screen.width,q.screen.height))}; p5C=function(y,q){a:{var Q=y.K?new g.Gq(c0(y.K),y.K.getHeight()):new g.Gq(0,0);q=q===void 0?ln:q;q!==null&&q!=q.top&&(q=q.top);var p=0,v=0;try{var d=q.document,T=d.body,O=d.documentElement;if(d.compatMode=="CSS1Compat"&&O.scrollHeight)p=O.scrollHeight!=Q.height?O.scrollHeight:O.offsetHeight,v=O.scrollWidth!=Q.width?O.scrollWidth:O.offsetWidth;else{var w=O.scrollHeight,J=O.scrollWidth,F=O.offsetHeight,Y=O.offsetWidth;O.clientHeight!=F&&(w=T.scrollHeight,J=T.scrollWidth,F=T.offsetHeight,Y=T.offsetWidth); w>Q.height?w>F?(p=w,v=J):(p=F,v=Y):w0||y.C)return!0;y=aq().W.isVisible();var q=Jl(CW)===0;return y||q}; mD=function(){return kB(jqp)}; qW=function(y){this.N=y;this.W=0;this.K=null}; jD=function(y,q,Q){this.N=y;this.LK=Q===void 0?"na":Q;this.J=[];this.isInitialized=!1;this.Y=new er(-1,!0,this);this.K=this;this.C=q;this.cI=this.j=!1;this.gp="uk";this.Sj=!1;this.G=!0}; Qf=function(y,q){g.Eu(y.J,q)||(y.J.push(q),q.IK(y.K),q.Gm(y.Y),q.w8()&&(y.j=!0))}; vBD=function(y){y=y.K;y.Yh();y.Fq();var q=mD();q.X=GT(!1,y.N,q.isMobileDevice);p5C(mD(),y.N);y.Y.K=y.xG()}; de8=function(y){y.j=y.J.length?XH(y.J,function(q){return q.w8()}):!1}; TMj=function(y){var q=g.zX(y.J);g.mS(q,function(Q){Q.Gm(y.Y)})}; pf=function(y){var q=g.zX(y.J);g.mS(q,function(Q){Q.IK(y.K)}); y.K!=y||TMj(y)}; vi=function(y,q,Q,p){this.element=y;this.K=new g0(0,0,0,0);this.Y=null;this.G=new g0(0,0,0,0);this.W=q;this.JU=Q;this.Sj=p;this.m3=!1;this.timestamp=-1;this.j=new BG(q.Y,this.element,this.K,new g0(0,0,0,0),0,0,cG(),0);this.J=void 0}; Vob=function(y,q){return y.J?new g0(Math.max(q.top+y.J.top,q.top),Math.min(q.left+y.J.right,q.right),Math.min(q.top+y.J.bottom,q.bottom),Math.max(q.left+y.J.left,q.left)):q.clone()}; d5=function(y){this.J=!1;this.K=y;this.Y=function(){}}; Ovi=function(y,q,Q){this.N=Q===void 0?0:Q;this.W=y;this.K=q==null?"":q}; w5b=function(y){switch(Math.trunc(y.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Jlj=function(y,q){return y.Nq.N?!1:y.Wq.W?!1:typeof y.Ktypeof q.K?!1:y.K0?p[Q]-p[Q-1]:p[Q]})}; x8=function(){this.W=new Y8;this.LK=this.vI=0;this.HI=new Fr;this.N$=this.X=-1;this.Dw=1E3;this.Os=new Y8([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.gp=this.m3=-1}; Wi=function(y,q){return Zv9(y.W,q===void 0?!0:q)}; ZQ=function(y,q,Q,p){var v=v===void 0?!1:v;Q=IR(p,Q);Vh(y,q,Q,{capture:v})}; NW=function(y,q){q=tT(q);return q===0?0:tT(y)/q}; tT=function(y){return Math.max(y.bottom-y.top,0)*Math.max(y.right-y.left,0)}; LgC=function(y,q){if(!y||!q)return!1;for(var Q=0;y!==null&&Q++<100;){if(y===q)return!0;try{if(y=y.parentElement||y){var p=pi(y),v=p&&Yn(p),d=v&&v.frameElement;d&&(y=d)}}catch(T){break}}return!1}; an9=function(y,q,Q){if(!y||!q)return!1;q=r0(y.clone(),-q.left,-q.top);y=(q.left+q.right)/2;q=(q.top+q.bottom)/2;Fi(window.top)&&window.top&&window.top.document&&(window=window.top);if(!X0S())return!1;y=window.document.elementFromPoint(y,q);if(!y)return!1;q=(q=(q=pi(Q))&&q.defaultView&&q.defaultView.frameElement)&&LgC(q,y);var p=y===Q;y=!p&&y&&S_(y,function(v){return v===Q}); return!(q||p||y)}; NM3=function(y,q,Q,p){return mD().N?!1:c0(y)<=0||y.getHeight()<=0?!0:Q&&p?ex8(208,function(){return an9(y,q,Q)}):!1}; SD=function(y,q,Q){g.I.call(this);this.position=S2f.clone();this.jC=this.Ts();this.RT=-2;this.timeCreated=Date.now();this.Yu=-1;this.nH=q;this.Hi=null;this.WV=!1;this.J2=null;this.opacity=-1;this.requestSource=Q;this.yRw=!1;this.mf=function(){}; this.bl=function(){}; this.mY=new IC9;this.mY.j_=y;this.mY.K=y;this.bk=!1;this.K$={Ut:null,Q_:null};this.pE=!0;this.B0=null;this.YC=this.m$3=!1;JR().G++;this.Jd=this.zO();this.W6=-1;this.vn=null;this.hasCompleted=this.MjI=!1;this.JU=new LM;gD8(this.JU);Hvs(this);this.requestSource==1?NO(this.JU,"od",1):NO(this.JU,"od",0)}; Hvs=function(y){y=y.mY.j_;var q;if(q=y&&y.getAttribute)q=/-[a-z]/.test("googleAvInapp")?!1:RlH&&y.dataset?"googleAvInapp"in y.dataset:y.hasAttribute?y.hasAttribute("data-"+Yu9()):!!y.getAttribute("data-"+Yu9());q&&(mD().W=!0)}; Hi=function(y,q){q!=y.YC&&(y.YC=q,y=mD(),q?y.G++:y.G>0&&y.G--)}; sq3=function(y,q){if(y.vn){if(q.getName()===y.vn.getName())return;y.vn.dispose();y.vn=null}q=q.create(y.mY.K,y.JU,y.w8());if(q=q!=null&&q.observe()?q:null)y.vn=q}; Mo2=function(y,q,Q){if(!y.Hi||y.nH==-1||q.W===-1||y.Hi.W===-1)return 0;y=q.W-y.Hi.W;return y>Q?0:y}; lnS=function(y,q,Q){if(y.vn){y.vn.dQ();var p=y.vn.j,v=p.Y,d=v.K;if(p.G!=null){var T=p.N;y.J2=new g.ek(T.left-d.left,T.top-d.top)}d=y.qy()?Math.max(p.K,p.J):p.K;T={};v.volume!==null&&(T.volume=v.volume);v=y.rC(p);y.Hi=p;y.XV(d,q,Q,!1,T,v,p.C)}}; zlg=function(y){if(y.WV&&y.B0){var q=SL(y.JU,"od")==1,Q=mD().K,p=y.B0,v=y.vn?y.vn.getName():"ns",d=y.J2,T=new g.Gq(c0(Q),Q.getHeight());Q=y.qy();y={PFV:v,J2:d,le3:T,qy:Q,Xf:y.Jd.Xf,zsw:q};if(q=p.W){q.dQ();v=q.j;d=v.Y.K;var O=T=null;v.G!=null&&d&&(T=v.N,T=new g.ek(T.left-d.left,T.top-d.top),O=new g.Gq(d.right-d.left,d.bottom-d.top));v=Q?Math.max(v.K,v.J):v.K;Q={PFV:q.getName(),J2:T,le3:O,qy:Q,zsw:!1,Xf:v}}else Q=null;Q&&Kg8(p,y,Q)}}; Def=function(y,q,Q){q&&(y.mf=q);Q&&(y.bl=Q)}; g.Rz=function(){}; g.sp=function(y){return{value:y,done:!1}}; uii=function(){this.Y=this.K=this.N=this.W=this.J=0}; Inj=function(y){var q={};var Q=g.fh()-y.J;q=(q.ptlt=Q,q);(Q=y.W)&&(q.pnk=Q);(Q=y.N)&&(q.pnc=Q);(Q=y.Y)&&(q.pnmm=Q);(y=y.K)&&(q.pns=y);return q}; nBj=function(){yE.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; MW=function(y){return i_(y.volume)&&y.volume>0}; lr=function(y,q,Q,p){Q=Q===void 0?!0:Q;p=p===void 0?function(){return!0}:p; return function(v){var d=v[y];if(Array.isArray(d)&&p(v))return gBg(d,q,Q)}}; zO=function(y,q){return function(Q){return q(Q)?Q[y]:void 0}}; n4S=function(y){return function(q){for(var Q=0;Q0?d[v-1]+1:0,p+1).reduce(function(T,O){return T+O},0)})}; g4i=function(){this.W=this.K=""}; ci3=function(){}; ur=function(y,q){var Q={};if(y!==void 0)if(q!=null)for(var p in q){var v=q[p];p in Object.prototype||v!=null&&(Q[p]=typeof v==="function"?v(y):y[v])}else g.WK(Q,y);return Op(Vf(new TO,Q))}; U_8=function(){var y={};this.W=(y.vs=[1,0],y.vw=[0,1],y.am=[2,2],y.a=[4,4],y.f=[8,8],y.bm=[16,16],y.b=[32,32],y.avw=[0,64],y.avs=[64,0],y.pv=[256,256],y.gdr=[0,512],y.p=[0,1024],y.r=[0,2048],y.m=[0,4096],y.um=[0,8192],y.ef=[0,16384],y.s=[0,32768],y.pmx=[0,16777216],y.mut=[33554432,33554432],y.umutb=[67108864,67108864],y.tvoff=[134217728,134217728],y);this.K={};for(var q in this.W)this.W[q][1]>0&&(this.K[q]=0);this.N=0}; Iz=function(y,q){var Q=y.W[q],p=Q[1];y.N+=Q[0];p>0&&y.K[q]==0&&(y.K[q]=1)}; rif=function(y){var q=g.Jn(y.W),Q=0,p;for(p in y.K)g.Eu(q,p)&&y.K[p]==1&&(Q+=y.W[p][1],y.K[p]=2);return Q}; o4b=function(y){var q=0,Q;for(Q in y.K){var p=y.K[Q];if(p==1||p==2)q+=y.W[Q][1]}return q}; nf=function(){this.K=this.W=0}; ci=function(){x8.call(this);this.N=new Fr;this.Vm=this.j=this.Sj=0;this.C=-1;this.q$=new Fr;this.J=new Fr;this.K=new Y8;this.G=this.Y=-1;this.cI=new Fr;this.Dw=2E3;this.Es=new nf;this.BI=new nf;this.Ty=new nf}; Up=function(y,q,Q){var p=y.Vm;r4||Q||y.C==-1||(p+=q-y.C);return p}; Aig=function(){this.N=!1}; r5=function(y,q){this.N=!1;this.Y=y;this.j=q;this.J=0}; oz=function(y,q){r5.call(this,y,q);this.X=[]}; e8C=function(){}; AT=function(){}; eD=function(y,q,Q,p){vi.call(this,y,q,Q,p)}; Bi=function(y,q,Q){vi.call(this,null,y,q,Q);this.C=y.isActive();this.X=0}; GO=function(y){return[y.top,y.left,y.bottom,y.right]}; Pi=function(y,q,Q,p,v,d){d=d===void 0?new AT:d;SD.call(this,q,Q,p);this.XP=v;this.ou=0;this.Uf={};this.lF=new U_8;this.P6={};this.NB="";this.Ty=null;this.RH=!1;this.K=[];this.xM=d.W();this.G=d.N();this.Y=null;this.N=-1;this.LK=this.j=void 0;this.N$=this.cI=0;this.gp=-1;this.Dw=this.BI=!1;this.Sj=this.C=this.W=this.KD=this.cB=0;new Y8;this.Es=this.Vm=0;this.HI=-1;this.iV=0;this.X=g.D5;this.m3=[this.Ts()];this.hw=2;this.EA={};this.EA.pause="p";this.EA.resume="r";this.EA.skip="s";this.EA.mute="m";this.EA.unmute= "um";this.EA.exitfullscreen="ef";this.J=null;this.Os=this.q$=!1;this.Se=Math.floor(Date.now()/1E3-1704067200);this.vI=0}; ir=function(y){y.hasCompleted=!0;y.iV!=0&&(y.iV=3)}; Xr=function(y){return y===void 0?y:Number(y)?PG(y,3):0}; mZ=function(y,q){return y.m3[q!=null&&qMath.max(1E4,y.N/3)?0:q);var Q=y.X(y)||{};Q=Q.currentTime!==void 0?Q.currentTime:y.cI;var p=Q-y.cI,v=0;p>=0?(y.N$+=q,y.Es+=Math.max(q-p,0),v=Math.min(p,y.N$)):y.Vm+=Math.abs(p);p!=0&&(y.N$=0);y.HI==-1&&p>0&&(y.HI=AR>=0?cG()-AR:-1);y.cI=Q;return v}; POS=function(y,q){XH(y.G,function(Q){return Q.Y==q.Y})||y.G.push(q)}; ixg=function(y){var q=br(y.LV().K,1);return Cf(y,q)}; Cf=function(y,q,Q){return q>=15E3?!0:y.BI?(Q===void 0?0:Q)?!0:y.N>0?q>=y.N/2:y.gp>0?q>=y.gp:!1:!1}; Xkf=function(y){var q=PG(y.Jd.Xf,2),Q=y.lF.N,p=y.Jd,v=mZ(y),d=Xr(v.Y),T=Xr(v.G),O=Xr(p.volume),w=PG(v.X,2),J=PG(v.N$,2),F=PG(p.Xf,2),Y=PG(v.m3,2),f=PG(v.gp,2);p=PG(p.tP,2);var h=y.gP().clone().round();y=y.US()?y.US().clone().round():null;v=Wi(v,!1);return{oJj:q,uQ:Q,W5:d,C0:T,Lb:O,c5:w,IY:J,Xf:F,N9:Y,O3:f,tP:p,position:h,D7:y,Fs:v}}; COi=function(y,q){m_H(y.K,q,function(){return{oJj:0,uQ:void 0,W5:-1,C0:-1,Lb:-1,c5:-1,IY:-1,Xf:-1,N9:-1,O3:-1,tP:-1,position:void 0,D7:void 0,Fs:[]}}); y.K[q]=Xkf(y)}; m_H=function(y,q,Q){for(var p=y.length;p0?1:0;Y.atos=ff(J.K); Y.ssb=ff(J.Os,!1);Y.amtos=Zv9(J.K,!1);Y.uac=y.cB;Y.vpt=J.N.K;F=="nio"&&(Y.nio=1,Y.avms="nio");Y.gmm="4";Y.gdr=Cf(y,J.N.K,!0)?1:0;Y.efpf=y.hw;if(F=="gsv"||F=="nis")F=y.vn,F.X>0&&(Y.nnut=F.X);Y.tcm=Bui(y);Y.nmt=y.Vm;Y.bt=y.Es;Y.pst=y.HI;Y.vpaid=y.j;Y.dur=y.N;Y.vmtime=y.cI;Y.is=y.lF.N;y.K.length>=1&&(Y.i0=y.K[0].uQ,Y.a0=[y.K[0].Lb],Y.c0=[y.K[0].Xf],Y.ss0=[y.K[0].tP],F=y.K[0].position,d=y.K[0].D7,Y.p0=F?GO(F):void 0,F&&d&&!UQ(d,F)&&(Y.cp0=GO(d)));y.K.length>=2&&(Y.i1=y.K[1].uQ,Y.a1=jJ(y.K[1].W5,y.K[1].Lb, y.K[1].C0),Y.c1=jJ(y.K[1].c5,y.K[1].Xf,y.K[1].IY),Y.ss1=jJ(y.K[1].N9,y.K[1].tP,y.K[1].O3),F=y.K[1].position,d=y.K[1].D7,Y.p1=F?GO(F):void 0,F&&d&&!UQ(d,F)&&(Y.cp1=GO(d)),Y.mtos1=y.K[1].Fs);y.K.length>=3&&(Y.i2=y.K[2].uQ,Y.a2=jJ(y.K[2].W5,y.K[2].Lb,y.K[2].C0),Y.c2=jJ(y.K[2].c5,y.K[2].Xf,y.K[2].IY),Y.ss2=jJ(y.K[2].N9,y.K[2].tP,y.K[2].O3),F=y.K[2].position,d=y.K[2].D7,Y.p2=F?GO(F):void 0,F&&d&&!UQ(d,F)&&(Y.cp2=GO(d)),Y.mtos2=y.K[2].Fs);y.K.length>=4&&(Y.i3=y.K[3].uQ,Y.a3=jJ(y.K[3].W5,y.K[3].Lb,y.K[3].C0), Y.c3=jJ(y.K[3].c5,y.K[3].Xf,y.K[3].IY),Y.ss3=jJ(y.K[3].N9,y.K[3].tP,y.K[3].O3),F=y.K[3].position,d=y.K[3].D7,Y.p3=F?GO(F):void 0,F&&d&&!UQ(d,F)&&(Y.cp3=GO(d)),Y.mtos3=y.K[3].Fs);Y.cs=o4b(y.lF);q&&(Y.ic=rif(y.lF),Y.dvpt=J.N.W,Y.dvs=Kf(J.W,.5),Y.dfvs=Kf(J.W,1),Y.davs=Kf(J.K,.5),Y.dafvs=Kf(J.K,1),Q&&(J.N.W=0,EBj(J.W),EBj(J.K)),y.G0()&&(Y.dtos=J.Sj,Y.dav=J.j,Y.dtoss=y.ou+1,Q&&(J.Sj=0,J.j=0,y.ou++)),Y.dat=J.J.W,Y.dft=J.cI.W,Q&&(J.J.W=0,J.cI.W=0));Y.ps=[O.J.width,O.J.height];Y.bs=[c0(O.K),O.K.getHeight()]; Y.scs=[O.Y.width,O.Y.height];Y.dom=O.domain;y.KD&&(Y.vds=y.KD);if(y.G.length>0||y.xM)q=g.zX(y.G),y.xM&&q.push(y.xM),Y.pings=g.W5(q,function(f){return f.toString()}); q=g.W5(g.DQ(y.G,function(f){return f.G()}),function(f){return f.getId()}); kfC(q);Y.ces=q;y.W&&(Y.vmer=y.W);y.C&&(Y.vmmk=y.C);y.Sj&&(Y.vmiec=y.Sj);Y.avms=y.vn?y.vn.getName():"ns";y.vn&&g.WK(Y,y.vn.S_());p?(Y.c=PG(y.Jd.Xf,2),Y.ss=PG(y.Jd.tP,2)):Y.tth=cG()-QM3;Y.mc=PG(J.N$,2);Y.nc=PG(J.X,2);Y.mv=Xr(J.G);Y.nv=Xr(J.Y);Y.lte=PG(y.RT,2);p=mZ(y,v);Wi(J);Y.qmtos=Wi(p);Y.qnc=PG(p.X,2);Y.qmv=Xr(p.G);Y.qnv=Xr(p.Y);Y.qas=p.Y>0?1:0;Y.qi=y.NB;Y.avms||(Y.avms="geo");Y.psm=J.Es.K;Y.psv=J.Es.getValue();Y.psfv=J.BI.getValue();Y.psa=J.Ty.getValue();w=Isg(w.JU);w.length&&(Y.veid=w);y.J&&g.WK(Y, Inj(y.J));Y.avas=y.Gs();Y.vs=y.h_();Y.co=pv9(y);Y.tm=J.vI;Y.tu=J.LK;return Y}; yOp=function(y,q){if(g.Eu(v$9,q))return!0;var Q=y.Uf[q];return Q!==void 0?(y.Uf[q]=!0,!Q):!1}; pv9=function(y){var q=y.vI.toString(10).padStart(2,"0");q=""+y.Se+q;y.vI<99&&y.vI++;return q}; TFg=function(){this.K={};var y=Yn();QN(this,y,document);var q=dHi();try{if("1"==q){for(var Q=y.parent;Q!=y.top;Q=Q.parent)QN(this,Q,Q.document);QN(this,y.top,y.top.document)}}catch(p){}}; dHi=function(){var y=document.documentElement;try{if(!Fi(Yn().top))return"2";var q=[],Q=Yn(y.ownerDocument);for(y=Q;y!=Q.top;y=y.parent)if(y.frameElement)q.push(y.frameElement);else break;return q&&q.length!=0?"1":"0"}catch(p){return"2"}}; QN=function(y,q,Q){ZQ(Q,"mousedown",function(){return V59(y)},301); ZQ(q,"scroll",function(){return OAi(y)},302); ZQ(Q,"touchmove",function(){return wv9(y)},303); ZQ(Q,"mousemove",function(){return JOC(y)},304); ZQ(Q,"keydown",function(){return F69(y)},305)}; V59=function(y){g.qO(y.K,function(q){q.N>1E5||++q.N})}; OAi=function(y){g.qO(y.K,function(q){q.K>1E5||++q.K})}; wv9=function(y){g.qO(y.K,function(q){q.K>1E5||++q.K})}; F69=function(y){g.qO(y.K,function(q){q.W>1E5||++q.W})}; JOC=function(y){g.qO(y.K,function(q){q.Y>1E5||++q.Y})}; Yqi=function(){this.K=[];this.W=[]}; pY=function(y,q){return g.ZC(y.K,function(Q){return Q.NB==q})}; foH=function(y,q){return q?g.ZC(y.K,function(Q){return Q.mY.j_==q}):null}; hGC=function(y,q){return g.ZC(y.W,function(Q){return Q.x0()==2&&Q.NB==q})}; dr=function(){var y=v2;return y.K.length==0?y.W:y.W.length==0?y.K:g.lG(y.W,y.K)}; bAj=function(y,q){y=q.x0()==1?y.K:y.W;var Q=We(y,function(p){return p==q}); return Q!=-1?(y.splice(Q,1),q.vn&&q.vn.unobserve(),q.dispose(),!0):!1}; $HS=function(y){var q=v2;if(bAj(q,y)){switch(y.x0()){case 0:var Q=function(){return null}; case 2:Q=function(){return hGC(q,y.NB)}; break;case 1:Q=function(){return pY(q,y.NB)}}for(var p=Q();p;p=Q())bAj(q,p)}}; K69=function(y){var q=v2;y=g.DQ(y,function(Q){return!foH(q,Q.mY.j_)}); q.K.push.apply(q.K,g.hH(y))}; xH2=function(y){var q=[];g.mS(y,function(Q){XH(v2.K,function(p){return p.mY.j_===Q.mY.j_&&p.NB===Q.NB})||(v2.K.push(Q),q.push(Q))})}; Ty=function(){this.K=this.W=null}; W6S=function(y,q){function Q(p,v){q(p,v)} if(y.W==null)return!1;y.K=g.ZC(y.W,function(p){return p!=null&&p.md()}); y.K&&(y.K.init(Q)?vBD(y.K.K):q(y.K.K.k7(),y.K));return y.K!=null}; VN=function(y){y=ZA9(y);d5.call(this,y.length?y[y.length-1]:new jD(ln,0));this.N=y;this.W=null}; ZA9=function(y){if(!y.length)return[];y=(0,g.DQ)(y,function(Q){return Q!=null&&Q.zU()}); for(var q=1;qQ.time?q:Q},y[0])}; Fu=function(y){y=y===void 0?ln:y;d5.call(this,new jD(y,2))}; YU=function(){var y=L62();jD.call(this,ln.top,y,"geo")}; L62=function(){JR();var y=mD();return y.N||y.W?0:2}; ao3=function(){}; fY=function(){this.done=!1;this.K={GG:0,rF:0,Agb:0,Zz:0,G7:-1,gE:0,Sx:0,yJ:0,Inb:0};this.J=null;this.G=!1;this.N=null;this.X=0;this.W=new qW(this)}; bm=function(){var y=hv;y.G||(y.G=!0,NF3(y,function(){return y.Y.apply(y,g.hH(g.nS.apply(0,arguments)))}),y.Y())}; Sq2=function(){kB(ao3);var y=kB(Ty);y.K!=null&&y.K.K?vBD(y.K.K):mD().update(ln)}; $U=function(y,q,Q){if(!y.done&&(y.W.cancel(),q.length!=0)){y.N=null;try{Sq2();var p=cG();JR().J=p;if(kB(Ty).K!=null)for(var v=0;v=0?cG()-Uw:-1,O=cG();v.K.G7==-1&&(T=O);var w=mD(),J=JR(),F=RU(J.JU),Y=dr();try{if(Y.length>0){var f=w.K;f&&(F.bs=[c0(f),f.getHeight()]);var h=w.J;h&&(F.ps=[h.width,h.height]);ln.screen&&(F.scs=[ln.screen.width,ln.screen.height])}else F.url=encodeURIComponent(ln.location.href.substring(0,512)),d.referrer&&(F.referrer=encodeURIComponent(d.referrer.substring(0,512))); F.tt=T;F.pt=Uw;F.bin=J.W;ln.google_osd_load_pub_page_exp!==void 0&&(F.olpp=ln.google_osd_load_pub_page_exp);F.deb=[1,v.K.GG,v.K.rF,v.K.Zz,v.K.G7,0,v.W.W,v.K.gE,v.K.Sx,v.K.yJ,v.K.Inb,-1].join(";");F.tvt=RG3(v,O);w.W&&(F.inapp=1);if(ln!==null&&ln!=ln.top){Y.length>0&&(F.iframe_loc=encodeURIComponent(ln.location.href.substring(0,512)));var b=w.X;F.is=[c0(b),b.getHeight()]}}catch(Z){F.error=1}hv.N=F}f=g.KM(hv.N);h=JR().K;SL(h.N,"prf")==1?(b=new Vr,v=h.K,d=0,v.K>-1&&(d=v.N.K.now()-v.K),b=Y$(b,1,fx(v.Y+ d),0),v=h.K,b=Y$(b,5,Wk(v.K>-1?v.W+1:v.W),0),b=Y$(b,2,N_(h.W.K.N()),"0"),b=Y$(b,3,N_(h.W.K.W()),"0"),h=Y$(b,4,N_(h.W.K.K()),"0"),b={},h=(b.pf=g.Rq(h.N()),b)):h={};g.WK(f,h);g.WK(q,p,Q,f,y())}])}; loi=function(){var y=M59||ln;if(!y)return"";var q=[];if(!y.location||!y.location.href)return"";q.push("url="+encodeURIComponent(y.location.href.substring(0,512)));y.document&&y.document.referrer&&q.push("referrer="+encodeURIComponent(y.document.referrer.substring(0,512)));return q.join("&")}; KY=function(){var y="youtube.player.web_20250909_14_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250909_14_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250909_14_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250909_14_RC00".match(/_(\d{8})_\d+_RC\d+$/),q;if(((q=y)==null?void 0:q.length)==2)return y[1];y="youtube.player.web_20250909_14_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var Q;return((Q=y)==null?void 0:Q.length)==3?"20"+y[1]+y[2]:null}; zGp=function(){return"av.default_js".includes("ima_html5_sdk")?{S4:"ima",gD:null}:"av.default_js".includes("ima_native_sdk")?{S4:"nima",gD:null}:"av.default_js".includes("admob-native-video-javascript")?{S4:"an",gD:null}:"youtube.player.web_20250909_14_RC00".includes("cast_js_sdk")?{S4:"cast",gD:KY()}:"youtube.player.web_20250909_14_RC00".includes("youtube.player.web")?{S4:"yw",gD:KY()}:"youtube.player.web_20250909_14_RC00".includes("outstream_web_client")?{S4:"out",gD:KY()}:"youtube.player.web_20250909_14_RC00".includes("drx_rewarded_web")? {S4:"r",gD:KY()}:"youtube.player.web_20250909_14_RC00".includes("gam_native_web_video")?{S4:"n",gD:KY()}:"youtube.player.web_20250909_14_RC00".includes("admob_interstitial_video")?{S4:"int",gD:KY()}:{S4:"j",gD:null}}; ZA=function(y,q){var Q={sv:"968"};xU!==null&&(Q.v=xU);Q.cb=DHS;Q.nas=v2.K.length;Q.msg=y;q!==void 0&&(y=uk9(q))&&(Q.e=W2[y]);return Q}; tv=function(y){return MO(y,"custom_metric_viewable")}; uk9=function(y){var q=tv(y)?"custom_metric_viewable":y.toLowerCase();return fM(yN,function(Q){return Q==q})}; Iof=function(){this.K=void 0;this.W=!1;this.N=0;this.Y=-1;this.J="tos"}; cOC=function(y){try{var q=y.split(",");return q.length>g.Jn(n$2).length?null:tl(q,function(Q,p){p=p.toLowerCase().split("=");if(p.length!=2||g$b[p[0]]===void 0||!g$b[p[0]](p[1]))throw Error("Entry ("+p[0]+", "+p[1]+") is invalid.");Q[p[0]]=p[1];return Q},{})}catch(Q){return null}}; UH2=function(y,q){if(y.K==void 0)return 0;switch(y.J){case "mtos":return y.W?$8(q.K,y.K):$8(q.W,y.K);case "tos":return y.W?br(q.K,y.K):br(q.W,y.K)}return 0}; El=function(y,q,Q,p){r5.call(this,q,p);this.X=y;this.C=Q}; kU=function(){}; LY=function(y){r5.call(this,"fully_viewable_audible_half_duration_impression",y)}; aK=function(y){this.K=y}; Na=function(y,q){r5.call(this,y,q)}; SJ=function(y){oz.call(this,"measurable_impression",y)}; H2=function(){aK.apply(this,arguments)}; RK=function(y,q,Q){Bi.call(this,y,q,Q)}; sl=function(y){y=y===void 0?ln:y;d5.call(this,new jD(y,2))}; Ma=function(y,q,Q){Bi.call(this,y,q,Q)}; lm=function(y){y=y===void 0?ln:y;d5.call(this,new jD(y,2))}; zy=function(){jD.call(this,ln,2,"mraid");this.Es=0;this.N$=this.m3=!1;this.X=null;this.W=ii8(this.N);this.Y.K=new g0(0,0,0,0);this.vI=!1}; DA=function(y,q,Q){y.b5("addEventListener",q,Q)}; eG8=function(y){JR().Y=!!y.b5("isViewable");DA(y,"viewableChange",rO9);y.b5("getState")==="loading"?DA(y,"ready",o$3):AO2(y)}; AO2=function(y){typeof y.W.h7.AFMA_LIDAR==="string"?(y.m3=!0,BFS(y)):(y.W.compatibility=3,y.X="nc",y.fail("w"))}; BFS=function(y){y.N$=!1;var q=SL(JR().JU,"rmmt")==1,Q=!!y.b5("isViewable");(q?!Q:1)&&aq().setTimeout(nW(524,function(){y.N$||(G6D(y),g4(540,Error()),y.X="mt",y.fail("w"))}),500); PD9(y);DA(y,y.W.h7.AFMA_LIDAR,iAC)}; PD9=function(y){var q=SL(JR().JU,"sneio")==1,Q=y.W.h7.AFMA_LIDAR_EXP_1!==void 0,p=y.W.h7.AFMA_LIDAR_EXP_2!==void 0;(q=q&&p)&&(y.W.h7.AFMA_LIDAR_EXP_2=!0);Q&&(y.W.h7.AFMA_LIDAR_EXP_1=!q)}; G6D=function(y){y.b5("removeEventListener",y.W.h7.AFMA_LIDAR,iAC);y.m3=!1}; Xv2=function(y,q){if(y.b5("getState")==="loading")return new g.Gq(-1,-1);q=y.b5(q);if(!q)return new g.Gq(-1,-1);y=parseInt(q.width,10);q=parseInt(q.height,10);return isNaN(y)||isNaN(q)?new g.Gq(-1,-1):new g.Gq(y,q)}; o$3=function(){try{var y=kB(zy);y.b5("removeEventListener","ready",o$3);AO2(y)}catch(q){g4(541,q)}}; iAC=function(y,q){try{var Q=kB(zy);Q.N$=!0;var p=y?new g0(y.y,y.x+y.width,y.y+y.height,y.x):new g0(0,0,0,0);var v=cG(),d=yf();var T=new er(v,d,Q);T.K=p;T.volume=q;Q.Gm(T)}catch(O){g4(542,O)}}; rO9=function(y){var q=JR(),Q=kB(zy);y&&!q.Y&&(q.Y=!0,Q.vI=!0,Q.X&&Q.fail("w",!0))}; um=function(){this.isInitialized=!1;this.K=this.W=null;var y={};this.X=(y.start=this.HR,y.firstquartile=this.ZA,y.midpoint=this.bL,y.thirdquartile=this.zX,y.complete=this.VW,y.error=this.x5,y.pause=this.xi,y.resume=this.KE,y.skip=this.k5,y.viewable_impression=this.Xh,y.mute=this.P8,y.unmute=this.P8,y.fullscreen=this.hn,y.exitfullscreen=this.XA,y.fully_viewable_audible_half_duration_impression=this.Xh,y.measurable_impression=this.Xh,y.abandon=this.xi,y.engagedview=this.Xh,y.impression=this.Xh,y.creativeview= this.Xh,y.progress=this.P8,y.custom_metric_viewable=this.Xh,y.bufferstart=this.xi,y.bufferfinish=this.KE,y.audio_measurable=this.Xh,y.audio_audible=this.Xh,y);y={};this.C=(y.overlay_resize=this.BR,y.abandon=this.eF,y.close=this.eF,y.collapse=this.eF,y.overlay_unmeasurable_impression=function(q){return qa(q,"overlay_unmeasurable_impression",yf())},y.overlay_viewable_immediate_impression=function(q){return qa(q,"overlay_viewable_immediate_impression",yf())},y.overlay_unviewable_impression=function(q){return qa(q, "overlay_unviewable_impression",yf())},y.overlay_viewable_end_of_session_impression=function(q){return qa(q,"overlay_viewable_end_of_session_impression",yf())},y); JR().W=3;mHs(this);this.N=null}; IK=function(y,q,Q,p){y=y.Pz(null,p,!0,q);y.Y=Q;K69([y]);return y}; CDg=function(y,q,Q){R2C(q);var p=y.K;g.mS(q,function(v){var d=g.W5(v.criteria,function(T){var O=cOC(T);if(O==null)T=null;else if(T=new Iof,O.visible!=null&&(T.K=O.visible/100),O.audible!=null&&(T.W=O.audible==1),O.time!=null){var w=O.timetype=="mtos"?"mtos":"tos",J=cHi(O.time,"%")?"%":"ms";O=parseInt(O.time,10);J=="%"&&(O/=100);T.setTime(O,J,w)}return T}); XH(d,function(T){return T==null})||POS(Q,new El(v.id,v.event,d,p))})}; yLs=function(){var y=[],q=JR();y.push(kB(YU));SL(q.JU,"mvp_lv")&&y.push(kB(zy));q=[new sl,new lm];q.push(new VN(y));q.push(new Fu(ln));return q}; qSC=function(y){if(!y.isInitialized){y.isInitialized=!0;try{var q=cG(),Q=JR(),p=mD();Uw=q;Q.N=79463069;y.W!=="o"&&(M59=PG8(ln));if(f02()){hv.K.rF=0;hv.K.G7=cG()-q;var v=yLs(),d=kB(Ty);d.W=v;W6S(d,function(){Ul()})?hv.done||(HAS(),Qf(d.K.K,y),bm()):p.N?Ul():bm()}else rr=!0}catch(T){throw v2.reset(),T; }}}; Av=function(y){hv.W.cancel();oK=y;hv.done=!0}; eJ=function(y){if(y.W)return y.W;var q=kB(Ty).K;if(q)switch(q.getName()){case "nis":y.W="n";break;case "gsv":y.W="m"}y.W||(y.W="h");return y.W}; B2=function(y,q,Q){if(y.K==null)return q.KD|=4,!1;y=j59(y.K,Q,q);q.KD|=y;return y==0}; Ul=function(){var y=[new Fu(ln)],q=kB(Ty);q.W=y;W6S(q,function(){Av("i")})?hv.done||(HAS(),bm()):Av("i")}; Q5g=function(y,q){if(!y.RH){var Q=qa(y,"start",yf());Q=y.XP.K(Q).K;var p={id:"lidarv"};p.r=q;p.sv="968";xU!==null&&(p.v=xU);WG(Q,function(v,d){return p[v]=v=="mtos"||v=="tos"?d:encodeURIComponent(d)}); q=loi();WG(q,function(v,d){return p[v]=encodeURIComponent(d)}); q="//pagead2.googlesyndication.com/pagead/gen_204?"+Op(Vf(new TO,p));bvi(q);y.RH=!0}}; Gy=function(y,q,Q){$U(hv,[y],!yf());COi(y,Q);Q!=4&&m_H(y.m3,Q,y.Ts);return qa(y,q,yf())}; mHs=function(y){sMD(function(){var q=po9();y.W!=null&&(q.sdk=y.W);var Q=kB(Ty);Q.K!=null&&(q.avms=Q.K.getName());return q})}; v6b=function(y,q,Q,p){var v=foH(v2,Q);v!==null&&v.NB!==q&&(y.Ky(v),v=null);v||(q=y.Pz(Q,cG(),!1,q),v2.W.length==0&&(JR().N=79463069),xH2([q]),v=q,v.Y=eJ(y),p&&(v.Ty=p));return v}; dED=function(y,q){var Q=y[q];Q!==void 0&&Q>0&&(y[q]=Math.floor(Q*1E3))}; po9=function(){var y=mD(),q={},Q={},p={};return Object.assign({},(q.sv="968",q),xU!==null&&(Q.v=xU,Q),(p["if"]=y.N?"1":"0",p.nas=String(v2.K.length),p))}; P2=function(y){r5.call(this,"audio_audible",y)}; im=function(y){oz.call(this,"audio_measurable",y)}; Xu=function(){aK.apply(this,arguments)}; mv=function(){}; TRS=function(y){this.K=y}; j59=function(y,q,Q){y=y.W();if(typeof y==="function"){var p={};var v={};p=Object.assign({},xU!==null&&(p.v=xU,p),(v.sv="968",v.cb=DHS,v.e=Va8(q),v));v=qa(Q,q,yf());g.WK(p,v);Q.P6[q]=v;p=Q.x0()==2?hlH(p).join("&"):Q.XP.K(p).K;try{return y(Q.NB,p,q),0}catch(d){return 2}}else return 1}; Va8=function(y){var q=tv(y)?"custom_metric_viewable":y;y=fM(yN,function(Q){return Q==q}); return W2[y]}; CY=function(){um.call(this);this.G=null;this.J=!1;this.Y="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; OQj=function(y,q,Q){Q=Q.opt_configurable_tracking_events;y.K!=null&&Array.isArray(Q)&&CDg(y,Q,q)}; wog=function(y,q,Q){var p=pY(v2,q);p||(p=Q.opt_nativeTime||-1,p=IK(y,q,eJ(y),p),Q.opt_osdId&&(p.Ty=Q.opt_osdId));return p}; JLC=function(y,q,Q){var p=pY(v2,q);p||(p=IK(y,q,"n",Q.opt_nativeTime||-1));return p}; FR9=function(y,q){var Q=pY(v2,q);Q||(Q=IK(y,q,"h",-1));return Q}; YSf=function(y){JR();switch(eJ(y)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; bQ9=function(y,q,Q,p){Q=Q===void 0?{}:Q;var v={};g.WK(v,{opt_adElement:void 0,opt_fullscreen:void 0},Q);var d=y.qY(q,Q);Q=d?d.XP:y.Zi();if(v.opt_bounds)return Q.K(ZA("ol",p));if(p!==void 0)if(uk9(p)!==void 0)if(rr)y=ZA("ue",p);else if(qSC(y),oK=="i")y=ZA("i",p),y["if"]=0;else if(q=y.qY(q,v)){b:{oK=="i"&&(q.bk=!0);d=v.opt_fullscreen;d!==void 0&&Hi(q,!!d);var T;if(d=!mD().W)(d=uo(g.cK(),"CrKey")&&!(uo(g.cK(),"CrKey")&&uo(g.cK(),"SmartSpeaker"))||uo(g.cK(),"PlayStation")||uo(g.cK(),"Roku")||q2j()||uo(g.cK(), "Xbox"))||(d=g.cK(),d=uo(d,"AppleTV")||uo(d,"Apple TV")||uo(d,"CFNetwork")||uo(d,"tvOS")),d||(d=g.cK(),d=uo(d,"sdk_google_atv_x86")||uo(d,"Android TV")),d=!d;d&&(aq(),d=Jl(CW)===0);if(T=d){switch(q.x0()){case 1:Q5g(q,"pv");break;case 2:y.qn(q)}Av("pv")}d=p.toLowerCase();if(T=!T)T=SL(JR().JU,"ssmol")&&d==="loaded"?!1:g.Eu(fbC,d);if(T&&q.iV==0){oK!="i"&&(hv.done=!1);T=v!==void 0?v.opt_nativeTime:void 0;AR=T=typeof T==="number"?T:cG();q.WV=!0;var O=yf();q.iV=1;q.Uf={};q.Uf.start=!1;q.Uf.firstquartile= !1;q.Uf.midpoint=!1;q.Uf.thirdquartile=!1;q.Uf.complete=!1;q.Uf.resume=!1;q.Uf.pause=!1;q.Uf.skip=!1;q.Uf.mute=!1;q.Uf.unmute=!1;q.Uf.viewable_impression=!1;q.Uf.measurable_impression=!1;q.Uf.fully_viewable_audible_half_duration_impression=!1;q.Uf.fullscreen=!1;q.Uf.exitfullscreen=!1;q.ou=0;O||(q.LV().C=T);$U(hv,[q],!O)}(T=q.EA[d])&&Iz(q.lF,T);SL(JR().JU,"fmd")||g.Eu(hHb,d)&&q.xM&&q.xM.W(q,null);switch(q.x0()){case 1:var w=tv(d)?y.X.custom_metric_viewable:y.X[d];break;case 2:w=y.C[d]}if(w&&(p=w.call(y, q,v,p),SL(JR().JU,"fmd")&&g.Eu(hHb,d)&&q.xM&&q.xM.W(q,null),p!==void 0)){v=ZA(void 0,d);g.WK(v,p);p=v;break b}p=void 0}q.iV==3&&y.Ky(q);y=p}else y=ZA("nf",p);else y=void 0;else rr?y=ZA("ue"):d?(y=ZA(),g.WK(y,qqp(d,!0,!1,!1))):y=ZA("nf");return typeof y==="string"?Q.K():Q.K(y)}; $ES=function(y,q){q&&(y.Y=q)}; KRj=function(y){var q={};return q.viewability=y.K,q.googleViewability=y.W,q}; xEC=function(y,q,Q){Q=Q===void 0?{}:Q;y=bQ9(kB(CY),q,Q,y);return KRj(y)}; y$=function(y){var q=g.nS.apply(1,arguments).filter(Boolean).join("&");if(!q)return y;var Q=y.match(/[?&]adurl=/);return Q?y.slice(0,Q.index+1)+q+"&"+y.slice(Q.index+1):y+(y.indexOf("?")<0?"?":"&")+q}; qS=function(y,q){return q?"&"+y+"="+encodeURIComponent(q):""}; WR8=function(y){var q=y.url;y=y.JSp;this.W=q;this.Y=y;this.N=(new Date).getTime()-17040672E5;this.K={};for(var Q=/[?&]([^&=]+)=([^&]*)/g;y=Q.exec(q);)this.K[y[1]]=y[2]}; ZQS=function(y){y=y.Y;if(!y)return"";var q=qS("uap",y.platform)+qS("uapv",y.platformVersion)+qS("uafv",y.uaFullVersion)+qS("uaa",y.architecture)+qS("uam",y.model)+qS("uab",y.bitness);y.fullVersionList&&(q+="&uafvl="+encodeURIComponent(y.fullVersionList.map(function(Q){return encodeURIComponent(Q.brand)+";"+encodeURIComponent(Q.version)}).join("|"))); y.wow64!=null&&(q+="&uaw="+Number(y.wow64));return q.slice(1)}; kRb=function(y,q,Q,p,v){var d=window;var T=T===void 0?!1:T;var O;Q?O=(T===void 0?0:T)?"//ep1.adtrafficquality.google/bg/"+MR(Q)+".js":"//pagead2.googlesyndication.com/bg/"+MR(Q)+".js":O="";T=T===void 0?!1:T;Q=d.document;var w={};q&&(w._scs_=q);w._bgu_=O;w._bgp_=p;w._li_="v_h.3.0.0.0";v&&(w._upb_=v);(q=d.GoogleTyFxhY)&&typeof q.push=="function"||(q=d.GoogleTyFxhY=[]);q.push(w);q=v0(Q).createElement("SCRIPT");q.type="text/javascript";q.async=!0;y=(T===void 0?0:T)?g.yH(taj,MR(y)+".js"):g.yH(E6H,MR(y)+ ".js");g.tK(q,y);(d=(d.GoogleTyFxhYEET||{})[q.src])?d():Q.getElementsByTagName("head")[0].appendChild(q)}; LRD=function(){try{var y,q;return!!((y=window)==null?0:(q=y.top)==null?0:q.location.href)&&!1}catch(Q){return!0}}; jP=function(y,q,Q){Q=Q===void 0?Error():Q;var p=Error.call(this);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.code=y;q+=":";Q instanceof Error?(this.message=q+Q.message,this.stack=Q.stack||""):(this.message=q+String(Q),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; pR=function(){var y=abb();y=y===void 0?"bevasrsg":y;return new Promise(function(q){var Q=window===window.top?window:LRD()?window:window.top,p=Q[y],v;((v=p)==null?0:v.bevasrs)?q(new Q$(p.bevasrs)):(p||(p={},p=(p.nqfbel=[],p),Q[y]=p),p.nqfbel.push(function(d){q(new Q$(d))}))})}; NRs=function(y){var q={c:y.e4,e:y.ji,mc:y.gz,me:y.yl};y.lC&&(q.co={c:y.lC.Cj,a:y.lC.Vj,s:y.lC.ov});return q}; vP=function(y){g.I.call(this);this.wpc=y}; Q$=function(y){g.I.call(this);var q=this;this.K6=y;this.N="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.W=void 0;this.Lz=this.K6.p;this.Y=this.nf.bind(this);this.addOnDisposeCallback(function(){return void SS9(q)})}; HQC=function(y){var q;return g.M(function(Q){if(Q.K==1){if(!y.K6.wpc)throw new jP(30,"NWA");return y.K?Q.return(y.K):g.R(Q,y.K6.wpc(),2)}q=Q.W;y.K=new vP(q);return Q.return(y.K)})}; SS9=function(y){y.W!==void 0&&(y.N.forEach(function(q){var Q;(Q=y.W)==null||Q.removeEventListener(q,y.Y)}),y.W=void 0)}; RHH=function(y){var q=q===void 0?51:q;var Q=[];Hv(y,dD,6).forEach(function(p){lD(p,2)<=q&&Q.push(lD(p,1))}); return Q}; s53=function(y){var q=q===void 0?51:q;var Q=[];Hv(y,dD,6).forEach(function(p){lD(p,2)>q&&Q.push(lD(p,1))}); return Q}; MaC=function(y){y.then(function(){},function(){})}; Te=function(){g.I.apply(this,arguments);this.W=1}; V$=function(y){return{fieldType:2,fieldName:y}}; g.ON=function(y){return{fieldType:3,fieldName:y}}; lbb=function(y){this.K=y;y.ZU("/client_streamz/bg/frs",g.ON("mk"))}; zHH=function(y){this.K=y;y.ZU("/client_streamz/bg/wrl",g.ON("mn"),V$("ac"),V$("sc"),g.ON("rk"),g.ON("mk"))}; DE8=function(y){this.K=y;y.Ov("/client_streamz/bg/ec",g.ON("en"),g.ON("mk"))}; u38=function(y){this.K=y;y.ZU("/client_streamz/bg/el",g.ON("en"),g.ON("mk"))}; IbS=function(y){this.K=y;y.Ov("/client_streamz/bg/cec",V$("ec"),g.ON("mk"))}; n69=function(y){this.K=y;y.Ov("/client_streamz/bg/po/csc",V$("cs"),g.ON("mk"))}; g63=function(y){this.K=y;y.Ov("/client_streamz/bg/po/ctav",g.ON("av"),g.ON("mk"))}; cL9=function(y){this.K=y;y.Ov("/client_streamz/bg/po/cwsc",g.ON("su"),g.ON("mk"))}; UEC=function(y){this.Ib=GE(y)}; rLC=function(y,q){return kq2(y,q,XKD)}; wD=function(y){this.Ib=GE(y)}; Jj=function(y){this.Ib=GE(y)}; FG=function(y){this.Ib=GE(y)}; YK=function(y){this.Ib=GE(y)}; fR=function(y){this.Ib=GE(y)}; hj=function(y){this.Ib=GE(y)}; o6C=function(y){this.Ib=GE(y)}; BR9=function(y){var q=new hj;q=cv(q,1,y.W);var Q=ALj(y);q=kq2(q,Q,dRi);Q=[];for(var p=[],v=g.t(y.K.keys()),d=v.next();!d.done;d=v.next())p.push(d.value.split(","));for(v=0;v>>31)&4294967295;Y=v[0];var b=v[1],Z=v[2],k=v[3],S=v[4];for(h=0;h<80;h++){if(h<40)if(h<20){var N=k^b&(Z^k);var l=1518500249}else N=b^Z^k,l=1859775393;else h<60?(N=b&Z|k&(b|Z),l=2400959708):(N=b^Z^k,l=3395469782);N=((Y<<5|Y>>>27)&4294967295)+N+S+l+f[h]&4294967295;S=k;k=Z;Z=(b<<30|b>>>2)&4294967295;b=Y;Y=N}v[0]=v[0]+Y&4294967295;v[1]=v[1]+b&4294967295;v[2]= v[2]+Z&4294967295;v[3]=v[3]+k&4294967295;v[4]=v[4]+S&4294967295} function Q(Y,f){if(typeof Y==="string"){Y=unescape(encodeURIComponent(Y));for(var h=[],b=0,Z=Y.length;b=56;h--)d[h]=f&255,f>>>=8;q(d);for(h=f=0;h<5;h++)for(var b=24;b>=0;b-=8)Y[f++]=v[h]>>b&255;return Y} for(var v=[],d=[],T=[],O=[128],w=1;w<64;++w)O[w]=0;var J,F;y();return{reset:y,update:Q,digest:p,xr:function(){for(var Y=p(),f="",h=0;h1)));T=T.next)v||(d=T);v&&(Q.K==0&&p==1?rRH(Q,q):(d?(p=d,p.next==Q.Y&&(Q.Y=p),p.next=p.next.next):ob8(Q),AR2(Q,v,3,q)))}y.N=null}else lu(y,3,q)}; ny=function(y,q){y.W||y.K!=2&&y.K!=3||euD(y);y.Y?y.Y.next=q:y.W=q;y.Y=q}; B43=function(y,q,Q,p){var v=Dj(null,null,null);v.K=new g.zD(function(d,T){v.N=q?function(O){try{var w=q.call(p,O);d(w)}catch(J){T(J)}}:d; v.W=Q?function(O){try{var w=Q.call(p,O);w===void 0&&O instanceof cq?T(O):d(w)}catch(J){T(J)}}:T}); v.K.N=y;ny(y,v);return v.K}; lu=function(y,q,Q){y.K==0&&(y===Q&&(q=3,Q=new TypeError("Promise cannot resolve to itself")),y.K=1,nb8(Q,y.UKB,y.EJK,y)||(y.X=Q,y.K=q,y.N=null,euD(y),q!=3||Q instanceof cq||GTb(y,Q)))}; nb8=function(y,q,Q,p){if(y instanceof g.zD)return U19(y,q,Q,p),!0;if(y)try{var v=!!y.$goog_Thenable}catch(T){v=!1}else v=!1;if(v)return y.then(q,Q,p),!0;if(g.dk(y))try{var d=y.then;if(typeof d==="function")return P_H(y,d,q,Q,p),!0}catch(T){return Q.call(p,T),!0}return!1}; P_H=function(y,q,Q,p,v){function d(w){O||(O=!0,p.call(v,w))} function T(w){O||(O=!0,Q.call(v,w))} var O=!1;try{q.call(y,T,d)}catch(w){d(w)}}; euD=function(y){y.G||(y.G=!0,g.MN(y.RC,y))}; ob8=function(y){var q=null;y.W&&(q=y.W,y.W=q.next,q.next=null);y.W||(y.Y=null);return q}; AR2=function(y,q,Q,p){if(Q==3&&q.W&&!q.Y)for(;y&&y.J;y=y.N)y.J=!1;if(q.K)q.K.N=null,iWb(q,Q,p);else try{q.Y?q.N.call(q.context):iWb(q,Q,p)}catch(v){XG3.call(null,v)}RuS(Iuj,q)}; iWb=function(y,q,Q){q==2?y.N.call(y.context,Q):y.W&&y.W.call(y.context,Q)}; GTb=function(y,q){y.J=!0;g.MN(function(){y.J&&XG3.call(null,q)})}; cq=function(y){$q.call(this,y)}; g.Un=function(y,q){g.Ky.call(this);this.Of=y||1;this.Iy=q||g.CS;this.oA=(0,g.wk)(this.YYp,this);this.hA=g.fh()}; g.ro=function(y,q,Q){if(typeof y==="function")Q&&(y=(0,g.wk)(y,Q));else if(y&&typeof y.handleEvent=="function")y=(0,g.wk)(y.handleEvent,y);else throw Error("Invalid listener argument");return Number(q)>2147483647?-1:g.CS.setTimeout(y,q||0)}; ow=function(y,q){var Q=null;return(new g.zD(function(p,v){Q=g.ro(function(){p(q)},y); Q==-1&&v(Error("Failed to schedule timer."))})).IE(function(p){g.CS.clearTimeout(Q); throw p;})}; g.A9=function(y){g.I.call(this);this.X=y;this.Y=0;this.N=100;this.J=!1;this.W=new Map;this.G=new Set;this.flushInterval=3E4;this.K=new g.Un(this.flushInterval);this.K.listen("tick",this.Ww,!1,this);g.n(this,this.K)}; m13=function(y){y.K.enabled||y.K.start();y.Y++;y.Y>=y.N&&y.Ww()}; C_s=function(y,q){return y.G.has(q)?void 0:y.W.get(q)}; yTD=function(y){for(var q=0;q2?y.K.statusText:""}catch(Q){q=""}y.Y=q+" ["+y.getStatus()+"]";JT8(y)}}finally{XO(y)}}}; XO=function(y,q){if(y.K){y.G&&(clearTimeout(y.G),y.G=null);var Q=y.K;y.K=null;q||y.dispatchEvent("ready");try{Q.onreadystatechange=null}catch(p){}}}; yn=function(y){var q=y.getStatus();a:switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var Q=!0;break a;default:Q=!1}if(!Q){if(q=q===0)y=g.b_(String(y.C))[1]||null,!y&&g.CS.self&&g.CS.self.location&&(y=g.CS.self.location.protocol.slice(0,-1)),q=!fQ9.test(y?y.toLowerCase():"");Q=q}return Q}; g.Cy=function(y){return y.K?y.K.readyState:0}; g.qv=function(y){try{return y.K?y.K.responseText:""}catch(q){return""}}; g.jT=function(y){try{if(!y.K)return null;if("response"in y.K)return y.K.response;switch(y.Sj){case "":case "text":return y.K.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in y.K)return y.K.mozResponseArrayBuffer}return null}catch(q){return null}}; g.hn3=function(y){var q={};y=(y.K&&g.Cy(y)>=2?y.K.getAllResponseHeaders()||"":"").split("\r\n");for(var Q=0;Q>1,q),Nv(y,y.length>>1)]}; ifj=function(y){var q=g.t(PrH(y,ST));y=q.next().value;q=q.next().value;return y.toString(16)+q.toString(16)}; XiH=function(y,q){var Q=PrH(q);y=new Uint32Array(y.buffer);q=y[0];var p=g.t(Q);Q=p.next().value;p=p.next().value;for(var v=1;v>>8|T<<24,T+=d|0,T^=O+38293,d=d<<3|d>>>29,d^=T,w=w>>>8|w<<24,w+=O|0,w^=J+38293,O=O<<3|O>>>29,O^=w;d=[d,T];y[v]^=d[0];v+1=Q?(globalThis.sessionStorage.removeItem(y),["e"]):["a",new Uint8Array(p.buffer,q+4)]}; Hw=function(y,q,Q){Q=Q===void 0?[]:Q;this.maxItems=y;this.K=q===void 0?0:q;this.W=Q}; yvb=function(y){var q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!q)return new Hw(y);var Q=q.split(",");if(Q.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Hw(y);q=Q.slice(1);q.length===1&&q[0]===""&&(q=[]);Q=Number(Q[0]);return isNaN(Q)||Q<0||Q>q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Hw(y)):new Hw(y,Q,q)}; ql9=function(y,q){this.logger=q;try{var Q=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(p){Q=!1}Q&&(this.index=yvb(y))}; jKs=function(y,q,Q,p,v){var d=y.index?Vn(y.logger,function(){return mWi(y.index,ifj(q),Q,p,v)},"W"):"u"; y.logger.lq(d)}; QK8=function(y,q,Q){var p=g.t(y.index?Vn(y.logger,function(){return Crf(ifj(q),Q)},"R"):["u"]),v=p.next().value; p=p.next().value;y.logger.DB(v);return p}; daS=function(y){function q(){Q-=p;Q-=v;Q^=v>>>13;p-=v;p-=Q;p^=Q<<8;v-=Q;v-=p;v^=p>>>13;Q-=p;Q-=v;Q^=v>>>12;p-=v;p-=Q;p^=Q<<16;v-=Q;v-=p;v^=p>>>5;Q-=p;Q-=v;Q^=v>>>3;p-=v;p-=Q;p^=Q<<10;v-=Q;v-=p;v^=p>>>15} y=p2i(y);for(var Q=2654435769,p=2654435769,v=314159265,d=y.length,T=d,O=0;T>=12;T-=12,O+=12)Q+=RT(y,O),p+=RT(y,O+4),v+=RT(y,O+8),q();v+=d;switch(T){case 11:v+=y[O+10]<<24;case 10:v+=y[O+9]<<16;case 9:v+=y[O+8]<<8;case 8:p+=y[O+7]<<24;case 7:p+=y[O+6]<<16;case 6:p+=y[O+5]<<8;case 5:p+=y[O+4];case 4:Q+=y[O+3]<<24;case 3:Q+=y[O+2]<<16;case 2:Q+=y[O+1]<<8;case 1:Q+=y[O+0]}q();return vUs.toString(v)}; p2i=function(y){for(var q=[],Q=0;Q>7,y.error.code]);p.set(Q,4);return p}; gN=function(y,q,Q){sI.call(this,y);this.Y=q;this.clientState=Q;this.K="S";this.W="q"}; nG=function(y){return globalThis.TextEncoder?(new TextEncoder).encode(y):g.H5(y)}; VJ9=function(y,q,Q){return y instanceof EI?DWf(y,Q,q,1):y.FE(Q)}; UI=function(y){g.I.call(this);var q=this;this.N=new g.$9;this.Y=0;this.W=void 0;this.state=2;this.K6=y.K6;this.eS=y.eS;this.OC=Object.assign({},OYi,y.OC||{});this.logger=y.K6.Oh();var Q;this.onError=(Q=y.onError)!=null?Q:function(){}; this.FY=y.FY||!1;if(w2D(y)){var p=this.K6;this.J=function(){return cTD(p).catch(function(T){T=q.reportError(new jP(q.K?20:32,"TRG:Disposed",T));q.W=T;var O;(O=q.K)==null||O.dispose();q.K=void 0;q.N.reject(T)})}; UW9(p,function(){return void cw(q)}); p.C===2&&cw(this)}else this.J=y.E1m,cw(this);var v=this.logger.share();v.OS("o");var d=new dN(v,"o");this.N.promise.then(function(){d.done();v.Kq();v.dispose()},function(){return void v.dispose()}); this.addOnDisposeCallback(function(){q.K?(q.K.dispose(),q.K=void 0):q.W?q.logger.Kq():(q.W=q.reportError(new jP(32,"TNP:Disposed")),q.logger.Kq(),q.N.reject(q.W))}); g.n(this,this.logger)}; Jvp=function(y,q){if(!(q instanceof jP))if(q instanceof et){var Q=Error(q.toString());Q.stack=q.stack;q=new jP(11,"EBH:Error",Q)}else q=new jP(12,"BSO:Unknown",q);return y.reportError(q)}; cw=function(y){var q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z;return g.M(function(k){switch(k.K){case 1:q=void 0;y.Y++;Q=new g.$9;y.K6 instanceof k9&&y.K6.Y.push(Q.promise);if(!y.FY){k.ej(2);break}p=new g.$9;setTimeout(function(){return void p.resolve()}); return g.R(k,p.promise,2);case 2:return v=y.logger.share(),g.EC(k,4,5),y.state=5,d={},T=[],g.R(k,aT(y.K6.snapshot({e4:d,f9:T}),y.OC.oWf,function(){return Promise.reject(new jP(15,"MDA:Timeout"))}),7); case 7:O=k.W;if(y.iB())throw new jP(y.K?20:32,"MDA:Disposed");w=T[0];y.state=6;return g.R(k,aT(VJ9(y.eS,v,O),y.OC.us,function(){return Promise.reject(new jP(10,"BWB:Timeout"))}),8); case 8:J=k.W;if(y.iB())throw new jP(y.K?20:32,"BWB:Disposed");y.state=7;q=Vn(v,function(){var N=Fv8(y,J,Q,w);N.N.promise.then(function(){return void y.J()}); return N},"i"); case 5:g.l8(k);v.dispose();g.zf(k,6);break;case 4:F=g.Rj(k);(Y=q)==null||Y.dispose();if(!y.W){f=Jvp(y,F);Q.resolve();var S;if(S=y.K6 instanceof k9&&y.Y<2)a:if(F instanceof jP)S=F.code!==32&&F.code!==20&&F.code!==10;else{if(F instanceof et)switch(F.code){case 2:case 13:case 14:case 4:break;default:S=!1;break a}S=!0}if(S)return h=(1+Math.random()*.25)*(y.K?6E4:1E3),b=setTimeout(function(){return void y.J()},h),y.addOnDisposeCallback(function(){return void clearTimeout(b)}),k.return(); y.W=f}v.Ea(y.K?13:14);y.N.reject(y.W);return k.return();case 6:y.state=8,y.Y=0,(Z=y.K)==null||Z.dispose(),y.K=q,y.N.resolve(),g.tH(k)}})}; Fv8=function(y,q,Q,p){var v=z6(q,2)*1E3;if(v<=0)throw new jP(31,"TTM:Invalid");if(Do(q,4))return new uW(y.logger,Do(q,4),v);if(!z6(q,3))return new DM(y.logger,nv(Fk(q,1)),v);if(!p)throw new jP(4,"PMD:Undefined");p=p(nv(Fk(q,1)));if(!(p instanceof Function))throw new jP(16,"APF:Failed");y.G=Math.floor((Date.now()+v)/1E3);y=new zQ(y.logger,p,z6(q,3),v);y.addOnDisposeCallback(function(){return void Q.resolve()}); return y}; YlC=function(y,q){q=q instanceof jP?q:new jP(5,"TVD:error",q);return y.reportError(q)}; Kv8=function(y,q,Q){try{if(y.iB())throw new jP(21,"BNT:disposed");if(!y.K&&y.W)throw y.W;var p,v;return(v=(p=fAS(y,q,Q))!=null?p:hbi(y,q,Q))!=null?v:bYg(y,q,Q)}catch(d){if(!q.yl)throw YlC(y,d);return $ag(y,Q,d)}}; fAS=function(y,q,Q){var p;return(p=y.K)==null?void 0:lW(p,function(){return rN(y,q)},Q,function(v){var d; if(y.K instanceof zQ&&((d=q.lC)==null?0:d.ov))try{var T;(T=y.cache)==null||jKs(T,rN(y,q),v,q.lC.Cj,y.G-120)}catch(O){y.reportError(new jP(24,"ELX:write",O))}})}; hbi=function(y,q,Q){var p;if((p=q.lC)!=null&&p.Vj)try{var v,d=(v=y.cache)==null?void 0:QK8(v,rN(y,q),q.lC.Cj);return d?Q?Vn(y.logger,function(){return g.Rq(d,2)},"a"):d:void 0}catch(T){y.reportError(new jP(23,"RXO:read",T))}}; bYg=function(y,q,Q){var p={stack:[],error:void 0,hasError:!1};try{if(!q.gz)throw new jP(29,"SDF:notready");return lW($9i(p,new gN(y.logger,0,y.state)),function(){return rN(y,q)},Q)}catch(v){p.error=v,p.hasError=!0}finally{KbC(p)}}; $ag=function(y,q,Q){var p={stack:[],error:void 0,hasError:!1};try{var v=YlC(y,Q);return lW($9i(p,new IT(y.logger,v)),function(){return[]},q)}catch(d){p.error=d,p.hasError=!0}finally{KbC(p)}}; rN=function(y,q){return q.ji?q.ji:q.e4?Vn(y.logger,function(){return q.ji=nG(q.e4)},"c"):[]}; oT=function(){var y=0,q;return function(Q){q||(q=new OI);var p=new gN(q,y,1),v=lW(p,function(){return nG(Q)},!0); p.dispose();y++;return v}}; AS=function(y){this.Ib=GE(y)}; xaH=function(y,q,Q){this.Iz=y;this.uG=q;this.metadata=Q}; eT=function(y,q){q=q===void 0?{}:q;this.NKB=y;this.metadata=q;this.status=null}; Bw=function(y,q,Q,p,v){this.name=y;this.methodType="unary";this.requestType=q;this.responseType=Q;this.K=p;this.W=v}; GQ=function(y){this.Ib=GE(y)}; Pw=function(y){this.Ib=GE(y)}; iW=function(y){this.Ib=GE(y)}; Xo=function(y,q){this.X=y.Wew;this.C=q;this.K=y.xhr;this.N=[];this.J=[];this.G=[];this.Y=[];this.W=[];this.X&&Wvg(this)}; ky3=function(y,q){var Q=new ZYj;g.vq(y.K,"complete",function(){if(yn(y.K)){var p=g.qv(y.K);if(q&&y.K.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");p=atob(p)}try{var v=y.C(p)}catch(O){mC(y,CG(new et(13,"Error when deserializing response data; error: "+O+(", response: "+p)),Q));return}p=qpj(y.K.getStatus());y3(y,qn(y));p==0?tJb(y,v):mC(y,CG(new et(p,"Xhr succeeded but the status code is not 200"),Q))}else{p=g.qv(y.K);v=qn(y);if(p){var d=EUb(y, p);p=d.code;var T=d.details;d=d.metadata}else p=2,T="Rpc failed due to xhr error. uri: "+String(y.K.C)+", error code: "+y.K.W+", error: "+y.K.getLastError(),d=v;y3(y,v);mC(y,CG(new et(p,T,d),Q))}})}; Wvg=function(y){y.X.He("data",function(q){if("1"in q){var Q=q["1"];try{var p=y.C(Q)}catch(v){mC(y,new et(13,"Error when deserializing response data; error: "+v+(", response: "+Q)))}p&&tJb(y,p)}if("2"in q)for(q=EUb(y,q["2"]),Q=0;Q-1&&y.splice(q,1)}; tJb=function(y,q){for(var Q=0;Q>4&15).toString(16)+(y&15).toString(16)}; Y0=function(y,q){this.W=this.K=null;this.N=y||null;this.Y=!!q}; $0=function(y){y.K||(y.K=new Map,y.W=0,y.N&&WG(y.N,function(q,Q){y.add(sj(q),Q)}))}; lAS=function(y,q){$0(y);q=KX(y,q);return y.K.has(q)}; g.zbg=function(y,q,Q){y.remove(q);Q.length>0&&(y.N=null,y.K.set(KX(y,q),g.zX(Q)),y.W=y.W+Q.length)}; KX=function(y,q){q=String(q);y.Y&&(q=q.toLowerCase());return q}; Rb8=function(y,q){q&&!y.Y&&($0(y),y.N=null,y.K.forEach(function(Q,p){var v=p.toLowerCase();p!=v&&(this.remove(p),g.zbg(this,v,Q))},y)); y.Y=q}; g.Dag=function(y){var q="";g.qO(y,function(Q,p){q+=p;q+=":";q+=Q;q+="\r\n"}); return q}; g.x0=function(y,q,Q){if(g.hn(Q))return y;Q=g.Dag(Q);if(typeof y==="string")return aR(y,g.R2(q),Q);g.hA(y,q,Q);return y}; g.WH=function(y){g.I.call(this);this.W=y;this.K={}}; uuf=function(y,q,Q,p,v,d){if(Array.isArray(Q))for(var T=0;T=0)return!0;try{var q=new g.To(y)}catch(Q){return g.ZC(Q_s,function(p){return y.search(p)>0})!=null}return q.G.match(pPi)?!0:g.ZC(Q_s,function(Q){return y.match(Q)!=null})!=null}; g.l6=function(y,q){return y.replace(dSS,function(Q,p){try{var v=g.bo(q,p);if(v==null||v.toString()==null)return Q;v=v.toString();if(v==""||!g.zu(g.ll(v)))return encodeURIComponent(v).replace(/%2C/g,",")}catch(d){}return Q})}; TDs=function(y){this.Ib=GE(y,500)}; VP3=function(y){this.Ib=GE(y,500)}; zo=function(y){this.Ib=GE(y)}; De=function(y){this.Ib=GE(y)}; OR3=function(y){var q=y.Ib;return S5(y,q,q[oq]|0,zo,2,1)}; Fki=function(y){var q;if((q=y[wPs])!=null)y=q;else{if(KQ!==KQ)throw Error();y=y[wPs]=JjD(y.K)}return y}; f78=function(y){var q;return(q=y[YNp])!=null?q:y[YNp]=new Map(OR3(Fki(y)).map(function(Q){return[Q.getName(),lD(Q,2)]}))}; u6=function(y,q){return Object.is(y,q)}; nX=function(y){var q=Ip;Ip=y;return q}; hhf=function(y){if(y.AD!==void 0){var q=gP;gP=!0;try{for(var Q=y.AD;Q!==void 0;Q=Q.FW){var p=Q.wU;p.Ju||(y=void 0,p.Ju=!0,hhf(p),(y=p.SI)==null||y.call(p,p))}}finally{gP=q}}}; bRC=function(){var y;return((y=Ip)==null?void 0:y.Ue)!==!1}; $Sj=function(y){y&&(y.FO=void 0,y.Cw=!0);return nX(y)}; xS3=function(y,q){nX(q);if(y){y.Cw=!1;q=y.FO;var Q=q!==void 0?q.rJ:y.producers;if(Q!==void 0){if(cH(y)){do Q=KkH(Q);while(Q!==void 0)}q!==void 0?q.rJ=void 0:y.producers=void 0}}}; WkS=function(y,q){var Q=y.Cl,p=cH(y);Q!==void 0?(q.FW=Q.FW,Q.FW=q):(q.FW=void 0,y.AD=q);q.Ny=Q;y.Cl=q;if(!p)for(y=y.producers;y!==void 0;y=y.rJ)WkS(y.mN,y)}; KkH=function(y){var q=y.mN,Q=y.rJ,p=y.FW,v=y.Ny;y.FW=void 0;y.Ny=void 0;p!==void 0?p.Ny=v:q.Cl=v;if(v!==void 0)v.FW=p;else if(q.AD=p,!cH(q))for(y=q.producers;y!==void 0;)y=KkH(y);return Q}; cH=function(y){return y.Ee||y.AD!==void 0}; ke8=function(y){function q(){a:{if(gP)throw Error("");if(Ip!==null){var p=Ip.FO;if(p===void 0||p.mN!==Q){var v=void 0,d=Ip.Cw;if(d&&(v=p!==void 0?p.rJ:Ip.producers,v!==void 0&&v.mN===Q)){Ip.FO=v;v.JKm=Q.version;break a}var T=Q.Cl,O;if(!(O=T===void 0||T.wU!==Ip)){if(d){b:{O=Ip;d=O.FO;if(d!==void 0){O=O.producers;do{if(O===T){d=!0;break b}if(O===d)break;O=O.rJ}while(O!==void 0)}d=!1}d=!d}O=d}O&&(d=cH(Ip),v={mN:Q,wU:Ip,rJ:v,Ny:T,JKm:Q.version,FW:void 0},Ip.FO=v,p!==void 0?p.rJ=v:Ip.producers=v,d&&WkS(Q, v))}}}return Q.value} var Q=Object.create(ZR8);Q.value=y;q[tP3]=Q;return[q,function(p){return EKj(Q,p)}, function(p){if(!bRC())throw Error();EKj(Q,p(Q.value))}]}; EKj=function(y,q){if(!bRC())throw Error();y.Fn(y.value,q)||(y.value=q,y.version++,Lkj++,hhf(y))}; Ua=function(y,q){q=q===void 0?"":q;y=ke8(y)[0][tP3];var Q;q=(Q=q)!=null?Q:"[signal]";y.debugName=q}; op=function(y){g.Ky.call(this);var q=this;this.J=this.W=0;this.xe=y!=null?y:{Dj:function(v,d){return setTimeout(v,d)}, FM:function(v){clearTimeout(v)}}; var Q,p;this.K=(p=(Q=window.navigator)==null?void 0:Q.onLine)!=null?p:!0;this.N=function(){return g.M(function(v){return g.R(v,rP(q),0)})}; window.addEventListener("offline",this.N);window.addEventListener("online",this.N);this.J||this.Jj()}; a7S=function(){var y=g.BH;op.instance||(op.instance=new op(y));return op.instance}; rP=function(y,q){return y.Y?y.Y:y.Y=new Promise(function(Q){var p,v,d,T;return g.M(function(O){switch(O.K){case 1:return p=window.AbortController?new window.AbortController:void 0,d=(v=p)==null?void 0:v.signal,T=!1,g.EC(O,2,3),p&&(y.W=y.xe.Dj(function(){p.abort()},q||2E4)),g.R(O,fetch("/generate_204",{method:"HEAD", signal:d}),5);case 5:T=!0;case 3:g.l8(O);y.Y=void 0;y.W&&(y.xe.FM(y.W),y.W=0);T!==y.K&&(y.K=T,y.K?y.dispatchEvent("networkstatus-online"):y.dispatchEvent("networkstatus-offline"));Q(T);g.zf(O,0);break;case 2:g.Rj(O),T=!1,O.ej(3)}})})}; NDb=function(y){this.Ib=GE(y)}; Go=function(){this.data=[];this.K=-1}; SN8=function(y){y.K===-1&&(y.K=y.data.reduce(function(q,Q,p){return q+(Q?Math.pow(2,p):0)},0)); return y.K}; PH=function(y){y.setAttribute("role","link")}; X4=function(y,q){Array.isArray(q)&&(q=q.join(" "));q===""||q==void 0?(i6||(q={},i6=(q.atomic=!1,q.autocomplete="none",q.dropeffect="none",q.haspopup=!1,q.live="off",q.multiline=!1,q.multiselectable=!1,q.orientation="vertical",q.readonly=!1,q.relevant="additions text",q.required=!1,q.sort="none",q.busy=!1,q.disabled=!1,q.hidden=!1,q.invalid="false",q)),q=i6,"label"in q?y.setAttribute("aria-label",q.label):y.removeAttribute("aria-label")):y.setAttribute("aria-label",q)}; mu=function(y){y=y.getAttribute("aria-label");return y==null||y==void 0?"":String(y)}; g.CX=function(y,q,Q){g.I.call(this);this.K=null;this.Y=!1;this.G=y;this.J=Q;this.W=q||window;this.N=(0,g.wk)(this.gX,this)}; HRg=function(y){y=y.W;return y.requestAnimationFrame||y.webkitRequestAnimationFrame||y.mozRequestAnimationFrame||y.oRequestAnimationFrame||y.msRequestAnimationFrame||null}; Rh2=function(y){y=y.W;return y.cancelAnimationFrame||y.cancelRequestAnimationFrame||y.webkitCancelRequestAnimationFrame||y.mozCancelRequestAnimationFrame||y.oCancelRequestAnimationFrame||y.msCancelRequestAnimationFrame||null}; g.y0=function(y,q,Q){g.I.call(this);this.K=y;this.Of=q||0;this.W=Q;this.N=(0,g.wk)(this.wx,this)}; g.qM=function(y,q){y.isActive()||y.start(q)}; g.j4=function(y){y.stop();y.wx()}; g.Q0=function(y){y.isActive()&&g.j4(y)}; g.pU=function(y,q,Q){g.I.call(this);this.Y=Q!=null?y.bind(Q):y;this.Of=q;this.N=null;this.K=!1;this.W=0;this.AU=null}; vO=function(y){y.AU=g.ro(function(){y.AU=null;y.K&&!y.W&&(y.K=!1,vO(y))},y.Of); var q=y.N;y.N=null;y.Y.apply(null,q)}; g.dl=function(y,q){this.K=y[g.CS.Symbol.iterator]();this.W=q}; s_D=function(y){return typeof y.className=="string"?y.className:y.getAttribute&&y.getAttribute("class")||""}; T9=function(y){return y.classList?y.classList:s_D(y).match(/\S+/g)||[]}; g.V0=function(y,q){typeof y.className=="string"?y.className=q:y.setAttribute&&y.setAttribute("class",q)}; g.O$=function(y,q){return y.classList?y.classList.contains(q):g.Eu(T9(y),q)}; g.wl=function(y,q){if(y.classList)y.classList.add(q);else if(!g.O$(y,q)){var Q=s_D(y);g.V0(y,Q+(Q.length>0?" "+q:q))}}; g.Jr=function(y,q){if(y.classList)Array.prototype.forEach.call(q,function(v){g.wl(y,v)}); else{var Q={};Array.prototype.forEach.call(T9(y),function(v){Q[v]=!0}); Array.prototype.forEach.call(q,function(v){Q[v]=!0}); q="";for(var p in Q)q+=q.length>0?" "+p:p;g.V0(y,q)}}; g.Fn=function(y,q){y.classList?y.classList.remove(q):g.O$(y,q)&&g.V0(y,Array.prototype.filter.call(T9(y),function(Q){return Q!=q}).join(" "))}; g.Yy=function(y,q){y.classList?Array.prototype.forEach.call(q,function(Q){g.Fn(y,Q)}):g.V0(y,Array.prototype.filter.call(T9(y),function(Q){return!g.Eu(q,Q)}).join(" "))}; g.fU=function(y,q,Q){Q?g.wl(y,q):g.Fn(y,q)}; MPC=function(y,q){var Q=!g.O$(y,q);g.fU(y,q,Q)}; g.hr=function(){g.Ky.call(this);this.K=0;this.endTime=this.startTime=null}; l7g=function(y,q){Array.isArray(q)||(q=[q]);q=q.map(function(Q){return typeof Q==="string"?Q:Q.property+" "+Q.duration+"s "+Q.timing+" "+Q.delay+"s"}); g.B0(y,"transition",q.join(","))}; bx=function(y,q,Q,p,v){g.hr.call(this);this.W=y;this.J=q;this.G=Q;this.Y=p;this.X=Array.isArray(v)?v:[v]}; zhH=function(y,q,Q,p){return new bx(y,q,{opacity:Q},{opacity:p},{property:"opacity",duration:q,timing:"ease-in",delay:0})}; uGf=function(y){y=IU(y);if(y=="")return null;var q=String(y.slice(0,4)).toLowerCase();if(("url("1||y&&y.split(")"),null;if(y.indexOf("(")>0){if(/"|'/.test(y))return null;q=/([\-\w]+)\(/g;for(var Q;Q=q.exec(y);)if(!(Q[1].toLowerCase()in DS9))return null}return y}; $y=function(y,q){y=g.CS[y];return y&&y.prototype?(q=Object.getOwnPropertyDescriptor(y.prototype,q))&&q.get||null:null}; I7D=function(y){var q=g.CS.CSSStyleDeclaration;return q&&q.prototype&&q.prototype[y]||null}; nK9=function(y,q,Q,p){if(y)return y.apply(q,p);if(g.KU&&document.documentMode<10){if(!q[Q].call)throw Error("IE Clobbering detected");}else if(typeof q[Q]!="function")throw Error("Clobbering detected");return q[Q].apply(q,p)}; oK9=function(y){if(!y)return"";var q=document.createElement("div").style;gKS(y).forEach(function(Q){var p=g.FU&&Q in cj8?Q:Q.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");MO(p,"--")||MO(p,"var")||(Q=nK9(US9,y,y.getPropertyValue?"getPropertyValue":"getAttribute",[Q])||"",Q=uGf(Q),Q!=null&&nK9(rji,q,q.setProperty?"setProperty":"setAttribute",[p,Q]))}); return q.cssText||""}; gKS=function(y){g.ve(y)?y=g.zX(y):(y=g.Jn(y),g.Lh(y,"cssText"));return y}; g.Zf=function(y){var q,Q=q=0,p=!1;y=y.split(Aj2);for(var v=0;v.4?-1:1;return(q==0?null:q)==-1?"rtl":"ltr"}; g.LU=function(y){if(y instanceof tr||y instanceof E$||y instanceof ky)return y;if(typeof y.next=="function")return new tr(function(){return y}); if(typeof y[Symbol.iterator]=="function")return new tr(function(){return y[Symbol.iterator]()}); if(typeof y.CX=="function")return new tr(function(){return y.CX()}); throw Error("Not an iterator or iterable.");}; tr=function(y){this.W=y}; E$=function(y){this.W=y}; ky=function(y){tr.call(this,function(){return y}); this.N=y}; a4=function(y,q,Q,p,v,d,T,O){this.K=y;this.X=q;this.N=Q;this.J=p;this.Y=v;this.G=d;this.W=T;this.C=O}; NM=function(y,q){if(q==0)return y.K;if(q==1)return y.W;var Q=AK(y.K,y.N,q),p=AK(y.N,y.Y,q);y=AK(y.Y,y.W,q);Q=AK(Q,p,q);p=AK(p,y,q);return AK(Q,p,q)}; P3s=function(y,q){var Q=(q-y.K)/(y.W-y.K);if(Q<=0)return 0;if(Q>=1)return 1;for(var p=0,v=1,d=0,T=0;T<8;T++){d=NM(y,Q);var O=(NM(y,Q+1E-6)-d)/1E-6;if(Math.abs(d-q)<1E-6)return Q;if(Math.abs(O)<1E-6)break;else d1E-6&&T<8;T++)d=0}; g.s$=function(y){g.I.call(this);this.G=1;this.N=[];this.Y=0;this.K=[];this.W={};this.X=!!y}; XPH=function(y,q,Q){g.MN(function(){y.apply(q,Q)})}; g.MM=function(y){this.KW=y}; lx=function(y){this.KW=y}; mS9=function(y){this.data=y}; C3g=function(y){return y===void 0||y instanceof mS9?y:new mS9(y)}; z9=function(y){this.KW=y}; g.y9S=function(y){var q=y.creation;y=y.expiration;return!!y&&yg.fh()}; g.Df=function(y){this.KW=y}; qnH=function(){}; ux=function(){}; I4=function(y){this.K=y;this.W=null}; nU=function(y){if(y.K==null)throw Error("Storage mechanism: Storage unavailable");y.isAvailable()||So(Error("Storage mechanism: Storage unavailable"))}; gl=function(){var y=null;try{y=g.CS.localStorage||null}catch(q){}I4.call(this,y)}; jwi=function(){var y=null;try{y=g.CS.sessionStorage||null}catch(q){}I4.call(this,y)}; cO=function(y,q){this.W=y;this.K=q+"::"}; g.U$=function(y){var q=new gl;return q.isAvailable()?y?new cO(q,y):q:null}; rl=function(y,q){this.K=y;this.W=q}; o4=function(y){this.K=[];if(y)a:{if(y instanceof o4){var q=y.LH();y=y.mL();if(this.K.length<=0){for(var Q=this.K,p=0;p>>6:(d<65536?O[Q++]=224|d>>>12:(O[Q++]=240|d>>>18,O[Q++]=128|d>>>12&63),O[Q++]=128|d>>> 6&63),O[Q++]=128|d&63);return O}; G9=function(y){for(var q=y.length;--q>=0;)y[q]=0}; PO=function(y,q,Q,p,v){this.TT=y;this.Fi=q;this.Ml=Q;this.zA=p;this.zKy=v;this.K4=y&&y.length}; ix=function(y,q){this.bY=y;this.Zo=0;this.Dp=q}; Xn=function(y,q){y.Ln[y.pending++]=q&255;y.Ln[y.pending++]=q>>>8&255}; mO=function(y,q,Q){y.xv>16-Q?(y.s8|=q<>16-y.xv,y.xv+=Q-16):(y.s8|=q<>>=1,Q<<=1;while(--q>0);return Q>>>1}; ToH=function(y,q,Q){var p=Array(16),v=0,d;for(d=1;d<=15;d++)p[d]=v=v+Q[d-1]<<1;for(Q=0;Q<=q;Q++)v=y[Q*2+1],v!==0&&(y[Q*2]=dN9(p[v]++,v))}; Vt9=function(y){var q;for(q=0;q<286;q++)y.uV[q*2]=0;for(q=0;q<30;q++)y.uh[q*2]=0;for(q=0;q<19;q++)y.dS[q*2]=0;y.uV[512]=1;y.dg=y.Ax=0;y.yD=y.matches=0}; Oyp=function(y){y.xv>8?Xn(y,y.s8):y.xv>0&&(y.Ln[y.pending++]=y.s8);y.s8=0;y.xv=0}; wq8=function(y,q,Q){Oyp(y);Xn(y,Q);Xn(y,~Q);BO.f2(y.Ln,y.window,q,Q,y.pending);y.pending+=Q}; J9f=function(y,q,Q,p){var v=q*2,d=Q*2;return y[v]>>7)];CU(y,T,Q);O=vA[T];O!==0&&(v-=dX[T],mO(y,v,O))}}while(p>1;T>=1;T--)yM(y,Q,T);w=d;do T=y.bF[1],y.bF[1]=y.bF[y.gg--],yM(y,Q,1),p=y.bF[1],y.bF[--y.jX]=T,y.bF[--y.jX]=p,Q[w*2]=Q[T*2]+Q[p*2],y.depth[w]=(y.depth[T]>=y.depth[p]?y.depth[T]:y.depth[p])+1,Q[T*2+1]=Q[p*2+1]=w,y.bF[1]=w++,yM(y,Q,1);while(y.gg>= 2);y.bF[--y.jX]=y.bF[1];T=q.bY;w=q.Zo;p=q.Dp.TT;v=q.Dp.K4;d=q.Dp.Fi;var J=q.Dp.Ml,F=q.Dp.zKy,Y,f=0;for(Y=0;Y<=15;Y++)y.Ol[Y]=0;T[y.bF[y.jX]*2+1]=0;for(q=y.jX+1;q<573;q++){var h=y.bF[q];Y=T[T[h*2+1]*2+1]+1;Y>F&&(Y=F,f++);T[h*2+1]=Y;if(!(h>w)){y.Ol[Y]++;var b=0;h>=J&&(b=d[h-J]);var Z=T[h*2];y.dg+=Z*(Y+b);v&&(y.Ax+=Z*(p[h*2+1]+b))}}if(f!==0){do{for(Y=F-1;y.Ol[Y]===0;)Y--;y.Ol[Y]--;y.Ol[Y+1]+=2;y.Ol[F]--;f-=2}while(f>0);for(Y=F;Y!==0;Y--)for(h=y.Ol[Y];h!==0;)p=y.bF[--q],p>w||(T[p*2+1]!==Y&&(y.dg+=(Y- T[p*2+1])*T[p*2],T[p*2+1]=Y),h--)}ToH(Q,O,y.Ol)}; Yn2=function(y,q,Q){var p,v=-1,d=q[1],T=0,O=7,w=4;d===0&&(O=138,w=3);q[(Q+1)*2+1]=65535;for(p=0;p<=Q;p++){var J=d;d=q[(p+1)*2+1];++T>>=1)if(q&1&&y.uV[Q*2]!==0)return 0;if(y.uV[18]!==0||y.uV[20]!==0||y.uV[26]!==0)return 1;for(Q=32;Q<256;Q++)if(y.uV[Q*2]!==0)return 1;return 0}; VM=function(y,q,Q){y.Ln[y.Iw+y.yD*2]=q>>>8&255;y.Ln[y.Iw+y.yD*2+1]=q&255;y.Ln[y.n7+y.yD]=Q&255;y.yD++;q===0?y.uV[Q*2]++:(y.matches++,q--,y.uV[(q$[Q]+256+1)*2]++,y.uh[(q<256?pE[q]:pE[256+(q>>>7)])*2]++);return y.yD===y.bQ-1}; wX=function(y,q){y.msg=Oe[q];return q}; Jt=function(y){for(var q=y.length;--q>=0;)y[q]=0}; FY=function(y){var q=y.state,Q=q.pending;Q>y.jb&&(Q=y.jb);Q!==0&&(BO.f2(y.output,q.Ln,q.LM,Q,y.T_),y.T_+=Q,q.LM+=Q,y.sE+=Q,y.jb-=Q,q.pending-=Q,q.pending===0&&(q.LM=0))}; ht=function(y,q){var Q=y.Fz>=0?y.Fz:-1,p=y.wm-y.Fz,v=0;if(y.level>0){y.tj.As===2&&(y.tj.As=hQ8(y));Tc(y,y.bq);Tc(y,y.qe);Yn2(y,y.uV,y.bq.Zo);Yn2(y,y.uh,y.qe.Zo);Tc(y,y.Dr);for(v=18;v>=3&&y.dS[byp[v]*2+1]===0;v--);y.dg+=3*(v+1)+5+5+4;var d=y.dg+3+7>>>3;var T=y.Ax+3+7>>>3;T<=d&&(d=T)}else d=T=p+5;if(p+4<=d&&Q!==-1)mO(y,q?1:0,3),wq8(y,Q,p);else if(y.strategy===4||T===d)mO(y,2+(q?1:0),3),Ffj(y,Y2,fE);else{mO(y,4+(q?1:0),3);Q=y.bq.Zo+1;p=y.qe.Zo+1;v+=1;mO(y,Q-257,5);mO(y,p-1,5);mO(y,v-4,4);for(d=0;d>>8&255;y.Ln[y.pending++]=q&255}; $Ni=function(y,q){var Q=y.cW,p=y.wm,v=y.VI,d=y.UQ,T=y.wm>y.eY-262?y.wm-(y.eY-262):0,O=y.window,w=y.cD,J=y.FZ,F=y.wm+258,Y=O[p+v-1],f=O[p+v];y.VI>=y.bI&&(Q>>=2);d>y.oH&&(d=y.oH);do{var h=q;if(O[h+v]===f&&O[h+v-1]===Y&&O[h]===O[p]&&O[++h]===O[p+1]){p+=2;for(h++;O[++p]===O[++h]&&O[++p]===O[++h]&&O[++p]===O[++h]&&O[++p]===O[++h]&&O[++p]===O[++h]&&O[++p]===O[++h]&&O[++p]===O[++h]&&O[++p]===O[++h]&&pv){y.xC=q;v=h;if(h>=d)break;Y=O[p+v-1];f=O[p+v]}}}while((q=J[q&w])>T&&--Q!== 0);return v<=y.oH?v:y.oH}; WA=function(y){var q=y.eY,Q;do{var p=y.cQ-y.oH-y.wm;if(y.wm>=q+(q-262)){BO.f2(y.window,y.window,q,q,0);y.xC-=q;y.wm-=q;y.Fz-=q;var v=Q=y.aY;do{var d=y.head[--v];y.head[v]=d>=q?d-q:0}while(--Q);v=Q=q;do d=y.FZ[--v],y.FZ[v]=d>=q?d-q:0;while(--Q);p+=q}if(y.tj.ri===0)break;v=y.tj;Q=y.window;d=y.wm+y.oH;var T=v.ri;T>p&&(T=p);T===0?Q=0:(v.ri-=T,BO.f2(Q,v.input,v.QO,T,d),v.state.wrap===1?v.vO=KE(v.vO,Q,T,d):v.state.wrap===2&&(v.vO=x2(v.vO,Q,T,d)),v.QO+=T,v.yH+=T,Q=T);y.oH+=Q;if(y.oH+y.TW>=3)for(p=y.wm-y.TW, y.oB=y.window[p],y.oB=(y.oB<=3&&(y.oB=(y.oB<=3)if(Q=VM(y,y.wm-y.xC,y.u9-3),y.oH-=y.u9,y.u9<=y.F$&&y.oH>=3){y.u9--;do y.wm++,y.oB=(y.oB<=3&&(y.oB=(y.oB<4096)&&(y.u9=2));if(y.VI>=3&&y.u9<=y.VI){p=y.wm+y.oH-3;Q=VM(y,y.wm-1-y.b0,y.VI-3);y.oH-=y.VI-1;y.VI-=2;do++y.wm<=p&&(y.oB=(y.oB<=3&&y.wm>0&&(p=y.wm-1,Q=d[p],Q===d[++p]&&Q===d[++p]&&Q===d[++p])){for(v=y.wm+258;Q===d[++p]&&Q===d[++p]&&Q===d[++p]&&Q===d[++p]&&Q===d[++p]&&Q===d[++p]&&Q===d[++p]&&Q===d[++p]&&py.oH&&(y.u9=y.oH)}y.u9>=3?(Q=VM(y,1,y.u9-3),y.oH-=y.u9,y.wm+=y.u9,y.u9=0):(Q=VM(y,0,y.window[y.wm]),y.oH--,y.wm++);if(Q&&(ht(y,!1),y.tj.jb===0))return 1}y.TW=0;return q=== 4?(ht(y,!0),y.tj.jb===0?3:4):y.yD&&(ht(y,!1),y.tj.jb===0)?1:2}; xNS=function(y,q){for(var Q;;){if(y.oH===0&&(WA(y),y.oH===0)){if(q===0)return 1;break}y.u9=0;Q=VM(y,0,y.window[y.wm]);y.oH--;y.wm++;if(Q&&(ht(y,!1),y.tj.jb===0))return 1}y.TW=0;return q===4?(ht(y,!0),y.tj.jb===0?3:4):y.yD&&(ht(y,!1),y.tj.jb===0)?1:2}; Ee=function(y,q,Q,p,v){this.Mk=y;this.HKK=q;this.Keb=Q;this.tjj=p;this.func=v}; Wfb=function(){this.tj=null;this.status=0;this.Ln=null;this.wrap=this.pending=this.LM=this.Ur=0;this.eb=null;this.QK=0;this.method=8;this.UV=-1;this.cD=this.lD=this.eY=0;this.window=null;this.cQ=0;this.head=this.FZ=null;this.UQ=this.bI=this.strategy=this.level=this.F$=this.cW=this.VI=this.oH=this.xC=this.wm=this.F6=this.b0=this.u9=this.Fz=this.Sd=this.wg=this.rf=this.aY=this.oB=0;this.uV=new BO.bS(1146);this.uh=new BO.bS(122);this.dS=new BO.bS(78);Jt(this.uV);Jt(this.uh);Jt(this.dS);this.Dr=this.qe= this.bq=null;this.Ol=new BO.bS(16);this.bF=new BO.bS(573);Jt(this.bF);this.jX=this.gg=0;this.depth=new BO.bS(573);Jt(this.depth);this.xv=this.s8=this.TW=this.matches=this.Ax=this.dg=this.Iw=this.yD=this.bQ=this.n7=0}; Zyb=function(y,q){if(!y||!y.state||q>5||q<0)return y?wX(y,-2):-2;var Q=y.state;if(!y.output||!y.input&&y.ri!==0||Q.status===666&&q!==4)return wX(y,y.jb===0?-5:-2);Q.tj=y;var p=Q.UV;Q.UV=q;if(Q.status===42)if(Q.wrap===2)y.vO=0,bp(Q,31),bp(Q,139),bp(Q,8),Q.eb?(bp(Q,(Q.eb.text?1:0)+(Q.eb.XQ?2:0)+(Q.eb.extra?4:0)+(Q.eb.name?8:0)+(Q.eb.comment?16:0)),bp(Q,Q.eb.time&255),bp(Q,Q.eb.time>>8&255),bp(Q,Q.eb.time>>16&255),bp(Q,Q.eb.time>>24&255),bp(Q,Q.level===9?2:Q.strategy>=2||Q.level<2?4:0),bp(Q,Q.eb.os& 255),Q.eb.extra&&Q.eb.extra.length&&(bp(Q,Q.eb.extra.length&255),bp(Q,Q.eb.extra.length>>8&255)),Q.eb.XQ&&(y.vO=x2(y.vO,Q.Ln,Q.pending,0)),Q.QK=0,Q.status=69):(bp(Q,0),bp(Q,0),bp(Q,0),bp(Q,0),bp(Q,0),bp(Q,Q.level===9?2:Q.strategy>=2||Q.level<2?4:0),bp(Q,3),Q.status=113);else{var v=8+(Q.lD-8<<4)<<8;v|=(Q.strategy>=2||Q.level<2?0:Q.level<6?1:Q.level===6?2:3)<<6;Q.wm!==0&&(v|=32);Q.status=113;$2(Q,v+(31-v%31));Q.wm!==0&&($2(Q,y.vO>>>16),$2(Q,y.vO&65535));y.vO=1}if(Q.status===69)if(Q.eb.extra){for(v= Q.pending;Q.QK<(Q.eb.extra.length&65535)&&(Q.pending!==Q.Ur||(Q.eb.XQ&&Q.pending>v&&(y.vO=x2(y.vO,Q.Ln,Q.pending-v,v)),FY(y),v=Q.pending,Q.pending!==Q.Ur));)bp(Q,Q.eb.extra[Q.QK]&255),Q.QK++;Q.eb.XQ&&Q.pending>v&&(y.vO=x2(y.vO,Q.Ln,Q.pending-v,v));Q.QK===Q.eb.extra.length&&(Q.QK=0,Q.status=73)}else Q.status=73;if(Q.status===73)if(Q.eb.name){v=Q.pending;do{if(Q.pending===Q.Ur&&(Q.eb.XQ&&Q.pending>v&&(y.vO=x2(y.vO,Q.Ln,Q.pending-v,v)),FY(y),v=Q.pending,Q.pending===Q.Ur)){var d=1;break}d=Q.QKv&&(y.vO=x2(y.vO,Q.Ln,Q.pending-v,v));d===0&&(Q.QK=0,Q.status=91)}else Q.status=91;if(Q.status===91)if(Q.eb.comment){v=Q.pending;do{if(Q.pending===Q.Ur&&(Q.eb.XQ&&Q.pending>v&&(y.vO=x2(y.vO,Q.Ln,Q.pending-v,v)),FY(y),v=Q.pending,Q.pending===Q.Ur)){d=1;break}d=Q.QKv&&(y.vO=x2(y.vO,Q.Ln,Q.pending-v,v));d===0&&(Q.status=103)}else Q.status= 103;Q.status===103&&(Q.eb.XQ?(Q.pending+2>Q.Ur&&FY(y),Q.pending+2<=Q.Ur&&(bp(Q,y.vO&255),bp(Q,y.vO>>8&255),y.vO=0,Q.status=113)):Q.status=113);if(Q.pending!==0){if(FY(y),y.jb===0)return Q.UV=-1,0}else if(y.ri===0&&(q<<1)-(q>4?9:0)<=(p<<1)-(p>4?9:0)&&q!==4)return wX(y,-5);if(Q.status===666&&y.ri!==0)return wX(y,-5);if(y.ri!==0||Q.oH!==0||q!==0&&Q.status!==666){p=Q.strategy===2?xNS(Q,q):Q.strategy===3?Kf2(Q,q):k2[Q.level].func(Q,q);if(p===3||p===4)Q.status=666;if(p===1||p===3)return y.jb===0&&(Q.UV= -1),0;if(p===2&&(q===1?(mO(Q,2,3),CU(Q,256,Y2),Q.xv===16?(Xn(Q,Q.s8),Q.s8=0,Q.xv=0):Q.xv>=8&&(Q.Ln[Q.pending++]=Q.s8&255,Q.s8>>=8,Q.xv-=8)):q!==5&&(mO(Q,0,3),wq8(Q,0,0),q===3&&(Jt(Q.head),Q.oH===0&&(Q.wm=0,Q.Fz=0,Q.TW=0))),FY(y),y.jb===0))return Q.UV=-1,0}if(q!==4)return 0;if(Q.wrap<=0)return 1;Q.wrap===2?(bp(Q,y.vO&255),bp(Q,y.vO>>8&255),bp(Q,y.vO>>16&255),bp(Q,y.vO>>24&255),bp(Q,y.yH&255),bp(Q,y.yH>>8&255),bp(Q,y.yH>>16&255),bp(Q,y.yH>>24&255)):($2(Q,y.vO>>>16),$2(Q,y.vO&65535));FY(y);Q.wrap>0&& (Q.wrap=-Q.wrap);return Q.pending!==0?0:1}; LE=function(y){if(!(this instanceof LE))return new LE(y);y=this.options=BO.assign({level:-1,method:8,chunkSize:16384,RI:15,lwI:8,strategy:0,to:""},y||{});y.raw&&y.RI>0?y.RI=-y.RI:y.FA&&y.RI>0&&y.RI<16&&(y.RI+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.tj=new ttC;this.tj.jb=0;var q=this.tj;var Q=y.level,p=y.method,v=y.RI,d=y.lwI,T=y.strategy;if(q){var O=1;Q===-1&&(Q=6);v<0?(O=0,v=-v):v>15&&(O=2,v-=16);if(d<1||d>9||p!==8||v<8||v>15||Q<0||Q>9||T<0||T>4)q=wX(q,-2);else{v===8&&(v=9); var w=new Wfb;q.state=w;w.tj=q;w.wrap=O;w.eb=null;w.lD=v;w.eY=1<>=7;d<30;d++)for(dX[d]=T<<7,v=0;v<1<=J.eY&&(q===0&&(Jt(J.head),J.wm=0,J.Fz=0,J.TW=0),Q=new BO.hm(J.eY),BO.f2(Q,d,T-J.eY,J.eY,0),d=Q,T=J.eY);Q=y.ri;p=y.QO;v=y.input;y.ri=T;y.QO=0;y.input=d;for(WA(J);J.oH>=3;){d=J.wm;T=J.oH-2;do J.oB=(J.oB<=4?(0,Q[new Date(V[79])/1E3])((0,Q[34])((0,Q[11])(),Q[26],Q[70]),Q[50],Q[60]):(0,Q[45])((0,Q[61])(Q[60],Q[48]),Q[18],Q[27],Q[9])),Q[62]>new Date(V[27])/1E3&&(Q[25]!==-7&&(((0,Q[58])(Q[60],Q[14]),(0,Q[73])(Q[2],Q[62]),(0,Q[23])(Q[12],Q[34]),Q[38])((0,Q[22])(Q[19],Q[0]),Q[54],Q[40],Q[64]),/[(]",/)||(((0,Q[27])((0,Q[28])(),Q[20],Q[63]),Q[29])(Q[9],Q[13]),Q[38])(((0,Q[22])(Q[13],Q[12]),Q[24])(Q[70],Q[53]),Q[27],(0,Q[37])(),Q[13],Q[49])),(Q[26]!=-5||((0,Q[38])((0,Q[11])(Q[19],Q[42]), Q[66],Q[3]),0))&&((0,Q[54])(Q[3],Q[5]),Q[72-new Date(V[71])/1E3])(Q[19],Q[59]),Q[50]<1&&(0,Q[38])((0,Q[43])(Q[13]),Q[51],Q[19],Q[32]),Q[31]!=7&&(Q[50]!==-10?((0,Q[43])(Q[19]),(0,Q[24])(Q[68],Q[40])):((0,Q[13])(Q[22],Q[2]),Q[16])((0,Q[17])(),Q[9],Q[38])),Q[1]<=-1&&(0,Q[27])((0,Q[16])((0,Q[26])(),Q[2],Q[52]),Q[43],Q[42],Q[62]),Q[49]>=2?((0,Q[43])(Q[42],Q[47]),Q[43])(Q[9],Q[20])>>>(0,Q[16])((0,Q[70])(),Q[9],Q[38]):(0,Q[74])((0,Q[55])(Q[29],Q[76]),Q[27],(0,Q[16])((0,Q[17])(),Q[2],Q[52]),Q[18],Q[6],Q[9]), Q[76]!==4&&(0,Q[27])((0,Q[13])(Q[7],Q[69]),Q[28],Q[24],Q[12]),Q[38]>=-4&&(Q[74]!==-5&&((0,Q[7])((0,Q[34])((0,Q[53])(Q[52],Q[20]),(0,Q[37])((0,Q[40])(Q[18]),Q[51],Q[70],Q[39]),Q[42],(0,Q[21])(Q[12],Q[55]),(0,Q[37])((0,Q[65])(Q[19],Q[35]),Q[28],Q[56],Q[2]),(0,Q[40])(Q[2]),Q[58]),Q[30],(((0,Q[48])(Q[29],Q[74]),Q[25])(Q[12],Q[74]),Q[53])(Q[38],Q[74]),Q[12],(0,Q[61])(Q[36],Q[60]),Q[38],Q[60]),[])||((((((0,Q[15])((0,Q[76])(Q[33],Q[7]),Q[10],Q[52]),Q[26])((0,Q[25])(),Q[34],Q[4]),(0,Q[15])((0,Q[12])(Q[new Date(V[57])/ 1E3]),Q[31],Q[40],Q[69]),(0,Q[64])(Q[33],Q[63]),Q[26])((0,Q[38])(),Q[40],Q[4]),(0,Q[31])(Q[17],Q[20]),Q[26])((0,Q[25])(),Q[33],Q[67])>=(0,Q[15])((0,Q[2])(Q[33],Q[8]),Q[64],Q[0],Q[75]))/(0,Q[12])(Q[40]),(0,Q[2])(Q[52],Q[54])))}}catch(p){return V[41]+y}return q[V[17]](V[19])}; g.R3=function(y){this.name=y}; r9b=function(y){this.Ib=GE(y)}; se=function(y){this.Ib=GE(y)}; M$=function(y){this.Ib=GE(y)}; ovS=function(y){this.Ib=GE(y)}; lp=function(y){this.Ib=GE(y)}; zc=function(y){this.Ib=GE(y)}; D9=function(y){this.Ib=GE(y)}; up=function(y){this.Ib=GE(y)}; I3=function(y){this.Ib=GE(y)}; nE=function(y){this.Ib=GE(y)}; gX=function(y){this.Ib=GE(y)}; cA=function(y){this.Ib=GE(y)}; Ue=function(y){this.Ib=GE(y)}; o3=function(y){this.Ib=GE(y)}; At=function(y){this.Ib=GE(y)}; ec=function(y){this.Ib=GE(y,500)}; BA=function(y){this.Ib=GE(y)}; Gc=function(y){this.Ib=GE(y)}; A9b=function(y){this.Ib=GE(y)}; eQi=function(){return g.qw("yt.ads.biscotti.lastId_")||""}; BoS=function(y){g.y_("yt.ads.biscotti.lastId_",y)}; ip=function(){var y=arguments,q=PA;y.length>1?q[y[0]]=y[1]:y.length===1&&Object.assign(q,y[0])}; g.XY=function(y,q){return y in PA?PA[y]:q}; mJ=function(y){var q=PA.EXPERIMENT_FLAGS;return q?q[y]:void 0}; GDf=function(y){CE.forEach(function(q){return q(y)})}; g.q7=function(y){return y&&window.yterr?function(){try{return y.apply(this,arguments)}catch(q){g.y9(q)}}:y}; g.y9=function(y){var q=g.qw("yt.logging.errors.log");q?q(y,"ERROR",void 0,void 0,void 0,void 0,void 0):(q=g.XY("ERRORS",[]),q.push([y,"ERROR",void 0,void 0,void 0,void 0,void 0]),ip("ERRORS",q));GDf(y)}; js=function(y,q,Q,p,v){var d=g.qw("yt.logging.errors.log");d?d(y,"WARNING",q,Q,p,void 0,v):(d=g.XY("ERRORS",[]),d.push([y,"WARNING",q,Q,p,void 0,v]),ip("ERRORS",d))}; Q9=function(y,q){q=y.split(q);for(var Q={},p=0,v=q.length;p1?y[1]:y[0])):{}}; V9=function(y,q){return mNg(y,q||{},!0)}; Ox=function(y,q){return mNg(y,q||{},!1)}; mNg=function(y,q,Q){var p=y.split("#",2);y=p[0];p=p.length>1?"#"+p[1]:"";var v=y.split("?",2);y=v[0];v=vF(v[1]||"");for(var d in q)if(Q||!g.F2(v,d))v[d]=q[d];return g.kb(y,v)+p}; w_=function(y){if(!q)var q=window.location.href;var Q=g.b_(y)[1]||null,p=g.$b(y);Q&&p?(y=g.b_(y),q=g.b_(q),y=y[3]==q[3]&&y[1]==q[1]&&y[4]==q[4]):y=p?g.$b(q)===p&&(Number(g.b_(q)[4]||null)||null)===(Number(g.b_(y)[4]||null)||null):!0;return y}; JM=function(y){y||(y=document.location.href);y=g.b_(y)[1]||null;return y!==null&&y==="https"}; Fq=function(y){y=CuC(y);return y===null?!1:y[0]==="com"&&y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; yS9=function(y){y=CuC(y);return y===null?!1:y[1]==="google"?!0:y[2]==="google"?y[0]==="au"&&y[1]==="com"?!0:y[0]==="uk"&&y[1]==="co"?!0:!1:!1}; CuC=function(y){y=g.$b(y);return y!==null?y.split(".").reverse():null}; Puj=function(y){return y&&y.match(qIC)?y:sj(y)}; hM=function(y){var q=YQ;y=y===void 0?eQi():y;var Q=Object,p=Q.assign,v=f9(q);var d=q.K;try{var T=d.screenX;var O=d.screenY}catch(S){}try{var w=d.outerWidth;var J=d.outerHeight}catch(S){}try{var F=d.innerWidth;var Y=d.innerHeight}catch(S){}try{var f=d.screenLeft;var h=d.screenTop}catch(S){}try{F=d.innerWidth,Y=d.innerHeight}catch(S){}try{var b=d.screen.availWidth;var Z=d.screen.availTop}catch(S){}d=[f,h,T,O,b,Z,w,J,F,Y];T=mdC(!1,q.K.top);O={};var k=k===void 0?g.CS:k;w=new Go;"SVGElement"in k&&"createElementNS"in k.document&&w.set(0);J=Fnp();J["allow-top-navigation-by-user-activation"]&&w.set(1);J["allow-popups-to-escape-sandbox"]&&w.set(2);k.crypto&&k.crypto.subtle&&w.set(3);"TextDecoder"in k&&"TextEncoder"in k&&w.set(4);k=SN8(w);q=(O.bc=k,O.bih=T.height,O.biw=T.width,O.brdim=d.join(),O.vis=Jl(q.W),O.wgl=!!ln.WebGLRenderingContext,O);Q=p.call(Q,v,q);Q.ca_type="image";y&&(Q.bid=y);return Q}; f9=function(y){var q={};q.dt=jTb;q.flash="0";a:{try{var Q=y.K.top.location.href}catch(J){y=2;break a}y=Q?Q===y.W.location.href?0:1:2}q=(q.frm=y,q);try{q.u_tz=-(new Date).getTimezoneOffset();try{var p=ln.history.length}catch(J){p=0}q.u_his=p;var v;q.u_h=(v=ln.screen)==null?void 0:v.height;var d;q.u_w=(d=ln.screen)==null?void 0:d.width;var T;q.u_ah=(T=ln.screen)==null?void 0:T.availHeight;var O;q.u_aw=(O=ln.screen)==null?void 0:O.availWidth;var w;q.u_cd=(w=ln.screen)==null?void 0:w.colorDepth}catch(J){}return q}; pwj=function(){if(!QT9)return null;var y=QT9();return"open"in y?y:null}; g.$Q=function(y){switch(bb(y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; bb=function(y){return y&&"status"in y?y.status:-1}; g.xQ=function(y,q){typeof y==="function"&&(y=g.q7(y));return window.setTimeout(y,q)}; g.WF=function(y,q){typeof y==="function"&&(y=g.q7(y));return window.setInterval(y,q)}; g.Z1=function(y){window.clearTimeout(y)}; g.tM=function(y){window.clearInterval(y)}; g.kQ=function(y){y=Ex(y);return typeof y==="string"&&y==="false"?!1:!!y}; g.L9=function(y,q){y=Ex(y);return y===void 0&&q!==void 0?q:Number(y||0)}; ao=function(){return g.XY("EXPERIMENTS_TOKEN","")}; Ex=function(y){return g.XY("EXPERIMENT_FLAGS",{})[y]}; N7=function(){for(var y=[],q=g.XY("EXPERIMENTS_FORCED_FLAGS",{}),Q=g.t(Object.keys(q)),p=Q.next();!p.done;p=Q.next())p=p.value,y.push({key:p,value:String(q[p])});Q=g.XY("EXPERIMENT_FLAGS",{});p=g.t(Object.keys(Q));for(var v=p.next();!v.done;v=p.next())v=v.value,v.startsWith("force_")&&q[v]===void 0&&y.push({key:v,value:String(Q[v])});return y}; Ss=function(y,q,Q,p,v,d,T,O,w){function J(){(F&&"readyState"in F?F.readyState:0)===4&&q&&g.q7(q)(F)} Q=Q===void 0?"GET":Q;p=p===void 0?"":p;O=O===void 0?!1:O;var F=pwj();if(!F)return null;"onloadend"in F?F.addEventListener("loadend",J,!1):F.onreadystatechange=J;g.kQ("debug_forward_web_query_parameters")&&(y=v9D(y));F.open(Q,y,!0);d&&(F.responseType=d);T&&(F.withCredentials=!0);Q=Q==="POST"&&(window.FormData===void 0||!(p instanceof FormData));if(v=dv9(y,v))for(var Y in v)F.setRequestHeader(Y,v[Y]),"content-type"===Y.toLowerCase()&&(Q=!1);Q&&F.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); w&&"onprogress"in F&&(F.onprogress=function(){w(F.responseText)}); if(O&&"setAttributionReporting"in XMLHttpRequest.prototype){y={eventSourceEligible:!0,triggerEligible:!1};try{F.setAttributionReporting(y)}catch(f){js(f)}}F.send(p);return F}; dv9=function(y,q){q=q===void 0?{}:q;var Q=w_(y),p=g.XY("INNERTUBE_CLIENT_NAME"),v=g.kQ("web_ajax_ignore_global_headers_if_set"),d;for(d in TNj){var T=g.XY(TNj[d]),O=d==="X-Goog-AuthUser"||d==="X-Goog-PageId";d!=="X-Goog-Visitor-Id"||T||(T=g.XY("VISITOR_DATA"));var w;if(!(w=!T)){if(!(w=Q||(g.$b(y)?!1:!0))){w=y;var J;if(J=g.kQ("add_auth_headers_to_remarketing_google_dot_com_ping")&&d==="Authorization"&&(p==="TVHTML5"||p==="TVHTML5_UNPLUGGED"||p==="TVHTML5_SIMPLY")&&yS9(w))w=KW(w)||"",w=w.split("/"), w="/"+(w.length>1?w[1]:""),J=w==="/pagead";w=J?!0:!1}w=!w}w||v&&q[d]!==void 0||p==="TVHTML5_UNPLUGGED"&&O||(q[d]=T)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];if(Q||!g.$b(y))q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Q||!g.$b(y)){try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Y){}F&&(q["X-YouTube-Time-Zone"]=F)}document.location.hostname.endsWith("youtubeeducation.com")||!Q&&g.$b(y)||(q["X-YouTube-Ad-Signals"]= p9(hM()));return q}; Ro=function(y,q){q.method="POST";q.postParams||(q.postParams={});return g.HF(y,q)}; wwb=function(y,q){if(window.fetch&&q.format!=="XML"){var Q={method:q.method||"GET",credentials:"same-origin"};q.headers&&(Q.headers=q.headers);q.priority&&(Q.priority=q.priority);y=VTj(y,q);var p=OG8(y,q);p&&(Q.body=p);q.withCredentials&&(Q.credentials="include");var v=q.context||g.CS,d=!1,T;fetch(y,Q).then(function(O){if(!d){d=!0;T&&g.Z1(T);var w=O.ok,J=function(F){F=F||{};w?q.onSuccess&&q.onSuccess.call(v,F,O):q.onError&&q.onError.call(v,F,O);q.onFinish&&q.onFinish.call(v,F,O)}; (q.format||"JSON")==="JSON"&&(w||O.status>=400&&O.status<500)?O.json().then(J,function(){J(null)}):J(null)}}).catch(function(){q.onError&&q.onError.call(v,{},{})}); y=q.timeout||0;q.onFetchTimeout&&y>0&&(T=g.xQ(function(){d||(d=!0,g.Z1(T),q.onFetchTimeout.call(q.context||g.CS))},y))}else g.HF(y,q)}; g.HF=function(y,q){var Q=q.format||"JSON";y=VTj(y,q);var p=OG8(y,q),v=!1,d=JSg(y,function(w){if(!v){v=!0;O&&g.Z1(O);var J=g.$Q(w),F=null,Y=400<=w.status&&w.status<500,f=500<=w.status&&w.status<600;if(J||Y||f)F=FC9(y,Q,w,q.convertToSafeHtml);J&&(J=YIs(Q,w,F));F=F||{};Y=q.context||g.CS;J?q.onSuccess&&q.onSuccess.call(Y,w,F):q.onError&&q.onError.call(Y,w,F);q.onFinish&&q.onFinish.call(Y,w,F)}},q.method,p,q.headers,q.responseType,q.withCredentials,!1,q.onProgress); p=q.timeout||0;if(q.onTimeout&&p>0){var T=q.onTimeout;var O=g.xQ(function(){v||(v=!0,d.abort(),g.Z1(O),T.call(q.context||g.CS,d))},p)}return d}; VTj=function(y,q){q.includeDomain&&(y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+y);var Q=g.XY("XSRF_FIELD_NAME");if(q=q.urlParams)q[Q]&&delete q[Q],y=V9(y,q);return y}; OG8=function(y,q){var Q=g.XY("XSRF_FIELD_NAME"),p=g.XY("XSRF_TOKEN"),v=q.postBody||"",d=q.postParams,T=g.XY("XSRF_FIELD_NAME"),O;q.headers&&(O=q.headers["Content-Type"]);q.excludeXsrf||g.$b(y)&&!q.withCredentials&&g.$b(y)!==document.location.hostname||q.method!=="POST"||O&&O!=="application/x-www-form-urlencoded"||q.postParams&&q.postParams[T]||(d||(d={}),d[Q]=p);(g.kQ("ajax_parse_query_data_only_when_filled")&&d&&Object.keys(d).length>0||d)&&typeof v==="string"&&(v=vF(v),g.WK(v,d),v=q.postBodyFormat&& q.postBodyFormat==="JSON"?JSON.stringify(v):g.Ew(v));d=v||d&&!g.hn(d);!fMs&&d&&q.method!=="POST"&&(fMs=!0,g.y9(Error("AJAX request with postData should use POST")));return v}; FC9=function(y,q,Q,p){var v=null;switch(q){case "JSON":try{var d=Q.responseText}catch(T){throw p=Error("Error reading responseText"),p.params=y,js(p),T;}y=Q.getResponseHeader("Content-Type")||"";d&&y.indexOf("json")>=0&&(d.substring(0,5)===")]}'\n"&&(d=d.substring(5)),v=JSON.parse(d));break;case "XML":if(y=(y=Q.responseXML)?hLp(y):null)v={},g.mS(y.getElementsByTagName("*"),function(T){v[T.tagName]=bGj(T)})}p&&$vs(v); return v}; $vs=function(y){if(g.dk(y))for(var q in y)q==="html_content"||cHi(q,"_html")?y[q]=hK(y[q]):$vs(y[q])}; YIs=function(y,q,Q){if(q&&q.status===204)return!0;switch(y){case "JSON":return!!Q;case "XML":return Number(Q&&Q.return_code)===0;case "RAW":return!0;default:return!!Q}}; hLp=function(y){return y?(y=("responseXML"in y?y.responseXML:y).getElementsByTagName("root"))&&y.length>0?y[0]:null:null}; bGj=function(y){var q="";g.mS(y.childNodes,function(Q){q+=Q.nodeValue}); return q}; v9D=function(y){var q=window.location.search,Q=g.$b(y);g.kQ("debug_handle_relative_url_for_query_forward_killswitch")||!Q&&w_(y)&&(Q=document.location.hostname);var p=KW(y);p=(Q=Q&&(Q.endsWith("youtube.com")||Q.endsWith("youtube-nocookie.com")))&&p&&p.startsWith("/api/");if(!Q||p)return y;var v=vF(q),d={};g.mS(KCs,function(T){v[T]&&(d[T]=v[T])}); return Ox(y,d)}; M7=function(y,q){var Q=g.KM(q),p;return(new g.zD(function(v,d){Q.onSuccess=function(T){g.$Q(T)?v(new xv3(T)):d(new sx("Request failed, status="+bb(T),"net.badstatus",T))}; Q.onError=function(T){d(new sx("Unknown request error","net.unknown",T))}; Q.onTimeout=function(T){d(new sx("Request timed out","net.timeout",T))}; p=g.HF(y,Q)})).IE(function(v){if(v instanceof cq){var d; (d=p)==null||d.abort()}return Iw(v)})}; g.lb=function(y,q,Q,p,v,d){function T(w,J,F){return w.IE(function(Y){if(J<=0||bb(Y.xhr)===403)return Iw(new sx("Request retried too many times","net.retryexhausted",Y.xhr,Y));var f=Math.pow(2,Q-J+1)*F,h=v>0?Math.min(v,f):f;return O(F).then(function(){d&&d(Y,J-1);return T(M7(y,q),J-1,h)})})} function O(w){return new g.zD(function(J){setTimeout(J,w)})} v=v===void 0?-1:v;return T(M7(y,q),Q-1,p)}; sx=function(y,q,Q){$q.call(this,y+", errorCode="+q);this.errorCode=q;this.xhr=Q;this.name="PromiseAjaxError"}; xv3=function(y){this.xhr=y}; zS=function(y){this.K=y===void 0?null:y;this.N=0;this.W=null}; D1=function(y){var q=new zS;y=y===void 0?null:y;q.N=2;q.W=y===void 0?null:y;return q}; ub=function(y){var q=new zS;y=y===void 0?null:y;q.N=1;q.W=y===void 0?null:y;return q}; g.g_=function(y,q,Q,p,v){Io||n9.set(""+y,q,{zo:Q,path:"/",domain:p===void 0?"youtube.com":p,secure:v===void 0?!1:v})}; g.cF=function(y,q){if(!Io)return n9.get(""+y,q)}; g.Ux=function(y,q,Q){Io||n9.remove(""+y,q===void 0?"/":q,Q===void 0?"youtube.com":Q)}; WCs=function(){if(g.kQ("embeds_web_enable_cookie_detection_fix")){if(!g.CS.navigator.cookieEnabled)return!1}else if(!n9.isEnabled())return!1;if(!n9.isEmpty())return!0;g.kQ("embeds_web_enable_cookie_detection_fix")?n9.set("TESTCOOKIESENABLED","1",{zo:60,SuB:"none",secure:!0}):n9.set("TESTCOOKIESENABLED","1",{zo:60});if(n9.get("TESTCOOKIESENABLED")!=="1")return!1;n9.remove("TESTCOOKIESENABLED");return!0}; g.U=function(y,q){if(y)return y[q.name]}; r_=function(y){var q=g.XY("INNERTUBE_HOST_OVERRIDE");q&&(y=String(q)+String(xb(y)));return y}; ZGp=function(y){var q={};g.kQ("json_condensed_response")&&(q.prettyPrint="false");return y=Ox(y,q)}; oo=function(y,q){var Q=Q===void 0?{}:Q;y={method:q===void 0?"POST":q,mode:w_(y)?"same-origin":"cors",credentials:w_(y)?"same-origin":"include"};q={};for(var p=g.t(Object.keys(Q)),v=p.next();!v.done;v=p.next())v=v.value,Q[v]&&(q[v]=Q[v]);Object.keys(q).length>0&&(y.headers=q);return y}; AM=function(){var y=/Chrome\/(\d+)/.exec(g.cK());return y?parseFloat(y[1]):NaN}; es=function(){var y=/\sCobalt\/(\S+)\s/.exec(g.cK());if(!y)return NaN;var q=[];y=g.t(y[1].split("."));for(var Q=y.next();!Q.done;Q=y.next())Q=parseInt(Q.value,10),Q>=0&&q.push(Q);return parseFloat(q.join("."))}; GS=function(){return g.BF("android")&&g.BF("chrome")&&!(g.BF("trident/")||g.BF("edge/"))&&!g.BF("cobalt")}; tTC=function(){return g.BF("armv7")||g.BF("aarch64")||g.BF("android")}; g.PF=function(){return g.BF("cobalt")}; ib=function(){return g.BF("cobalt")&&g.BF("appletv")}; Xq=function(){return g.BF("(ps3; leanback shell)")||g.BF("ps3")&&g.PF()}; E9f=function(){return g.BF("(ps4; leanback shell)")||g.BF("ps4")&&g.PF()}; g.kQC=function(){return g.PF()&&(g.BF("ps4 vr")||g.BF("ps4 pro vr"))}; mU=function(){var y=/WebKit\/([0-9]+)/.exec(g.cK());return!!(y&&parseInt(y[1],10)>=600)}; C9=function(){var y=/WebKit\/([0-9]+)/.exec(g.cK());return!!(y&&parseInt(y[1],10)>=602)}; LCC=function(){return g.BF("iemobile")||g.BF("windows phone")&&g.BF("edge")}; je=function(){return(yB||qx)&&g.BF("applewebkit")&&!g.BF("version")&&(!g.BF("safari")||g.BF("gsa/"))}; p_=function(){return g.QB&&g.BF("version/")}; vn=function(){return g.BF("smart-tv")&&g.BF("samsung")}; g.BF=function(y){var q=g.cK();return q?q.toLowerCase().indexOf(y)>=0:!1}; df=function(){return CZ9()||je()||p_()?!0:g.XY("EOM_VISITOR_DATA")?!1:!0}; TH=function(y,q){return q===void 0||q===null?y:q==="1"||q===!0||q===1||q==="True"?!0:!1}; VB=function(y,q,Q){for(var p in Q)if(Q[p]==q)return Q[p];return y}; OM=function(y,q){return q===void 0||q===null?y:Number(q)}; wf=function(y,q){return q===void 0||q===null?y:q.toString()}; Jp=function(y,q){if(q){if(y==="fullwidth")return Infinity;if(y==="fullheight")return 0}return y&&(q=y.match(aM3))&&(y=Number(q[2]),q=Number(q[1]),!isNaN(y)&&!isNaN(q)&&y>0)?q/y:NaN}; FW=function(y){var q=y.docid||y.video_id||y.videoId||y.id;if(q)return q;q=y.raw_player_response;q||(y=y.player_response)&&(q=JSON.parse(y));return q&&q.videoDetails&&q.videoDetails.videoId||null}; NNC=function(y){return YJ(y,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.f_=function(y){return y==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||y==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; YJ=function(y,q){q=(q===void 0?0:q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(q="EMBEDDED_PLAYER_MODE_PFL");var Q=y.raw_embedded_player_response;if(!Q&&(y=y.embedded_player_response))try{Q=JSON.parse(y)}catch(p){return q}return Q?VB(q,Q.embeddedPlayerMode,SIp):q}; bw=function(y){$q.call(this,y.message||y.description||y.name);this.isMissing=y instanceof hp;this.isTimeout=y instanceof sx&&y.errorCode=="net.timeout";this.isCanceled=y instanceof cq}; hp=function(){$q.call(this,"Biscotti ID is missing from server")}; HGS=function(){if(g.kQ("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!df())return Error("User has not consented - not fetching biscotti id.");var y=g.XY("PLAYER_VARS",{});if(g.bo(y,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(NNC(y))return Error("Biscotti id fetching has been disabled for pfl.")}; lM3=function(){var y=HGS();if(y!==void 0)return Iw(y);$J||($J=M7("//googleads.g.doubleclick.net/pagead/id",RLS).then(sTf).IE(function(q){return MT8(2,q)})); return $J}; sTf=function(y){y=y.xhr.responseText;if(!MO(y,")]}'"))throw new hp;y=JSON.parse(y.substr(4));if((y.type||1)>1)throw new hp;y=y.id;BoS(y);$J=ub(y);zLp(18E5,2);return y}; MT8=function(y,q){q=new bw(q);BoS("");$J=D1(q);y>0&&zLp(12E4,y-1);throw q;}; zLp=function(y,q){g.xQ(function(){M7("//googleads.g.doubleclick.net/pagead/id",RLS).then(sTf,function(Q){return MT8(q,Q)}).IE(g.D5)},y)}; DvH=function(){try{var y=g.qw("yt.ads.biscotti.getId_");return y?y():lM3()}catch(q){return Iw(q)}}; IMD=function(y){y&&(y.dataset?y.dataset[uop()]="true":jng(y))}; n9C=function(y){return y?y.dataset?y.dataset[uop()]:y.getAttribute("data-loaded"):null}; uop=function(){return g9H.loaded||(g9H.loaded="loaded".replace(/\-([a-z])/g,function(y,q){return q.toUpperCase()}))}; cSD=function(){var y=document;if("visibilityState"in y)return y.visibilityState;var q=K_+"VisibilityState";if(q in y)return y[q]}; xJ=function(y,q){var Q;XH(y,function(p){Q=q[p];return!!Q}); return Q}; Wn=function(y){if(y.requestFullscreen)y=y.requestFullscreen(void 0);else if(y.webkitRequestFullscreen)y=y.webkitRequestFullscreen();else if(y.mozRequestFullScreen)y=y.mozRequestFullScreen();else if(y.msRequestFullscreen)y=y.msRequestFullscreen();else if(y.webkitEnterFullscreen)y=y.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return y instanceof Promise?y:Promise.resolve()}; EM=function(y){var q;g.ZW()?tp()==y&&(q=document):q=y;return q&&(y=xJ(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],q))?(q=y.call(q),q instanceof Promise?q:Promise.resolve()):Promise.resolve()}; UvD=function(y){return g.ZC(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(q){return"on"+q.toLowerCase()in y})}; rS9=function(){var y=document;return g.ZC(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(q){return"on"+q.toLowerCase()in y})}; g.ZW=function(){return!!xJ(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; tp=function(y){y=y===void 0?!1:y;var q=xJ(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(y)for(;q&&q.shadowRoot;)q=q.shadowRoot.fullscreenElement;return q?q:null}; kJ=function(y){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(y=y||window.event){this.event=y;for(var q in y)q in o9i||(this[q]=y[q]);this.scale=y.scale;this.rotation=y.rotation;var Q=y.target||y.srcElement;Q&&Q.nodeType==3&&(Q=Q.parentNode);this.target=Q;var p=y.relatedTarget; if(p)try{p=p.nodeName?p:null}catch(v){p=null}else this.type=="mouseover"?p=y.fromElement:this.type=="mouseout"&&(p=y.toElement);this.relatedTarget=p;this.clientX=y.clientX!=void 0?y.clientX:y.pageX;this.clientY=y.clientY!=void 0?y.clientY:y.pageY;this.keyCode=y.keyCode?y.keyCode:y.which;this.charCode=y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=y.altKey;this.ctrlKey=y.ctrlKey;this.shiftKey=y.shiftKey;this.metaKey=y.metaKey;this.K=y.pageX;this.W=y.pageY}}catch(v){}}; AS8=function(y){if(document.body&&document.documentElement){var q=document.body.scrollTop+document.documentElement.scrollTop;y.K=y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);y.W=y.clientY+q}}; eL9=function(y,q,Q,p){p=p===void 0?{}:p;y.addEventListener&&(q!="mouseenter"||"onmouseenter"in document?q!="mouseleave"||"onmouseenter"in document?q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"):q="mouseout":q="mouseover");return fM(L_,function(v){var d=typeof v[4]==="boolean"&&v[4]==!!p,T=g.dk(v[4])&&g.dk(p)&&g.$G(v[4],p);return!!v.length&&v[0]==y&&v[1]==q&&v[2]==Q&&(d||T)})}; g.ae=function(y,q,Q,p){p=p===void 0?{}:p;if(!y||!y.addEventListener&&!y.attachEvent)return"";var v=eL9(y,q,Q,p);if(v)return v;v=++BNf.count+"";var d=!(q!="mouseenter"&&q!="mouseleave"||!y.addEventListener||"onmouseenter"in document);var T=d?function(O){O=new kJ(O);if(!S_(O.relatedTarget,function(w){return w==y},!0))return O.currentTarget=y,O.type=q,Q.call(y,O)}:function(O){O=new kJ(O); O.currentTarget=y;return Q.call(y,O)}; T=g.q7(T);y.addEventListener?(q=="mouseenter"&&d?q="mouseover":q=="mouseleave"&&d?q="mouseout":q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"),GQf()||typeof p==="boolean"?y.addEventListener(q,T,p):y.addEventListener(q,T,!!p.capture)):y.attachEvent("on"+q,T);L_[v]=[y,q,Q,T,p];return v}; iGi=function(y){return PWs(y,function(q){return g.O$(q,"ytp-ad-has-logging-urls")})}; PWs=function(y,q){var Q=document.body||document;return g.ae(Q,"click",function(p){var v=S_(p.target,function(d){return d===Q||q(d)},!0); v&&v!==Q&&!v.disabled&&(p.currentTarget=v,y.call(v,p))})}; g.Nx=function(y){y&&(typeof y=="string"&&(y=[y]),g.mS(y,function(q){if(q in L_){var Q=L_[q],p=Q[0],v=Q[1],d=Q[3];Q=Q[4];p.removeEventListener?GQf()||typeof Q==="boolean"?p.removeEventListener(v,d,Q):p.removeEventListener(v,d,!!Q.capture):p.detachEvent&&p.detachEvent("on"+v,d);delete L_[q]}}))}; Se=function(y){for(var q in L_)L_[q][0]==y&&g.Nx(q)}; Hn=function(y){y=y||window.event;var q;y.composedPath&&typeof y.composedPath==="function"?q=y.composedPath():q=y.path;q&&q.length?y=q[0]:(y=y||window.event,y=y.target||y.srcElement,y.nodeType==3&&(y=y.parentNode));return y}; Re=function(y){this.X=y;this.K=null;this.Y=0;this.G=null;this.J=0;this.W=[];for(y=0;y<4;y++)this.W.push(0);this.N=0;this.N$=g.ae(window,"mousemove",(0,g.wk)(this.j,this));this.C=g.WF((0,g.wk)(this.cI,this),25)}; sM=function(y){g.I.call(this);this.X=[];this.RH=y||this}; Mx=function(y,q,Q,p){for(var v=0;v0?Q:0;Q=p?Date.now()+p*1E3:0;if((p=p?g.zH.Zg():g.zH.Pl())&&window.JSON){typeof q!=="string"&&(q=JSON.stringify(q,void 0));try{p.set(y,q,Q)}catch(v){p.remove(y)}}}; g.uw=function(y){var q=g.zH.Pl(),Q=g.zH.Zg();if(!q&&!Q||!window.JSON)return null;try{var p=q.get(y)}catch(v){}if(typeof p!=="string")try{p=Q.get(y)}catch(v){}if(typeof p!=="string")return null;try{p=JSON.parse(p,void 0)}catch(v){}return p}; mvi=function(){var y=g.zH.Zg();if(y&&(y=y.dO("yt-player-quality")))return y.creation}; g.Ie=function(y){try{var q=g.zH.Pl(),Q=g.zH.Zg();q&&q.remove(y);Q&&Q.remove(y)}catch(p){}}; g.n_=function(){return g.uw("yt-remote-session-screen-id")}; CWH=function(y){var q=this;this.W=void 0;this.K=!1;y.addEventListener("beforeinstallprompt",function(Q){Q.preventDefault();q.W=Q}); y.addEventListener("appinstalled",function(){q.K=!0},{once:!0})}; gf=function(){if(!g.CS.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.CS.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.CS.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.CS.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.CS.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(y){return"WEB_DISPLAY_MODE_UNKNOWN"}}; cn=function(){this.Od=!0}; yAs=function(){cn.instance||(cn.instance=new cn);return cn.instance}; qa3=function(y){switch(y){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; jpH=function(){this.K=g.XY("ALT_PREF_COOKIE_NAME","PREF");this.W=g.XY("ALT_PREF_COOKIE_DOMAIN","youtube.com");var y=g.cF(this.K);y&&this.parse(y)}; g.rf=function(){UM||(UM=new jpH);return UM}; Ap=function(y,q){var Q="f"+(Math.floor(y/31)+1);y=1<0;)switch(y=J_.shift(),y.type){case "ERROR":T3.Ea(y.payload);break;case "EVENT":T3.logEvent(y.eventType,y.payload)}}; YC=function(y){Fy||(T3?T3.Ea(y):(J_.push({type:"ERROR",payload:y}),J_.length>10&&J_.shift()))}; fd=function(y,q){Fy||(T3?T3.logEvent(y,q):(J_.push({type:"EVENT",eventType:y,payload:q}),J_.length>10&&J_.shift()))}; h_=function(y){if(y.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; bv=function(y){return y.substr(0,y.indexOf(":"))||y}; g.$C=function(y,q,Q,p,v){q=q===void 0?{}:q;Q=Q===void 0?JAC[y]:Q;p=p===void 0?Fu2[y]:p;v=v===void 0?Ya3[y]:v;g.GH.call(this,Q,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:y},q));this.type=y;this.message=Q;this.level=p;this.K=v;Object.setPrototypeOf(this,g.$C.prototype)}; Kd=function(y,q){g.$C.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:q,foundObjectStores:y},JAC.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Kd.prototype)}; xC=function(y,q){var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.index=y;this.objectStore=q;Object.setPrototypeOf(this,xC.prototype)}; ZG=function(y,q,Q,p){q=bv(q);var v=y instanceof Error?y:Error("Unexpected error: "+y);if(v instanceof g.$C)return v;y={objectStoreNames:Q,dbName:q,dbVersion:p};if(v.name==="QuotaExceededError")return new g.$C("QUOTA_EXCEEDED",y);if(g.W9&&v.name==="UnknownError")return new g.$C("QUOTA_MAYBE_EXCEEDED",y);if(v instanceof xC)return new g.$C("MISSING_INDEX",Object.assign({},y,{objectStore:v.objectStore,index:v.index}));if(v.name==="InvalidStateError"&&fef.some(function(d){return v.message.includes(d)}))return new g.$C("EXECUTE_TRANSACTION_ON_CLOSED_DB", y); if(v.name==="AbortError")return new g.$C("UNKNOWN_ABORT",y,v.message);v.args=[Object.assign({},y,{name:"IdbError",A2:v.name})];v.level="WARNING";return v}; g.t_=function(y,q,Q){var p=dU();return new g.$C("IDB_NOT_SUPPORTED",{context:{caller:y,publicName:q,version:Q,hasSucceededOnce:p==null?void 0:p.hasSucceededOnce}})}; hej=function(y){if(!y)throw Error();throw y;}; bXS=function(y){return y}; Ef=function(y){this.K=y}; g.kC=function(y){function q(v){if(p.state.status==="PENDING"){p.state={status:"REJECTED",reason:v};v=g.t(p.W);for(var d=v.next();!d.done;d=v.next())d=d.value,d()}} function Q(v){if(p.state.status==="PENDING"){p.state={status:"FULFILLED",value:v};v=g.t(p.K);for(var d=v.next();!d.done;d=v.next())d=d.value,d()}} var p=this;this.state={status:"PENDING"};this.K=[];this.W=[];y=y.K;try{y(Q,q)}catch(v){q(v)}}; $nf=function(y,q,Q,p,v){try{if(y.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var d=Q(y.state.value);d instanceof g.kC?Ld(y,q,d,p,v):p(d)}catch(T){v(T)}}; Kui=function(y,q,Q,p,v){try{if(y.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var d=Q(y.state.reason);d instanceof g.kC?Ld(y,q,d,p,v):p(d)}catch(T){v(T)}}; Ld=function(y,q,Q,p,v){q===Q?v(new TypeError("Circular promise chain detected.")):Q.then(function(d){d instanceof g.kC?Ld(y,q,d,p,v):p(d)},function(d){v(d)})}; xni=function(y,q,Q){function p(){Q(y.error);d()} function v(){q(y.result);d()} function d(){try{y.removeEventListener("success",v),y.removeEventListener("error",p)}catch(T){}} y.addEventListener("success",v);y.addEventListener("error",p)}; Wup=function(y){return new Promise(function(q,Q){xni(y,q,Q)})}; ak=function(y){return new g.kC(new Ef(function(q,Q){xni(y,q,Q)}))}; Nb=function(y,q){return new g.kC(new Ef(function(Q,p){function v(){var d=y?q(y):null;d?d.then(function(T){y=T;v()},p):Q()} v()}))}; ZX9=function(y,q){this.request=y;this.cursor=q}; txi=function(y){return ak(y).then(function(q){return q?new ZX9(y,q):null})}; g.E09=function(y){y.cursor.continue(void 0);return txi(y.request)}; kog=function(y,q){this.K=y;this.options=q;this.transactionCount=0;this.N=Math.round((0,g.SK)());this.W=!1}; H9=function(){return g.kQ("idb_immediate_commit")}; g.sf=function(y,q,Q){y=y.K.createObjectStore(q,Q);return new Rk(y)}; Mb=function(y,q){y.K.objectStoreNames.contains(q)&&y.K.deleteObjectStore(q)}; g.DG=function(y,q,Q){return g.lv(y,[q],{mode:"readwrite",ij:!0,commit:H9()},function(p){return g.z3(p.objectStore(q),Q)})}; g.lv=function(y,q,Q,p){var v,d,T,O,w,J,F,Y,f,h,b,Z;return g.M(function(k){switch(k.K){case 1:var S={mode:"readonly",ij:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Q==="string"?S.mode=Q:Object.assign(S,Q);v=S;y.transactionCount++;d=v.ij?3:1;T=0;case 2:if(O){k.ej(4);break}T++;w=Math.round((0,g.SK)());g.EC(k,5);J=y.K.transaction(q,v.mode);S=!!v.commit;var N=new uv(J);S=Lus(N,p,S);return g.R(k,S,7);case 7:return F=k.W,Y=Math.round((0,g.SK)()),ae9(y,w,Y,T,void 0,q.join(),v),k.return(F);case 5:f=g.Rj(k); h=Math.round((0,g.SK)());b=ZG(f,y.K.name,q.join(),y.K.version);if((Z=b instanceof g.$C&&!b.K)||T>=d)ae9(y,w,h,T,b,q.join(),v),O=b;k.ej(2);break;case 4:return k.return(Promise.reject(O))}})}; ae9=function(y,q,Q,p,v,d,T){q=Q-q;v?(v instanceof g.$C&&(v.type==="QUOTA_EXCEEDED"||v.type==="QUOTA_MAYBE_EXCEEDED")&&fd("QUOTA_EXCEEDED",{dbName:bv(y.K.name),objectStoreNames:d,transactionCount:y.transactionCount,transactionMode:T.mode}),v instanceof g.$C&&v.type==="UNKNOWN_ABORT"&&(Q-=y.N,Q<0&&Q>=2147483648&&(Q=0),fd("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:d,transactionDuration:q,transactionCount:y.transactionCount,dbDuration:Q}),y.W=!0),NPD(y,!1,p,d,q,T.tag),YC(v)):NPD(y,!0,p,d,q, T.tag)}; NPD=function(y,q,Q,p,v,d){fd("TRANSACTION_ENDED",{objectStoreNames:p,connectionHasUnknownAbortedTransaction:y.W,duration:v,isSuccessful:q,tryCount:Q,tag:d===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":d})}; Rk=function(y){this.K=y}; g.Ik=function(y,q,Q){y.K.createIndex(q,Q,{unique:!1})}; Sa2=function(y,q){return g.nd(y,{query:q},function(Q){return Q.delete().then(function(){return g.gU(Q)})}).then(function(){})}; HXD=function(y,q,Q){var p=[];return g.nd(y,{query:q},function(v){if(!(Q!==void 0&&p.length>=Q))return p.push(v.getValue()),g.gU(v)}).then(function(){return p})}; sp3=function(y){return"getAllKeys"in IDBObjectStore.prototype?ak(y.K.getAllKeys(void 0,void 0)):Re9(y)}; Re9=function(y){var q=[];return g.Mxb(y,{query:void 0},function(Q){q.push(Q.cursor.primaryKey);return g.E09(Q)}).then(function(){return q})}; g.z3=function(y,q,Q){return ak(y.K.put(q,Q))}; g.nd=function(y,q,Q){y=y.K.openCursor(q.query,q.direction);return c9(y).then(function(p){return Nb(p,Q)})}; g.Mxb=function(y,q,Q){var p=q.query;q=q.direction;y="openKeyCursor"in IDBObjectStore.prototype?y.K.openKeyCursor(p,q):y.K.openCursor(p,q);return txi(y).then(function(v){return Nb(v,Q)})}; uv=function(y){var q=this;this.K=y;this.N=new Map;this.W=!1;this.done=new Promise(function(Q,p){q.K.addEventListener("complete",function(){Q()}); q.K.addEventListener("error",function(v){v.currentTarget===v.target&&p(q.K.error)}); q.K.addEventListener("abort",function(){var v=q.K.error;if(v)p(v);else if(!q.W){v=g.$C;for(var d=q.K.objectStoreNames,T=[],O=0;O=Q))return p.push(v.getValue()),g.gU(v)}).then(function(){return p})}; g.Uf=function(y,q,Q){y=y.K.openCursor(q.query===void 0?null:q.query,q.direction===void 0?"next":q.direction);return c9(y).then(function(p){return Nb(p,Q)})}; rU=function(y,q){this.request=y;this.cursor=q}; c9=function(y){return ak(y).then(function(q){return q?new rU(y,q):null})}; g.gU=function(y){y.cursor.continue(void 0);return c9(y.request)}; Dn2=function(y,q,Q){return new Promise(function(p,v){function d(){f||(f=new kog(T.result,{closed:Y}));return f} var T=q!==void 0?self.indexedDB.open(y,q):self.indexedDB.open(y);var O=Q.blocked,w=Q.blocking,J=Q.Nhw,F=Q.upgrade,Y=Q.closed,f;T.addEventListener("upgradeneeded",function(h){try{if(h.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(T.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");h.dataLoss&&h.dataLoss!=="none"&&fd("IDB_DATA_CORRUPTED",{reason:h.dataLossMessage||"unknown reason",dbName:bv(y)});var b=d(),Z=new uv(T.transaction); F&&F(b,function(k){return h.oldVersion=k},Z); Z.done.catch(function(k){v(k)})}catch(k){v(k)}}); T.addEventListener("success",function(){var h=T.result;w&&h.addEventListener("versionchange",function(){w(d())}); h.addEventListener("close",function(){fd("IDB_UNEXPECTEDLY_CLOSED",{dbName:bv(y),dbVersion:h.version});J&&J()}); p(d())}); T.addEventListener("error",function(){v(T.error)}); O&&T.addEventListener("blocked",function(){O()})})}; u4f=function(y,q,Q){Q=Q===void 0?{}:Q;return Dn2(y,q,Q)}; ok=function(y,q){q=q===void 0?{}:q;var Q,p,v,d;return g.M(function(T){if(T.K==1)return g.EC(T,2),Q=self.indexedDB.deleteDatabase(y),p=q,(v=p.blocked)&&Q.addEventListener("blocked",function(){v()}),g.R(T,Wup(Q),4); if(T.K!=2)return g.Hp(T,0);d=g.Rj(T);throw ZG(d,y,"",-1);})}; A_=function(y,q){this.name=y;this.options=q;this.N=!0;this.J=this.Y=0}; IeC=function(y,q){return new g.$C("INCOMPATIBLE_DB_VERSION",{dbName:y.name,oldVersion:y.options.version,newVersion:q})}; g.eK=function(y,q){if(!q)throw g.t_("openWithToken",bv(y.name));return y.open()}; n08=function(y,q){var Q;return g.M(function(p){if(p.K==1)return g.R(p,g.eK(B9,q),2);Q=p.W;return p.return(g.lv(Q,["databases"],{ij:!0,mode:"readwrite"},function(v){var d=v.objectStore("databases");return d.get(y.actualName).then(function(T){if(T?y.actualName!==T.actualName||y.publicName!==T.publicName||y.userIdentifier!==T.userIdentifier:1)return g.z3(d,y).then(function(){})})}))})}; G3=function(y,q){var Q;return g.M(function(p){if(p.K==1)return y?g.R(p,g.eK(B9,q),2):p.return();Q=p.W;return p.return(Q.delete("databases",y))})}; g09=function(y,q){var Q,p;return g.M(function(v){return v.K==1?(Q=[],g.R(v,g.eK(B9,q),2)):v.K!=3?(p=v.W,g.R(v,g.lv(p,["databases"],{ij:!0,mode:"readonly"},function(d){Q.length=0;return g.nd(d.objectStore("databases"),{},function(T){y(T.getValue())&&Q.push(T.getValue());return g.gU(T)})}),3)):v.return(Q)})}; cA3=function(y,q){return g09(function(Q){return Q.publicName===y&&Q.userIdentifier!==void 0},q)}; Un9=function(){var y,q,Q,p;return g.M(function(v){switch(v.K){case 1:y=dU();if((q=y)==null?0:q.hasSucceededOnce)return v.return(!0);if(P9&&mU()&&!C9()||g.iv)return v.return(!1);try{if(Q=self,!(Q.indexedDB&&Q.IDBIndex&&Q.IDBKeyRange&&Q.IDBObjectStore))return v.return(!1)}catch(d){return v.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return v.return(!1);g.EC(v,2);p={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.R(v,n08(p,Xy),4);case 4:return g.R(v,G3("yt-idb-test-do-not-use",Xy),5);case 5:return v.return(!0);case 2:return g.Rj(v),v.return(!1)}})}; rAf=function(){if(mG!==void 0)return mG;Fy=!0;return mG=Un9().then(function(y){Fy=!1;var q;if((q=v9())!=null&&q.K){var Q;q={hasSucceededOnce:((Q=dU())==null?void 0:Q.hasSucceededOnce)||y};var p;(p=v9())==null||p.set("LAST_RESULT_ENTRY_KEY",q,2592E3,!0)}return y})}; Cd=function(){return g.qw("ytglobal.idbToken_")||void 0}; g.y1=function(){var y=Cd();return y?Promise.resolve(y):rAf().then(function(q){(q=q?Xy:void 0)&&g.y_("ytglobal.idbToken_",q);return q})}; o0H=function(y){if(!g.iw())throw y=new g.$C("AUTH_INVALID",{dbName:y}),YC(y),y;var q=g.Pn();return{actualName:y+":"+q,publicName:y,userIdentifier:q}}; AAb=function(y,q,Q,p){var v,d,T,O,w,J;return g.M(function(F){switch(F.K){case 1:return d=(v=Error().stack)!=null?v:"",g.R(F,g.y1(),2);case 2:T=F.W;if(!T)throw O=g.t_("openDbImpl",y,q),g.kQ("ytidb_async_stack_killswitch")||(O.stack=O.stack+"\n"+d.substring(d.indexOf("\n")+1)),YC(O),O;h_(y);w=Q?{actualName:y,publicName:y,userIdentifier:void 0}:o0H(y);g.EC(F,3);return g.R(F,n08(w,T),5);case 5:return g.R(F,u4f(w.actualName,q,p),6);case 6:return F.return(F.W);case 3:return J=g.Rj(F),g.EC(F,7),g.R(F,G3(w.actualName, T),9);case 9:g.Hp(F,8);break;case 7:g.Rj(F);case 8:throw J;}})}; eej=function(y,q,Q){Q=Q===void 0?{}:Q;return AAb(y,q,!1,Q)}; BPb=function(y,q,Q){Q=Q===void 0?{}:Q;return AAb(y,q,!0,Q)}; Go2=function(y,q){q=q===void 0?{}:q;var Q,p;return g.M(function(v){if(v.K==1)return g.R(v,g.y1(),2);if(v.K!=3){Q=v.W;if(!Q)return v.return();h_(y);p=o0H(y);return g.R(v,ok(p.actualName,q),3)}return g.R(v,G3(p.actualName,Q),0)})}; P6b=function(y,q,Q){y=y.map(function(p){return g.M(function(v){return v.K==1?g.R(v,ok(p.actualName,q),2):g.R(v,G3(p.actualName,Q),0)})}); return Promise.all(y).then(function(){})}; iXb=function(y){var q=q===void 0?{}:q;var Q,p;return g.M(function(v){if(v.K==1)return g.R(v,g.y1(),2);if(v.K!=3){Q=v.W;if(!Q)return v.return();h_(y);return g.R(v,cA3(y,Q),3)}p=v.W;return g.R(v,P6b(p,q,Q),0)})}; XHC=function(y,q){q=q===void 0?{}:q;var Q;return g.M(function(p){if(p.K==1)return g.R(p,g.y1(),2);if(p.K!=3){Q=p.W;if(!Q)return p.return();h_(y);return g.R(p,ok(y,q),3)}return g.R(p,G3(y,Q),0)})}; q3=function(y,q){A_.call(this,y,q);this.options=q;h_(y)}; mn9=function(y,q){var Q;return function(){Q||(Q=new q3(y,q));return Q}}; g.jB=function(y,q){return mn9(y,q)}; Q1=function(y){return g.eK(C63(),y)}; yr9=function(y,q,Q,p){var v,d,T;return g.M(function(O){switch(O.K){case 1:return v={config:y,hashData:q,timestamp:p!==void 0?p:(0,g.SK)()},g.R(O,Q1(Q),2);case 2:return d=O.W,g.R(O,d.clear("hotConfigStore"),3);case 3:return g.R(O,g.DG(d,"hotConfigStore",v),4);case 4:return T=O.W,O.return(T)}})}; q$D=function(y,q,Q,p,v){var d,T,O;return g.M(function(w){switch(w.K){case 1:return d={config:y,hashData:q,configData:Q,timestamp:v!==void 0?v:(0,g.SK)()},g.R(w,Q1(p),2);case 2:return T=w.W,g.R(w,T.clear("coldConfigStore"),3);case 3:return g.R(w,g.DG(T,"coldConfigStore",d),4);case 4:return O=w.W,w.return(O)}})}; j4p=function(y){var q,Q;return g.M(function(p){return p.K==1?g.R(p,Q1(y),2):p.K!=3?(q=p.W,Q=void 0,g.R(p,g.lv(q,["coldConfigStore"],{mode:"readwrite",ij:!0},function(v){return g.Uf(v.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(d){Q=d.getValue()})}),3)):p.return(Q)})}; Q4g=function(y){var q,Q;return g.M(function(p){return p.K==1?g.R(p,Q1(y),2):p.K!=3?(q=p.W,Q=void 0,g.R(p,g.lv(q,["hotConfigStore"],{mode:"readwrite",ij:!0},function(v){return g.Uf(v.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(d){Q=d.getValue()})}),3)):p.return(Q)})}; pO9=function(){return g.M(function(y){return g.R(y,iXb("ytGcfConfig"),0)})}; p0=function(){g.I.call(this);this.W=[];this.K=[];var y=g.qw("yt.gcf.config.hotUpdateCallbacks");y?(this.W=[].concat(g.hH(y)),this.K=y):(this.K=[],g.y_("yt.gcf.config.hotUpdateCallbacks",this.K))}; JP=function(){var y=this;this.J=!1;this.N=this.Y=0;this.G=new p0;this.je={IIy:function(){y.J=!0}, l5j:function(){return y.K}, qF$:function(q){vV(y,q)}, Yl:function(q){y.Yl(q)}, n1I:function(q){dW(y,q)}, GK:function(){return y.coldHashData}, By:function(){return y.hotHashData}, mEs:function(){return y.W}, Kj$:function(){return TU()}, clm:function(){return V1()}, WjI:function(){return g.qw("yt.gcf.config.coldHashData")}, RYs:function(){return g.qw("yt.gcf.config.hotHashData")}, gUp:function(){vy2(y)}, HAK:function(){y.Yl(void 0);O9(y);delete JP.instance}, OAm:function(q){y.N=q}, j1K:function(){return y.N}}}; dMS=function(){if(!JP.instance){var y=new JP;JP.instance=y}return JP.instance}; OU9=function(y){var q;g.M(function(Q){if(Q.K==1)return g.kQ("start_client_gcf")||g.kQ("delete_gcf_config_db")?g.kQ("start_client_gcf")?g.R(Q,g.y1(),3):Q.ej(2):Q.return();Q.K!=2&&((q=Q.W)&&g.iw()&&!g.kQ("delete_gcf_config_db")?(y.J=!0,vy2(y)):(TlH(y),V49(y)));return g.kQ("delete_gcf_config_db")?g.R(Q,pO9(),0):Q.ej(0)})}; FX=function(){var y;return(y=V1())!=null?y:g.XY("RAW_HOT_CONFIG_GROUP")}; wOp=function(y){var q,Q,p,v,d,T;return g.M(function(O){switch(O.K){case 1:if(y.W)return O.return(V1());if(!y.J)return q=g.t_("getHotConfig IDB not initialized"),js(q),O.return(Promise.reject(q));Q=Cd();p=g.XY("TIME_CREATED_MS");if(!Q){v=g.t_("getHotConfig token error");js(v);O.ej(2);break}return g.R(O,Q4g(Q),3);case 3:if((d=O.W)&&d.timestamp>p)return vV(y,d.config),y.Yl(d.hashData),O.return(V1());case 2:V49(y);if(!(Q&&y.W&&y.hotHashData)){O.ej(4);break}return g.R(O,yr9(y.W,y.hotHashData,Q,p),4);case 4:return y.W? O.return(V1()):(T=new g.GH("Config not available in ytConfig"),js(T),O.return(Promise.reject(T)))}})}; FOS=function(y){var q,Q,p,v,d,T;return g.M(function(O){switch(O.K){case 1:if(y.K)return O.return(TU());if(!y.J)return q=g.t_("getColdConfig IDB not initialized"),js(q),O.return(Promise.reject(q));Q=Cd();p=g.XY("TIME_CREATED_MS");if(!Q){v=g.t_("getColdConfig");js(v);O.ej(2);break}return g.R(O,j4p(Q),3);case 3:if((d=O.W)&&d.timestamp>p)return dW(y,d.config),JrC(y,d.configData),O9(y,d.hashData),O.return(TU());case 2:TlH(y);if(!(Q&&y.K&&y.coldHashData&&y.configData)){O.ej(4);break}return g.R(O,q$D(y.K, y.coldHashData,y.configData,Q,p),4);case 4:return y.K?O.return(TU()):(T=new g.GH("Config not available in ytConfig"),js(T),O.return(Promise.reject(T)))}})}; vy2=function(y){if(!y.W||!y.K){if(!Cd()){var q=g.t_("scheduleGetConfigs");js(q)}y.Y||(y.Y=g.BH.Dj(function(){return g.M(function(Q){switch(Q.K){case 1:return g.EC(Q,2),g.R(Q,wOp(y),4);case 4:g.Hp(Q,3);break;case 2:g.Rj(Q);case 3:return g.EC(Q,5),g.R(Q,FOS(y),7);case 7:g.Hp(Q,6);break;case 5:g.Rj(Q);case 6:y.Y&&(y.Y=0),g.tH(Q)}})},100))}}; Y$j=function(y,q,Q){var p,v,d;return g.M(function(T){switch(T.K){case 1:if(!g.kQ("start_client_gcf")){T.ej(0);break}Q&&vV(y,Q);y.Yl(q);p=Cd();if(!p){T.ej(3);break}if(Q){T.ej(4);break}return g.R(T,Q4g(p),5);case 5:v=T.W,Q=(d=v)==null?void 0:d.config;case 4:return g.R(T,yr9(Q,q,p),3);case 3:if(Q)for(var O=Q,w=g.t(y.G.K),J=w.next();!J.done;J=w.next())J=J.value,J(O);g.tH(T)}})}; ff3=function(y,q,Q){var p,v,d,T;return g.M(function(O){if(O.K==1){if(!g.kQ("start_client_gcf"))return O.ej(0);O9(y,q);return(p=Cd())?Q?O.ej(4):g.R(O,j4p(p),5):O.ej(0)}O.K!=4&&(v=O.W,Q=(d=v)==null?void 0:d.config);if(!Q)return O.ej(0);T=Q.configData;return g.R(O,q$D(Q,q,T,p),0)})}; hrD=function(){var y=dMS(),q=(0,g.SK)()-y.N;if(!(y.N!==0&&q0&&(q.request={internalExperimentFlags:Q});$Mf(y,void 0,q);KOp(void 0,q);xM3(void 0,q);WO2(y,void 0,q);ZUg(void 0,q);g.kQ("start_client_gcf")&&t42(void 0,q);g.XY("DELEGATED_SESSION_ID")&& !g.kQ("pageid_as_header_web")&&(q.user={onBehalfOfUser:g.XY("DELEGATED_SESSION_ID")});!g.kQ("fill_delegate_context_in_gel_killswitch")&&(y=g.XY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(q.user=Object.assign({},q.user,{serializedDelegationContext:y}));y=g.XY("INNERTUBE_CONTEXT");var p;if(g.kQ("enable_persistent_device_token")&&(y==null?0:(p=y.client)==null?0:p.rolloutToken)){var v;q.client.rolloutToken=y==null?void 0:(v=y.client)==null?void 0:v.rolloutToken}p=Object;v=p.assign;y=q.client; Q={};for(var d=g.t(Object.entries(vF(g.XY("DEVICE","")))),T=d.next();!T.done;T=d.next()){var O=g.t(T.value);T=O.next().value;O=O.next().value;T==="cbrand"?Q.deviceMake=O:T==="cmodel"?Q.deviceModel=O:T==="cbr"?Q.browserName=O:T==="cbrver"?Q.browserVersion=O:T==="cos"?Q.osName=O:T==="cosver"?Q.osVersion=O:T==="cplatform"&&(Q.platform=O)}q.client=v.call(p,y,Q);return q}; $Mf=function(y,q,Q){y=y.p7;if(y==="WEB"||y==="MWEB"||y===1||y===2)if(q){Q=NH(q,M$,96)||new M$;var p=gf();p=Object.keys(EyD).indexOf(p);p=p===-1?null:p;p!==null&&rF(Q,3,p);RM(q,M$,96,Q)}else Q&&(Q.client.mainAppWebInfo=(p=Q.client.mainAppWebInfo)!=null?p:{},Q.client.mainAppWebInfo.webDisplayMode=gf())}; KOp=function(y,q){var Q=g.qw("yt.embedded_player.embed_url");Q&&(y?(q=NH(y,I3,7)||new I3,cv(q,4,Q),RM(y,I3,7,q)):q&&(q.thirdParty={embedUrl:Q}))}; xM3=function(y,q){var Q;if(g.kQ("web_log_memory_total_kbytes")&&((Q=g.CS.navigator)==null?0:Q.deviceMemory)){var p;Q=(p=g.CS.navigator)==null?void 0:p.deviceMemory;y?vv(y,95,N_(Q*1E6)):q&&(q.client.memoryTotalKbytes=""+Q*1E6)}}; WO2=function(y,q,Q){if(y.appInstallData)if(q){var p;Q=(p=NH(q,se,62))!=null?p:new se;cv(Q,6,y.appInstallData);RM(q,se,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},Q.client.configInfo.appInstallData=y.appInstallData)}; ZUg=function(y,q){var Q=dnb();Q&&(y?rF(y,61,k9H[Q]):q&&(q.client.connectionType=Q));g.kQ("web_log_effective_connection_type")&&(Q=Vxf())&&(y?rF(y,94,LO3[Q]):q&&(q.client.effectiveConnectionType=Q))}; afS=function(y,q,Q){Q=Q===void 0?{}:Q;var p={};g.XY("EOM_VISITOR_DATA")?p={"X-Goog-EOM-Visitor-Id":g.XY("EOM_VISITOR_DATA")}:p={"X-Goog-Visitor-Id":Q.visitorData||g.XY("VISITOR_DATA","")};if(q&&q.includes("www.youtube-nocookie.com"))return p;q=Q.Zr||g.XY("AUTHORIZATION");q||(y?q="Bearer "+g.qw("gapi.auth.getToken")().access_token:(y=yAs().JO(hP),g.kQ("pageid_as_header_web")||delete y["X-Goog-PageId"],p=Object.assign({},p,y)));q&&(p.Authorization=q);return p}; t42=function(y,q){var Q=hrD();if(Q){var p=Q.coldConfigData,v=Q.coldHashData;Q=Q.hotHashData;if(y){var d;q=(d=NH(y,se,62))!=null?d:new se;p=cv(q,1,p);cv(p,3,v).Yl(Q);RM(y,se,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},p&&(q.client.configInfo.coldConfigData=p),v&&(q.client.configInfo.coldHashData=v),Q&&(q.client.configInfo.hotHashData=Q))}}; bI=function(y,q){this.version=y;this.args=q}; $f=function(y,q){this.topic=y;this.K=q}; xf=function(y,q){var Q=K0();Q&&Q.publish.call(Q,y.toString(),y,q)}; HUH=function(y){var q=Nl9,Q=K0();if(!Q)return 0;var p=Q.subscribe(q.toString(),function(v,d){var T=g.qw("ytPubsub2Pubsub2SkipSubKey");T&&T==p||(T=function(){if(WV[p])try{if(d&&q instanceof $f&&q!=v)try{var O=q.K,w=d;if(!w.args||!w.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!O.WD){var J=new O;O.WD=J.version}var F=O.WD}catch(Y){}if(!F||w.version!=F)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{d=Reflect.construct(O, g.zX(w.args))}catch(Y){throw Y.message="yt.pubsub2.Data.deserialize(): "+Y.message,Y;}}catch(Y){throw Y.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+Y.message,Y;}y.call(window,d)}catch(Y){g.y9(Y)}},S$9[q.toString()]?g.jK()?g.BH.Dj(T):g.xQ(T,0):T())}); WV[p]=!0;Zw[q.toString()]||(Zw[q.toString()]=[]);Zw[q.toString()].push(p);return p}; M4b=function(){var y=RrH,q=HUH(function(Q){y.apply(void 0,arguments);s4S(q)}); return q}; s4S=function(y){var q=K0();q&&(typeof y==="number"&&(y=[y]),g.mS(y,function(Q){q.unsubscribeByKey(Q);delete WV[Q]}))}; K0=function(){return g.qw("ytPubsub2Pubsub2Instance")}; tP=function(y,q,Q){Q=Q===void 0?{sampleRate:.1}:Q;Math.random()nyC||T=rrp&&(M3++,g.kQ("abandon_compression_after_N_slow_zips")?s9===g.L9("compression_disable_point")&&M3>oy9&&(SB=!1):SB=!1);Arf(q);p.headers||(p.headers={});p.headers["Content-Encoding"]="gzip";p.postBody=y;p.postParams=void 0;v(Q,p)}; ers=function(y){var q=q===void 0?!1:q;var Q=Q===void 0?!1:Q;var p=(0,g.SK)(),v={startTime:p,ticks:{},infos:{}},d=q?g.qw("yt.logging.gzipForFetch",!1):!0;if(SB&&d){if(!y.body)return y;try{var T=Q?y.body:typeof y.body==="string"?y.body:JSON.stringify(y.body);d=T;if(!Q&&typeof T==="string"){var O=If3(T);if(O!=null&&(O>nyC||O=rrp)if(M3++,g.kQ("abandon_compression_after_N_slow_zips")||g.kQ("abandon_compression_after_N_slow_zips_lr")){q=M3/s9;var J=oy9/g.L9("compression_disable_point");s9>0&&s9%g.L9("compression_disable_point")===0&&q>=J&&(SB=!1)}else SB=!1;Arf(v)}}y.headers=Object.assign({},{"Content-Encoding":"gzip"},y.headers||{});y.body=d;return y}catch(F){return js(F),y}}else return y}; If3=function(y){try{return(new Blob(y.split(""))).size}catch(q){return js(q),null}}; Arf=function(y){g.kQ("gel_compression_csi_killswitch")||!g.kQ("log_gel_compression_latency")&&!g.kQ("log_gel_compression_latency_lr")||tP("gel_compression",y,{sampleRate:.1})}; zU=function(y){var q=this;this.Ll=this.K=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){}; this.Oo=function(){}; this.now=Date.now;this.j6=!1;this.je={IVs:function(F){q.qT=F}, ySV:function(){q.d3()}, OM:function(){q.qR()}, FN:function(F){return g.M(function(Y){return g.R(Y,q.FN(F),0)})}, pR:function(F,Y){return q.pR(F,Y)}, Zu:function(){q.Zu()}}; var Q;this.fE=(Q=y.fE)!=null?Q:100;var p;this.Rv=(p=y.Rv)!=null?p:1;var v;this.dZ=(v=y.dZ)!=null?v:2592E6;var d;this.zM=(d=y.zM)!=null?d:12E4;var T;this.cZ=(T=y.cZ)!=null?T:5E3;var O;this.qT=(O=y.qT)!=null?O:void 0;this.F3=!!y.F3;var w;this.Hs=(w=y.Hs)!=null?w:.1;var J;this.c$=(J=y.c$)!=null?J:10;y.handleError&&(this.handleError=y.handleError);y.Oo&&(this.Oo=y.Oo);y.j6&&(this.j6=y.j6);y.Ll&&(this.Ll=y.Ll);this.ob=y.ob;this.xe=y.xe;this.De=y.De;this.sY=y.sY;this.sendFn=y.sendFn;this.EU=y.EU;this.V_= y.V_;lI(this)&&(!this.ob||this.ob("networkless_logging"))&&Bls(this)}; Bls=function(y){lI(y)&&!y.j6&&(y.K=!0,y.F3&&Math.random()<=y.Hs&&y.De.KJ(y.qT),y.Zu(),y.sY.rh()&&y.d3(),y.sY.listen(y.EU,y.d3.bind(y)),y.sY.listen(y.V_,y.qR.bind(y)))}; iUS=function(y,q){if(!lI(y))throw Error("IndexedDB is not supported: updateRequestHandlers");var Q=q.options.onError?q.options.onError:function(){}; q.options.onError=function(v,d){var T,O,w,J;return g.M(function(F){switch(F.K){case 1:T=G9C(d);(O=Pxb(d))&&y.ob&&y.ob("web_enable_error_204")&&y.handleError(Error("Request failed due to compression"),q.url,d);if(!(y.ob&&y.ob("nwl_consider_error_code")&&T||y.ob&&!y.ob("nwl_consider_error_code")&&y.potentialEsfErrorCounter<=y.c$)){F.ej(2);break}if(!y.sY.zZ){F.ej(3);break}return g.R(F,y.sY.zZ(),3);case 3:if(y.sY.rh()){F.ej(2);break}Q(v,d);if(!y.ob||!y.ob("nwl_consider_error_code")||((w=q)==null?void 0: w.id)===void 0){F.ej(6);break}return g.R(F,y.De.mM(q.id,y.qT,!1),6);case 6:return F.return();case 2:if(y.ob&&y.ob("nwl_consider_error_code")&&!T&&y.potentialEsfErrorCounter>y.c$)return F.return();y.potentialEsfErrorCounter++;if(((J=q)==null?void 0:J.id)===void 0){F.ej(8);break}return q.sendCount=400&&y<=599?!1:!0}; Pxb=function(y){var q;y=y==null?void 0:(q=y.error)==null?void 0:q.code;return!(y!==400&&y!==415)}; XOf=function(){if(uI)return uI();var y={};uI=g.jB("LogsDatabaseV2",{tG:(y.LogsRequestsStore={qX:2},y),shared:!1,upgrade:function(q,Q,p){Q(2)&&g.sf(q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Q(3);Q(5)&&(p=p.objectStore("LogsRequestsStore"),p.K.indexNames.contains("newRequest")&&p.K.deleteIndex("newRequest"),g.Ik(p,"newRequestV2",["status","interface","timestamp"]));Q(7)&&Mb(q,"sapisid");Q(9)&&Mb(q,"SWHealthLog")}, version:9});return uI()}; Ic=function(y){return g.eK(XOf(),y)}; Cx2=function(y,q){var Q,p,v,d;return g.M(function(T){if(T.K==1)return Q={startTime:(0,g.SK)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.R(T,Ic(q),2);if(T.K!=3)return p=T.W,v=Object.assign({},y,{options:JSON.parse(JSON.stringify(y.options)),interface:g.XY("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.R(T,g.DG(p,"LogsRequestsStore",v),3);d=T.W;Q.ticks.tc=(0,g.SK)();mMH(Q);return T.return(d)})}; yt9=function(y,q){var Q,p,v,d,T,O,w,J,F;return g.M(function(Y){if(Y.K==1)return Q={startTime:(0,g.SK)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.R(Y,Ic(q),2);if(Y.K!=3)return p=Y.W,v=g.XY("INNERTUBE_CONTEXT_CLIENT_NAME",0),d=[y,v,0],T=[y,v,(0,g.SK)()],O=IDBKeyRange.bound(d,T),w="prev",g.kQ("use_fifo_for_networkless")&&(w="next"),J=void 0,F=y==="NEW"?"readwrite":"readonly",g.kQ("use_readonly_for_get_most_recent_by_status_killswitch")&&(F="readwrite"),g.R(Y,g.lv(p,["LogsRequestsStore"], {mode:F,ij:!0},function(f){return g.Uf(f.objectStore("LogsRequestsStore").index("newRequestV2"),{query:O,direction:w},function(h){h.getValue()&&(J=h.getValue(),y==="NEW"&&(J.status="QUEUED",h.update(J)))})}),3); Q.ticks.tc=(0,g.SK)();mMH(Q);return Y.return(J)})}; qe9=function(y,q){var Q;return g.M(function(p){if(p.K==1)return g.R(p,Ic(q),2);Q=p.W;return p.return(g.lv(Q,["LogsRequestsStore"],{mode:"readwrite",ij:!0},function(v){var d=v.objectStore("LogsRequestsStore");return d.get(y).then(function(T){if(T)return T.status="QUEUED",g.z3(d,T).then(function(){return T})})}))})}; j3g=function(y,q,Q,p){Q=Q===void 0?!0:Q;var v;return g.M(function(d){if(d.K==1)return g.R(d,Ic(q),2);v=d.W;return d.return(g.lv(v,["LogsRequestsStore"],{mode:"readwrite",ij:!0},function(T){var O=T.objectStore("LogsRequestsStore");return O.get(y).then(function(w){return w?(w.status="NEW",Q&&(w.sendCount+=1),p!==void 0&&(w.options.compress=p),g.z3(O,w).then(function(){return w})):g.kC.resolve(void 0)})}))})}; Q3s=function(y,q){var Q;return g.M(function(p){if(p.K==1)return g.R(p,Ic(q),2);Q=p.W;return p.return(Q.delete("LogsRequestsStore",y))})}; pAS=function(y){var q,Q;return g.M(function(p){if(p.K==1)return g.R(p,Ic(y),2);q=p.W;Q=(0,g.SK)()-2592E6;return g.R(p,g.lv(q,["LogsRequestsStore"],{mode:"readwrite",ij:!0},function(v){return g.nd(v.objectStore("LogsRequestsStore"),{},function(d){if(d.getValue().timestamp<=Q)return d.delete().then(function(){return g.gU(d)})})}),0)})}; v2j=function(){g.M(function(y){return g.R(y,iXb("LogsDatabaseV2"),0)})}; mMH=function(y){g.kQ("nwl_csi_killswitch")||tP("networkless_performance",y,{sampleRate:1})}; TX2=function(y){return g.eK(d$b(),y)}; Vcs=function(y){var q,Q;g.M(function(p){if(p.K==1)return g.R(p,TX2(y),2);q=p.W;Q=(0,g.SK)()-2592E6;return g.R(p,g.lv(q,["SWHealthLog"],{mode:"readwrite",ij:!0},function(v){return g.nd(v.objectStore("SWHealthLog"),{},function(d){if(d.getValue().timestamp<=Q)return d.delete().then(function(){return g.gU(d)})})}),0)})}; OEg=function(y){var q;return g.M(function(Q){if(Q.K==1)return g.R(Q,TX2(y),2);q=Q.W;return g.R(Q,q.clear("SWHealthLog"),0)})}; g.n0=function(y,q,Q,p,v,d,T){v=v===void 0?"":v;d=d===void 0?!1:d;T=T===void 0?!1:T;if(y)if(Q&&!g.PF())js(new g.GH("Legacy referrer-scrubbed ping detected")),y&&wA9(y,void 0,{scrubReferrer:!0});else if(v)Ss(y,q,"POST",v,p);else if(g.XY("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||p||T)Ss(y,q,"GET","",p,void 0,d,T);else{b:{try{c:{var O=new WR8({url:y});if(O.K.dsh==="1")var w=null;else{var J=O.K.ae;if(J==="1"){var F=O.K.adurl;if(F)try{w={version:3,XS:decodeURIComponent(F),zG:y$(O.W,"act=1","ri=1",ZQS(O))}; break c}catch(h){}}w=J==="2"?{version:4,XS:y$(O.W,"dct=1","suid="+O.N,""),zG:y$(O.W,"act=1","ri=1","suid="+O.N)}:null}}if(w){var Y=KW(y);var f=!(!Y||!Y.endsWith("/aclk")||HG(y,"ri")!=="1");break b}}catch(h){}f=!1}f?Jti(y)?(q&&q(),Q=!0):Q=!1:Q=!1;Q||wA9(y,q)}}; Jti=function(y,q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(y,q===void 0?"":q))return!0}catch(Q){}return!1}; wA9=function(y,q,Q){Q=Q===void 0?{}:Q;var p=new Image,v=""+FJC++;gW[v]=p;p.onload=p.onerror=function(){q&&gW[v]&&q();delete gW[v]}; Q.scrubReferrer&&(p.referrerPolicy="no-referrer");p.src=y}; YeH=function(y){var q;return((q=document.featurePolicy)==null?0:q.allowedFeatures().includes("attribution-reporting"))?y+"&nis=6":y+"&nis=5"}; U9=function(){cV||(cV=new pd("yt.offline"));return cV}; f9H=function(y){if(g.kQ("offline_error_handling")){var q=U9().get("errors",!0)||{};q[y.message]={name:y.name,stack:y.stack};y.level&&(q[y.message].level=y.level);U9().set("errors",q,2592E3,!0)}}; rW=function(){this.K=new Map;this.W=!1}; oc=function(){if(!rW.instance){var y=g.qw("yt.networkRequestMonitor.instance")||new rW;g.y_("yt.networkRequestMonitor.instance",y);rW.instance=y}return rW.instance}; AP=function(){g.Ky.call(this);var y=this;this.W=!1;this.K=a7S();this.K.listen("networkstatus-online",function(){if(y.W&&g.kQ("offline_error_handling")){var q=U9().get("errors",!0);if(q){for(var Q in q)if(q[Q]){var p=new g.GH(Q,"sent via offline_errors");p.name=q[Q].name;p.stack=q[Q].stack;p.level=q[Q].level;g.y9(p)}U9().set("errors",{},2592E3,!0)}}})}; hpb=function(){if(!AP.instance){var y=g.qw("yt.networkStatusManager.instance")||new AP;g.y_("yt.networkStatusManager.instance",y);AP.instance=y}return AP.instance}; g.eB=function(y){y=y===void 0?{}:y;g.Ky.call(this);var q=this;this.K=this.Y=0;this.W=hpb();var Q=g.qw("yt.networkStatusManager.instance.listen").bind(this.W);Q&&(y.rateLimit?(this.rateLimit=y.rateLimit,Q("networkstatus-online",function(){bEs(q,"publicytnetworkstatus-online")}),Q("networkstatus-offline",function(){bEs(q,"publicytnetworkstatus-offline")})):(Q("networkstatus-online",function(){q.dispatchEvent("publicytnetworkstatus-online")}),Q("networkstatus-offline",function(){q.dispatchEvent("publicytnetworkstatus-offline")})))}; bEs=function(y,q){y.rateLimit?y.K?(g.BH.FM(y.Y),y.Y=g.BH.Dj(function(){y.N!==q&&(y.dispatchEvent(q),y.N=q,y.K=(0,g.SK)())},y.rateLimit-((0,g.SK)()-y.K))):(y.dispatchEvent(q),y.N=q,y.K=(0,g.SK)()):y.dispatchEvent(q)}; GU=function(){var y=zU.call;BV||(BV=new g.eB({mub:!0,wej:!0}));y.call(zU,this,{De:{KJ:pAS,yd:Q3s,s5:yt9,bKI:qe9,mM:j3g,set:Cx2},sY:BV,handleError:function(q,Q,p){var v,d=p==null?void 0:(v=p.error)==null?void 0:v.code;if(d===400||d===415){var T;q=new g.GH(q.message,Q,p==null?void 0:(T=p.error)==null?void 0:T.code);js(q,void 0,void 0,void 0,!0)}else g.y9(q)}, Oo:js,sendFn:$$D,now:g.SK,Rj:f9H,xe:g.qb(),EU:"publicytnetworkstatus-online",V_:"publicytnetworkstatus-offline",F3:!0,Hs:.1,c$:g.L9("potential_esf_error_limit",10),ob:g.kQ,j6:!(g.iw()&&g.$b(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.$9;g.kQ("networkless_immediately_drop_all_requests")&&v2j();XHC("LogsDatabaseV2")}; PV=function(){var y=g.qw("yt.networklessRequestController.instance");y||(y=new GU,g.y_("yt.networklessRequestController.instance",y),g.kQ("networkless_logging")&&g.y1().then(function(q){y.qT=q;Bls(y);y.N.resolve();y.F3&&Math.random()<=y.Hs&&y.qT&&Vcs(y.qT);g.kQ("networkless_immediately_drop_sw_health_store")&&KJ8(y)})); return y}; KJ8=function(y){var q;g.M(function(Q){if(!y.qT)throw q=g.t_("clearSWHealthLogsDb"),q;return Q.return(OEg(y.qT).catch(function(p){y.handleError(p)}))})}; $$D=function(y,q,Q,p){p=p===void 0?!1:p;q=g.kQ("web_fp_via_jspb")?Object.assign({},q):q;g.kQ("use_cfr_monitor")&&x$p(y,q);if(g.kQ("use_request_time_ms_header"))q.headers&&w_(y)&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.SK)())));else{var v;if((v=q.postParams)==null?0:v.requestTimeMs)q.postParams.requestTimeMs=Math.round((0,g.SK)())}Q&&Object.keys(q).length===0?g.n0(y):q.compress?q.postBody?(typeof q.postBody!=="string"&&(q.postBody=JSON.stringify(q.postBody)),Rc(y,q.postBody, q,g.HF,p)):Rc(y,JSON.stringify(q.postParams),q,Ro,p):g.HF(y,q)}; iI=function(y,q){g.kQ("use_event_time_ms_header")&&w_(y)&&(q.headers||(q.headers={}),q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.SK)())));return q}; x$p=function(y,q){var Q=q.onError?q.onError:function(){}; q.onError=function(v,d){oc().requestComplete(y,!1);Q(v,d)}; var p=q.onSuccess?q.onSuccess:function(){}; q.onSuccess=function(v,d){oc().requestComplete(y,!0);p(v,d)}}; g.XX=function(y){this.config_=null;y?this.config_=y:bU3()&&(this.config_=g.Yf())}; g.mL=function(y,q,Q,p){function v(J){try{if((J===void 0?0:J)&&p.retry&&!p.networklessOptions.bypassNetworkless)d.method="POST",p.networklessOptions.writeThenSend?PV().writeThenSend(w,d):PV().sendAndWrite(w,d);else if(p.compress){var F=!p.networklessOptions.writeThenSend;if(d.postBody){var Y=d.postBody;typeof Y!=="string"&&(Y=JSON.stringify(d.postBody));Rc(w,Y,d,g.HF,F)}else Rc(w,JSON.stringify(d.postParams),d,Ro,F)}else g.kQ("web_all_payloads_via_jspb")?g.HF(w,d):Ro(w,d)}catch(f){if(f.name==="InvalidAccessError")js(Error("An extension is blocking network request.")); else throw f;}} !g.XY("VISITOR_DATA")&&q!=="visitor_id"&&Math.random()<.01&&js(new g.GH("Missing VISITOR_DATA when sending innertube request.",q,Q,p));if(!y.isReady())throw y=new g.GH("innertube xhrclient not ready",q,Q,p),g.y9(y),y;var d={headers:p.headers||{},method:"POST",postParams:Q,postBody:p.postBody,postBodyFormat:p.postBodyFormat||"JSON",onTimeout:function(){p.onTimeout()}, onFetchTimeout:p.onTimeout,onSuccess:function(J,F){if(p.onSuccess)p.onSuccess(F)}, onFetchSuccess:function(J){if(p.onSuccess)p.onSuccess(J)}, onProgress:function(J){if(p.onProgress)p.onProgress(J)}, onError:function(J,F){if(p.onError)p.onError(F)}, onFetchError:function(J){if(p.onError)p.onError(J)}, timeout:p.timeout,withCredentials:!0,compress:p.compress};d.headers["Content-Type"]||(d.headers["Content-Type"]="application/json");Q="";var T=y.config_.er;T&&(Q=T);T=y.config_.g5||!1;var O=afS(T,Q,p);Object.assign(d.headers,O);d.headers.Authorization&&!Q&&T&&(d.headers["x-origin"]=window.location.origin);var w=V9(""+Q+("/youtubei/"+y.config_.innertubeApiVersion+"/"+q),{alt:"json"});g.qw("ytNetworklessLoggingInitializationOptions")&&WJb.isNwlInitialized?rAf().then(function(J){v(J)}):v(!1)}; g.Q8=function(y,q,Q){var p=g.C0();if(p&&q){var v=p.subscribe(y,function(){function d(){y8[v]&&q.apply&&typeof q.apply=="function"&&q.apply(Q||window,T)} var T=arguments;try{g.qB[y]?d():g.xQ(d,0)}catch(O){g.y9(O)}},Q); y8[v]=!0;j$[y]||(j$[y]=[]);j$[y].push(v);return v}return 0}; ZEs=function(y){var q=g.Q8("LOGGED_IN",function(Q){y.apply(void 0,arguments);g.V8(q)})}; g.V8=function(y){var q=g.C0();q&&(typeof y==="number"?y=[y]:typeof y==="string"&&(y=[parseInt(y,10)]),g.mS(y,function(Q){q.unsubscribeByKey(Q);delete y8[Q]}))}; g.O4=function(y,q){var Q=g.C0();return Q?Q.publish.apply(Q,arguments):!1}; E23=function(y){var q=g.C0();if(q)if(q.clear(y),y)tcH(y);else for(var Q in j$)tcH(Q)}; g.C0=function(){return g.CS.ytPubsubPubsubInstance}; tcH=function(y){j$[y]&&(y=j$[y],g.mS(y,function(q){y8[q]&&delete y8[q]}),y.length=0)}; g.ww=function(y,q,Q){kc9(y,q,Q===void 0?null:Q)}; kc9=function(y,q,Q){Q=Q===void 0?null:Q;var p=LJ2(typeof y==="string"?y:y.toString()),v=document.getElementById(p),d=v&&n9C(v),T=v&&!d;d?q&&q():(q&&(d=g.Q8(p,q),q=""+g.V_(q),a9g[q]=d),T||(v=NX9(y,p,function(){n9C(v)||(IMD(v),g.O4(p),g.xQ(function(){E23(p)},0))},Q)))}; NX9=function(y,q,Q,p){p=p===void 0?null:p;var v=g.bn("SCRIPT");v.id=q;v.onload=function(){Q&&setTimeout(Q,0)}; v.onreadystatechange=function(){switch(v.readyState){case "loaded":case "complete":v.onload()}}; p&&v.setAttribute("nonce",p);g.tK(v,typeof y==="string"?g.HA(y):y);y=document.getElementsByTagName("head")[0]||document.body;y.insertBefore(v,y.firstChild);return v}; LJ2=function(y){var q=document.createElement("a");g.FB(q,y);y=q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+zq(y)}; Jz=function(y,q){if(y===q)y=!0;else if(Array.isArray(y)&&Array.isArray(q))y=g.iG(y,q,Jz);else if(g.dk(y)&&g.dk(q))a:if(g.Jn(y).length!=g.Jn(q).length)y=!1;else{for(var Q in y)if(!Jz(y[Q],q[Q])){y=!1;break a}y=!0}else y=!1;return y}; fb=function(y){var q=g.nS.apply(1,arguments);if(!Fs(y)||q.some(function(p){return!Fs(p)}))throw Error("Only objects may be merged."); q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next())Yi(y,Q.value)}; Yi=function(y,q){for(var Q in q)if(Fs(q[Q])){if(Q in y&&!Fs(y[Q]))throw Error("Cannot merge an object into a non-object.");Q in y||(y[Q]={});Yi(y[Q],q[Q])}else if(hz(q[Q])){if(Q in y&&!hz(y[Q]))throw Error("Cannot merge an array into a non-array.");Q in y||(y[Q]=[]);Ses(y[Q],q[Q])}else y[Q]=q[Q];return y}; Ses=function(y,q){q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,Fs(Q)?y.push(Yi({},Q)):hz(Q)?y.push(Ses([],Q)):y.push(Q);return y}; Fs=function(y){return typeof y==="object"&&!Array.isArray(y)}; hz=function(y){return typeof y==="object"&&Array.isArray(y)}; bt=function(y){g.I.call(this);this.W=y}; $i=function(y){bt.call(this,!0);this.K=y}; Kb=function(y,q){g.I.call(this);var Q=this;this.N=[];this.X=!1;this.W=0;this.J=this.G=this.Y=!1;this.cI=null;var p=(0,g.wk)(y,q);this.K=new g.y0(function(){return p(Q.cI)},300); g.n(this,this.K);this.j=this.C=Infinity}; HEi=function(y,q){if(!q)return!1;for(var Q=0;Q-1)throw Error("Deps cycle for: "+q);if(y.W.has(q))return y.W.get(q);if(!y.K.has(q)){if(p)return;throw Error("No provider for: "+q);}p=y.K.get(q);Q.push(q);if(p.Ho!==void 0)var v=p.Ho;else if(p.kWw)v=p[R$]?zpH(y,p[R$],Q):[],v=p.kWw.apply(p,g.hH(v));else if(p.Uq){v=p.Uq;var d=v[R$]?zpH(y,v[R$],Q):[];v=new (Function.prototype.bind.apply(v,[null].concat(g.hH(d))))}else throw Error("Could not resolve providers for: "+q);Q.pop();p.uWp||y.W.set(q,v); return v}; zpH=function(y,q,Q){return q?q.map(function(p){return p instanceof NB?s4(y,p.key,Q,!0):s4(y,p,Q)}):[]}; lt=function(){MB||(MB=new l99);return MB}; uY8=function(){var y=D$g;return function(){var q=lt();if(!q.resolve(S$(y))){var Q={};Ha(q,(Q.oX=y,Q.Uq=y,Q[R$]=void 0,Q))}return q.resolve(y)}}; DX=function(){var y,q;return"h5vcc"in z_&&((y=z_.h5vcc.traceEvent)==null?0:y.traceBegin)&&((q=z_.h5vcc.traceEvent)==null?0:q.traceEnd)?1:"performance"in z_&&z_.performance.mark&&z_.performance.measure?2:0}; ut=function(y){var q=DX();switch(q){case 1:z_.h5vcc.traceEvent.traceBegin("YTLR",y);break;case 2:z_.performance.mark(y+"-start");break;case 0:break;default:YZ(q,"unknown trace type")}}; I9D=function(y){var q=DX();switch(q){case 1:z_.h5vcc.traceEvent.traceEnd("YTLR",y);break;case 2:q=y+"-start";var Q=y+"-end";z_.performance.mark(Q);z_.performance.measure(y,q,Q);break;case 0:break;default:YZ(q,"unknown trace type")}}; n2C=function(y){var q,Q;(Q=(q=window).onerror)==null||Q.call(q,y.message,"",0,0,y)}; g2i=function(y){var q=this;var Q=Q===void 0?0:Q;var p=p===void 0?g.qb():p;this.N=Q;this.scheduler=p;this.W=new g.$9;this.K=y;for(y={x4:0};y.x4=1E3?v():p>=y?Vm||(Vm=O0(function(){v();Vm=void 0},0)):d-O>=10&&(Qo2(q,Q.tier),T.Y=d)}; m$b=function(y,q){if(y.endpoint==="log_event"){g.kQ("more_accurate_gel_parser")&&Cb().storePayload({isJspb:!1},y.payload);qq(y);var Q=jp(y),p=new Map;p.set(Q,[y.payload]);var v=Pps(y.payload)||"";q&&(dy=new q);return new g.zD(function(d,T){dy&&dy.isReady()?pFH(p,dy,d,T,{bypassNetworkless:!0},!0,pD(v)):d()})}}; qx9=function(y,q,Q){if(q.endpoint==="log_event"){qq(void 0,q);var p=jp(q,!0),v=new Map;v.set(p,[Bk(q.payload)]);Q&&(dy=new Q);return new g.zD(function(d){dy&&dy.isReady()?vQj(v,dy,d,{bypassNetworkless:!0},!0,pD(y)):d()})}}; jp=function(y,q){var Q="";if(y.dangerousLogToVisitorSession)Q="visitorOnlyApprovedKey";else if(y.cttAuthInfo){if(q===void 0?0:q){q=y.cttAuthInfo.token;Q=y.cttAuthInfo;var p=new Gc;Q.videoId?p.setVideoId(Q.videoId):Q.playlistId&&KA(p,2,wy,RA(Q.playlistId));J4[q]=p}else q=y.cttAuthInfo,Q={},q.videoId?Q.videoId=q.videoId:q.playlistId&&(Q.playlistId=q.playlistId),FK[y.cttAuthInfo.token]=Q;Q=y.cttAuthInfo.token}return Q}; vW=function(y,q,Q){y=y===void 0?{}:y;q=q===void 0?!1:q;new g.zD(function(p,v){var d=TI(q,Q),T=d.N;d.N=!1;Yl(d.W);Yl(d.K);d.K=0;dy&&dy.isReady()?Q===void 0&&g.kQ("enable_web_tiered_gel")?d78(p,v,y,q,300,T):d78(p,v,y,q,Q,T):(Qo2(q,Q),p())})}; d78=function(y,q,Q,p,v,d){var T=dy;Q=Q===void 0?{}:Q;p=p===void 0?!1:p;v=v===void 0?200:v;d=d===void 0?!1:d;var O=new Map,w=new Map,J={isJspb:p,cttAuthInfo:void 0,tier:v},F={isJspb:p,cttAuthInfo:void 0};if(p){q=g.t(Object.keys(Qm));for(v=q.next();!v.done;v=q.next())v=v.value,w=g.kQ("enable_web_tiered_gel")?Cb().smartExtractMatchingEntries({keys:[J,F],sizeLimit:1E3}):Cb().extractMatchingEntries({isJspb:!0,cttAuthInfo:v}),w.length>0&&O.set(v,w),(g.kQ("web_fp_via_jspb_and_json")&&Q.writeThenSend||!g.kQ("web_fp_via_jspb_and_json"))&& delete Qm[v];vQj(O,T,y,Q,!1,d)}else{O=g.t(Object.keys(Qm));for(J=O.next();!J.done;J=O.next())J=J.value,F=g.kQ("enable_web_tiered_gel")?Cb().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:J,tier:v},{isJspb:!1,cttAuthInfo:J}],sizeLimit:1E3}):Cb().extractMatchingEntries({isJspb:!1,cttAuthInfo:J}),F.length>0&&w.set(J,F),(g.kQ("web_fp_via_jspb_and_json")&&Q.writeThenSend||!g.kQ("web_fp_via_jspb_and_json"))&&delete Qm[J];pFH(w,T,y,q,Q,!1,d)}}; Qo2=function(y,q){function Q(){vW({writeThenSend:!0},y,q)} y=y===void 0?!1:y;q=q===void 0?200:q;var p=TI(y,q),v=p===T_j||p===Vsj?5E3:O9i;g.kQ("web_gel_timeout_cap")&&!p.K&&(v=O0(function(){Q()},v),p.K=v); Yl(p.W);v=g.XY("LOGGING_BATCH_TIMEOUT",g.L9("web_gel_debounce_ms",1E4));g.kQ("shorten_initial_gel_batch_timeout")&&fD&&(v=wFp);v=O0(function(){g.L9("gel_min_batch_size")>0?Cb().getSequenceCount({cttAuthInfo:void 0,isJspb:y,tier:q})>=JMD&&Q():Q()},v); p.W=v}; pFH=function(y,q,Q,p,v,d,T){v=v===void 0?{}:v;var O=Math.round((0,g.SK)()),w=y.size,J=FUi(T);y=g.t(y);var F=y.next();for(T={};!F.done;T={Lp:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,sU:void 0,zj:void 0},F=y.next()){var Y=g.t(F.value);F=Y.next().value;Y=Y.next().value;T.batchRequest=g.xG({context:g.f0(q.config_||g.Yf())});if(!g.ve(Y)&&!g.kQ("throw_err_when_logevent_malformed_killswitch")){p();break}T.batchRequest.events=Y;(Y=FK[F])&&Yxg(T.batchRequest,F,Y);delete FK[F];T.dangerousLogToVisitorSession= F==="visitorOnlyApprovedKey";f1b(T.batchRequest,O,T.dangerousLogToVisitorSession);hfj(v);T.sU=function(f){g.kQ("start_client_gcf")&&g.BH.Dj(function(){return g.M(function(h){return g.R(h,b9D(f),0)})}); w--;w||Q()}; T.Lp=0;T.zj=function(f){return function(){f.Lp++;if(v.bypassNetworkless&&f.Lp===1)try{g.mL(q,J,f.batchRequest,h4({writeThenSend:!0},f.dangerousLogToVisitorSession,f.sU,f.zj,d)),fD=!1}catch(h){g.y9(h),p()}w--;w||Q()}}(T); try{g.mL(q,J,T.batchRequest,h4(v,T.dangerousLogToVisitorSession,T.sU,T.zj,d)),fD=!1}catch(f){g.y9(f),p()}}}; vQj=function(y,q,Q,p,v,d){p=p===void 0?{}:p;var T=Math.round((0,g.SK)()),O={value:y.size},w=new Map([].concat(g.hH(y)));w=g.t(w);for(var J=w.next();!J.done;J=w.next()){var F=g.t(J.value).next().value,Y=y.get(F);J=new A9b;var f=q.config_||g.Yf(),h=new cA,b=new lp;cv(b,1,f.xI);cv(b,2,f.VP);rF(b,16,f.Sr);cv(b,17,f.innertubeContextClientVersion);if(f.s3){var Z=f.s3,k=new se;Z.coldConfigData&&cv(k,1,Z.coldConfigData);Z.appInstallData&&cv(k,6,Z.appInstallData);Z.coldHashData&&cv(k,3,Z.coldHashData);Z.hotHashData&& k.Yl(Z.hotHashData);RM(b,se,62,k)}(Z=g.CS.devicePixelRatio)&&Z!=1&&vv(b,65,fx(Z));Z=ao();Z!==""&&cv(b,54,Z);Z=N7();if(Z.length>0){k=new up;for(var S=0;S65535&&(y=1);ip("BATCH_CLIENT_COUNTER",y);return y}; Yxg=function(y,q,Q){if(Q.videoId)var p="VIDEO";else if(Q.playlistId)p="PLAYLIST";else return;y.credentialTransferTokenTargetId=Q;y.context=y.context||{};y.context.user=y.context.user||{};y.context.user.credentialTransferTokens=[{token:q,scope:p}]}; qq=function(y,q){var Q=g.qw("yt.logging.transport.enableScrapingForTest"),p=Ex("il_payload_scraping");p=(p!==void 0?String(p):"")==="enable_il_payload_scraping";if(!Q)if(p)KD=[],g.y_("yt.logging.transport.enableScrapingForTest",!0),g.y_("yt.logging.transport.scrapedPayloadsForTesting",KD),g.y_("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.y_("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.y_("yt.logging.transport.scrapeClientEvent",!0);else return;Q=g.qw("yt.logging.transport.scrapedPayloadsForTesting");p=g.qw("yt.logging.transport.payloadToScrape");q&&(q=q.payload,(q=g.qw("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(q)())&&Q.push(q));q=g.qw("yt.logging.transport.scrapeClientEvent");if(p&&p.length>=1)for(var v=0;v0&&I1H(y,q,d)}else I1H(y,q)}; I1H=function(y,q,Q){y=nQC(y);q=q?g.Ew(q):"";Q=Q||5;df()&&g.g_(y,q,Q)}; nQC=function(y){for(var q=g.t(gQC),Q=q.next();!Q.done;Q=q.next())y=RR(y,Q.value);return"ST-"+zq(y).toString(36)}; cMs=function(y){if(y.name==="JavaException")return!0;y=y.stack;return y.includes("chrome://")||y.includes("-extension://")||y.includes("webkit-masked-url://")}; U7b=function(y){if(!y.stack)return!0;var q=!y.stack.includes("\n");return q&&y.stack.includes("ErrorType: ")||q&&y.stack.includes("Anonymous function (Unknown script")||y.stack.toLowerCase()==="not available"||y.fileName==="user-script"||y.fileName.startsWith("user-script:")?!0:!1}; rMs=function(){this.PG=[];this.Z5=[]}; HW=function(){if(!Sp){var y=Sp=new rMs;y.Z5.length=0;y.PG.length=0;oQD(y,AM8)}return Sp}; oQD=function(y,q){q.Z5&&y.Z5.push.apply(y.Z5,q.Z5);q.PG&&y.PG.push.apply(y.PG,q.PG)}; efH=function(y){function q(){return y.charCodeAt(p++)} var Q=y.length,p=0;do{var v=RO(q);if(v===Infinity)break;var d=v>>3;switch(v&7){case 0:v=RO(q);if(d===2)return v;break;case 1:if(d===2)return;p+=8;break;case 2:v=RO(q);if(d===2)return y.substr(p,v);p+=v;break;case 5:if(d===2)return;p+=4;break;default:return}}while(p500));p++);p=v}else if(typeof y==="object")for(v in y){if(y[v]){var d=v;var T=y[v],O=q,w=Q;d=typeof T!=="string"||d!=="clickTrackingParams"&&d!=="trackingParams"?0:(T=efH(atob(T.replace(/-/g,"+").replace(/_/g,"/"))))?s0(d+".ve",T,O,w):0;p+=d;p+=s0(v,y[v],q,Q);if(p>500)break}}else Q[q]=Mq(y),p+=Q[q].length;else Q[q]=Mq(y),p+=Q[q].length;return p}; s0=function(y,q,Q,p){Q+="."+y;y=Mq(q);p[Q]=y;return Q.length+y.length}; Mq=function(y){try{return(typeof y==="string"?y:String(JSON.stringify(y))).substr(0,500)}catch(q){return"unable to serialize "+typeof y+" ("+q.message+")"}}; Of=function(y){g.l$(y)}; g.zI=function(y){g.l$(y,"WARNING")}; g.l$=function(y,q){var Q=Q===void 0?{}:Q;Q.name=g.XY("INNERTUBE_CONTEXT_CLIENT_NAME",1);Q.version=g.XY("INNERTUBE_CONTEXT_CLIENT_VERSION");q=q===void 0?"ERROR":q;var p=!1;q=q===void 0?"ERROR":q;p=p===void 0?!1:p;if(y){y.hasOwnProperty("level")&&y.level&&(q=y.level);if(g.kQ("console_log_js_exceptions")){var v=[];v.push("Name: "+y.name);v.push("Message: "+y.message);y.hasOwnProperty("params")&&v.push("Error Params: "+JSON.stringify(y.params));y.hasOwnProperty("args")&&v.push("Error args: "+JSON.stringify(y.args)); v.push("File name: "+y.fileName);v.push("Stacktrace: "+y.stack);window.console.log(v.join("\n"),y)}if(!(GSC>=5)){v=[];for(var d=g.t(Pb3),T=d.next();!T.done;T=d.next()){T=T.value;try{T()&&v.push(T())}catch(Z){}}v=[].concat(g.hH(i98),g.hH(v));var O=pe3(y);d=O.message||"Unknown Error";T=O.name||"UnknownError";var w=O.stack||y.W||"Not available";if(w.startsWith(T+": "+d)){var J=w.split("\n");J.shift();w=J.join("\n")}J=O.lineNumber||"Not available";O=O.fileName||"Not available";var F=0;if(y.hasOwnProperty("args")&& y.args&&y.args.length)for(var Y=0;Y=500);Y++);else if(y.hasOwnProperty("params")&&y.params){var f=y.params;if(typeof y.params==="object")for(Y in f){if(f[Y]){var h="params."+Y,b=Mq(f[Y]);Q[h]=b;F+=h.length+b.length;if(F>500)break}}else Q.params=Mq(f)}if(v.length)for(Y=0;Y=500);Y++);navigator.vendor&&!Q.hasOwnProperty("vendor")&&(Q["device.vendor"]=navigator.vendor);Q={message:d,name:T,lineNumber:J, fileName:O,stack:w,params:Q,sampleWeight:1};Y=Number(y.columnNumber);isNaN(Y)||(Q.lineNumber=Q.lineNumber+":"+Y);if(y.level==="IGNORED")y=0;else a:{y=HW();Y=g.t(y.Z5);for(v=Y.next();!v.done;v=Y.next())if(v=v.value,Q.message&&Q.message.match(v.XB)){y=v.weight;break a}y=g.t(y.PG);for(Y=y.next();!Y.done;Y=y.next())if(Y=Y.value,Y.callback(Q)){y=Y.weight;break a}y=1}Q.sampleWeight=y;y=g.t(XFS);for(Y=y.next();!Y.done;Y=y.next())if(Y=Y.value,Y.Cf[Q.name])for(d=g.t(Y.Cf[Q.name]),v=d.next();!v.done;v=d.next())if(T= v.value,v=Q.message.match(T.Az)){Q.params["params.error.original"]=v[0];d=T.groups;T={};for(J=0;J1E3&&g.zI(new g.GH("IL Attach cache exceeded limit"))}O= GI(Q,q);ry.has(O)?PW(Q,q):A4.set(O,!0)}}p=p.filter(function(F){F.csn!==q?(F.csn=q,F=!0):F=!1;return F}); Q={csn:q,parentVe:Q.getAsJson(),childVes:g.W5(p,function(F){return F.getAsJson()})}; q==="UNDEFINED_CSN"?i$("visualElementAttached",d,Q):y?WW("visualElementAttached",Q,y,d):g.wU("visualElementAttached",Q,d)}; FF9=function(y,q,Q,p,v){XK(Q,q);p=U0({cttAuthInfo:aO(q)||void 0},q);Q={csn:q,ve:Q.getAsJson(),eventType:1};v&&(Q.clientData=v);q==="UNDEFINED_CSN"?i$("visualElementShown",p,Q):y?WW("visualElementShown",Q,y,p):g.wU("visualElementShown",Q,p)}; YM8=function(y,q,Q,p){var v=(p=p===void 0?!1:p)?16:8;p=U0({cttAuthInfo:aO(q)||void 0,endOfSequence:p},q);Q={csn:q,ve:Q.getAsJson(),eventType:v};q==="UNDEFINED_CSN"?i$("visualElementHidden",p,Q):y?WW("visualElementHidden",Q,y,p):g.wU("visualElementHidden",Q,p)}; m3=function(y,q,Q,p,v){fW2(y,q,Q,void 0,p,v)}; fW2=function(y,q,Q,p,v){XK(Q,q);p=p||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var d=U0({cttAuthInfo:aO(q)||void 0},q);Q={csn:q,ve:Q.getAsJson(),gestureType:p};v&&(Q.clientData=v);q==="UNDEFINED_CSN"?i$("visualElementGestured",d,Q):y?WW("visualElementGestured",Q,y,d):g.wU("visualElementGestured",Q,d)}; hI8=function(){var y=Wa(16);for(var q=[],Q=0;Q0&&Q.push(g.bn("BR"));Q.push(g.$n(d))}):Q.push(g.$n(p))}return Q}; F1=function(y,q,Q,p){if(Q==="child"){g.xn(q);var v;p===void 0?v=void 0:v=!Array.isArray(p)||p&&typeof p.S==="string"?[p]:p;Q=$x9(y,v);Q=g.t(Q);for(y=Q.next();!y.done;y=Q.next())q.appendChild(y.value)}else Q==="style"?g.B0(q,"cssText",p?p:""):p===null||p===void 0?q.removeAttribute(Q):(y=p.toString(),Q==="href"&&(y=g.Tq(g.wV(y))),q.setAttribute(Q,y))}; g.r=function(y){g.wa.call(this,y);this.NU=!0;this.C=!1;this.listeners=[]}; g.Ye=function(y){g.r.call(this,y);this.Ty=new g.V6;g.n(this,this.Ty)}; f1=function(y,q,Q,p,v,d,T){T=T===void 0?null:T;g.Ye.call(this,q);this.api=y;this.macros={};this.componentType=Q;this.G=this.X=null;this.q$=T;this.layoutId=p;this.interactionLoggingClientData=v;this.kf=d;this.HI=null;this.gw=new $i(this.element);g.n(this,this.gw);this.Os=this.Z(this.element,"click",this.onClick);this.Sj=[];this.m3=new Kb(this.onClick,this);g.n(this,this.m3);this.cB=!1;this.Es=this.cI=null}; hJ=function(y,q){y=y===void 0?null:y;q=q===void 0?null:q;if(y==null)return g.zI(Error("Got null or undefined adText object")),"";var Q=g.ll(y.text);if(!y.isTemplated)return Q;if(q==null)return g.zI(Error("Missing required parameters for a templated message")),Q;y=g.t(Object.entries(q));for(q=y.next();!q.done;q=y.next()){var p=g.t(q.value);q=p.next().value;p=p.next().value;Q=Q.replace("{"+q+"}",p)}return Q}; KFg=function(y){y=y===void 0?null:y;return y!=null&&(y=y.thumbnail,y!=null&&y.thumbnails!=null&&y.thumbnails.length!=0&&y.thumbnails[0].url!=null)?g.ll(y.thumbnails[0].url):""}; xxi=function(y){y=y===void 0?null:y;return y!=null&&(y=y.thumbnail,y!=null&&y.thumbnails!=null&&y.thumbnails.length!=0&&y.thumbnails[0].width!=null&&y.thumbnails[0].height!=null)?new g.Gq(y.thumbnails[0].width||0,y.thumbnails[0].height||0):new g.Gq(0,0)}; g.b7=function(y){if(y.simpleText)return y.simpleText;if(y.runs){var q=[];y=g.t(y.runs);for(var Q=y.next();!Q.done;Q=y.next())Q=Q.value,Q.text&&q.push(Q.text);return q.join("")}return""}; g.$e=function(y){if(y.simpleText)return y=document.createTextNode(y.simpleText),y;var q=[];if(y.runs)for(var Q=0;Q1){for(var q=[y[0]],Q=1;Q0&&(this.K=new g.y0(this.b8,q,this),g.n(this,this.K));this.J=new g.y0(this.b8,Q,this);g.n(this,this.J);this.C=zhH(this.W,v,1,p);g.n(this,this.C);this.X=zhH(this.W,0,p,1);g.n(this,this.X);this.Y=new sM;g.n(this,this.Y)}; Jx=function(y,q,Q){this.W=y;this.isAsync=q;this.K=Q}; w9i=function(y){switch(y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:YZ(y,"unknown result type")}}; J_D=function(y,q){var Q=1;y.isTrusted===!1&&(Q=0);ip("ISDSTAT",Q);FM(Q,"i.s_",{triggerContext:"sk",metadata:q});return Q}; FG8=function(y,q){var Q=[];q?q.isTrusted===!0?Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):q.isTrusted===!1?Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");FM(0,"a.s_",{metadata:y,states:Q});ip("ASDSTAT",0)}; FM=function(y,q,Q){q=YfH[q];var p,v,d={detected:y===0,source:""+q.W+((p=Q.triggerContext)!=null?p:"")+((v=Q.xR)!=null?v:""),detectionStates:Q.states,durationMs:Q.VE};Q.metadata&&(d.contentCpn=Q.metadata.contentCpn,d.adCpn=Q.metadata.adCpn);g.wU("biscottiBasedDetection",d);q.K!==void 0&&(Q=Number(g.XY("CATSTAT",0)),q.K!==void 0?(q=q.K,y=w9i(y),y=Q&~(3<0}; xz=function(y,q,Q,p,v,d){jn.call(this,y,{S:"div",V:"ytp-ad-skip-button-slot"},"skip-button",q,Q,p,v);var T=this;this.N$=null;this.gp=!1;this.Vm=d;this.J=this.api.T().experiments.ob("enable_modern_skip_button_on_web");this.BI=!1;this.Y=new g.Ye({S:"span",rp:["ytp-ad-skip-button-container"]});this.J&&this.Y.element.classList.add("ytp-ad-skip-button-container-detached");g.n(this,this.Y);this.Y.ym(this.element);this.W=this.N=null;this.Dw=new g.vt(this.Y,500,!1,100,function(){return T.hide()}); g.n(this,this.Dw);this.vI=new wS(this.Y.element,15E3,5E3,.5,.5,this.J);g.n(this,this.vI);this.hide()}; hgb=function(y){y=y.N$&&y.N$.adRendererCommands;return(y&&y.clickCommand&&g.U(y.clickCommand,g.Wt)&&g.U(y.clickCommand,g.Wt).commands||[]).some(function(q){return q.adLifecycleCommand?fGb(q.adLifecycleCommand):!1})}; fGb=function(y){return y.action==="END_LINEAR_AD"||y.action==="END_LINEAR_AD_PLACEMENT"}; ZB=function(y,q,Q,p,v,d){jn.call(this,y,{S:"div",V:"ytp-ad-skip-ad-slot"},"skip-ad",q,Q,p,v);this.N$=d;this.Y=!1;this.J=0;this.N=this.W=null;this.hide()}; bdi=function(y,q){y.Y||(y.Y=!0,y.W&&(q?y.W.N$.hide():y.W.hide()),q?(y=y.N,y.Dw.show(),y.show()):y.N.show())}; tx=function(y,q,Q,p){DI.call(this,y,q,Q,p,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Es=function(y,q,Q,p,v,d,T){d=d===void 0?!1:d;T=T===void 0?!1:T;f1.call(this,y,{S:"span",V:"ytp-ad-simple-ad-badge"},"simple-ad-badge",q,Q,p);this.N=v;this.K=this.uB("ytp-ad-simple-ad-badge");(this.W=d)&&this.K.classList.add("ytp-ad-simple-ad-badge--clean-player");T&&this.K.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; kz=function(y,q,Q,p,v){v=v===void 0?!1:v;TM.call(this,"player-overlay",y,{},q,p);this.videoAdDurationSeconds=Q;this.interactionLoggingClientData=p;this.P$=v}; Ls=function(y,q){g.V6.call(this);this.api=y;this.durationMs=q;this.K=null;this.handler=new sM(this);g.n(this,this.handler);this.W=$bp;this.handler.Z(this.api,"presentingplayerstatechange",this.y3);this.K=this.handler.Z(this.api,"onAdPlaybackProgress",this.xj)}; am=function(y){g.V6.call(this);this.K=!1;this.aE=0;this.handler=new sM(this);g.n(this,this.handler);this.durationMs=y;this.timer=new g.Un(100);g.n(this,this.timer);this.handler.Z(this.timer,"tick",this.xj);this.W={seekableStart:0,seekableEnd:y/1E3,current:0};this.start()}; g.NG=function(y,q){var Q=Math.abs(Math.floor(y)),p=Math.floor(Q/86400),v=Math.floor(Q%86400/3600),d=Math.floor(Q%3600/60);Q=Math.floor(Q%60);if(q){q="";p>0&&(q+=" "+p+" Dias");if(p>0||v>0)q+=" "+v+" Horas";q+=" "+d+" Minutos";q+=" "+Q+" Segundos";p=q.trim()}else{q="";p>0&&(q+=p+":",v<10&&(q+="0"));if(p>0||v>0)q+=v+":",d<10&&(q+="0");q+=d+":";Q<10&&(q+="0");p=q+Q}return y>=0?p:"-"+p}; g.Sn=function(y){return(!("button"in y)||typeof y.button!=="number"||y.button===0)&&!("shiftKey"in y&&y.shiftKey)&&!("altKey"in y&&y.altKey)&&!("metaKey"in y&&y.metaKey)&&!("ctrlKey"in y&&y.ctrlKey)}; Ht=function(y,q,Q,p,v,d,T){jn.call(this,y,{S:"span",V:T?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",q,Q,p,v);this.videoAdDurationSeconds=d;this.W=null;T&&this.api.T().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),P9&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Rm=function(y,q,Q,p){yI.call(this,y,q,Q,p,"ytp-video-ad-top-bar-title","ad-title")}; MG=function(y){this.content=y.content;if(y.commandRuns){y=g.t(y.commandRuns);for(var q=y.next();!q.done;q=y.next())q=q.value,this.loggingDirectives=g.U(q,KGS),q.onTap&&(this.interaction={onTap:q.onTap})}}; lK=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ad-simple-attributed-string"},"ad-simple-attributed-string",q,Q,p);this.hide()}; z5=function(y,q,Q,p,v){f1.call(this,y,{S:"span",V:v?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",q,Q,p);this.W=v;this.adBadgeText=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);this.adBadgeText.ym(this.element);g.n(this,this.adBadgeText);v?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),P9&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; DB=function(y,q,Q,p){f1.call(this,y,{S:"span",V:"ytp-ad-pod-index"},"ad-pod-index",q,Q,p);this.api.T().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),P9&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; uK=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",q,Q,p);this.hide()}; Im=function(y,q){this.W=y;this.K=q}; xbi=function(y,q){return y.W+q*(y.K-y.W)}; ns=function(y,q,Q){return y.K-y.W?g.rV((q-y.W)/(y.K-y.W),0,1):Q!=null?Q:Infinity}; gS=function(y,q,Q,p){p=p===void 0?!1:p;g.Ye.call(this,{S:"div",V:"ytp-ad-persistent-progress-bar-container",D:[{S:"div",V:"ytp-ad-persistent-progress-bar"}]});this.api=y;this.W=q;this.N=Q;p&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.n(this,this.W);this.progressBar=this.uB("ytp-ad-persistent-progress-bar");this.K=-1;this.Z(y,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; ct=function(y,q,Q,p,v,d){f1.call(this,y,{S:"div",V:"ytp-ad-player-overlay",D:[{S:"div",V:"ytp-ad-player-overlay-flyout-cta"},{S:"div",V:"ytp-ad-player-overlay-instream-info"},{S:"div",V:"ytp-ad-player-overlay-skip-or-preview"},{S:"div",V:"ytp-ad-player-overlay-progress-bar"},{S:"div",V:"ytp-ad-player-overlay-instream-user-sentiment"},{S:"div",V:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",q,Q,p);this.j=d;this.J=this.uB("ytp-ad-player-overlay-flyout-cta");this.J.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.K=this.uB("ytp-ad-player-overlay-instream-info");this.Y=null;WGH(this)&&(y=hY("div"),g.wl(y,"ytp-ad-player-overlay-top-bar-gradients"),q=this.K,q.parentNode&&q.parentNode.insertBefore(y,q),(q=this.api.getVideoData(2))&&q.isListed&&q.title&&(Q=new Rm(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),Q.ym(y),Q.init(da("ad-title"),{text:q.title},this.macros),g.n(this,Q)),this.Y=y);this.N=null;this.LK=this.uB("ytp-ad-player-overlay-skip-or-preview");this.vI=this.uB("ytp-ad-player-overlay-progress-bar"); this.gp=this.uB("ytp-ad-player-overlay-instream-user-sentiment");this.N$=this.uB("ytp-ad-player-overlay-ad-disclosure-banner");this.W=v;g.n(this,this.W);this.hide()}; WGH=function(y){y=y.api.T();return g.Us(y)&&y.W}; g.rS=function(y){y&=16777215;var q=[(y&16711680)>>16,(y&65280)>>8,y&255];y=q[0];var Q=q[1];q=q[2];y=Number(y);Q=Number(Q);q=Number(q);if(y!=(y&255)||Q!=(Q&255)||q!=(q&255))throw Error('"('+y+","+Q+","+q+'") is not a valid RGB color');Q=y<<16|Q<<8|q;return y<16?"#"+(16777216|Q).toString(16).slice(1):"#"+Q.toString(16)}; g.om=function(){}; tK2=function(y){var q=new fR;var Q=new YK;Q=cv(Q,1,"botguard");y=cv(Q,2,y);this.K=Sj3(q,YK,1,Zdg,y)}; Ax=function(y){this.K=new z9(y)}; EC8=function(){var y=!1;try{y=!!window.sessionStorage.getItem("session_logininfo")}catch(q){y=!0}return(g.XY("INNERTUBE_CLIENT_NAME")==="WEB"||g.XY("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&y}; en=function(){var y=y===void 0?!0:y;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");ip("LOGIN_INFO","");y&&window.sessionStorage.setItem("from_switch_account","1");y=!0;y=y===void 0?!1:y;var q,Q=k3g;Q||(Q=document.querySelector("#persist_identity"));if(q=Q){var p=q.src?(new URL(q.src)).origin:"*";if(y){var v;(v=q.contentWindow)==null||v.postMessage({action:"clear"},p)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var d=window.sessionStorage.getItem("session_logininfo");if(d){var T;(T=q.contentWindow)==null||T.postMessage({loginInfo:d},p)}}}}catch(O){}}; Bt=function(y){y&&(y.startsWith("https://accounts.google.com/AddSession")?en():y.startsWith("https://accounts.google.com/ServiceLogin")?en():y.startsWith("https://myaccount.google.com")&&g.b6(y).W.endsWith("/youtubeoptions")&&en());if(g.XY("LOGGED_IN",!0)&&EC8()){var q=g.XY("VALID_SESSION_TEMPDATA_DOMAINS",[]);var Q=g.$b(window.location.href);Q&&q.push(Q);Q=g.$b(y);g.Eu(q,Q)||!Q&&MO(y,"/")?(q=xb(y),(q=uU9(q))?(q=nQC(q),q=(q=g.cF(q)||null)?vF(q):{}):q=null):q=null;q==null&&(q={});Q=q;var p=void 0; EC8()?(p||(p=g.XY("LOGIN_INFO")),p?(Q.session_logininfo=p,Q=!0):Q=!1):Q=!1;Q&&Nq(y,q)}}; g.LGs=function(y){var q=q===void 0?{}:q;var Q=Q===void 0?"":Q;var p=p===void 0?window:p;y=g.kb(y,q);Bt(y);Q=g.wV(y+Q);p=p.location;Q=JK(Q);Q!==void 0&&(p.href=Q)}; g.G5=function(y,q,Q){q=q===void 0?{}:q;Q=Q===void 0?!1:Q;var p=g.XY("EVENT_ID");p&&(q.ei||(q.ei=p));q&&Nq(y,q);Q||(Bt(y),g.LGs(y))}; g.Pt=function(y,q,Q,p,v){v=v===void 0?!1:v;Q&&Nq(y,Q);Q=g.wV(y);var d=g.Tq(Q);y!=d&&js(Error("Unsafe window.open URL: "+y));y=d;q=q||zq(y).toString(36);try{if(v)return v=y,v=YeH(v),Bt(v),g.$Z(window,v,q,"attributionsrc")}catch(T){g.y9(T)}Bt(y);return g.$Z(window,Q,q,p)}; aGs=function(y){iK=y}; NU3=function(y){XM=y}; Sfi=function(y){Cs=y}; Rg3=function(){Hd8=Cs=XM=iK=null}; MKi=function(){var y=y===void 0?window.location.href:y;if(g.kQ("kevlar_disable_theme_param"))return null;var q=KW(y);if(g.kQ("enable_dark_theme_only_on_shorts")&&q!=null&&q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var Q=g.TS(y).theme;return skC.get(Q)||null}catch(p){}return null}; yT=function(){this.K={};if(this.W=WCs()){var y=g.cF("CONSISTENCY");y&&lGC(this,{encryptedTokenJarContents:y})}}; lGC=function(y,q){if(q.encryptedTokenJarContents&&(y.K[q.encryptedTokenJarContents]=q,typeof q.expirationSeconds==="string")){var Q=Number(q.expirationSeconds);setTimeout(function(){delete y.K[q.encryptedTokenJarContents]},Q*1E3); y.W&&g.g_("CONSISTENCY",q.encryptedTokenJarContents,Q,void 0,!0)}}; jf=function(){this.W=-1;var y=g.XY("LOCATION_PLAYABILITY_TOKEN");g.XY("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=qo(this))&&(y=this.localStorage.get("yt-location-playability-token"));y&&(this.locationPlayabilityToken=y,this.K=void 0)}; qo=function(y){return y.localStorage===void 0?new pd("yt-client-location"):y.localStorage}; g.QT=function(y,q,Q){q=q===void 0?!1:q;Q=Q===void 0?!1:Q;var p=g.XY("INNERTUBE_CONTEXT");if(!p)return g.l$(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};p=g.xG(p);g.kQ("web_no_tracking_params_in_shell_killswitch")||delete p.clickTracking;p.client||(p.client={});var v=p.client;v.clientName==="MWEB"&&v.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(v.clientFormFactor=g.XY("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");v.screenWidthPoints=window.innerWidth;v.screenHeightPoints= window.innerHeight;v.screenPixelDensity=Math.round(window.devicePixelRatio||1);v.screenDensityFloat=window.devicePixelRatio||1;v.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var d=d===void 0?!1:d;var T=g.rf(),O="USER_INTERFACE_THEME_LIGHT";T.Zm(165)?O="USER_INTERFACE_THEME_DARK":T.Zm(174)?O="USER_INTERFACE_THEME_LIGHT":!g.kQ("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (O="USER_INTERFACE_THEME_DARK");d=d?O:MKi()||O;v.userInterfaceTheme=d;if(!q){if(d=dnb())v.connectionType=d;g.kQ("web_log_effective_connection_type")&&(d=Vxf())&&(p.client.effectiveConnectionType=d)}var w;if(g.kQ("web_log_memory_total_kbytes")&&((w=g.CS.navigator)==null?0:w.deviceMemory)){var J;w=(J=g.CS.navigator)==null?void 0:J.deviceMemory;p.client.memoryTotalKbytes=""+w*1E6}g.kQ("web_gcf_hashes_innertube")&&(d=hrD())&&(J=d.coldConfigData,w=d.coldHashData,d=d.hotHashData,p.client.configInfo=p.client.configInfo|| {},J&&(p.client.configInfo.coldConfigData=J),w&&(p.client.configInfo.coldHashData=w),d&&(p.client.configInfo.hotHashData=d));J=g.TS(g.CS.location.href);!g.kQ("web_populate_internal_geo_killswitch")&&J.internalcountrycode&&(v.internalGeo=J.internalcountrycode);v.clientName==="MWEB"||v.clientName==="WEB"?(v.mainAppWebInfo||(v.mainAppWebInfo={}),v.mainAppWebInfo.graftUrl=g.CS.location.href,g.kQ("kevlar_woffle")&&CWH.instance&&(J=CWH.instance,v.mainAppWebInfo.pwaInstallabilityStatus=!J.K&&J.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),v.mainAppWebInfo.webDisplayMode=gf(),v.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):v.clientName==="TVHTML5"&&(!g.kQ("web_lr_app_quality_killswitch")&&(J=g.XY("LIVING_ROOM_APP_QUALITY"))&&(v.tvAppInfo=Object.assign(v.tvAppInfo||{},{appQuality:J})),J=g.XY("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(v.tvAppInfo=Object.assign(v.tvAppInfo||{},{certificationScope:J}));if(!g.kQ("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(c){}F=void 0}F&&(v.timeZone=F)}(F=ao())?v.experimentsToken=F:delete v.experimentsToken;F=N7();yT.instance||(yT.instance=new yT);p.request=Object.assign({},p.request,{internalExperimentFlags:F,consistencyTokenJars:VE(yT.instance.K)});!g.kQ("web_prequest_context_killswitch")&&(F=g.XY("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(p.request.externalPrequestContext=F);v=g.rf();F=v.Zm(58);v=v.get("gsml","");p.user=Object.assign({}, p.user);F&&(p.user.enableSafetyMode=F);v&&(p.user.lockedSafetyMode=!0);g.kQ("warm_op_csn_cleanup")?Q&&(q=g.LD())&&(p.clientScreenNonce=q):!q&&(q=g.LD())&&(p.clientScreenNonce=q);y&&(p.clickTracking={clickTrackingParams:y});if(y=g.qw("yt.mdx.remote.remoteClient_"))p.remoteClient=y;jf.getInstance().setLocationOnInnerTubeContext(p);try{var Y=hM(),f=Y.bid;delete Y.bid;p.adSignalsInfo={params:[],bid:f};for(var h=g.t(Object.entries(Y)),b=h.next();!b.done;b=h.next()){var Z=g.t(b.value),k=Z.next().value, S=Z.next().value;Y=k;f=S;y=void 0;(y=p.adSignalsInfo.params)==null||y.push({key:Y,value:""+f})}var N,l;if(((N=p.client)==null?void 0:N.clientName)==="TVHTML5"||((l=p.client)==null?void 0:l.clientName)==="TVHTML5_UNPLUGGED"){var u=g.XY("INNERTUBE_CONTEXT");u.adSignalsInfo&&(p.adSignalsInfo.advertisingId=u.adSignalsInfo.advertisingId,p.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",p.adSignalsInfo.limitAdTracking=u.adSignalsInfo.limitAdTracking)}}catch(c){g.l$(c)}return p}; uy9=function(y,q){if(!y)return!1;var Q,p=(Q=g.U(y,zgD))==null?void 0:Q.signal;if(p&&q.F_)return!!q.F_[p];var v;if((Q=(v=g.U(y,Dbi))==null?void 0:v.request)&&q.L5)return!!q.L5[Q];for(var d in y)if(q.ge[d])return!0;return!1}; IGC=function(y){var q={"Content-Type":"application/json"};g.XY("EOM_VISITOR_DATA")?q["X-Goog-EOM-Visitor-Id"]=g.XY("EOM_VISITOR_DATA"):g.XY("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.XY("VISITOR_DATA"));q["X-Youtube-Bootstrap-Logged-In"]=g.XY("LOGGED_IN",!1);g.XY("DEBUG_SETTINGS_METADATA")&&(q["X-Debug-Settings-Metadata"]=g.XY("DEBUG_SETTINGS_METADATA"));if(y!=="cors"){var Q=g.XY("INNERTUBE_CONTEXT_CLIENT_NAME");Q&&(q["X-Youtube-Client-Name"]=Q);(Q=g.XY("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(q["X-Youtube-Client-Version"]= Q);(Q=g.XY("CHROME_CONNECTED_HEADER"))&&(q["X-Youtube-Chrome-Connected"]=Q);(Q=g.XY("DOMAIN_ADMIN_STATE"))&&(q["X-Youtube-Domain-Admin-State"]=Q)}g.XY("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(y=g.XY("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=y):y!=="cors"&&g.XY("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(y=g.XY("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=y);return q}; nCC=function(){this.K={}}; pp=function(){this.mappings=new nCC}; vD=function(y){return function(){return new y}}; c_p=function(y){var q=q===void 0?"UNKNOWN_INTERFACE":q;if(y.length===1)return y[0];var Q=gCH[q];if(Q){Q=new RegExp(Q);for(var p=g.t(y),v=p.next();!v.done;v=p.next())if(v=v.value,Q.exec(v))return v}var d=[];Object.entries(gCH).forEach(function(T){var O=g.t(T);T=O.next().value;O=O.next().value;q!==T&&d.push(O)}); Q=new RegExp(d.join("|"));y.sort(function(T,O){return T.length-O.length}); p=g.t(y);for(v=p.next();!v.done;v=p.next())if(v=v.value,!Q.exec(v))return v;return y[0]}; g.dY=function(y){return"/youtubei/v1/"+c_p(y)}; Tn=function(){}; VT=function(){}; OR=function(){}; wY=function(y){return g.qw("ytcsi."+(y||"")+"data_")||Ubb(y)}; r_i=function(){var y=wY();y.info||(y.info={});return y.info}; Jd=function(y){y=wY(y);y.metadata||(y.metadata={});return y.metadata}; Fl=function(y){y=wY(y);y.tick||(y.tick={});return y.tick}; YR=function(y){y=wY(y);if(y.gel){var q=y.gel;q.gelInfos||(q.gelInfos={});q.gelTicks||(q.gelTicks={})}else y.gel={gelTicks:{},gelInfos:{}};return y.gel}; oCD=function(y){y=YR(y);y.gelInfos||(y.gelInfos={});return y.gelInfos}; fp=function(y){var q=wY(y).nonce;q||(q=g.ZX(16),wY(y).nonce=q);return q}; Ubb=function(y){var q={tick:{},info:{}};g.y_("ytcsi."+(y||"")+"data_",q);return q}; hd=function(){var y=g.qw("ytcsi.debug");y||(y=[],g.y_("ytcsi.debug",y),g.y_("ytcsi.reference",{}));return y}; bg=function(y){y=y||"";var q=A_g();if(q[y])return q[y];var Q=hd(),p={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};Q.push(p);return q[y]=p}; egs=function(y){y=y||"";var q=A_g();q[y]&&delete q[y];var Q=hd(),p={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};Q.push(p);q[y]=p}; A_g=function(){var y=g.qw("ytcsi.reference");if(y)return y;hd();return g.qw("ytcsi.reference")}; $R=function(y){return BUg[y]||"LATENCY_ACTION_UNKNOWN"}; Kp=function(y,q){bI.call(this,1,arguments);this.timer=q}; xR=function(){this.K=0}; WD=function(){xR.instance||(xR.instance=new xR);return xR.instance}; td=function(y,q){Z_[q]=Z_[q]||{count:0};var Q=Z_[q];Q.count++;Q.time=(0,g.SK)();y.K||(y.K=g.C_(0,function(){var p=(0,g.SK)(),v;for(v in Z_)Z_[v]&&p-Z_[v].time>6E4&&delete Z_[v];y&&(y.K=0)},5E3)); return Q.count>5?(Q.count===6&&Math.random()*1E5<1&&(Q=new g.GH("CSI data exceeded logging limit with key",q.split("_")),q.indexOf("plev")>=0||g.zI(Q)),!0):!1}; G3j=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Pv2=function(){var y;if(g.kQ("csi_use_performance_navigation_timing")){var q,Q,p,v=ER==null?void 0:(y=ER.getEntriesByType)==null?void 0:(q=y.call(ER,"navigation"))==null?void 0:(Q=q[0])==null?void 0:(p=Q.toJSON)==null?void 0:p.call(Q);v?(v.requestStart=kR(v.requestStart),v.responseEnd=kR(v.responseEnd),v.redirectStart=kR(v.redirectStart),v.redirectEnd=kR(v.redirectEnd),v.domainLookupEnd=kR(v.domainLookupEnd),v.connectStart=kR(v.connectStart),v.connectEnd=kR(v.connectEnd),v.responseStart=kR(v.responseStart), v.secureConnectionStart=kR(v.secureConnectionStart),v.domainLookupStart=kR(v.domainLookupStart),v.isPerformanceNavigationTiming=!0,y=v):y=ER.timing}else y=g.kQ("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(ER.timing)):ER.timing;return y}; kR=function(y){return Math.round(Lp()+y)}; Lp=function(){return(g.kQ("csi_use_time_origin")||g.kQ("csi_use_time_origin_tvhtml5"))&&ER.timeOrigin?Math.floor(ER.timeOrigin):ER.timing.navigationStart}; No=function(y,q){a0("_start",y,q)}; Sf=function(y,q){if(!g.kQ("web_csi_action_sampling_enabled")||!wY(q).actionDisabled){var Q=bg(q||"");fb(Q.info,y);y.loadType&&(Q=y.loadType,Jd(q).loadType=Q);fb(oCD(q),y);Q=fp(q);q=wY(q).cttAuthInfo;WD().info(y,Q,q)}}; idS=function(){var y,q,Q,p;return((p=lt().resolve(S$(JP))==null?void 0:(y=FX())==null?void 0:(q=y.loggingHotConfig)==null?void 0:(Q=q.csiConfig)==null?void 0:Q.debugTicks)!=null?p:[]).map(function(v){return Object.values(v)[0]})}; a0=function(y,q,Q){if(!g.kQ("web_csi_action_sampling_enabled")||!wY(Q).actionDisabled){var p=fp(Q),v;if(v=g.kQ("web_csi_debug_sample_enabled")&&p){(lt().resolve(S$(JP))==null?0:FX())&&!X93&&(X93=!0,a0("gcfl",(0,g.SK)(),Q));var d,T,O;v=(lt().resolve(S$(JP))==null?void 0:(d=FX())==null?void 0:(T=d.loggingHotConfig)==null?void 0:(O=T.csiConfig)==null?void 0:O.debugSampleWeight)||0;if(d=v!==0)b:{d=idS();if(d.length>0)for(T=0;TQ.duration?p:Q},{duration:0}))&&q.startTime>0&&q.responseEnd>0&&(a0("wffs",kR(q.startTime)),a0("wffe",kR(q.responseEnd)))}; pV2=function(y,q,Q){ER&&ER.measure&&(y.startsWith("measure_")||(y="measure_"+y),Q?ER.measure(y,q,Q):q?ER.measure(y,q):ER.measure(y))}; vfS=function(y){var q=HD("aft",y);if(q)return q;q=g.XY((y||"")+"TIMING_AFT_KEYS",["ol"]);for(var Q=q.length,p=0;p0&&Sf(q);q={isNavigation:!0,actionType:$R(g.XY("TIMING_ACTION"))};var Q=g.XY("PREVIOUS_ACTION");Q&&(q.previousAction=$R(Q));if(Q=g.XY("CLIENT_PROTOCOL"))q.httpProtocol=Q;if(Q=g.XY("CLIENT_TRANSPORT"))q.transportProtocol=Q;(Q=g.LD())&&Q!=="UNDEFINED_CSN"&&(q.clientScreenNonce=Q);Q=yPi();if(Q===1||Q===-1)q.isVisible= !0;Q=Jd().loadType==="cold";var p=r_i();Q||(Q=p.yt_lt==="cold");if(Q){q.loadType="cold";Q=r_i();p=Pv2();var v=Lp(),d=g.XY("CSI_START_TIMESTAMP_MILLIS",0);d>0&&!g.kQ("embeds_web_enable_csi_start_override_killswitch")&&(v=d);v&&(a0("srt",p.responseStart),Q.prerender!==1&&No(v));Q=VBi();Q>0&&a0("fpt",Q);Q=Pv2();Q.isPerformanceNavigationTiming&&Sf({performanceNavigationTiming:!0},void 0);a0("nreqs",Q.requestStart,void 0);a0("nress",Q.responseStart,void 0);a0("nrese",Q.responseEnd,void 0);Q.redirectEnd- Q.redirectStart>0&&(a0("nrs",Q.redirectStart,void 0),a0("nre",Q.redirectEnd,void 0));Q.domainLookupEnd-Q.domainLookupStart>0&&(a0("ndnss",Q.domainLookupStart,void 0),a0("ndnse",Q.domainLookupEnd,void 0));Q.connectEnd-Q.connectStart>0&&(a0("ntcps",Q.connectStart,void 0),a0("ntcpe",Q.connectEnd,void 0));Q.secureConnectionStart>=Lp()&&Q.connectEnd-Q.secureConnectionStart>0&&(a0("nstcps",Q.secureConnectionStart,void 0),a0("ntcpe",Q.connectEnd,void 0));ER&&"getEntriesByType"in ER&&Qcf();Q=[];if(document.querySelector&& ER&&ER.getEntriesByName)for(var T in Mo)Mo.hasOwnProperty(T)&&(p=Mo[T],jcH(T,p)&&Q.push(p));if(Q.length>0)for(q.resourceInfo=[],T=g.t(Q),Q=T.next();!Q.done;Q=T.next())q.resourceInfo.push({resourceCache:Q.value})}Sf(q);q=YR();q.preLoggedGelInfos||(q.preLoggedGelInfos=[]);T=q.preLoggedGelInfos;q=oCD();Q=void 0;for(p=0;p-1&&(delete aj["@type"],A=aj);Z&&y.W.has(Z)&&y.W.delete(Z);((Fc=q.config)==null?0:Fc.MKm)&&zn(q.config.MKm);if(A||(Jm=y.N)==null||!Jm.la3(q.input,q.Tx)){M9.ej(15);break}return g.R(M9,y.N.Fh$(q.input,q.Tx),16);case 16:A=M9.W;case 15:return awb(y, A,q),((gg=q.config)==null?0:gg.H6K)&&zn(q.config.H6K),p(),M9.return(A||void 0)}})}; Z0C=function(y,q){a:{y=y.wA;var Q,p=(Q=g.U(q,zgD))==null?void 0:Q.signal;if(p&&y.F_&&(Q=y.F_[p])){var v=Q();break a}var d;if((Q=(d=g.U(q,Dbi))==null?void 0:d.request)&&y.L5&&(d=y.L5[Q])){v=d();break a}for(v in q)if(y.ge[v]&&(q=y.ge[v])){v=q();break a}v=void 0}if(v!==void 0)return Promise.resolve(v)}; EfC=function(y,q,Q){var p,v,d,T,O,w,J;return g.M(function(F){if(F.K==1){d=((p=q)==null?void 0:(v=p.TJ)==null?void 0:v.identity)||hP;w=(T=q)==null?void 0:(O=T.TJ)==null?void 0:O.sessionIndex;var Y=g.uu(y.K.JO(d,{sessionIndex:w}));return g.R(F,Y,2)}J=F.W;return F.return(Promise.resolve(Object.assign({},IGC(Q),J)))})}; tBg=function(y,q,Q){var p,v=(q==null?void 0:(p=q.TJ)==null?void 0:p.identity)||hP,d;q=q==null?void 0:(d=q.TJ)==null?void 0:d.sessionIndex;y=y.K.JO(v,{sessionIndex:q});return Object.assign({},IGC(Q),y)}; o0=function(){}; Ad=function(){}; ef=function(y){this.G=y}; BD=function(){}; Gn=function(){}; PD=function(){}; ig=function(){}; g.Xl=function(y,q){var Q=g.nS.apply(2,arguments);y=y===void 0?0:y;g.GH.call(this,q,Q);this.errorType=y;Object.setPrototypeOf(this,this.constructor.prototype)}; mr=function(y,q,Q,p){this.K=y;this.W=q;this.N=Q;this.Y=p}; S9f=function(y,q,Q){if(y.K){var p=KW(RR(q,"key"))||"/UNKNOWN_PATH";y.K.start(p)}p=Q;g.kQ("wug_networking_gzip_request")&&(p=ers(Q));var v;return new ((v=y.Y)!=null?v:window.Request)(q,p)}; g.yL=function(y,q){if(!Cp){var Q=lt();Ha(Q,{oX:H0H,Uq:mr});var p={ge:{feedbackEndpoint:vD(BD),modifyChannelNotificationPreferenceEndpoint:vD(Gn),playlistEditEndpoint:vD(PD),shareEntityEndpoint:vD(ef),subscribeEndpoint:vD(o0),unsubscribeEndpoint:vD(Ad),webPlayerShareEntityServiceEndpoint:vD(ig)}},v=jf.getInstance(),d={};v&&(d.client_location=v);y===void 0&&(y=yAs());q===void 0&&(q=Q.resolve(H0H));WLg(p,q,y,d);Ha(Q,{oX:Rj3,Ho:cD.instance});Cp=Q.resolve(Rj3)}return Cp}; sci=function(y){var q=new hS;if(y.interpreterJavascript){var Q=uOD(y.interpreterJavascript);Q=WQ(Q).toString();var p=new Y9;cv(p,6,Q);RM(q,Y9,1,p,Cv)}else y.interpreterUrl&&(Q=Sc(y.interpreterUrl),Q=pI(Q).toString(),p=new fG,cv(p,4,Q),RM(q,fG,2,p,Cv));y.interpreterHash&&Uq(q,3,y.interpreterHash,Cv);y.program&&Uq(q,4,y.program,Cv);y.globalName&&Uq(q,5,y.globalName,Cv);y.clientExperimentsStateBlob&&Uq(q,7,y.clientExperimentsStateBlob,Cv);return q}; qs=function(y){var q={};y=y.split("&");y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())Q=Q.value.split("="),Q.length===2&&(q[Q[0]]=Q[1]);return q}; abb=function(){if(g.kQ("bg_st_hr"))return"havuokmhhs-0";var y,q=((y=globalThis.performance)==null?void 0:y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(q)}; jd=function(y){this.K=y}; MBC=function(){return new Promise(function(y){var q=window;q.ntpevasrs!==void 0?y(new jd(q.ntpevasrs)):(q.ntpqfbel===void 0&&(q.ntpqfbel=[]),q.ntpqfbel.push(function(Q){y(new jd(Q))}))})}; D3s=function(){if(df()){var y=g.XY("PLAYER_VARS",{});if(g.bo(y,"privembed",!1)!="1"&&!NNC(y)){var q=function(){QL=!0;"google_ad_status"in window?ip("DCLKSTAT",1):ip("DCLKSTAT",2)}; try{g.ww(lwp,q)}catch(Q){}zjs.push(g.BH.Dj(function(){if(!(QL||"google_ad_status"in window)){try{if(lwp.toString()&&q){var Q=""+g.V_(q),p=a9g[Q];p&&g.V8(p)}}catch(v){}QL=!0;ip("DCLKSTAT",3)}},5E3))}}}; pr=function(){var y=Number(g.XY("DCLKSTAT",0));return isNaN(y)?0:y}; VL=function(y,q,Q){var p=this;this.network=y;this.options=q;this.W=Q;this.K=null;if(q.rSV){var v=new g.$9;this.K=v.promise;g.CS.ytAtRC&&mF(function(){var d,T;return g.M(function(O){if(O.K==1){if(!g.CS.ytAtRC)return O.return();d=vJ(null);return g.R(O,dT(p,d),2)}T=O.W;g.CS.ytAtRC&&g.CS.ytAtRC(JSON.stringify(T));g.tH(O)})},2); MBC().then(function(d){var T,O,w,J;return g.M(function(F){if(F.K==1)return d.bindInnertubeChallengeFetcher(function(Y){return dT(p,vJ(Y))}),g.R(F,pR(),2); T=F.W;O=d.getLatestChallengeResponse();w=O.challenge;if(!w)throw Error("BGE_MACIL");J={challenge:w,fX:qs(w),K6:T,bgChallenge:new hS};v.resolve(J);d.registerChallengeFetchedCallback(function(Y){Y=Y.challenge;if(!Y)throw Error("BGE_MACR");Y={challenge:Y,fX:qs(Y),K6:T,bgChallenge:new hS};p.K=Promise.resolve(Y)}); g.tH(F)})})}else q.preload&&uXf(this,new Promise(function(d){g.C_(0,function(){d(Ts(p))},0)}))}; vJ=function(y){var q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};y&&(q.interpreterHash=y);return q}; Ts=function(y,q){q=q===void 0?0:q;var Q,p,v,d,T,O,w,J,F,Y,f,h;return g.M(function(b){switch(b.K){case 1:Q=vJ(Ww().K);if(g.kQ("att_fet_ks"))return g.EC(b,7),g.R(b,dT(y,Q),9);g.EC(b,4);return g.R(b,Iw8(y,Q),6);case 6:T=b.W;v=T.aNI;d=T.wnf;p=T;g.Hp(b,3);break;case 4:return g.Rj(b),g.zI(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),O6(y,864E5),b.return({challenge:"",fX:{},K6:void 0,bgChallenge:void 0});case 9:p=b.W;if(!p)throw Error("Fetching Attestation challenge returned falsy"); if(!p.challenge)throw Error("Missing Attestation challenge");v=p.challenge;d=qs(v);if("c1a"in d&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Hp(b,3);break;case 7:O=g.Rj(b);g.zI(O);q++;if(q>=5)return g.zI(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),O6(y,864E5),b.return({challenge:"",fX:{},K6:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,q-1)+Math.random()*1E3;return b.return(new Promise(function(Z){g.C_(0, function(){Z(Ts(y,q))},w)})); case 3:J=Number(d.t)||7200;O6(y,J*1E3);F=void 0;if(!("c1a"in d&&p.bgChallenge)){b.ej(10);break}Y=sci(p.bgChallenge);g.EC(b,11);return g.R(b,kO9(Ww(),Y),13);case 13:g.Hp(b,12);break;case 11:return f=g.Rj(b),g.zI(f),b.return({challenge:v,fX:d,K6:F,bgChallenge:Y});case 12:return g.EC(b,14),F=new KG({challenge:Y,Bk:{qp:"aGIf"}}),g.R(b,F.Lz,16);case 16:g.Hp(b,10);break;case 14:h=g.Rj(b),g.zI(h),F=void 0;case 10:return b.return({challenge:v,fX:d,K6:F,bgChallenge:Y})}})}; dT=function(y,q){var Q;return g.M(function(p){Q=y.W;if(!Q||Q.rh())return p.return(dT(y.network,q));gY("att_pna",void 0,"attestation_challenge_fetch");return p.return(new Promise(function(v){Q.h4("publicytnetworkstatus-online",function(){dT(y.network,q).then(v)})}))})}; nf8=function(y){if(!y)throw Error("Fetching Attestation challenge returned falsy");if(!y.challenge)throw Error("Missing Attestation challenge");var q=y.challenge,Q=qs(q);if("c1a"in Q&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},y,{aNI:q,wnf:Q})}; Iw8=function(y,q){var Q,p,v,d,T;return g.M(function(O){switch(O.K){case 1:Q=void 0,p=0,v={};case 2:if(!(p<5)){O.ej(4);break}if(!(p>0)){O.ej(5);break}v.T4=1E3*Math.pow(2,p-1)+Math.random()*1E3;return g.R(O,new Promise(function(w){return function(J){g.C_(0,function(){J(void 0)},w.T4)}}(v)),5); case 5:return g.EC(O,7),g.R(O,dT(y,q),9);case 9:return d=O.W,O.return(nf8(d));case 7:Q=T=g.Rj(O),T instanceof Error&&g.zI(T);case 8:p++;v={T4:void 0};O.ej(2);break;case 4:throw Q;}})}; uXf=function(y,q){y.K=q}; gfp=function(y){var q,Q,p;return g.M(function(v){if(v.K==1)return g.R(v,Promise.race([y.K,null]),2);q=v.W;var d=Ts(y);y.K=d;(Q=q)==null||(p=Q.K6)==null||p.dispose();g.tH(v)})}; O6=function(y,q){function Q(){var v;return g.M(function(d){v=p-Date.now();return v<1E3?g.R(d,gfp(y),0):(mF(Q,0,Math.min(v,6E4)),d.ej(0))})} var p=Date.now()+q;Q()}; cPf=function(y,q){return new Promise(function(Q){g.C_(0,function(){Q(q())},y)})}; g.U3S=function(y,q){var Q;return g.M(function(p){var v=g.qw("yt.aba.att");return(Q=v?v:VL.instance!==void 0?VL.instance.N.bind(VL.instance):null)?p.return(Q("ENGAGEMENT_TYPE_PLAYBACK",y,q)):p.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.rP9=function(){var y;return(y=(y=g.qw("yt.aba.att2"))?y:VL.instance!==void 0?VL.instance.Y.bind(VL.instance):null)?y():Promise.resolve(!1)}; APD=function(y,q){var Q=g.qw("ytDebugData.callbacks");Q||(Q={},g.y_("ytDebugData.callbacks",Q));if(g.kQ("web_dd_iu")||ofb.includes(y))Q[y]=q}; wT=function(){var y=ejC;var q=q===void 0?[]:q;var Q=Q===void 0?[]:Q;q=RQ3.apply(null,[sw9.apply(null,g.hH(q))].concat(g.hH(Q)));this.store=lj9(y,void 0,q)}; g.J0=function(y,q,Q){for(var p=Object.assign({},y),v=g.t(Object.keys(q)),d=v.next();!d.done;d=v.next()){d=d.value;var T=y[d],O=q[d];if(O===void 0)delete p[d];else if(T===void 0)p[d]=O;else if(Array.isArray(O)&&Array.isArray(T))p[d]=Q?[].concat(g.hH(T),g.hH(O)):O;else if(!Array.isArray(O)&&g.dk(O)&&!Array.isArray(T)&&g.dk(T))p[d]=g.J0(T,O,Q);else if(typeof O===typeof T)p[d]=O;else return q=new g.GH("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:d,LhK:T,updateValue:O}),g.l$(q), y}return p}; Fx=function(y){var q=this;y=y===void 0?[]:y;this.K=[];this.N=this.W=0;this.Y=void 0;this.totalLength=0;y.forEach(function(Q){q.append(Q)})}; BWi=function(y,q){return y.K.length===0?!1:(y=y.K[y.K.length-1])&&y.buffer===q.buffer&&y.byteOffset+y.length===q.byteOffset}; YS=function(y,q){q=g.t(q.K);for(var Q=q.next();!Q.done;Q=q.next())y.append(Q.value)}; fr=function(y,q,Q){return y.split(q).tM.split(Q).uq}; h0=function(y){y.Y=void 0;y.W=0;y.N=0}; bj=function(y,q,Q){y.isFocused(q);return q-y.N+Q<=y.K[y.W].length}; GUs=function(y){if(!y.Y){var q=y.K[y.W];y.Y=new DataView(q.buffer,q.byteOffset,q.length)}return y.Y}; PIj=function(y,q,Q){q=q===void 0?0:q;Q=Q===void 0?-1:Q;if(!y.totalLength||!Q)return new DataView(new ArrayBuffer(0));Q<0&&(Q=y.totalLength-q);y.focus(q);if(!bj(y,q,Q)){var p=y.W,v=y.N;y.focus(q+Q-1);v=new Uint8Array(y.N+y.K[y.W].length-v);for(var d=0,T=p;T<=y.W;T++)v.set(y.K[T],d),d+=y.K[T].length;y.K.splice(p,y.W-p+1,v);h0(y);y.focus(q)}p=y.K[y.W];return new DataView(p.buffer,p.byteOffset+q-y.N,Q)}; $S=function(y,q,Q){y=PIj(y,q===void 0?0:q,Q===void 0?-1:Q);return new Uint8Array(y.buffer,y.byteOffset,y.byteLength)}; Kr=function(y,q,Q){y=$S(y,q===void 0?0:q,Q===void 0?-1:Q);q=new Uint8Array(y.length);try{q.set(y)}catch(p){for(Q=0;Q>10;d=56320|d&1023}t0[v++]=d}}d=String.fromCharCode.apply(String,t0); v<1024&&(d=d.substring(0,v));Q.push(d)}return Q.join("")}; Lr=function(y,q){var Q;if((Q=kS)==null?0:Q.encodeInto)return q=kS.encodeInto(y,q),q.read>6|192:((v&64512)===55296&&p+1>18|240,q[Q++]=v>>12&63|128):q[Q++]=v>>12|224,q[Q++]=v>>6&63|128),q[Q++]=v&63|128)}return Q}; aC=function(y){if(kS)return kS.encode(y);var q=new Uint8Array(Math.ceil(y.length*1.2)),Q=Lr(y,q);q.lengthQ&&(q=q.subarray(0,Q));return q}; Ns=function(y){this.K=y;this.pos=0;this.W=-1}; Sd=function(y){var q=xS(y.K,y.pos);++y.pos;if(q<128)return q;for(var Q=q&127,p=1;q>=128;)q=xS(y.K,y.pos),++y.pos,p*=128,Q+=(q&127)*p;return Q}; HJ=function(y,q){var Q=y.W;for(y.W=-1;y.pos+1<=y.K.totalLength;){Q<0&&(Q=Sd(y));var p=Q>>3,v=Q&7;if(p===q)return!0;if(p>q){y.W=Q;break}Q=-1;switch(v){case 0:Sd(y);break;case 1:y.pos+=8;break;case 2:p=Sd(y);y.pos+=p;break;case 5:y.pos+=4}}return!1}; RC=function(y,q){if(HJ(y,q))return Sd(y)}; m3C=function(y,q){if(HJ(y,q))return q=$S(y.K,y.pos,8),y.pos+=8,(new DataView(q.buffer,q.byteOffset,q.byteLength)).getFloat64(0,!0)}; s6=function(y,q){if(HJ(y,q))return!!Sd(y)}; Ms=function(y,q){if(HJ(y,q)){q=Sd(y);var Q=$S(y.K,y.pos,q);y.pos+=q;return Q}}; lj=function(y,q){if(y=Ms(y,q))return g.E6(y)}; zs=function(y,q,Q){if(y=Ms(y,q))return Q(new Ns(new Fx([y])))}; DF=function(y,q){for(var Q=[];HJ(y,q);)Q.push(Sd(y));return Q.length?Q:void 0}; uj=function(y,q,Q){for(var p=[],v;v=Ms(y,q);)p.push(Q(new Ns(new Fx([v]))));return p.length?p:void 0}; IC=function(y,q){y=y instanceof Uint8Array?new Fx([y]):y;return q(new Ns(y))}; CIp=function(y,q){y=new Uint8Array(y);q&&y.set(q);return y}; yzf=function(y){this.pos=0;this.W=[];this.K=CIp(y===void 0?4096:y);this.view=new DataView(this.K.buffer,this.K.byteOffset,this.K.byteLength)}; nr=function(y,q){q=y.pos+q;if(!(y.K.length>=q)){for(var Q=y.K.length*2;Q268435455){nr(y,4);for(var Q=q&1073741823,p=0;p<4;p++)y.view.setUint8(y.pos,Q&127|128),Q>>=7,y.pos+=1;q=Math.floor(q/268435456)}for(nr(y,4);q>127;)y.view.setUint8(y.pos,q&127|128),q>>=7,y.pos+=1;y.view.setUint8(y.pos,q);y.pos+=1}; cJ=function(y,q,Q){Q!==void 0&&(gT(y,q*8),gT(y,Q))}; mw=function(y,q,Q){Q!==void 0&&cJ(y,q,Q?1:0)}; Cr=function(y,q,Q){Q!==void 0&&(gT(y,q*8+2),q=Q.length,gT(y,q),nr(y,q),y.K.set(Q,y.pos),y.pos+=q)}; yX=function(y,q,Q){Q!==void 0&&(q4g(y,q,Math.ceil(Math.log2(Q.length*4+2)/7)),nr(y,Q.length*1.2),q=Lr(Q,y.K.subarray(y.pos)),y.pos+q>y.K.length&&(nr(y,q),q=Lr(Q,y.K.subarray(y.pos))),y.pos+=q,j$8(y))}; q4g=function(y,q,Q){Q=Q===void 0?2:Q;gT(y,q*8+2);y.W.push(y.pos);y.W.push(Q);y.pos+=Q}; j$8=function(y){for(var q=y.W.pop(),Q=y.W.pop(),p=y.pos-Q-q;q--;){var v=q?128:0;y.view.setUint8(Q++,p&127|v);p>>=7}}; qp=function(y,q,Q,p,v){Q&&(q4g(y,q,v===void 0?3:v),p(y,Q),j$8(y))}; g.jR=function(y,q){var Q=new yzf(4096);q(Q,y);return new Uint8Array(Q.K.buffer,Q.K.byteOffset,Q.pos)}; g.QX=function(y){var q=new Ns(new Fx([Me(decodeURIComponent(y))]));y=lj(q,2);q=RC(q,4);var Q=Q$D[q];if(typeof Q==="undefined")throw y=new g.GH("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:q}),g.l$(y),y;return{O6:q,entityType:Q,entityId:y}}; g.po=function(y,q){var Q=Q===void 0?0:Q;var p=new yzf;Cr(p,2,aC(y));y=pa2[q];if(typeof y==="undefined")throw Q=new g.GH("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:q}),g.l$(Q),Q;cJ(p,4,y);cJ(p,5,1);q=new Uint8Array(p.K.buffer,p.K.byteOffset,p.pos);return encodeURIComponent(g.Rq(q,Q))}; vB=function(y,q,Q,p){if(p===void 0)return p=Object.assign({},y[q]||{}),Q=(delete p[Q],p),p={},Object.assign({},y,(p[q]=Q,p));var v={},d={};return Object.assign({},y,(d[q]=Object.assign({},y[q],(v[Q]=p,v)),d))}; vig=function(y,q,Q,p,v){var d=y[q];if(d==null||!d[Q])return y;p=g.J0(d[Q],p,v==="REPEATED_FIELDS_MERGE_OPTION_APPEND");v={};d={};return Object.assign({},y,(d[q]=Object.assign({},y[q],(v[Q]=p,v)),d))}; dB9=function(y,q){y=y===void 0?{}:y;switch(q.type){case "ENTITY_LOADED":return q.payload.reduce(function(p,v){var d,T=(d=v.options)==null?void 0:d.persistenceOption;if(T&&T!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&T!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return p;if(!v.entityKey)return g.l$(Error("Missing entity key")),p;if(v.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!v.payload)return v=new g.GH("REPLACE entity mutation is missing a payload",{entityKey:v.entityKey}),g.l$(v),p;var O=g.Tu(v.payload); return vB(p,O,v.entityKey,v.payload[O])}if(v.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{v=v.entityKey;try{var w=g.QX(v).entityType;O=vB(p,w,v);break a}catch(Y){if(Y instanceof Error){v=new g.GH("Failed to deserialize entity key",{entityKey:v,originalMessage:Y.message});g.l$(v);O=p;break a}throw Y;}O=void 0}return O}if(v.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!v.payload)return v=new g.GH("UPDATE entity mutation is missing a payload",{entityKey:v.entityKey}),g.l$(v),p;O=g.Tu(v.payload);var J,F;return vig(p, O,v.entityKey,v.payload[O],(J=v.fieldMask)==null?void 0:(F=J.mergeOptions)==null?void 0:F.repeatedFieldsMergeOption)}return p},y); case "REPLACE_ENTITY":var Q=q.payload;return vB(y,Q.entityType,Q.key,Q.Ir);case "REPLACE_ENTITIES":return Object.keys(q.payload).reduce(function(p,v){var d=q.payload[v];return Object.keys(d).reduce(function(T,O){return vB(T,v,O,d[O])},p)},y); case "UPDATE_ENTITY":return Q=q.payload,vig(y,Q.entityType,Q.key,Q.Ir,Q.wM3);default:return y}}; dH=function(y,q,Q){return y[q]?y[q][Q]||null:null}; T2=function(y){return window.Int32Array?new Int32Array(y):Array(y)}; YV=function(y){g.I.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.K=16;if(!Tw9){var q,Q=new Uint8Array(256),p=new Uint8Array(256);var v=1;for(q=0;q<256;q++)Q[v]=q,p[q]=v,v^=v<<1^(v>>7&&283);VX=new Uint8Array(256);Or=T2(256);wH=T2(256);JV=T2(256);Fe=T2(256);for(var d=0;d<256;d++){v=d?p[255^Q[d]]:0;v^=v<<1^v<<2^v<<3^v<<4;v=v&255^v>>>8^99;VX[d]=v;q=v<<1^(v>>7&&283);var T=q^v;Or[d]=q<<24|v<<16|v<<8|T;wH[d]=T<<24|Or[d]>>>8;JV[d]=v<<24|wH[d]>>>8;Fe[d]=v<<24|JV[d]>>>8}Tw9=!0}v=T2(44);for(Q= 0;Q<4;Q++)v[Q]=y[4*Q]<<24|y[4*Q+1]<<16|y[4*Q+2]<<8|y[4*Q+3];for(p=1;Q<44;Q++)y=v[Q-1],Q%4||(y=(VX[y>>16&255]^p)<<24|VX[y>>8&255]<<16|VX[y&255]<<8|VX[y>>>24],p=p<<1^(p>>7&&283)),v[Q]=v[Q-4]^y;this.key=v}; V$i=function(y){for(var q=y.key,Q=y.counter[0]^q[0],p=y.counter[1]^q[1],v=y.counter[2]^q[2],d=y.counter[3]^q[3],T=3;T>=0&&!(y.counter[T]=-~y.counter[T]);T--);for(var O,w,J=4;J<40;)T=Or[Q>>>24]^wH[p>>16&255]^JV[v>>8&255]^Fe[d&255]^q[J++],O=Or[p>>>24]^wH[v>>16&255]^JV[d>>8&255]^Fe[Q&255]^q[J++],w=Or[v>>>24]^wH[d>>16&255]^JV[Q>>8&255]^Fe[p&255]^q[J++],d=Or[d>>>24]^wH[Q>>16&255]^JV[p>>8&255]^Fe[v&255]^q[J++],Q=T,p=O,v=w;y=y.W;T=q[40];y[0]=VX[Q>>>24]^T>>>24;y[1]=VX[p>>16&255]^T>>16&255;y[2]=VX[v>>8&255]^ T>>8&255;y[3]=VX[d&255]^T&255;T=q[41];y[4]=VX[p>>>24]^T>>>24;y[5]=VX[v>>16&255]^T>>16&255;y[6]=VX[d>>8&255]^T>>8&255;y[7]=VX[Q&255]^T&255;T=q[42];y[8]=VX[v>>>24]^T>>>24;y[9]=VX[d>>16&255]^T>>16&255;y[10]=VX[Q>>8&255]^T>>8&255;y[11]=VX[p&255]^T&255;T=q[43];y[12]=VX[d>>>24]^T>>>24;y[13]=VX[Q>>16&255]^T>>16&255;y[14]=VX[p>>8&255]^T>>8&255;y[15]=VX[v&255]^T&255}; bd=function(){if(!fo&&!g.iv){if(hV)return hV;var y;hV=(y=window.crypto)==null?void 0:y.subtle;var q,Q,p;if(((q=hV)==null?0:q.importKey)&&((Q=hV)==null?0:Q.sign)&&((p=hV)==null?0:p.encrypt))return hV;hV=void 0}}; g.xV=function(y){var q=bd();q&&(this.K=new $V(y,q));this.W=new g.Ko(y)}; $V=function(y,q){this.W=y;this.subtleCrypto=q}; Obs=function(y,q,Q){var p,v;return g.M(function(d){switch(d.K){case 1:if(y.K){d.ej(2);break}return g.R(d,y.subtleCrypto.importKey("raw",y.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:y.K=d.W;case 2:return p={name:"AES-CTR",counter:Q,length:128},g.R(d,y.subtleCrypto.encrypt(p,y.K,q),4);case 4:return v=d.W,d.return(new Uint8Array(v))}})}; g.Ko=function(y){this.W=y}; WB=function(y){this.J=new Uint8Array(64);this.N=new Uint8Array(64);this.Y=0;this.G=new Uint8Array(64);this.W=0;this.J.set(y);this.N.set(y);for(y=0;y<64;y++)this.J[y]^=92,this.N[y]^=54;this.reset()}; wab=function(y,q,Q){for(var p=y.X,v=y.K[0],d=y.K[1],T=y.K[2],O=y.K[3],w=y.K[4],J=y.K[5],F=y.K[6],Y=y.K[7],f,h,b,Z=0;Z<64;)Z<16?(p[Z]=b=q[Q]<<24|q[Q+1]<<16|q[Q+2]<<8|q[Q+3],Q+=4):(f=p[Z-2],h=p[Z-15],b=p[Z-7]+p[Z-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),p[Z]=b),f=Y+Z$[Z]+b+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&J^~w&F),h=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&d^v&T^d&T),Y=f+h,O+=f,Z++,Z<16?(p[Z]=b=q[Q]<<24|q[Q+1]<<16|q[Q+2]<<8|q[Q+3],Q+=4):(f= p[Z-2],h=p[Z-15],b=p[Z-7]+p[Z-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),p[Z]=b),f=F+Z$[Z]+b+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&w^~O&J),h=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&v^Y&d^v&d),F=f+h,T+=f,Z++,Z<16?(p[Z]=b=q[Q]<<24|q[Q+1]<<16|q[Q+2]<<8|q[Q+3],Q+=4):(f=p[Z-2],h=p[Z-15],b=p[Z-7]+p[Z-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),p[Z]=b),f=J+Z$[Z]+b+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&O^ ~T&w),h=((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+(F&Y^F&v^Y&v),J=f+h,d+=f,Z++,Z<16?(p[Z]=b=q[Q]<<24|q[Q+1]<<16|q[Q+2]<<8|q[Q+3],Q+=4):(f=p[Z-2],h=p[Z-15],b=p[Z-7]+p[Z-16]+((f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+((h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3),p[Z]=b),f=w+Z$[Z]+b+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&T^~d&O),h=((J>>>2|J<<30)^(J>>>13|J<<19)^(J>>>22|J<<10))+(J&F^J&Y^F&Y),b=Y,Y=O,O=b,b=F,F=T,T=b,b=J,J=d,d=b,w=v+f,v=f+h,Z++;y.K[0]=v+y.K[0]|0;y.K[1]=d+y.K[1]|0;y.K[2]=T+y.K[2]|0;y.K[3]= O+y.K[3]|0;y.K[4]=w+y.K[4]|0;y.K[5]=J+y.K[5]|0;y.K[6]=F+y.K[6]|0;y.K[7]=Y+y.K[7]|0}; Fzg=function(y){var q=new Uint8Array(32),Q=64-y.W;y.W>55&&(Q+=64);var p=new Uint8Array(Q);p[0]=128;for(var v=y.Y*8,d=1;d<9;d++){var T=v%256;p[Q-d]=T;v=(v-T)/256}y.update(p);for(Q=0;Q<8;Q++)q[Q*4]=y.K[Q]>>>24,q[Q*4+1]=y.K[Q]>>>16&255,q[Q*4+2]=y.K[Q]>>>8&255,q[Q*4+3]=y.K[Q]&255;Jzj(y);return q}; Jzj=function(y){y.K=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];y.X=[];y.X.length=64;y.Y=0;y.W=0}; Y4j=function(y){this.K=y}; fXD=function(y,q,Q){y=new WB(y.K);y.update(q);y.update(Q);q=Fzg(y);y.update(y.J);y.update(q);q=Fzg(y);y.reset();return q}; h$b=function(y){this.W=y}; bbp=function(y,q,Q,p){var v,d,T;return g.M(function(O){switch(O.K){case 1:if(y.K){O.ej(2);break}return g.R(O,p.importKey("raw",y.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:y.K=O.W;case 2:return v=new Uint8Array(q.length+Q.length),v.set(q),v.set(Q,q.length),d={name:"HMAC",hash:"SHA-256"},g.R(O,p.sign(d,y.K,v),4);case 4:return T=O.W,O.return(new Uint8Array(T))}})}; $BH=function(y,q,Q){y.N||(y.N=new Y4j(y.W));return fXD(y.N,q,Q)}; Kzj=function(y,q,Q){var p,v;return g.M(function(d){if(d.K==1){p=bd();if(!p)return d.return($BH(y,q,Q));g.EC(d,3);return g.R(d,bbp(y,q,Q,p),5)}if(d.K!=3)return d.return(d.W);v=g.Rj(d);g.zI(v);fo=!0;return d.return($BH(y,q,Q))})}; Wzf=function(y){for(var q="",Q=0;Q=0||N1(y,0,"gad_source",y.search(Sr))>=0}; S4j=function(){this.K=new Map}; R$j=function(y,q){var Q=lt().resolve(Hbb);if(Nwi(q)){var p=HG(q,"gclid");q={handleEvent:function(O){y&&!y.closed&&typeof y.postMessage==="function"&&O&&O.origin&&O.source===y&&O.data&&O.data.action==="gcl_setup"&&y.postMessage(Object.assign({},{action:"gcl_transfer"},p&&{gclid:p},{gadSource:2}),O.origin)}}; for(var v=g.t(Q.K),d=v.next();!d.done;d=v.next()){var T=g.t(d.value);d=T.next().value;T=T.next().value;if(d.closed)try{window.removeEventListener("message",T),Q.K.delete(d)}catch(O){g.l$(O)}}y&&Q.K.size<15&&(Q.K.set(y,q),window.addEventListener("message",q))}}; tV=function(y,q,Q){if(!q)return y.length>=1?y[y.length-1]:null;for(var p=g.t(y),v=p.next();!v.done;v=p.next())if(v=v.value,v.width&&v.height&&(Q&&v.width>=q||!Q&&v.height>=q))return v;for(q=y.length-1;q>=0;q--)if(Q&&y[q].width||!Q&&y[q].height)return y[q];return y[0]}; Er=function(){this.state=1;this.K6=null;this.Vf=void 0}; M$p=function(y,q,Q,p,v,d){var T=T===void 0?"trayride":T;Q?(y.hU(2),g.ww(g.HA(Q),function(){if(window[T])s$D(y,p,T,v);else{y.hU(3);var O=LJ2(Q),w=document.getElementById(O);w&&(E23(O),w.parentNode.removeChild(w));g.zI(new g.GH("BL:ULB",""+Q))}},d)):q?(d=g.bn("SCRIPT"),q instanceof xZ?(d.textContent=WQ(q),Zd(d)):d.textContent=q,d.nonce=KI(document),document.head.appendChild(d),document.head.removeChild(d),window[T]?s$D(y,p,T,v):(y.hU(4),g.zI(new g.GH("BL:ULBJ")))):g.zI(new g.GH("BL:ULV"))}; s$D=function(y,q,Q,p){y.hU(5);var v=!!y.Vf&&lXg.includes(g.$b(y.Vf)||"");try{var d=new KG({program:q,globalName:Q,Bk:{disable:!g.kQ("att_web_record_metrics")||!g.kQ("att_skip_metrics_for_cookieless_domains_ks")&&v,qp:"aGIf"}});d.Lz.then(function(){y.hU(6);p&&p(q)}); y.HF(d)}catch(T){y.hU(7),T instanceof Error&&g.zI(T)}}; kV=function(){var y=g.qw("yt.abuse.playerAttLoader");return y&&["bgvma","bgvmb","bgvmc"].every(function(q){return q in y})?y:null}; Lo=function(){Er.apply(this,arguments)}; ab=function(){}; z$b=function(y,q,Q){for(var p=!1,v=g.t(y.FT.entries()),d=v.next();!d.done;d=v.next())d=g.t(d.value).next().value,d.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d.bB==="core"&&(p=!0);if(p){a:if(!Q){y=g.t(y.FT.entries());for(Q=y.next();!Q.done;Q=y.next())if(p=g.t(Q.value),Q=p.next().value,p=p.next().value,Q.slotType==="SLOT_TYPE_IN_PLAYER"&&Q.bB==="core"){Q=p.layoutId;break a}Q=void 0}Q?q.mW(Q):hx("No triggering layout ID available when attempting to mute.")}}; Np=function(y,q){this.QI=y;this.Bp=q}; SR=function(){}; HB=function(){}; usb=function(y){g.I.call(this);var q=this;this.nt=y;this.K=new Map;Rb(this,"commandExecutorCommand",function(Q,p,v){DB9(q,Q.commands,p,v)}); Rb(this,"clickTrackingParams",function(){})}; IXs=function(y,q){Rb(y,q.R1(),function(Q,p,v){q.EF(Q,p,v)})}; Rb=function(y,q,Q){y.iB();y.K.get(q)&&g.l$(Error("Extension name "+q+" already registered"));y.K.set(q,Q)}; DB9=function(y,q,Q,p){q=q===void 0?[]:q;y.iB();var v=[],d=[];q=g.t(q);for(var T=q.next();!T.done;T=q.next())T=T.value,g.U(T,niS)||g.U(T,giS)?v.push(T):d.push(T);v=g.t(v);for(q=v.next();!q.done;q=v.next())sr(y,q.value,Q,p);d=g.t(d);for(v=d.next();!v.done;v=d.next())sr(y,v.value,Q,p)}; sr=function(y,q,Q,p){y.iB();q.loggingUrls&&cz8(y,"loggingUrls",q.loggingUrls,Q,p);q=g.t(Object.entries(q));for(var v=q.next();!v.done;v=q.next()){var d=g.t(v.value);v=d.next().value;d=d.next().value;v==="openPopupAction"?y.nt.get().EL("innertubeCommand",{openPopupAction:d}):v==="confirmDialogEndpoint"?y.nt.get().EL("innertubeCommand",{confirmDialogEndpoint:d}):UBf.hasOwnProperty(v)||cz8(y,v,d,Q,p)}}; cz8=function(y,q,Q,p,v){if((y=y.K.get(q))&&typeof y==="function")try{y(Q,p,v)}catch(d){g.l$(d)}else q=new g.GH("Unhandled field",q),g.zI(q)}; Mp=function(y,q,Q){this.Mm=y;this.K=q;this.Us=Q;Ha(lt(),{oX:Hbb,Uq:S4j})}; ld=function(y){this.value=y}; z2=function(y){this.value=y}; D$=function(y){this.value=y}; ud=function(y){this.value=y}; Ib=function(y){this.value=y}; no=function(y){this.value=y}; gH=function(y){this.value=y}; cB=function(){ld.apply(this,arguments)}; Ur=function(y){this.value=y}; rH=function(y){this.value=y}; ob=function(y){this.value=y}; AV=function(y){this.value=y}; eR=function(y){this.value=y}; BB=function(y){this.value=y}; G2=function(y){this.value=y}; PB=function(y){this.value=y}; id=function(y){this.value=y}; Xe=function(y){this.value=y}; m$=function(){ld.apply(this,arguments)}; Co=function(y){this.value=y}; yV=function(y){this.value=y}; qc=function(y){this.value=y}; j0=function(y){this.value=y}; QV=function(y){this.value=y}; pg=function(y){this.value=y}; vZ=function(y){this.value=y}; d3=function(y){this.value=y}; TA=function(y){this.value=y}; VV=function(y){this.value=y}; OX=function(y){this.value=y}; w3=function(y){this.value=y}; JN=function(y){this.value=y}; Fp=function(y){this.value=y}; YN=function(y){this.value=y}; fg=function(y){this.value=y}; hN=function(y){this.value=y}; by=function(y){this.value=y}; $N=function(y){this.value=y}; Kg=function(y){this.value=y}; xN=function(y){this.value=y}; WZ=function(y){this.value=y}; ZL=function(y){this.value=y}; tN=function(y){this.value=y}; EX=function(y){this.value=y}; kN=function(y){this.value=y}; Lg=function(y){this.value=y}; aG=function(y){this.value=y}; Nc=function(y){this.value=y}; S0=function(y){this.value=y}; HZ=function(y){this.value=y}; RG=function(y){this.value=y}; sX=function(y){this.value=y}; Mc=function(y){this.value=y}; ly=function(y){this.value=y}; zA=function(y){this.value=y}; DL=function(y){this.value=y}; uy=function(y){this.value=y}; IG=function(y){this.value=y}; ng=function(y){this.value=y}; g3=function(){ld.apply(this,arguments)}; cZ=function(y){this.value=y}; UX=function(){ld.apply(this,arguments)}; r3=function(){ld.apply(this,arguments)}; oG=function(){ld.apply(this,arguments)}; AN=function(){ld.apply(this,arguments)}; e0=function(){ld.apply(this,arguments)}; BZ=function(y){this.value=y}; GA=function(y){this.value=y}; PZ=function(y){this.value=y}; iy=function(y){this.value=y}; Xp=function(y){this.value=y}; Cg=function(y,q,Q){if(Q&&!Q.includes(y.layoutType))return!1;q=g.t(q);for(Q=q.next();!Q.done;Q=q.next())if(!mo(y.clientMetadata,Q.value))return!1;return!0}; ye=function(){return""}; rzC=function(y,q){switch(y){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 q(y),8}}; qI=function(y,q,Q,p){p=p===void 0?!1:p;$q.call(this,y);this.MJ=Q;this.zJ=p;this.args=[];q&&this.args.push(q)}; P=function(y,q,Q,p){p=p===void 0?!1:p;$q.call(this,y);this.MJ=Q;this.zJ=p;this.args=[];q&&this.args.push(q)}; jb=function(y){var q=new Map;y.forEach(function(Q){q.set(Q.K(),Q)}); this.K=q}; mo=function(y,q){return y.K.has(q)}; Qe=function(y,q){y=y.K.get(q);if(y!==void 0)return y.get()}; pz=function(y){return Array.from(y.K.keys())}; vl=function(y,q,Q){if(Q&&Q!==y.slotType)return!1;q=g.t(q);for(Q=q.next();!Q.done;Q=q.next())if(!mo(y.clientMetadata,Q.value))return!1;return!0}; Azb=function(y){var q;return((q=oi8.get(y))==null?void 0:q.a_)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Tm=function(y,q){var Q={type:q.slotType,controlFlowManagerLayer:e$8.get(q.bB)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q.slotEntryTrigger&&(Q.entryTriggerType=q.slotEntryTrigger.triggerType);q.slotPhysicalPosition!==1&&(Q.slotPhysicalPosition=q.slotPhysicalPosition);if(y){Q.debugData={slotId:q.slotId};if(y=q.slotEntryTrigger)Q.debugData.slotEntryTriggerData=dm(y);y=q.slotFulfillmentTriggers;Q.debugData.fulfillmentTriggerData=[];y=g.t(y);for(var p=y.next();!p.done;p=y.next())Q.debugData.fulfillmentTriggerData.push(dm(p.value)); q=q.slotExpirationTriggers;Q.debugData.expirationTriggerData=[];q=g.t(q);for(y=q.next();!y.done;y=q.next())Q.debugData.expirationTriggerData.push(dm(y.value))}return Q}; Bwj=function(y,q){var Q={type:q.layoutType,controlFlowManagerLayer:e$8.get(q.bB)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};y&&(Q.debugData={layoutId:q.layoutId});return Q}; dm=function(y,q){var Q={type:y.triggerType};q!=null&&(Q.category=q);y.triggeringSlotId!=null&&(Q.triggerSourceData||(Q.triggerSourceData={}),Q.triggerSourceData.associatedSlotId=y.triggeringSlotId);y.triggeringLayoutId!=null&&(Q.triggerSourceData||(Q.triggerSourceData={}),Q.triggerSourceData.associatedLayoutId=y.triggeringLayoutId);return Q}; G_g=function(y,q,Q,p){q={opportunityType:q};y&&(p||Q)&&(p=g.W5(p||[],function(v){return Tm(y,v)}),q.debugData=Object.assign({},Q&&Q.length>0?{associatedSlotId:Q}:{},p.length>0?{slots:p}:{})); return q}; OH=function(y,q){return function(Q){return Ptb(Ve(y),q.slotId,q.slotType,q.slotPhysicalPosition,q.bB,q.slotEntryTrigger,q.slotFulfillmentTriggers,q.slotExpirationTriggers,Q.layoutId,Q.layoutType,Q.bB)}}; Ptb=function(y,q,Q,p,v,d,T,O,w,J,F){return{adClientDataEntry:{slotData:Tm(y,{slotId:q,slotType:Q,slotPhysicalPosition:p,bB:v,slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:O,clientMetadata:new jb([])}),layoutData:Bwj(y,{layoutId:w,layoutType:J,bB:F,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],WB:new Map,clientMetadata:new jb([]),L3:{}})}}}; Jc=function(y){this.Yf=y;y=Math.random();var q=this.Yf.get();q=g.wm(q.U.T().experiments,"html5_debug_data_log_probability");q=Number.isFinite(q)&&q>=0&&q<=1?q:0;this.K=y1){g.zI(new g.GH("Exit already started",{current:y.currentState}));var Q=!1}else Q=!0;if(!Q)return!1;y.currentState=2;y.K=q;return!0}; fN=function(y){if(y.currentState!==2)return!1;y.currentState=3;return!0}; Lj3=function(y,q){var Q=new Map;y=g.t(y);for(var p=y.next();!p.done;p=y.next()){p=p.value;if(p.layoutType==="LAYOUT_TYPE_MEDIA")var v="v";else p.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(v=Qe(p.clientMetadata,"metadata_type_linked_in_player_layout_type"),v=v==="LAYOUT_TYPE_ENDCAP"||v==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":v==="LAYOUT_TYPE_SURVEY"?"s":v==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):v="u";Q.set(p.layoutId,v);if(v==="u"){var d={};v=q;p=(d.c=p.layoutId,d);v.U.Rb("uct",p)}}y= q.a5();h7={contentCpn:y,tD:Q};p={};Q=(p.ct=Q.size,p.c=y,p);q.U.Rb("acc",Q)}; aIp=function(){h7={contentCpn:"",tD:new Map}}; bN=function(y){var q;return(q=h7.tD.get(y))!=null?q:"u"}; $p=function(y,q,Q){y.U.Rb(q,Q);Naf(y)}; SP2=function(y){var q=y.layoutId,Q=y.LO;if(y.pm){var p={};$p(y.Mm,"slso",(p.ec=q,p.is=Q,p.ctp=bN(q),p))}}; KN=function(y){var q=y.layoutId,Q=y.LO;if(y.pm){var p={};$p(y.Mm,"slse",(p.ec=q,p.is=Q,p.ctp=bN(q),p))}}; H1j=function(y){var q=y.layoutId,Q=y.LO,p=y.Mm;y.pm&&(y={},$p(p,"sleo",(y.xc=q,y.is=Q,y.ctp=bN(q),y)),Naf(p))}; RRg=function(y){var q=y.cpn,Q=y.Mm;y=y.LO;var p=Q.a5(),v={};$p(Q,"ce",(v.ec=q,v.ia=q!==p,v.r=h7.tD.has(q),v.is=y,v.ctp=bN(q),v))}; Naf=function(y){if(y.a5()!==h7.contentCpn){var q={};q=(q.c=h7.contentCpn,q);y.U.Rb("ccm",q)}}; syg=function(y){var q=y.cpn,Q=y.Mm;y=y.LO;var p=Q.a5(),v={};$p(Q,"cx",(v.xc=q,v.ia=q!==p,v.r=h7.tD.has(q),v.is=y,v.ctp=bN(q),v))}; MA2=function(y){this.params=y;this.K=new Set}; lIf=function(y,q,Q){if(!y.K.has(q)){y.K.add(q);var p={};y.params.C1.MU(q,Object.assign({},Q,(p.p_ac=y.params.adCpn,p.p_isv=y.params.aw3&&y.params.V5,p)))}}; Ws=function(y,q,Q){if(xp(y.params.C1.Yf.get(),!0)){var p=Q.flush,v={};lIf(y,q,(v.cts=Q.currentTimeSec,v.f=p,v))}}; zRD=function(y,q){this.Mm=y;this.Yf=q}; Zr=function(y){var q=[];if(y){y=g.t(Object.entries(y));for(var Q=y.next();!Q.done;Q=y.next()){var p=g.t(Q.value);Q=p.next().value;p=p.next().value;p!==void 0&&(p=typeof p==="boolean"?""+ +p:(""+p).replace(/[:,=]/g,"_"),q.push(Q+"."+p))}}return q.join(";")}; g.t7=function(y,q,Q){q=q===void 0?{}:q;this.errorCode=y;this.details=q;this.severity=Q===void 0?0:Q}; EU=function(y){return y===1||y===2}; kp=function(y,q){q=q===void 0?0:q;if(y instanceof g.t7)return y;y=y&&y instanceof Error?y:Error(""+y);EU(q)?g.l$(y):g.zI(y);return new g.t7(q===1?"player.fatalexception":"player.exception",{name:""+y.name,message:""+y.message},q)}; DPs=function(y,q){function Q(){var p=g.nS.apply(0,arguments);y.removeEventListener("playing",Q);q.apply(null,g.hH(p))} y.addEventListener("playing",Q)}; LN=function(){var y=g.qw("yt.player.utils.videoElement_");y||(y=g.bn("VIDEO"),g.y_("yt.player.utils.videoElement_",y));return y}; aZ=function(y){var q=LN();return!!(q&&q.canPlayType&&q.canPlayType(y))}; S6=function(y){if(/opus/.test(y)&&g.NL&&!R4("38")&&!g.PF())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(y);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(y);if(/webm/.test(y)&&!E9f())return!1;y==='audio/mp4; codecs="mp4a.40.2"'&&(y='video/mp4; codecs="avc1.4d401f"');return!!aZ(y)}; u1g=function(y){try{var q=S6('video/mp4; codecs="avc1.42001E"')||S6('video/webm; codecs="vp9"');return(S6('audio/mp4; codecs="mp4a.40.2"')||S6('audio/webm; codecs="opus"'))&&(q||!y)||aZ('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(Q){return"html5.missingapi"}}; Hs=function(){var y=LN();return!(!y.webkitSupportsPresentationMode||typeof y.webkitSetPresentationMode!=="function")}; RZ=function(){var y=LN();try{var q=y.muted;y.muted=!q;return y.muted!==q}catch(Q){}return!1}; IIf=function(){var y;return((y=navigator.connection)==null?void 0:y.type)||""}; g.sU=function(){sM.apply(this,arguments)}; ML=function(y,q,Q,p,v,d,T,O){this.sampleRate=y===void 0?0:y;this.numChannels=q===void 0?0:q;this.spatialAudioType=Q===void 0?"SPATIAL_AUDIO_TYPE_NONE":Q;this.K=p===void 0?!1:p;this.N=v;this.Y=d;this.audioQuality=T===void 0?"AUDIO_QUALITY_UNKNOWN":T;this.W=O===void 0?!1:O}; cJp=function(y,q){qp(y,2,q.Cq,lN,3);qp(y,3,q.innertubeRequest,neb,3);Cr(y,4,q.onesieUstreamerConfig);Cr(y,9,q.fm);qp(y,10,q.kD,zw,3);qp(y,15,q.reloadPlaybackParams,ge9,3)}; rJf=function(y,q){qp(y,1,q.formatId,Dr,3);cJ(y,2,q.startTimeMs);cJ(y,3,q.durationMs);cJ(y,4,q.Yx);cJ(y,5,q.ao);qp(y,9,q.z$3,UPp,3);qp(y,11,q.xu$,uN,1);qp(y,12,q.pw,uN,1)}; oeS=function(y,q){yX(y,1,q.videoId);cJ(y,2,q.lmt)}; UPp=function(y,q){if(q.s_)for(var Q=0;Q>31));cJ(y,16,q.yKb);cJ(y,17,q.detailedNetworkType);cJ(y,18,q.Fg);cJ(y,19,q.MV);cJ(y,21,q.nWf);cJ(y,23,q.DF);cJ(y,28,q.Hg);cJ(y,29,q.aeV);cJ(y,34,q.visibility);Q=q.playbackRate;if(Q!==void 0){var p=new ArrayBuffer(4);(new Float32Array(p))[0]=Q;Q=(new Uint32Array(p))[0];if(Q!==void 0)for(gT(y,285),nr(y,4),p=0;p<4;)y.view.setUint8(y.pos,Q&255),Q>>=8,y.pos+=1,p+=1}cJ(y,36,q.Hc); qp(y,38,q.mediaCapabilities,P7C,3);cJ(y,39,q.mKK);cJ(y,40,q.Nj);cJ(y,44,q.playerState);mw(y,46,q.bZ);cJ(y,48,q.cL);cJ(y,50,q.dL);cJ(y,51,q.SV);cJ(y,54,q.uS);if(q.hv)for(Q=0;Q>31));yX(y,2,q.message)}; ptD=function(y,q){cJ(y,1,q.clientState);qp(y,2,q.ygs,jm9,1)}; qs3=function(y,q){Cr(y,1,q.slf);qp(y,2,q.r1p,Qm2,3);qp(y,3,q.coldStartInfo,ptD,3)}; yx9=function(y,q){cJ(y,1,q.type);Cr(y,2,q.value)}; C72=function(y,q){yX(y,1,q.hl);yX(y,12,q.deviceMake);yX(y,13,q.deviceModel);cJ(y,16,q.clientName);yX(y,17,q.clientVersion);yX(y,18,q.osName);yX(y,19,q.osVersion)}; vz8=function(y,q){yX(y,1,q.name);yX(y,2,q.value)}; nN=function(y,q){yX(y,1,q.url);if(q.Uz)for(var Q=0;Q55?"60":q>49?"50":q>39?"48":"")));this.qualityLabel=y;this.K=w||"";this.primaries=J||""}; oZ=function(y,q){var Q=Math.max(y,q);y=Math.min(y,q);q=Bs[0];for(var p=0;p=Math.floor(d*16/9)*1.3||y>=d*1.3)return q;q=v}return"tiny"}; iN=function(y,q,Q){Q=Q===void 0?{}:Q;this.id=y;this.mimeType=q;Q.jj>0||(Q.jj=16E3);Object.assign(this,Q);y=g.t(this.id.split(";"));this.itag=y.next().value;this.K=y.next().value;this.containerType=Gw(q);this.nK=Ps[this.itag]||""}; Xm=function(y){return y.nK==="9"||y.nK==="("||y.nK==="9h"||y.nK==="(h"}; IB9=function(y){return y.nK==="H"||y.nK==="h"}; mI=function(y){return y.nK==="9h"||y.nK==="(h"}; nzf=function(y){return!!y.Uy&&!!y.Uy.fairplay&&(y.nK==="("||y.nK==="(h"||y.nK==="A"||y.nK==="MEAC3")||CN&&!!y.Uy&&y.nK==="1e"}; yR=function(y){return y.nK==="1"||y.nK==="1h"||CN&&y.nK==="1e"}; q6=function(y){return y.nK==="mac3"||y.nK==="meac3"||y.nK==="m"||y.nK==="i"}; j2=function(y){return y.nK==="MAC3"||y.nK==="MEAC3"||y.nK==="M"||y.nK==="I"}; g.QR=function(y){return y.containerType===1}; gz2=function(y){return y.nK==="("||y.nK==="(h"||y.nK==="H"||CN&&y.nK==="1e"}; pj=function(y){return y.mimeType==="application/x-mpegURL"}; g.vb=function(y,q){return{itag:+y.itag,lmt:q?0:y.lastModified,xtags:y.K||""}}; cx2=function(y){var q=navigator.mediaCapabilities;if(q==null||!q.decodingInfo||y.nK==="f")return Promise.resolve();var Q={type:y.audio&&y.video?"file":"media-source"};y.video&&(Q.video={contentType:y.mimeType,width:y.video.width||640,height:y.video.height||360,bitrate:y.jj*8||1E6,framerate:y.video.fps||30});y.audio&&(Q.audio={contentType:y.mimeType,channels:""+(y.audio.numChannels||2),bitrate:y.jj*8||128E3,samplerate:y.audio.sampleRate||44100});return q.decodingInfo(Q).then(function(p){y.W=p})}; T$=function(y){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(y)}; VR=function(y){return/(vp9|vp09|vp8|avc1|av01)/.test(y)}; OA=function(y){return y.includes("vtt")||y.includes("text/mp4")}; Gw=function(y){return y.indexOf("/mp4")>=0?1:y.indexOf("/webm")>=0?2:y.indexOf("/x-flv")>=0?3:y.indexOf("/vtt")>=0?4:0}; wQ=function(y,q,Q,p,v,d,T){var O=new ML;q in g.A7||(q="small");q==="light"&&(q="tiny");p&&v?(v=Number(v),p=Number(p)):(v=g.A7[q],p=Math.round(v*16/9));d=new e6(p,v,0,null,void 0,q,d,T);y=unescape(y.replace(/"/g,'"'));return new iN(Q,y,{audio:O,video:d})}; JX=function(y,q){return{start:function(Q){return y[Q]}, end:function(Q){return q[Q]}, length:y.length}}; UGj=function(y,q,Q){for(var p=[],v=[],d=0;d=q)return Q}catch(p){}return-1}; fj=function(y,q){return YA(y,q)>=0}; rxD=function(y,q){if(!y)return NaN;q=YA(y,q);return q>=0?y.start(q):NaN}; hX=function(y,q){if(!y)return NaN;q=YA(y,q);return q>=0?y.end(q):NaN}; bS=function(y){return y&&y.length?y.end(y.length-1):NaN}; $A=function(y){return bS(y)>0}; Kj=function(y,q){y=hX(y,q);return y>=0?y-q:0}; xA=function(y,q,Q){for(var p=[],v=[],d=0;dQ||(p.push(Math.max(q,y.start(d))-q),v.push(Math.min(Q,y.end(d))-q));return JX(p,v)}; Wb=function(y,q,Q,p){g.V6.call(this);var v=this;this.N4=y;this.start=q;this.end=Q;this.isActive=p;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.lI={error:function(){!v.iB()&&v.isActive&&v.publish("error",v)}, updateend:function(){!v.iB()&&v.isActive&&v.publish("updateend",v)}}; this.N4.b7(this.lI);this.Sc=this.isActive}; tX=function(y,q,Q,p,v,d){g.V6.call(this);var T=this;this.xs=y;this.GW=q;this.id=Q;this.containerType=p;this.nK=v;this.V5=d;this.Oz=this.iQ=this.Wt=null;this.Te=!1;this.appendWindowStart=this.timestampOffset=0;this.IQ=JX([],[]);this.hD=!1;this.E0=[];this.yR=ZU?[]:void 0;this.handler=function(w){return T.publish(w.type,T)}; var O;if((O=this.xs)==null?0:O.addEventListener)this.xs.addEventListener("updateend",this.handler),this.xs.addEventListener("error",this.handler)}; EA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; kA=function(y,q){this.uj=y;this.K=q===void 0?!1:q;this.W=!1}; Lj=function(y,q,Q){Q=Q===void 0?!1:Q;g.I.call(this);this.mediaElement=y;this.Zw=q;this.isView=Q;this.G=0;this.Y=!1;this.J=!0;this.j=0;this.callback=null;this.C=!1;this.Zw||(this.GW=this.mediaElement.aH());this.events=new g.sU(this);g.n(this,this.events);this.N=new kA(this.Zw?window.URL.createObjectURL(this.Zw):this.GW.webkitMediaSourceURL,!0);y=this.Zw||this.GW;Mx(this.events,y,["sourceopen","webkitsourceopen"],this.AjK);Mx(this.events,y,["sourceclose","webkitsourceclose"],this.TaB);this.X={updateend:this.Jo}}; oz2=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Ax3=function(y,q){aJ(y)?g.MN(function(){q(y)}):y.callback=q}; emb=function(y,q,Q){if(N6){var p;S2(y.mediaElement,{l:"mswssb",sr:(p=y.mediaElement.WI)==null?void 0:p.VF()},!1);q.b7(y.X,y);Q.b7(y.X,y)}y.K=q;y.W=Q;g.n(y,q);g.n(y,Q)}; Hb=function(y){return!!y.K||!!y.W}; aJ=function(y){try{return RJ(y)==="open"}catch(q){return!1}}; RJ=function(y){if(y.Zw)return y.Zw.readyState;switch(y.GW.webkitSourceState){case y.GW.SOURCE_OPEN:return"open";case y.GW.SOURCE_ENDED:return"ended";default:return"closed"}}; sA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; BSs=function(y,q,Q,p){if(!y.K||!y.W)return null;var v=y.K.isView()?y.K.N4:y.K,d=y.W.isView()?y.W.N4:y.W,T=new Lj(y.mediaElement,y.Zw,!0);T.N=y.N;emb(T,new Wb(v,q,Q,p),new Wb(d,q,Q,p));aJ(y)||y.K.Ds(y.K.bj());return T}; G59=function(y){var q;(q=y.K)==null||q.F7();var Q;(Q=y.W)==null||Q.F7();y.J=!1}; M6=function(){var y=this;this.jo=this.K2=x9i;this.promise=new g.zD(function(q,Q){y.K2=q;y.jo=Q})}; lS=function(){g.I.call(this);this.g4=!1;this.uj=null;this.C=this.X=!1;this.Y=new g.Ky;this.G=this.WI=null;g.n(this,this.Y)}; z$=function(y){y=y.D$();return y.length<1?NaN:y.end(y.length-1)}; PKD=function(y){!y.W&&oz2()&&(y.N?y.N.then(function(){return PKD(y)}):y.aW()||(y.W=y.MX()))}; isp=function(y){y.W&&(y.W.dispose(),y.W=void 0)}; S2=function(y,q,Q){var p;((p=y.WI)==null?0:p.U9())&&y.WI.Rb("rms",q,Q===void 0?!1:Q)}; Xt3=function(y,q,Q){y.isPaused()||y.getCurrentTime()>q||Q>10||(y.play(),g.xQ(function(){Xt3(y,y.getCurrentTime(),Q+1)},500))}; mGp=function(y,q){y.uj&&y.uj.equals(q)||(y.uj&&y.uj.dispose(),y.uj=q)}; DU=function(y){return Kj(y.Cn(),y.getCurrentTime())}; CK3=function(y,q){if(y.j0()===0||y.hasError())return!1;var Q=y.getCurrentTime()>0;return q>=0&&(y=y.D$(),y.length||!Q)?fj(y,q):Q}; uS=function(y){y.aW()&&(y.WI&&y.WI.dI("rs_s"),P9&&y.getCurrentTime()>0&&y.seekTo(0),y.ix(),y.load(),mGp(y,null));delete y.N}; IJ=function(y){switch(y.H3()){case 2:return"progressive.net.retryexhausted";case 3:return y=y.uF(),(y==null?0:y.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||ydf&&(y==null?0:y.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.nj=function(y,q,Q){this.kJ=q===void 0?null:q;this.seekSource=Q===void 0?null:Q;this.state=y||64}; gQ=function(y,q,Q){Q=Q===void 0?!1:Q;return qRg(y,q.getCurrentTime(),(0,g.SK)(),DU(q),Q)}; cb=function(y,q,Q,p){if(!(q===y.state&&Q===y.kJ&&p===y.seekSource||q!==void 0&&(q&128&&!Q||q&2&&q&16))){var v;if(v=q)v=q||y.state,v=!!(v&16||v&32);y=new g.nj(q,Q,v?p?p:y.seekSource:null)}return y}; UA=function(y,q,Q){return cb(y,y.state|q,null,Q===void 0?null:Q)}; rQ=function(y,q){return cb(y,y.state&~q,null,null)}; oJ=function(y,q,Q,p){return cb(y,(y.state|q)&~Q,null,p===void 0?null:p)}; g.G=function(y,q){return!!(y.state&q)}; g.AX=function(y,q){return q.state===y.state&&q.kJ===y.kJ}; e2=function(y){return y.isPlaying()&&!g.G(y,16)&&!g.G(y,32)}; Bb=function(y){return g.G(y,128)?-1:g.G(y,2)?0:g.G(y,2048)?3:g.G(y,64)?-1:g.G(y,1)&&!g.G(y,32)?3:g.G(y,8)?1:g.G(y,4)?2:-1}; Pb=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z,k){g.I.call(this);var S=this;this.It=y;this.slot=q;this.layout=Q;this.Us=p;this.FL=v;this.Gy=d;this.JK=T;this.y$=O;this.vB=w;this.LL=J;this.position=Y;this.G=f;this.Yf=h;this.lk=b;this.oM=Z;this.context=k;this.Ou=!0;this.J=!1;this.C3="not_rendering";this.W=!1;this.N=new Fm;y=Qe(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.zy=new ET(Q.WB,this.Us,y,Q.layoutId);var N;y=((N=G$(this))==null?void 0:N.progressCommands)||[];this.Y=new jyf(w, y,Q.layoutId,function(){return S.HE()}); this.K=new MA2({adCpn:this.layout.layoutId,C1:k.C1,aw3:this.lk,V5:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; iS=function(y){return{layoutId:y.zz(),LO:y.lk,Mm:y.Gy.get(),pm:y.L6()}}; X7=function(y,q){return q.layoutId!==y.layout.layoutId?(y.It.Nm(y.slot,q,new qI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+y.layout.layoutId+("and LayoutType: "+y.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; m8=function(y){y.C3="rendering_start_requested";y.LL(-1)}; G$=function(y){return Qe(y.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; j08=function(y){hx("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)}; Q0b=function(y){var q;return((q=Cj(y.Gy.get(),2))==null?void 0:q.clientPlaybackNonce)||""}; yD=function(y,q){switch(q){case "normal":y.z8("complete");break;case "skipped":y.z8("skip");break;case "abandoned":H1(y.zy,"impression")&&y.z8("abandon")}}; qD=function(y,q){y.J||(q=new g.bK(q.state,new g.nj),y.J=!0);return q}; jX=function(y,q){VC(q)?y.LL(1):g.Ks(q,4)&&!g.Ks(q,2)&&y.Q9();$z(q,4)<0&&!($z(q,2)<0)&&y.Ub()}; pDi=function(y){y.position===0&&(y.y$.get(),y=Qe(y.layout.clientMetadata,"metadata_type_ad_placement_config").kind,y={adBreakType:QD(y)},zn("ad_bl"),g.D_(y))}; pB=function(y,q){NV(y.zy,q,!y.W)}; dof=function(y){var q;return(((q=G$(y))==null?void 0:q.progressCommands)||[]).findIndex(function(Q){return!!g.U(Q==null?void 0:Q.command,vRC)})!==-1}; vS=function(y,q){var Q=Qe(y.clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(hx("Expected SSAP eligibility in PlayerBytes factory",y),!1):q.L6(Q)}; dL=function(y,q){if(!eb(q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(y){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return hx("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return hx("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:y}),3;default:YZ(y,"unknown layoutExitReason")}}; TYH=function(y){hx("getExitReason: unexpected reason",void 0,void 0,{reason:y})}; Th=function(y,q){if(eb(q.get(),"html5_ssap_pass_transition_reason"))switch(y){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return TYH(y),"abandoned";case 3:case 1:return TYH(y),"error";default:YZ(y,"unexpected transition reason")}else switch(y){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return hx("getExitReason: unexpected reason",void 0,void 0,{reason:y}),"error";default:YZ(y,"unexpected transition reason")}}; g.VD=function(y,q,Q){I0(y,Q)||gY(y,q,Q);I0(y,"video_to_ad")||gY(y,q,"video_to_ad");I0(y,"ad_to_video")||gY(y,q,"ad_to_video");I0(y,"ad_to_ad")||gY(y,q,"ad_to_ad")}; OK=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z,k,S){Pb.call(this,y,q,Q,p,v,d,T,O,J,F,Y,f,h,b,Z,k,S);var N=this;this.nt=w;this.zx=Y;this.L0=!0;this.Kp=this.aE=0;this.dB=Il(function(){SP2(iS(N));N.It.lj(N.slot,N.layout)}); this.TR=Il(function(){H1j(iS(N));N.C3!=="rendering_stop_requested"&&N.zx(N);N.layoutExitReason?N.It.Su(N.slot,N.layout,N.layoutExitReason):j08(N)}); this.timer=new g.Un(200);this.timer.listen("tick",function(){N.xj()}); g.n(this,this.timer)}; J$=function(y){y.Kp=Date.now();wL(y,y.aE);y.timer.start()}; VfH=function(y){y.aE=y.HE();y.Jm(y.aE/1E3,!0);wL(y,y.aE)}; wL=function(y,q){q={current:q/1E3,duration:y.HE()/1E3};y.nt.get().EL("onAdPlaybackProgress",q)}; FP=function(y){OK.call(this,y.It,y.slot,y.G3,y.Us,y.FL,y.Gy,y.JK,y.y$,y.nt,y.vB,y.LL,y.zx,y.Z4,y.jQ,y.Yf,y.lk,y.oM,y.context)}; YI=function(y){OK.call(this,y.It,y.slot,y.G3,y.Us,y.FL,y.Gy,y.JK,y.y$,y.nt,y.vB,y.LL,y.zx,y.Z4,y.jQ,y.Yf,y.lk,y.oM,y.context)}; fB=function(){YI.apply(this,arguments)}; Op9=function(y){return vS(y.slot,y.Yf.get())?new fB(y):new FP(y)}; $I=function(y){Pb.call(this,y.callback,y.slot,y.G3,y.Us,y.FL,y.Gy,y.JK,y.y$,y.vB,y.LL,y.zx,y.Z4,y.jQ,y.Yf,y.lk,y.oM,y.context);var q=this;this.adCpn="";this.VS=this.Qj=0;this.dB=Il(function(){SP2(iS(q));q.It.lj(q.slot,q.layout)}); this.TR=Il(function(){H1j(iS(q));q.C3!=="rendering_stop_requested"&&q.zx(q);q.layoutExitReason?q.It.Su(q.slot,q.layout,q.layoutExitReason):j08(q)}); this.C6=y.C6;this.ut=y.ut;this.a7=y.a7;this.nt=y.nt;this.kW=y.kW;this.zx=y.zx;if(!this.L6()){eb(this.Yf.get(),"html5_disable_media_load_timeout")||(this.f0=new g.y0(function(){q.eO("load_timeout",new qI("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); y=h$(this.Yf.get());var Q=b2(this.Yf.get());y&&Q&&(this.bX=new g.y0(function(){var p=Qe(q.layout.clientMetadata,"metadata_type_preload_player_vars");p&&q.ut.get().U.preloadVideoByPlayerVars(p,2,300)}))}}; Jdf=function(y,q){var Q=Qe(q.clientMetadata,"metadata_type_ad_video_id"),p=Qe(q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");Q&&p&&y.kW.get().U.T().vI.add(Q,{kp:p});(q=Qe(q.clientMetadata,"metadata_type_sodar_extension_data"))&&fhp(y.C6.get(),q);wD9(y.JK.get(),!1)}; Fr2=function(y){wD9(y.JK.get(),!0);var q;((q=y.shrunkenPlayerBytesConfig)==null?0:q.shouldRequestShrunkenPlayerBytes)&&y.JK.get().g8(!1)}; YRC=function(y){return new KB(y)}; xI=function(){$I.apply(this,arguments)}; KB=function(){xI.apply(this,arguments)}; f_8=function(y){return Op9(Object.assign({},y,{It:y.callback,LL:function(){}}))}; h9D=function(y){return new $I(Object.assign({},y,{LL:function(q){y.nt.get().EL("onAdIntroStateChange",q)}}))}; bp2=function(y){function q(Q){y.nt.get().hk(Q)} return vS(y.slot,y.Yf.get())?YRC(Object.assign({},y,{LL:q})):new $I(Object.assign({},y,{LL:q}))}; WS=function(y){for(var q=y.G3,Q=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],p=g.t(kr()),v=p.next();!v.done;v=p.next())Q.push(v.value);if(B1(q,{M4:Q,Cg:["LAYOUT_TYPE_MEDIA_BREAK"]}))return f_8(y);q=y.G3;Q=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];p=g.t(kr());for(v=p.next();!v.done;v=p.next())Q.push(v.value);if(B1(q,{M4:Q,Cg:["LAYOUT_TYPE_MEDIA"]}))return mo(y.G3.clientMetadata,"metadata_type_ad_intro")?h9D(y):bp2(y)}; Krf=function(y){var q=Qe(y.clientMetadata,"metadata_type_ad_placement_config").kind,Q=Qe(y.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:y.layoutId,adType:$oS(Q),adBreakType:QD(q)}}; QD=function(y){switch(y){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"}}; $oS=function(y){switch(y){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; xob=function(y){try{return new ZJ(y.v7,y.slot,y.layout,y.Q8,y.Up,y.Gy,y.m2,y.ut,y.PB,y.JK,y.joK,y)}catch(q){}}; ZJ=function(y,q,Q,p,v,d,T,O,w,J,F,Y){g.I.call(this);this.v7=y;this.slot=q;this.layout=Q;this.Q8=p;this.Up=v;this.Gy=d;this.m2=T;this.ut=O;this.PB=w;this.JK=J;this.params=Y;this.Ou=!0;y=WS(F);if(!y)throw Error("Invalid params for sublayout");this.o7=y}; Wr9=function(){this.K=1;this.W=new Fm}; t$=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h){g.I.call(this);this.callback=y;this.Gy=q;this.m2=Q;this.ut=p;this.JK=v;this.yY=d;this.y$=T;this.Cm=O;this.slot=w;this.layout=J;this.Q8=F;this.H_=Y;this.PB=f;this.Yf=h;this.Ou=!0;this.B1=!1;this.CU=[];this.Qw=-1;this.ZQ=!1;this.Og=new Wr9}; ZpS=function(y){var q;return(q=y.layout.h0)!=null?q:Qe(y.layout.clientMetadata,"metadata_type_sub_layouts")}; EK=function(y){return{Mm:y.Gy.get(),LO:!1,pm:y.L6()}}; tf9=function(y,q,Q){if(y.e0()===y.CU.length-1){var p,v;hx("Unexpected skip requested during the last sublayout",(p=y.f6())==null?void 0:p.HB(),(v=y.f6())==null?void 0:v.hK(),{requestingSlot:q,requestingLayout:Q})}}; ERb=function(y,q,Q){return Q.layoutId!==kI(y,q,Q)?(hx("onSkipRequested for a PlayerBytes layout that is not currently active",y.HB(),y.hK()),!1):!0}; kng=function(y){y.e0()===y.CU.length-1&&hx("Unexpected skip with target requested during the last sublayout")}; Lrs=function(y,q,Q){return Q.renderingContent===void 0&&Q.layoutId!==kI(y,q,Q)?(hx("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",y.HB(),y.hK(),{requestingSlot:q,requestingLayout:Q}),!1):!0}; a_i=function(y,q,Q,p){var v=Qe(q.hK().clientMetadata,"metadata_type_ad_pod_skip_target");if(v&&v>0&&v0)){hx("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",y.slot,y.layout,{indexToPlay:q,layoutId:y.layout.layoutId});break a}y.Qw=q;q=y.f6();if(y.e0()>0&&!y.L6()){var Q=y.y$.get();Q.W=!1;var p={};Q.K&&Q.videoId&&(p.cttAuthInfo={token:Q.K,videoId:Q.videoId});ug("ad_to_ad",p)}Q=g.U(q.hK().renderingContent,vs);if(Q==null?0: Q.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var v;Q=!((v=y.yY.get().EkK.get(Q.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&v)}else Q=!1;Q?LB(y,y.e0()+1):y.Rc(q)}}; SX=function(y){t$.call(this,y.v7,y.Gy,y.m2,y.ut,y.JK,y.yY,y.y$,y.Cm,y.slot,y.layout,y.Q8,y.H_,y.PB,y.Yf)}; HpH=function(y){(y=y.f6())&&y.Cs()}; HS=function(y){t$.call(this,y.v7,y.Gy,y.m2,y.ut,y.JK,y.yY,y.y$,y.Cm,y.slot,y.layout,y.Q8,y.H_,y.PB,y.Yf);this.GI=void 0}; R9S=function(y,q){y.Hh()&&!fN(y.Og.W)||y.callback.Su(y.slot,y.layout,q)}; Rh=function(y){return eb(y.Yf.get(),"html5_ssap_pass_transition_reason")}; s0g=function(y,q,Q){q.g6().currentState<2&&(Q=Th(Q,y.Yf),q.qz(q.hK(),Q));Q=q.g6().K;y.Qy(y.slot,q.hK(),Q)}; Mf9=function(y,q){if(y.Og.W.currentState<2){var Q=Th(q,y.Yf);Q==="error"?y.callback.Nm(y.slot,y.layout,new qI("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):ND(y.H_,y.layout,Q)}}; sK=function(y,q,Q){q.g6().currentState>=2||(q.qz(q.hK(),Q),fN(q.g6())&&(aI(y.Cm,y.slot,q.hK(),Q),y.GI=void 0))}; l_p=function(y,q){y.Og.K===2&&q!==y.a5()&&hx("onClipEntered: unknown cpn",y.slot,y.layout,{cpn:q})}; z99=function(y,q){var Q=y.f6();if(Q){var p=Q.hK().layoutId,v=y.e0()+1;y.Hh()?sK(y,Q,q):Q.qz(Q.hK(),q);v>=0&&vv&&T.Kd(F,v-p);return F}; oRS=function(y,q,Q){var p=Qe(q.clientMetadata,"metadata_type_sodar_extension_data");if(p)try{fhp(Q,p)}catch(v){hx("Unexpected error when loading Sodar",y,q,{error:v})}}; Ad3=function(y,q,Q,p,v,d,T){nB(y,q,new g.bK(Q,new g.nj),p,v,T,!1,d)}; nB=function(y,q,Q,p,v,d,T,O){T=T===void 0?!0:T;VC(Q)&&OU(v,0,null)&&(!H1(y,"impression")&&O&&O(),y.z8("impression"));H1(y,"impression")&&(g.Ks(Q,4)&&!g.Ks(Q,2)&&y.IM("pause"),$z(Q,4)<0&&!($z(Q,2)<0)&&y.IM("resume"),g.Ks(Q,16)&&v>=.5&&y.IM("seek"),T&&g.Ks(Q,2)&&gL(y,Q.state,q,p,v,d))}; gL=function(y,q,Q,p,v,d,T,O,w){H1(y,"impression")&&(d?(d=v-p,d=d>=-1&&d<=2):d=Math.abs(p-v)<=1,cS(y,q,d?p:v,Q,p,T,O&&d),d&&!w&&y.z8("complete"))}; cS=function(y,q,Q,p,v,d,T){Sw(y,Q*1E3,T);v<=0||Q<=0||(q==null?0:g.G(q,16))||(q==null?0:g.G(q,32))||(OU(Q,v*.25,p)&&(d&&!H1(y,"first_quartile")&&d("first"),y.z8("first_quartile")),OU(Q,v*.5,p)&&(d&&!H1(y,"midpoint")&&d("second"),y.z8("midpoint")),OU(Q,v*.75,p)&&(d&&!H1(y,"third_quartile")&&d("third"),y.z8("third_quartile")))}; e9S=function(y,q){H1(y,"impression")&&y.IM(q?"fullscreen":"end_fullscreen")}; BY9=function(y){H1(y,"impression")&&y.IM("clickthrough")}; GnC=function(y){y.IM("active_view_measurable")}; Pg8=function(y){H1(y,"impression")&&!H1(y,"seek")&&y.IM("active_view_fully_viewable_audible_half_duration")}; ipg=function(y){H1(y,"impression")&&!H1(y,"seek")&&y.IM("active_view_viewable")}; XD9=function(y){H1(y,"impression")&&!H1(y,"seek")&&y.IM("audio_audible")}; moj=function(y){H1(y,"impression")&&!H1(y,"seek")&&y.IM("audio_measurable")}; CgS=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f){this.callback=y;this.slot=q;this.layout=Q;this.m2=p;this.zy=v;this.JK=d;this.QG=T;this.FL=O;this.C6=w;this.Yf=J;this.Us=F;this.Gy=Y;this.a7=f;this.L0=!0;this.V$=this.C3=null;this.adCpn=void 0;this.K=!1}; y09=function(y,q,Q){var p;Ih(y.Us.get(),"ads_qua","cpn."+Qe(y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((p=Cj(y.Gy.get(),2))==null?void 0:p.clientPlaybackNonce)+";qt."+q+";clr."+Q)}; q68=function(y,q){var Q,p;Ih(y.Us.get(),"ads_imp","cpn."+Qe(y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Q=Cj(y.Gy.get(),2))==null?void 0:Q.clientPlaybackNonce)+";clr."+q+";skp."+!!g.U((p=Qe(y.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:p.skipOrPreviewRenderer,UK))}; rL=function(y){return{enterMs:Qe(y.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Qe(y.clientMetadata,"metadata_type_layout_exit_ms")}}; oh=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h){l2.call(this,y,q,Q,p,v,T,O,w,J,Y);this.QG=d;this.C6=F;this.FL=f;this.Yf=h;this.V$=this.C3=null}; jC9=function(y,q){var Q;Ih(y.Us.get(),"ads_imp","acpn."+((Q=Cj(y.Gy.get(),2))==null?void 0:Q.clientPlaybackNonce)+";clr."+q)}; QC9=function(y,q,Q){var p;Ih(y.Us.get(),"ads_qua","cpn."+Qe(y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((p=Cj(y.Gy.get(),2))==null?void 0:p.clientPlaybackNonce)+";qt."+q+";clr."+Q)}; A$=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z,k,S,N,l,u,c){this.PB=y;this.Q8=q;this.H_=Q;this.Gy=p;this.m2=v;this.JK=d;this.yY=T;this.Us=O;this.QG=w;this.Aj=J;this.FL=F;this.C6=Y;this.ut=f;this.a7=h;this.y$=b;this.nt=Z;this.vB=k;this.kW=S;this.Yf=N;this.K=l;this.context=u;this.oM=c}; eX=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z,k,S,N){this.PB=y;this.Q8=q;this.H_=Q;this.Us=p;this.FL=v;this.C6=d;this.ut=T;this.Gy=O;this.JK=w;this.yY=J;this.a7=F;this.y$=Y;this.nt=f;this.vB=h;this.kW=b;this.Yf=Z;this.m2=k;this.context=S;this.oM=N}; pJf=function(y,q,Q,p){TM.call(this,"survey-interstitial",y,q,Q,p)}; BS=function(y,q,Q,p,v){h8.call(this,Q,y,q,p);this.Us=v;y=Qe(q.clientMetadata,"metadata_type_ad_placement_config");this.zy=new ET(q.WB,v,y,q.layoutId)}; Gh=function(y){return Math.round(y.width)+"x"+Math.round(y.height)}; i2=function(y,q,Q){Q=Q===void 0?PS:Q;Q.widthy.width*y.height*.2)return{xo:3,FJ:501,errorMessage:"ad("+Gh(Q)+") to container("+Gh(y)+") ratio exceeds limit."};if(Q.height>y.height/3-q)return{xo:3,FJ:501,errorMessage:"ad("+Gh(Q)+") covers container("+Gh(y)+") center."}}; vSS=function(y,q){var Q=Qe(y.clientMetadata,"metadata_type_ad_placement_config");return new ET(y.WB,q,Q,y.layoutId)}; XP=function(y){return Qe(y.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; m5=function(y,q,Q,p){TM.call(this,"invideo-overlay",y,q,Q,p);this.interactionLoggingClientData=p}; CB=function(y,q,Q,p,v,d,T,O,w,J,F,Y){h8.call(this,d,y,q,v);this.Us=Q;this.Y=T;this.JK=O;this.vB=w;this.Yf=J;this.G=F;this.J=Y;this.zy=vSS(q,Q)}; dsi=function(){var y=["metadata_type_invideo_overlay_ad_renderer"];kr().forEach(function(q){y.push(q)}); return{M4:y,Cg:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; yy=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f){h8.call(this,d,y,q,v);this.Us=Q;this.Y=T;this.C=O;this.JK=w;this.vB=J;this.Yf=F;this.G=Y;this.J=f;this.zy=vSS(q,Q)}; TTg=function(){for(var y=["metadata_type_invideo_overlay_ad_renderer"],q=g.t(kr()),Q=q.next();!Q.done;Q=q.next())y.push(Q.value);return{M4:y,Cg:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; q8=function(y){this.JK=y;this.K=!1}; VdS=function(y,q,Q){TM.call(this,"survey",y,{},q,Q)}; jV=function(y,q,Q,p,v,d,T){h8.call(this,Q,y,q,p);this.Y=v;this.JK=d;this.Yf=T}; Or8=function(y,q,Q,p,v,d,T,O,w,J){this.cT=y;this.JK=q;this.Us=Q;this.Y=p;this.FL=v;this.W=d;this.N=T;this.vB=O;this.Yf=w;this.K=J}; wJ8=function(y,q,Q,p,v,d,T,O,w,J){this.cT=y;this.JK=q;this.Us=Q;this.Y=p;this.FL=v;this.W=d;this.N=T;this.vB=O;this.Yf=w;this.K=J}; Qy=function(y,q,Q,p,v,d,T,O,w,J){Ct.call(this,y,q,Q,p,v,d,T,w);this.PA=O;this.Gy=J}; J0j=function(){var y=xPD();y.M4.push("metadata_type_ad_info_ad_metadata");return y}; Fw3=function(y,q,Q,p,v,d,T){this.cT=y;this.JK=q;this.Us=Q;this.W=p;this.PA=v;this.K=d;this.Gy=T}; Y6D=function(y,q,Q,p,v,d,T,O){this.cT=y;this.JK=q;this.Us=Q;this.W=p;this.PA=v;this.K=d;this.Yf=T;this.Gy=O}; p6=function(y,q){this.slotId=q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=y(this.triggerType)}; vh=function(y,q){this.adPodIndex=y;this.K=q.length;this.adBreakLengthSeconds=q.reduce(function(p,v){return p+v},0); var Q=0;for(y+=1;y0}; Ph=function(y){return!!(y.W3I&&y.slot&&y.layout)}; iP=function(y){var q,Q=(q=y.config)==null?void 0:q.adPlacementConfig;y=y.renderer;return!(!Q||Q.kind==null||!y)}; S63=function(y){if(!UL(y.adLayoutMetadata))return!1;y=y.renderingContent;return g.U(y,vs)||g.U(y,dZ)||g.U(y,NTS)||g.U(y,QC)||g.U(y,pN)?!0:!1}; X$=function(y){return y.playerVars!==void 0&&y.pings!==void 0&&y.externalVideoId!==void 0}; pF=function(y){if(!UL(y.adLayoutMetadata))return!1;y=y.renderingContent;var q=g.U(y,m4);return q?C6(q):(q=g.U(y,yA))?X$(q):(q=g.U(y,qY))?q.playerVars!==void 0:(q=g.U(y,vs))?q.durationMilliseconds!==void 0:g.U(y,ju)||g.U(y,QA)?!0:!1}; C6=function(y){y=(y.sequentialLayouts||[]).map(function(q){return g.U(q,vc)}); return y.length>0&&y.every(pF)}; Tr=function(y){return UL(y.adLayoutMetadata)?(y=g.U(y.renderingContent,di))&&y.pings?!0:!1:!1}; lFi=function(y){if(!UL(y.adLayoutMetadata))return!1;if(g.U(y.renderingContent,Hri)||g.U(y.renderingContent,VA))return!0;var q=g.U(y.renderingContent,Ok);return g.U(y.renderingContent,wi)||g.U(q==null?void 0:q.sidePanel,ROs)||g.U(q==null?void 0:q.sidePanel,sC9)||g.U(q==null?void 0:q.sidePanel,Mdi)?!0:!1}; gSC=function(y){var q;(q=!y)||(q=y.adSlotMetadata,q=!((q==null?void 0:q.slotId)!==void 0&&(q==null?void 0:q.slotType)!==void 0));if(q||!(zOC(y)||y.slotEntryTrigger&&y.slotFulfillmentTriggers&&y.slotExpirationTriggers))return!1;var Q;y=(Q=y.fulfillmentContent)==null?void 0:Q.fulfilledLayout;return(Q=g.U(y,vc))?pF(Q):(Q=g.U(y,Ja))?lFi(Q):(Q=g.U(y,Dsi))?S63(Q):(Q=g.U(y,uxj))?Lwp(Q):(Q=g.U(y,IFC))?UL(Q.adLayoutMetadata)?g.U(Q.renderingContent,r7)?!0:!1:!1:(Q=g.U(y,FE))?Tr(Q):(y=g.U(y,nSg))?UL(y.adLayoutMetadata)? g.U(y.renderingContent,VA)?!0:!1:!1:!1}; zOC=function(y){var q;y=g.U((q=y.fulfillmentContent)==null?void 0:q.fulfilledLayout,Ja);var Q;return y&&((Q=y.adLayoutMetadata)==null?void 0:Q.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&y.layoutExitNormalTriggers===void 0}; c0f=function(y){var q;return(y==null?void 0:(q=y.adSlotMetadata)==null?void 0:q.slotType)==="SLOT_TYPE_IN_PLAYER"}; r0D=function(y,q){var Q;if((Q=y.questions)==null||!Q.length||!y.playbackCommands||(q===void 0||!q)&&y.questions.length!==1)return!1;y=g.t(y.questions);for(q=y.next();!q.done;q=y.next()){q=q.value;var p=Q=void 0,v=((Q=g.U(q,fF))==null?void 0:Q.surveyAdQuestionCommon)||((p=g.U(q,ha))==null?void 0:p.surveyAdQuestionCommon);if(!Usb(v))return!1}return!0}; oS9=function(y){y=((y==null?void 0:y.playerOverlay)||{}).instreamSurveyAdRenderer;var q;if(y)if(y.playbackCommands&&y.questions&&y.questions.length===1){var Q,p=((q=g.U(y.questions[0],fF))==null?void 0:q.surveyAdQuestionCommon)||((Q=g.U(y.questions[0],ha))==null?void 0:Q.surveyAdQuestionCommon);q=Usb(p)}else q=!1;else q=!1;return q}; Usb=function(y){if(!y)return!1;y=g.U(y.instreamAdPlayerOverlay,bE);var q=g.U(y==null?void 0:y.skipOrPreviewRenderer,UK),Q=g.U(y==null?void 0:y.adInfoRenderer,$T);return(g.U(y==null?void 0:y.skipOrPreviewRenderer,KF)||q)&&Q?!0:!1}; A0i=function(y){return y.linearAds!=null&&UL(y.adLayoutMetadata)}; eOg=function(y){return y.linearAd!=null&&y.adVideoStart!=null}; BTS=function(y){if(isNaN(Number(y.timeoutSeconds))||!y.text||!y.ctaButton||!g.U(y.ctaButton,g.xT)||!y.brandImage)return!1;var q;return y.backgroundImage&&g.U(y.backgroundImage,Wc)&&((q=g.U(y.backgroundImage,Wc))==null?0:q.landscape)?!0:!1}; ZY=function(y,q,Q,p,v,d,T,O){g.I.call(this);this.Yf=y;this.K=q;this.W=p;this.Gy=v;this.Y=d;this.N=T;this.ut=O}; ir3=function(y,q,Q){var p,v=((p=Q.adSlots)!=null?p:[]).map(function(O){return g.U(O,ta)}); if(Q.oe)if(Qe(q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))J8(y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); else{if(y.Yf.get().U.T().L("h5_check_forecasting_renderer_for_throttled_midroll")){var d=Q.HD.filter(function(O){var w;return((w=O.renderer)==null?void 0:w.clientForecastingAdRenderer)!=null}); d.length!==0?Gs3(y.N,d,v,q.slotId,Q.ssdaiAdsConfig):J8(y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId)}else J8(y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); Pj3(y.Y,q)}else{var T;p={qL:Math.round(((d=Qe(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:d.qL)||0),jd:(T=Qe(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:T.jd};d=Qe(q.clientMetadata,"metadata_type_cue_point");Gs3(y.N,Q.HD,v,q.slotId,Q.ssdaiAdsConfig,p,d)}}; CjD=function(y,q,Q,p,v,d,T,O){var w=Cj(y.Gy.get(),1);if(XJH(y.Yf.get())){var J=Ek(y.W.get(),Q,p,v,w.clientPlaybackNonce,w.XD,w.daiEnabled,w,d,T);msp(y,J);J8(y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return J},q)}else J8(y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Ek(y.W.get(),Q,p,v,w.clientPlaybackNonce,w.XD,w.daiEnabled,w,d,T,O)},q)}; msp=function(y,q){q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next()){var p=Q.value;if(p.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p.fulfilledLayout)if(Q=void 0,p.fulfilledLayout.renderingContent)Q=Qe(p.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(p.fulfilledLayout.h0){p=g.t(p.fulfilledLayout.h0);for(var v=p.next();!v.done&&(v=v.value,!v.renderingContent||!(Q=Qe(v.clientMetadata,"metadata_type_player_vars")));v=p.next());}}else Q=void 0;if(Q){y.ut.get().U.preloadVideoByPlayerVars(Q, 2,300);break}}}; qrC=function(y,q,Q,p,v,d,T){q=yVS(q,d,Number(p.prefetchMilliseconds)||0,T);y=q instanceof P?q:kT(y,p,v,q,Q);return y instanceof P?y:[y]}; jbD=function(y,q,Q,p,v){var d=FJ(y.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");p=[new zA({getAdBreakUrl:p.getAdBreakUrl,qL:0,jd:0}),new PZ(!0)];y=q.pauseDurationMs?q.lactThresholdMs?{slotId:d,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new uP(y.K,d),slotFulfillmentTriggers:[new hOS(y.K)],slotExpirationTriggers:[new EL(y.K,v),new N8(y.K,d)],bB:"core",clientMetadata:new jb(p),adSlotLoggingData:Q}:new P("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new P("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return y instanceof P?y:[y]}; QbC=function(y){var q,Q;return((q=y.renderer)==null?void 0:(Q=q.adBreakServiceRenderer)==null?void 0:Q.getAdBreakUrl)!==void 0}; LF=function(y,q,Q){if(y.beforeContentVideoIdStartedTrigger)y=y.beforeContentVideoIdStartedTrigger?new d7(ye,q,y.id):new P("Not able to create BeforeContentVideoIdStartedTrigger");else{if(y.layoutIdExitedTrigger){var p;q=(p=y.layoutIdExitedTrigger)!=null&&p.triggeringLayoutId?new F$(ye,y.layoutIdExitedTrigger.triggeringLayoutId,y.id):new P("Not able to create LayoutIdExitedTrigger")}else{if(y.layoutExitedForReasonTrigger){var v,d;((v=y.layoutExitedForReasonTrigger)==null?0:v.triggeringLayoutId)&&((d= y.layoutExitedForReasonTrigger)==null?0:d.layoutExitReason)?(q=br2(y.layoutExitedForReasonTrigger.layoutExitReason),y=q instanceof P?q:new Jq(ye,y.layoutExitedForReasonTrigger.triggeringLayoutId,[q],y.id)):y=new P("Not able to create LayoutIdExitedForReasonTrigger")}else{if(y.onLayoutSelfExitRequestedTrigger){var T;q=(T=y.onLayoutSelfExitRequestedTrigger)!=null&&T.triggeringLayoutId?new tq(ye,y.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,y.id):new P("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(y.onNewPlaybackAfterContentVideoIdTrigger)y= y.onNewPlaybackAfterContentVideoIdTrigger?new EL(ye,q,y.id):new P("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(y.skipRequestedTrigger){var O;q=(O=y.skipRequestedTrigger)!=null&&O.triggeringLayoutId?new L6(ye,y.skipRequestedTrigger.triggeringLayoutId,y.id):new P("Not able to create SkipRequestedTrigger")}else if(y.slotIdEnteredTrigger){var w;q=(w=y.slotIdEnteredTrigger)!=null&&w.triggeringSlotId?new a6(ye,y.slotIdEnteredTrigger.triggeringSlotId,y.id):new P("Not able to create SlotIdEnteredTrigger")}else if(y.slotIdExitedTrigger){var J; q=(J=y.slotIdExitedTrigger)!=null&&J.triggeringSlotId?new N8(ye,y.slotIdExitedTrigger.triggeringSlotId,y.id):new P("Not able to create SkipRequestedTrigger")}else if(y.surveySubmittedTrigger){var F;q=(F=y.surveySubmittedTrigger)!=null&&F.triggeringLayoutId?new n6(ye,y.surveySubmittedTrigger.triggeringLayoutId,y.id):new P("Not able to create SurveySubmittedTrigger")}else{if(y.mediaResumedTrigger)y=y.mediaResumedTrigger&&y.id?new $sj(y.id):new P("Not able to create MediaResumedTrigger");else{if(y.closeRequestedTrigger){var Y; q=(Y=y.closeRequestedTrigger)!=null&&Y.triggeringLayoutId?new TB(ye,y.closeRequestedTrigger.triggeringLayoutId,y.id):new P("Not able to create CloseRequestedTrigger")}else if(y.slotIdScheduledTrigger){var f;q=(f=y.slotIdScheduledTrigger)!=null&&f.triggeringSlotId?new uP(ye,y.slotIdScheduledTrigger.triggeringSlotId,y.id):new P("Not able to create SlotIdScheduledTrigger")}else{if(y.mediaTimeRangeTrigger){var h;p=Number((h=y.mediaTimeRangeTrigger)==null?void 0:h.offsetStartMilliseconds);var b;T=Number((b= y.mediaTimeRangeTrigger)==null?void 0:b.offsetEndMilliseconds);isFinite(p)&&isFinite(T)?(b=T,b===-1&&(b=Q),Q=p>b?new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:p,offsetEndMs:b},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",b===Q&&p-500<=b):new S4(p,b),y=Q instanceof P?Q:new K6(ye,q,Q,!1,y.id)):y=new P("Not able to create MediaTimeRangeTrigger")}else if(y.contentVideoIdEndedTrigger)y=y.contentVideoIdEndedTrigger?new Vy(ye,q,!1,y.id):new P("Not able to create ContentVideoIdEndedTrigger"); else{if(y.layoutIdEnteredTrigger){var Z;q=(Z=y.layoutIdEnteredTrigger)!=null&&Z.triggeringLayoutId?new w7(ye,y.layoutIdEnteredTrigger.triggeringLayoutId,y.id):new P("Not able to create LayoutIdEnteredTrigger")}else if(y.timeRelativeToLayoutEnterTrigger){var k;q=(k=y.timeRelativeToLayoutEnterTrigger)!=null&&k.triggeringLayoutId?new g7(ye,Number(y.timeRelativeToLayoutEnterTrigger.durationMs),y.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,y.id):new P("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(y.onDifferentLayoutIdEnteredTrigger){var S; q=(S=y.onDifferentLayoutIdEnteredTrigger)!=null&&S.triggeringLayoutId&&y.onDifferentLayoutIdEnteredTrigger.slotType&&y.onDifferentLayoutIdEnteredTrigger.layoutType?new Wh(ye,y.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,y.onDifferentLayoutIdEnteredTrigger.slotType,y.onDifferentLayoutIdEnteredTrigger.layoutType,y.id):new P("Not able to create CloseRequestedTrigger")}else{if(y.liveStreamBreakStartedTrigger)y=y.liveStreamBreakStartedTrigger&&y.id?new bP(ye,y.id):new P("Not able to create LiveStreamBreakStartedTrigger"); else if(y.liveStreamBreakEndedTrigger)y=y.liveStreamBreakEndedTrigger&&y.id?new Yj(ye,y.id):new P("Not able to create LiveStreamBreakEndedTrigger");else{if(y.liveStreamBreakScheduledDurationMatchedTrigger){var N;q=(N=y.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&N.breakDurationMs?new f6(Number(y.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,y.id):new P("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(y.liveStreamBreakScheduledDurationNotMatchedTrigger){var l; q=(l=y.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&l.breakDurationMs?new hq(Number(y.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,y.id):new P("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(y.newSlotScheduledWithBreakDurationTrigger){var u;q=(u=y.newSlotScheduledWithBreakDurationTrigger)!=null&&u.breakDurationMs?new xj(Number(y.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,y.id):new P("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else q= y.prefetchCacheExpiredTrigger?new kj(ye,y.id):new P("Not able to convert an AdsControlflowTrigger.");y=q}q=y}y=q}q=y}y=q}q=y}y=q}q=y}y=q}q=y}y=q}return y}; aS=function(y,q){q.K>=2&&(y.slot_pos=q.adPodIndex);y.autoplay="1"}; vVD=function(y,q,Q,p,v,d,T,O){return q===null?new P("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:q,ActionCompanionAdRenderer:p}):[pB8(y,q,T,d,function(w){var J=w.slotId;w=O(w);var F=p.adLayoutLoggingData,Y=new jb([new z2(p),new BB(v)]);J=Bl(Q.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",J);var f={layoutId:J,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bB:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",WB:new Map, layoutExitNormalTriggers:[new EL(Q.K,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:Y,L3:w(f),adLayoutLoggingData:F}})]}; dpi=function(y,q,Q,p,v,d,T,O){return q===null?new P("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:q,TopBannerImageTextIconButtonedLayoutViewModel:p}):[pB8(y,q,T,d,function(w){var J=w.slotId;w=O(w);var F=p.adLayoutLoggingData,Y=new jb([new D$(p),new BB(v)]);J=Bl(Q.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",J);var f={layoutId:J,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bB:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", WB:new Map,layoutExitNormalTriggers:[new EL(Q.K,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:Y,L3:w(f),adLayoutLoggingData:F}})]}; wB8=function(y,q,Q,p,v,d){if(!d)for(q=g.t(q),d=q.next();!d.done;d=q.next())d=d.value,NY(y,d.renderer,d.config.adPlacementConfig.kind);y=Array.from(y.values()).filter(function(F){return THs(F)}); q=[];d=g.t(y);for(var T=d.next(),O={};!T.done;O={Ow:void 0},T=d.next()){O.Ow=T.value;T=g.t(O.Ow.Vr);for(var w=T.next(),J={};!w.done;J={jh:void 0},w=T.next())J.jh=w.value,w=function(F,Y){return function(f){return F.jh.Xu(f,Y.Ow.instreamVideoAdRenderer.elementId,F.jh.pj)}}(J,O),J.jh.isContentVideoCompanion?q.push(VRi(Q,p,v,O.Ow.instreamVideoAdRenderer.elementId,J.jh.associatedCompositePlayerBytesLayoutId,J.jh.adSlotLoggingData,w)):y.length>1?q.push(Ooj(Q,p,v,O.Ow.instreamVideoAdRenderer.elementId,J.jh.adSlotLoggingData, function(F,Y){return function(f){return F.jh.Xu(f,Y.Ow.instreamVideoAdRenderer.elementId,F.jh.pj,F.jh.associatedCompositePlayerBytesLayoutId)}}(J,O))):q.push(Ooj(Q,p,v,O.Ow.instreamVideoAdRenderer.elementId,J.jh.adSlotLoggingData,w))}return q}; NY=function(y,q,Q){if(q=JVC(q)){q=g.t(q);for(var p=q.next();!p.done;p=q.next())if((p=p.value)&&p.externalVideoId){var v=Su(y,p.externalVideoId);v.instreamVideoAdRenderer||(v.instreamVideoAdRenderer=p,v.wq=Q)}else hx("InstreamVideoAdRenderer without externalVideoId")}}; JVC=function(y){var q=[],Q=y.sandwichedLinearAdRenderer&&y.sandwichedLinearAdRenderer.linearAd&&g.U(y.sandwichedLinearAdRenderer.linearAd,yA);if(Q)return q.push(Q),q;if(y.instreamVideoAdRenderer)return q.push(y.instreamVideoAdRenderer),q;if(y.linearAdSequenceRenderer&&y.linearAdSequenceRenderer.linearAds){y=g.t(y.linearAdSequenceRenderer.linearAds);for(Q=y.next();!Q.done;Q=y.next())Q=Q.value,g.U(Q,yA)&&q.push(g.U(Q,yA));return q}return null}; THs=function(y){if(y.instreamVideoAdRenderer===void 0)return hx("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var q=g.t(y.Vr),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;if(Q.Xu===void 0)return!1;if(Q.pj===void 0)return hx("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(y.wq===void 0||Q.Ne===void 0||y.wq!==Q.Ne&&Q.Ne!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(y.instreamVideoAdRenderer.elementId===void 0)return hx("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:y.wq,"matching APSR kind":Q.Ne}),!1}return!0}; Su=function(y,q){y.has(q)||y.set(q,{instreamVideoAdRenderer:void 0,wq:void 0,adVideoId:q,Vr:[]});return y.get(q)}; Hc=function(y,q,Q,p,v,d,T,O,w){v?Su(y,v).Vr.push({kYm:q,Ne:Q,isContentVideoCompanion:p,pj:T,associatedCompositePlayerBytesLayoutId:d,adSlotLoggingData:O,Xu:w}):hx("Companion AdPlacementSupportedRenderer without adVideoId")}; RS=function(y){var q=0;y=g.t(y.questions);for(var Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,Q=g.U(Q,fF)||g.U(Q,ha)){var p=void 0;q+=((p=Q.surveyAdQuestionCommon)==null?void 0:p.durationMilliseconds)||0}return q}; sk=function(y){var q,Q,p,v,d=((Q=g.U((q=y.questions)==null?void 0:q[0],fF))==null?void 0:Q.surveyAdQuestionCommon)||((v=g.U((p=y.questions)==null?void 0:p[0],ha))==null?void 0:v.surveyAdQuestionCommon),T;q=[].concat(g.hH(((T=y.playbackCommands)==null?void 0:T.instreamAdCompleteCommands)||[]),g.hH((d==null?void 0:d.timeoutCommands)||[]));var O,w,J,F,Y,f,h,b,Z,k,S,N,l,u,c,X,A,Tf,OC,pS;return{impressionCommands:(O=y.playbackCommands)==null?void 0:O.impressionCommands,errorCommands:(w=y.playbackCommands)== null?void 0:w.errorCommands,muteCommands:(J=y.playbackCommands)==null?void 0:J.muteCommands,unmuteCommands:(F=y.playbackCommands)==null?void 0:F.unmuteCommands,pauseCommands:(Y=y.playbackCommands)==null?void 0:Y.pauseCommands,rewindCommands:(f=y.playbackCommands)==null?void 0:f.rewindCommands,resumeCommands:(h=y.playbackCommands)==null?void 0:h.resumeCommands,skipCommands:(b=y.playbackCommands)==null?void 0:b.skipCommands,progressCommands:(Z=y.playbackCommands)==null?void 0:Z.progressCommands,Iaf:(k= y.playbackCommands)==null?void 0:k.clickthroughCommands,fullscreenCommands:(S=y.playbackCommands)==null?void 0:S.fullscreenCommands,activeViewViewableCommands:(N=y.playbackCommands)==null?void 0:N.activeViewViewableCommands,activeViewMeasurableCommands:(l=y.playbackCommands)==null?void 0:l.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(u=y.playbackCommands)==null?void 0:u.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(c=y.playbackCommands)== null?void 0:(X=c.activeViewTracking)==null?void 0:X.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(A=y.playbackCommands)==null?void 0:(Tf=A.activeViewTracking)==null?void 0:Tf.activeViewAudioMeasurableCommands,endFullscreenCommands:(OC=y.playbackCommands)==null?void 0:OC.endFullscreenCommands,abandonCommands:(pS=y.playbackCommands)==null?void 0:pS.abandonCommands,completeCommands:q}}; Yrg=function(y,q,Q,p,v,d,T){return function(O,w){return F$8(y,w.slotId,O,d,function(J,F){var Y=w.layoutId;J=T(J);return MY(q,Y,F,v,J,"LAYOUT_TYPE_SURVEY",[new OX(Q),p],Q.adLayoutLoggingData)})}}; bo9=function(y,q,Q,p,v,d,T){if(!f$g(y))return new P("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:y});var O=y.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[hBb(d,q,Q,p,function(w){var J=w.slotId;w=T(w);J=Bl(v.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",J);var F={layoutId:J,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bB:"core"},Y=new F$(v.K,p);return{layoutId:J,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",WB:new Map,layoutExitNormalTriggers:[Y], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([new w3(O)]),L3:w(F)}})]}; f$g=function(y){y=g.U(y==null?void 0:y.additionalPlayerOverlay,$p8);if(!y)return!1;var q=y.slidingMessages;return y.title&&q&&q.length!==0?!0:!1}; xpC=function(y,q,Q,p,v){var d;if((d=y.playerOverlay)==null||!d.instreamSurveyAdRenderer)return function(){return[]}; if(!oS9(y))return function(){return new P("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:y})}; var T=y.playerOverlay.instreamSurveyAdRenderer,O=RS(T);return O<=0?function(){return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T})}:function(w,J){var F=K$i(w,Q,p,function(Y){var f=Y.slotId; Y=J(Y);var h=sk(T);f=Bl(v.W.get(),"LAYOUT_TYPE_SURVEY",f);var b={layoutId:f,layoutType:"LAYOUT_TYPE_SURVEY",bB:"core"},Z=new F$(v.K,p),k=new L6(v.K,f),S=new n6(v.K,f),N=new Zrb(v.K);return{layoutId:f,layoutType:"LAYOUT_TYPE_SURVEY",WB:new Map,layoutExitNormalTriggers:[Z,N],layoutExitSkipTriggers:[k],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[S],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([new VV(T),new BB(q),new IG(O/1E3),new UX(h)]),L3:Y(b),adLayoutLoggingData:T.adLayoutLoggingData}}); w=bo9(y,Q,F.slotId,p,v,w,J);return w instanceof P?w:[F].concat(g.hH(w))}}; a$9=function(y,q,Q,p,v,d,T){T=T===void 0?!1:T;var O=[];try{var w=[];if(Q.renderer.linearAdSequenceRenderer)var J=function(Z){Z=W$i(Z.slotId,Q,q,v(Z),p,d,T);w=Z.WTV;return Z.GA}; else if(Q.renderer.instreamVideoAdRenderer)J=function(Z){var k=Z.slotId;Z=v(Z);var S=T,N=Q.config.adPlacementConfig,l=Zo9(N),u=l.zP,c=l.oh;l=Q.renderer.instreamVideoAdRenderer;var X;if(l==null?0:(X=l.playerOverlay)==null?0:X.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var A=lE(l,S);X=Math.min(u+A.videoLengthSeconds*1E3,c);S=new vh(0,[A.videoLengthSeconds]);c=A.videoLengthSeconds;var Tf=A.playerVars,OC=A.instreamAdPlayerOverlayRenderer,pS=A.playerOverlayLayoutRenderer, YD=A.adVideoId,q9=tRf(Q),aj=A.WB;A=A.zH;var Pp=l==null?void 0:l.adLayoutLoggingData;l=l==null?void 0:l.sodarExtensionData;k=Bl(q.W.get(),"LAYOUT_TYPE_MEDIA",k);var Fc={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",bB:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",WB:aj,layoutExitNormalTriggers:[new Yj(q.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([new Co(p),new tN(c),new EX(Tf), new aG(u),new Nc(X),OC&&new yV(OC),pS&&new qc(pS),new BB(N),new m$(YD),new G2(S),new Mc(q9),l&&new Lg(l),new $N({current:null}),new HZ({}),new AN(A)].filter(EVf)),L3:Z(Fc),adLayoutLoggingData:Pp}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var F=k2C(y,p,Q.adSlotLoggingData,J);O.push(F);for(var Y=g.t(w),f=Y.next();!f.done;f=Y.next()){var h=f.value,b=h(y,v);if(b instanceof P)return b;O.push.apply(O,g.hH(b))}}catch(Z){return new P(Z,{errorMessage:Z.message,AdPlacementRenderer:Q,numberOfSurveyRenderers:L$D(Q)})}return O}; L$D=function(y){y=(y.renderer.linearAdSequenceRenderer||{}).linearAds;return y!=null&&y.length?y.filter(function(q){var Q,p;return((Q=g.U(q,yA))==null?void 0:(p=Q.playerOverlay)==null?void 0:p.instreamSurveyAdRenderer)!=null}).length:0}; W$i=function(y,q,Q,p,v,d,T){var O=q.config.adPlacementConfig,w=Zo9(O),J=w.zP,F=w.oh;w=(q.renderer.linearAdSequenceRenderer||{}).linearAds;if(w==null||!w.length)throw new TypeError("Expected linear ads");var Y=[],f={H0:J,Z4:0,qum:Y};w=w.map(function(b){return NHj(y,b,f,Q,p,O,v,F,T)}).map(function(b,Z){Z=new vh(Z,Y); return b(Z)}); var h=w.map(function(b){return b.pJ}); return{GA:Srb(Q,y,J,h,O,tRf(q),p,F,d),WTV:w.map(function(b){return b.KT$})}}; NHj=function(y,q,Q,p,v,d,T,O,w){var J=lE(g.U(q,yA),w),F=Q.H0,Y=Q.Z4,f=Math.min(F+J.videoLengthSeconds*1E3,O);Q.H0=f;Q.Z4++;Q.qum.push(J.videoLengthSeconds);var h,b,Z=(h=g.U(q,yA))==null?void 0:(b=h.playerOverlay)==null?void 0:b.instreamSurveyAdRenderer;if(J.adVideoId==="nPpU29QrbiU"&&Z==null)throw new TypeError("Survey slate media has no survey overlay");return function(k){aS(J.playerVars,k);var S,N,l=J.videoLengthSeconds,u=J.playerVars,c=J.WB,X=J.zH,A=J.instreamAdPlayerOverlayRenderer,Tf=J.playerOverlayLayoutRenderer, OC=J.adVideoId,pS=(S=g.U(q,yA))==null?void 0:S.adLayoutLoggingData;S=(N=g.U(q,yA))==null?void 0:N.sodarExtensionData;N=Bl(p.W.get(),"LAYOUT_TYPE_MEDIA",y);var YD={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",bB:"adapter"};k={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",WB:c,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"adapter",clientMetadata:new jb([new Co(T),new tN(l),new EX(u),new aG(F),new Nc(f), new S0(Y),new $N({current:null}),A&&new yV(A),Tf&&new qc(Tf),new BB(d),new m$(OC),new G2(k),S&&new Lg(S),Z&&new oG(Z),new HZ({}),new AN(X)].filter(EVf)),L3:v(YD),adLayoutLoggingData:pS};l=xpC(g.U(q,yA),d,T,k.layoutId,p);return{pJ:k,KT$:l}}}; lE=function(y,q){if(!y)throw new TypeError("Expected instream video ad renderer");if(!y.playerVars)throw new TypeError("Expected player vars in url encoded string");var Q=vF(y.playerVars),p=Number(Q.length_seconds);if(isNaN(p))throw new TypeError("Expected valid length seconds in player vars");var v=Number(y.trimmedMaxNonSkippableAdDurationMs);p=isNaN(v)?p:Math.min(p,v/1E3);v=y.playerOverlay||{};v=v.instreamAdPlayerOverlayRenderer===void 0?null:v.instreamAdPlayerOverlayRenderer;var d=y.playerOverlay|| {};d=d.playerOverlayLayoutRenderer===void 0?null:d.playerOverlayLayoutRenderer;var T=Q.video_id;T||(T=(T=y.externalVideoId)?T:void 0);if(!T)throw new TypeError("Expected valid video id in IVAR");if(q&&p===0){var O;q=(O=Hob[T])!=null?O:p}else q=p;return{playerVars:Q,videoLengthSeconds:q,instreamAdPlayerOverlayRenderer:v,playerOverlayLayoutRenderer:d,adVideoId:T,WB:y.pings?t8(y.pings):new Map,zH:Zm(y.pings)}}; tRf=function(y){y=Number(y.driftRecoveryMs);return isNaN(y)||y<=0?null:y}; Zo9=function(y){var q=y.adTimeOffset||{};y=q.offsetEndMilliseconds;q=Number(q.offsetStartMilliseconds);if(isNaN(q))throw new TypeError("Expected valid start offset");y=Number(y);if(isNaN(y))throw new TypeError("Expected valid end offset");return{zP:q,oh:y}}; RBf=function(y){var q,Q=(q=Qe(y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!Q)return null;q=Qe(y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var p=y.layoutId,v=Qe(y.clientMetadata,"metadata_type_content_cpn"),d=Qe(y.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=Qe(y.clientMetadata,"metadata_type_player_underlay_renderer"),O=Qe(y.clientMetadata,"metadata_type_ad_placement_config"),w=Qe(y.clientMetadata,"metadata_type_video_length_seconds"); var J=mo(y.clientMetadata,"metadata_type_layout_enter_ms")&&mo(y.clientMetadata,"metadata_type_layout_exit_ms")?(Qe(y.clientMetadata,"metadata_type_layout_exit_ms")-Qe(y.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{El:p,contentCpn:v,Bg:Q,xH:q,instreamAdPlayerOverlayRenderer:d,instreamAdPlayerUnderlayRenderer:T,adPlacementConfig:O,videoLengthSeconds:w,qa:J,inPlayerLayoutId:Qe(y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Qe(y.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; l$3=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b){p=FJ(p,"SLOT_TYPE_PLAYER_BYTES");y=sbg(v,y,T,Q,p,w,J);if(y instanceof P)return y;var Z;J=(Z=Qe(y.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:Z.layoutId;if(!J)return new P("Invalid adNotify layout");q=MRS(J,v,d,Q,O,q,w,F,Y,f,h,b,T);return q instanceof P?q:[y].concat(g.hH(q))}; MRS=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f){Q=zBS(q,Q,p,d,T,O,w,J,F,Y,f);if(Q instanceof P)return Q;y=Dpf(q,y,T,v,Q);return y instanceof P?y:[].concat(g.hH(y.ZN),[y.Hd])}; I$C=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h){q=zBS(y,q,Q,v,d,O,w,J,F,Y,f,h);if(q instanceof P)return q;y=uej(y,Q,d,T,p,O.E9,q);return y instanceof P?y:y.ZN.concat(y.Hd)}; zBS=function(y,q,Q,p,v,d,T,O,w,J,F,Y){var f=zr(p,Q,J);return f instanceof qI?new P(f):J.U.T().experiments.ob("html5_refactor_in_player_slot_generation")?function(h){var b=new vh(0,[f.Fh]);h=nVg(q,f.layoutId,f.qh,Q,DY(f.playerVars,f.YN,d,w,b),f.Fh,v,b,T(h),O.get(f.qh.externalVideoId),Y);b=[];if(f.qh.playerOverlay.instreamAdPlayerOverlayRenderer){var Z=RBf(h);if(!Z)return hx("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,h),{layout:h,ZN:[]}; b=[gV9(y,Z.contentCpn,Z.El,function(S){return uE(q,S.slotId,"core",Z,OH(F,S))},Z.inPlayerSlotId)].concat(g.hH(b)); if(Z.instreamAdPlayerUnderlayRenderer&&IS(J)){var k=Z.instreamAdPlayerUnderlayRenderer;b=[cVg(y,Z.contentCpn,Z.El,function(S){return Upp(q,S.slotId,k,Z.adPlacementConfig,Z.El,OH(F,S))})].concat(g.hH(b))}}return{layout:h, ZN:b}}:function(h){var b=new vh(0,[f.Fh]); return{layout:nVg(q,f.layoutId,f.qh,Q,DY(f.playerVars,f.YN,d,w,b),f.Fh,v,b,T(h),O.get(f.qh.externalVideoId),Y),ZN:[]}}}; zr=function(y,q,Q){if(!y.playerVars)return new qI("No playerVars available in InstreamVideoAdRenderer.");var p,v;if(y.elementId==null||y.playerVars==null||y.playerOverlay==null||((p=y.playerOverlay)==null?void 0:p.instreamAdPlayerOverlayRenderer)==null&&((v=y.playerOverlay)==null?void 0:v.playerOverlayLayoutRenderer)==null||y.pings==null||y.externalVideoId==null)return new qI("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:y});p=vF(y.playerVars);v=Number(p.length_seconds); isNaN(v)&&(v=0,hx("Expected valid length seconds in player vars but got NaN"));if(Q.L6(q.kind==="AD_PLACEMENT_KIND_START")){if(y.layoutId===void 0)return new qI("Expected server generated layout ID in instreamVideoAdRenderer");q=y.layoutId}else q=y.elementId;return{layoutId:q,qh:y,playerVars:p,YN:y.playerVars,Fh:v}}; DY=function(y,q,Q,p,v){y.iv_load_policy=p;q=vF(q);if(q.cta_conversion_urls)try{y.cta_conversion_urls=JSON.parse(q.cta_conversion_urls)}catch(d){hx(d)}Q.MB&&(y.ctrl=Q.MB);Q.k9&&(y.ytr=Q.k9);Q.zR&&(y.ytrcc=Q.zR);Q.isMdxPlayback&&(y.mdx="1");y.vvt&&(y.vss_credentials_token=y.vvt,Q.t0&&(y.vss_credentials_token_type=Q.t0),Q.mdxEnvironment&&(y.mdx_environment=Q.mdxEnvironment));aS(y,v);return y}; rVC=function(y){var q=new Map;y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())(Q=Q.value.renderer.remoteSlotsRenderer)&&Q.hostElementId&&q.set(Q.hostElementId,Q);return q}; nF=function(y){return y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; oVD=function(y){return y!=null}; mpi=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b){for(var Z=[],k=g.t(y),S=k.next();!S.done;S=k.next())if(S=S.value,!zOC(S)&&!c0f(S)){var N=nF(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger,l=w.L6(N),u=AVf(S,J,p,Q.XD,l);if(u instanceof P)return u;var c=void 0,X={slotId:S.adSlotMetadata.slotId,slotType:S.adSlotMetadata.slotType,slotPhysicalPosition:(c=S.adSlotMetadata.slotPhysicalPosition)!=null?c:1,bB:"core",slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers, slotExpirationTriggers:u.slotExpirationTriggers},A=g.U(S.fulfillmentContent.fulfilledLayout,vc);if(A){if(!pF(A))return new P("Invalid PlayerBytesAdLayoutRenderer");c=Y&&!(nF(S)&&S.slotEntryTrigger.beforeContentVideoIdStartedTrigger);u=u.slotFulfillmentTriggers.some(function(Tf){return Tf instanceof f6}); l=c?eBS(X,S.adSlotMetadata.triggerEvent,A,Q,p,d,J,y,l,f,u,h):BH9(X,S.adSlotMetadata.triggerEvent,A,q,Q,p,v,d,T,O,w,J,y,F,l,S.adSlotMetadata.triggeringSourceLayoutId);if(l instanceof P)return l;u=[];b?u.push(new ZL({current:b})):u.push(new ZL({current:null}));nF(S)&&u.push(new iy({zm:nF(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c&&u.push(new HZ({}));Q.E9&&u.push(new r3({}));u.push(new GA(N));S=Object.assign({},X,{clientMetadata:new jb(u),fulfilledLayout:l.layout,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData}); Z.push.apply(Z,g.hH(l.ZN));Z.push(S)}else if(N=g.U(S.fulfillmentContent.fulfilledLayout,Ja)){if(!lFi(N))return new P("Invalid PlayerUnderlayAdLayoutRenderer");N=G2s(N,p,Q.XD,d,X,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof P)return N;S=Object.assign({},X,{clientMetadata:new jb([]),fulfilledLayout:N,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});Z.push(S)}else if(N=g.U(S.fulfillmentContent.fulfilledLayout,nSg)){if(!UL(N.adLayoutMetadata)||!g.U(N.renderingContent, VA))return new P("Invalid InPlayerOrganicOverlayAdLayoutRenderer");N=N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?Pdp(N,p,Q.XD,d,X):new P("LayoutType ["+N.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(N instanceof P)return N;S=Object.assign({},X,{clientMetadata:new jb([]),fulfilledLayout:N,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});Z.push(S)}else if(N=g.U(S.fulfillmentContent.fulfilledLayout,uxj)){if(!Lwp(N))return new P("Invalid AboveFeedAdLayoutRenderer"); N=io2(N,p,Q.XD,d,X,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof P)return N;S=Object.assign({},X,{clientMetadata:new jb([]),fulfilledLayout:N,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});Z.push(S)}else if(N=g.U(S.fulfillmentContent.fulfilledLayout,IFC)){if(!UL(N.adLayoutMetadata)||!g.U(N.renderingContent,r7))return new P("Invalid BelowPlayerAdLayoutRenderer");N=io2(N,p,Q.XD,d,X,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId); if(N instanceof P)return N;S=Object.assign({},X,{clientMetadata:new jb([]),fulfilledLayout:N,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});Z.push(S)}else if(N=g.U(S.fulfillmentContent.fulfilledLayout,FE)){if(!Tr(N))return new P("Invalid PlayerBytesSequenceItemAdLayoutRenderer");N=XBC(N,p,Q.XD,d,X,S.adSlotMetadata.triggerEvent);if(N instanceof P)return N;S=Object.assign({},X,{clientMetadata:new jb([]),fulfilledLayout:N,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});Z.push(S)}else return new P("Unable to retrieve a client slot ["+ X.slotType+"] from a given AdSlotRenderer")}return Z}; XBC=function(y,q,Q,p,v,d){var T={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,bB:"core"};q=gi(y,q,Q);return q instanceof P?q:(Q=g.U(y.renderingContent,di))&&Q.pings?Object.assign({},T,{renderingContent:y.renderingContent,WB:t8(Q.pings)},q,{L3:OH(p,v)(T),clientMetadata:new jb([new BB(cc(d))]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData}):new P("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; io2=function(y,q,Q,p,v,d,T){var O={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,bB:"core"};q=gi(y,q,Q);if(q instanceof P)return q;Q=[];Q.push(new BB(cc(d)));d==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&T!==void 0&&Q.push(new JN(T));return Object.assign({},O,{renderingContent:y.renderingContent,WB:new Map([["impression",Cdi(y)]])},q,{L3:OH(p,v)(O),clientMetadata:new jb(Q),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData})}; G2s=function(y,q,Q,p,v,d,T){if(y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(T=g.U(y.renderingContent,Ok))if(T=g.U(T.sidePanel,sC9)){var O={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,bB:"core"};q=gi(y,q,Q);y=q instanceof P?q:Object.assign({},O,{renderingContent:y.renderingContent,WB:new Map([["impression",T.impressionPings||[]],["resume",T.resumePings||[]]])},q,{L3:OH(p,v)(O),clientMetadata:new jb([new BB(cc(d))]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData})}else y= new P("DismissablePanelTextPortraitImageRenderer is missing");else y=new P("SqueezebackPlayerSidePanelRenderer is missing");else y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.U(y.renderingContent,Hri)?(T={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,bB:"core"},q=gi(y,q,Q),y=q instanceof P?q:Object.assign({},T,{renderingContent:y.renderingContent,WB:new Map},q,{L3:OH(p,v)(T),clientMetadata:new jb([new BB(cc(d))]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData})): y=new P("CounterfactualRenderer is missing"):y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?y=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?y=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.U(y.renderingContent,wi)?(d={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType, bB:"core"},q=gi(y,q,Q),y=q instanceof P?q:T?Object.assign({},d,{renderingContent:y.renderingContent,WB:new Map},q,{L3:OH(p,v)(d),clientMetadata:new jb([new JN(T)]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData}):new P("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):y=new P("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.U(y.renderingContent,VA)?(d= {layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,bB:"core"},q=gi(y,q,Q),y=q instanceof P?q:Object.assign({},d,{renderingContent:y.renderingContent,WB:new Map([])},q,{L3:OH(p,v)(d),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new jb([])})):y=new P("AdsEngagementPanelSectionListViewModel is missing"):y=new P("LayoutType ["+y.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return y}; Pdp=function(y,q,Q,p,v){if(!g.U(y.renderingContent,VA))return new P("AdsEngagementPanelSectionListViewModel is missing");var d={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,bB:"core"};q=gi(y,q,Q);return q instanceof P?q:Object.assign({},d,{renderingContent:y.renderingContent,WB:new Map([])},q,{L3:OH(p,v)(d),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new jb([])})}; eBS=function(y,q,Q,p,v,d,T,O,w,J,F,Y){if((Y==null?void 0:Y.qL)===void 0||(Y==null?void 0:Y.jd)===void 0)return new P("Cached ad break range from cue point is missing");var f=gi(Q,v,p.XD);if(f instanceof P)return f;f={layoutExitMuteTriggers:[],layoutExitNormalTriggers:f.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.U(Q.renderingContent,yA))return y=yN3(y,q,Q,f,v,d,O,w,p.XD,T,Y.qL,Y.jd),y instanceof P?y:y.b6===void 0? new P("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:y.layout,ZN:[y.b6]};var h=g.U(Q.renderingContent,m4);if(h){if(!UL(Q.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!C6(h))return new P("Invalid sequential layout");h=h.sequentialLayouts.map(function(b){return b.playerBytesAdLayoutRenderer}); y=qXb(y,q,Q,f,h,v,p,d,T,w,O,J,Y.qL,Y.jd,F);return y instanceof P?y:{layout:y.yy,ZN:y.ZN}}return new P("Not able to convert a sequential layout")}; qXb=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b){var Z=jGp(v,f,h);if(Z instanceof P)return Z;var k=[],S=[];Z=g.t(Z);for(var N=Z.next();!N.done;N=Z.next()){var l=N.value;N=y;var u=v[l.Z4],c=l,X=q;l=d;var A=T,Tf=O,OC=w,pS=J,YD=F,q9=Uk(u);if(q9 instanceof P)N=q9;else{var aj={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,bB:"adapter"};c=QGp(X,u,c,l);c instanceof P?N=c:(N=Object.assign({},aj,ri,{WB:q9,renderingContent:u.renderingContent,clientMetadata:new jb(c),L3:OH(Tf,N)(aj), adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData}),N=(u=oS(YD,N,l,A.XD,Tf,OC,pS,void 0,!0))?u instanceof P?u:{layout:N,b6:u}:new P("Expecting associatedInPlayerSlot"))}if(N instanceof P)return N;k.push(N.layout);S.push(N.b6)}v={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,bB:"core"};q=[new Mc(Number(Q.driftRecoveryMs)),new aG(f),new Nc(h),new BB(cc(q)),new BZ(Y),new HZ({})];b&&q.push(new Xp({}));return{yy:Object.assign({},v,p,{h0:k,WB:new Map,clientMetadata:new jb(q), L3:OH(O,y)(v)}),ZN:S}}; yN3=function(y,q,Q,p,v,d,T,O,w,J,F,Y){if(!pF(Q))return new P("Invalid PlayerBytesAdLayoutRenderer");var f=Uk(Q);if(f instanceof P)return f;var h={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,bB:"core"},b=g.U(Q.renderingContent,yA);if(!b)return new P("Invalid rendering content for DAI media layout");b=lE(b,!1);F={fl:b,Z4:0,H0:F,CE:Math.min(F+b.videoLengthSeconds*1E3,Y),Mq:new vh(0,[b.videoLengthSeconds])};var Z;Y=(Z=Number(Q.driftRecoveryMs))!=null?Z:void 0;q=QGp(q, Q,F,v,Y);if(q instanceof P)return q;y=Object.assign({},h,p,{WB:f,renderingContent:Q.renderingContent,clientMetadata:new jb(q),L3:OH(d,y)(h),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData});return(v=oS(T,y,v,w,d,J,O,void 0,!0))?v instanceof P?v:{layout:y,b6:v}:new P("Expecting associatedInPlayerSlot")}; BH9=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z){var k=gi(Q,d,v.XD);if(k instanceof P)return k;if(g.U(Q.renderingContent,yA)){w=pZC([Q],v,w);if(w instanceof P)return w;if(w.length!==1)return new P("Only expected one media layout.");y=vNS(y,q,Q,k,w[0],void 0,"core",p,d,T,O,J,f,h,b,v.XD,Y,void 0,Z);return y instanceof P?y:{layout:y.layout,ZN:y.b6?[y.b6]:[]}}var S=g.U(Q.renderingContent,m4);if(S){if(!UL(Q.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!C6(S))return new P("Invalid sequential layout"); S=S.sequentialLayouts.map(function(N){return N.playerBytesAdLayoutRenderer}); y=dcS(y,q,Q.adLayoutMetadata,k,S,p,d,v,w,T,O,J,F,Y,b,f,h,Z);return y instanceof P?y:{layout:y.yy,ZN:y.ZN}}return new P("Not able to convert a sequential layout")}; dcS=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z,k,S){var N=new Xe({current:null}),l=pZC(v,O,w);if(l instanceof P)return l;w=[];for(var u=[],c=void 0,X=0;X0&&(X.push(S),X.push(new id(c.adPodSkipTarget)));(d=J.get(c.externalVideoId))&&X.push(new uy(d));d=X}else d=new P("Invalid vod media renderer")}if(d instanceof P)return d;y=Object.assign({},T,p,{WB:l,renderingContent:Q.renderingContent,clientMetadata:new jb(d),L3:OH(F,y)(T),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData});Q=g.U(Q.renderingContent,yA);if(!Q||!X$(Q))return new P("Invalid meida renderer");Y=Su(Y,Q.externalVideoId);Y.instreamVideoAdRenderer=Q;Y.wq="AD_PLACEMENT_KIND_START";return h?(w=oS(f,y,w,Z,F,k,b,S,!1),w instanceof P?w:OgD(y.layoutId,f)&&w?{layout:Object.assign({},y,{clientMetadata:new jb(d.concat(new pg(w)))})}:{layout:y,b6:w}): {layout:y}}; T39=function(y,q,Q,p,v){if(!pF(q))return new P("Invalid PlayerBytesAdLayoutRenderer");var d=g.U(q.renderingContent,vs);if(!d||d.durationMilliseconds===void 0)return new P("Invalid endcap renderer");var T={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,bB:"adapter"};p=[new ng(d.durationMilliseconds),new UX({impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands}),new BB(p), new fg("LAYOUT_TYPE_ENDCAP")];if(v){p.push(new PB(v.Mq.adPodIndex-1));p.push(new S0(v.Mq.adPodIndex));var O;p.push(new id((O=v.adPodSkipTarget)!=null?O:-1))}return Object.assign({},T,ri,{renderingContent:q.renderingContent,clientMetadata:new jb(p),WB:d.skipPings?new Map([["skip",d.skipPings]]):new Map,L3:OH(Q,y)(T),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}; oS=function(y,q,Q,p,v,d,T,O,w){y=y.filter(function(Y){return Y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Y.adSlotMetadata.triggeringSourceLayoutId===q.layoutId}); if(y.length!==0){if(y.length!==1)return new P("Invalid InPlayer slot association for the given PlayerBytes layout");y=y[0];T=AVf(y,d,Q,p,T);if(T instanceof P)return T;var J;d={slotId:y.adSlotMetadata.slotId,slotType:y.adSlotMetadata.slotType,slotPhysicalPosition:(J=y.adSlotMetadata.slotPhysicalPosition)!=null?J:1,bB:"core",slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers};J=g.U(y.fulfillmentContent.fulfilledLayout, Dsi);if(!J||!S63(J))return new P("Invalid InPlayerAdLayoutRenderer");T={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,bB:"core"};Q=gi(J,Q,p);if(Q instanceof P)return Q;p=[];var F=J.adLayoutMetadata.layoutType;w&&p.push(new HZ({}));if(F==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")p.push.apply(p,g.hH(wZj(y.adSlotMetadata.triggerEvent,q))),(O=JN8(Q,q.layoutId))&&p.push(new Fp(O));else if(F==="LAYOUT_TYPE_ENDCAP"||F==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){p.push(new BB(cc(y.adSlotMetadata.triggerEvent))); if(F==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new P("Cannot parse endcap layout since AdUxReadyApi is not provided");O&&p.push(O)}else return new P("Not able to parse an SDF InPlayer layout");v=Object.assign({},T,Q,{renderingContent:J.renderingContent,WB:new Map,L3:OH(v,d)(T),clientMetadata:new jb(p),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},d,{fulfilledLayout:v,clientMetadata:new jb([])})}}; wZj=function(y,q){var Q=[];Q.push(new BB(cc(y)));Q.push(new JN(q.layoutId));(y=Qe(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&Q.push(new $N(y));(y=Qe(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&Q.push(new Xe(y));(y=Qe(q.clientMetadata,"metadata_type_remote_slots_data"))&&Q.push(new uy(y));(y=Qe(q.clientMetadata,"metadata_type_ad_next_params"))&&Q.push(new no(y));(y=Qe(q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&Q.push(new gH(y));(y= Qe(q.clientMetadata,"metadata_type_ad_pod_info"))&&Q.push(new G2(y));(q=Qe(q.clientMetadata,"metadata_type_ad_video_id"))&&Q.push(new m$(q));return Q}; V03=function(y,q,Q,p,v,d){function T(J){return Aa(q,J)} var O=p.uP.inPlayerSlotId,w={layoutId:p.uP.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",bB:"core"};Q={slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:new w7(T,y),slotFulfillmentTriggers:[new a6(T,O)],slotExpirationTriggers:[new N8(T,O),new EL(T,Q)]};y=Object.assign({},w,{layoutExitNormalTriggers:[new F$(T,y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],WB:new Map,clientMetadata:new jb([new d3(p.uP), new BB(p.adPlacementConfig),v]),L3:OH(d,Q)(w),adLayoutLoggingData:p.uP.adLayoutLoggingData});return Object.assign({},Q,{clientMetadata:new jb([new ly(y)])})}; OgD=function(y,q){q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var p=g.U(Q.fulfillmentContent.fulfilledLayout,Ja);if(p&&(p=g.U(p.renderingContent,Ok))&&p.associatedPlayerBytesLayoutId===y)return Q}}; AVf=function(y,q,Q,p,v){var d=Fo8(LF(y.slotEntryTrigger,Q,p),v,y,q);if(d instanceof P)return d;for(var T=[],O=g.t(y.slotFulfillmentTriggers),w=O.next();!w.done;w=O.next()){w=LF(w.value,Q,p);if(w instanceof P)return w;T.push(w)}T=YX2(T,v,y,q);q=[];y=g.t(y.slotExpirationTriggers);for(v=y.next();!v.done;v=y.next()){v=LF(v.value,Q,p);if(v instanceof P)return v;q.push(v)}return{slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:q}}; Fo8=function(y,q,Q,p){return q&&Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y instanceof d7?new p6(function(v){return Aa(p,v)},Q.adSlotMetadata.slotId):y}; YX2=function(y,q,Q,p){return q&&Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?y.map(function(v){return v instanceof a6?new uP(function(d){return Aa(p,d)},Q.adSlotMetadata.slotId):v}):y}; gi=function(y,q,Q){for(var p=[],v=g.t(y.layoutExitNormalTriggers||[]),d=v.next();!d.done;d=v.next()){d=LF(d.value,q,Q);if(d instanceof P)return d;p.push(d)}v=[];d=g.t(y.layoutExitSkipTriggers||[]);for(var T=d.next();!T.done;T=d.next()){T=LF(T.value,q,Q);if(T instanceof P)return T;v.push(T)}d=[];T=g.t(y.layoutExitMuteTriggers||[]);for(var O=T.next();!O.done;O=T.next()){O=LF(O.value,q,Q);if(O instanceof P)return O;d.push(O)}T=[];y=g.t(y.layoutExitUserInputSubmittedTriggers||[]);for(O=y.next();!O.done;O= y.next()){O=LF(O.value,q,Q);if(O instanceof P)return O;T.push(O)}return{layoutExitNormalTriggers:p,layoutExitSkipTriggers:v,layoutExitMuteTriggers:d,layoutExitUserInputSubmittedTriggers:T,layoutExitUserCancelledTriggers:[]}}; Uk=function(y){var q=g.U(y.renderingContent,yA);if(q==null?0:q.pings)return t8(q.pings);y=g.U(y.renderingContent,vs);return(y==null?0:y.skipPings)?new Map([["skip",y.skipPings]]):new Map}; QGp=function(y,q,Q,p,v){q=g.U(q.renderingContent,yA);if(!q)return new P("Invalid rendering content for DAI media layout");y=[new Co(p),new tN(Q.fl.videoLengthSeconds),new EX(Q.fl.playerVars),new aG(Q.H0),new Nc(Q.CE),new S0(Q.Z4),new BB(cc(y)),new m$(Q.fl.adVideoId),new G2(Q.Mq),q.sodarExtensionData&&new Lg(q.sodarExtensionData),new $N({current:null}),new HZ({}),new AN(Zm(q.pings))].filter(oVD);v!==void 0&&y.push(new Mc(v));return y}; jGp=function(y,q,Q){y=y.map(function(w){return lE(g.U(w.renderingContent,yA),!1)}); var p=y.map(function(w){return w.videoLengthSeconds}),v=p.map(function(w,J){return new vh(J,p)}),d=q,T=Q,O=[]; y.forEach(function(w,J){T=Math.min(d+w.videoLengthSeconds*1E3,Q);aS(w.playerVars,v[J]);O.push({fl:w,H0:d,CE:T,Z4:J,Mq:v[J]});d=T}); return O}; pZC=function(y,q,Q){for(var p=[],v=g.t(y),d=v.next();!d.done;d=v.next())if(d=g.U(d.value.renderingContent,yA)){if(!X$(d))return new P("Invalid vod media renderer");p.push(fL2(d))}v=p.map(function(Y){return Y.Fh}); d=[];for(var T=0,O=0;O0?pS:-1;else if(aj= g.U(q9,vs)){q9=Lob(y,q,Q,aj,d,Z,O,A,pS);if(q9 instanceof P){h=q9;break a}q9=q9(f);k.push(q9.G3);S=[].concat(g.hH(q9.KL),g.hH(S));N=[].concat(g.hH(q9.Y9),g.hH(N));q9.b6&&(OC=[q9.b6].concat(g.hH(OC)))}else if(aj=g.U(q9,ju)){if(h===void 0){h=new P("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:aj});break a}q9=SXC(y,q,Q,d,aj,X,O,h,Z,eb(F,"supports_multi_step_on_desktop"));if(q9 instanceof P){h=q9;break a}q9=q9(f);k.push(q9.G3);q9.b6&&OC.push(q9.b6); S=[].concat(g.hH(q9.KL),g.hH(S));N=[].concat(g.hH(q9.Y9),g.hH(N));l=[].concat(g.hH(q9.wO),g.hH(l));u=[].concat(g.hH(q9.uO),g.hH(u));c=[X].concat(g.hH(c))}else if(q9=g.U(q9,QA)){q9=Hgp(y,q,Q,d,q9,X,O,Z);if(q9 instanceof P){h=q9;break a}q9=q9(f);k.push(q9.G3);q9.b6&&OC.push(q9.b6);N=[].concat(g.hH(q9.Y9),g.hH(N))}else{h=new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}h={h0:k,layoutExitSkipTriggers:S,layoutExitUserInputSubmittedTriggers:l,layoutExitUserCancelledTriggers:u,layoutExitMuteTriggers:N, mJ:c,ZN:OC}}}else a:if(Z=IL9(p,Q,F),Z instanceof P)h=Z;else{k=0;S=[];N=[];l=[];u=[];c=[];X=[];A=new Kg({current:null});Tf=new Xe({current:null});OC=!1;YD=[];pS=-1;b=g.t(p);for(q9=b.next();!q9.done;q9=b.next())if(q9=q9.value,g.U(q9,qY)){q9=aLb(q,Q,g.U(q9,qY),O);if(q9 instanceof P){h=q9;break a}q9=q9(f);S.push(q9.G3);N=[].concat(g.hH(q9.KL),g.hH(N));l=[].concat(g.hH(q9.Y9),g.hH(l));q9.b6&&(YD=[q9.b6].concat(g.hH(YD)))}else if(g.U(q9,yA)){pS=zr(g.U(q9,yA),Q,F);if(pS instanceof qI){h=new P(pS);break a}q9= new vh(k,Z);q9=nND(q,pS.layoutId,pS.qh,Q,DY(pS.playerVars,pS.YN,T,J,q9),pS.Fh,d,q9,O(f),Tf,w.get(pS.qh.externalVideoId),void 0,Y);k++;S.push(q9.G3);N=[].concat(g.hH(q9.KL),g.hH(N));l=[].concat(g.hH(q9.Y9),g.hH(l));OC||(X.push(Tf),OC=!0);pS=(pS=pS.qh.adPodSkipTarget)&&pS>0?pS:-1}else if(g.U(q9,vs)){q9=Lob(y,q,Q,g.U(q9,vs),d,k,O,Tf,pS);if(q9 instanceof P){h=q9;break a}q9=q9(f);S.push(q9.G3);N=[].concat(g.hH(q9.KL),g.hH(N));l=[].concat(g.hH(q9.Y9),g.hH(l));q9.b6&&(YD=[q9.b6].concat(g.hH(YD)))}else if(g.U(q9, ju)){if(h===void 0){h=new P("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.U(q9,ju)});break a}q9=SXC(y,q,Q,d,g.U(q9,ju),A,O,h,k,eb(F,"supports_multi_step_on_desktop"));if(q9 instanceof P){h=q9;break a}q9=q9(f);S.push(q9.G3);q9.b6&&YD.push(q9.b6);N=[].concat(g.hH(q9.KL),g.hH(N));l=[].concat(g.hH(q9.Y9),g.hH(l));u=[].concat(g.hH(q9.wO),g.hH(u));c=[].concat(g.hH(q9.uO),g.hH(c));X=[A].concat(g.hH(X))}else if(g.U(q9,QA)){q9=Hgp(y,q,Q,d,g.U(q9,QA), A,O,k);if(q9 instanceof P){h=q9;break a}q9=q9(f);S.push(q9.G3);q9.b6&&YD.push(q9.b6);l=[].concat(g.hH(q9.Y9),g.hH(l))}else{h=new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}h={h0:S,layoutExitSkipTriggers:N,layoutExitUserInputSubmittedTriggers:u,layoutExitUserCancelledTriggers:c,layoutExitMuteTriggers:l,mJ:X,ZN:YD}}h instanceof P?f=h:(c=f.slotId,Z=h.h0,k=h.layoutExitSkipTriggers,S=h.layoutExitMuteTriggers,N=h.layoutExitUserInputSubmittedTriggers,l=h.mJ,f=O(f),u=v?v.layoutType: "LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",c=v?v.layoutId:Bl(q.W.get(),u,c),X={layoutId:c,layoutType:u,bB:"core"},f={layout:{layoutId:c,layoutType:u,WB:new Map,layoutExitNormalTriggers:[new tq(q.K,c)],layoutExitSkipTriggers:k,layoutExitMuteTriggers:S,layoutExitUserInputSubmittedTriggers:N,layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([new xN(Z)].concat(g.hH(l))),L3:f(X)},ZN:h.ZN});return f}}; IL9=function(y,q,Q){var p=[];y=g.t(y);for(var v=y.next();!v.done;v=y.next())if(v=v.value,g.U(v,yA)){v=zr(g.U(v,yA),q,Q);if(v instanceof qI)return new P(v);p.push(v.Fh)}return p}; cNf=function(y,q,Q,p,v,d,T,O){if(!r0D(Q,O===void 0?!1:O))return new P("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:Q});var w=RS(Q);if(w<=0)return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:Q});var J=new Kg({current:null}),F=Yrg(y,q,Q,J,p,d,T);return gNg(y,p,d,w,v,function(Y,f){var h=Y.slotId,b=sk(Q);Y=T(Y);var Z,k=(Z=Pc(q,p,Q.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?Z: Bl(q.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",h);h={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bB:"core"};Z=F(k,f);var S=Qe(Z.clientMetadata,"metadata_type_fulfilled_layout");S||hx("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");b=[new BB(p),new ng(w),new UX(b),J];S&&b.push(new fg(S.layoutType));return{D$p:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",WB:new Map,layoutExitNormalTriggers:[new tq(q.K,k)],layoutExitSkipTriggers:[new L6(q.K, f.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new n6(q.K,f.layoutId)],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb(b),L3:Y(h)},Cc:Z}})}; UcH=function(y){if(!eOg(y))return!1;var q=g.U(y.adVideoStart,yv);return q?g.U(y.linearAd,yA)&&Ph(q)?!0:(hx("Invalid Sandwich with notify"),!1):!1}; rN8=function(y){if(y.linearAds==null)return!1;y=g.U(y.adStart,yv);return y?Ph(y)?!0:(hx("Invalid LASR with notify"),!1):!1}; oN9=function(y){if(!A0i(y))return!1;y=g.U(y.adStart,yv);return y?Ph(y)?!0:(hx("Invalid LASR with notify"),!1):!1}; ql=function(y,q,Q,p,v,d,T,O,w,J){this.Y=y;this.W=q;this.K=Q;this.Yf=p;this.Rl=v;this.N=d;this.JK=T;this.Ze=O;this.l9=w;this.loadPolicy=J===void 0?1:J}; Ek=function(y,q,Q,p,v,d,T,O,w,J,F){var Y=[];if(q.length===0&&p.length===0&&Q.length===0)return Y;q=q.filter(iP);var f=Q.filter(gSC),h=p.filter(iP),b=new Map,Z=rVC(q),k=Q.some(function(Jm){var gg;return(Jm==null?void 0:(gg=Jm.adSlotMetadata)==null?void 0:gg.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),S=Q.some(function(Jm){var gg; return(Jm==null?void 0:(gg=Jm.adSlotMetadata)==null?void 0:gg.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),N=Q.some(function(Jm){var gg; return(Jm==null?void 0:(gg=Jm.adSlotMetadata)==null?void 0:gg.slotType)==="SLOT_TYPE_IN_PLAYER"}),l=Q.some(function(Jm){var gg,M9; return(Jm==null?void 0:(gg=Jm.adSlotMetadata)==null?void 0:gg.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(Jm==null?void 0:(M9=Jm.adSlotMetadata)==null?void 0:M9.slotType)==="SLOT_TYPE_ABOVE_FEED"}),u=Q.some(function(Jm){var gg; return(Jm==null?void 0:(gg=Jm.adSlotMetadata)==null?void 0:gg.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); Q=Q.some(function(Jm){var gg;return(Jm==null?void 0:(gg=Jm.adSlotMetadata)==null?void 0:gg.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(k||S||N||l||u||Q)J=mpi(f,q,O,v,Z,y.Rl.get(),y.loadPolicy,b,y.Yf.get(),y.Y.get(),N,T,w,J,F),J instanceof P?hx(J,void 0,void 0,{contentCpn:v}):Y.push.apply(Y,g.hH(J));J=g.t(q);for(F=J.next();!F.done;F=J.next())F=F.value,Q=ANj(y,b,F,v,d,T,k,O,Z,w,f),Q instanceof P?hx(Q,void 0,void 0,{renderer:F.renderer,config:F.config.adPlacementConfig,kind:F.config.adPlacementConfig.kind,contentCpn:v,daiEnabled:T}):Y.push.apply(Y,g.hH(Q));eAp(y.Yf.get())||(d=B38(y,h,v,O,Z,b),Y.push.apply(Y,g.hH(d)));if(y.N===null|| T&&!O.Lk){var c,X,A;y=O.E9&&q.length===1&&((c=q[0].config)==null?void 0:(X=c.adPlacementConfig)==null?void 0:X.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((A=q[0].renderer)==null?void 0:A.adBreakServiceRenderer);if(!Y.length&&!y){var Tf,OC,pS,YD;hx("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:v,"first APR kind":(Tf=q[0])==null?void 0:(OC=Tf.config)==null?void 0:(pS=OC.adPlacementConfig)==null?void 0:pS.kind,renderer:(YD= q[0])==null?void 0:YD.renderer})}return Y}c=p.filter(iP);Y.push.apply(Y,g.hH(wB8(b,c,y.W.get(),y.N,v,k)));if(!Y.length){var q9,aj,Pp,Fc;hx("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:v,daiEnabled:T.toString(),"first APR kind":(q9=q[0])==null?void 0:(aj=q9.config)==null?void 0:(Pp=aj.adPlacementConfig)==null?void 0:Pp.kind,renderer:(Fc=q[0])==null?void 0:Fc.renderer})}return Y}; B38=function(y,q,Q,p,v,d){function T(f){return OH(y.Rl.get(),f)} var O=[];q=g.t(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var J=w.renderer,F=J.sandwichedLinearAdRenderer,Y=J.linearAdSequenceRenderer;F&&UcH(F)?(hx("Found AdNotify with SandwichedLinearAdRenderer"),Y=g.U(F.adVideoStart,yv),F=g.U(F.linearAd,yA),NY(d,J,w.config.adPlacementConfig.kind),J=void 0,Y=MRS((J=Y)==null?void 0:J.layout.layoutId,y.W.get(),y.K.get(),w.config.adPlacementConfig,w.adSlotLoggingData,F,Q,p,T,v,y.loadPolicy,y.Yf.get(),y.Rl.get()),Y instanceof P?hx(Y):O.push.apply(O,g.hH(Y))): Y&&(!Y.adLayoutMetadata&&rN8(Y)||Y.adLayoutMetadata&&oN9(Y))&&(hx("Found AdNotify with LinearAdSequenceRenderer"),NY(d,J,w.config.adPlacementConfig.kind),J=void 0,F=RAb((J=g.U(Y.adStart,yv))==null?void 0:J.layout.layoutId,y.W.get(),y.K.get(),w.config.adPlacementConfig,w.adSlotLoggingData,Y.linearAds,UL(Y.adLayoutMetadata)?Y.adLayoutMetadata:void 0,Q,p,T,v,y.loadPolicy,y.Yf.get()),F instanceof P?hx(F):O.push.apply(O,g.hH(F)))}return O}; ANj=function(y,q,Q,p,v,d,T,O,w,J,F){function Y(S){return OH(y.Rl.get(),S)} var f=Q.renderer,h=Q.config.adPlacementConfig,b=h.kind,Z=Q.adSlotLoggingData,k=O.Lk&&b==="AD_PLACEMENT_KIND_START";k=d&&!k;if(f.adsEngagementPanelRenderer!=null)return Hc(q,Q.elementId,b,f.adsEngagementPanelRenderer.isContentVideoEngagementPanel,f.adsEngagementPanelRenderer.adVideoId,f.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,h,Z,function(S,N,l,u){var c=y.K.get(),X=S.slotId,A=f.adsEngagementPanelRenderer;S=OH(y.Rl.get(),S);return jG(c,X,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new ud(A),N,l,A.impressionPings,S,f.adsEngagementPanelRenderer.adLayoutLoggingData,u)}),[]; if(f.adsEngagementPanelLayoutViewModel)return Hc(q,Q.elementId,b,f.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,f.adsEngagementPanelLayoutViewModel.adVideoId,f.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,Z,function(S,N,l,u){var c=y.K.get(),X=S.slotId,A=f.adsEngagementPanelLayoutViewModel;S=OH(y.Rl.get(),S);return Qv(c,X,"LAYOUT_TYPE_PANEL",new Ib(A),N,l,S,f.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,u)}),[]; if(f.actionCompanionAdRenderer!=null){if(f.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return vVD(y.W.get(),y.N,y.K.get(),f.actionCompanionAdRenderer,h,Z,p,Y);Hc(q,Q.elementId,b,f.actionCompanionAdRenderer.isContentVideoCompanion,f.actionCompanionAdRenderer.adVideoId,f.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,h,Z,function(S,N,l,u){var c=y.K.get(),X=S.slotId,A=f.actionCompanionAdRenderer;S=OH(y.Rl.get(),S);return jG(c,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new z2(A),N,l,A.impressionPings,S,f.actionCompanionAdRenderer.adLayoutLoggingData,u)})}else if(f.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(f.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return dpi(y.W.get(),y.N,y.K.get(),f.topBannerImageTextIconButtonedLayoutViewModel,h,Z,p,Y); Hc(q,Q.elementId,b,f.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,f.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,f.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,Z,function(S,N,l,u){var c=y.K.get(),X=S.slotId,A=f.topBannerImageTextIconButtonedLayoutViewModel;S=OH(y.Rl.get(),S);return Qv(c,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new D$(A),N,l,S,f.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,u)})}else if(f.imageCompanionAdRenderer)Hc(q, Q.elementId,b,f.imageCompanionAdRenderer.isContentVideoCompanion,f.imageCompanionAdRenderer.adVideoId,f.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,h,Z,function(S,N,l,u){var c=y.K.get(),X=S.slotId,A=f.imageCompanionAdRenderer; S=OH(y.Rl.get(),S);return jG(c,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Ur(A),N,l,A.impressionPings,S,f.imageCompanionAdRenderer.adLayoutLoggingData,u)}); else if(f.bannerImageLayoutViewModel)Hc(q,Q.elementId,b,f.bannerImageLayoutViewModel.isContentVideoCompanion,f.bannerImageLayoutViewModel.adVideoId,f.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,h,Z,function(S,N,l,u){var c=y.K.get(),X=S.slotId,A=f.bannerImageLayoutViewModel;S=OH(y.Rl.get(),S);return Qv(c,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new rH(A),N,l,S,f.bannerImageLayoutViewModel.adLayoutLoggingData,u)}); else if(f.shoppingCompanionCarouselRenderer)Hc(q,Q.elementId,b,f.shoppingCompanionCarouselRenderer.isContentVideoCompanion,f.shoppingCompanionCarouselRenderer.adVideoId,f.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,h,Z,function(S,N,l,u){var c=y.K.get(),X=S.slotId,A=f.shoppingCompanionCarouselRenderer;S=OH(y.Rl.get(),S);return jG(c,X,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new ob(A),N,l,A.impressionPings,S,f.shoppingCompanionCarouselRenderer.adLayoutLoggingData,u)}); else if(f.adBreakServiceRenderer){if(!QbC(Q))return[];if(b==="AD_PLACEMENT_KIND_PAUSE")return jbD(y.W.get(),h,Z,Q.renderer.adBreakServiceRenderer,p);if(b!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&b!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return qrC(y.W.get(),h,Z,Q.renderer.adBreakServiceRenderer,p,v,d);O.E9||hx("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:b,adPlacementConfig:h,daiEnabledForContentVideo:String(d),isServedFromLiveInfra:String(O.E9),clientPlaybackNonce:O.clientPlaybackNonce}); if(b==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!y.JK)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!y.l9)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");y.l9.AY({adPlacementRenderer:Q,contentCpn:p,XD:v});v=y.JK.get().getCurrentTimeSec(1,!1);return GAb(y.W.get(),Q.renderer.adBreakServiceRenderer,h,v,p,Z,d)}if(!y.Ze)return new P("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); y.Ze.AY({adPlacementRenderer:Q,contentCpn:p,XD:v})}else{if(f.clientForecastingAdRenderer)return Ko3(y.W.get(),y.K.get(),h,Z,f.clientForecastingAdRenderer,p,v,Y);if(f.invideoOverlayAdRenderer)return t0b(y.W.get(),y.K.get(),h,Z,f.invideoOverlayAdRenderer,p,v,Y);if(f.instreamAdPlayerOverlayRenderer)return Wo9(y.W.get(),y.K.get(),h,Z,f.instreamAdPlayerOverlayRenderer,p,Y);if((f.linearAdSequenceRenderer||f.instreamVideoAdRenderer)&&k)return a$9(y.W.get(),y.K.get(),Q,p,Y,J,!y.Yf.get().U.T().L("html5_override_ad_video_length_killswitch")); if(f.linearAdSequenceRenderer&&!k){if(T)return[];NY(q,f,b);if(f.linearAdSequenceRenderer.adLayoutMetadata){if(!A0i(f.linearAdSequenceRenderer))return new P("Received invalid LinearAdSequenceRenderer.")}else if(f.linearAdSequenceRenderer.linearAds==null)return new P("Received invalid LinearAdSequenceRenderer.");if(g.U(f.linearAdSequenceRenderer.adStart,yv)){hx("Found AdNotify in LinearAdSequenceRenderer");Q=g.U(f.linearAdSequenceRenderer.adStart,yv);if(!aFf(Q))return new P("Invalid AdMessageRenderer."); d=f.linearAdSequenceRenderer.linearAds;return sGH(y.Y.get(),y.W.get(),y.K.get(),y.Rl.get(),h,Z,Q,UL(f.linearAdSequenceRenderer.adLayoutMetadata)?f.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,p,v,O,Y,w,y.loadPolicy,y.Yf.get())}return upD(y.W.get(),y.K.get(),h,Z,f.linearAdSequenceRenderer.linearAds,UL(f.linearAdSequenceRenderer.adLayoutMetadata)?f.linearAdSequenceRenderer.adLayoutMetadata:void 0,p,v,O,Y,w,y.loadPolicy,y.Yf.get(),F)}if(!f.remoteSlotsRenderer||d){if(f.instreamVideoAdRenderer&& !k){if(T)return[];NY(q,f,b);return I$C(y.W.get(),y.K.get(),h,Z,f.instreamVideoAdRenderer,p,v,O,Y,w,y.loadPolicy,y.Yf.get(),y.Rl.get(),F)}if(f.instreamSurveyAdRenderer)return cNf(y.W.get(),y.K.get(),f.instreamSurveyAdRenderer,h,Z,p,Y,eb(y.Yf.get(),"supports_multi_step_on_desktop"));if(f.sandwichedLinearAdRenderer!=null)return eOg(f.sandwichedLinearAdRenderer)?g.U(f.sandwichedLinearAdRenderer.adVideoStart,yv)?(hx("Found AdNotify in SandwichedLinearAdRenderer"),Q=g.U(f.sandwichedLinearAdRenderer.adVideoStart, yv),aFf(Q)?(d=g.U(f.sandwichedLinearAdRenderer.linearAd,yA))?l$3(Q,d,h,y.Y.get(),y.W.get(),y.K.get(),y.Rl.get(),Z,p,v,O,Y,w,y.loadPolicy,y.Yf.get()):new P("Missing IVAR from Sandwich"):new P("Invalid AdMessageRenderer.")):upD(y.W.get(),y.K.get(),h,Z,[f.sandwichedLinearAdRenderer.adVideoStart,f.sandwichedLinearAdRenderer.linearAd],void 0,p,v,O,Y,w,y.loadPolicy,y.Yf.get()):new P("Received invalid SandwichedLinearAdRenderer.");if(f.videoAdTrackingRenderer!=null)return bg9(y.W.get(),y.K.get(),f.videoAdTrackingRenderer, h,Z,p,v,O.jP,Y)}}return[]}; pZ=function(y,q,Q,p,v,d,T,O){g.I.call(this);var w=this;this.W=y;this.N=q;this.Aj=p;this.JK=v;this.Yf=d;this.Us=T;this.m2=O;this.K=null;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.iB()||Q.get().removeListener(w)}); p.get().addListener(this);this.addOnDisposeCallback(function(){p.iB()||p.get().removeListener(w)})}; Tb=function(y,q,Q){var p=y.JK.get().getCurrentTimeSec(1,!1);y.Yf.get().U.T().U9()&&Ih(y.Us.get(),"sdai","onopp.1;evt."+Q.event+";start."+Q.startSecs.toFixed(3)+";d."+Q.Ey.toFixed(3));J8(y.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var v=y.N.get(),d=q.adPlacementRenderer.renderer.adBreakServiceRenderer,T=q.contentCpn,O=q.adPlacementRenderer.adSlotLoggingData;v$(y.Yf.get());var w=y.Us;var J=v.Yf.get();J=g.wm(J.U.T().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var F=v.Yf.get();var Y=g.wm(F.U.T().experiments,"min_prefetch_offset_sec_for_livestream_optimization");F=Q.startSecs*1E3;F={zn:new S4(F,F+Q.Ey*1E3),DO:!1,cueProcessedMs:p*1E3};var f=Q.startSecs+Q.Ey;if(p===0)F.v9=new S4(0,f*1E3);else{Y=Q.startSecs-Y;var h=Y-p;F.v9=h<=0?new S4(Y*1E3,f*1E3):new S4(Math.floor(p+Math.random()*Math.min(h,J))*1E3,f*1E3)}d=kT(v,d,T,F,O,[new WZ(Q)]);dc(v.Yf.get())&&Ih(w.get(),"abrsm","cpi."+Q.identifier+";cps."+Q.startSecs+";cpd."+Q.Ey+";cts."+p+";rbf."+F.v9.start);w.get().U.GE(Q.startSecs- p,F.v9.start/1E3-p);return[d]})}; Vv=function(y){var q,Q=(q=Qe(y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!Q)return null;q=Qe(y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var p=y.layoutId,v=Qe(y.clientMetadata,"metadata_type_content_cpn"),d=Qe(y.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=Qe(y.clientMetadata,"metadata_type_player_overlay_layout_renderer"),O=Qe(y.clientMetadata,"metadata_type_player_underlay_renderer"),w=Qe(y.clientMetadata, "metadata_type_ad_placement_config"),J=Qe(y.clientMetadata,"metadata_type_video_length_seconds");var F=mo(y.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Qe(y.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):mo(y.clientMetadata,"metadata_type_layout_enter_ms")&&mo(y.clientMetadata,"metadata_type_layout_exit_ms")?(Qe(y.clientMetadata,"metadata_type_layout_exit_ms")-Qe(y.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{El:p,contentCpn:v,Bg:Q,xH:q,instreamAdPlayerOverlayRenderer:d, playerOverlayLayoutRenderer:T,instreamAdPlayerUnderlayRenderer:O,adPlacementConfig:w,videoLengthSeconds:J,qa:F,inPlayerLayoutId:Qe(y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Qe(y.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; igS=function(y,q){return Pyj(y,q)}; XZ8=function(y,q){q=Pyj(y,q);if(!q)return null;var Q;q.qa=(Q=Qe(y.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:Q.adBreakRemainingLengthSeconds;return q}; Pyj=function(y,q){var Q,p=(Q=Qe(y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!p)return null;Q=b1f(y,q);return{pI:hRi(y,q),adPlacementConfig:Qe(y.clientMetadata,"metadata_type_ad_placement_config"),Xd:Q,contentCpn:Qe(y.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Qe(y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Qe(y.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Qe(y.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,qa:void 0,Bg:p,El:y.layoutId,videoLengthSeconds:Qe(y.clientMetadata,"metadata_type_video_length_seconds")}}; Og=function(y,q,Q,p,v,d,T,O,w){g.I.call(this);this.Y=y;this.G=q;this.J=Q;this.N=p;this.K=v;this.W=d;this.Rl=T;this.Yf=O;this.Gy=w;this.Ou=!0}; mcg=function(y,q,Q){return cVg(y.K.get(),q.contentCpn,q.El,function(p){return Upp(y.W.get(),p.slotId,Q,q.adPlacementConfig,q.El,OH(y.Rl.get(),p))})}; wc=function(y,q,Q,p,v,d,T,O){g.I.call(this);this.W=y;this.K=q;this.N=Q;this.Yf=p;this.Y=v;this.Gy=d;this.JK=T;this.y$=O}; J3=function(y){g.I.call(this);this.K=y}; J8=function(y,q,Q,p){y.K().t6(q,p);Q=Q();y=y.K();y.VN.tE("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,p,Q);q=g.t(Q);for(Q=q.next();!Q.done;Q=q.next())a:{p=y;Q=Q.value;p.VN.KF("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Q);p.VN.KF("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",Q);try{var v=p.K;if(g.zu(Q.slotId))throw new P("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Kz(v,Q))throw new P("Duplicate registration for slot.",{slotId:Q.slotId,slotEntryTriggerType:Q.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!v.pU.FQ.has(Q.slotType))throw new P("No fulfillment adapter factory registered for slot of type: "+Q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!v.pU.TE.has(Q.slotType))throw new P("No SlotAdapterFactory registered for slot of type: "+Q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Di(v,"TRIGGER_CATEGORY_SLOT_ENTRY",Q.slotEntryTrigger?[Q.slotEntryTrigger]:[]);Di(v,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", Q.slotFulfillmentTriggers);Di(v,"TRIGGER_CATEGORY_SLOT_EXPIRATION",Q.slotExpirationTriggers);var d=p.K,T=Q.slotType+"_"+Q.slotPhysicalPosition,O=RI(d,T);if(Kz(d,Q))throw new P("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");O.set(Q.slotId,new Vpj(Q));d.K.set(T,O)}catch(Tf){Tf instanceof P&&Tf.MJ?(p.VN.nX("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Tf.MJ,Q),hx(Tf,Q,void 0,void 0,Tf.zJ)):(p.VN.nX("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", Q),hx(Tf,Q));break a}Kz(p.K,Q).G=!0;try{var w=p.K,J=Kz(w,Q),F=Q.slotEntryTrigger,Y=w.pU.k6.get(F.triggerType);Y&&(Y.bV("TRIGGER_CATEGORY_SLOT_ENTRY",F,Q,null),J.m3.set(F.triggerId,Y));for(var f=g.t(Q.slotFulfillmentTriggers),h=f.next();!h.done;h=f.next()){var b=h.value,Z=w.pU.k6.get(b.triggerType);Z&&(Z.bV("TRIGGER_CATEGORY_SLOT_FULFILLMENT",b,Q,null),J.cI.set(b.triggerId,Z))}for(var k=g.t(Q.slotExpirationTriggers),S=k.next();!S.done;S=k.next()){var N=S.value,l=w.pU.k6.get(N.triggerType);l&&(l.bV("TRIGGER_CATEGORY_SLOT_EXPIRATION", N,Q,null),J.j.set(N.triggerId,l))}var u=w.pU.FQ.get(Q.slotType).get().build(w.N,Q);J.X=u;var c=w.pU.TE.get(Q.slotType).get().build(w.J,Q);c.init();J.W=c}catch(Tf){Tf instanceof P&&Tf.MJ?(p.VN.nX("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Tf.MJ,Q),hx(Tf,Q,void 0,void 0,Tf.zJ)):(p.VN.nX("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Q),hx(Tf,Q));hc(p,Q,!0);break a}p.VN.KF("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Q);p.K.z3(Q);for(var X=g.t(p.W),A=X.next();!A.done;A= X.next())A.value.z3(Q);Zi(p,Q)}}; F6=function(y,q,Q,p,v){g.I.call(this);var d=this;this.W=y;this.N=q;this.a7=Q;this.context=v;this.K=new Map;p.get().addListener(this);this.addOnDisposeCallback(function(){p.iB()||p.get().removeListener(d)})}; Pj3=function(y,q){var Q=0x8000000000000,p=0,v=0x8000000000000;var d=g.t(q.slotFulfillmentTriggers);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T instanceof K6){var O=T.K.start;Q=Math.min(Q,O);p=Math.max(p,T.K.end);T.visible&&(v=Math.min(v,O))}else hx("Found unexpected fulfillment trigger for throttled slot.",q,null,{fulfillmentTrigger:T});d=Q;v=v<0x8000000000000&&Q0&&NI(y.G(),Q)}; Rr=function(y,q,Q,p,v){for(var d=[],T=g.t(y.s9.values()),O=T.next();!O.done;O=T.next()){var w=O=O.value,J=w.trigger;w=w.slot;if(J.triggerType===q){if(J instanceof f6||J instanceof hq||J instanceof xj){if(v&&J.breakDurationMs!==Q)continue;if(!v&&J.breakDurationMs===Q)continue;if(p.has(w.slotId))continue}d.push(O)}}d.length>0&&NI(y.G(),d)}; wl2=function(y,q){q=(q.Ey+1)*1E3;var Q=void 0;y=g.t(y.s9.values());for(var p=y.next();!p.done;p=y.next()){var v=p.value;p=v.trigger;v=v.slot;p instanceof f6&&p.breakDurationMs<=q&&(!Q||p.breakDurationMs>Q.trigger.breakDurationMs)&&(Q={slot:v,trigger:p})}return Q}; Jcf=function(y){y=y.adPlacementRenderer.config.adPlacementConfig;if(!y.prefetchModeConfig||!y.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;y=Number(y.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(y)||y<=0?0:Math.floor(Math.random()*y)}; Fa2=function(y){y=y.adPlacementRenderer.config.adPlacementConfig;if(y.prefetchModeConfig&&y.prefetchModeConfig.cacheFetchRefreshDurationMs&&(y=Number(y.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(y)||y<=0)))return y}; sg=function(y){y.K=null;y.s9.clear();y.W&&y.W.stop();y.J&&y.J.stop();var q;(q=y.N)==null||q.stop();delete y.N}; Vb9=function(y){var q=[];y=g.t(y.s9.values());for(var Q=y.next();!Q.done;Q=y.next())Q=Q.value.trigger,Q instanceof f6&&q.push(Q.breakDurationMs);return q}; Ml=function(y){g.I.call(this);this.N=y;this.Ou=!0;this.s9=new Map;this.K=new Map;this.W=new Map}; YH9=function(y,q){var Q=[];if(q=y.K.get(q.layoutId)){q=g.t(q);for(var p=q.next();!p.done;p=q.next())(p=y.W.get(p.value.triggerId))&&Q.push(p)}return Q}; lz=function(y){g.I.call(this);this.K=y;this.s9=new Map}; fi8=function(y,q){for(var Q=[],p=g.t(y.s9.values()),v=p.next();!v.done;v=p.next())v=v.value,v.trigger instanceof p6&&v.trigger.slotId===q&&Q.push(v);Q.length>=1&&NI(y.K(),Q)}; hC8=function(y,q){var Q={slotId:FJ(q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],bB:"surface",clientMetadata:new jb([])},p=Object,v=p.assign;q=Bl(q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Q.slotId);q={layoutId:q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",WB:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], bB:"surface",clientMetadata:new jb([]),L3:Ptb(!1,Q.slotId,Q.slotType,Q.slotPhysicalPosition,Q.bB,Q.slotEntryTrigger,Q.slotFulfillmentTriggers,Q.slotExpirationTriggers,q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return v.call(p,{},y,{W3I:!0,slot:Q,layout:q})}; yVS=function(y,q,Q,p){var v=y.kind;p=p?!1:!y.hideCueRangeMarker;switch(v){case "AD_PLACEMENT_KIND_START":return p={zn:new S4(-0x8000000000000,-0x8000000000000),DO:p},Q!=null&&(p.v9=new S4(-0x8000000000000,-0x8000000000000)),p;case "AD_PLACEMENT_KIND_END":return p={zn:new S4(0x7ffffffffffff,0x8000000000000),DO:p},Q!=null&&(p.v9=new S4(Math.max(0,q-Q),0x8000000000000)),p;case "AD_PLACEMENT_KIND_MILLISECONDS":v=y.adTimeOffset;v.offsetStartMilliseconds||hx("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); v.offsetEndMilliseconds||hx("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");y=Number(v.offsetStartMilliseconds);v=Number(v.offsetEndMilliseconds);v===-1&&(v=q);if(Number.isNaN(y)||Number.isNaN(v)||y>v)return new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:y,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===q&&y-500<=v);p={zn:new S4(y,v),DO:p};if(Q!=null){y=Math.max(0,y-Q);if(y===v)return p;p.v9=new S4(y,v)}return p; default:return new P("AdPlacementKind not supported in convertToRange.",{kind:v,adPlacementConfig:y})}}; bzS=function(y){if(!y||!y.adPlacements&&!y.adSlots)return!1;for(var q=g.t(y.adPlacements||[]),Q=q.next();!Q.done;Q=q.next())if(Q=Q.value)if(Q=Q.adPlacementRenderer,Q!=null&&(Q.config&&Q.config.adPlacementConfig&&Q.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;y=g.t(y.adSlots||[]);for(q=y.next();!q.done;q=y.next()){var p=Q=void 0;if(((Q=g.U(q.value,ta))==null?void 0:(p=Q.adSlotMetadata)==null?void 0:p.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; zb=function(y){this.Yf=y;this.W=new Map;this.K=new Map;this.N=new Map}; FJ=function(y,q){if(D4(y.Yf.get())){var Q=y.W.get(q)||0;Q++;y.W.set(q,Q);return q+"_"+Q}return g.ZX(16)}; Bl=function(y,q,Q){if(D4(y.Yf.get())){var p=y.K.get(q)||0;p++;y.K.set(q,p);return Q+"_"+q+"_"+p}return g.ZX(16)}; Aa=function(y,q){if(D4(y.Yf.get())){var Q=y.N.get(q)||0;Q++;y.N.set(q,Q);return q+"_"+Q}return g.ZX(16)}; $I2=function(y){var q=[new JN(y.El),new by(y.Bg),new BB(y.adPlacementConfig),new tN(y.videoLengthSeconds),new IG(y.qa)];y.instreamAdPlayerOverlayRenderer&&q.push(new yV(y.instreamAdPlayerOverlayRenderer));y.playerOverlayLayoutRenderer&&q.push(new qc(y.playerOverlayLayoutRenderer));y.xH&&q.push(new Xe(y.xH));return q}; KaD=function(y,q,Q,p,v,d){y=Q.inPlayerLayoutId?Q.inPlayerLayoutId:Bl(d,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y);var T,O,w=Q.instreamAdPlayerOverlayRenderer?(T=Q.instreamAdPlayerOverlayRenderer)==null?void 0:T.adLayoutLoggingData:(O=Q.playerOverlayLayoutRenderer)==null?void 0:O.adLayoutLoggingData;T={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bB:q};return{layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",WB:new Map,layoutExitNormalTriggers:[new F$(function(J){return Aa(d, J)},Q.El)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:q,clientMetadata:p,L3:v(T),adLayoutLoggingData:w}}; uz=function(y,q){var Q=this;this.W=y;this.Yf=q;this.K=function(p){return Aa(Q.W.get(),p)}}; Upp=function(y,q,Q,p,v,d){Q=new jb([new j0(Q),new BB(p)]);q=Bl(y.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",q);p={layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bB:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",WB:new Map,layoutExitNormalTriggers:[new F$(function(T){return Aa(y.W.get(),T)},v)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:Q,L3:d(p),adLayoutLoggingData:void 0}}; uE=function(y,q,Q,p,v){var d=$I2(p);return KaD(q,Q,p,new jb(d),v,y.W.get())}; xIp=function(y,q,Q,p,v){var d=$I2(p);d.push(new AV(p.pI));d.push(new eR(p.Xd));return KaD(q,Q,p,new jb(d),v,y.W.get())}; jG=function(y,q,Q,p,v,d,T,O,w,J){q=Bl(y.W.get(),Q,q);var F={layoutId:q,layoutType:Q,bB:"core"},Y=new Map;T&&Y.set("impression",T);T=[new Wh(y.K,v,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];J&&T.push(new Jq(y.K,J,["normal"]));return{layoutId:q,layoutType:Q,WB:Y,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([p,new BB(d),new JN(v)]),L3:O(F),adLayoutLoggingData:w}}; Qv=function(y,q,Q,p,v,d,T,O,w){q=Bl(y.W.get(),Q,q);var J={layoutId:q,layoutType:Q,bB:"core"},F=[new Wh(y.K,v,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];w&&F.push(new Jq(y.K,w,["normal"]));return{layoutId:q,layoutType:Q,WB:new Map,layoutExitNormalTriggers:F,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([p,new BB(d),new JN(v)]),L3:T(J),adLayoutLoggingData:O}}; Bc=function(y,q,Q){var p=[];p.push(new Zc(y.K,Q));q&&p.push(q);return p}; eu=function(y,q,Q,p,v,d,T){var O={layoutId:q,layoutType:Q,bB:"core"};return{layoutId:q,layoutType:Q,WB:new Map,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[new TB(y.K,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([new cB(p),new BB(v)]),L3:d(O),adLayoutLoggingData:p.adLayoutLoggingData}}; MY=function(y,q,Q,p,v,d,T,O){var w={layoutId:q,layoutType:d,bB:"core"};return{layoutId:q,layoutType:d,WB:new Map,layoutExitNormalTriggers:[new F$(y.K,Q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([new BB(p)].concat(g.hH(T))),L3:v(w),adLayoutLoggingData:O}}; Pc=function(y,q,Q,p){if(y.Yf.get().L6(q.kind==="AD_PLACEMENT_KIND_START"))if(Q===void 0)hx("Expected SSAP layout ID in renderer",void 0,void 0,{caller:p});else return Q}; EN8=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f){y=Gr(y,q,Q,v,d,T,O,w,Y,Pc(y,Q,p.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),f);q=y.mJ;Q=new YN(y.D1);p=y.layoutExitSkipTriggers;J>0&&(q.push(Q),q.push(new id(J)),p=[]);q.push(new PB(F));return{G3:{layoutId:y.layoutId,layoutType:y.layoutType,WB:y.WB,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:y.bB,clientMetadata:new jb(q),L3:y.L3, adLayoutLoggingData:y.adLayoutLoggingData},KL:p,Y9:y.layoutExitMuteTriggers,wO:y.layoutExitUserInputSubmittedTriggers,uO:y.layoutExitUserCancelledTriggers,b6:y.b6}}; N3j=function(y,q,Q,p,v,d,T,O,w,J){q=Gr(y,q,Q,p,d,new Map,T,function(F){return O(F,w)},void 0,Pc(y,Q,v.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); y=new n6(y.K,q.D1);Q=new YN(q.D1);J=new PB(J);return{G3:{layoutId:q.layoutId,layoutType:q.layoutType,WB:q.WB,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:q.bB,clientMetadata:new jb([].concat(g.hH(q.mJ),[Q,J])),L3:q.L3,adLayoutLoggingData:q.adLayoutLoggingData},KL:q.layoutExitSkipTriggers,Y9:q.layoutExitMuteTriggers,wO:[].concat(g.hH(q.layoutExitUserInputSubmittedTriggers),[y]),uO:q.layoutExitUserCancelledTriggers, b6:q.b6}}; Gr=function(y,q,Q,p,v,d,T,O,w,J,F){q=J!=null?J:Bl(y.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",q);J={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bB:"adapter"};O=O(q);var Y=Qe(O.clientMetadata,"metadata_type_fulfilled_layout");Y||hx("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var f=Y?Y.layoutId:"";Q=[new BB(Q),new ng(p),new UX(v)];Y&&Q.push(new fg(Y.layoutType));F&&Q.push(new S0(F));return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", WB:d,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new L6(y.K,f)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"adapter",mJ:Q,L3:T(J),adLayoutLoggingData:w,b6:O,D1:f}}; nVg=function(y,q,Q,p,v,d,T,O,w,J,F){y=WaC(y,q,"core",Q,p,v,d,T,O,w,J,void 0,F);return{layoutId:y.layoutId,layoutType:y.layoutType,WB:y.WB,layoutExitNormalTriggers:y.layoutExitNormalTriggers,layoutExitSkipTriggers:y.layoutExitSkipTriggers,layoutExitMuteTriggers:y.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:y.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:y.layoutExitUserCancelledTriggers,bB:y.bB,clientMetadata:new jb(y.cH),L3:y.L3,adLayoutLoggingData:y.adLayoutLoggingData}}; nND=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f){q=WaC(y,q,"adapter",Q,p,v,d,T,O,w,F,Y,f);p=q.layoutExitSkipTriggers;v=q.cH;Q.adPodSkipTarget&&Q.adPodSkipTarget>0&&(v.push(J),v.push(new id(Q.adPodSkipTarget)),p=[]);v.push(new PB(O.adPodIndex));Q.isCritical&&(p=[new Jq(y.K,q.layoutId,["error"])].concat(g.hH(p)));return{G3:{layoutId:q.layoutId,layoutType:q.layoutType,WB:q.WB,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], bB:q.bB,clientMetadata:new jb(v),L3:q.L3,adLayoutLoggingData:q.adLayoutLoggingData},KL:p,Y9:q.layoutExitMuteTriggers,wO:q.layoutExitUserInputSubmittedTriggers,uO:q.layoutExitUserCancelledTriggers}}; WaC=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f){var h={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",bB:Q};v=[new BB(v),new G2(w),new m$(p.externalVideoId),new Co(O),new UX({impressionCommands:p.impressionCommands,abandonCommands:p.onAbandonCommands,completeCommands:p.completeCommands,progressCommands:p.adVideoProgressCommands}),new EX(d),new $N({current:null}),new tN(T)];(d=p.playerOverlay.instreamAdPlayerOverlayRenderer)&&v.push(new yV(d));(T=p.playerOverlay.playerOverlayLayoutRenderer)&&v.push(new qc(T)); Y&&v.push(new kN(Y));(Y=p.playerUnderlay)&&v.push(new j0(Y));O=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER");Y=(Y=d?d.elementId:T==null?void 0:T.layoutId)?Y:Bl(y.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",O);v.push(new YN(Y));v.push(new hN(O));v.push(new S0(w.adPodIndex));p.adNextParams&&v.push(new no(p.adNextParams));p.shrunkenPlayerBytesConfig&&v.push(new vZ(p.shrunkenPlayerBytesConfig));p.clickthroughEndpoint&&v.push(new gH(p.clickthroughEndpoint));p.legacyInfoCardVastExtension&&v.push(new g3(p.legacyInfoCardVastExtension)); p.sodarExtensionData&&v.push(new Lg(p.sodarExtensionData));F&&v.push(new uy(F));v.push(new AN(Zm(p.pings)));w=t8(p.pings);if(f){a:{f=g.t(f);for(F=f.next();!F.done;F=f.next())if(F=F.value,F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(d=g.U(F.fulfillmentContent.fulfilledLayout,Ja))&&(d=g.U(d.renderingContent,Ok))&&d.associatedPlayerBytesLayoutId===q){f=F;break a}f=void 0}f&&v.push(new QV(f))}return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",WB:w,layoutExitNormalTriggers:[new tq(y.K,q)],layoutExitSkipTriggers:p.skipOffsetMilliseconds? [new L6(y.K,Y)]:[],layoutExitMuteTriggers:[new L6(y.K,Y)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:Q,cH:v,L3:J(h),adLayoutLoggingData:p.adLayoutLoggingData}}; Srb=function(y,q,Q,p,v,d,T,O,w){p.every(function(F){return Cg(F,[],["LAYOUT_TYPE_MEDIA"])})||hx("Unexpect subLayout type for DAI composite layout"); q=Bl(y.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",q);var J={layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bB:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",WB:new Map,layoutExitNormalTriggers:[new Yj(y.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],bB:"core",clientMetadata:new jb([new aG(Q),new Nc(O),new xN(p),new BB(v),new Mc(d),new HZ({}),new BZ(w)]),L3:T(J)}}; EVf=function(y){return y!=null}; Ir=function(y,q,Q){var p=this;this.W=y;this.N=q;this.Yf=Q;this.K=function(v){return Aa(p.W.get(),v)}}; GAb=function(y,q,Q,p,v,d,T){if(!Q.prefetchModeConfig)return new P("AdPlacementConfig for Live Prefetch is missing prefetch_config");Q=Q.prefetchModeConfig;p*=1E3;var O=[];if(!Q.breakLengthMs)return new P("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var w=g.t(Q.breakLengthMs),J=w.next();!J.done;J=w.next())if(J=J.value,Number(J)>0){var F=p+Number(Q.startTimeOffsetMs),Y=F+Number(Q.cacheFetchSmearingDurationMs);J={zn:new S4(Y,Y+Number(J)),DO:!1,v9:new S4(Math.floor(F+Math.random()* Number(Q.cacheFetchSmearingDurationMs)),Y),cueProcessedMs:p?p:F};F=[];F.push(new Xp({}));Y=[];Y.push(new kj(y.K));Y.push(new fF9(y.K));T&&F.push(new HZ({}));O.push(kT(y,q,v,J,d,F,Y))}return O}; kT=function(y,q,Q,p,v,d,T){d=d===void 0?[]:d;var O=FJ(y.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");T||(T=[],p.v9&&p.v9.start!==p.zn.start&&T.push(new K6(y.K,Q,new S4(p.v9.start,p.zn.start),!1)),T.push(new K6(y.K,Q,new S4(p.zn.start,p.zn.end),p.DO)));p={getAdBreakUrl:q.getAdBreakUrl,qL:p.zn.start,jd:p.zn.end,cueProcessedMs:p.cueProcessedMs};q=new Hh(y.K,O);d=[new zA(p)].concat(g.hH(d));return{slotId:O,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:T, slotExpirationTriggers:[new EL(y.K,Q),new N8(y.K,O),new SV(y.K,O)],bB:"core",clientMetadata:new jb(d),adSlotLoggingData:v}}; tbp=function(y,q,Q){var p=[];Q=g.t(Q);for(var v=Q.next();!v.done;v=Q.next())p.push(Zz9(y,q,v.value));return p}; Zz9=function(y,q,Q){return Q.triggeringSlotId!=null&&Q.triggeringSlotId===y?Q.clone(q):Q}; F$8=function(y,q,Q,p,v){return Eti(y,q,Q,p,v)}; kAg=function(y,q,Q,p){var v=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER");return Eti(y,v,q,Q,p)}; Eti=function(y,q,Q,p,v){var d=new w7(y.K,Q),T=[new a6(y.K,q)];y=[new N8(y.K,q),new EL(y.K,p)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(v({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:y},Q))]),adSlotLoggingData:void 0}}; gNg=function(y,q,Q,p,v,d){var T=FJ(y.W.get(),"SLOT_TYPE_PLAYER_BYTES"),O=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER"),w=Bl(y.W.get(),"LAYOUT_TYPE_SURVEY",O);p=nZ(y,q,Q,p);var J=[new a6(y.K,T)];Q=[new N8(y.K,T),new EL(y.K,Q),new TB(y.K,w)];if(p instanceof P)return p;O=d({slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:p,slotFulfillmentTriggers:J,slotExpirationTriggers:Q},{slotId:O,layoutId:w});d=O.D$p;O=O.Cc;return[{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:XE(y,q,T,p),slotFulfillmentTriggers:mA(y,q,T,J),slotExpirationTriggers:Q,bB:"core",clientMetadata:new jb([new ly(d),new GA(CF(q)),new iy({zm:y.zm(q)})]),adSlotLoggingData:v},O]}; CF=function(y){return y.kind==="AD_PLACEMENT_KIND_START"}; gV9=function(y,q,Q,p,v){v=v?v:FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER");Q=new w7(y.K,Q);var d=[new a6(y.K,v)];y=[new EL(y.K,q),new N8(y.K,v)];return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:d,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(p({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:d,slotExpirationTriggers:y}))])}}; cVg=function(y,q,Q,p){var v=FJ(y.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");Q=new w7(y.K,Q);var d=[new a6(y.K,v)];y=[new EL(y.K,q),new N8(y.K,v)];return{slotId:v,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:d,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(p({slotId:v,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:d,slotExpirationTriggers:y}))])}}; sbg=function(y,q,Q,p,v,d,T){var O=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER"),w=Bl(y.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",O);p=kmi(y,p,d,T,w);if(p instanceof P)return p;T=[new a6(y.K,O)];v=[new EL(y.K,d),new a6(y.K,v),new I6(y.K,v)];Q=OH(Q,{slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:p,slotFulfillmentTriggers:T,slotExpirationTriggers:v});y=y.N.get();d={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bB:"core"};q={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", WB:new Map,layoutExitNormalTriggers:[new tdi(y.K,w,q.durationMs)],layoutExitSkipTriggers:[new ks9(y.K,w,q.durationMs)],layoutExitUserCancelledTriggers:[new ESi(y.K,w)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],bB:"core",clientMetadata:new jb([new cZ(q)]),L3:Q(d)};return{slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:p,slotFulfillmentTriggers:T,slotExpirationTriggers:v,clientMetadata:new jb([new ly(q)])}}; Zg2=function(y,q,Q,p,v,d){q=nZ(y,q,Q,p);if(q instanceof P)return q;var T=q instanceof K6?new xs9(y.K,Q,q.K):null;p=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER");var O=[new a6(y.K,p)];y=[new EL(y.K,Q),new N8(y.K,p)];d=d({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:q,slotFulfillmentTriggers:O,slotExpirationTriggers:y},T);return d instanceof qI?new P(d):{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:O,slotExpirationTriggers:y, bB:"core",clientMetadata:new jb([new ly(d)]),adSlotLoggingData:v}}; xcf=function(y,q,Q,p){var v=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER"),d=new d7(y.K,q),T=[new uP(y.K,v)];y=[new EL(y.K,q),new N8(y.K,v)];return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(p({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:y}))]),adSlotLoggingData:Q}}; K$i=function(y,q,Q,p){var v=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER");Q=new w7(y.K,Q);var d=[new a6(y.K,v)],T=[new N8(y.K,v),new EL(y.K,q)];d={slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:d,slotExpirationTriggers:T};return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:[new a6(y.K,v)],slotExpirationTriggers:[new EL(y.K,q),new N8(y.K,v)],bB:"core",clientMetadata:new jb([new ly(p(d))])}}; hBb=function(y,q,Q,p,v){var d=FJ(y.W.get(),"SLOT_TYPE_IN_PLAYER");Q=new OL(y.K,p,Q);p=[new a6(y.K,d)];y=[new EL(y.K,q)];return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:p,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(v({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:p,slotExpirationTriggers:y}))])}}; Ooj=function(y,q,Q,p,v,d){var T=FJ(y.W.get(),q);return c$(y,T,q,new w7(y.K,p),[new EL(y.K,Q),new N8(y.K,T),new Jq(y.K,p,["error"])],v,d)}; VRi=function(y,q,Q,p,v,d,T){var O=FJ(y.W.get(),q);return c$(y,O,q,new Jq(y.K,v,["normal"]),[new EL(y.K,Q),new N8(y.K,O),new Jq(y.K,p,["error"])],d,T)}; pB8=function(y,q,Q,p,v){var d=FJ(y.W.get(),q);return c$(y,d,q,new d7(y.K,Q),[new EL(y.K,Q),new N8(y.K,d)],p,v)}; hA9=function(y,q,Q,p,v){Q=Q?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var d=FJ(y.W.get(),Q);q=new d7(y.K,q);var T=[new a6(y.K,d)];y=[new N8(y.K,d)];return{slotId:d,slotType:Q,slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:T,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(v({slotId:d,slotType:Q,slotPhysicalPosition:1,bB:"core",slotEntryTrigger:q,slotFulfillmentTriggers:T,slotExpirationTriggers:y}))]),adSlotLoggingData:p}}; k2C=function(y,q,Q,p){var v=FJ(y.W.get(),"SLOT_TYPE_PLAYER_BYTES"),d=new bP(y.K),T=[new uP(y.K,v)];y=[new EL(y.K,q)];return{slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(p({slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:y})),new HZ({})]),adSlotLoggingData:Q}}; zAD=function(y,q){return eAp(y.Yf.get())?new Jq(y.K,q,["normal","error","skipped"]):new Jq(y.K,q,["normal"])}; Dpf=function(y,q,Q,p,v){q=zAD(y,q);y=iE(y,q,Q);v=v({slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:y.slotEntryTrigger,slotFulfillmentTriggers:y.slotFulfillmentTriggers,slotExpirationTriggers:y.slotExpirationTriggers,bB:y.bB});return v instanceof P?v:{Hd:Object.assign({},y,{clientMetadata:new jb([new ly(v.layout)]),adSlotLoggingData:p}),ZN:v.ZN}}; uej=function(y,q,Q,p,v,d,T){Q=Dcs(y,q,Q,p);if(Q instanceof P)return Q;T=T({slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:Q.slotEntryTrigger,slotFulfillmentTriggers:Q.slotFulfillmentTriggers,slotExpirationTriggers:Q.slotExpirationTriggers,bB:Q.bB});if(T instanceof P)return T;p=[new GA(CF(q)),new ly(T.layout),new iy({zm:y.zm(q)})];d&&p.push(new r3({}));return{Hd:{slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:XE(y, q,Q.slotId,Q.slotEntryTrigger),slotFulfillmentTriggers:mA(y,q,Q.slotId,Q.slotFulfillmentTriggers),slotExpirationTriggers:Q.slotExpirationTriggers,bB:Q.bB,clientMetadata:new jb(p),adSlotLoggingData:v},ZN:T.ZN}}; XE=function(y,q,Q,p){return y.Yf.get().L6(CF(q))?new p6(y.K,Q):p}; mA=function(y,q,Q,p){return y.Yf.get().L6(CF(q))?[new uP(y.K,Q)]:p}; iE=function(y,q,Q){var p=FJ(y.W.get(),"SLOT_TYPE_PLAYER_BYTES"),v=[new a6(y.K,p)];y=[new N8(y.K,p),new EL(y.K,Q)];return{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:v,slotExpirationTriggers:y,bB:"core"}}; Dcs=function(y,q,Q,p){q=nZ(y,q,Q,p);return q instanceof P?q:iE(y,q,Q)}; $c8=function(y,q,Q,p,v,d){var T=FJ(y.W.get(),"SLOT_TYPE_FORECASTING");q=nZ(y,q,Q,p);if(q instanceof P)return q;p=[new a6(y.K,T)];y=[new N8(y.K,T),new EL(y.K,Q)];return{slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:p,slotExpirationTriggers:y,bB:"core",clientMetadata:new jb([new ly(d({slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,bB:"core",slotEntryTrigger:q,slotFulfillmentTriggers:p,slotExpirationTriggers:y}))]),adSlotLoggingData:v}}; La8=function(y,q,Q,p,v){var d=!q.hideCueRangeMarker;switch(q.kind){case "AD_PLACEMENT_KIND_START":return new d7(y.K,Q);case "AD_PLACEMENT_KIND_MILLISECONDS":return y=yVS(q,p),y instanceof P?y:v(y.zn,d);case "AD_PLACEMENT_KIND_END":return new Vy(y.K,Q,d);default:return new P("Cannot construct entry trigger",{kind:q.kind})}}; kmi=function(y,q,Q,p,v){return La8(y,q,Q,p,function(d,T){return new KwC(y.K,Q,d,T,v)})}; nZ=function(y,q,Q,p){return La8(y,q,Q,p,function(v,d){return new K6(y.K,Q,v,d)})}; c$=function(y,q,Q,p,v,d,T){y=[new uP(y.K,q)];return{slotId:q,slotType:Q,slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:y,slotExpirationTriggers:v,bB:"core",clientMetadata:new jb([new ly(T({slotId:q,slotType:Q,slotPhysicalPosition:1,bB:"core",slotEntryTrigger:p,slotFulfillmentTriggers:y,slotExpirationTriggers:v}))]),adSlotLoggingData:d}}; D$g=function(){}; Ug=function(y,q){g.I.call(this);this.Yf=y;this.K=q;this.eventCount=0;this.W=uY8()()}; ai2=function(y,q,Q){if(q){var p=q.adLayoutLoggingData;g.C_(g.qb(),function(){y.W!=null&&p&&g.wU("adsSeenClientLogging",{serializedAdServingDataEntry:p.serializedAdServingDataEntry})},Q!=null?Q:0)}}; rc=function(y,q,Q,p){Ug.call(this,y,q);this.Yf=y;this.Gy=Q;this.context=p}; or=function(){this.K=new Map}; A3=function(y){this.K="pending";this.W=[];this.N=[];try{y(this.Y.bind(this),this.reject.bind(this))}catch(q){this.reject(q)}}; NmS=function(){var y,q;return{yh:new A3(function(Q,p){y=Q;q=p}), resolve:y,reject:q}}; Gb=function(y){return eG(y)?y:B$(y)?new A3(function(q,Q){y.then(q,Q)}):new A3(function(q){q(y)})}; SH9=function(y){return new A3(function(q,Q){Q(y)})}; P$=function(y){try{return Gb(y())}catch(q){return SH9(q)}}; X6=function(y,q,Q){var p=NmS(),v=p.yh,d=p.resolve,T=p.reject;y.W.push(function(O){if(q)try{var w=q(O);d(w)}catch(J){T(J)}else d(O)}); y.N.push(function(O){if(Q)try{var w=Q(O);d(w)}catch(J){T(J)}else T(O)}); iz(y);return v}; mh=function(y,q){return X6(y,void 0,q)}; iz=function(y){if(y.K==="fulfilled"){var q=y.W;y.W=[];y.N=[];q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q(y.result)}else if(y.K==="rejected")for(q=y.N,y.W=[],y.N=[],q=g.t(q),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q(y.error)}; CZ=function(y,q){return HzH(q.call(y))}; y7=function(y){return function Q(){return Ij(Q,function(p){if(p.K==1)return g.kD(p,2),g.R(p,{yh:Gb(y)},4);if(p.K!=2)return p.return(p.W);g.l8(p);return g.zf(p,0)})}()}; HzH=function(y){return P$(function(){return qm(y,y.next())})}; qm=function(y,q){return q.done?Gb(q.value):mh(X6(q.value.yh,function(Q){return qm(y,y.next(Q))}),function(Q){return qm(y,y.throw(Q))})}; RC3=function(y){return new A3(function(q){g.ro(q,y)})}; Mb3=function(){var y=y===void 0?2E3:y;var q=q===void 0?15:q;var Q=Q===void 0?5:Q;var p=p===void 0?2:p;return window&&"requestIdleCallback"in window?new A3(function(v){requestIdleCallback(function(){v()},{timeout:y})}):sI2(y,q,Q,p)}; sI2=function(y,q,Q,p){return CZ(void 0,function(){return function d(){var T,O,w,J,F,Y,f,h;return Ij(d,function(b){switch(b.K){case 1:g.kD(b,2),T=performance.now(),O=T+y,w=0,J=T;case 4:if(!(wO){b.ej(2);break}f=J+q;h=Y-f;h0;q=[];if(p){v=(new Intl.NumberFormat("en-u-nu-latn")).format(v);var d=["fr"],T="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); v="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(jl)?v.replace(",","\u00a0"):d.includes(jl)?v.replace(",","\u202f"):T.includes(jl)?v.replace(",","."):v;q.push(v)}p=p===void 0?!1:p;Q=(["af","be","lt"].includes(jl)||p)&&Q<10?lip().format(Q):(new Intl.NumberFormat("en-u-nu-latn")).format(Q);q.push(Q);Q=lip().format(y);q.push(Q);Q=":";"da fi id si sr sr-Latn".split(" ").includes(jl)&&(Q=".");return q.join(Q)}; lip=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; zCC=function(y,q){var Q,p;y=((Q=y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(p=Q.videoAuthorizationToken)==null?void 0:p.credentialTransferTokens)||[];for(Q=0;Qq;y=Q}else y=!1;return y}; g.xF=function(y,q){return y.Vf+"timedtext_video?ref=player&v="+q.videoId}; g.CFp=function(y){var q=this;this.videoData=y;y={};this.K=(y.c1a=function(){var Q=[];if(g.$F.isInitialized()){var p="";q.videoData&&q.videoData.CP&&(p=q.videoData.CP+("&r1b="+q.videoData.clientPlaybackNonce));var v={};p=(v.atr_challenge=p,v);gY("bg_v",void 0,"player_att");(p=mIf(p))?(gY("bg_s",void 0,"player_att"),Q.push("r1a="+p)):(gY("bg_e",void 0,"player_att"),Q.push("r1c=2"))}else gY("bg_e",void 0,"player_att"),window.trayride||window.botguard?Q.push("r1c=1"):Q.push("r1c=4");Q.push("r1d="+g.$F.getState()); return Q.join("&")},y.c6a=function(Q){return"r6a="+(Number(Q.c)^pr())},y.c6b=function(Q){return"r6b="+(Number(Q.c)^Number(g.XY("CATSTAT",0)))},y); this.videoData&&this.videoData.CP?this.fX=vF(this.videoData.CP):this.fX={}}; g.y8C=function(y){if(y.videoData&&y.videoData.CP){for(var q=[y.videoData.CP],Q=g.t(Object.keys(y.K)),p=Q.next();!p.done;p=Q.next())p=p.value,y.fX[p]&&y.K[p]&&(p=y.K[p](y.fX))&&q.push(p);return q.join("&")}return null}; g.W_=function(y,q){XlC(y,{dTB:g.wm(q.experiments,"bg_vm_reinit_threshold"),cspNonce:q.cspNonce,Vf:q.Vf||""})}; qTb=function(){var y=XMLHttpRequest.prototype.fetch;return!!y&&y.length===3}; jDD=function(y){y=y[V[3]](V[19]);Zk[V[23]](y,36);Zk[V[23]](y,20);Zk[V[7]](y,1);Zk[V[23]](y,57);Zk[V[67]](y,54);Zk[V[7]](y,2);return y[V[17]](V[19])}; p19=function(y){QDb=2592E3*(y||1)}; vrb=function(y){g.DW("yt-player-bandwidth",y,2592E3)}; to=function(y){y=y===void 0?QDb:y;if(y>0&&!(mvi()>(0,g.SK)()-y*1E3))return 0;y=g.uw("yt-player-quality");if(typeof y==="string"){if(y=g.A7[y],y>0)return y}else if(y instanceof Object)return y.quality;return 0}; E1=function(){var y=g.uw("yt-player-proxima-pref");return y==null?null:y}; dVb=function(){var y=g.uw("yt-player-quality");if(y instanceof Object&&y.quality&&y.previousQuality){if(y.quality>y.previousQuality)return 1;if(y.quality0&&q[0]?y.getAutoplayPolicy(q[0]):y.getAutoplayPolicy("mediaelement");if(fm8[Q])return fm8[Q]}}catch(p){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Rt=function(y){return y.QY||y.KU||y.mutedAutoplay}; h18=function(y,q){return Rt(y)?q!==1&&q!==2&&q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":y.Pu?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; btb=function(y,q,Q){var p=q.T();y.thirdParty||(y.thirdParty={});p.ancestorOrigins&&(y.thirdParty.embeddedPlayerContext=Object.assign({},y.thirdParty.embeddedPlayerContext,{ancestorOrigins:p.ancestorOrigins}));p.CF!=null&&(y.thirdParty.embeddedPlayerContext=Object.assign({},y.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(p.CF)}));p.ID&&(y.thirdParty.embeddedPlayerContext=Object.assign({},y.thirdParty.embeddedPlayerContext,{visibilityFractionSource:p.ID}));y.thirdParty.embeddedPlayerContext= Object.assign({},y.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:H_(),autoplayIntended:Rt(q),autoplayStatus:h18(q,Q)})}; $V2=function(y){var q=[];y=g.t(y.split(","));for(var Q=y.next();!Q.done;Q=y.next()){var p=Q.value;p&&((Q=p.startsWith("!"))&&(p=p.substring(1)),p=p.split("-"),p.length<3||q.push({hB:p[0],platform:p[1],deviceVersion:p[2],Fx:Q}))}return q}; WPj=function(y){return $V2(y).map(function(q){return{deviceInterface:KPC[xVH[q.hB]]||0,deviceVersion:q.deviceVersion||"",isSleeping:q.Fx}})}; g.s1=function(y,q){this.id=y;this.ZG=q;this.captionTracks=[];this.N=this.Y=null;this.xtags="";this.J=!1;this.K=null;this.W="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";y=this.ZG.id.split(".");y.length>1&&(this.J=y[1]==="2")}; Mm=function(y,q,Q,p,v){this.W=y;this.K=q;this.N=Q;this.reason=p;this.jj=v===void 0?0:v}; g.lH=function(y,q,Q,p){return new Mm(g.A7[y]||0,g.A7[q]||0,Q,p)}; Dk=function(y){if(zW&&y.jj)return!1;var q=g.A7.auto;return y.W===q&&y.K===q}; It=function(y){return uH[y.K||y.W]||"auto"}; Ztp=function(y,q){q=g.A7[q];return y.W<=q&&(!y.K||y.K>=q)}; n3=function(y,q,Q,p){this.videoInfos=y;this.K=q;this.audioTracks=[];this.W=p||[];if(this.K){y=new Set;Q==null||Q({ainfolen:this.K.length});q=g.t(this.K);for(p=q.next();!p.done;p=q.next())if(p=p.value,!p.ZG||y.has(p.ZG.id)){var v=void 0,d=void 0,T=void 0;(T=Q)==null||T({atkerr:!!p.ZG,itag:p.itag,xtag:p.K,lang:((v=p.ZG)==null?void 0:v.name)||"",langid:((d=p.ZG)==null?void 0:d.id)||""})}else v=new g.s1(p.id,p.ZG),y.add(p.ZG.id),this.audioTracks.push(v);Q==null||Q({atklen:this.audioTracks.length})}}; gz=function(){g.I.apply(this,arguments);this.K=null}; LPp=function(y,q,Q,p,v,d,T){if(y.K)return y.K;var O={},w=new Set,J={};if(c_(p)){for(var F in p.K)p.K.hasOwnProperty(F)&&(y=p.K[F],J[y.info.nK]=[y.info]);return J}F=tw2(q,p,O);d&&v({aftsrt:U1(F)});for(var Y={},f=g.t(Object.keys(F)),h=f.next();!h.done;h=f.next()){h=h.value;for(var b=g.t(F[h]),Z=b.next();!Z.done;Z=b.next()){Z=Z.value;var k=Z.itag,S=void 0,N=h+"_"+(((S=Z.video)==null?void 0:S.fps)||0);Y.hasOwnProperty(N)?Y[N]===!0?J[h].push(Z):O[k]=Y[N]:(S=rz(q,Z,Q,p.isLive,w),S!==!0?(T.add(h),O[k]=S, S==="disablevp9hfr"&&(Y[N]="disablevp9hfr")):(J[h]=J[h]||[],J[h].push(Z),Y[N]=!0))}}d&&v({bfflt:U1(J)});for(var l in J)J.hasOwnProperty(l)&&(p=l,J[p]&&J[p][0].V5()&&(J[p]=J[p],J[p]=ErH(q,J[p],O),J[p]=k0i(J[p],O)));d&&Object.keys(O).length>0&&v({rjr:Zr(O)});q=g.t(w.values());for(p=q.next();!p.done;p=q.next())(p=Q.Y.get(p.value))&&--p.WZ;d&&v({aftflt:U1(J)});y.K=g.jL(J,function(u){return!!u.length}); return y.K}; NCS=function(y,q,Q,p,v,d,T,O){O=O===void 0?!1:O;if(q.Kg&&T&&T.length>1&&!(q.Jz>0||q.C)){for(var w=q.W||!!v,J=w&&q.Aw?d:void 0,F=tw2(q,p),Y=[],f=[],h={},b=0;b0&&h&&f&&(F=[T,Q],u=f.concat(h).filter(function(c){return c})); if(u.length&&!q.Hp){el(u,F);if(w){w=[];q=g.t(u);for(p=q.next();!p.done;p=q.next())w.push(p.value.itag);d({hbdfmt:w.join(".")})}return ub(new n3(u,v,J,y))}u=Im9(q);u=g.ZC(u,O);if(!u){if(Y[T])return d=Y[T],el(d),ub(new n3(d,v,J,y));w&&d({novideo:1});return D1()}q.BT&&(u==="1"||u==="1h")&&Y[Q]&&(T=B_(Y[u]),F=B_(Y[Q]),F>T?u=Q:F===T&&nrj(Y[Q])&&(u=Q));u==="9"&&Y.h&&B_(Y.h)>B_(Y["9"])&&(u="h");q.RH&&p.isLive&&u==="("&&Y.H&&B_(Y["("])<1440&&(u="H");w&&d({vfmly:GW(u)});q=Y[u];if(!q.length)return w&&d({novfmly:GW(u)}), D1();el(q);return ub(new n3(q,v,J,y))}; Ht3=function(y,q){var Q=!(!y.m&&!y.M),p=!(!y.mac3&&!y.MAC3),v=!(!y.meac3&&!y.MEAC3);y=!(!y.i&&!y.I);q.zf=y;return Q||p||v||y}; nrj=function(y){y=g.t(y);for(var q=y.next();!q.done;q=y.next())if(q=q.value,q.itag&&grj.has(q.itag))return!0;return!1}; sDH=function(y){y=g.t(y);for(var q=y.next();!q.done;q=y.next())if(q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; GW=function(y){switch(y){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return y}}; U1=function(y){var q=[],Q;for(Q in y)if(y.hasOwnProperty(Q)){var p=Q;q.push(GW(p));p=g.t(y[p]);for(var v=p.next();!v.done;v=p.next())q.push(v.value.itag)}return q.join(".")}; STg=function(y,q,Q,p,v,d){var T={},O={};g.qO(q,function(w,J){w=w.filter(function(F){var Y=F.itag;if(!F.Uy)return O[Y]="noenc",!1;if(d.XL&&F.nK==="(h"&&d.cB)return O[Y]="lichdr",!1;if(!y.J&&F.nK==="1e")return O[Y]="noav1enc",!1;if(F.nK==="("||F.nK==="(h"){if(y.N&&Q&&Q.flavor==="widevine"){var f=F.mimeType+"; experimental=allowed";(f=!!F.Uy[Q.flavor]&&!!Q.K[f])||(O[Y]=F.Uy[Q.flavor]?"unspt":"noflv");return f}if(!P_(y,iH.CRYPTOBLOCKFORMAT)&&!y.gp||y.m3)return O[Y]=y.m3?"disvp":"vpsub",!1}return Q&&F.Uy[Q.flavor]&& Q.K[F.mimeType]?!0:(O[Y]=Q?F.Uy[Q.flavor]?"unspt":"noflv":"nosys",!1)}); w.length&&(T[J]=w)}); p&&Object.entries(O).length&&v({rjr:Zr(O)});return T}; k0i=function(y,q){var Q=tl(y,function(p,v){return v.video.fps>32?Math.min(p,v.video.width):p},Infinity); Q32||p.video.widthy.G)return"max"+y.G;if(y.Dw&&q.nK==="h"&&q.video&&q.video.qualityOrdinal>1080)return"blkhigh264";if(q.nK==="(h"&&!Q.X)return"enchdr";if((p===void 0?0:p)&&j2(q)&&!y.vI)return"blk51live";if((q.nK==="MAC3"||q.nK==="mac3")&&!y.Y)return"blkac3";if((q.nK==="MEAC3"||q.nK==="meac3")&&!y.J)return"blkeac3";if(q.nK==="M"||q.nK==="m")return"blkaac51"; if((q.nK==="so"||q.nK==="sa")&&!y.cI)return"blkamb";if(!y.XL&&nzf(q)&&(!Q.J||q.nK!=="1e"))return"cbc";if(!Q.J&&nzf(q)&&q.nK==="1e")return"cbcav1";if((q.nK==="i"||q.nK==="I")&&!y.T8)return"blkiamf";var d;if(y.hw&&((d=q.audio)==null?void 0:d.W)===!0)return"blkvbcabr";var T,O;if(y.Ty&&(q.nK==="1"||q.nK==="1h"||Q.J&&q.nK==="1e")&&((T=q.video)==null?0:T.qualityOrdinal)&&((O=q.video)==null?void 0:O.qualityOrdinal)>y.Ty)return"av1cap";p=Q.Y.get(q.nK);if(!y.Se&&p&&p.WZ>0)return v.add(q.nK),"byerr";var w; if((w=q.video)==null?0:w.fps>32){if(!Q.Sj&&!P_(Q,iH.FRAMERATE))return"capHfr";if(y.BI&&q.video.qualityOrdinal>=4320)return"blk8khfr";if(Xm(q)&&y.cn&&q.Uy&&q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(y.jj&&q.jj>y.jj)return"ratecap";if(y.m3>0&&q.V5()&&q.video.height>y.m3)return"mvhcap";y=c8b(Q,q);return y!==!0?y:!0}; el=function(y,q){q=q===void 0?[]:q;g.Pe(y,function(Q,p){var v=p.jj-Q.jj;if(!Q.V5()||!p.V5())return v;var d=p.video.height*p.video.width-Q.video.height*Q.video.width;!d&&q&&q.length>0&&(Q=q.indexOf(Q.nK)+1,p=q.indexOf(p.nK)+1,d=Q===0||p===0?p||-1:Q-p);d||(d=v);return d})}; g.X0=function(y,q){this[V[35]]=y;this[V[65]]=q===void 0?!1:q;this[V[54]]=this[V[5]]=this[V[38]]=V[19];this[V[26]]={};this[V[52]]=V[19]}; C3=function(y){m2(y);return y[V[54]]}; yP=function(y){return y[V[35]]?y[V[35]][V[11]](V[22]):y[V[38]]===V[22]}; UVj=function(y){m2(y);return g.vK(y[V[26]],function(q){return q!==null})}; qf=function(y){m2(y);var q=decodeURIComponent(y[V[47]](V[9])||V[19])[V[3]](V[73]);return y[V[5]]===V[37]&&q[V[13]]>1&&!!q[1]}; jM=function(y,q){q=q===void 0?!1:q;m2(y);if(y[V[5]]!==V[37]){var Q=y[V[21]]();Q[V[18]](V[40],V[56]);return Q}var p=y[V[39]]();Q=new g.To(p);var v=y[V[47]](V[76]),d=decodeURIComponent(y[V[47]](V[9])||V[19])[V[3]](V[73]);if(v&&d&&d[V[13]]>1&&d[1])return p=Q.K,y=p[V[50]](/^[^.]*/,V[19]),g.Oa(Q,(p[V[24]](V[14])===0?V[14]:V[46])+v+V[2]+d[1]+y),Q=new g.X0(Q[V[31]]()),Q[V[18]](V[30],V[56]),Q;if(q)return Q=y[V[21]](),Q[V[18]](V[30],V[56]),Q;v=Q.K[V[12]](V[68]);Q.K[V[12]](V[70])?(g.Oa(Q,V[63]),p=Q[V[31]]()): Q.K[V[12]](V[49])?(g.Oa(Q,V[80]),p=Q[V[31]]()):(Q=HD9(p),iF(Q)&&(p=Q));Q=new g.X0(p);Q[V[18]](V[78],V[56]);v&&Q[V[18]](V[85],V[61]);return Q}; m2=function(y){if(y[V[35]]){if(!(iF(y[V[35]])||y[V[35]][V[11]](V[22])||y[V[35]][V[11]](V[81])||y[V[35]][V[11]](V[77])))throw new g.GH(V[25],y[V[35]]);var q=g.b6(y[V[35]]);y[V[38]]=q.J;y[V[54]]=q.K+(q.N!=null?V[86]+q.N:V[19]);var Q=q.W;if(Q[V[11]](V[37]))y[V[5]]=V[37],Q=Q[V[20]](14);else if(Q[V[11]](V[29]))y[V[5]]=V[29],Q=Q[V[20]](13);else if(Q[V[11]](V[69])){var p=Q[V[24]](V[58],12),v=Q[V[24]](V[58],p+1);p>0&&v>0?(y[V[5]]=Q[V[20]](0,v),Q=Q[V[20]](v+1)):(y[V[5]]=Q,Q=V[19])}else y[V[5]]=Q,Q=V[19];p= y[V[26]];y[V[26]]=r8S(Q);Object[V[75]](y[V[26]],org(q.Y.toString()));Object[V[75]](y[V[26]],p);y[V[26]][V[36]]===V[43]&&(delete y[V[26]][V[36]],y[V[5]]+=V[55]);y[V[35]]=V[19];y[V[52]]=V[19];y[V[65]]&&(m2(y),q=y[V[26]][V[34]]||null)&&(q=A83[0](q),y[V[18]](V[34],q))}}; e1j=function(y){m2(y);var q=y[V[38]]+(y[V[38]]?V[6]:V[64])+y[V[54]]+y[V[5]];if(UVj(y)){var Q=[];g.qO(y[V[26]],function(p,v){p!==null&&Q[V[1]](v+V[42]+p)}); q+=V[74]+Q[V[17]](V[8])}return q}; r8S=function(y){y=y[V[3]](V[58]);var q=0;y[0]||q++;for(var Q={};q0?BCs(q,p[V[20]](0,v),p[V[20]](v+1)):p&&(q[p]=V[19])}return q}; BCs=function(y,q,Q){if(q===V[72]){var p;(p=Q[V[24]](V[42]))>=0?(q=V[4]+Q[V[20]](0,p),Q=Q[V[20]](p+1)):(p=Q[V[24]](V[66]))>=0&&(q=V[4]+Q[V[20]](0,p),Q=Q[V[20]](p+3))}y[q]=Q}; QP=function(y){var q=g.U(y,G0i)||y[V[82]];y={nN:!1,BS:V[19],hf:V[19],s:V[19]};if(!q)return y;q=vF(q);y[V[83]]=!0;y[V[45]]=q[V[52]];y[V[28]]=q[V[33]];y[V[59]]=q[V[59]];return y}; pm=function(y,q,Q,p,v,d,T,O,w){this.Qm=y;this.startTime=q;this.duration=Q;this.ingestionTime=p;this.sourceURL=v;this.u6=w;this.endTime=q+Q;this.K=T||0;this.range=d||null;this.pending=O||!1;this.u6=w||null}; g.vY=function(){this.segments=[];this.K=null;this.W=!0;this.N=""}; PBb=function(y,q){if(q>y.D3())y.segments=[];else{var Q=We(y.segments,function(p){return p.Qm>=q},y); Q>0&&y.segments.splice(0,Q)}}; ds=function(y,q,Q,p,v){v=v===void 0?!1:v;this.data=y;this.offset=q;this.size=Q;this.type=p;this.K=(this.W=v)?0:8;this.dataOffset=this.offset+this.K}; Ta=function(y){var q=y.data.getUint8(y.offset+y.K);y.K+=1;return q}; VP=function(y){var q=y.data.getUint16(y.offset+y.K);y.K+=2;return q}; OE=function(y){var q=y.data.getInt32(y.offset+y.K);y.K+=4;return q}; ws=function(y){var q=y.data.getUint32(y.offset+y.K);y.K+=4;return q}; J1=function(y){var q=y.data;var Q=y.offset+y.K;q=q.getUint32(Q)*4294967296+q.getUint32(Q+4);y.K+=8;return q}; Fg=function(y,q){q=q===void 0?NaN:q;if(isNaN(q))var Q=y.size;else for(Q=y.K;Q1?Math.ceil(v*q):Math.floor(v*q))}y.skip(1);Q=Ta(y)<<16|VP(y);if(Q&256){p=Q&1;v=Q&4;var d=Q&512,T=Q&1024,O=Q&2048;Q=ws(y);p&&y.skip(4);v&&y.skip(4);p=(d?4:0)+(T?4:0)+(O?4:0);for(v=0;v1?Math.ceil(T*q):Math.floor(T*q)),y.skip(p)}}}; WY=function(y){y=new DataView(y.buffer,y.byteOffset,y.byteLength);return(y=g.Km(y,0,1836476516))?g.xw(y):NaN}; TZi=function(y){var q=g.Km(y,0,1937011556);if(!q)return null;q=ZH(y,q.dataOffset+8,1635148593)||ZH(y,q.dataOffset+8,1635135537);if(!q)return null;var Q=ZH(y,q.dataOffset+78,1936995172),p=ZH(y,q.dataOffset+78,1937126244);if(!p)return null;q=null;if(Q)switch(Q.skip(4),Ta(Q)){default:q=0;break;case 1:q=2;break;case 2:q=1;break;case 3:q=255}var v=Q=null,d=null;if(p=ZH(y,p.dataOffset,1886547818)){var T=ZH(y,p.dataOffset,1886546020),O=ZH(y,p.dataOffset,2037673328);if(!O&&(O=ZH(y,p.dataOffset,1836279920), !O))return null;T&&(T.skip(4),Q=OE(T)/65536,d=OE(T)/65536,v=OE(T)/65536);y=it8(O);y=new DataView(y.buffer,y.byteOffset+8,y.byteLength-8);return new vpi(q,Q,d,v,y)}return null}; ZH=function(y,q,Q){for(;t1(y,q);){var p=EE(y,q);if(p.type===Q)return p;q+=p.size}return null}; g.Km=function(y,q,Q){for(;t1(y,q);){var p=EE(y,q);if(p.type===Q)return p;q=kw(p.type)?q+8:q+p.size}return null}; g.Lm=function(y){if(y.data.getUint8(y.dataOffset)){var q=y.data;y=y.dataOffset+4;q=q.getUint32(y)*4294967296+q.getUint32(y+4)}else q=y.data.getUint32(y.dataOffset+4);return q}; EE=function(y,q){var Q=y.getUint32(q),p=y.getUint32(q+4);return new ds(y,q,Q,p)}; g.xw=function(y){var q=y.data.getUint8(y.dataOffset)?20:12;return y.data.getUint32(y.dataOffset+q)}; V6g=function(y){y=new ds(y.data,y.offset,y.size,y.type,y.W);var q=Ta(y);y.skip(7);var Q=ws(y);if(q===0){q=ws(y);var p=ws(y)}else q=J1(y),p=J1(y);y.skip(2);for(var v=VP(y),d=[],T=[],O=0;O122)return!1}return!0}; kw=function(y){return y===1701082227||y===1836019558||y===1836019574||y===1835297121||y===1835626086||y===1937007212||y===1953653094||y===1953653099||y===1836475768}; ON3=function(y){y.skip(4);return{eGB:Fg(y,0),value:Fg(y,0),timescale:ws(y),BP3:ws(y),eventDuration:ws(y),id:ws(y),mX:Fg(y),offset:y.offset}}; g.wsH=function(y){var q=ZH(y,0,1701671783);if(!q)return null;var Q=ON3(q),p=Q.eGB;Q=$w(Q.mX);if(y=ZH(y,q.offset+q.size,1701671783))if(y=ON3(y),y=$w(y.mX),Q&&y){q=g.t(Object.keys(y));for(var v=q.next();!v.done;v=q.next())v=v.value,Q[v]=y[v]}return Q?new b0(Q,p):null}; aW=function(y,q){for(var Q=ZH(y,0,q);Q;){var p=Q;p.type=1936419184;p.data.setUint32(p.offset+4,1936419184);Q=ZH(y,Q.offset+Q.size,q)}}; g.Nf=function(y,q){for(var Q=0,p=[];t1(y,Q);){var v=EE(y,Q);v.type===q&&p.push(v);Q=kw(v.type)?Q+8:Q+v.size}return p}; J79=function(y,q){var Q=g.Km(y,0,1937011556),p=g.Km(y,0,1953654136);if(!Q||!p||y.getUint32(Q.offset+12)>=2)return null;var v=new DataView(q.buffer,q.byteOffset,q.length),d=g.Km(v,0,1937011556);if(!d)return null;q=v.getUint32(d.dataOffset+8);p=v.getUint32(d.dataOffset+12);if(p!==1701733217&&p!==1701733238)return null;p=new X19(y.byteLength+q);Yw(p,y,0,Q.offset+12);p.data.setInt32(p.offset,2);p.offset+=4;Yw(p,y,Q.offset+16,Q.size-16);Yw(p,v,v.byteOffset+d.dataOffset+8,q);Yw(p,y,Q.offset+Q.size,y.byteLength- (Q.offset+Q.size));Q=g.t([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(v=Q.next();!v.done;v=Q.next())v=g.Km(y,0,v.value),p.data.setUint32(v.offset,v.size+q);y=g.Km(p.data,0,1953654136);p.data.setUint32(y.offset+16,2);return p.data}; FIs=function(y){var q=g.Km(y,0,1937011556);if(!q)return null;var Q=y.getUint32(q.dataOffset+12);if(Q!==1701733217&&Q!==1701733238)return null;q=ZH(y,q.offset+24+(Q===1701733217?28:78),1936289382);if(!q)return null;Q=ZH(y,q.offset+8,1935894637);if(!Q||y.getUint32(Q.offset+12)!==1667392371)return null;q=ZH(y,q.offset+8,1935894633);if(!q)return null;q=ZH(y,q.offset+8,1952804451);if(!q)return null;Q=new Uint8Array(16);for(var p=0;p<16;p++)Q[p]=y.getInt8(q.offset+16+p);return Q}; SM=function(y,q){this.K=y;this.pos=0;this.start=q||0}; HY=function(y){return y.pos>=y.K.byteLength}; za=function(y,q,Q){var p=new SM(Q);if(!RW(p,y))return!1;p=sE(p);if(!Mf(p,q))return!1;for(y=0;q;)q>>>=8,y++;q=p.start+p.pos;var v=l0(p,!0);p=y+(p.start+p.pos-q)+v;p=p>9?YUi(p-9,8):YUi(p-2,1);y=q-y;Q.setUint8(y++,236);for(q=0;qQ;v++)Q=Q*256+gs(y),p*=128;return q?Q-p:Q}; u0=function(y){var q=l0(y,!0);y.pos+=q}; bN3=function(y){if(!Mf(y,440786851,!0))return null;var q=y.pos;l0(y,!1);var Q=l0(y,!0)+y.pos-q;y.pos=q+Q;if(!Mf(y,408125543,!1))return null;l0(y,!0);if(!Mf(y,357149030,!0))return null;var p=y.pos;l0(y,!1);var v=l0(y,!0)+y.pos-p;y.pos=p+v;if(!Mf(y,374648427,!0))return null;var d=y.pos;l0(y,!1);var T=l0(y,!0)+y.pos-d,O=new Uint8Array(Q+12+v+T),w=new DataView(O.buffer);O.set(new Uint8Array(y.K.buffer,y.K.byteOffset+q,Q));w.setUint32(Q,408125543);w.setUint32(Q+4,33554431);w.setUint32(Q+8,4294967295); O.set(new Uint8Array(y.K.buffer,y.K.byteOffset+p,v),Q+12);O.set(new Uint8Array(y.K.buffer,y.K.byteOffset+d,T),Q+12+v);return O}; cY=function(y){var q=y.pos;y.pos=0;var Q=1E6;RW(y,[408125543,357149030,2807729])&&(Q=DH(y));y.pos=q;return Q}; $Lj=function(y,q){var Q=y.pos;y.pos=0;if(y.K.getUint8(y.pos)!==160&&!UE(y)||!Mf(y,160))return y.pos=Q,NaN;l0(y,!0);var p=y.pos;if(!Mf(y,161))return y.pos=Q,NaN;l0(y,!0);gs(y);var v=gs(y)<<8|gs(y);y.pos=p;if(!Mf(y,155))return y.pos=Q,NaN;p=DH(y);y.pos=Q;return(v+p)*q/1E9}; UE=function(y){if(!KIs(y)||!Mf(y,524531317))return!1;l0(y,!0);return!0}; KIs=function(y){if(y.Gn()){if(!Mf(y,408125543))return!1;l0(y,!0)}return!0}; RW=function(y,q){for(var Q=0;Q0){var p=org(q.substring(Q+1));g.qO(p,function(v,d){this.set(d,v)},y); q=q.substring(0,Q)}q=r8S(q);g.qO(q,function(v,d){this.set(d,v)},y)}; WI2=function(y){var q=y.l4.i6(),Q=[];g.qO(y.K,function(v,d){Q.push(d+"="+v)}); if(!Q.length)return q;var p=Q.join("&");y=UVj(y.l4)?"&":"?";return q+y+p}; oW=function(y,q){var Q=new g.X0(q);(q=Q.get("req_id"))&&y.set("req_id",q);g.qO(y.K,function(p,v){Q["set"](v,null)}); return Q}; ZN3=function(){this.Y=this.N=this.K=this.timedOut=this.started=this.J=this.W=0}; A1=function(y){y.J=(0,g.SK)();y.started=0;y.timedOut=0;y.K=0}; eM=function(y,q){var Q=y.started+y.K*4;q&&(Q+=y.N);Q=Math.max(0,Q-3);return Math.pow(1.6,Q)}; BY=function(y,q){y[q]||(y[q]=new ZN3);return y[q]}; Ga=function(y){this.j=this.X=this.J=this.N=0;this.C=this.G=!1;this.K=y;this.W=y.clone()}; t6j=function(y,q,Q){if(yP(y.K))return!1;var p=BY(Q,C3(y.K));if(p.timedOut<1&&p.K<1)return!1;p=p.timedOut+p.K;y=PY(y,q);Q=BY(Q,C3(y));return Q.timedOut+Q.K+01?q=q.w4:(Q=BY(Q,Xg(y,y.PJ(q,Q),q)),q=Math.max(y.J,Q.timedOut)+q.jc*(y.N-y.J)+.25*y.X,q=q>3?1E3*Math.pow(1.6,q-3):0);return q===0?!0:y.j+q<(0,g.SK)()}; Ep2=function(y,q,Q){y.K.set(q,Q);y.W.set(q,Q);y.Y&&y.Y.set(q,Q)}; kwC=function(y,q,Q,p,v){++y.N;q&&++y.J;C3(Q.l4).startsWith("redirector.")&&(y.K=y.W.clone(),delete y.Y,p.Pu&&delete v[C3(y.K)])}; Cm=function(y){return y?(y.itag||"")+";"+(y.lmt||0)+";"+(y.xtags||""):""}; yF=function(y,q,Q,p){this.initRange=Q;this.indexRange=p;this.K=null;this.N=!1;this.G=0;this.Y=this.fb=this.W=null;this.info=q;this.uj=new Ga(y)}; qX=function(y,q){this.start=y;this.end=q;this.length=q-y+1}; jE=function(y){y=y.split("-");var q=Number(y[0]),Q=Number(y[1]);if(!isNaN(q)&&!isNaN(Q)&&y.length===2&&(y=new qX(q,Q),!isNaN(y.start)&&!isNaN(y.end)&&!isNaN(y.length)&&y.length>0))return y}; QF=function(y,q){return new qX(y,y+q-1)}; LIj=function(y){return y.end==null?{start:String(y.start)}:{start:String(y.start),end:String(y.end)}}; p5=function(y){if(!y)return new qX(0,0);var q=Number(y.start);y=Number(y.end);if(!isNaN(q)&&!isNaN(y)&&(q=new qX(q,y),q.length>0))return q}; vj=function(y,q,Q,p,v,d,T,O,w,J,F,Y){p=p===void 0?"":p;this.type=y;this.K=q;this.range=Q;this.source=p;this.lH=F;this.clipId=Y===void 0?"":Y;this.j=[];this.X="";this.Qm=-1;this.cI=0;this.X=p;this.Qm=v>=0?v:-1;this.startTime=d||0;this.duration=T||0;this.W=O||0;this.N=w>=0?w:this.range?this.range.length:NaN;this.Y=this.range?this.W+this.N===this.range.length:J===void 0?!!this.N:J;this.range?(this.J=this.startTime+this.duration*this.W/this.range.length,this.C=this.duration*this.N/this.range.length,this.G= this.J+this.C):ar8(this)}; ar8=function(y){y.J=y.startTime;y.C=y.duration;y.G=y.J+y.C}; NZH=function(y,q,Q){var p=!(!q||q.K!==y.K||q.type!==y.type||q.Qm!==y.Qm);return Q?p&&!!q&&(y.range&&q.range?q.range.end===y.range.end:q.range===y.range)&&q.W+q.N===y.W+y.N:p}; dB=function(y){return y.type===1||y.type===2}; TJ=function(y){return y.type===3||y.type===6}; VF=function(y,q){return y.K===q.K?y.range&&q.range?y.range.start+y.W+y.N===q.range.start+q.W:y.Qm===q.Qm?y.W+y.N===q.W:y.Qm+1===q.Qm&&q.W===0&&y.Y:!1}; HNp=function(y,q){return y.Qm!==q.Qm&&q.Qm!==y.Qm+1||y.type!==q.type?!1:VF(y,q)?!0:Math.abs(y.J-q.J)<=1E-6&&y.Qm===q.Qm?!1:SUj(y,q)}; SUj=function(y,q){return VF(y,q)||Math.abs(y.G-q.J)<=1E-6||y.Qm+1===q.Qm&&q.W===0&&y.Y?!0:!1}; OV=function(y){return y.Qm+(y.Y?1:0)}; RNf=function(y){y.length===1||g.Zn(y,function(Q){return!!Q.range}); for(var q=1;q=q.range.start+q.W&&y.range.start+y.W+y.N<=q.range.start+q.W+q.N:y.Qm===q.Qm&&y.W>=q.W&&(y.W+y.N<=q.W+q.N||q.Y)}; Irf=function(y,q){return y.K!==q.K?!1:y.type===4&&q.type===3&&y.K.iF()?(y=y.K.g3(y),XH(y,function(Q){return Irf(Q,q)})):y.Qm===q.Qm&&!!q.N&&q.W+q.N>y.W&&q.W+q.N<=y.W+y.N}; Jy=function(y,q){var Q=q.Qm;y.X="updateWithSegmentInfo";y.Qm=Q;if(y.startTime!==q.startTime||y.duration!==q.duration)y.startTime=q.startTime+0,y.duration=q.duration,ar8(y)}; Ff=function(y,q){var Q=this;this.CK=y;this.Y=this.K=null;this.J=this.ea=NaN;this.PJ=this.requestId=null;this.je={Ljj:function(){return Q.range}}; this.uj=y[0].K.uj;this.W=q||"";this.CK[0].range&&this.CK[0].N>0&&(sZ8(y)?(this.range=RNf(y),this.N=this.range.length):(this.range=this.CK[this.CK.length-1].range,this.N=M63(y)))}; Ya=function(y){return!dB(y.CK[y.CK.length-1])}; f5=function(y){return y.CK[y.CK.length-1].type===4}; g.hy=function(y,q,Q){Q=y.PJ===null?y.uj.PJ(q,Q,y.CK[0].type):y.PJ;if(y.K){q=Q?jM(y.K,q.CL):y.K;var p=new rs(q);p.get("alr")||p.set("alr","yes");y.W&&xLS(p,y.W)}else/http[s]?:\/\//.test(y.W)?p=new rs(new g.X0(y.W)):(p=i0(y.uj,Q,q),y.W&&xLS(p,y.W));(q=y.range)?p.set("range",q.toString()):y.CK[0].K.D6()&&y.CK.length===1&&y.CK[0].W&&p.set("range",y.CK[0].W+"-");y.requestId&&p.set("req_id",y.requestId);isNaN(y.ea)||p.set("headm",y.ea.toString());isNaN(y.J)||p.set("mffa",y.J+"ms");y.urlParams&&g.qO(y.urlParams, function(v,d){p.set(d,v)}); return p}; npD=function(y){if(y.range)return y.N;y=y.CK[0];return Math.round(y.C*y.K.info.jj)}; gpC=function(y,q){return Math.max(0,y.CK[0].J-q)}; bq=function(y,q,Q,p,v,d){d=d===void 0?0:d;yF.call(this,y,q,p,void 0);this.J=Q;this.nV=d;this.index=v||new g.vY}; c7g=function(y,q,Q,p,v){this.Qm=y;this.startSecs=q;this.Ey=Q;this.K=p||NaN;this.W=v||NaN}; $a=function(y,q,Q){for(;y;y=y.parentNode)if(y.attributes&&(!Q||y.nodeName===Q)){var p=y.getAttribute(q);if(p)return p}return""}; K5=function(y,q){for(;y;y=y.parentNode){var Q=y.getElementsByTagName(q);if(Q.length>0)return Q[0]}return null}; ULD=function(y){if(!y)return 0;var q=y.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return q?(Number(q[2])|0)*3600+(Number(q[4])|0)*60+(Number(q[6])|0):Number(y)|0}; r79=function(y){return y.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?y+"Z":y}; xa=function(){this.K=[];this.W=null;this.G=0;this.N=[];this.J=!1;this.X="";this.Y=-1}; op3=function(y){var q=y.N;y.N=[];return q}; A78=function(){this.Y=[];this.K=null;this.W={};this.N={}}; PN3=function(y,q){var Q=[];q=Array.from(q.getElementsByTagName("SegmentTimeline"));q=g.t(q);for(var p=q.next();!p.done;p=q.next()){p=p.value;var v=p.parentNode.parentNode,d=null;v.nodeName==="Period"?d=eNS(y):v.nodeName==="AdaptationSet"?(v=v.getAttribute("id")||v.getAttribute("mimetype")||"",d=BZ9(y,v)):v.nodeName==="Representation"&&(v=v.getAttribute("id")||"",d=Gw3(y,v));if(d==null)return;d.update(p);g.nh(Q,op3(d))}g.nh(y.Y,Q);asp(y.Y,function(T){return T.startSecs*1E3+T.K})}; iN8=function(y){y.K&&(y.K.K=[]);g.qO(y.W,function(q){q.K=[]}); g.qO(y.N,function(q){q.K=[]})}; eNS=function(y){y.K||(y.K=new xa);return y.K}; BZ9=function(y,q){y.W[q]||(y.W[q]=new xa);return y.W[q]}; Gw3=function(y,q){y.N[q]||(y.N[q]=new xa);return y.N[q]}; Z3=function(y){var q=y===void 0?{}:y;y=q.nV===void 0?0:q.nV;var Q=q.fL===void 0?!1:q.fL;var p=q.jW===void 0?0:q.jW;var v=q.Q5===void 0?0:q.Q5;var d=q.rS===void 0?Infinity:q.rS;var T=q.XK===void 0?0:q.XK;var O=q.Gf===void 0?!1:q.Gf;q=q.N3===void 0?!1:q.N3;g.vY.call(this);this.wY=this.k0=-1;this.pn=y;this.jW=p;this.fL=Q;this.Q5=v;this.rS=d;this.XK=T;((this.Gf=O)||isFinite(d)&&this.rS>0)&&Q&&Wj&&(this.W=!1,this.N="postLive");this.N3=q}; ty=function(y,q){return Be(y.segments,function(Q){return q-Q.Qm})}; EV=function(y,q,Q){Q=Q===void 0?{}:Q;bq.call(this,y,q,"",void 0,void 0,Q.nV||0);this.index=new Z3(Q)}; ka=function(y,q,Q){yF.call(this,y,q);this.J=Q;y=this.index=new g.vY;y.W=!1;y.N="d"}; Xs9=function(y,q,Q){var p=y.index.lP(q),v=y.index.getStartTime(q),d=y.index.getDuration(q);Q?d=Q=0:Q=y.info.jj*d;return new Ff([new vj(3,y,void 0,"otfCreateRequestInfoForSegment",q,v,d,0,Q)],p)}; mLD=function(y,q){if(!y.index.isLoaded()){var Q=[],p=q.Y;q=q.J.split(",").filter(function(F){return F.length>0}); for(var v=0,d=0,T=0,O=/^(\d+)/,w=/r=(\d+)/,J=0;J0&&(v.K=Math.min(v.K+T,10),v.W=d);v.K>0?(v.K--,v=!0):v=!1;if(v)typeof p==="function"&&(p=p()),console.log("plyr."+q,p);else{var O;p=((O=pb2.get(q))!=null?O:0)+1;pb2.set(q,p);p%100===1&&console.warn("plyr","plyr."+q+" is chatty, dropping logs.")}}}; QJC=function(){this.K=10;this.W=Date.now()}; NX=function(y,q){this.info=y;this.W=q;this.K=null;this.Y=this.N=-1;this.timestampOffset=0;this.isLocked=this.G=!1;this.J=this.info.K.sV()&&!this.info.W}; g.SE=function(y){return PIj(y.W)}; vAi=function(y,q){q=Math.min(q,y.info.N);var Q=y.W.split(q),p=Q.tM;Q=new NX(new vj(y.info.type,y.info.K,y.info.range,y.info.X,y.info.Qm,y.info.startTime,y.info.duration,y.info.W,q,!1,y.info.lH,y.info.clipId),Q.uq);Q.Y=y.Y;Q.N=y.N;q=new NX(new vj(y.info.type,y.info.K,y.info.range,y.info.X,y.info.Qm,y.info.startTime,y.info.duration,y.info.W+q,y.info.N-q,y.info.Y,y.info.lH,y.info.clipId),p);q.Y=y.Y;q.N=y.N;return[Q,q]}; g.Hj=function(y,q,Q,p){Q=Q===void 0?!1:Q;p=p===void 0?0:p;if(y.isLocked||q.isLocked||!VF(y.info,q.info)||y.info.Y)return null;if(p){if(y.W.totalLength+q.W.totalLength>p)return null}else if(Q&&(Q=y.W,p=q.W,Q=!(p.K.length?BWi(Q,p.K[0]):1)),Q)return null;Q=new vj(y.info.type,y.info.K,y.info.range,y.info.X,y.info.Qm,y.info.startTime,y.info.duration,y.info.W,y.info.N,y.info.Y,y.info.lH,y.info.clipId);p=q.info;Q.N+=p.N;Q.range&&(Q.C+=p.C);Q.G=p.G;Q.Y=p.Y;p=new Fx;YS(p,y.W);YS(p,q.W);Q=new NX(Q,p);Q.K!= null&&q.K!=null&&g.a8("dash",414627957,"merged slice emsg overridden; prev: "+Q.K.Vc()+" next: "+q.K.Vc());Q.K=q.K||y.K;Q.N=y.N!==-1?y.N:q.N;Q.Y=y.Y!==-1?y.Y:q.Y;return Q}; g.R8=function(y){g.QR(y.info.K.info)||y.info.K.info.al();if(y.N!==-1)return y.N;if(y.K&&y7H(y.K))return y.N=y7H(y.K),y.N;if(g.QR(y.info.K.info)){var q=g.SE(y);for(var Q=y.info.K.K,p=NaN,v=NaN,d=0;t1(q,d);){var T=EE(q,d);T.type===1936286840?v=T.data.getUint32(T.dataOffset+8):T.type===1836476516?v=g.xw(T):T.type===1952867444&&isNaN(p)&&(p=g.Lm(T));d=kw(T.type)?d+8:d+T.size}!v&&Q&&(v=WY(Q));q=p/v}else q=new SM(g.SE(y)),Q=y.J?q:new SM(new DataView(y.info.K.K.buffer)),p=cY(Q),Q=q.pos,q.pos=0,UE(q)?Mf(q, 231)?(p=DH(q)*p/1E9,q.pos=Q,q=p):(q.pos=Q,q=NaN):(q.pos=Q,q=NaN);y.N=q||y.info.J;return y.N}; TQ2=function(y,q){y.timestampOffset>0&&(q-=y.timestampOffset);var Q=g.R8(y)+q;d6g(y,Q);y.timestampOffset=q}; d6g=function(y,q){g.QR(y.info.K.info)||y.info.K.info.al();y.N=q;if(g.QR(y.info.K.info)){var Q=g.SE(y);y=y.info.K.K;for(var p=NaN,v=NaN,d=0;t1(Q,d);){var T=EE(Q,d);isNaN(p)&&(T.type===1936286840?p=T.data.getUint32(T.dataOffset+8):T.type===1836476516&&(p=g.xw(T)));if(T.type===1952867444){!p&&y&&(p=WY(y));var O=g.Lm(T);isNaN(v)&&(v=Math.round(q*p)-O);var w=T;O+=v;if(w.data.getUint8(w.dataOffset)){var J=w.data;w=w.dataOffset+4;J.setUint32(w,Math.floor(O/4294967296));J.setUint32(w+4,O&4294967295)}else w.data.setUint32(w.dataOffset+ 4,O)}d=kw(T.type)?d+8:d+T.size}return!0}Q=new SM(g.SE(y));y=y.J?Q:new SM(new DataView(y.info.K.K.buffer));p=cY(y);y=Q.pos;Q.pos=0;if(UE(Q)&&Mf(Q,231))if(v=l0(Q,!0),q=Math.floor(q*1E9/p),Math.ceil(Math.log(q)/Math.log(2)/8)>v)q=!1;else{for(p=v-1;p>=0;p--)Q.K.setUint8(Q.pos+p,q&255),q>>>=8;Q.pos=y;q=!0}else q=!1;return q}; MX=function(y,q){q=q===void 0?!1:q;var Q=sV(y);y=q?0:y.info.C;return Q||y}; sV=function(y){g.QR(y.info.K.info)||y.info.K.info.al();if(y.K&&y.info.type===6)return y.K.nV;if(g.QR(y.info.K.info)){var q=g.SE(y);var Q=0;q=g.Nf(q,1936286840);q=g.t(q);for(var p=q.next();!p.done;p=q.next())p=V6g(p.value),Q+=p.mE[0]/p.timescale;Q=Q||NaN;if(!(Q>=0))a:{Q=g.SE(y);q=y.info.K.K;for(var v=p=0,d=0;t1(Q,p);){var T=EE(Q,p);if(T.type===1836476516)v=g.xw(T);else if(T.type===1836019558){!v&&q&&(v=WY(q));if(!v){Q=NaN;break a}var O=ZH(T.data,T.dataOffset,1953653094),w=O;O=v;var J=ZH(w.data,w.dataOffset, 1952868452);w=ZH(w.data,w.dataOffset,1953658222);var F=OE(J);OE(J);F&2&&OE(J);J=F&8?OE(J):0;var Y=OE(w),f=Y&1;F=Y&4;var h=Y&256,b=Y&512,Z=Y&1024;Y&=2048;var k=ws(w);f&&OE(w);F&&OE(w);for(var S=f=0;S2048?"":q.indexOf("https://")===0?q:""}; n5=function(y,q,Q){q.match(K8C);return y(q,Q).then(function(p){var v=g.$69(p.xhr);return v?n5(y,v,Q):p.xhr})}; rB=function(y,q,Q){y=y===void 0?"":y;q=q===void 0?null:q;Q=Q===void 0?!1:Q;g.V6.call(this);var p=this;this.sourceUrl=y;this.isLivePlayback=Q;this.HI=this.duration=0;this.isPremiere=this.Gf=this.Y=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.rS=this.Q5=0;this.isOtf=this.E9=!1;this.LK=(0,g.SK)();this.N$=Infinity;this.K={};this.N=new Map;this.state=this.Bt=0;this.X=null;this.isManifestless=!1;this.Sj=[];this.J=null;this.Es=0;this.G="";this.vI=NaN;this.gp=this.Se=this.timestampOffset=this.C=0;this.dk= this.R2=NaN;this.XL=0;this.Vm=this.cI=!1;this.Ty=[];this.BI={};this.m3=NaN;this.je={tWs:function(O){gB(p,O)}}; var v;this.Dw=(v=q)==null?void 0:v.ob("html5_use_network_error_code_enums");x6C=!!q&&q.ob("html5_modern_vp9_mime_type");var d;cj=!((d=q)==null||!d.ob("html5_enable_flush_during_seek"))&&g.PF();var T;UV=!((T=q)==null||!T.ob("html5_enable_reset_audio_decoder"))&&g.PF()}; W8g=function(y){return g.vK(y.K,function(q){return!!q.info.video&&q.info.video.qualityOrdinal>=2160})}; uJg=function(y){return g.vK(y.K,function(q){return!!q.info.video&&q.info.video.isHdr()})}; ot=function(y){return g.vK(y.K,function(q){return!!q.info.Uy})}; g.Zj9=function(y){return g.vK(y.K,function(q){return OA(q.info.mimeType)})}; t29=function(y){return g.vK(y.K,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR":!1})}; EAj=function(y){return g.vK(y.K,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; k$f=function(y){return g.vK(y.K,function(q){return q.info.video?q.info.video.projectionType==="MESH":!1})}; L8D=function(y){return g.vK(y.K,function(q){return q.info.video?q.info.video.stereoLayout===1:!1})}; aU2=function(y){return sjb(y.K,function(q){return q.info.video?q.ZD():!0})}; c_=function(y){return g.vK(y.K,function(q){return yP(q.uj.K)})}; gB=function(y,q){y.K[q.info.id]=q;y.N.set(Cm(g.vb(q.info,y.E9)),q)}; eE=function(y,q,Q){Q=Q===void 0?0:Q;var p=y.mimeType||"",v=y.itag;var d=y.xtags;v=v?v.toString():"";d&&(v+=";"+d);d=v;if(VR(p)){var T=y.width||640;v=y.height||360;var O=y.fps,w=y.qualityLabel,J=y.qualityOrdinal,F=y.colorInfo,Y=y.projectionType,f;y.stereoLayout&&(f=NQH[y.stereoLayout]);var h=h3i(y)||void 0;if(F==null?0:F.primaries)var b=SAs[F.primaries]||void 0;T=new e6(T,v,O,Y,f,void 0,w,J&&HjH[J],h,b);p=o8(p,T,Ps[y.itag||""]);cj&&(p+="; enableflushduringseek=true");UV&&(p+="; enableresetaudiodecoder=true")}var Z; if(T$(p)){var k=y.audioSampleRate;f=y.audioTrack;k=new ML(k?+k:void 0,y.audioChannels,y.spatialAudioType,y.isDrc,y.loudnessDb,y.trackAbsoluteLoudnessLkfs,y.audioQuality||"AUDIO_QUALITY_UNKNOWN",y.isVb);f&&(b=f.displayName,v=f.id,f=f.audioIsDefault,b&&(Z=new g.I8(b,v||"",!!f)))}var S;y.captionTrack&&(w=y.captionTrack,f=w.displayName,b=w.vssId,v=w.languageCode,O=w.kind,w=w.id,f&&b&&v&&(S=new YAs(f,b,v,O,y.xtags,w)));f=Number(y.bitrate)/8;b=Number(y.contentLength);v=Number(y.lastModified);w=y.drmFamilies; O=y.type;Q=Q&&b?b/Q:0;y=Number(y.approxDurationMs);if(q&&w){var N={};w=g.t(w);for(J=w.next();!J.done;J=w.next())(J=Ay[J.value])&&(N[J]=q[J])}return new iN(d,p,{audio:k,video:T,ZG:Z,Uy:N,jj:f,Ks:Q,contentLength:b,lastModified:v,captionTrack:S,streamType:O,approxDurationMs:y})}; Bj=function(y,q,Q){Q=Q===void 0?0:Q;var p=y.type;var v=y.itag;var d=y.xtags;d&&(v=y.itag+";"+d);if(VR(p)){var T=(y.size||"640x360").split("x");T=new e6(+T[0],+T[1],+y.fps,y.projection_type,+y.stereo_layout,void 0,y.quality_label,+y.quality_ordinal,y.eotf,y.primaries);p=o8(p,T,Ps[y.itag]);cj&&(p+="; enableflushduringseek=true");UV&&(p+="; enableresetaudiodecoder=true")}var O;if(T$(p)){var w=new ML(+y.audio_sample_rate||void 0,+y.audio_channels||0,y.spatial_audio_type,!!y.drc);y.name&&(O=new g.I8(y.name, y.audio_track_id,y.isDefault==="1"))}var J;y.caption_display_name&&y.caption_vss_id&&y.caption_language_code&&(J=new YAs(y.caption_display_name,y.caption_vss_id,y.caption_language_code,y.caption_kind,y.xtags,y.caption_id));d=Number(y.bitrate)/8;var F=Number(y.clen),Y=Number(y.lmt);Q=Q&&F?F/Q:0;if(q&&y.drm_families){var f={};for(var h=g.t(y.drm_families.split(",")),b=h.next();!b.done;b=h.next())b=b.value,f[b]=q[b]}return new iN(v,p,{audio:w,video:T,ZG:O,Uy:f,jj:d,Ks:Q,contentLength:F,lastModified:Y, captionTrack:J,streamType:y.stream_type,approxDurationMs:Number(y.approx_duration_ms)})}; R3f=function(y){return XH(y,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; sJ9=function(y){return XH(y,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; M2b=function(y,q){return y.X?Uu(y.X.Y,q):y.Sj.length?Uu(y.Sj,q):[]}; GJ=function(y,q,Q){q=q===void 0?"":q;Q=Q===void 0?"":Q;y=new g.X0(y,!0);y.set("alr","yes");Q&&(Q=jDD(decodeURIComponent(Q)),y[V[18]](q,encodeURIComponent(Q)));return y}; u7S=function(y,q){var Q=$a(q,"id");Q=Q.replace(":",";");var p=$a(q,"mimeType"),v=$a(q,"codecs");p=v?p+'; codecs="'+v+'"':p;v=Number($a(q,"bandwidth"))/8;var d=Number(K5(q,"BaseURL").getAttribute(y.G+":contentLength")),T=y.duration&&d?d/y.duration:0;if(VR(p)){var O=Number($a(q,"width"));var w=Number($a(q,"height")),J=Number($a(q,"frameRate")),F=lUg($a(q,y.G+":projectionType"));a:switch($a(q,y.G+":stereoLayout")){case "layout_left_right":var Y=1;break a;case "layout_top_bottom":Y=2;break a;default:Y= 0}O=new e6(O,w,J,F,Y)}if(T$(p)){var f=Number($a(q,"audioSamplingRate"));var h=Number($a(q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));w=z3S($a(q,y.G+":spatialAudioType"));f=new ML(f,h,w);a:{h=$a(q,"lang")||"und";if(w=K5(q,"Role"))if(F=$a(w,"value")||"",g.F2(D68,F)){w=h+"."+D68[F];J=F==="main";y=$a(q,y.G+":langName")||h+" - "+F;h=new g.I8(y,w,J);break a}h=void 0}}if(q=K5(q,"ContentProtection"))if(q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var b={};for(q= q.firstChild;q!=null;q=q.nextSibling)q instanceof Element&&/SystemURL/.test(q.nodeName)&&(y=q.getAttribute("type"),w=q.textContent,y&&w&&(b[y]=w.trim()))}else b=void 0;return new iN(Q,p,{audio:f,video:O,ZG:h,Uy:b,jj:v,Ks:T,contentLength:d})}; lUg=function(y){switch(y){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"}}; z3S=function(y){switch(y){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"}}; nA8=function(y,q){q=q===void 0?"":q;y.state=1;y.LK=(0,g.SK)();return bjg(q||y.sourceUrl).then(function(Q){if(!y.iB()){y.Bt=Q.status;Q=Q.responseText;var p=new DOMParser;Q=Sk(p,nvD(Q),"text/xml").getElementsByTagName("MPD")[0];y.N$=ULD($a(Q,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(Q.attributes){p=g.t(Q.attributes);for(var v=p.next();!v.done;v=p.next())if(v=v.value,v.value==="http://youtube.com/yt/2012/10/10"){p=v.name.split(":")[1];break b}}p=""}y.G=p;y.isLive=y.N$=y.N$}; IUC=function(y){var q=y.N$;isFinite(q)&&(Pj(y)?y.refresh():(q=Math.max(0,y.LK+q-(0,g.SK)()),y.J||(y.J=new g.y0(y.refresh,q,y),g.n(y,y.J)),y.J.start(q)))}; cXj=function(y){y=y.K;for(var q in y){var Q=y[q].index;if(Q.isLoaded())return Q.D3()+1}return 0}; iq=function(y){return y.Se?y.Se-(y.C||y.timestampOffset):0}; Xf=function(y){return y.gp?y.gp-(y.C||y.timestampOffset):0}; ms=function(y){if(!isNaN(y.vI))return y.vI;var q=y.K,Q;for(Q in q){var p=q[Q].index;if(p.isLoaded()&&!OA(q[Q].info.mimeType)){q=0;for(Q=p.yK();Q<=p.D3();Q++)q+=p.getDuration(Q);q/=p.Tz();q=Math.round(q/.5)*.5;p.Tz()>10&&(y.vI=q);return q}if(y.isLive&&(p=q[Q],p.nV))return p.nV}return NaN}; U6j=function(y,q){y=lsS(y.K,function(p){return p.index.isLoaded()}); if(!y)return NaN;y=y.index;var Q=y.zW(q);return y.getStartTime(Q)===q?q:Q=0&&v.segments.splice(d,1)}}}; oAS=function(y){for(var q in y.K)OA(y.K[q].info.mimeType)||PBb(y.K[q].index,Infinity)}; qC=function(y,q,Q){for(var p in y.K){var v=y.K[p].index,d=q,T=Q;v.fL&&(d&&(v.k0=Math.max(v.k0,d)),T&&(v.wY=Math.max(v.wY||0,T)))}Q&&(y.m3=Q/1E3)}; AX8=function(y){y.gp=0;y.Se=0;y.XL=0}; jz=function(y){return y.Vm&&y.isManifestless?y.isLiveHeadPlayable:y.isLive}; o8=function(y,q,Q){Qz===null&&(Qz=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(x6C&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Qz||Q!=="9"&&Q!=="("?Qz||Q!=="9h"&&Q!=="(h"||(y='video/webm; codecs="vp9.2"'):y='video/webm; codecs="vp9"',y;if(!Qz&&!p8||y!=='video/webm; codecs="vp9"'&&y!=='video/webm; codecs="vp9.2"')return y; Q="00";var p="08",v="01",d="01",T="01";y==='video/webm; codecs="vp9.2"'&&(Q="02",p="10",q.primaries==="bt2020"&&(T=v="09"),q.K==="smpte2084"&&(d="16"),q.K==="arib-std-b67"&&(d="18"));return'video/webm; codecs="'+["vp09",Q,"51",p,"01",v,d,T,"00"].join(".")+'"'}; dK=function(y,q,Q){y=""+y+(q>49?"p60":q>32?"p48":"");q=kF()[y];if(q!=null&&q>0)return q;q=vg.get(y);if(q!=null&&q>0)return q;Q=Q==null?void 0:Q.get(y);return Q!=null&&Q>0?Q:8192}; e3g=function(y){this.wp=y;this.EW=this.Hp=this.Es=this.J=this.Y=this.HI=this.Vm=this.cI=!1;this.X=this.G=0;this.Dw=!1;this.N$=!0;this.BI=!1;this.Jz=0;this.wB=this.Sj=!1;this.BT=!0;this.LK=this.vI=!1;this.K={};this.Se=this.hw=this.F0=this.disableAv1=this.cB=this.zf=this.q$=this.RH=this.W=this.C=!1;this.m3=0;this.Os=!1;this.Wn=this.wp.L("html5_disable_aac_preference");this.Mz=Infinity;this.gp=0;this.Aw=this.wp.U9();this.XL=this.wp.experiments.ob("html5_enable_vp9_fairplay");this.eB=this.wp.L("html5_force_av1_for_testing"); this.Ty=g.wm(this.wp.experiments,"html5_av1_ordinal_cap");this.cn=this.wp.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Kg=this.wp.L("html5_account_onesie_format_selection_during_format_filter");this.jj=g.wm(this.wp.experiments,"html5_max_byterate");this.T8=this.wp.L("html5_enable_iamf_audio");this.ra=this.wp.experiments.ob("html5_allow_capability_merge");this.I7=this.wp.L("html5_enable_encrypted_av1");this.Os=this.wp.L("html5_enable_audio_feature_manager")}; Im9=function(y){if(y.Vm)return["f"];if(g.BF("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var q=["9h","9","h","8"];y.I7&&q.push("1e");q=q.concat(["(h","(","H","*"]);y.Sj&&(q.unshift("1"),q.unshift("1h"));y.Hp&&q.unshift("h");y.j&&(q=(BQC[y.j]||[y.j]).concat(q));return q}; R1p=function(y){var q=["o","a","A"];y.gp===1&&(y.Y&&(q=["mac3","MAC3"].concat(q)),y.J&&(q=["meac3","MEAC3"].concat(q)),y.T8&&(q=["i","I"].concat(q)));y.cI&&(q=["so","sa"].concat(q));!y.EW||y.Es||y.N||y.Wn||q.unshift("a");y.N&&(q=(BQC[y.N]||[y.N]).concat(q));return q}; Tt=function(y,q,Q,p){q=q===void 0?{}:q;if(p===void 0?0:p)return q.disabled=1,0;if(P_(y.J,iH.AV1_CODECS)&&P_(y.J,iH.HEIGHT)&&P_(y.J,iH.BITRATE))return q.isCapabilityUsable=1,8192;try{var v=J8i();if(v&&!y.L("disable_av1_setting"))return q.localPref=v}catch(O){}p=1080;v=navigator.hardwareConcurrency;v<=2&&(p=480);q.coreCount=v;if(v=g.wm(y.experiments,"html5_default_av1_threshold"))p=q["default"]=v;!y.L("html5_disable_av1_arm_check")&&tTC()&&(q.isArm=1,p=240);if(y=y.J.N$)q.mcap=y,p=Math.max(p,y);if(Q){var d, T;if(y=(d=Q.videoInfos.find(function(O){return yR(O)}))==null?void 0:(T=d.W)==null?void 0:T.powerEfficient)p=8192,q.isEfficient=1; Q=Q.videoInfos[0].video;d=Math.min(dK("1",Q.fps),dK("1",30));q.perfCap=d;p=Math.min(p,d);Q.isHdr()&&!y&&(q.hdr=1,p*=.75)}else Q=dK("1",30),q.perfCap30=Q,p=Math.min(p,Q),Q=dK("1",60),q.perfCap60=Q,p=Math.min(p,Q);return q.av1Threshold=p}; Vz=function(y,q,Q,p){this.flavor=y;this.keySystem=q;this.W=Q;this.experiments=p;this.K={};this.Vm=this.keySystemAccess=null;this.iJ=this.L8=-1;this.fF=null;this.N=!!p&&p.ob("edge_nonprefixed_eme");p&&p.ob("html5_enable_vp9_fairplay")}; wK=function(y){return y.N?!1:!y.keySystemAccess&&!!Od()&&y.keySystem==="com.microsoft.playready"}; JB=function(y){return y.keySystem==="com.microsoft.playready"}; Fh=function(y){return!y.keySystemAccess&&!!Od()&&y.keySystem==="com.apple.fps.1_0"}; YE=function(y){return y.keySystem==="com.youtube.fairplay"}; f8=function(y){return y.keySystem==="com.youtube.fairplay.sbdl"}; g.hB=function(y){return y.flavor==="fairplay"}; Od=function(){var y=window,q=y.MSMediaKeys;mU()&&!q&&(q=y.WebKitMediaKeys);return q&&q.isTypeSupported?q:null}; $E=function(y){return navigator.requestMediaKeySystemAccess?g.NL&&!g.PF()?R4("45"):g.iv||g.KU?y.ob("edge_nonprefixed_eme"):g.bU?R4("47"):g.W9&&y.ob("html5_enable_safari_fairplay")?!1:!0:!1}; G$i=function(y,q,Q,p){var v=ib(),d=(Q=v||Q&&mU())?["com.youtube.fairplay"]:["com.widevine.alpha"];q&&d.unshift("com.youtube.widevine.l3");v&&p&&d.unshift("com.youtube.fairplay.sbdl");return Q?d:y?[].concat(g.hH(d),g.hH(K8.playready)):[].concat(g.hH(K8.playready),g.hH(d))}; xE=function(y,q,Q,p,v){p=p===void 0?!1:p;g.I.call(this);this.wp=q;this.useCobaltWidevine=p;this.Rb=v;this.W=[];this.N={};this.K={};this.callback=null;this.J=!1;this.Y=[];this.initialize(y,!Q)}; ijj=function(y,q){y.callback=q;y.Y=[];$E(y.wp.experiments)?Wg(y):PSD(y)}; Wg=function(y){if(!y.iB())if(y.W.length===0)y.callback(y.Y);else{var q=y.W[0],Q=y.N[q],p=Xb9(y,Q);if(ZT&&ZT.keySystem===q&&ZT.c6I===JSON.stringify(p))y.Rb("remksa",{re:!0}),m6C(y,Q,ZT.keySystemAccess);else{var v,d;y.Rb("remksa",{re:!1,ok:(d=(v=ZT)==null?void 0:v.keySystem)!=null?d:""});ZT=void 0;navigator.requestMediaKeySystemAccess(q,p).then(v_(function(T){m6C(y,Q,T,p)}),v_(function(){y.J=!y.J&&y.N[y.W[0]].flavor==="widevine"; y.J||y.W.shift();Wg(y)}))}}}; m6C=function(y,q,Q,p){if(!y.iB()){p&&(ZT={keySystem:q.keySystem,keySystemAccess:Q,c6I:JSON.stringify(p)});q.keySystemAccess=Q;if(JB(q)){Q=LN();p=g.t(Object.keys(y.K[q.flavor]));for(var v=p.next();!v.done;v=p.next())v=v.value,q.K[v]=!!Q.canPlayType(v)}else{Q=q.keySystemAccess.getConfiguration();if(Q.audioCapabilities)for(p=g.t(Q.audioCapabilities),v=p.next();!v.done;v=p.next())q.K[v.value.contentType]=!0;if(Q.videoCapabilities)for(Q=g.t(Q.videoCapabilities),p=Q.next();!p.done;p=Q.next())q.K[p.value.contentType]= !0}y.Y.push(q);y.useCobaltWidevine||y.L("html5_enable_vp9_fairplay")&&f8(q)?(y.W.shift(),Wg(y)):y.callback(y.Y)}}; Xb9=function(y,q){var Q={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(y.L("html5_enable_vp9_fairplay")&&YE(q))return Q.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),Q.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[Q];JB(q)&&(Q.initDataTypes=["keyids","cenc"]);for(var p=g.t(Object.keys(y.K[q.flavor])),v=p.next();!v.done;v=p.next()){v=v.value;var d=v.indexOf("audio/")===0,T=d?Q.audioCapabilities:Q.videoCapabilities;q.flavor!== "widevine"||y.J?T.push({contentType:v}):d?T.push({contentType:v,robustness:"SW_SECURE_CRYPTO"}):(g.NL&&g.BF("windows nt")&&!y.L("html5_drm_enable_moho")||T.push({contentType:v,robustness:"HW_SECURE_ALL"}),d=v,y.wp.J.N&&v.includes("vp09")&&(d=v+"; experimental=allowed"),T.push({contentType:d,robustness:"SW_SECURE_DECODE"}),tB(y.wp)==="MWEB"&&(p_()||GS())&&(y.Rb("swcrypto",{}),T.push({contentType:v,robustness:"SW_SECURE_CRYPTO"})))}return[Q]}; PSD=function(y){if(Od()&&(g.W9||yB))y.Y.push(new Vz("fairplay","com.apple.fps.1_0","",y.wp.experiments));else{var q=CSi(),Q=g.ZC(y.W,function(p){var v=y.N[p],d=!1,T=!1,O;for(O in y.K[v.flavor])q(O,p)&&(v.K[O]=!0,d=d||O.indexOf("audio/")===0,T=T||O.indexOf("video/")===0);return d&&T}); Q&&y.Y.push(y.N[Q]);y.W=[]}y.callback(y.Y)}; CSi=function(){var y=Od();if(y){var q=y.isTypeSupported;return function(p,v){return q(v,p)}}var Q=LN(); return Q&&(Q.addKey||Q.webkitAddKey)?function(p,v){return!!Q.canPlayType(p,v)}:function(){return!1}}; y$i=function(y){this.experiments=y;this.K=2048;this.Y=0;this.cI=(this.X=this.L("html5_streaming_resilience"))?.5:.25;var q=q===void 0?0:q;this.N=g.wm(this.experiments,"html5_media_time_weight_prop")||q;this.j=(this.J=this.experiments.ob("html5_consider_end_stall"))&&Ed;this.W=this.experiments.ob("html5_measure_max_progress_handling");this.C=this.L("html5_treat_requests_pre_elbow_as_metadata");this.G=this.L("html5_media_time_weight")||!!this.N;this.L("html5_sabr_live_audio_early_return_fix")&&Ed&& (this.K=65536)}; kE=function(y){var q;y=Q9((q=y.serializedClientExperimentFlags)!=null?q:"","&");this.flags=new Map(Object.entries(y).map(function(Q){var p=g.t(Q);Q=p.next().value;p=p.next().value;return typeof p==="string"?[Q,p]:[Q,p[0]]}))}; pSb=function(y,q){switch(q.Ck){case "bool":return y.ob(q.yZ);case "int":return y=qKC(y,q.yZ),px(y);case "double":return qKC(y,q.yZ);case "string":return jh2(y,q.yZ);case "int32_list":return QhC(y,q.yZ);case "int64_list":return QhC(y,q.yZ).map(function(Q){return px(Q)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; qKC=function(y,q){y=y.flags.get(""+q);return Number(y)||0}; QhC=function(y,q){if(y=y.flags.get(""+q))if(y=y.replace(/\[ *(.*?) *\]/,"$1"))return y.split(",").map(Number);return[]}; jh2=function(y,q){return(y=y.flags.get(""+q))?y.toString():""}; L8=function(y,q,Q){this.K=void 0;this.experimentIds=y?y.split(","):[];this.flags=Q9(q||"","&");y={};q=g.t(this.experimentIds);for(var p=q.next();!p.done;p=q.next())y[p.value]=!0;this.experiments=y;Q=new kE(Q);this.N=new j_3(Q);this.W=new qNp(Q)}; g.wm=function(y,q,Q){Q=Q===void 0?0:Q;y=y.Zm(q);JSON.stringify(y);return y===void 0?Q:Number(y)}; ag=function(y,q){return(y=y.Zm(q))?y.toString():""}; vIf=function(y){if(y=y.Zm("html5_web_po_experiment_ids"))if(y=y.replace(/\[ *(.*?) *\]/,"$1"))return y.split(",").map(Number);return[]}; dDf=function(y){if(y.K)return y.K;if(y.experimentIds.length<=1)return y.K=y.experimentIds,y.K;var q=[].concat(g.hH(y.experimentIds)).map(function(p){return Number(p)}); q.sort();for(var Q=q.length-1;Q>0;--Q)q[Q]-=q[Q-1];y.K=q.map(function(p){return p.toString()}); y.K.unshift("v1");return y.K}; VXD=function(y){return TLC.then(y)}; NC=function(y,q,Q){this.experiments=y;this.Sj=q;this.gp=Q===void 0?!1:Q;this.j=!!g.qw("cast.receiver.platform.canDisplayType");this.C={};this.cI=!1;this.Y=new Map;this.X=!0;this.W=this.N=!1;this.K=new Map;this.N$=0;this.m3=this.experiments.ob("html5_disable_vp9_encrypted");this.J=this.experiments.ob("html5_enable_encrypted_av1");y=g.qw("cast.receiver.platform.getValue");this.G=!this.j&&y&&y("max-video-resolution-vpx")||null;OB2(this);this.N=!!(ib()&&es()>=21)}; c8b=function(y,q,Q){Q=Q===void 0?1:Q;var p=q.itag;if(p==="0")return!0;var v=q.mimeType;if(q.nK==="1e"&&!y.J)return"dav1enc";if(yR(q)&&y.cI)return"dav1";if(q.video&&(q.video.isHdr()||q.video.primaries==="bt2020")&&!(P_(y,iH.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(p==="338"&&!(g.NL?R4(53):g.bU&&R4(64)))return"dopus";var d=Q;d=d===void 0?1: d;Q={};q.video&&(q.video.width&&(Q[iH.WIDTH.name]=q.video.width),q.video.height&&(Q[iH.HEIGHT.name]=q.video.height),q.video.fps&&(Q[iH.FRAMERATE.name]=q.video.fps*d),q.video.K&&(Q[iH.EOTF.name]=q.video.K),q.jj&&(Q[iH.BITRATE.name]=q.jj*8*d),q.nK==="("&&(Q[iH.CRYPTOBLOCKFORMAT.name]="subsample"),q.video.projectionType==="EQUIRECTANGULAR"||q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||q.video.projectionType==="MESH")&&(Q[iH.DECODETOTEXTURE.name]="true");var T;((T=q.audio)==null?0:T.numChannels)&& q.nK!=="i"&&q.nK!=="I"&&(Q[iH.CHANNELS.name]=q.audio.numChannels);y.N&&Xm(q)&&(Q[iH.EXPERIMENTAL.name]="allowed");T=g.t(Object.keys(iH));for(d=T.next();!d.done;d=T.next()){d=iH[d.value];var O;if(O=Q[d.name])if(O=!(d===iH.EOTF&&q.mimeType.indexOf("vp09.02")>0)){O=d;var w=q;O=!(y.experiments.ob("html5_ignore_h264_framerate_cap")&&O===iH.FRAMERATE&&IB9(w))}if(O)if(P_(y,d))if(y.G){if(y.G[d.name]1080&&q.Uy&&(v+="; hdcp=2.2");return p==="227"?"hqcenc":p!=="585"&&p!=="588"&&p!=="583"&&p!=="586"&&p!=="584"&&p!=="587"&&p!=="591"&&p!=="592"||y.experiments.ob("html5_enable_new_hvc_enc")?ib()&&es()>=21&&g.BF("appletv5")&&(p==="410"||p==="845")?!0:y.isTypeSupported(v)?!0:"tpus":"newhvc"}; Sz=function(){var y=GS()&&!R4(29),q=g.BF("google tv")&&g.BF("chrome")&&!R4(30);return y||q?!1:oz2()}; wS3=function(y,q,Q){var p=480;q=g.t(q);for(var v=q.next();!v.done;v=q.next()){v=v.value;var d=v.video.qualityOrdinal;d<=1080&&d>p&&c8b(y,v,Q)===!0&&(p=d)}return p}; g.Hg=function(y,q){q=q===void 0?!1:q;return Sz()&&y.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!q&&y.canPlayType(LN(),"application/x-mpegURL")?!0:!1}; F5H=function(y){J$3(function(){for(var q=g.t(Object.keys(iH)),Q=q.next();!Q.done;Q=q.next())P_(y,iH[Q.value])})}; P_=function(y,q){q.name in y.C||(y.C[q.name]=YKi(y,q));return y.C[q.name]}; YKi=function(y,q){if(y.G)return!!y.G[q.name];if(q===iH.BITRATE&&y.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!y.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(q===iH.AV1_CODECS)return y.isTypeSupported("video/mp4; codecs="+q.valid)&&!y.isTypeSupported("video/mp4; codecs="+q.Sh);if(q.video){var Q='video/webm; codecs="vp9"';y.isTypeSupported(Q)||(Q='video/mp4; codecs="avc1.4d401e"')}else Q='audio/webm; codecs="opus"', y.isTypeSupported(Q)||(Q='audio/mp4; codecs="mp4a.40.2"');return y.isTypeSupported(Q+"; "+q.name+"="+q.valid)&&!y.isTypeSupported(Q+"; "+q.name+"="+q.Sh)}; fJ3=function(y,q){var Q=0;y.Y.has(q)&&(Q=y.Y.get(q).Ya);y.Y.set(q,{Ya:Q+1,WZ:Math.pow(2,Q+1)});y.W=!0}; Ao=function(y){for(var q=[],Q=g.t(y.K.keys()),p=Q.next();!p.done;p=Q.next()){p=p.value;var v=y.K.get(p);q.push(p+"_"+v.maxWidth+"_"+v.maxHeight)}return q.join(".")}; Mw9=function(y,q){for(var Q=new Map,p=g.t(y.K.keys()),v=p.next();!v.done;v=p.next()){v=v.value;var d=v.split("_")[0];q.has(d)||Q.set(v,y.K.get(v))}y.K=Q}; z1S=function(y,q,Q){var p,v=((p=Q.video)==null?void 0:p.fps)||0;p=q+"_"+v;var d=!!Q.audio,T={itag:Q.itag,nK:q,Eu:d};if(d)T.numChannels=Q.audio.numChannels;else{var O=Q.video;T.maxWidth=O==null?void 0:O.width;T.maxHeight=O==null?void 0:O.height;T.maxFramerate=v;P_(y,iH.BITRATE)&&(T.maxBitrateBps=Q.jj*8);T.ev=O==null?void 0:O.isHdr()}O=y.K.get(p);O?d||(Q=Math.max(O.maxWidth||0,O.maxHeight||0)>Math.max(T.maxWidth||0,T.maxHeight||0)?O:T,q={itag:Q.itag,nK:q,Eu:d,maxWidth:Math.max(O.maxWidth||0,T.maxWidth|| 0),maxHeight:Math.max(O.maxHeight||0,T.maxHeight||0),maxFramerate:v,ev:Q.ev},P_(y,iH.BITRATE)&&(q.maxBitrateBps=Q.maxBitrateBps),y.K.set(p,q)):y.K.set(p,T)}; DV9=function(y,q,Q){var p,v=((p=Q.video)==null?void 0:p.fps)||0;p=q+"_"+v;var d=!!Q.audio,T=y.K.get(p);a:{var O=y.K.get(p),w=!!Q.audio;if(O){if(w){var J=!1;break a}var F;if(!w&&((J=Q.video)==null?0:J.height)&&O.maxHeight&&O.maxHeight>=((F=Q.video)==null?void 0:F.height)){J=!1;break a}}J=!0}J&&(J=Q.itag,q=T?T:{itag:J,nK:q,Eu:d},d?q.numChannels=Q.audio.numChannels:(d=Q.video,q.maxWidth=d==null?void 0:d.width,q.maxHeight=d==null?void 0:d.height,q.maxFramerate=v,P_(y,iH.BITRATE)&&(q.maxBitrateBps=Q.jj* 8),q.ev=d==null?void 0:d.isHdr()),y.K.set(p,q))}; OB2=function(y){var q;(q=navigator.mediaCapabilities)!=null&&q.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(Q){Q.smooth&&Q.powerEfficient&&(y.N$=2160)})}; Rg=function(){g.V6.call(this);this.items={}}; sd=function(y,q){this.K=y;this.cipher=this.K.exports.AES128CTRCipher_create(q.byteOffset)}; lU=function(){this.W=this.C8=0;this.K=Array.from({length:MC.length}).fill(0)}; hyH=function(){}; bB8=function(){this.startTimeMs=(0,g.SK)();this.K=!1}; $Ds=function(){this.K=new hyH}; K53=function(y,q,Q,p){p=p===void 0?1:p;Q>=0&&(q in y.K||(y.K[q]=new lU),y.K[q].Xz(Q,p))}; xDp=function(y,q,Q,p,v){var d=(0,g.SK)(),T=v?v(q):void 0,O;v=(O=T==null?void 0:T.C8)!=null?O:1;if(v!==0){var w;O=(w=T==null?void 0:T.profile)!=null?w:Q;K53(y,O,d-p,v)}return q}; W5s=function(y,q,Q,p,v){if(q&&typeof q==="object"){var d=function(T){return xDp(y,T,Q,p,v)}; if(B$(q))return q.then(d);if(eG(q))return X6(q,d)}return xDp(y,q,Q,p,v)}; ZBi=function(){}; tX3=function(y){var q=window;q.ywc||(q.ywc={});var Q=q.ywc[y];if(Q)return Q;Q={};return q.ywc[y]=Q}; EIC=function(y){var q=window;q.ywc&&delete q.ywc[y]}; khb=function(y){var q=tX3(y);if(q.binP)return q.binP;q.binP=Promise.resolve().then(function(){return fetch(y)}).then(function(Q){if(!Q.ok)throw Error("HTTP"+Q.statusText); return Q.arrayBuffer()}); q.binP.then(function(Q){q.bin=Q},function(){EIC(y)}); return q.binP}; NLS=function(y,q,Q){var p=L5b;Q=Q===void 0?!1:Q;return CZ(p,function(){var v=this;return function T(){var O,w,J;return Ij(T,function(F){switch(F.K){case 1:g.kD(F,2);if(!v.W)throw"wasm.ps.ns";O=y;w=cp;return Zs(F,y7(aJC(v,q,Q)),4);case 4:J=w(F.W);if(!J)throw"wasm.ps.um";if(v.K&&!Q)try{return F.return(new WebAssembly.Instance(J,O))}catch(Y){v.K=!1}return Zs(F,y7(WebAssembly.instantiate(J,O)),5);case 5:return F.return(F.W);case 2:g.l8(F),g.zf(F,0)}})}()})}; aJC=function(y,q,Q){return CZ(y,function(){var p=this;return function d(){var T,O,w,J,F,Y,f,h,b;return Ij(d,function(Z){switch(Z.K){case 1:g.kD(Z,2);T=[];O=function(){return"wasm.ps.c: ["+T.map(function(k){return'"'+k+'"'}).join(", ")+"]"}; w=tX3(q);if(w.mod)return Z.return(w.mod);if(!w.modP){Z.ej(4);break}g.EC(Z,5);J=cp;return Zs(Z,y7(w.modP),7);case 7:return Z.return(J(Z.W));case 5:g.Rj(Z),T.unshift("pcm");case 4:if((F=w.bin)||!w.binP){Z.ej(8);break}g.EC(Z,9);Y=cp;return Zs(Z,y7(w.binP),11);case 11:F=Y(Z.W);g.Hp(Z,8);break;case 9:g.Rj(Z),T.unshift("pfb");case 8:if(F){Z.ej(12);break}g.EC(Z,13);f=cp;return Zs(Z,y7(khb(q)),15);case 15:F=f(Z.W);g.Hp(Z,12);break;case 13:throw g.Rj(Z),p.W=!1,T.unshift("fb"),O();case 12:if(p.K&&!Q)try{return Z.return(new WebAssembly.Module(F))}catch(k){p.K= !1,T.unshift("cs")}g.EC(Z,16);h=cp;return Zs(Z,y7(WebAssembly.compile(F)),18);case 18:return Z.return(h(Z.W));case 16:b=g.Rj(Z),EIC(q),T.unshift("ca: "+b);case 17:throw O();case 2:g.l8(Z),g.zf(Z,0)}})}()})}; SKj=function(){}; HBC=function(){var y=this;this.proc_exit=function(){}; this.fd_write=function(q,Q,p){if(!y.exports)return 1;q=new Uint32Array(y.exports.memory.buffer,Q,p*2);Q=[];for(var v=0;v0)q=y.byterate,this.cI=!0;else{var p; Q=(((p=navigator.connection)==null?void 0:p.downlink)||0)*64*1024;Q>0&&(q=Q,this.cI=!0)}this.N.oW(this.policy.G,q);y.delay>0&&this.C.oW(1,Math.min(y.delay,2));y.stall>0&&this.X.oW(1,y.stall);y.init>0&&(this.vI=Math.min(y.init,this.vI));y.interruptions&&(this.Y=this.Y.concat(y.interruptions),this.Y.length>16&&this.Y.pop());this.N$=(0,g.SK)();this.policy.X>0&&(this.LK=new g.y0(this.HI,this.policy.X,this),g.n(this,this.LK),this.LK.start())}; Bg=function(y,q,Q,p){y.N.oW(p===void 0?q:p,Q/q);y.G=(0,g.SK)()}; IJ3=function(y){y.J||(y.J=(0,g.SK)());y.policy.j&&(y.G=(0,g.SK)())}; nI3=function(y,q){if(y.J){var Q=q-y.J;if(Q<6E4){if(Q>1E3){var p=y.interruptions;p.push(Math.ceil(Q));p.sort(function(v,d){return d-v}); p.length>16&&p.pop()}y.Sj+=Q}}y.J=q}; Pg=function(y,q,Q,p,v,d){d=d===void 0?!1:d;y.Es.oW(q,Q/q);y.G=(0,g.SK)();v||y.j.oW(1,q-p);d||(y.J=0);y.N$>-1&&(0,g.SK)()-y.N$>3E4&&(vrb(Gt(y)),y.N$=(0,g.SK)(),y.cI=!0)}; iU=function(y,q,Q){q=Math.max(q,y.W.K);y.X.oW(1,Q/q)}; Xh=function(y){y=y.C.Io()+y.gp.Io()||0;y=isNaN(y)?.5:y;return y=Math.min(y,5)}; ml=function(y,q,Q){isNaN(Q)||(y.m3+=Q);isNaN(q)||(y.Vm+=q)}; C8=function(y){y=y.N.Io();return y>0?y:1}; yK=function(y,q,Q){q=q===void 0?!1:q;Q=Q===void 0?1048576:Q;var p=C8(y);p=1/((y.X.Io()||0)*y.policy.cI+1/p);var v=y.Es.Io();v=v>0?v:1;var d=Math.max(p,v);y.policy.J>0&&v=4E3}; gID=function(y){this.experiments=y;this.K=17;this.N=13E4;this.G=.5;this.Y=this.W=!1;this.N$=this.L("html5_use_histogram_for_bandwidth");this.J=g.wm(this.experiments,"html5_auxiliary_estimate_weight");this.cI=g.wm(this.experiments,"html5_stall_factor")||1;this.X=g.wm(this.experiments,"html5_check_for_idle_network_interval_ms");this.C=this.experiments.ob("html5_trigger_loader_when_idle_network");this.j=this.experiments.ob("html5_sabr_fetch_on_idle_network_preloaded_players")}; UDD=function(y,q){y=y===void 0?{}:y;q=q===void 0?{}:q;g.I.call(this);var Q=this;this.values=y;this.j8=q;this.W={};this.N=this.K=0;this.Y=new g.y0(function(){c$S(Q)},1E4); g.n(this,this.Y)}; c$S=function(y){var q=TCg();if(q.values){q=q.values;for(var Q={},p=g.t(Object.keys(y.values)),v=p.next();!v.done;v=p.next()){v=v.value;q[v]&&y.W[v]&&(y.values[v]+=q[v]-y.W[v]);var d=y,T=d;if(!T.values[v]){var O=TCg();T.values=O.values||{};T.j8=O.halfLives||{};T.W=O.values?Object.assign({},O.values):{}}Q[v]=d.values[v]&&d.j8[v]?d.values[v]/Math.pow(2,d.K/d.j8[v]):0}y.W=Q}q=y.j8;Q={};Q.values=y.W;Q.halfLives=q;g.DW("yt-player-memory",Q,2592E3)}; Wr=function(y,q,Q,p,v){g.I.call(this);this.webPlayerContextConfig=q;this.KX=p;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.eP=this.cB=this.ra=this.W_=this.userDisplayName=this.userDisplayImage=this.YJ="";this.K={};this.Se={};this.controlsType="0";this.Mz=NaN;this.Dw=!1;this.Bn=(0,g.SK)();this.RH=0;this.Wx=this.c9=!1;this.qB=!0;this.preferGapless=this.Oa=this.eB=this.N=this.cn=!1;this.Gg=[];this.t1=!1;this.Or=0;y=y?g.KM(y):{};q&&q.csiPageType&&(this.csiPageType=q.csiPageType);q&&q.csiServiceName&& (this.csiServiceName=q.csiServiceName);q&&q.preferGapless&&(this.preferGapless=q.preferGapless);this.experiments=new L8(q?q.serializedExperimentIds:y.fexp,q?q.serializedExperimentFlags:y.fflags,q!=null?q:{});this.forcedExperiments=q?q.serializedForcedExperimentIds:wf("",y.forced_experiments)||void 0;this.cspNonce=(q==null?0:q.cspNonce)?q.cspNonce:wf("",y.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(Tf){d=""}this.Wn=d;this.ancestorOrigins=(p= window.location.ancestorOrigins)?Array.from(p):[];this.Y=TH(!1,q?q.isEmbed:y.is_embed);if(q&&q.device){if(p=q.device,p.androidOsExperience&&(this.K.caoe=""+p.androidOsExperience),p.androidPlayServicesVersion&&(this.K.capsv=""+p.androidPlayServicesVersion),p.brand&&(this.K.cbrand=p.brand),p.browser&&(this.K.cbr=p.browser),p.browserVersion&&(this.K.cbrver=p.browserVersion),p.cobaltReleaseVehicle&&(this.K.ccrv=""+p.cobaltReleaseVehicle),this.K.c=p.interfaceName||"WEB",this.K.cver=p.interfaceVersion|| "html5",p.interfaceTheme&&(this.K.ctheme=p.interfaceTheme),this.K.cplayer=p.interfacePlayerType||"UNIPLAYER",p.model&&(this.K.cmodel=p.model),p.network&&(this.K.cnetwork=p.network),p.os&&(this.K.cos=p.os),p.osVersion&&(this.K.cosver=p.osVersion),p.platform&&(this.K.cplatform=p.platform),d=ag(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),d==="all"||d==="once")p.chipset&&(this.Se.cchip=p.chipset),p.cobaltAppVersion&&(this.Se.ccappver=p.cobaltAppVersion),p.firmwareVersion&&(this.Se.cfrmver= p.firmwareVersion),p.deviceYear&&(this.Se.crqyear=p.deviceYear)}else this.K.c=y.c||"web",this.K.cver=y.cver||"html5",this.K.cplayer="UNIPLAYER";this.loaderUrl=q?this.Y||r$8(this)&&q.loaderUrl?q.loaderUrl||"":this.Wn:this.Y||r$8(this)&&y.loaderUrl?wf("",y.loaderUrl):this.Wn;this.Y&&g.y_("yt.embedded_player.embed_url",this.loaderUrl);this.C=Pl(this.loaderUrl,oI8);p=this.loaderUrl;var T=T===void 0?!1:T;this.Yn=Gm(Pl(p,A$9),p,T,"Trusted Ad Domain URL");this.T8=TH(!1,y.privembed);this.protocol=this.Wn.indexOf("http:")=== 0?"http":"https";this.Vf=W3p((q?q.customBaseYoutubeUrl:y.BASE_YT_URL)||"")||W3p(this.Wn)||this.protocol+"://www.youtube.com/";T=q?q.eventLabel:y.el;p="detailpage";T==="adunit"?p=this.Y?"embedded":"detailpage":T==="embedded"||this.C?p=VB(p,T,eyi):T&&(p="embedded");this.gp=p;Mcj();T=null;p=q?q.playerStyle:y.ps;d=g.Eu(BLp,p);!p||d&&!this.C||(T=p);this.playerStyle=T;this.G=g.Eu(BLp,this.playerStyle);this.houseBrandUserStatus=q==null?void 0:q.houseBrandUserStatus;this.N$=this.G&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.CH=!this.N$;this.LK=TH(!1,y.disableplaybackui);this.disablePaidContentOverlay=TH(!1,q==null?void 0:q.disablePaidContentOverlay);this.disableSeek=TH(!1,q==null?void 0:q.disableSeek);this.enableSpeedOptions=(q==null?void 0:q.enableSpeedOptions)||(LN().defaultPlaybackRate?jj||g.QB||QK?g.bU&&R4("20")||g.NL&&R4("4")||g.pn&&R4("11")||C9():!(g.pn&&!g.BF("chrome")||jj||g.BF("android")||g.BF("silk")):!1);this.Nq=TH(!1,y.enable_faster_speeds);var O;this.supportsVarispeedExtendedFeatures= (O=q==null?void 0:q.supportsVarispeedExtendedFeatures)!=null?O:!1;this.W=TH(this.playerStyle==="blazer",y.is_html5_mobile_device||q&&q.isMobileDevice);this.Vm=je()||p_();this.dD=this.L("mweb_allow_background_playback")?!1:this.W&&!this.G;this.Es=RZ();this.hT=g.vr;var w;this.R5=!!(q==null?0:(w=q.embedsHostFlags)==null?0:w.optOutApiDeprecation);var J;q?q.hideInfo!==void 0&&(J=!q.hideInfo):J=y.showinfo;this.l7=g.d1(this)&&!this.R5||TH(!Td(this)&&!VK(this)&&!this.G,J);this.D4=q?!!q.mobileIphoneSupportsInlinePlayback: TH(!1,y.playsinline);O=this.W&&Ov&&w1!=null&&w1>0&&w1<=2.3;w=q?q.useNativeControls:y.use_native_controls;this.X=g.d1(this)&&this.W;J=this.W&&!this.X;w=g.J6(this)||!O&&TH(J,w)?"3":"1";this.disableOrganicUi=!(q==null||!q.disableOrganicUi);J=q?q.controlsType:y.controls;this.controlsType=this.disableOrganicUi||J==="0"||J===0?"0":w;this.fV=this.W;this.color=VB("red",q?q.progressBarColor:y.color,Gh9);this.xn=this.controlsType==="3";this.XL=!this.Y;this.dY=(w=!this.XL&&!VK(this)&&!this.N$&&!this.G&&!Td(this))&& !this.xn&&this.controlsType==="1";this.BT=g.F_(this)&&w&&this.controlsType==="0"&&!this.dY&&!(q==null?0:q.embedsEnableEmc3ds);this.zY=this.Za=O;this.F0=(this.controlsType==="3"||this.W||TH(!1,y.use_media_volume))&&!this.X;this.nL=yB&&!g.Uj(601)?!1:!0;this.lE=this.Y||!1;this.b9=VK(this)?"":(this.loaderUrl||y.post_message_origin||"").substring(0,128);this.widgetReferrer=wf("",q?q.widgetReferrer:y.widget_referrer);var F;q?q.disableCastApi&&(F=!1):F=y.enablecastapi;F=!this.C||TH(!0,F);O=!0;q&&q.disableMdxCast&& (O=!1);this.z5=this.L("enable_cast_for_web_unplugged")&&g.Yo(this)&&O||g.Us(this)&&O||F&&O&&this.controlsType==="1"&&!this.W&&(VK(this)||g.F_(this)||g.fn(this));this.HG=!!window.document.pictureInPictureEnabled||Hs();F=q?!!q.supportsAutoplayOverride:TH(!1,y.autoplayoverride);this.YW=!(this.W&&!g.d1(this))&&!g.BF("nintendo wiiu")||F;this.QY=(q?!!q.enableMutedAutoplay:TH(!1,y.mutedautoplay))&&!1;F=(VK(this)||Td(this))&&this.playerStyle==="blazer";this.T5=q?!!q.disableFullscreen:!TH(!0,y.fs);O=g.f_(g.h6(this))&& g.d1(this);this.q$=!this.T5&&(F||g.ZW())&&!O;this.Lq=this.L("html5_picture_in_picture_logging_onresize");var Y;this.GH=(Y=g.wm(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?Y:.33;this.zB=this.L("html5_picture_in_picture_blocking_onresize");this.TB=this.L("html5_picture_in_picture_blocking_ontimeupdate");this.iC=this.L("html5_picture_in_picture_blocking_document_fullscreen");this.A0=this.L("html5_picture_in_picture_blocking_standard_api");Y=GS()&&R4(58)&&!p_();F=P9||typeof MediaSource=== "undefined";this.dk=this.L("uniplayer_block_pip")&&(Y||F)||this.zB||this.TB||this.A0;Y=g.d1(this)&&!this.R5;var f;q?q.disableRelatedVideos!==void 0&&(f=!q.disableRelatedVideos):f=y.rel;this.EW=Y||TH(!this.G,f);this.tT=TH(!1,q?q.enableContentOwnerRelatedVideos:y.co_rel);this.j=p_()&&w1>0&&w1<=4.4?"_top":"_blank";this.zI=g.fn(this);this.jY=TH(this.playerStyle==="blazer",q?q.enableCsiLogging:y.enablecsi);switch(this.playerStyle){case "blogger":f="bl";break;case "discover-ads":f="da";break;case "gmail":f= "gm";break;case "gac":f="ga";break;case "ads-preview":f="ap";break;case "books":f="gb";break;case "docs":case "flix":f="gd";break;case "duo":f="gu";break;case "google-live":f="gl";break;case "google-one":f="go";break;case "play":case "play-ads":f="gp";break;case "chat":f="hc";break;case "hangouts-meet":f="hm";break;case "photos-edu":case "picasaweb":f="pw";break;default:f="yt"}this.cI=f;this.m3=wf("",q?q.authorizedUserIndex:y.authuser);this.hw=g.d1(this)&&(this.T8||!WCs()||this.Vm);var h;q?q.disableWatchLater!== void 0&&(h=!q.disableWatchLater):h=y.showwatchlater;this.oo=((f=!this.hw)||!!this.m3&&f)&&TH(!this.N$,this.C?h:void 0);this.zf=q?q.isMobileDevice||!!q.disableKeyboardControls:TH(!1,y.disablekb);this.loop=TH(!1,y.loop);this.pageId=wf("",q?q.initialDelegatedSessionId:y.pageid);this.BG=TH(!0,y.canplaylive);h=g.wm(this.experiments,"html5_default_audio_quality_setting_lr");var b;this.Iq=(b=P2S[P2S[h]])!=null?b:0;this.Os=TH(!1,y.livemonitor);this.disableSharing=TH(this.G,q?q.disableSharing:y.ss);(b=q&& this.L("fill_video_container_size_override_from_wpcc")?q.videoContainerOverride:y.video_container_override)?(h=b.split("x"),h.length!==2?b=null:(b=Number(h[0]),h=Number(h[1]),b=isNaN(b)||isNaN(h)||b*h<=0?null:new g.Gq(b,h))):b=null;this.CL=b;this.mute=q?!!q.startMuted:TH(!1,y.mute);this.storeUserVolume=!this.mute&&TH(this.controlsType!=="0",q?q.storeUserVolume:y.store_user_volume);b=q?q.annotationsLoadPolicy:y.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:VB(void 0,b,be);this.captionsLanguagePreference= q?q.captionsLanguagePreference||"":wf("",y.cc_lang_pref);b=VB(2,q?q.captionsLanguageLoadPolicy:y.cc_load_policy,be);this.controlsType==="3"&&b===2&&(b=3);this.lV=b;this.I7=q?q.hl||"en_US":wf("en_US",y.hl);this.region=q?q.contentRegion||"US":wf("US",y.cr);this.hostLanguage=q?q.hostLanguage||"en":wf("en",y.host_language);this.R2=!this.T8&&Math.random()=480;this.schedule=new ez(Y,new y$i(this.experiments),v);g.n(this,this.schedule);var Z;this.enableSafetyMode=(Z=q==null?void 0:q.initialEnableSafetyMode)!=null?Z:TH(!1,y.enable_safety_mode);v=this.LK?!1:VK(this)&&this.playerStyle!== "blazer";var k;q?q.disableAutonav!=null&&(k=!q.disableAutonav):k=y.allow_autonav;this.Kg=TH(v,!this.N$&&k);this.sendVisitorIdHeader=q?!!q.sendVisitorIdHeader:TH(!1,y.send_visitor_id_header);var S;this.playerStyle==="docs"&&(q?S=q.disableNativeContextMenu:S=y.disable_native_context_menu);this.disableNativeContextMenu=TH(!1,S);this.B9=EH(this)&&this.L("enable_skip_intro_button");this.embedConfig=wf("",q?q.serializedEmbedConfig:y.embed_config);this.Sj=YJ(y,g.d1(this));this.N=this.Sj==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(q==null||!q.embedsErrorLinks);this.oE=TH(!1,y.full_window);var N;this.Ty=!((N=this.webPlayerContextConfig)==null?0:N.chromeless);var l;this.livingRoomAppMode=VB("LIVING_ROOM_APP_MODE_UNSPECIFIED",y.living_room_app_mode||(q==null?void 0:(l=q.device)==null?void 0:l.livingRoomAppMode),mD9);var u;k=OM(NaN,q==null?void 0:(u=q.device)==null?void 0:u.deviceYear);isNaN(k)||(this.deviceYear=k);this.transparentBackground=q?!!q.transparentBackground:TH(!1,y.transparent_background);this.showMiniplayerButton= q?!!q.showMiniplayerButton:TH(!1,y.show_miniplayer_button);var c;g.d1(this)&&!(q==null?0:(c=q.embedsHostFlags)==null?0:c.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=q?!!q.externalFullscreen:TH(!1,y.external_fullscreen);this.showMiniplayerUiWhenMinimized=q?!!q.showMiniplayerUiWhenMinimized:TH(!1,y.use_miniplayer_ui);var X;this.qB=(X=y.show_loop_video_toggle)!=null?X:!0;this.iS=Math.random()<1E-4;if(y.onesie_hot_config||(q==null?0:q.onesieHotConfig))this.Aw=new DDp(y.onesie_hot_config, q==null?void 0:q.onesieHotConfig),g.n(this,this.Aw);this.isTectonic=q?!!q.isTectonic:!!y.isTectonic;this.playerCanaryState=Q;this.playerCanaryStage=q==null?void 0:q.canaryStage;this.fF=new UDD;g.n(this,this.fF);this.datasyncId=(q==null?void 0:q.datasyncId)||g.XY("DATASYNC_ID");this.AP=g.XY("LOGGED_IN",!1);this.Np=(q==null?void 0:q.allowWoffleManagement)||!1;this.Db=Infinity;this.oD=NaN;this.livingRoomPoTokenId=q==null?void 0:q.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.eB=!0: this.eB=Math.random()*100=0&&y0&&y.iS&&(p.sort(),g.zI(new g.GH("Player client parameters changed after startup",p)));y.userAge=OM(y.userAge,q.user_age);y.YJ=wf(y.YJ,q.user_display_email);y.userDisplayImage=wf(y.userDisplayImage,q.user_display_image);g.Xj(y.userDisplayImage)||(y.userDisplayImage= "");y.userDisplayName=wf(y.userDisplayName,q.user_display_name);y.W_=wf(y.W_,q.user_gender);y.csiPageType=wf(y.csiPageType,q.csi_page_type);y.csiServiceName=wf(y.csiServiceName,q.csi_service_name);y.jY=TH(y.jY,q.enablecsi);y.pageId=wf(y.pageId,q.pageid);if(Q=q.enabled_engage_types)y.enabledEngageTypes=new Set(Q.split(","));q.living_room_session_po_token&&(y.Hn=q.living_room_session_po_token.toString())}; ZO=function(y,q){return!y.G&&GS()&&R4(55)&&y.controlsType==="3"&&!q}; g.t6=function(y){y=$o(y.Vf);return y==="www.youtube-nocookie.com"?"www.youtube.com":y}; Ev=function(y,q,Q){return y.protocol+"://i1.ytimg.com/vi/"+q+"/"+(Q||"hqdefault.jpg")}; ko=function(y){return VK(y)&&!g.Yo(y)}; g.J6=function(y){return y.L("html5_local_playsinline")?yB&&!g.Uj(602)&&!("playsInline"in LN()):yB&&!y.D4||g.BF("nintendo wiiu")?!0:!1}; tB=function(y){return y.K.c}; g.kt=function(y){return/^TVHTML5/.test(tB(y))}; g.Ln=function(y){return tB(y)==="TVHTML5"}; r$8=function(y){return tB(y)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; XS9=function(y){return y.K.cmodel==="CHROMECAST ULTRA/STEAK"||y.K.cmodel==="CHROMECAST/STEAK"}; g.as=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; EH=function(y){return/web/i.test(tB(y))}; g.Nj=function(y){return tB(y).toUpperCase()==="WEB"}; xo=function(y){return tB(y)==="WEB_KIDS"}; g.Yo=function(y){return tB(y)==="WEB_UNPLUGGED"}; Sj=function(y){return tB(y)==="TVHTML5_UNPLUGGED"}; g.tc=function(y){return g.Yo(y)||tB(y)==="TV_UNPLUGGED_CAST"||Sj(y)}; g.Us=function(y){return tB(y)==="WEB_REMIX"}; g.Hr=function(y){return tB(y)==="WEB_MUSIC_INTEGRATIONS"}; g.Rs=function(y){return tB(y)==="WEB_EMBEDDED_PLAYER"}; g.le=function(y){return(y.deviceIsAudioOnly||!g.NL||P9||y.controlsType==="3"?!1:g.QB?y.Y&&g.Uj(51):!0)||(y.deviceIsAudioOnly||!g.bU||P9||y.controlsType==="3"?!1:g.QB?y.Y&&g.Uj(48):g.Uj(38))||(y.deviceIsAudioOnly||!g.pn||P9||y.controlsType==="3"?!1:g.QB?y.Y&&g.Uj(37):g.Uj(27))||!y.deviceIsAudioOnly&&g.Mj&&!LCC()&&g.Uj(11)||!y.deviceIsAudioOnly&&g.W9&&g.Uj("604.4")}; qLC=function(y){if(g.F_(y)&&Ov)return!1;if(g.bU){if(!g.Uj(47)||!g.Uj(52)&&g.Uj(51))return!1}else if(g.W9)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Q6b=function(y,q){return y.enabledEngageTypes.has(q.toString())||j68.includes(q)}; VK=function(y){return y.gp==="detailpage"}; g.F_=function(y){return y.gp==="embedded"}; zd=function(y){return y.gp==="leanback"}; Td=function(y){return y.gp==="adunit"||y.playerStyle==="gvn"}; g.fn=function(y){return y.gp==="profilepage"}; g.d1=function(y){return y.Y&&g.F_(y)&&!Td(y)&&!y.G}; DO=function(y){if(!y.userDisplayImage)return"";var q=y.userDisplayImage.split("/");if(q.length===5)return y=q[q.length-1].split("="),y[1]="s20-c",q[q.length-1]=y.join("="),q.join("/");if(q.length===8)return q.splice(7,0,"s20-c"),q.join("/");if(q.length===9)return q[7]+="-s20-c",q.join("/");g.zI(new g.GH("Profile image not a FIFE URL.",y.userDisplayImage));return y.userDisplayImage}; g.ue=function(y){var q=g.t6(y);phS.includes(q)&&(q="www.youtube.com");return y.protocol+"://"+q}; g.Is=function(y,q){q=q===void 0?"":q;if(y.KX){var Q=new M6,p,v=y.KX();v.signedOut?p="":v.token?p=v.token:v.pendingResult.then(function(d){v.signedOut?Q.resolve(""):Q.resolve(d.token)},function(d){g.zI(new g.GH("b189348328_oauth_callback_failed",{error:d})); Q.resolve(q)}); return p!==void 0?ub(p):new zS(Q)}return ub(q)}; nn=function(y,q){q=q===void 0?"":q;return y.AP?Gb(!0):mh(X6(Gb(g.Is(y,q)),function(Q){return Gb(!!Q)}),function(){return Gb(!1)})}; vjC=function(y,q){q==null||X6(q,function(Q){y.RW=Q;var p,v;(p=y.Aw)!=null&&(v=p.K)!=null&&(v.K=new Ig(Q,v.W,v.N),g.n(v,v.K))})}; $o=function(y){var q=g.$b(y);return(y=Number(g.b_(y)[4]||null)||null)?q+":"+y:q}; g1=function(y,q){q=q===void 0?!1:q;var Q=Ps[y],p=d8H[Q],v=T7f[y];if(!v||!p)return null;q=new e6(q?v.height:v.width,q?v.width:v.height,v.fps);p=o8(p,q,Q);return new iN(y,p,{video:q,jj:v.bitrate/8})}; O68=function(y){var q=d8H[Ps[y]],Q=VV9[y];return Q&&q?new iN(y,q,{audio:new ML(Q.audioSampleRate,Q.numChannels)}):null}; cr=function(y){this.K=y}; Uv=function(y,q,Q,p){if(Q)return D1();Q={};var v=LN();q=g.t(q);for(var d=q.next();!d.done;d=q.next())if(d=d.value,y.canPlayType(v,d.getInfo().mimeType)||p){var T=d.K.video.quality;if(!Q[T]||Q[T].getInfo().al())Q[T]=d}y=[];Q.auto&&y.push(Q.auto);p=g.t(Bs);for(v=p.next();!v.done;v=p.next())(v=Q[v.value])&&y.push(v);return y.length?ub(y):D1()}; wh3=function(y){this.itag=y.itag;this.url=y.url;this.codecs=y.codecs;this.width=y.width;this.height=y.height;this.fps=y.fps;this.bitrate=y.bitrate;var q;this.W=((q=y.audioItag)==null?void 0:q.split(","))||[];this.Wb=y.Wb;this.Uy=y.Uy||"";this.ZG=y.ZG;this.audioChannels=y.audioChannels;this.K=""}; Jqp=function(y,q,Q,p){q=q===void 0?!1:q;Q=Q===void 0?!0:Q;p=p===void 0?{}:p;var v={};y=g.t(y);for(var d=y.next();!d.done;d=y.next()){d=d.value;if(q&&MediaSource&&MediaSource.isTypeSupported){var T=d.type;d.audio_channels&&(T=T+"; channels="+d.audio_channels);if(!MediaSource.isTypeSupported(T)){p[d.itag]="tpus";continue}}if(Q||!d.drm_families||d.eotf!=="smpte2084"&&d.eotf!=="arib-std-b67"){T=void 0;var O={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},w=d.type.match(/codecs="([^"]*)"/); w=w?w[1]:"";d.audio_track_id&&(T=new g.I8(d.name,d.audio_track_id,!!d.is_default));var J=d.eotf;d=new wh3({itag:d.itag,url:d.url,codecs:w,width:Number(d.width),height:Number(d.height),fps:Number(d.fps),bitrate:Number(d.bitrate),audioItag:d.audio_itag,Wb:J?O[J]:void 0,Uy:d.drm_families,ZG:T,audioChannels:Number(d.audio_channels)});v[d.itag]=v[d.itag]||[];v[d.itag].push(d)}else p[d.itag]="enchdr"}return v}; F4f=function(y,q,Q,p,v){this.N=y;this.W=q;this.J=Q;this.cpn=p;this.G=v;this.Y=0;this.K=""}; YLi=function(y,q){y.N.some(function(Q){var p;return((p=Q.ZG)==null?void 0:p.getId())===q}); y.K=q}; r1=function(y,q,Q){y.cpn&&(q=g.kb(q,{cpn:y.cpn}));Q&&(q=g.kb(q,{paired:Q}));return q}; fcS=function(y,q){y=y.itag.toString();q!==null&&(y+=q.itag.toString());return y}; hTb=function(y){for(var q=[],Q=[],p=g.t(y.W),v=p.next();!v.done;v=p.next())v=v.value,v.bitrate<=y.Y?q.push(v):Q.push(v);q.sort(function(d,T){return T.bitrate-d.bitrate}); Q.sort(function(d,T){return d.bitrate-T.bitrate}); y.W=q.concat(Q)}; os=function(y,q,Q){this.K=y;this.W=q;this.expiration=Q;this.uj=null}; b6p=function(y,q){if(!(P9||mU()||ib()))return null;y=Jqp(q,y.L("html5_filter_fmp4_in_hls"));if(!y)return null;q=[];for(var Q={},p=g.t(Object.keys(y)),v=p.next();!v.done;v=p.next()){v=g.t(y[v.value]);for(var d=v.next();!d.done;d=v.next()){var T=d.value;T.ZG&&(d=T.ZG.getId(),Q[d]||(T=new g.s1(d,T.ZG),Q[d]=T,q.push(T)))}}return q.length>0?q:null}; Z6i=function(y,q,Q,p,v,d,T){if(!(P9||mU()||ib()))return D1();var O={},w=$88(Q),J=Jqp(Q,y.L("html5_filter_fmp4_in_hls"),y.J.X,O);if(!J)return T({noplst:1}),D1();K4H(J);Q={};var F=(Q.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Q),Y;Q=[];var f=[],h=[],b=null,Z="";p=p&&p.match(/hls_timedtext_playlist/)?new wh3({itag:"0",url:p,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,ZG:new g.I8("English","en",!1)}):null;for(var k=g.t(Object.keys(J)),S=k.next();!S.done;S=k.next())if(S=S.value,!y.L("html5_disable_drm_hfr_1080")|| S!=="383"&&S!=="373"){S=g.t(J[S]);for(var N=S.next();!N.done;N=S.next())if(N=N.value,N.width){for(var l=g.t(N.W),u=l.next();!u.done;u=l.next())if(u=u.value,J[u]){N.K=u;break}N.K||(N.K=x8i(J,N));if(l=J[N.K])if(Q.push(N),N.Uy==="fairplay"&&(Y=F),u="",N.Wb==="PQ"?u="smpte2084":N.Wb==="HLG"&&(u="arib-std-b67"),u&&(Z=u),h.push(W43(l,[N],p,d,N.itag,N.width,N.height,N.fps,w,void 0,void 0,Y,u)),!b||N.width*N.height*N.fps>b.width*b.height*b.fps)b=N}else f.push(N)}else O[S]="disdrmhfr";h.reduce(function(c, X){return X.getInfo().isEncrypted()&&c},!0)&&(Y=F); v=Math.max(v,0);F=b||{};J=F.fps===void 0?0:F.fps;b=F.width===void 0?0:F.width;F=F.height===void 0?0:F.height;k=y.L("html5_native_audio_track_switching");h.push(W43(f,Q,p,d,"93",b,F,J,w,"auto",v,Y,Z,k));Object.entries(O).length&&T(O);return Uv(y.J,h,ZO(y,q),!1)}; W43=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h){for(var b=0,Z="",k=g.t(y),S=k.next();!S.done;S=k.next())S=S.value,Z||(Z=S.itag),S.audioChannels&&S.audioChannels>b&&(b=S.audioChannels,Z=S.itag);v=new iN(v,"application/x-mpegURL",{audio:new ML(0,b),video:new e6(d,T,O,null,void 0,J,void 0,void 0,f),Uy:Y,mS:Z});y=new F4f(y,q,Q?[Q]:[],p,!!h);y.Y=F?F:1369843;return new os(v,y,w)}; $88=function(y){y=g.t(y);for(var q=y.next();!q.done;q=y.next())if(q=q.value,q.url&&(q=q.url.split("expire/"),!(q.length<=1)))return+q[1].split("/")[0];return NaN}; x8i=function(y,q){for(var Q=g.t(Object.keys(y)),p=Q.next();!p.done;p=Q.next()){p=p.value;var v=y[p][0];if(!v.width&&v.Uy===q.Uy&&!v.audioChannels)return p}return""}; K4H=function(y){for(var q=new Set,Q=g.t(Object.values(y)),p=Q.next();!p.done;p=Q.next())p=p.value,p.length&&(p=p[0],p.height&&p.codecs.startsWith("vp09")&&q.add(p.height));Q=[];if(q.size){p=g.t(Object.keys(y));for(var v=p.next();!v.done;v=p.next())if(v=v.value,y[v].length){var d=y[v][0];d.height&&q.has(d.height)&&!d.codecs.startsWith("vp09")&&Q.push(v)}}q=g.t(Q);for(Q=q.next();!Q.done;Q=q.next())delete y[Q.value]}; A6=function(y,q){this.K=y;this.W=q}; tV2=function(y,q,Q,p){var v=[];Q=g.t(Q);for(var d=Q.next();!d.done;d=Q.next()){var T=d.value;if(T.url){d=new g.X0(T.url,!0);if(T.s){var O=d,w=T.sp,J=jDD(decodeURIComponent(T.s));O[V[18]](w,encodeURIComponent(J))}O=g.t(Object.keys(p));for(w=O.next();!w.done;w=O.next())w=w.value,d.set(w,p[w]);T=wQ(T.type,T.quality,T.itag,T.width,T.height);v.push(new A6(T,d))}}return Uv(y.J,v,ZO(y,q),!1)}; ej=function(y,q){this.K=y;this.W=q}; Ejp=function(y,q,Q){var p=[];Q=g.t(Q);for(var v=Q.next();!v.done;v=Q.next())if((v=v.value)&&v.url){var d=wQ(v.type,"medium","0");p.push(new ej(d,v.url))}return Uv(y.J,p,ZO(y,q),!1)}; kB9=function(y,q){var Q=[],p=wQ(q.type,"auto",q.itag);Q.push(new ej(p,q.url));return Uv(y.J,Q,!1,!0)}; acj=function(y){return y&&L4p[y]?L4p[y]:null}; N7b=function(y){switch(y){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return y;default:return"sabr.config"}}; SLi=function(y){if(y=y.commonConfig)this.url=y.url,this.urlQueryOverride=y.urlQueryOverride,y.ustreamerConfig&&(this.fm=n8(y.ustreamerConfig)||void 0)}; H6S=function(y,q){var Q;if(q=q==null?void 0:(Q=q.watchEndpointSupportedOnesieConfig)==null?void 0:Q.html5PlaybackOnesieConfig)y.Th=new SLi(q)}; g.Br=function(y){y=y===void 0?{}:y;this.languageCode=y.languageCode||"";this.languageName=y.languageName||null;this.kind=y.kind||"";this.name=y.name===void 0?null:y.name;this.displayName=y.displayName||null;this.id=y.id||null;this.K=y.is_servable||!1;this.isTranslateable=y.is_translateable||!1;this.url=y.url||null;this.vssId=y.vss_id||"";this.isDefault=y.is_default||!1;this.translationLanguage=y.translationLanguage||null;this.xtags=y.xtags||"";this.captionId=y.captionId||""}; g.Pr=function(y){var q={languageCode:y.languageCode,languageName:y.languageName,displayName:g.Gd(y),kind:y.kind,name:y.name,id:y.id,is_servable:y.K,is_default:y.isDefault,is_translateable:y.isTranslateable,vss_id:y.vssId};y.xtags&&(q.xtags=y.xtags);y.captionId&&(q.captionId=y.captionId);y.translationLanguage&&(q.translationLanguage=y.translationLanguage);return q}; g.ie=function(y){return y.translationLanguage?y.translationLanguage.languageCode:y.languageCode}; g.RT9=function(y){var q=y.vssId;y.translationLanguage&&q&&(q="t"+q+"."+g.ie(y));return q}; g.Gd=function(y){var q=[];if(y.displayName)q.push(y.displayName);else{var Q=y.languageName||"";q.push(Q);y.kind==="asr"&&Q.indexOf("(")===-1&&q.push(" (Legendas autom\u00e1ticas)");y.name&&q.push(" - "+y.name)}y.translationLanguage&&q.push(" >> "+y.translationLanguage.languageName);return q.join("")}; zTi=function(y,q,Q,p){y||(y=q&&s6D.hasOwnProperty(q)&&MV9.hasOwnProperty(q)?MV9[q]+"_"+s6D[q]:void 0);q=y;if(!q)return null;y=q.match(lcg);if(!y||y.length!==5)return null;if(y=q.match(lcg)){var v=Number(y[3]),d=[7,8,10,5,6];y=!(Number(y[1])===1&&v===8)&&d.indexOf(v)>=0}else y=!1;return Q||p||y?q:null}; X_=function(y,q){for(var Q={},p=g.t(Object.keys(D8D)),v=p.next();!v.done;v=p.next()){v=v.value;var d=q?q+v:v;d=y[d+"_webp"]||y[d];g.Xj(d)&&(Q[D8D[v]]=d)}return Q}; md=function(y){var q={};if(!y||!y.thumbnails)return q;y=y.thumbnails.filter(function(O){return!!O.url}); y.sort(function(O,w){return O.width-w.width||O.height-w.height}); for(var Q=g.t(Object.keys(u$g)),p=Q.next();!p.done;p=Q.next()){var v=Number(p.value);p=u$g[v];for(var d=g.t(y),T=d.next();!T.done;T=d.next())if(T=T.value,T.width>=v){v=IcH(T.url);g.Xj(v)&&(q[p]=v);break}}(y=y.pop())&&y.width>=1280&&(y=IcH(y.url),g.Xj(y)&&(q["maxresdefault.jpg"]=y));return q}; IcH=function(y){return y.startsWith("//")?"https:"+y:y}; Cn=function(y){return y&&y.baseUrl||""}; yQ=function(y){y=g.TS(y);for(var q=g.t(Object.keys(y)),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var p=y[Q];y[Q]=Array.isArray(p)?p[0]:p}return y}; njs=function(y,q){y.botguardData=q.playerAttestationRenderer.botguardData;q=q.playerAttestationRenderer.challenge;q!=null&&(y.CP=q)}; U8p=function(y,q){q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var p=Q.interstitials.map(function(T){var O=g.U(T,gjs);if(O)return{is_yto_interstitial:!0,raw_player_response:O};if(T=g.U(T,cq8))return Object.assign({is_yto_interstitial:!0},vF(T))}); p=g.t(p);for(var v=p.next();!v.done;v=p.next())switch(v=v.value,Q.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":y.interstitials=y.interstitials.concat({time:0,playerVars:v,AM:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":y.interstitials=y.interstitials.concat({time:0x7ffffffffffff,playerVars:v,AM:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var d=Number(Q.podConfig.timeToInsertAtMillis);y.interstitials=y.interstitials.concat({time:d,playerVars:v, AM:d===0?5:7})}}}; rqp=function(y,q){if(q=q.find(function(Q){return!(!Q||!Q.tooltipRenderer)}))y.tooltipRenderer=q.tooltipRenderer}; ojC=function(y,q){q.subscribeCommand&&(y.subscribeCommand=q.subscribeCommand);q.unsubscribeCommand&&(y.unsubscribeCommand=q.unsubscribeCommand);q.addToWatchLaterCommand&&(y.addToWatchLaterCommand=q.addToWatchLaterCommand);q.removeFromWatchLaterCommand&&(y.removeFromWatchLaterCommand=q.removeFromWatchLaterCommand);q.getSharePanelCommand&&(y.getSharePanelCommand=q.getSharePanelCommand)}; Aqs=function(y,q){q!=null?(y.sS=q,y.cO=!0):(y.sS="",y.cO=!1)}; qg=function(y,q){this.type=y||"";this.id=q||""}; jC=function(y){return new qg(y.substring(0,2),y.substring(2))}; QQ=function(y,q){this.wp=y;this.author="";this.Mj=null;this.playlistLength=0;this.K=this.sessionData=null;this.C={};this.title="";if(q){this.author=q.author||q.playlist_author||"";this.title=q.playlist_title||"";if(y=q.session_data)this.sessionData=Q9(y,"&");var Q;this.K=((Q=q.thumbnail_ids)==null?void 0:Q.split(",")[0])||null;this.C=X_(q,"playlist_");this.videoId=q.video_id||void 0;if(Q=q.list)switch(q.listType){case "user_uploads":this.playlistId=(new qg("UU","PLAYER_"+Q)).toString();break;default:if(y= q.playlist_length)this.playlistLength=Number(y)||0;this.playlistId=jC(Q).toString();if(q=q.video)this.videoId=(q[0]||null).video_id||void 0}else q.playlist&&(this.playlistLength=q.playlist.toString().split(",").length)}}; pL=function(y,q){this.wp=y;this.DI=this.author="";this.Mj=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.f$=this.lengthText="";this.sessionData=null;this.C={};this.title="";if(q){this.ariaLabel=q.aria_label||void 0;this.author=q.author||"";this.DI=q.DI||"";if(y=q.endscreen_autoplay_session_data)this.Mj=Q9(y,"&");this.Uo=q.Uo;this.isLivePlayback=q.live_playback==="1";this.isUpcoming=!!q.isUpcoming;if(y=q.length_seconds)this.lengthSeconds=typeof y==="string"?Number(y):y;this.lengthText= q.lengthText||"";this.f$=q.f$||"";this.publishedTimeText=q.publishedTimeText||void 0;if(y=q.session_data)this.sessionData=Q9(y,"&");this.shortViewCount=q.short_view_count_text||void 0;this.C=X_(q);this.title=q.title||"";this.videoId=q.docid||q.video_id||q.videoId||q.id||void 0;this.watchUrl=q.watchUrl||void 0}}; eT9=function(y){var q,Q,p=(q=y.getWatchNextResponse())==null?void 0:(Q=q.contents)==null?void 0:Q.twoColumnWatchNextResults,v,d,T,O,w;y=(v=y.getWatchNextResponse())==null?void 0:(d=v.playerOverlays)==null?void 0:(T=d.playerOverlayRenderer)==null?void 0:(O=T.endScreen)==null?void 0:(w=O.watchNextEndScreenRenderer)==null?void 0:w.results;if(!y){var J,F;y=p==null?void 0:(J=p.endScreen)==null?void 0:(F=J.endScreen)==null?void 0:F.results}return y}; g.dx=function(y){var q,Q,p;y=g.U((q=y.getWatchNextResponse())==null?void 0:(Q=q.playerOverlays)==null?void 0:(p=Q.playerOverlayRenderer)==null?void 0:p.decoratedPlayerBarRenderer,v3);return g.U(y==null?void 0:y.playerBar,B7f)}; GBf=function(y){this.K=y.playback_progress_0s_url;this.N=y.playback_progress_2s_url;this.W=y.playback_progress_10s_url}; PPs=function(){if(T1===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(q){}a:{try{var y=!!self.localStorage}catch(q){y=!1}if(y&&(y=g.U$(g.Pn()+"::yt-player"))){T1=new Ax(y);break a}T1=void 0}}return T1}; g.VQ=function(){var y=PPs();if(!y)return{};try{var q=y.get("yt-player-lv");return JSON.parse(q||"{}")}catch(Q){return{}}}; g.i69=function(y){var q=PPs();q&&(y=JSON.stringify(y),q.set("yt-player-lv",y))}; g.OB=function(y){return g.VQ()[y]||0}; g.wx=function(y,q){var Q=g.VQ();q!==Q[y]&&(q!==0?Q[y]=q:delete Q[y],g.i69(Q))}; g.Jk=function(y){return g.M(function(q){return q.return(g.eK(Xhb(),y))})}; Y3=function(y,q,Q,p,v,d,T,O){var w,J,F,Y,f,h;return g.M(function(b){switch(b.K){case 1:return w=g.OB(y),w===4?b.return(4):g.R(b,g.y1(),2);case 2:J=b.W;if(!J)throw g.t_("wiac");if(!O||T===void 0){b.ej(3);break}return g.R(b,m8S(O,T),4);case 4:T=b.W;case 3:return F=Q.lastModified||"0",g.R(b,g.Jk(J),5);case 5:return Y=b.W,g.EC(b,6),FI++,g.R(b,g.lv(Y,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",ij:!0},function(Z){if(d!==void 0&&T!==void 0){var k=""+y+"|"+q.id+"|"+F+"|"+String(d).padStart(10, "0");k=g.z3(Z.objectStore("media"),T,k)}else k=g.kC.resolve(void 0);var S=CPC(y,q.V5()),N=CPC(y,!q.V5()),l={fmts:yai(p),format:Q||{}};S=g.z3(Z.objectStore("index"),l,S);var u=p.downloadedEndTime===-1;l=u?Z.objectStore("index").get(N):g.kC.resolve(void 0);var c={fmts:"music",format:{}};Z=u&&v&&!q.V5()?g.z3(Z.objectStore("index"),c,N):g.kC.resolve(void 0);return g.kC.all([Z,l,k,S]).then(function(X){X=g.t(X);X.next();X=X.next().value;FI--;var A=g.OB(y);if(A!==4&&u&&v||X!==void 0&&g.qkg(X.fmts))A=1,g.wx(y, A);return A})}),8); case 8:return b.return(b.W);case 6:f=g.Rj(b);FI--;h=g.OB(y);if(h===4)return b.return(h);g.wx(y,4);throw f;}})}; g.jSp=function(y){var q,Q;return g.M(function(p){if(p.K==1)return g.R(p,g.y1(),2);if(p.K!=3){q=p.W;if(!q)throw g.t_("ri");return g.R(p,g.Jk(q),3)}Q=p.W;return p.return(g.lv(Q,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(v){var d=IDBKeyRange.bound(y+"|",y+"~");return v.objectStore("index").getAll(d).then(function(T){return T.map(function(O){return O?O.format:{}})})}))})}; pcg=function(y,q,Q,p,v){var d,T,O;return g.M(function(w){if(w.K==1)return g.R(w,g.y1(),2);if(w.K!=3){d=w.W;if(!d)throw g.t_("rc");return g.R(w,g.Jk(d),3)}T=w.W;O=g.lv(T,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(J){var F=""+y+"|"+q+"|"+Q+"|"+String(p).padStart(10,"0");return J.objectStore("media").get(F)}); return v?w.return(O.then(function(J){if(J===void 0)throw Error("No data from indexDb");return QS8(v,J)}).catch(function(J){throw new g.GH("Error while reading chunk: "+J.name+", "+J.message); })):w.return(O)})}; g.qkg=function(y){return y?y==="music"?!0:y.includes("dlt=-1")||!y.includes("dlt="):!1}; CPC=function(y,q){return""+y+"|"+(q?"v":"a")}; yai=function(y){var q={};return p9((q.dlt=y.downloadedEndTime.toString(),q.mket=y.maxKnownEndTime.toString(),q.avbr=y.averageByteRate.toString(),q))}; dY2=function(y){var q={},Q={};y=g.t(y);for(var p=y.next();!p.done;p=y.next()){var v=p.value,d=v.split("|");v.match(g.vTp)?(p=Number(d.pop()),isNaN(p)?Q[v]="?":(d=d.join("|"),(v=q[d])?(d=v[v.length-1],p===d.end+1?d.end=p:v.push({start:p,end:p})):q[d]=[{start:p,end:p}])):Q[v]="?"}y=g.t(Object.keys(q));for(p=y.next();!p.done;p=y.next())p=p.value,Q[p]=q[p].map(function(T){return T.start+"-"+T.end}).join(","); return Q}; fL=function(y){g.V6.call(this);this.K=null;this.N=new Ar;this.K=null;this.G=new Set;this.crossOrigin=y||""}; TiD=function(y,q,Q){for(Q=hk(y,Q);Q>=0;){var p=y.levels[Q];if(p.isLoaded(bc(p,q))&&(p=g.$3(p,q)))return p;Q--}return g.$3(y.levels[0],q)}; OFj=function(y,q,Q){Q=hk(y,Q);for(var p,v;Q>=0;Q--)if(p=y.levels[Q],v=bc(p,q),!p.isLoaded(v)){p=y;var d=Q,T=d+"-"+v;p.G.has(T)||(p.G.add(T),p.N.enqueue(d,{AA:d,JX:v}))}Vuf(y)}; Vuf=function(y){if(!y.K&&!y.N.isEmpty()){var q=y.N.remove();y.K=wcj(y,q)}}; wcj=function(y,q){var Q=document.createElement("img");y.crossOrigin&&(Q.crossOrigin=y.crossOrigin);Q.src=y.levels[q.AA].i6(q.JX);Q.onload=function(){var p=q.AA,v=q.JX;y.K!==null&&(y.K.onload=null,y.K=null);p=y.levels[p];p.loaded.add(v);Vuf(y);var d=p.columns*p.rows;v*=d;p=Math.min(v+d-1,p.Zt()-1);v=[v,p];y.publish("l",v[0],v[1])}; return Q}; g.KL=function(y,q,Q,p){this.level=y;this.Y=q;this.loaded=new Set;this.level=y;this.Y=q;y=Q.split("#");this.width=Math.floor(Number(y[0]));this.height=Math.floor(Number(y[1]));this.frameCount=Math.floor(Number(y[2]));this.columns=Math.floor(Number(y[3]));this.rows=Math.floor(Number(y[4]));this.K=Math.floor(Number(y[5]));this.N=y[6];this.signature=y[7];this.videoLength=p}; bc=function(y,q){return Math.floor(q/(y.columns*y.rows))}; g.$3=function(y,q){q>=y.mQ()&&y.C2();var Q=bc(y,q),p=y.columns*y.rows,v=q%p;q=v%y.columns;v=Math.floor(v/y.columns);var d=y.C2()+1-p*Q;if(d1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; JaH=function(y,q,Q){return(y=y.levels[q])?y.z6(Q):-1}; hk=function(y,q){var Q=y.Y.get(q);if(Q)return Q;Q=y.levels.length;for(var p=0;p=q)return y.Y.set(q,p),p;y.Y.set(q,Q-1);return Q-1}; W3=function(y,q,Q,p){Q=Q.split("#");Q=[Q[1],Q[2],0,Q[3],Q[4],-1,Q[0],""].join("#");g.KL.call(this,y,q,Q,0);this.W=null;this.J=p?2:0}; ZD=function(y,q,Q,p){x3.call(this,y,0,void 0,q,!(p===void 0||!p));for(y=0;y=0?YD.countDownSecsForFullscreen*1E3:-1);y.L("web_autonav_color_transition")&&YD.watchToWatchTransitionRenderer&&(y.watchToWatchTransitionRenderer=g.U(YD.watchToWatchTransitionRenderer, aY8))}var tO=eT9(y);if(tO){var wM,VO,Ep,k8=tO==null?void 0:(wM=tO[0])==null?void 0:(VO=wM.endScreenVideoRenderer)==null?void 0:(Ep=VO.navigationEndpoint)==null?void 0:Ep.clickTrackingParams,nY=g.Rf(y);k8&&nY&&(nY.sessionData={itct:k8})}y.vI.currentVideoThumbnail&&(y.C=md(y.vI.currentVideoThumbnail));var US,rR,o5,Vp,gr,k$=(US=y.vI)==null?void 0:(rR=US.contents)==null?void 0:(o5=rR.twoColumnWatchNextResults)==null?void 0:(Vp=o5.results)==null?void 0:(gr=Vp.results)==null?void 0:gr.contents;if(k$&&k$[0]){var LW= k$[0].videoPrimaryInfoRenderer;LW&&LW&&LW.subtitle&&(y.Was=g.b7(LW.subtitle))}if(k$&&k$[1]){var On,AL,kn,ea,c2=(On=k$[1].videoSecondaryInfoRenderer)==null?void 0:(AL=On.owner)==null?void 0:(kn=AL.videoOwnerRenderer)==null?void 0:(ea=kn.thumbnail)==null?void 0:ea.thumbnails;c2&&c2.length&&(y.profilePicture=c2[c2.length-1].url)}var LX=FW(q),Lf,wo=(Lf=y.getWatchNextResponse())==null?void 0:Lf.onResponseReceivedEndpoints;if(wo)for(var J9=g.t(wo),az=J9.next();!az.done;az=J9.next()){var mH=az.value;g.U(mH, sB)&&(y.Ic=g.U(mH,sB));var wW=g.U(mH,Nib),dQ=void 0;if((dQ=wW)==null?0:dQ.entityKeys)y.Zh=wW.entityKeys||[],wW.visibleOnLoadKeys&&(y.visibleOnLoadKeys=wW.visibleOnLoadKeys)}if(y.L("web_key_moments_markers")){var Yv=g.Mg.getState().entities,bh=g.po("visibility_override","markersVisibilityOverrideEntity");var rX=dH(Yv,"markersVisibilityOverrideEntity",bh);y.BI=(rX==null?void 0:rX.videoId)===(y.videoId||LX)&&(rX==null?0:rX.visibilityOverrideMarkersKey)?rX.visibilityOverrideMarkersKey:y.visibleOnLoadKeys; y.visibleOnLoadKeys=[].concat(g.hH(y.BI))}}}; SC=function(y){var q;return((q=y.autoplaySwitchButtonRenderer)==null?void 0:q.enabled)!==void 0}; lc=function(y){return!!(y.N&&y.N.videoInfos&&y.N.videoInfos.length)}; g.gx=function(y){var q=y.X;y.L("html5_gapless_unlimit_format_selection")&&z1(y)&&(q=!1);var Q=!!y.K&&y.K.E9,p=y.wp,v=y.BU(),d=DD(y),T=y.HI,O=q,w=y.isOtf();q=y.wB();var J=y.Os,F=y.getUserAudio51Preference(),Y=uc(y),f=If(y),h=new e3g(p);if(p.U9()||p.L("html5_logging_format_selection"))h.W=!0;h.Vm=d;h.HI=T&&p.C;h.gp=F;g.BF("windows nt 5.1")&&!g.bU&&(h.Hp=!0);if(d=v)d=g.le(p)?qLC(p):!1;d&&(h.cI=!0);O&&(h.Hp=!0,h.EW=!0);w&&!p.L("html5_otf_prefer_vp9")&&(h.Hp=!0);p.playerStyle==="picasaweb"&&(w&&(h.Hp= !1),h.N$=!1);J&&(h.Hp=!0);P_(p.J,iH.CHANNELS)&&(p.L("html5_enable_ac3")&&(h.Y=!0),p.L("html5_enable_eac3")&&(h.J=!0),p.L("html5_enable_ac3_gapless")&&(h.Es=!0));p.L("html5_block_8k_hfr")&&(h.BI=!0);h.G=g.wm(p.experiments,"html5_max_selectable_quality_ordinal");h.X=g.wm(p.experiments,"html5_min_selectable_quality_ordinal");QK&&(h.Mz=480);if(Q||v)h.N$=!1;h.Dw=!1;h.disableAv1=Y;Q=Tt(p,h.K,void 0,h.disableAv1);Q>0&&Q<2160&&(EA()||p.L("html5_format_hybridization"))&&(h.K.supportsChangeType=+EA(),h.Jz= Q);Q>=2160&&(h.Sj=!0);J8i()&&!p.L("disable_av1_setting")&&(h.K.serveVp9OverAv1IfHigherRes=0,h.BT=!1);h.wB=q;h.LK=g.iv||vn()&&!q?!1:!0;h.C=p.L("html5_format_hybridization");h.RH=p.L("html5_disable_encrypted_vp9_live_non_2k_4k");h.Se=f;nL(y)&&(h.F0=y.L("html5_prefer_language_over_codec"));ib()&&y.playerResponse&&y.playerResponse.playerConfig&&y.playerResponse.playerConfig.webPlayerConfig&&y.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(h.Y=!0,h.J=!0);y.X&&y.isAd()&&(y.GH&& (h.j=y.GH),y.Lq&&(h.N=y.Lq));y.jP()&&(h.m3=g.wm(y.wp.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));h.vI=y.isLivePlayback&&y.AR()&&y.wp.L("html5_drm_live_audio_51");h.cB=y.Nv;h.hw=!nL(y);return y.Wn=h}; uc=function(y){return y.wp.L("html5_disable_av1")?!0:!1}; SkS=function(y){zn("drm_pb_s",void 0,y.cI);y.Vm||y.K&&ot(y.K);var q={};y.K&&(q=LPp(y.rL,g.gx(y),y.wp.J,y.K,function(Q){return y.publish("ctmp","fmtflt",Q)},!0,new Set)); q=new xE(q,y.wp,y.i8,y.useCobaltWidevine?ib()?c3(y):!1:!1,function(Q,p){y.Rb(Q,p)}); g.n(y,q);y.oL=!1;y.loading=!0;ijj(q,function(Q){zn("drm_pb_f",void 0,y.cI);for(var p=g.t(Q),v=p.next();!v.done;v=p.next())switch(v=v.value,v.flavor){case "fairplay":v.Vm=y.Vm;v.L8=y.L8;v.iJ=y.iJ;break;case "widevine":v.fF=y.fF}y.CL=Q;if(y.CL.length>0&&(y.J=y.CL[0],y.wp.U9())){Q={};p=g.t(Object.entries(y.J.K));for(v=p.next();!v.done;v=p.next()){var d=g.t(v.value);v=d.next().value;d=d.next().value;var T="unk";(v=v.match(/(.*)codecs="(.*)"/))&&(T=v[2]);Q[T]=d}y.Rb("drmProbe",Q)}y.d7()})}; HFp=function(y,q){if(q.length===0||UB(y))return null;y.wp.J.N&&(p8=!0);var Q=y.Uy;var p=y.lengthSeconds,v=y.isLivePlayback,d=y.Gf,T=y.wp,O=sJ9(q);if(v||d){T=T.experiments;p=new rB("",T,!0);p.W=!d;p.E9=!0;p.isManifestless=!0;p.isLive=!d;p.Gf=d;q=g.t(q);for(v=q.next();!v.done;v=q.next()){var w=v.value;v=eE(w,Q);O=QP(w);O=GJ(O.BS||w.url||"",O.hf,O.s);var J=O.get("id");J&&J.includes("%7E")&&(p.cI=!0);var F=void 0;J=(F=T)==null?void 0:F.ob("html5_max_known_end_time_rebase");F=Number(w.targetDurationSec|| 5);w=Number(w.maxDvrDurationSec||14400);var Y=Number(O.get("mindsq")||O.get("min_sq")||"0"),f=Number(O.get("maxdsq")||O.get("max_sq")||"0")||Infinity;p.Q5=p.Q5||Y;p.rS=p.rS||f;var h=!OA(v.mimeType);O&&gB(p,new EV(O,v,{nV:F,fL:h,jW:w,Q5:Y,rS:f,XK:300,Gf:d,N3:J}))}Q=p}else if(O==="FORMAT_STREAM_TYPE_OTF"){p=p===void 0?0:p;d=new rB("",T.experiments,!1);d.duration=p||0;T=g.t(q);for(p=T.next();!p.done;p=T.next())p=p.value,q=eE(p,Q,d.duration),v=QP(p),(v=GJ(v.BS||p.url||"",v.hf,v.s))&&(q.streamType==="FORMAT_STREAM_TYPE_OTF"? gB(d,new ka(v,q,"sq/0")):gB(d,new uq(v,q,p5(p.initRange),p5(p.indexRange))));d.isOtf=!0;Q=d}else{p=p===void 0?0:p;d=new rB("",T.experiments,!1);d.duration=p||0;T=g.t(q);for(p=T.next();!p.done;p=T.next())O=p.value,p=eE(O,Q,d.duration),q=p5(O.initRange),v=p5(O.indexRange),J=QP(O),(O=GJ(J.BS||O.url||"",J.hf,J.s))&&gB(d,new uq(O,p,q,v));Q=d}d=y.isLivePlayback&&!y.Gf&&!y.m3&&!y.isPremiere;y.L("html5_live_head_playable")&&(!rx(y)&&d&&y.Rb("missingLiveHeadPlayable",{}),y.wp.cI==="yt"&&(Q.Vm=!0));return Q}; UB=function(y){return ib()?!c3(y):mU()?!(!y.Vm||!y.L("html5_enable_safari_fairplay")&&Sz()):!1}; c3=function(y){return y.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Ng=function(y,q){q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,Q.cueRangeSetIdentifier){var p=void 0;y.eL.set(Q.cueRangeSetIdentifier,(p=Q.playerCueRanges)!=null?p:[])}}; of=function(y){return!(!y.K||!y.K.isManifestless)}; Ak=function(y){return y.T8?y.isLowLatencyLiveStream&&y.K!=null&&ms(y.K)>=5:y.isLowLatencyLiveStream&&y.K!=void 0&&ms(y.K)>=5}; Rvp=function(y){return ib()&&c3(y)?!1:UB(y)&&(g.tc(y.wp)?!y.isLivePlayback:y.hlsvp)||!Sz()||y.cS?!0:!1}; Muj=function(y){y.loading=!0;y.W_=!1;if(sSC(y))g.jSp(y.videoId).then(function(p){var v;if((v=y.playerResponse)!=null&&v.streamingData){v=[];p=g.t(p);for(var d=p.next();!d.done;d=p.next())d=Object.assign({},d.value),d.signatureCipher="",v.push(d);v.length<2&&y.Rb("offmlf",{len:v.length});v=HFp(y,v);DD(y)&&rXj(v,!1);eC(y,v);y.Rb("dlr",{})}else y.Rb("offsdm",{cotn:y.Wz?y.Wz.cotn:"0",cpn:y.clientPlaybackNonce})}).then(function(){y.d7()}); else{iF(y.Aw)||g.zI(new g.GH("DASH MPD Origin invalid: ",y.Aw));var q=y.Aw,Q=g.wm(y.wp.experiments,"dash_manifest_version")||4;q=g.kb(q,{mpd_version:Q});y.isLowLatencyLiveStream&&y.latencyClass!=="NORMAL"||(q=g.kb(q,{pacing:0}));gA9(q,y.wp.experiments,y.isLivePlayback).then(function(p){y.iB()||(eC(y,p,!0),zn("mrc",void 0,y.cI),y.d7())},function(p){y.iB()||(y.loading=!1,y.publish("dataloaderror",new g.t7("manifest.net.retryexhausted",{backend:"manifest", rc:p.status},1)))}); zn("mrs",void 0,y.cI)}}; lY9=function(y){var q;return!((q=y.wp.getWebPlayerContextConfig())==null||!q.enableProximaLowLatency)}; B3=function(y){if(!y.isProximaLatencyEligible)return 0;var q=E1();return lY9(y)?2:q===1?1:y.L("html5_enable_proxima")?2:0}; eC=function(y,q,Q){Q=Q===void 0?!1:Q;y.zY=void 0;y.K=q;g.n(y,q);q.Q5=y.Q5;q.rS=y.rS;q.gp=y.gp;q.Se=y.Se;q.XL=y.XL;y.z5&&(q.j=new Ga(y.z5));(y.BU()||g.G1(y))&&y.Sj.push("webgl");y.K.isLive||(y.isLivePlayback=!1);var p=q.sourceUrl.split("/");if(y.T8?p.indexOf("manifest_duration")!==-1:p.indexOf("manifest_duration")!=-1)y.xK=Number(p[p.indexOf("manifest_duration")+1]);if(q.W||q.isManifestless)q.subscribe("clienttemp",y.Rb,y),Q?q.subscribe("refresh",y.bG,y):q.subscribe("cuepointsadded",y.qZ,y);ot(q)? y.oL=!0:ZT=void 0;y.m3&&(q.Y=y.m3,q.isLive=!0,y.isLivePlayback=!0);q.isPremiere=y.isPremiere;q.isLiveHeadPlayable=y.isLiveHeadPlayable}; zvD=function(y,q){var Q=q||Rvp(y)||y.isExternallyHostedPodcast;if(!y.K||Q)return y.Rb("skipDash",{dm:!!y.K,air:q,dd:y.cS,mss:Sz(),"3pp":y.isExternallyHostedPodcast}),D1();DD(y)&&rXj(y.K,y.isLivePlayback);return ub().then(function(){return NCS(y.rL,g.gx(y),y.wp.J,y.K,y.J,function(p){return y.publish("ctmp","fmtflt",p)},y.Bz,nL(y)&&y.L("html5_enable_server_format_filter")).then(function(p){y.o4(p); y.rL.K=null;/^av/.test(y.clientPlaybackNonce)&&y.Wn&&y.Rb("av1",y.Wn.K)})})}; uEC=function(y,q){if(q&&y.hlsvp)return D1();if(y.hlsFormats){q=P3(y.hlsFormats);var Q;if(((Q=y.Wn)==null?0:Q.W)&&q){Q=[];for(var p=g.t(q),v=p.next();!v.done;v=p.next())Q.push(v.value.itag);y.Rb("hlsfmt",{itags:Q.join(".")})}y.jY=b6p(y.wp,q);y.jY&&DYg(y,y.jY);Q=y.clientPlaybackNonce;var d,T,O,w;return Z6i(y.wp,y.isAd(),q,(w=(d=y.playerResponse)==null?void 0:(T=d.captions)==null?void 0:(O=T.playerCaptionsRenderer)==null?void 0:O.baseUrl)!=null?w:null,y.Mz,Q,function(J){return y.publish("ctmp","hlsflt", J)}).then(function(J){for(var F=0,Y=[],f=g.t(J),h=f.next();!h.done;h=f.next()){h=h.value; var b=void 0;Y.push((b=h.getInfo())==null?void 0:b.itag);var Z=b=void 0;((b=h.getInfo())==null?void 0:(Z=b.audio)==null?void 0:Z.numChannels)>F&&(F=h.getInfo().audio.numChannels)}F>2&&y.Rb("hlschl",{mn:F});var k;((k=y.Wn)==null?0:k.W)&&y.Rb("hlsfmtaf",{itags:Y.join(".")});var S;if(y.L("html5_enable_vp9_fairplay")&&((S=y.J)==null?0:f8(S)))for(y.Rb("drm",{sbdlfbk:1}),F=g.t(y.CL),Y=F.next();!Y.done;Y=F.next())if(Y=Y.value,YE(Y)){y.J=Y;break}ic(y,J)})}return D1()}; IYH=function(y){if(y.isExternallyHostedPodcast&&y.t1){var q=P3(y.t1);if(!q[0])return D1();y.vQ=q[0];return kB9(y.wp,q[0]).then(function(Q){ic(y,Q)})}return y.Oa&&y.M5?Ejp(y.wp,y.isAd(),y.Oa).then(function(Q){ic(y,Q)}):D1()}; gTj=function(y){if(y.isExternallyHostedPodcast)return D1();var q=P3(y.t1,y.wj);if(y.hlsvp){var Q=FAC(y.hlsvp,y.clientPlaybackNonce,y.Mz);q.push(Q)}return tV2(y.wp,y.isAd(),q,nTC(y)).then(function(p){ic(y,p)})}; ic=function(y,q){y.EW=q;y.o4(new n3(g.W5(y.EW,function(Q){return Q.getInfo()})))}; nTC=function(y){var q={cpn:y.clientPlaybackNonce,c:y.wp.K.c,cver:y.wp.K.cver};y.h9&&(q.ptk=y.h9,q.oid=y.N7,q.ptchn=y.R6,q.pltype=y.M7,y.Ew&&(q.m=y.Ew));return q}; g.XI=function(y){return UB(y)&&y.Vm?(y={},y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",y):y.W&&y.W.Uy||null}; caS=function(y){var q=mc(y);return q&&q.text?g.b7(q.text):y.paidContentOverlayText}; UY9=function(y){var q=mc(y);return q&&q.durationMs?Dd(q.durationMs):y.paidContentOverlayDurationMs}; mc=function(y){var q,Q,p;return y.playerResponse&&y.playerResponse.paidContentOverlay&&y.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.U((q=y.vI)==null?void 0:(Q=q.playerOverlays)==null?void 0:(p=Q.playerOverlayRenderer)==null?void 0:p.playerDisclosure,ra3)||null}; CL=function(y){var q="";if(y.xZ)return y.xZ;y.isLivePlayback&&(q=y.allowLiveDvr?"dvr":y.isPremiere?"lp":y.m3?"window":"live");y.Gf&&(q="post");return q}; g.yo=function(y,q){return typeof y.keywords[q]!=="string"?null:y.keywords[q]}; oTi=function(y){return!!y.oI||!!y.JE||!!y.BD||!!y.kK||y.uU}; g.q4=function(y){return!!(y.Aw||y.t1||y.Oa||y.hlsvp||y.p$())}; k3=function(y){if(y.L("html5_onesie")&&y.errorCode)return!1;var q=g.Eu(y.Sj,"ypc");y.ypcPreview&&(q=!1);return y.hj()&&!y.loading&&(g.q4(y)||g.Eu(y.Sj,"heartbeat")||q)}; P3=function(y,q){y=d_(y);var Q={};if(q){q=g.t(q.split(","));for(var p=q.next();!p.done;p=q.next())(p=p.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(Q[p[1]]={width:p[2],height:p[3]})}q=g.t(y);for(p=q.next();!p.done;p=q.next()){p=p.value;var v=Q[p.itag];v&&(p.width=v.width,p.height=v.height)}return y}; WAf=function(y,q){y.showShareButton=!!q;var Q,p,v=((Q=g.U(q,g.xT))==null?void 0:Q.navigationEndpoint)||((p=g.U(q,g.xT))==null?void 0:p.command);v&&(y.B9=!!g.U(v,AaD))}; Ykb=function(y,q){var Q=q.raw_embedded_player_response;if(!Q){var p=q.embedded_player_response;p&&(Q=JSON.parse(p))}Q&&(y.Zj=Q);if(y.Zj){y.embeddedPlayerConfig=y.Zj.embeddedPlayerConfig||null;if(Q=y.Zj.videoFlags)Q.playableInEmbed&&(y.allowEmbed=!0),Q.isPrivate&&(y.isPrivate=!0),Q.userDisplayName&&(q.user_display_name=Q.userDisplayName),Q.userDisplayImage&&(q.user_display_image=Q.userDisplayImage);if(Q=y.Zj.embedPreview){Q=Q.thumbnailPreviewRenderer;Aqs(y,Q.controlBgHtml);if(p=Q.defaultThumbnail)y.C= md(p);y.L("embeds_web_enable_search_button")&&Q.searchButton&&(p=g.U(Q.searchButton,g.xT))&&(y.fey=g.U(p.navigationEndpoint,g.jY));(p=g.U(Q==null?void 0:Q.videoDetails,evS))&&krp(y,q,p);p=g.U(Q==null?void 0:Q.videoDetails,Big);y.oo=!!Q.addToWatchLaterButton;WAf(y,Q.shareButton);if(p==null?0:p.musicVideoType)y.musicVideoType=p.musicVideoType;var v,d,T,O,w;if(p=g.U((v=y.getEmbeddedPlayerResponse())==null?void 0:(d=v.embedPreview)==null?void 0:(T=d.thumbnailPreviewRenderer)==null?void 0:(O=T.playButton)== null?void 0:(w=O.buttonRenderer)==null?void 0:w.navigationEndpoint,g.H3))H6S(y,p),y.videoId=p.videoId||y.videoId;Q.videoDurationSeconds&&(y.lengthSeconds=Dd(Q.videoDurationSeconds));Q.webPlayerActionsPorting&&ojC(y,Q.webPlayerActionsPorting);if(v=g.U(Q==null?void 0:Q.playlist,Grs)){y.zB=!0;d=[];T=Number(v.currentIndex);if(v.contents)for(O=0,w=v.contents.length;O0:y.zI?!1:y.wp.YW||y.wp.QY||!g.d1(y.wp)?!0:!1:(y.zI?0:y.QY)&&g.d1(y.wp)?!0:!1;y.L("html5_log_detailpage_autoplay")&&FQ(y)==="detailpage"&&y.Rb("autoplay_info",{autoplay:y.KU,autonav:y.isAutonav,wasDompaused:y.zI,result:q});return q}; g.$W=function(y){return y.oauthToken||y.wp.eP}; p$3=function(y){if(y.L("html5_stateful_audio_normalization")){var q=1,Q=g.wm(y.wp.experiments,"html5_default_ad_gain");Q&&y.isAd()&&(q=Q);var p,v;Q=(v=(p=y.Y)==null?void 0:p.audio.Y)!=null?v:y.Tc;if(Q==null||isNaN(Q))y=Qr9(y);else{p=(0,g.SK)();y.l7=2;v=p-y.wp.oD<=y.maxStatefulTimeThresholdSec*1E3;y.applyStatefulNormalization&&v?y.l7=4:v||(y.wp.Db=Infinity,y.wp.oD=NaN);v=(y.l7===4?g.rV(y.wp.Db,y.minimumLoudnessTargetLkfs,y.loudnessTargetLkfs):y.loudnessTargetLkfs)-Q;if(y.l7!==4){var d,T,O,w,J=((d= y.playerResponse)==null?void 0:(T=d.playerConfig)==null?void 0:(O=T.audioConfig)==null?void 0:(w=O.loudnessNormalizationConfig)==null?void 0:w.statelessLoudnessAdjustmentGain)||0;v+=J}v=Math.min(v,0);y.preserveStatefulLoudnessTarget&&(y.wp.Db=Q+v,y.wp.oD=p);y=Math.min(1,Math.pow(10,v/20))||q}}else y=Qr9(y);return y}; Qr9=function(y){var q=1,Q=g.wm(y.wp.experiments,"html5_default_ad_gain");Q&&y.isAd()&&(q=Q);if(y.qM){var p,v;Q=((p=y.Y)==null?void 0:p.audio.N)!=null?(v=y.Y)==null?void 0:v.audio.N:y.Bn}else{var d;Q=((d=y.Y)==null?void 0:d.audio.N)||y.Bn}isNaN(Q)||(y.l7=1);return Math.min(1,Math.pow(10,-Q/20))||q}; DD=function(y){var q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],Q=tB(y.wp)==="TVHTML5_SIMPLY"&&y.wp.K.ctheme==="MUSIC";!y.Hn&&(g.Us(y.wp)||g.Hr(y.wp)||Q)&&(q.includes(y.musicVideoType)||y.isExternallyHostedPodcast)&&(y.Hn=!0);if(q=g.PF())q=/Starboard\/([0-9]+)/.exec(g.cK()),q=(q?parseInt(q[1],10):NaN)<10;Q=y.wp;Q=(tB(Q)==="TVHTML5_CAST"||tB(Q)==="TVHTML5"&&(Q.K.cver.startsWith("6.20130725")||Q.K.cver.startsWith("6.20130726")))&&y.wp.K.ctheme==="MUSIC";var p;if(p=!y.Hn)Q||(Q= y.wp,Q=tB(Q)==="TVHTML5"&&Q.K.cver.startsWith("7")),p=Q;p&&!q&&(q=y.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",Q=(y.L("cast_prefer_audio_only_for_atv_and_uploads")||y.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&y.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",q||Q||y.isExternallyHostedPodcast)&&(y.Hn=!0);return y.wp.deviceIsAudioOnly||y.Hn&&y.wp.C}; If=function(y){var q,Q,p;return((q=y.playerResponse)==null?void 0:(Q=q.playerConfig)==null?void 0:(p=Q.compositeVideoConfig)==null?void 0:p.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; v73=function(y){var q,Q,p,v=(q=y.playerResponse)==null?void 0:(Q=q.playerConfig)==null?void 0:(p=Q.compositeVideoConfig)==null?void 0:p.sourceConfigs,d,T,O;y=(d=y.playerResponse)==null?void 0:(T=d.playerConfig)==null?void 0:(O=T.compositeVideoConfig)==null?void 0:O.defaultActiveSourceVideoId;if(!v||!y)return"";v=g.t(v);for(d=v.next();!d.done;d=v.next())if(d=d.value,d.videoId===y&&d.audioTracks)for(d=g.t(d.audioTracks),T=d.next();!T.done;T=d.next())if(T=T.value,T.isDefaultForSource)return T.id||""; return""}; g.dlp=function(y){return y.E9()&&nL(y)}; K$=function(y){var q,Q,p;return!!((q=y.playerResponse)==null?0:(Q=q.playerConfig)==null?0:(p=Q.mediaCommonConfig)==null?0:p.splitScreenEligible)}; xW=function(y){var q;return!((q=y.playerResponse)==null||!q.compositePlayabilityStatus)}; TcH=function(y){return isNaN(y)?0:Math.max((Date.now()-y)/1E3-30,0)}; W4=function(y){return!(!y.vD||!y.wp.C)&&y.p$()}; Zt=function(y){return y.Uw&&y.enableServerStitchedDai}; VG9=function(y){return y.T5&&!y.z5}; nL=function(y){var q=y.L("html5_enable_sabr_on_drive")&&y.wp.cI==="gd";if(y.Kf)return y.T5&&y.Rb("fds",{fds:!0},!0),!1;if(y.wp.cI!=="yt"&&!q)return y.T5&&y.Rb("dsvn",{ns:y.wp.cI},!0),!1;if(y.cotn||!y.K||y.K.isOtf&&!y.L("html5_enable_sabr_otf_in_client")||y.N&&!y.N.K||y.WQ&&!y.L("html5_enable_sabr_csdai"))return!1;if(y.L("html5_use_sabr_requests_for_debugging"))return!0;y.T5&&y.Rb("esfw",{usbc:y.T5,hsu:!!y.z5},!0);if(y.T5&&y.z5)return!0;if(y.L("html5_remove_client_sabr_determination"))return!1;var Q= !y.K.E9&&!y.AR();q=Q&&Ed&&y.L("html5_enable_sabr_vod_streaming_xhr");Q=Q&&!Ed&&y.L("html5_enable_sabr_vod_non_streaming_xhr");var p=ts(y),v=y.L("html5_enable_sabr_drm_vod_streaming_xhr")&&Ed&&y.AR()&&!y.K.E9&&(y.drmProduct==="1"?!1:!0);(q=q||Q||p||v)&&!y.z5&&y.Rb("sabr",{loc:"m"},!0);return q&&!!y.z5}; ts=function(y){var q;if(!(q=Ed&&y.E9()&&y.AR()&&(y.drmProduct==="1"?!1:!0)&&y.L("html5_sabr_live_drm_streaming_xhr"))){q=y.E9()&&!y.AR()&&Ed;var Q=y.E9()&&y.latencyClass!=="ULTRALOW"&&!y.isLowLatencyLiveStream&&y.L("html5_sabr_live_normal_latency_streaming_xhr"),p=y.isLowLatencyLiveStream&&y.L("html5_sabr_live_low_latency_streaming_xhr"),v=y.latencyClass==="ULTRALOW"&&y.L("html5_sabr_live_ultra_low_latency_streaming_xhr");q=q&&(Q||p||v)}Q=q;q=y.enableServerStitchedDai&&Q&&y.L("html5_enable_sabr_ssdai_streaming_xhr"); Q=!y.enableServerStitchedDai&&Q;p=y.E9()&&!Ed&&y.L("html5_enable_sabr_live_non_streaming_xhr");y=Ed&&(y.Lg()||K$(y)&&y.L("html5_enable_sabr_for_lifa_eligible_streams"));return q||Q||p||y}; sSC=function(y){var q;if(q=!!y.cotn)q=y.videoId,q=!!q&&g.OB(q)===1;return q&&!y.vD}; g.E7=function(y){if(!y.K||!y.W||!y.Y)return!1;var q=y.K.K,Q=!!q[y.W.id]&&yP(q[y.W.id].uj.K);q=!!q[y.Y.id]&&yP(q[y.Y.id].uj.K);return(y.W.itag==="0"||Q)&&q}; kW=function(y){return y.bJ?["OK","LIVE_STREAM_OFFLINE"].includes(y.bJ.status):!0}; PES=function(y){return(y=y.A0)&&y.showError?y.showError:!1}; L$=function(y,q){return y.L(q)?!0:(y.fflags||"").includes(q+"=true")}; KA9=function(y,q){q.inlineMetricEnabled&&(y.inlineMetricEnabled=!0);q.playback_progress_0s_url&&(y.kK=new GBf(q));if(q=q.video_masthead_ad_quartile_urls)y.JE=q.quartile_0_url,y.Ac=q.quartile_25_url,y.Cr=q.quartile_50_url,y.IN=q.quartile_75_url,y.T1=q.quartile_100_url,y.BD=q.quartile_0_urls,y.Y$=q.quartile_25_urls,y.mA=q.quartile_50_urls,y.a8=q.quartile_75_urls,y.rl=q.quartile_100_urls}; $Yi=function(y){var q={};y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next()){Q=Q.value;var p=Q.split("=");p.length===2?q[p[0]]=p[1]:q[Q]=!0}return q}; hvg=function(y){if(y){if(S0C(y))return y;y=HD9(y);if(S0C(y,!0))return y}return""}; g.OZi=function(y){return y.captionsLanguagePreference||y.wp.captionsLanguagePreference||g.yo(y,"yt:cc_default_lang")||y.wp.I7}; aF=function(y){return!(!y.isLivePlayback||!y.hasProgressBarBoundaries())}; g.Rf=function(y){var q;return y.HG||((q=y.suggestions)==null?void 0:q[0])||null}; g.N4=function(y){var q,Q;return!!((q=y.embeddedPlayerConfig)==null?0:(Q=q.embeddedPlayerFlags)==null?0:Q.enableMusicUx)}; w$f=function(y){return y.X||y.L("web_player_media_session_infinity")&&y.isLivePlayback}; SY=function(y){return y.wp.Y&&y.isPrivate}; J3H=function(y){var q,Q;return!!((q=y.playerResponse)==null?0:(Q=q.playerConfig)==null?0:Q.granularVariableSpeedConfig)}; Fh9=function(y){return y.Vg||y.JD}; g.RF=function(y){var q=y.T(),Q=g.H4(q),p=q.b9;g.F_(q)&&(p&&(Q.thirdParty=Object.assign({},Q.thirdParty,{embedUrl:p})),btb(Q,y));if(p=y.N$)Q.clickTracking={clickTrackingParams:p};else if(g.F_(y.T())&&g.XY("EVENT_ID"))Q.clickTracking={clickTrackingParams:g.XY("EVENT_ID")};else if(q.L("html5_log_missing_itct")){var v;p=new g.GH("Missing ITCT in InnerTubeContext",{isAd:y.isAd(),qlV:(v=q.getWebPlayerContextConfig())==null?void 0:v.contextId});g.l$(p)}v=Q.client||{};p="EMBED";var d=FQ(y);d==="leanback"? p="WATCH":q.L("gvi_channel_client_screen")&&d==="profilepage"?p="CHANNEL":y.Os?p="LIVE_MONITOR":d==="detailpage"?p="WATCH_FULL_SCREEN":d==="adunit"?p="ADUNIT":d==="sponsorshipsoffer"&&(p="UNKNOWN");v.clientScreen=p;if(q=y.kidsAppInfo)v.kidsAppInfo=JSON.parse(q);(p=y.va)&&!q&&(v.kidsAppInfo={contentSettings:{ageUpMode:Ygi[p]}});if(q=y.jL)v.unpluggedAppInfo={enableFilterMode:!0};(p=y.unpluggedFilterModeType)&&!q&&(v.unpluggedAppInfo={filterModeType:f4D[p]});if(q=y.Kg)v.unpluggedLocationInfo=q;Q.client= v;v=Q.request||{};y.eP&&(v.isPrefetch=!0);if(q=y.mdxEnvironment)v.mdxEnvironment=q;if(q=y.mdxControlMode)v.mdxControlMode=hq9[q];Q.request=v;v=Q.user||{};if(q=y.Es)v.credentialTransferTokens=[{token:q,scope:"VIDEO"}];if(q=y.F0)v.delegatePurchases={oauthToken:q},v.kidsParent={oauthToken:q};Q.user=v;if(v=y.contextParams)Q.activePlayers=[{playerContextParams:v}];if(y=y.clientScreenNonce)Q.clientScreenNonce=y;return Q}; g.H4=function(y){var q=g.QT(),Q=q.client||{};if(y.forcedExperiments){var p=y.forcedExperiments.split(","),v=[];p=g.t(p);for(var d=p.next();!d.done;d=p.next())v.push(Number(d.value));Q.experimentIds=v}if(v=y.homeGroupInfo)Q.homeGroupInfo=JSON.parse(v);if(v=y.getPlayerType())Q.playerType=v;if(v=y.K.ctheme)Q.theme=v;if(v=y.livingRoomAppMode)Q.tvAppInfo=Object.assign({},Q.tvAppInfo,{livingRoomAppMode:v});v=y.deviceYear;y.L("html5_propagate_device_year")&&v&&(Q.tvAppInfo=Object.assign({},Q.tvAppInfo,{deviceYear:v})); if(v=y.livingRoomPoTokenId)Q.tvAppInfo=Object.assign({},Q.tvAppInfo,{livingRoomPoTokenId:v});q.client=Q;Q=q.user||{};y.enableSafetyMode&&(Q=Object.assign({},Q,{enableSafetyMode:!0}));y.pageId&&(Q=Object.assign({},Q,{onBehalfOfUser:y.pageId}));q.user=Q;return q}; ZZg=function(y,q,Q){var p=y.videoId,v=g.RF(y),d=y.T(),T={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Lb()),referer:document.location.toString(),signatureTimestamp:20340},O=g.rf();y.isAutonav&&(T.autonav=!0);O.Zm(141)&&(T.autonavState=O.Zm(140)?"STATE_OFF":"STATE_ON");T.autoCaptionsDefaultOn=O.Zm(66);jrD(y)&&(T.autoplay=!0);d.C&&y.cycToken&&(T.cycToken=y.cycToken);d.enablePrivacyFilter&&(T.enablePrivacyFilter=!0);y.isFling&&(T.fling=!0);var w=y.forceAdsUrl;if(w){O={};var J=[];w=w.split(","); w=g.t(w);for(var F=w.next();!F.done;F=w.next()){F=F.value;var Y=F.split("|");Y.length!==3||F.includes("=")||(Y[0]="breaktype="+Y[0],Y[1]="offset="+Y[1],Y[2]="url="+Y[2]);F={adtype:"video_ad"};Y=g.t(Y);for(var f=Y.next();!f.done;f=Y.next()){var h=g.t(f.value.split("="));f=h.next().value;h=vDs(h);F[f]=h.join("=")}Y=F.url;f=F.presetad;h=F.viralresponseurl;var b=Number(F.campaignid);if(F.adtype==="in_display_ad")Y&&(O.url=Y),f&&(O.presetAd=f),h&&(O.viralAdResponseUrl=h),b&&(O.viralCampaignId=String(b)); else if(F.adtype==="video_ad"){var Z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(F.offset)||0)}};if(F=bZC[F.breaktype])Z.breakType=F;Y&&(Z.url=Y);f&&(Z.presetAd=f);h&&(Z.viralAdResponseUrl=h);b&&(Z.viralCampaignId=String(b));J.push(Z)}}T.forceAdParameters={videoAds:J,inDisplayAd:O}}y.isInlinePlaybackNoAd&&(T.isInlinePlaybackNoAd=!0);y.isLivingRoomDeeplink&&(T.isLivingRoomDeeplink=!0);O=y.Tdm;if(O!=null){O={startWalltime:String(O)};if(J=y.xK)O.manifestDuration=String(J||14400);T.liveContext= O}if(y.mutedAutoplay){T.mutedAutoplay=!0;O=d.getWebPlayerContextConfig();var k,S;(O==null?0:(k=O.embedsHostFlags)==null?0:k.allowMutedAutoplayDurationMode)&&(O==null?0:(S=O.embedsHostFlags)==null?0:S.allowMutedAutoplayDurationMode.includes($li[y.mutedAutoplayDurationMode]))&&(T.mutedAutoplayDurationMode=$li[y.mutedAutoplayDurationMode])}if(y.zI?0:y.QY)T.splay=!0;k=y.vnd;k===5&&(T.vnd=k);k={};if(S=y.isMdxPlayback)k.triggeredByMdx=S;if(S=y.zR)k.skippableAdsSupported=S.split(",").includes("ska");if(J= y.k9){S=y.ud;O=[];J=g.t($V2(J));for(w=J.next();!w.done;w=J.next()){w=w.value;F=w.platform;w={applicationState:w.Fx?"INACTIVE":"ACTIVE",clientFormFactor:KhD[F]||"UNKNOWN_FORM_FACTOR",clientName:xVH[w.hB]||"UNKNOWN_INTERFACE",clientVersion:w.deviceVersion||"",platform:xl2[F]||"UNKNOWN_PLATFORM"};F={};if(S){Y=void 0;try{Y=JSON.parse(S)}catch(l){g.zI(l)}Y&&(F={params:[{key:"ms",value:Y.ms}]},Y.advertising_id&&(F.advertisingId=Y.advertising_id),Y.limit_ad_tracking!==void 0&&Y.limit_ad_tracking!==null&& (F.limitAdTracking=Y.limit_ad_tracking),w.osName=Y.os_name,w.userAgent=Y.user_agent,w.windowHeightPoints=Y.window_height_points,w.windowWidthPoints=Y.window_width_points)}O.push({adSignalsInfo:F,remoteClient:w})}k.remoteContexts=O}S=y.sourceContainerPlaylistId;O=y.serializedMdxMetadata;if(S||O)J={},S&&(J.mdxPlaybackContainerInfo={sourceContainerPlaylistId:S}),O&&(J.serializedMdxMetadata=O),k.mdxPlaybackSourceContext=J;T.mdxContext=k;k=q.width;k>0&&(T.playerWidthPixels=Math.round(k));if(q=q.height)T.playerHeightPixels= Math.round(q);Q!==0&&(T.vis=Q);if(Q=d.widgetReferrer)T.widgetReferrer=Q.substring(0,128);g.d1(d)&&T&&(T.ancestorOrigins=d.ancestorOrigins);y.defaultActiveSourceVideoId&&(T.compositeVideoContext={defaultActiveSourceVideoId:y.defaultActiveSourceVideoId});if(d=d.getWebPlayerContextConfig())T.encryptedHostFlags=d.encryptedHostFlags;p={videoId:p,context:v,playbackContext:{contentPlaybackContext:T}};if(y.c9){var N;p.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(N=y.c9)==null?void 0:N.reloadPlaybackParams}}y.contentCheckOk&& (p.contentCheckOk=!0);if(N=y.clientPlaybackNonce)p.cpn=N;if(N=y.playerParams)p.params=N;if(N=y.playlistId)p.playlistId=N;y.racyCheckOk&&(p.racyCheckOk=!0);N=y.T();v=N.embedConfig;y.Qg&&N.L("embeds_enable_per_video_embed_config")?p.serializedThirdPartyEmbedConfig=y.Qg:v&&(p.serializedThirdPartyEmbedConfig=v);p.captionParams={};v=g.rf().Zm(65);y.deviceCaptionsOn!=null?p.captionParams.deviceCaptionsOn=y.deviceCaptionsOn:g.Nj(N)&&(p.captionParams.deviceCaptionsOn=v!=null?!v:!1);y.RY&&(p.captionParams.deviceCaptionsLangPref= y.RY);y.fD.length?p.captionParams.viewerSelectedCaptionLangs=y.fD:g.Nj(N)&&(v=g.at(),v==null?0:v.length)&&(p.captionParams.viewerSelectedCaptionLangs=v);v=y.fetchType==="onesie"&&y.L("html5_onesie_attach_po_token");T=y.fetchType!=="onesie"&&y.L("html5_non_onesie_attach_po_token");if(v||T)v=y.T(),v.Hn&&(p.serviceIntegrityDimensions={},p.serviceIntegrityDimensions.poToken=v.Hn);N.L("fetch_att_independently")&&(p.attestationRequest={omitBotguardData:!0});p.playbackContext||(p.playbackContext={});p.playbackContext.devicePlaybackCapabilities= Whp(y);p.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&y.Rb("noVp9",{});return p}; Whp=function(y){var q=!(y==null?0:y.wB())&&(y==null?void 0:y.E9())&&vn(),Q;if(!(Q=y==null)){Q=g.gx(y);y=y.T().J;var p=g1("243");Q=!(p&&rz(Q,p,y,!0)===!0)}return{supportsVp9Encoding:!(Q||q),supportXhr:Ed}}; E7j=function(y,q){var Q,p,v;return g.M(function(d){if(d.K==1)return Q={context:g.H4(y.T()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:y.videoId,cpn:y.clientPlaybackNonce}}]},p=g.dY(tGS),g.R(d,g.rY(q,Q,p),2);v=d.W;return d.return(v)})}; kbS=function(y,q,Q){var p=g.wm(q.experiments,"bg_vm_reinit_threshold");(!K3||(0,g.SK)()-K3>p)&&E7j(y,Q).then(function(v){v&&(v=v.botguardData)&&g.W_(v,q)},function(v){y.iB()||(v=kp(v),y.Rb("attf",v.details))})}; s7=function(y,q){g.I.call(this);this.app=y;this.state=q}; lh=function(y,q,Q){y.state.K.hasOwnProperty(q)||M4(y,q,Q);y.state.X[q]=function(){return Q.apply(y,g.nS.apply(0,arguments))}; y.state.G.add(q)}; zl=function(y,q,Q){y.state.K.hasOwnProperty(q)||M4(y,q,Q);y.app.T().C&&(y.state.C[q]=function(){return Q.apply(y,g.nS.apply(0,arguments))},y.state.G.add(q))}; M4=function(y,q,Q){y.state.K[q]=function(){return Q.apply(y,g.nS.apply(0,arguments))}}; g.Dt=function(y,q,Q){return y.state.K[q].apply(y.state.K,g.hH(Q))}; uh=function(){g.s$.call(this);this.J=new Map}; IF=function(){g.I.apply(this,arguments);this.element=null;this.G=new Set;this.X={};this.C={};this.K={};this.j=new Set;this.N=new uh;this.W=new uh;this.Y=new uh;this.J=new uh}; LhS=function(y,q,Q){typeof y==="string"&&(y={mediaContentUrl:y,startSeconds:q,suggestedQuality:Q});a:{if((q=y.mediaContentUrl)&&(q=/\/([ve]|embed)\/([^#?]+)/.exec(q))&&q[2]){q=q[2];break a}q=null}y.videoId=q;return n$(y)}; n$=function(y,q,Q){if(typeof y==="string")return{videoId:y,startSeconds:q,suggestedQuality:Q};q={};Q=g.t(a4i);for(var p=Q.next();!p.done;p=Q.next())p=p.value,y[p]&&(q[p]=y[p]);if(y=y.embedConfig||y.embed_config)if(typeof y==="string")q.embed_config=y;else if(g.dk(y))try{var v=JSON.stringify(y);q.embed_config=v}catch(d){console.error("Invalid embedConfig JSON",d)}return q}; Nc2=function(y,q,Q,p){if(g.dk(y)&&!Array.isArray(y)){q="playlist list listType index startSeconds suggestedQuality".split(" ");Q={};for(p=0;p32&&p.push("hfr");q.isHdr()&&p.push("hdr");q.primaries==="bt2020"&&p.push("wcg");Q.video_quality_features=p}}if(y=y.getPlaylistId())Q.list=y;return Q}; oF=function(){g6.apply(this,arguments)}; As=function(y,q){var Q={};if(y.app.T().N$){y=g.t(srD);for(var p=y.next();!p.done;p=y.next())p=p.value,q.hasOwnProperty(p)&&(Q[p]=q[p]);if(q=Q.qoe_cat)y="",typeof q==="string"&&q.length>0&&(y=q.split(",").filter(function(v){return MGb.includes(v)}).join(",")),Q.qoe_cat=y; l4i(Q)}else for(y=g.t(zqC),p=y.next();!p.done;p=y.next())p=p.value,q.hasOwnProperty(p)&&(Q[p]=q[p]);return Q}; l4i=function(y){var q=y.raw_player_response;if(!q){var Q=y.player_response;Q&&(q=JSON.parse(Q))}delete y.player_response;delete y.raw_player_response;if(q){y.raw_player_response={streamingData:q.streamingData,playerConfig:q.playerConfig};var p;if((p=q.playbackTracking)==null?0:p.qoeUrl)y.raw_player_response=Object.assign({},y.raw_player_response,{playbackTracking:{qoeUrl:q.playbackTracking.qoeUrl}});q.videoDetails&&(q.videoDetails.videoId||q.videoDetails.lengthSeconds)&&(Q={},q.videoDetails.videoId&& (Q.videoId=q.videoDetails.videoId),q.videoDetails.lengthSeconds&&(Q.lengthSeconds=q.videoDetails.lengthSeconds),y.raw_player_response=Object.assign({},y.raw_player_response,{videoDetails:Q}))}}; u6b=function(y){var q=q===void 0?5:q;return y?Dl3[y]||q:q}; g.eY=function(){oF.apply(this,arguments)}; I4b=function(y){M4(y,"getInternalApiInterface",y.getInternalApiInterface);M4(y,"addEventListener",y.bK);M4(y,"removeEventListener",y.IN3);M4(y,"cueVideoByPlayerVars",y.U6);M4(y,"loadVideoByPlayerVars",y.GyK);M4(y,"preloadVideoByPlayerVars",y.Xnb);M4(y,"getAdState",y.getAdState);M4(y,"sendAbandonmentPing",y.sendAbandonmentPing);M4(y,"setLoopRange",y.setLoopRange);M4(y,"getLoopRange",y.getLoopRange);M4(y,"setAutonavState",y.setAutonavState);M4(y,"seekTo",y.J6p);M4(y,"seekBy",y.gWK);M4(y,"seekToLiveHead", y.seekToLiveHead);M4(y,"requestSeekToWallTimeSeconds",y.requestSeekToWallTimeSeconds);M4(y,"seekToStreamTime",y.seekToStreamTime);M4(y,"prefetchKeyPlay",y.prefetchKeyPlay);M4(y,"startSeekCsiAction",y.startSeekCsiAction);M4(y,"getStreamTimeOffset",y.getStreamTimeOffset);M4(y,"getVideoData",y.jf);M4(y,"setInlinePreview",y.setInlinePreview);M4(y,"getAppState",y.getAppState);M4(y,"updateLastActiveTime",y.updateLastActiveTime);M4(y,"setBlackout",y.setBlackout);M4(y,"setUserEngagement",y.setUserEngagement); M4(y,"updateSubtitlesUserSettings",y.updateSubtitlesUserSettings);M4(y,"getPresentingPlayerType",y.LN);M4(y,"canPlayType",y.canPlayType);M4(y,"updatePlaylist",y.updatePlaylist);M4(y,"updateVideoData",y.updateVideoData);M4(y,"updateEnvironmentData",y.updateEnvironmentData);M4(y,"sendVideoStatsEngageEvent",y.QoK);M4(y,"productsInVideoVisibilityUpdated",y.productsInVideoVisibilityUpdated);M4(y,"setSafetyMode",y.setSafetyMode);M4(y,"isAtLiveHead",function(q){return y.isAtLiveHead(void 0,q)}); M4(y,"getVideoAspectRatio",y.getVideoAspectRatio);M4(y,"getPreferredQuality",y.getPreferredQuality);M4(y,"getPlaybackQualityLabel",y.getPlaybackQualityLabel);M4(y,"setPlaybackQualityRange",y.Xtj);M4(y,"onAdUxClicked",y.onAdUxClicked);M4(y,"getFeedbackProductData",y.getFeedbackProductData);M4(y,"getStoryboardFrame",y.getStoryboardFrame);M4(y,"getStoryboardFrameIndex",y.getStoryboardFrameIndex);M4(y,"getStoryboardLevel",y.getStoryboardLevel);M4(y,"getNumberOfStoryboardLevels",y.getNumberOfStoryboardLevels); M4(y,"getCaptionWindowContainerId",y.getCaptionWindowContainerId);M4(y,"getAvailableQualityLabels",y.getAvailableQualityLabels);M4(y,"addCueRange",y.addCueRange);M4(y,"addUtcCueRange",y.addUtcCueRange);M4(y,"showAirplayPicker",y.showAirplayPicker);M4(y,"dispatchReduxAction",y.dispatchReduxAction);M4(y,"getPlayerResponse",y.TK);M4(y,"getWatchNextResponse",y.cR);M4(y,"getHeartbeatResponse",y.hH);M4(y,"getCurrentTime",y.ph);M4(y,"getDuration",y.YG);M4(y,"getPlayerState",y.getPlayerState);M4(y,"getPlayerStateObject", y.Dl);M4(y,"getVideoLoadedFraction",y.getVideoLoadedFraction);M4(y,"getProgressState",y.getProgressState);M4(y,"getVolume",y.getVolume);M4(y,"setVolume",y.CR);M4(y,"isMuted",y.isMuted);M4(y,"mute",y.Y_);M4(y,"unMute",y.g9);M4(y,"loadModule",y.loadModule);M4(y,"unloadModule",y.unloadModule);M4(y,"getOption",y.Qo);M4(y,"getOptions",y.getOptions);M4(y,"setOption",y.setOption);M4(y,"loadVideoById",y.C4);M4(y,"loadVideoByUrl",y.IR);M4(y,"playVideo",y.hW);M4(y,"loadPlaylist",y.loadPlaylist);M4(y,"nextVideo", y.nextVideo);M4(y,"previousVideo",y.previousVideo);M4(y,"playVideoAt",y.playVideoAt);M4(y,"getDebugText",y.getDebugText);M4(y,"getWebPlayerContextConfig",y.getWebPlayerContextConfig);M4(y,"notifyShortsAdSwipeEvent",y.notifyShortsAdSwipeEvent);M4(y,"getVideoContentRect",y.getVideoContentRect);M4(y,"setSqueezeback",y.setSqueezeback);M4(y,"toggleSubtitlesOn",y.toggleSubtitlesOn);M4(y,"isSubtitlesOn",y.isSubtitlesOn);M4(y,"getAudioTrack",y.s1);M4(y,"setAudioTrack",y.EWI);M4(y,"getAvailableAudioTracks", y.U1);M4(y,"reportPlaybackIssue",y.reportPlaybackIssue);M4(y,"setAutonav",y.setAutonav);M4(y,"isNotServable",y.isNotServable);M4(y,"channelSubscribed",y.channelSubscribed);M4(y,"channelUnsubscribed",y.channelUnsubscribed);M4(y,"togglePictureInPicture",y.togglePictureInPicture);M4(y,"supportsGaplessAudio",y.supportsGaplessAudio);M4(y,"supportsGaplessShorts",y.supportsGaplessShorts);M4(y,"enqueueVideoByPlayerVars",function(q){return void y.enqueueVideoByPlayerVars(q)}); M4(y,"clearQueue",y.clearQueue);M4(y,"getMaxPlaybackQuality",y.getMaxPlaybackQuality);M4(y,"getUserPlaybackQualityPreference",y.getUserPlaybackQualityPreference);M4(y,"getSubtitlesUserSettings",y.getSubtitlesUserSettings);M4(y,"resetSubtitlesUserSettings",y.resetSubtitlesUserSettings);M4(y,"setMinimized",y.setMinimized);M4(y,"setOverlayVisibility",y.setOverlayVisibility);M4(y,"confirmYpcRental",y.confirmYpcRental);M4(y,"queueNextVideo",y.queueNextVideo);M4(y,"handleExternalCall",y.handleExternalCall); M4(y,"logApiCall",y.logApiCall);M4(y,"isExternalMethodAvailable",y.isExternalMethodAvailable);M4(y,"setScreenLayer",y.setScreenLayer);M4(y,"getCurrentPlaylistSequence",y.getCurrentPlaylistSequence);M4(y,"getPlaylistSequenceForTime",y.getPlaylistSequenceForTime);M4(y,"shouldSendVisibilityState",y.shouldSendVisibilityState);M4(y,"syncVolume",y.syncVolume);M4(y,"highlightSettingsMenuItem",y.highlightSettingsMenuItem);M4(y,"openSettingsMenuItem",y.openSettingsMenuItem);M4(y,"getEmbeddedPlayerResponse", y.getEmbeddedPlayerResponse);M4(y,"getVisibilityState",y.getVisibilityState);M4(y,"isMutedByMutedAutoplay",y.isMutedByMutedAutoplay);M4(y,"isMutedByEmbedsMutedAutoplay",y.isMutedByEmbedsMutedAutoplay);M4(y,"setGlobalCrop",y.setGlobalCrop);M4(y,"setInternalSize",y.setInternalSize);M4(y,"setFauxFullscreen",y.setFauxFullscreen);M4(y,"setAppFullscreen",y.setAppFullscreen)}; Gl=function(y,q,Q){y=g.B4(y.Dm(),q);return Q?(Q.addOnDisposeCallback(y),null):y}; g.P4=function(y,q,Q){return y.app.T().zf?q:g.Yr("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:q,SHORTCUT:Q})}; n7b=function(y){y.Dm().element.setAttribute("aria-live","polite")}; g.ih=function(y,q){g.eY.call(this,y,q);I4b(this);zl(this,"addEventListener",this.kR);zl(this,"removeEventListener",this.P9j);zl(this,"cueVideoByPlayerVars",this.E6);zl(this,"loadVideoByPlayerVars",this.pIf);zl(this,"preloadVideoByPlayerVars",this.Z6m);zl(this,"loadVideoById",this.C4);zl(this,"loadVideoByUrl",this.IR);zl(this,"playVideo",this.hW);zl(this,"loadPlaylist",this.loadPlaylist);zl(this,"nextVideo",this.nextVideo);zl(this,"previousVideo",this.previousVideo);zl(this,"playVideoAt",this.playVideoAt); zl(this,"getVideoData",this.Xj);zl(this,"seekBy",this.y6I);zl(this,"seekTo",this.soy);zl(this,"showControls",this.showControls);zl(this,"hideControls",this.hideControls);zl(this,"cancelPlayback",this.cancelPlayback);zl(this,"getProgressState",this.getProgressState);zl(this,"isInline",this.isInline);zl(this,"setInline",this.setInline);zl(this,"setLoopVideo",this.setLoopVideo);zl(this,"getLoopVideo",this.getLoopVideo);zl(this,"getVideoContentRect",this.getVideoContentRect);zl(this,"getVideoStats",this.Kc); zl(this,"getCurrentTime",this.xa);zl(this,"getDuration",this.YG);zl(this,"getPlayerState",this.dM);zl(this,"getVideoLoadedFraction",this.ql);zl(this,"mute",this.Y_);zl(this,"unMute",this.g9);zl(this,"setVolume",this.CR);zl(this,"loadModule",this.loadModule);zl(this,"unloadModule",this.unloadModule);zl(this,"getOption",this.Qo);zl(this,"getOptions",this.getOptions);zl(this,"setOption",this.setOption);zl(this,"addCueRange",this.addCueRange);zl(this,"getDebugText",this.getDebugText);zl(this,"getStoryboardFormat", this.getStoryboardFormat);zl(this,"toggleFullscreen",this.toggleFullscreen);zl(this,"isFullscreen",this.isFullscreen);zl(this,"getPlayerSize",this.getPlayerSize);zl(this,"toggleSubtitles",this.toggleSubtitles);zl(this,"setCenterCrop",this.setCenterCrop);zl(this,"setFauxFullscreen",this.setFauxFullscreen);zl(this,"setSizeStyle",this.setSizeStyle);zl(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);zl(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);HZ9(this)}; g.XQ=function(y){y=y.yN();var q=y.fg.get("endscreen");return q&&q.x6()?!0:y.pz()}; g.m_=function(y,q){y.getPresentingPlayerType()===3?y.publish("mdxautoplaycancel"):y.AK("onAutonavCancelled",q)}; g.yl=function(y){var q=C$(y.yN());return y.app.vJ&&!y.isFullscreen()||y.getPresentingPlayerType()===3&&q&&q.yI()&&q.bE()||!!y.getPlaylist()}; g.qZ=function(y,q){g.Dt(y,"addEmbedsConversionTrackingParams",[q])}; g.Ql=function(y){return(y=g.ji(y.yN()))?y.dA():{}}; g.g78=function(y){y=(y=y.getVideoData())&&y.W;return!!y&&!(!y.audio||!y.video)&&y.mimeType!=="application/x-mpegURL"}; g.pq=function(y,q,Q){y=y.lB().element;var p=Be(y.children,function(v){v=Number(v.getAttribute("data-layer"));return Q-v||1}); p<0&&(p=-(p+1));W0(y,q,p);q.setAttribute("data-layer",String(Q))}; g.vy=function(y){var q=y.T();if(!q.Kg)return!1;var Q=y.getVideoData();if(!Q||y.getPresentingPlayerType()===3)return!1;var p=(!Q.isLiveDefaultBroadcast||q.L("allow_poltergust_autoplay"))&&!aF(Q);p=Q.isLivePlayback&&(!q.L("allow_live_autoplay")||!p);var v=Q.isLivePlayback&&q.L("allow_live_autoplay_on_mweb");y=y.getPlaylist();y=!!y&&y.yI();var d=Q.vI&&Q.vI.playerOverlays||null;d=!!(d&&d.playerOverlayRenderer&&d.playerOverlayRenderer.autoplay);d=Q.cO&&d;return!Q.ypcPreview&&(!p||v)&&!g.Eu(Q.Sj,"ypc")&& !y&&(!g.d1(q)||d)}; Ulj=function(y,q){y=c39(y.app.IW().J);y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next()){Q=Q.value;var p=Q.getAvailableAudioTracks(),v=null;p=g.t(p);for(var d=p.next();!d.done;d=p.next())if(d=d.value,d.getLanguageInfo().getId()===q){v=d;break}v&&Q.vL(v,!0)}}; dp=function(){cn.apply(this,arguments);this.requestHeaders={}}; Vl=function(){Tj||(Tj=new dp);return Tj}; OY=function(y,q){q?y.requestHeaders.Authorization="Bearer "+q:delete y.requestHeaders.Authorization}; g.wp=function(y){g.I.call(this);var q=this;this.WI=y;this.je={WU:function(){return q.WI}}}; g.JW=function(y,q,Q,p){p=p===void 0?!1:p;g.Ye.call(this,q);var v=this;this.U=y;this.cI=p;this.J=new g.sU(this);this.fade=new g.vt(this,Q,!0,void 0,void 0,function(){v.qV()}); g.n(this,this.J);g.n(this,this.fade)}; Fa=function(y){var q=y.U.getRootNode();return y.U.L("web_watch_pip")||y.U.L("web_shorts_pip")?pi(q):document}; r3p=function(y){y.sourceElement&&(document.activeElement&&g.Li(y.element,document.activeElement)&&y.sourceElement.focus(),y.sourceElement.setAttribute("aria-expanded","false"),y.sourceElement=void 0);g.lw(y.J);y.G=void 0}; YX=function(y,q,Q){y.rk()?y.QN():y.zD(q,Q)}; fq=function(y,q,Q,p){p=new g.r({S:"div",rp:["ytp-linked-account-popup-button"],M$:p,B:{role:"button",tabindex:"0"}});q=new g.r({S:"div",V:"ytp-linked-account-popup",B:{role:"dialog","aria-modal":"true",tabindex:"-1"},D:[{S:"div",V:"ytp-linked-account-popup-title",M$:q},{S:"div",V:"ytp-linked-account-popup-description",M$:Q},{S:"div",V:"ytp-linked-account-popup-buttons",D:[p]}]});g.JW.call(this,y,{S:"div",V:"ytp-linked-account-popup-container",D:[q]},100);var v=this;this.dialog=q;g.n(this,this.dialog); p.listen("click",function(){v.QN()}); g.n(this,p);g.pq(this.U,this.element,4);this.hide()}; g.bQ=function(y,q,Q,p){g.Ye.call(this,y);this.priority=q;Q&&g.hW(this,Q);p&&this.Ct(p)}; g.$X=function(y,q,Q,p){y=y===void 0?{}:y;q=q===void 0?[]:q;Q=Q===void 0?!1:Q;p=p===void 0?!1:p;q.push("ytp-menuitem");var v=y;"role"in v||(v.role="menuitem");Q||(v=y,"tabindex"in v||(v.tabindex="0"));y={S:Q?"a":"div",rp:q,B:y,D:[{S:"div",V:"ytp-menuitem-icon",M$:"{{icon}}"},{S:"div",V:"ytp-menuitem-label",M$:"{{label}}"},{S:"div",V:"ytp-menuitem-content",M$:"{{content}}"}]};p&&y.D.push({S:"div",V:"ytp-menuitem-secondary-icon",M$:"{{secondaryIcon}}"});return y}; g.hW=function(y,q){y.updateValue("label",q)}; Kq=function(y){g.bQ.call(this,g.$X({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var q=this;this.U=y;this.W=this.K=!1;this.fK=y.hd();y.createServerVe(this.element,this,!0);this.Z(this.U,"settingsMenuVisibilityChanged",function(Q){q.Kt(Q)}); this.Z(this.U,"videodatachange",this.Y);this.listen("click",this.onClick);this.Y()}; xX=function(y){return y?g.b7(y):""}; Wy=function(y){g.I.call(this);this.api=y}; Za=function(y){Wy.call(this,y);var q=this;M4(y,"setAccountLinkState",function(Q){q.setAccountLinkState(Q)}); M4(y,"updateAccountLinkingConfig",function(Q){q.updateAccountLinkingConfig(Q)}); y.addEventListener("videodatachange",function(Q,p){q.onVideoDataChange(p)}); y.addEventListener("settingsMenuInitialized",function(){q.menuItem=new Kq(q.api);g.n(q,q.menuItem)})}; tW=function(y){Wy.call(this,y);var q=this;this.K=null;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"applicationvideodatachange",function(){q.ZJ()})}; o79=function(y){this.api=y;this.K={}}; EY=function(y,q,Q,p){q in y.K||(Q=new g.yb(Q,p,{id:q,priority:2,namespace:"appad"}),y.api.Tf([Q],1),y.K[q]=Q)}; kX=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(this);g.n(this,this.events);this.K=new o79(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){q.K.K={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(Q){var p=q.K;EY(p,"part2viewed",1,0x8000000000000);EY(p,"engagedview",Math.max(1,Q.cB*1E3),0x8000000000000);if(!Q.isLivePlayback){var v=Q.lengthSeconds*1E3;z1(Q)&&p.api.L("html5_shorts_gapless_ads_duration_fix")&&(v=p.api.getProgressState().seekableEnd*1E3-Q.S7);EY(p,"videoplaytime25",v*.25,v);EY(p,"videoplaytime50",v*.5,v);EY(p,"videoplaytime75",v*.75,v);EY(p,"videoplaytime100",v,0x8000000000000);EY(p,"conversionview",v,0x8000000000000); EY(p,"videoplaybackstart",1,v);EY(p,"videoplayback2s",2E3,v);EY(p,"videoplayback10s",1E4,v)}}); this.events.Z(this.api,g.jw("appad"),this.W);this.events.Z(this.api,g.Qb("appad"),this.W)}; GbH=function(y,q,Q){if(!(Q in q))return!1;q=q[Q];Array.isArray(q)||(q=[q]);q=g.t(q);for(Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var p={CPN:y.api.getVideoData().clientPlaybackNonce};Q=g.l6(Q,p);p=void 0;p=p===void 0?!1:p;(p=Gm(Pl(Q,A3i),Q,p,"Active View 3rd Party Integration URL"))||(p=void 0,p=p===void 0?!1:p,p=Gm(Pl(Q,eqs),Q,p,"Google/YouTube Brand Lift URL"));p||(p=void 0,p=p===void 0?!1:p,p=Gm(Pl(Q,Bcs),Q,p,"Nielsen OCR URL"));g.n0(Q,void 0,p)}return!0}; Lq=function(y,q){Pzb(y,q).then(function(Q){g.n0(q,void 0,void 0,Q)})}; aV=function(y,q){q.forEach(function(Q){Lq(y,Q)})}; Pzb=function(y,q){return g.kt(y.api.T())&&Fq(q)&&JM(q)?g.Is(y.api.T(),g.$W(y.api.getVideoData())).then(function(Q){var p;Q&&(p={Authorization:"Bearer "+Q});return p},void 0):ub()}; iZ8=function(y){Wy.call(this,y);this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"videoready",function(q){if(y.getPresentingPlayerType()===1){var Q,p,v={playerDebugData:{pmlSignal:!!((Q=q.getPlayerResponse())==null?0:(p=Q.adPlacements)==null?0:p.some(function(d){var T;return d==null?void 0:(T=d.adPlacementRenderer)==null?void 0:T.renderer})), contentCpn:q.clientPlaybackNonce}};g.wU("adsClientStateChange",v)}})}; NZ=function(y,q){g.bQ.call(this,g.$X({role:"menuitemcheckbox","aria-checked":"false"}),q,y,{S:"div",V:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Si=function(y,q){y.checked=q;y.element.setAttribute("aria-checked",String(y.checked))}; X$D=function(y){var q=!y.T().T5&&y.getPresentingPlayerType()!==3;return y.isFullscreen()||q}; g.Hy=function(y,q,Q,p){var v=y.currentTarget;if((Q===void 0||!Q)&&g.Sn(y))return y.preventDefault(),!0;q.pauseVideo();y=v.getAttribute("href");g.G5(y,p,!0);return!1}; g.RV=function(y,q,Q){if(ko(q.T())&&q.getPresentingPlayerType()!==2){if(g.Sn(Q))return q.isFullscreen()&&!q.T().externalFullscreen&&q.toggleFullscreen(),Q.preventDefault(),!0}else{var p=g.Sn(Q);p&&q.pauseVideo();g.G5(y,void 0,!0);p&&(g.Pt(y),Q.preventDefault())}return!1}; ml9=function(y){y=sY.includes("pt-BR")?y.L("delhi_modern_web_player_icons")?tJ():{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,B:{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"}}]}:y.L("delhi_modern_web_player_icons")?oJ3():{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,B:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};y.V="ytp-subtitles-button-icon"; return y}; Czp=function(y){return sY.includes("pt-BR")?y?tJ():{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{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"}}]}:y?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},D:[{S:"path",B:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; MZ=function(){return{S:"div",V:"ytp-spinner-container",D:[{S:"div",V:"ytp-spinner-rotator",D:[{S:"div",V:"ytp-spinner-left",D:[{S:"div",V:"ytp-spinner-circle"}]},{S:"div",V:"ytp-spinner-right",D:[{S:"div",V:"ytp-spinner-circle"}]}]}]}}; lQ=function(y){if(document.createRange){var q=document.createRange();q&&(q.selectNodeContents(y),y=window.getSelection())&&(y.removeAllRanges(),y.addRange(q))}}; Da=function(y,q){var Q=y.L("web_fix_annotations")?"Sobreposi\u00e7\u00f5es com anota\u00e7\u00f5es":"Anota\u00e7\u00f5es";NZ.call(this,Q,g.zj.wV);this.U=y;this.fK=q;this.K=!1;y.L("web_settings_menu_icons")&&(q=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{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.setIcon(q));this.Z(y,"videodatachange",this.XV);this.Z(y,"onApiChange",this.XV);this.subscribe("select",this.onSelect,this);this.XV()}; yoS=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);y.addEventListener("settingsMenuInitialized",function(){var Q=new Da(q.api,q.api.hd());g.n(q,Q)})}; uQ=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);M4(this.api,"getUserAudioQualitySetting",function(){return q.getUserAudioQualitySetting()}); M4(this.api,"setUserAudioQualitySetting",function(Q){q.setUserAudioQualitySetting(Q)}); M4(this.api,"hasHqaAudioTrack",function(){return q.hasHqaAudioTrack()}); M4(this.api,"getAudioQualitySettingState",function(){return q.api.uw(4)}); this.Iq=YT3();this.updateEnvironmentData()}; q13=function(y){Wy.call(this,y);var q=this;M4(this.api,"getAudioTrackState",function(){return q.api.uw(0)})}; IV=function(y){g.r.call(this,{S:"button",rp:["ytp-button","ytp-autonav-toggle"],B:{title:y.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},D:[{S:"div",V:"ytp-autonav-toggle-button-container",D:[{S:"div",V:"ytp-autonav-toggle-button",B:{"aria-checked":"true"}}]}]});this.U=y;this.W=[];this.K=!1;this.isChecked=!0;y.createClientVe(this.element,this, 113681);this.Z(y,"presentingplayerstatechange",this.dN);this.listen("click",this.onClick);this.U.T().L("web_player_autonav_toggle_always_listen")&&jt9(this);Gl(y,this.element,this);this.dN()}; jt9=function(y){y.W.push(y.Z(y.U,"videodatachange",y.dN));y.W.push(y.Z(y.U,"videoplayerreset",y.dN));y.W.push(y.Z(y.U,"onPlaylistUpdate",y.dN));y.W.push(y.Z(y.U,"autonavchange",y.i_))}; Qtf=function(y){y.isChecked=y.isChecked;y.uB("ytp-autonav-toggle-button").setAttribute("aria-checked",String(y.isChecked));var q=y.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";y.U.T().L("player_tooltip_data_title_killswitch")?y.update({title:q,label:q}):y.update({"data-tooltip-title":q,label:q});y.U.aM()}; p_g=function(y){return y.U.T().L("web_player_autonav_use_server_provided_state")&&SC(y.Ff())}; vF2=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"standardControlsInitialized",function(){var Q=new IV(y);g.n(q,Q);y.qI(Q,"RIGHT_CONTROLS_LEFT")})}; gp=function(y){var q=y.L("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";NZ.call(this,q,g.zj.pQ);var Q=this;this.U=y;this.K=!1;this.W=new g.y0(function(){g.Fn(Q.element,"ytp-menuitem-highlighted")},0); this.fK=y.hd();y=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{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.setIcon(y);this.subscribe("select",this.N,this);this.listen(nq,this.Y);g.n(this,this.W)}; cy=function(y){Wy.call(this,y);var q=this;this.K=!1;y.addEventListener("settingsMenuInitialized",function(){dm9(q)}); y.addEventListener("highlightSettingsMenu",function(Q){dm9(q);var p=q.menuItem;Q==="menu_item_cinematic_lighting"&&(g.wl(p.element,"ytp-menuitem-highlighted"),g.wl(p.element,"ytp-menuitem-highlight-transition-enabled"),p.W.start())}); M4(y,"updateCinematicSettings",function(Q){q.updateCinematicSettings(Q)})}; dm9=function(y){y.menuItem||(y.menuItem=new gp(y.api),g.n(y,y.menuItem),y.menuItem.XV(y.K))}; Tzg=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"applicationvideodatachange",function(Q,p){p=p.clipConfig;Q==="dataloaded"&&p&&p.startTimeMs!=null&&p.endTimeMs!=null&&q.api.setLoopRange({startTimeMs:Math.floor(Number(p.startTimeMs)),endTimeMs:Math.floor(Number(p.endTimeMs)),postId:p.postId,type:"clips"})})}; UY=function(y){Wy.call(this,y);this.events=new g.sU(y);g.n(this,this.events);M4(y,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));M4(y,"setCreatorEndscreenHideButton",this.K.bind(this))}; Vl3=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"videodatachange",function(){var Q=q.api.isHdr()||q.api.L("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";q.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",Q);Q=q.api.L("delhi_modern_web_player_compact_controls");var p=q.api.getRootNode(),v=Q?"8px":"12px",d=Q?"56px":"72px",T=Q?"56px":"64px",O=Q?"48px":"56px",w=Q?"12px":"20px",J=Q?"72px":"96px"; p.style.setProperty("--yt-delhi-pill-height",Q?"40px":"48px");p.style.setProperty("--yt-delhi-pill-top-height",v);p.style.setProperty("--yt-delhi-bottom-controls-height",d);p.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",T);p.style.setProperty("--yt-delhi-big-mode-pill-height",O);p.style.setProperty("--yt-delhi-big-mode-pill-top-height",w);p.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",J)})}; rp=function(y,q,Q,p,v){var d=y.L("html5_enable_new_audio_settings_menu");NZ.call(this,"Volume est\u00e1vel",d?O32.Qr:g.zj.Qr);this.U=y;this.N=q;this.W=Q;this.hasDrcAudioTrack=p;this.getDrcState=v;this.enableNewAudioSettingsMenu=this.K=!1;g.wl(this.element,"ytp-drc-menu-item");this.fK=(this.enableNewAudioSettingsMenu=d)?y.hd().rB:y.hd();y.addEventListener("videodatachange",this.Il.bind(this));y.L("mta_drc_mutual_exclusion_removal")&&this.Z(y,"onPlaybackAudioChange",this.Il);y.L("html5_enable_audio_ve_logging")&& (y.createClientVe(this.element,this,273317),this.listen("click",this.J));q=this.W()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(y=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(y));this.subscribe("select",this.Y,this);this.enableNewAudioSettingsMenu?this.Il():(this.setEnabled(this.hasDrcAudioTrack()),Si(this,q),this.fK.qU(this))}; oV=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);y.L("html5_show_drc_toggle")&&y.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new rp(q.api,q.setDrcUserPreference.bind(q),q.getDrcUserPreference.bind(q),q.yP.bind(q),q.getDrcState.bind(q)),g.n(q,q.menuItem))}); M4(this.api,"setDrcUserPreference",function(p){q.setDrcUserPreference(p)}); M4(this.api,"getDrcUserPreference",function(){return q.getDrcUserPreference()}); M4(this.api,"hasDrcAudioTrack",function(){return q.yP()}); M4(this.api,"getDrcState",function(){return q.getDrcState()}); var Q;this.K=(Q=g.uw("yt-player-drc-pref"))!=null?Q:1;this.updateEnvironmentData()}; AW=function(y){Wy.call(this,y);var q=this;this.K={};this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"videodatachange",function(){q.onVideoDataChange()}); this.events.Z(y,g.jw("embargo"),function(Q){q.api.hP(!0);var p,v=(p=q.K[Q.id])!=null?p:[];p=g.t(v);for(v=p.next();!v.done;v=p.next()){var d=v.value;q.api.hideControls();q.api.SB("auth",2,"This video isn't available in your current playback area",Zr({embargoed:1,id:Q.id,idx:Q.W,start:Q.start}));v=void 0;(d=(v=d.embargo)==null?void 0:v.onTrigger)&&q.api.AK("innertubeCommand",d)}})}; w_2=function(y,q){var Q;return(Q=q.onEnter)==null?void 0:Q.some(y.W)}; Jos=function(y,q){q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var p=void 0,v=Number((p=Q.playbackPosition)==null?void 0:p.utcTimeMillis)/1E3,d=void 0;p=v+Number((d=Q.duration)==null?void 0:d.seconds);d="embargo_"+v;y.api.addUtcCueRange(d,v,p,"embargo",!1);Q.onEnter&&(y.K[d]=Q.onEnter.filter(y.W))}}; ei=function(y){Wy.call(this,y);var q=this;this.K=[];this.events=new g.sU(y);g.n(this,this.events);M4(y,"addEmbedsConversionTrackingParams",function(Q){q.addEmbedsConversionTrackingParams(Q)}); this.events.Z(y,"veClickLogged",function(Q){q.api.hasVe(Q)&&(Q=Q.visualElement.getAsJspb(),Q=lD(Q,2),q.K.push(Q))})}; F2p=function(y){Wy.call(this,y);M4(y,"isEmbedsShortsMode",function(){return y.isEmbedsShortsMode()})}; Y13=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"initialvideodatacreated",function(Q){Jo(wz(),16623);q.K=g.LD();var p=y.T().YW&&!Q.zI;if(hs(Q)&&p){Jo(wz(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(Q.getWatchNextResponse()){var v,d=(v=Q.getWatchNextResponse())==null?void 0:v.trackingParams;d&&YF(d)}if(Q.getPlayerResponse()){var T;(Q=(T=Q.getPlayerResponse())==null?void 0:T.trackingParams)&&YF(Q)}}else Jo(wz(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),Q.getEmbeddedPlayerResponse()&&(T=(d=Q.getEmbeddedPlayerResponse())==null?void 0:d.trackingParams)&&YF(T)}); this.events.Z(y,"loadvideo",function(){Jo(wz(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.K})}); this.events.Z(y,"cuevideo",function(){Jo(wz(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.K})}); this.events.Z(y,"largeplaybuttonclicked",function(Q){Jo(wz(),27240,Q.visualElement)}); this.events.Z(y,"playlistnextbuttonclicked",function(Q){Jo(wz(),27240,Q.visualElement)}); this.events.Z(y,"playlistprevbuttonclicked",function(Q){Jo(wz(),27240,Q.visualElement)}); this.events.Z(y,"playlistautonextvideo",function(){Jo(wz(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; By=function(y,q){g.I.call(this);var Q=this;this.K=null;this.N=q;q=[];for(var p=0;p<=100;p++)q.push(p/100);q={threshold:q,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(v){v=v[v.length-1];var d=null;typeof v.isVisible==="undefined"?document.visibilityState==="visible"&&v.isIntersecting&&v.intersectionRatio>0?d=v.intersectionRatio:document.visibilityState==="hidden"?d=0:d=null:d=v.isVisible?v.intersectionRatio:0;d!=null&&(d=Math.max(d,0),d=Math.min(d, 1));Q.K=d;typeof Q.N==="function"&&Q.N(Q.K)},q):null)&&this.W.observe(y)}; h5i=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"applicationInitialized",function(){fkC(q)})}; fkC=function(y){var q=y.api.getRootNode(),Q,p=y.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((Q=q.parentElement)==null?void 0:Q.parentElement)||q:q;y.K=new By(p,function(v){v!=null&&(y.api.T().CF=v,y.api.T().ID="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.n(y,y.K);y.events.Z(y.api,"videoStatsPingCreated",function(v){var d=y.K;d=d.K==null?null:Math.round(d.K*100)/100;v.inview=d!=null?d:void 0;d=y.api.getPlayerSize();if(d.height>0&&d.width>0){d=[Math.round(d.width),Math.round(d.height)];var T=g.as();T>1&&d.push(T);d=d.join(":")}else d=void 0;v.size=d})}; b32=function(y){var q;return((q=((y==null?void 0:y.messageRenderers)||[]).find(function(Q){return!!Q.timeCounterRenderer}))==null?void 0:q.timeCounterRenderer)||null}; Gj=function(y){g.r.call(this,{S:"div",rp:["ytp-player-content","ytp-iv-player-content"],D:[{S:"div",V:"ytp-free-preview-countdown-timer",D:[{S:"span",M$:"{{label}}"},{S:"span",V:"ytp-free-preview-countdown-timer-separator",M$:"\u2022"},{S:"span",M$:"{{duration}}"}]}]});this.api=y;this.K=null;this.N=this.W=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; K23=function(y,q){y.K||(y.W=q,y.N=(0,g.SK)(),y.K=new g.CX(function(){$ms(y)},null),$ms(y))}; $ms=function(y){var q=Math,Q=q.round,p=Math.min((0,g.SK)()-y.N,y.W);q=Q.call(q,(y.W-p)/1E3);y.updateValue("duration",Q7({seconds:q}));q<=0&&y.K?y.stopTimer():y.K&&y.K.start()}; xmD=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"basechromeinitialized",function(){q.K=new Gj(y);g.n(q,q.K);g.pq(y,q.K.element,4);q.K.hide()})}; Py=function(y){g.r.call(this,{S:"button",rp:["ytp-fullerscreen-edu-button","ytp-button"],D:[{S:"div",rp:["ytp-fullerscreen-edu-text"],M$:"Role para ver detalhes"},{S:"div",rp:["ytp-fullerscreen-edu-chevron"],D:[{S:"svg",B:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{S:"path",B:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],B:{"data-priority":"2"}});this.xf=y;this.fade=new g.vt(this,250,void 0,100);this.W=this.K=!1;y.createClientVe(this.element,this,61214); g.n(this,this.fade);this.Z(y,"fullscreentoggled",this.XV);this.Z(y,"presentingplayerstatechange",this.XV);this.listen("click",this.onClick);this.XV()}; iQ=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);M4(this.api,"updateFullerscreenEduButtonSubtleModeState",function(p){q.updateFullerscreenEduButtonSubtleModeState(p)}); M4(this.api,"updateFullerscreenEduButtonVisibility",function(p){q.updateFullerscreenEduButtonVisibility(p)}); var Q=y.T();y.L("external_fullscreen_with_edu")&&Q.externalFullscreen&&ko(Q)&&Q.controlsType==="1"&&this.events.Z(y,"standardControlsInitialized",function(){q.K=new Py(y);g.n(q,q.K);y.qI(q.K)})}; W2C=function(y){g.r.call(this,{S:"div",V:"ytp-gated-actions-overlay",D:[{S:"div",V:"ytp-gated-actions-overlay-background",D:[{S:"div",V:"ytp-gated-actions-overlay-background-overlay"}]},{S:"button",rp:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],B:{"aria-label":"Fechar"},D:[g.ZI()]},{S:"div",V:"ytp-gated-actions-overlay-bar",D:[{S:"div",V:"ytp-gated-actions-overlay-text-container",D:[{S:"div",V:"ytp-gated-actions-overlay-title",M$:"{{title}}"},{S:"div",V:"ytp-gated-actions-overlay-subtitle", M$:"{{subtitle}}"}]},{S:"div",V:"ytp-gated-actions-overlay-button-container"}]}]});var q=this;this.api=y;this.background=this.uB("ytp-gated-actions-overlay-background");this.W=this.uB("ytp-gated-actions-overlay-button-container");this.K=[];this.Z(this.uB("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){q.api.AK("onCloseMiniplayer")}); this.hide()}; tls=function(y,q){var Q=0;Q=0;for(var p={};Q v&&(v=O.width,d="url("+O.url+")")}Q.background.style.backgroundImage=d;tls(Q,p.actionButtons||[]);Q.show()}else Q.hide()}); g.pq(this.api,this.K.element,4)}; Xa=function(y){Wy.call(this,y);var q=this;zl(this.api,"getSphericalProperties",function(){return q.getSphericalProperties()}); zl(this.api,"setSphericalProperties",function(){q.setSphericalProperties.apply(q,g.hH(g.nS.apply(0,arguments)))}); lh(this.api,"getSphericalProperties",function(){return q.api.getPresentingPlayerType()===2?{}:q.getSphericalProperties()}); lh(this.api,"setSphericalProperties",function(){var Q=g.nS.apply(0,arguments);q.api.getPresentingPlayerType()!==2&&q.setSphericalProperties.apply(q,g.hH(Q))})}; my=function(y){Wy.call(this,y);M4(y,"createClientVe",this.createClientVe.bind(this));M4(y,"createServerVe",this.createServerVe.bind(this));M4(y,"destroyVe",this.destroyVe.bind(this));M4(y,"hasVe",this.hasVe.bind(this));M4(y,"logClick",this.logClick.bind(this));M4(y,"logVisibility",this.logVisibility.bind(this));M4(y,"setTrackingParams",this.setTrackingParams.bind(this))}; qu=function(y){this.W={};this.K={};this.videoData=y;var q;this.N=((q=y.N)==null?void 0:q.W)||[];y=g.t(Cq);for(q=y.next();!q.done;q=y.next())q=q.value,this.W[q]=XH(this.N,yj[q].qb);this.Qe()}; kWs=function(y,q){var Q=q.getAudioTrack();return Q.id!=="und"?g.DQ(y,function(p){var v;return((v=p.ZG)==null?void 0:v.name)===Q.getLanguageInfo().name}):y}; akg=function(y,q){return q.getUserAudio51Preference()?g.DQ(y,L22):y}; S12=function(y){return g.uw("yt-player-drc-pref")?g.DQ(y,Nzg):y}; R5i=function(y){return FPp()===2?g.DQ(y,H3j):y}; Ml9=function(y){return YT3()===1?g.DQ(y,st8):y}; st8=function(y){var q;return((q=y.audio)==null?void 0:q.audioQuality)==="AUDIO_QUALITY_HIGH"}; Nzg=function(y){var q;return((q=y.audio)==null?void 0:q.K)===!0}; L22=function(y){return q6(y)||j2(y)}; lkD=function(y){return y.ZG!==void 0}; H3j=function(y){var q;return((q=y.audio)==null?void 0:q.W)===!0}; jh=function(y,q,Q,p){function v(T){var O=!(T.status!==204&&T.status!==200&&!T.response),w;T={succ:""+ +O,rc:T.status,lb:((w=T.response)==null?void 0:w.byteLength)||0,rt:((0,g.SK)()-d).toFixed(),shost:g.$b(y),trigger:q};z5D(T,y);Q&&Q(T);p&&!O&&p(new g.t7("pathprobe.net",T))} var d=(0,g.SK)();g.HF(y,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:v,onTimeout:v})}; z5D=function(y,q){var Q;((Q=window.performance)==null?0:Q.getEntriesByName)&&(q=performance.getEntriesByName(q))&&q.length&&(q=q[0],y.pedns=(q.domainLookupEnd-q.startTime).toFixed(),y.pecon=(q.connectEnd-q.domainLookupEnd).toFixed(),y.perqs=(q.requestStart-q.connectEnd).toFixed(),Dmj&&(y.perqsa=q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; u0S=function(y){Dmj=y}; Qj=function(y,q){this.g0=y;this.policy=q;this.playbackRate=1}; IkD=function(y,q){var Q=Math.min(2.5,Xh(y.g0));y=pP(y);return q-Q*y}; vU=function(y,q,Q,p,v){v=v===void 0?!1:v;if(y.policy.Lq)return Math.ceil(y.policy.Lq*q);y.policy.A0&&(p=Math.abs(p));p/=y.playbackRate;var d=1/yK(y.g0);Q=Math.max(.9*(p-3),Xh(y.g0)+y.g0.W.K*d)/d*.8/(q+Q);Q=Math.min(Q,p);y.policy.AP>0&&v&&(Q=Math.max(Q,y.policy.AP));return nFb(y,Q,q)}; nFb=function(y,q,Q){return Math.ceil(Math.max(Math.max(y.policy.dk,y.policy.SS*Q),Math.min(Math.min(y.policy.Vm,31*Q),Math.ceil(q*Q))))||y.policy.dk}; pP=function(y){return yK(y.g0,!y.policy.Db,y.policy.oI)}; dn=function(y){return pP(y)/y.playbackRate}; TG=function(y,q,Q){var p=y.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],v=y.policy.playbackStartPolicy.startMinReadaheadPolicy||[];y=Infinity;q=g.t(q&&p.length>0?p:v);for(p=q.next();!p.done;p=q.next())p=p.value,v=p.minReadaheadMs||0,Q<(p.minBandwidthBytesPerSec||0)||y>v&&(y=v);return y0&&(this.W=Q.Ew)}; Um8=function(y,q,Q,p,v){if(!p.info.Y){if(Q.length===0)Q.push(p);else{var d;(y=(d=Q.pop())==null?void 0:g.Hj(d,p))?Q.push(y):Q.push(p)}return v}var T;(Q=(T=Q.pop())==null?void 0:g.Hj(T,p))||(Q=p);if(Q.info.W)return y.logger&&y.logger({incompleteSegment:Q.info.r0()}),v;p=y.hO(Q);v=p.Qm;p={clipId:p.clipId,formatId:p.formatId,startTimeMs:p.startTimeMs,durationMs:p.Bc,Yx:v,ao:v};v=gFs(q,p.startTimeMs);if(d=Q=v>=0?q[v]:null){d=p;var O=v;T=Q.startTimeMs+Q.durationMs;var w=d.startTimeMs+d.durationMs;if(d.startTimeMs- T>y.W)d=!1;else if(cop(y,Q.formatId,d.formatId))Q.durationMs=Math.max(T,w)-Q.startTimeMs,Q.ao=Math.max(Q.ao,d.ao),d=!0;else if(Math.abs(Q.startTimeMs-d.startTimeMs)<=y.W)if(Q.durationMs>d.durationMs+y.W){var J=Q.formatId,F=Q.Yx;O=Q.ao;Q.formatId=d.formatId;Q.durationMs=d.durationMs;Q.Yx=d.Yx;Q.ao=d.ao;d.formatId=J;d.startTimeMs=w;d.durationMs=T-w;d.Yx=F;d.ao=O;d=!1}else Q.formatId=d.formatId,d=!0;else T>d.startTimeMs&&(T>w&&(q.splice(O+1,0,{formatId:Q.formatId,startTimeMs:w,durationMs:T-w,Yx:d.ao+ 1,ao:Q.ao}),y.logger&&y.logger({splitOldStart:(J=Q.startTimeMs)==null?void 0:J.toFixed(3),splitOldEnd:T==null?void 0:T.toFixed(3),splitNewStart:(F=d.startTimeMs)==null?void 0:F.toFixed(3),splitNewEnd:w==null?void 0:w.toFixed(3)})),Q.durationMs=d.startTimeMs-Q.startTimeMs,Q.ao=d.Yx-1),d=!1}d?p=Q:(v+=1,q.splice(v,0,p));J=0;for(F=v+1;F=w+Q.W?Q=!0:O+Q.W=0?y:-y-2}; rog=function(y,q){if(y.xs){var Q=y.xs.m5();if(Q.length!==0){if(y.N&&q){var p=y.N,v=p.info.J;!fj(Q,v)&&p.info.C>0&&(0,g.SK)()-y.G<5E3&&(y.logger&&y.logger({dend:p.info.r0()}),Q=UGj(Q,v,v+.01))}y.policy.Wx&&y.logger&&y.logger({cbri:""+y.K});p=[];for(var d=v=0;v=T){var F=Object.assign({},y.Yj[d]),Y=y.pK.N.get(Cm(y.Yj[d].formatId)),f=Math.max(w,T);T=Y.index.zW(f+y.W/ 1E3);w=Y.index.getStartTime(T);var h=T+ +(Math.abs(w-f)>y.W/1E3);f=h+y.Y;h=Y.index.getStartTime(h)*1E3;d!==y.K||q?(F.Yx=f,F.startTimeMs=h):(y.logger&&y.logger({pEvict:"1",og:F.startTimeMs,adj:w*1E3}),F.Yx=T+y.Y,F.startTimeMs=w*1E3);T=void 0;w=((T=y.N)==null?void 0:T.info.duration)||11;d===y.K&&Oy.W/1E3);T=w+y.Y;Y=Y.index.XE(w)*1E3;F.ao=T;F.durationMs=Y-F.startTimeMs;F.Yx<=F.ao&&p.push(F)}J=0&&Yd(y.audioTrack,y.targetTime)>=0&&d?((y.videoTrack.J||y.audioTrack.J)&&y.loader.Rb("iterativeSeeking",{status:"done",count:y.seekCount}),y.videoTrack.J=!1,y.audioTrack.J=!1):p&&g.MN(function(){if(y.K||!y.policy.RH)b9(y);else{var T=q.startTime,O=q.duration;if(!y.policy.J){var w=Q?y.videoTrack.J:y.audioTrack.J,J=y.videoTrack.G!==-1&&y.audioTrack.G!==-1,F=y.targetTime>=T&&y.targetTime432E3&&AX8(y.pK);y.W&&(v=y.W,y.W=0);g.MN(function(){y.policy.J||$d(y,v,102)}); y.loader.Rb("initManifestlessSync",{st:v,ost:v+y.loader.bj(),a:y.audioTrack.G,v:y.videoTrack.G});y.N&&(y.N.resolve(v+.1),y.N=null);y.policy.J&&$d(y,v,102)}}}; WU=function(y,q){var Q=this;this.Ys=y;this.requestNumber=++jWb;this.K=this.now();this.C=this.j=NaN;this.X=this.K;this.N=this.XL=this.J=0;this.G=this.K;this.Dw=this.N$=this.Es=this.Mz=this.Aw=this.Sj=this.W=this.Y=0;this.cI=this.isActive=!1;this.RH=this.Os=0;this.je={WhI:function(){return Q.Rt}}; this.g0=q.g0;this.snapshot=Gt(this.g0);this.policy=this.g0.W;this.rD=!!q.rD;this.xU=q.xU;this.LX=q.LX||0;this.pn=q.pn||0;q.YA&&(this.gp=new cg);var p;this.Rt=(p=q.Rt)!=null?p:!1;this.rD||IJ3(this.g0)}; QW2=function(y){y.Es=Math.max(y.Es,y.J-y.Aw);y.N$=Math.max(y.N$,y.X-y.Mz);y.Sj=0}; ZR=function(y,q,Q){nI3(y.g0,q);y.gp&&(y.gp.add(Math.ceil(q)-Math.ceil(y.X)),y.gp.add(Math.max(0,Math.ceil(Q/1024)-Math.ceil(y.J/1024))));var p=q-y.X,v=Q-y.J;y.XL=v;y.Dw=Math.max(y.Dw,v/(p+.01)*1E3);y.X=q;y.J=Q;y.Sj&&Q>y.Sj&&QW2(y)}; tf=function(y,q){y.url=q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Ei=function(y,q){WU.call(this,y,q);this.q$=this.Se=!1;this.vI=this.m3=Infinity;this.LK=NaN;this.cB=!1;this.BI=NaN;this.T8=this.Vm=this.HI=0;this.Eo=q.Eo||1;this.iT=q.iT||this.Eo;this.Ev=q.Ev;this.Qm=q.Qm;this.ea=q.ea;pYp(this);this.KZ(this.K);this.hw=(this.BI-this.K)/1E3}; vw2=function(y){var q=y.Vm||y.HI;return q?y.snapshot.delay+Math.min(y.pn,(y.C-y.j)/1E3)+q:y.hw}; kd=function(y,q,Q){if(!y.rD){q=Math.max(q,.01);var p=y.LX?Math.max(q,Q/y.LX):q,v=y.g0.W.N;v&&(p=q,y.LX&&(p=Math.max(q,Q/y.LX*v)));Bg(y.g0,q,Q,p)}}; dfD=function(y){return(y.G-y.K)/1E3}; pYp=function(y){y.LK=y.K+y.snapshot.delay*1E3;y.cB=!1}; LP=function(y,q){if(y.Ev&&y.Qm!==void 0&&y.ea!==void 0){var Q=Math,p=Q.min,v=y.m3;var d=y.Ev;var T=y.K;if(TsS(d,y.Qm))d=q;else{var O=0;d.wi&&(O=.2);d=T+(d.pn+O)*1E3}y.m3=p.call(Q,v,d);Q=Math;p=Q.min;v=y.vI;d=y.Ev;T=y.K;O=VM8(d,y.Qm,y.ea);O!==2&&(q=O?q:T+d.pn*1E3,d.wi&&(q+=d.pn*1E3));y.vI=p.call(Q,v,q);y.m3<=y.K?pYp(y):(y.LK=y.m3,y.cB=!0)}}; OmD=function(y,q){if(q+1<=y.totalLength){var Q=xS(y,q);Q=Q<128?1:Q<192?2:Q<224?3:Q<240?4:5}else Q=0;if(Q<1||!(q+Q<=y.totalLength))return[-1,q];if(Q===1)y=xS(y,q++);else if(Q===2)Q=xS(y,q++),y=xS(y,q++),y=(Q&63)+64*y;else if(Q===3){Q=xS(y,q++);var p=xS(y,q++);y=xS(y,q++);y=(Q&31)+32*(p+256*y)}else if(Q===4){Q=xS(y,q++);p=xS(y,q++);var v=xS(y,q++);y=xS(y,q++);y=(Q&15)+16*(p+256*(v+256*y))}else Q=q+1,y.focus(Q),bj(y,Q,4)?y=GUs(y).getUint32(Q-y.N,!0):(p=xS(y,Q+2)+256*xS(y,Q+3),y=xS(y,Q)+256*(xS(y,Q+1)+ 256*p)),q+=5;return[y,q]}; a9=function(y){this.Ys=y;this.K=new Fx}; Nu=function(y,q){this.info=y;this.callback=q;this.state=1;this.jk=this.J8=!1;this.J6=null}; wYp=function(y){return g.Zn(y.info.CK,function(q){return q.type===3})}; Sh=function(y,q,Q,p){var v=this;p=p===void 0?{}:p;this.policy=q;this.Ys=Q;this.status=0;this.K=new Fx;this.W=0;this.iB=this.Y=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(p.method||"GET",y);if(p.headers)for(y=p.headers,q=g.t(Object.keys(y)),Q=q.next();!Q.done;Q=q.next())Q=Q.value,this.xhr.setRequestHeader(Q,y[Q]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return v.nu()}; this.xhr.onload=function(){return v.onDone()}; this.xhr.onerror=function(){return v.onError()}; this.xhr.fetch(function(d){v.K.append(d);v.W+=d.length;d=(0,g.SK)();v.Ys.o1(d,v.W)},function(){},p.body||null)}; J1p=function(y,q){this.W=(new TextEncoder).encode(y);this.K=(new TextEncoder).encode(q)}; m8S=function(y,q){var Q;return g.M(function(p){if(!q)return p.return(q);Q=new g.xV(y.W);return p.return(Q.encrypt(q,y.K))})}; QS8=function(y,q){var Q;return g.M(function(p){if(p.K==1){if(!q)return p.return(q);Q=new g.xV(y.W);return g.R(p,Q.decrypt(q,y.K),2)}return p.return(p.W)})}; Fq2=function(y,q){var Q=this;this.K=y;this.Ys=q;this.loaded=this.status=0;this.error="";y=jE(this.K.get("range")||"");if(!y)throw Error("bad range");this.range=y;this.W=new Fx;this.run().then(function(){Q.Ys.t7()},function(p){Q.error=""+p||"unknown_err"; Q.Ys.t7()})}; fHf=function(y,q,Q,p){var v=this;p=p===void 0?{}:p;this.policy=q;this.Ys=Q;this.X=p;this.status=0;this.response=void 0;this.W=0;this.J=this.G=!1;this.errorMessage="";this.j=function(d){if(d)if(v.status=d.status,d.ok&&d.body&&v.status!==204)v.status=v.status||242,v.N=d.body.getReader(),v.iB()?v.N.cancel().catch(function(){}):(v.responseHeaders=d.headers,v.Ys.sL(),YEi(v)); else v.onDone();else v.onError(Error("null_response"))}; this.C=function(d){var T=(0,g.SK)();v.iB()||(d.done?(v.N=void 0,v.onDone()):(d=d.value,v.W+=d.length,v.K.append(d),YEi(v),v.Ys.o1(T,v.W)))}; this.onError=function(d){v.errorMessage=String(d);v.G=!0;v.onDone()}; this.K=new Fx;this.Y=window.AbortController?new AbortController:void 0;this.start(y)}; YEi=function(y){y.N.read().then(y.C,y.onError).then(void 0,Of)}; hVj=function(y,q,Q){var p=this;Q=Q===void 0?{}:Q;this.Ys=q;this.W=this.status=0;this.iB=this.K=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Q.method||"GET",y);if(Q.headers){y=Q.headers;q=g.t(Object.keys(y));for(var v=q.next();!v.done;v=q.next())v=v.value,this.xhr.setRequestHeader(v,y[v])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(d){p.nu(d)}; y=v_(function(d){p.onDone(d)}); this.xhr.addEventListener("load",y,!1);this.xhr.addEventListener("error",y,!1);Q.body?this.xhr.send(Q.body):this.xhr.send();this.xhr.addEventListener("progress",v_(function(d){p.onProgress(d)}),!1)}; HU=function(y,q,Q,p,v){if(yP(y.l4))return new Fq2(y,Q);y=y.i6();return p?qTb()?new Sh(y,q,Q,v):new fHf(y,q,Q,v):new hVj(y,Q,v)}; R9=function(y,q){g.I.call(this);var Q=this;this.policy=y;this.CK=q;this.W=0;this.K=null;this.n6=[];this.N=null;this.je={pH:function(){return Q.CK}}; this.CK.length===1||g.Zn(this.CK,function(p){return!!p.range})}; si=function(y,q,Q){y.K&&(YS(y.K,q),q=y.K,y.K=null);for(var p=0,v=0,d=g.t(y.CK),T=d.next();!T.done;T=d.next())if(T=T.value,T.range&&p+T.N<=y.W)p+=T.N;else{if(dB(T)&&!Q&&y.W+q.totalLength-v=400?(y.lastError="net.badstatus",!0):(v===void 0?0:v)?(y.lastError="ump.spsrejectfailure",!0):Q||p!==void 0&&p?!1:(y.lastError=q===204?"net.nocontent":"net.connect",!0)}; I9=function(y,q){if(y.policy.q_)return!1;var Q=q.getResponseHeader("content-type"),p=q.sj();y=!p||p<=y.policy.FR;return(!q.oU()||!Q||Q.indexOf("text/plain")!==-1)&&y}; Wq8=function(y,q){var Q="";q=q.O2();q.totalLength<=y.policy.FR&&(y=$S(q),y=ZF(y),Q=iF(y)?y:"");return Q}; l9=function(y){return BY(y.Y,C3(y.pg.l4))}; Zm9=function(y){var q=y.timing.d8();q.shost=C3(y.pg.l4);return q}; tM9=function(y,q){return(y==null?void 0:y.maxWidth)>(q==null?void 0:q.maxWidth)||(y==null?void 0:y.maxHeight)>(q==null?void 0:q.maxHeight)}; Ewf=function(y,q){for(var Q=g.t(q.keys()),p=Q.next();!p.done;p=Q.next())if(p=q.get(p.value),p.length!==0){g.Pe(p,function(O,w){return w.maxFramerate-O.maxFramerate}); for(var v=[p[0]],d=0,T=1;Ty.K||Q.push(p)}return Q}; nP=function(y,q,Q){var p=aH3[y]||[];Q.L("html5_shorts_onesie_mismatched_fix")&&(p=Nsf[y]||[]);q.push.apply(q,g.hH(p));Q.L("html5_early_media_for_drm")&&q.push.apply(q,g.hH(SEC[y]||[]))}; zV9=function(y,q){var Q=g.gx(y),p=y.T(),v=p.J;p=p.L("html5_shorts_onesie_mismatched_fix");var d=y.jP();if(p){if(!v.W){if(d&&gn)return gn;if(cU)return cU}}else if(cU&&!v.W)return cU;var T=[],O=[],w={},J=Ui.concat(Hmb);p&&(J=Ui.concat(RVb));y.L("html5_early_media_for_drm")&&(J=J.concat(sWf),y.L("allow_vp9_1080p_mq_enc")&&J.push(MMg));var F=[].concat(g.hH(lH9));y.L("html5_iamf_audio_onesie_fmt")&&F.push(["773"]);J=g.t(J);for(var Y=J.next();!Y.done;Y=J.next()){var f=!1;Y=g.t(Y.value);for(var h=Y.next();!h.done;h= Y.next()){h=h.value;var b=g1(h,d&&p);if(b&&b.video&&!(yR(b)&&!Q.Sj&&b.video.qualityOrdinal>Q.Jz)){var Z=g.wm(y.T().experiments,"html5_drm_byterate_soft_cap");Z>0&&gz2(b)&&b.jj>Z||(f?(T.push(h),nP(h,T,y)):(b=rz(Q,b,v),b===!0?(f=!0,T.push(h),nP(h,T,y)):w[h]=b))}}}F=g.t(F);for(J=F.next();!J.done;J=F.next())for(J=g.t(J.value),f=J.next();!f.done;f=J.next())if(f=f.value,(Y=O68(f))&&Y.audio&&(y.L("html5_onesie_51_audio")||!q6(Y)&&!j2(Y)))if(Y=rz(Q,Y,v),Y===!0){O.push(f);nP(f,O,y);break}else w[f]=Y;if(!y.L("html5_enable_audio_quality_setting"))for(y= g.t(["141","774"]),F=y.next();!F.done;F=y.next())F=F.value,O.includes(F)&&(g.Lh(O,F),w[F]="blkhqa");Q.W&&q("orfmts",w);if(p)return v.W&&(v.W=!1,gn=cU=void 0),d?gn={video:T,audio:O}:cU={video:T,audio:O};cU={video:T,audio:O};v.W=!1;return cU}; g.IHH=function(y,q,Q){var p=Q.J,v=[],d=[],T=Q.L("html5_shorts_onesie_mismatched_fix");y=y.jP();var O=Ui.concat(Hmb);T&&(O=Ui.concat(RVb));Q.L("html5_early_media_for_drm")&&(O=O.concat(sWf),Q.L("allow_vp9_1080p_mq_enc")&&O.push(MMg));var w=[].concat(g.hH(lH9));Q.L("html5_iamf_audio_onesie_fmt")&&w.push(["773"]);O=g.t(O);for(var J=O.next();!J.done;J=O.next()){J=g.t(J.value);for(var F=J.next();!F.done;F=J.next()){F=F.value;var Y=g1(F,y&&T);if(Y&&Y.video){var f=g.wm(Q.experiments,"html5_drm_byterate_soft_cap"); if(!(f>0&&gz2(Y)&&Y.jj>f)&&rz(q,Y,p)===!0){v.push({videoCodec:Dfb[Ps[F]],maxWidth:Y.video.width,maxHeight:Y.video.height,maxFramerate:Y.video.fps});break}}}}T=g.t(w);for(y=T.next();!y.done;y=T.next())for(y=g.t(y.value),w=y.next();!w.done;w=y.next())if(w=w.value,(O=O68(w))&&O.audio&&(Q.L("html5_onesie_51_audio")||!q6(O)&&!j2(O))&&rz(q,O,p)===!0){d.push({audioCodec:ug2[Ps[w]],numChannels:O.audio.numChannels});break}return{videoFormatCapabilities:v,audioFormatCapabilities:d}}; c1j=function(y){var q,Q={},p=y.WI,v=y.wp,d=p.getVideoData(),T=to(0),O=p.getVisibilityState(),w;if((w=y.IB)==null?0:w.Gg)Q.Iq=v.Iq;T&&(Q.yKb=T,Q.lastManualDirection=dVb(),T=mvi()||0,T>0&&(T=(v.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.SK)())-T,v.L("html5_use_date_now_for_local_storage")?T>0&&(Q.timeSinceLastManualFormatSelectionMs=T):Q.timeSinceLastManualFormatSelectionMs=T));T=v.L("html5_use_streamer_bandwidth_for_low_latency_live")&&d.isLowLatencyLiveStream;if(v.schedule.cI&&!T){var J; T=v.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!((J=y.IB)==null||!J.Db):!1;Q.DF=yK(v.schedule,!T)}T=g.A7.medium;w=Math.floor(T*16/9);(J=d.jP())||(d.K&&d.N&&d.N.videoInfos.length!==0?(J=d.N.videoInfos[0],J=!!J.video&&J.video.width0?{authorizedFormats:y.authorizedFormats}:{authorizedFormats:q};y.sabrLicenseConstraint&&(Q.DT.sabrLicenseConstraint=y.sabrLicenseConstraint);if(v.L("html5_onesie_media_capabilities")||v.L("html5_enable_server_format_filter"))Q.Nj= 3;v.L("html5_onesie_audio_only_playback")&&DD(d)&&(Q.Nj=1);var S;((S=y.IB)==null?0:S.Wn)&&y.RKs&&(Q.Nj=Q.Nj===void 0?7:Q.Nj|4);S=d.Wn?d.Wn:g.gx(d);v.L("html5_onesie_media_capabilities")&&(Q.mediaCapabilities=g.IHH(d,S,v));var N;if((N=y.IB)==null?0:rn(N)){Y=v.J;N=[];q=[];f=new Map;h=Array.from(Y.K.values());h=g.t(h);for(b=h.next();!b.done;b=h.next())Z=b.value,Z.Eu?q.push({audioCodec:ug2[Z.nK],numChannels:Z.numChannels,spatialCapabilityBitmask:nwg[Z.nK]}):(k=Dfb[Z.nK],b={videoCodec:k,maxWidth:Z.maxWidth|| 0,maxHeight:Z.maxHeight||0,maxFramerate:Z.maxFramerate||0,is10BitSupported:Z.ev||!1},Z.maxBitrateBps&&(b.maxBitrateBps=Z.maxBitrateBps,O=g1(Z.itag),J=void 0,((J=O)==null?0:J.video)&&rz(S,O,Y)===!0&&(O=O.jj*8,O>b.maxBitrateBps&&(b.maxBitrateBps=O))),Z=k+"_"+Z.ev,k=f.get(Z)||[],k.push(b),f.set(Z,k));N=Ewf(N,f);Y={};v.L("html5_ssff_denylist_opus_low")&&(Y={itagDenylist:[249,350]});Q.mediaCapabilities={videoFormatCapabilities:N,audioFormatCapabilities:q,hdrModeBitmask:3,perPlaybackAttributes:Y}}var l; if((l=y.IB)==null?0:l.K){Q.Hp=S.Hp;var u;Q.Jz=(u=y.IB)==null?void 0:u.Jz}v.t1&&(Q.bZ=v.t1);Q.Hg=y.jn;Q.To=y.To;Q.A4=y.A4;Q.cL=y.cL;y.zc&&(Q.aeV=(0,g.SK)()-y.zc);y.Pe&&v.L("html5_report_prefetch_requests")&&(Q.Pe=y.Pe);Ed||(Q.IwB=!0);l=Xh(v.schedule)*1E3;l>0&&(Q.uZ=l);var c;((c=y.IB)==null?0:c.kK)&&y.Jy&&y.Jy0?X:v.schedule.interruptions[0]||0;var A;if((A=y.IB)==null?0:A.XL)Q.II=y.II;v.BI&&(Q.audioTrackId=v.BI);xW(d)&&!Q.audioTrackId&&(v.L("html5_fill_default_mosaic_audio_track_id")||(y=v73(d),Q.audioTrackId=y),d==null||d.Rb("misstrkchg",{"default":Q.audioTrackId}));if(d=IIf())Q.detailedNetworkType=gw3[d]||gw3.other;v.L("html5_enable_voice_boost")&&(Q.dKy=v.Or);return Q}; o9=function(y,q,Q,p,v,d,T){var O={};q&&(O.fu=q);if(!y)return O;O.playbackCookie=Q==null?void 0:Q.playbackCookie;v&&(O.ZO=v);O.O$=[];O.WL=[];if(T==null?0:T.size)for(q=g.t(T.values()),Q=q.next();!Q.done;Q=q.next())O.WL.push(Q.value);if(y.sabrContextUpdates.size>0)for(q=g.t(y.sabrContextUpdates.values()),Q=q.next();!Q.done;Q=q.next())Ufp(O,Q.value,p);nL(y)&&d&&Ufp(O,d,p);p=y.T().K;O.clientInfo={clientName:r1g[p.c.toUpperCase()]||0};p.cbrand&&(O.clientInfo.deviceMake=p.cbrand);p.cmodel&&(O.clientInfo.deviceModel= p.cmodel);p.cver&&(O.clientInfo.clientVersion=p.cver);p.cos&&(O.clientInfo.osName=p.cos);p.cosver&&(O.clientInfo.osVersion=p.cosver);p=y.T();p.L("html5_sabr_enable_server_xtag_selection")&&p.I7&&(O.clientInfo.hl=p.I7);y.fm&&(O.fm=y.fm);return O}; Ufp=function(y,q,Q){var p=q.type||0;(Q==null?0:Q.has(p))?y.WL.push(q):y.O$.push(p)}; Jf=function(y,q,Q,p,v,d){var T=d===void 0?{}:d;var O=T.Gu===void 0?[]:T.Gu;var w=T.tf===void 0?!1:T.tf;var J=T.lJ===void 0?0:T.lJ;var F=T.poToken===void 0?"":T.poToken;var Y=T.k8===void 0?void 0:T.k8;var f=T.Ak===void 0?"":T.Ak;var h=T.xJ===void 0?0:T.xJ;var b=T.L1===void 0?new Uint8Array(0):T.L1;var Z=T.RO===void 0?!1:T.RO;d=T.P9===void 0?0:T.P9;T=T.fu===void 0?void 0:T.fu;Nu.call(this,q,v);var k=this;this.policy=y;this.logger=new g.L5("dash/request");this.aK=this.Bt=0;this.S5=!1;this.wY=this.k0= null;this.jM=!1;this.L1=this.xJ=null;this.eN=this.V9=!1;this.VC=null;this.P9=this.cM=0;this.n$=!1;this.je={hU:function(N){k.hU(N)}, Vg$:function(){return k.J6}, Wvp:function(N){k.J6=N}, KvB:function(N){k.Bt=N}, fVK:function(N){k.vT.lastError=N}, cU:function(){return k.xhr}}; this.timing=new Ei(this,Q);this.tf=w;this.xJ=h;this.L1=b;this.pg=g.hy(this.info,this.policy,p);this.pg.set("rn",this.yU().toString());this.pg.set("rbuf",(J*1E3).toFixed().toString());this.tf&&this.pg.set("smb","1");this.policy.oL&&F&&this.pg.set("pot",F);f&&this.pg.set("bbs",f);this.policy.useUmp&&!yP(this.pg.l4)&&(this.zC=new a9(this),this.pg.set("ump","1"),this.pg.set("srfvp","1"));if(y=this.policy.VG?this.policy.q3&&!isNaN(this.info.ea)&&this.info.ea>this.policy.ud?!1:!0:!1)q=null,this.policy.Bz&& this.policy.aD?q=[1]:Z&&(q=[]),q!=null&&(this.policy.IS&&q.push(2),this.pg.set("defsel",q.join(",")));this.vT=new Mu(this,this.policy,this.pg,this.info.uj,this.timing,this.logger,p,Y);this.Gu=O||null;this.jk=owi(this);bm9(this.vT);p=void 0;if(this.policy.hN||this.zC||this.policy.vI)p={method:"POST"},O=(0,g.Af)([120,0]),Y={},this.policy.uW&&T&&(T=o9(void 0,T),Y.kD=T),this.policy.dJ&&this.L1&&(Y.videoPlaybackUstreamerConfig=this.L1),this.policy.vI&&(T=this.info.Y)&&Object.assign(Y,T),Object.keys(Y).length> 0?p.body=g.jR(Y,g.cs):p.body=O;if(this.xJ&&this.L1){this.pg.set("iwts","1");p={method:"POST"};T={cL:this.xJ*1E3};var S;O=(S=this.info.Y)==null?void 0:S.HC;S=g.jR({Cq:T,HC:O||void 0,videoPlaybackUstreamerConfig:this.L1},g.cs);p.body=S}try{this.xhr=HU(this.pg,this.policy.C,this.timing,y,p),this.vT.W.start(),d&&(this.YU=new g.y0(this.Nd,d,this),this.YU.start(d+(this.timing.g0.C.Io()||0)*1E3)),this.policy.XR&&tf(this.timing,this.i6()),g.MN(function(){})}catch(N){A1s(this,N,!0)}}; owi=function(y){if(!(f5(y.info)&&y.info.Rt()&&y.policy.t1&&y.Gu)||y.info.uj.N>=2||to()>0||!w1b())return!1;var q=y.pg.get("aitags");if(!q)return!1;q=sj(q).split(",");for(var Q=[],p=g.t(y.Gu),v=p.next();!v.done;v=p.next())v=v.value,g.Eu(q,v)&&Q.push(v);if(!Q.length)return!1;y.pg.set("altitags",g.R2(Q.join(",")));return!0}; A1s=function(y,q,Q){Q=Q===void 0?!1:Q;g.l$(q);y.vT.lastError="player.exception";y.errorMessage=q.name+"_"+q.message;Q?g.MN(function(){DR(y.vT)}):DR(y.vT)}; eV3=function(y,q){y.timing.cI=!0;y.xhr.oU()&&y.timing.LW();if(y.policy.ra){var Q;(Q=y.YU)==null||Q.stop()}si(y.J6,q,!1)}; BsS=function(y){y.cM&&(y.xhr.status=y.cM,y.Bt=y.cM)}; eh=function(y,q){WU.call(this,y,q);this.vI=!0;this.m3=!1;this.Vm=this.LK=0;this.HI=NaN}; Ga3=function(y,q,Q){var p=y.LX?Math.max(q,Q/y.LX):q,v=y.g0.W.N;v&&(p=q,y.LX&&(p=Math.max(q,Q/y.LX*v)));Bg(y.g0,q,Q,p)}; BU=function(y){this.W={};this.logger=new g.L5(y)}; GG=function(y){BU.call(this,"sabr");this.Ys=y}; PU=function(y){g.I.call(this);this.Y=y;this.logger=new g.L5("onesie");this.HT=new Map;this.W=this.K=!1;this.IB=this.pK=null;this.N=!1}; P0S=function(y,q,Q){y.HT.get(q).onProgress=Q}; mM=function(y,q){y.HT.has(q)&&(i9?y.HT.get(q).xx.clear():y.HT.get(q).n6=new Fx,XZ(y,q),y.W=!0)}; img=function(y){for(var q=g.t(y.HT),Q=q.next();!Q.done;Q=q.next()){var p=g.t(Q.value);Q=p.next().value;p=p.next().value;p.vS||mM(y,Q)}}; XY9=function(y,q){q=y.HT.get(q);if(!q)return 0;y=0;if(q.CK.length>0){q=g.t(q.CK);for(var Q=q.next();!Q.done;Q=q.next()){var p=void 0;y+=((p=Q.value.range)==null?void 0:p.length)||0}return y}if(q.D8.length>0)for(Q=g.t(q.D8),p=Q.next();!p.done;p=Q.next())y+=p.value.ME||0;return y+q.aR}; CP=function(y,q){if(i9){var Q=0;y=y.HT.get(q);if(y==null||!y.xx)return 0;y=g.t(y.xx.values());for(q=y.next();!q.done;q=y.next())Q+=q.value.data.totalLength;return Q}return((Q=y.HT.get(q))==null?void 0:Q.n6.totalLength)||0}; yJ=function(y,q){y=y.HT.get(q);if(i9){if(y==null||!y.vS)return!1;q=y.xx.size>0;return y.S3.length>0||q}return!(y==null||!y.vS)&&!(y==null||!y.n6.totalLength)}; mfb=function(y,q){var Q=y.HT.get(q),p=XY9(y,q),v=!p&&!!Q.bytesReceived;if(i9){var d;if((d=y.pK)==null?0:d.E9){y=g.t(Q.xx.values());for(q=y.next();!q.done;q=y.next())if(!q.value.AJ)return!1;return v}}else if(d=y.tJ(q),v&&y.K&&d!==void 0)return d;return(v||Q.bytesReceived===p)&&Q.NO+CP(y,q)===Q.bytesReceived}; C08=function(y,q,Q,p){Q.CK.push.apply(Q.CK,g.hH(p));if(i9){Q.ZL.has(q)||Q.ZL.set(q,[]);var v;(v=Q.ZL.get(q)).push.apply(v,g.hH(p))}else if(Q.J6)for(y=g.t(p),q=y.next();!q.done;q=y.next())Q.J6.CK.push(q.value);else{Q.J6=new R9(y.IB,[].concat(g.hH(Q.CK)));var d;((d=y.IB)==null?0:d.CF)&&g.n(y,Q.J6)}}; yy8=function(y,q,Q){var p,v=(p=y.pK)==null?void 0:p.N.get(q);if(!v)return[];if(Q.Gn){var d;return((d=v.QZ(0,Q.clipId))==null?void 0:d.CK)||[]}if(v.gY()){var T=Q.startMs,O=Q.durationMs;p=1E3;var w;if(((w=y.IB)==null?0:w.K)&&Q.timeRange){var J;T=(J=Q.timeRange.startTicks)!=null?J:-1;var F;O=(F=Q.timeRange.Ka)!=null?F:-1;var Y;p=(Y=Q.timeRange.timescale)!=null?Y:-1}if(Q.s$<0||Q.di<0||O<0||T<0||Q.ME<0||p<0)return mM(y,q),[];y=QF(Q.s$,Q.ME);q=Q.yL||0;return[new vj(3,v,y,"makeSliceInfosMediaBytes",Q.di- 1,T/p,O/p,q,y.length-q,void 0,Q.lH,Q.clipId)]}if(Q.di<0)return mM(y,q),[];var f;return((f=y.pK)==null?0:f.E9)?(q=v.nV,w=q*v.info.jj,J=Q.yL,((O=y.IB)==null?0:O.ZZ)&&Q.timeRange&&!J&&(T=Q.timeRange.startTicks/Q.timeRange.timescale),[new vj(3,v,void 0,"makeSliceInfosMediaBytes",Q.di,T,q,J,w,!0,Q.lH,Q.clipId)]):[]}; qVp=function(y,q,Q){y.pK=q;y.IB=Q;q=g.t(y.HT);for(Q=q.next();!Q.done;Q=q.next()){var p=g.t(Q.value);Q=p.next().value;p=p.next().value;for(var v=g.t(p.UR),d=v.next();!d.done;d=v.next()){d=d.value;var T=yy8(y,Q,d);C08(y,d.H9,p,T)}}}; qk=function(y,q,Q,p){(y=y.HT.get(Q))&&!y.Pt&&(i9?(y.xx.has(q)||y.xx.set(q,{data:new Fx,Ge:0,AJ:!1}),YS(y.xx.get(q).data,p)):YS(y.n6,p),y.bytesReceived+=p.totalLength,y.oa=!0)}; XZ=function(y,q){if((q=y.HT.get(q))&&!q.Pt){q.Pt=!0;if(q.onProgress)q.onProgress();a:{q=g.t(y.HT.values());for(var Q=q.next();!Q.done;Q=q.next())if(!Q.value.Pt){q=!1;break a}q=!0}q&&y.Y.iG()}}; j8D=function(y){i9=y}; jy=function(y,q,Q,p,v,d,T){g.I.call(this);this.policy=y;this.info=q;this.pK=Q;this.Ys=v;this.logger=new g.L5("sabr");this.zC=new a9(this);this.FI=new GG(this);this.Ro=new PU(this);this.state=1;this.MC=!1;this.cF=0;this.clipId="";this.Zx=-1;this.nx=0;this.Tt=-1;this.tV=this.n$=this.G4=!1;this.policy.e6?this.RB=new eh(this,d):this.RB=new Ei(this,d);this.pg=this.policy.XL?q.tN:Q88(q,this.policy,p);this.pg.set("rn",""+this.yU());this.pg.set("alr","yes");qVp(this.Ro,Q,y);this.vT=new Mu(this,this.policy, this.pg,q.uj,this.RB,this.logger,p,T,this.policy.enableServerDrivenRequestCancellation);bm9(this.vT);var O;if((O=this.policy)==null?0:O.CF)g.n(this,this.Ro),g.n(this,this.vT);y=q.W;q={method:"POST",body:y};y&&(this.nx=y.length);try{this.xhr=HU(this.pg,this.policy.C,this.RB,Ed,q),this.policy.XR&&tf(this.RB,this.i6()),this.vT.W.start()}catch(w){g.zI(w)}}; pjp=function(y){y.policy.P1&&y.bx&&!y.tV?y.tV=!0:y.RB.LW()}; vaD=function(y,q){var Q=-1,p=-1,v=-1,d;if((d=y.WF)==null?0:d.items)for(y=g.t(y.WF.items),d=y.next();!d.done;d=y.next())d=d.value,q=O,w=y.pK.isManifestless,T){var J;if(((J=y.K)==null?void 0:J.u6.event)==="predictStart"&&y.K.Qmy.G&&(y.G=NaN,y.X=NaN);y.K&&y.K.Qm===q?f3C(y,q,Q,y.K,v):y.W===1&&dG(y,5,"noad")}; hEb=function(y,q,Q,p,v){p.Vc?dG(y,4,"cue"):(y.G=q,y.X=Q,y.Rb("sdai",{joinad:y.W,sg:y.G,st:y.X.toFixed(3)}),y.j=Date.now(),dG(y,2,y.W===3?"staftpred":"join"),v.Na(p.u6))}; f3C=function(y,q,Q,p,v){if(v&&p){var d=p.u6,T=v.qq(d);d.event==="predictStart"&&(y.N$=q);y.Rb("sdai",{onqevt:d.event,sq:q,mt:Q,gab:T,cst:d.startSecs,cueid:y.policy.Pb&&(T||d.event==="start")?d.identifier:void 0},!0);if(T)d.event!=="predictStart"?(d.event==="start"&&y.N$===q-1&&y.Rb("sdai",{gabonstart:q}),hEb(y,q,Q,p,v)):y.policy.YW?dG(y,3,"predict"):(q+=Math.max(Math.ceil(-d.K/5E3),1),d=Math.floor(Q-d.K/1E3),y.policy.W?y.J=d:y.Y=q,y.Rb("sdai",{onpred:Q,estsq:q,estmt:d.toFixed(3)}),TN(y.loader,d,d, q),y.j=Date.now(),dG(y,3,"predict"),v.Na(p.u6));else if(y.W===1){var O;((O=y.N)==null?0:O.Oe(Q))?(TN(y.loader,Q,Q,q),dG(y,4,"sk2head")):dG(y,5,"nogab")}else d.event==="predictStart"?y.policy.W&&y.J>0?(Q=Math.floor(Q-d.K/1E3),y.J!==Q&&y.Rb("sdai",{updateSt:Q,old:y.J}),y.J=Q):y.Y>0&&(Q=q+Math.max(Math.ceil(-d.K/5E3),1),y.Y!==Q&&(y.Rb("sdai",{updateSt:Q,old:y.Y}),y.Y=Q)):y.policy.YW&&y.W===3&&hEb(y,q,Q,p,v)}else y.Rb("sdai",{nulldec:1,sq:q,mt:Q.toFixed(3),evt:(p==null?void 0:(d=p.u6)==null?void 0:d.event)|| "none"})}; $Xs=function(y,q,Q){if(y.policy.dD&&y.policy.W)return!(y.W===1||y.W===2||!y.policy.YW&&y.W===3&&Q>=y.Y);if(y.W===1||y.W===2)return!1;if(y.W!==0&&q===y.audioTrack){if(y.policy.W)return b5S(y.videoTrack,Q)||b5S(y.videoTrack,Q+1);y=VJ(y.videoTrack);if(Q>(y?y.Qm:-1))return!1}return!0}; OW=function(y,q,Q){return(Q<0||Q===y.G)&&!isNaN(y.X)?y.X:q}; wj2=function(y,q){if(y.K){var Q=y.K.u6.Ey-(q.startTime+y.C-y.K.u6.startSecs);Q<=0||(Q=new fm(y.K.u6.startSecs-(isNaN(y.C)?0:y.C),Q,y.K.u6.context,y.K.u6.identifier,"stop",y.K.u6.K+q.duration*1E3),y.Rb("cuepointdiscontinuity",{segNum:q.Qm}),vI(y,Q,q.Qm))}}; dG=function(y,q,Q){y.W!==q&&(y.Rb("sdai",{setsst:q,old:y.W,r:Q}),y.W=q)}; wG=function(y,q,Q,p){(p===void 0?0:p)?dG(y,1,"seek"):q>0&&Math.abs(q-Q)>=5&&y.W===4&&dG(y,5,"sk2t")}; Ksf=function(y,q){var Q=this;this.Y=y;this.Rb=q;this.K="";this.N=new Set;this.W=new Map;this.je={Caj:function(){return Q.N}}}; xXj=function(y,q,Q,p,v){if(y.W.has(q.identifier)){var d=y.W.get(q.identifier);p>d.Vp&&(d.startTimeSecs=q.startSecs,d.Ey=q.Ey,d.event==="predictStart"&&d.NJ===5&&q.event!=="predictStart"&&(d.lm=Date.now()),d.event=q.event)}else d={event:q.event,startTimeSecs:q.startSecs,Ey:q.Ey,Fr:[],Vp:p,NJ:0},y.W.set(q.identifier,d);v&&d.NJ===0&&(v.qq(q)?d.NJ=5:(d.NJ=2,d.Rp=""),d.lm=Date.now(),d.Vp=p);p>d.Vp&&(v==null||v.qq(q),d.Vp=p);y.J&&Q>-1&&Q1E4?(y.NJ=1,!1):!0:!1}; tE8=function(y){switch(y){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; Jb=function(y,q,Q){this.audio=y;this.video=q;this.reason=Q}; FT=function(y,q,Q){this.K=y;this.reason=q;this.token=Q;this.videoId=void 0}; Yc=function(y,q,Q){g.I.call(this);this.policy=y;this.Y=q;this.Rb=Q;this.N=new Map;this.J=0;this.G=!1;this.K="";this.W=!1}; fu=function(y,q,Q){if(Q===void 0?0:Q)y.G=!0;++y.J;Q=6E4*Math.pow(2,y.J);Q=(0,g.SK)()+Q;y.N.set(q.info.id,Q)}; bM=function(y){for(var q=g.t(y.N.entries()),Q=q.next();!Q.done;Q=q.next()){var p=g.t(Q.value);Q=p.next().value;p=p.next().value;p<(0,g.SK)()&&y.N.delete(Q)}return y.N}; EaS=function(y){return y.G&&bM(y).size>0}; $c=function(y,q){y.K!==q&&(y.K=q,y.W=!0)}; kJ9=function(y,q){var Q;q&&(Q=g.ZC(y.Y.K,function(v){return v.id===q})); if(!Q&&(Q=g.ZC(y.Y.K,function(v){var d;return!((d=v.ZG)==null||!d.isDefault)}),q)){var p; y.Rb("iaf",{id:q,sid:(p=Q)==null?void 0:p.id})}return Q}; xc=function(y,q,Q,p,v,d){var T=this;d=d===void 0?[]:d;this.loader=y;this.m3=q;this.policy=Q;this.pK=p;this.G=v;this.Dw=d;this.logger=new g.L5("dash/abr");this.K=tk;this.N=this.X=null;this.j=-1;this.vI=!1;this.nextVideo=this.W=null;this.Y=[];this.Vm=new Set;this.Es={};this.BI=new rK(1);this.C=0;this.HI=this.N$=this.cI=!1;this.Sj=0;this.Ty=!1;this.gp=new Set;this.LK=!1;this.je={uv:function(){Ku(T)}}; this.J=new Yc(this.policy,v,function(O,w){T.loader.Rb(O,w)})}; H58=function(y,q,Q){WI(y,q);q=kJ9(y.J,Q);Q||q||(q=Ls9(y));q=q||y.G.K[0];y.W=y.pK.K[q.id];Ku(y);y.X=y.W;a3C(y);NB9(y);y.N=y.nextVideo;y.X=y.W;return SVs(y)}; s8g=function(y,q){if(REH(y,q))return null;if(q.reason==="m"&&q.isLocked())return WI(y,q),y.C=y.Y.length-1,Ku(y),ZZ(y),y.N$=y.N$||y.N!==y.nextVideo,y.N=y.nextVideo,new Jb(y.W,y.N,q.reason);q.reason==="r"&&(y.j=-1);WI(y,q);ZZ(y);if(q.reason==="r"&&y.nextVideo===y.N)return new Jb(y.W,y.nextVideo,q.reason);y.N&&y.nextVideo&&tb(y,y.N.info)1.5&&y.loader.Rb("overshoot",{sq:q.Qm,br:Q,max:p}))}}; EW=function(y,q,Q){fu(y.J,q,Q===void 0?!1:Q);y.j=-1;WI(y,y.K)}; zEf=function(y,q){return new Jb(y.X,y.N,q||y.K.reason)}; SVs=function(y){y.vI?y.vI=!1:y.j=(0,g.SK)();y.cI=!1;y.LK=!1;return new Jb(y.X,y.N,y.K.reason)}; DXD=function(y,q){var Q={};q=g.t(q);for(var p=q.next();!p.done;p=q.next())if((p=p.value)&&p.video){var v=p.video.qualityOrdinal,d=Q[v],T=d&&yR(d)&&d.video.qualityOrdinal>y.policy.Jz,O=v<=y.policy.Jz?yR(p):Xm(p);if(!d||T||O)Q[v]=p}return Q}; WI=function(y,q){y.K=q;var Q=y.G.videoInfos;if(!y.K.isLocked()){var p=(0,g.SK)();Q=g.DQ(Q,function(T){if(T.jj>this.policy.jj)return!1;var O=this.pK.K[T.id];return bM(this.J).get(T.id)>p||O.uj.N>4||O.G>4?!1:this.gp.has(+T.itag)?!1:!0},y); EaS(y.J)&&(Q=g.DQ(Q,function(T){return T.video.width<=854&&T.video.height<=480}))}Q.length||(Q=y.G.videoInfos); var v=Q;y.policy.GH&&(v=uf2(y,v,q));v=g.DQ(v,q.Y,q);if(y.K.isLocked()&&y.J.K){var d=g.ZC(Q,function(T){return T.id===y.J.K}); d?v=[d]:$c(y.J,"")}y.policy.GH||(v=uf2(y,v,q));v.length||(v=[Q[0]]);v.sort(function(T,O){return tb(y,T)-tb(y,O)}); q={};for(Q=1;Qq.DU.video.width?(g.kq(v,Q),Q--):tb(y,q.UZ)*y.policy.j>tb(y,q.DU)&&(g.kq(v,Q-1),Q--);q=v[v.length-1];y.Ty=!!y.N&&!!y.N.info&&y.N.info.nK!==q.nK;y.Y=v;y.Vm.clear();Q=!1;for(d=0;d=1080&&(Q=!0);I3g(y.policy,q,y.pK.E9)}; uf2=function(y,q,Q){var p=Q.reason==="m"||Q.reason==="s";y.policy.JD&&kc&&g.W9&&(!p||Q.K<1080)&&(q=q.filter(function(J){return J.video&&(!J.W||J.W.powerEfficient)})); if(q.length>0)if(EA()){var v=DXD(y,q);q=q.filter(function(J){return!!J&&!!J.video&&J.nK===v[J.video.qualityOrdinal].nK})}else{var d,T,O=(d=q[0])==null?void 0:(T=d.video)==null?void 0:T.qualityOrdinal; if(O){Q=q.filter(function(J){return!!J&&!!J.video&&J.video.qualityOrdinal===O}); var w=DXD(y,Q)[O].nK;q=q.filter(function(J){return!!J&&!!J.video&&J.nK===w})}}return q}; nai=function(y,q){for(var Q=0;Q+1p}; Ku=function(y){if(!y.W||!y.policy.Y&&!y.W.info.ZG){var q=y.G.K;y.W&&(q=q.filter(function(p){return p.audio.K===y.W.info.audio.K}),q.length||(q=y.G.K)); y.W=y.pK.K[q[0].id];if(q.length>1&&!y.policy.HI){if(!y.policy.Gg){var Q=g.ZC(q,function(p){return p.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); Q&&(y.W=y.pK.K[Q.id])}Q=!1;if(Q=y.policy.zf?!0:y.K.isLocked()?y.K.K<240:nai(y,y.W))y.W=y.pK.K[g.xq(q).id]}}}; ZZ=function(y){if(!y.nextVideo||!y.policy.Y)if(y.K.isLocked())y.nextVideo=y.K.K<=360?y.pK.K[y.Y[0].id]:y.pK.K[g.xq(y.Y).id];else{for(var q=Math.min(y.C,y.Y.length-1),Q=dn(y.m3),p=tb(y,y.W.info),v=Q/y.policy.m3-p;q>0&&!(tb(y,y.Y[q])<=v);q--);for(Q=Q/y.policy.j-p;q=Q);q++);y.nextVideo=y.pK.K[y.Y[q].id];y.C=q}}; a3C=function(y){var q=y.policy.m3,Q=dn(y.m3)/q-tb(y,y.W.info);q=g.tm(y.Y,function(p){return tb(this,p)d?v=0:p[T]>y.buffered[T]&&(T===d-1?v=2:T===d-2&&p[T+1]>y.buffered[T+1]&&(v=3))}y.K.add(q<<3|(Q&&4)|v);q=Math.ceil(y.track.wR()*1E3);y.K.add(q-y.J);y.J=q;if(v===1)for(y.K.add(d),T=q=0;T=2&&y.K.add(p[d- 1]-y.buffered[d-1]);Q&&y.K.add(Q);y.buffered=p}; Nk=function(y,q,Q){var p=this;this.policy=y;this.K=q;this.Sj=Q;this.Y=this.W=0;this.Wt=null;this.cI=new Set;this.j=[];this.indexRange=this.initRange=null;this.C=new M6;this.N$=this.m3=!1;this.je={UEs:function(){return p.N}, oMV:function(){return p.chunkSize}, Bgp:function(){return p.X}, bOb:function(){return p.G}}; (q=ryj(this))?(this.chunkSize=q.csz,this.N=Math.floor(q.clen/q.csz),this.X=q.ck,this.G=q.civ):(this.chunkSize=y.Mv,this.N=0,this.X=g.ZX(16),this.G=g.ZX(16));this.J=new Uint8Array(this.chunkSize);this.X&&this.G&&(this.crypto=new J1p(this.X,this.G))}; ryj=function(y){if(y.policy.W_&&y.policy.Fv)for(var q=g.t(y.policy.W_),Q=q.next(),p={};!Q.done;p={au:void 0,Bq:void 0},Q=q.next())if(Q=g.TS(Q.value),p.au=+Q.clen,p.Bq=+Q.csz,p.au>0&&p.Bq>0&&y.policy.Y===Q.docid&&y.K.info.id===Q.fmtid&&y.K.info.lastModified===+Q.lmt)return y={},y.clen=p.au,y.csz=p.Bq,y.ck=Q.ck,y.civ=Q.civ,y}; Sy=function(y){return!!y.Wt&&y.Wt.Ve()}; eE9=function(y,q){if(!Sy(y)&&!y.iB()){if(!(y.m3||(y.m3=!0,y.N>0))){var Q=HI(y);Q=Y3(y.policy.Y,y.K.info,RQ(y),Q,y.policy.Os);sW(y,Q)}if(q.info.type===1){if(y.Wt){Mk(y,Error("Woffle: Expect INIT slices to always start us off"));return}y.initRange=QF(0,q.W.totalLength)}else if(q.info.type===2)y.Wt&&y.Wt.type===1||Mk(y,Error("Woffle: Index before init")),y.indexRange=QF(y.initRange.end+1,q.W.totalLength);else if(q.info.type===3){if(!y.Wt){Mk(y,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(y.Wt.type===3&&!VF(y.Wt,q.info)&&(y.j=[],q.info.Qm!==OV(y.Wt)||q.info.W!==0))return;if(q.info.Y){Q=g.t(y.j);for(var p=Q.next();!p.done;p=Q.next())oaS(y,p.value);y.j=[]}else{y.j.push(q);y.Wt=q.info;return}}else{Mk(y,Error("Woffle: Unexpected slice type"));return}y.Wt=q.info;oaS(y,q);Ayp(y)}}; oaS=function(y,q){var Q=0,p=$S(q.W);if(y.Y=p.length)return;if(Q<0)throw Error("Missing data");y.Y=y.N;y.W=0}for(v={};Q0){var T=p.getUint32(Q+28);d+=T*16+4}var O=p.getUint32(Q+d-4);try{var w=Xj8(q.subarray(Q+d,Q+d+O));if(w!==null){var J=w;break a}}catch(F){}}Q+=v}J=null;break a}catch(F){J=null;break a}J=void 0}if(J!=null)for(q=ti(QS(J,7,void 0,IM)),q==null||y.al||(y.cryptoPeriodIndex=q),q=ti(QS(J,10,void 0,IM)),q!=null&&q>0&& !y.al&&(y.K=q),J=wF(J,2,EZi,void 0===ads?2:4),J=g.t(J),p=J.next();!p.done;p=J.next())q=y.N,Q=q.push,p=nv(p.value),p=g.Rq(p,4),Q.call(q,p)}; Cq9=function(y){return isNaN(y.cryptoPeriodIndex)?g.Rq(y.initData):""+y.cryptoPeriodIndex}; DZ=function(y,q,Q){var p=Q===void 0?{}:Q;Q=p.videoDuration===void 0?0:p.videoDuration;var v=p.xm===void 0?void 0:p.xm;p=p.eC===void 0?!1:p.eC;this.videoId=y;this.status=q;this.videoDuration=Q;this.xm=v;this.eC=p}; yBi=function(y,q,Q,p,v){this.videoId=y;this.SZ=q;this.W=Q;this.bytesDownloaded=p;this.K=v}; uM=function(y){this.K=y;this.offset=0}; IQ=function(y){if(y.offset>=y.K.totalLength)throw Error();return xS(y.K,y.offset++)}; qdj=function(y,q){q=q===void 0?!1:q;var Q=IQ(y);if(Q===1){q=-1;for(Q=0;Q<7;Q++){var p=IQ(y);q===-1&&p!==255&&(q=0);q>-1&&(q=q*256+p)}return q}p=128;for(var v=0;v<6&&p>Q;v++)Q=Q*256+IQ(y),p*=128;return q?Q:Q-p}; jg9=function(y){try{var q=qdj(y,!0),Q=qdj(y,!1);return{id:q,size:Q}}catch(p){return{id:-1,size:-1}}}; Qg9=function(y){for(var q=new uM(y),Q=-1,p=0,v=0;!p||!v;){var d=jg9(q),T=d.id;d=d.size;if(T<0)return;if(T===176){if(d!==2)return;p=q.Y6()}else if(T===186){if(d!==2)return;v=q.Y6()}T===374648427?Q=q.Y6()+d:T!==408125543&&T!==174&&T!==224&&q.skip(d)}q=Kr(y,0,Q);Q=new DataView(q.buffer);Q.setUint16(p,3840);Q.setUint16(v,2160);p=new Fx([q]);YS(p,y);return p}; pgj=function(y,q,Q){var p=this;this.loader=y;this.policy=q;this.J=Q;this.logger=new g.L5("dash");this.W=[];this.K=null;this.m3=-1;this.j=0;this.gp=NaN;this.cI=0;this.N=NaN;this.C=this.vI=0;this.Ty=-1;this.Es=this.Y=this.G=this.Sj=null;this.BI=this.HI=NaN;this.X=this.N$=this.Vm=this.Dw=null;this.Os=!1;this.LK=this.timestampOffset=0;this.je={E5:function(){return p.W}}; if(this.policy.Y){var v=this.J,d=this.policy.Y;this.policy.Os&&y.Rb("atv",{ap:this.policy.Os});this.X=new Nk(this.policy,v,function(T,O,w){y.WI.X6(new DZ(p.policy.Y,2,{xm:new yBi(d,T,v.info,O,w)}))}); this.X.C.promise.then(function(T){p.X=null;T===1?y.WI.X6(new DZ(p.policy.Y,T)):p.loader.Rb("offlineerr",{status:T.toString()})},function(T){var O=(T.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); T instanceof lM&&!T.K?(p.loader.Rb("offlinenwerr",{em:O}),nu(p),y.WI.X6(new DZ(p.policy.Y,4))):(p.loader.Rb("dldbwerr",{em:O}),nu(p),y.WI.X6(new DZ(p.policy.Y,4,{eC:!0})))})}}; vE9=function(y){return y.W.length?y.W[0]:null}; dCj=function(y,q){return y.W.some(function(Q){return Q.info.Qm===q})}; JBS=function(y,q,Q,p){p=p===void 0?0:p;if(y.Y){var v=y.Y.W+y.Y.N;if(Q.info.W>0)if(Q.info.Qm===y.Y.Qm&&Q.info.W=0&&y.Y.Qm>=0&&!VF(y.Y,Q.info))throw new g.GH("improper_continuation",y.Y.r0(),Q.info.r0());HNp(y.Y,Q.info)||gG(y,"d")}else if(Q.info.W>0)throw new g.GH("continuation_of_null",Q.info.r0());y.Y=Q.info;y.J=Q.info.K;if(Q.info.W===0){if(y.K)if(!y.loader.isOffline()||y.policy.fV)y.loader.Rb("slice_not_fully_processed", {buffered:y.K.info.r0(),push:Q.info.r0()});else throw new g.GH("slice_not_fully_processed",y.K.info.r0(),Q.info.r0());cI(y);y.vI=p}else{if(y.vI&&p&&y.vI!==p)throw y=new g.GH("lmt_mismatch",Q.info.Qm,y.vI,p),y.level="WARNING",y;!Q.info.K.gY()&&y.G&&(p=Q.info,v=y.G.Zx,p.X="updateWithEmsg",p.Qm=v)}if(y.K){p=g.Hj(y.K,Q);if(!p)throw new g.GH("failed_to_merge",y.K.info.r0(),Q.info.r0());y.K=p}else y.K=Q;a:{Q=g.QR(y.K.info.K.info);if(y.K.info.type!==3){if(!y.K.info.Y)break a;y.K.info.type===6?TKC(y,q,y.K): Vzb(y,y.K);y.K=null}for(;y.K;){p=y.K.W.totalLength;if(y.m3<=0&&y.j===0){var d=y.K.W,T=-1;v=-1;if(Q){for(var O=0;O+80))break;if(Y!==408125543)if(Y===524531317)O=!0,F>=0&&(v=d.Y6()+F,w=!0);else{if(O&&(Y===160||Y===163)&&(T<0&&(T=J),w))break;Y===163&&(T=Math.max(0,T),v=d.Y6()+F);if(Y===160){T<0&&(v=T=d.Y6()+ F);break}d.skip(F)}}T<0&&(v=-1)}if(T<0)break;y.m3=T;y.j=v-T}if(y.m3>p)break;y.m3?(p=O82(y,y.m3),p.J&&wg2(y,p),TKC(y,q,p),UW(y,p),y.m3=0):y.j&&(p=O82(y,y.j<0?Infinity:y.j),y.j-=p.W.totalLength,UW(y,p))}}y.K&&y.K.info.Y&&(UW(y,y.K),y.K=null)}; Vzb=function(y,q){!q.info.K.gY()&&q.info.W===0&&(g.QR(q.info.K.info)||q.info.K.info.al())&&JXb(q);if(q.info.type===1)try{wg2(y,q),Fl8(y,q)}catch(v){g.l$(v);var Q=wB(q.info);Q.hms="1";y.loader.handleError("fmt.unparseable",Q||{},1)}Q=q.info.K;Q.YI(q);y.X&&eE9(y.X,q);if(Q.iF()&&y.policy.K)a:{y=y.loader.pK;q=q.info.clipId;Q=g.vb(Q.info,y.E9);if(q){var p=Cm({itag:Q.itag,lmt:y.E9?0:Q.lmt||0,xtags:Q.xtags});if(y.BI[p])break a;y.BI[p]=q}y.Ty.push(Q)}}; X_b=function(y,q,Q){if(y.W.length!==0&&(Q||y.W.some(function(d){return d.info.J=oQ(T)+O):q=y.getDuration()>=T.getDuration(),q=!q;q&&fTS(Q)&&(q=y.Sj,rG?(O=OjH(Q),T=1/O,O=oQ(y,O),q=oQ(q)+T-O):q=q.getDuration()- y.getDuration(),q=1+q/Q.info.duration,dLH(g.SE(Q),q))}else{T=!1;y.G||(JXb(Q),Q.K&&(y.G=Q.K,T=!0,v=Q.info,d=Q.K.Zx,v.X="updateWithEmsg",v.Qm=d,v=Q.K,v.Ve&&(d=y.J.index,d.W=!v.Ve,d.N="emsg"),v=Q.info.K.info,d=g.SE(Q),g.QR(v)?aW(d,1701671783):v.al()&&za([408125543],307544935,d)));a:if((v=MX(Q,y.policy.F0))&&wbb(Q))O=hds(y,Q),y.C+=O,v-=O,y.cI+=v,y.N=y.policy.nF?y.N+v:NaN;else{if(y.policy.u2){if(d=w=y.loader.Wp(g.R8(Q),1),y.N>=0&&Q.info.type!==6){if(y.policy.nF&&isNaN(y.HI)){g.zI(new g.GH("Missing duration while processing previous chunk", Q.info.r0()));y.loader.isOffline()&&!y.policy.fV||b8f(y,Q,d);gG(y,"m");break a}p=w-y.N;var J=p-y.C,F=Q.info.Qm,Y=y.Es?y.Es.Qm:-1,f=y.BI,h=y.HI,b=y.policy.Nx&&p>y.policy.Nx,Z=Math.abs(J)>10,k=Math.abs(y.N-d)<1E-7;if(Math.abs(J)>1E-4){y.LK+=1;var S=(O=y.G)==null?void 0:qU8(O);O={audio:""+ +y.Eu(),sq:F.toFixed(),sliceStart:w,lastSq:Y.toFixed(),lastSliceStart:f,lastSliceDuration:h,totalDrift:(p*1E3).toFixed(),segDrift:(J*1E3).toFixed(),skipRewrite:""+ +(b||Z)};if(S==null?0:S.length)O.adCpn=S[0];y.loader.handleError("qoe.avsync", O);y.Ty=F}b||Z||k||(d=y.N);O=hds(y,Q,w);v-=O;y.C=p+O}}else d=isNaN(y.N)?Q.info.startTime:y.N;b8f(y,Q,d)&&(y.cI+=v,y.N=d+v,y.policy.zY&&y.LK>=y.policy.zY&&(y.LK=0,y.loader.Tn({resetForRewrites:"count"})))}y.Es=Q.info;y.HI=sV(Q);Q.N>=0&&(y.BI=Q.N);if(T&&y.G){T=$CH(y,!0);Jy(Q.info,T);y.K&&Jy(y.K.info,T);q=g.t(q);for(O=q.next();!O.done;O=q.next())O=O.value,v=void 0,y.policy.J&&O.Qm!==((v=y.G)==null?void 0:v.Zx)||Jy(O,T);(Q.info.Y||y.K&&y.K.info.Y)&&Q.info.type!==6||(y.N$=T,y.policy.W?(q=KlH(y.G),y.loader.x_(y.J, T,q)):(q=y.loader,q.pK.isManifestless&&xC8(q,T,null,!!y.J.info.video)),y.policy.YJ||WlS(y))}}Fl8(y,Q);y.timestampOffset&&TQ2(Q,y.timestampOffset)}; UW=function(y,q){if(q.info.Y){y.Dw=q.info;if(y.G){var Q=y.G,p=$CH(y,!1);Q=KlH(Q);y.loader.x_(y.J,p,Q);y.N$||y.policy.YJ||WlS(y);y.N$=null}cI(y)}y.X&&eE9(y.X,q);if(p=y.Mr())if(p=g.Hj(p,q,y.policy.Ji,y.policy.oo)){y.W.pop();y.W.push(p);return}y.W.push(q)}; KlH=function(y){if(y.Vc()){var q=y.data["Stitched-Video-Id"]?y.data["Stitched-Video-Id"].split(",").slice(0,-1):[],Q=qU8(y),p=[];if(y.data["Stitched-Video-Duration-Us"])for(var v=g.t(y.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),d=v.next();!d.done;d=v.next())p.push((Number(d.value)||0)/1E6);v=[];if(y.data["Stitched-Video-Start-Frame-Index"]){d=g.t(y.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var T=d.next();!T.done;T=d.next())v.push(Number(T.value)||0)}v=[]; if(y.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(d=g.t(y.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),T=d.next();!T.done;T=d.next())v.push((Number(T.value)||0)/1E6);y=new i59(q,Q,p,v,g.jZi(y),g.QZ9(y))}else y=null;return y}; cI=function(y){y.K=null;y.m3=-1;y.j=0;y.G=null;y.gp=NaN;y.cI=0;y.N$=null}; gG=function(y,q){q={rst4disc:q,cd:y.C.toFixed(3),sq:y.Es?y.Es.Qm:-1};y.N=NaN;y.C=0;y.Ty=-1;y.Es=null;y.BI=NaN;y.HI=NaN;y.Vm=null;y.loader.Rb("mdstm",q)}; Fl8=function(y,q){if(y.isDrm()){if(q.info.K.info.al()){var Q=new SM(g.SE(q));if(RW(Q,[408125543,374648427,174,28032,25152,20533,18402])){var p=l0(Q,!0);Q=p!==16?null:nm(Q,p)}else Q=null;p="webm"}else q.info.j=GJ9(g.SE(q)),Q=Pq9(q.info.j),p="cenc";Q&&Q.length&&(Q=new zN(Q,p),y.policy.fD&&g.QR(q.info.K.info)&&(p=FIs(g.SE(q)))&&(Q.W=p),Q.al=q.info.K.info.al(),q.K&&q.K.cryptoPeriodIndex&&(Q.cryptoPeriodIndex=q.K.cryptoPeriodIndex),q.K&&q.K.W&&(Q.K=q.K.W),y.loader.eJ(Q))}}; WlS=function(y){var q=y.G,Q=CBb(q);Q&&(Q.startSecs+=y.gp,y.loader.Ra(y.J,Q,q.Zx,q.Vc()))}; $CH=function(y,q){var Q,p=y.G;if(Q=CBb(p))Q.startSecs+=y.gp;return new pm(p.Zx,y.gp,q?p.nV:y.cI,p.ingestionTime,"sq/"+p.Zx,void 0,void 0,q,Q)}; b8f=function(y,q,Q){if(!d6g(q,Q))return q=wB(q.info),q.smst="1",y.loader.handleError("fmt.unparseable",q||{},1),!1;isNaN(y.gp)&&(y.gp=Q);return!0}; hds=function(y,q,Q){var p=0;if(q.info.K.info.al()&&!wbb(q))return 0;if(y.Sj&&!y.Eu()){var v=0;Q&&g.QR(q.info.K.info)?v=Q-y.N:q.info.K.info.al()&&(v=y.C);var d=q.info.Qm;Q=MX(q,y.policy.F0);var T=y.Sj;var O=T.Ty;T=T.C;var w=Math.abs(T-v)>.02;if((d===O||d>O&&d>y.Ty)&&w){p=Math.max(.95,Math.min(1.05,(Q-(T-v))/Q));if(g.QR(q.info.K.info))dLH(g.SE(q),p);else if(q.info.K.info.al()&&(d=v-T,!g.QR(q.info.K.info)&&(q.info.K.info.al(),p=new SM(g.SE(q)),O=q.J?p:new SM(new DataView(q.info.K.K.buffer)),MX(q,!0)))){var J= d*1E3,F=cY(O);O=p.pos;p.pos=0;if(p.K.getUint8(p.pos)===160||UE(p))if(Mf(p,160))if(l0(p,!0),Mf(p,155)){if(d=p.pos,w=l0(p,!0),p.pos=d,J=J*1E9/F,F=DH(p),J=F+Math.max(-F*.7,Math.min(F,J)),J=Math.sign(J)*Math.floor(Math.abs(J)),!(Math.ceil(Math.log(J)/Math.log(2)/8)>w)){p.pos=d+1;for(d=w-1;d>=0;d--)p.K.setUint8(p.pos+d,J&255),J>>>=8;p.pos=O}}else p.pos=O;else p.pos=O;else p.pos=O}p=MX(q,y.policy.F0);p=Q-p}p&&q.info.K.info.al()&&y.loader.Rb("webmDurationAdjustment",{durationAdjustment:p,videoDrift:v+p, audioDrift:T})}return p}; fTS=function(y){return y.info.K.gY()&&y.info.Qm===y.info.K.index.D3()}; oQ=function(y,q){q=(q=q===void 0?0:q)?Math.round(y.timestampOffset*q)/q:y.timestampOffset;y.J.Y&&q&&(q+=y.J.Y.K);return q+y.getDuration()}; Z8s=function(y,q){q<0||(y.W.forEach(function(Q){TQ2(Q,q)}),y.timestampOffset=q)}; wn=function(y,q,Q,p,v){Nu.call(this,Q,v);var d=this;this.policy=y;this.formatId=q;this.Ro=p;this.lastError=null;this.onProgress=function(){d.iB()||(d.Ro.HT.has(d.formatId)?(d.isComplete()||d.K.start(),yJ(d.Ro,d.formatId)&&d.Aa(2),d.Ro.Pt(d.formatId)&&(mfb(d.Ro,d.formatId)?d.hU(4):(d.lastError="net.closed",d.hU(5)))):(d.lastError="player.exception",d.hU(5)))}; this.K=new g.y0(function(){d.isComplete()||(d.lastError="net.timeout",d.hU(5))},1E3); this.K.start();P0S(this.Ro,this.formatId,this.onProgress);g.MN(this.onProgress)}; Ab=function(y,q,Q,p){g.I.call(this);var v=this;this.loader=y;this.policy=q;this.K=Q;this.timing=p;this.logger=new g.L5("dash");this.N=[];this.Sj=[];this.W=this.xs=null;this.Vm=!1;this.vI=this.LK=0;this.G=-1;this.m3=!1;this.gp=-1;this.Es=null;this.N$=NaN;this.cI=[];this.je={tb:function(){return v.Y}, vlp:function(){return v.N}, z1K:function(){return v.C}}; this.Y=new pgj(y,q,Q);this.policy.K&&(this.C=new Vj(this.Y,this.loader.getManifest(),this.policy,function(d){v.policy.BG&&v.Rb("buftl",d)})); this.policy.Mz&&(this.j=new Lu(this));this.jj=Q.info.jj;this.X=this.policy.N$?!1:Q.ek();this.isManifestless=Q.ek();this.J=this.X;g.n(this,this.Es)}; ey=function(y,q,Q){Q=Q===void 0?!1:Q;q&&rG&&Z8s(y.Y,q.qc());if(!Q){var p;(p=y.C)==null||BzH(p)}y.xs=q;(q=y.C)!=null&&(q.xs=y.xs)}; BI=function(y){var q=y.xs&&y.xs.kA();if(y.policy.R5){if((y=y.C)==null)y=void 0;else{var Q;y=(Q=y.N)==null?void 0:Q.info}return y||null}return q}; tzS=function(y){for(var q={},Q=0;Q4&&y.Sj.shift()}; kt3=function(y,q){if(q.Er()){var Q=q.Bx();Q=g.t(Q);for(var p=Q.next();!p.done;p=Q.next())p=p.value,y.policy.N&&q instanceof wn&&y.Rb("omblss",{s:p.info.r0()}),EEp(y,q.info.CK,p,q.If())}}; EEp=function(y,q,Q,p){p=p===void 0?0:p;isNaN(y.N$)||(y.Rb("aswm",{sq:q[0].Qm,id:q[0].K.info.itag,xtag:q[0].K.info.K,ep:Date.now()-y.N$}),y.N$=NaN);switch(Q.info.type){case 1:case 2:LlD(y,Q);break;case 4:var v=Q.info.K,d=v.QV(Q),T;((T=y.W)==null?0:T.type===4)&&umS(Q.info,y.W)&&(y.W=v.g3(y.W).pop());Q=g.t(d);for(v=Q.next();!v.done;v=Q.next())EEp(y,q,v.value,p);break;case 3:Q.info.K.info.video?(v=y.timing,v.gp||(v.gp=(0,g.SK)(),g.VD("fvb_r",v.gp,v.K))):(v=y.timing,v.G||(v.G=(0,g.SK)(),g.VD("fab_r",v.G, v.K)));JBS(y.Y,q,Q,p);y.policy.K&&aTD(y);break;case 6:JBS(y.Y,q,Q,p),y.W=Q.info}}; LlD=function(y,q){if(q.info.type===1)if(q.info.K.info.video){var Q=y.timing;Q.vI||(Q.vI=(0,g.SK)(),g.VD("vis_r",Q.vI,Q.K))}else Q=y.timing,Q.C||(Q.C=(0,g.SK)(),g.VD("ais_r",Q.C,Q.K));Vzb(y.Y,q);y=y.loader;y.videoTrack.K.iF()&&y.audioTrack.K.iF()&&y.policy.K&&!y.pK.E9&&(q=y.audioTrack.getDuration(),Q=y.videoTrack.getDuration(),Math.abs(q-Q)>1&&y.Rb("trBug",{af:""+g.vb(y.audioTrack.K.info,!1),vf:""+g.vb(y.videoTrack.K.info,!1),a:""+q,v:""+Q}))}; xd=function(y){return vE9(y.Y)}; aTD=function(y){y.N.length?y.W=g.xq(g.xq(y.N).info.CK):y.Y.W.length?y.W=y.Y.Mr().info:y.W=BI(y)}; NK8=function(y,q){var Q={Yj:[],pX:[]},p;if((y=y.C)==null)y=void 0;else{e5j(y,y.Yj,"og");rog(y,q);e5j(y,y.Yj,"trim");var v=AoS(y);q=v.Yj;v=v.QD;for(var d=[],T=0;T0){var f=YA(Y,w);f>=0&&(F=(Y.end(f)-w+.1)*1E3)}d.push({formatId:g.vb(O.info.K.info,y.pK.E9), lH:O.info.lH,sequenceNumber:O.info.Qm+y.Y,iP:J,Tr:O.info.N,AV:F})}y={Yj:q,pX:d}}return(p=y)!=null?p:Q}; Yd=function(y,q,Q){Q=Q===void 0?!1:Q;if(y.xs){var p=y.xs.m5(),v=hX(p,q),d=NaN,T=BI(y);T&&(d=hX(p,T.K.index.getStartTime(T.Qm)));if(v===d&&y.W&&y.W.N&&Sdg(H8g(y),0))return q}y=Rdf(y,q,Q);return y>=0?y:NaN}; hf=function(y,q,Q){y.K.iF();var p=Rdf(y,q);if(p>=0)return p;var v;(v=y.C)==null||oFp(v,q,Q);p=Math;v=p.min;var d=y.Y;if(d.X)if(d=d.X,d.Wt&&d.Wt.type===3)d=d.Wt.startTime;else if(d.N>0){var T=d.K.index;T=g.em(T.offsets.subarray(0,T.count),d.N*d.chunkSize);d=d.K.index.getStartTime(T>=0?T:Math.max(0,-T-2))}else d=0;else d=Infinity;q=v.call(p,q,d);y.W=y.policy.N$?null:y.K.rP(q).CK[0];PI(y)&&(y.policy.sA&&(Q==null?void 0:Q.seekSource)===60||y.xs&&y.xs.abort(),y.policy.OI&&(Q=y.C)!=null&&(Q.N=void 0)); y.vI=0;return y.W?y.W.startTime:q}; PHi=function(y){y.X=!0;y.J=!0;y.G=-1;hf(y,Infinity)}; iM=function(y){for(var q=0,Q=g.t(y.N),p=Q.next();!p.done;p=Q.next())q+=npD(p.value.info);return q+=YdC(y.Y)}; mt=function(y,q){q=q===void 0?!1:q;var Q=y.loader.getCurrentTime(),p=y.Y.Mr(),v=(p==null?void 0:p.info.G)||0;if((p==null?0:p.info.K.ek())&&!p.info.Y)if(y.policy.oD)v=p.info.J;else if(y.policy.xn){var d=p.info;v=d.range?d.G:Math.min(d.startTime+Math.min(d.duration*d.W/d.K.info.jj,d.duration)+(d.range?d.C:Math.min(d.duration,d.duration*d.N/d.K.info.jj)),d.startTime+d.duration)}if(!y.xs)return y.policy.K&&q&&!isNaN(Q)&&p?v-Q:0;if((d=BI(y))&&XT(d))return d.G;var T=y.xs.m5(!0);if(q&&p)return d=0,y.policy.K&& (d=Kj(T,v+.02)),d+v-Q;q=Kj(T,Q);y.policy.I8&&d&&(p=YA(T,Q),T=YA(T,d.J-.02),p===T&&(Q=d.G-Q,y.policy.N&&Q>q+.02&&y.Rb("abh",{bh:q,bhtls:Q}),q=Math.max(q,Q)));return q}; sgC=function(y){var q=BI(y);return q?q.G-y.loader.getCurrentTime():0}; MzH=function(y,q,Q,p){if(!y.K.index.UP(q,!0))return!1;try{FZ(y);for(var v=y.Y,d=null,T=v.W.length-1;T>=0;T--){var O=v.W[T];O.info.Qm>=q&&(v.W.pop(),v.N-=MX(O,v.policy.F0),d=O.info)}d&&(v.Y=v.W.length>0?v.W[v.W.length-1].info:v.Vm,v.W.length!==0||v.Y||gG(v,"r"));v.loader.Rb("mdstm",{rollbk:1,itag:d?d.K.info.itag:"",popped:d?d.Qm:-1,sq:q,lastslc:v.Y?v.Y.Qm:-1,lastfraget:v.N.toFixed(3)});if(y.policy.K)return y.W=null,!0;p>Q?hf(y,p):y.W=y.K.bC(q-1,!1).CK[0]}catch(w){return q=kp(w),q.details.reason="rollbkerr", y.loader.handleError(q.errorCode,q.details,q.severity),!1}return!0}; yZ=function(y,q){var Q;for(Q=0;Q0?Q||q.Qm>=y.gp:Q}; qK=function(y){var q;return PI(y)||XT((q=y.Y.Mr())==null?void 0:q.info)}; H8g=function(y){var q=[],Q=BI(y);Q&&q.push(Q);q=g.lG(q,y.Y.pH());Q=g.t(y.N);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;for(var v=g.t(p.info.CK),d=v.next(),T={};!d.done;T={MG:void 0},d=v.next())T.MG=d.value,p.J8&&(q=g.DQ(q,function(O){return function(w){return!umS(w,O.MG)}}(T))),(TJ(T.MG)||T.MG.type===4)&&q.push(T.MG)}y.W&&!NZH(y.W,g.xq(q),y.W.K.gY())&&q.push(y.W); return q}; Sdg=function(y,q){if(!y.length)return!1;for(q+=1;q=q){q=d;break a}}q=v}return q<0?NaN:Sdg(y,Q?q:0)?y[q].startTime:NaN}; jI=function(y){return!(!y.W||y.W.K===y.K)}; lTi=function(y,q,Q){return y.policy.K?mt(y,!0)q&&y.G1080&&!y.L8&&(y.LK=36700160,y.q$=5242880,y.Vm=Math.max(4194304,y.Vm),y.L8=!0);q.video.qualityOrdinal>2160&&!y.GJ&&(y.LK=104857600,y.jj=13107200,y.GJ=!0);g.wm(y.wp.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?q.isEncrypted()&&g.PF()&&g.BF("samsung")&&(g.BF("kant")||g.BF("muse"))&&(y.jj=g.wm(y.wp.experiments,"html5_samsung_kant_limit_max_bitrate")):q.isEncrypted()&&g.PF()&&g.BF("kant")&&(y.jj=1310720);y.yA!==0&&q.isEncrypted()&& (y.jj=y.yA);y.B9!==0&&q.isEncrypted()&&Q&&(y.jj=y.B9);q.jj&&(y.oI=Math.max(y.dk,Math.min(y.Vm,5*q.jj)))}; rn=function(y){return y.K&&y.Yn}; vm=function(y){return y.K&&y.z5&&y.playbackStartPolicy}; edb=function(y,q,Q,p){y.z5&&(y.playbackStartPolicy=q,y.DK=Q,y.AE=p)}; pl=function(y,q,Q){Q=Q===void 0?0:Q;return g.wm(y.wp.experiments,q)||Q}; BKj=function(y){var q=y===void 0?{}:y;y=q.aD;var Q=q.wi;var p=q.pn;var v=q.D3;q=q.r$;this.aD=y;this.wi=Q;this.pn=p;this.D3=v;this.r$=q}; TsS=function(y,q){if(q<0)return!0;var Q=y.D3();return q0)return 2;if(q<0)return 1;Q=y.D3();return q(0,g.SK)()?0:1}; Tx=function(y,q,Q,p,v,d,T,O,w,J,F,Y,f,h){h=h===void 0?null:h;g.I.call(this);var b=this;this.loader=y;this.policy=q;this.videoTrack=Q;this.audioTrack=p;this.Y=v;this.K=d;this.timing=T;this.J=O;this.schedule=w;this.pK=J;this.N=F;this.cI=Y;this.RO=f;this.L1=h;this.N$=!1;this.Ak="";this.Ev=null;this.ea=NaN;this.m3=!1;this.W=null;this.xJ=this.j=NaN;this.P9=this.G=0;this.logger=new g.L5("dash");this.je={z7:function(Z,k){return b.z7(Z,k)}}; this.policy.Uw>0&&(this.Ak=g.ZX(this.policy.Uw));this.policy.eP&&(this.C=new dq(this.loader,this.policy,this.schedule),g.n(this,this.C))}; y6p=function(y,q,Q){var p=q.W?q.W.K.uj:q.K.uj;var v=y.Y,d;(d=!y.policy.dl)||(d=C3(p.K)===C3(p.W));d?p=!1:(v=BY(v,C3(p.W)),d=6E4*Math.pow(v.Y,1.6),(0,g.SK)()=v.Y?(v.Rb("sdai",{haltrq:d+1,est:v.Y}),p=!1):p=v.W!==2;if(!p||!mq(q.W?q.W.K.uj:q.K.uj,y.policy,y.Y,y.loader.sF())||y.loader.isSuspended&&(!qj(y.schedule)||y.loader.cP))return!1;if(y.policy.Y&&FI>=5)return g.qM(y.loader.pu),!1;if(y.pK.isManifestless){if(q.N.length>0&&q.W&&q.W.Qm===-1||q.N.length>=y.policy.HG||!y.policy.WS&&q.N.length>0&&!y.policy.C.wi)return!1;if(q.X)return!y.pK.isLive|| !isNaN(y.ea)}if(uh9(q))return!1;if(!q.W){if(!q.K.iF())return!1;hf(q,y.loader.getCurrentTime())}if(xd(q)&&(q.Mr()!==xd(q)||y.loader.isSuspended))return!1;v=(p=y.policy.sT)&&!q.N.length&&mt(q,!0)=y.policy.Mx)return!1;p=q.W;if(!p)return!0;p.type===4&&p.K.iF()&&(q.W=g.xq(p.K.g3(p)),p=q.W);if(!p.Ve()&&!p.K.ZI(p))return!1;d=y.pK.Gf||y.pK.Y;if(y.pK.isManifestless&& d){d=q.K.index.D3();var T=Q.K.index.D3();d=Math.min(d,T);if(q.K.index.La()>0&&d>0&&p.Qm>=d)return q.gp=d,Q.gp=d,!1}if(p.K.info.audio&&p.type===4||p.Ve())return!1;d=!q.J&&!Q.J;if(v=!v)v=p.G,v=!!(Q.W&&!XT(Q.W)&&Q.W.Gqvj(y,q)?(qvj(y,q),!1):(y=q.xs)&&y.isLocked()?!1:!0}; qvj=function(y,q){var Q=y.K;Q=Q.K?Q.K.u6:null;if(y.policy.gp&&Q)return Q.startSecs+Q.Ey+15;q=fP(y.loader,q);y.policy.hw>0&&(Q=((0,g.SK)()-y.loader.qt)/1E3,q=Math.min(q,y.policy.hw+y.policy.yf*Q));q=y.loader.getCurrentTime()+q;return y.policy.p8&&(Q=jsp(y.loader)+y.policy.p8,Q=0||q.uj.AF("defrag")==="1"||q.uj.AF("otf")==="1"){q=null;break a}v=QF(0,4096)}v=new Ff([new vj(5,p.K,v,"createProbeRequestInfo"+p.X,p.Qm)],q.W);v.PJ=Q;v.K=q.K;q=v}q&&CUD(y,q)}}; CUD=function(y,q){y.loader.kG(q);var Q=npD(q),p=y.loader.Dt();Q={g0:y.schedule,Eo:Q,iT:IkD(y.J,Q),Rt:dB(q.CK[0]),rD:yP(q.uj.K),YA:y.policy.N,xU:function(T,O){y.loader.CM(T,O)}}; if(y.schedule.W.G){var v,d;Q.LX=(((v=y.videoTrack.K)==null?void 0:v.info.jj)||0)+(((d=y.audioTrack.K)==null?void 0:d.info.jj)||0)}y.Ev&&(Q.Qm=q.CK[0].Qm,Q.ea=q.ea,Q.Ev=y.Ev);p={lJ:gpC(q,y.loader.getCurrentTime()),Gu:y.policy.t1&&f5(q)&&q.CK[0].K.info.video?cyp(y.N):void 0,tf:y.policy.gp,poToken:y.loader.sP(),k8:y.loader.AL(),Ak:y.Ak,xJ:isNaN(y.xJ)?null:y.xJ,L1:y.L1,RO:y.RO,P9:y.P9,fu:p};return new Jf(y.policy,q,Q,y.Y,function(T,O){try{a:{var w=T.info.CK[0].K,J=w.info.video?y.videoTrack:y.audioTrack; if(!(T.state>=2)||T.isComplete()||T.FB()||!(!y.loader.Zw||y.loader.isSuspended||mt(J)>3)){var F=i83(T,y.policy,y.Y);F===1&&(y.m3=!0);pr3(y,T,F);if(T.isComplete()||T.iB()&&O<3){if(y.policy.N){var Y=T.timing.d8();Y.rst=T.state;Y.strm=T.xhr.oU();Y.cncl=T.xhr&&T.vT.J?1:0;y.loader.Rb("rqs",Y)}T.S5&&y.loader.Rb("sbwe3",{},!0)}if(!y.iB()&&T.state>=2){O5S(y.timing,T,w);var f=y.loader;y.xJ&&T.VC&&f&&(y.xJ=NaN,y.loader.t3(T.VC),y.loader.kq(),y.loader.Rb("cabrUtcSeek",{mediaTimeSeconds:T.VC}));T.r3&&y.xJ&&T.r3&& !T.r3.action&&(y.loader.fA(y.xJ),y.xJ=NaN,y.loader.Rb("cabrUtcSeekFallback",{targetUtcTimeSeconds:y.xJ}));T.JT&&y.loader.JS(T.JT);y.policy.ra&&(y.P9=T.P9);if(T.state===3){yZ(J,T);f5(T.info)&&VZ(y,J,w,!0);if(y.W){var h=T.info.bO();h&&y.W.JP(T.info.CK[0].Qm,w.info.id,h)}y.loader.Jj()}else if(T.isComplete()&&T.info.CK[0].type===5){if(T.state!==4)T.rR()&&y.loader.handleError(T.H3(),T.iE());else{var b=(T.info.CK[0].K.info.video?y.videoTrack:y.audioTrack).N[0]||null;b&&b instanceof Jf&&b.FB()&&b.OL()}T.dispose()}else{if(!T.rR()&& T.jk&&T.state>=2&&T.state!==3){var Z=T.xhr.getResponseHeader("X-Response-Itag");if(Z){var k=gaD(y.N,Z),S=T.info.N;if(S){var N=S-k.Hl();k.N=!0;T.info.CK[0].K.N=!1;var l=k.QZ(N);T.info=l;if(T.J6){var u=T.J6,c=l.CK;(c.length!==u.CK.length||c.length=y.policy.Gq&&y.W&&T.info.isDecorated()&&aj==="net.badstatus"&&y.W.rO(Jm,Fc))){var gg=(q9.info.video&&q9.uj.N>1||T.Bt===410||T.Bt===500||T.Bt===503)&&!(bM(y.N.J).size>0)&&!yP(q9.uj.K),M9=T.iE(),pM=q9.info.video?y.videoTrack:y.audioTrack;gg&&(M9.stun="1");y.loader.handleError(aj,M9);y.iB()||(gg&&EW(y.N,q9),yZ(pM,T),y.loader.Jj())}}else k=1,y.W&&T.info.isDecorated()&& aj==="net.badstatus"&&y.W.rO(Jm,Fc)&&(k=0),y.pK.isLive&&T.H3()==="net.badstatus"&&y.G<=y.policy.vG*2?(oAS(y.pK),y.pK.Gf||y.pK.isPremiere?KP(y.loader,0,{tU:"badStatusWorkaround"}):y.pK.Y?KP(y.loader,y.pK.gp,{tU:"badStatusWorkaround",Wp:!0}):wq(y.loader)):y.loader.handleError(aj,T.iE(),k);isNaN(y.xJ)||(y.loader.fA(y.xJ),y.xJ=NaN)}y.policy.EW&&!T.isComplete()?T1p(y.loader):y.loader.Jj();var DC=Xg9(T,y.policy,y.Y);pr3(y,T,DC)}}}}}catch(on){aj=y.N$?1:0,y.N$=!0,T=EU(aj),aj=kp(on,aj),y.loader.handleError(aj.errorCode, aj.details,aj.severity),T||y.loader.n1()}},p)}; voi=function(y,q){if(y.policy.useUmp&&q.iB())return!1;try{var Q=q.info.CK[0].K,p=Q.info.video?y.videoTrack:y.audioTrack;if(y.pK.isManifestless&&p){y.G=0;p.X&&(q.iB(),q.isComplete()||q.Er(),p.X=!1);q.EX()&&y.loader.HS.oW(1,q.EX());var v=q.La(),d=q.wC();qC(y.pK,v,d)}if(q.info.Rt()&&!Ya(q.info))for(var T=g.t(q.Bx()),O=T.next();!O.done;O=T.next())LlD(p,O.value);for(y.loader.getCurrentTime();p.N.length&&p.N[0].state===4;){var w=p.N.shift();kt3(p,w);p.LK=w.M6()}p.N.length&&kt3(p,p.N[0]);var J=!!xd(p);J&& q instanceof wn&&(Q.info.Eu()?VED(y.timing):TB8(y.timing));return J}catch(F){q=q.iE();q.origin="hrhs";a:{y=y.loader;Q=F;if(Q instanceof Error){q.msg||(q.msg=""+Q.message);q.name||(q.name=""+Q.name);if(Q instanceof g.GH&&Q.args)for(p=g.t(Object.entries(Q.args)),v=p.next();!v.done;v=p.next())d=g.t(v.value),v=d.next().value,d=d.next().value,q["arg"+v]=""+d;g.zI(Q);if(Q.level==="WARNING"){y.WI.Tn(q);break a}}y.handleError("fmt.unplayable",q,1)}return!1}}; VjS=function(y){var q=y.videoTrack.K.index;y.Ev=new BKj({aD:y.policy.aD,wi:y.policy.C.wi,pn:q.dG(),D3:function(){return q.D3()}, r$:function(){return q.r$()}})}; VZ=function(y,q,Q,p){if(!(Q.iF()||Q.sV()||Q.N||!mq(Q.uj,y.policy,y.Y,y.loader.sF())||Q.info.nK==="f"||y.policy.K)){if(p){p=y.J;var v=Q.info;p=nFb(p,v.video?p.policy.BL:p.policy.l7,v.jj)}else p=0;p=Q.QZ(p);y=CUD(y,p);Ya(p)&&GN(q,y);Q.N=!0}}; J2=function(y,q,Q,p,v,d,T,O){g.I.call(this);var w=this;this.loader=y;this.IB=q;this.videoTrack=Q;this.audioTrack=p;this.pK=v;this.j=d;this.isAudioOnly=T;this.C=O;this.W=tk;this.m3=!1;this.logger=new g.L5("sabr");this.X=this.N$=this.cI=!1;this.videoInfos=this.G=this.j.videoInfos;this.N=this.Sj=this.j.K;this.K=new Yc(q,d,function(J,F){w.loader.Rb(J,F)}); this.isAudioOnly&&OnS(this,this.pK.K["0"])}; wrb=function(y,q){var Q=[];q=g.t(q);for(var p=q.next();!p.done;p=q.next())Q.push(g.vb(p.value,y.pK.E9));return Q}; OnS=function(y,q,Q){q!==y.Y&&(y.Y&&(y.m3=!0),y.Y=q,y.Lf(q,y.videoTrack,Q))}; fOD=function(y,q){rn(y.IB)&&(y.N$=q.reason==="m"||q.reason==="l"?!0:!1);q.reason==="m"?q.isLocked()&&J6g(y,q.K):Fdp(y,q)?YvS(y,q.W,q.K):y.videoInfos=y.G;y.W=q}; Fdp=function(y,q){return y.IB.wj&&q.reason==="b"||y.IB.RY&&q.reason==="l"||y.IB.Cd?!1:y.IB.gN?!0:q.reason==="l"||q.reason==="b"||q.reason==="o"}; J6g=function(y,q){var Q=y.K.K;if(Q){y.videoInfos=y.G;var p=g.ZC(y.videoInfos,function(v){return v.id===Q}); p&&p.video.qualityOrdinal===q?y.videoInfos=[p]:(p=y.videoInfos.map(function(v){return v.id}),y.loader.Rb("sabrpf",{pfid:""+Q, vfids:""+p.join(".")}),YvS(y,q,q),$c(y.K,""))}else YvS(y,q,q)}; YvS=function(y,q,Q){y.videoInfos=y.G;y.videoInfos=g.DQ(y.videoInfos,function(p){return p.video.qualityOrdinal>=q&&p.video.qualityOrdinal<=Q})}; h4i=function(y,q,Q){if(y.C){var p=g.DQ(y.N,function(v){return v.id===y.C}); return FV(p,Q).includes(q)}p=g.DQ(y.N,function(v){var d;return!((d=v.ZG)==null||!d.isDefault)}); return p.length>0?FV(p,Q).includes(q):FV(y.N,Q).includes(q)}; FV=function(y,q){return y.map(function(Q){return Cm(g.vb(Q,q))})}; bnD=function(y){var q;if((q=y.W)==null?0:q.isLocked())return y.videoInfos;var Q=bM(y.K);q=g.DQ(y.videoInfos,function(p){return p.jj>y.IB.jj?!1:!Q.has(p.id)}); EaS(y.K)&&(q=g.DQ(q,function(p){return p.video.width<=854&&p.video.height<=480})); return q}; KdD=function(y,q,Q,p){var v=y.pK,d=y.WI.getVideoData(),T=y.Jf,O=c1j({wp:d.T(),WI:y.WI,jn:y.jn,IB:y.IB,zc:y.zc,Jy:y.Jy,dL:y.dL,SV:y.SV,uS:y.uS,Pe:y.Pe,Rh:y.Rh,sabrLicenseConstraint:d.sabrLicenseConstraint,cL:y.cL,II:y.II,To:y.To,A4:y.A4,RKs:!!T,authorizedFormats:d.authorizedFormats}),w=o9(d,y.fu,y.nextRequestPolicy,y.iz,y.ZO,y.Rm,y.JC);Q&&q&&(Q=w.WL?w.WL.map(function(f){return f.type}):[],q("sabr",{stmctxt:Q.join("_"), unsntctxt:w.O$?w.O$.join("_"):""}));q=y.y0;Q=y.rb;if(Q===void 0&&q===void 0){var J;Q=$jp(v.E9,(J=y.nI)==null?void 0:J.video);var F;q=$jp(v.E9,(F=y.nI)==null?void 0:F.audio)}if(d.L1)var Y=d.L1;d={Cq:O,pX:y.pX,y0:q,rb:Q,Jf:T,videoPlaybackUstreamerConfig:Y,kD:w};p&&y.F8?y.F8.length>0&&(d.F8=y.F8):y.HC&&(d.HC=y.HC);d.Yj=y.Yj;d.uX=v.Ty;return d}; $jp=function(y,q){return q?[g.vb(q.info,y)]:[]}; Ys=function(y,q,Q){var p=this;this.requestType=y;this.uj=q;this.Ys=Q;this.W=null;this.je={Pe:function(){var v;return(v=p.data)==null?void 0:v.Pe}, ZO:function(){var v;return(v=p.data)==null?void 0:v.ZO}}}; Q88=function(y,q,Q){q=i0(y.uj,xji(y,q,Q),q);y.Uc()&&q.set("probe","1");return q}; xji=function(y,q,Q){y.PJ===void 0&&(y.PJ=y.uj.PJ(q,Q));return y.PJ}; WdH=function(y){var q,Q;return((q=y.K)==null?void 0:(Q=q.Cq)==null?void 0:Q.Hg)||0}; Zn9=function(y){var q,Q;return!!((q=y.K)==null?0:(Q=q.Cq)==null?0:Q.cL)}; tj3=function(y){var q={},Q=[],p=[];if(!y.data)return q;for(var v=0;v0;w--)Q.push(O)}Q.length!==T?q.error=!0:(d=Q.slice(-d),Q.length=v,oo8(q,Q,d));break;case 1:oo8(q,xs,IOC);break;case 0:A6i(q, q.K&7);Q=E3(q,16);v=E3(q,16);(Q^v)!==65535&&(q.error=!0);q.output.set(q.data.subarray(q.W,q.W+Q),q.N);q.W+=Q;q.N+=Q;break;default:q.error=!0}y.N>y.output.length&&(y.output=new Uint8Array(y.N*2),y.N=0,y.W=0,y.Y=!1,y.K=0,y.register=0)}y.output.length!==y.N&&(y.output=y.output.subarray(0,y.N));return y.error?new Uint8Array(0):y.output}; oo8=function(y,q,Q){q=UjC(q);Q=UjC(Q);for(var p=y.data,v=y.output,d=y.N,T=y.register,O=y.K,w=y.W;;){if(O<15){if(w>p.length){y.error=!0;break}T|=(p[w+1]<<8)+p[w]<>=7;J<0;)J=q[(T&1)-J],T>>=1;else T>>=J&15;O-=J&15;J>>=4;if(J<256)v[d++]=J;else if(y.register=T,y.K=O,y.W=w,J>256){T=ZE[J];T+=E3(y,Wm[J]);w=r6C(y,Q);O=t2[w];O+=E3(y,nog[w]);if(B1D&&TQ.length&&(y.error=!0);y.register|=(Q[p+1]<<8)+Q[p]<=0)return A6i(y,Q&15),Q>>4;for(A6i(y,7);Q<0;)Q=q[E3(y,1)-Q];return Q>>4}; E3=function(y,q){for(;y.K=y.data.length)return y.error=!0,0;y.register|=y.data[y.W++]<>=q;y.K-=q;return Q}; A6i=function(y,q){y.K-=q;y.register>>=q}; UjC=function(y){for(var q=[],Q=g.t(y),p=Q.next();!p.done;p=Q.next())p=p.value,q[p]||(q[p]=0),q[p]++;var v=q[0]=0;Q=[];var d=0;p=0;for(var T=1;T7&&(d+=q[T]);for(v=1;v>w&1;O=d<<4|T;if(T<=7)for(w=1<<7-T;w--;)p[w<>=7;T--;){p[w]||(p[w]=-q,q+=2);var J=v&1;v>>=1;w=J-p[w]}p[w]=O}}return p}; Pe2=function(y){var q,Q,p,v,d,T,O,w,J;return g.M(function(F){switch(F.K){case 1:if(!Gdp)throw Error("DecompressionStream is not supported");q=DT.bN();Q=new DecompressionStream("gzip");p=Q.writable.getWriter();p.write(y);p.close();v=Q.readable.getReader();d=new Fx([]);case 2:return g.R(F,v.read(),5);case 5:T=F.W;O=T.value;if(w=T.done){F.ej(4);break}d.append(O);F.ej(2);break;case 4:return J=$S(d),DT.Ls("gznb",q,Math.ceil(J.byteLength/16)),F.return(J)}})}; inC=function(y){BU.call(this,"onesie");this.Q$=y;this.K={};this.Y=!0;this.N=null;this.queue=new u_S(this);this.J={}}; Xrj=function(y){var q=y.queue;q.K.length&&q.K[0].isEncrypted&&!q.W&&(q.K.length=0);q=g.t(Object.keys(y.K));for(var Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var p=y.K[Q];if(!p.CN){var v=y.queue;v.K.push({videoId:p.videoId,formatId:Q,isEncrypted:!1});v.W||Kl(v)}}}; mjS=function(y,q){var Q=q.totalLength,p=!1;switch(y.N){case 0:y.mO(q,y.Y).then(function(v){var d=y.Q$;d.d0("oprr");d.playerResponse=v;d.aT||(d.YD=!1);ks(d)},function(v){y.Q$.fail(v)}); break;case 2:y.d0("ormk");q=$S(q);y.queue.decrypt(q);break;default:p=!0}y.Q$.u7&&y.Q$.Rb("ombup","id.11;pt."+y.N+";len."+Q+(p?";ignored.1":""));y.N=null}; Ce3=function(y,q){var Q,p,v,d,T;return g.M(function(O){switch(O.K){case 1:y.Q$.d0("oprgz_s");if(!Gdp){O.ej(2);break}g.EC(O,3);return g.R(O,Pe2(q),5);case 5:return Q=O.W,y.Q$.d0("oprgz_n"),y.Q$.Rb("oprsgz",{i:"n"}),O.return(Q);case 3:p=g.Rj(O),y.Q$.Rb("gzerr",{impl:"native",err:""+p});case 2:if(v=y.Q$.T().RW)try{var w=DT.bN(),J=v.W1(q),F=v,Y=J!=null?J:q,f=Y.byteOffset,h=Y.byteLength,b=F.exports.getInflatedSize(f,h);if(b===0)throw Error("wasm_gz: bad input");var Z=F.malloc(b),k=F.exports.inflateGzip(f, h,Z);if(k)throw F.free(Z),Error("wasm_gz: fail"+k);var S=new Uint8Array(F.exports.memory.buffer,Z,b);J&&v.free(J.byteOffset);var N=v.Is(S);DT.Ls("gzwb",w,Math.ceil(N.byteLength/16));d=N;y.Q$.d0("oprgz_w");y.Q$.Rb("oprsgz",{i:"w"});return O.return(d)}catch(l){y.Q$.Rb("gzerr",{impl:"wasm",err:""+l})}w=DT.bN();J=g.e4C(new g.go9(q));DT.Ls("gzjb",w,Math.ceil(J.byteLength/16));T=J;y.Q$.d0("oprgz_p");y.Q$.Rb("oprsgz",{i:"j"});return O.return(T)}})}; ykg=function(y){return new Promise(function(q){setTimeout(q,y)})}; qBH=function(y,q){var Q=y.T();Q=y.eP&&Q.L("html5_onesie_preload_use_content_owner");var p=y.Th;Q=Q===void 0?!1:Q;var v=ag(q.KK.experiments,"debug_bandaid_hostname");if(v)q=h2(q,v);else if(Q&&(p==null?0:p.url)&&!q.W){var d=C3(new g.X0(p.url));q=h2(q,d)}else q=(d=q.K.get(0))==null?void 0:d.location.clone();if(q&&y.videoId){d=n8(y.videoId);y=[];if(d)for(d=g.t(d),Q=d.next();!Q.done;Q=d.next())y.push(Q.value.toString(16).padStart(2,"0"));q.set("id",y.join(""));return q}}; jfC=function(y,q,Q){Q=Q===void 0?0:Q;var p,v;return g.M(function(d){if(d.K==1)return p=[],p.push(q.load()),Q>0&&p.push(ykg(Q)),g.R(d,Promise.race(p),2);v=qBH(y,q);return d.return(v)})}; Qfs=function(y,q,Q,p){p=p===void 0?!1:p;y.set("cpn",q.clientPlaybackNonce);y.set("opr","1");var v=q.T();y.set("por","1");bd()||y.set("onem","1");q.startSeconds>0&&y.set("osts",""+q.startSeconds);p||(v.L("html5_onesie_disable_partial_segments")&&y.set("oses","1"),q=v.L("html5_gapless_onesie_no_media_bytes")&&z1(q)&&q.eP,Q&&!q?(q=Q.audio,y.set("pvi",Q.video.join(",")),v.L("html5_onesie_disable_audio_bytes")||y.set("pai",q.join(",")),Ed||y.set("osh","1")):(y.set("oad","0"),y.set("ovd","0"),y.set("oaad", "0"),y.set("oavd","0")))}; p32=function(y,q,Q,p,v){v=v===void 0?!1:v;var d="https://youtubei.googleapis.com/youtubei/"+q.Tg.innertubeApiVersion+"/player",T=[{name:"Content-Type",value:"application/json"}];p&&T.push({name:"Authorization",value:"Bearer "+p});T.push({name:"User-Agent",value:g.cK()});g.XY("EOM_VISITOR_DATA")?T.push({name:"X-Goog-EOM-Visitor-Id",value:g.XY("EOM_VISITOR_DATA")}):(Q=Q.visitorData||g.XY("VISITOR_DATA"))&&T.push({name:"X-Goog-Visitor-Id",value:Q});(Q=g.XY("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&T.push({name:"X-YouTube-Lava-Device-Context", value:Q});(q=ag(q.experiments,"debug_sherlog_username"))&&T.push({name:"X-Youtube-Sherlog-Username",value:q});y=aC(JSON.stringify(y));return{url:d,Uz:T,postBody:y,zZm:v,Y3:v}}; v3H=function(y,q,Q,p,v,d,T){var O=y.qD,w=y.Ni;y=y.LTy;var J=O!==void 0&&w!==void 0,F=p.getVideoData(),Y,f=q.K.encryptedClientKey;q=J?q.iv:void 0;J=yK(Q.schedule,!0);v=v||!!bd()&&J>1572864;return{innertubeRequest:{iUK:y,dE:O,Ni:w,encryptedClientKey:f,iv:q,UmB:!0,TA:!0,kX:"DecompressionStream"in window||!v,HUK:Q.experiments.ob("html5_use_jsonformatter_to_parse_player_response")},Cq:c1j({wp:Q,WI:p,jn:F.startSeconds*1E3}),onesieUstreamerConfig:d,fm:T,kD:o9(F),reloadPlaybackParams:(Y=F.c9)==null?void 0: Y.reloadPlaybackParams}}; dgC=function(y,q,Q,p,v,d){var T=g.jR(y,nN),O;if(!y.Y3)if(O=aOs(q,T)){var w=O.WH;O=O.signature}else O=w=q.encrypt(T),(0,g.SK)(),O=fXD(new Y4j(q.K.N),O,q.iv);return v3H(w&&O?{qD:w,Ni:O}:{LTy:T},q,Q,p,!!y.Y3,v,d)}; TxS=function(y,q,Q,p,v,d){var T,O,w;return g.M(function(J){if(J.K==1)return T=g.jR(y,nN),g.R(J,Ld8(q,T),2);if(J.K!=3)return O=J.W,g.R(J,N1f(q,O),3);w=J.W;return J.return(v3H({qD:O,Ni:w},q,Q,p,!!y.Y3,v,d))})}; VCD=function(y,q,Q,p,v,d){var T=g.jR(y,nN);if(T=aOs(q,T))return v3H({qD:T.WH,Ni:T.signature},q,Q,p,!!y.Y3,v,d)}; aL=function(y,q){g.I.call(this);var Q=this;this.WI=y;this.playerRequest=q;this.logger=new g.L5("onesie");this.xhr=null;this.state=1;this.r8=new M6;this.PX=!1;this.playerResponse="";this.zC=new a9(this);this.vA=new inC(this);this.UL="";this.iq=this.JA=!1;this.UU="";this.enableCompression=this.aT=this.w7=!1;this.zS=[];this.Zx=-1;this.OB=0;this.KK=this.WI.T();this.videoData=this.WI.getVideoData();this.u7=this.KK.U9();this.Ps=this.KK.Aw;this.rW=new Eo9(this.Ps.K);this.RS=this.KK.L("html5_onesie_check_timeout"); this.Ru=new g.y0(this.fI,500,this);this.vz=new g.y0(this.SF,1E4,this);this.H5=new g.y0(function(){if(!Q.isComplete()){var p=Ll(Q);Q.fail(new g.t7("net.timeout",p))}},1E3); this.wZ=new g.y0(this.Tpy,2E3,this);this.qO=this.WI.AL();this.YD=this.L("html5_onesie_wait_for_media_availability");g.n(this.videoData,this);g.n(this,this.Ru);g.n(this,this.vz);g.n(this,this.wZ);y=Sz();Ed&&y&&(this.eK=new Map);this.KN=new Map;this.vW=new Map;this.Cx=new Map;this.wu=new Map}; $s=function(y,q){var Q;return(Q=y.eK)==null?void 0:Q.get(q)}; w39=function(y,q,Q){var p;return g.M(function(v){if(v.K==1)return y.d0("oprd_s"),OLS(y)?g.R(v,Svp(y.rW,q,Q),3):(p=y.rW.decrypt(q,Q),v.ej(2));v.K!=2&&(p=v.W);y.d0("oprd_c");return v.return(p)})}; Jkj=function(y){return y.L("html5_onesie_host_probing")||y.u7?Ed:!1}; ks=function(y){if(!y.playerResponse)return!1;if(y.w7)return!0;var q=y.videoData.L("html5_onesie_audio_only_playback")&&DD(y.videoData);if(y.eK&&y.YD){if(!y.eK.has(y.UL))return!1;var Q=y.eK.get(y.UL),p;if(p=Q){p=!1;for(var v=g.t(Q.HT.keys()),d=v.next();!d.done;d=v.next())if(d=Q.HT.get(d.value))for(var T=g.t(d.D8),O=T.next();!O.done;O=T.next())O.value.ME>0&&(d.Eu?p=!0:q=!0);p=!(q&&p)}if(p)return!1}y.d0("ofr");y.r8.resolve(y.playerResponse);if(!y.RS){var w;(w=y.H5)==null||w.start();y.vz.start()}return y.w7= !0}; YB9=function(y){if(y.eK&&!y.L("html5_onesie_media_capabilities")){y.d0("ogsf_s");var q=zV9(y.WI.getVideoData(),function(p,v){y.Rb(p,v)}),Q=Fcf(y.WI); q.video=Lqj(Q,q.video);y.d0("ogsf_c");if(q.video.length)return q;y.Rb("ombspf","l."+Q.W+";u."+Q.K+";o."+Q.N+";r."+Q.reason)}}; OLS=function(y,q){return y.L("html5_onesie_sync_request_encryption")||(q==null?0:q.Y3)||g.Rs(y.KK)&&y.L("html5_embed_onesie_use_sync_encryption")?!1:!!bd()}; Ll=function(y){if(!y.RB)return{};var q=y.RB.d8(),Q;q.d=(Q=y.RB.gp)==null?void 0:Q.W3();q.shost=y.tN;q.ty="o";return q}; fDC=function(y,q){var Q,p;(p=(y=(Q=y.eK)==null?void 0:Q.get(q))==null)||(q=y.N?!1:y.N=!0,p=!q);return!p}; hWf=function(y,q,Q,p,v,d,T,O,w,J,F,Y){g.I.call(this);var f=this;this.WI=y;this.loader=q;this.policy=Q;this.audioTrack=p;this.videoTrack=v;this.pK=d;this.g0=T;this.BI=O;this.N=w;this.timing=J;this.N$=F;this.C=Y;this.K=[];this.Y={};this.Vm=this.Ty=!1;this.cI=this.HI=this.uS=0;this.gp={E4:0,hS:0};this.X=null;this.m3={Yj:[],pX:[]};this.Sj={Yj:[],pX:[]};this.G=null;this.J=[];this.je={p7f:function(){return f.K}, I5f:function(){return f.Y}, CSm:function(){f.K.length=0}, aII:function(){return f.videoData.Dw}, MgK:function(){return f.cI}, jkV:function(h){f.cI=h}, cSf:function(h){f.gp.hS=h}, vZ:function(h){f.G=h}, V1:function(h){f.J=h}}; this.videoData=this.WI.getVideoData();this.policy.eP&&(this.vI=new dq(this.loader,this.policy,this.g0),g.n(this,this.vI))}; Kc9=function(y,q){q=q===void 0?!1:q;if(bLb(y)){q=q===void 0?!1:q;y.policy.X&&y.loader.Rb("sabrcrq",{create:1});q=$gj(y,new Ys(0,y.pK.j,y),q);y.K.push(q);var Q;(Q=y.vI)==null||Gt9(Q,y.pK.j);y.policy.zI>0&&y.gp.hS++}}; ZLg=function(y,q){var Q=xgp(y);if(y.policy.QY){var p=y.m3;var v=y.Sj}else p=NK(y,y.audioTrack),v=NK(y,y.videoTrack);var d=[].concat(g.hH(p.Yj),g.hH(v.Yj));SI(y)&&d.push.apply(d,g.hH(y.J));var T=[].concat(g.hH(p.pX),g.hH(v.pX)),O=y.loader.Dt();if(y.policy.CH&&!y.videoData.isLivePlayback){var w=y.videoData.lengthSeconds*1E3;Q>=w&&y.loader.Rb("invalidSabrCmt",{cmt:Q,vd:w})}var J,F;w=y.WI;var Y=y.pK,f=y.W,h=y.videoData.Dw,b=y.policy,Z=y.loader.qt,k=jsp(y.loader)*1E3,S=(J=y.Es)==null?void 0:J.dL;J=(F= y.Es)==null?void 0:F.SV;var N;F=Number((N=y.N.Y)==null?void 0:N.info.itag)||0;var l;N=Number((l=y.N.J)==null?void 0:l.info.itag)||0;Q={WI:w,pK:Y,Yj:d,pX:T,jn:Q,nextRequestPolicy:f,iz:h,IB:b,zc:Z,Jy:k,dL:S,SV:J,uS:y.uS,rKp:F,gfI:N,fu:O,JC:y.WI.L_()};d=y.loader.sP();T=n8(d);d&&(Q.ZO=T);if(d=y.WI.UI())Q.cL=d*1E3;var u;d=y.N;T=d.cI;if(((u=d.IB)==null?0:rn(u))&&!T)for(u=g.t(d.N),O=u.next();!O.done;O=u.next())if(O.value.ZG){T=!0;break}u=rn(d.IB)&&!T?[]:wrb(d,d.N);Q.y0=u;u=y.N;rn(u.IB)&&!u.N$?u=[]:(d=bnD(u), d.length===0&&(d=u.G),u=wrb(u,d));Q.rb=u;Q.Jf=SI(y)?[y.G]:void 0;y.policy.On&&(Q.To=Wcg(y.loader,y.audioTrack),Q.A4=Wcg(y.loader,y.videoTrack));if(y.policy.W){u=y.loader.getCurrentTime();p=Hm(y,p.Yj,u);v=Hm(y,v.Yj,u);v=Math.min(p,v);SI(y)&&(p=Hm(y,y.J,u),y.WI.U9()&&p0&&y.K[0].PY()&&(Q.Rm=y.K[0].n_());q?Q.Pe=1:y.loader.isSuspended&&(Q.Pe=4);return Q}; xgp=function(y){var q,Q=y.policy.J&&((q=y.loader)==null?void 0:q.rq());q=y.loader.getCurrentTime()||0;q=tC9(y,q);if(y.policy.zB&&y.loader.isSeeking()){var p=Rdf(y.videoTrack,q);y.loader.Rb("asmtfnctv",{b:q,a:p});isNaN(p)||(q=p)}p=y.loader.bj()||0;q+=p;p=v4(y.videoData)||g.p$(y.videoData);var v=0;Q?(p&&(v=Number.MAX_SAFE_INTEGER),y.videoData.m3&&(v=Math.ceil(y.videoData.gp*1E3))):v=Math.ceil(q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,v)}; SI=function(y){return y.policy.Wn&&!!y.G}; tC9=function(y,q){if(y.loader.isSeeking())return q;var Q=y.WI.OW();if(!Q)return q;Q=Q.Cn();if(Q.length===0||fj(Q,q))return q;if(!ITS(y.videoTrack,q)&&!ITS(y.audioTrack,q))return y.loader.Rb("sundrn",{b:0,lt:q}),q;for(var p=q,v=Infinity,d=0;dq)){var T=q-Q.end(d);T=20)?(y.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),q):p}; Hm=function(y,q,Q){y=y.loader.bj()||0;return Gx(q,(Q+y)*1E3)/1E3+Q}; bLb=function(y){a:{var q=y.gp;if(y.policy.zI>0){var Q=Math.floor((0,g.SK)()/1E4);if(Q===q.E4){if(q.hS>=y.policy.zI){q.hS===y.policy.zI&&(Q={reason:"toomanyrequests"},Q.limit=q.hS,y.loader.handleError("player.exception",Q),q.hS+=1);q=!1;break a}}else q.E4=Q,q.hS=0}q=!0}if(!q||y.loader.isSuspended&&y.loader.cP)return!1;if(y.j&&(0,g.SK)()0)||y.policy.cI&&y.K.length===1&&y.K[0].PY()))){var p;q=!((p=y.pK.j)!=null&&mq(p,y.policy,y.Y,y.loader.sF()))}if(q|| qK(y.audioTrack)&&qK(y.videoTrack))return!1;if(y.policy.W)if(y.policy.G){var v;if((v=y.C)==null?0:Z5j(v))return!1}else if(p=!1,y.N$.W===2?p=!0:y.N$.W===3&&(xgp(y),y.loader.bj(),Q=NK8(y.audioTrack,y.loader.isSeeking()).Yj,v=NK8(y.videoTrack,y.loader.isSeeking()).Yj,q=y.loader.getCurrentTime()||0,Q=Hm(y,Q,q),v=Hm(y,v,q),v=Math.min(Q,v),q=y.N$,v>=q.J?(q.Rb("sdai",{haltrq:v,est:q.J}),v=!0):v=!1,v&&(p=!0)),p&&y.policy.X&&y.loader.Rb("sabrcrq",{waitad:1}),p)return!1;y.policy.QY&&(y.m3=NK(y,y.audioTrack), y.Sj=NK(y,y.videoTrack));if(!y.W)return y.policy.X&&y.loader.Rb("sabrcrq",{nopolicy:1}),!0;if(y.WI.UI())return y.policy.X&&y.loader.Rb("sabrcrq",{utc:1}),!0;if(y.N.X)return y.policy.X&&y.loader.Rb("sabrcrq",{audio:1}),!0;if(!y.W.targetAudioReadaheadMs||!y.W.targetVideoReadaheadMs)return y.policy.X&&y.loader.Rb("sabrcrq",{noreadahead:1}),!0;if(y.policy.J&&y.loader.rq())return y.policy.X&&y.loader.Rb("sabrcrq",{seekToHead:1}),!0;p=Math.min(fP(y.loader,y.audioTrack)*1E3,y.W.targetAudioReadaheadMs);v= Math.min(fP(y.loader,y.videoTrack)*1E3,y.W.targetVideoReadaheadMs);Q=Math.min(p,v);var d=y.WI.getCurrentTime()*1E3,T=E3S(y);q=T.Xb;T=T.Ob;if(y.policy.QY){var O=Gx(y.m3.Yj,d);var w=Gx(y.Sj.Yj,d)}else O=q,w=T;var J=Oq||p>=0&&v.Yx>p+1)break;Q=Math.max(Q,v.startTimeMs+v.durationMs);p=Math.max(p,v.ao)}return Math.max(0,Q-q)}; $gj=function(y,q,Q){var p={g0:y.g0,xU:function(w,J){y.WI.CM(w,J)}, Rt:y.policy.Nq,YA:y.policy.N};y.g0.W.G&&(p.LX=(y.videoTrack.K.info.jj||0)+(y.audioTrack.K.info.jj||0));y.policy.ID&&(p.pn=y.audioTrack.K.index.dG(),p.Rt=!1);var v=xji(q,y.policy,y.Y)?2:1;v!==y.cI&&(y.cI=v,LcS(y));Q=ZLg(y,Q);if(y.policy.cI&&y.policy.N&&Q.iz){for(var d=v="",T=g.t(Q.iz),O=T.next();!O.done;O=T.next())O=O.value,y.videoData.sabrContextUpdates.has(O)||y.policy.cI&&Q.Rm&&Q.Rm.type===O?v+="_"+O:d+="_"+O;y.loader.Rb("sabrbldrqs",{ctxts:v,misctxts:d})}!q.setData(Q,y.policy,y.Y)&&y.policy.cI&& y.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);p=new jy(y.policy,q,y.pK,y.Y,y,p,y.loader.AL());QJ(y.timing);y.policy.X&&y.loader.Rb("sabrcrq",{rn:p.yU(),probe:q.Uc()});return p}; is=function(y,q){if(q.iB()||y.iB())y.policy.c9||(y.policy.J?Pm(y.loader):y.loader.Jj());else{if(y.policy.N&&q.isComplete()&&q instanceof jy){var Q=y.loader,p=Q.Rb,v,d,T=Object.assign(q.RB.d8(),{rst:q.state,strm:q.xhr.oU(),d:(v=q.RB.gp)==null?void 0:v.W3(),cncl:q.xhr&&q.vT.J?1:0,rqb:q.nx,cwt:q.vT.N,swt:(d=q.bx)==null?void 0:d.nC});v=Object.assign(tj3(q.info),T);p.call(Q,"rqs",v)}if(q.isComplete()&&q.Uc()&&q instanceof jy)y.policy.BT?q.L4()?(q.dispose(),y.K.length===0?y.loader.Jj():(y=y.K[0],y instanceof jy&&y.FB()&&y.OL())):q.rR()&&y.loader.handleError(q.H3(),q.iE()):(q.dispose(),y.loader.Jj());else{if(q.UJ())q instanceof jy&&O5S(y.timing,q),LcS(y),aD3(y);else if(q.rR())Q=y.WI.UI(),q instanceof jy&&Zn9(q.info)&&Q&&y.loader.fA(Q),q instanceof aL?y.K.pop():(Q=1,q.canRetry()&&djg(y.loader)&&(Nx8(y,q),Q=0),y.loader.handleError(q.H3(),q.iE(),Q));else{if(y.loader.isSuspended&&!q.isComplete())return;aD3(y)}q.iB()||q instanceof aL||(q.isComplete()?Q=Xg9(q,y.policy,y.Y):(Q=i83(q,y.policy,y.Y),Q===1&&(y.Ty= !0)),Q!==0&&(p=new Ys(1,q.info.uj),p.PJ=Q===2,$gj(y,p)));y.policy.EW&&!q.isComplete()?T1p(y.loader):y.loader.Jj()}}}; aD3=function(y){for(;y.K.length&&y.K[0].fN(y.A1());){var q=y.K.shift();SBD(y,q)}y.K.length&&SBD(y,y.K[0])}; SBD=function(y,q){q instanceof jy&&(y.LK=q);var Q=new Set(q.wP(y.A1()));Q=g.t(Q);for(var p=Q.next();!p.done;p=Q.next()){var v=p.value;if(!(p=!(q instanceof aL))){p=y.N;var d=p.pK.E9,T=FV(p.videoInfos,d);d=h4i(p,v,d);var O=T.includes(v);!p.IB.rl||d||O||p.loader.Rb("sabrcpf",{fid:""+v,vfids:""+T.join("."),said:p.C||""});p=d||T.includes(v)}if(p&&(p=q.pH(v,y.A1()),T=y.policy.Wn&&OA(p[0].K.info.mimeType),q.Er(v,y.A1())))for(v=q.Bx(v,y.A1()),v=g.t(v),d=v.next();!d.done;d=v.next())if(d=d.value,y.policy.N&& q instanceof aL&&y.loader.Rb("omblss",{s:d.info.r0()}),T)O=y.timing,O.cI||(O.cI=(0,g.SK)(),g.VD("fcb_r",O.cI,O.K)),O=y,O.videoData.E9()&&O.G&&Cm(O.G)===Cm(g.vb(d.info.K.info,O.pK.E9))&&O.WI.publish("sabrCaptionsDataLoaded",d,O.V1.bind(O));else{O=d.info.K.info.Eu();var w=d.info.K;if(O){var J=void 0;var F=y.N,Y=(J=q.l3(y.A1()))==null?void 0:J.token;F.X&&w!==F.J?J=!0:(F.X=!1,w!==F.J&&(F.J=w,F.Lf(w,F.audioTrack,Y)),J=!1);if(J)continue}else J=void 0,OnS(y.N,w,(J=q.l3(y.A1()))==null?void 0:J.token);J=O? y.audioTrack:y.videoTrack;q instanceof aL&&(J.X=!1,q instanceof aL&&(O?VED(y.timing):TB8(y.timing)));try{EEp(J,p,d)}catch(f){d=kp(f),y.loader.handleError(d.errorCode,d.details,d.severity),J.n1(),y.c7(!1,"pushSlice"),Pm(y.loader)}}}}; Nx8=function(y,q){y.policy.cI?y.K.splice(y.K.indexOf(q)).forEach(function(Q){Q.dispose()}):(y.K.pop(),q==null||q.dispose())}; HLC=function(y,q,Q){for(var p=[],v=0;v0)for(var q=g.t(y.videoData.sabrContextUpdates.keys()),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var p=void 0;((p=y.videoData.sabrContextUpdates.get(Q))==null?0:p.sendByDefault)&&y.videoData.Dw.add(Q)}if(y.policy.cI&&y.K.length)for(q=g.t(y.K),Q=q.next();!Q.done;Q=q.next())(Q=Q.value.n_())&&Q.type&&Q.sendByDefault&&y.videoData.Dw.add(Q.type)}; RWg=function(y){y.policy.I7&&(y.Es=void 0,y.uS=0)}; sfD=function(y,q){if(q.rR()||q.iB()){var Q=y.loader,p=Q.Rb,v=q.state;y=y.A1();var d,T;if((q=(d=q.eK)==null?void 0:d.get(y))==null)q=void 0;else{d=0;y=q.wP();for(var O=0;O=q.mediaTime?(q.resolve([q.mediaTime,q.id]),y.K.delete(q.id)):(q.delay.dispose(),Q=(q.mediaTime-Q)*1E3/y.WI.getPlaybackRate(),q.delay=new g.y0(function(){Dgj(y,q)},Q/2),q.delay.start()))}; XV=function(y,q,Q,p){var v=this;this.Y=y;this.cpn=q;this.WI=Q;this.K=p;this.W=new Map;this.J=new Map;this.X=this.C=NaN;this.G=!1;this.B3="";this.isSeeking=!1;this.j=0;this.N=new lD8(Q);this.m0=Q.m0;this.WI.subscribe("statechange",this.cI,this);this.WI.subscribe("SEEK_TO",function(){v.ez()}); this.WI.subscribe("SEEK_COMPLETE",function(){g33(v)})}; UgD=function(y,q){if(!y.isSeeking&&y.j!==q&&!isNaN(y.C)){y.j=q;var Q=y.G?y.X:y.Y.zW(q);(Q!==y.X||y.G)&&cki(y,Q,q)}}; cki=function(y,q,Q){var p=y.W.get(q),v=y.Y.getStartTime(q),d=y.Y.getDuration(q);y.G=!1;y.X=q;var T=v,O;((O=p==null?void 0:p.K)!=null?O:[y.cpn]).forEach(function(w,J){var F,Y=(F=p==null?void 0:p.W[J])!=null?F:d;if(Q>=T&&Qv?eWC(y,d,y.W.get(d)):d===v&&eWC(y,d,y.W.get(d),p-y.Y.getStartTime(d))})}; rki=function(y,q,Q,p){q!==y.B3&&(y.WI.Rb("ssevt",{tag:y.K===0?"sstd-cr":y.K===1?"sstd-tm":y.K===2?"sstd-poll":y.K===3?"sstd-poll100":"sstd-unknown",ad:y.cpn!==q,cpn:q,st:Q.toFixed(3),late:Math.round(y.isSeeking?0:(p-Q)*1E3)}),y.B3=q,y.WI.publish("playbackstarted",q,Q+y.WI.bj()))}; Bx3=function(y){var q=g.t(y.split("."));y=q.next().value;q=q.next().value;return[Number(y),q]}; Ak2=function(y,q,Q,p){Q=q+"."+Q;y.J.has(q)?y.J.get(q).push(Q):y.J.set(q,[Q]);y.K===1&&ID9(y.N,p,Q).then(function(v){var d=g.t(v);v=d.next().value;d=d.next().value;d=g.t(Bx3(d));d.next();d=d.next().value;rki(y,d,v,zWs(y.N))}); y.K===0&&(y.m0.Eh("transitiondetector",Q),q=(p+y.WI.bj())*1E3,y.m0.Tf([new g.yb(q,q+5E3,{id:Q,namespace:"transitiondetector",priority:9})]))}; G1b=function(y,q,Q,p,v){this.loader=y;this.policy=q;this.schedule=Q;this.aK=p;this.j=v;this.cI=NaN;this.W=this.X=this.Y=null;this.K=this.J=this.G=this.startTimeSecs=NaN;this.N=!1;this.C=NaN}; Pcg=function(y,q,Q,p,v,d){return q.T5&&q.Se&&Q===3?new G1b(y,q,p,v,d):null}; iL8=function(y,q){if(y.policy.ZB){var Q=q.info.jj,p=yK(y.schedule);q=q.index.dG();Q=Math.max(1,p/Q);y.C=Math.round(Math.max(((Q-1)*q+y.policy.Kg)/Q,q-y.policy.KX)*1E3)}}; Cc9=function(y,q){var Q=Date.now()/1E3,p=Q-y.startTimeSecs,v=Q-y.G,d=v>=y.policy.x3,T=!1;if(d){var O=0;!isNaN(q)&&q>y.J&&(O=q-y.J,y.J=q);O/v=y.policy.KX&&!y.N;if(!d&&!Q&&X3b(y,q))return NaN;Q&&(y.N=!0);a:{p=T;Q=(0,g.SK)()/1E3-(y.aK.Io()||0)-y.X.K-y.policy.Kg;d=y.W.startTime;Q=d+Q;if(p){if(isNaN(q)){mK(y,NaN,"n",q);d=NaN;break a}p=q-y.policy.fF;p0&&(O.headers=w);d&&(O.onFinish=d);return Object.keys(O).length>1?O:null}; O$9=function(y,q,Q,p,v,d,T,O){JM()&&Q.token&&(y=V9(y,{ctt:Q.token,cttype:Q.yb,mdx_environment:Q.mdxEnvironment}));p.L("net_pings_low_priority")&&(q||(q={}),q.priority="low");d||O&&p.L("nwl_skip_retry")?(q==null?q={}:d49(y,p.L("html5_assert_cpn_with_regex")),T?PV().sendAndWrite(y,q):PV().sendThenWrite(y,q,O)):q?(d49(y,p.L("html5_assert_cpn_with_regex")),wwb(y,q)):g.n0(y,v)}; w4g=function(y){for(var q=[],Q=0;Q0&&Q>0&&!y.W&&y.N<1E7)try{y.Y=y.J({sampleInterval:q,maxBufferSize:Q});var p;(p=y.Y)==null||p.addEventListener("samplebufferfull",function(){return g.M(function(v){if(v.K==1)return g.R(v,y.stop(),2);Y79(y);g.tH(v)})})}catch(v){y.W=F_3(v.message)}}; ftp=function(y,q){var Q,p;return!!((Q=window.h5vcc)==null?0:(p=Q.settings)==null?0:p.set(y,q))}; b$j=function(){var y,q,Q,p=(y=window.h5vcc)==null?void 0:(q=y.settings)==null?void 0:(Q=q.getPersistentSettingAsString)==null?void 0:Q.call(q,"cpu_usage_tracker_intervals");if(p!=null){var v;y=(v=JSON.parse(p))!=null?v:[];v=y.filter(function(J){return J.type==="total"}).map(function(J){return J.seconds}); q=g.t(htH);for(Q=q.next();!Q.done;Q=q.next())Q=Q.value,v.indexOf(Q)===-1&&y.push({type:"total",seconds:Q});var d,T;(d=window.h5vcc)==null||(T=d.settings)==null||T.set("cpu_usage_tracker_intervals_enabled",1);var O,w;(O=window.h5vcc)==null||(w=O.settings)==null||w.set("cpu_usage_tracker_intervals",JSON.stringify(y))}}; $49=function(){var y=window.H5vccPlatformService,q="";if(y&&y.has("dev.cobalt.coat.clientloginfo")&&(y=y.open("dev.cobalt.coat.clientloginfo",function(){}))){var Q=y.send(new ArrayBuffer(0)); Q&&(q=String.fromCharCode.apply(String,g.hH(new Uint8Array(Q))));y.close()}return q}; g.jF=function(y){g.I.call(this);var q=this;this.provider=y;this.logger=new g.L5("qoe");this.K=new Map;this.sequenceNumber=1;this.N$=NaN;this.l6="N";this.C=this.Nb=this.Re=this.cI=this.W=0;this.T8=this.vI=this.G=this.Vm="";this.Mz=this.LK=NaN;this.Aw=0;this.EW=-1;this.F0=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.cB=this.isEmbargoed=this.gp=this.isOffline=this.isBuffering=!1;this.I7=[];this.j=null;this.q$=this.Y=this.Os=this.X=!1;this.N=-1;this.Ty=!1;this.BT=new g.y0(this.QW,750,this);this.jV= this.adCpn=this.Sj=this.contentCpn="";this.adFormat=void 0;this.zf=0;this.Dw=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.ra=new Set(["gd","pw","gp","gm","da"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.RH=!1;this.XL=NaN;this.Es=0;this.Se=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.hw=!1;this.Kg=new Set;this.je={dW:function(d){q.dW(d)}, w7p:function(){return q.J}, a5:function(){return q.contentCpn}, dLK:function(){return q.Sj}, reportStats:function(){q.reportStats()}, TgK:function(){return q.K.get("cat")||[]}, AF:function(d){return q.K.get(d)||[]}, HqV:function(){return q.K}, DEB:function(){return 0}, Xem:function(){return{adCpn:q.adCpn,jV:q.jV,adFormat:q.adFormat}}}; this.m3=this.provider.KK.L("html5_qoe_relaxed_reporting");var Q=g.wm(this.provider.KK.experiments,"html5_qoe_proto_mock_length");Q&&!yW.length&&(yW=w4g(Q));g.n(this,this.BT);try{var p,v;(v=(p=navigator).getBattery)==null||v.call(p).then(function(d){q.j=d})}catch(d){}g.qr(this,0,"vps",["N"]); y.KK.U9()&&(this.Es=(0,g.SK)(),this.XL=g.WF(function(){var d=(0,g.SK)(),T=d-q.Es;T>500&&q.Rb("vmlock",{diff:T.toFixed()});q.Es=d},250)); this.provider.videoData.MB&&(this.remoteControlMode=K_D[this.provider.videoData.MB]||0);this.provider.videoData.k9&&(Q=WPj(this.provider.videoData.k9),Q==null?0:Q.length)&&(this.remoteConnectedDevices=Q);y.KK.U9()&&(this.BI=new jF2,g.n(this,this.BI));Q=g.wm(y.KK.experiments,"html5_js_self_profiler_sample_interval_ms");y=g.wm(y.KK.experiments,"html5_js_self_profiler_max_samples");Q>0&&y>0&&(this.HI=new Cl(Q,y),g.n(this,this.HI))}; QW=function(y,q,Q){var p=y.K.get(q);p?p.push(Q):y.K.set(q,[Q])}; g.qr=function(y,q,Q,p){QW(y,Q,q.toFixed(3)+":"+p.join(":"))}; x4i=function(y,q){var Q=y.adCpn||y.provider.videoData.clientPlaybackNonce,p=y.provider.getCurrentTime(Q);g.qr(y,q,"cmt",[p.toFixed(3)]);Q=p=y.provider.Uu(Q);if((!y.J||y.provider.KK.L("html5_shorts_gapless_no_gllat")&&z1(y.provider.videoData)?0:Q*1E3>y.J.Ql+100)&&y.J){var v=y.J;Q=v.isAd;p=p*1E3-v.Ql;y.Qq=q*1E3-v.uC3-p-v.C9B;v=(0,g.SK)()-p;q=y.Qq;p=y.provider.videoData;var d=p.isAd();if(Q||d){d=(Q?"ad":"video")+"_to_"+(d?"ad":"video");var T={};p.G&&(T.cttAuthInfo={token:p.G,videoId:p.videoId});T.startTime= v-q;ug(d,T);g.D_({targetVideoId:p.videoId,targetCpn:p.clientPlaybackNonce},d);zn("pbs",v,d)}else v=y.provider.WI.FD(),v.G!==p.clientPlaybackNonce?(v.J=p.clientPlaybackNonce,v.W=q):p.jP()||g.zI(new g.GH("CSI timing logged before gllat",{cpn:p.clientPlaybackNonce}));y.Rb("gllat",{l:y.Qq.toFixed(),prev_ad:+Q});delete y.J}}; vX=function(y,q){q=q===void 0?NaN:q;q=q>=0?q:g.pO(y.provider);var Q=y.provider.WI.Dg(),p=Q.Ug-(y.LK||0);p>0&&g.qr(y,q,"bwm",[p,(Q.nW-(y.Mz||0)).toFixed(3)]);isNaN(y.LK)&&Q.Ug&&y.isOffline&&y.dW(!1);y.LK=Q.Ug;y.Mz=Q.nW;isNaN(Q.bandwidthEstimate)||g.qr(y,q,"bwe",[Q.bandwidthEstimate.toFixed(0)]);y.provider.KK.U9()&&Object.keys(Q.K).length!==0&&y.Rb("bwinfo",Q.K);if(y.provider.KK.U9()||y.provider.KK.L("html5_log_meminfo"))p=ys8(),Object.values(p).some(function(d){return d!==void 0})&&y.Rb("meminfo", p); if(y.provider.KK.U9()){var v;(p=(v=y.BI)==null?void 0:QFC(v))&&Object.values(p).some(function(d){return d!=null})&&y.Rb("cpuinfo",p)}y.HI&&y.Rb("jsprof",y.HI.flush()); y.j&&g.qr(y,q,"bat",[y.j.level,y.j.charging?"1":"0"]);v=y.provider.WI.getVisibilityState();y.EW!==v&&(g.qr(y,q,"vis",[v]),y.EW=v);x4i(y,q);(v=W_j(y.provider))&&v!==y.Aw&&(g.qr(y,q,"conn",[v]),y.Aw=v);Z$H(y,q,Q)}; tYH=function(y){var q=y.provider.WI.Dg(),Q=g.pO(y.provider);Z$H(y,Q,q);var p=q.N;q=q.Y;isNaN(p)||(y.provider.KK.L("html5_unified_live_latency_reporting")&&!isNaN(q)&&q?g.qr(y,Q,"e2el",[p.toFixed(3),q.toFixed(3)]):g.qr(y,Q,"e2el",[p.toFixed(3)]))}; Z$H=function(y,q,Q){if(!isNaN(Q.lJ)){var p=Q.lJ;Q.W96E3&&(new g.y0(y.reportStats,0,y)).start()}}; L_9=function(y){y.provider.videoData.eP&&dA(y,"prefetch");y.provider.videoData.hw&&y.Rb("reload",{r:y.provider.videoData.reloadReason,ct:y.provider.videoData.hw});y.provider.videoData.Os&&dA(y,"monitor");y.provider.videoData.isLivePlayback&&dA(y,"live");Ed&&dA(y,"streaming");y.provider.videoData.MB&&y.Rb("ctrl",{mode:y.provider.videoData.MB},!0);if(y.provider.videoData.k9){var q=y.provider.videoData.k9.replace(/,/g,"_");y.Rb("ytp",{type:q},!0)}y.provider.videoData.u8&&(q=y.provider.videoData.u8.replace(/,/g, "."),y.Rb("ytrexp",{ids:q},!0));q=y.provider.videoData;var Q=y.provider.KK.L("enable_white_noise")||y.provider.KK.L("enable_webgl_noop"),p=g.G1(q)||g.d6(q)||g.Tl(q)||g.Vo(q);(Q||p)&&(Q=(0,g.TP)())&&y.K.set("gpu",[Q]);W4(y.provider.videoData)&&g.qr(y,g.pO(y.provider),"dt",["1"]);q.cotn&&!W4(q)&&y.dW(!0);y.provider.KK.U9()&&(q=(0,g.SK)()-y.provider.KK.Bn,y.Rb("playerage",{secs:Math.pow(1.6,Math.round(Math.log(q/1E3)/Math.log(1.6))).toFixed()}));y.Y=!0;y.N$=g.WF(function(){y.reportStats()},1E4)}; N6C=function(y,q,Q){var p=g.pO(y.provider);atS(y,p,q,0,Q);vX(y,p);klf(y)}; atS=function(y,q,Q,p,v){var d=y.provider.KK.K.cbrver;y.provider.KK.K.cbr==="Chrome"&&/^96[.]/.test(d)&&Q==="net.badstatus"&&/rc\.500/.test(v)&&S7i(y,3);y.provider.KK.L("html5_use_ump")&&/b248180278/.test(v)&&S7i(y,4);d=y.provider.getCurrentTime(y.adCpn||y.provider.videoData.clientPlaybackNonce);p=p===1?"fatal":"";Q=[Q,p,d.toFixed(3)];p&&(v+=";a6s."+pr());v&&Q.push(H$9(v));g.qr(y,q,"error",Q);y.Y=!0}; Rt9=function(y,q){var Q=g.pO(y.provider);if(!y.provider.KK.experiments.ob("html5_refactor_sabr_video_format_selection_logging")||q.K.id!==y.Vm){var p=[q.K.id,q.W,y.Vm,q.reason];q.token&&p.push(q.token);g.qr(y,Q,"vfs",p);y.Vm=q.K.id;p=y.provider.WI.getPlayerSize();if(p.width>0&&p.height>0){p=[Math.round(p.width),Math.round(p.height)];var v=g.as();v>1&&p.push(v);g.qr(y,Q,"view",p)}y.Os||(y.provider.KK.U9()&&dA(y,"rqs2"),y.provider.videoData.K&&c_(y.provider.videoData.K)&&y.K.set("preload",["1"]));y.Os= !0;y.Y=!0}q.reason==="m"&&++y.zf===100&&S7i(y,2);g.qr(y,Q,"vps",[y.l6]);y.m3||y.reportStats(Q)}; sF2=function(y){y.N>=0||(y.provider.KK.cn||y.provider.WI.getVisibilityState()!==3?y.N=g.pO(y.provider):y.Ty=!0)}; MY2=function(y,q,Q){var p=g.pO(y.provider);g.qr(y,p,"vfi",[q==="A"?"":""+(Q!=null?Q:0),q])}; ltf=function(y,q,Q){if(y.provider.KK.experiments.ob("html5_refactor_sabr_audio_format_selection_logging")){q=Q.K;var p=[q.audio&&q.video?q.mS?q.mS:"":q.id];q.ZG&&q.ZG.id&&p.push(q.ZG.id);q=p.join(";");q!==y.G&&(p=[q,y.G,Q.reason],Q.token&&p.push(Q.token),g.qr(y,g.pO(y.provider),"afs",p),y.G=q)}else Q.K.id!==y.G&&(p=[Q.K.id,y.G,Q.reason],Q.token&&p.push(Q.token),g.qr(y,q,"afs",p),y.G=Q.K.id)}; dA=function(y,q){QW(y,"cat",q)}; zt8=function(y,q,Q,p,v){var d=g.pO(y.provider);q!==1&&q!==3&&q!==5||g.qr(y,d,"vps",[y.l6]);QW(y,"xvt","t."+d.toFixed(3)+";m."+v.toFixed(3)+";g.2;tt."+q+";np.0;c."+Q+";d."+p)}; S7i=function(y,q){y.q$||(QW(y,"fcnz",""+q),y.q$=!0)}; H$9=function(y){/[^a-zA-Z0-9;.!_-]/.test(y)&&(y=y.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return y}; g.O_=function(y,q,Q,p,v,d,T,O,w,J){O=O===void 0?!1:O;g.I.call(this);var F=this;this.WI=y;this.schedule=q;this.policy=Q;this.pK=p;this.N$=w;this.Kg=J;this.Zw=null;this.Vm=this.HI=this.LK=this.Sj=0;this.o2=this.cP=this.isSuspended=!1;this.Os="";this.ra={};this.Se=NaN;this.RH=0;this.C=null;this.XL=this.vI=!1;this.qt=0;this.q$=!1;this.Es=this.cB=0;this.Mz=null;this.Tm=!1;this.wR=function(){return F.WI.wR()}; this.timing=new dX2(this.Kg);this.j=new Qj(this.schedule,this.policy);this.Aw=new g.y0(this.Jj,0,this);this.T8=new g.y0(this.Jj,this.policy.EW,this);this.pu=new g.y0(this.Jj,1E3,this);this.I7=new g.y0(this.Jj,void 0,this);this.Dw=new g.y0(function(){F.isSuspended||F.Jj()},1E4,this); this.EW=new g.y0(this.GIb,250,this);this.G=this.currentTime=NaN;this.HS=new rK(5);this.gp=this.timestampOffset=NaN;this.logger=new g.L5("dash");this.BT=Infinity;this.je={DLy:function(){return F.xW}, nMs:function(){return F.N}, getAudioTrack:function(){return F.audioTrack}, TQK:function(){return F.videoTrack}, PaB:function(){return F.m3}, getManifest:function(){return F.pK}, Zq3:function(){return F.W}, Jj:function(){F.Jj()}, W8:function(){F.Sj=0;F.W8()}, bAb:function(f){return VW(F,F.videoTrack,F.Zw.W,f)}}; y=w&&w.wP();w&&(qVp(w,this.pK,this.policy),this.gp=Date.now());this.K=new xc(this,this.j,Q,this.pK,v,y);Q=H58(this.K,d,T&&T.id);this.audioTrack=new Ab(this,this.policy,Q.audio,this.timing);this.videoTrack=new Ab(this,this.policy,Q.video,this.timing);this.videoTrack.Y.Sj=this.audioTrack.tb();this.BI={updateend:this.s7,error:this.wBB};g.n(this,this.Aw);g.n(this,this.T8);g.n(this,this.pu);g.n(this,this.I7);g.n(this,this.Dw);Q=this.policy.qG&&this.policy.aD?!IB9(this.videoTrack.K.info):!1;this.F0=UXp({wi:this.policy.C.wi|| Q,aD:this.policy.aD&&!Q,VG:this.policy.VG});this.X=Pcg(this,this.policy,this.F0,this.schedule,this.HS,function(f,h){return D4H(F,f,h)}); this.N=new pu(this,this.pK,this.policy,this.videoTrack,this.audioTrack,O);this.policy.Dw&&this.policy.W&&(this.m3=new Ksf(this.policy.G,function(f,h){F.Rb(f,h)})); this.xW=new Oi(this,this.pK,this.videoTrack,this.audioTrack,this.policy);O=this.policy.dJ?this.WI.getVideoData().L1:null;this.J=new Tx(this,this.policy,this.videoTrack,this.audioTrack,this.ra,this.N,this.timing,this.j,this.schedule,this.pK,this.K,this.X,Q,O);g.n(this,this.J);this.Y=new J2(this,this.policy,this.videoTrack,this.audioTrack,this.pK,v,DD(this.WI.getVideoData()),T==null?void 0:T.id);g.n(this,this.Y);fOD(this.Y,d);this.W=new hWf(this.WI,this,this.policy,this.audioTrack,this.videoTrack,this.pK, this.schedule,this.K,this.Y,this.timing,this.N,this.m3);g.n(this,this.W);this.cI=this.WI.Z3.RU.eS;this.policy.J||uQ9(this);if(this.policy.Aw){var Y;this.Ty=new XV(this.videoTrack.K.index,(Y=this.WI.getVideoData().clientPlaybackNonce)!=null?Y:"",this.WI,this.policy.cB);this.policy.cB===3&&(this.hw=new g.y0(this.j1,200,this),this.hw.start(),g.n(this,this.hw))}}; uQ9=function(y){var q,Q;if((q=y.cI)==null?0:(Q=q.iX)==null?0:Q.itagDenylist){var p;y.Gh((p=y.cI)==null?void 0:p.iX.itagDenylist)}var v;if((v=y.cI)==null?0:v.playbackStartPolicy){var d,T;edb(y.policy,(d=y.cI)==null?void 0:d.playbackStartPolicy,3,(T=y.cI)==null?void 0:T.yU())}if(y.policy.Or){q=y.A1();var O;(Q=q?(O=y.cI)==null?void 0:O.vW.get(q):void 0)&&y.W.WG(Q)}if(!y.pK.cI){var w;O=(w=y.cI)==null?void 0:w.lc;(O==null?0:O.Rs)&&(O==null?0:O.PE)&&y.pK.E9&&qC(y.pK,O.Rs,O.PE)}var J;((J=y.cI)==null?0:J.wu)&& (w=y.cI.wu.get(y.A1()||""))&&y.pK&&w.formatId&&(y=y.pK.N.get(Cm(w.formatId)))&&(y.info.debugInfo=w.debugInfo)}; It9=function(y,q){var Q=Cm(g.vb(q.K.info,y.pK.E9)),p,v=((p=y.N$)==null?void 0:p.pH(Q))||[];if(v.length===0)return y.Rb("ombmsi",{}),!1;v=new Ff(v);if(p=!y.policy.N$||isFinite(y.getCurrentTime())||y.WI.UI()){a:{p=y.getCurrentTime();v=g.t(v.CK);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.type===3&&p>=d.J&&p<=d.G){p=!0;break a}p=!1}p=!p}if(p)return y.Rb("ostmf",{ct:y.getCurrentTime(),a:q.K.info.Eu()}),!1;(y=y.N$)!=null&&(y.HT.get(Q).vS=!0);return!0}; nWD=function(y){if(!y.pK.E9)return!0;var q=y.WI.getVideoData();if(y.WI.Lm())return y.Rb("ombpa",{}),!1;var Q,p;if(!!((Q=y.cI)==null?0:(p=Q.lc)==null?0:p.pnB)!==y.pK.Gf)return y.Rb("ombplmm",{}),!1;Q=q.RH||q.liveUtcStartSeconds||q.I7;if(y.pK.Gf&&Q)return y.Rb("ombplst",{}),!1;if(y.pK.cI)return y.Rb("ombab",{}),!1;Q=Date.now();return jz(y.pK)&&!isNaN(y.gp)&&Q-y.gp>y.policy.OT*1E3?(y.Rb("ombttl",{}),!1):y.pK.Q5&&y.pK.Y||B3(q)!==0&&!y.policy.K||q.L("html5_disable_onesie_media_for_mosaic")&&xW(q)||q.L("html5_disable_onesie_media_for_lifa_eligible")&& K$(q)?!1:!0}; gWS=function(y,q){var Q=q.K,p=y.pK.E9;if(nWD(y))if(y.N$&&y.N$.HT.has(Cm(g.vb(Q.info,p)))){if(p=Cm(g.vb(Q.info,p)),It9(y,q)){var v=new Ff(y.N$.pH(p)),d=function(T){try{if(T.rR())y.handleError(T.H3(),T.iE()),yZ(q,T),f5(T.info)&&VZ(y.J,q,Q,!0),y.Jj();else if(voi(y.J,T)){var O;(O=y.N)==null||YVb(O,T.info,y.C);y.Jj()}}catch(w){T=kp(w),y.handleError(T.errorCode,T.details,T.severity),y.n1()}}; Q.N=!0;Ya(v)&&(GN(q,new wn(y.policy,p,v,y.N$,d)),QJ(y.timing))}}else y.Rb("ombfmt",{})}; csg=function(y,q){q=q||y.videoTrack&&y.videoTrack.W&&y.videoTrack.W.startTime||y.getCurrentTime();var Q=y.videoTrack,p=y.K;q=p.nextVideo&&p.nextVideo.index.zW(q)||0;p.Sj!==q&&(p.Es={},p.Sj=q,WI(p,p.K));q=!p.K.isLocked()&&p.j>-1&&(0,g.SK)()-p.jy.policy.jL?g.qM(y.T8):y.Jj()}; Phi=function(y){if(uh9(y.videoTrack))return"ssf";if(y.policy.Ty&&nEC(y.videoTrack)&&nEC(y.audioTrack))return"updateEnd";if(qK(y.audioTrack)||qK(y.videoTrack)&&y.videoTrack.K.info.nK!=="f")return"";if(y.xW.isSeeking()){var q=y.j;var Q=y.videoTrack;var p=y.audioTrack;if(q.policy.K){var v=q.policy.qB;vm(q.policy)&&(v=TG(q,!1,dn(q)));q=v;Q=mt(p,!0)>=q&&mt(Q,!0)>=q}else Q.N.length||p.N.length?(v=Q.K.info.jj+p.K.info.jj,v=10*(1-dn(q)/v),q=Math.max(v,q.policy.qB),Q=mt(p,!0)>=q&&mt(Q,!0)>=q):Q=!0;if(!Q)return"abr"; Q=y.videoTrack;if(Q.N.length>0&&Q.Y.W.length===1&&vE9(Q.Y).info.C360);p=vm(y.policy)&&y.policy.R2;if(!y.o2||!p&&Q)return"";Q=y.policy.jY;vm(y.policy)&&(Q=TG(y.j,y.o2,dn(y.j)));Q=lTi(y.videoTrack,y.getCurrentTime(),Q)||lTi(y.audioTrack,y.getCurrentTime(),Q);return vm(y.policy)?Q?"mbnm":"":(y.videoTrack.N.length> 0||y.audioTrack.N.length>0||mC9(y.J,y.videoTrack,y.audioTrack)||mC9(y.J,y.audioTrack,y.videoTrack))&&Q?"nord":""}; yW2=function(y,q,Q){if(y.policy.Ty&&nEC(q))return!1;if(Q.h8())return!0;if(!Q.hZ())return!1;var p=xd(q);if(!p||p.info.type===6)return!1;var v;if(y.policy.Zh||((v=y.N)==null?0:$Xs(v,q,p.info.Qm)))y.Vm=0;else return y.xW.isSeeking()&&Pm(y),y.Vm=y.Vm||(0,g.SK)(),!1;if(!VW(y,q,Q,p.info))return!1;if(y.pK.W&&p.info.W===0){if(Q.JJ()==null){v=BI(q);var d;if(!(d=!v||v.K!==p.info.K)){b:if(v=v.j,d=p.info.j,v.length!==d.length)v=!1;else{for(var T=0;Td)return y.policy.K&&(q===y.videoTrack?y.HI=y.HI||(0,g.SK)():y.LK=y.LK||(0,g.SK)()),y.policy.bJ&&X_b(q.Y,d,!1),!1;q===y.videoTrack?y.HI=0:y.LK=0;var O;y.policy.Bn&&Q===((O=y.Zw)==null?void 0:O.K)&&y.q$&&(Q.Wi()===0?(y.q$=!1,y.policy.Bn=!1):y.cB=Q.Wi());a:{O=y.policy.Mz?(0,g.SK)():0;T=p.J&&p.info.K.K||void 0;d=p.W;p.J&&(d=X4p(y,p,d)||d);var w=$S(d);d=y.policy.Mz?(0,g.SK)():0;Q=m4p(y,Q,w,p.info,T);(T=q.j)!=null&&(w=p.info,O=d-O,d=(0,g.SK)()-d,!T.W||HNp(T.W, w)&&T.W.Qm===w.Qm||T.flush(),T.Y+=O,T.N+=d,O=1,!T.W&&w.W&&(O=2),aQ(T,O,Q),d=Math.ceil(w.W/1024),O===2&&T.K.add(d),T.K.add(Math.ceil((w.W+w.N)/1024)-d),T.W=w);y.Es=0;if(Q===0)y.vI&&(y.vI=!1,y.XL=!1),y.RH=0,Q=!0;else{if(Q===2||Q===5)Chs(y,"checked",Q,p.info);else{if(Q===1){if(!y.vI){y.vI=!0;Q=!1;break a}if(!y.XL){y.XL=!0;y.WI.seekTo(y.getCurrentTime(),{tU:"quotaExceeded",Wp:!0});Q=!1;break a}p.info.V5()?(O=y.policy,O.LK=Math.floor(O.LK*.8),O.Sj=Math.floor(O.Sj*.8)):(O=y.policy,O.q$=Math.floor(O.q$* .8),O.Sj=Math.floor(O.Sj*.8));y.policy.K?fu(y.Y.K,p.info.K,!1):EW(y.K,p.info.K)}y.WI.Tn({reattachOnAppend:Q})}Q=!1}}if(!Q)return!1;y.policy.Ty&&p.info.Ve()?(y.WI.T().U9()&&y.Rb("eosl",{ls:p.info.r0()}),p.isLocked=!0):(q.Sg(p),l3D(y.K,p.info));v&&(q=p.info.K.fb)&&y.WI.eJ(new zN(q.key,q.type));return!0}; X4p=function(y,q,Q){var p;if(p=y.policy.L2&&y.Zw&&!y.Zw.C&&!y.WI.mw())q=q.info.K.info,p=q.al()&&Xm(q)&&q.video&&q.video.width<3840&&q.video.width>q.video.height;if(p&&(y.Zw.C=!0,S6('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return Q=Qg9(Q),y.policy.N&&y.Rb("sp4k",{s:!!Q}),Q}; Chs=function(y,q,Q,p){var v="fmt.unplayable",d=1;Q===5||Q===3?(v="fmt.unparseable",y.policy.K?!p.K.info.video||bM(y.Y.K).size>0||fu(y.Y.K,p.K,!1):!p.K.info.video||bM(y.K.J).size>0||EW(y.K,p.K)):Q===2&&(y.RH<15?(y.RH++,v="html5.invalidstate",d=0):v="fmt.unplayable");p=wB(p);var T;p.mrs=(T=y.Zw)==null?void 0:RJ(T);p.origin=q;p.reason=Q;p.trg="appenderr";y.handleError(v,p,d)}; xC8=function(y,q,Q,p,v){var d=y.pK;var T=y.policy.K,O=!1,w=-1,J;for(J in d.K){var F=OA(d.K[J].info.mimeType)||d.K[J].info.V5();if(p===F)if(F=d.K[J].index,F.UP(q.Qm)){O=F;var Y=q,f=O.Ye(Y.Qm);f&&f.startTime!==Y.startTime?(O.segments=[],O.Hu(Y),O=!0):O=!1;O?w=q.Qm:!q.pending&&T&&(Y=F.getDuration(q.Qm),Y!==q.duration&&(d.publish("clienttemp","mfldurUpdate",{itag:d.K[J].info.itag,seg:q.Qm,od:Y,nd:q.duration},!1),F.Hu(q),O=!0))}else F.Hu(q),O=!0}w>=0&&(T={},d.publish("clienttemp","resetMflIndex",(T[p? "v":"a"]=w,T),!1));d=O;qE8(y.xW,q,p,d);if(y.policy.Dw&&y.policy.W&&(w=q.u6||null)){var h;T=(h=y.W)==null?void 0:MCf(h).requestNumber;var b;(b=y.m3)==null||xXj(b,w,T,q.Qm)}y.N.x_(q,Q,p,v);q.Qm===y.pK.Q5&&d&&Xf(y.pK)&&q.startTime>Xf(y.pK)&&(y.pK.gp=q.startTime+(isNaN(y.timestampOffset)?0:y.timestampOffset),y.xW.isSeeking()&&y.xW.targetTime5)return y.Es= 0,y.WI.Tn({initSegStuck:1,as:p.info.r0()}),!0}else y.Es=0,y.Mz=p;y.policy.SL&&(Q.abort(),(T=q.j)!=null&&(aQ(T,4),T.flush()));v=m4p(y,Q,d,w,v);(q=q.j)!=null&&(q.flush(),q.W=w,aQ(q,3,v));if(v!==0)return y.policy.rj&&z1(y.WI.getVideoData())?(y.WI.HU()||Chs(y,"sepInit",v,p.info),qYb(y.WI,"sie")):Chs(y,"sepInit",v,p.info),!0;p.info.V5()?(w=y.timing,w.Es||(w.Es=(0,g.SK)(),g.VD("vis_a",w.Es,w.K))):(w=y.timing,w.X||(w.X=(0,g.SK)(),g.VD("ais_a",w.X,w.K)));(p=p.info.K.fb)&&y.WI.eJ(new zN(p.key,p.type));return Q.vx()}; m4p=function(y,q,Q,p,v){try{var d,T=q===((d=y.Zw)==null?void 0:d.K)?y.audioTrack:y.videoTrack;if(y.policy.Ty&&(p==null?0:p.Ve())){if((p==null?void 0:p.cI)>1)return 6;T.Es=new g.y0(function(){var O=xd(T);y.iB()||O==null||!O.isLocked?y.WI.T().U9()&&y.Rb("eosl",{delayA:O==null?void 0:O.info.r0()}):jVs(T)?(y.WI.T().U9()&&y.Rb("eosl",{dunlock:O==null?void 0:O.info.r0()}),QV9(y,T===y.audioTrack)):(y.Rb("nue",{ls:O.info.r0()}),O.info.cI+=1,y.Zw&&y.W8())},1E4,y); y.WI.T().U9()&&y.Rb("eosl",{delayS:p.r0()});T.Es.start()}y.policy.b2&&(p==null?void 0:p.K)instanceof bq&&p.Ve()&&y.Rb("poseos",{itag:p.K.info.itag,seg:p.Qm,lseg:p.K.index.D3(),es:p.K.index.N});q.appendBuffer(Q,p,v)}catch(O){if(O instanceof DOMException){if(O.code===11)return 2;if(O.code===12)return 5;if(O.code===22||O.message.indexOf("Not enough storage")===0)return q=Object.assign({name:"QuotaExceededError",buffered:F7(q.m5()).replace(/,/g,"_"),vheap:iM(y.videoTrack),aheap:iM(y.audioTrack),message:g.s2(O.message, 3),track:y.Zw?q===y.Zw.W?"v":"a":"u"},ys8()),y.handleError("player.exception",q),1;g.l$(O)}return 4}return y.Zw.Pt()?3:0}; KP=function(y,q,Q){rsC(y,Q.tU||"unknown");y.WI.seekTo(q,Q)}; fP=function(y,q){if(y.policy.N$&&y.vI&&!y.o2)return y.policy.wJ;if(y.vI&&!y.o2)return 3;if(y.isSuspended)return 1;var Q;if((Q=y.Zw)==null?0:Q.Zw&&Q.Zw.streaming===!1)return 4;Q=(q.K.info.audio?y.policy.q$:y.policy.LK)/(q.jj*y.policy.dY);if(y.policy.vD>0&&y.Zw&&aJ(y.Zw)&&(q=q.K.info.video?y.Zw.W:y.Zw.K)&&!q.vx()){q=q.m5();var p=YA(q,y.getCurrentTime());p>=0&&(q=y.getCurrentTime()-q.start(p),Q+=Math.max(0,Math.min(q-y.policy.vD,y.policy.rN)))}y.policy.Sj>0&&(Q=Math.min(Q,y.policy.Sj));return Q}; Wcg=function(y,q){return(fP(y,q)+y.policy.Rw)*q.jj}; vXi=function(y){y.Os&&!y.isSuspended&&qj(y.schedule)&&(pyS(y,y.Os),y.Os="")}; pyS=function(y,q){jh(q,"cms",function(Q){y.policy.N&&y.Rb("pathprobe",Q)},function(Q){y.WI.handleError(Q)})}; dZs=function(y,q){y.C=q;y.N&&(y.N.N=q);y.C.zV(y.videoTrack.K.info.al());y.J.W=y.C;y.policy.W&&(y.W.X=y.C)}; Vif=function(y,q){if(y.Zw&&y.Zw.W){if(y.policy.gG){var Q=cB9(y.audioTrack);if(Q&&Q.Eu()){var p=y.WI;if(p.JZ&&(p.JZ.K=Q,Q=p.G8,Q.qoe)){Q=Q.qoe;p=p.JZ;var v=g.pO(Q.provider);ltf(Q,v,p)}}}y.policy.va&&(Q=cB9(y.videoTrack))&&Q.V5()&&(p=y.WI,p.G$&&(p.G$.K=Q,Q=p.G8,Q.qoe&&Rt9(Q.qoe,p.G$)));q-=isNaN(y.timestampOffset)?0:y.timestampOffset;y.getCurrentTime()!==q&&y.resume();y.xW.isSeeking()&&y.Zw&&!y.Zw.Pt()&&(p=y.getCurrentTime()<=q&&q=q&&D4H(y,p.startTime,!1)}); return Q&&Q.startTimey.getCurrentTime())return Q.start/1E3;return Infinity}; k1H=function(y){if(y.WI.getVideoData().isLivePlayback)return!1;var q=y.WI.OW();if(!q)return!1;q=q.getDuration();if(y.Zw&&y.Zw.K&&y.Zw.W){var Q=y.getCurrentTime(),p=y.Zw.K.m5();y=y.Zw.W.m5();p=p?hX(p,Q):Q;Q=y?hX(y,Q):Q;Q=Math.min(p,Q);q=isNaN(Q)?!1:Q>=q-.01}else q=!1;return q}; djg=function(y){return y.WI.sF()0){var p=Q.K.shift();faH(Q,p.info)}Q.K.length>0&&(p=Q.K[0].time-(0,g.SK)(),Q.W.start(Math.max(0,p)))}},0); g.n(this,this.W);q.subscribe("widevine_set_need_key_info",this.Y,this)}; faH=function(y,q){a:{var Q=q.cryptoPeriodIndex;if(isNaN(Q)&&y.N.size>0)Q=!0;else{for(var p=g.t(y.N.values()),v=p.next();!v.done;v=p.next())if(v.value.cryptoPeriodIndex===Q){Q=!0;break a}Q=!1}}y.publish("log_qoe",{wvagt:"reqnews",canskip:Q});Q||y.publish("rotated_need_key_info_ready",q)}; hZg=function(){var y={};var q=y.url;var Q=y.interval;y=y.retries;this.url=q;this.interval=Q;this.retries=y}; bq3=function(y,q){this.statusCode=y;this.message=q;this.W=this.heartbeatParams=this.errorMessage=null;this.K={};this.nextFairplayKeyId=null}; $Z2=function(y,q,Q){Q=Q===void 0?"":Q;g.I.call(this);this.message=y;this.requestNumber=q;this.timer=Q;this.onError=this.onSuccess=null;this.K=new g.nR(5E3,2E4,.2)}; Kyg=function(y,q,Q){y.onSuccess=q;y.onError=Q}; Wyi=function(y,q,Q,p){var v={timeout:3E4,onSuccess:function(d){if(!y.iB()){zn("drm_net_r",void 0,y.timer);var T=d.status==="LICENSE_STATUS_OK"?0:9999,O=null;if(d.license)try{O=Me(d.license)}catch(b){g.l$(b)}if(T!==0||O){O=new bq3(T,O);T!==0&&d.reason&&(O.errorMessage=d.reason);if(d.authorizedFormats){T={};for(var w=[],J={},F=g.t(d.authorizedFormats),Y=F.next();!Y.done;Y=F.next())if(Y=Y.value,Y.trackType&&Y.keyId){var f=xZi[Y.trackType];if(f){f==="HD"&&d.isHd720&&(f="HD720");Y.isHdr&&(f+="HDR");T[f]|| (w.push(f),T[f]=!0);var h=null;try{h=Me(Y.keyId)}catch(b){g.l$(b)}h&&(J[g.Rq(h,4)]=f)}}O.W=w;O.K=J}d.nextFairplayKeyId&&(O.nextFairplayKeyId=d.nextFairplayKeyId);d.sabrLicenseConstraint&&(O.sabrLicenseConstraint=Me(d.sabrLicenseConstraint));d=O}else d=null;if(d)y.onSuccess(d,y.requestNumber);else y.onError(y,"drm.net","t.p;p.i")}}, onError:function(d){if(!y.iB())if(d&&d.error)d=d.error,y.onError(y,"drm.net.badstatus","t.r;p.i;c."+d.code+";s."+d.status,d.code);else y.onError(y,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){y.onError(y,"drm.net","rt.req."+y.requestNumber)}}; p&&(v.Zr="Bearer "+p);g.mL(Q,"player/get_drm_license",q,v)}; Zqb=function(y,q,Q,p){g.V6.call(this);this.videoData=y;this.KK=q;this.C=Q;this.sessionId=p;this.J={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.cI=this.N$=!1;this.N=null;this.m3=[];this.Y=[];this.authorizedFormats=[];this.X=!1;this.K={};this.status="";this.G=NaN;this.W=y.J;this.cryptoPeriodIndex=Q.cryptoPeriodIndex;y={};Object.assign(y,this.KK.K);y.cpn=this.videoData.clientPlaybackNonce;this.videoData.Es&&(y.vvt=this.videoData.Es,this.videoData.mdxEnvironment&&(y.mdx_environment= this.videoData.mdxEnvironment));this.KK.m3&&(y.authuser=this.KK.m3);this.KK.pageId&&(y.pageid=this.KK.pageId);isNaN(this.cryptoPeriodIndex)||(y.cpi=this.cryptoPeriodIndex.toString());var v=(v=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.cK()))?v[1]:"";v==="ATV"&&(y.cdt=v);this.J=y;this.J.session_id=p;this.j=!0;this.W.flavor==="widevine"&&(this.J.hdr="1");this.W.flavor==="playready"&&(q=Number(ag(q.experiments,"playready_first_play_expiration")),!isNaN(q)&&q>=0&&(this.J.mfpe=""+q),this.j=!1);q="";g.hB(this.W)? f8(this.W)?(p=Q.W)&&(q="https://www.youtube.com/api/drm/fps?ek="+tL8(p)):(q=Q.initData.subarray(4),q=new Uint16Array(q.buffer,q.byteOffset,q.byteLength/2),q=String.fromCharCode.apply(null,q).replace("skd://","https://")):q=this.W.W;this.baseUrl=q;this.fairplayKeyId=HG(this.baseUrl,"ek")||"";if(q=HG(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(q);this.m3=Q.al?[g.Rq(Q.initData,4)]:Q.N;fO(this,{sessioninit:Q.cryptoPeriodIndex});this.status="in"}; LyH=function(y,q){fO(y,{createkeysession:1});y.status="gr";zn("drm_gk_s",void 0,y.videoData.cI);y.url=tib(y);try{y.N=q.createSession(y.C,function(Q){fO(y,{m:Q})})}catch(Q){q="t.g"; Q instanceof DOMException&&(q+=";c."+Q.code);y.publish("licenseerror","drm.unavailable",1,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}y.N&&(EX9(y.N,function(Q,p){kj2(y,Q,p)},function(Q,p,v){if(!y.iB()){p=void 0; var d=1;g.hB(y.W)&&g.Yo(y.KK)&&y.KK.L("html5_enable_safari_fairplay")&&v===1212433232&&(p="ERROR_HDCP",d=y.KK.L("html5_safari_fairplay_ignore_hdcp")?0:d);y.error("drm.keyerror",d,Q,p)}},function(){y.iB()||(fO(y,{onkyadd:1}),y.cI||(y.publish("sessionready"),y.cI=!0))},function(Q){y.fH(Q)}),g.n(y,y.N))}; tib=function(y){var q=y.baseUrl;ahD(q)||y.error("drm.net",2,"t.x");if(!HG(q,"fexp")){var Q=["23898307","23914062","23916106","23883098"].filter(function(v){return y.KK.experiments.experiments[v]}); Q.length>0&&(y.J.fexp=Q.join())}Q=g.t(Object.keys(y.J));for(var p=Q.next();!p.done;p=Q.next())p=p.value,q=cY9(q,p,y.J[p]);return q}; kj2=function(y,q,Q){if(!y.iB())if(q){fO(y,{onkmtyp:Q});y.status="km";switch(Q){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":aa8(y,q);return;default:y.publish("ctmp","message_type",{t:Q,l:q.byteLength})}y.N$||(zn("drm_gk_f",void 0,y.videoData.cI),y.N$=!0,y.publish("newsession",y));if(JB(y.W)&&(q=Npi(q),!q))return;q=new $Z2(q,++y.requestNumber,y.videoData.cI);Kyg(q,function(p){SYC(y,p)},function(p,v,d){if(!y.iB()){var T=0; p.K.W>=3&&(T=1,v="drm.net.retryexhausted");fO(y,{onlcsrqerr:v,info:d});y.error(v,T,d);y.shouldRetry(EU(T),p)&&Hq9(y,p)}}); g.n(y,q);RZ9(y,q)}else y.error("drm.unavailable",1,"km.empty")}; aa8=function(y,q){fO(y,{sdpvrq:1});y.G=Date.now();if(y.W.flavor!=="widevine")y.error("drm.provision",1,"e.flavor;f."+y.W.flavor+";l."+q.byteLength);else{var Q={cpn:y.videoData.clientPlaybackNonce};Object.assign(Q,y.KK.K);Q=g.kb("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",Q);q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, q)}),responseType:"arraybuffer"};g.lb(Q,q,3,500).then(v_(function(p){p=p.xhr;if(!y.iB()){p=new Uint8Array(p.response);var v=String.fromCharCode.apply(null,p);try{var d=JSON.parse(v)}catch(T){}d&&d.signedResponse?(y.publish("ctmp","drminfo",{provisioning:1}),d=(Date.now()-y.G)/1E3,y.G=NaN,y.publish("ctmp","provs",{et:d.toFixed(3)}),y.N&&y.N.update(p)):(d=d&&d.error&&d.error.message,p="e.parse",d&&(p+=";m."+d),y.error("drm.provision",1,p))}}),v_(function(p){y.iB()||y.error("drm.provision",1,"e."+p.errorCode+ ";c."+(p.xhr&&p.xhr.status))}))}}; hD=function(y){var q;if(q=y.j&&y.N!=null)y=y.N,q=!(!y.K||!y.K.keyStatuses);return q}; RZ9=function(y,q){y.status="km";zn("drm_net_s",void 0,y.videoData.cI);var Q=new g.XX(y.KK.Tg),p={context:g.f0(Q.config_||g.Yf())};p.drmSystem=sVp[y.W.flavor];p.videoId=y.videoData.videoId;p.cpn=y.videoData.clientPlaybackNonce;p.sessionId=y.sessionId;p.licenseRequest=g.Rq(q.message);p.drmParams=y.videoData.drmParams;isNaN(y.cryptoPeriodIndex)||(p.isKeyRotated=!0,p.cryptoPeriodIndex=y.cryptoPeriodIndex);var v,d,T=!!((v=y.videoData.W)==null?0:(d=v.video)==null?0:d.isHdr());p.drmVideoFeature=T?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(p.context&&p.context.client){if(v=y.KK.K)p.context.client.deviceMake=v.cbrand,p.context.client.deviceModel=v.cmodel,p.context.client.browserName=v.cbr,p.context.client.browserVersion=v.cbrver,p.context.client.osName=v.cos,p.context.client.osVersion=v.cosver;p.context.user=p.context.user||{};p.context.request=p.context.request||{};y.videoData.Es&&(p.context.user.credentialTransferTokens=[{token:y.videoData.Es,scope:"VIDEO"}]);p.context.request.mdxEnvironment=y.videoData.mdxEnvironment|| p.context.request.mdxEnvironment;y.videoData.F0&&(p.context.user.kidsParent={oauthToken:y.videoData.F0});g.hB(y.W)&&(p.fairplayKeyId=g.Rq(EGj(y.fairplayKeyId)));g.Is(y.KK,g.$W(y.videoData)).then(function(O){Wyi(q,p,Q,O);y.status="rs"})}else y.error("drm.net",2,"t.r;ic.0")}; SYC=function(y,q){if(!y.iB())if(fO(y,{onlcsrsp:1}),y.status="rr",q.statusCode!==0)y.error("drm.auth",1,"t.f;c."+q.statusCode,q.errorMessage||void 0);else{zn("drm_kr_s",void 0,y.videoData.cI);if(q.heartbeatParams&&q.heartbeatParams.url&&y.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var Q=y.W.W.match(/(.*)youtube.com/g);Q&&(q.heartbeatParams.url=Q[0]+q.heartbeatParams.url)}q.heartbeatParams&&y.publish("newlicense",q.heartbeatParams);q.W&&(y.Y=q.W,y.videoData.uW||y.publish("newlicense", new hZg),y.videoData.uW=!0,y.X=XH(y.Y,function(p){return p.includes("HDR")})); q.K&&(y.KK.L("html5_enable_vp9_fairplay")&&f8(y.W)?(Q=g.Rq(EGj(y.fairplayKeyId),4),y.K[Q]={type:q.K[Q],status:"unknown"}):y.K=QE(q.K,function(p){return{type:p,status:"unknown"}})); YE(y.W)&&(q.message=XVs(g.Rq(q.message)));y.N&&(fO(y,{updtks:1}),y.status="ku",y.N.update(q.message).then(function(){zn("drm_kr_f",void 0,y.videoData.cI);hD(y)||(fO(y,{ksApiUnsup:1}),y.publish("keystatuseschange",y))},function(p){p="msuf.req."+y.requestNumber+";msg."+g.s2(p.message,3); y.error("drm.keyerror",1,p)})); g.hB(y.W)&&y.publish("fairplay_next_need_key_info",y.baseUrl,q.nextFairplayKeyId);y.KK.L("html5_enable_vp9_fairplay")&&f8(y.W)&&y.publish("qualitychange",Mi9(y.Y));q.sabrLicenseConstraint&&y.publish("sabrlicenseconstraint",q.sabrLicenseConstraint)}}; Hq9=function(y,q){var Q=q.K.getValue();Q=new g.y0(function(){RZ9(y,q)},Q); g.n(y,Q);Q.start();g.gD(q.K);fO(y,{rtyrq:1})}; lab=function(y,q){for(var Q=[],p=g.t(Object.keys(y.K)),v=p.next();!v.done;v=p.next())v=v.value,Q.push(v+"_"+y.K[v].type+"_"+y.K[v].status);return Q.join(q)}; zZi=function(y){var q={};q[y.status]=hD(y)?lab(y,"."):y.Y.join(".");return q}; DZj=function(y,q,Q){var p={};p.isHdr=q.includes("HDR");switch(q.replace("HDR","").replace("720","")){case "AUDIO":p.trackType=1;break;case "SD":p.trackType=2;break;case "HD":p.trackType=3;break;case "UHD1":p.trackType=4;break;case "UHD2":p.trackType=5;break;default:p.trackType=0}!p.trackType||Q[q]||hD(y)&&!b5(y,q)||(y.authorizedFormats.push(p),Q[q]=!0)}; b5=function(y,q){for(var Q in y.K)if(y.K[Q].status==="usable"&&y.K[Q].type===q)return!0;return!1}; ua3=function(y,q){for(var Q in y.K)if(y.K[Q].type===q)return y.K[Q].status}; fO=function(y,q){var Q=Q===void 0?!1:Q;Zr(q);(Q||y.KK.U9())&&y.publish("ctmp","drmlog",q)}; IaD=function(y){var q=y[0];y[0]=y[3];y[3]=q;q=y[1];y[1]=y[2];y[2]=q;q=y[4];y[4]=y[5];y[5]=q;q=y[6];y[6]=y[7];y[7]=q}; Mi9=function(y){return g.Eu(y,"UHD2")||g.Eu(y,"UHD2HDR")?"highres":g.Eu(y,"UHD1")||g.Eu(y,"UHD1HDR")?"hd2160":g.Eu(y,"HD")||g.Eu(y,"HDHDR")?"hd1080":g.Eu(y,"HD720")||g.Eu(y,"HD720HDR")?"hd720":"large"}; Npi=function(y){for(var q="",Q=0;Q'.charCodeAt(p);y=y.N.createSession("video/mp4",q,Q);return new $Y(null,null,null,null,y)}; QBg=function(y,q){var Q=y.G[q.sessionId];!Q&&y.Y&&(Q=y.Y,y.Y=null,Q.sessionId=q.sessionId,y.G[q.sessionId]=Q);return Q}; yDS=function(y,q){var Q=y.subarray(4);Q=new Uint16Array(Q.buffer,Q.byteOffset,Q.byteLength/2);Q=String.fromCharCode.apply(null,Q).match(/ek=([0-9a-f]+)/)[1];for(var p="",v=0;v19.2999?(y=Q.L8,Q=Q.iJ, Q>=y&&(Q=y*.75),q=(y-Q)*.5,Q=new Fb(q,y,y-q-Q,this)):Q=null;break a;case "widevine":Q=new YY(q,this,y);break a;default:Q=null}if(this.J=Q)g.n(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.E_,this),this.J.subscribe("log_qoe",this.ye,this);$E(this.KK.experiments);this.ye({cks:this.K.getInfo()})}; vYi=function(y){var q=Csj(y.Y,y.mediaElement);q?q.then(v_(function(){TAs(y)}),v_(function(Q){if(!y.iB()){g.l$(Q); var p="t.a";Q instanceof DOMException&&(p+=";n."+Q.name+";m."+Q.message);y.publish("licenseerror","drm.unavailable",1,p,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(y.ye({mdkrdy:1}),y.j=!0); y.cI&&(q=Csj(y.cI,y.mediaElement))}; OOS=function(y,q,Q){y.LK=!0;Q=new zN(q,Q);y.KK.L("html5_eme_loader_sync")&&(y.G.get(q)||y.G.set(q,Q));VFb(y,Q)}; VFb=function(y,q){if(!y.iB()){y.ye({onInitData:1});if(y.KK.L("html5_eme_loader_sync")&&y.videoData.N&&y.videoData.N.K){var Q=y.X.get(q.initData);q=y.G.get(q.initData);if(!Q||!q)return;q=Q;Q=q.initData;y.G.remove(Q);y.X.remove(Q)}y.ye({initd:q.initData.length,ct:q.contentType});if(y.K.flavor==="widevine")if(y.gp&&!y.videoData.isLivePlayback)WX(y);else{if(!(y.KK.L("vp9_drm_live")&&y.videoData.isLivePlayback&&q.al)){y.gp=!0;Q=q.cryptoPeriodIndex;var p=q.K;mXf(q);q.al||(p&&q.K!==p?y.publish("ctmp","cpsmm", {emsg:p,pssh:q.K}):Q&&q.cryptoPeriodIndex!==Q&&y.publish("ctmp","cpimm",{emsg:Q,pssh:q.cryptoPeriodIndex}));y.publish("widevine_set_need_key_info",q)}}else y.E_(q)}}; TAs=function(y){if(!y.iB())if(y.KK.L("html5_drm_set_server_cert")||f8(y.K)){var q=y.Y.setServerCertificate();q?q.then(v_(function(Q){y.KK.U9()&&y.publish("ctmp","ssc",{success:Q})}),v_(function(Q){y.publish("ctmp","ssce",{n:Q.name, m:Q.message})})).then(v_(function(){wX2(y)})):wX2(y)}else wX2(y)}; wX2=function(y){y.iB()||(y.j=!0,y.ye({onmdkrdy:1}),WX(y))}; JD3=function(y){return y.K.flavor==="widevine"&&y.videoData.L("html5_drm_cpi_license_key")}; WX=function(y){if(y.LK&&y.j&&!y.Sj){for(;y.N.length;){var q=y.N[0],Q=JD3(y)?Cq9(q):g.Rq(q.initData);if(f8(y.K)&&!q.W)y.N.shift();else{if(y.W.get(Q))if(y.K.flavor!=="fairplay"||f8(y.K)){y.N.shift();continue}else y.W.delete(Q);mXf(q);break}}y.N.length&&y.createSession(y.N[0])}}; FEp=function(y){var q,Q;g.M(function(p){if(p.K==1){var v;if(v=g.PF()){var d;v=!((d=y.Y.W)==null||!d.getMetrics)}return v?g.R(p,y.Y.getMetrics(),2):p.return()}q=p.W;if(!q)return p.return();j7(q)||(q=g.E6(q));Q=/^[A-Za-z0-9_-]+={0,3}$/;Q.test(q)||(q=g.s2(q,void 0,!0));y.publish("ctmp","drm",{metrics:q});g.tH(p)})}; Y_g=function(){var y=cSD();return!(!y||y==="visible")}; hcf=function(y){var q=f2i();q&&document.addEventListener(q,y,!1)}; bOj=function(y){var q=f2i();q&&document.removeEventListener(q,y,!1)}; f2i=function(){if(document.visibilityState)var y="visibilitychange";else{if(!document[K_+"VisibilityState"])return"";y=K_+"visibilitychange"}return y}; KE9=function(y){$r2=y}; xrS=function(y){g.I.call(this);var q=this;this.WI=y;this.Go=0;this.G=this.W=this.J=!1;this.Y=0;this.wp=this.WI.T();this.videoData=this.WI.getVideoData();this.N=g.wm(this.wp.experiments,"html5_delayed_retry_count");this.K=new g.y0(function(){q.WI.ma()},g.wm(this.wp.experiments,"html5_delayed_retry_delay_ms")); g.n(this,this.K)}; kPg=function(y,q,Q){var p=y.videoData.W,v=y.videoData.Y,d=y.wp.L("html5_disable_codec_fallback_for_drm")&&y.videoData.AR();z1(y.WI.getVideoData())&&y.wp.L("html5_gapless_fallback_on_qoe_restart")&&qYb(y.WI,"pe");if((q==="progressive.net.retryexhausted"||q==="fmt.unplayable"||q==="fmt.decode")&&!y.WI.cJ.J&&p&&p.itag==="22")return y.WI.cJ.J=!0,y.aB("qoe.restart",{reason:"fmt.unplayable.22"}),y.WI.LP(),!0;var T=!1;if(y.videoData.isExternallyHostedPodcast){if(T=y.videoData.vQ)Q.mimeType=T.type,y.Rb("3pp", {url:T.url});Q.ns="3pp";y.WI.SB(q,1,"VIDEO_UNAVAILABLE",Zr((new g.t7(q,Q,1)).details));return!0}var O=y.Go+3E4<(0,g.SK)()||y.K.isActive();if(y.wp.L("html5_empty_src")&&y.videoData.isAd()&&q==="fmt.unplayable"&&/Empty src/.test(""+Q.msg))return Q.origin="emptysrc",y.aB("auth",Q),!0;O||WE9(y.WI.G5())||(Q.nonfg="paused",O=!0,y.WI.pauseVideo());(q==="fmt.decode"||q==="fmt.unplayable")&&(v==null?0:q6(v)||j2(v))&&(fJ3(y.wp.J,v.nK),Q.acfallexp=v.nK,T=O=!0);!O&&y.N>0&&(y.K.start(),O=!0,Q.delayed="1",--y.N); v=y.WI.loader;O||!((p==null?0:yR(p))||(p==null?0:Xm(p)))||d||(fJ3(y.wp.J,p.nK),T=O=!0,Q.cfallexp=p.nK);if(!O)return ZOs(y,Q);d=!1;y.J?y.Go=(0,g.SK)():d=y.J=!0;O=y.videoData;if(O.Ty){O=O.Ty.mF();var w=Date.now()/1E3+1800;O=O6048E5&&S_p(y,"signature");return!1}; S_p=function(y,q){try{q={detail:"pr."+q},(g.Ln(y.wp)||tB(y.wp)==="TVHTML5_FOR_KIDS")&&y.wp.L("html5_reload_by_kabuki_app")?y.WI.SB("qoe.restart",1,void 0,Zr(q),"7"):(y.aB("qoe.restart",q),window.location.reload())}catch(Q){}}; RcH=function(y){var q=y.wp.L("html5_enable_lr_reload_side_sheet");return y.videoData.errorDetail==="7"&&g.kt(y.wp)&&q?(S_p(y,"innertube_player_reload_required"),!0):!1}; sB8=function(y,q){var Q=y.wp.J;Q.X=!1;Q.W=!0;y.aB("qoe.restart",{e:q===void 0?"fmt.noneavailable":q,detail:"hdr"});y.WI.ma(!0)}; MF8=function(y,q,Q,p,v,d){this.videoData=y;this.K=q;this.reason=Q;this.W=p;this.token=v;this.videoId=d}; Z2=function(y,q,Q){this.KK=y;this.kN=q;this.WI=Q;this.C=this.G=this.K=this.Y=this.X=this.W=0;this.J=!1;this.j=g.wm(this.KK.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.N=new Map}; l2i=function(y,q,Q){!y.KK.L("html5_tv_ignore_capable_constraint")&&g.kt(y.KK)&&(Q=Q.compose(y.PV(q)));return Q}; zc2=function(y){if(y.WI.G5().isInline())return tk;y=uH[to()];return g.lH("auto",y,!1,"s")}; ubH=function(y,q){var Q,p=Drp(y,(Q=q.K)==null?void 0:Q.videoInfos);Q=y.WI.getPlaybackRate();return Q>1&&p?(y=wS3(y.KK.J,q.K.videoInfos,Q),new Mm(0,y,!0,"o")):new Mm(0,0,!1,"o")}; Drp=function(y,q){return q&&g.kt(y.KK)?q.some(function(Q){return Q.video.fps>32}):!1}; I2p=function(y,q){if(y.L("html5_disable_ustreamer_constraint_for_sabr")&&nL(q.videoData))return tk;var Q=y.WI.X3();y.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&Q&&Q.Ar>0&&Dk(q.videoData.dJ)&&(y=Q.Ar,q.videoData.dJ=new Mm(0,y,!1,"u"));return q.videoData.dJ}; nYj=function(y,q){var Q;a:if((Q=q.K)&&Q.videoInfos.length){for(var p=g.t(Q.videoInfos),v=p.next();!v.done;v=p.next()){v=v.value;var d=void 0;if((d=v.W)==null?0:d.smooth){Q=v.video.qualityOrdinal;break a}}Q=Q.videoInfos[0].video.qualityOrdinal}else Q=0;tTC()&&!g.kt(y.KK)&&Xm(q.K.videoInfos[0])&&(Q=Math.min(Q,g.A7.large));p=g.wm(y.KK.experiments,"html5_chipset_soft_cap");p>0&&(Q=Math.min(Q,p));if(p=g.wm(y.KK.experiments,"html5_max_vertical_resolution")){v=4320;for(d=0;dp&&(v=Math.min(v,T.video.qualityOrdinal))}if(v<4320){for(T=d=0;T32){v=!0;break a}}v=!1}v&&(Q=Math.min(Q,p));(p=g.wm(y.KK.experiments,"html5_live_quality_cap"))&&q.videoData.isLivePlayback&&(Q=Math.min(Q,p));Q=gYp(y,q,Q);y=g.wm(y.KK.experiments,"html5_byterate_soft_cap");return new Mm(0,Q===4320?0:Q,!1,"d",y)}; UrC=function(y){var q,Q,p,v;return g.M(function(d){switch(d.K){case 1:return y.K.K&&typeof((q=navigator.mediaCapabilities)==null?void 0:q.decodingInfo)==="function"?g.R(d,Promise.resolve(),2):d.return(Promise.resolve());case 2:Q=g.t(y.K.videoInfos),p=Q.next();case 3:if(p.done){d.ej(0);break}v=p.value;return g.R(d,cx2(v),4);case 4:p=Q.next(),d.ej(3)}})}; ADj=function(y,q,Q,p){if(!q||!Q||!q.videoData.W)return!1;var v=g.wm(y.KK.experiments,"html5_df_downgrade_thresh"),d=y.L("html5_log_media_perf_info");if(!((0,g.SK)()-y.Y<5E3?0:d||v>0))return!1;var T=((0,g.SK)()-y.Y)/1E3;y.Y=(0,g.SK)();Q=Q.getVideoPlaybackQuality();if(!Q)return!1;var O=Q.droppedVideoFrames-y.G,w=Q.totalVideoFrames-y.C;y.G=Q.droppedVideoFrames;y.C=Q.totalVideoFrames;var J=Q.displayCompositedVideoFrames===0?0:Q.displayCompositedVideoFrames||-1;d&&y.KK.U9()&&y.WI.Rb("ddf",{dr:Q.droppedVideoFrames, de:Q.totalVideoFrames,comp:J});if(p)return y.K=0,!1;if((w-O)/T>y.j||!v||g.kt(y.KK))return!1;y.K=(w>60?O/w:0)>v?y.K+1:0;if(y.K!==3)return!1;rDp(y,q.videoData.W);y.WI.Rb("dfd",Object.assign({dr:Q.droppedVideoFrames,de:Q.totalVideoFrames},oY2()));return!0}; rDp=function(y,q){var Q=q.nK,p=q.video.fps,v=q.video.qualityOrdinal-1,d=y.N;q=""+Q+(p>49?"p60":p>32?"p48":"");Q=dK(Q,p,d);v>0&&(Q=Math.min(Q,v));if(!tD.has(q)&&L3().includes(q)){var T=Q;Q=kF();+Q[q]>0&&(T=Math.min(+Q[q],T));Q[q]!==T&&(Q[q]=T,g.DW("yt-player-performance-cap",Q,2592E3))}else if(tD.has(q)||d==null){a:{T=T===void 0?!0:T;p=L3().slice();if(T){if(p.includes(q))break a;p.push(q)}else{if(!p.includes(q))break a;p.splice(p.indexOf(q),1)}g.DW("yt-player-performance-cap-active-set",p,2592E3)}vg.set(q, Q)}else tD.add(q),d==null||d.set(q,Q);y.WI.jG()}; eci=function(y,q){if(!q.K.K)return y.J?new Mm(0,360,!1,"b"):tk;for(var Q=!1,p=!1,v=g.t(q.K.videoInfos),d=v.next();!d.done;d=v.next())yR(d.value)?Q=!0:p=!0;Q=Q&&p;p=0;v=g.wm(y.KK.experiments,"html5_performance_cap_floor");v=y.KK.W?240:v;q=g.t(q.K.videoInfos);for(d=q.next();!d.done;d=q.next()){var T=d.value;if(!Q||!yR(T))if(d=dK(T.nK,T.video.fps,y.N),T=T.video.qualityOrdinal,Math.max(d,v)>=T){p=T;break}}return new Mm(0,p,!1,"b")}; BA3=function(y,q){var Q=y.WI.G5();return Q.isInline()&&!q.OT?new Mm(0,480,!1,"v"):nL(q)?tk:Q.isBackground()&&Lb()/1E3>60&&!g.kt(y.KK)?new Mm(0,360,!1,"v"):tk}; GP2=function(y,q,Q){if(y.KK.experiments.ob("html5_disable_client_autonav_cap_for_onesie")&&q.fetchType==="onesie"||g.kt(y.KK)&&(to(-1)>=1080||q.osid))return tk;var p=g.wm(y.KK.experiments,"html5_autonav_quality_cap"),v=g.wm(y.KK.experiments,"html5_autonav_cap_idle_secs");return p&&q.isAutonav&&Lb()/1E3>v?(Q&&(p=gYp(y,Q,p)),new Mm(0,p,!1,"e")):tk}; gYp=function(y,q,Q){if(y.L("html5_optimality_defaults_chooses_next_higher")&&Q)for(y=q.K.videoInfos,q=1;q=0||(y.provider.WI.getVisibilityState()===3?y.J=!0:(y.K=g.pO(y.provider),y.delay.start()))}; XX9=function(y){if(!(y.W<0)){var q=g.pO(y.provider),Q=q-y.Y;y.Y=q;y.playerState.state===8?y.playTimeSecs+=Q:y.playerState.isBuffering()&&!g.G(y.playerState,16)&&(y.rebufferTimeSecs+=Q)}}; mri=function(y){var q;switch((q=y.KK.playerCanaryStage)==null?void 0:q.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; C5g=function(y){this.provider=y;this.X=!1;this.K=0;this.Y=-1;this.nH=NaN;this.N=0;this.segments=[];this.G=this.J=0;this.previouslyEnded=!1;this.j=this.provider.WI.getVolume();this.C=this.provider.WI.isMuted()?1:0;this.W=kY(this.provider)}; LO=function(y){y.W.startTime=y.N;y.W.endTime=y.K;var q=!1;y.segments.length&&g.xq(y.segments).isEmpty()?(y.segments[y.segments.length-1].previouslyEnded&&(y.W.previouslyEnded=!0),y.segments[y.segments.length-1]=y.W,q=!0):y.segments.length&&y.W.isEmpty()||(y.segments.push(y.W),q=!0);q?y.W.endTime===0&&(y.previouslyEnded=!1):y.W.previouslyEnded&&(y.previouslyEnded=!0);y.J+=y.K-y.N;y.W=kY(y.provider);y.W.previouslyEnded=y.previouslyEnded;y.previouslyEnded=!1;y.N=y.K}; qhb=function(y){y5S(y);y.G=g.WF(function(){y.update()},100); y.nH=g.pO(y.provider);y.W=kY(y.provider)}; y5S=function(y){g.tM(y.G);y.G=NaN}; ji3=function(y,q,Q){Q-=y.nH;return q===y.K&&Q>.5}; QiD=function(y,q,Q,p){this.KK=q;this.T8=Q;this.segments=[];this.experimentIds=[];this.Ty=this.XL=this.isFinal=this.delayThresholdMet=this.Se=this.EW=this.autoplay=this.autonav=!1;this.Aw="yt";this.G=[];this.X=this.j=null;this.sendVisitorIdHeader=this.BI=!1;this.C=this.pageId="";this.J=Q==="watchtime";this.N=Q==="playback";this.Sj=Q==="atr";this.oo=Q==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Sj?"/api/stats/"+Q:"//"+q.IL+"/api/stats/"+Q;p&&(this.XL=p.fs,p.rtn&&(this.X=p.rtn),this.J?(this.playerState= p.state,p.rti>0&&(this.j=p.rti)):(this.t1=p.mos,this.QY=p.volume,p.at&&(this.adType=p.at)),p.autonav&&(this.autonav=p.autonav),p.inview!=null&&(this.F0=p.inview),p.size&&(this.Mz=p.size),p.playerwidth&&(this.eB=p.playerwidth),p.playerheight&&(this.cn=p.playerheight));this.ra=g.KM(q.K);this.C=ag(q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.C==="all"||this.C==="once")this.hw=g.KM(q.Se);this.Bn=q.b9;this.experimentIds=dDf(q.experiments);this.HI=q.I7;this.Aw=q.cI;this.region=q.region; this.userAge=q.userAge;this.Os=q.W_;this.I7=Lb();this.sendVisitorIdHeader=q.sendVisitorIdHeader;this.gp=q.L("vss_pings_using_networkless")||q.L("kevlar_woffle");this.Hn=q.L("vss_final_ping_send_and_write");this.Es=q.L("vss_use_send_and_write");this.pageId=q.pageId;this.zI=q.L("vss_playback_use_send_and_write");q.livingRoomAppMode&&(this.livingRoomAppMode=q.livingRoomAppMode);this.b9=q.Y&&q.L("embeds_append_synth_ch_headers");g.d1(q)&&(this.LK=q.Sj);g.f_(g.h6(q))&&this.G.push(1);this.accessToken=g.$W(y); y.dY[this.T8]?this.Y=y.dY[this.T8]:y.dY.playback&&(this.Y=y.dY.playback);this.adFormat=y.adFormat;this.adQueryId=y.adQueryId;this.autoplay=jrD(y);this.N&&(this.EW=y.SW&&FQ(y)==="adunit"?!0:!1);this.autonav=y.isAutonav||this.autonav;this.contentVideoId=f$(y);this.clientPlaybackNonce=y.clientPlaybackNonce;this.Se=y.cO;y.G&&(this.N$=y.G,this.RH=y.t0);y.mdxEnvironment&&(this.mdxEnvironment=y.mdxEnvironment);this.K=y.ra;this.cB=y.cB;y.W&&(this.Kg=y.W.itag,y.Y&&y.Y.itag!==this.Kg&&(this.q$=y.Y.itag));y.K&& c_(y.K)&&(this.offlineDownloadUserChoice="1");this.eventLabel=FQ(y);this.Ty=y.zI?!1:y.QY;this.zf=y.b2;if(q=CL(y))this.YW=q;this.Wn=y.BL;this.partnerId=y.partnerId;this.eventId=y.eventId;this.playlistId=y.VM||y.playlistId;this.SS=y.SS;this.MB=y.MB;this.k9=y.k9;this.yA=y.yA;this.subscribed=y.subscribed;this.videoId=y.videoId;this.videoMetadata=y.videoMetadata;this.visitorData=y.visitorData;this.osid=y.osid;this.yT=y.yT;this.referrer=y.referrer;this.Or=y.aA||y.Or;this.Dw=y.gN;this.P1=y.P1;this.userGenderAge= y.userGenderAge;this.Za=y.Za;this.embedsRct=y.embedsRct;this.embedsRctn=y.embedsRctn;g.d1(this.KK)&&y.mutedAutoplay&&(y.mutedAutoplayDurationMode===2&&y.limitedPlaybackDurationInSeconds===0&&y.endSeconds===0?this.G.push(7):this.G.push(2));y.isEmbedsShortsMode(new g.Gq(this.eB,this.cn),!!this.playlistId)&&this.G.push(3);g.N4(y)&&this.G.push(4);this.Vm=y.DK;y.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=y.compositeLiveIngestionOffsetToken)}; pM8=function(y,q){var Q=y.sendVisitorIdHeader?y.visitorData:void 0;return g.Is(y.KK,y.accessToken).then(function(p){return VY8(y.uri,y.KK,y.pageId,Q,p,q,y.b9)})}; TI9=function(y,q){return function(){y.KK.L("html5_simplify_pings")?(y.K=y.vI,y.BT=q(),y.I7=0,y.send()):pM8(y).then(function(Q){var p=v_s(y);p.cmt=p.len;p.lact="0";var v=q().toFixed(3);p.rt=Number(v).toString();p=g.kb(y.uri,p);y.KK.L("vss_through_gel_double")&&d0f(p);y.gp?(Q==null&&(Q={}),y.Es?PV().sendAndWrite(p,Q):PV().sendThenWrite(p,Q)):Q?g.HF(p,Q):g.n0(p)})}}; v_s=function(y){var q={ns:y.Aw,el:y.eventLabel,cpn:y.clientPlaybackNonce,ver:2,cmt:y.W(y.K),fmt:y.Kg,fs:y.XL?"1":"0",rt:y.W(y.BT),adformat:y.adFormat,content_v:y.contentVideoId,euri:y.Bn,lact:y.I7,live:y.YW,cl:(805151667).toString(),mos:y.t1,state:y.playerState,volume:y.QY};y.subscribed&&(q.subscribed="1");Object.assign(q,y.ra);y.C==="all"?Object.assign(q,y.hw):y.C==="once"&&y.N&&Object.assign(q,y.hw);y.autoplay&&(q.autoplay="1");y.EW&&(q.sautoplay="1");y.Se&&(q.dni="1");!y.J&&y.LK&&(q.epm=VH8[y.LK]); y.isFinal&&(q["final"]="1");y.Ty&&(q.splay="1");y.cB&&(q.delay=y.cB);y.HI&&(q.hl=y.HI);y.region&&(q.cr=y.region);y.userGenderAge&&(q.uga=y.userGenderAge);y.userAge!==void 0&&y.Os&&(q.uga=y.Os+y.userAge);y.vI!==void 0&&(q.len=y.W(y.vI));!y.J&&y.experimentIds.length>0&&(q.fexp=y.experimentIds.toString());y.X!==null&&(q.rtn=y.W(y.X));y.Or&&(q.feature=y.Or);y.MB&&(q.ctrl=y.MB);y.k9&&(q.ytr=y.k9);y.q$&&(q.afmt=y.q$);y.offlineDownloadUserChoice&&(q.ODUC=y.offlineDownloadUserChoice);y.cI&&(q.lio=y.W(y.cI)); y.J?(q.idpj=y.zf,q.ldpj=y.Wn,y.delayThresholdMet&&(q.dtm="1"),y.j!=null&&(q.rti=y.W(y.j)),y.Za&&(q.ald=y.Za),y.compositeLiveIngestionOffsetToken&&(q.clio=y.compositeLiveIngestionOffsetToken)):y.adType!==void 0&&(q.at=y.adType);y.Mz&&(y.N||y.J)&&(q.size=y.Mz);y.N&&y.G.length&&(q.pbstyle=y.G.join(","));y.F0!=null&&(y.N||y.J)&&(q.inview=y.W(y.F0));y.J&&(q.volume=aB(y,g.W5(y.segments,function(p){return p.volume})),q.st=aB(y,g.W5(y.segments,function(p){return p.startTime})),q.et=aB(y,g.W5(y.segments,function(p){return p.endTime})), XH(y.segments,function(p){return p.playbackRate!==1})&&(q.rate=aB(y,g.W5(y.segments,function(p){return p.playbackRate}))),XH(y.segments,function(p){return p.K!=="-"})&&(q.als=g.W5(y.segments,function(p){return p.K}).join(",")),XH(y.segments,function(p){return p.previouslyEnded})&&(q.pe=g.W5(y.segments,function(p){return""+ +p.previouslyEnded}).join(","))); q.muted=aB(y,g.W5(y.segments,function(p){return p.muted?1:0})); XH(y.segments,function(p){return p.visibilityState!==0})&&(q.vis=aB(y,g.W5(y.segments,function(p){return p.visibilityState}))); XH(y.segments,function(p){return p.connectionType!==0})&&(q.conn=aB(y,g.W5(y.segments,function(p){return p.connectionType}))); XH(y.segments,function(p){return p.W!==0})&&(q.blo=aB(y,g.W5(y.segments,function(p){return p.W}))); XH(y.segments,function(p){return!!p.Y})&&(q.blo=g.W5(y.segments,function(p){return p.Y}).join(",")); XH(y.segments,function(p){return!!p.compositeLiveStatusToken})&&(q.cbs=g.W5(y.segments,function(p){return p.compositeLiveStatusToken}).join(",")); XH(y.segments,function(p){return!!p.heartbeatLoggingToken})&&(q.hb_data=g.W5(y.segments,function(p){return p.heartbeatLoggingToken}).join(",")); XH(y.segments,function(p){return p.N!=="-"})&&(q.cc=g.W5(y.segments,function(p){return p.N}).join(",")); XH(y.segments,function(p){return p.clipId!=="-"})&&(q.clipid=g.W5(y.segments,function(p){return p.clipId}).join(",")); if(XH(y.segments,function(p){return!!p.audioId})){var Q="au"; y.N&&(Q="au_d");q[Q]=g.W5(y.segments,function(p){return p.audioId}).join(",")}JM()&&y.N$&&(q.ctt=y.N$,q.cttype=y.RH,q.mdx_environment=y.mdxEnvironment); y.oo&&(q.etype=y.m3!==void 0?y.m3:0);y.Dw&&(q.uoo=y.Dw);y.livingRoomAppMode&&y.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(q.clram=OV8[y.livingRoomAppMode]||y.livingRoomAppMode);y.Y?wMb(y,q):(q.docid=y.videoId,q.referrer=y.referrer,q.ei=y.eventId,q.of=y.yT,q.osid=y.osid,q.vm=y.videoMetadata,y.adQueryId&&(q.aqi=y.adQueryId),y.autonav&&(q.autonav="1"),y.playlistId&&(q.list=y.playlistId),y.yA&&(q.ssrt="1"),y.P1&&(q.upt=y.P1));y.N&&(y.embedsRct&&(q.rct=y.embedsRct),y.embedsRctn&&(q.rctn= y.embedsRctn),y.compositeLiveIngestionOffsetToken&&(q.clio=y.compositeLiveIngestionOffsetToken));y.Vm&&(q.host_cpn=y.Vm);return q}; wMb=function(y,q){if(q&&y.Y){var Q=new Set(["q","feature","mos"]),p=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),v=new Set(["aqi","autonav","list","ssrt","upt"]);y.Y.ns==="3pp"&&(q.ns="3pp");for(var d=g.t(Object.keys(y.Y)),T=d.next();!T.done;T=d.next())T=T.value,p.has(T)||Q.has(T)||v.has(T)&&!y.Y[T]||(q[T]=y.Y[T])}}; aB=function(y,q){return g.W5(q,y.W).join(",")}; d0f=function(y){y.indexOf("watchtime")!==-1&&g.wU("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:y}})}; J5f=function(y,q){y.attestationResponse&&pM8(y).then(function(Q){Q=Q||{};Q.method="POST";Q.postParams={atr:y.attestationResponse};y.gp?y.Es?PV().sendAndWrite(q,Q):PV().sendThenWrite(q,Q):g.HF(q,Q)})}; Nr=function(y){g.I.call(this);this.provider=y;this.G="paused";this.J=NaN;this.X=[10,10,10,40];this.j=this.C=0;this.N$=this.Sj=this.m3=this.cI=this.N=!1;this.W=this.Y=NaN;this.logger=new g.L5("vss");this.K=new C5g(y)}; Fxs=function(y){var q=y.provider.videoData.b2,Q=y.provider.videoData.BL,p=[10+q,10,10,40+Q-q,40],v,d=(v=y.provider.videoData.getPlayerResponse())==null?void 0:v.playbackTracking,T=d==null?void 0:d.videostatsScheduledFlushWalltimeSeconds;v=d==null?void 0:d.videostatsDefaultFlushIntervalSeconds;if(!(T&&T.length>0&&v))return p;q=[T[0]+q].concat(g.hH(T.slice(1).map(function(O,w){return O-T[w]})),[v+Q-q, v]);return q.some(function(O){return O<0})?(g.a8(y.logger,347111855,"Neg vss scheduled pings "+T+" "+v),p):q}; SF=function(y,q){q=q===void 0?NaN:q;var Q=g.pO(y.provider);q=isNaN(q)?Q:q;q=Math.ceil(q);var p=y.X[y.C];y.C+11E3;!(d.length>1)&&d[0].isEmpty()||O||(T.X=SF(y,v));T.send();y.j++}},(v-Q)*1E3); return y.Y=v}; HX=function(y){g.Z1(y.J);y.J=NaN}; Yh9=function(y){y.K.update();y=y.K;y.segments.length&&y.K===y.N||LO(y);var q=y.segments;y.segments=[];return q}; RB=function(y,q){var Q=hM9(y.provider);Object.assign(Q,{state:y.G});q=new QiD(y.provider.videoData,y.provider.KK,q,Q);q.K=y.provider.WI.Uu();Q=y.provider.videoData.clientPlaybackNonce;q.K=y.provider.WI.p_(Q);y.provider.videoData.isLivePlayback||(q.vI=y.provider.WI.getDuration(Q));y.provider.videoData.K&&(Q=y.provider.videoData.K.Sb(q.K))&&(q.cI=Q-q.K,y.provider.KK.L("html5_disable_live_dvr_shrink_for_cdm_vss")&&If(y.provider.videoData)&&(q.K+=y.provider.WI.bj(),q.cI-=y.provider.WI.bj()));q.BT=g.pO(y.provider); q.segments=[kY(y.provider)];return q}; fzj=function(y,q){var Q=RB(y,"watchtime");bV9(y)&&(Q.delayThresholdMet=!0,y.m3=!0);if(y.W>0){for(var p=g.t(q),v=p.next();!v.done;v=p.next())v=v.value,v.startTime-=y.W,v.endTime-=y.W;Q.K-=y.W}else Q.K=y.K.K;Q.segments=q;return Q}; s_=function(y,q){var Q=$0f(y,!isNaN(y.Y));q&&(y.Y=NaN);return Q}; $0f=function(y,q){var Q=fzj(y,Yh9(y));!isNaN(y.Y)&&q&&(Q.j=y.Y);return Q}; bV9=function(y){var q;if(q=y.provider.videoData.isLoaded()&&y.provider.videoData.cB&&y.N&&!y.m3)q=y.K,q=q.J+q.Uu()-q.N>=y.provider.videoData.cB;return!!q}; x0j=function(y){y.provider.videoData.youtubeRemarketingUrl&&!y.Sj&&(Kx3(y,y.provider.videoData.youtubeRemarketingUrl),y.Sj=!0)}; Wx9=function(y){y.provider.videoData.googleRemarketingUrl&&!y.N$&&(Kx3(y,y.provider.videoData.googleRemarketingUrl),y.N$=!0)}; ZVH=function(y){if(!y.iB()&&y.N){y.G="paused";var q=s_(y);q.isFinal=!0;q.send();y.dispose()}}; tH9=function(y,q){if(!y.iB())if(g.G(q.state,2)||g.G(q.state,512)){if(y.G="paused",g.Ks(q,2)||g.Ks(q,512))g.Ks(q,2)&&(y.K.previouslyEnded=!0),y.N&&(HX(y),s_(y).send(),y.Y=NaN)}else if(g.G(q.state,8)){y.G="playing";var Q=y.N&&isNaN(y.J)?SF(y):NaN;if(!isNaN(Q)&&($z(q,64)<0||$z(q,512)<0)){var p=$0f(y,!1);p.X=Q;p.send()}g.Ks(q,16)&&q.state.seekSource===58&&(y.K.previouslyEnded=!0)}else y.G="paused"}; E_3=function(y,q,Q){if(!y.cI){Q||(Q=RB(y,"atr"));Q.attestationResponse=q;try{Q.send()}catch(p){if(p.message!=="Unknown Error")throw p;}y.cI=!0}}; Kx3=function(y,q){var Q=y.provider.KK;g.Is(y.provider.KK,g.$W(y.provider.videoData)).then(function(p){var v=y.provider.KK.pageId,d=y.provider.KK.sendVisitorIdHeader?y.provider.videoData.visitorData:void 0,T=y.provider.KK.L("vss_pings_using_networkless")||y.provider.KK.L("kevlar_woffle"),O=y.provider.KK.L("allow_skip_networkless");p=VY8(q,Q,v,d,p);O$9(q,p,{token:y.provider.videoData.G,yb:y.provider.videoData.t0,mdxEnvironment:y.provider.videoData.mdxEnvironment},Q,void 0,T&&!O,!1,!0)})}; kp9=function(){this.endTime=this.startTime=-1;this.N="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.W=0;this.muted=!1;this.K=this.clipId="-";this.previouslyEnded=!1}; Mr=function(y,q,Q){this.videoData=y;this.KK=q;this.WI=Q;this.K=void 0}; g.pO=function(y){return Lx9(y)()}; Lx9=function(y){if(!y.K){var q=g.Yq(function(p){var v=(0,g.SK)();p&&v<=631152E6&&(y.WI.Rb("ytnerror",{issue:28799967,value:""+v}),v=(new Date).getTime()+2);return v},y.KK.L("html5_validate_yt_now")),Q=q(); y.K=function(){return Math.round(q()-Q)/1E3}; y.WI.So()}return y.K}; hM9=function(y){var q=y.WI.YM()||{};q.fs=y.WI.Au();q.volume=y.WI.getVolume();q.muted=y.WI.isMuted()?1:0;q.mos=q.muted;q.clipid=y.WI.X7();var Q;q.playerheight=((Q=y.WI.getPlayerSize())==null?void 0:Q.height)||0;var p;q.playerwidth=((p=y.WI.getPlayerSize())==null?void 0:p.width)||0;y=y.videoData;Q={};y.W&&(Q.fmt=y.W.itag,y.Y&&(y.T8?y.Y.itag!==y.W.itag:y.Y.itag!=y.W.itag)&&(Q.afmt=y.Y.itag));Q.ei=y.eventId;Q.list=y.playlistId;Q.cpn=y.clientPlaybackNonce;y.videoId&&(Q.v=y.videoId);y.Db&&(Q.infringe=1); (y.zI?0:y.QY)&&(Q.splay=1);(p=CL(y))&&(Q.live=p);y.SW&&(Q.sautoplay=1);y.KU&&(Q.autoplay=1);y.SS&&(Q.sdetail=y.SS);y.partnerId&&(Q.partnerid=y.partnerId);y.osid&&(Q.osid=y.osid);y.q_&&(Q.cc=g.RT9(y.q_));return Object.assign(q,Q)}; W_j=function(y){var q=IIf();if(q)return azj[q]||azj.other;if(g.kt(y.KK)){y=navigator.userAgent;if(/[Ww]ireless[)]/.test(y))return 3;if(/[Ww]ired[)]/.test(y))return 30}return 0}; kY=function(y){var q=new kp9,Q;q.N=((Q=hM9(y).cc)==null?void 0:Q.toString())||"-";q.playbackRate=y.WI.getPlaybackRate();Q=y.WI.getVisibilityState();Q!==0&&(q.visibilityState=Q);y.KK.Dw&&(q.W=1);q.Y=y.videoData.ZZ;q.compositeLiveStatusToken=y.videoData.compositeLiveStatusToken;q.heartbeatLoggingToken=y.videoData.heartbeatLoggingToken;Q=y.WI.getAudioTrack();Q.ZG&&Q.ZG.id&&Q.ZG.id!=="und"&&(q.audioId=Q.ZG.id);q.connectionType=W_j(y);q.volume=y.WI.getVolume();q.muted=y.WI.isMuted();q.clipId=y.WI.X7()|| "-";q.K=y.videoData.AE||"-";return q}; g.l5=function(y,q){g.I.call(this);var Q=this;this.provider=y;this.N=new Map;this.l6=new g.nj;this.je={ElK:function(){return Q.qoe}, AlI:function(){return Q.K}, NQK:function(){return Q.W}}; this.provider.videoData.hj()&&!this.provider.videoData.Oa&&(this.K=new Nr(this.provider),this.K.W=0,g.n(this,this.K),this.qoe=new g.jF(this.provider,q),g.n(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.B3=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.B3,this.K));if(y.KK.playerCanaryState==="canary"||y.KK.playerCanaryState==="holdback")this.W=new E_(this.provider),g.n(this,this.W)}; NIi=function(y){y.W&&iOs(y.W);y.qoe&&sF2(y.qoe)}; Sh3=function(y){y.W&&y.W.send();if(y.qoe){var q=y.qoe;if(q.Y){q.l6==="PL"&&(q.l6="N");var Q=g.pO(q.provider);g.qr(q,Q,"vps",[q.l6]);q.X||(q.N>=0&&q.K.set("user_intent",[q.N.toString()]),q.X=!0);q.provider.KK.U9()&&q.Rb("finalized",{});q.gp=!0;q.reportStats(Q)}}if(y.provider.videoData.enableServerStitchedDai)for(q=g.t(y.N.values()),Q=q.next();!Q.done;Q=q.next())ZVH(Q.value);else y.K&&ZVH(y.K);y.dispose()}; HV8=function(y,q,Q){switch(q){case "M":var p;(p=y.qoe)==null||MY2(p,q,Q);break;case "A":var v;(v=y.qoe)==null||MY2(v,q)}}; RMf=function(y,q){y.K&&E_3(y.K,q)}; sig=function(y){if(!y.K)return null;var q=RB(y.K,"atr");return function(Q){y.K&&E_3(y.K,Q,q)}}; MHp=function(y,q,Q,p){Q.adFormat=Q.b9;var v=q.WI;q=new Nr(new Mr(Q,q.KK,{getDuration:function(){return Q.lengthSeconds}, getCurrentTime:function(){return v.getCurrentTime()}, Uu:function(){return v.Uu()}, p_:function(){return v.p_()}, Dg:function(){return v.Dg()}, getPlayerSize:function(){return v.getPlayerSize()}, getAudioTrack:function(){return Q.getAudioTrack()}, getPlaybackRate:function(){return v.getPlaybackRate()}, Oj:function(){return v.Oj()}, getVisibilityState:function(){return v.getVisibilityState()}, FD:function(){return v.FD()}, YM:function(){return v.YM()}, getVolume:function(){return v.getVolume()}, isMuted:function(){return v.isMuted()}, Au:function(){return v.Au()}, X7:function(){return v.X7()}, getProximaLatencyPreference:function(){return v.getProximaLatencyPreference()}, So:function(){v.So()}, Rb:function(d,T){v.Rb(d,T)}, vl:function(){return v.vl()}, bj:function(){return v.bj()}})); q.W=p;g.n(y,q);return q}; lzf=function(){this.lJ=0;this.Y=this.N=this.nW=this.Ug=this.W=NaN;this.K={};this.bandwidthEstimate=NaN}; zMD=function(){this.K=g.qV;this.array=[]}; uFD=function(y,q,Q){var p=[];for(q=D0g(y,q);qQ)break}return p}; zP=function(y,q){var Q=[];y=g.t(y.array);for(var p=y.next();!p.done&&!(p=p.value,p.contains(q)&&Q.push(p),p.start>q);p=y.next());return Q}; Izf=function(y){return y.array.slice(D0g(y,0x7ffffffffffff),y.array.length)}; D0g=function(y,q){y=Be(y.array,function(Q){return q-Q.start||1}); return y<0?-(y+1):y}; n_i=function(y,q){var Q=NaN;y=g.t(y.array);for(var p=y.next();!p.done;p=y.next())if(p=p.value,p.contains(q)&&(isNaN(Q)||p.endq&&(isNaN(Q)||p.starty.mediaTime+y.J&&q1)y.Y=!0;if((v===void 0?0:v)||isNaN(y.W))y.W=q;if(y.K)q!==y.mediaTime&&(y.K=!1);else if(q>0&&y.mediaTime===q){v=1500;if(y.KK.L("html5_buffer_underrun_transition_fix")){v=g.wm(y.KK.experiments,"html5_min_playback_advance_for_steady_state_secs");var d=g.wm(y.KK.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");v=v>0&&d>0&&Math.abs(q-y.W)(p||!y.Y?v:400)}y.mediaTime=q;y.N=Q;return!1}; BIi=function(y,q){this.videoData=y;this.K=q}; Gpf=function(y,q,Q){return q.Ek(Q).then(function(){return ub(new BIi(q,q.N))},function(p){p instanceof Error&&g.zI(p); var v=aZ('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),d=S6('audio/mp4; codecs="mp4a.40.2"'),T=v||d,O=q.isLivePlayback&&!g.Hg(y.J,!0);p="fmt.noneavailable";O?p="html5.unsupportedlive":T||(p="html5.missingapi");T=O||!T?2:1;v={buildRej:"1",a:q.p$(),d:!!q.Aw,drm:q.AR(),f18:q.t1.indexOf("itag=18")>=0,c18:v};q.K&&(q.AR()?(v.f142=!!q.K.K["142"],v.f149=!!q.K.K["149"],v.f279=!!q.K.K["279"]):(v.f133=!!q.K.K["133"],v.f140=!!q.K.K["140"],v.f242=!!q.K.K["242"]),v.cAAC=d,v.cAVC=S6('video/mp4; codecs="avc1.42001E"'), v.cVP9=S6('video/webm; codecs="vp9"'));q.J&&(v.drmsys=q.J.keySystem,d=0,q.J.K&&(d=Object.keys(q.J.K).length),v.drmst=d);return new g.t7(p,v,T)})}; IB=function(y){this.data=window.Float32Array?new Float32Array(y):Array(y);this.W=this.K=y-1}; PLg=function(y){return y.data[y.K]||0}; iVD=function(y){this.J=y;this.N=this.W=0;this.Y=new IB(50)}; gA=function(y,q,Q){g.V6.call(this);this.videoData=y;this.experiments=q;this.J=Q;this.W=[];this.cE=0;this.N=!0;this.Y=!1;this.G=0;Q=new XMH;y.latencyClass==="ULTRALOW"&&(Q.C=!1);y.Os?Q.N=3:g.p$(y)&&(Q.N=2);y.latencyClass==="NORMAL"&&(Q.J=!0);Q.cI=nL(y);if(y.latencyClass==="LOW"||y.latencyClass==="ULTRALOW")Q.J=!0;var p=g.wm(q,"html5_liveness_drift_proxima_override");if(B3(y)!==0&&p){Q.K=p;var v;((v=y.K)==null?0:W8g(v))&&Q.K--}nL(y)&&q.ob("html5_sabr_parse_live_metadata_playback_boundaries")&&(Q.N$= !0);if(g.BF("trident/")||g.BF("edge/"))v=g.wm(q,"html5_platform_minimum_readahead_seconds")||3,Q.Y=Math.max(Q.Y,v);g.wm(q,"html5_minimum_readahead_seconds")&&(Q.Y=g.wm(q,"html5_minimum_readahead_seconds"));g.wm(q,"html5_maximum_readahead_seconds")&&(Q.j=g.wm(q,"html5_maximum_readahead_seconds"));if(q=g.wm(q,"html5_liveness_drift_chunk_override"))Q.K=q;Ak(y)&&(Q.K=(Q.K+1)/5,y.latencyClass==="LOW"&&(Q.K*=2));!nL(y)||y.latencyClass!=="ULTRALOW"&&y.latencyClass!=="LOW"||(Q.X=3,Q.G=25);this.policy=Q;this.X= this.policy.N!==1;this.K=nO(this,m02(this,isNaN(y.liveChunkReadahead)?3:y.liveChunkReadahead,y))}; CL9=function(y,q){if(q)return q=y.videoData,q=m02(y,isNaN(q.liveChunkReadahead)?3:q.liveChunkReadahead,q),nO(y,q);if(y.W.length){if(Math.min.apply(null,y.W)>1)return nO(y,y.K-1);if(y.policy.C)return nO(y,y.K+1)}return y.K}; yIg=function(y,q){if(!y.W.length)return!1;var Q=y.K;y.K=CL9(y,q===void 0?!1:q);if(q=Q!==y.K)y.W=[],y.cE=0;return q}; U_=function(y,q){return q>=y.E8()-cX(y)}; qG3=function(y,q,Q){q=U_(y,q);Q||q?q&&(y.N=!0):y.N=!1;y.X=y.policy.N===2||y.policy.N===3&&y.N}; jHH=function(y,q){q=U_(y,q);y.Y!==q&&y.publish("livestatusshift",q);y.Y=q}; cX=function(y){var q=y.policy.K;y.Y||(q=Math.max(q-1,0));return q*rA(y)}; m02=function(y,q,Q){Q.Os&&q--;Ak(Q)&&(q=1);if(B3(Q)!==0&&(y=g.wm(y.experiments,"html5_live_chunk_readahead_proxima_override"))){q=y;var p;((p=Q.K)==null?0:W8g(p))&&q++}return q}; rA=function(y){return y.videoData.K?ms(y.videoData.K)||5:5}; nO=function(y,q){q=Math.max(Math.max(1,Math.ceil(y.policy.Y/rA(y))),q);return Math.min(Math.min(8,Math.floor(y.policy.j/rA(y))),q)}; XMH=function(){this.Y=0;this.j=Infinity;this.C=!0;this.W=this.K=2;this.N=1;this.J=!1;this.G=10;this.N$=!1;this.X=1;this.cI=!1}; eF=function(y){g.I.call(this);this.WI=y;this.K=0;this.W=null;this.G=this.Y=0;this.N={};this.KK=this.WI.T();this.J=new g.y0(this.Jj,1E3,this);this.Ty=oB(this,"html5_seek_timeout_delay_ms");this.m3=oB(this,"html5_long_rebuffer_threshold_ms");this.BI=oB(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.Es=oB(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.LK=oB(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Se=oB(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.cI=oB(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.N$=new AD(2E4);this.vI=oB(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.HI=oB(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Vm=oB(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.gp=oB(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.C=oB(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.j=oB(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Dw=oB(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Os=oB(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.X=oB(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.q$=new AD(g.wm(this.KK.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.KK.L("html5_report_slow_ads_as_error"));this.cB=new AD(g.wm(this.KK.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.KK.L("html5_skip_slow_buffering_ad"));this.RH=oB(this,"html5_slow_start_timeout_delay_ms");this.Sj=oB(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.n(this,this.J)}; oB=function(y,q,Q){Q=Q===void 0?null:Q;var p=p===void 0?0:p;return new AD(g.wm(y.KK.experiments,q)||p,Q?y.KK.L(Q):!1)}; QH9=function(y,q){y.K=q}; BX=function(y,q,Q,p,v,d,T,O){q?q.test(Q)?(y.aB(v,q,T),q.G||d()):(!q.W||q.Y?Q=!1:(Q=(0,g.SK)(),p?q.K||(q.K=Q):q.K=0,d=!p&&Q-q.W>3E4,Q=q.K&&Q-q.K>1E3||d?q.Y=!0:!1),Q&&(O=Object.assign({},y.IH(q),O),O.wn=T,O.we=v,O.wsuc=p,y.WI.Rb("workaroundReport",O),p&&(q.reset(),y.N[v]=!1))):y.WI.SB("auth",2,"BROWSER_OR_EXTENSION_ERROR",Zr({source:"watchdog",name:T}))}; AD=function(y,q){this.G=q===void 0?!1:q;this.K=this.W=this.N=this.startTimestamp=0;this.Y=!1;this.J=Math.ceil(y/1E3)}; Tjj=function(y){g.I.call(this);var q=this;this.WI=y;this.C=this.K=this.loader=this.mediaElement=this.playbackData=null;this.N=0;this.J=this.m3=this.Y=null;this.gp=!1;this.RH=0;this.N$=!1;this.timestampOffset=0;this.j=!0;this.Vm=0;this.Ty=this.hw=!1;this.X=0;this.Dw=!1;this.Sj=0;this.je={e_:function(Q){return q.e_(Q)}}; this.KK=this.WI.T();this.videoData=this.WI.getVideoData();this.policy=new pT9;this.cI=new eF(this.WI);this.q$=this.LK=this.vI=this.G=this.W=NaN;this.Es=new g.y0(function(){v1b(q,!1)},2E3); this.Se=new g.y0(function(){GP(q)}); this.HI=new g.y0(function(){dQp(q,{})}); this.cB=NaN;this.Os=new g.y0(function(){var Q=q.KK.fF;Q.K+=1E4/36E5;Q.K-Q.N>1/6&&(c$S(Q),Q.N=Q.K);q.Os.start()},1E4); g.n(this,this.cI);g.n(this,this.Es);g.n(this,this.HI);g.n(this,this.Se);g.n(this,this.Os)}; wT8=function(y,q){y.playbackData=q;y.videoData.isLivePlayback&&(y.C=new iVD(function(){a:{if(y.playbackData&&y.playbackData.K.K){if(of(y.videoData)&&y.loader){var p=y.loader.HS.Io()||0;break a}if(y.videoData.K){p=y.videoData.K.Es;break a}}p=0}return p}),y.K=new gA(y.videoData,y.KK.experiments,function(){return y.WO(!0)})); if(PX(y.WI)){var Q;(Q=y.videoData.c9)!=null&&Q.n9||(q=VW8(y),q.Eq?(nL(y.videoData)&&y.W7(q.Eq,q.startSeconds),y.N=q.startSeconds):q.startSeconds>0&&y.seekTo(q.startSeconds,{tU:"seektimeline_startPlayback",seekSource:15}));y.j=!1}else OC2(y)||(y.N=y.N||y.videoData.startSeconds||0,y.videoData.isLivePlayback||(q=y.WI.videoData.WO(),y.N>q&&(y.L("html5_sabr_log_invalid_sabr_current_time")&&y.WI.Rb("invalidSabrCmtStart",{rt:y.N,mst:q}),y.L("html5_sabr_vod_invalid_start_time_fallback")&&(y.N=0))))}; Fe8=function(y,q){(y.loader=q)?JIf(y,!0):i5(y)}; fgp=function(y,q){var Q=y.getCurrentTime(),p=y.isAtLiveHead(Q);if(y.C&&p){var v=y.C;if(v.K&&!(Q>=v.W&&Q50&&v.W.shift())),v=y.K,qG3(v,Q,q===void 0?!0:q),jHH(v,Q),q&&v1b(y,!0));p!==y.hw&&(q=y.getCurrentTime()-y.q$<=500,Q=y.RH>=1E3,q||Q||(q=y.WI.G8,q.qoe&&(q=q.qoe,Q=g.pO(q.provider), g.qr(q,Q,"lh",[p?"1":"0"])),y.hw=p,y.RH++,y.q$=y.getCurrentTime()))}; v1b=function(y,q){if(y.K){var Q=y.K;var p=y.getCurrentTime(),v=Q.E8();var d=Q.policy.W;Q.Y||(d=Math.max(d-1,0));d*=rA(Q);p>=v-d||!Q.DX()?Q=pQ+1&&q0&&z$(y.mediaElement)>0&&(y.W=Xb(y,y.W,!1)),q=y.L("html5_pseudogapless_shorts_seek_to_next_start")&&(q==null?void 0:q.seekSource)===60,!y.mediaElement||!ZCC(y,q))y.Se.start(750);else if(!isNaN(y.W)&&isFinite(y.W)&&(q=y.LK-(y.W-y.timestampOffset),!(q===0||Math.abs(q)<.005)))if(q=y.mediaElement.getCurrentTime()-y.W,Math.abs(q)<=y.Vm||Math.abs(q)<.005)tWC(y);else{if(y.videoData.Mv)y.videoData.Mv= !1;else if(!rx(y.videoData)&&y.W>=y.WO()-.1){y.W=y.WO();y.Y.resolve(y.WO());y.KK.U9()&&y.WI.Rb("setEndedInSeek",{tgt:""+y.W,maxst:""+y.WO()});y.WI.Bh();return}try{var Q=y.W-y.timestampOffset;y.mediaElement.seekTo(Q);y.cI.K=Q;y.LK=Q;y.N=y.W;y.N$=!1}catch(p){}}}; ZCC=function(y,q){q=q===void 0?!1:q;if(!y.mediaElement||y.mediaElement.j0()===0||y.mediaElement.hasError())return!1;var Q=y.mediaElement.getCurrentTime()>0;return y.videoData.N&&y.videoData.N.K||y.videoData.isLivePlayback||!y.videoData.AR()?y.W>=0&&!q&&(q=y.mediaElement.D$(),q.length||!Q)?fj(q,y.W-y.timestampOffset):Q:Q}; tWC=function(y){y.Y&&(y.Y.resolve(y.mediaElement.getCurrentTime()),y.cI.W=null)}; xQC=function(y,q){y.J&&(y.J.resolve(q),y.WI.yv(),y.KK.U9()||Wes(y))&&(q=y.IH(),q["native"]=""+ +y.N$,q.otgt=""+(y.W+y.timestampOffset),y.WI.Rb("seekEnd",q));i5(y)}; i5=function(y){y.W=NaN;y.G=NaN;y.LK=NaN;y.Y=null;y.m3=null;y.J=null;y.gp=!1;y.N$=!1;y.Vm=0;y.Es.stop();y.HI.stop()}; kzH=function(y,q){var Q=y.mediaElement,p=q.type;switch(p){case "seeking":var v=Q.getCurrentTime()+y.timestampOffset;if(!y.Y||y.N$&&v!==y.W){y.Y=new M6;y.Y.then(function(T){xQC(y,T)},function(){i5(y)}); if(y.videoData.isAd()){var d;FG8({adCpn:y.videoData.clientPlaybackNonce,contentCpn:(d=y.videoData.DK)!=null?d:""},q.K)}y.LK=v;QH9(y.cI,Q.getCurrentTime());y.seekTo(v,{seekSource:104,tU:"seektimeline_mediaElementEvent"});y.N$=!0}break;case "seeked":tWC(y);break;case "loadedmetadata":PX(y.WI)||E1i(y);GP(y);break;case "progress":GP(y);break;case "pause":y.X=y.getCurrentTime()}y.X&&((p==="play"||p==="playing"||p==="timeupdate"||p==="progress")&&y.getCurrentTime()-y.X>10&&(y.L("html5_sky_skip_pause_jump")? y.WI.Rb("skipPauseJump",{evt:p,cmt:y.getCurrentTime(),lpt:y.X}):y.seekTo(y.X,{tU:"pauseJump"})),p!=="pause"&&p!=="play"&&p!=="playing"&&p!=="progress"&&(y.X=0))}; Le3=function(y){return(v4(y.videoData)||!!y.videoData.liveUtcStartSeconds)&&(!!y.videoData.liveUtcStartSeconds||OC2(y))&&!!y.videoData.K}; OC2=function(y){return!!y.videoData.startSeconds&&isFinite(y.videoData.startSeconds)&&y.videoData.startSeconds>1E9}; VW8=function(y){var q=0,Q=NaN,p="";if(!y.j)return{startSeconds:q,Eq:Q,source:p};y.videoData.m3?q=y.videoData.gp:rx(y.videoData)&&(q=Infinity);if(g.p$(y.videoData))return{startSeconds:q,Eq:Q,source:p};y.videoData.startSeconds?(p="ss",q=y.videoData.startSeconds):y.videoData.I7&&(p="stss",q=y.videoData.I7);y.videoData.liveUtcStartSeconds&&(Q=y.videoData.liveUtcStartSeconds);if(isFinite(q)&&(q>y.WO()||qy.WO()||Q 0?(p.onesie="0",y.handleError(new g.t7("html5.missingapi",p)),!1):!0}; zYH=function(y){var q=Vl();OY(q,y);return g.yL(q,rcD())}; sH9=function(y,q){var Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z,k,S,N,l,u,c,X,A,Tf,OC,pS,YD;return g.M(function(q9){if(q9.K==1)return q.fetchType="onesie",Q=ZZg(q,y.getPlayerSize(),y.getVisibilityState()),p=new aL(y,Q),g.R(q9,p.fetch(),2);v=q9.W;d={player_response:v};q.loading=!1;T=y.Z3.RU;if(p.eK){O=g.t(p.eK.entries());for(w=O.next();!w.done;w=O.next())J=w.value,F=g.t(J),Y=F.next().value,f=F.next().value,h=Y,b=f,T.K.set(h,b,180),h===q.videoId&&(Z=b.wP(),q.Bz=Z);T.eS=p}k=g.t(p.KN.entries());for(S=k.next();!S.done;S= k.next())N=S.value,l=g.t(N),u=l.next().value,c=l.next().value,X=u,A=c,T.W.set(X,A,180);g.af(q,d,!0);if(q.loading||k3(q))return q9.return(Promise.resolve());T.K.removeAll();T.W.removeAll();q.Bz=[];Tf={};OC="onesie.response";pS=0;q.errorCode?(OC="auth",Tf.ec=q.errorCode,Tf.ed=q.errorDetail,Tf.es=q.Fa||"",pS=2):(Tf.successButUnplayable="1",Tf.disposed=""+ +q.iB(),Tf.afmts=""+ +/adaptiveFormats/.test(v),Tf.cpn=q.clientPlaybackNonce);YD=new g.t7(OC,Tf,pS);return q9.return(Promise.reject(YD))})}; HCD=function(y,q){var Q,p,v,d,T,O,w,J,F,Y,f;return g.M(function(h){switch(h.K){case 1:Q=q.isAd(),p=!Q,v=Q?1:3,d=0;case 2:if(!(d0)){h.ej(5);break}return g.R(h,ow(5E3),6);case 6:T=new g.GH("Retrying OnePlatform request",{attempt:d}),g.zI(T);case 5:return g.EC(h,7),g.R(h,DQ2(y,q),9);case 9:return h.return();case 7:O=g.Rj(h);w=kp(O);J=w.errorCode;F=y.T();Y=F.L("html5_use_network_error_code_enums")?401:"401";p&&J==="manifest.net.badstatus"&&w.details.rc===Y&&(p=!1,d===v-1&&(v+= 1));if(d===v-1)return f=u5S(Q,w.details),f.details.backend="op",f.details.originec=J,h.return(Promise.reject(f));if(J==="auth"||J==="manifest.net.retryexhausted")return h.return(Promise.reject(w));y.handleError(w);if(EU(w.severity)){h.ej(4);break}case 3:d++;h.ej(2);break;case 4:return h.return(Promise.reject(u5S(Q,{backend:"op"})))}})}; DQ2=function(y,q){function Q(OC){OC.readyState===2&&y.d0("ps_c")} var p,v,d,T,O,w,J,F,Y,f,h,b,Z,k,S,N,l,u,c,X,A,Tf;return g.M(function(OC){switch(OC.K){case 1:q.fetchType="gp";p=y.T();v=g.Is(p,g.$W(q));if(!v.K){d=v.getValue();OC.ej(2);break}return g.R(OC,v.K,3);case 3:d=OC.W;case 2:return T=d,O=zYH(T),w=ZZg(q,y.getPlayerSize(),y.getVisibilityState()),J=g.dY(Igs),F=g.$W(q),Y=(0,g.SK)(),f=!1,h="empty",b=0,y.d0("psns"),Z={nu:Q},g.R(OC,g.rY(O,w,J,void 0,Z),4);case 4:k=OC.W;y.d0("psnr");if(q.iB())return OC.return();k?"error"in k&&k.error?(f=!0,h="esf:"+k.error.message, b=k.error.code):k.errorMetadata&&(f=!0,h="its",b=k.errorMetadata.status):f=!0;if(f)return S=0,N=((0,g.SK)()-Y).toFixed(),l={},l=p.L("html5_use_network_error_code_enums")?{backend:"op",rc:b,rt:N,reason:h,has_kpt:q.F0?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.XY("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:p.pageId?"1":"0",has_token:F?"1":"0",has_vvt:q.Es?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.MB||"",token_eq:F===g.$W(q)?"1":"0"}:{backend:"op", rc:""+b,rt:N,reason:h,has_kpt:q.F0?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.XY("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:p.pageId?"1":"0",has_token:F?"1":"0",has_vvt:q.Es?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.MB||"",token_eq:F===g.$W(q)?"1":"0"},u="manifest.net.connect",b===429?(u="auth",S=2):b>200&&(u="manifest.net.badstatus",b===400&&(S=2)),OC.return(Promise.reject(new g.t7(u,l,S)));q.loading=!1;g.af(q,{raw_player_response:k},!0); c=k;g.F_(q.T())&&c&&c.trackingParams&&YF(c.trackingParams);if(q.errorCode)return X={ec:q.errorCode,ed:q.errorDetail,es:q.Fa||""},OC.return(Promise.reject(new g.t7("auth",X,2)));if(!q.loading&&!k3(q))return A=q.isAd()?"auth":"manifest.net.retryexhausted",Tf=q.isAd()?2:1,OC.return(Promise.reject(new g.t7(A,{successButUnplayable:"1",hasMedia:g.q4(q)?"1":"0"},Tf)));g.tH(OC)}})}; SGs=function(y,q,Q){function p(b){b=kp(b);if(EU(b.severity))return Promise.reject(b);y.handleError(b);return!1} function v(){return!0} var d,T,O,w,J,F,Y,f,h;return g.M(function(b){switch(b.K){case 1:var Z=y.T();y.getPlayerSize();y.getVisibilityState();y.isFullscreen();if(q.partnerId===38&&Z.playerStyle==="books")Z=q.videoId.indexOf(":"),Z=g.kb("//play.google.com/books/volumes/"+q.videoId.slice(0,Z)+"/content/media",{aid:q.videoId.slice(Z+1),sig:q.YuV});else if(q.partnerId===30&&Z.playerStyle==="docs")Z=g.kb("https://docs.google.com/get_video_info",{docid:q.videoId,authuser:q.Nk,authkey:q.J1I,eurl:Z.b9});else if(q.partnerId===33&& Z.playerStyle==="google-live")Z=g.kb("//google-liveplayer.appspot.com/get_video_info",{key:q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+Z.cI);d=Z;O=(T=q.isAd())?1:3;w=0;case 2:if(!(w0)){b.ej(5);break}return g.R(b,ow(5E3),6);case 6:F={playerretry:w,playerretrysrc:Q},T||(F.recover="embedded"),J=Ox(d,F);case 5:return g.R(b,n1p(q,J).then(v,p),7);case 7:if(Y=b.W)return b.return();w++;b.ej(2);break;case 4:f=T?"auth":"manifest.net.retryexhausted";h= T?2:1;if(!T&&Math.random()<1E-4)try{g.zI(new g.GH("b/152131571",btoa(d)))}catch(k){}return b.return(Promise.reject(new g.t7(f,{backend:"gvi"},h)))}})}; n1p=function(y,q){function Q(k){return p(k.xhr)} function p(k){if(!y.iB()){k=k?k.status:-1;var S=0,N=((0,g.SK)()-F).toFixed();N=v.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:k,rt:N}:{backend:"gvi",rc:""+k,rt:N};var l="manifest.net.connect";k===429?(l="auth",S=2):k>200&&(l="manifest.net.badstatus",k===400&&(S=2));return Promise.reject(new g.t7(l,N,S))}} var v,d,T,O,w,J,F,Y,f,h,b,Z;return g.M(function(k){if(k.K==1){y.fetchType="gvi";v=y.T();var S={};y.ud&&(S.ytrext=y.ud);(O=g.hn(S)?void 0:S)?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:O},T=Ox(q,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},T=q);w={};v.sendVisitorIdHeader&&y.visitorData&&(w["X-Goog-Visitor-Id"]=y.visitorData);(J=ag(v.experiments,"debug_sherlog_username"))&&(w["X-Youtube-Sherlog-Username"]=J);Object.keys(w).length> 0&&(d.headers=w);F=(0,g.SK)();return g.R(k,n5(M7,T,d).then(void 0,Q),2)}Y=k.W;if(!Y||!Y.responseText)return k.return(p(Y));y.loading=!1;f=vF(Y.responseText);g.af(y,f,!0);if(y.errorCode)return h={ec:y.errorCode,ed:y.errorDetail,es:y.Fa||""},k.return(Promise.reject(new g.t7("auth",h,2)));if(!y.loading&&!k3(y))return b=y.isAd()?"auth":"manifest.net.retryexhausted",Z=y.isAd()?2:1,k.return(Promise.reject(new g.t7(b,{successButUnplayable:"1"},Z)));g.tH(k)})}; u5S=function(y,q){return new g.t7(y?"auth":"manifest.net.retryexhausted",q,y?2:1)}; jH=function(y,q,Q){Q=Q===void 0?!1:Q;var p,v,d,T;g.M(function(O){if(O.K==1){p=y.T();if(Q&&(!g.Rs(p)||FQ(q)!=="embedded")||q.Fv||FQ(q)!=="adunit"&&(g.kt(p)||xo(p)||g.Us(p)||g.Hr(p)||g.Yo(p)||tB(p)==="WEB_CREATOR"))return O.return();v=g.Is(p,g.$W(q));return v.K?g.R(O,v.K,3):(d=v.getValue(),O.ej(2))}O.K!=2&&(d=O.W);T=d;return O.return(g1s(y,q,T))})}; g1s=function(y,q,Q){var p,v,d,T,O;return g.M(function(w){if(w.K==1){g.EC(w,2);p=zYH(Q);var J=q.T(),F=g.rf(),Y={context:g.RF(q),videoId:q.videoId,racyCheckOk:q.racyCheckOk,contentCheckOk:q.contentCheckOk,autonavState:"STATE_NONE"};FQ(q)==="adunit"&&(Y.isAdPlayback=!0);J.embedConfig&&(Y.serializedThirdPartyEmbedConfig=J.embedConfig);J.tT&&(Y.showContentOwnerOnly=!0);q.e7&&(Y.showShortsOnly=!0);F.Zm(141)&&(Y.autonavState=F.Zm(140)?"STATE_OFF":"STATE_ON");if(g.Nj(J)){F=F.Zm(65);F=F!=null?!F:!1;var f= !!g.uw("yt-player-sticky-caption");Y.captionsRequested=F&&f}var h;if(J=(h=J.getWebPlayerContextConfig())==null?void 0:h.encryptedHostFlags)Y.playbackContext={encryptedHostFlags:J};v=Y;d=g.dY(cIi);y.d0("wn_s");return g.R(w,g.rY(p,v,d),4)}if(w.K!=2)return T=w.W,y.d0("wn_r"),!T||"error"in T&&T.error||(O=T,g.F_(q.T())&&O.trackingParams&&YF(O.trackingParams),g.af(q,{raw_watch_next_response:T},!1)),g.Hp(w,0);g.Rj(w);g.tH(w)})}; UQ9=function(y){y.d0("vir");y.d0("ps_s");gY("vir",void 0,"video_to_ad");var q=lgf(y);q.then(function(){y.d0("virc");gY("virc",void 0,"video_to_ad");y.d0("ps_r");gY("ps_r",void 0,"video_to_ad")},function(){y.d0("virc"); gY("virc",void 0,"video_to_ad")}); return q}; g.vM=function(y,q,Q,p,v,d,T,O,w,J){w=w===void 0?new g.EB(y):w;J=J===void 0?!0:J;g.V6.call(this);var F=this;this.KK=y;this.playerType=q;this.gm=Q;this.kN=p;this.getVisibilityState=d;this.visibility=T;this.Z3=O;this.videoData=w;this.I$=J;this.logger=new g.L5("VideoPlayer");this.q4=null;this.q2=new xY;this.qr=null;this.dC=!0;this.Zw=this.loader=null;this.CO=[];this.I1=new q0;this.wd=this.Um=null;this.Oc=new q0;this.P5=null;this.q6=this.HM=!1;this.jO=NaN;this.vv=!1;this.playerState=new g.nj;this.KR=[]; this.Yg=new g.sU;this.mediaElement=null;this.Q1=this.w2=!1;this.DE=NaN;this.yC=!1;this.HY=0;this.U3=!1;this.Bi=NaN;this.Go=0;this.loop=!1;this.playbackRate=1;this.PU=0;this.tv=!1;this.q9=[];this.IP=this.Qa=0;this.S9=this.Ah=!1;this.nW=this.Ug=0;this.zT=!1;this.iW=this.G$=this.JZ=this.X0=null;this.ol=function(){var Y=F.G8;Y.provider.KK.cn||Y.provider.WI.getVisibilityState()===3||(Y.provider.KK.cn=!0);Y.Y4();if(Y.W){var f=Y.W;f.J&&f.K<0&&f.provider.WI.getVisibilityState()!==3&&iOs(f)}Y.qoe&&(Y=Y.qoe, Y.Ty&&Y.N<0&&Y.provider.KK.cn&&sF2(Y),Y.Y&&vX(Y));F.loader&&Qc(F);F.KK.dD&&!F.videoData.backgroundable&&F.mediaElement&&!F.yF()&&(F.isBackground()&&F.mediaElement.bR()?(F.Rb("bgmobile",{suspend:1}),F.BC(!0,!0)):F.isBackground()||pV(F)&&F.Rb("bgmobile",{resume:1}))}; this.je={fH:function(Y){F.fH(Y)}, Pkb:function(Y){F.q4=Y}, eY$:function(){return F.G8}, MX:function(){return F.Zw}, k0m:function(){return F.zi}, tdm:function(){return F.Ti}, Qky:function(){}, T:function(){return F.KK}, OW:function(){return F.mediaElement}, UuV:function(Y){F.u0(Y)}, BQs:function(){return F.kN}}; this.YE=new xrS(this);this.RX=new g.y0(this.q9w,15E3,this);this.MM=new mE(new Map([["bufferhealth",function(){return YGD(F.GD)}], ["bandwidth",function(){return F.Qh()}], ["networkactivity",function(){return F.KK.schedule.m3}], ["livelatency",function(){return F.isAtLiveHead()&&F.isPlaying()?rIs(F):NaN}], ["rawlivelatency",function(){return rIs(F)}]])); this.GD=new Tjj(this);this.Lj=new g.y0(this.Y5,0,this);this.cwI=[this.Yg,this.Lj,this.RX,this.MM];this.xq=new eMg(this.KK);this.cJ=new Z2(this.KK,this.kN,this);this.m0=new g.D2(this,function(Y,f){Y!==g.jw("endcr")||g.G(F.playerState,32)||F.Bh();v(Y,f,F.playerType);if(Y===g.jw("transitiondetector")&&(Y=F.loader)!=null&&(Y=Y.Ty)!=null){var h=g.t(Bx3(f.id));h.next();h=h.next().value;rki(Y,h,f.start/1E3-Y.WI.bj(),zWs(Y.N))}}); g.n(this,this.m0);g.n(this,this.GD);o1i(this,w);this.videoData.subscribe("dataupdated",this.K5j,this);this.videoData.subscribe("dataloaded",this.ND,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Rb,this);this.videoData.subscribe("ctmpstr",this.OU,this);!this.G8||this.G8.iB();this.G8=new g.l5(new Mr(this.videoData,this.KK,this));hcf(this.ol);this.visibility.subscribe("visibilitystatechange",this.ol);this.zi=new g.y0(this.H$,g.wm(this.KK.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Ti=new g.y0(this.H$,g.wm(this.KK.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.IJ=new g.pU(this.Rmm,350,this);g.n(this,this.IJ)}; o1i=function(y,q){if(y.playerType===2||y.KK.Yn)q.M5=!0;var Q=zTi(q.b9,q.nT,y.KK.Y,y.KK.C);Q&&(q.adFormat=Q);y.playerType===2&&(q.KU=!0);if(y.isFullscreen()||y.KK.Y)Q=g.uw("yt-player-autonavstate"),q.autonavState=Q||(y.KK.Y?2:y.videoData.autonavState);q.endSeconds&&q.endSeconds>q.startSeconds&&dI(y,q.endSeconds)}; AI2=function(y){var q=y.videoData;UQ9(y).then(void 0,function(Q){if(y.videoData===q&&!q.iB()){Q=kp(Q);var p=y.KK.L("html5_enable_lr_reload_side_sheet")&&y.videoData.errorDetail==="7";Q.errorCode==="auth"&&y.videoData.errorDetail&&!p?y.SB(Q.errorCode,2,unescape(y.videoData.errorReason),Zr(Q.details),y.videoData.errorDetail,y.videoData.Fa||void 0):y.handleError(Q)}})}; Gz9=function(y){if(!g.G(y.playerState,128))if(y.videoData.isLoaded(),y.CO=g.zX(y.videoData.Sj),g.q4(y.videoData)){y.gm.tick("bpd_s");Tp(y).then(function(){y.gm.tick("bpd_c");if(!y.iB()){y.HM&&(y.R7(UA(UA(y.playerState,512),1)),pV(y));var p=y.videoData;p.endSeconds&&p.endSeconds>p.startSeconds&&dI(y,p.endSeconds);y.I1.finished=!0;Vc(y,"dataloaded");y.Oc.Ag()&&eY9(y);P58(y.cJ,y.wd)}}); y.L("html5_log_media_perf_info")&&y.Rb("loudness",{v:y.videoData.Bn.toFixed(3)},!0);var q,Q=(q=y.mediaElement)==null?void 0:q.aH();if(Q&&"disablePictureInPicture"in Q&&y.KK.A0)try{Q.disablePictureInPicture=y.KK.dk&&!y.videoData.backgroundable}catch(p){g.zI(p)}Bj3(y);y.L("html5_enable_audio_feature_manager")&&(y.iW=new qu(y.videoData))}else Vc(y,"dataloaded")}; Tp=function(y){Oh(y);y.wd=null;var q=Gpf(y.KK,y.videoData,y.yF());y.Um=q;y.Um.then(function(Q){Pkj(y,Q)},function(Q){y.iB()||(Q=kp(Q),y.visibility.isBackground()?(wI(y,"vp_none_avail"),y.Um=null,y.I1.reset()):(y.I1.finished=!0,y.SB(Q.errorCode,Q.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Zr(Q.details))))}); return q}; Pkj=function(y,q){if(!y.iB()&&!q.videoData.iB()){y.wd=q;wT8(y.GD,y.wd);if(y.videoData.isLivePlayback){var Q=iCg(y.Z3.RU,y.videoData.videoId)||y.loader&&!isNaN(y.loader.gp);Q=y.L("html5_onesie_live")&&Q;PX(y)||y.videoData.RH>0&&!of(y.videoData)||Q||y.seekTo(y.WO(),{tU:"videoplayer_playbackData",seekSource:18})}if(y.videoData.N.K){if(VG9(y.videoData)){y.SB("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",Zr({missabrurl:1}));return}y.loader?g.zI(Error("Duplicated Loader")):(Q=g.wm(y.KK.experiments,"html5_onesie_defer_content_loader_ms"))&& y.Lm()&&iCg(y.Z3.RU,y.videoData.DKm)?g.xQ(function(){y.iB()||y.loader||XTD(y)},Q):XTD(y)}else!y.videoData.N.K&&W4(y.videoData)&&y.X6(new DZ(y.videoData.videoId||"",4)); y.GY();UrC(q).then(function(){var p={};y.jG(p);y.KK.U9()&&y.L("html5_log_media_perf_info")&&y.Rb("av1Info",p);Qc(y)})}}; eY9=function(y){y.iB();if(!y.Oc.finished&&y.I1.finished&&!g.G(y.playerState,128)&&!y.CO.length){if(!y.m0.started){var q=y.m0;q.started=!0;q.sync()}if(!y.JM()){y.loader&&(q=y.loader.timing,y.q6=!!q.W&&!!q.N);y.Oc.finished||(y.Oc.finished=!0);q=y.L("html5_onesie_live")&&y.loader&&!isNaN(y.loader.gp);!y.videoData.isLivePlayback||y.videoData.RH>0&&!of(y.videoData)||q||PX(y)||(y.seekTo(Infinity,{tU:"videoplayer_readying",seekSource:18}),y.isBackground()&&(y.Q1=!0));q=y.G8;if(q.qoe){q=q.qoe;for(var Q=q.provider.videoData, p=q.provider.KK,v=g.t(p.Gg),d=v.next();!d.done;d=v.next())dA(q,d.value);if(q.provider.L("html5_enable_qoe_cat_list"))for(v=g.t(Q.IL),d=v.next();!d.done;d=v.next())dA(q,d.value);else Q.Gg&&dA(q,q.provider.videoData.Gg);Q.E9()&&(v=Q.K,of(Q)&&dA(q,"manifestless"),v&&ms(v)&&dA(q,"live-segment-"+ms(v).toFixed(1)));nL(Q)?dA(q,"sabr"):q.Oi(B3(Q));if(K$(Q)||Q.Lg())Q.Lg()&&dA(q,"ssa"),dA(q,"lifa");If(Q)&&dA(q,"cdm");Q.gatewayExperimentGroup&&(v=Q.gatewayExperimentGroup,v==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"? v="spkadtrt":v==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(v="spkadctrl"),dA(q,v));p.cI!=="yt"&&q.K.set("len",[Q.lengthSeconds.toFixed(2)]);Q.cotn&&!W4(Q)&&q.dW(!0);p.U9()&&(Q=$49())&&q.Rb("cblt",{m:Q});if(p.L("html5_log_screen_diagonal")){p=q.Rb;var T;Q=((T=window.H5vccScreen)==null?0:T.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;p.call(q,"cbltdiag",{v:Q})}}y.publish("playbackready");I0("pl_c",y.gm.timerName)||(y.gm.tick("pl_c"),gY("pl_c",void 0,"video_to_ad"));I0("pbr",y.gm.timerName)||(y.gm.tick("pbr"), gY("pbr",void 0,"video_to_ad"))}}}; dI=function(y,q){y.qr&&mQb(y);y.qr=new g.yb(q*1E3,0x7ffffffffffff);y.qr.namespace="endcr";y.addCueRange(y.qr)}; mQb=function(y){y.removeCueRange(y.qr);y.qr=null}; Ck8=function(y,q,Q,p,v){var d=y.G8,T=y.videoData;T.W=Q;var O=g.J5(y);Q=new MF8(T,Q,q,O?O.itag:"",p);y.KK.experiments.ob("html5_refactor_sabr_video_format_selection_logging")?(Q.videoId=v,y.G$=Q):d.qoe&&Rt9(d.qoe,Q);v=y.cJ;v.W=0;v.K=0;y.publish("internalvideoformatchange",T,q==="m")}; g.J5=function(y){var q=FF(y);return Dk(q)||!y.wd?null:g.ZC(y.wd.K.videoInfos,function(Q){return q.Y(Q)})}; FF=function(y){if(y.wd){var q=y.cJ;var Q=y.wd;y=y.sI();var p=zc2(q);if(Dk(p)){if(p=q.PV(Q).compose(nYj(q,Q)).compose(cDC(q,Q)).compose(BA3(q,Q.videoData)).compose(GP2(q,Q.videoData,Q)).compose(eci(q,Q)).compose(ubH(q,Q)),Dk(y)||q.L("html5_apply_pbr_cap_for_drm"))p=p.compose(I2p(q,Q))}else q.L("html5_perf_cap_override_sticky")&&(p=p.compose(eci(q,Q))),q.L("html5_ustreamer_cap_override_sticky")&&(p=p.compose(I2p(q,Q)));p=p.compose(ubH(q,Q));q=Q.videoData.wJ.compose(p).compose(Q.videoData.QC).compose(y)}else q= tk;return q}; Fcf=function(y){var q=y.cJ;y=y.videoData;var Q=BA3(q,y);q.L("html5_disable_client_autonav_cap_for_onesie")||Q.compose(GP2(q,y));return Q}; Qc=function(y){if(y.videoData.N&&y.videoData.N.K){var q=FF(y);if(y.loader&&(y=y.loader,!y.iB()))if(y.policy.K){var Q=y.Y;if(q.isLocked()&&Q.K.W||Q.W===void 0||!q.equals(Q.W)){Q=y.Y.W;fOD(y.Y,q);var p,v;if(v=q.isLocked()&&q.reason==="m"){v=y.Y;var d=(p=v.Y)==null?void 0:p.info.video.qualityOrdinal;v=v.m3?!0:v.Y?q.K!==d?!0:!v.K.W||v.IB.Tg&&v.K.K===v.Y.info.itag?!1:!0:!1}p=v;v=y.policy.Np&&q.reason==="l";Q=Q.K>q.K&&q.reason==="b";p||v||Q?(y.WI.Tn({reattachOnConstraint:p?"u":v?"drm":"perf",lo:q.W,up:q.K}), y.policy.Tg||(y.Y.K.W=!1)):(y.policy.Tg&&(y.Y.K.W=!1),Pm(y))}}else!REH(y.K,q)&&y.videoTrack&&(v=y.K.K,GlS(y,s8g(y.K,q)),csg(y),Q=q.isLocked()&&q.reason==="m"&&y.K.N$,p=y.policy.Np&&q.reason==="l"&&jI(y.videoTrack),q=v.K>q.K&&q.reason==="b",v=y.K.Ty&&!EA(),Q||p||q||v?y.WI.Tn({reattachOnConstraint:Q?"u":p?"drm":v?"codec":"perf"}):Pm(y))}}; ywb=function(y){var q;return!!(y.L("html5_native_audio_track_switching")&&g.W9&&((q=y.videoData.W)==null?0:pj(q)))}; qZS=function(y){if(!ywb(y))return!1;var q;y=(q=y.mediaElement)==null?void 0:q.audioTracks();return!!(y&&y.length>1)}; QNj=function(y){var q=jNi(y);if(q)return y.videoData.getAvailableAudioTracks().find(function(Q){return Q.ZG.getName()===q})}; jNi=function(y){var q;if(y=(q=y.mediaElement)==null?void 0:q.audioTracks())for(q=0;q0&&(q.W_=Q.iC));q.Np=Q.RW;q.Jz=Tt(p,{},Q.N||void 0,uc(Q));q.Os=DD(Q)&&(g.Us(p)||g.Hr(p));nL(Q)&&(q.J=!0,q.xn=p.L("html5_estimate_live_partial_slice_duration"),g.kt(p)&&!g.PF()&&p.L("html5_force_audio_to_cover_video_keyframe")?q.Se=!1:q.Se=!0,p.L("html5_sabr_report_partial_segment_estimated_duration")&& (q.BD=!0),q.K=!0,q.R2=p.L("html5_disable_client_resume_policy_for_sabr"),q.VH=p.L("html5_trigger_loader_when_idle_network"),q.iJ=p.L("html5_sabr_parse_live_metadata_playback_boundaries"),q.Or=p.L("html5_consume_onesie_next_request_policy_for_sabr"),q.kK=p.L("html5_sabr_report_next_ad_break_time"),q.BG=p.L("html5_log_high_res_buffer_timeline")&&p.U9(),q.bJ=p.L("html5_remove_stuck_slices_beyond_max_buffer_limits"),q.R5=p.L("html5_gapless_sabr_btl_last_slice")&&z1(Q),q.OI=p.L("html5_reset_last_appended_slice_on_seek")&& z1(Q),of(Q)?(q.h9=!0,q.Nq=p.L("html5_disable_variability_tracker_for_live"),q.BI=!0,p.L("html5_simplified_backup_timeout_sabr_live")&&(q.Oa=!0,q.Hn=q.hT)):q.BT=p.L("html5_probe_request_on_sabr_request_progress"),q.Vg=p.L("html5_serve_start_seconds_seek_for_post_live_sabr"),q.b9=p.L("html5_flush_index_on_updated_timestamp_offset"),q.cI=nL(Q),q.oD=p.L("html5_ignore_partial_segment_from_live_readahead"),p.L("html5_include_partial_segment_for_jumbo_ll")&&Ak(Q)&&(q.oD=!1),q.b2=p.L("html5_use_non_active_broadcast_for_post_live"), q.Es=p.L("html5_use_centralized_player_time"),q.T8=p.L("html5_log_centralized_player_time"),q.mZ=p.L("html5_consume_onesie_sabr_seek"),q.N$=p.L("html5_enable_sabr_seek_loader_refactor"),q.wJ=g.wm(p.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),q.ZZ=p.L("html5_update_segment_start_time_from_media_header"),Q.enableServerStitchedDai&&(q.W=!0,q.nT=p.L("html5_reset_server_stitch_state_for_non_sabr_seek"),q.Zh=p.L("html5_remove_ssdai_append_pause")&&!Q.Lg(),q.Aw=p.L("html5_ssdai_log_ssevt_in_loader")|| p.L("html5_ssdai_log_ssevt_in_loader_200ms")||p.L("html5_ssdai_log_ssevt_in_loader_timers")||p.L("html5_ssdai_log_ssevt_in_loader_cuerange"),p.L("html5_ssdai_log_ssevt_in_loader_timers")?q.cB=1:p.L("html5_ssdai_log_ssevt_in_loader_200ms")?q.cB=3:p.L("html5_ssdai_log_ssevt_in_loader_cuerange")&&(q.cB=0)),q.iS=p.U9()||Q.Lg());q.Wn=g.dlp(Q);P_(p.J,iH.BITRATE)&&(q.jj=NaN);if(O=g.wm(p.experiments,"html5_request_size_max_kb"))q.Vm=O*1024;p.J.N?q.oE="; "+iH.EXPERIMENTAL.name+"=allowed":p.L("html5_enable_cobalt_tunnel_mode")&& g.PF()&&(O=iH.TUNNELMODE,q.oE="; "+O.name+"="+O.valid);Q=Q.serverPlaybackStartConfig;(Q==null?0:Q.enable)&&(Q==null?0:Q.playbackStartPolicy)&&(q.z5=!0,edb(q,Q.playbackStartPolicy,2));Q=pui(y);y.q2.removeAll();a:{O=y.Z3.RU;if(p=y.videoData.videoId)if(v=O.K.get(p)){O.K.remove(p);O=v;break a}O=void 0}y.loader=new g.O_(y,y.KK.schedule,q,y.videoData.K,y.videoData.N,FF(y),Q,y.videoData.enableServerStitchedDai,O,y.videoData.cI);q=y.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&y.videoData.isLivePlayback&& y.Lm()?!0:y.HM&&g.kt(y.KK)&&y.videoData.isLivePlayback;y.loader.initialize(y.getCurrentTime(),FF(y),q);y.videoData.probeUrl&&(y.loader.Os=y.videoData.probeUrl);if(y.CO.length||y.HM)y.videoData.cotn||Y_(y,!1);Fe8(y.GD,y.loader);y.X0&&(dZs(y.loader,new g.wA(y.X0)),y.Rb("sdai",{sdl:1}));g.E7(y.videoData)&&(y=y.loader,y.policy.vG=y.policy.CD)}; Oh=function(y){y.loader&&(y.loader.dispose(),y.loader=null,Fe8(y.GD,null));y.VF()?vhf(y):y.mV()}; vhf=function(y){if(y.Zw)if(y.JL(),y.Zw.J)try{y.KK.U9()&&y.Rb("rms",{l:"vprms",sr:y.VF(),rs:RJ(y.Zw)});y.Zw.clear();var q;(q=y.mediaElement)!=null&&(q.W=y.Zw);y.Zw=null}catch(Q){q=new g.GH("Error while clearing Media Source in VideoPlayer: "+Q.name+", "+Q.message),q=kp(q),y.handleError(q),y.mV()}else y.mV()}; dFi=function(y,q){if(y.Zw)return y.Zw.N;a:{q=q===void 0?!1:q;q=q===void 0?!1:q;try{g.PF()&&y.videoData.BU()&&isp(y.mediaElement);var Q=y.mediaElement.MX(y.ES(),y.GO())}catch(v){if(kPg(y.YE,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",v);y.SB("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}y.U$(Q,!1,!1,q)}var p;return((p=y.MX())==null?void 0:p.N)||null}; TJf=function(y,q){q=q===void 0?!1:q;if(y.loader){y.videoData.enableServerStitchedDai&&Fy9(y.loader);var Q=y.getCurrentTime()-y.bj();y.loader.seek(Q,{dP:q}).IE(function(){})}else XTD(y)}; VOg=function(y,q){if(y.Zw){y.Zw.pL(q);var Q;(Q=y.loader)!=null&&Q.policy.Es&&(Q.G=q)}}; B69=function(y,q){Ck8(y,q.reason,q.K.info,q.token,q.videoId)}; Vc=function(y,q){y.publish("internalvideodatachange",q===void 0?"dataupdated":q,y.videoData)}; Ok3=function(y){for(var q=g.t("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),Q=q.next();!Q.done;Q=q.next())y.Yg.Z(y.mediaElement,Q.value,y.u0,y);y.KK.oL&&y.mediaElement.yg()&&(y.Yg.Z(y.mediaElement,"webkitplaybacktargetavailabilitychanged",y.Y93,y),y.Yg.Z(y.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",y.mUs,y))}; Jw9=function(y){g.tM(y.jO);wu8(y)||(y.jO=g.WF(function(){return wu8(y)},100))}; wu8=function(y){var q=y.mediaElement;q&&y.w2&&!y.videoData.j&&!I0("vfp",y.gm.timerName)&&q.j0()>=2&&!q.isEnded()&&$A(q.Cn())&&y.gm.tick("vfp");return(q=y.mediaElement)&&!y.videoData.j&&q.getDuration()>0&&(q.isPaused()&&q.j0()>=2&&$A(q.Cn())&&(I0("pbp",y.gm.timerName)||y.gm.tick("pbp"),!y.videoData.fV||y.vv||q.isSeeking()||(y.vv=!0,y.publish("onPlaybackPauseAtStart"))),q=q.getCurrentTime(),u5(y.xq,q))?(y.fS(),!0):!1}; YZs=function(y){y.G8.onProgress();if(rx(y.videoData)&&Date.now()>y.PU+6283){if(y.L("html5_unified_live_latency_reporting")){var q=y.G8;q.qoe&&tYH(q.qoe)}else!y.isAtLiveHead()||y.videoData.K&&Pj(y.videoData.K)||(q=y.G8,q.qoe&&tYH(q.qoe));q=g.tc(y.KK);var Q=y.L("html5_always_log_rawlat");(q||Q)&&y.Rb("rawlat",{l:yc(y.MM,"rawlivelatency").toFixed(3)});y.PU=Date.now()}y.videoData.W&&pj(y.videoData.W)&&(q=y.Qc())&&q.videoHeight!==y.IP&&(y.IP=q.videoHeight,Ck8(y,"a",FTS(y,y.videoData.Ty)))}; FTS=function(y,q){if(q.K.video.quality==="auto"&&pj(q.getInfo())&&y.videoData.EW)for(var Q=g.t(y.videoData.EW),p=Q.next();!p.done;p=Q.next())if(p=p.value,p.getHeight()===y.IP&&p.K.video.quality!=="auto")return p.getInfo();return q.getInfo()}; rIs=function(y){if(!rx(y.videoData))return NaN;var q=0;y.loader&&y.videoData.K&&(q=of(y.videoData)?y.loader.HS.Io()||0:y.videoData.K.Es);return(0,g.SK)()/1E3-y.Sb()-q}; hwC=function(y){y.mediaElement&&y.mediaElement.yF()&&(y.Bi=(0,g.SK)());y.KK.hT?g.xQ(function(){fli(y)},0):fli(y)}; fli=function(y){var q;if((q=y.Zw)==null||!q.eh()){if(y.mediaElement)try{y.P5=y.mediaElement.playVideo()}catch(p){wI(y,"err."+p)}if(y.P5){var Q=y.P5;Q.then(void 0,function(p){if(!(g.G(y.playerState,4)||g.G(y.playerState,256)||y.P5!==Q||p&&p.name==="AbortError"&&p.message&&p.message.includes("load"))){var v="promise";p&&p.name&&(v+=";m."+p.name);wI(y,v);y.tv=!0;y.videoData.zI=!0}})}}}; wI=function(y,q){g.G(y.playerState,128)||(y.R7(oJ(y.playerState,1028,9)),y.Rb("dompaused",{r:q}),y.publish("onAutoplayBlocked"))}; pV=function(y,q){q=q===void 0?!1:q;if(!y.mediaElement||!y.videoData.N)return!1;var Q=q;Q=Q===void 0?!1:Q;var p=null;var v;if((v=y.videoData.N)==null?0:v.K){p=dFi(y,Q);var d;(d=y.loader)==null||d.resume()}else Oh(y),y.videoData.Ty&&(p=y.videoData.Ty.o8());v=y.mediaElement.bR();Q=!1;v&&v.equals(p)||(bkH(y,p),Q=!0);g.G(y.playerState,2)||(p=y.GD,q=q===void 0?!1:q,p.J||!(p.N>0)||p.mediaElement&&p.mediaElement.getCurrentTime()>0||(q={tU:"seektimeline_resumeTime",dP:q},p.videoData.j||(q.seekSource=15),p.seekTo(p.N, q)));a:{q=Q;if(nL(y.videoData)){if(!y.videoData.AR())break a}else if(!g.XI(y.videoData))break a;if(y.mediaElement)if((p=y.videoData.J)&&y.mediaElement.yg()){v=y.mediaElement.aH();if(y.q4)if(v!==y.q4.element)fV(y);else if(q&&p.flavor==="fairplay"&&!ib())fV(y);else break a;if(y.L("html5_report_error_for_unsupported_tvos_widevine")&&ib()&&p.flavor==="widevine")y.SB("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{y.q4=new dr2(v,y.videoData,y.KK,y.mediaElement);y.q4.subscribe("licenseerror", y.VL,y);y.q4.subscribe("qualitychange",y.jHK,y);y.q4.subscribe("heartbeatparams",y.Ot,y);y.q4.subscribe("keystatuseschange",y.fH,y);y.q4.subscribe("ctmp",y.Rb,y);q=g.t(y.q2.keys);for(p=q.next();!p.done;p=q.next())p=y.q2.get(p.value),y.q4.eJ(p);y.L("html5_eme_loader_sync")||y.q2.removeAll()}}else y.SB("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return Q}; bkH=function(y,q){y.gm.tick("vta");gY("vta",void 0,"video_to_ad");y.getCurrentTime()>0&&hYp(y.GD,y.getCurrentTime());y.mediaElement.activate(q);y.Zw&&QY(4);!y.videoData.j&&y.playerState.isOrWillBePlaying()&&y.RX.start();if(ywb(y)){var Q;if(q=(Q=y.mediaElement)==null?void 0:Q.audioTracks())q.onchange=function(){y.publish("internalaudioformatchange",y.videoData,!0)}}}; fV=function(y){y.q4&&(y.q4.dispose(),y.q4=null)}; $FD=function(y){var q=q===void 0?!1:q;y.mediaElement&&(y.Zw?(fV(y),y.mV(),dFi(y,q)):(y.videoData.Ty&&y.videoData.Ty.LZ(),y.mediaElement.stopVideo()),y.playVideo())}; KT9=function(y,q){y.KK.L("html5_log_rebuffer_reason")&&(q={r:q,lact:Lb()},y.mediaElement&&(q.bh=DU(y.mediaElement)),y.Rb("bufreason",q))}; xF8=function(y,q){if(y.KK.U9()&&y.mediaElement){var Q=y.mediaElement.IH();Q.omt=(y.mediaElement.getCurrentTime()+y.bj()).toFixed(3);Q.ps=y.playerState.state.toString(16);Q.rt=(g.pO(y.G8.provider)*1E3).toFixed();Q.e=q;y.q9[y.Qa++%5]=Q}}; WT9=function(y){if(y.KK.U9()){y.q9.sort(function(p,v){return+p.rt-+v.rt}); for(var q=g.t(y.q9),Q=q.next();!Q.done;Q=q.next())Q=Q.value,y.Rb("vpe",Object.assign({t:Q.rt},Q));y.q9=[];y.Qa=0}}; Zkf=function(y){if(g.BF("cobalt")&&g.BF("nintendo switch")){var q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;y.Rb("nxdock",{d:q})}}; Y_=function(y,q){var Q;(Q=y.loader)==null||U48(Q,q)}; Bj3=function(y){L$(y.videoData,"html5_set_debugging_opt_in")&&(y=g.rf(),y.Zm(183)||(Ap(183,!0),y.save()))}; qYb=function(y,q){y.Z3.gS()||(y.Rb("sgap",{f:q}),y.Z3.clearQueue(!1,q==="pe"))}; PX=function(y){return y.L("html5_disable_video_player_initiated_seeks")&&nL(y.videoData)}; tOp=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);M4(this.api,"isLifaAdPlaying",function(){return q.api.isLifaAdPlaying()}); this.events.Z(y,"serverstitchedvideochange",function(){var Q;(Q=q.api.getVideoData())!=null&&Q.Lg()&&(q.api.isLifaAdPlaying()?(q.playbackRate=q.api.getPlaybackRate(),q.api.setPlaybackRate(1)):q.api.setPlaybackRate(q.playbackRate))}); this.playbackRate=1}; h5=function(y){NZ.call(this,"Loop",g.zj.P4);this.U=y;var q=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:cpS();this.setIcon(q);this.subscribe("select",this.W,this);y.createClientVe(this.element,this,28661);this.Z(y,"settingsMenuVisibilityChanged",this.K);this.listen("click",this.logClick);this.Z(y,"onLoopChange",this.onLoopChange);Si(this,y.getLoopVideo());y.hd().qU(this)}; Eh2=function(y){Wy.call(this,y);var q=this;y.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new h5(q.api),g.n(q,q.menuItem))}); y.addEventListener("videodatachange",function(Q,p){Q=q.api.getPresentingPlayerType()===2;var v;(v=q.menuItem)==null||v.BB(!p.isLivePlayback&&!Q)})}; k4D=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);M4(this.api,"seekToChapterWithAnimation",function(Q){q.seekToChapterWithAnimation(Q)}); M4(this.api,"seekToTimeWithAnimation",function(Q,p){q.seekToTimeWithAnimation(Q,p)}); M4(this.api,"renderChapterSeekingAnimation",function(Q,p,v){q.api.renderChapterSeekingAnimation(Q,p,v)}); M4(this.api,"setMacroMarkers",function(Q){q.setMacroMarkers(y,Q)}); M4(this.api,"changeMarkerVisibility",function(Q,p,v){q.changeMarkerVisibility(Q,p,v)}); M4(this.api,"isSameMarkerTypeVisible",function(Q){return q.isSameMarkerTypeVisible(Q)})}; LTf=function(y,q,Q){var p=y.api.getCurrentTime()*1E30&&v>0&&(Q.width+=v,g.B0(q.element,"width",Q.width+"px")));y.size=Q}}; g.sh=function(y,q){var Q=y.K[y.K.length-1];Q!==q&&(y.K.push(q),vOD(y,Q,q))}; g.M0=function(y){if(!(y.K.length<=1)){var q=y.K.pop(),Q=y.K[0];y.K=[Q];vOD(y,q,Q,!0)}}; vOD=function(y,q,Q,p){dT8(y);q&&(q.unsubscribe("size-change",y.j$,y),q.unsubscribe("back",y.RE,y));Q.subscribe("size-change",y.j$,y);Q.subscribe("back",y.RE,y);if(y.NU){g.wl(Q.element,p?"ytp-panel-animate-back":"ytp-panel-animate-forward");Q.ym(y.content);Q.focus();y.element.scrollLeft=0;y.element.scrollTop=0;var v=y.size;p8C(y);g.pv(y.element,v);y.N=new g.y0(function(){TtH(y,q,Q,p)},20,y); y.N.start()}else Q.ym(y.content),q&&q.detach()}; TtH=function(y,q,Q,p){y.N.dispose();y.N=null;g.wl(y.element,"ytp-popup-animating");p?(g.wl(q.element,"ytp-panel-animate-forward"),g.Fn(Q.element,"ytp-panel-animate-back")):(g.wl(q.element,"ytp-panel-animate-back"),g.Fn(Q.element,"ytp-panel-animate-forward"));g.pv(y.element,y.size);y.Y=new g.y0(function(){g.Fn(y.element,"ytp-popup-animating");q.detach();g.Yy(q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);y.Y.dispose();y.Y=null},250,y); y.Y.start()}; dT8=function(y){y.N&&g.j4(y.N);y.Y&&g.j4(y.Y)}; lL=function(y){g.Ri.call(this,y,"ytp-shopping-product-menu");this.NT=new g.SH(this.U);g.n(this,this.NT);this.hide();g.sh(this,this.NT);g.pq(this.U,this.element,4)}; OKS=function(y,q,Q){var p,v=q==null?void 0:(p=q.text)==null?void 0:p.simpleText;v&&(Q=VUb(y,Q,v,q==null?void 0:q.icon,q==null?void 0:q.secondaryIcon),q.navigationEndpoint&&Q.listen("click",function(){y.U.AK("innertubeCommand",q.navigationEndpoint);y.hide()},y))}; w8j=function(y,q,Q){var p,v=q==null?void 0:(p=q.text)==null?void 0:p.simpleText;v&&VUb(y,Q,v,q==null?void 0:q.icon).listen("click",function(){var d;(q==null?void 0:(d=q.icon)==null?void 0:d.iconType)==="HIDE"?y.U.publish("featuredproductdismissed"):q.serviceEndpoint&&y.U.AK("innertubeCommand",q.serviceEndpoint);y.hide()},y)}; VUb=function(y,q,Q,p,v){q=new g.bQ(g.$X({},[],!1,!!v),q,Q);v&&q.updateValue("secondaryIcon",JZg(v));q.setIcon(JZg(p));g.n(y,q);y.NT.qU(q,!0);return q}; JZg=function(y){if(!y)return null;switch(y.iconType){case "ACCOUNT_CIRCLE":return{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return NfH();case "HIDE":return{S:"svg",B:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"g",D:[{S:"path",B:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return ay()}}; zp=function(y){ai.call(this,y,!1,!0);this.isCounterfactual=this.W=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.r({S:"button",rp:["ytp-featured-product-overflow-icon","ytp-button"],B:{"aria-haspopup":"true"}});this.overflowButton.hide();g.n(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.r({S:"img",V:"ytp-suggested-action-badge-img",B:{src:"{{url}}"}}); this.thumbnailImage.hide();g.n(this,this.thumbnailImage);this.thumbnailIcon=new g.r({S:"div",V:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.n(this,this.thumbnailIcon);this.banner=new g.r({S:"a",V:"ytp-suggested-action-container",D:[this.thumbnailImage,this.thumbnailIcon,{S:"div",V:"ytp-suggested-action-details",D:[{S:"text",V:"ytp-suggested-action-title",M$:"{{title}}"},{S:"text",V:"ytp-suggested-action-subtitle",M$:"{{subtitle}}"},{S:"text",V:"ytp-suggested-action-metadata-text", M$:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.n(this,this.banner);this.banner.ym(this.N.element);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.U,g.jw("suggested_action_view_model"),this.Awj);this.Z(this.U,g.Qb("suggested_action_view_model"),this.osK);this.Z(this.overflowButton.element,"click",this.iA);this.Z(y,"featuredproductdismissed",this.wI);this.U.createServerVe(this.banner.element,this.banner,!0)}; FQf=function(y){y.isInitialized&&(y.enabled=y.isVisible,y.N$=y.isVisible,LV(y),y.O8(),y.thumbnailImage.BB(y.isVisible),y.shouldHideDismissButton||y.dismissButton.BB(y.isVisible),y.shouldShowOverflowButton&&y.overflowButton.BB(y.isVisible))}; Dz=function(){zp.apply(this,arguments)}; Yy9=function(y){Wy.call(this,y);this.K=new Dz(this.api);g.n(this,this.K);g.pq(this.api,this.K.element,4)}; uL=function(y){Wy.call(this,y);var q=this;this.K=!0;var Q=new g.sU(y);g.n(this,Q);Q.Z(y,"internalaudioformatchange",function(p,v){fqC(q,p,v)}); Q.Z(y,"annotationvisibility",function(p){q.api.L("web_fix_annotations")&&hXC(q,(294).toString(),{boolValue:p})}); Q.Z(y,"videoplayerreset",function(){bKp(q)}); Q.Z(y,"videodatachange",function(p,v){q.onVideoDataChange(p,v)})}; fqC=function(y,q,Q){if(Q){var p="";$Tf(y,q)&&(p=q,y.api.T().BI=q);if(p&&KQD(y,p)){Ulj(y.api,p);var v;X6(nn(y.api.T(),(v=y.api.getVideoData())==null?void 0:g.$W(v)),function(d){var T=p;xTg(d)!==T&&hXC(y,WQs(d),{stringValue:T})})}}}; bKp=function(y){var q;if((q=Nm())==null?0:q.size){var Q;X6(nn(y.api.T(),(Q=y.api.getVideoData())==null?void 0:g.$W(Q)),function(p){(p=xTg(p))&&KQD(y,p)&&(y.api.T().BI=p)})}}; tU9=function(y,q){mh(X6(X6(y.Yv(),function(Q){return k_H(Q,[WQs(q)])}),function(Q){if(Q){Q=g.t(Q); for(var p=Q.next();!p.done;p=Q.next()){var v=p.value;p=v.key;v=v.value;p&&v&&(ZKp([{settingItemId:p,settingOptionValue:v}]),bKp(y))}}}),function(){y.K=!0})}; $Tf=function(y,q){y=y.api.getAvailableAudioTracks();y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,Q.getLanguageInfo().getId()===q)return Q;return null}; xTg=function(y){y=WQs(y);var q=Nm();y=q?q.get(y):void 0;return y&&y.stringValue?y.stringValue:""}; WQs=function(y){var q=(484).toString();y&&(q=(483).toString());return q}; KQD=function(y,q){var Q;return q.split(".")[0]!==""&&((Q=y.api.getVideoData())==null?void 0:!xW(Q))}; hXC=function(y,q,Q){ZKp([{settingItemId:q,settingOptionValue:Q}]);X6(y.Yv(),function(p){aXj(p,q,Q)})}; ZKp=function(y){var q=Nm();q||(q=new Map);y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())Q=Q.value,q.set(Q.settingItemId,Q.settingOptionValue);q=JSON.stringify(Object.fromEntries(q));g.DW("yt-player-user-settings",q,2592E3)}; g.Ii=function(y,q,Q,p,v,d,T){g.bQ.call(this,g.$X({"aria-haspopup":"true"}),q,y);this.fK=p;this.j=!1;this.N=null;this.options={};this.TD=new g.SH(Q,void 0,y,v,d,T);g.n(this,this.TD);this.listen("keydown",this.td);this.listen("click",this.open)}; EO9=function(y){if(y.N){var q=y.options[y.N];q.element.getAttribute("aria-checked");q.element.setAttribute("aria-checked","false");y.N=null}}; kiC=function(y,q){g.Ii.call(this,"Timer de suspens\u00e3o",g.zj.SLEEP_TIMER,y,q);this.U=y;this.G={};this.Y=this.tL("Off");this.J=this.K="";y.L("web_settings_menu_icons")&&(q=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(q)); this.W=new g.r({S:"div",rp:["ytp-menuitem-label-wrapper"],D:[{S:"div",M$:"Fim do v\u00eddeo"},{S:"div",rp:["ytp-menuitem-sublabel"],M$:"{{content}}"}]});g.n(this,this.W);this.listen("click",this.onClick);this.Z(y,"videodatachange",this.onVideoDataChange);this.Z(y,"presentingplayerstatechange",this.XV);this.Z(y,"settingsMenuVisibilityChanged",this.Le);y.createClientVe(this.element,this,218889);this.XV();this.U.AK("onSleepTimerFeatureAvailable")}; LQD=function(y){var q="Off 10 15 20 30 45 60".split(" "),Q;((Q=y.U.getVideoData())==null?0:Q.isLivePlayback)||q.push("End of video");Q=y.U.getPlaylist();var p;Q&&((p=Q.listId)==null?void 0:p.type)!=="RD"&&q.push("End of playlist");y.qo(g.W5(q,y.tL));y.G=g.Ch(q,y.tL,y);q=y.tL("End of video");y.options[q]&&g.hW(y.options[q],y.W)}; aqD=function(y,q){var Q=y.G[q],p=Q==="End of video"||Q==="End of playlist";Q==="Off"&&(y.K="");y.U.getPlayerState()!==0&&y.U.getPlayerState()!==5||!p?(y.Y=q,g.Ii.prototype.Fo.call(y,q),y.K1(q),y.U.AK("onSleepTimerSettingsChanged",Q)):y.U.AK("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; nV=function(y){Wy.call(this,y);var q=this;y.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new kiC(q.api,q.api.hd()),g.n(q,q.menuItem))}); y.addEventListener("openSettingsMenuItem",function(Q){if(Q==="menu_item_sleep_timer"){if(!q.menuItem){var p;(p=q.api.hd())==null||p.zD()}q.menuItem.open()}}); M4(y,"resetSleepTimerMenuSettings",function(){q.resetSleepTimerMenuSettings()}); M4(y,"setSleepTimerTimeLeft",function(Q){q.setSleepTimerTimeLeft(Q)}); M4(y,"setVideoTimeLeft",function(Q){q.setVideoTimeLeft(Q)})}; Nt2=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"onSnackbarMessage",function(Q){switch(Q){case 1:Q=q.api.getPlayerStateObject(),Q.isBuffering()&&(q.api.L("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.G(Q,8)&&g.G(Q,16))&&q.api.AK("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubra por qu\u00ea"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.cM=function(y,q,Q,p,v){q=q===void 0?!1:q;p=p===void 0?!1:p;v=v===void 0?!1:v;g.V6.call(this);this.j=v;this.X=!1;this.Y=new sM(this);this.J=this.G=null;this.N=this.W=!1;g.n(this,this.Y);this.target=y;this.K=q;this.C=Q||y;this.X=p;q&&(g.FU&&this.target.setAttribute("draggable","true"),v||(this.target.style.touchAction="none"));gI(this)}; Uh=function(y){g.lw(y.Y,!y.K)}; gI=function(y){y.J=null;y.G=null;y.Z(rI("over"),y.gJ);y.Z("touchstart",y.S2);y.K&&y.Z(rI("down"),y.PB3)}; Syg=function(y,q){for(var Q=0;QF.start&&Q>=5;Z+=S}v=Z.substr(0,4)+" "+Z.substr(4,4)+" "+Z.substr(8,4)+" "+(Z.substr(12,4)+" "+Z.substr(16,4))}else v="";T={video_id_and_cpn:String(q.videoId)+" / "+v,codecs:"",dims_and_frames:"",bandwidth_kbps:T.toFixed(0)+" Kbps",buffer_health_seconds:w.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:J?"":"display:none",drm:J,debug_info:Q,extra_debug_info:"",bandwidth_style:f,network_activity_style:f,network_activity_bytes:O.toFixed(0)+" KB",shader_info:Y,shader_info_style:Y?"":"display:none",playback_categories:""};O=p.clientWidth+"x"+p.clientHeight+(F>1?"*"+F.toFixed(2):"");w="-";d.totalVideoFrames&&(w=(d.droppedVideoFrames||0)+" dropped of "+d.totalVideoFrames);T.dims_and_frames=O+" / "+w;y=y.getVolume();O=p$3(q);var l;if((l=q.Y)==null?0:l.audio.W)l= "VB";else{var u;l=((u=q.Y)==null?0:u.audio.K)?"DRC":Math.round(y*O)+"%"}u=Math.round(y)+"% / "+l;l=q.Bn.toFixed(1);isFinite(Number(l))&&(u+=" (content loudness "+l+"dB)");T.volume=u;T.resolution=p.videoWidth+"x"+p.videoHeight;if(p=q.W){if(u=p.video)l=u.fps,l>1&&(T.resolution+="@"+l),(l=d.gZ)&&l.video&&(T.resolution+=" / "+l.video.width+"x"+l.video.height,l.video.fps>1&&(T.resolution+="@"+l.video.fps)),T.codecs=lqS(p),!q.Y||p.audio&&p.video?p.mS&&(T.codecs+=" / "+p.mS+"A"):T.codecs+=" / "+lqS(q.Y), u.K||u.primaries?(l=u.K||"unknown",l==="smpte2084"?l+=" (PQ)":l==="arib-std-b67"&&(l+=" (HLG)"),T.color=l+" / "+(u.primaries||"unknown"),T.color_style=""):T.color_style="display:none";if(p.debugInfo)for(T.fmt_debug_info="",p=g.t(p.debugInfo),u=p.next();!u.done;u=p.next())u=u.value,T.fmt_debug_info+=u.label+":"+u.text+" ";T.fmt_debug_info_style=T.fmt_debug_info&&T.fmt_debug_info.length>0?"":"display:none"}p=q.isLivePlayback;u=q.Gf;T.live_mode_style=p||u?"":"display:none";T.live_latency_style=p?"": "display:none";if(u)T.live_mode="Post-Live"+(of(q)?" Manifestless":"");else if(p){u=d.Hr;T.live_latency_secs=u.toFixed(2)+"s";p=of(q)?"Manifestless, ":"";q.m3&&(p+="Windowed, ");l="Uncertain";if(u>=0&&u<120)if(q.latencyClass&&q.latencyClass!=="UNKNOWN")switch(q.latencyClass){case "NORMAL":l="Optimized for Normal Latency";break;case "LOW":l="Optimized for Low Latency";break;case "ULTRALOW":l="Optimized for Ultra Low Latency";break;default:l="Unknown Latency Setting"}else l=q.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";p+=l;(u=d.Lx)&&(p+=", seq "+u.sequence);T.live_mode=p}!d.isGapless||z1(q)&&d.gS||(T.playback_categories+="Gapless ");T.playback_categories_style=T.playback_categories?"":"display:none";T.bandwidth_samples=d.Av;T.network_activity_samples=d.rz;T.live_latency_samples=d.oR;T.buffer_health_samples=d.cE;d=g.E7(q);if(q.cotn||d)T.cotn_and_local_media=(q.cotn?q.cotn:"null")+" / "+d;T.cotn_and_local_media_style=T.cotn_and_local_media?"":"display:none"; L$(q,"web_player_release_debug")?(T.release_name=V[15],T.release_style=""):T.release_style="display:none";T.debug_info&&h.length>0&&T.debug_info.length+h.length<=60?T.debug_info+=" "+h:T.extra_debug_info=h;T.extra_debug_info_style=T.extra_debug_info&&T.extra_debug_info.length>0?"":"display:none";return T}; lqS=function(y){var q=/codecs="([^"]*)"/.exec(y.mimeType);return q&&q[1]?q[1]+" ("+y.itag+")":y.itag}; iL=function(y,q,Q,p,v){g.r.call(this,{S:"div",V:"ytp-horizonchart"});this.G=q;this.sampleCount=Q;this.Y=p;this.J=v;this.index=0;this.heightPx=-1;this.N=this.W=null;this.K=Math.round(y/Q);this.element.style.width=this.K*this.sampleCount+"px";this.element.style.height=this.G+"em"}; XF=function(y,q){if(y.heightPx===-1){var Q=null;try{Q=g.bn("CANVAS"),y.W=Q.getContext("2d")}catch(O){}if(y.W){var p=y.K*y.sampleCount;y.N=Q;y.N.width=p;y.N.style.width=p+"px";y.element.appendChild(y.N)}else for(y.sampleCount=Math.floor(y.sampleCount/4),y.K*=4,Q=0;Q1?2:1,y.N.height=y.heightPx*Q,y.N.style.height= y.heightPx+"px",y.W.scale(1,Q)));q=g.t(q);for(p=q.next();!p.done;p=q.next()){Q=y;var v=y.index,d=p.value;for(p=0;p+20&&g.xn(q.W.element);p.classList.add("ytp-timely-actions-overlay");q.W.element.appendChild(p)}); g.n(this,this.W);this.L("web_player_overlay_positioned_layout")?this.events.Z(y,"basechromeinitialized",function(){q.api.GL(q.W.element,4,!0);q.W.element.setAttribute("data-overlay-order","10")}):g.pq(this.api,this.W.element,4)}; iK3=function(y){y.timelyActions&&(y.Y=y.timelyActions.reduce(function(q,Q){if(Q.cueRangeId===void 0)return q;q[Q.cueRangeId]=0;return q},{}))}; qQ=function(y,q){if(y.timelyActions){y=g.t(y.timelyActions);for(var Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,Q.cueRangeId===q)return Q}}; X8D=function(y,q){if((y=qQ(y,q))&&y.onCueRangeExit)return nD(y.onCueRangeExit)}; eXp=function(y,q){return y.N===void 0?!1:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===5E3?y.N===72:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===1E4?y.N===74:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===5E3?y.N===71:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===1E4?y.N===73:!1}; mTj=function(y,q){var Q=Number(q==null?void 0:q.maxVisibleDurationMilliseconds);Q&&(jW(y),y.N$=setTimeout(function(){if(y.K!==void 0&&(q==null?void 0:q.cueRangeId)===y.K){y.j=!1;var p=X8D(y,y.K);p&&y.api.AK("innertubeCommand",p)}},Q))}; jW=function(y){y.N$&&clearTimeout(y.N$);y.N$=void 0;y.j=!1}; Bt9=function(y){if(y=y.getWatchNextResponse()){var q,Q;y=(q=y.playerOverlays)==null?void 0:(Q=q.playerOverlayRenderer)==null?void 0:Q.timelyActionsOverlayViewModel;q=g.U(y,Ca3);if(q!=null&&q.timelyActions)return q==null?void 0:q.timelyActions.map(function(p){return g.U(p,yGj)}).filter(function(p){return!!p})}}; q8j=function(y){Wy.call(this,y);var q=this;lh(this.api,"getPlaybackRate",function(){return q.api.getPlaybackRate()}); lh(this.api,"setPlaybackRate",function(Q){typeof Q==="number"&&q.api.setPlaybackRate(Q)})}; Qu=function(y,q,Q,p,v){NZ.call(this,"VOICE_BOOST",g.zj.mH);this.U=y;this.N=q;this.W=Q;this.hasVoiceBoostAudioTrack=p;this.getVoiceBoostState=v;this.K=!1;this.fK=this.U.L("html5_enable_new_audio_settings_menu")?y.hd().rB:y.hd();this.Z(y,"videodatachange",this.Il.bind(this));this.Z(y,"onPlaybackAudioChange",this.Il);this.U.L("html5_enable_new_audio_settings_menu")||this.setIcon(uWg());this.subscribe("select",this.Y,this);this.Il()}; Qx2=function(y){Wy.call(this,y);var q=this;this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"settingsMenuInitialized",function(){jxb(q)}); M4(this.api,"getVoiceBoostUserPreference",function(){return q.getVoiceBoostUserPreference()}); M4(this.api,"setVoiceBoostUserPreference",function(p){q.setVoiceBoostUserPreference(p)}); M4(this.api,"hasVoiceBoostAudioTrack",function(){return q.hasVoiceBoostAudioTrack()}); M4(this.api,"getVoiceBoostState",function(){return q.getVoiceBoostState()}); var Q;this.K=(Q=FPp())!=null?Q:0;this.updateEnvironmentData()}; jxb=function(y){y.menuItem||(y.menuItem=new Qu(y.api,function(q){y.setVoiceBoostUserPreference(q)},function(){return y.getVoiceBoostUserPreference()},function(){return y.hasVoiceBoostAudioTrack()},function(){return y.getVoiceBoostState()}),g.n(y,y.menuItem))}; p62=function(y){y=y.i6();if(!y)return!1;y=g.TS(y).exp||"";return y.includes("xpv")||y.includes("xpe")}; v59=function(y){y=g.t(g.pC(y,!0));for(var q=y.next();!q.done;q=y.next())if(p62(q.value))return!0;return!1}; dUg=function(y,q){y=g.t(g.pC(y,!0));for(var Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,p62(Q)){var p={potc:"1",pot:q};Q.url&&(Q.url=V9(Q.url,p))}}; Tdi=function(y){return g.M(function(q){if(q.K==1)return g.EC(q,2),g.R(q,y,4);if(q.K!=2)return g.Hp(q,0);g.Rj(q);g.tH(q)})}; dj=function(y){Wy.call(this,y);var q=this;this.useLivingRoomPoToken=!1;this.J=new g.$9;this.K=!1;this.gm=null;this.C=!1;this.Y=null;this.G=!1;var Q=y.T().getWebPlayerContextConfig();this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"spsumpreject",function(p,v,d){q.G=v;p&&q.C&&!q.Y&&(q.L("html5_generate_content_po_token")&&d?q.QH(d):q.L("html5_generate_session_po_token")&&VvS(q));q.Y||q.api.Rb("stp",{s:+q.C,b:+q.G})}); this.events.Z(y,"poTokenVideoBindingChange",function(p){q.QH(p)}); this.useLivingRoomPoToken=!(Q==null||!Q.useLivingRoomPoToken);y.addEventListener("csiinitialized",function(){q.gm=y.FD();var p=(q.L("html5_generate_session_po_token")||q.L("html5_generate_content_po_token"))&&!q.useLivingRoomPoToken;try{if(q.L("html5_use_shared_owl_instance"))O4j(q);else if(p){q.gm.NK("pot_isc");var v=g.wm(q.api.T().experiments,"html5_webpo_kaios_defer_timeout_ms");v?(q.N=oT(),g.xQ(function(){vT(q)},v)):q.L("html5_webpo_idle_priority_job")?(q.N=oT(),g.C_(g.qb(),function(){vT(q)})): vT(q)}}catch(d){d instanceof Error&&g.zI(d)}}); y.addEventListener("trackListLoaded",this.zL.bind(this));y.BF(this)}; w6S=function(y){var q=ag(y.experiments,"html5_web_po_request_key");return q?q:g.kt(y)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; JG8=function(y){var q=new ma3,Q={},p=(Q["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",Q);return new EI(q,y,function(){return p})}; FWp=function(y){return new k9(y)}; Tz=function(y,q){y.L("html5_webpo_bge_ctmp")&&y.api.Rb(q,{hwpo:!!y.W,hwpor:y.K})}; O4j=function(y){var q,Q;g.M(function(p){if(p.K==1)return Tz(y,"swpo_i"),y.N=oT(),Vu(y),g.R(p,pR(),2);if(p.K!=3)return q=p.W,Tz(y,"swpo_co"),g.R(p,HQC(q),3);Q=p.W;y.L("html5_web_po_token_disable_caching")||Q.xL(150);y.W=Q;Tz(y,"swpo_cc");Tdi(Q.mD()).then(function(){y.K=!0;y.J.resolve();Tz(y,"swpo_re")}); g.xQ(function(){vT(y);Tz(y,"swpo_si")},0); g.tH(p)})}; hSs=function(y){var q=y.api.T(),Q=w6S(q);Q=JG8(Q);var p=Q.FE.bind(Q);Q.FE=function(O){var w;return g.M(function(J){if(J.K==1)return g.R(J,p(O),2);w=J.W;y.api.Rb("itr",{});return J.return(w)})}; try{var v=FWp({eS:Q,OC:{maxAttempts:5},Bk:{qp:"CLEn",disable:q.experiments.ob("html5_web_po_disable_remote_logging")||Y8D.includes(g.$b(q.Vf)||""),Nl:vIf(q.experiments),DR:q.experiments.ob("wpo_gel_strz")?function(O){var w=fpH.get(O);w||(w=new tK2(O),w=new g.A9(w),fpH.set(O,w));return w}:void 0, CB3:y.L("wpo_dis_lfdms")?0:1E3},DUK:g.zI});var d=new UI({K6:v,eS:Q,onError:g.zI});Tdi(d.mD()).then(function(){y.K=!0;y.J.resolve()}); y.L("html5_web_po_token_disable_caching")||d.xL(150);g.n(y,v);g.n(y,d);y.W=d}catch(O){g.zI(O);var T;(T=v)==null||T.dispose()}}; vT=function(y){var q=y.api.T();y.gm.NK("pot_ist");y.W||hSs(y);y.L("html5_bandaid_attach_content_po_token")||(y.L("html5_generate_session_po_token")&&(Vu(y),VvS(y)),q=g.wm(q.experiments,"html5_session_po_token_interval_time_ms")||0,q>0&&(y.X=g.WF(function(){Vu(y)},q)),y.C=!0)}; Vu=function(y){var q,Q,p,v;g.M(function(d){if(!y.L("html5_generate_session_po_token")||y.useLivingRoomPoToken)return d.return();q=y.api.T();Q=g.XY("EOM_VISITOR_DATA")||g.XY("VISITOR_DATA");p=q.AP?q.datasyncId:Q;v=ag(q.experiments,"html5_mock_content_binding_for_session_token")||q.livingRoomPoTokenId||p;q.Hn=OG(y,v);g.tH(d)})}; OG=function(y,q){if(!y.W){if(y.N)try{return y.N(q)}catch(d){g.zI(d)}return""}try{y.gm.NK(y.K?"pot_cms":"pot_csms");var Q={gz:!0,yl:!0,e4:q};y.L("html5_web_po_token_disable_caching")||(Q.lC={Cj:q,Vj:!0,ov:!0});var p=y.W.nS(Q);y.gm.NK(y.K?"pot_cmf":"pot_csmf");if(y.K){var v;(v=y.Y)==null||v.resolve();y.Y=null;y.G&&(y.G=!1,y.api.app.tK().Y8(!1))}return p}catch(d){return g.zI(d),""}}; VvS=function(y){y.W&&(y.Y=new M6,y.J.promise.then(function(){y.gm.NK("pot_if");Vu(y)}))}; g.wj=function(y,q,Q){g.fU(y.element,"ytp-suggestion-set",!!q.videoId);var p=q.playlistId;Q=q.h6(Q?Q:"mqdefault.jpg");var v=null,d=null;q instanceof pL&&(q.lengthText?(v=q.lengthText||null,d=q.f$||null):q.lengthSeconds&&(v=g.NG(q.lengthSeconds),d=g.NG(q.lengthSeconds,!0)));var T=!!p;p=T&&jC(p).type==="RD";var O=q instanceof pL?q.isLivePlayback:null,w=q instanceof pL?q.isUpcoming:null,J=q.author,F=q.shortViewCount,Y=q.publishedTimeText,f=[],h=[];J&&f.push(J);F&&(f.push(F),h.push(F));Y&&h.push(Y);Q= {title:q.title,author:J,author_and_views:f.join(" \u2022 "),aria_label:q.ariaLabel||g.Yr("Assistir a $TITLE",{TITLE:q.title}),duration:v,timestamp:d,url:q.pV(),is_live:O,is_upcoming:w,is_list:T,is_mix:p,background:Q?"background-image: url("+Q+")":"",views_and_publish_time:h.join(" \u2022 "),autoplayAlternativeHeader:q.DI};q instanceof QQ&&(Q.playlist_length=q.playlistLength);y.update(Q)}; g.JI=function(y){var q=y.T(),Q=g.NL||g.pn?{style:"will-change: opacity"}:void 0,p=q.Y,v=["ytp-modern-videowall-still"];q.W&&v.push("ytp-videowall-show-text");g.r.call(this,{S:"a",rp:v,B:{href:"{{url}}",target:p?q.j:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},D:[{S:"div",V:"ytp-modern-videowall-still-image",B:{style:"{{background}}"},D:[{S:"span",V:"ytp-modern-videowall-still-info-duration",M$:"{{duration}}"}]},{S:"span",V:"ytp-modern-videowall-still-info", B:{"aria-hidden":"true"},D:[{S:"span",V:"ytp-modern-videowall-still-info-bg",D:[{S:"span",V:"ytp-modern-videowall-still-info-content",B:Q,D:[{S:"span",V:"ytp-modern-videowall-still-info-title",M$:"{{title}}"},{S:"span",V:"ytp-modern-videowall-still-info-author",M$:"{{author}}"},{S:"span",V:"ytp-modern-videowall-still-view-count-and-date-info",M$:"{{views_and_publish_time}}"},{S:"span",V:"ytp-modern-videowall-still-info-live",M$:"Ao vivo"}]}]}]},{S:"span",rp:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],B:{"aria-hidden":"true"},D:[{S:"span",V:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{S:"span",V:"ytp-modern-videowall-still-listlabel-length",D:[" (",{S:"span",M$:"{{playlist_length}}"},")"]}]},{S:"span",rp:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],B:{"aria-hidden":"true"},D:[{S:"span",V:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{S:"span",V:"ytp-modern-videowall-still-listlabel-length",M$:" (50+)"}]}]}); this.suggestion=null;this.W=p;this.api=y;this.K=new g.sU(this);g.n(this,this.K);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.K.Z(y,"videodatachange",this.onVideoDataChange);y.createServerVe(this.element,this);this.onVideoDataChange()}; g.b4S=function(y,q){if(y.suggestion!==q){y.suggestion=q;var Q=y.api.T(),p="hqdefault.jpg";q.h6("sddefault.jpg")&&(p="sddefault.jpg");g.wj(y,q,p);g.d1(Q)&&!y.api.L("web_player_log_click_before_generating_ve_conversion_params")&&(Q=q.pV(),p={},g.Dt(y.api,"addEmbedsConversionTrackingParams",[p]),Q=g.kb(Q,p),y.updateValue("url",Q));(q=(q=q.sessionData)&&q.itct)&&y.api.setTrackingParams(y.element,q)}}; F5=function(y,q){g.r.call(this,{S:"div",rp:["ytp-fullscreen-grid"],D:[{S:"div",V:"ytp-fullscreen-grid-hover-overlay",B:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},D:[{S:"div",V:"ytp-fullscreen-grid-hover-overlay-chevron",D:[{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"g",B:{filter:"url(#filter0_d_3104_799356)"},D:[{S:"path",B:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{S:"defs",D:[{S:"filter",B:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},D:[{S:"feFlood",B:{"flood-opacity":"0",result:"BackgroundImageFix"}},{S:"feColorMatrix",B:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{S:"feOffset"},{S:"feGaussianBlur",B:{stdDeviation:"0.5"}},{S:"feComposite",B:{in2:"hardAlpha",operator:"out"}},{S:"feColorMatrix",B:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {S:"feBlend",B:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{S:"feBlend",B:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{S:"div",V:"ytp-fullscreen-grid-main-content",D:[{S:"div",V:"ytp-fullscreen-grid-stills-container"}]}]});this.player=y;this.stills=[];this.videoData=null;this.currentState=0;this.K=this.uB("ytp-fullscreen-grid-main-content");this.Y=this.uB("ytp-fullscreen-grid-stills-container");this.W=new g.sU(this); g.n(this,this.W);this.N=q;if(this.K&&this.Y){if(y=this.uB("ytp-fullscreen-grid-hover-overlay"))this.Z(y,"click",this.J),Gl(this.player,y,this);if(y=this.player.getVideoData(1))this.videoData=y;this.player.createClientVe(this.K,this,223051);this.W.Z(this.player,"videodatachange",this.onVideoDataChange)}}; KW3=function(y){g.r.call(this,{S:"div",rp:["ytp-more-videos-button","ytp-button"],B:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},D:[{S:"div",V:"ytp-more-videos-button-thumbnail"},{S:"span",V:"ytp-more-videos-button-title",M$:"{{title}}"}]});this.U=y;this.W=this.uB("ytp-more-videos-button-thumbnail");this.N=this.uB("ytp-more-videos-button-title");this.K=new g.sU(this);g.n(this,this.K);this.K.Z(this.U,"videodatachange",this.e2);this.e2();this.listen("click",this.onClick);$U2(this, 0);this.hide()}; $U2=function(y,q){switch(q){case 2:q="Ocultar v\u00eddeos";var Q="Hide recommendations grid";break;default:q="Mais v\u00eddeos",Q="Show recommendations grid"}y.updateValue("title",q);y.element.ariaLabel=Q;y.N.textContent=q}; hI=function(y){Wy.call(this,y);var q=this;this.G=this.K=this.W=0;this.C=null;this.X=this.Y=0;this.isEnded=!1;this.j=null;var Q=new g.sU(y);g.n(this,Q);this.Sj=g.wm(this.api.T().experiments,"web_player_default_peeking_px");this.Es=this.api.L("delhi_modern_player_enable_pause_peeking");this.vI=g.wm(this.api.T().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.Vm=this.api.L("web_player_imax_theater_mode");this.N=this.api.L("web_player_enable_fullscreen_grid_components");this.gp=this.api.L("web_player_enable_more_videos_button"); g.wl(this.api.getRootNode(),"ytp-grid-scrollable");Q.Z(y,"fullscreentoggled",function(){Y1(q)}); Q.Z(y,"videodatachange",function(){if(q.N){var p=q.api.getVideoData(1);q.videoData!==p&&q.W===2&&(g.Fn(q.api.getRootNode(),"ytp-grid-scrolling"),fC(q,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));q.videoData=p}},this); Q.Z(y,"sizestylechange",function(){q.N&&Y1(q)}); M4(this.api,"setFullscreenQuickActions",function(p){q.setFullscreenQuickActions(p)}); M4(this.api,"setPlayerOverlayVideoDetailsRenderer",function(p){q.setPlayerOverlayVideoDetailsRenderer(p)}); this.N&&xUi(this,Q,y)}; xUi=function(y,q,Q){q.Z(Q,"keyboardserviceglobalkeydown",function(p,v){y.N&&p.keyCode===86&&!p.repeat&&y.W!==0&&(v&&(v.rr=!0),y.N$("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); q.Z(y.api.getRootNode(),"wheel",function(p){if(!y.j){var v;if(y.N&&(v=y.J)!=null&&v.element&&!g.G(y.api.getPlayerStateObject(),2)&&y.W!==0&&bk(y))if(g.wl(y.api.getRootNode(),"ytp-grid-scrolling"),y.Y===0&&(y.Y=window.innerHeight),y.W===1)y.Y!==0&&(y.K+=p.deltaY/y.Y,y.K=g.rV(y.K,0,.7),$1(y),WWg(y,y.X/y.Y+y.K>=.7,2));else if(y.W===2){v=p.deltaY<0;var d,T=((d=y.J)==null?void 0:d.element.scrollTop)===0;d=y.K!==0;v&&T||d&&!v?y.Y!==0&&(y.K=Math.max(0,y.K-p.deltaY/y.Y),$1(y),WWg(y,y.X/y.Y+Math.abs(y.K)>= .7,1)):y.K!==0&&(y.K=0,$1(y))}}},y,!0); q.Z(Q,"standardControlsInitialized",function(){if(!y.J){y.J=new F5(y.api,y.LK.bind(y));y.gp&&(y.cI=new KW3(y.api),g.n(y,y.cI),y.cI.element.setAttribute("data-overlay-order","12"),y.api.GL(y.cI.element,4),y.cI.listen("click",y.N$,y));g.n(y,y.J);var p=y.api.getRootNode().querySelector(".ytp-chrome-bottom");p&&p.parentNode&&p.parentNode.insertBefore(y.J.element,p.nextSibling);Z48(y)}}); q.Z(Q,"presentingplayerstatechange",function(){KC(y)}); q.Z(Q,"autonavvisibility",function(){KC(y)}); y.api.G5().subscribe("visibilitystatechange",function(){KC(y)}); tvH(y,y.W)}; WWg=function(y,q,Q){y.C&&clearTimeout(y.C);y.K===0&&g.Fn(y.api.getRootNode(),"ytp-grid-scrolling");q?E53(y,Q):y.K<.1&&(y.C=window.setTimeout(function(){E53(y)},1E3))}; E53=function(y,q){y.C&&(clearTimeout(y.C),y.C=null);y.Y=0;y.N&&y.W!==0&&(q?fC(y,q):Math.abs(y.K)>=.15&&y.N$("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),y.K=0,$1(y),g.Fn(y.api.getRootNode(),"ytp-grid-scrolling"))}; bk=function(y){return y.api.isFullscreen()||y.Vm&&y.api.b4()}; Y1=function(y){var q=bk(y);g.fU(y.api.getRootNode(),"ytp-full-bleed-player",q);y.m3&&g.dM(y.m3,q);y.playerOverlayVideoDetailsRenderer&&g.dM(y.playerOverlayVideoDetailsRenderer,q);y.N&&KC(y)}; KC=function(y){if(y.N)if(g.Fn(y.api.getRootNode(),"ytp-grid-scrolling"),y.api.getPresentingPlayerType()===2||y.api.rd()||y.api.isMinimized())fC(y,0);else{var q=g.G(y.api.getPlayerStateObject(),2);if(q)fC(y,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(y.isEnded&&!q){var Q=bk(y)?1:0;y.isEnded=q;fC(y,Q)}else bk(y)?y.W!==2&&fC(y,1):fC(y,0);y.isEnded=q}}; fC=function(y,q,Q){y.W=q;var p;(p=y.J)==null||p.hU(q,Q);var v;(v=y.cI)==null||v.hU(q);y.K=0;$1(y);tvH(y,q)}; tvH=function(y,q){var Q=y.api.getRootNode();g.fU(Q,"ytp-fullscreen-grid-peeking",q===1);g.fU(Q,"ytp-fullscreen-grid-active",q===2);q===1&&Z48(y)}; Z48=function(y){var q=y.api.getRootNode();if(g.G(y.api.getPlayerStateObject(),256)||g.G(y.api.getPlayerStateObject(),32)||g.G(y.api.getPlayerStateObject(),16))var Q=y.X;else if(y.Es&&y.api.getPlayerStateObject().isPaused()){var p;Q=(((p=y.J)==null?void 0:p.element.clientWidth)||0)*.5625/3*y.vI||y.Sj}else Q=y.Sj;y.X=Q;q.style.setProperty("--ytp-grid-peek-height",y.X+"px");g.fU(q,"ytp-disable-bottom-gradient",y.X<=12&&y.G===0)}; $1=function(y){y.K===0&&y.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var q=y.K-y.G,Q=q;y.K!==0&&(Q=g.rV(q,-.01,.01));y.G+=Q;y.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+y.G.toString());y.G!==y.K&&$1(y)})}; kLj=function(y){Wy.call(this,y);var q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.sU(y);g.n(this,this.events);this.events.Z(y,"heartbeatRequest",function(Q){if(q.freePreviewUsageDetails.length||q.freePreviewWatchedDuration!==null)Q.heartbeatRequestParams||(Q.heartbeatRequestParams={}),Q.heartbeatRequestParams.unpluggedParams||(Q.heartbeatRequestParams.unpluggedParams={}),q.freePreviewUsageDetails.length>0?Q.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= q.freePreviewUsageDetails:Q.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+q.freePreviewWatchedDuration}}); M4(y,"setFreePreviewWatchedDuration",function(Q){q.freePreviewWatchedDuration=Q}); M4(y,"setFreePreviewUsageDetails",function(Q){q.freePreviewUsageDetails=Q})}; x1=function(y){g.I.call(this);this.features=[];var q=this.K,Q=new my(y),p=new Za(y),v=new x_(y),d=new dj(y);var T=g.tc(y.T())?void 0:new AW(y);var O=new KV(y),w=new Iqi(y),J=new q8j(y),F=new Xa(y);var Y=g.tc(y.T())?new kLj(y):void 0;var f;var h=(f=y.T().getWebPlayerContextConfig())!=null&&f.cinematicSettingsAvailable?new cy(y):void 0;f=new iQ(y);var b=y.L("enable_courses_player_overlay_purchase")?new EFf(y):void 0;var Z=g.Nj(y.T())?new xmD(y):void 0;var k=new ei(y);var S=y.T().Y?new Y13(y):void 0; var N=g.d1(y.T())?new F2p(y):void 0;var l=y.L("web_player_move_autonav_toggle")&&y.T().Kg?new vF2(y):void 0;var u=g.Nj(y.T())?new k4D(y):void 0;var c=y.L("web_enable_speedmaster")&&g.Nj(y.T())?new eH(y):void 0;var X=y.T().oE?void 0:new AZp(y);var A=y.L("report_pml_debug_signal")?new iZ8(y):void 0;var Tf=new Ili(y),OC=new Eh(y);var pS=g.Us(y.T())?new yZ9(y):void 0;var YD=navigator.mediaSession&&window.MediaMetadata&&y.T().yA?new bL(y):void 0;var q9=y.L("html5_enable_drc")&&!y.T().G?new oV(y):void 0; var aj=new kX(y);var Pp=g.Nj(y.T())?new Yy9(y):void 0;var Fc=y.L("html5_enable_d6de4")?new WM(y):void 0;var Jm=g.Nj(y.T())&&y.L("web_sleep_timer")?new nV(y):void 0;var gg=g.d1(y.T())?new h5i(y):void 0;var M9=new uL(y),pM=new Tzg(y),DC=new tOp(y);var on=y.L("enable_sabr_snackbar_message")?new Nt2(y):void 0;var Oo=y.L("web_enable_timely_actions")?new Pa8(y):void 0;var H=new UY(y);var lo,Nw;var Qi=((lo=y.T())==null?0:(Nw=lo.getWebPlayerContextConfig())==null?0:Nw.enableFullscreenComponentsFeature)?new hI(y): void 0;lo=y.L("html5_enable_voice_boost")?new Qx2(y):void 0;Nw=y.L("web_player_loop_settings_menu")&&y.T().qB?new Eh2(y):void 0;var Sm=g.tc(y.T())?void 0:new tW(y);var E=new PVC(y);var j3=y.L("html5_enable_audio_quality_setting")&&y.L("html5_enable_audio_quality_setting_feature")?new uQ(y):void 0;var HK=new nh3(y),mn=new q13(y);var gk=g.Nj(y.T())&&y.T().L("delhi_modern_web_player")?new Vl3(y):void 0;y=y.T().N?void 0:new yoS(y);q.call(this,Q,p,v,d,T,O,w,J,F,Y,h,f,b,Z,k,S,N,l,u,c,X,A,Tf,OC,pS,void 0, YD,q9,aj,void 0,Pp,Fc,Jm,gg,void 0,M9,pM,DC,void 0,on,Oo,H,Qi,lo,void 0,Nw,void 0,Sm,E,j3,HK,mn,gk,y)}; LWD=function(){this.W=this.K=NaN}; ap8=function(y,q){this.KK=y;this.timerName="";this.N=!1;this.W=NaN;this.Y=new LWD;this.K=q||null;this.N=!1}; Ndb=function(y,q,Q){var p=g.F_(q.wp)&&!q.wp.G;if(q.wp.jY&&(VK(q.wp)||q.wp.gp==="shortspage"||zd(q.wp)||p)&&!y.N){y.N=!0;y.G=q.clientPlaybackNonce;g.XY("TIMING_ACTION")||ip("TIMING_ACTION",y.KK.csiPageType);y.KK.csiServiceName&&ip("CSI_SERVICE_NAME",y.KK.csiServiceName);if(y.K){p=y.K.FD();for(var v=g.t(Object.keys(p)),d=v.next();!d.done;d=v.next())d=d.value,zn(d,p[d],y.timerName);p=g.q7(q9s)(y.K.Ok);g.D_(p,y.timerName);p=y.K;p.K={};p.Ok={}}g.D_({playerInfo:{visibilityState:g.q7(yPi)()},playerType:"LATENCY_PLAYER_HTML5"}, y.timerName);y.J!==q.clientPlaybackNonce||Number.isNaN(y.W)||(I0("_start",y.timerName)?Q=g.q7(HD)("_start",y.timerName)+y.W:g.zI(new g.GH("attempted to log gapless pbs before CSI timeline started",{cpn:q.clientPlaybackNonce})));Q&&!I0("pbs",y.timerName)&&WT(y,Q)}}; WT=function(y,q,Q){zn("pbs",q!=null?q:(0,g.SK)(),Q!=null?Q:y.timerName)}; Zg=function(y){JP2();wVp();y.timerName=""}; S89=function(y){if(y.K){var q=y.K;q.K={};q.Ok={}}y.N=!1;y.J=void 0;y.W=NaN}; H4S=function(y,q){g.V6.call(this);this.wp=y;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.K=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.C={};this.W=0;if(y=q.session_data)this.sessionData=Q9(y,"&");this.index=Math.max(0,Number(q.index)||0);this.loop=!!q.loop;this.startSeconds=Number(q.startSeconds)||0;this.title=q.playlist_title||"";this.description=q.playlist_description||"";this.author= q.author||q.playlist_author||"";q.video_id&&(this.items[this.index]=q);if(y=q.api)typeof y==="string"&&y.length===16?q.list="PL"+y:q.playlist=y;if(y=q.list)switch(q.listType){case "user_uploads":this.listId=new qg("UU","PLAYER_"+y);break;default:var Q=q.playlist_length;Q&&(this.length=Number(Q)||0);this.listId=jC(y);if(y=q.video)this.items=y.slice(0),this.loaded=!0}else if(q.playlist){y=q.playlist.toString().split(",");this.index>0&&(this.items=[]);y=g.t(y);for(Q=y.next();!Q.done;Q=y.next())(Q=Q.value)&& this.items.push({video_id:Q});this.length=this.items.length;if(y=q.video)this.items=y.slice(0),this.loaded=!0}this.setShuffle(!!q.shuffle);if(y=q.suggestedQuality)this.quality=y;this.C=X_(q,"playlist_");this.N=(q=q.thumbnail_ids)?q.split(","):[]}; RSj=function(y){return!!(y.playlist||y.list||y.api)}; sxg=function(y){var q=y.index+1;return q>=y.length?0:q}; Mvb=function(y){var q=y.index-1;return q<0?y.length-1:q}; g.tI=function(y,q,Q,p){q=q!==void 0?q:y.index;q=y.items&&q in y.items?y.items[y.order[q]]:null;var v=null;q&&(Q&&(q.autoplay="1"),p&&(q.autonav="1"),v=new g.EB(y.wp,q),g.n(y,v),v.zB=!0,v.startSeconds=y.startSeconds||v.clipStart||0,y.listId&&(v.playlistId=y.listId.toString()));return v}; lpD=function(y,q){y.index=g.rV(q,0,y.length-1);y.startSeconds=0}; zSD=function(y,q){if(q.video&&q.video.length){y.title=q.title||"";y.description=q.description;y.views=q.views;y.likes=q.likes;y.dislikes=q.dislikes;y.author=q.author||"";var Q=q.loop;Q&&(y.loop=Q);Q=g.tI(y);y.items=[];for(var p=g.t(q.video),v=p.next();!v.done;v=p.next())if(v=v.value)v.video_id=v.encrypted_id,y.items.push(v);y.length=y.items.length;(q=q.index)?y.index=q:y.findIndex(Q);y.setShuffle(!1);y.loaded=!0;y.W++;y.K&&y.K()}}; Ipj=function(y,q){var Q,p,v,d,T,O,w;return g.M(function(J){if(J.K==1){Q=g.yL();var F=y.T(),Y={context:g.RF(y),playbackContext:{contentPlaybackContext:{ancestorOrigins:F.ancestorOrigins}}},f=F.getWebPlayerContextConfig();if(f==null?0:f.encryptedHostFlags)Y.playbackContext.contentPlaybackContext.encryptedHostFlags=f.encryptedHostFlags;if(f==null?0:f.hideInfo)Y.playerParams={showinfo:!1};f=F.embedConfig;var h=y.Qg;var b=q.docid||q.video_id||q.videoId||q.id;if(!b){b=q.raw_embedded_player_response;if(!b){var Z= q.embedded_player_response;Z&&(b=JSON.parse(Z))}if(b){var k,S,N,l,u,c;b=((c=g.U((k=b)==null?void 0:(S=k.embedPreview)==null?void 0:(N=S.thumbnailPreviewRenderer)==null?void 0:(l=N.playButton)==null?void 0:(u=l.buttonRenderer)==null?void 0:u.navigationEndpoint,g.H3))==null?void 0:c.videoId)||null}else b=null}k=(k=b)?k:void 0;S=y.playlistId?y.playlistId:q.list;N=q.listType;if(S){var X;N==="user_uploads"?X={username:S}:X={playlistId:S};DUH(f,h,k,q,X,F.experiments);Y.playlistRequest=X}else q.playlist? (X={templistVideoIds:q.playlist.toString().split(",")},DUH(f,h,k,q,X,F.experiments),Y.playlistRequest=X):k&&(X={videoId:k},h&&F.L("embeds_enable_per_video_embed_config")?X.serializedThirdPartyEmbedConfig=h:f&&(X.serializedThirdPartyEmbedConfig=f),Y.singleVideoRequest=X);p=Y;v=g.dY(uD8);g.EC(J,2);return g.R(J,g.rY(Q,p,v),4)}if(J.K!=2)return d=J.W,T=y.T(),q.raw_embedded_player_response=d,T.Sj=YJ(q,g.d1(T)),T.N=T.Sj==="EMBEDDED_PLAYER_MODE_PFL",d&&(O=d,O.trackingParams&&YF(O.trackingParams)),J.return(new g.EB(T, q));w=g.Rj(J);w instanceof Error||(w=Error("b259802748"));g.l$(w);return J.return(y)})}; DUH=function(y,q,Q,p,v,d){p.index&&(v.playlistIndex=String(Number(p.index)+1));v.videoId=Q?Q:"";q&&d.ob("embeds_enable_per_video_embed_config")?v.serializedThirdPartyEmbedConfig=q:y&&(v.serializedThirdPartyEmbedConfig=y)}; g.k1=function(y,q){EG.get(y);EG.set(y,q)}; g.LC=function(y){g.V6.call(this);this.loaded=!1;this.player=y}; n5i=function(){this.W=[];this.K=[]}; g.pC=function(y,q){return q?y.K.concat(y.W):y.K}; g.aH=function(y,q){switch(q.kind){case "asr":g59(q,y.W);break;default:g59(q,y.K)}}; g59=function(y,q){g.ZC(q,function(Q){return y.equals(Q)})||q.push(y)}; g.NQ=function(y){g.I.call(this);this.xf=y;this.W=new n5i;this.N=null;this.J=[];this.C=[]}; g.SW=function(y,q,Q){g.NQ.call(this,y);this.videoData=q;this.audioTrack=Q;this.K=null;this.Y=!1;this.J=q.Mx;this.C=q.I8;this.Y=g.YW(q)}; g.cG2=function(y,q){var Q;return y.T().L("safari_live_drm_captions_fix")&&((Q=y.getVideoData())==null?0:Q.AR())?!1:g.tc(y.T())&&!q.isManifestless}; g.HT=function(y,q){return OA(y.info.mimeType)?q?y.info.itag===q:!0:!1}; g.UUf=function(y,q){if(y.K!=null&&g.cG2(q,y.K)&&y.K.K.rawcc!=null)return!0;if(!y.E9())return!1;q=!!y.K&&y.K.isManifestless&&Object.values(y.K.K).some(function(Q){return g.HT(Q,"386")}); y=!!y.K&&!y.K.isManifestless&&g.Zj9(y.K);return q||y}; g.RH=function(y,q,Q,p,v,d){g.NQ.call(this,y);this.videoId=Q;this.YS=v;this.eventId=d;this.G={};this.K=null;y=p||g.TS(q).hl||"";y=y.split("_").join("-");this.Y=V9(q,{hl:y})}; rGD=function(y,q){g.I.call(this);var Q=this;this.U=y;this.Y=q;this.Ok={};this.K={};this.W=null;this.N=new Set;this.J=new g.sU(this);this.je={X73:function(){return Q.Y}}; this.G=this.U.L("web_player_defer_modules");this.fg=new Map;g.n(this,this.J);this.J.Z(y,"videodatachange",this.onVideoDataChange)}; o5C=function(y,q){y.W=q}; g.sG=function(y){return y.fg.get("captions")}; X62=function(y,q){switch(q){case "ad":return AG9(y);case "annotations_module":return y.U.isEmbedsShortsMode()?y=!1:(q=y.U,y=q.T(),q=q.getVideoData(),y=y.N||q.N5||y.controlsType==="3"?!1:y.vI.isEmpty()&&y.playerStyle!=="annotation-editor"&&y.playerStyle!=="live-dashboard"?!!q.LK||!!g.w6(q)||!!g.Js(q):!0),y;case "asmjs":return eSi(y);case "creatorendscreen":return BdS(y);case "embed":return g.d1(y.U.T());case "endscreen":return g.GLS(y);case "heartbeat":return y.Dc();case "kids":return xo(y.U.T()); case "remote":return y.U.T().z5;case "miniplayer":return y.U.T().showMiniplayerUiWhenMinimized;case "offline":return y.U.T().Np;case "captions":return PRf(y);case "unplugged":return g.Yo(y.U.T());case "ux":return y.U.T().Ty;case "webgl":return i43(y);case "ypc":return y.pz();case "yto":return!1;default:return g.l$(Error("Module descriptor "+q+" does not match")),!1}}; MQ=function(y,q,Q,p,v){var d;Q=Q===void 0?!1:Q;p=p===void 0?!1:p;var T=y.fg.get(q);if(!T||p)if(v||(v=function(){MQ(y,q,Q,p)}),d||(d=function(){y.U.i9(q)}),T=T||mUC(y,q,X62(y,q),v,d))y.fg.set(q,T),T.create(),y.U.publish("modulecreated",q),Q&&y.U.h1("onApiChange")}; yhH=function(y){var q=q===void 0?!1:q;var Q,p,v,d,T;return g.M(function(O){if(O.K==1)return(Q=y.fg.get("asmjs"))&&!q?O.return(Q):(p=EG.get("asmjs"))!=null?(v=p,O.ej(2)):g.R(O,new Promise(function(w,J){CRH(y,"asmjs",function(){var F=EG.get("asmjs");F?w(F):J("cannot load module asmjs")},J)}),3); O.K!=2&&(v=O.W);d=v;if(!d)return O.return(Promise.reject("cannot load module asmjs"));T=new d(y.U);y.fg.set("asmjs",T);T.create();return O.return(T)})}; Qui=function(y){qDb(y)&&y.Vy();jub(y)&&(MQ(y,"captions",!0),MQ(y,"endscreen"),y.Ip(),MQ(y,"creatorendscreen",!0))}; jub=function(y){var q=y.U.getVideoData(),Q=y.G&&!q.isInlinePlaybackNoAd;y.U.L("html5_defer_modules_on_ads_only")&&!q.isAd()&&(Q=!1);return Q}; qDb=function(y){y=y.U.getVideoData();var q;if(q=y.L("web_player_defer_ad")){if(g.Eu(y.Sj,"ad")||oTi(y)||y.enableServerStitchedDai)y=!1;else{q=y.playerResponse;y=y.startSeconds;var Q=q==null?void 0:q.adPlacements;if(q=Q){q=Number.MAX_VALUE;Q=g.t(Q);for(var p=Q.next();!p.done;p=Q.next())if(p=p.value.adPlacementRenderer){var v=void 0,d=(v=p.config)==null?void 0:v.adPlacementConfig;v=void 0;if(((v=d)==null?void 0:v.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var T=v=void 0;d=Number((v=d)==null?void 0:(T= v.adTimeOffset)==null?void 0:T.offsetStartMilliseconds)||0;T=v=void 0;p=Number(((v=p.renderer)==null?void 0:(T=v.adBreakServiceRenderer)==null?void 0:T.prefetchMilliseconds)||0);p=d-p;p=11;y=y.api.T().X&&UG;return!(!q&&!y)}; y5=function(y,q){return!y.api.isInline()&&!kZi(y,Hn(q))&&g.Sn(q)}; EuS=function(y){y.Op.Ul();if(y.aO&&y.p5)y.p5=!1;else if(!y.api.T().LK&&!y.fP()){var q=y.api.getPlayerStateObject();g.G(q,2)&&g.XQ(y.api)||y.V0(q);!y.api.T().q$||q.isCued()||g.G(q,1024)?y.Q2():y.Fm.isActive()?(y.vU(),y.Fm.stop()):y.Fm.start()}}; aNp=function(y,q){var Q;if((Q=y.api.getVideoData())==null?0:Q.mutedAutoplay){var p,v;if((p=q.target)==null?0:(v=p.className)==null?0:v.includes("ytp-info-panel"))return!1}return g.Sn(q)&&y.api.isMutedByMutedAutoplay()?(y.api.unMute(),y.api.getPresentingPlayerType()===2&&y.api.playVideo(),q=y.api.getPlayerStateObject(),!g.G(q,4)||g.G(q,8)||g.G(q,2)||y.Q2(),!0):!1}; Nhs=function(y,q,Q){y.api.isFullscreen()?Q<1-q&&y.api.toggleFullscreen():Q>1+q&&y.api.toggleFullscreen()}; tSD=function(y){var q=GS()&&AM()>=67&&!y.api.T().X;y=y.api.T().disableOrganicUi;return!g.BF("tizen")&&!QK&&!q&&!y}; g.qF=function(y){g.r.call(this,{S:"div",D:[{S:"div",V:"ytp-bezel-text-wrapper",D:[{S:"div",V:"ytp-bezel-text",M$:"{{title}}"}]},{S:"div",V:"ytp-bezel",B:{role:"status","aria-label":"{{label}}"},D:[{S:"div",V:"ytp-bezel-icon",M$:"{{icon}}"}]}]});this.U=y;this.W=new g.y0(this.show,10,this);y=this.U.L("delhi_modern_web_player")?1E3:500;this.K=new g.y0(this.hide,y,this);g.n(this,this.W);g.n(this,this.K);this.hide()}; Q5=function(y,q,Q){if(q<=0){Q=l7();q="som desativado";var p=0}else Q=Q?{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,B:{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"}}]}:{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,B:{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"}}]},p=Math.floor(q),q=p+"volume";jO(y,Q,q,p+"%")}; SDb=function(y,q){q=q?{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{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"}}]}:aWg();var Q=y.U.getPlaybackRate(),p=g.Yr("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(Q)});jO(y,q,p,Q+"x")}; HHf=function(y,q){q=q?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";jO(y,ml9(y.U),q)}; jO=function(y,q,Q,p){p=p===void 0?"":p;y.updateValue("label",Q===void 0?"":Q);y.updateValue("icon",q);g.Q0(y.K);y.W.start();y.updateValue("title",p);g.fU(y.element,"ytp-bezel-text-hide",!p)}; Rab=function(y,q){g.r.call(this,{S:"button",rp:["ytp-button","ytp-cards-button"],B:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.d1(y.T()))},D:[{S:"span",V:"ytp-cards-button-icon-default",D:[{S:"div",V:"ytp-cards-button-icon",D:[y.T().L("player_new_info_card_format")?H_3():{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{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"}}]}]}, {S:"div",V:"ytp-cards-button-title",M$:"Informa\u00e7\u00f5es"}]},{S:"span",V:"ytp-cards-button-icon-shopping",D:[{S:"div",V:"ytp-cards-button-icon",D:[{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",V:"ytp-svg-shadow",B:{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"}},{S:"path",V:"ytp-svg-fill",B:{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"}},{S:"path",V:"ytp-svg-shadow-fill",B:{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"}}]}]},{S:"div", V:"ytp-cards-button-title",M$:"Compras"}]}]});this.U=y;this.W=q;this.K=null;this.fade=new g.vt(this,250,!0,100);g.n(this,this.fade);g.fU(this.W,"ytp-show-cards-title",g.d1(y.T()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.EC(!0)}; suj=function(y,q){g.r.call(this,{S:"div",V:"ytp-cards-teaser",D:[{S:"div",V:"ytp-cards-teaser-box"},{S:"div",V:"ytp-cards-teaser-text",D:y.T().L("player_new_info_card_format")?[{S:"button",V:"ytp-cards-teaser-info-icon",B:{"aria-label":"Exibir cards","aria-haspopup":"true"},D:[H_3()]},{S:"img",V:"ytp-cards-teaser-channel-avatar",B:{alt:"","aria-hidden":"true"}},{S:"span",V:"ytp-cards-teaser-label",M$:"{{text}}"},{S:"button",V:"ytp-cards-teaser-close-button",B:{"aria-label":"Fechar"},D:[g.ZI()]}]: [{S:"span",V:"ytp-cards-teaser-label",M$:"{{text}}"}]}]});var Q=this;this.U=y;this.dK=q;this.fade=new g.vt(this,250,!1,250);this.K=null;this.G=new g.y0(this.mzy,300,this);this.J=new g.y0(this.YWb,2E3,this);this.Y=[];this.W=null;this.X=new g.y0(function(){Q.element.style.margin="0"},250); this.onClickCommand=this.N=null;g.n(this,this.fade);g.n(this,this.G);g.n(this,this.J);g.n(this,this.X);y.T().L("player_new_info_card_format")?(g.wl(y.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.uB("ytp-cards-teaser-close-button"),"click",this.bA),this.Z(this.uB("ytp-cards-teaser-info-icon"),"click",this.uD),this.Z(this.uB("ytp-cards-teaser-label"),"click",this.uD)):this.listen("click",this.uD);this.Z(q.element,"mouseover",this.Bj);this.Z(q.element,"mouseout",this.b_);this.Z(y,"cardsteasershow", this.lmj);this.Z(y,"cardsteaserhide",this.QN);this.Z(y,"cardstatechange",this.H6);this.Z(y,"presentingplayerstatechange",this.H6);this.Z(y,"appresize",this.gt);this.Z(y,"onShowControls",this.gt);this.Z(y,"onHideControls",this.Rr);this.listen("mouseenter",this.B4)}; MS2=function(y){g.r.call(this,{S:"button",rp:[pk.BUTTON,pk.TITLE_NOTIFICATIONS],B:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},D:[{S:"div",V:pk.TITLE_NOTIFICATIONS_ON,B:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},D:[g.L1()]},{S:"div",V:pk.TITLE_NOTIFICATIONS_OFF,B:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, D:[{S:"svg",B:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},D:[{S:"path",B:{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=y;this.K=!1;y.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; lN8=function(y,q){y.K=q;y.element.classList.toggle(pk.NOTIFICATIONS_ENABLED,y.K);var Q=y.api.getVideoData();Q?(q=q?Q.CD:Q.ET)?(y=y.api.Yv())?UR(y,q):g.l$(Error("No innertube service available when updating notification preferences.")):g.l$(Error("No update preferences command available.")):g.l$(Error("No video data when updating notification preferences."))}; D53=function(y,q,Q){var p=p===void 0?800:p;var v=v===void 0?600:v;var d=document.location.protocol;y=nns(d+"//"+y+"/signin?context=popup","feature",q,"next",d+"//"+location.hostname+"/post_login");zaH(y,Q,p,v)}; zaH=function(y,q,Q,p){Q=Q===void 0?800:Q;p=p===void 0?600:p;if(y=g.$Z(window,y,"loginPopup","width="+Q+",height="+p+",resizable=yes,scrollbars=yes"))ZEs(function(){q()}),y.moveTo((screen.width-Q)/2,(screen.height-p)/2)}; g.vu=function(y,q,Q,p,v,d,T,O,w,J,F,Y){y=y.charAt(0)+y.substring(1).toLowerCase();Q=Q.charAt(0)+Q.substring(1).toLowerCase();if(q==="0"||q==="-1")q=null;if(p==="0"||p==="-1")p=null;var f=F.T(),h=f.userDisplayName&&g.F_(f);g.r.call(this,{S:"div",rp:["ytp-button","ytp-sb"],D:[{S:"div",V:"ytp-sb-subscribe",B:h?{title:F.T().L("player_tooltip_data_title_killswitch")?g.Yr("Inscrever-se como $USER_NAME",{USER_NAME:f.userDisplayName}):"","data-tooltip-title":g.Yr("Inscrever-se como $USER_NAME",{USER_NAME:f.userDisplayName}), "aria-label":"Inscrever-se no canal","data-tooltip-image":DO(f),"data-tooltip-opaque":String(g.d1(f)),tabindex:"0",role:"button"}:{"aria-label":"Inscrever-se no canal"},D:[{S:"div",V:"ytp-sb-text",D:[{S:"div",V:"ytp-sb-icon"},y]},q?{S:"div",V:"ytp-sb-count",M$:q}:""]},{S:"div",V:"ytp-sb-unsubscribe",B:h?{title:F.L("player_tooltip_data_title_killswitch")?g.Yr("Inscrito como $USER_NAME",{USER_NAME:f.userDisplayName}):"","data-tooltip-title":g.Yr("Inscrito como $USER_NAME",{USER_NAME:f.userDisplayName}), "aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":DO(f),"data-tooltip-opaque":String(g.d1(f)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},D:[{S:"div",V:"ytp-sb-text",D:[{S:"div",V:"ytp-sb-icon"},Q]},p?{S:"div",V:"ytp-sb-count",M$:p}:""]}],B:{"aria-live":"polite"}});var b=this;this.channelId=T;this.U=F;this.N=Y;var Z=this.uB("ytp-sb-subscribe"),k=this.uB("ytp-sb-unsubscribe");d&&g.wl(this.element,"ytp-sb-classic");if(v){O?this.K():this.W(); var S=function(){if(f.m3){var l=b.channelId;if(w||J){var u={c:l};var c;g.$F.isInitialized()&&(c=mIf(u));u=c||"";if(c=F.getVideoData())if(c=c.subscribeCommand){var X=F.Yv();X?(UR(X,c,{botguardResponse:u,feature:w}),F.AK("SUBSCRIBE",l)):g.l$(Error("No innertube service available when updating subscriptions."))}else g.l$(Error("No subscribe command in videoData."));else g.l$(Error("No video data available when updating subscription."))}k.focus();k.removeAttribute("aria-hidden");Z.setAttribute("aria-hidden", "true")}else D53(g.t6(b.U.T()),"sb_button",b.Y)},N=function(){var l=b.channelId; if(w||J){var u=F.getVideoData();UR(F.Yv(),u.unsubscribeCommand,{feature:w});F.AK("UNSUBSCRIBE",l)}Z.focus();Z.removeAttribute("aria-hidden");k.setAttribute("aria-hidden","true")}; this.Z(Z,"click",S);this.Z(k,"click",N);this.Z(Z,"keypress",function(l){l.keyCode===13&&S(l)}); this.Z(k,"keypress",function(l){l.keyCode===13&&N(l)}); this.Z(F,"SUBSCRIBE",this.K);this.Z(F,"UNSUBSCRIBE",this.W);this.N&&h&&(n7b(F),Gl(F,Z,this),Gl(F,k,this))}else g.wl(Z,"ytp-sb-disabled"),g.wl(k,"ytp-sb-disabled")}; nus=function(y){g.r.call(this,{S:"div",V:"ytp-title-channel",D:[{S:"div",V:"ytp-title-beacon"},{S:"a",V:"ytp-title-channel-logo",B:{href:"{{channelLink}}",target:y.T().j,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{S:"div",V:"ytp-title-expanded-overlay",B:{"aria-hidden":"{{flyoutUnfocusable}}"},D:[{S:"div",V:"ytp-title-expanded-heading",D:[{S:"div",V:"ytp-title-expanded-title",D:[{S:"a",M$:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:y.T().j,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{S:"div",V:"ytp-title-expanded-subtitle",M$:"{{expandedSubtitle}}",B:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var q=this;this.api=y;this.channel=this.uB("ytp-title-channel");this.W=this.uB("ytp-title-channel-logo");this.channelName=this.uB("ytp-title-expanded-title");this.J=this.uB("ytp-title-expanded-overlay");this.N=this.K=this.subscribeButton=null;this.Y=!1;y.createClientVe(this.W,this,36925);y.createClientVe(this.channelName,this, 37220);g.d1(this.api.T())&&uLD(this);this.Z(y,"videodatachange",this.XV);this.Z(y,"videoplayerreset",this.XV);this.Z(this.channelName,"click",function(Q){q.api.logClick(q.channelName);g.$Z(window,INb(q));Q.preventDefault()}); this.Z(this.W,"click",this.i3I);this.XV()}; guj=function(y){if(!y.api.T().hw){var q=y.api.getVideoData(),Q=new g.vu("Inscreva-se",null,"Inscrito",null,!0,!1,q.TC,q.subscribed,"channel_avatar",null,y.api,!0);y.api.createServerVe(Q.element,y);var p;y.api.setTrackingParams(Q.element,((p=q.subscribeButtonRenderer)==null?void 0:p.trackingParams)||null);y.Z(Q.element,"click",function(){y.api.logClick(Q.element)}); y.subscribeButton=Q;g.n(y,y.subscribeButton);y.subscribeButton.ym(y.J);y.subscribeButton.hide();var v=new MS2(y.api);y.K=v;g.n(y,v);v.ym(y.J);v.hide();y.Z(y.api,"SUBSCRIBE",function(){q.ID&&(v.show(),y.api.logVisibility(v.element,!0))}); y.Z(y.api,"UNSUBSCRIBE",function(){q.ID&&(v.hide(),y.api.logVisibility(v.element,!1),lN8(v,!1))})}}; uLD=function(y){var q=y.api.T();guj(y);y.updateValue("flyoutUnfocusable","true");y.updateValue("channelTitleFocusable","-1");y.updateValue("shouldHideExpandedTitleForA11y","true");y.updateValue("shouldHideExpandedSubtitleForA11y","true");q.W||q.Vm||(y.Z(y.channel,"mouseenter",y.Rf),y.Z(y.channel,"mouseleave",y.Si),y.Z(y.channel,"focusin",y.Rf),y.Z(y.channel,"focusout",function(Q){y.channel.contains(Q.relatedTarget)||y.Si()})); y.N=new g.y0(function(){y.isExpanded()&&(y.api.logVisibility(y.channelName,!1),y.subscribeButton&&(y.subscribeButton.hide(),y.api.logVisibility(y.subscribeButton.element,!1)),y.K&&(y.K.hide(),y.api.logVisibility(y.K.element,!1)),y.channel.classList.remove("ytp-title-expanded"),y.channel.classList.add("ytp-title-show-collapsed"))},500); g.n(y,y.N);y.Z(y.channel,chH,function(){U5p(y)}); y.Z(y.api,"onHideControls",y.FF);y.Z(y.api,"appresize",y.FF);y.Z(y.api,"fullscreentoggled",y.FF)}; U5p=function(y){y.channel.classList.remove("ytp-title-show-collapsed");y.channel.classList.remove("ytp-title-show-expanded")}; rh2=function(y){var q=y.api.getPlayerSize();return g.d1(y.api.T())&&q.width>=524}; INb=function(y){var q=y.api.T(),Q=y.api.getVideoData(),p=g.ue(q)+Q.q$;g.N4(Q)&&(p="https://music.youtube.com"+Q.q$);if(!g.d1(q))return p;q={};g.Dt(y.api,"addEmbedsConversionTrackingParams",[q]);return g.kb(p,q)}; dJ=function(y){var q=g.$X({"aria-haspopup":"true"});g.bQ.call(this,q,y);this.listen("keydown",this.td)}; T4=function(y,q){y.element.setAttribute("aria-haspopup",String(q))}; ouD=function(y,q){g.r.call(this,{S:"div",V:"ytp-user-info-panel",B:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},D:y.T().m3&&!y.L("embeds_web_always_enable_signed_out_state")?[{S:"div",V:"ytp-user-info-panel-icon",M$:"{{icon}}"},{S:"div",V:"ytp-user-info-panel-content",D:[{S:"div",V:"ytp-user-info-panel-info",B:{tabIndex:"{{userInfoFocusable}}",role:"text"},M$:"{{watchingAsUsername}}"},{S:"div",V:"ytp-user-info-panel-info",B:{tabIndex:"{{userInfoFocusable2}}",role:"text"},M$:"{{watchingAsEmail}}"}]}]: [{S:"div",V:"ytp-user-info-panel-icon",M$:"{{icon}}"},{S:"div",V:"ytp-user-info-panel-content",D:[{S:"div",D:[{S:"text",B:{tabIndex:"{{userInfoFocusable}}"},M$:"Conta desconectada"}]},{S:"div",V:"ytp-user-info-panel-login",D:[{S:"a",B:{tabIndex:"{{userInfoFocusable2}}",role:"button"},M$:y.T().hw?"":"Fazer login no YouTube"}]}]}]});this.xf=y;this.sourceElement=q;y.T().m3||y.T().hw||this.Z(this.uB("ytp-user-info-panel-login"),"click",this.H4);this.closeButton=new g.r({S:"button",rp:["ytp-collapse", "ytp-button"],B:{title:"Fechar"},D:[g.MP()]});this.closeButton.ym(this.element);g.n(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.kO);this.XV()}; PJ2=function(y,q,Q){g.SH.call(this,y);var p=this;this.fK=q;this.V8=Q;this.getVideoUrl=new dJ(6);this.vp=new dJ(5);this.eG=new dJ(4);this.IH=new dJ(3);this.W0=new g.bQ(g.$X({href:"{{href}}",target:this.U.T().j},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.bQ(g.$X(),1,"Estat\u00edsticas para nerds");this.eX=new g.Ye({S:"div",rp:["ytp-copytext","ytp-no-contextmenu"],B:{draggable:"false",tabindex:"1"},M$:"{{text}}"});this.gU=new N0(this.U,this.eX);this.M3=this.ZV= null;g.d1(this.U.T())&&(this.closeButton=new g.r({S:"button",rp:["ytp-collapse","ytp-button"],B:{title:"Fechar"},D:[g.MP()]}),g.n(this,this.closeButton),this.closeButton.ym(this.element),this.closeButton.listen("click",this.NH,this));g.d1(this.U.T())&&(this.kE=new g.bQ(g.$X(),8,"Conta"),g.n(this,this.kE),this.qU(this.kE,!0),this.kE.listen("click",this.kfs,this),y.createClientVe(this.kE.element,this.kE,137682));this.U.T().qB&&(this.Uv=new NZ("Loop",7),g.n(this,this.Uv),this.qU(this.Uv,!0),this.Uv.listen("click", this.K2j,this),y.createClientVe(this.Uv.element,this.Uv,28661));this.U.L("web_player_miniplayer_in_context_menu")&&(this.Be=new g.bQ(g.$X(),6,"Miniplayer"),g.n(this,this.Be),this.qU(this.Be,!0),this.Be.listen("click",this.F2I,this),y.createClientVe(this.Be.element,this.Be,62946));g.n(this,this.getVideoUrl);this.qU(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Cjf,this);y.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.n(this,this.vp);this.qU(this.vp,!0);this.vp.listen("click", this.IGs,this);y.createClientVe(this.vp.element,this.vp,28660);g.n(this,this.eG);this.qU(this.eG,!0);this.eG.listen("click",this.nsy,this);y.createClientVe(this.eG.element,this.eG,28658);g.n(this,this.IH);this.qU(this.IH,!0);this.IH.listen("click",this.dUp,this);g.n(this,this.W0);this.qU(this.W0,!0);this.W0.listen("click",this.gyw,this);g.n(this,this.showVideoInfo);this.qU(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.tbI,this);g.n(this,this.eX);this.eX.listen("click",this.xUm,this); g.n(this,this.gU);Ahi()&&(this.ZV=new g.r({S:"textarea",V:"ytp-html5-clipboard",B:{readonly:"",tabindex:"-1"}}),g.n(this,this.ZV),this.ZV.ym(this.element));var v;(v=this.kE)==null||v.setIcon(Dxb());var d;(d=this.Uv)==null||d.setIcon(cpS());var T;(T=this.Be)==null||T.setIcon(NP());this.IH.setIcon({S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.W0.setIcon(NfH());this.showVideoInfo.setIcon(SMb());this.Z(y,"onLoopChange",this.onLoopChange);this.Z(y,"videodatachange",this.onVideoDataChange);this.Z(y,"fullscreentoggled",function(){ea3(p)}); Bh9(this);GZ8(this,this.U.getVideoData())}; V5=function(y,q){var Q=!1;if(y.ZV){var p=y.ZV.element;p.value=q;p.select();try{Q=document.execCommand("copy")}catch(v){}}Q?y.fK.QN():(y.eX.Ct(q,"text"),g.sh(y.fK,y.gU),lQ(y.eX.element),y.ZV&&(y.ZV=null,Bh9(y)));return Q}; Ahi=function(){var y=document.queryCommandSupported&&document.queryCommandSupported("copy");Bgg("Chromium")>=43&&(y=!0);Bgg("Firefox")<=40&&(y=!1);return y}; ea3=function(y){var q;(q=y.Be)==null||q.BB(!y.U.isFullscreen()&&y.U.getPresentingPlayerType()!==2&&y.U.T().showMiniplayerButton)}; GZ8=function(y,q){var Q=y.U.T(),p=y.U.getPresentingPlayerType()===2,v=!p||q.isListed;v=!Q.N$&&!!q.videoId&&v;Q.playerStyle!=="play"?Q="https://support.google.com/youtube/?p=report_playback":(Q={contact_type:"playbackissue",html5:1,ei:q.eventId,v:q.videoId,p:"movies_playback"},q.W&&(Q.fmt=q.W.itag),q.clientPlaybackNonce&&(Q.cpn=q.clientPlaybackNonce),q.partnerId&&(Q.partnerid=q.partnerId),Q=g.kb("//support.google.com/googleplay/",Q));y.eG.BB(v&&q.allowEmbed);y.getVideoUrl.BB(v);y.vp.BB(v&&!q.isLivePlayback); y.W0.Ct(Q,"href");var d;(d=y.Uv)==null||d.BB(!q.isLivePlayback&&!p);ea3(y);var T;(T=y.kE)==null||T.BB(!p)}; Bh9=function(y){var q=!!y.ZV;g.hW(y.IH,q?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");T4(y.IH,!q);g.hW(y.eG,q?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");T4(y.eG,!q);g.hW(y.getVideoUrl,q?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");T4(y.getVideoUrl,!q);g.hW(y.vp,q?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");T4(y.vp,!q);y.eG.setIcon(q?kHg(): null);y.getVideoUrl.setIcon(q?EP():null);y.vp.setIcon(q?EP():null)}; iHH=function(y){return g.d1(y.U.T())?y.kE:y.Uv}; m5i=function(y,q){g.Ri.call(this,y);this.V8=q;this.W=new g.sU(this);this.X=new g.y0(this.P63,1E3,this);this.j=this.TD=null;g.n(this,this.W);g.n(this,this.X);q=this.U.T();y.createClientVe(this.element,this,28656);g.wl(this.element,"ytp-contextmenu");this.U.T().experiments.ob("delhi_modern_web_player")&&g.Nj(q)&&g.wl(this.element,"ytp-delhi-modern-contextmenu");Xz9(this);this.hide()}; Xz9=function(y){g.lw(y.W);var q=y.U.T();q.playerStyle==="gvn"||q.W||q.Vm||(q=y.U.lB(),y.W.Z(q,"contextmenu",y.pBB),y.W.Z(q,"touchstart",y.onTouchStart,null,!0),y.W.Z(q,"touchmove",y.Fy,null,!0),y.W.Z(q,"touchend",y.Fy,null,!0))}; CJH=function(y){y.U.isFullscreen()?g.pq(y.U,y.element,10):y.ym(Fa(y).body)}; OZ=function(y,q,Q){Q=Q===void 0?240:Q;g.r.call(this,{S:"button",rp:["ytp-button","ytp-copylink-button"],B:{title:y.L("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.d1(y.T()))},D:[{S:"div",V:"ytp-copylink-icon",M$:"{{icon}}"},{S:"div",V:"ytp-copylink-title",M$:"Copiar link",B:{"aria-hidden":"true"}}]});this.api=y;this.K=q;this.W=Q;this.visible=!1;this.tooltip=this.K.Dm();q=y.T();this.tooltip.element.setAttribute("aria-live", "polite");g.fU(this.element,"ytp-show-copylink-title",g.d1(q));y.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Z(y,"videodatachange",this.XV);this.Z(y,"videoplayerreset",this.XV);this.Z(y,"appresize",this.XV);this.XV();this.addOnDisposeCallback(g.B4(this.tooltip,this.element))}; yUf=function(y){var q=y.api.T(),Q=y.api.getVideoData(),p=y.api.lB().getPlayerSize().width;q=q.N;return!!Q.videoId&&p>=y.W&&Q.B9&&!Q.cO&&!y.api.isEmbedsShortsMode()&&!q}; qmi=function(y){y.updateValue("icon",K1());if(y.api.T().W)y.tooltip.xD(y.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{y.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");y.updateValue("tooltip-title","Link copiado para a \u00e1rea de transfer\u00eancia");y.tooltip.aM();y.tooltip.xD(y.element);var q=y.listen("mouseleave",function(){y.UW(q);y.XV();y.tooltip.qJ()})}}; jES=function(y,q){return g.M(function(Q){if(Q.K==1)return g.EC(Q,2),g.R(Q,navigator.clipboard.writeText(q),4);if(Q.K!=2)return Q.return(!0);g.Rj(Q);var p=Q.return,v=!1,d=g.bn("TEXTAREA");d.value=q;d.setAttribute("readonly","");var T=y.api.getRootNode();T.appendChild(d);if(P9){var O=window.getSelection();O.removeAllRanges();var w=document.createRange();w.selectNodeContents(d);O.addRange(w);d.setSelectionRange(0,q.length)}else d.select();try{v=document.execCommand("copy")}catch(J){}T.removeChild(d); return p.call(Q,v)})}; QEC=function(y){g.r.call(this,{S:"div",V:"ytp-doubletap-ui-legacy",D:[{S:"div",V:"ytp-doubletap-fast-forward-ve"},{S:"div",V:"ytp-doubletap-rewind-ve"},{S:"div",V:"ytp-doubletap-static-circle",D:[{S:"div",V:"ytp-doubletap-ripple"}]},{S:"div",V:"ytp-doubletap-overlay-a11y"},{S:"div",V:"ytp-doubletap-seek-info-container",D:[{S:"div",V:"ytp-doubletap-arrows-container",D:[{S:"span",V:"ytp-doubletap-base-arrow"},{S:"span",V:"ytp-doubletap-base-arrow"},{S:"span",V:"ytp-doubletap-base-arrow"}]},{S:"div", V:"ytp-doubletap-tooltip",D:[{S:"div",V:"ytp-seek-icon-text-container",D:[{S:"div",V:"ytp-seek-icon",M$:"{{seekIcon}}"},{S:"div",V:"ytp-chapter-seek-text-legacy",M$:"{{seekText}}"}]},{S:"div",V:"ytp-doubletap-tooltip-label",M$:"{{seekTime}}"}]}]}]});this.U=y;this.Y=new g.y0(this.show,10,this);this.W=new g.y0(this.hide,700,this);this.G=this.N=0;this.cI=this.J=!1;this.K=this.uB("ytp-doubletap-static-circle");g.n(this,this.Y);g.n(this,this.W);this.hide();this.X=this.uB("ytp-doubletap-fast-forward-ve"); this.j=this.uB("ytp-doubletap-rewind-ve");this.U.createClientVe(this.X,this,28240);this.U.createClientVe(this.j,this,28239);this.U.logVisibility(this.X,!0);this.U.logVisibility(this.j,!0);this.J=y.L("web_show_cumulative_seek_time");this.cI=y.L("web_center_static_circles")}; pdC=function(y,q){q=g.Yr("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:q.toString()});y.updateValue("seekTime",q)}; vPi=function(y){ai.call(this,y,!1,!0);this.Sj=[];this.XL=[];this.element.setAttribute("data-overlay-order","9");this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.gp=new g.r({S:"div",V:"ytp-featured-product-open-in-new"});g.n(this,this.gp);this.countdownTimer=new g.r({S:"text",V:"ytp-featured-product-countdown",M$:"{{content}}"});this.countdownTimer.hide();g.n(this,this.countdownTimer);this.W=new g.r({S:"div",V:"ytp-featured-product-trending",D:[{S:"div",V:"ytp-featured-product-trending-icon"}, {S:"text",V:"ytp-featured-product-trending-text",M$:"{{trendingOffer}}"}]});this.W.hide();g.n(this,this.W);this.overflowButton=new g.r({S:"button",rp:["ytp-featured-product-overflow-icon","ytp-button"],B:{"aria-haspopup":"true"}});this.overflowButton.hide();g.n(this,this.overflowButton);this.G=new g.r({S:"text",V:"ytp-featured-product-exclusive-countdown",M$:"{{content}}",B:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.n(this,this.G);this.J=new g.r({S:"div",V:"ytp-featured-product-exclusive-container", B:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},D:[{S:"div",V:"ytp-featured-product-exclusive-badge-container",D:[{S:"div",V:"ytp-featured-product-exclusive-badge",D:[{S:"text",V:"ytp-featured-product-exclusive-badge-text",M$:"{{exclusive}}",B:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.J.hide();g.n(this,this.J);this.banner=new g.r({S:"a",V:"ytp-featured-product-container",D:[{S:"div",V:"ytp-featured-product-thumbnail",D:[{S:"img",B:{src:"{{thumbnail}}"}},this.gp]},{S:"div", V:"ytp-featured-product-details",D:[{S:"text",V:"ytp-featured-product-title",M$:"{{title}}"},this.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",V:"ytp-featured-product-price-container",B:{"aria-label":"{{priceA11yText}}"},D:[{S:"text",V:"ytp-featured-product-price-when-promotion-text-enabled",M$:"{{price}}",B:{"aria-hidden":"true"}},{S:"text",V:"ytp-featured-product-promotion-text",M$:"{{promotionText}}",B:{"aria-hidden":"true"}}]}:{S:"div",B:{"aria-label":"{{priceA11yText}}"}, D:[{S:"text",V:"ytp-featured-product-price",M$:"{{price}}",B:{"aria-hidden":"true"}},{S:"text",V:"ytp-featured-product-sales-original-price",M$:"{{salesOriginalPrice}}",B:{"aria-hidden":"true"}},{S:"text",V:"ytp-featured-product-price-drop-reference-price",M$:"{{priceDropReferencePrice}}",B:{"aria-hidden":"true"}}]},this.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",V:"ytp-featured-product-when-promotion-text-enabled",D:[{S:"text",V:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", M$:"{{affiliateDisclaimer}}"},this.W,{S:"text",V:"ytp-featured-product-vendor-when-promotion-text-enabled",M$:"{{vendor}}"}]}:{S:"div",D:[{S:"text",V:"ytp-featured-product-affiliate-disclaimer",M$:"{{affiliateDisclaimer}}"},this.U.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.J:null,this.W,{S:"text",V:"ytp-featured-product-vendor",M$:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.n(this,this.banner);this.banner.ym(this.N.element);this.Z(this.U,g.jw("featured_product"), this.G3b);this.Z(this.U,g.Qb("featured_product"),this.jz);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.Tv);this.Z(y,"featuredproductdismissed",this.wI)}; dy9=function(y){var q,Q;y=(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:Q.itemData;var p,v,d;return(y==null||!y.affiliateDisclaimer)&&(y==null?0:(p=y.exclusivesData)==null?0:p.exclusiveOfferLabelText)&&(y==null?0:(v=y.exclusivesData)==null?0:v.expirationTimestampMs)&&(y==null?0:(d=y.exclusivesData)==null?0:d.exclusiveOfferCountdownText)?!0:!1}; V9H=function(y){var q,Q,p,v,d=(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:(p=Q.itemData)==null?void 0:(v=p.exclusivesData)==null?void 0:v.expirationTimestampMs;q=(Number(d)-Date.now())/1E3;if(q>0){if(q<604800){var T,O,w,J;Q=(T=y.K)==null?void 0:(O=T.bannerData)==null?void 0:(w=O.itemData)==null?void 0:(J=w.exclusivesData)==null?void 0:J.exclusiveOfferCountdownText;if(Q!==void 0)for(T=Date.now(),O=g.t(Q),w=O.next();!w.done;w=O.next())if(w=w.value,w!==void 0&&w.text!==void 0&&(J=Number(w.textDisplayStartTimestampMs), !isNaN(J)&&T>=J)){w.insertCountdown?(q=w.text.replace(/\$0/,String(Q7({seconds:q}))),y.G.Ct(q)):y.G.Ct(w.text);y.G.show();break}}var F,Y,f,h;y.J.update({exclusive:(F=y.K)==null?void 0:(Y=F.bannerData)==null?void 0:(f=Y.itemData)==null?void 0:(h=f.exclusivesData)==null?void 0:h.exclusiveOfferLabelText});y.J.show();wJ(y);var b;(b=y.T8)==null||b.start()}else T9C(y)}; T9C=function(y){var q;(q=y.T8)==null||q.stop();y.G.hide();y.J.hide();Jw(y)}; OaS=function(y){var q,Q,p=(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:Q.itemData;return y.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(p==null||!p.priceReplacementText)&&(p==null?0:p.promotionText)?p==null?void 0:p.promotionText.content:null}; wds=function(y){var q,Q,p=(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:Q.itemData,v,d;if(!(p!=null&&p.priceReplacementText||y.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(p==null?0:(v=p.dealsData)==null?0:(d=v.sales)==null?0:d.originalPrice)){var T,O;return p==null?void 0:(T=p.dealsData)==null?void 0:(O=T.sales)==null?void 0:O.originalPrice}return null}; JU2=function(y){var q,Q,p=(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:Q.itemData,v,d,T,O;if(!((p==null?0:p.priceReplacementText)||y.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(p==null?0:(v=p.dealsData)==null?0:(d=v.sales)==null?0:d.originalPrice))&&(p==null?0:(T=p.dealsData)==null?0:(O=T.priceDrop)==null?0:O.referencePrice)){var w,J;return p==null?void 0:(w=p.dealsData)==null?void 0:(J=w.priceDrop)==null?void 0:J.referencePrice}return null}; FV3=function(y){var q,Q,p=(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:Q.itemData;if(p==null?0:p.priceReplacementText)return p==null?void 0:p.priceReplacementText;if((p==null?0:p.promotionText)&&y.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var v;return(p==null?void 0:p.price)+" "+(p==null?void 0:(v=p.promotionText)==null?void 0:v.content)}var d,T;if(p==null?0:(d=p.dealsData)==null?0:(T=d.sales)==null?0:T.originalPrice){var O,w;return p==null?void 0:(O=p.dealsData)== null?void 0:(w=O.sales)==null?void 0:w.salesPriceAccessibilityLabel}var J,F;if(p==null?0:(J=p.dealsData)==null?0:(F=J.priceDrop)==null?0:F.referencePrice){var Y,f;return(p==null?void 0:p.price)+" "+(p==null?void 0:(Y=p.dealsData)==null?void 0:(f=Y.priceDrop)==null?void 0:f.referencePrice)}return p==null?void 0:p.price}; Ymj=function(y){if(y.U.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q,Q,p;return y.W.NU?null:(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:(p=Q.itemData)==null?void 0:p.vendorName}var v,d,T,O,w,J;return y.W.NU||y.J.NU||((v=y.K)==null?0:(d=v.bannerData)==null?0:(T=d.itemData)==null?0:T.affiliateDisclaimer)?null:(O=y.K)==null?void 0:(w=O.bannerData)==null?void 0:(J=w.itemData)==null?void 0:J.vendorName}; h0p=function(y,q){Ft(y);if(q){var Q=g.Mg.getState().entities;Q=dH(Q,"featuredProductsEntity",q);if(Q!=null&&Q.productsData){q=[];Q=g.t(Q.productsData);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;var v=void 0;if((v=p)!=null&&v.identifier&&p.featuredSegments){y.Sj.push(p);var d=void 0;v=g.t((d=p)==null?void 0:d.featuredSegments);for(d=v.next();!d.done;d=v.next()){var T=d.value;d=fV2(T.startTimeSec);d!==void 0&&(T=fV2(T.endTimeSec),q.push(new g.yb(d*1E3,T===void 0?0x7ffffffffffff:T*1E3,{id:p.identifier, namespace:"featured_product"})))}}}y.U.Tf(q)}}}; Jw=function(y){if(y.trendingOfferEntityKey){var q=g.Mg.getState().entities;if(q=dH(q,"trendingOfferEntity",y.trendingOfferEntityKey)){var Q,p,v;q.encodedSkuId!==((Q=y.K)==null?void 0:(p=Q.bannerData)==null?void 0:(v=p.itemData)==null?void 0:v.encodedOfferSkuId)?wJ(y):(y.W.update({trendingOffer:q.shortLabel+" \u2022 "+q.countLabel}),y.W.show(),y.banner.update({vendor:Ymj(y)}))}else wJ(y)}else wJ(y)}; wJ=function(y){y.W.hide();y.banner.update({vendor:Ymj(y)})}; Ft=function(y){y.Sj=[];y.jz();y.U.BO("featured_product")}; bab=function(y){var q,Q,p,v,d=(q=y.K)==null?void 0:(Q=q.bannerData)==null?void 0:(p=Q.itemData)==null?void 0:(v=p.hiddenProductOptions)==null?void 0:v.dropTimestampMs;q=(Number(d)-Date.now())/1E3;y.countdownTimer.Ct(Q7({seconds:q}));if(q>0){var T;(T=y.Se)==null||T.start()}}; $yb=function(y){var q;(q=y.Se)==null||q.stop();y.countdownTimer.hide()}; fV2=function(y){if(y!==void 0&&y.trim()!==""&&(y=Math.trunc(Number(y.trim())),!(isNaN(y)||y<0)))return y}; EPj=function(y,q,Q){g.r.call(this,{S:"div",rp:["ytp-info-panel-action-item"],D:[{S:"div",V:"ytp-info-panel-action-item-disclaimer",M$:"{{disclaimer}}"},{S:"a",rp:["ytp-info-panel-action-item-button","ytp-button"],B:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},D:[{S:"div",V:"ytp-info-panel-action-item-icon",M$:"{{icon}}"},{S:"div",V:"ytp-info-panel-action-item-label",M$:"{{label}}"}]}]});this.U=y;this.W=Q;this.disclaimer=this.uB("ytp-info-panel-action-item-disclaimer");this.button= this.uB("ytp-info-panel-action-item-button");this.hj=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);y="";Q=g.U(q==null?void 0:q.onTap,u$);var p=g.U(Q,g.cN);this.hj=!1;p?(y=p.url||"",y.startsWith("//")&&(y="https:"+y),this.hj=!0,g.FB(this.button,g.wV(y))):(p=g.U(Q,KVi))&&!this.W?((y=p.phoneNumbers)&&y.length>0?(y="sms:"+y[0],p.messageText&&(y+="?&body="+encodeURI(p.messageText))):y="",this.hj=!0,g.FB(this.button,g.wV(y,[xyj]))):(Q=g.U(Q,WVg))&&!this.W&&(y=Q.phoneNumber? "tel:"+Q.phoneNumber:"",this.hj=!0,g.FB(this.button,g.wV(y,[Zag])));this.U.L("embeds_enable_info_panel_dismissal")&&!y&&(Q=g.U(q==null?void 0:q.onTap,u$),p=g.U(Q,t99))&&(this.hj=!0,this.K=Q,this.feedbackToken=p.feedbackToken);var v;if(Q=(v=q.disclaimerText)==null?void 0:v.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var d;this.update({label:(d=q.bodyText)==null?void 0:d.content,icon:ay(),disclaimer:Q})}else{this.disclaimer.style.display="none";var T; this.update({label:(T=q.bodyText)==null?void 0:T.content,icon:ay()})}this.U.setTrackingParams(this.element,q.trackingParams||null);this.hj&&(this.N={externalLinkData:{url:y}})}; k89=function(y,q){var Q=OP();g.JW.call(this,y,{S:"div",V:"ytp-info-panel-detail-skrim",D:[{S:"div",V:"ytp-info-panel-detail",B:{role:"dialog",id:Q},D:[{S:"div",V:"ytp-info-panel-detail-header",D:[{S:"div",V:"ytp-info-panel-detail-title",M$:"{{title}}"},{S:"button",rp:["ytp-info-panel-detail-close","ytp-button"],B:{"aria-label":"Fechar"},D:[g.ZI()]}]},{S:"div",V:"ytp-info-panel-detail-body",M$:"{{body}}"},{S:"div",V:"ytp-info-panel-detail-items"}]}]},250);this.K=q;this.items=this.uB("ytp-info-panel-detail-items"); this.W=new g.sU(this);this.itemData=[];this.N=Q;this.Z(this.uB("ytp-info-panel-detail-close"),"click",this.QN);this.Z(this.uB("ytp-info-panel-detail-skrim"),"click",this.QN);this.Z(this.uB("ytp-info-panel-detail"),"click",function(p){p.stopPropagation()}); g.n(this,this.W);this.U.createServerVe(this.element,this,!0);this.Z(y,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",y.getVideoData());this.hide()}; LV9=function(y,q){y=g.t(y.itemData);for(var Q=y.next();!Q.done;Q=y.next())Q=Q.value,Q.U.logVisibility(Q.element,q)}; Sm2=function(y,q){g.r.call(this,{S:"div",V:"ytp-info-panel-preview",B:{"aria-live":"assertive","aria-atomic":"true","aria-owns":q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.d1(y.T()))},D:[{S:"div",V:"ytp-info-panel-preview-text",M$:"{{text}}"},{S:"div",V:"ytp-info-panel-preview-chevron",M$:"{{chevron}}"}]});var Q=this;this.U=y;this.l6=this.K=this.videoId=null;this.N=this.showControls=this.W=!1;this.Z(this.element,"click",function(){y.logClick(Q.element);y.fP();YX(q)}); this.fade=new g.vt(this,250,!1,100);g.n(this,this.fade);this.U.createServerVe(this.element,this,!0);this.Z(y,"videodatachange",this.onVideoDataChange);this.Z(y,"presentingplayerstatechange",this.oZ);this.Z(this.U,"paidcontentoverlayvisibilitychange",this.hX);this.Z(this.U,"infopaneldetailvisibilitychange",this.hX);var p=y.getVideoData()||{};aV2(p)&&N9j(this,p);this.Z(y,"onShowControls",this.Dq);this.Z(y,"onHideControls",this.Ao)}; N9j=function(y,q){if(!q.YW||!y.U.JM()){var Q=q.gj||1E4,p=aV2(q);y.K?q.videoId&&q.videoId!==y.videoId&&(g.Q0(y.K),y.videoId=q.videoId,p?(Ha8(y,Q,q),y.zD()):(y.QN(),y.K.dispose(),y.K=null)):p&&(q.videoId&&(y.videoId=q.videoId),Ha8(y,Q,q),y.zD())}}; aV2=function(y){var q,Q,p,v;return!!((q=y.cn)==null?0:(Q=q.title)==null?0:Q.content)||!!((p=y.cn)==null?0:(v=p.bodyText)==null?0:v.content)}; Ha8=function(y,q,Q){y.K&&y.K.dispose();y.K=new g.y0(y.hGs,q,y);g.n(y,y.K);var p;q=((p=Q.cn)==null?void 0:p.trackingParams)||null;y.U.setTrackingParams(y.element,q);var v;var d,T;if(Q==null?0:(d=Q.cn)==null?0:(T=d.title)==null?0:T.content){var O;p=(v=Q.cn)==null?void 0:(O=v.title)==null?void 0:O.content;var w,J;if((w=Q.cn)==null?0:(J=w.bodyText)==null?0:J.content)p+=" \u2022 ";v=p}else v="";var F,Y;Q=((F=Q.cn)==null?void 0:(Y=F.bodyText)==null?void 0:Y.content)||"";y.update({text:v+Q,chevron:g.WN()})}; R09=function(y,q){y.K&&(g.G(q,8)?(y.W=!0,y.zD(),y.K.start()):(g.G(q,2)||g.G(q,64))&&y.videoId&&(y.videoId=null))}; Yh=function(y){var q=null;try{q=y.toLocaleString("pt-BR",{style:"percent"})}catch(Q){q=y.toLocaleString(void 0,{style:"percent"})}return q}; fk=function(y,q){var Q=0;y=g.t(y);for(var p=y.next();!(p.done||p.value.startTime>q);p=y.next())Q++;return Q===0?Q:Q-1}; sEp=function(y,q){for(var Q=0,p=g.t(y),v=p.next();!v.done;v=p.next()){v=v.value;if(q=v.timeRangeStartMillis&&q2147483647?"0":String(y)}; bV=function(y,q,Q){var p=y.api.getCurrentTime(),v=IVC(y,p);y=IVC(y,p+q);return{startMediaTimeMs:v,endMediaTimeMs:y,seekSource:Q}}; nP3=function(y){var q,Q=(q=y.api.getVideoData())==null?void 0:q.Lg();return y.api.getPresentingPlayerType(Q)!==2}; hw=function(y,q){y.N.Xw=q;g.fU(y.api.getRootNode(),"ytp-probably-keyboard-focus",q);g.fU(y.contextMenu.element,"ytp-probably-keyboard-focus",q)}; Kk=function(y,q,Q,p){var v=g.sG(y.api.yN());if(v&&v.loaded){var d=y.api.getSubtitlesUserSettings();v=void 0;for(var T=0;T0?q[0]:null;var Q=g.w0("ytp-chrome-bottom"),p=g.w0("ytp-ad-module");y.N=!(Q==null||!Q.contains(q));y.G=!(p==null||!p.contains(q));y.X=!(q==null||!q.hasAttribute("data-tooltip-target-fixed"));return q}; PT8=function(y,q,Q){if(!y.Y){if(q){y.tooltipRenderer=q;q=y.tooltipRenderer.text;var p=!1,v;(q==null?0:(v=q.runs)==null?0:v.length)&&q.runs[0].text&&(y.update({title:q.runs[0].text.toString()}),p=!0);g.dM(y.title,p);q=y.tooltipRenderer.detailsText;v=!1;var d;if((q==null?0:(d=q.runs)==null?0:d.length)&&q.runs[0].text){p=q.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(d>-1)if(y.tooltipRenderer.targetId){q=[];p=p.split("$TARGET_ICON");var T=new g.wa({S:"span",V:"ytp-promotooltip-details-icon", D:[B9f[y.tooltipRenderer.targetId]]});g.n(y,T);for(var O=[],w=g.t(p),J=w.next();!J.done;J=w.next())J=new g.wa({S:"span",V:"ytp-promotooltip-details-component",M$:J.value}),g.n(y,J),O.push(J);p.length===2?(q.push(O[0].element),q.push(T.element),q.push(O[1].element)):p.length===1&&(d===0?(q.push(T.element),q.push(O[0].element)):(q.push(O[0].element),q.push(T.element)));d=q.length?q:null}else d=null;else d=p;if(d){if(typeof d!=="string")for(g.xn(y.details),v=g.t(d),d=v.next();!d.done;d=v.next())y.details.appendChild(d.value); else y.update({details:d});v=!0}}g.dM(y.details,v);v=y.tooltipRenderer.acceptButton;d=!1;var F,Y,f;((F=g.U(v,g.xT))==null?0:(Y=F.text)==null?0:(f=Y.runs)==null?0:f.length)&&g.U(v,g.xT).text.runs[0].text&&(y.update({acceptButtonText:g.U(v,g.xT).text.runs[0].text.toString()}),d=!0);g.dM(y.acceptButton,d);F=y.tooltipRenderer.dismissButton;Y=!1;var h,b,Z;((h=g.U(F,g.xT))==null?0:(b=h.text)==null?0:(Z=b.runs)==null?0:Z.length)&&g.U(F,g.xT).text.runs[0].text&&(y.update({dismissButtonText:g.U(F,g.xT).text.runs[0].text.toString()}), Y=!0);g.dM(y.dismissButton,Y)}Q&&(y.sourceElement=Q);y.K=e0j(y);y.J=!1;y.U.T().L("web_player_hide_nitrate_promo_tooltip")||y.BB(!0);G89(y);y.NU&&!y.j&&(y.j=!0,y.je.sC(0));y.W&&y.U.logVisibility(y.element,y.NU)}}; Zl=function(y){y.BB(!1);y.W&&y.U.logVisibility(y.element,y.NU)}; iag=function(y){var q,Q,p,v=((q=g.U(y.acceptButton,g.xT))==null?void 0:(Q=q.text)==null?void 0:(p=Q.runs)==null?void 0:p.length)&&!!g.U(y.acceptButton,g.xT).text.runs[0].text,d,T,O;q=((d=g.U(y.dismissButton,g.xT))==null?void 0:(T=d.text)==null?void 0:(O=T.runs)==null?void 0:O.length)&&!!g.U(y.dismissButton,g.xT).text.runs[0].text;return v||q}; G89=function(y){var q;if(!(q=!y.K)){q=y.K;var Q=window.getComputedStyle(q);q=Q.display==="none"||Q.visibility==="hidden"||q.getAttribute("aria-hidden")==="true"}if(q||y.U.isMinimized())y.BB(!1);else if(q=g.v5(y.K),q.width&&q.height){y.U.TN(y.element,y.K);var p=y.U.lB().getPlayerSize().height;Q=g.v5(y.uB("ytp-promotooltip-container")).height;y.N?y.element.style.top=p-Q-q.height-12+"px":y.X||(p=y.U.eA().height-Q-q.height-12,y.element.style.top=p+"px");p=y.uB("ytp-promotooltip-pointer");var v=g.Qh(y.K, y.U.getRootNode()),d=Number(y.element.style.left.replace(/[^\d\.]/g,""));y=y.U.isFullscreen()?18:12;p.style.left=v.x-d+q.width/2-y+"px";p.style.top=Q+"px"}else y.BB(!1)}; tw=function(y){g.r.call(this,{S:"button",rp:["ytp-replay-button","ytp-button"],B:{title:y.L("player_tooltip_data_title_killswitch")?"Reiniciar":"","data-tooltip-title":"Reiniciar"},D:[g.Ry()]});this.U=y;this.Z(y,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.hU(y.getPlayerStateObject());Gl(this.U,this.element,this)}; EZ=function(y,q){q=q===void 0?240:q;g.r.call(this,{S:"button",rp:["ytp-button","ytp-search-button"],B:{title:y.L("player_tooltip_data_title_killswitch")?"Pesquisar":"","data-tooltip-title":"Pesquisar","data-tooltip-opaque":String(g.d1(y.T()))},D:[{S:"div",V:"ytp-search-icon",M$:"{{icon}}"},{S:"div",V:"ytp-search-title",M$:"Pesquisar"}]});this.api=y;this.W=q;this.visible=!1;this.updateValue("icon",{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{S:"path",V:"ytp-svg-fill", B:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});y.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.K();this.Z(y,"appresize",this.K);this.Z(y,"videodatachange",this.K);Gl(y,this.element,this)}; kh=function(y){g.r.call(this,{S:"div",V:"ytp-seek-overlay",D:[{S:"div",rp:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],D:[{S:"div",rp:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],D:[{S:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},D:[{S:"path",B:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{S:"div",V:"ytp-seek-overlay-duration",M$:"{{durationBack}}"}]},{S:"div",rp:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],D:[{S:"div",V:"ytp-seek-overlay-duration",M$:"{{durationForward}}"},{S:"div",rp:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],D:[{S:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},D:[{S:"path",B:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{S:"div",V:"ytp-seek-overlay-message",D:[{S:"div",V:"ytp-seek-overlay-message-icon",M$:"{{icon}}"},{S:"div",V:"ytp-seek-overlay-message-text", M$:"{{text}}"}]}]});var q=this;this.U=y;this.J=0;this.K="hidden";this.X=this.uB("ytp-seek-overlay-animation-back");this.j=this.uB("ytp-seek-overlay-animation-forward");this.cI=this.uB("ytp-seek-overlay-message");this.G=new g.y0(function(){XdD(q)},g.wm(this.U.T().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.n(this,this.G);this.U.createClientVe(this.j,this,28240);this.U.createClientVe(this.X,this,28239);this.U.logVisibility(this.j,!0);this.U.logVisibility(this.X,!0);this.hide()}; my2=function(y,q){y.N=y.Y.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:q},{offset:1,opacity:1}],{duration:200,fill:"forwards"});y.N.addEventListener("finish",function(){y.N=void 0;y.G.start();y.K="lingering"})}; CTC=function(y,q,Q,p){Q=Q===void 0?!1:Q;p=p===void 0?!1:p;var v=[];v.push({offset:0,transform:"translateX("+(y.W===-1?20:-20)+"px)",opacity:Q?"0":"1"});Q&&v.push({offset:.5,opacity:"1"});v.push({offset:1,transform:"translateX(0)",opacity:"1"});Q=q.animate(v,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});q=q.querySelector("path");v=[];var d={offset:0,d:y.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};p&&(d.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");v.push(d); p&&v.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});y={offset:1,d:y.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};p&&(y.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");v.push(y);q.animate(v,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return Q}; yQs=function(y){var q=y.Y.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);q.classList.add("ytp-seek-overlay-arrow-additional");q.classList.remove("ytp-seek-overlay-arrow-persistent");y.Y.appendChild(q);CTC(y,q,!0,!0).addEventListener("finish",function(){q.remove()})}; XdD=function(y,q,Q){Q=Q===void 0?!0:Q;y.N=y.Y.animate([{offset:0,opacity:q===void 0?1:q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});Q&&(y.N.addEventListener("finish",function(){y.N=void 0;qtf(y);y.hide()}),y.K="fading-out")}; jYs=function(y){var q=Number(getComputedStyle(y.Y).opacity),Q;(Q=y.N)==null||Q.cancel();y.N=void 0;return q}; qtf=function(y){y.J=0;y.K="hidden";y.W=void 0;y.Y=void 0;y.G.stop();y.N=void 0}; QY2=function(y,q,Q){y.updateValue("text",q);if(Q){a:{switch(Q){case "PREMIUM_STANDALONE":q=IWs();break a;case "PREMIUM_STANDALONE_CAIRO":q=nJH();break a}q=void 0}y.updateValue("icon",q)}q=g.t(y.cI.getAnimations());for(Q=q.next();!Q.done;Q=q.next())Q.value.cancel();y.cI.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){y.updateValue("text","");y.updateValue("icon","")})}; Lk=function(y,q,Q,p){p=p===void 0?240:p;g.r.call(this,{S:"button",rp:["ytp-button","ytp-share-button"],B:{title:y.L("player_tooltip_data_title_killswitch")?"Compartilhar":"","data-tooltip-title":"Compartilhar","aria-haspopup":"true","aria-owns":Q.element.id,"data-tooltip-opaque":String(g.d1(y.T()))},D:[{S:"div",V:"ytp-share-icon",M$:"{{icon}}"},{S:"div",V:"ytp-share-title",M$:"Compartilhar"}]});this.api=y;this.K=q;this.W=Q;this.N=p;this.visible=!1;this.tooltip=this.K.Dm();y.createClientVe(this.element, this,28664);this.listen("click",this.onClick);this.Z(y,"videodatachange",this.XV);this.Z(y,"videoplayerreset",this.XV);this.Z(y,"appresize",this.XV);this.Z(y,"presentingplayerstatechange",this.XV);this.XV();this.addOnDisposeCallback(g.B4(this.tooltip,this.element))}; pfj=function(y){var q=y.api.T(),Q=y.api.getVideoData(),p=g.d1(q)&&g.yl(y.api)&&g.G(y.api.getPlayerStateObject(),128);q=q.N||q.disableSharing&&y.api.getPresentingPlayerType()!==2||!Q.showShareButton||Q.B9||p||Q.cO||!1;p=y.api.lB().getPlayerSize().width;return!!Q.videoId&&p>=y.N&&!q}; vx8=function(y,q){q.name!=="InvalidStateError"&&q.name!=="AbortError"&&(q.name==="NotAllowedError"?(y.K.fP(),YX(y.W,y.element,!1)):g.l$(q))}; T2g=function(y,q){var Q=OP(),p=y.T();Q={S:"div",V:"ytp-share-panel",B:{id:OP(),role:"dialog","aria-labelledby":Q},D:[{S:"div",V:"ytp-share-panel-inner-content",D:[{S:"div",V:"ytp-share-panel-title",B:{id:Q},M$:"Compartilhar"},{S:"a",rp:["ytp-share-panel-link","ytp-no-contextmenu"],B:{href:"{{link}}",target:p.j,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},M$:"{{linkText}}"},{S:"label",V:"ytp-share-panel-include-playlist",D:[{S:"input",V:"ytp-share-panel-include-playlist-checkbox", B:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{S:"div",V:"ytp-share-panel-loading-spinner",D:[MZ()]},{S:"div",V:"ytp-share-panel-service-buttons",M$:"{{buttons}}"},{S:"div",V:"ytp-share-panel-error",M$:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{S:"button",rp:["ytp-share-panel-close","ytp-button"],B:{title:"Fechar"},D:[g.ZI()]}]};g.JW.call(this,y,Q,250);var v=this;this.moreButton=null;this.api=y;this.tooltip= q.Dm();this.W=[];this.Y=this.uB("ytp-share-panel-inner-content");this.closeButton=this.uB("ytp-share-panel-close");this.Z(this.closeButton,"click",this.QN);this.addOnDisposeCallback(g.B4(this.tooltip,this.closeButton));this.N=this.uB("ytp-share-panel-include-playlist-checkbox");this.Z(this.N,"click",this.XV);this.K=this.uB("ytp-share-panel-link");this.addOnDisposeCallback(g.B4(this.tooltip,this.K));this.api.createClientVe(this.K,this,164503);this.Z(this.K,"click",function(d){d.preventDefault();v.api.logClick(v.K); var T=v.api.getVideoUrl(!0,!0,!1,!1);T=dA9(v,T);g.RV(T,v.api,d)&&v.api.AK("SHARE_CLICKED")}); this.listen("click",this.O7);this.Z(y,"videoplayerreset",this.hide);this.Z(y,"fullscreentoggled",this.onFullscreenToggled);this.Z(y,"onLoopRangeChange",this.hKp);this.hide()}; wfD=function(y,q){VZH(y);for(var Q=q.links||q.shareTargets,p=0,v={},d=0;d0&&!X&&!u?(l.length===2&&(l=["noreferrer"]),g.$Z(h,Z,f,l[0]),h=pqS()):(k=N.join(","),nI()&&h.navigator&&h.navigator.standalone&&f&&f!="_self"?(k=g.bn("A"),g.FB(k,Z),k.target=f,S&&(k.rel="noreferrer"),((b=b.attributionsrc)||b==="")&&k.setAttribute("attributionsrc",b),b=document.createEvent("MouseEvent"), b.initMouseEvent("click",!0,!0,h,1),k.dispatchEvent(b),h=pqS()):S?(h=g.$Z(h,"",f,k),b=g.Tq(Z),h&&(h.opener=null,b===""&&(b="javascript:''"),b='',b=hK(b),(Z=h.document)&&Z.write&&(Z.write(bl(b)),Z.close()))):((h=g.$Z(h,Z,f,k))&&b.noopener&&(h.opener=null),h&&b.noreferrer&&(h.opener=null)));h&&(h.opener||(h.opener=window),h.focus());Y.preventDefault()}}}(v)); v.GB.addOnDisposeCallback(g.B4(y.tooltip,v.GB.element));O==="Facebook"?y.api.createClientVe(v.GB.element,v.GB,164504):O==="Twitter"&&y.api.createClientVe(v.GB.element,v.GB,164505);y.Z(v.GB.element,"click",function(F){return function(){y.api.logClick(F.GB.element)}}(v)); y.api.logVisibility(v.GB.element,!0);y.W.push(v.GB);p++}}var w=q.more||q.moreLink,J=new g.r({S:"a",rp:["ytp-share-panel-service-button","ytp-button"],D:[{S:"span",V:"ytp-share-panel-service-button-more",D:[{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},D:[{S:"rect",B:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{S:"path",B:{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"}}]}]}],B:{href:w,target:"_blank",title:"Mais"}});J.listen("click",function(F){var Y=w;y.api.logClick(y.moreButton.element);Y=dA9(y,Y);g.RV(Y,y.api,F)&&y.api.AK("SHARE_CLICKED")}); J.addOnDisposeCallback(g.B4(y.tooltip,J.element));y.api.createClientVe(J.element,J,164506);y.Z(J.element,"click",function(){y.api.logClick(J.element)}); y.api.logVisibility(J.element,!0);y.W.push(J);y.moreButton=J;y.updateValue("buttons",y.W)}; dA9=function(y,q){var Q={};g.d1(y.api.T())&&(g.Dt(y.api,"addEmbedsConversionTrackingParams",[Q]),q=g.kb(q,Q));return q}; VZH=function(y){for(var q=g.t(y.W),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q.detach(),g.w5(Q);y.W=[]}; aN=function(y){return y===void 0||y.startSec===void 0||y.endSec===void 0?!1:!0}; JQs=function(y,q){y.startSec+=q;y.endSec+=q}; Ytg=function(y){ai.call(this,y);this.W=this.K=this.isContentForward=this.G=!1;this.element.setAttribute("data-overlay-order","8");F93(this);this.Z(this.U,"changeProductsInVideoVisibility",this.Ot$);this.Z(this.U,"videodatachange",this.onVideoDataChange)}; fK9=function(y){y.J&&y.Es.element.removeChild(y.J.element);y.J=void 0}; b79=function(y,q){return q.map(function(Q){var p,v;if((Q=(p=g.U(Q,hig))==null?void 0:(v=p.thumbnail)==null?void 0:v.thumbnails)&&Q.length!==0)return Q[0].url}).filter(function(Q){return Q!==void 0}).map(function(Q){Q=new g.r({S:"img", V:"ytp-suggested-action-product-thumbnail",B:{alt:"",src:Q}});g.n(y,Q);return Q})}; $AS=function(y,q){y.isContentForward=q;g.fU(y.badge.element,"ytp-suggested-action-badge-content-forward",q)}; NF=function(y){var q=y.isContentForward&&!y.jH();g.fU(y.badge.element,"ytp-suggested-action-badge-preview-collapsed",q&&y.K);g.fU(y.badge.element,"ytp-suggested-action-badge-preview-expanded",q&&y.W)}; SO=function(y,q,Q){return new g.yb(y*1E3,q*1E3,{priority:9,namespace:Q})}; K9g=function(y){y.U.BO("shopping_overlay_visible");y.U.BO("shopping_overlay_preview_collapsed");y.U.BO("shopping_overlay_preview_expanded");y.U.BO("shopping_overlay_expanded")}; F93=function(y){y.Z(y.U,g.jw("shopping_overlay_visible"),function(){y.ol(!0)}); y.Z(y.U,g.Qb("shopping_overlay_visible"),function(){y.ol(!1)}); y.Z(y.U,g.jw("shopping_overlay_expanded"),function(){y.N$=!0;LV(y)}); y.Z(y.U,g.Qb("shopping_overlay_expanded"),function(){y.N$=!1;LV(y)}); y.Z(y.U,g.jw("shopping_overlay_preview_collapsed"),function(){y.K=!0;NF(y)}); y.Z(y.U,g.Qb("shopping_overlay_preview_collapsed"),function(){y.K=!1;NF(y)}); y.Z(y.U,g.jw("shopping_overlay_preview_expanded"),function(){y.W=!0;NF(y)}); y.Z(y.U,g.Qb("shopping_overlay_preview_expanded"),function(){y.W=!1;NF(y)})}; Z73=function(y){g.r.call(this,{S:"div",V:"ytp-shorts-title-channel",D:[{S:"a",V:"ytp-shorts-title-channel-logo",B:{href:"{{channelLink}}",target:y.T().j,"aria-label":"{{channelLogoLabel}}"}},{S:"div",V:"ytp-shorts-title-expanded-heading",D:[{S:"div",V:"ytp-shorts-title-expanded-title",D:[{S:"a",M$:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:y.T().j,tabIndex:"0"}}]}]}]});var q=this;this.api=y;this.K=this.uB("ytp-shorts-title-channel-logo");this.channelName=this.uB("ytp-shorts-title-expanded-title"); this.subscribeButton=null;y.createClientVe(this.K,this,36925);this.Z(this.K,"click",function(Q){q.api.logClick(q.K);g.$Z(window,xAH(q));Q.preventDefault()}); y.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(Q){q.api.logClick(q.channelName);g.$Z(window,xAH(q));Q.preventDefault()}); W9p(this);this.Z(y,"videodatachange",this.XV);this.Z(y,"videoplayerreset",this.XV);this.XV()}; W9p=function(y){if(!y.api.T().hw){var q=y.api.getVideoData(),Q=new g.vu("Inscreva-se",null,"Inscrito",null,!0,!1,q.TC,q.subscribed,"channel_avatar",null,y.api,!0);y.api.createServerVe(Q.element,y);var p;y.api.setTrackingParams(Q.element,((p=q.subscribeButtonRenderer)==null?void 0:p.trackingParams)||null);y.Z(Q.element,"click",function(){y.api.logClick(Q.element)}); y.subscribeButton=Q;g.n(y,y.subscribeButton);y.subscribeButton.ym(y.element)}}; xAH=function(y){var q=y.api.T(),Q=y.api.getVideoData();Q=g.ue(q)+Q.q$;if(!g.d1(q))return Q;q={};g.Dt(y.api,"addEmbedsConversionTrackingParams",[q]);return g.kb(Q,q)}; Hu=function(y){g.JW.call(this,y,{S:"button",rp:["ytp-skip-intro-button","ytp-popup","ytp-button"],D:[{S:"div",V:"ytp-skip-intro-button-text",M$:"Pular introdu\u00e7\u00e3o"}]},100);var q=this;this.W=!1;this.K=new g.y0(function(){q.hide()},5E3); this.eB=this.Np=NaN;g.n(this,this.K);this.X=function(){q.show()}; this.Y=function(){q.hide()}; this.N=function(){var Q=q.U.getCurrentTime();Q>q.Np/1E3&&Q0?{S:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{S:"path",rp:["ytp-circle-arrow","ytp-svg-fill"],B:{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"}}, {S:"text",rp:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"7.05",y:"15.05"}}]}:{S:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{S:"path",rp:["ytp-circle-arrow","ytp-svg-fill"],B:{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"}}, {S:"text",rp:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"6.5",y:"15"}}]}]});var Q=this;this.U=y;this.K=q;this.W=new g.y0(function(){Q.N?(Q.N=!1,Q.W.start()):Q.element.classList.remove("ytp-jump-spin","backwards")},250); this.N=!1;(q=q>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var p=g.Yr(q?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.K).toString()});this.U.L("player_tooltip_data_title_killswitch")?this.update({title:p,"data-title-no-tooltip":p,"aria-keyshortcuts":q?"\u2192":"\u2190"}):this.update({"tooltip-title":p,"data-title-no-tooltip":p,"aria-keyshortcuts":q?"\u2192":"\u2190"});this.Y=this.element.querySelector(".ytp-jump-button-text"); this.Y.textContent=Math.abs(this.K).toString();this.listen("click",this.onClick,this);Gl(y,this.element,this)}; H7i=function(y,q){q?y.element.classList.add("ytp-jump-button-enabled"):y.element.classList.remove("ytp-jump-button-enabled");y.U.logVisibility(y.element,q);y.U.aM()}; uV=function(y,q){sZ.call(this,y,q,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.Z(y,g.Qb("timedMarkerCueRange"),this.xj);this.Z(y,"updatemarkervisibility",this.updateVideoData)}; Ri3=function(y){var q,Q=(q=y.U.getVideoData())==null?void 0:q.BI;if(Q)for(y=y.Y.HI,Q=g.t(Q),q=Q.next();!q.done;q=Q.next())if(q=y[q.value]){var p=void 0,v=void 0,d=void 0;if(((p=q.onTap)==null?void 0:(v=p.innertubeCommand)==null?void 0:(d=v.changeEngagementPanelVisibilityAction)==null?void 0:d.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return q}}; IN=function(y){var q=y.L("web_enable_pip_on_miniplayer");g.r.call(this,{S:"button",rp:["ytp-miniplayer-button","ytp-button"],B:{title:y.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},D:["{{icon}}"]});this.U=y;this.visible=!1;this.listen("click",this.onClick);this.Z(y,"fullscreentoggled",this.XV);this.U.L("player_tooltip_data_title_killswitch")? this.update({title:g.P4(y,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:sY3(this,q)}):this.update({"tooltip-title":g.P4(y,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:sY3(this,q)});Gl(y,this.element,this);y.createClientVe(this.element,this,62946);this.XV()}; sY3=function(y,q){return y.U.L("delhi_modern_web_player_icons")?{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:q?{S:"svg",B:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},D:[{S:"g",B:{transform:"translate(96, -96) scale(0.8)"},D:[{S:"path",Nz:!0,B:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:NP()}; nk=function(y,q,Q,p,v,d){d=d===void 0?!1:d;var T={S:"div",rp:["ytp-input-slider-section"],D:[{S:"input",V:"ytp-input-slider",B:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};v&&T.D.unshift(v);d&&T.rp.push("ytp-vertical-slider");g.r.call(this,T);this.Y=y;this.J=q;this.X=Q;this.initialValue=p;this.header=v;this.W=this.uB("ytp-input-slider");this.K=p?p:y;this.init();this.Z(this.W,"input",this.N);this.Z(this.W,"keydown", this.G)}; gJ=function(y,q){y.K=q;y.updateValue("slidervalue",y.K);y.W.valueAsNumber=y.K;MZs(y,q)}; MZs=function(y,q){y.W.style.setProperty("--yt-slider-shape-gradient-percent",(q-y.Y)/(y.J-y.Y)*100+"%")}; cu=function(y){var q=y.isMuted()?0:y.getVolume();nk.call(this,0,100,1,q,void 0,!0);this.U=y;this.cI=ni(this.m3,10,this);this.j=!1;this.Z(y,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"wheel",this.N$)}; lKg=function(y,q){g.r.call(this,{S:"div",B:{tabindex:"0",title:y.L("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},rp:["ytp-volume-popover"]});var Q=this;this.isVisible=!1;this.tooltip=q.Dm();this.W=new cu(y);g.n(this,this.W);this.W.ym(this.element);this.K=new g.y0(function(){UZ(Q,!1)},300); this.listen("mouseenter",function(){Q.K.stop()}); this.listen("mouseleave",function(){Q.K.start()}); this.listen("focus",function(){Q.K.stop()}); this.Z(this.W.W,"focus",function(){Q.K.stop()}); this.listen("focusout",function(){Q.K.start();Q.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.B4(q.Dm(),this.element));g.n(this,this.K)}; UZ=function(y,q){y.element.classList.toggle("ytp-volume-popover-hovering",q);y.isVisible=q;(y=y.element.closest(".ytp-chrome-bottom"))&&y.classList.toggle("ytp-volume-popover-showing",q)}; rJ=function(y,q,Q){Q=Q===void 0?!1:Q;var p=y.T().Es?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:y.L("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};p=y.L("delhi_modern_web_player")?{S:"div",V:"ytp-mute-button",D:[{S:"button",B:p,rp:["ytp-volume-icon", "ytp-button"],M$:"{{icon}}"}]}:{S:"button",rp:["ytp-mute-button","ytp-button"],B:p,D:[{S:"div",V:"ytp-volume-icon",M$:"{{icon}}"}]};g.r.call(this,p);this.U=y;this.vI=Q;this.W=null;this.G=this.m3=this.j=this.X=NaN;this.gp=this.cI=null;this.J=[];this.Y=[];this.visible=!1;this.N=this.K=this.N$=null;y.L("delhi_modern_web_player")&&this.update({"data-priority":4});Q=this.U.T();this.updateValue("icon",l7());this.tooltip=q.Dm();this.updateValue("dataTooltipOffsetY",0);this.N=g.w0("ytp-volume-icon",this.element); p=this.U.L("delhi_modern_web_player_icons")?{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",rp:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],B:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{S:"path",V:"ytp-svg-volume-animation-small-ripple",B:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{S:"path",V:"ytp-svg-volume-animation-big-ripple",B:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"defs",D:[{S:"clipPath",B:{id:"ytp-svg-volume-animation-mask"},D:[{S:"path",B:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{S:"path",B:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{S:"path",V:"ytp-svg-volume-animation-mover",B:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{S:"clipPath",B:{id:"ytp-svg-volume-animation-slash-mask"},D:[{S:"path",V:"ytp-svg-volume-animation-mover", B:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{S:"path",Nz:!0,rp:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],B:{"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"}},{S:"path",Nz:!0,rp:["ytp-svg-fill","ytp-svg-volume-animation-hider"],B:{"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"}}]};this.W=new g.wa(p);g.n(this,this.W);this.cI=this.W.uB("ytp-svg-volume-animation-speaker");this.gp=this.cI.getAttribute("d");this.J=g.VH("ytp-svg-volume-animation-mover",this.W.element);this.U.L("delhi_modern_web_player_icons");this.Y=g.VH("ytp-svg-volume-animation-hider",this.W.element);this.U.L("delhi_modern_web_player_icons");this.Es=new CV;g.n(this,this.Es);this.Sj=new CV;g.n(this,this.Sj);this.Z(y,"appresize",this.mP);this.Z(y,"onVolumeChange",this.onVolumeChange);y.L("delhi_modern_web_player")? this.listen("click",this.W5w):this.listen("click",this.FP);Q.Es?(y.L("delhi_modern_web_player")&&!y.L("delhi_modern_web_player_horizontal_volume_controls")&&(this.K=new lKg(y,q),this.K.ym(this.element),g.n(this,this.K),this.Z(this.N,"mouseover",this.Yt),this.Z(this.N,"focus",this.Yt),this.Z(this.N,"mouseout",this.Wr),this.Z(this.N,"blur",this.Wr)),Q=y.L("delhi_modern_web_player")?this.N:this.element,this.addOnDisposeCallback(g.B4(q.Dm(),Q))):zij(this);this.message=null;y.createClientVe(this.element, this,28662);this.mP(y.lB().getPlayerSize());this.setVolume(y.getVolume(),y.isMuted())}; DAs=function(y,q){if(y.U.T().Es){var Q=g.P4(y.U,"Sem \u00e1udio","m"),p=g.P4(y.U,"Reativar o som","m");Q=q?p:Q;y.U.T().L("player_tooltip_data_title_killswitch")?y.updateValue("title",Q):y.update({"tooltip-title":Q,"aria-label":Q});y.update({"data-title-no-tooltip":q?"Reativar o som":"Sem \u00e1udio"});y.tooltip.aM()}}; nx9=function(y,q){y.X=q;var Q=y.gp;y.U.L("delhi_modern_web_player_icons")?y.W.uB("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(q+") translate(-22,-12)")):q&&(Q+=UTC(uAS,IKD,q));y.cI.setAttribute("d",Q)}; gxS=function(y,q){var Q;q===1?Q=y.U.L("delhi_modern_web_player_icons")?{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:l7():Q=y.W;y.m3=q;if(y.U.L("delhi_modern_web_player_icons"))y.W.uB("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-q+") translate(-18,-12)")),y.W.uB("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(y.X-q+") translate(-22, -12)"));else{for(var p=20*q,v=0;v=3&&y.U.getPresentingPlayerType()!==2}; eiS=function(y){var q=C$(y.U.yN());return q?y.K?q.yI():q.bE():!1}; rQ3=function(y){var q={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},Q=y.playlist!=null&&y.playlist.yI();Q=g.yl(y.U)&&(!y.K||Q);var p=y.K&&g.vy(y.U),v=eiS(y),d=y.K&&y.U.getPresentingPlayerType()===5,T=g.P4(y.U,"Pr\u00f3ximo","SHIFT+n"),O=g.P4(y.U,"Anterior","SHIFT+p");if(d)q.title="Iniciar v\u00eddeo",q["tooltip-title"]="Iniciar v\u00eddeo";else if(y.N)q.title="Reiniciar",q["tooltip-title"]="Reiniciar";else if(Q){var w= null;y.playlist&&(w=g.tI(y.playlist,y.K?sxg(y.playlist):Mvb(y.playlist)));if(w){if(w.videoId){var J=y.playlist.listId;q.url=y.U.T().getVideoUrl(w.videoId,J?J.toString():void 0)}q.text=w.title;q.duration=w.lengthText?w.lengthText:w.lengthSeconds?g.NG(w.lengthSeconds):null;q.preview=w.h6("mqdefault.jpg")}y.K?(q.title=T,q["tooltip-title"]=T,q["data-title-no-tooltip"]="Pr\u00f3ximo",q["aria-keyshortcuts"]="SHIFT+n"):(q.title=O,q["tooltip-title"]=O,q["data-title-no-tooltip"]="Anterior",q["aria-keyshortcuts"]= "SHIFT+p")}else if(p){if(O=(w=y.videoData)==null?void 0:g.Rf(w))q.url=O.pV(),q.text=O.title,q.duration=O.lengthText?O.lengthText:O.lengthSeconds?g.NG(O.lengthSeconds):null,q.preview=O.h6("mqdefault.jpg");q.title=T;q["tooltip-title"]=T;q["data-title-no-tooltip"]="Pr\u00f3ximo";q["aria-keyshortcuts"]="SHIFT+n"}q.disabled=!p&&!Q&&!v&&!d;y.update(q);y.G=!!q.url;p||Q||y.N||v||d?y.W||(y.W=g.B4(y.tooltip,y.element),y.J=y.listen("click",y.onClick,y)):y.W&&(y.W(),y.W=null,y.UW(y.J),y.J=null);y.tooltip.aM(); g.fU(y.element,"ytp-playlist-ui",y.K&&(Q||y.U.L("web_hide_next_button")))}; UA9=function(y,q){return y?q?Me3():ke():q?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:gJs()}; GV9=function(y,q){g.r.call(this,{S:"div",V:"ytp-fine-scrubbing",D:[{S:"div",V:"ytp-fine-scrubbing-draggable",D:[{S:"div",V:"ytp-fine-scrubbing-thumbnails",B:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou role o painel at\u00e9 a busca precisa","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{S:"div",B:{"aria-hidden":"true"},V:"ytp-fine-scrubbing-cursor"},{S:"div",V:"ytp-fine-scrubbing-seek-time",B:{"aria-hidden":"true"}, M$:"{{seekTime}}"},{S:"div",V:"ytp-fine-scrubbing-play",D:[y.L("delhi_modern_web_player_icons")?HN():SA()],B:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{S:"div",V:"ytp-fine-scrubbing-dismiss",D:[g.ZI()],B:{title:"Sair da busca precisa",role:"button"}}]});var Q=this;this.api=y;this.J=this.uB("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.uB("ytp-fine-scrubbing-dismiss");this.m3=this.uB("ytp-fine-scrubbing-draggable");this.playButton=this.uB("ytp-fine-scrubbing-play");this.thumbnails= [];this.W=[];this.vI=this.K=0;this.Es=void 0;this.cI=NaN;this.LK=this.j=this.N=this.X=0;this.Y=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.Vm=0;this.isEnabled=this.gp=!1;B2i(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.B4(q,this.dismissButton));this.addOnDisposeCallback(g.B4(q,this.playButton));this.Sj=new g.cM(this.m3,!0);this.Sj.subscribe("dragstart",this.Bw,this);this.Sj.subscribe("dragmove",this.by,this);this.Sj.subscribe("dragend",this.T9,this);this.Z(y,"SEEK_COMPLETE", this.DS);y.L("web_fix_fine_scrubbing_false_play")&&this.Z(y,"rootnodemousedown",function(p){Q.N$=p}); this.J.addEventListener("keydown",function(){}); g.n(this,this.Sj);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.J,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; B2i=function(y,q){var Q=g.NG(q),p=g.Yr("Procurar $PROGRESS",{PROGRESS:g.NG(q,!0)});y.update({ariamin:0,ariamax:Math.floor(y.api.getDuration()),arianow:Math.floor(q),arianowtext:p,seekTime:Q})}; PCD=function(y){y.cI=NaN;y.j=0;y.X=y.N}; mAb=function(y){var q=y.api.u4();if(q){var Q=90*y.scale,p=hk(q,160*y.scale);if(q=q.levels[p]){y.G=q.width;if(!y.Y.length){p=[];for(var v=bc(q,q.C2()),d=q.columns*q.rows,T=q.frameCount,O=0;O<=v;O++)for(var w=Ty.Y.length;)p= void 0,(p=y.thumbnails.pop())==null||p.dispose();for(;y.thumbnails.lengthQ.length;)p=void 0,(p=y.W.pop())==null||p.dispose(); for(;y.W.length-Q?-q/Q*y.interval*.5:-(q+Q/2)/Q*y.interval}; CC2=function(y){return-((y.J.offsetWidth||(y.frameCount-1)*y.G*y.scale)-y.K/2)}; i7j=function(){g.r.call(this,{S:"div",V:"ytp-fine-scrubbing-thumbnail"})}; Xfb=function(){g.r.call(this,{S:"div",V:"ytp-fine-scrubbing-chapter-title",D:[{S:"div",V:"ytp-fine-scrubbing-chapter-title-content",M$:"{{chapterTitle}}"}]})}; q5s=function(y){g.r.call(this,{S:"div",V:"ytp-heat-map-chapter",D:[{S:"svg",V:"ytp-heat-map-svg",B:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},D:[{S:"defs",D:[{S:"clipPath",B:{id:"{{id}}"},D:[{S:"path",V:"ytp-heat-map-path",B:{d:"",fill:"white"}}]},{S:"linearGradient",B:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},D:[{S:"stop",B:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{S:"stop",B:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{S:"rect",V:"ytp-heat-map-graph",B:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",V:"ytp-heat-map-hover",B:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",V:"ytp-heat-map-play",B:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{S:"path",V:"ytp-modern-heat-map",B:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=y;this.X=this.uB("ytp-heat-map-svg");this.J=this.uB("ytp-heat-map-path");this.Y=this.uB("ytp-heat-map-graph");this.G=this.uB("ytp-heat-map-play");this.K=this.uB("ytp-heat-map-hover");this.N=this.uB("ytp-modern-heat-map");this.hj=!1;this.W=60;y=""+g.V_(this);this.update({id:y});y="url(#"+y+")";this.Y.setAttribute("clip-path",y);this.G.setAttribute("clip-path",y);this.K.setAttribute("clip-path",y)}; j1H=function(y,q){q>0&&(y.W=q,y.X.style.height=y.W+"px")}; Bu=function(){g.r.call(this,{S:"div",V:"ytp-chapter-hover-container",D:[{S:"div",V:"ytp-progress-bar-padding"},{S:"div",V:"ytp-progress-list",D:[{S:"div",rp:["ytp-play-progress","ytp-swatch-background-color"]},{S:"div",V:"ytp-progress-linear-live-buffer"},{S:"div",V:"ytp-load-progress"},{S:"div",V:"ytp-hover-progress"},{S:"div",V:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.W=this.uB("ytp-progress-list");this.J=this.uB("ytp-progress-linear-live-buffer"); this.Y=this.uB("ytp-ad-progress-list");this.G=this.uB("ytp-load-progress");this.X=this.uB("ytp-play-progress");this.N=this.uB("ytp-hover-progress");this.K=this.uB("ytp-chapter-hover-container")}; G4=function(y,q){g.B0(y.K,"width",q)}; Q1C=function(y,q){g.B0(y.K,"margin-right",q+"px")}; px9=function(){this.W=this.position=this.N=this.K=this.Y=this.width=NaN}; vgC=function(){g.r.call(this,{S:"div",V:"ytp-timed-marker"});this.K=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.iV=function(y,q){g.Ye.call(this,{S:"div",V:"ytp-progress-bar-container",B:{"aria-disabled":"true"},D:[{S:"div",rp:["ytp-heat-map-container"],D:[{S:"div",V:"ytp-heat-map-edu"}]},{S:"div",rp:["ytp-progress-bar"],B:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},D:[{S:"div",V:"ytp-chapters-container"},{S:"div",V:"ytp-timed-markers-container"},{S:"div", V:"ytp-clip-start-exclude"},{S:"div",V:"ytp-clip-end-exclude"},{S:"div",V:"ytp-scrubber-container",D:[{S:"div",rp:["ytp-scrubber-button","ytp-swatch-background-color"],D:[{S:"div",V:"ytp-scrubber-pull-indicator"},{S:"img",rp:["ytp-decorated-scrubber-button"]}]}]}]},{S:"div",rp:["ytp-fine-scrubbing-container"],D:[{S:"div",V:"ytp-fine-scrubbing-edu"}]},{S:"div",V:"ytp-bound-time-left",M$:"{{boundTimeLeft}}"},{S:"div",V:"ytp-bound-time-right",M$:"{{boundTimeRight}}"},{S:"div",V:"ytp-clip-start",B:{title:"{{clipstarttitle}}"}, M$:"{{clipstarticon}}"},{S:"div",V:"ytp-clip-end",B:{title:"{{clipendtitle}}"},M$:"{{clipendicon}}"}]});this.api=y;this.QY=!1;this.Bn=this.yf=this.BI=this.J=this.eP=0;this.oo=null;this.b9=!1;this.Vm={};this.Aw={};this.clipEnd=Infinity;this.XL=this.uB("ytp-clip-end");this.I7=new g.cM(this.XL,!0);this.BT=this.uB("ytp-clip-end-exclude");this.Kg=this.uB("ytp-clip-start-exclude");this.clipStart=0;this.T8=this.uB("ytp-clip-start");this.ra=new g.cM(this.T8,!0);this.cI=this.cB=0;this.progressBar=this.uB("ytp-progress-bar"); this.Se={};this.HI={};this.Dw=this.uB("ytp-chapters-container");this.Np=this.uB("ytp-timed-markers-container");this.K=[];this.G=[];this.zI={};this.YJ=null;this.gp=-1;this.RH=this.Es=0;this.cn=this.X=null;this.t1=this.uB("ytp-scrubber-button");this.m3=this.uB("ytp-decorated-scrubber-button");this.Gg=this.uB("ytp-scrubber-container");this.q$=new g.ek;this.EW=0;this.W_=new px9;this.N=new Im(0,0);this.Jw=null;this.j=this.YW=!1;this.RW=null;this.N$=this.uB("ytp-heat-map-container");this.Wn=this.uB("ytp-heat-map-edu"); this.Y=[];this.heatMarkersDecorations=[];this.Os=this.uB("ytp-fine-scrubbing-container");this.zf=this.uB("ytp-fine-scrubbing-edu");this.W=void 0;this.vI=this.eB=this.LK=!1;this.tooltip=q.Dm();this.addOnDisposeCallback(g.B4(this.tooltip,this.XL));g.n(this,this.I7);this.I7.subscribe("hoverstart",this.xY,this);this.I7.subscribe("hoverend",this.Vl,this);this.Z(this.XL,"click",this.Uh);this.addOnDisposeCallback(g.B4(this.tooltip,this.T8));g.n(this,this.ra);this.ra.subscribe("hoverstart",this.xY,this); this.ra.subscribe("hoverend",this.Vl,this);this.Z(this.T8,"click",this.Uh);dzH(this);this.Z(y,"resize",this.n3);this.Z(y,"presentingplayerstatechange",this.sO);this.Z(y,"videodatachange",this.gR);this.Z(y,"videoplayerreset",this.rT);this.Z(y,"cuerangesadded",this.ZUp);this.Z(y,"cuerangesremoved",this.jlK);this.Z(y,"onLoopRangeChange",this.a6);this.Z(y,"innertubeCommand",this.onClickCommand);this.Z(y,"onRetroModeChanged",this.rjm);this.Z(y,g.jw("timedMarkerCueRange"),this.C6j);this.Z(y,"updatemarkervisibility", this.TQ);this.Z(y,"serverstitchedvideochange",this.hss);this.updateVideoData(y.getVideoData(),!0);this.a6(y.getLoopRange());Pu(this)&&!this.W&&(this.W=new GV9(this.api,this.tooltip),y=this.US(this.element).x||0,this.W.n3(y,this.J),this.W.ym(this.Os),g.n(this,this.W),this.Z(this.W.dismissButton,"click",this.g$),this.Z(this.W.playButton,"click",this.YP),this.Z(this.W.element,"dblclick",this.YP));this.api.createClientVe(this.N$,this,139609,!0);this.api.createClientVe(this.Wn,this,140127,!0);this.api.createClientVe(this.zf, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; dzH=function(y){if(y.K.length===0){var q=new Bu;y.K.push(q);g.n(y,q);q.ym(y.Dw,0)}for(;y.K.length>1;)y.K.pop().dispose();G4(y.K[0],"100%");y.K[0].startTime=0;y.K[0].title=""}; Tb9=function(y){var q=q===void 0?NaN:q;var Q=new q5s(y.api);y.Y.push(Q);g.n(y,Q);Q.ym(y.N$);q>=0&&(Q.element.style.width=q+"px")}; V8b=function(y){for(;y.G.length;)y.G.pop().dispose()}; wxp=function(y){var q,Q,p,v,d;return(d=g.U((v=g.U((q=y.getWatchNextResponse())==null?void 0:(Q=q.playerOverlays)==null?void 0:(p=Q.playerOverlayRenderer)==null?void 0:p.decoratedPlayerBarRenderer,v3))==null?void 0:v.playerBar,Ocf))==null?void 0:d.chapters}; JFp=function(y){for(var q=y.K,Q=[],p=0;p=T&&Z<=F&&d.push(f)}w>0&&(y.N$.style.height=w+"px");T=y.Y[p];F=d;f=v;b=w;Z=p===0;Z=Z===void 0?!1:Z;j1H(T,b);Y=F;h=T.W;Z=Z===void 0?!1:Z;var k=1E3/Y.length,S=[];S.push({x:0,y:100});for(var N=0;N0&&(Q=d[d.length-1])}g.Xt(y);O=[];q=g.t(q.heatMarkersDecorations||[]);for(v=q.next();!v.done;v=q.next())if(v=g.U(v.value,K13))w=v.label,p=Q=J=void 0,O.push({visibleTimeRangeStartMillis:(J=v.visibleTimeRangeStartMillis)!=null?J:-1,visibleTimeRangeEndMillis:(Q=v.visibleTimeRangeEndMillis)!=null?Q:-1,decorationTimeMillis:(p=v.decorationTimeMillis)!=null?p:NaN,label:w?g.b7(w):""});y.heatMarkersDecorations=O}}; f69=function(y,q){y.G.push(q);g.n(y,q);q.ym(y.Np,y.Np.children.length)}; hKg=function(y,q){q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var p=mT(y,Q.timeRangeStartMillis/(y.N.K*1E3),Ck(y)),v=y.api.L("delhi_modern_web_player")?.667:.6;g.B0(Q.element,"transform","translateX("+p+"px) scaleX("+v+")")}}; F1C=function(y,q){var Q=0,p=!1;q=g.t(q);for(var v=q.next();!v.done;v=q.next()){v=v.value;if(g.U(v,W1H)){v=g.U(v,W1H);var d={startTime:NaN,title:null,onActiveCommand:void 0},T=v.title;d.title=T?g.b7(T):"";T=v.timeRangeStartMillis;T!=null&&(d.startTime=T);d.onActiveCommand=v.onActiveCommand;v=d;Q===0&&v.startTime!==0&&(y.K[Q].startTime=0,y.K[Q].title="",y.K[Q].onActiveCommand=v.onActiveCommand,Q++,p=!0);y.K.length<=Q&&(d=new Bu,y.K.push(d),g.n(y,d),d.ym(y.Dw,y.Dw.children.length));y.K[Q].startTime= v.startTime;y.K[Q].title=v.title?v.title:"";y.K[Q].onActiveCommand=v.onActiveCommand;y.K[Q].index=p?Q-1:Q}Q++}for(;Q=0;p--)if(y.K[p].width>0){Q1C(y.K[p],0);var v=Math.floor(y.K[p].width);y.K[p].width=v;G4(y.K[p],v+"px");break}y.K[Q].width=0;G4(y.K[Q],"0")}else Q===y.K.length-1?(p=Math.floor(y.K[Q].width+q),y.K[Q].width=p,G4(y.K[Q],p+"px")):(q=y.K[Q].width+q,p=Math.round(q),q-=p,y.K[Q].width=p,G4(y.K[Q],p+"px"));Q=0;if(y.Y.length===y.K.length)for(q=0;q< y.Y.length;q++)p=y.K[q].width,y.Y[q].element.style.width=p+"px",y.Y[q].element.style.left=Q+"px",Q+=p+qT(y);y.api.L("delhi_modern_web_player")&&(y.K.length===1?y.K[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(y.K[0].W.classList.remove("ytp-progress-bar-end"),y.K[0].W.classList.add("ytp-progress-bar-start"),y.K[y.K.length-1].W.classList.add("ytp-progress-bar-end")))}; Zcg=function(y,q){var Q=0,p=!1,v=y.K.length,d=y.N.K*1E3;d===0&&(d=y.api.getProgressState().seekableEnd*1E3);if(d>0&&y.J>0){for(var T=y.J-qT(y)*y.Es,O=y.RH===0?3:T*y.RH,w=g.t(y.K),J=w.next();!J.done;J=w.next())J.value.width=0;for(;Q1);J=(d===0?0:w/d*T)+y.K[Q].width;if(J>O)y.K[Q].width=J;else{y.K[Q].width=0;var F=y,Y=Q,f=F.K[Y-1];f!==void 0&&f.width>0? f.width+=J:Yy.RH&&(y.RH=w/d),p=!0)}Q++}}return p}; yg=function(y){if(y.J){var q=y.api.getProgressState(),Q=y.api.getVideoData();if(!(Q&&Q.enableServerStitchedDai&&Q.Uw)||isFinite(q.current)){var p;if(((p=y.api.getVideoData())==null?0:aF(p))&&q.airingStart&&q.airingEnd)var v=jU(y,q.airingStart,q.airingEnd);else if(y.api.getPresentingPlayerType()===2){var d,T,O;v=(Q=(v=y.api.getVideoData())==null?void 0:(d=v.getPlayerResponse())==null?void 0:(T=d.playerConfig)==null?void 0:(O=T.webPlayerConfig)==null?void 0:O.skippableAdProgressBarDuration)?jU(y,q.seekableStart, Q/1E3):jU(y,q.seekableStart,q.seekableEnd)}else v=jU(y,q.seekableStart,q.seekableEnd);d=ns(v,q.loaded,0);q=ns(v,q.current,0);T=y.N.W!==v.W||y.N.K!==v.K;y.N=v;Qg(y,q,d);T&&t89(y);Egf(y)}}}; jU=function(y,q,Q){return kgf(y)?new Im(Math.max(q,y.Jw.startTimeMs/1E3),Math.min(Q,y.Jw.endTimeMs/1E3)):new Im(q,Q)}; a6C=function(y,q){var Q,p,v;q=g.U((Q=q.getWatchNextResponse())==null?void 0:(p=Q.playerOverlays)==null?void 0:(v=p.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,v3);if(q==null?0:q.progressColor)for(Q=0;Q1){Q=pK(y,q.N,!0);for(var p=0,v=0;v0&&(p+=y.K[v].width,p+=qT(y));Q=(y.K[Q].startTime+(q.N-p)/y.K[Q].width*((Q===y.K.length-1?y.N.K*1E3:y.K[Q+1].startTime)-y.K[Q].startTime))/1E3||0}return Q}; S5D=function(y,q){if(q<0)return"0";y=Math.floor(Math.min(q,y.api.getDuration())*1E3);return y>2147483647?"0":String(y)}; dt=function(y,q,Q,p,v){q=S5D(y,q);Q=S5D(y,Q);y=y.progressBar.visualElement;p={seekData:{startMediaTimeMs:q,endMediaTimeMs:Q,seekSource:p}};(q=g.LD())&&vN(q,y,v,p)}; HcS=function(y,q,Q){if(Q>=y.K.length)return!1;var p=y.J-qT(y)*y.Es;return Math.abs(q-y.K[Q].startTime/1E3)/y.N.K*p<4}; t89=function(y){y.t1.style.removeProperty("height");for(var q=g.t(Object.keys(y.Vm)),Q=q.next();!Q.done;Q=q.next())RKC(y,Q.value);Ti(y);Qg(y,y.cI,y.cB)}; Ck=function(y){var q=y.q$.x;q=g.rV(q,0,y.J);y.W_.update(q,y.J);return y.W_}; Oy=function(y){return(y.j?135:90)-Vg(y)}; Vg=function(y){var q=48,Q=y.api.T();y.api.L("delhi_modern_web_player")?q=y.api.getPlayerSize().width<=528?y.api.L("delhi_modern_web_player_compact_controls")?56:64:y.j?y.api.L("delhi_modern_web_player_compact_controls")?72:96:y.api.L("delhi_modern_web_player_compact_controls")?56:72:y.j?q=54:g.d1(Q)&&!Q.W&&(q=40);return q}; Qg=function(y,q,Q){y.cI=q;y.cB=Q;var p=Ck(y),v=y.N.K,d=xbi(y.N,y.cI),T=g.Yr("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.NG(d,!0),DURATION:g.NG(v,!0)}),O=fk(y.K,d*1E3);O=y.K[O].title;y.update({ariamin:Math.floor(y.N.W),ariamax:Math.floor(v),arianow:Math.floor(d),arianowtext:O?O+" "+T:T});v=y.clipStart;d=y.clipEnd;y.Jw&&y.api.getPresentingPlayerType()!==2&&(v=y.Jw.startTimeMs/1E3,d=y.Jw.endTimeMs/1E3);v=ns(y.N,v,0);O=ns(y.N,d,1);T=y.api.getVideoData();d=g.rV(q,v,O);Q=(T==null?0:g.E7(T))?1:g.rV(Q, v,O);q=mT(y,q,p);g.B0(y.Gg,"transform","translateX("+q+"px)");y.api.L("delhi_modern_web_player")&&y.api.L("delhi_modern_web_player_cutout")&&s1g(y,q);wt(y,p,v,d,"PLAY_PROGRESS");(T==null?0:aF(T))?(q=y.api.getProgressState().seekableEnd)&&wt(y,p,d,ns(y.N,q),"LIVE_BUFFER"):wt(y,p,v,Q,"LOAD_PROGRESS");if(y.api.L("web_player_heat_map_played_bar")){var w;(w=y.Y[0])!=null&&w.G.setAttribute("width",(d*100).toFixed(2)+"%")}}; s1g=function(y,q){y.api.getPresentingPlayerType()!==1?y.Dw.style.removeProperty("clip-path"):(q||(q=mT(y,y.cI,Ck(y))),y.Dw.style.clipPath='path("'+(y.b9?M8C(y,8,q,y.j?50:36,0,6):M8C(y,4,q,y.j?34:24,2,3))+'")')}; M8C=function(y,q,Q,p,v,d){var T=Q-p/2;Q+=p/2;q+=v;return"M 0 "+v+" L 0 "+(q+" L ")+(T+" "+q+" C ")+(T+d+" "+q+" "+(T+d)+" "+v+" "+T+" "+v+" L 0 ")+(v+" M ")+(Q+" "+v+" L ")+(y.J+" "+v+" L ")+(y.J+" "+q+" L ")+(Q+" "+q+" C ")+(Q-d+" "+q+" "+(Q-d)+" "+v+" "+Q+" "+v)}; wt=function(y,q,Q,p,v){var d=y.K.length,T=q.K-y.Es*qT(y),O=Q*T;Q=pK(y,O);var w=p*T;T=pK(y,w);v==="HOVER_PROGRESS"&&(T=pK(y,q.K*p,!0),w=q.K*p-l6j(y,q.K*p)*qT(y));p=Math.max(O-zKf(y,Q),0);for(O=Q;O=y.K.length)return y.J;for(var Q=0,p=0;p0||y.BT.clientWidth>0?(d=q.clientWidth/Q,y=-1*y.Kg.clientWidth/Q):(d/=Q,y=-1*y.K[v].element.offsetLeft/Q),g.B0(q,"background-size",d+"px"),g.B0(q,"background-position-x",y+"px"))}; JZ=function(y,q,Q,p,v){v||y.api.T().W?q.style.width=Q+"px":g.B0(q,"transform","scalex("+(p?Q/p:0)+")")}; pK=function(y,q,Q){var p=0;(Q===void 0?0:Q)&&(q-=l6j(y,q)*qT(y));Q=g.t(y.K);for(var v=Q.next();!v.done;v=Q.next()){v=v.value;if(q>v.width)q-=v.width;else break;p++}return p===y.K.length?p-1:p}; mT=function(y,q,Q){var p=q*y.N.K*1E3;for(var v=-1,d=g.t(y.K),T=d.next();!T.done;T=d.next())T=T.value,p>T.startTime&&T.width>0&&v++;p=v<0?0:v;v=Q.K-qT(y)*y.Es;return q*v+qT(y)*p+Q.Y}; l6j=function(y,q){for(var Q=y.K.length,p=0,v=g.t(y.K),d=v.next();!d.done;d=v.next())if(d=d.value,d.width!==0)if(q>d.width)q-=d.width,q-=qT(y),p++;else break;return p===Q?Q-1:p}; g.I6p=function(y,q,Q,p){var v=y.J!==Q,d=y.j!==p;y.eP=q;y.J=Q;y.j=p;Pu(y)&&(q=y.W)!=null&&(q.scale=p?1.5:1);t89(y);y.K.length===1&&(y.K[0].width=Q||0);v&&g.Xt(y);y.W&&d&&Pu(y)&&(y.W.isEnabled&&(Q=y.j?135:90,p=Q-Vg(y),y.Os.style.height=Q+"px",g.B0(y.N$,"transform","translateY("+-p+"px)"),g.B0(y.progressBar,"transform","translateY("+-p+"px)")),mAb(y.W))}; Ti=function(y){var q=!!y.Jw&&y.api.getPresentingPlayerType()!==2,Q=y.clipStart,p=y.clipEnd,v=!0,d=!0;q&&y.Jw?(Q=y.Jw.startTimeMs/1E3,p=y.Jw.endTimeMs/1E3):(v=Q>y.N.W,d=y.N.K>0&&py.cI);g.fU(y.t1,"ytp-scrubber-button-hover",Q===p&&y.K.length>1);if(y.api.L("web_player_heat_map_played_bar")){var d;(d=y.Y[0])!=null&&d.K.setAttribute("width",(q.W*100).toFixed(2)+"%")}}}; RKC=function(y,q){var Q=y.Vm[q];q=y.Aw[q];var p=Ck(y),v=ns(y.N,Q.start/1E3,0),d=Mpj(Q,y.j)/p.width;var T=ns(y.N,Q.end/1E3,1);d!==Number.POSITIVE_INFINITY&&(v=g.rV(v,0,T-d));T=Math.min(T,v+d);Q.color&&(q.style.background=Q.color);Q=v;q.style.left=Math.max(Q*p.K+p.Y,0)+"px";JZ(y,q,g.rV((T-Q)*p.K+p.Y,0,p.width),p.width,!0)}; ng9=function(y,q){var Q=q.getId();y.Vm[Q]===q&&(g.Z5(y.Aw[Q]),delete y.Vm[Q],delete y.Aw[Q])}; Pu=function(y){var q=g.Nj(y.api.T())&&(y.api.L("web_shorts_pip")||y.api.L("web_watch_pip")),Q;return!((Q=y.api.getVideoData())==null?0:Q.isLivePlayback)&&!y.api.isMinimized()&&!y.api.isInline()&&(!y.api.P_()||!q)}; F8=function(y){y.W&&(y.W.disable(),y.BI=0,y.N$.style.removeProperty("transform"),y.progressBar.style.removeProperty("transform"),y.Os.style.removeProperty("height"),y.element.parentElement&&y.element.parentElement.style.removeProperty("height"))}; ggs=function(y,q){var Q=q/Oy(y)*Vg(y);g.B0(y.progressBar,"transform","translateY("+-q+"px)");g.B0(y.N$,"transform","translateY("+-q+"px)");g.B0(y.Os,"transform","translateY("+Q+"px)");y.Os.style.height=q+Q+"px";y.element.parentElement&&(y.element.parentElement.style.height=Vg(y)-Q+"px")}; cFp=function(y,q){q?y.X||(y.element.removeAttribute("aria-disabled"),y.X=new g.cM(y.progressBar,!0),y.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&y.X.subscribe("hoverstart",y.j7m,y),y.X.subscribe("hovermove",y.f3s,y),y.X.subscribe("hoverend",y.qWj,y),y.X.subscribe("dragstart",y.Pt3,y),y.X.subscribe("dragmove",y.WuI,y),y.X.subscribe("dragend",y.Kum,y),y.api&&y.api.L("delhi_modern_web_player")&&y.api.L("delhi_modern_web_player_cutout")&&(y.cn=new g.cM(y.progressBar, !0),y.cn.subscribe("hoverstart",function(){y.b9=!0;s1g(y)},y),y.cn.subscribe("hoverend",function(){y.b9=!1; s1g(y)},y)),y.RW=y.listen("keydown",y.td)):y.X&&(y.element.setAttribute("aria-disabled","true"),y.UW(y.RW),y.X.cancel(),y.X.dispose(),y.X=null)}; qT=function(y){return y.api.L("delhi_modern_web_player")?4:y.j?3:2}; kgf=function(y){var q;return!((q=y.Jw)==null||!q.postId)&&y.api.getPresentingPlayerType()!==2}; YO=function(y,q){g.r.call(this,{S:"button",rp:["ytp-remote-button","ytp-button"],B:{title:y.L("player_tooltip_data_title_killswitch")?"Reproduzir na TV":"","data-tooltip-title":"Reproduzir na TV","aria-haspopup":"true","data-priority":"10"},M$:"{{icon}}"});this.U=y;this.fK=q;this.K=null;this.Z(y,"onMdxReceiversChange",this.XV);this.Z(y,"presentingplayerstatechange",this.XV);this.Z(y,"appresize",this.XV);y.createClientVe(this.element,this,139118);this.XV();this.listen("click",this.W,this);Gl(y,this.element, this)}; fK=function(y,q){g.r.call(this,{S:"button",rp:["ytp-button","ytp-settings-button"],B:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":OP(),title:y.L("player_tooltip_data_title_killswitch")?"Detalhes":"","data-tooltip-title":"Detalhes","data-tooltip-target-id":"ytp-settings-button"},D:[y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.sP()]});this.U=y;this.fK=q;this.W=!0;this.listen("click",this.N);this.Z(y,"onPlaybackQualityChange",this.updateBadge);this.Z(y,"videodatachange",this.updateBadge);this.Z(y,"webglsettingschanged",this.updateBadge);this.Z(y,"appresize",this.K);Gl(y,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.K(y.lB().getPlayerSize())}; Uz8=function(y,q){y.W=!!q;y.K(y.U.lB().getPlayerSize())}; hZ=function(y,q,Q){g.Ii.call(this,"Faixa de \u00e1udio",g.zj.AUDIO,y,q);this.U=y;this.K=Q;this.tracks={};g.wl(this.element,"ytp-audio-menu-item");this.countLabel=new g.r({S:"div",D:[{S:"span",M$:"Faixa de \u00e1udio"},{S:"span",V:"ytp-menuitem-label-count",M$:"{{content}}"}]});y.L("web_settings_menu_icons")&&!this.U.L("html5_enable_new_audio_settings_menu")&&(q=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:uWg(),this.setIcon(q));g.n(this,this.countLabel);g.hW(this,this.countLabel);this.U.L("html5_enable_audio_ve_logging")&&(y.createClientVe(this.element,this,273318),this.listen("click",this.onClick));this.Z(y,"videodatachange",this.XV);this.Z(y,"onPlaybackAudioChange",this.XV);this.XV()}; rFS=function(y,q){g.bQ.call(this,g.$X({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.zj.rV);this.U=y;this.fK=q;g.wl(this.element,"ytp-audio-settings-menu-item");this.TD=new g.SH(y,void 0,"\u00c1udio");this.countLabel=new g.r({S:"div",D:[{S:"span",M$:"\u00c1udio"},{S:"span",V:"ytp-menuitem-label-count",M$:"{{content}}"}]});y.L("web_settings_menu_icons")&&this.setIcon({S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.TG=new hZ(y,this.fK,this);g.n(this,this.TG);this.Z(y,"settingsMenuInitialized",this.Il.bind(this));this.Z(y,"videodatachange",this.Il.bind(this));g.n(this,this.countLabel);g.hW(this,this.countLabel);this.fK.qU(this);this.Z(y,"onPlaybackAudioChange",this.Qe);this.listen("keydown",this.td);this.listen("click",this.open)}; ba=function(y,q){NZ.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.zj.sH);this.U=y;this.fK=q;this.K=!1;this.W=[];this.Z(y,"presentingplayerstatechange",this.Il);this.subscribe("select",this.onSelect,this);y.createClientVe(this.element,this,113682);this.Il()}; ogD=function(y,q){g.bQ.call(this,g.$X({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.U=y;this.fK=q;this.Z(this.element,"click",this.onClick);this.fK.qU(this)}; AFp=function(y,q){var Q;g.Nj(y.T())&&(Q={S:"div",V:"ytp-panel-footer-content",D:[{S:"span",M$:"Ajuste a qualidade do download em "},{S:"a",V:"ytp-panel-footer-content-link",M$:"Detalhes",B:{href:"/account_downloads"}}]});g.Ii.call(this,"Qualidade",g.zj.a$,y,q,void 0,void 0,Q);this.U=y;this.N$={};this.G={};this.W={};this.m3=new Set;this.K=this.Y=!1;this.J="unknown";this.X="";this.cI=new g.eB;g.n(this,this.cI);this.Y=this.U.L("web_player_use_new_api_for_quality_pullback");this.K=this.U.L("web_player_enable_premium_hbr_playback_cap"); y.L("web_settings_menu_icons")&&(q=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{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"}}]},this.setIcon(q));g.wl(this.TD.element,"ytp-quality-menu");this.Z(y,"videodatachange",this.Il);this.Z(y,"videoplayerreset",this.Il);this.Z(y,"onPlaybackQualityChange",this.u$);this.Il();y.createClientVe(this.element,this,137721)}; Bb9=function(y,q,Q){var p=y.N$[q],v=g.A7[q];return eK2(y,p?p.qualityLabel:v?v+"p":"Autom\u00e1tico",q,Q)}; Gg2=function(y,q,Q,p,v){var d=(q=y.K?y.W[q]:y.G[q])&&q.quality,T=q&&q.qualityLabel;T=T?T:"Autom\u00e1tico";p&&(T="("+T);y=eK2(y,T,d||"",v);p&&y.D.push(")");(p=(p=q&&q.paygatedQualityDetails)&&p.paygatedIndicatorText)&&Q&&y.D.push({S:"div",V:"ytp-premium-label",M$:p});return y}; eK2=function(y,q,Q,p){q={S:"span",rp:p,D:[q]};var v;p="ytp-swatch-color";if(y.Y||y.K)p="ytp-swatch-color-white";Q==="highres"?v="8K":Q==="hd2880"?v="5K":Q==="hd2160"?v="4K":Q.indexOf("hd")===0&&Q!=="hd720"&&(v="HD");v&&(q.D.push(" "),q.D.push({S:"sup",V:p,M$:v}));return q}; $O=function(y){nk.call(this,y.getAvailablePlaybackRates()[0],y.getAvailablePlaybackRates()[y.getAvailablePlaybackRates().length-1],.05,y.getPlaybackRate(),{S:"div",V:"ytp-speedslider-indicator-container",D:[{S:"div",V:"ytp-speedslider-badge"},{S:"p",V:"ytp-speedslider-text"}]});this.U=y;this.cI=ni(this.m3,50,this);g.wl(this.W,"ytp-speedslider");this.j=this.uB("ytp-speedslider-text");this.N$=this.uB("ytp-speedslider-badge");P42(this);this.Z(this.W,"change",this.Sj)}; P42=function(y){y.j.textContent=y.K.toFixed(2)+"x";var q=y.K>2&&y.U.L("enable_web_premium_varispeed");y.N$.classList.toggle("ytp-speedslider-premium-badge",q);y.N$.setAttribute("aria-label",q?"Premium":"")}; KK=function(y,q,Q,p,v,d,T){g.r.call(this,{S:"div",V:"ytp-slider-section",B:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},D:[{S:"div",V:"ytp-slider",D:[{S:"div",V:"ytp-slider-handle"}]}]});this.X=y;this.j=q;this.W=Q;this.N=p;this.cI=v;this.gp=d;this.range=this.N-this.W;this.Es=this.uB("ytp-slider-section");this.Y=this.uB("ytp-slider");this.N$=this.uB("ytp-slider-handle");this.G=new g.cM(this.Y, !0);this.K=T?T:Q;g.n(this,this.G);this.G.subscribe("dragmove",this.nQ,this);this.Z(this.element,"keydown",this.CQ);this.Z(this.element,"wheel",this.dV);this.init()}; xO=function(y){KK.call(this,.05,.05,y.getAvailablePlaybackRates()[0],y.getAvailablePlaybackRates()[y.getAvailablePlaybackRates().length-1],150,20,y.getPlaybackRate());this.U=y;this.J=g.bn("P");this.Sj=ni(this.m3,50,this);g.wl(this.Y,"ytp-speedslider");g.wl(this.J,"ytp-speedslider-text");y=this.J;var q=this.Y;q.parentNode&&q.parentNode.insertBefore(y,q.nextSibling);icg(this);this.Z(this.U,"onPlaybackRateChange",this.updateValues)}; icg=function(y){y.J.textContent=XxS(y,y.K)+"x"}; XxS=function(y,q){y=Number(g.rV(q,y.W,y.N).toFixed(2));q=Math.floor((y+.001)*100%5+2E-15);var Q=y;q!==0&&(Q=y-q*.01);return Number(Q.toFixed(2))}; mzf=function(y){g.Ye.call(this,{S:"div",V:"ytp-speedslider-component"});y.L("web_settings_use_input_slider")?this.K=new $O(y):this.K=new xO(y);g.n(this,this.K);this.element.appendChild(this.K.element)}; C4C=function(y){var q=new mzf(y);N0.call(this,y,q,"Personalizado");g.n(this,q)}; qO9=function(y,q){var Q=new C4C(y);g.Ii.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.zj.S1,y,q,W8(y)?void 0:"Personalizado",W8(y)?void 0:function(){g.sh(q,Q)}); var p=this;this.G=new g.r({S:"div",V:"ytp-menuitem-premium-badge"});this.Y=!1;g.n(this,Q);this.X=new $O(y);g.n(this,this.X);if(y.L("web_settings_menu_icons")){var v=y.L("delhi_modern_web_player_icons")?{S:"svg",B:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M12 1c1.44 0 2.87.28 4.21.83a11 11 0 0 1 3.45 2.27l-1.81 1.05A9 9 0 0 0 3 12a9 9 0 0 0 18-.00l-.01-.44a8.99 8.99 0 0 0-.14-1.20l1.81-1.05A11.00 11.00 0 0 1 10.51 22.9 11 11 0 0 1 12 1Zm7.08 6.25-7.96 3.25a1.74 1.74 0 1 0 1.73 2.99l6.8-5.26a.57.57 0 0 0-.56-.98Z"}}]}: {S:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",fill:"white"}}]}; this.setIcon(v)}this.U=y;this.Y=!1;this.N$=null;W8(y)?(this.K=g.Yr("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.J=this.U.getPlaybackRate()):this.J=this.K=null;g.n(this,this.G);var d,T,O,w;this.m3=(d=this.U.getVideoData())==null?void 0:(T=d.getWatchNextResponse())==null?void 0:(O=T.playerOverlays)==null?void 0:(w=O.playerOverlayRenderer)==null?void 0:w.showPlaybackRateUpsellPanelCommand;yED(y,this.m3)?(this.W=Zq(4),this.U.createClientVe(this.G.element, this,273508)):this.W=null;this.cI=this.U.getAvailablePlaybackRates();this.Z(y,"presentingplayerstatechange",this.XV);var J;((J=this.U.getVideoData())==null?0:J.Lg())&&this.Z(y,"serverstitchedvideochange",this.XV);this.Z(this.X.W,"change",function(){p.Y=!0;p.XV()}); this.XV()}; j7i=function(y,q){var Q=Zq(q);y.K&&(y.Y||q===y.J)?(y.K1(y.K),y.Ct(q.toString())):y.K1(Q)}; p7D=function(y){var q=y.cI.map(Zq);y.W&&q.push(y.W);y.qo(q);y.K=null;y.J=null;q=y.U.getPlaybackRate();W8(y.U)&&Q7D(y,q);!y.cI.includes(q)||y.Y?y.K1(y.K):y.K1(Zq(q))}; Q7D=function(y,q){y.J=q;y.K=g.Yr("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:q.toString()});q=y.cI.map(Zq);q.unshift(y.K);y.W&&q.push(y.W);y.qo(q)}; vMb=function(y,q,Q,p){Q=new g.bQ({S:"div",rp:["ytp-menuitem"],B:{tabindex:"0",role:"menuitemradio","aria-checked":p?"true":"false"},D:[{S:"div",rp:["ytp-menuitem-label"],D:[{S:"div",rp:["ytp-menuitem-container-with-badge"],D:[{S:"div",M$:"{{label}}"},y.G]}]}]},Q,y.WC(q));Q.listen("click",function(){y.T6(q)}); y.U.logVisibility(y.G.element,!0);return Q}; Zq=function(y){return y.toString()}; W8=function(y){return y.L("web_settings_menu_surface_custom_playback")}; yED=function(y,q){return!!q&&y.getAvailablePlaybackRates()[y.getAvailablePlaybackRates().length-1]<=2}; dts=function(y){return y.L("web_settings_menu_surface_custom_playback")&&y.L("web_settings_use_input_slider")}; Vq2=function(y,q,Q,p){var v=new g.SH(q,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.Ii.call(this,p.text||"",y,q,Q,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.sh(Q,v)}); var d=this;g.wl(this.element,"ytp-subtitles-options-menu-item");this.setting=p.option.toString();y=p.options;this.settings=g.Ch(y,this.wc,this);this.Y=v;g.n(this,this.Y);q=new g.bQ({S:"div",V:"ytp-menuitemtitle",M$:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.n(this,q);this.Y.qU(q,!0);this.W=new g.bQ({S:"div",V:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},D:[{S:"div",V:"ytp-menuitem-label",M$:"Ativ."}]},-1);g.n(this,this.W);this.Y.qU(this.W,!0);this.Z(this.W.element, "click",function(){T89(d,!0)}); this.K=new g.bQ({S:"div",V:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},D:[{S:"div",V:"ytp-menuitem-label",M$:"Desat"}]},-2);g.n(this,this.K);this.Y.qU(this.K,!0);this.Z(this.K.element,"click",function(){T89(d,!1)}); this.qo(g.W5(y,this.wc))}; T89=function(y,q){y.publish("settingChange",y.setting+"Override",!q);y.fK.RE()}; tZ=function(y,q){g.SH.call(this,y,void 0,"Op\u00e7\u00f5es");var Q=this;this.Ns={};for(var p=0;p=0);if(!(q<0||q===y.Y)){y.Y=q;q=243*y.scale;var Q=141*y.scale,p=TiD(y.W,y.Y,q);kV9(y.bg,p,q,Q,!0);y.N$.start()}}; uCb=function(y){var q=y.K;y.type===3&&y.m3.stop();y.api.removeEventListener("appresize",y.cI);y.X||(y.env.L("player_tooltip_data_title_killswitch")?q.setAttribute("title",y.N):q.setAttribute("data-tooltip-title",y.N));y.N="";y.K=null;y.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});y.wrapper.style.width=""}; nMC=function(y){g.r.call(this,{S:"button",rp:["ytp-watch-later-button","ytp-button"],B:{title:y.L("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.d1(y.T()))},D:[{S:"div",V:"ytp-watch-later-icon",M$:"{{icon}}"},{S:"div",V:"ytp-watch-later-title",M$:"Assistir mais tarde"}]});this.U=y;this.icon=null;this.visible=this.isRequestPending=this.K=!1;n7b(y);y.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.Z(y,"videoplayerreset",this.onReset);this.Z(y,"appresize",this.GU);this.Z(y,"videodatachange",this.GU);this.Z(y,"presentingplayerstatechange",this.GU);this.GU();y=this.U.T();var q=g.uw("yt-player-watch-later-pending");y.Y&&q?(Ot9(),IyC(this)):this.XV(2);g.fU(this.element,"ytp-show-watch-later-title",g.d1(y));Gl(this.U,this.element,this)}; gM8=function(y){var q=y.U.getPlayerSize(),Q=y.U.T(),p=y.U.getVideoData(),v=g.d1(Q)&&g.yl(y.U)&&g.G(y.U.getPlayerStateObject(),128),d=Q.N;return Q.oo&&q.width>=240&&!p.isAd()&&p.oo&&!v&&!p.cO&&!y.U.isEmbedsShortsMode()&&!d}; cEg=function(y,q){D53(g.t6(y.U.T()),"wl_button",function(){Ot9({videoId:q});window.location.reload()})}; IyC=function(y){if(!y.isRequestPending){y.isRequestPending=!0;y.XV(3);var q=y.U.getVideoData();q=y.K?q.removeFromWatchLaterCommand:q.addToWatchLaterCommand;var Q=y.U.Yv(),p=y.K?function(){y.K=!1;y.isRequestPending=!1;y.XV(2);y.U.T().C&&y.U.AK("WATCH_LATER_VIDEO_REMOVED")}:function(){y.K=!0; y.isRequestPending=!1;y.XV(1);y.U.T().W&&y.U.xD(y.element);y.U.T().C&&y.U.AK("WATCH_LATER_VIDEO_ADDED")}; UR(Q,q).then(p,function(){y.isRequestPending=!1;y.XV(4,"Ocorreu um erro. Tente novamente mais tarde.");y.U.T().C&&y.U.AK("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; Ut2=function(y,q){if(q!==y.icon){switch(q){case 3:var Q=MZ();break;case 1:Q=K1();break;case 2:Q={S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{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:Q={S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path", Nz:!0,B:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}y.updateValue("icon",Q);y.icon=q}}; rEb=function(){g.me.apply(this,arguments);this.E3=(this.rg=g.d1(this.api.T()))&&(this.api.T().W||p_()||je());this.MD=48;this.Fu=69;this.dj=this.Zj=null;this.aU=[];this.Yo=this.i4=this.mB=this.KA=this.V8=null;this.P0=[];this.contextMenu=this.T3=this.overflowButton=this.v_=this.dK=this.searchButton=this.copyLinkButton=this.shareButton=this.KH=this.VY=this.title=this.channelAvatar=this.zN=this.tooltip=null;this.AI=!1;this.Xp=this.jS=this.S8=this.e8=null;this.Yps=this.uu=this.Gt=!1}; oM9=function(y){var q=y.api.T(),Q=g.G(y.api.getPlayerStateObject(),128);return q.Y&&Q&&!y.api.isFullscreen()}; AE9=function(y){if(y.qm()&&!y.api.isEmbedsShortsMode()&&y.v_){var q=y.api.L("web_player_hide_overflow_button_if_empty_menu");!y.KH||q&&!gM8(y.KH)||cUf(y.v_,y.KH);!y.shareButton||q&&!pfj(y.shareButton)||cUf(y.v_,y.shareButton);!y.copyLinkButton||q&&!yUf(y.copyLinkButton)||cUf(y.v_,y.copyLinkButton)}else{q=y.api.T().getWebPlayerContextConfig();if(y.v_){for(var Q=y.v_,p=g.t(Q.actionButtons),v=p.next();!v.done;v=p.next())v.value.detach();Q.actionButtons=[]}y.searchButton&&!g.Li(y.VY.element,y.searchButton.element)&& y.searchButton.ym(y.VY.element);!y.KH||(q==null?0:q.hideTopWatchNextButton)||g.Li(y.VY.element,y.KH.element)||y.KH.ym(y.VY.element);!y.shareButton||(q==null?0:q.hideTopShareButton)||g.Li(y.VY.element,y.shareButton.element)||y.shareButton.ym(y.VY.element);y.copyLinkButton&&!g.Li(y.VY.element,y.copyLinkButton.element)&&y.copyLinkButton.ym(y.VY.element)}}; ezC=function(y,q,Q){q=Q?q.lastElementChild:q.firstElementChild;for(var p=null;q;){if(XU(q,"display")!=="none"&&q.getAttribute("aria-hidden")!=="true"){var v=void 0;q.tabIndex>=0?v=q:v=ezC(y,q,Q);v&&(p?Q?v.tabIndex>p.tabIndex&&(p=v):v.tabIndexp/1E3+1)return{msg:"in-the-past"};if(d.isLivePlayback&&!isFinite(p))return{msg:"live-infinite"};(p=q.OW())&&p.isView()&&(p=p.mediaElement);if(p&&p.ih().length>12&&g.XI(v))return{msg:"played-ranges"};if(!v.N)return null;if(!T)return{msg:"no-pvd-formats"};if(!v.N.K||!T.K)return{msg:"non-dash"};p=T.videoInfos[0];var O=v.N.videoInfos[0];y.cI&&z1(d)&&(p=q.ES(), O=Q.ES());if(!p||!O)return{msg:"no-video-info"};if(y.G&&(yR(p)||yR(O)))return{msg:"av1"};q=y.Y&&d.jP()&&EA();if(O.containerType!==p.containerType)if(q)d.Rb("sgap",{ierr:"container"});else return{msg:"container"};if(y.J&&!q&&(O.nK!==p.nK||O.nK===""||p.nK===""))return{msg:"codec"};if(y.X&&O.video&&p.video&&Math.abs(O.video.width/O.video.height-p.video.width/p.video.height)>.01)return{msg:"ratio"};if(g.XI(d)&&g.XI(v))return{msg:"content-protection"};T=T.K[0];v=v.N.K[0];Q=T.audio;var w=v.audio;if(Q.sampleRate!== w.sampleRate&&!g.NL)if(q)d.Rb("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:T.itag,cr:Q.sampleRate,ni:v.itag,nr:w.sampleRate};return(Q.numChannels||2)!==(w.numChannels||2)?{msg:"channel-count"}:y.C&&d.jP()&&p.video.fps!==O.video.fps?{msg:"fps"}:null}; ie9=function(y,q,Q){var p=y.getVideoData(),v=q.getVideoData();if(!p.T().supportsGaplessShorts())return{nq:"env"};if((!Q.j||p.KU&&!p.isAd()||v.KU&&!v.isAd())&&(!Q.W||p.KU&&!p.isAd()||v.KU)&&(!Q.N||v.KU&&!v.isAd()||p.KU)&&(p.KU||v.KU))return{nq:"autoplay"};if(p.endSeconds>0)return{nq:"endcr"};if(!p.X)return{nq:"client"};if(!y.gS())return{nq:"no-empty"};y=Pis(Q,y,q,Infinity);return y!=null?{nq:y.msg}:null}; gt=function(y){g.I.call(this);this.app=y;this.J=this.Y=this.W=this.K=null;this.N=1;this.events=new g.sU(this);this.events.Z(this.app.xf,g.Qb("gaplessshortslooprange"),this.C);g.n(this,this.events)}; X7b=function(){this.K=this.X=this.N=this.W=this.j=this.G=this.cI=this.C=this.J=this.Y=!1}; mt8=function(y){var q=new X7b;q.Y=y.L("h5_gapless_support_types_diff");q.C=!1;q.cI=y.L("html5_gapless_use_format_info_fix");q.G=y.L("html5_gapless_disable_on_av1")&&!y.L("html5_gapless_enable_on_av1");q.J=y.L("html5_gapless_check_codec_diff_strictly");q.j=y.L("html5_gapless_on_ad_autoplay");q.X=y.L("html5_gapless_disable_diff_aspect_radio");q.W=y.L("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!y.L("html5_disable_loop_range_for_shorts_ads");q.K=y.L("html5_pseudogapless_shorts_seek_to_next_start"); q.N=y.L("html5_gapless_ad_autoplay_on_video_to_ad_only");return q}; g.c8=function(y,q,Q,p){p=p===void 0?!1:p;lS.call(this);this.mediaElement=y;this.start=q;this.end=Q;this.K=p}; Cif=function(y,q,Q,p,v,d){d=d===void 0?0:d;g.I.call(this);var T=this;this.policy=y;this.K=q;this.W=Q;this.Z3=v;this.J=d;this.Y=this.N=null;this.currentVideoDuration=this.G=-1;this.X=!1;this.r8=new M6;this.BA=p-q.bj()*1E3;this.r8.then(void 0,function(){}); this.timeout=new g.y0(function(){T.RM("timeout")},1E4); g.n(this,this.timeout);this.C=isFinite(p)||this.Z3.T().experiments.ob("html5_pseudogapless_shorts")&&z1(q.getVideoData());this.status={status:0,error:null}}; qF9=function(y){var q,Q,p,v,d,T,O,w,J;return g.M(function(F){if(F.K==1){if(y.iB())return F.return(Promise.reject(Error(y.status.error||"disposed")));y.timeout.start();return g.R(F,y.r8,2)}q=y.K.OW();if(q.isEnded())return y.RM("ended_in_finishTransition"),F.return(Promise.reject(Error(y.status.error||"")));if(!y.Y||!aJ(y.Y))return y.RM("next_mse_closed"),F.return(Promise.reject(Error(y.status.error||"")));if(y.W.MX()!==y.Y)return y.RM("next_mse_mismatch"),F.return(Promise.reject(Error(y.status.error|| "")));Q=Uy(y);p=Q.aF;v=Q.U4;d=Q.sQ;y.K.Qf(!1,!0);T=yuH(q,p,d,!y.W.getVideoData().isAd());y.W.setMediaElement(T);(O=y.K.yc())&&y.W.tS(O.Re,O.Nb);y.C&&(y.policy.K||y.W.seekTo(y.W.getCurrentTime()+.001,{hJ:!0,Jr:3,tU:"gapless_pseudo"}),T.play());w=q.IH();w.cpn=y.K.getVideoData().clientPlaybackNonce;w.st=""+p;w.et=""+d;y.W.Rb("gapless",w);y.K.Rb("gaplessTo",{cpn:y.W.getVideoData().clientPlaybackNonce});J=y.K.getPlayerType()===y.W.getPlayerType();y.K.oV(v,!0,!1,J,y.W.getVideoData().clientPlaybackNonce); y.W.oV(y.W.getCurrentTime(),!0,!0,J,y.K.getVideoData().clientPlaybackNonce);y.W.B5();g.MN(function(){!y.W.getVideoData().j&&y.W.getPlayerState().isOrWillBePlaying()&&y.W.fS()}); rt(y,6);y.dispose();return F.return(Promise.resolve())})}; vLb=function(y){if(y.W.getVideoData().N){var q=y.Z3.T().L("html5_gapless_suspend_next_loader")&&y.J===1;y.W.U$(y.Y,q,jv2(y));rt(y,3);QvH(y);var Q=pRS(y);q=Q.TV;Q=Q.Ed;q.subscribe("updateend",y.HL,y);Q.subscribe("updateend",y.HL,y);y.HL(q);y.HL(Q)}}; QvH=function(y){y.K.unsubscribe("internalvideodatachange",y.Km,y);y.W.unsubscribe("internalvideodatachange",y.Km,y);y.Z3.T().L("html5_gapless_use_format_info_fix")&&(y.K.unsubscribe("internalvideoformatchange",y.Km,y),y.W.unsubscribe("internalvideoformatchange",y.Km,y));y.K.unsubscribe("mediasourceattached",y.Km,y);y.W.unsubscribe("statechange",y.y4,y)}; yuH=function(y,q,Q,p){y=y.isView()?y.mediaElement:y;return new g.c8(y,q,Q,p)}; rt=function(y,q){q<=y.status.status||(y.status={status:q,error:null},q===5&&y.r8.resolve())}; jv2=function(y){return y.Z3.T().L("html5_gapless_no_clear_buffer_timeline")&&y.J===1&&nL(y.K.getVideoData())}; Uy=function(y){var q=y.K.OW();q=q.isView()?q.start:0;var Q=y.K.getVideoData().isLivePlayback?Infinity:y.K.iH(!0);Q=Math.min(y.BA/1E3,Q)+q;var p=y.C?100:0;y=Q-y.W.Uu()+p;return{iY:q,aF:y,U4:Q,sQ:Infinity}}; pRS=function(y){return{TV:y.N.K.N4,Ed:y.N.W.N4}}; od=function(y){g.I.call(this);var q=this;this.app=y;this.G=this.W=this.K=null;this.C=!1;this.N=this.Y=null;this.J=mt8(this.app.T());this.X=function(){g.MN(function(){dhp(q)})}}; TED=function(y,q,Q,p,v){p=p===void 0?0:p;v=v===void 0?0:v;y.gS()||AZ(y);y.Y=new M6;y.K=q;var d=Q,T=v===0;T=T===void 0?!0:T;var O=y.app.tK(),w=O.getVideoData().isLivePlayback?Infinity:O.iH(!0)*1E3;d>w&&(d=w-200,y.C=!0);T&&O.getCurrentTime()>=d/1E3?y.X():(y.W=O,T&&(T=d,d=y.W,y.app.xf.addEventListener(g.jw("vqueued"),y.X),T=isFinite(T)||T/1E3>d.getDuration()?T:0x8000000000000,y.G=new g.yb(T,0x8000000000000,{namespace:"vqueued"}),d.addCueRange(y.G)));T=p/=1E3;d=q.getVideoData().K;p&&d&&y.W&&(O=p,w=0, q.getVideoData().isLivePlayback&&(T=Math.min(Q/1E3,y.W.iH(!0)),w=Math.max(0,T-y.W.getCurrentTime()),O=Math.min(p,q.iH()+w)),T=U6j(d,O)||p,T!==p&&y.K.Rb("qvaln",{st:p,at:T,rm:w,ct:O}));q=T;p=y.K;p.getVideoData().eP=!0;p.getVideoData().X=!0;p.Jl(!0);d={};y.W&&(d=y.W.wR(),T=y.W.getVideoData().clientPlaybackNonce,d={crt:(d*1E3).toFixed(),cpn:T});p.Rb("queued",d);q!==0&&p.seekTo(q+.01,{hJ:!0,Jr:3,tU:"videoqueuer_queued"});y.N=new Cif(y.J,y.app.tK(),y.K,Q,y.app,v);Q=y.N;Q.status.status!==Infinity&&(rt(Q, 1),Q.K.subscribe("internalvideodatachange",Q.Km,Q),Q.W.subscribe("internalvideodatachange",Q.Km,Q),Q.Z3.T().L("html5_gapless_use_format_info_fix")&&(Q.K.subscribe("internalvideoformatchange",Q.Km,Q),Q.W.subscribe("internalvideoformatchange",Q.Km,Q)),Q.K.subscribe("mediasourceattached",Q.Km,Q),Q.W.subscribe("statechange",Q.y4,Q),Q.K.subscribe("newelementrequired",Q.tX,Q),Q.Km());return y.Y}; dhp=function(y){var q,Q,p,v,d,T,O;g.M(function(w){switch(w.K){case 1:if(y.iB()||!y.Y||!y.K)return w.return();y.C&&y.app.tK().Bh(!0,!1);q=null;if(!y.N){w.ej(2);break}g.EC(w,3);return g.R(w,qF9(y.N),5);case 5:g.Hp(w,2);break;case 3:q=Q=g.Rj(w);case 2:if(!y.K)return w.return();VNp.Ia("vqsp",function(){y.app.uC(y.K)}); if(!y.K)return w.return();p=y.K.OW();y.app.T().L("html5_gapless_seek_on_negative_time")&&p&&p.getCurrentTime()<-.01&&y.K.seekTo(0);VNp.Ia("vqpv",function(){y.app.playVideo()}); q&&(y.K?(v=q?q.message:"forced",(d=y.W)==null||d.Rb("gapfulfbk",{r:v}),y.K.Yw(v)):(T=y.W)==null||T.Rb("gapsp",{}));O=y.Y;AZ(y);O&&O.resolve();return w.return(Promise.resolve())}})}; AZ=function(y,q){q=q===void 0?!1:q;if(y.W){if(y.G){var Q=y.W;y.app.xf.removeEventListener(g.jw("vqueued"),y.X);Q.removeCueRange(y.G)}y.W=null;y.G=null}y.N&&(y.N.status.status!==6&&(Q=y.N,Q.status.status!==Infinity&&Q.J!==1&&Q.RM("Canceled")),y.N=null);y.Y=null;y.K&&!q&&y.K!==y.app.K3()&&y.K!==y.app.tK()&&y.K.dispose();y.K&&q&&y.K.mV();y.K=null;y.C=!1}; OTf=function(y){var q;return((q=y.N)==null?void 0:q.currentVideoDuration)||-1}; wR2=function(y,q,Q){if(y.gS())return"qie";if(y.K==null||y.K.iB()||y.K.getVideoData()==null)return"qpd";if(q.videoId!==y.K.A1())return"vinm";if(OTf(y)<=0)return"ivd";if(Q!==1)return"upt";if((Q=y.N)==null)y=void 0;else if(Q.getStatus().status!==5)y="niss";else if(Pis(Q.policy,Q.K,Q.W,Q.BA)!=null)y="pge";else{q=pRS(Q);y=q.TV;var p=q.Ed;q=g.wm(Q.Z3.T().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var v=Q.G+q;Q.Z3.T().experiments.ob("html5_pseudogapless_shorts")&&(v=Uy(Q).aF+q);Q=fj(p.m5(), v);y=fj(y.m5(),v);y=!(q>0)||Q&&y?null:"neb"}return y!=null?y:null}; Ju8=function(){g.V6.call(this);var y=this;this.fullscreen=0;this.Y=this.N=this.pictureInPicture=this.K=this.W=this.inline=!1;this.J=function(){y.ol()}; hcf(this.J);this.G=this.getVisibilityState(this.yF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.P_(),this.Sk(),this.vk(),this.b4())}; WE9=function(y){return!(y.isMinimized()||y.isInline()||y.isBackground()||y.P_()||y.Sk()||y.vk()||y.b4())}; g.eU=function(y){g.I.call(this);this.KK=y;this.videoData=this.playerState=null}; P8=function(y,q){g.I.call(this);var Q=this;this.data=[];this.N=y||NaN;this.W=q||null;this.K=new g.y0(function(){B8(Q);Gi(Q)}); g.n(this,this.K)}; c39=function(y){B8(y);return y.data.map(function(q){return q.value})}; B8=function(y){var q=(0,g.SK)();y.data.forEach(function(Q){Q.expire0));y.U9()&&b$j();Error.stackTraceLimit=50;var v=g.wm(q,"html5_idle_rate_limit_ms");v&&Object.defineProperty(window,"requestIdleCallback",{value:function(d){return window.setTimeout(d,v)}}); F5H(y.J);j8D(Q("html5_use_ump_request_slicer"));u0S(Q("html5_record_now"));Q("html5_disable_streaming_xhr")&&(Ed=!1);Q("html5_byterate_constraints")&&(zW=!0);Q("html5_use_non_active_broadcast_for_post_live")&&(Wj=!0);Q("html5_enable_encrypted_av1")&&(CN=!0);p19(g.wm(y.experiments,"html5_sticky_duration_mos"))}; KB2=function(y,q){return y.slice(q.length).replace(/_[a-z]/g,function(Q){return Q.toUpperCase().replace("_","")}).replace("Dot",".")}; xhf=function(y){var q={},Q=Object.keys(y.experiments.flags);Q=g.t(Q);for(var p=Q.next();!p.done;p=Q.next())if(p=p.value,p.startsWith("cobalt_h5vcc"))if(p.startsWith("cobalt_h5vcc_string")){var v=KB2(p,"cobalt_h5vcc_string");p=ag(y.experiments,p);v&&p&&(q[v]=ftp(v,p))}else p.startsWith("cobalt_h5vcc")&&(v=KB2(p,"cobalt_h5vcc"),p=g.wm(y.experiments,p),v&&p&&(q[v]=ftp(v,p)));return q}; ZT3=function(y,q,Q,p){p=p===void 0?0:p;g.wp.call(this,Q.WU());var v=this;this.X0=y;this.videoData=q;this.duration=p;this.K=this.startTimeSecs=0;this.W=new WBi(function(d,T){return void v.Rb(d,T)})}; WBi=function(y){this.Rb=y;this.K={}}; tNi=function(y,q,Q){y.K[q]||(y.Rb("huli-sdai-err",Q),y.K[q]=!0)}; EL9=function(y){this.end=this.start=y}; g.yU=function(){this.K=new Map;this.N=new Map;this.W=new Map}; kC8=function(y){var q=this;this.KK=y;this.W=[];this.N=new Map;this.Y=new Map;this.K=new Map;this.je={Rg:function(){return q.N}, h1B:function(){return q.Y}, cX:function(){return q.W}}; this.J=this.KK.L("html5_huli_ssdai_deprecate_playback_timeline_id")}; LB3=function(y,q,Q){y=y.W;var p=g.em(y,{w0:q},function(T,O){return T.w0-O.w0}); p=p<0?(p+2)*-1:p;if(p>=0)for(var v=p;v<=p+1&&v=d.w0-Q&&q<=d.Yy+Q)return d}}; NEg=function(y,q){g.Xc(y.W,q,function(Q,p){return Q.w0===p.w0?Q.durationMs-p.durationMs:Q.w0-p.w0}); y.N.set(q.cpn,q);q.V$&&!y.J&&y.Y.set(q.V$,q);q.cC&&aS2(y,q.cC,q)}; SFs=function(y,q){for(var Q=[],p=g.t(y.W),v=p.next();!v.done;v=p.next())v=v.value,q(v)||Q.push(v);if(y.KK.L("html5_sstm_fixes"))for(p=g.t(y.W),v=p.next();!v.done;v=p.next())v=v.value,q(v)&&(y.N.delete(v.cpn),v.V$&&y.Y.delete(v.V$));y.W=Q}; HTp=function(y,q){q=g.em(y.W,{Yy:q},function(Q,p){return Q.Yy-p.Yy}); return q>=0?y.W[q]:null}; RDi=function(y,q){var Q=y.W.indexOf(q);Q>=0&&y.W.splice(Q,1);y.N.delete(q.cpn);q.V$&&y.Y.delete(q.V$)}; aS2=function(y,q,Q){var p=y.K.get(q);p?(p.push(Q),g.Pe(p,function(v,d){return v.w0-d.w0})):y.K.set(q,[Q])}; g.qU=function(y,q,Q,p){g.I.call(this);var v=this;this.api=y;this.KK=q;this.playback=Q;this.app=p;this.N$=new g.yU;this.W=new Map;this.Es=new Map;this.gp=null;this.cB=NaN;this.Dw=this.q$=null;this.Os=new g.y0(function(){svD(v,v.cB,v.q$||void 0)}); this.events=new g.sU(this);this.HI=15E3;this.X=new g.y0(function(){v.C=!0;v.playback.yz(v.HI);MN9(v);if(v.playback.getVideoData().Lg()){var d;v.MU({togab:(d=v.G)==null?void 0:d.identifier})}v.UF(!1)},this.HI); this.C=!1;this.J=new Map;this.LK=[];this.G=null;this.F0=new Set;this.j=[];this.Ty=[];this.T8=[];this.hw=[];this.vI=new Set;this.Qk=0;this.cI=!1;this.XL=new Set;this.Mz=new Set;this.Aw=new Set;this.BI=new Set;this.Se=this.MW=0;this.WA=this.RH=!1;this.jB=this.N="";this.m3=null;this.logger=new g.L5("dai");this.BT="";this.je={xLK:function(){return v.W}, Rg:function(){return v.K.je.Rg()}, tgV:function(){return v.N}, yGb:function(d){v.onCueRangeEnter(v.W.get(d))}, ULf:function(d){v.onCueRangeExit(v.W.get(d))}, duB:function(d,T){v.W.set(d,T)}, CkB:function(d){v.jB=d}, SG:function(){return v.SG()}, ZOw:function(d){return v.K.K.get(d)}, kHp:function(){return v.m3}, cX:function(){return v.K.je.cX()}, cG:function(d,T){v.cG(d,T)}}; this.playback.getPlayerType();this.K=new kC8(this.KK);this.playback.nR(this);this.Vm=this.KK.U9();g.n(this,this.Os);g.n(this,this.events);g.n(this,this.X);this.KK.L("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.cG,this):(this.events.Z(this.api,g.jw("serverstitchedcuerange"),this.onCueRangeEnter),this.events.Z(this.api,g.Qb("serverstitchedcuerange"),this.onCueRangeExit));this.EW=this.KK.L("html5_ssdai_report_stitch_error_after_skip_ad");CK(this.app.IW(), this.playback,!1)}; ISD=function(y,q,Q,p,v,d,T,O){var w=lSH(y,d,d+v);y.C&&y.MU({adaftto:1});Q||y.MU({missadcon:1,enter:d,len:v,aid:O});y.Y&&!y.Y.Kl&&(y.Y.Kl=O);y.WA&&y.MU({adfbk:1,enter:d,len:v,aid:O});var J=y.playback;d>T&&jv(y,{reason:"enterTime_greater_than_return",w0:d,Yy:T});var F=J.PT()*1E3;dJ&&jv(y,{reason:"parent_return_greater_than_content_duration",Yy:T,Gmm:J});(J=HTp(y.K,d))&&J.Yy>d&&zDp(y,q.video_id||"", d,T,J);if(w&&J)for(F=0;F=q)return Q}y=g.t(y.W.values());for(Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,Q.start<=q&&Q.end>=q)return Q}; svD=function(y,q,Q){var p=y.Dw||y.app.tK().getPlayerState();v6(y,!0);y.playback.seekTo(q,Q);y=y.app.tK();q=y.getPlayerState();p.isOrWillBePlaying()&&!q.isOrWillBePlaying()?y.playVideo():p.isPaused()&&!q.isPaused()&&y.pauseVideo()}; v6=function(y,q){y.cB=NaN;y.q$=null;y.Os.stop();y.gp&&q&&y.gp.Gz();y.Dw=null;y.gp=null}; PY3=function(y){var q=q===void 0?-1:q;var Q=Q===void 0?Infinity:Q;BEf(y,q,Q);for(var p=g.t(y.W.values()),v=p.next();!v.done;v=p.next())v=v.value,v.start>=q&&v.end<=Q&&(y.playback.removeCueRange(v),y.W.delete(v.getId()),y.MU({rmAdCR:1}));p=p4(y,q/1E3);q=p.wD;p=p.Do;q&&(p=p*1E3-q.w0,GCD(y,q,p,q.w0+p),p=y.W.get(q.cpn))&&(p.start=q.w0,p.end=q.w0+q.durationMs);if(q=p4(y,Q/1E3).wD){var d;p="playback_timelinePlaybackId_"+q.V$+"_video_id_"+((d=q.videoData)==null?void 0:d.videoId)+"_durationMs_"+q.durationMs+ "_enterTimeMs_"+q.w0+"_parentReturnTimeMs_"+q.Yy;y.Ea("Invalid_clearEndTimeMs_"+Q+"_that_falls_during_"+p+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; iT8=function(y){y.N$.clearAll();y.W.clear();y.K.clear();y.J.clear();y.LK=[];y.G=null;y.F0.clear();y.KK.experiments.ob("html5_ssdai_log_missing_ad_config_reason")&&y.vI.clear();y.j=[];y.Ty=[];y.T8=[];y.hw=[];y.XL.clear();y.Mz.clear();y.Aw.clear();y.BI.clear();y.C=!1;y.Qk=0;y.cI=!1;y.MW=0;y.Se=0;y.RH=!1;y.WA=!1;y.N="";FB3(y.app.IW());CK(y.app.IW(),y.playback,!1);y.Es.clear();y.X.isActive()&&QU(y)}; GCD=function(y,q,Q,p){q.durationMs=Q;q.Yy=p;(p=y.Es.get(q.cpn))?p.pL(Q/1E3):y.MU({nop_d:q.cpn})}; BEf=function(y,q,Q){SFs(y.K,function(p){return p.w0>=q&&p.Yy<=Q})}; CYH=function(y,q,Q,p,v,d){if(!y.WA)if(g.XRb(y,Q))y.MU({gdu:"undec",seg:Q,itag:v});else if(q=mhC(y,q,Q,p,d),!(y.playback.getVideoData().Lg()&&(q==null?0:q.EJ)))return q}; mhC=function(y,q,Q,p,v){var d=y.J.get(Q);if(!d){if(d=yC9(y,q))return d;q=y.oK(Q-1,p!=null?p:2);if(v)return y.MU({misscue:v,sq:Q,type:p,prevsstate:q==null?void 0:q.PL,prevrecord:y.J.has(Q-1)}),y.J.get(Q-1);if((q==null?void 0:q.PL)===2)return y.MU({adnf:1,sq:Q,type:p,prevrecord:y.J.has(Q-1)}),y.J.get(Q-1)}return d}; yC9=function(y,q){q+=y.VA();var Q;if(y.playback.getVideoData().Lg()){a:{var p=q*1E3;y=g.t(y.K.W);for(Q=y.next();!Q.done;Q=y.next()){Q=Q.value;var v=Q.nP?Q.nP*1E3:Q.w0;if(p>=Q.w0-1E3&&p<=v+Q.durationMs+1E3){p=Q;break a}}p=void 0}Q={wD:p,Do:q}}else Q=p4(y,q),((p=Q)==null?0:p.wD)||(Q=p4(y,q,1));var d;return(d=Q)==null?void 0:d.wD}; qc3=function(y,q){q=q===void 0?"":q;var Q=n8(q)||void 0;if(!q||!Q){var p;y.MU({adcfg:(p=q)==null?void 0:p.length,dcfg:Q==null?void 0:Q.length})}return Q}; jPj=function(y){for(var q=g.t(y.W.values()),Q=q.next();!Q.done;Q=q.next())y.playback.removeCueRange(Q.value);y.W.clear();y.N$.clearAll()}; QPb=function(y,q,Q,p,v,d,T){if(q&&Q){y.jB=Q.cpn;y.LA(Q.cpn,Q.startTimeSecs||v);gLp(y,Q);var O=nLH(y,"a2a",Q);y.MU(O);y.MW++;y.playback.IV(q,Q,p||0,v||0,!!d,!!T)}else y.MU({misspbkonadtrans:1,enter:(Q==null?void 0:Q.cpn)||"",exit:(q==null?void 0:q.cpn)||"",seek:d,skip:T})}; dd=function(y,q,Q){if(Q===void 0||!Q){Q=g.t(y.LK);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;if(q>=p.start&&q<=p.end)return;if(q===p.end+1){p.end+=1;return}}y.LK.push(new EL9(q))}}; g.XRb=function(y,q){y=g.t(y.LK);for(var Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,q>=Q.start&&q<=Q.end)return!0;return!1}; pLi=function(y,q,Q){var p;if(p=y.playback.getVideoData().Lg())p=(p=y.K.Lt({cpn:q}))&&p.cC?(y=y.K.K.get(p==null?void 0:p.cC))&&y.slice(-1)[0].cpn===q:!1;return p&&Q===2?1E3:0}; zDp=function(y,q,Q,p,v){var d;q={reason:"overlapping_playbacks",v13:q,w0:Q,Yy:p,vM3:v.V$,Q1s:((d=v.videoData)==null?void 0:d.videoId)||"",JGB:v.durationMs,rGf:v.w0,s1p:v.Yy};jv(y,q)}; jv=function(y,q,Q){y.playback.JN(q,Q)}; vHf=function(y,q){var Q=[];y=y.K.K.get(q);if(!y)return[];y=g.t(y);for(q=y.next();!q.done;q=y.next())q=q.value,q.cpn&&Q.push(q.cpn);return Q}; di3=function(y,q,Q){var p=0;y=y.K.K.get(Q);if(!y)return-1;y=g.t(y);for(Q=y.next();!Q.done;Q=y.next()){if(Q.value.cpn===q)return p;p++}return-1}; T$f=function(y,q){var Q=0;y=y.K.K.get(q);if(!y)return 0;y=g.t(y);for(q=y.next();!q.done;q=y.next())q=q.value,q.durationMs!==0&&q.Yy!==q.w0&&Q++;return Q}; V13=function(y,q,Q){var p=!1;if(Q=y.K.K.get(Q)){Q=g.t(Q);for(var v=Q.next();!v.done;v=Q.next())v=v.value,v.durationMs!==0&&v.Yy!==v.w0&&(v=v.cpn,q===v&&(p=!0),p&&!y.Mz.has(v)&&(y.MU({decoratedAd:v}),y.Mz.add(v)))}}; MN9=function(y){y.Vm&&y.MU({adf:"0_"+((new Date).getTime()/1E3-y.Se)+"_isTimeout_"+y.C})}; lSH=function(y,q,Q){if(y.j.length)for(var p=g.t(y.j),v=p.next(),d={};!v.done;d={gO:void 0},v=p.next()){d.gO=v.value;v=d.gO.startSecs*1E3;var T=d.gO.Ey*1E3+v;if(q>v&&qv&&Q0?y:0}else y.SG().videoData.ra=y.playback.getCurrentTime()}; wL3=function(y){y.BI.add(y.N);y.N="";y.cI=!1}; hFi=function(y,q,Q,p){g.I.call(this);var v=this;this.api=y;this.KK=q;this.K=Q;this.app=p;this.J=new Map;this.W=[];this.N=this.X=null;this.cI=NaN;this.G=this.Y=this.j=null;this.C=new g.y0(function(){fx9(v,v.cI,v.j||void 0)}); this.N$=[];this.m3=new g.y0(function(){var d=v.N$.pop();if(d){var T=d.V$,O=d.playerVars;d=d.playerType;O&&(O.prefer_gapless=!0,v.api.preloadVideoByPlayerVars(O,d,NaN,"",T),v.N$.length&&g.qM(v.m3,4500))}}); this.events=new g.sU(this);this.je={AGV:function(){return v.W}}; this.K.getPlayerType();g.n(this,this.C);g.n(this,this.m3);g.n(this,this.events);this.events.Z(this.api,g.jw("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.WJ)}; xi2=function(y,q,Q,p,v,d){var T=q.cpn,O=q.docid||q.video_id||q.videoId||q.id,w=y.K;d=d===void 0?v+p:d;if(v>d)return O8(y,"enterAfterReturn enterTimeMs="+v+" is greater than parentReturnTimeMs="+d.toFixed(3),T,O),"";var J=w.PT()*1E3;if(vJ)return w="returnAfterDuration parentReturnTimeMs="+d.toFixed(3)+" is greater than parentDurationMs="+J+". And timestampOffset in seconds is "+ w.bj(),O8(y,w,T,O),"";J=null;for(var F=g.t(y.W),Y=F.next();!Y.done;Y=F.next()){Y=Y.value;if(v>=Y.w0&&vY.w0)return O8(y,"overlappingReturn",T,O),"";if(d===Y.w0)return O8(y,"outOfOrder",T,O),"";v===Y.Yy&&(J=Y)}T="cs_childplayback_"+bJi++;O={hR:wd(p,!0),BA:Infinity,target:null};var f={V$:T,playerVars:q,playerType:Q,durationMs:p,w0:v,Yy:d,Rk:O};y.W=y.W.concat(f).sort(function(Z,k){return Z.w0-k.w0}); J?$i8(y,J,{hR:wd(J.durationMs,!0),BA:J.Rk.BA,target:f}):(q={hR:wd(v,!1),BA:v,target:f},y.J.set(q.hR,q),w.addCueRange(q.hR));q=!0;if(y.K===y.app.tK()&&(w=w.getCurrentTime()*1E3,w>=f.w0&&wq)break;if(d>q)return{wD:p,Do:q-v};Q=d-p.Yy/1E3}return{wD:null,Do:q-Q}}; fx9=function(y,q,Q){Q=Q===void 0?{}:Q;var p=y.G||y.app.tK().getPlayerState();Y5(y,!0);q=isFinite(q)?q:y.K.E8();var v=EH9(y,q);q=v.Do;var d=(v=v.wD)&&!JG(y,v)||!v&&y.K!==y.app.tK(),T=q*1E3;T=y.N&&y.N.start<=T&&T<=y.N.end;!d&&T||FD(y);v?K79(y,v,q,Q,p):kYi(y,q,Q,p,"_execute")}; kYi=function(y,q,Q,p,v){var d=y.K;d!==y.app.tK()&&y.app.XW();y.KK.L("html5_sabr_csdai_seek_log")||(v="");var T;d.seekTo(q,Object.assign({},{tU:"application_timelinemanager"+((T=v)!=null?T:"")},Q));L7H(y,p)}; K79=function(y,q,Q,p,v){var d=JG(y,q);if(!d){q.playerVars.prefer_gapless=!0;var T=new g.EB(y.KK,q.playerVars);T.V$=q.V$;y.api.PM(T,q.playerType)}T=y.app.tK();d||T.addCueRange(q.Rk.hR);T.seekTo(Q,Object.assign({},{tU:"application_timelinemanager"},p));L7H(y,v)}; L7H=function(y,q){y=y.app.tK();var Q=y.getPlayerState();q.isOrWillBePlaying()&&!Q.isOrWillBePlaying()?y.playVideo():q.isPaused()&&!Q.isPaused()&&y.pauseVideo()}; Y5=function(y,q){y.cI=NaN;y.j=null;y.C.stop();y.Y&&q&&y.Y.Gz();y.G=null;y.Y=null}; JG=function(y,q){y=y.app.tK();return!!y&&y.getVideoData().V$===q.V$}; axi=function(y){var q=y.W.find(function(v){return JG(y,v)}); if(q){var Q=y.app.tK();FD(y);var p=new g.nj(8);q=t13(y,q)/1E3;kYi(y,q,{},p,"_force");Q.Rb("forceParentTransition",{childPlayback:1});y.K.Rb("forceParentTransition",{parentPlayback:1})}}; ScS=function(y,q,Q){q=q===void 0?-1:q;Q=Q===void 0?Infinity:Q;for(var p=q,v=Q,d=g.t(y.J),T=d.next();!T.done;T=d.next()){var O=g.t(T.value);T=O.next().value;O=O.next().value;O.BA>=p&&O.target&&O.target.Yy<=v&&(y.K.removeCueRange(T),y.J.delete(T))}p=q;v=Q;d=[];T=g.t(y.W);for(O=T.next();!O.done;O=T.next())if(O=O.value,O.w0>=p&&O.Yy<=v){var w=y;w.X===O&&FD(w);JG(w,O)&&w.app.XW()}else d.push(O);y.W=d;p=EH9(y,q/1E3);q=p.wD;p=p.Do;q&&(p*=1E3,N$C(y,q,p,q.Yy===q.w0+q.durationMs?q.w0+p:q.Yy));(q=EH9(y,Q/1E3).wD)&& O8(y,"Invalid clearEndTimeMs="+Q+" that falls during playback={timelinePlaybackId="+(q.V$+" video_id="+q.playerVars.video_id+" durationMs="+q.durationMs+" enterTimeMs="+q.w0+" parentReturnTimeMs="+q.Yy+"}.Child playbacks can only have duration updated not their start."))}; N$C=function(y,q,Q,p){q.durationMs=Q;q.Yy=p;p={hR:wd(Q,!0),BA:Q,target:null};$i8(y,q,p);JG(y,q)&&y.app.tK().getCurrentTime()*1E3>Q&&(q=t13(y,q)/1E3,Q=y.app.tK().getPlayerState(),kYi(y,q,{},Q,"_update"))}; O8=function(y,q,Q,p){y.K.Rb("timelineerror",{e:q,cpn:Q?Q:void 0,videoId:p?p:void 0})}; RF2=function(y){y&&y!=="web"&&HJp.includes(y)}; f4=function(){g.I.call(this);this.K=new P8(5,null);g.n(this,this.K);this.W=new P8(15,null);g.n(this,this.W)}; iCg=function(y,q){return q?!!y.K.get(q):!1}; sPD=function(y,q){y.dataset.version=q}; zFH=function(y){g.r.call(this,{S:"div",rp:["html5-video-player"],B:{tabindex:y.T().disableOrganicUi?"":"-1",id:y.webPlayerContextConfig.rootElementId},D:[{S:"div",V:g.Sl.VIDEO_CONTAINER,B:{"data-layer":"0"}}]});var q=this;this.app=y;this.f8=this.uB(g.Sl.VIDEO_CONTAINER);this.c8=new g.ol(0,0,0,0);this.f3=null;this.F1=new g.ol(0,0,0,0);this.RP=this.y_=this.Sl=NaN;this.SC=this.W$=this.zw=this.Pm=!1;this.ir=NaN;this.lz=!1;this.Ha=null;this.pG=new g.y0(function(){q.app.T().L("web_enable_smart_zoom")&& q.app.xf.getInternalApi().isAutocropEnabled()||q.resize()},100); this.oT=function(){q.element.focus({preventScroll:!0})}; this.k_=function(){q.app.xf.publish("playerUnderlayVisibilityChange","visible");q.f3.classList.remove(g.Sl.VIDEO_CONTAINER_TRANSITIONING);q.f3.removeEventListener(nq,q.k_);q.f3.removeEventListener("transitioncancel",q.k_)}; this.uf=this.A7=!1;var Q=this.element.addEventListener,p=this.element.removeEventListener;this.addEventListener=function(d,T,O){Q.apply(q.element,[d,T,O])}; this.removeEventListener=function(d,T,O){p.apply(q.element,[d,T,O])}; var v=y.T();v.transparentBackground&&this.TH("ytp-transparent");v.controlsType==="0"&&this.TH("ytp-hide-controls");g.wl(this.element,"ytp-exp-bottom-control-flexbox");g.wl(this.element,"ytp-modern-caption");v.L("enable_new_paid_product_placement")&&!g.Rs(v)&&g.wl(this.element,"ytp-exp-ppp-update");g.wl(this.element,"ytp-livebadge-color");if(v.L("delhi_modern_web_player"))switch(g.wl(this.element,"ytp-delhi-modern"),v.L("delhi_modern_web_player_icons")&&g.wl(this.element,"ytp-delhi-modern-icons"), v.L("delhi_modern_web_player_horizontal_volume_controls")&&g.wl(this.element,"ytp-delhi-horizontal-volume-controls"),ag(v.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.wl(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.wl(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.wl(this.element,"ytp-delhi-modern-with-exclusion")}sPD(this.element,M1f(y));this.GT=!1;this.wG=new g.Gq(NaN,NaN);lxi(this);this.Z(y.xf,"onMutedAutoplayChange", this.onMutedAutoplayChange);g.n(this,this.pG)}; lxi=function(y){function q(T){y.f3&&hG(y);bR(y)!==y.lz&&y.resize();y.app.T().L("web_enable_smart_zoom")&&y.zt&&(T.state.isPaused()?y.zt.pause():g.Ks(T,8)&&y.zt.playState==="paused"&&y.zt.play())} function Q(T,O){y.gR(T,O)} function p(T){T.getVideoData()&&y.updateVideoData(T.getVideoData())} function v(){y.F1=new g.ol(0,0,0,0);y.c8=new g.ol(0,0,0,0)} var d=y.app.xf;d.addEventListener("initializingmode",v);d.addEventListener("videoplayerreset",p);d.addEventListener("videodatachange",Q);d.addEventListener("presentingplayerstatechange",q);y.addOnDisposeCallback(function(){d.removeEventListener("initializingmode",v);d.removeEventListener("videoplayerreset",p);d.removeEventListener("videodatachange",Q);d.removeEventListener("presentingplayerstatechange",q)})}; udp=function(y){var q=y.app.tK();if(q=q?q.getVideoData():null){if(g.d6(q)||g.Tl(q)||g.Vo(q))return 16/9;if(lc(q)&&q.N.K)return y=q.N.videoInfos[0].video,Di8(y.width,y.height)}return(y=y.f3)?Di8(y.videoWidth,y.videoHeight):16/9}; IxD=function(y,q,Q,p){var v=Q,d=Di8(q.width,q.height);y.Pm?v=Qd?{width:q.width,height:q.width/v,aspectRatio:v}:vv?y.width=y.height*Q:Qw;if(bR(y)){var J=udp(y);var F=isNaN(J)||g.iv||kc&&g.W9||w;P9&&!g.Uj(601)?J=v.aspectRatio:F=F||d.controlsType==="3";F?w?(F=d.L("place_shrunken_video_on_left_of_player")?16:y.getPlayerSize().width-q.width-16,J=Math.max((y.getPlayerSize().height-q.height)/2,0),F=new g.ol(F,J,q.width, q.height),y.f3.style.setProperty("border-radius","12px")):F=new g.ol(0,0,q.width,q.height):(Q=v.aspectRatio/J,F=new g.ol((q.width-v.width/Q)/2,(q.height-v.height)/2,v.width/Q,v.height),Q===1&&g.W9&&(J=F.width-q.height*J,J>0&&(F.width+=J,F.height+=J)));g.fU(y.element,"ytp-fit-cover-video",Math.max(F.width-v.width,F.height-v.height)<1);if(O||y.GT)y.f3.style.display="";y.lz=!0}else{F=-q.height;P9?F*=window.devicePixelRatio:g.Mj&&(F-=window.screen.height);F=new g.ol(0,F,q.width,q.height);if(O||y.GT)y.f3.style.display= "none";y.lz=!1}AY(y.F1,F)||(y.F1=F,g.Yo(d)?(y.f3.style.setProperty("width",F.width+"px","important"),y.f3.style.setProperty("height",F.height+"px","important")):g.pv(y.f3,F.getSize()),p=new g.ek(F.left,F.top),g.yh(y.f3,Math.round(p.x),Math.round(p.y)),p=!0);q=new g.ol((q.width-v.width)/2,(q.height-v.height)/2,v.width,v.height);AY(y.c8,q)||(y.c8=q,p=!0);g.B0(y.f3,"transform",Q===1?"":"scaleX("+Q+")");T&&w!==y.W$&&(w&&(y.f3.addEventListener(nq,y.k_),y.f3.addEventListener("transitioncancel",y.k_),y.f3.classList.add(g.Sl.VIDEO_CONTAINER_TRANSITIONING)), y.W$=w,y.app.xf.publish("playerUnderlayVisibilityChange",y.W$?"transitioning":"hidden"));return p}; cCb=function(y){y.A7=!y.A7;y.uf=!0;y.element.classList.toggle("ytp-retro-player",y.A7);y.resize();y.uf=!1;y.app.xf.AK("onRetroModeChanged",y.A7)}; UiC=function(){this.csn=g.LD();this.clientPlaybackNonce=null;this.elements=new Set;this.N=new Set;this.K=new Set;this.W=new Set}; rCb=function(y){if(y.csn!==g.LD())if(y.csn==="UNDEFINED_CSN")y.csn=g.LD();else{var q=g.LD(),Q=g.kl();if(q&&Q){y.csn=q;for(var p=g.t(y.elements),v=p.next();!v.done;v=p.next())(v=v.value.visualElement)&&v.isClientVe()&&q&&Q&&(g.kQ("combine_ve_grafts")?F0(wz(),v,Q):g.q7(g.BW)(void 0,q,Q,v))}if(q)for(y=g.t(y.K),Q=y.next();!Q.done;Q=y.next())(Q=Q.value.visualElement)&&Q.isClientVe()&&g.qP(q,Q)}}; g.$5=function(y,q,Q,p){g.I.call(this);var v=this;this.logger=new g.L5("App");this.z_=this.vJ=!1;this.a4={};this.Jx=[];this.w5=!1;this.XU=null;this.intentionalPlayback=!1;this.d$=!0;this.lf=!1;this.pS=this.ZT=this.jF=null;this.OJ=!0;this.mediaElement=this.Jw=null;this.Et=NaN;this.Qs=!1;this.HO=this.N_=this.PO=this.screenLayer=this.playlist=null;this.GV=[];this.M8=0;this.je={IW:function(){return v.sW}, bqj:function(){return v.PO}}; if(!Q)throw Error("b/179532961");this.r4=(q==null?void 0:q.args)||{};this.webPlayerContextConfig=Q;q=this.r4;this.KK=new Wr(q,Q,Q.canaryState,p,this);g.n(this,this.KK);if(this.KK.U9()){var d=this.tO(),T=this.BV();p=d==null?void 0:d.K.Zm(oHp);d=d==null?void 0:d.K.Zm(AC3);var O=T==null?void 0:T.K.Zm(eF3);T=T==null?void 0:T.K.Zm(B$8);this.r_("intkey",{input:Q.serializedClientExperimentFlags,ub:""+p,ui:""+d,cb:""+O,ci:""+T})}$h9(this.KK);Q=xhf(this.KK);this.KK.U9()&&this.r_("h5vcc",Q);this.KK.L("web_player_misc_bugfix_b")|| wHj();this.KK.experiments.ob("jspb_serialize_with_worker")&&Gcj();this.KK.experiments.ob("gzip_gel_with_worker")&&un3();this.KK.W&&!GYs&&(window.addEventListener(jj?"touchstart":"click",GFj,{capture:!0,passive:!0}),GYs=!0);this.L("html5_onesie")&&(this.k8=new fl(this.KK),g.n(this,this.k8));this.VQ=TH(VK(this.KK)&&!0,q.enablesizebutton);this.DQ=TH(!1,q.player_wide);this.visibility=new Ju8;g.n(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.ZR(TH(!1,q.player_wide));this.vJ=TH(!1, q.external_list);this.events=new g.sU(this);g.n(this,this.events);this.L("start_client_gcf")&&(Ha(lt(),{oX:JP,Ho:dMS()}),this.Yr=lt().resolve(JP),OU9(this.Yr));this.tBp=new uh;g.n(this,this.tBp);this.yn=new UiC;Q=new IF;this.xf=new g.ih(this,Q);g.n(this,this.xf);this.template=new zFH(this);g.n(this,this.template);this.appState=1;this.Ad=PfD(this);g.n(this,Q);Q={};this.tI=(Q.internalvideodatachange=this.ZJ,Q.playbackready=this.S9y,Q.playbackstarted=this.eiK,Q.statechange=this.gs3,Q);this.m4=new x1(this.xf); this.Oy=iJj(this);Q=this.KK.G;!1!==Q&&this.r_("badps",{hbp:Q,hostname:window.location.hostname,ps:this.KK.playerStyle});this.gm=new ap8(this.KK,this.Oy);this.xf.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||eSi(this.Oy))&&XLb(this);Q=10;g.kt(this.KK)&&(Q=3);Sj(this.KK)&&(Q=g.wm(this.KK.experiments,"tvhtml5_unplugged_preload_cache_size"));this.sW=new g.X8(this.xf,Q);Q=mis(this);this.sW.TZ(Q);Cfs(this);Q={};this.Zd=(Q.airplayactivechange=this.vjs,Q.airplayavailabilitychange= this.Q7f,Q.beginseeking=this.itB,Q.sabrCaptionsDataLoaded=this.zdj,Q.endseeking=this.GDy,Q.internalAbandon=this.Vuy,Q.internalaudioformatchange=this.UzB,Q.internalvideodatachange=this.dzK,Q.internalvideoformatchange=this.Ctm,Q.liveviewshift=this.xzp,Q.playbackstalledatstart=this.l3f,Q.progresssync=this.tuw,Q.onAbnormalityDetected=this.s7p,Q.onSnackbarMessage=this.ojs,Q.onLoadProgress=this.XTf,Q.SEEK_COMPLETE=this.T0j,Q.SEEK_TO=this.AUf,Q.onVideoProgress=this.I3p,Q.onLoadedMetadata=this.ZtI,Q.onAutoplayBlocked= this.EjI,Q.onPlaybackPauseAtStart=this.bt3,Q.playbackready=this.B0m,Q.statechange=this.nB,Q.newelementrequired=this.lG,Q.heartbeatparams=this.pTV,Q.videoelementevent=this.njw,Q.drmoutputrestricted=this.L2K,Q.signatureexpired=this.Dzw,Q.nonfatalerror=this.hdw,Q.reloadplayer=this.Htj,Q);this.Wh=new g.sU(this);g.n(this,this.Wh);this.RU=new f4;g.n(this,this.RU);this.Nc=this.EK=-1;this.xB=new g.y0(this.template.resize,16,this.template);g.n(this,this.xB);this.X0=new hFi(this.xf,this.KK,this.K3(),this); this.SY=new od(this);g.n(this,this.SY);this.pY=new gt(this);g.n(this,this.pY);RF2(this.KK.K.c);this.events.Z(this.xf,g.jw("appapi"),this.aGw);this.events.Z(this.xf,g.Qb("appapi"),this.uLf);this.events.Z(this.xf,g.jw("appprogressboundary"),this.cjB);this.events.Z(this.xf,g.Qb("applooprange"),this.kB);this.events.Z(this.xf,"presentingplayerstatechange",this.WJ);this.events.Z(this.xf,"resize",this.yjm);this.template.ym(d0(document,y));this.events.Z(this.xf,"offlineslatestatechange",this.SWV);this.events.Z(this.xf, "sabrCaptionsTrackChanged",this.pO$);this.events.Z(this.xf,"sabrCaptionsBufferedRangesUpdated",this.Gfj);this.Oy.U.T().Np&&MQ(this.Oy,"offline");this.KK.Ty&&g.k1("ux",g.Id);y=g.wm(this.KK.experiments,"html5_defer_fetch_att_ms");this.xd=new g.y0(this.okf,y,this);g.n(this,this.xd);this.Ff().hj()&&(g.n_()&&this.Ff().Sj.push("remote"),ygC(this));this.gm.tick("fs");qbj(this);this.KK.Ty&&MQ(this.Oy,"ux",!0);g.d1(this.Oy.U.T())&&MQ(this.Oy,"embed");this.L("web_player_sentinel_is_uniplayer")||g.zI(new g.GH("Player experiment flags missing", "web_player_sentinel_is_uniplayer"));y=this.L("web_player_sentinel_yt_experiments_sync");Q=g.kQ("web_player_sentinel_yt_experiments_sync");y!==Q&&g.zI(new g.GH("b/195699950",{yt:y,player:Q}));this.XX=jas(this);if(y=g.wm(this.KK.experiments,"html5_block_pip_safari_delay"))this.eZ=new g.y0(this.nG,y,this),g.n(this,this.eZ);Io=this.KK.T8;this.xf.publish("applicationInitialized")}; jas=function(y){function q(Q){Q.stack&&Q.stack.indexOf("player")!==-1&&y.tK().E2(Q)} Dh.subscribe("handleError",q);CE.push(q);return function(){Dh.unsubscribe("handleError",q);var Q=CE.indexOf(q);Q!==-1&&CE.splice(Q,1)}}; mis=function(y){var q=new g.EB(y.KK,y.r4);y.xf.publish("initialvideodatacreated",q);return K4(y,1,q,!1)}; Cfs=function(y){var q=y.K3();q.setPlaybackRate(y.KK.Y?1:Qa8(y,Number(g.uw("yt-player-playback-rate"))||1));q.b7(y.tI,y);q.hx()}; iJj=function(y){var q="",Q=M1f(y);Q.indexOf("//")===0&&(Q=y.KK.protocol+":"+Q);var p=Q.lastIndexOf("/base.js");p!==-1&&(q=Q.substring(0,p+1));if(Q=Error().stack)if(Q=Q.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))Q=Q[1],Q.includes(q)||g.zI(Error("Player module URL mismatch: "+(Q+" vs "+q+".")));q=new rGD(y.xf,q);Q={};o5C(q,(Q.destroyed=function(){y.onApiChange()},Q)); return q}; PfD=function(y){if(y.KK.storeUserVolume){y=g.uw("yt-player-volume")||{};var q=y.volume;y={volume:isNaN(q)?100:g.rV(Math.floor(q),0,100),muted:!!y.muted}}else y={volume:100,muted:y.KK.mute};return y}; x5=function(y){y.mediaElement=y.KK.deviceIsAudioOnly?new g.PM(g.bn("AUDIO")):nK.pop()||new g.PM(g.bn("VIDEO"));g.n(y,y.mediaElement);y.tK().setMediaElement(y.mediaElement);try{y.KK.F0?(y.N_&&y.events.UW(y.N_),y.N_=y.events.Z(y.mediaElement,"volumechange",y.Mub)):(y.mediaElement.E$(y.Ad.muted),y.mediaElement.setVolume(y.Ad.volume/100))}catch(v){y.RM("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(v&&typeof v==="object"&&"message"in v&&typeof v.message==="string"&&v.message.replace(/[;:,]/g, "_")));return}g.lw(y.Wh);pEj(y);var q=y.template,Q=y.mediaElement.aH();q.f3=Q;q.SC=!1;q.f3.parentNode||W0(q.f8,q.f3,0);q.F1=new g.ol(0,0,0,0);gHS(q);hG(q);Q=q.f3;g.wl(Q,"video-stream");g.wl(Q,g.Sl.MAIN_VIDEO);var p=q.app.T();p.T5&&Q.setAttribute("data-no-fullscreen","true");p.L("html5_local_playsinline")?"playsInline"in LN()&&(Q.playsInline=!0):p.D4&&(Q.setAttribute("webkit-playsinline",""),Q.setAttribute("playsinline",""));p.Za&&q.f3&&q.Z(Q,"click",Q.play,Q);try{y.mediaElement.activate()}catch(v){y.RM("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(v&&typeof v==="object"&&"message"in v&&typeof v.message==="string"&&v.message.replace(/[;:,]/g,"_")))}}; d29=function(y){if(!vmH(y)){var q=y.K3().OW();q&&(q=q.Y2(),q instanceof Promise&&q.catch(function(){})); W6(y,Bb(y.getPlayerStateObject()))}}; pEj=function(y){var q=y.mediaElement;Hs()?y.Wh.Z(q,"webkitpresentationmodechanged",y.x4m):window.document.pictureInPictureEnabled&&(y.Wh.Z(q,"enterpictureinpicture",function(){y.kU(!0)}),y.Wh.Z(q,"leavepictureinpicture",function(){y.kU(!1)})); yB&&(y.Wh.Z(q,"webkitbeginfullscreen",function(){y.hM(3)}),y.Wh.Z(q,"webkitendfullscreen",function(){y.hM(0)}))}; g.Tef=function(y,q,Q,p){var v=y.gm;q===2&&(v=new ap8(y.KK));return new g.vM(y.KK,q,v,y.template,function(d,T,O){y.xf.publish(d,T,O)},function(){return y.xf.getVisibilityState()},y.visibility,y,Q,p)}; K4=function(y,q,Q,p,v){y=g.Tef(y,q,Q,v);y=new g.wp(y);p&&y.hx();return y}; Zp=function(y,q){return y.SK(q)?y.K3():q}; tG=function(y,q){var Q=y.tK();return q===y.K3()&&y.SK(q)&&y.SK(Q)?Q:q}; Vg9=function(y){if(!E8(y)){var q=zz(y.Oy);q&&!q.created&&AG9(y.Oy)&&q.create()}}; Owg=function(y){var q=y.getVideoData(),Q=y.Oy;qDb(Q)||Q.Vy();!uU&&Q.U.L("html5_allow_asmjs")&&ThH(Q);MQ(Q,"embed");MQ(Q,"kids");MQ(Q,"remote");MQ(Q,"miniplayer");MQ(Q,"offline");MQ(Q,"unplugged");MQ(Q,"ypc",!1,!0);MQ(Q,"yto",!1,!0);MQ(Q,"webgl",!1,!0);jub(Q)||(MQ(Q,"captions",!0),MQ(Q,"endscreen"),Q.Ip(),MQ(Q,"creatorendscreen",!0));Q.yM();Q.U.publish("modulesCreated");y.xf.publish("videoready",q)}; k5=function(y){y=y.Ff();y.hj();return hs(y)}; qbj=function(y){y.Di();var q=y.r4;x5(y);y.events.Z(window,"resize",y.Jjf);var Q=y.Ff();y.xf.h1("onVolumeChange",y.Ad);if(q&&RSj(q)){var p=ko(y.KK);p&&!y.vJ&&(q.fetch=0);var v=g.d1(y.KK);v&&!y.vJ&&(q.fetch=0);L4(y,q);g.d1(y.KK)&&y.gm.tick("ep_pr_s");if(!p||y.vJ)if(v&&!y.vJ)wE2(y);else if(!Q.hj())y.playlist.onReady(function(){ax(y)})}y.uC(y.K3(),!1,!0); g.G(y.K3().getPlayerState(),128)||(q=u1g(!y.KK.deviceIsAudioOnly),q==="fmt.noneavailable"?y.RM("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):q==="html5.missingapi"?y.RM(q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):Q&&Q.hj()&&k5(y)&&(y.KK.YW||y.KK.QY)?NU(y):Q.rN?y.xf.mutedAutoplay({durationMode:Q.mutedAutoplayDurationMode}):g.uw("yt-player-playback-on-reload")?(g.wU("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!y.KK.m3}),g.DW("yt-player-playback-on-reload",!1), NU(y)):zd(y.KK)||JgC(y),g.Nj(y.KK)||tB(y.KK)==="MWEB"?(g.C_(g.qb(),function(){Sv(y)}),g.C_(g.qb(),function(){D3s()})):(Sv(y),D3s()))}; Sv=function(y){if(!y.L("use_rta_for_player"))if(y.L("fetch_att_independently"))g.qM(y.xd);else{var q=y.getVideoData().botguardData;q&&g.W_(q,y.KK,y.getVideoData().CP||"")}}; JgC=function(y){y.xf.publish("initializingmode");y.eW(2);MQ(y.Oy,"remote");MQ(y.Oy,"miniplayer")}; NU=function(y){var q=y.K3();if(g.G(q.getPlayerState(),128))return!1;q=q.getVideoData();k5(y)&&y.KK.QY&&(nK.length&&y.z_?(H6(y,{muted:!1,volume:y.Ad.volume},!1),Rx(y,!1)):nK.length||y.Ad.muted||(H6(y,{muted:!0,volume:y.Ad.volume},!1),Rx(y,!0)));k5(y)&&g.d1(y.KK)&&q.mutedAutoplay&&(H6(y,{muted:!0,volume:y.Ad.volume},!1),Rx(y,!0));q.On&&H6(y,{muted:!0,volume:y.Ad.volume},!1);FN8(y,1,q,!1);var Q=y.K3();y.xf.publish("initializingmode");y.uC(Q);y.eW(3);var p;if(!(p=!y.KK.nL)){if(p=y.HO){p=y.HO;var v=y.mediaElement; p=!!v&&v===p.mediaElement}p=p&&y.w5}p&&(y.Qf(),x5(y),Q.setMediaElement(y.mediaElement));Q.zp();if(g.G(Q.getPlayerState(),128))return!1;q.fV||W6(y,3);return y.w5=!0}; E8=function(y){y=C$(y.Oy);return!!y&&y.loaded}; YbD=function(y,q){if(!y.Jw)return!1;var Q=y.Jw.startTimeMs*.001-1,p=y.Jw.endTimeMs*.001;y.Jw.type==="repeatChapter"&&p--;return Math.abs(q-Q)<=1E-6||Math.abs(q-p)<=1E-6||q>=Q&&q<=p}; fvH=function(y){var q=y.tK();if(y.L("html5_disable_loop_range_for_shorts_ads")&&q.getVideoData().isAd()?0:z1(q.getVideoData())&&!q.zk())q=s8(y)*1E3-y.getVideoData().S7,y.L("html5_gapless_new_slr")?(y=y.pY,MU(y.app,"gaplessshortslooprange"),q=new g.yb(0,q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(y=y.app.tK())&&y.addCueRange(q)):y.setLoopRange({startTimeMs:0,endTimeMs:q,type:"shortsLoop"})}; hPi=function(y){var q=y.K3();if(!(g.G(q.getPlayerState(),64)&&y.Ff().isLivePlayback&&y.Jw.startTimeMs<5E3)){if(y.Jw.type==="repeatChapter"){var Q,p=(Q=RqD(y.yN()))==null?void 0:Q.U8(),v;Q=(v=y.getVideoData())==null?void 0:v.YJ;p instanceof g.me&&Q&&(v=Q[fk(Q,y.Jw.startTimeMs)],p.renderChapterSeekingAnimation(0,v.title));isNaN(Number(y.Jw.loopCount))?y.Jw.loopCount=0:y.Jw.loopCount++;y.Jw.loopCount===1&&y.xf.AK("innertubeCommand",y.getVideoData().OUV)}p={tU:"application_loopRangeStart"};if(y.Jw.type=== "clips"||y.Jw.type==="shortsLoop")p.seekSource=58;q.seekTo(y.Jw.startTimeMs*.001,p)}}; Qa8=function(y,q){var Q=y.xf.getAvailablePlaybackRates();q=Number(q.toFixed(2));y=Q[0];Q=Q[Q.length-1];q<=y?q=y:q>=Q?q=Q:(y=Math.floor(q*100+.001)%5,q=y===0?q:Math.floor((q-y*.01)*100+.001)/100);return q}; s8=function(y,q){q=y.Lt({playerType:q});if(!q)return y.sW.K.iH();q=Zp(y,q);return lR(y,q.iH(),q)}; lR=function(y,q,Q){if(y.SK(Q)&&(Q=Q.getVideoData(),!zL(y))){y=y.X0;for(var p=g.t(y.W),v=p.next();!v.done;v=p.next())if(v=v.value,Q.V$===v.V$){q+=v.w0/1E3;break}p=q;y=g.t(y.W);for(v=y.next();!v.done;v=y.next()){v=v.value;if(Q.V$===v.V$)break;var d=v.w0/1E3;if(d1&&(v=!1);y.Qs&&v===q||(p=p.lock(v?"portrait":"landscape"),p!=null&&p.catch(function(){}),y.Qs=!0)}else y.Qs&&(y.Qs=!1,p.unlock())}; gd=function(y,q,Q){y.xf.publish(q,Q);var p=g.kt(y.KK)||g.Yo(y.KK)||g.Us(y.KK);if(Q&&p){switch(q){case "cuerangemarkersupdated":var v="onCueRangeMarkersUpdated";break;case "cuerangesadded":v="onCueRangesAdded";break;case "cuerangesremoved":v="onCueRangesRemoved"}v&&y.xf.AK(v,Q.map(function(d){return{getId:function(){return this.id}, end:d.end,id:d.getId(),namespace:d.namespace==="ad"?"ad":"",start:d.start,style:d.style,visible:d.visible,markerPositionMs:d.markerPositionMs}}))}}; c6=function(y,q,Q,p,v,d){Q=Q===void 0?!0:Q;var T=y.Lt({playerType:v});if(!T||(T.getPlayerType()!==2||y.SK(T))&&!g.p$(T.getVideoData())){var O=y.sW.sf;O?O.seekTo(q,{Ie:!Q,LC:p,tU:"application",seekSource:d}):(T&&T===y.K3()&&y.Jw&&!YbD(y,q)&&y.setLoopRange(null),y.seekTo(q,Q,p,v,d,"_request"))}}; Sbs=function(y,q,Q,p){Q&&(y.Qf(),x5(y));Q=y.tK();Q.v$(q);var v=y.getVideoData(),d={};d.video_id=v.videoId;d.adformat=v.adFormat;v.isLivePlayback||(d.start=Q.getCurrentTime(),d.resume="1");v.isLivePlayback&&of(v)&&g.tc(y.KK)&&(d.live_utc_start=Q.Sb(),d.resume="1");v.Es&&(d.vvt=v.Es);v.G&&(d.vss_credentials_token=v.G,d.vss_credentials_token_type=v.t0);v.oauthToken&&(d.oauth_token=v.oauthToken);d.autoplay=1;d.reload_count=v.hw+1;d.reload_reason=q;v.gN&&(d.unplugged_partner_opt_out=v.gN);v.Tg&&(d.ypc_is_premiere_trailer= v.Tg);v.playerParams&&(d.player_params=v.playerParams);y.L("html5_forward_click_tracking_params_on_reload")&&v.N$&&(d.itct=v.N$);y.loadVideoByPlayerVars(d,void 0,!0,void 0,void 0,p);q==="signature"&&y.PO&&Vg9(y)}; Hwf=function(y,q){y.Ff().autonavState=q;g.DW("yt-player-autonavstate",q);y.xf.publish("autonavchange",q)}; RPH=function(y){var q=y.getVideoData().Db,Q=y.KK.Dw,p=y.isInline()&&!y.getVideoData().xw,v=y.mediaElement;q||Q||p?v.lr():(v.Pq(),H6(y,y.Ad))}; Dp=function(y){(y=zz(y.yN()))&&y.created&&y.destroy()}; zL=function(y){return y.getVideoData().enableServerStitchedDai&&!!y.PO}; saH=function(y,q){q.bounds=y.getBoundingClientRect();for(var Q=g.t(["display","opacity","visibility","zIndex"]),p=Q.next();!p.done;p=Q.next())p=p.value,q[p]=XU(y,p);q.hidden=!!y.hidden}; M1f=function(y){var q=y.webPlayerContextConfig.trustedJsUrl;return q?Sc(q).toString():y.webPlayerContextConfig.jsUrl}; Mg2=function(y,q){var Q=y.Lt({playerType:1});if(Q){if(Q.getVideoData().clientPlaybackNonce===q)return Q;if((y=y.SY.K)&&y.getVideoData().clientPlaybackNonce===q)return y}return null}; XLb=function(y){function q(v){return X6(VS9(y.Oy),function(d){return d.PR(v)})} y.gm.tick("wasm_s");var Q=y.L("html5_wasm_initialization_wait_for_idle"),p=y.L("html5_wasm_initialization_disable_sync");Q=X6(Q?Mb3():Gb(),function(){return shp(y.webPlayerContextConfig.wasmModuleUrl,eSi(y.Oy)?q:void 0,y.r_.bind(y),p)}); Q==null||X6(Q,function(v){y.gm.tick(v.K?"wasm_fa":"wasm_fw")},function(){y.gm.tick("wasm_ferr")}); vjC(y.KK,Q)}; lvC=function(y){return y.name==="TypeError"&&y.stack.includes("/s/player/")&&AM()<=105}; zP3=function(y){return y.isTimeout?"NO_BID":"ERR_BID"}; D2p=function(){var y=null;DvH().then(function(q){return y=q},function(q){return y=zP3(q)}); return y}; uNf=function(){var y=ow(1E3,"NO_BID");return g.go(cRf([DvH(),y]).IE(zP3),function(){y.cancel()})}; U8=function(y){return y.Kg?g.rf().Zm(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; rd=function(y){this.player=y;this.N=this.K=1}; gmD=function(y,q,Q,p,v,d){q.client||(q.client={});y.player.T().L("h5_remove_url_for_get_ad_break")||(q.client.originalUrl=Q);var T=w_(Q),O=g.$b(Q)?!1:!0;(T||O)&&typeof Intl!=="undefined"&&(q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);O=g.$b(Q)?!1:!0;if(T||O||p!==""){var w={};Q=p9(hM(p)).split("&");var J=new Map;Q.forEach(function(F){F=F.split("=");F.length>1&&J.set(F[0].toString(),decodeURIComponent(F[1].toString()))}); J.has("bid")&&(w.bid=J.get("bid"));w.params=[];Iv9.forEach(function(F){J.has(F)&&(F={key:F,value:J.get(F)},w.params.push(F))}); nm9(y,w);q.adSignalsInfo=w}q.client.unpluggedAppInfo||(q.client.unpluggedAppInfo={});q.client.unpluggedAppInfo.enableFilterMode=!1;Q=v.K.cosver;Q!=null&&Q!=="cosver"&&(q.client.osVersion=Q);Q=v.K.cplatform;Q!=null&&Q!=="cplatform"&&Q!==""&&(q.client.platform=Q);Q=v.K.cmodel;Q!=null&&Q!=="cmodel"&&(q.client.deviceModel=Q);Q=v.K.cplayer;Q!=null&&Q!=="cplayer"&&(q.client.playerType=Q);Q=v.K.cbrand;Q!=null&&Q!=="cbrand"&&(q.client.deviceMake=Q);q.user||(q.user={});q.user.lockedSafetyMode=!1;g.F_(v)&& btb(q,d,y.player.getPlayerState(1))}; rg3=function(y,q){var Q=!1;if(q==="")return Q;q.split(",").forEach(function(p){var v={},d={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},T="ACTIVE";p[0]==="!"&&(p=p.substring(1),T="INACTIVE");p=p.split("-");p.length<3||(p[0]in cg9&&(d.clientName=cg9[p[0]]),p[1]in U29&&(d.platform=U29[p[1]]),d.applicationState=T,d.clientVersion=p.length>2?p[2]:"",v.remoteClient=d,y.remoteContexts?y.remoteContexts.push(v):y.remoteContexts=[v],Q=!0)}); return Q}; Agj=function(y){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in om2))return!1;y=y.split(RegExp("[:&]"));var q=om2.FLAG_AUTO_CAPTIONS_DEFAULT_ON,Q="f"+(1+Math.floor(q/31)).toString();q=1<=2?T[1]:"";var O=Beb.test(q),w=Gk9.exec(q);w=w!=null&&w.length>=2?w[1]:"";var J=PA2.exec(q);J=J!=null&&J.length>=2&&!Number.isNaN(Number(J[1]))?Number(J[1]):1;var F=iwb.exec(q);F=F!=null&&F.length>=2?F[1]:"0";var Y=$o(y.player.T().Vf),f=y.player.getVideoData(1),h=g.QT(f.N$,!0),b="BISCOTTI_ID"in Q?Q.BISCOTTI_ID:"";gmD(y,h,q,b.toString(),y.player.T(), f);f={splay:!1,lactMilliseconds:Q.LACT.toString(),playerHeightPixels:Math.trunc(Q.P_H),playerWidthPixels:Math.trunc(Q.P_W),vis:Math.trunc(Q.VIS),signatureTimestamp:20340,autonavState:U8(y.player.T())};p&&(p={},rg3(p,Q.YT_REMOTE)&&(f.mdxContext=p));if(p=XEf.includes(Y)?void 0:g.cF("PREF")){for(var Z=p.split(RegExp("[:&]")),k=0,S=Z.length;k1&&N[1].toUpperCase()==="TRUE"){h.user.lockedSafetyMode=!0;break}}f.autoCaptionsDefaultOn= Agj(p)}q=m29.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&w&&(h.user.credentialTransferTokens=[{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:f};T={adBlock:Math.trunc(Q.AD_BLOCK),params:T,breakIndex:J,breakPositionMs:F,clientPlaybackNonce:Q.CPN,topLevelDomain:Y,isProxyAdTagRequest:O,context:h,adSignalsInfoString:p9(hM(b.toString())),overridePlaybackContext:q};v!==void 0&&(T.cueProcessedMs=Math.round(v).toString());w&&(T.videoId=w);Q.LIVE_TARGETING_CONTEXT&&(T.liveTargetingParams=Q.LIVE_TARGETING_CONTEXT); Q.AD_BREAK_LENGTH&&(T.breakLengthMs=Math.trunc(Q.AD_BREAK_LENGTH*1E3).toString());d&&(T.driftFromHeadMs=d.toString());T.currentMediaTimeMs=Math.round(y.player.getCurrentTime(1)*1E3);(y=y.player.getGetAdBreakContext())&&(T.getAdBreakContext=y);return T}; yeH=function(){rd.apply(this,arguments)}; qz9=function(y,q,Q,p,v){var d=Q.NW;var T=Q.hR;var O=y.player.T().yf,w=0;Q.cueProcessedMs&&T&&!d&&(Q=T.end-T.start,Q>0&&(w=Math.floor(Q/1E3)));var J={AD_BLOCK:v,AD_BREAK_LENGTH:d?d.Ey:w,AUTONAV_STATE:U8(y.player.T()),CA_TYPE:"image",CPN:y.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:y.player.ue()*1E3,LACT:Lb(),LIVE_INDEX:d?y.N++:1,LIVE_TARGETING_CONTEXT:d&&d.context?d.context:"",MIDROLL_POS:T?Math.round(T.start/1E3):0,MIDROLL_POS_MS:T?Math.round(T.start):0,VIS:y.player.getVisibilityState(), P_H:y.player.lB().wS().height,P_W:y.player.lB().wS().width,YT_REMOTE:O?O.join(","):""},F=f9(YQ);Object.keys(F).forEach(function(Y){F[Y]!=null&&(J[Y.toUpperCase()]=F[Y].toString())}); p!==""&&(J.BISCOTTI_ID=p);p={};Fq(q)&&(p.sts="20340",(y=y.player.T().forcedExperiments)&&(p.forced_experiments=y));return Ox(g.l6(q,J),p)}; jXj=function(y,q){var Q=y.player.T(),p,v=(p=y.player.getVideoData(1))==null?void 0:p.oauthToken;return g.Is(Q,v).then(function(d){if(d&&JM()){var T=Vl();OY(T,d)}return g.rY(y.player.Yv(T),q,"/youtubei/v1/player/ad_break").then(function(O){return O})})}; QXb=function(y){this.Us=y}; pCf=function(y){this.U=y}; vkC=function(y){this.Us=y}; Tv8=function(y){g.I.call(this);this.K=y;this.fQ=dJ3(this)}; dJ3=function(y){var q=new usb(y.K.nt);g.n(y,q);y=[new QXb(y.K.Us),new pCf(y.K.U),new vkC(y.K.Us),new Np(y.K.QI,y.K.Bp),new HB,new Mp(y.K.Mm,y.K.m$,y.K.Us),new SR,new ab];y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())IXs(q,Q.value);y=g.t(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(Q=y.next();!Q.done;Q=y.next())Rb(q,Q.value,function(){}); return q}; ox=function(y){var q=y.Gy,Q=y.Yf;y=y.Rl;var p=new Cyp,v={C1:new zRD(q.get(),Q),Yf:Q};return{VN:new rc(Q,y,q,v),context:v,oM:p}}; AG=function(y,q,Q,p,v){g.I.call(this);this.W=q;this.JK=Q;this.Gy=p;this.Aj=v;this.listeners=[];var d=new sM(this);g.n(this,d);d.Z(y,"internalAbandon",this.O3K);this.addOnDisposeCallback(function(){g.lw(d)})}; ev=function(y){this.U=y;this.adVideoId=this.K=this.videoId=this.adCpn=this.contentCpn=null;this.J=!0;this.W=this.N=!1;this.adFormat=null;this.Y="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; VQp=function(y){y.contentCpn=null;y.adCpn=null;y.videoId=null;y.adVideoId=null;y.adFormat=null;y.Y="AD_PLACEMENT_KIND_UNKNOWN";y.actionType="unknown_type";y.N=!1;y.W=!1}; O2S=function(y,q){y=g.t(q);for(q=y.next();!q.done;q=y.next())if((q=q.value.renderer)&&(q.instreamVideoAdRenderer||q.linearAdSequenceRenderer||q.sandwichedLinearAdRenderer||q.instreamSurveyAdRenderer)){zn("ad_i");g.D_({isMonetized:!0});break}}; wCH=function(y){var q;(q=y.U.getVideoData(1))!=null&&q.j&&(y.W=!1,q={},y.K&&y.videoId&&(q.cttAuthInfo={token:y.K,videoId:y.videoId}),ug("video_to_ad",q))}; ah=function(y){y.W=!1;var q={};y.K&&y.videoId&&(q.cttAuthInfo={token:y.K,videoId:y.videoId});ug("ad_to_video",q);Jes(y)}; Jes=function(y){if(y.N)if(y.Y==="AD_PLACEMENT_KIND_START"&&y.actionType==="video_to_ad")sR("video_to_ad");else{var q={adBreakType:QD(y.Y),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:y.videoStreamType};y.actionType==="ad_to_video"?(y.contentCpn&&(q.targetCpn=y.contentCpn),y.videoId&&(q.targetVideoId=y.videoId)):(y.adCpn&&(q.targetCpn=y.adCpn),y.adVideoId&&(q.targetVideoId=y.adVideoId));y.adFormat&&(q.adType=y.adFormat);y.contentCpn&& (q.clientPlaybackNonce=y.contentCpn);y.videoId&&(q.videoId=y.videoId);y.adCpn&&(q.adClientPlaybackNonce=y.adCpn);y.adVideoId&&(q.adVideoId=y.adVideoId);g.D_(q,y.actionType);y.U.T().experiments.ob("html5_ads_csi_qoes")&&(q=y.U.wR(y.actionType==="ad_to_video"?1:2),q=(0,g.SK)()-1E3*q,np("qoes",q,y.actionType))}}; B6=function(y){g.I.call(this);this.U=y;this.K=new Map;this.W=new sM(this);g.n(this,this.W);this.W.Z(this.U,g.jw("ad"),this.onCueRangeEnter,this);this.W.Z(this.U,g.Qb("ad"),this.onCueRangeExit,this)}; Fii=function(y,q,Q,p,v,d,T){g.yb.call(this,q,Q,{id:y,namespace:"ad",priority:v,visible:p,associatedClipId:d,markerPositionMs:T})}; GL=function(y){this.U=y}; Yz9=function(y,q){y.U.cueVideoByPlayerVars(q,2)}; P6=function(y){this.U=y}; iR=function(y){this.U=y;g.wm(this.U.T().experiments,"tv_pacf_logging_sample_rate")}; fP2=function(y){return eb(y,"html5_ssap_play_cached_preroll")}; xp=function(y,q){q=q===void 0?!1:q;return y.U.T().L("html5_ssap_force_ads_ctmp")?!0:(q||y.U.T().U9())&&y.U.T().L("html5_ssap_pacf_qoe_ctmp")}; XD=function(y){var q;return(q=y.U.getVideoData(1)==null?void 0:!1)!=null?q:!1}; eb=function(y,q){return y.U.T().L(q)}; hsC=function(y){return y.U.T().L("substitute_ad_cpn_macro_in_ssdai")}; v$=function(y){var q,Q,p;return((q=y.U.getVideoData(1).getPlayerResponse())==null?void 0:(Q=q.playerConfig)==null?void 0:(p=Q.daiConfig)==null?void 0:p.enableServerStitchedDai)||!1}; eAp=function(y){return y.U.T().L("html5_enable_vod_slar_with_notify_pacf")}; b2H=function(y){return y.U.T().L("html5_recognize_predict_start_cue_point")}; IS=function(y){return y.U.T().experiments.ob("enable_desktop_player_underlay")}; $JH=function(y){return y.U.T().experiments.ob("html5_load_empty_player_in_media_break_sub_lra")}; h$=function(y){return y.U.T().experiments.ob("html5_load_ads_instead_of_cue")}; b2=function(y){return y.U.T().experiments.ob("html5_preload_ads")}; Kii=function(y){return y.U.T().experiments.ob("should_ignore_cuepoints_during_lifa_preroll")}; D4=function(y){return y.U.T().experiments.ob("enable_ads_control_flow_deterministic_id_generation")}; xJf=function(y){return y.U.T().experiments.ob("enable_desktop_discovery_video_abandon_pings")||g.Ln(y.U.T())}; Wip=function(y){return y.U.T().experiments.ob("enable_progres_commands_lr_feeds")}; dc=function(y){return y.U.T().experiments.ob("html5_cuepoint_identifier_logging")}; XJH=function(y){y=y.U.getVideoData(1);return!!y&&y.L("html5_preload_first_vod_video_ad")&&!y.isDaiEnabled()&&!y.isLivePlayback}; Z2C=function(y){return y.U.T().experiments.ob("html5_ssdai_enable_media_end_cue_range")}; tQH=function(y){switch(y){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}}; EkS=function(){g.V6.call(this);var y=this;this.K={};this.addOnDisposeCallback(function(){for(var q=g.t(Object.keys(y.K)),Q=q.next();!Q.done;Q=q.next())delete y.K[Q.value]})}; mW=function(){if(kv2===null){kv2=new EkS;kB(CY).W="b";var y=kB(CY),q=eJ(y)=="h"||eJ(y)=="b",Q=!(JR(),!1);q&&Q&&(y.J=!0,y.G=new TFg)}return kv2}; Li3=function(y,q,Q){y.K[q]=Q}; aPH=function(y){switch(y){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; C4=function(y,q,Q){this.JK=y;this.U=q;this.Yf=Q;this.W=new Set;this.K=new Map;mW().subscribe("adactiveviewmeasurable",this.LT,this);mW().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ib,this);mW().subscribe("adviewableimpression",this.GN,this);mW().subscribe("adaudioaudible",this.Ui,this);mW().subscribe("adaudiomeasurable",this.Ei,this)}; q5=function(y,q,Q){var p=Q.zH,v=Q.aS,d=Q.listener,T=Q.iK;Q=Q.pm===void 0?!1:Q.pm;if(y.K.has(q))hx("Unexpected registration of layout in LidarApi");else{if(T){if(y.W.has(T))return;y.W.add(T)}y.K.set(q,d);NO(JR().JU,"fmd",1);$ES(kB(CY),p);var O=Q?q:void 0;Li3(mW(),q,{Zv:function(){if(!v)return{};var w=y.U.getPresentingPlayerType(!0),J;return(J=y.U.getVideoData(w))!=null&&J.isAd()?{currentTime:y.JK.get().getCurrentTimeSec(w,!1,O),duration:v,isPlaying:yd(y.JK.get(),w).isPlaying(),isVpaid:!1,isYouTube:!0, volume:y.JK.get().isMuted()?0:y.JK.get().getVolume()/100}:{}}})}}; jS=function(y,q){y.K.has(q)?(y.K.delete(q),delete mW().K[q]):hx("Unexpected unregistration of layout in LidarApi")}; Nvs=function(y,q){if(y.U.isLifaAdPlaying()){var Q=y.U.eA(!0,!0);y.K8(q,Q.width*.5*1.1,Q.height*.25*1.1,Q.width*.5*.9,Q.height*.5*.9)}}; Rs8=function(y,q,Q){var p={};Sz2(y,p,q,Q);H2g(p);p.LACT=Qd(function(){return Lb().toString()}); p.VIS=Qd(function(){return y.getVisibilityState().toString()}); p.SDKV="h.3.0";p.VOL=Qd(function(){return y.isMuted()?"0":Math.round(y.getVolume()).toString()}); p.VED="";return p}; sXC=function(y,q){var Q={};if(q||!y||!y.kind)return Q;if(y.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||y.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!y.adTimeOffset||!y.adTimeOffset.offsetStartMilliseconds)return g.l$(Error("malformed AdPlacementConfig")),Q;Q.MIDROLL_POS=Qd(z7(Math.round(Dd(y.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else Q.MIDROLL_POS=Qd(z7("0"));return Q}; Qd=function(y){return{toString:function(){return y()}}}; MQC=function(y,q,Q){function p(O,w){(w=Q[w])&&(d[O]=w)} function v(O,w){(w=Q[w])&&(d[O]=T(w))} if(!Q||g.hn(Q))return y;var d=Object.assign({},y),T=q?encodeURIComponent:function(O){return O}; v("DV_VIEWABILITY","doubleVerifyViewability");v("IAS_VIEWABILITY","integralAdsViewability");v("MOAT_INIT","moatInit");v("MOAT_VIEWABILITY","moatViewability");p("GOOGLE_VIEWABILITY","googleViewability");p("VIEWABILITY","viewability");return d}; Sz2=function(y,q,Q,p){q.CPN=Qd(function(){var v;(v=y.getVideoData(1))?v=v.clientPlaybackNonce:(g.zI(Error("Video data is null.")),v=null);return v}); q.AD_MT=Qd(function(){if(p!=null)var v=p;else{var d=Q;y.T().L("html5_ssap_use_cpn_to_get_time")||(d=void 0);if(y.T().L("enable_h5_shorts_ad_fill_ad_mt_macro")||y.T().L("enable_desktop_discovery_pings_ad_mt_macro")||g.Ln(y.T())){var T=y.getPresentingPlayerType(!0),O;v=((O=y.getVideoData(T))==null?0:O.isAd())?lPj(y,T,d):0}else v=lPj(y,2,d)}return zss(v)}); q.MT=Qd(function(){return zss(y.getCurrentTime(1,!1))}); q.P_H=Qd(function(){return y.lB().wS().height.toString()}); q.P_W=Qd(function(){return y.lB().wS().width.toString()}); q.PV_H=Qd(function(){return y.lB().getVideoContentRect().height.toString()}); q.PV_W=Qd(function(){return y.lB().getVideoContentRect().width.toString()})}; zss=function(y){return Math.round(Math.max(0,y*1E3)).toString()}; H2g=function(y){y.CONN=Qd(z7("0"));y.WT=Qd(function(){return Date.now().toString()})}; lPj=function(y,q,Q){return Q!==void 0?y.getCurrentTime(q,!1,Q):y.getCurrentTime(q,!1)}; DJC=function(){}; uw2=function(y,q,Q,p,v){var d,T,O,w,J,F,Y,f,h,b,Z,k,S;g.M(function(N){switch(N.K){case 1:d=!!q.scrubReferrer;T=g.l6(q.baseUrl,MQC(Q,d,p));O={};if(!q.headers){N.ej(2);break}w=y.Y();if(!w.K){J=w.getValue();N.ej(3);break}return g.R(N,w.K,4);case 4:J=N.W;case 3:F=J;Y=g.t(q.headers);for(f=Y.next();!f.done;f=Y.next())switch(h=f.value,h.headerType){case "VISITOR_ID":g.XY("VISITOR_DATA")&&(O["X-Goog-Visitor-Id"]=g.XY("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.XY("EOM_VISITOR_DATA")&&(O["X-Goog-EOM-Visitor-Id"]= g.XY("EOM_VISITOR_DATA"));break;case "USER_AUTH":F&&(O.Authorization="Bearer "+F);break;case "PLUS_PAGE_ID":(b=y.J())&&(O["X-Goog-PageId"]=b);break;case "AUTH_USER":Z=y.K();!F&&Z&&(O["X-Goog-AuthUser"]=Z);break;case "DATASYNC_ID":if(k=void 0,(k=y.N())==null?0:k.ob("enable_datasync_id_header_in_web_vss_pings"))S=y.W(),w_(T)&&g.XY("LOGGED_IN")&&S&&(O["X-YouTube-DataSync-Id"]=S)}"X-Goog-EOM-Visitor-Id"in O&&"X-Goog-Visitor-Id"in O&&delete O["X-Goog-Visitor-Id"];case 2:g.n0(T,void 0,d,Object.keys(O).length!== 0?O:void 0,"",!0,v),g.tH(N)}})}; IPD=function(y,q,Q,p,v){this.Y=y;this.J=q;this.K=Q;this.W=p;this.N=v}; nkg=function(y,q){this.K=y;this.Yf=q}; pH=function(y,q,Q,p,v,d,T){var O=O===void 0?new IPD(function(){var w=y.T(),J=y.getVideoData(1);return g.Is(w,J?g.$W(J):"")},function(){return y.T().pageId},function(){return y.T().m3},function(){var w; return(w=y.T().datasyncId)!=null?w:""},function(){return y.T().experiments}):O; this.U=y;this.W=q;this.FL=Q;this.Gy=p;this.VN=v;this.Yf=d;this.oM=T;this.Y=O;this.oy=null;this.K=new Map;this.N=new nkg(O,this.Yf)}; cef=function(y,q,Q,p,v){var d=h3(y.W.get(),Q);d?(Q=Lt(y,gk2(d),d,void 0,void 0,p),q.hasOwnProperty("baseUrl")?y.Y.send(q,Q):y.N.send(q,Q,{},v)):hx("Trying to ping from an unknown layout",void 0,void 0,{layoutId:Q})}; olC=function(y,q,Q,p,v,d){p=p===void 0?[]:p;var T=h3(y.W.get(),q);if(T){var O=y.FL.get().IM(q,Q),w=Lt(y,gk2(T),T,v,d);p.forEach(function(J,F){J.baseUrl&&(y.N.send(J.baseUrl,w,O,J.attributionSrcMode),J.serializedAdPingMetadata&&y.VN.Vn("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,T,new Wws(J,F),void 0,void 0,T.adLayoutLoggingData))})}else hx("Trying to track from an unknown layout.",void 0,void 0,{layoutId:q, trackingType:Q})}; Kt=function(y,q){y.U.sendVideoStatsEngageEvent(q,void 0,2)}; zh=function(y,q){g.wU("adsClientStateChange",q)}; UJ9=function(y,q){y.K.has(q.zz())?hx("Trying to register an existing AdErrorInfoSupplier."):y.K.set(q.zz(),q)}; reb=function(y,q){y.K.delete(q.zz())||hx("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Ih=function(y,q,Q){typeof Q==="string"?y.U.getVideoData(1).OU(q,Q):y.U.getVideoData(1).Rb(q,Q)}; gk2=function(y){var q=Qe(y.clientMetadata,"metadata_type_ad_placement_config");y=Qe(y.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:q,Md:y}}; Lt=function(y,q,Q,p,v,d){var T=Q?okD(y):{},O=Q?AeS(y,Q.layoutId):{},w=esi(y),J,F=v!=null?v:(J=Cj(y.Gy.get(),2))==null?void 0:J.clientPlaybackNonce;v=void 0;if(Q){var Y;if((Y=y.oM.K.get(Q.layoutId))==null?0:Y.pm)v=Q.layoutId}Y={};y=Object.assign({},Rs8(y.U,v,p),sXC(q.adPlacementConfig,(Q==null?void 0:Q.renderingContent)!==void 0),O,T,w,(Y.FINAL=Qd(function(){return"1"}),Y.AD_CPN=Qd(function(){return F||""}),Y)); (Q==null?void 0:Q.renderingContent)!==void 0||(y.SLOT_POS=Qd(function(){return(q.Md||0).toString()})); Q={};d=Object.assign({},y,d);y=g.t(Object.values(BvS));for(p=y.next();!p.done;p=y.next())p=p.value,T=d[p],T!=null&&T.toString()!=null&&(Q[p]=T.toString());return Q}; okD=function(y){var q={},Q,p=(Q=y.oy)==null?void 0:Q.aE/1E3;p!=null&&(q.SURVEY_ELAPSED_MS=Qd(function(){return Math.round(p*1E3).toString()})); q.SURVEY_LOCAL_TIME_EPOCH_S=Qd(function(){return Math.round(Date.now()/1E3).toString()}); return q}; AeS=function(y,q){y=y.K.get(q);if(!y)return{};y=y.Jb();if(!y)return{};q={};return q.YT_ERROR_CODE=y.xo.toString(),q.ERRORCODE=y.FJ.toString(),q.ERROR_MSG=y.errorMessage,q}; esi=function(y){var q={},Q=y.U.getVideoData(1);q.ASR=Qd(function(){var p;return(p=Q==null?void 0:Q.BG)!=null?p:null}); q.EI=Qd(function(){var p;return(p=Q==null?void 0:Q.eventId)!=null?p:null}); return q}; vz=function(y,q,Q){g.I.call(this);this.U=y;this.QG=q;this.Yf=Q;this.listeners=[];this.WK=null;this.Xt=new Map;q=new g.sU(this);g.n(this,q);q.Z(y,"videodatachange",this.fmB);q.Z(y,"serverstitchedvideochange",this.hm3);this.F5=Cj(this)}; Cj=function(y,q){var Q=y.U.getVideoData(q);return Q?y.Ek(Q,q||y.U.getPresentingPlayerType(!0)):null}; Gv3=function(y,q,Q){var p=y.Ek(q,Q);y.F5=p;y.listeners.forEach(function(v){v.Xs(p)})}; P18=function(y){switch(y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; dh=function(y,q,Q){g.I.call(this);this.U=y;this.Gy=q;this.Yf=Q;this.listeners=[];this.ow=[];this.K=function(){hx("Called 'doUnlockPreroll' before it's initialized.")}; q=new sM(this);Q=new g.sU(this);g.n(this,Q);g.n(this,q);q.Z(y,"progresssync",this.Nay);q.Z(y,"presentingplayerstatechange",this.kD$);q.Z(y,"fullscreentoggled",this.onFullscreenToggled);q.Z(y,"onVolumeChange",this.onVolumeChange);q.Z(y,"minimized",this.v3);q.Z(y,"overlayvisibilitychange",this.bH);q.Z(y,"shortsadswipe",this.kx);q.Z(y,"resize",this.n3);Q.Z(y,g.jw("appad"),this.XT)}; TZ=function(y){XD(y.Yf.get())||y.K()}; i29=function(y,q){y.ow=y.ow.filter(function(Q){return Q!==q})}; Vd=function(y,q,Q){return y.getCurrentTimeSec(q,Q)}; OD=function(y,q){var Q;q=(Q=y.Gy.get().Xt.get(q))!=null?Q:null;if(q===null)return hx("Expected ad video start time on playback timeline"),0;y=y.U.getCurrentTime(2,!0);return y0){var d=q.end.toString();v.forEach(function(T){(T=T.config&&T.config.adPlacementConfig)&&T.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&T.adTimeOffset&&T.adTimeOffset.offsetEndMilliseconds==="-1"&&T.adTimeOffset.offsetEndMilliseconds!==d&&(T.adTimeOffset.offsetEndMilliseconds=d)}); p.map(function(T){return g.U(T,ta)}).forEach(function(T){var O; (T=T==null?void 0:(O=T.slotEntryTrigger)==null?void 0:O.mediaTimeRangeTrigger)&&T.offsetEndMilliseconds==="-1"&&(T.offsetEndMilliseconds=d)})}return{HD:v, adSlots:p,oe:!1,ssdaiAdsConfig:y.ssdaiAdsConfig}}; fH=function(y){g.I.call(this);this.U=y;this.listeners=[];this.K=new sM(this);g.n(this,this.K);this.K.Z(this.U,"aduxclicked",this.onAdUxClicked);this.K.Z(this.U,"aduxmouseover",this.X$);this.K.Z(this.U,"aduxmouseout",this.xz);this.K.Z(this.U,"muteadaccepted",this.FeB)}; qCk=function(y,q,Q){q=g.W5(q,function(p){return new Xnj(p,Q,p.id)}); y.U.AK("onAdUxUpdate",q)}; hh=function(y,q){y=g.t(y.listeners);for(var Q=y.next();!Q.done;Q=y.next())q(Q.value)}; bJ=function(y,q){this.W=y;this.N=q===void 0?!1:q;this.K={}}; jjG=function(y,q){var Q=y.startSecs+y.Ey;Q=Q<=0?null:Q;if(Q===null)return null;switch(y.event){case "start":case "continue":case "stop":break;case "predictStart":if(q)break;return null;default:return null}q=Math.max(y.startSecs,0);return{s6:new S4(q,Q),K3j:new fm(q,Q-q,y.context,y.identifier,y.event,y.K)}}; Qje=function(){this.K=[]}; nRS=function(y,q,Q){var p=g.em(y.K,q);if(p>=0)return q;q=-p-1;return q>=y.K.length||y.K[q]>Q?null:y.K[q]}; $u=function(y,q,Q){g.I.call(this);this.U=y;this.Yf=q;this.Us=Q;this.listeners=[];this.Y=!1;this.Ci=[];this.K=null;this.J=new bJ(this,b2H(q.get()));this.N=new Qje;this.W=null}; ppS=function(y,q){y.Ci.push(q);for(var Q=!1,p=g.t(y.listeners),v=p.next();!v.done;v=p.next())Q=v.value.Yi(q)||Q;y.Y=Q;dc(y.Yf.get())&&Ih(y.Us.get(),"onci","cpi."+q.identifier+";cpe."+q.event+";cps."+q.startSecs+";cbi."+Q)}; d9h=function(y,q){zh(y.Us.get(),{cuepointTrigger:{event:vDC(q.event),cuepointId:q.identifier,totalCueDurationMs:q.Ey*1E3,playheadTimeMs:q.K,cueStartTimeMs:q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:y.U.getVideoData(1).clientPlaybackNonce}})}; vDC=function(y){switch(y){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 YZ(y,"Unexpected cuepoint event")}}; KH=function(y){this.U=y}; xu=function(y){this.U=y}; Tgm=function(y){switch(y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:YZ(y,"unknown transitionReason")}}; Wz=function(){g.I.apply(this,arguments);this.EkK=new Map}; V3_=function(y){this.U=y}; OSu=function(y,q,Q,p,v){g.I.call(this);var d=this,T=nz(function(){return new zb(d.Yf)}); g.n(this,T);var O=nz(function(){return new uz(T,d.Yf)}); g.n(this,O);var w=nz(function(){return new Y7}); g.n(this,w);var J=nz(function(){return new J3(y)}); g.n(this,J);var F=nz(function(){return new Ir(T,O,d.Yf)}); g.n(this,F);var Y=nz(function(){return new or}); g.n(this,Y);this.cT=nz(function(){return new fH(q)}); g.n(this,this.cT);this.vB=nz(function(){return new cl(v)}); g.n(this,this.vB);this.y$=nz(function(){return new ev(q)}); g.n(this,this.y$);this.a7=nz(function(){return new B6(q)}); g.n(this,this.a7);this.ut=nz(function(){return new GL(q)}); g.n(this,this.ut);this.nt=nz(function(){return new P6(q)}); g.n(this,this.nt);this.Yf=nz(function(){return new iR(q)}); g.n(this,this.Yf);var f=nz(function(){return new Yu(p)}); g.n(this,f);var h=nz(function(){return new Jc(d.Yf)}); g.n(this,h);this.kW=nz(function(){return new KH(q)}); g.n(this,this.kW);this.Zs=nz(function(){return new oI}); g.n(this,this.Zs);this.Gy=nz(function(){return new vz(q,Y,d.Yf)}); g.n(this,this.Gy);var b=ox({Gy:this.Gy,Yf:this.Yf,Rl:h}),Z=b.context,k=b.oM;this.VN=b.VN;this.Aj=nz(function(){return new $u(q,d.Yf,d.Us)}); g.n(this,this.Aj);this.m2=nz(function(){return new xu(q)}); g.n(this,this.m2);this.JK=nz(function(){return new dh(q,d.Gy,d.Yf)}); g.n(this,this.JK);this.yY=nz(function(){return new Wz}); g.n(this,this.yY);b=nz(function(){return new ql(T,F,O,d.Yf,h,"SLOT_TYPE_ABOVE_FEED",d.JK,d.Ze,d.l9)}); g.n(this,b);this.C6=nz(function(){return new Ac(d.Yf)}); this.FL=nz(function(){return new C4(d.JK,q,d.Yf)}); g.n(this,this.FL);this.Us=nz(function(){return new pH(q,w,d.FL,d.Gy,d.VN,d.Yf,k)}); g.n(this,this.Us);this.XM=new Og(Vv,ZN,function(N,l,u,c){return uE(O.get(),N,l,u,c)},J,F,O,h,this.Yf,this.Gy); g.n(this,this.XM);this.y8=new wc(J,b,Q,this.Yf,y,this.Gy,this.JK,this.y$);g.n(this,this.y8);var S=new AG(q,this.y8,this.JK,this.Gy,this.Aj);this.XC=nz(function(){return S}); this.pT=S;this.Ze=new pZ(J,F,this.XC,this.Aj,this.JK,this.Yf,this.Us,this.m2);g.n(this,this.Ze);this.A6=new F6(J,F,this.a7,this.XC,Z);g.n(this,this.A6);this.sy=new ZY(this.Yf,J,F,b,this.Gy,this.A6,Q,this.ut);g.n(this,this.sy);this.No=nz(function(){return new OT(f,O,h,d.Yf,d.Us,d.JK,d.m2)}); g.n(this,this.No);this.y5=nz(function(){return new wC}); g.n(this,this.y5);this.mT=new W$(y,this.cT,this.Yf);g.n(this,this.mT);this.DG=new Z4(y);g.n(this,this.DG);this.qx=new t3(y);g.n(this,this.qx);this.Xo=new k7(y,this.XC,Z);g.n(this,this.Xo);this.Pn=new LZ(y,this.a7,this.JK,this.Gy,Z);g.n(this,this.Pn);this.Wd=new ar(y,this.Gy);g.n(this,this.Wd);this.l9=new H$(y,this.Aj,this.JK,this.Us,this.XC,this.Ze);g.n(this,this.l9);this.Up=new Nl(y);g.n(this,this.Up);this.Q8=new lz(y);g.n(this,this.Q8);this.VU=new SG(y);g.n(this,this.VU);this.eV=new Ml(y);g.n(this, this.eV);this.Q8=new lz(y);g.n(this,this.Q8);this.Yk=nz(function(){return new bz}); g.n(this,this.Yk);this.Zb=nz(function(){return new $7(d.JK)}); g.n(this,this.Zb);this.Jv=nz(function(){return new wND(d.cT,d.Us,y,w,d.FL)}); g.n(this,this.Jv);this.RD=nz(function(){return new G0(d.sy,J,T)}); g.n(this,this.RD);this.wk=nz(function(){return new XJ(d.Yf,d.Us,d.Up,d.FL)}); g.n(this,this.wk);this.x9=nz(function(){return new A$(y,d.Q8,d.Up,d.Gy,d.m2,d.JK,d.yY,d.Us,Y,d.Aj,d.FL,d.C6,d.ut,d.a7,d.y$,d.nt,d.vB,d.kW,d.Yf,w,Z,k)}); g.n(this,this.x9);this.bT=nz(function(){return new kM2(d.JK,d.Us,d.vB,d.Yf,d.FL,d.Gy)}); g.n(this,this.bT);this.hg=nz(function(){return new Or8(d.cT,d.JK,d.Us,w,d.FL,d.qx,d.eV,d.vB,d.Yf,Q)}); g.n(this,this.hg);this.Zk=nz(function(){return new JJs(d.cT,d.Us,w)}); g.n(this,this.Zk);this.Gi=new FL(y,this.Zs,T);g.n(this,this.Gi);this.pU={Pk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sy],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ze],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.XM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.y8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.A6]]),FQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.No],["SLOT_TYPE_ABOVE_FEED",this.y5],["SLOT_TYPE_FORECASTING",this.y5], ["SLOT_TYPE_IN_PLAYER",this.y5],["SLOT_TYPE_PLAYER_BYTES",this.y5],["SLOT_TYPE_PLAYER_UNDERLAY",this.y5],["SLOT_TYPE_PLAYBACK_TRACKING",this.y5],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.y5]]),k6:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mT],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.mT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.DG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.DG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.DG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.DG],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.DG],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.DG],["TRIGGER_TYPE_CLOSE_REQUESTED",this.qx],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xo],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Pn],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Pn],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Pn],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pn],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pn],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Pn],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Pn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Wd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Wd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Up],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Xo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VU],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.eV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.l9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.l9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.l9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.l9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.l9]]),TE:new Map([["SLOT_TYPE_ABOVE_FEED",this.Yk], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Yk],["SLOT_TYPE_FORECASTING",this.Yk],["SLOT_TYPE_IN_PLAYER",this.Yk],["SLOT_TYPE_PLAYER_BYTES",this.Zb],["SLOT_TYPE_PLAYER_UNDERLAY",this.Yk],["SLOT_TYPE_PLAYBACK_TRACKING",this.Yk],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Yk]]),Ik:new Map([["SLOT_TYPE_ABOVE_FEED",this.Jv],["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_PLAYER_BYTES",this.x9],["SLOT_TYPE_PLAYBACK_TRACKING",this.bT],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.bT],["SLOT_TYPE_IN_PLAYER",this.hg],["SLOT_TYPE_PLAYER_UNDERLAY",this.Zk]])};this.listeners=[w.get()];this.Lu={sy:this.sy,m$:this.Yf.get(),kf:this.vB.get(),Ki:this.JK.get(),y8:this.y8,Z6:T.get(),XN:this.Zs.get(),Bp:this.mT,QI:w.get(),Mm:this.Gy.get()}}; wpC=function(y,q,Q,p,v){g.I.call(this);var d=this,T=nz(function(){return new zb(d.Yf)}); g.n(this,T);var O=nz(function(){return new uz(T,d.Yf)}); g.n(this,O);var w=nz(function(){return new Y7}); g.n(this,w);var J=nz(function(){return new J3(y)}); g.n(this,J);var F=nz(function(){return new Ir(T,O,d.Yf)}); g.n(this,F);var Y=nz(function(){return new or}); g.n(this,Y);this.cT=nz(function(){return new fH(q)}); g.n(this,this.cT);this.vB=nz(function(){return new cl(v)}); g.n(this,this.vB);this.y$=nz(function(){return new ev(q)}); g.n(this,this.y$);this.a7=nz(function(){return new B6(q)}); g.n(this,this.a7);this.ut=nz(function(){return new GL(q)}); g.n(this,this.ut);this.nt=nz(function(){return new P6(q)}); g.n(this,this.nt);this.Yf=nz(function(){return new iR(q)}); g.n(this,this.Yf);var f=nz(function(){return new Yu(p)}); g.n(this,f);var h=nz(function(){return new Jc(d.Yf)}); g.n(this,h);var b=nz(function(){return new ql(T,F,O,d.Yf,h,null,null,d.Ze,d.l9)}); g.n(this,b);this.kW=nz(function(){return new KH(q)}); g.n(this,this.kW);this.Zs=nz(function(){return new oI}); g.n(this,this.Zs);this.Gy=nz(function(){return new vz(q,Y,d.Yf)}); g.n(this,this.Gy);var Z=ox({Gy:this.Gy,Yf:this.Yf,Rl:h}),k=Z.context,S=Z.oM;this.VN=Z.VN;this.Aj=nz(function(){return new $u(q,d.Yf,d.Us)}); this.JK=nz(function(){return new dh(q,d.Gy,d.Yf)}); g.n(this,this.JK);this.yY=nz(function(){return new Wz}); g.n(this,this.yY);this.FL=nz(function(){return new C4(d.JK,q,d.Yf)}); g.n(this,this.FL);this.Us=nz(function(){return new pH(q,w,d.FL,d.Gy,d.VN,d.Yf,S)}); g.n(this,this.Us);this.C6=nz(function(){return new Ac(d.Yf)}); g.n(this,this.C6);this.XM=new Og(Vv,ZN,function(l,u,c,X){return uE(O.get(),l,u,c,X)},J,F,O,h,this.Yf,this.Gy); g.n(this,this.XM);this.y8=new wc(J,b,Q,this.Yf,y,this.Gy,this.JK,this.y$);g.n(this,this.y8);var N=new AG(q,this.y8,this.JK,this.Gy,this.Aj);this.XC=nz(function(){return N}); this.pT=N;this.Ze=new pZ(J,F,this.XC,this.Aj,this.JK,this.Yf,this.Us);g.n(this,this.Ze);this.A6=new F6(J,F,this.a7,this.XC,k);g.n(this,this.A6);this.sy=new ZY(this.Yf,J,F,b,this.Gy,this.A6,Q,this.ut);g.n(this,this.sy);this.No=nz(function(){return new OT(f,O,h,d.Yf,d.Us,d.JK)}); g.n(this,this.No);this.y5=nz(function(){return new wC}); g.n(this,this.y5);this.mT=new W$(y,this.cT,this.Yf);g.n(this,this.mT);this.DG=new Z4(y);g.n(this,this.DG);this.qx=new t3(y);g.n(this,this.qx);this.Xo=new k7(y,this.XC,k);g.n(this,this.Xo);this.Pn=new LZ(y,this.a7,this.JK,this.Gy,k);g.n(this,this.Pn);this.Up=new Nl(y);g.n(this,this.Up);this.VU=new SG(y);g.n(this,this.VU);this.eV=new Ml(y);g.n(this,this.eV);this.m2=nz(function(){return new xu(q)}); g.n(this,this.m2);this.Q8=new lz(y);g.n(this,this.Q8);this.l9=new H$(y,this.Aj,this.JK,this.Us,this.XC,this.Ze);g.n(this,this.l9);this.Yk=nz(function(){return new bz}); g.n(this,this.Yk);this.Zb=nz(function(){return new $7(d.JK)}); g.n(this,this.Zb);this.RD=nz(function(){return new G0(d.sy,J,T)}); g.n(this,this.RD);this.wk=nz(function(){return new XJ(d.Yf,d.Us,d.Up,d.FL)}); g.n(this,this.wk);this.hg=nz(function(){return new wJ8(d.cT,d.JK,d.Us,w,d.FL,d.qx,d.eV,d.vB,d.Yf,Q)}); g.n(this,this.hg);this.x9=nz(function(){return new eX(y,d.Q8,d.Up,d.Us,d.FL,d.C6,d.ut,d.Gy,d.JK,d.yY,d.a7,d.y$,d.nt,d.vB,d.kW,d.Yf,d.m2,k,S)}); g.n(this,this.x9);this.Gi=new FL(y,this.Zs,T);g.n(this,this.Gi);this.pU={Pk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sy],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ze],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.XM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.y8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.A6]]),FQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.No],["SLOT_TYPE_FORECASTING",this.y5],["SLOT_TYPE_IN_PLAYER",this.y5], ["SLOT_TYPE_PLAYER_BYTES",this.y5]]),k6:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.DG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.DG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.DG], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.DG],["TRIGGER_TYPE_CLOSE_REQUESTED",this.qx],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pn],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pn],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Pn],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Up],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VU],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.eV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.l9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.l9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.l9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.l9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.l9]]),TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yk],["SLOT_TYPE_FORECASTING",this.Yk],["SLOT_TYPE_IN_PLAYER",this.Yk],["SLOT_TYPE_PLAYER_BYTES",this.Zb]]), Ik:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_IN_PLAYER",this.hg],["SLOT_TYPE_PLAYER_BYTES",this.x9]])};this.listeners=[w.get()];this.Lu={sy:this.sy,m$:this.Yf.get(),kf:this.vB.get(),Ki:this.JK.get(),y8:this.y8,Z6:T.get(),XN:this.Zs.get(),Bp:this.mT,QI:w.get(),Mm:this.Gy.get()}}; JHk=function(y,q,Q,p,v){g.I.call(this);var d=this,T=nz(function(){return new zb(d.Yf)}); g.n(this,T);var O=nz(function(){return new uz(T,d.Yf)}); g.n(this,O);var w=nz(function(){return new Y7}); g.n(this,w);var J=nz(function(){return new J3(y)}); g.n(this,J);var F=nz(function(){return new Ir(T,O,d.Yf)}); g.n(this,F);var Y=nz(function(){return new or}); g.n(this,Y);this.cT=nz(function(){return new fH(q)}); g.n(this,this.cT);this.vB=nz(function(){return new cl(v)}); g.n(this,this.vB);this.y$=nz(function(){return new ev(q)}); g.n(this,this.y$);this.a7=nz(function(){return new B6(q)}); g.n(this,this.a7);this.ut=nz(function(){return new GL(q)}); g.n(this,this.ut);this.nt=nz(function(){return new P6(q)}); g.n(this,this.nt);this.Yf=nz(function(){return new iR(q)}); g.n(this,this.Yf);var f=nz(function(){return new Yu(p)}); g.n(this,f);var h=nz(function(){return new Jc(d.Yf)}); g.n(this,h);var b=nz(function(){return new ql(T,F,O,d.Yf,h,null,null,null,null)}); g.n(this,b);this.kW=nz(function(){return new KH(q)}); g.n(this,this.kW);this.Gy=nz(function(){return new vz(q,Y,d.Yf)}); g.n(this,this.Gy);var Z=ox({Gy:this.Gy,Yf:this.Yf,Rl:h}),k=Z.context,S=Z.oM;this.VN=Z.VN;this.JK=nz(function(){return new dh(q,d.Gy,d.Yf)}); g.n(this,this.JK);this.yY=nz(function(){return new Wz}); g.n(this,this.yY);this.FL=nz(function(){return new C4(d.JK,q,d.Yf)}); g.n(this,this.FL);this.Us=nz(function(){return new pH(q,w,d.FL,d.Gy,d.VN,d.Yf,S)}); g.n(this,this.Us);this.C6=nz(function(){return new Ac(d.Yf)}); g.n(this,this.C6);this.XM=new Og(Vv,ZN,function(l,u,c,X){return uE(O.get(),l,u,c,X)},J,F,O,h,this.Yf,this.Gy); g.n(this,this.XM);this.y8=new wc(J,b,Q,this.Yf,y,this.Gy,this.JK,this.y$);g.n(this,this.y8);var N=new AG(q,this.y8,this.JK,this.Gy);this.XC=nz(function(){return N}); this.pT=N;this.A6=new F6(J,F,this.a7,this.XC,k);g.n(this,this.A6);this.sy=new ZY(this.Yf,J,F,b,this.Gy,this.A6,Q,this.ut);g.n(this,this.sy);this.No=nz(function(){return new OT(f,O,h,d.Yf,d.Us,d.JK)}); g.n(this,this.No);this.y5=nz(function(){return new wC}); g.n(this,this.y5);this.mT=new W$(y,this.cT,this.Yf);g.n(this,this.mT);this.DG=new Z4(y);g.n(this,this.DG);this.Xo=new k7(y,this.XC,k);g.n(this,this.Xo);this.Pn=new LZ(y,this.a7,this.JK,this.Gy,k);g.n(this,this.Pn);this.Up=new Nl(y);g.n(this,this.Up);this.VU=new SG(y);g.n(this,this.VU);this.m2=nz(function(){return new xu(q)}); g.n(this,this.m2);this.Q8=new lz(y);g.n(this,this.Q8);this.Yk=nz(function(){return new bz}); g.n(this,this.Yk);this.Zb=nz(function(){return new $7(d.JK)}); g.n(this,this.Zb);this.RD=nz(function(){return new G0(d.sy,J,T)}); g.n(this,this.RD);this.wk=nz(function(){return new XJ(d.Yf,d.Us,d.Up,d.FL)}); g.n(this,this.wk);this.Jq=nz(function(){return new EeH(d.cT,d.JK,d.Us,w,Q,d.Yf)}); g.n(this,this.Jq);this.x9=nz(function(){return new eX(y,d.Q8,d.Up,d.Us,d.FL,d.C6,d.ut,d.Gy,d.JK,d.yY,d.a7,d.y$,d.nt,d.vB,d.kW,d.Yf,d.m2,k,S)}); g.n(this,this.x9);this.pU={Pk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sy],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.XM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.y8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.A6]]),FQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.No],["SLOT_TYPE_FORECASTING",this.y5],["SLOT_TYPE_IN_PLAYER",this.y5],["SLOT_TYPE_PLAYER_BYTES",this.y5]]),k6:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.DG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.DG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.DG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.DG],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pn],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Pn],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Up],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VU],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8]]),TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yk],["SLOT_TYPE_ABOVE_FEED",this.Yk],["SLOT_TYPE_FORECASTING",this.Yk],["SLOT_TYPE_IN_PLAYER",this.Yk],["SLOT_TYPE_PLAYER_BYTES",this.Zb]]),Ik:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_IN_PLAYER", this.Jq],["SLOT_TYPE_PLAYER_BYTES",this.x9]])};this.listeners=[w.get()];this.Lu={sy:this.sy,m$:this.Yf.get(),kf:this.vB.get(),Ki:this.JK.get(),y8:this.y8,Z6:T.get(),XN:null,Bp:this.mT,QI:w.get(),Mm:this.Gy.get()}}; FbX=function(y,q,Q,p,v){g.I.call(this);var d=this,T=nz(function(){return new zb(d.Yf)}); g.n(this,T);var O=nz(function(){return new uz(T,d.Yf)}); g.n(this,O);var w=nz(function(){return new Y7}); g.n(this,w);var J=nz(function(){return new J3(y)}); g.n(this,J);var F=nz(function(){return new Ir(T,O,d.Yf)}); g.n(this,F);var Y=nz(function(){return new or}); g.n(this,Y);this.PA=nz(function(){return new V3_(q)}); g.n(this,this.PA);this.cT=nz(function(){return new fH(q)}); g.n(this,this.cT);this.vB=nz(function(){return new cl(v)}); g.n(this,this.vB);this.y$=nz(function(){return new ev(q)}); g.n(this,this.y$);this.a7=nz(function(){return new B6(q)}); g.n(this,this.a7);this.ut=nz(function(){return new GL(q)}); g.n(this,this.ut);this.nt=nz(function(){return new P6(q)}); g.n(this,this.nt);this.Yf=nz(function(){return new iR(q)}); g.n(this,this.Yf);var f=nz(function(){return new Yu(p)}); g.n(this,f);var h=nz(function(){return new Jc(d.Yf)}); g.n(this,h);var b=nz(function(){return new ql(T,F,O,d.Yf,h,null,null,null,null)}); g.n(this,b);this.kW=nz(function(){return new KH(q)}); g.n(this,this.kW);this.Gy=nz(function(){return new vz(q,Y,d.Yf)}); g.n(this,this.Gy);var Z=ox({Gy:this.Gy,Yf:this.Yf,Rl:h}),k=Z.context,S=Z.oM;this.VN=Z.VN;this.JK=nz(function(){return new dh(q,d.Gy,d.Yf)}); g.n(this,this.JK);this.yY=nz(function(){return new Wz}); g.n(this,this.yY);this.FL=nz(function(){return new C4(d.JK,q,d.Yf)}); g.n(this,this.FL);this.Us=nz(function(){return new pH(q,w,d.FL,d.Gy,d.VN,d.Yf,S)}); g.n(this,this.Us);this.C6=nz(function(){return new Ac(d.Yf)}); g.n(this,this.C6);this.XM=new Og(igS,ZN,function(l,u,c,X){return xIp(O.get(),l,u,c,X)},J,F,O,h,this.Yf,this.Gy); g.n(this,this.XM);this.y8=new wc(J,b,Q,this.Yf,y,this.Gy,this.JK,this.y$);g.n(this,this.y8);var N=new AG(q,this.y8,this.JK,this.Gy);this.XC=nz(function(){return N}); this.pT=N;this.A6=new F6(J,F,this.a7,this.XC,k);g.n(this,this.A6);this.sy=new ZY(this.Yf,J,F,b,this.Gy,this.A6,Q,this.ut);g.n(this,this.sy);this.No=nz(function(){return new OT(f,O,h,d.Yf,d.Us,d.JK)}); g.n(this,this.No);this.y5=nz(function(){return new wC}); g.n(this,this.y5);this.mT=new W$(y,this.cT,this.Yf);g.n(this,this.mT);this.DG=new Z4(y);g.n(this,this.DG);this.Xo=new k7(y,this.XC,k);g.n(this,this.Xo);this.Pn=new LZ(y,this.a7,this.JK,this.Gy,k);g.n(this,this.Pn);this.Up=new Nl(y);g.n(this,this.Up);this.VU=new SG(y);g.n(this,this.VU);this.m2=nz(function(){return new xu(q)}); g.n(this,this.m2);this.Q8=new lz(y);g.n(this,this.Q8);this.Yk=nz(function(){return new bz}); g.n(this,this.Yk);this.Zb=nz(function(){return new $7(d.JK)}); g.n(this,this.Zb);this.RD=nz(function(){return new G0(d.sy,J,T)}); g.n(this,this.RD);this.wk=nz(function(){return new XJ(d.Yf,d.Us,d.Up,d.FL)}); g.n(this,this.wk);this.x9=nz(function(){return new eX(y,d.Q8,d.Up,d.Us,d.FL,d.C6,d.ut,d.Gy,d.JK,d.yY,d.a7,d.y$,d.nt,d.vB,d.kW,d.Yf,d.m2,k,S)}); g.n(this,this.x9);this.KQ=nz(function(){return new Fw3(d.cT,d.JK,d.Us,w,d.PA,Q,d.Gy)}); g.n(this,this.KQ);this.pU={Pk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sy],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.XM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.y8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.A6]]),FQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.No],["SLOT_TYPE_FORECASTING",this.y5],["SLOT_TYPE_IN_PLAYER",this.y5],["SLOT_TYPE_PLAYER_BYTES",this.y5]]),k6:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.DG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.DG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.DG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.DG],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pn],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Pn],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Up],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VU],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8]]),TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yk],["SLOT_TYPE_FORECASTING",this.Yk],["SLOT_TYPE_IN_PLAYER",this.Yk],["SLOT_TYPE_PLAYER_BYTES",this.Zb]]),Ik:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_IN_PLAYER",this.KQ],["SLOT_TYPE_PLAYER_BYTES", this.x9]])};this.listeners=[w.get()];this.Lu={sy:this.sy,m$:this.Yf.get(),kf:this.vB.get(),Ki:this.JK.get(),y8:this.y8,Z6:T.get(),XN:null,Bp:this.mT,QI:w.get(),Mm:this.Gy.get()}}; YCu=function(y,q,Q,p,v){g.I.call(this);var d=this,T=nz(function(){return new zb(d.Yf)}); g.n(this,T);var O=nz(function(){return new uz(T,d.Yf)}); g.n(this,O);var w=nz(function(){return new Y7}); g.n(this,w);var J=nz(function(){return new J3(y)}); g.n(this,J);var F=nz(function(){return new Ir(T,O,d.Yf)}); g.n(this,F);var Y=nz(function(){return new or}); g.n(this,Y);this.PA=nz(function(){return new V3_(q)}); g.n(this,this.PA);this.cT=nz(function(){return new fH(q)}); g.n(this,this.cT);this.vB=nz(function(){return new cl(v)}); g.n(this,this.vB);this.y$=nz(function(){return new ev(q)}); g.n(this,this.y$);this.a7=nz(function(){return new B6(q)}); g.n(this,this.a7);this.ut=nz(function(){return new GL(q)}); g.n(this,this.ut);this.nt=nz(function(){return new P6(q)}); g.n(this,this.nt);this.Yf=nz(function(){return new iR(q)}); g.n(this,this.Yf);var f=nz(function(){return new Yu(p)}); g.n(this,f);var h=nz(function(){return new Jc(d.Yf)}); g.n(this,h);this.kW=nz(function(){return new KH(q)}); g.n(this,this.kW);this.Gy=nz(function(){return new vz(q,Y,d.Yf)}); g.n(this,this.Gy);var b=ox({Gy:this.Gy,Yf:this.Yf,Rl:h}),Z=b.context,k=b.oM;this.VN=b.VN;this.Aj=nz(function(){return new $u(q,d.Yf,d.Us)}); g.n(this,this.Aj);this.m2=nz(function(){return new xu(q)}); g.n(this,this.m2);this.JK=nz(function(){return new dh(q,d.Gy,d.Yf)}); g.n(this,this.JK);this.yY=nz(function(){return new Wz}); g.n(this,this.yY);b=nz(function(){return new ql(T,F,O,d.Yf,h,null,d.JK,d.Ze,d.l9,3)}); g.n(this,b);this.C6=nz(function(){return new Ac(d.Yf)}); this.FL=nz(function(){return new C4(d.JK,q,d.Yf)}); g.n(this,this.FL);this.Us=nz(function(){return new pH(q,w,d.FL,d.Gy,d.VN,d.Yf,k)}); g.n(this,this.Us);this.y8=new wc(J,b,Q,this.Yf,y,this.Gy,this.JK,this.y$);g.n(this,this.y8);var S=new AG(q,this.y8,this.JK,this.Gy,this.Aj);this.XC=nz(function(){return S}); this.pT=S;this.XM=new Og(XZ8,ZN,function(N,l,u,c){return xIp(O.get(),N,l,u,c)},J,F,O,h,this.Yf,this.Gy); g.n(this,this.XM);this.Ze=new pZ(J,F,this.XC,this.Aj,this.JK,this.Yf,this.Us,this.m2);g.n(this,this.Ze);this.A6=new F6(J,F,this.a7,this.XC,Z);g.n(this,this.A6);this.sy=new ZY(this.Yf,J,F,b,this.Gy,this.A6,Q,this.ut);g.n(this,this.sy);this.No=nz(function(){return new OT(f,O,h,d.Yf,d.Us,d.JK,d.m2)}); g.n(this,this.No);this.y5=nz(function(){return new wC}); g.n(this,this.y5);this.mT=new W$(y,this.cT,this.Yf);g.n(this,this.mT);this.DG=new Z4(y);g.n(this,this.DG);this.Xo=new k7(y,this.XC,Z);g.n(this,this.Xo);this.Pn=new LZ(y,this.a7,this.JK,this.Gy,Z);g.n(this,this.Pn);this.Wd=new ar(y,this.Gy);g.n(this,this.Wd);this.l9=new H$(y,this.Aj,this.JK,this.Us,this.XC,this.Ze);g.n(this,this.l9);this.Up=new Nl(y);g.n(this,this.Up);this.VU=new SG(y);g.n(this,this.VU);this.Q8=new lz(y);g.n(this,this.Q8);this.Yk=nz(function(){return new bz}); g.n(this,this.Yk);this.Zb=nz(function(){return new $7(d.JK)}); g.n(this,this.Zb);this.RD=nz(function(){return new G0(d.sy,J,T)}); g.n(this,this.RD);this.wk=nz(function(){return new XJ(d.Yf,d.Us,d.Up,d.FL)}); g.n(this,this.wk);this.x9=nz(function(){return new A$(y,d.Q8,d.Up,d.Gy,d.m2,d.JK,d.yY,d.Us,Y,d.Aj,d.FL,d.C6,d.ut,d.a7,d.y$,d.nt,d.vB,d.kW,d.Yf,w,Z,k)}); g.n(this,this.x9);this.hg=nz(function(){return new Y6D(d.cT,d.JK,d.Us,w,d.PA,Q,d.Yf,d.Gy)}); g.n(this,this.hg);this.pU={Pk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sy],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ze],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.XM],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.y8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.A6]]),FQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.No],["SLOT_TYPE_FORECASTING",this.y5],["SLOT_TYPE_IN_PLAYER",this.y5],["SLOT_TYPE_PLAYER_BYTES",this.y5]]),k6:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.mT],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.DG],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.DG],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.DG],["TRIGGER_TYPE_SLOT_ID_EXITED",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.DG],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.DG],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Pn],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Wd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Wd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Up],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VU],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Q8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.l9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.l9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.l9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.l9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.l9]]),TE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yk],["SLOT_TYPE_FORECASTING",this.Yk],["SLOT_TYPE_IN_PLAYER",this.Yk],["SLOT_TYPE_PLAYER_BYTES",this.Zb]]),Ik:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.wk],["SLOT_TYPE_PLAYER_BYTES",this.x9],["SLOT_TYPE_IN_PLAYER",this.hg]])};this.listeners=[w.get()]; this.Lu={sy:this.sy,m$:this.Yf.get(),kf:this.vB.get(),Ki:this.JK.get(),y8:this.y8,Z6:T.get(),XN:null,Bp:this.mT,QI:w.get(),Mm:this.Gy.get()}}; h2S=function(y,q,Q,p){function v(){return d.W} g.I.call(this);var d=this;y.T().experiments.ob("html5_dispose_of_manager_before_dependency")?(this.K=fsu(v,y,q,Q,p),this.W=(new gm(this.K)).N(),g.n(this,this.W),g.n(this,this.K)):(this.K=fsu(v,y,q,Q,p),g.n(this,this.K),this.W=(new gm(this.K)).N(),g.n(this,this.W))}; th=function(y){return y.K.Lu}; fsu=function(y,q,Q,p,v){try{var d=q.T();if(g.Nj(d))var T=new OSu(y,q,Q,p,v);else if(g.Rs(d))T=new wpC(y,q,Q,p,v);else if(xo(d))T=new JHk(y,q,Q,p,v);else if(g.Us(d))T=new FbX(y,q,Q,p,v);else if(g.Yo(d))T=new YCu(y,q,Q,p,v);else throw new TypeError("Unknown web interface");return T}catch(O){return T=q.T(),hx("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:T.K.cplatform,interface:T.K.c,j0B:T.K.cver,PCf:T.K.ctheme,OqB:T.K.cplayer,ZAV:T.playerStyle}),new C1p(y,q,Q,p,v)}}; bSS=function(y){GM.call(this,y)}; $9_=function(y,q,Q,p,v){jn.call(this,y,{S:"div",V:"ytp-ad-timed-pie-countdown-container",D:[{S:"svg",V:"ytp-ad-timed-pie-countdown",B:{viewBox:"0 0 20 20"},D:[{S:"circle",V:"ytp-ad-timed-pie-countdown-background",B:{r:"10",cx:"10",cy:"10"}},{S:"circle",V:"ytp-ad-timed-pie-countdown-inner",B:{r:"5",cx:"10",cy:"10"}},{S:"circle",V:"ytp-ad-timed-pie-countdown-outer",B:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",q,Q,p,v);this.Y=this.uB("ytp-ad-timed-pie-countdown-container");this.N=this.uB("ytp-ad-timed-pie-countdown-inner"); this.J=this.uB("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; Kbu=function(y,q,Q,p,v,d){f1.call(this,y,{S:"div",V:"ytp-ad-action-interstitial",B:{tabindex:"0"},D:[{S:"div",V:"ytp-ad-action-interstitial-background-container"},{S:"div",V:"ytp-ad-action-interstitial-slot",D:[{S:"div",V:"ytp-ad-action-interstitial-instream-info"},{S:"div",V:"ytp-ad-action-interstitial-card",D:[{S:"div",V:"ytp-ad-action-interstitial-image-container"},{S:"div",V:"ytp-ad-action-interstitial-headline-container"},{S:"div",V:"ytp-ad-action-interstitial-description-container"},{S:"div", V:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",q,Q,p);this.nZ=v;this.P$=d;this.navigationEndpoint=this.K=this.skipButton=this.W=this.actionButton=null;this.LK=this.uB("ytp-ad-action-interstitial-instream-info");this.vI=this.uB("ytp-ad-action-interstitial-image-container");this.j=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,"ytp-ad-action-interstitial-image");g.n(this,this.j);this.j.ym(this.vI);this.gp=this.uB("ytp-ad-action-interstitial-headline-container"); this.J=new yI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,"ytp-ad-action-interstitial-headline");g.n(this,this.J);this.J.ym(this.gp);this.N$=this.uB("ytp-ad-action-interstitial-description-container");this.N=new yI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,"ytp-ad-action-interstitial-description");g.n(this,this.N);this.N.ym(this.N$);this.Dw=this.uB("ytp-ad-action-interstitial-background-container");this.Vm=new oy(this.api,this.layoutId,this.interactionLoggingClientData, this.kf,"ytp-ad-action-interstitial-background",!0);g.n(this,this.Vm);this.Vm.ym(this.Dw);this.BI=this.uB("ytp-ad-action-interstitial-action-button-container");this.slot=this.uB("ytp-ad-action-interstitial-slot");this.TI=this.uB("ytp-ad-action-interstitial-card");this.Y=new sM;g.n(this,this.Y);this.hide()}; x9_=function(y){var q=g.w0("html5-video-player");q&&g.fU(q,"ytp-ad-display-override",y)}; ED_=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-ad-overlay-slot",D:[{S:"div",V:"ytp-ad-overlay-container"}]},"invideo-overlay",q,Q,p);this.j=[];this.Dw=this.gp=this.Y=this.BI=this.LK=null;this.Vm=!1;this.J=null;this.N$=0;y=this.uB("ytp-ad-overlay-container");this.vI=new wS(y,45E3,6E3,.3,.4);g.n(this,this.vI);this.N=Wb_(this);g.n(this,this.N);this.N.ym(y);this.W=ZSX(this);g.n(this,this.W);this.W.ym(y);this.K=t3n(this);g.n(this,this.K);this.K.ym(y);this.hide()}; Wb_=function(y){var q=new g.Ye({S:"div",V:"ytp-ad-text-overlay",D:[{S:"div",V:"ytp-ad-overlay-ad-info-button-container"},{S:"div",V:"ytp-ad-overlay-close-container",D:[{S:"button",V:"ytp-ad-overlay-close-button",D:[zM(kfu)]}]},{S:"div",V:"ytp-ad-overlay-title",M$:"{{title}}"},{S:"div",V:"ytp-ad-overlay-desc",M$:"{{description}}"},{S:"div",rp:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],M$:"{{displayUrl}}"}]});y.Z(q.uB("ytp-ad-overlay-title"),"click",function(Q){ED(y,q.element,Q)}); y.Z(q.uB("ytp-ad-overlay-link"),"click",function(Q){ED(y,q.element,Q)}); y.Z(q.uB("ytp-ad-overlay-close-container"),"click",y.Hw);q.hide();return q}; ZSX=function(y){var q=new g.Ye({S:"div",rp:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],D:[{S:"div",V:"ytp-ad-overlay-ad-info-button-container"},{S:"div",V:"ytp-ad-overlay-close-container",D:[{S:"button",V:"ytp-ad-overlay-close-button",D:[zM(kfu)]}]},{S:"div",V:"ytp-ad-overlay-text-image",D:[{S:"img",B:{src:"{{imageUrl}}"}}]},{S:"div",V:"ytp-ad-overlay-title",M$:"{{title}}"},{S:"div",V:"ytp-ad-overlay-desc",M$:"{{description}}"},{S:"div",rp:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], M$:"{{displayUrl}}"}]});y.Z(q.uB("ytp-ad-overlay-title"),"click",function(Q){ED(y,q.element,Q)}); y.Z(q.uB("ytp-ad-overlay-link"),"click",function(Q){ED(y,q.element,Q)}); y.Z(q.uB("ytp-ad-overlay-close-container"),"click",y.Hw);y.Z(q.uB("ytp-ad-overlay-text-image"),"click",y.d4V);q.hide();return q}; t3n=function(y){var q=new g.Ye({S:"div",V:"ytp-ad-image-overlay",D:[{S:"div",V:"ytp-ad-overlay-ad-info-button-container"},{S:"div",V:"ytp-ad-overlay-close-container",D:[{S:"button",V:"ytp-ad-overlay-close-button",D:[zM(kfu)]}]},{S:"div",V:"ytp-ad-overlay-image",D:[{S:"img",B:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});y.Z(q.uB("ytp-ad-overlay-image"),"click",function(Q){ED(y,q.element,Q)}); y.Z(q.uB("ytp-ad-overlay-close-container"),"click",y.Hw);q.hide();return q}; Lbu=function(y,q){if(q){var Q=g.U(q,$T)||null;Q==null?g.l$(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(q=g.w0("video-ads ytp-ad-module")||null,q==null?g.l$(Error("Could not locate the root ads container element to attach the ad info dialog.")):(y.gp=new g.Ye({S:"div",V:"ytp-ad-overlay-ad-info-dialog-container"}),g.n(y,y.gp),y.gp.ym(q),q=new C1(y.api,y.layoutId,y.interactionLoggingClientData,y.kf,y.gp.element,!1),g.n(y,q),q.init(da("ad-info-hover-text-button"),Q,y.macros), y.J?(q.ym(y.J,0),q.subscribe("f",y.NmK,y),q.subscribe("e",y.Mn,y),y.Z(y.J,"click",y.Mej),y.Z(g.w0("ytp-ad-button",q.element),"click",function(){var p;if(g.U((p=g.U(Q.button,g.xT))==null?void 0:p.serviceEndpoint,TU3))y.Vm=y.api.getPlayerState(1)===2,y.api.pauseVideo();else y.api.onAdUxClicked("ad-info-hover-text-button",y.layoutId)}),y.Dw=q):g.l$(Error("Ad info button container within overlay ad was not present."))))}else g.zI(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; Ngu=function(y,q){if(ase(y,ku)||y.api.isMinimized())return!1;var Q=hJ(q.title),p=hJ(q.description);if(g.zu(Q)||g.zu(p))return!1;y.createServerVe(y.N.element,q.trackingParams||null);y.N.updateValue("title",hJ(q.title));y.N.updateValue("description",hJ(q.description));y.N.updateValue("displayUrl",hJ(q.displayUrl));q.navigationEndpoint&&g.nh(y.j,q.navigationEndpoint);y.N.show();y.vI.start();y.logVisibility(y.N.element,!0);y.Z(y.N.element,"mouseover",function(){y.N$++}); return!0}; SCm=function(y,q){if(ase(y,ku)||y.api.isMinimized())return!1;var Q=hJ(q.title),p=hJ(q.description);if(g.zu(Q)||g.zu(p))return!1;y.createServerVe(y.W.element,q.trackingParams||null);y.W.updateValue("title",hJ(q.title));y.W.updateValue("description",hJ(q.description));y.W.updateValue("displayUrl",hJ(q.displayUrl));y.W.updateValue("imageUrl",KFg(q.image));q.navigationEndpoint&&g.nh(y.j,q.navigationEndpoint);y.BI=q.imageNavigationEndpoint||null;y.W.show();y.vI.start();y.logVisibility(y.W.element,!0); y.Z(y.W.element,"mouseover",function(){y.N$++}); return!0}; HSn=function(y,q){if(y.api.isMinimized())return!1;var Q=xxi(q.image),p=Q;Q.width0?(q=new gS(y.api,y.K), q.ym(y.playerOverlay),g.n(y,q)):(y=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(q)),g.l$(y))}}else g.l$(Error("addCommonComponents() needs to be called before starting countdown."))}; cH_=function(y){function q(Q){return{toString:function(){return Q()}}} y.macros.SURVEY_LOCAL_TIME_EPOCH_S=q(function(){var Q=new Date;return(Math.round(Q.valueOf()/1E3)+-1*Q.getTimezoneOffset()*60).toString()}); y.macros.SURVEY_ELAPSED_MS=q(function(){return(Date.now()-y.N).toString()})}; U9S=function(y,q,Q,p,v){SS.call(this,y,q,Q,p,"survey-question-multi-select");this.N$=v;this.noneOfTheAbove=null;this.submitEndpoints=[];this.J=null;this.hide()}; rHm=function(y,q,Q){y.noneOfTheAbove=new D9u(y.api,y.layoutId,y.interactionLoggingClientData,y.kf);y.noneOfTheAbove.ym(y.answers);y.noneOfTheAbove.init(da("survey-none-of-the-above"),q,Q)}; AHS=function(y){y.W.forEach(function(q){q.K.toggleButton(!1)}); oDX(y,!0)}; oDX=function(y,q){var Q=y.Y;y=e2G(y);q=q===void 0?!1:q;Q.K&&(y?Q.K.hide():Q.K.show(),q&&Q.K instanceof ZB&&!Q.K.Y&&bdi(Q.K,!1));Q.W&&(y?Q.W.show():Q.W.hide())}; e2G=function(y){return y.W.some(function(q){return q.K.isToggled()})||y.noneOfTheAbove.button.isToggled()}; Hz=function(y,q,Q,p,v){SS.call(this,y,q,Q,p,"survey-question-single-select",function(T){d.api.T().L("supports_multi_step_on_desktop")&&v([T])}); var d=this;this.hide()}; Ru=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-ad-survey",D:[{S:"div",V:"ytp-ad-survey-questions"}]},"survey",q,Q,p);this.questions=[];this.W=[];this.conditioningRules=[];this.K=0;this.J=this.uB("ytp-ad-survey-questions");this.api.T().L("fix_survey_color_contrast_on_destop")&&this.uB("ytp-ad-survey").classList.add("color-contrast-fix");this.api.T().L("web_enable_speedmaster")&&this.uB("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; P8u=function(y,q){var Q=y.W[q],p;(p=y.N)==null||p.dispose();g.U(Q,ha)?Bgk(y,g.U(Q,ha),y.macros):g.U(Q,fF)&&Gfm(y,g.U(Q,fF),y.macros);y.K=q}; Bgk=function(y,q,Q){var p=new Hz(y.api,y.layoutId,y.interactionLoggingClientData,y.kf,y.Y.bind(y));p.ym(y.J);p.init(da("survey-question-single-select"),q,Q);y.api.T().L("supports_multi_step_on_desktop")?y.N=p:y.questions.push(p);g.n(y,p)}; Gfm=function(y,q,Q){var p=new U9S(y.api,y.layoutId,y.interactionLoggingClientData,y.kf,y.Y.bind(y));p.ym(y.J);p.init(da("survey-question-multi-select"),q,Q);y.api.T().L("supports_multi_step_on_desktop")?y.N=p:y.questions.push(p);g.n(y,p)}; sD=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-ad-survey-interstitial",D:[{S:"div",V:"ytp-ad-survey-interstitial-contents",D:[{S:"div",V:"ytp-ad-survey-interstitial-logo",D:[{S:"div",V:"ytp-ad-survey-interstitial-logo-image"}]},{S:"div",V:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",q,Q,p);this.K=this.actionButton=null;this.interstitial=this.uB("ytp-ad-survey-interstitial");this.W=this.uB("ytp-ad-survey-interstitial-contents");this.text=this.uB("ytp-ad-survey-interstitial-text"); this.logoImage=this.uB("ytp-ad-survey-interstitial-logo-image");this.transition=new g.vt(this,500,!1,300);g.n(this,this.transition)}; iSm=function(y,q){q=q&&ra(q)||"";if(g.zu(q))g.zI(Error("Found ThumbnailDetails without valid image URL"));else{var Q=y.style;y=y.style.cssText;var p=document.implementation.createHTMLDocument("").createElement("DIV");p.style.cssText=y;y=oK9(p.style);Q.cssText=[y,'background-image:url("'+q+'");'].join("")}}; Xpc=function(y){var q=g.w0("html5-video-player");q&&g.fU(q,"ytp-ad-display-override",y)}; M5=function(y,q,Q,p,v,d){d=d===void 0?0:d;jn.call(this,y,{S:"div",V:"ytp-preview-ad",D:[{S:"div",V:"ytp-preview-ad__text"}]},"preview-ad",q,Q,p,v);var T=this;this.N$=d;this.W=0;this.Y=-1;this.N=this.uB("ytp-preview-ad__text");switch(this.N$){case 1:this.N.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.vt(this,400,!1,100,function(){T.hide()}); g.n(this,this.transition);this.hide()}; lJ=function(y,q,Q,p){f1.call(this,y,{S:"img",V:"ytp-ad-avatar"},"ad-avatar",q,Q,p);this.hide()}; m9G=function(y){switch(y.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; zZ=function(y,q,Q,p,v,d){v=v===void 0?!1:v;d=d===void 0?!1:d;f1.call(this,y,{S:"button",V:"ytp-ad-button-vm"},"ad-button",q,Q,p);this.buttonText=this.buttonIcon=null;this.hide();this.K=v;this.W=d}; C8X=function(y,q,Q,p,v){jn.call(this,y,{S:"div",rp:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],D:[{S:"div",V:"ytp-ad-avatar-lockup-card__avatar_and_text_container",D:[{S:"div",V:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",q,Q,p,v);this.startMilliseconds=0;this.adAvatar=new lJ(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.adAvatar);W0(this.element,this.adAvatar.element,0);this.headline=new lK(this.api,this.layoutId, this.interactionLoggingClientData,this.kf);g.n(this,this.headline);this.headline.ym(this.uB("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.description);this.description.ym(this.uB("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new zZ(this.api, this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.adButton);this.adButton.ym(this.element);this.hide()}; DN=function(y,q,Q,p){f1.call(this,y,{S:"button",V:"ytp-skip-ad-button",D:[{S:"div",V:"ytp-skip-ad-button__text"}]},"skip-button",q,Q,p);var v=this;this.W=!1;this.Y=this.uB("ytp-skip-ad-button__text");this.transition=new g.vt(this,500,!1,100,function(){v.hide()}); g.n(this,this.transition);this.K=new wS(this.element,15E3,5E3,.5,.5,!0);g.n(this,this.K);this.hide()}; ymw=function(y,q,Q,p,v){jn.call(this,y,{S:"div",V:"ytp-skip-ad"},"skip-ad",q,Q,p,v);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.N=new DN(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.N);this.N.ym(this.element);this.hide()}; uJ=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-visit-advertiser-link"},"visit-advertiser-link",q,Q,p);this.hide()}; Iu=function(y,q,Q,p,v){f1.call(this,y,{S:"div",V:"ytp-ad-player-overlay-layout",D:[{S:"div",V:"ytp-ad-player-overlay-layout__player-card-container"},{S:"div",V:"ytp-ad-player-overlay-layout__ad-info-container"},{S:"div",V:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{S:"div",V:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",q,Q,p);this.W=v;this.gp=this.uB("ytp-ad-player-overlay-layout__player-card-container");this.K=this.uB("ytp-ad-player-overlay-layout__ad-info-container"); this.j=this.uB("ytp-ad-player-overlay-layout__skip-or-preview-container");this.N$=this.uB("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; qu_=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-ad-grid-card-text",D:[{S:"div",V:"ytp-ad-grid-card-text__metadata",D:[{S:"div",V:"ytp-ad-grid-card-text__metadata__headline"},{S:"div",V:"ytp-ad-grid-card-text__metadata__description",D:[{S:"div",V:"ytp-ad-grid-card-text__metadata__description__line"},{S:"div",V:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{S:"div",V:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",q,Q,p);this.headline=new lK(this.api,this.layoutId,this.interactionLoggingClientData, this.kf);g.n(this,this.headline);this.headline.ym(this.uB("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!0);g.n(this,this.moreInfoButton);this.moreInfoButton.ym(this.uB("ytp-ad-grid-card-text__button"))}; nH=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",q,Q,p);this.K=[]}; gh=function(y,q,Q,p,v,d,T){jn.call(this,y,d,T,q,Q,p,v);this.playerProgressOffsetMs=0;this.W=!1}; jnk=function(y){var q=g.w0("html5-video-player");q&&g.fU(q,"ytp-ad-display-override",y)}; Qnc=function(y,q,Q,p,v){gh.call(this,y,q,Q,p,v,{S:"div",V:"ytp-display-underlay-text-grid-cards",D:[{S:"div",V:"ytp-display-underlay-text-grid-cards__content_container",D:[{S:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header",D:[{S:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{S:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{S:"div",V:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {S:"div",V:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new nH(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.adGridCardCollection);this.adGridCardCollection.ym(this.uB("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.adButton);this.adButton.ym(this.uB("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.N=this.uB("ytp-display-underlay-text-grid-cards__content_container");this.Y=this.uB("ytp-display-underlay-text-grid-cards__content_container__header")}; cz=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-ad-details-line"},"ad-details-line",q,Q,p);this.K=[];this.hide()}; UD=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-image-background",D:[{S:"img",V:"ytp-image-background-image"}]},"image-background",q,Q,p);this.hide()}; pem=function(y,q,Q,p,v){jn.call(this,y,{S:"svg",V:"ytp-timed-pie-countdown",B:{viewBox:"0 0 20 20"},D:[{S:"circle",V:"ytp-timed-pie-countdown__background",B:{r:"10",cx:"10",cy:"10"}},{S:"circle",V:"ytp-timed-pie-countdown__inner",B:{r:"5",cx:"10",cy:"10"}},{S:"circle",V:"ytp-timed-pie-countdown__outer",B:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",q,Q,p,v);this.N=this.uB("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()}; rh=function(y,q,Q,p){f1.call(this,y,{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout",B:{tabindex:"0"},D:[{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content",D:[{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",D:[{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{S:"div",V:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",q,Q,p);this.W=null;this.Y=this.uB("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new sM;g.n(this,this.N);this.hide()}; vqh=function(y){var q=g.w0("html5-video-player");q&&g.fU(q,"ytp-ad-display-override",y)}; dwh=function(y){if(!y.adAvatar||!g.U(y.adAvatar,ou))return g.l$(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!y.headline)return g.l$(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!y.adBadge||!g.U(y.adBadge,Ah))return g.l$(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!y.adButton||!g.U(y.adButton,eS))return g.l$(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!y.adInfoRenderer|| !g.U(y.adInfoRenderer,$T))return g.l$(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;y=y.durationMilliseconds||0;return typeof y!=="number"||y<=0?(g.l$(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+y)),!1):!0}; Bz=function(y,q){q=q===void 0?2:q;g.V6.call(this);this.api=y;this.K=null;this.handler=new sM(this);g.n(this,this.handler);this.W=$bp;this.handler.Z(this.api,"presentingplayerstatechange",this.Ko);this.K=this.handler.Z(this.api,"progresssync",this.xj);this.AM=q;this.AM===1&&this.xj()}; GZ=function(y,q,Q){GM.call(this,y);this.api=y;this.kf=q;this.components={};y=new g.r({S:"div",rp:["video-ads","ytp-ad-module"]});g.n(this,y);QK&&g.wl(y.element,"ytp-ads-tiny-mode");this.Y=new $i(y.element);g.n(this,this.Y);g.pq(this.api,y.element,4);IS(Q)&&(Q=new g.r({S:"div",rp:["ytp-ad-underlay"]}),g.n(this,Q),this.W=new $i(Q.element),g.n(this,this.W),g.pq(this.api,Q.element,0));g.n(this,eIS())}; Tku=function(y,q){y=g.bo(y.components,q.id,null);y==null&&g.zI(Error("Component not found for element id: "+q.id));return y||null}; Vmh=function(y){g.LC.call(this,y);var q=this;this.W=null;this.created=!1;this.N=y.T().L("h5_use_refactored_get_ad_break")?new yeH(this.player):new rd(this.player);this.Y=function(){if(q.W!=null)return q.W;var p=new Tv8({Bp:th(q.K).Bp,Mm:th(q.K).Mm,U:q.player,m$:th(q.K).m$,Us:q.K.K.Us,QI:th(q.K).QI,nt:q.K.K.nt});q.W=p.fQ;return q.W}; this.K=new h2S(this.player,this,this.N,this.Y);g.n(this,this.K);var Q=y.T();!EH(Q)||g.Yo(Q)||xo(Q)||(g.n(this,new GZ(y,th(this.K).kf,th(this.K).m$)),g.n(this,new bSS(y)))}; Ohk=function(y){y.created!==y.loaded&&hx("Created and loaded are out of sync")}; FSq=function(y){g.LC.prototype.load.call(y);var q=th(y.K).m$;try{y.player.getRootNode().classList.add("ad-created")}catch(w){hx(w instanceof Error?w:String(w))}var Q=y.player.getVideoData(1),p=Q&&Q.videoId||"",v=Q&&Q.getPlayerResponse()||{},d=(v&&v.adPlacements||[]).map(function(w){return w.adPlacementRenderer}),T=((v==null?void 0:v.adSlots)||[]).map(function(w){return g.U(w,ta)}); v=v.playerConfig&&v.playerConfig.daiConfig&&v.playerConfig.daiConfig.enableDai||!1;Q&&Q.E9();d=wem(d,T,q,th(y.K).Z6);T=Q&&Q.clientPlaybackNonce||"";Q=Q&&Q.n8||!1;if(xp(q,!0)&&Q){var O;q={};(O=y.player.getVideoData())==null||O.Rb("p_cpb",(q.cc=T,q))}O=1E3*y.player.getDuration(1);JmG(y);y.K.K.pT.ZC(T,O,Q,d.d2,d.U_,d.d2,v,p)}; JmG=function(y){var q,Q;if(Q=(q=y.player.getVideoData(1))==null||!q.n8)q=y.player.T(),Q=EH(q)&&!g.tc(q)&&q.playerStyle==="desktop-polymer";Q&&(y=y.player.getInternalApi(),y.addEventListener("updateKevlarOrC3Companion",aGs),y.addEventListener("updateEngagementPanelAction",NU3),y.addEventListener("changeEngagementPanelVisibility",Sfi),window.addEventListener("yt-navigate-start",Rg3))}; Pz=function(y,q){q===y.H7&&(y.H7=void 0)}; Yuc=function(y){var q=th(y.K).y8,Q=q.Y().C_("SLOT_TYPE_PLAYER_BYTES",1);q=Cj(q.Gy.get(),1).clientPlaybackNonce;var p=!1;Q=g.t(Q);for(var v=Q.next();!v.done;v=Q.next()){v=v.value;var d=v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v.slotEntryTrigger instanceof d7?v.slotEntryTrigger.Ph:void 0;d&&d===q&&(p&&hx("More than 1 preroll playerBytes slot detected",v),p=!0)}p||TZ(th(y.K).Ki)}; fCu=function(y){if(XD(th(y.K).m$))return!0;var q="";y=g.t(th(y.K).QI.FT.keys());for(var Q=y.next();!Q.done;Q=y.next()){Q=Q.value;if(Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q.bB==="core")return!0;q+=Q.slotType+" "}Math.random()<.01&&hx("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:q});return!1}; h_G=function(y){y=g.t(th(y.K).QI.FT.values());for(var q=y.next();!q.done;q=y.next())if(q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Gs3=function(y,q,Q,p,v,d,T){Q=Q===void 0?[]:Q;p=p===void 0?"":p;v=v===void 0?"":v;var O=th(y.K).m$,w=y.player.getVideoData(1);w&&w.getPlayerResponse();w&&w.E9();Q=wem(q,Q,O,th(y.K).Z6);CjD(th(y.K).sy,p,Q.d2,Q.U_,q,v,d,T)}; wem=function(y,q,Q,p){q={d2:[],U_:q};y=g.t(y);for(var v=y.next();!v.done;v=y.next())if((v=v.value)&&v.renderer!=null){var d=v.renderer;if(!Q.U.T().L("html5_enable_vod_lasr_with_notify_pacf")){var T=void 0,O=void 0,w=void 0,J=void 0,F=p;g.U((J=d.sandwichedLinearAdRenderer)==null?void 0:J.adVideoStart,yv)?(T=g.U((w=d.sandwichedLinearAdRenderer)==null?void 0:w.adVideoStart,yv),T=hC8(T,F),g.gy(d.sandwichedLinearAdRenderer.adVideoStart,yv,T)):g.U((O=d.linearAdSequenceRenderer)==null?void 0:O.adStart,yv)&& (w=g.U((T=d.linearAdSequenceRenderer)==null?void 0:T.adStart,yv),T=hC8(w,F),g.gy(d.linearAdSequenceRenderer.adStart,yv,T))}q.d2.push(v)}return q}; g.iJ=function(y){if(typeof DOMParser!="undefined")return Sk(new DOMParser,nvD(y),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.XL=function(y){g.I.call(this);this.callback=y;this.K=new a4(0,0,.4,0,.2,1,1,1);this.delay=new g.CX(this.next,window,this);g.n(this,this.delay)}; g.bhC=function(y){var q=y.T();return q.EW&&!q.N&&g.d1(q)?y.isEmbedsShortsMode()?(y=y.eA(),Math.min(y.width,y.height)>=315):!y.qm():!1}; g.mY=function(y){g.r.call(this,{S:"div",V:"ytp-more-videos-view",B:{tabIndex:"-1"}});var q=this;this.api=y;this.W=!0;this.N=new g.sU(this);this.K=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.Y=this.scrollPosition=0;this.title=new g.r({S:"h2",V:"ytp-related-title",M$:"{{title}}"});this.previous=new g.r({S:"button",rp:["ytp-button","ytp-previous"],B:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},D:[g.xe()]});this.G=new g.XL(function(Q){q.suggestions.element.scrollLeft= -Q}); this.next=new g.r({S:"button",rp:["ytp-button","ytp-next"],B:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},D:[g.WN()]});g.n(this,this.N);this.J=y.T().Y;g.n(this,this.title);this.title.ym(this.element);this.suggestions=new g.r({S:"div",V:"ytp-suggestions"});g.n(this,this.suggestions);this.suggestions.ym(this.element);g.n(this,this.previous);this.previous.ym(this.element);this.previous.listen("click",this.cf,this);g.n(this,this.G);$w_(this);g.n(this,this.next);this.next.ym(this.element);this.next.listen("click", this.Wf,this);this.N.Z(this.api,"appresize",this.n3);this.N.Z(this.api,"fullscreentoggled",this.VO);this.N.Z(this.api,"videodatachange",this.onVideoDataChange);this.n3(this.api.lB().getPlayerSize());this.onVideoDataChange()}; $w_=function(y){for(var q={Ri:0};q.Ri<16;q={Ri:q.Ri},++q.Ri){var Q=new g.r({S:"a",V:"ytp-suggestion-link",B:{href:"{{link}}",target:y.api.T().j,"aria-label":"{{aria_label}}"},D:[{S:"div",V:"ytp-suggestion-image"},{S:"div",V:"ytp-suggestion-overlay",B:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},D:[{S:"div",V:"ytp-suggestion-title",M$:"{{title}}"},{S:"div",V:"ytp-suggestion-author",M$:"{{author_and_views}}"},{S:"div",B:{"data-is-live":"{{is_live}}"},V:"ytp-suggestion-duration", M$:"{{duration}}"}]}]});g.n(y,Q);var p=Q.uB("ytp-suggestion-link");g.B0(p,"transitionDelay",q.Ri/20+"s");y.N.Z(p,"click",function(v){return function(d){var T=v.Ri;if(y.W){var O=y.suggestionData[T],w=O.sessionData;y.J&&y.api.L("web_player_log_click_before_generating_ve_conversion_params")?(y.api.logClick(y.K[T].element),T=O.pV(),O={},g.qZ(y.api,O),T=g.kb(T,O),g.RV(T,y.api,d)):g.Hy(d,y.api,y.J,w||void 0)&&y.api.HA(O.videoId,w,O.playlistId)}else d.preventDefault(),document.activeElement.blur()}}(q)); Q.ym(y.suggestions.element);y.K.push(Q);y.api.createServerVe(Q.element,Q)}}; KSC=function(y){if(y.api.T().L("web_player_log_click_before_generating_ve_conversion_params"))for(var q=Math.floor(-y.scrollPosition/(y.Y+8)),Q=Math.min(q+y.columns,y.suggestionData.length)-1;q<=Q;q++)y.api.logVisibility(y.K[q].element,!0)}; g.CH=function(y){var q=y.api.JR()?32:16;q=y.X/2+q;y.next.element.style.bottom=q+"px";y.previous.element.style.bottom=q+"px";q=y.scrollPosition;var Q=y.containerWidth-y.suggestionData.length*(y.Y+8);g.fU(y.element,"ytp-scroll-min",q>=0);g.fU(y.element,"ytp-scroll-max",q<=Q)}; WSn=function(y){for(var q=y.suggestionData.length,Q=0;Q>>0)+"_",v=0;return q}); F9("Symbol.iterator",function(y){if(y)return y;y=Symbol("Symbol.iterator");for(var q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Q=0;Q0&&Q>0;)if(p[--Q]!=q[--v])return!1;return v<=0}}); F9("Array.prototype.find",function(y){return y?y:function(q,Q){return Fbf(this,q,Q).iy}}); F9("Array.prototype.entries",function(y){return y?y:function(){return rg(this,function(q,Q){return[q,Q]})}}); F9("Array.prototype.keys",function(y){return y?y:function(){return rg(this,function(q){return q})}}); F9("String.prototype.startsWith",function(y){return y?y:function(q,Q){var p=UC(this,q,"startsWith");q+="";var v=p.length,d=q.length;Q=Math.max(0,Math.min(Q|0,p.length));for(var T=0;T=d}}); F9("Number.isFinite",function(y){return y?y:function(q){return typeof q!=="number"?!1:!isNaN(q)&&q!==Infinity&&q!==-Infinity}}); F9("String.prototype.repeat",function(y){return y?y:function(q){var Q=UC(this,null,"repeat");if(q<0||q>1342177279)throw new RangeError("Invalid count value");q|=0;for(var p="";q;)if(q&1&&(p+=Q),q>>>=1)Q+=Q;return p}}); F9("Object.entries",function(y){return y?y:function(q){var Q=[],p;for(p in q)$D(q,p)&&Q.push([p,q[p]]);return Q}}); F9("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); F9("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); F9("Array.from",function(y){return y?y:function(q,Q,p){Q=Q!=null?Q:function(O){return O}; var v=[],d=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(typeof d=="function"){q=d.call(q);for(var T=0;!(d=q.next()).done;)v.push(Q.call(p,d.value,T++))}else for(d=q.length,T=0;T>>0;if(q===0)return 32;var Q=0;(q&4294901760)===0&&(q<<=16,Q+=16);(q&4278190080)===0&&(q<<=8,Q+=8);(q&4026531840)===0&&(q<<=4,Q+=4);(q&3221225472)===0&&(q<<=2,Q+=2);(q&2147483648)===0&&Q++;return Q}}); F9("Number.isNaN",function(y){return y?y:function(q){return typeof q==="number"&&isNaN(q)}}); F9("Array.prototype.values",function(y){return y?y:function(){return rg(this,function(q,Q){return Q})}}); F9("Array.prototype.fill",function(y){return y?y:function(q,Q,p){var v=this.length||0;Q<0&&(Q=Math.max(0,v+Q));if(p==null||p>v)p=v;p=Number(p);p<0&&(p=Math.max(0,v+p));for(Q=Number(Q||0);Q0&&Q?Q.repeat(Math.ceil(q/Q.length)).substring(0,q):"")+p}}); F9("Array.prototype.findIndex",function(y){return y?y:function(q,Q){return Fbf(this,q,Q).Ku}}); F9("Promise.prototype.finally",function(y){return y?y:function(q){return this.then(function(Q){return Promise.resolve(q()).then(function(){return Q})},function(Q){return Promise.resolve(q()).then(function(){throw Q; })})}}); F9("Math.imul",function(y){return y?y:function(q,Q){q=Number(q);Q=Number(Q);var p=q&65535,v=Q&65535;return p*v+((q>>>16&65535)*v+p*(Q>>>16&65535)<<16>>>0)|0}}); F9("Math.sign",function(y){return y?y:function(q){q=Number(q);return q===0||isNaN(q)?q:q>0?1:-1}}); F9("WeakSet",function(y){function q(Q){this.K=new WeakMap;if(Q){Q=g.t(Q);for(var p;!(p=Q.next()).done;)this.add(p.value)}} if(function(){if(!y||!Object.seal)return!1;try{var Q=Object.seal({}),p=Object.seal({}),v=new y([Q]);if(!v.has(Q)||v.has(p))return!1;v.delete(Q);v.add(p);return!v.has(Q)&&v.has(p)}catch(d){return!1}}())return y; q.prototype.add=function(Q){this.K.set(Q,!0);return this}; q.prototype.has=function(Q){return this.K.has(Q)}; q.prototype.delete=function(Q){return this.K.delete(Q)}; return q}); F9("Array.prototype.copyWithin",function(y){function q(Q){Q=Number(Q);return Q===Infinity||Q===-Infinity?Q:Q|0} return y?y:function(Q,p,v){var d=this.length;Q=q(Q);p=q(p);v=v===void 0?d:q(v);Q=Q<0?Math.max(d+Q,0):Math.min(Q,d);p=p<0?Math.max(d+p,0):Math.min(p,d);v=v<0?Math.max(d+v,0):Math.min(v,d);if(Qp;)--v in this?this[--Q]=this[v]:delete this[--Q];return this}}); F9("Int8Array.prototype.copyWithin",e3);F9("Uint8Array.prototype.copyWithin",e3);F9("Uint8ClampedArray.prototype.copyWithin",e3);F9("Int16Array.prototype.copyWithin",e3);F9("Uint16Array.prototype.copyWithin",e3);F9("Int32Array.prototype.copyWithin",e3);F9("Uint32Array.prototype.copyWithin",e3);F9("Float32Array.prototype.copyWithin",e3);F9("Float64Array.prototype.copyWithin",e3);F9("Array.prototype.at",function(y){return y?y:Bp}); F9("Int8Array.prototype.at",i8);F9("Uint8Array.prototype.at",i8);F9("Uint8ClampedArray.prototype.at",i8);F9("Int16Array.prototype.at",i8);F9("Uint16Array.prototype.at",i8);F9("Int32Array.prototype.at",i8);F9("Uint32Array.prototype.at",i8);F9("Float32Array.prototype.at",i8);F9("Float64Array.prototype.at",i8);F9("String.prototype.at",function(y){return y?y:Bp}); F9("Array.prototype.findLastIndex",function(y){return y?y:function(q,Q){return YCC(this,q,Q).Ku}}); F9("Int8Array.prototype.findLastIndex",X9);F9("Uint8Array.prototype.findLastIndex",X9);F9("Uint8ClampedArray.prototype.findLastIndex",X9);F9("Int16Array.prototype.findLastIndex",X9);F9("Uint16Array.prototype.findLastIndex",X9);F9("Int32Array.prototype.findLastIndex",X9);F9("Uint32Array.prototype.findLastIndex",X9);F9("Float32Array.prototype.findLastIndex",X9);F9("Float64Array.prototype.findLastIndex",X9);F9("Number.parseInt",function(y){return y||parseInt});var mf,TX,fsC;mf=mf||{};g.CS=this||self;TX="closure_uid_"+(Math.random()*1E9>>>0);fsC=0;g.bG($q,Error);$q.prototype.name="CustomError";var R_2;var ZSf,tl,XH;ZSf=Array.prototype.indexOf?function(y,q){return Array.prototype.indexOf.call(y,q,void 0)}:function(y,q){if(typeof y==="string")return typeof q!=="string"||q.length!=1?-1:y.indexOf(q,0); for(var Q=0;Q=0;Q--)if(Q in y&&y[Q]===q)return Q;return-1}; g.mS=Array.prototype.forEach?function(y,q,Q){Array.prototype.forEach.call(y,q,Q)}:function(y,q,Q){for(var p=y.length,v=typeof y==="string"?y.split(""):y,d=0;d=.3:this.Xf>=.5};var so={HVB:0,LYf:1},EnD={NONE:0,wxI:1,h4m:2};var D9C="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Z0.prototype.getValue=function(){return this.W}; g.x(tn,Z0);tn.prototype.N=function(y){this.W===null&&g.YG(this.Y,y)&&(this.W=y)}; g.x(Eo,Z0);Eo.prototype.N=function(y){this.W===null&&typeof y==="number"&&(this.W=y)}; g.x(kG,Z0);kG.prototype.N=function(y){this.W===null&&typeof y==="string"&&(this.W=y)};LM.prototype.disable=function(){this.W=!1}; LM.prototype.enable=function(){this.W=!0}; LM.prototype.isEnabled=function(){return this.W}; LM.prototype.reset=function(){this.K={};this.W=!0;this.N={}};var CW=document,ln=window;var SuG=Q_(1,!0),Uo=Q_(610401301,!1);Q_(899588437,!1);var Hhu=Q_(772657768,!1),R__=Q_(513659523,!1),snn=Q_(568333945,!0),O7s=Q_(1331761403,!1);Q_(651175828,!1);Q_(722764542,!1);Q_(748402145,!1);Q_(748402146,!1);var $RH=Q_(748402147,SuG);Q_(333098724,!1);Q_(2147483644,!1);Q_(2147483645,!1);Q_(2147483646,SuG);Q_(2147483647,!0);var rO=!!g.qw("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var IU=String.prototype.trim?function(y){return y.trim()}:function(y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(y)[1]},dwS=/&/g,TkC=//g,Ohg=/"/g,we3=/'/g,Jm8=/\x00/g,vqS=/[\x00&<>"']/;var oU,Mmn=g.CS.navigator;oU=Mmn?Mmn.userAgentData||null:null;var Gf3=globalThis.trustedTypes,ys;jk.prototype.toString=function(){return this.K+""};dV.prototype.toString=function(){return this.K}; var Xp9=new dV("about:invalid#zClosurez");var Zag=Oj("tel"),xyj=Oj("sms"),iSH=[Oj("data"),Oj("http"),Oj("https"),Oj("mailto"),Oj("ftp"),new Vs(function(y){return/^[^:]*([/?#]|$)/.test(y)})],m98=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;fI.prototype.toString=function(){return this.K+""};xZ.prototype.toString=function(){return this.K+""};kZ.prototype.toString=function(){return this.K};var a2={};g.lCm=String.prototype.repeat?function(y,q){return y.repeat(q)}:function(y,q){return Array(q+1).join(y)};cQ[" "]=function(){};var G7,kc,avp,z_h,Dwm,ucn,jj,QK,ICc;g.pn=PK();g.KU=U9b();g.iv=BK("Edge");g.Mj=g.iv||g.KU;G7=BK("Gecko")&&!(uo(g.cK(),"WebKit")&&!BK("Edge"))&&!(BK("Trident")||BK("MSIE"))&&!BK("Edge");g.FU=uo(g.cK(),"WebKit")&&!BK("Edge");kc=gV();avp=$wi();g.QB=bhs();z_h=I2();Dwm=BK("iPad");ucn=BK("iPod");jj=nI();QK=uo(g.cK(),"KaiOS"); a:{var nq_="",gqe=function(){var y=g.cK();if(G7)return/rv:([^\);]+)(\)|;)/.exec(y);if(g.iv)return/Edge\/([\d\.]+)/.exec(y);if(g.KU)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(y);if(g.FU)return/WebKit\/(\S+)/.exec(y);if(g.pn)return/(?:Version)[ \/]?(\S+)/.exec(y)}(); gqe&&(nq_=gqe?gqe[1]:"");if(g.KU){var yG,cmX=g.CS.document;yG=cmX?cmX.documentMode:void 0;if(yG!=null&&yG>parseFloat(nq_)){ICc=String(yG);break a}}ICc=nq_}var ZhS=ICc,xwD={};var yB,qx;g.bU=io();yB=I2()||BK("iPod");qx=BK("iPad");g.vr=oDf();g.NL=X2();g.W9=CM()&&!nI();var RlH=!g.KU&&!CM();g.K=g.ek.prototype;g.K.clone=function(){return new g.ek(this.x,this.y)}; g.K.equals=function(y){return y instanceof g.ek&&BQ(this,y)}; g.K.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.K.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.K.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.K.scale=function(y,q){this.x*=y;this.y*=typeof q==="number"?q:y;return this};g.K=g.Gq.prototype;g.K.clone=function(){return new g.Gq(this.width,this.height)}; g.K.aspectRatio=function(){return this.width/this.height}; g.K.isEmpty=function(){return!il(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(y,q){this.width*=y;this.height*=typeof q==="number"?q:y;return this};mX.prototype.toString=function(){return this.K}; var XB={};new mX(XB,"");var kXp=/^[a-z][a-z\d-]*$/i,LSs="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Nkb="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),HhC=["action","formaction","href"];var snj={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=QH.prototype;g.K.aH=function(y){return d0(this.K,y)}; g.K.getElementsByTagName=function(y,q){return(q||this.K).getElementsByTagName(String(y))}; g.K.uB=function(y){return g.w0(y,this.K)}; g.K.setProperties=JY;g.K.createElement=function(y){return fi(this.K,y)}; g.K.appendChild=g.Ki;g.K.append=function(y,q){Dw3(pi(y),y,arguments,1)}; g.K.canHaveChildren=function(y){if(y.nodeType!=1)return!1;switch(y.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.Z5;g.K.getChildren=function(y){return y.children!=void 0?y.children:Array.prototype.filter.call(y.childNodes,function(q){return q.nodeType==1})}; g.K.contains=g.Li;g.K.isFocusable=Nd;Rl.prototype.now=function(){return 0}; Rl.prototype.W=function(){return 0}; Rl.prototype.N=function(){return 0}; Rl.prototype.K=function(){return 0};g.x(Md,Rl);Md.prototype.now=function(){return sQ()&&ln.performance.now?ln.performance.now():Rl.prototype.now.call(this)}; Md.prototype.W=function(){return sQ()&&ln.performance.memory?ln.performance.memory.totalJSHeapSize||0:Rl.prototype.W.call(this)}; Md.prototype.N=function(){return sQ()&&ln.performance.memory?ln.performance.memory.usedJSHeapSize||0:Rl.prototype.N.call(this)}; Md.prototype.K=function(){return sQ()&&ln.performance.memory?ln.performance.memory.jsHeapSizeLimit||0:Rl.prototype.K.call(this)};var LDp=function(){if(!g.CS.addEventListener||!Object.defineProperty)return!1;var y=!1,q=Object.defineProperty({},"passive",{get:function(){y=!0}}); try{var Q=function(){}; g.CS.addEventListener("test",Q,q);g.CS.removeEventListener("test",Q,q)}catch(p){}return y}();var chH=nq2("AnimationEnd"),nq=nq2("TransitionEnd");g.K=g0.prototype;g.K.getHeight=function(){return this.bottom-this.top}; g.K.clone=function(){return new g0(this.top,this.right,this.bottom,this.left)}; g.K.contains=function(y){return this&&y?y instanceof g0?y.left>=this.left&&y.right<=this.right&&y.top>=this.top&&y.bottom<=this.bottom:y.x>=this.left&&y.x<=this.right&&y.y>=this.top&&y.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(y,q){q=typeof q==="number"?q:y;this.left*=y;this.right*=y;this.top*=q;this.bottom*=q;return this};g.K=g.ol.prototype;g.K.clone=function(){return new g.ol(this.left,this.top,this.width,this.height)}; g.K.contains=function(y){return y instanceof g.ek?y.x>=this.left&&y.x<=this.left+this.width&&y.y>=this.top&&y.y<=this.top+this.height:this.left<=y.left&&this.left+this.width>=y.left+y.width&&this.top<=y.top&&this.top+this.height>=y.top+y.height}; g.K.getSize=function(){return new g.Gq(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(y,q){q=typeof q==="number"?q:y;this.left*=y;this.width*=y;this.top*=q;this.height*=q;return this};var cmf={};var BkC=un(function(){var y=!1;try{var q=Object.defineProperty({},"passive",{get:function(){y=!0}}); g.CS.addEventListener("test",null,q)}catch(Q){}return y});GX3.prototype.isVisible=function(){return Jl(CW)===1};var CGf=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");bX.prototype.i6=function(y,q,Q){y=y+"//"+q+Q;var p=QUp(this)-Q.length;if(p<0)return"";this.K.sort(function(J,F){return J-F}); Q=null;q="";for(var v=0;v=w.length){p-=w.length;y+=w;q=this.N;break}Q=Q==null?d:Q}}p="";Q!=null&&(p=""+q+"trn="+Q);return y+p};var rnC=E2(function(y){return typeof y==="number"}),j7=E2(function(y){return typeof y==="string"}),oGC=E2(function(y){return typeof y==="boolean"}),B$=E2(function(y){return y!=null&&typeof y==="object"&&typeof y.then==="function"}),UwX=E2(function(y){return!!y&&(typeof y==="object"||typeof y==="function")});var TOC={rdp:"allow-forms",sWy:"allow-modals",vvK:"allow-orientation-lock",QWK:"allow-pointer-lock",UpI:"allow-popups",Evb:"allow-popups-to-escape-sandbox",i1K:"allow-presentation",LaB:"allow-same-origin",GLK:"allow-scripts",p_p:"allow-top-navigation",VPj:"allow-top-navigation-by-user-activation"},Jnb=un(function(){return OMi()});Lv.prototype.setInterval=function(y,q){return ln.setInterval(y,q)}; Lv.prototype.clearInterval=function(y){ln.clearInterval(y)}; Lv.prototype.setTimeout=function(y,q){return ln.setTimeout(y,q)}; Lv.prototype.clearTimeout=function(y){ln.clearTimeout(y)};var bZ=void 0,hL,IdD=typeof TextDecoder!=="undefined",WnC,xOH=typeof String.prototype.isWellFormed==="function",KnS=typeof TextEncoder!=="undefined";var Ln9={},lX=null,a0C=G7||g.FU||typeof g.CS.btoa=="function";var u2p=typeof Uint8Array!=="undefined",sUb=!g.KU&&typeof btoa==="function",MLf=/[-_.]/g,HMS={"-":"+",_:"/",".":"="},Dn={};zK.prototype.isEmpty=function(){return this.K==null}; zK.prototype.sizeBytes=function(){var y=Iq(this);return y?y.length:0}; var DO9;var I03=void 0;var rM=typeof Symbol==="function"&&typeof Symbol()==="symbol",rm_=U2("jas",void 0,!0),LA=U2(void 0,"1oa"),uO=U2(void 0,Symbol()),oqC=U2(void 0,"0ub"),OIi=U2(void 0,"0ubs"),Oi8=U2(void 0,"0ubsb"),xRb=U2(void 0,"0actk"),lO=U2("m_m","SFw",!0),FXD=U2(void 0,"vps"),Amh=U2();Math.max.apply(Math,g.hH(Object.values({bXK:1,hRm:2,ZXV:4,GBy:8,t4K:16,r0f:32,Bip:64,doy:128,xo3:256,uhV:512,ZFK:1024,n9s:2048,sLy:4096})));var gGg={jU:{value:0,configurable:!0,writable:!0,enumerable:!1}},nGb=Object.defineProperties,oq=rM?rm_:"jU",T6,e_u=[];eo(e_u,7);T6=Object.freeze(e_u);var zE={},GK={},ads=Object.freeze({}),KQ={},Cv={};var Qt=typeof g.CS.BigInt==="function"&&typeof g.CS.BigInt(0)==="bigint";var Ai=E2(function(y){return Qt?y>=Bku&&y<=GXm:y[0]==="-"?Ani(y,PGG):Ani(y,ihn)}),PGG=Number.MIN_SAFE_INTEGER.toString(),Bku=Qt?BigInt(Number.MIN_SAFE_INTEGER):void 0,ihn=Number.MAX_SAFE_INTEGER.toString(),GXm=Qt?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Mk2=typeof Uint8Array.prototype.slice==="function",vk=0,du=0,w0f;var k4=typeof BigInt==="function"?BigInt.asIntN:void 0,Q2H=typeof BigInt==="function"?BigInt.asUintN:void 0,Hk=Number.isSafeInteger,bO=Number.isFinite,S7=Math.trunc,iM8=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Yjp={};var Xe_={F0K:!0};var ru;var fdf,h68;var HIb=px(0),IM={};e5.prototype.init=function(y,q,Q,p){var v=p===void 0?{}:p;p=v.Yp===void 0?!1:v.Yp;v=v.uy===void 0?!1:v.uy;this.Yp=p;this.uy=v;y&&(y=AO(y,this.uy),this.W=y.buffer,this.J=y.K,this.Y=q||0,this.N=Q!==void 0?this.Y+Q:this.W.length,this.K=this.Y)}; e5.prototype.free=function(){this.clear();wR.length<100&&wR.push(this)}; e5.prototype.clear=function(){this.W=null;this.J=!1;this.K=this.N=this.Y=0;this.Yp=!1}; e5.prototype.reset=function(){this.K=this.Y}; var wR=[];JL.prototype.free=function(){this.K.clear();this.W=this.N=-1;F3.length<100&&F3.push(this)}; JL.prototype.reset=function(){this.K.reset();this.Y=this.K.K;this.W=this.N=-1}; var F3=[];var cK2,rKg;Zb.prototype.length=function(){return this.K.length}; Zb.prototype.end=function(){var y=this.K;this.K=[];return y};var R5=Sa(),mwk=Sa(),CGX=Sa(),ynk=Sa(),qoq=Sa(),jUm=Sa(),QUe=Sa(),pKk=Sa(),vGm=Sa(),dO_=Sa(),TOu=Sa();Ho.prototype.toJSON=function(){return Bk(this)}; Ho.prototype.W3=function(y){return JSON.stringify(Bk(this,y))}; Ho.prototype.clone=function(){var y=this.Ib,q=y[oq]|0;return Xv(this,y,q)?mm(this,y,!0):new this.constructor(iO(y,q,!1))}; Ho.prototype[lO]=zE;Ho.prototype.toString=function(){return this.Ib.toString()};var Cls=ME(function(y,q,Q,p,v){if(y.W!==2)return!1;fQ(y,aM(q,p,Q),v);return!0},mRg),yYs=ME(function(y,q,Q,p,v){if(y.W!==2)return!1; fQ(y,aM(q,p,Q),v);return!0},mRg),iZ=Symbol(),I5=Symbol(),GR=Symbol(),ddb=Symbol(),QlC=Symbol(),lZ,zR;var VL_=yr(function(y,q,Q){if(y.W!==1)return!1;jr(q,Q,m6(y.K));return!0},Qr,vGm),OM_=yr(function(y,q,Q){if(y.W!==1)return!1; y=m6(y.K);jr(q,Q,y===0?void 0:y);return!0},Qr,vGm),wK_=yr(function(y,q,Q,p){if(y.W!==1)return!1; x$(q,Q,p,m6(y.K));return!0},Qr,vGm),JnS=yr(function(y,q,Q){if(y.W!==0)return!1; jr(q,Q,G6(y.K));return!0},pW,QUe),Fne=yr(function(y,q,Q){if(y.W!==0)return!1; y=G6(y.K);jr(q,Q,y===0?void 0:y);return!0},pW,QUe),Yon=yr(function(y,q,Q,p){if(y.W!==0)return!1; x$(q,Q,p,G6(y.K));return!0},pW,QUe),f0_=yr(function(y,q,Q){if(y.W!==0)return!1; jr(q,Q,Pv(y.K));return!0},vG,ynk),hJh=yr(function(y,q,Q){if(y.W!==0)return!1; y=Pv(y.K);jr(q,Q,y===0?void 0:y);return!0},vG,ynk),bMk=yr(function(y,q,Q,p){if(y.W!==0)return!1; x$(q,Q,p,Pv(y.K));return!0},vG,ynk),$Oe=yr(function(y,q,Q){if(y.W!==1)return!1; jr(q,Q,Xk(y.K));return!0},function(y,q,Q){Plf(y,Q,pQi(q))},pKk),Knh=q1(function(y,q,Q){if(y.W!==1&&y.W!==2)return!1; q=fA(q,q[oq]|0,Q);if(y.W==2)for(Q=Pv(y.K)>>>0,Q=y.K.K+Q;y.K.K>>0);return!0},function(y,q,Q){q=ti(q); q!=null&&q!=null&&(a5(y,Q,0),ES(y.K,q))},qoq),d9=yr(function(y,q,Q){if(y.W!==0)return!1; jr(q,Q,Pv(y.K));return!0},function(y,q,Q){q=Z8(q); q!=null&&(q=parseInt(q,10),a5(y,Q,0),AKg(y.K,q))},TOu);var f58=new Map;g.x(hxC,gZg);$dD.prototype.register=function(){cQ(this)};g.x(Vr,Ho);Vr.prototype.N=xd9([0,OM_,Fne,-2,hJh]);t_9.prototype.Zm=function(y){var q=this.K[y.key];if(y.valueType==="proto"){try{var Q=JSON.parse(q);if(Array.isArray(Q))return Q}catch(p){}return y.defaultValue}return typeof q===typeof y.defaultValue?q:y.defaultValue};var k7g={C7K:1,QE:2,ucb:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};a5g.prototype.DD=function(y){if(typeof y==="string"&&y.length!=0){var q=this.JU;if(q.W){y=y.split("&");for(var Q=y.length-1;Q>=0;Q--){var p=y[Q].split("="),v=decodeURIComponent(p[0]);p.length>1?(p=decodeURIComponent(p[1]),p=/^[0-9]+$/g.exec(p)?parseInt(p,10):p):p=1;(v=q.K[v])&&v.N(p)}}}};var T8=null;var fW=g.CS.performance,a0u=!!(fW&&fW.mark&&fW.measure&&fW.clearMarks),FH=un(function(){var y;if(y=a0u){var q=q===void 0?window:q;if(T8===null){T8="";try{y="";try{y=q.top.location.hash}catch(p){y=q.location.hash}if(y){var Q=y.match(/\bdeid=([\d,]+)/);T8=Q?Q[1]:""}}catch(p){}}q=T8;y=!!q.indexOf&&q.indexOf("1337")>=0}return y}); Yb.prototype.disable=function(){this.K=!1;this.events!==this.W.google_js_reporting_queue&&(FH()&&g.mS(this.events,M_C),this.events.length=0)}; Yb.prototype.start=function(y,q){if(!this.K)return null;var Q=Rxi()||HiC();y=new slD(y,q,Q);q="goog_"+y.label+"_"+y.uniqueId+"_start";fW&&FH()&&fW.mark(q);return y}; Yb.prototype.end=function(y){if(this.K&&typeof y.value==="number"){var q=Rxi()||HiC();y.duration=q-y.value;q="goog_"+y.label+"_"+y.uniqueId+"_end";fW&&FH()&&fW.mark(q);!this.K||this.events.length>2048||this.events.push(y)}};var l53=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Sr=/#|$/,gnp=/[?&]($|#)/;Udj.prototype.Yz=function(y,q,Q,p,v){v=v||this.TP;try{var d=new bX;d.K.push(1);d.W[1]=$B("context",y);q.error&&q.meta&&q.id||(q=new Du(u_(q)));if(q.msg){var T=q.msg.substring(0,512);d.K.push(2);d.W[2]=$B("msg",T)}var O=q.meta||{};if(this.hI)try{this.hI(O)}catch(h){}if(p)try{p(O)}catch(h){}p=[O];d.K.push(3);d.W[3]=p;var w=qoD();if(w.W){var J=w.W.url||"";d.K.push(4);d.W[4]=$B("top",J)}var F={url:w.K.url||""};if(w.K.url){var Y=g.b_(w.K.url);var f=hR(Y[1],null,Y[3],Y[4])}else f="";J=[F,{url:f}];d.K.push(5); d.W[5]=J;N0b(this.K,v,d,Q)}catch(h){try{N0b(this.K,v,{context:"ecmserr",rctx:y,msg:u_(h),url:w&&w.K.url},Q)}catch(b){}}return this.OR}; g.x(Du,SQ2);var l_,zT,M1=new Yb;l_=new function(){var y="https:";ln&&ln.location&&ln.location.protocol==="http:"&&(y="http:");this.W=y;this.K=.01}; zT=new Udj;ln&&ln.document&&(ln.document.readyState=="complete"?ong():M1.K&&Vh(ln,"load",function(){ong()}));var B0i=Date.now(),oR=-1,Uw=-1,QM3,AR=-1,r4=!1;er.prototype.equals=function(y,q){return!!y&&(!(q===void 0?0:q)||this.volume==y.volume)&&this.N==y.N&&UQ(this.K,y.K)&&!0};BG.prototype.aH=function(){return this.X}; BG.prototype.equals=function(y,q){return this.Y.equals(y.Y,q===void 0?!1:q)&&this.X==y.X&&UQ(this.N,y.N)&&UQ(this.G,y.G)&&this.K==y.K&&this.J==y.J&&this.W==y.W&&this.C==y.C};var NOq={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},yN={e1:"start",BQ:"firstquartile",KI:"midpoint",gy:"thirdquartile",COMPLETE:"complete",ERROR:"error",qg:"metric",PAUSE:"pause",uK:"resume",wy:"skip",v2:"viewable_impression",R$:"mute",Jp:"unmute",kQ:"fullscreen",h$:"exitfullscreen",EH:"bufferstart",UH:"bufferfinish",t$:"fully_viewable_audible_half_duration_impression",jR:"measurable_impression",aj:"abandon",ZS:"engagedview",HQ:"impression",Vi:"creativeview",LOADED:"loaded", jLm:"progress",CLOSE:"close",hFm:"collapse",hT3:"overlay_resize",bL3:"overlay_unmeasurable_impression",BY$:"overlay_unviewable_impression",thK:"overlay_viewable_immediate_impression",kBV:"overlay_viewable_end_of_session_impression",xQ:"custom_metric_viewable",ew:"audio_audible",J$:"audio_measurable",gV:"audio_impression"},fbC="start firstquartile midpoint thirdquartile resume loaded".split(" "),hHb=["start","firstquartile","midpoint","thirdquartile"],v$9=["abandon"],W2={UNKNOWN:-1,e1:0,BQ:1,KI:2, gy:3,COMPLETE:4,qg:5,PAUSE:6,uK:7,wy:8,v2:9,R$:10,Jp:11,kQ:12,h$:13,t$:14,jR:15,aj:16,ZS:17,HQ:18,Vi:19,LOADED:20,xQ:21,EH:22,UH:23,gV:27,J$:28,ew:29};var Pns={mpm:"addEventListener",Bks:"getMaxSize",kgy:"getScreenSize",t03:"getState",HFI:"getVersion",LZy:"removeEventListener",BR$:"isViewable"};jqp.prototype.update=function(y){y&&y.document&&(this.X=GT(!1,y,this.isMobileDevice),this.K=GT(!0,y,this.isMobileDevice),p5C(this,y),Qq2(this,y))};qW.prototype.cancel=function(){aq().clearTimeout(this.K);this.K=null}; qW.prototype.schedule=function(){var y=this,q=aq(),Q=JR().K.K;this.K=q.setTimeout(Ow(Q,nW(143,function(){y.W++;y.N.sample()})),G73())};g.K=jD.prototype;g.K.zU=function(){return!1}; g.K.initialize=function(){return this.isInitialized=!0}; g.K.k7=function(){return this.K.gp}; g.K.KS=function(){return this.K.cI}; g.K.fail=function(y,q){if(!this.cI||(q===void 0?0:q))this.cI=!0,this.gp=y,this.C=0,this.K!=this||pf(this)}; g.K.getName=function(){return this.K.LK}; g.K.S_=function(){return this.K.SM()}; g.K.SM=function(){return{}}; g.K.m_=function(){return this.K.C}; g.K.Fq=function(){var y=mD();y.K=GT(!0,this.N,y.isMobileDevice)}; g.K.Yh=function(){Qq2(mD(),this.N)}; g.K.xG=function(){return this.Y.K}; g.K.sample=function(){}; g.K.isActive=function(){return this.K.G}; g.K.IK=function(y){var q=this.K;this.K=y.m_()>=this.C?y:this;q!==this.K?(this.G=this.K.G,pf(this)):this.G!==this.K.G&&(this.G=this.K.G,pf(this))}; g.K.Gm=function(y){if(y.W===this.K){var q=!this.Y.equals(y,this.j);this.Y=y;q&&TMj(this)}}; g.K.w8=function(){return this.j}; g.K.dispose=function(){this.Sj=!0}; g.K.iB=function(){return this.Sj};g.K=vi.prototype;g.K.observe=function(){return!0}; g.K.unobserve=function(){}; g.K.K8=function(y){this.J=y}; g.K.dispose=function(){if(!this.iB()){var y=this.W;g.Lh(y.J,this);y.j&&this.w8()&&de8(y);this.unobserve();this.m3=!0}}; g.K.iB=function(){return this.m3}; g.K.S_=function(){return this.W.S_()}; g.K.m_=function(){return this.W.m_()}; g.K.k7=function(){return this.W.k7()}; g.K.KS=function(){return this.W.KS()}; g.K.IK=function(){}; g.K.Gm=function(){this.dQ()}; g.K.w8=function(){return this.Sj};g.K=d5.prototype;g.K.m_=function(){return this.K.m_()}; g.K.k7=function(){return this.K.k7()}; g.K.KS=function(){return this.K.KS()}; g.K.create=function(y,q,Q){var p=null;this.K&&(p=this.XJ(y,q,Q),Qf(this.K,p));return p}; g.K.md=function(){return this.TU()}; g.K.TU=function(){return!1}; g.K.init=function(y){return this.K.initialize()?(Qf(this.K,this),this.Y=y,!0):!1}; g.K.IK=function(y){y.m_()==0&&this.Y(y.k7(),this)}; g.K.Gm=function(){}; g.K.w8=function(){return!1}; g.K.dispose=function(){this.J=!0}; g.K.iB=function(){return this.J}; g.K.S_=function(){return{}};TO.prototype.add=function(y,q,Q){++this.N;y=new Ovi(y,q,Q);this.K.push(new Ovi(y.W,y.K,y.N+this.N/4096));this.W=!0;return this};fni.prototype.toString=function(){var y="//pagead2.googlesyndication.com//pagead/gen_204",q=Op(this.K);q.length>0&&(y+="?"+q);return y};g.I.prototype.vG=!1;g.I.prototype.iB=function(){return this.vG}; g.I.prototype.dispose=function(){this.vG||(this.vG=!0,this.FV())}; g.I.prototype[Symbol.dispose]=function(){this.dispose()}; g.I.prototype.addOnDisposeCallback=function(y,q){this.vG?q!==void 0?y.call(q):y():(this.mZ||(this.mZ=[]),q&&(y=y.bind(q)),this.mZ.push(y))}; g.I.prototype.FV=function(){if(this.mZ)for(;this.mZ.length;)this.mZ.shift()()};var SoS=[0,JnS,xOm,-1];Fr.prototype.update=function(y,q,Q){y&&(this.K+=q,this.W+=q,this.Y+=q,this.N=Math.max(this.N,this.Y));if(Q===void 0?!y:Q)this.Y=0};var xeg=[1,.75,.5,.3,0];Y8.prototype.update=function(y,q,Q,p,v,d){d=d===void 0?!0:d;q=v?Math.min(y,q):q;for(v=0;v0&&q>=T;T=!(y>0&&y>=T)||Q;this.K[v].update(d&&O,p,!d||T)}};x8.prototype.update=function(y,q,Q,p){this.X=this.X!=-1?Math.min(this.X,q.Xf):q.Xf;this.N$=Math.max(this.N$,q.Xf);this.m3=this.m3!=-1?Math.min(this.m3,q.tP):q.tP;this.gp=Math.max(this.gp,q.tP);this.Os.update(q.tP,Q.tP,q.K,y,p);this.vI+=y;q.Xf===0&&(this.LK+=y);this.W.update(q.Xf,Q.Xf,q.K,y,p);Q=p||Q.Tk!=q.Tk?Q.isVisible()&&q.isVisible():Q.isVisible();q=!q.isVisible()||q.K;this.HI.update(Q,y,q)}; x8.prototype.G0=function(){return this.HI.N>=this.Dw};if(CW&&CW.URL){var HMh=CW.URL,RJn;a:{if(HMh){var sUS=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var VG=sUS.exec(decodeURIComponent(HMh));if(VG){RJn=VG[1]&&VG[1].length>1?VG[1].substring(1):"true";break a}}catch(y){}}RJn=""}zT.OR=!(RJn.length>0)};var MLX=new g0(0,0,0,0);var S2f=new g0(0,0,0,0);g.x(SD,g.I);g.K=SD.prototype; g.K.FV=function(){if(this.mY.K){if(this.K$.Ut){var y=this.mY.K;typeof y.removeEventListener==="function"&&y.removeEventListener("mouseover",this.K$.Ut,TK());this.K$.Ut=null}this.K$.Q_&&(y=this.mY.K,typeof y.removeEventListener==="function"&&y.removeEventListener("mouseout",this.K$.Q_,TK()),this.K$.Q_=null)}this.B0&&this.B0.dispose();this.vn&&this.vn.dispose();delete this.jC;delete this.mf;delete this.bl;delete this.mY.j_;delete this.mY.K;delete this.K$;delete this.B0;delete this.vn;delete this.JU; g.I.prototype.FV.call(this)}; g.K.gP=function(){return this.vn?this.vn.K:this.position}; g.K.US=function(){return this.vn?this.vn.Y:null}; g.K.DD=function(y){JR().DD(y)}; g.K.w8=function(){return!1}; g.K.Ts=function(){return new x8}; g.K.LV=function(){return this.jC}; g.K.rC=function(y){return Mo2(this,y,1E4)}; g.K.XV=function(y,q,Q,p,v,d,T){this.bk||(this.WV&&(y=this.nj(y,Q,v,T),p=p&&this.Jd.Xf>=(this.Tk()?.3:.5),this.XH(d,y,p),this.nH=q,y.Xf>0&&-1===this.W6&&(this.W6=q),this.Yu==-1&&this.G0()&&(this.Yu=q),this.RT==-2&&(this.RT=tT(this.gP())?y.Xf:-1),this.Jd=y),this.mf(this))}; g.K.XH=function(y,q,Q){this.LV().update(y,q,this.Jd,Q)}; g.K.zO=function(){return new yE}; g.K.nj=function(y,q,Q,p){Q=this.zO();Q.K=q;q=aq().W;q=Jl(CW)===0?-1:q.isVisible()?0:1;Q.W=q;Q.Xf=this.Js(y);Q.Tk=this.Tk();Q.tP=p;return Q}; g.K.Js=function(y){return this.opacity===0&&SL(this.JU,"opac")===1?0:y}; g.K.Tk=function(){return!1}; g.K.qy=function(){return this.MjI||this.m$3}; g.K.gJ=function(){cG()}; g.K.Hk=function(){cG()}; g.K.x0=function(){return 0}; g.K.G0=function(){return this.jC.G0()}; g.K.h_=function(){var y=this.WV;y=(this.hasCompleted||this.iB())&&!y;var q=JR().W!==2||this.yRw;return this.bk||q&&y?2:this.G0()?4:3}; g.K.Gs=function(){return 0};g.Rz.prototype.next=function(){return g.Om}; g.Om={done:!0,value:void 0};g.Rz.prototype.CX=function(){return this};g.x(nBj,yE);var w9=n4S([void 0,1,2,3,4,8,16]),JU=n4S([void 0,4,8,16]),l0c={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:zO("p0",JU),p1:zO("p1",JU),p2:zO("p2",JU),p3:zO("p3",JU),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:lr("mtos1",[0,2,4],!1,JU),mtos2:lr("mtos2",[0,2,4],!1,JU),mtos3:lr("mtos3",[0,2,4],!1,JU),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:zO("a0",JU),a1:zO("a1",JU),a2:zO("a2",JU),a3:zO("a3",JU),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:zO("c0",JU),c1:zO("c1",JU),c2:zO("c2",JU),c3:zO("c3",JU),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:zO("qmtos",w9),qnc:zO("qnc",w9),qmv:zO("qmv",w9),qnv:zO("qnv",w9), 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:zO("ss0",JU),ss1:zO("ss1",JU),ss2:zO("ss2",JU),ss3:zO("ss3",JU),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},zJX=Object.assign({},l0c,{avid:z7("audio"),avas:"avas",vs:"vs"}),DOw={atos:"atos",avt:lr("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(y,q){return function(Q){return Q[y]===void 0&&q!==void 0?q:Q[y]}}("ss",0), t:"t"};nf.prototype.getValue=function(){return this.W}; nf.prototype.update=function(y,q){y>=32||(this.K&1<=.5;i_(q.volume)&&(this.Y=this.Y!=-1?Math.min(this.Y,q.volume):q.volume,this.G=Math.max(this.G,q.volume));d&&(this.Sj+=y,this.j+=v?y:0);this.K.update(q.Xf,Q.Xf,q.K,y,p,v);this.N.update(!0,y);this.J.update(v,y);this.cI.update(Q.fullscreen,y);this.q$.update(v&&!d,y);y=Math.floor(q.mediaTime/1E3);this.Es.update(y,q.isVisible());this.BI.update(y,q.Xf>=1);this.Ty.update(y, MW(q))}};Aig.prototype.W=function(y){this.N||(this.K(y)?(y=j59(this.j,this.Y,y),this.J|=y,y=y==0):y=!1,this.N=y)};g.x(r5,Aig);r5.prototype.K=function(){return!0}; r5.prototype.G=function(){return!1}; r5.prototype.getId=function(){var y=this,q=fM(yN,function(Q){return Q==y.Y}); return W2[q].toString()}; r5.prototype.toString=function(){var y="";this.G()&&(y+="c");this.N&&(y+="s");this.J>0&&(y+=":"+this.J);return this.getId()+y};g.x(oz,r5);oz.prototype.W=function(y,q){q=q===void 0?null:q;q!=null&&this.X.push(q);r5.prototype.W.call(this,y)};g.x(AT,e8C);AT.prototype.W=function(){return null}; AT.prototype.N=function(){return[]};g.x(eD,vi);g.K=eD.prototype;g.K.OZ=function(){if(this.element){var y=this.element,q=this.W.K.N;try{try{var Q=Cn9(y.getBoundingClientRect())}catch(J){Q=new g0(0,0,0,0)}var p=Q.right-Q.left,v=Q.bottom-Q.top,d=oqs(y,q),T=d.x,O=d.y;var w=new g0(Math.round(O),Math.round(T+p),Math.round(O+v),Math.round(T))}catch(J){w=MLX.clone()}this.Y=w;this.K=Vob(this,this.Y)}}; g.K.l8=function(){this.G=this.W.Y.K}; g.K.sJ=function(y){var q=SL(this.JU,"od")==1;return NM3(y,this.G,this.element,q)}; g.K.dF=function(){this.timestamp=cG()}; g.K.dQ=function(){this.dF();this.OZ();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var y=this.element;var q=new g.Gq(y.videoWidth,y.videoHeight);y=this.K;var Q=c0(y),p=y.getHeight(),v=q.width;q=q.height;v<=0||q<=0||Q<=0||p<=0||(v/=q,q=Q/p,y=y.clone(),v>q?(Q/=v,p=(p-Q)/2,p>0&&(p=y.top+p,y.top=Math.round(p),y.bottom=Math.round(p+Q))):(p*=v,Q=Math.round((Q-p)/2),Q>0&&(Q=y.left+Q,y.left=Math.round(Q),y.right=Math.round(Q+p))));this.K=y}this.l8(); y=this.K;Q=this.G;y=y.left<=Q.right&&Q.left<=y.right&&y.top<=Q.bottom&&Q.top<=y.bottom?new g0(Math.max(y.top,Q.top),Math.min(y.right,Q.right),Math.min(y.bottom,Q.bottom),Math.max(y.left,Q.left)):new g0(0,0,0,0);Q=y.top>=y.bottom||y.left>=y.right?new g0(0,0,0,0):y;y=this.W.Y;q=v=p=0;if((this.K.bottom-this.K.top)*(this.K.right-this.K.left)>0)if(this.sJ(Q))Q=new g0(0,0,0,0);else{p=mD().Y;q=new g0(0,p.height,p.width,0);var d;p=NW(Q,(d=this.J)!=null?d:this.K);v=NW(Q,mD().K);q=NW(Q,q)}d=Q.top>=Q.bottom|| Q.left>=Q.right?new g0(0,0,0,0):r0(Q,-this.K.left,-this.K.top);yf()||(v=p=0);this.j=new BG(y,this.element,this.K,d,p,v,this.timestamp,q)}; g.K.getName=function(){return this.W.getName()};var u2e=new g0(0,0,0,0);g.x(Bi,eD);g.K=Bi.prototype;g.K.observe=function(){this.N();return!0}; g.K.Gm=function(){eD.prototype.dQ.call(this)}; g.K.dF=function(){}; g.K.OZ=function(){}; g.K.dQ=function(){this.N();eD.prototype.dQ.call(this)}; g.K.IK=function(y){y=y.isActive();y!==this.C&&(y?this.N():(mD().K=new g0(0,0,0,0),this.K=new g0(0,0,0,0),this.G=new g0(0,0,0,0),this.timestamp=-1));this.C=y};var FR={},jM9=(FR.firstquartile=0,FR.midpoint=1,FR.thirdquartile=2,FR.complete=3,FR);g.x(Pi,SD);g.K=Pi.prototype;g.K.w8=function(){return!0}; g.K.VK=function(){return this.iV==2}; g.K.rC=function(y){return Mo2(this,y,Math.max(1E4,this.N/3))}; g.K.XV=function(y,q,Q,p,v,d,T){var O=this,w=this.X(this)||{};g.WK(w,v);this.N=w.duration||this.N;this.j=w.isVpaid||this.j;this.LK=w.isYouTube||this.LK;aq();this.Os=!1;v=GED(this,q);Bui(this)===1&&(d=v);SD.prototype.XV.call(this,y,q,Q,p,w,d,T);this.xM&&this.xM.N&&g.mS(this.G,function(J){J.W(O)})}; g.K.XH=function(y,q,Q){SD.prototype.XH.call(this,y,q,Q);mZ(this).update(y,q,this.Jd,Q);this.Dw=MW(this.Jd)&&MW(q);this.gp==-1&&this.BI&&(this.gp=this.LV().N.K);this.lF.N=0;y=this.G0();q.isVisible()&&Iz(this.lF,"vs");y&&Iz(this.lF,"vw");i_(q.volume)&&Iz(this.lF,"am");MW(q)?Iz(this.lF,"a"):Iz(this.lF,"mut");this.YC&&Iz(this.lF,"f");q.W!=-1&&(Iz(this.lF,"bm"),q.W==1&&(Iz(this.lF,"b"),MW(q)&&Iz(this.lF,"umutb")));MW(q)&&q.isVisible()&&Iz(this.lF,"avs");this.Dw&&y&&Iz(this.lF,"avw");q.Xf>0&&Iz(this.lF, "pv");Cf(this,this.LV().N.K,!0)&&Iz(this.lF,"gdr");$8(this.LV().W,1)>=2E3&&Iz(this.lF,"pmx");this.Os&&Iz(this.lF,"tvoff")}; g.K.Ts=function(){return new ci}; g.K.LV=function(){return this.jC}; g.K.zO=function(){return new nBj}; g.K.nj=function(y,q,Q,p){y=SD.prototype.nj.call(this,y,q,Q,p===void 0?-1:p);y.fullscreen=this.YC;y.paused=this.VK();y.volume=Q.volume;i_(y.volume)||(this.cB++,q=this.Jd,i_(q.volume)&&(y.volume=q.volume));Q=Q.currentTime;y.mediaTime=Q!==void 0&&Q>=0?Q:-1;return y}; g.K.Js=function(y){return mD(),this.YC?1:SD.prototype.Js.call(this,y)}; g.K.x0=function(){return 1}; g.K.getDuration=function(){return this.N}; g.K.h_=function(){return this.bk?2:ixg(this)?5:this.G0()?4:3}; g.K.Gs=function(){return this.q$?this.LV().J.N>=2E3?4:3:2}; g.K.K8=function(y){this.vn&&this.vn.K8(y)};var I0m=g.fh();Yqi.prototype.reset=function(){this.K=[];this.W=[]}; var v2=kB(Yqi);g.x(VN,d5);g.K=VN.prototype;g.K.getName=function(){return(this.W?this.W:this.K).getName()}; g.K.S_=function(){return(this.W?this.W:this.K).S_()}; g.K.m_=function(){return(this.W?this.W:this.K).m_()}; g.K.init=function(y){var q=!1;(0,g.mS)(this.N,function(Q){Q.initialize()&&(q=!0)}); q&&(this.Y=y,Qf(this.K,this));return q}; g.K.dispose=function(){(0,g.mS)(this.N,function(y){y.dispose()}); d5.prototype.dispose.call(this)}; g.K.md=function(){return XH(this.N,function(y){return y.zU()})}; g.K.TU=function(){return XH(this.N,function(y){return y.zU()})}; g.K.XJ=function(y,q,Q){return new eD(y,this.K,q,Q)}; g.K.Gm=function(y){this.W=y.W};var t59={threshold:[0,.3,.5,.75,1]};g.x(Ol,eD);g.K=Ol.prototype;g.K.observe=function(){var y=this;this.N$||(this.N$=cG());if(ex8(298,function(){return E$2(y)}))return!0; this.W.fail("msf");return!1}; g.K.unobserve=function(){if(this.N&&this.element)try{this.N.unobserve(this.element),this.C?(this.C.unobserve(this.element),this.C=null):this.X&&(this.X.disconnect(),this.X=null)}catch(y){}}; g.K.dQ=function(){var y=wr(this);y.length>0&&Jv(this,y);eD.prototype.dQ.call(this)}; g.K.OZ=function(){}; g.K.sJ=function(){return!1}; g.K.l8=function(){}; g.K.S_=function(){var y={};return Object.assign(this.W.S_(),(y.niot_obs=this.N$,y.niot_cbk=this.cI,y))}; g.K.getName=function(){return"nio"};g.x(Fu,d5);Fu.prototype.getName=function(){return"nio"}; Fu.prototype.TU=function(){return!mD().W&&this.K.K.N.IntersectionObserver!=null}; Fu.prototype.XJ=function(y,q,Q){return new Ol(y,this.K,q,Q)};g.x(YU,jD);YU.prototype.xG=function(){return mD().K}; YU.prototype.zU=function(){var y=L62();this.C!==y&&(this.K!=this&&y>this.K.C&&(this.K=this,pf(this)),this.C=y);return y==2};fY.prototype.sample=function(){$U(this,dr(),!1)}; fY.prototype.Y=function(){var y=yf(),q=cG();y?(r4||(oR=q,g.mS(v2.K,function(Q){var p=Q.LV();p.Vm=Up(p,q,Q.iV!=1)})),r4=!0):(this.X=RG3(this,q),r4=!1,QM3=q,g.mS(v2.K,function(Q){Q.WV&&(Q.LV().C=q)})); $U(this,dr(),!y)}; var hv=kB(fY);var M59=null,oK="",rr=!1;var DHS=zGp().S4,xU=zGp().gD;var n$2={GgK:"visible",jW3:"audible",eE$:"time",g0V:"timetype"},g$b={visible:function(y){return/^(100|[0-9]{1,2})$/.test(y)}, audible:function(y){return y=="0"||y=="1"}, timetype:function(y){return y=="mtos"||y=="tos"}, time:function(y){return/^(100|[0-9]{1,2})%$/.test(y)||/^([0-9])+ms$/.test(y)}}; Iof.prototype.setTime=function(y,q,Q){q=="ms"?(this.N=y,this.Y=-1):(this.N=-1,this.Y=y);this.J=Q===void 0?"tos":Q;return this};g.x(El,r5);El.prototype.getId=function(){return this.X}; El.prototype.G=function(){return!0}; El.prototype.K=function(y){var q=y.LV(),Q=y.getDuration();return XH(this.C,function(p){if(p.K!=void 0)var v=UH2(p,q);else b:{switch(p.J){case "mtos":v=p.W?q.J.N:q.N.K;break b;case "tos":v=p.W?q.J.K:q.N.K;break b}v=0}v==0?p=!1:(p=p.N!=-1?p.N:Q!==void 0&&Q>0?p.Y*Q:-1,p=p!=-1&&v>=p);return p})};g.x(kU,ci3);kU.prototype.K=function(y){var q=new g4i;q.K=ur(y,l0c);q.W=ur(y,DOw);return q};g.x(LY,r5);LY.prototype.K=function(y){return ixg(y)};g.x(aK,e8C);g.x(Na,r5);Na.prototype.K=function(y){return y.LV().G0()};g.x(SJ,oz);SJ.prototype.K=function(y){var q=g.Eu(this.X,SL(JR().JU,"ovms"));return!y.bk&&(y.iV!=0||q)};g.x(H2,aK);H2.prototype.W=function(){return new SJ(this.K)}; H2.prototype.N=function(){return[new Na("viewable_impression",this.K),new LY(this.K)]};g.x(RK,Bi);RK.prototype.N=function(){var y=g.qw("ima.admob.getViewability"),q=SL(this.JU,"queryid");typeof y==="function"&&q&&y(q)}; RK.prototype.getName=function(){return"gsv"};g.x(sl,d5);sl.prototype.getName=function(){return"gsv"}; sl.prototype.TU=function(){var y=mD();JR();return y.W&&!1}; sl.prototype.XJ=function(y,q,Q){return new RK(this.K,q,Q)};g.x(Ma,Bi);Ma.prototype.N=function(){var y=this,q=g.qw("ima.bridge.getNativeViewability"),Q=SL(this.JU,"queryid");typeof q==="function"&&Q&&q(Q,function(p){g.hn(p)&&y.X++;var v=p.opt_nativeViewVisibleBounds||{},d=p.opt_nativeViewHidden;y.K=ylH(p.opt_nativeViewBounds||{});var T=y.W.Y;T.K=d?u2e.clone():ylH(v);y.timestamp=p.opt_nativeTime||-1;mD().K=T.K;p=p.opt_nativeVolume;p!==void 0&&(T.volume=p)})}; Ma.prototype.getName=function(){return"nis"};g.x(lm,d5);lm.prototype.getName=function(){return"nis"}; lm.prototype.TU=function(){var y=mD();JR();return y.W&&!1}; lm.prototype.XJ=function(y,q,Q){return new Ma(this.K,q,Q)};g.x(zy,jD);g.K=zy.prototype;g.K.zU=function(){return this.W.h7!=null}; g.K.SM=function(){var y={};this.Es&&(y.mraid=this.Es);this.m3&&(y.mlc=1);y.mtop=this.W.TKs;this.X&&(y.mse=this.X);this.vI&&(y.msc=1);y.mcp=this.W.compatibility;return y}; g.K.b5=function(y){var q=g.nS.apply(1,arguments);try{return this.W.h7[y].apply(this.W.h7,q)}catch(Q){g4(538,Q,.01,function(p){p.method=y})}}; g.K.initialize=function(){var y=this;if(this.isInitialized)return!this.KS();this.isInitialized=!0;if(this.W.compatibility===2)return this.X="ng",this.fail("w"),!1;if(this.W.compatibility===1)return this.X="mm",this.fail("w"),!1;mD().C=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?eG8(this):ZQ(this.N,"load",function(){aq().setTimeout(nW(292,function(){return eG8(y)}),100)},292); return!0}; g.K.Fq=function(){var y=mD(),q=Xv2(this,"getMaxSize");y.K=new g0(0,q.width,q.height,0)}; g.K.Yh=function(){mD().Y=Xv2(this,"getScreenSize")}; g.K.dispose=function(){G6D(this);jD.prototype.dispose.call(this)};var nGS=new function(y,q){this.key=y;this.defaultValue=q===void 0?!1:q;this.valueType="boolean"}("45378663");g.K=um.prototype;g.K.Ky=function(y){Hi(y,!1);$HS(y)}; g.K.qY=function(){}; g.K.Pz=function(y,q,Q,p){var v=this;y=new Pi(ln,y,Q?q:-1,7,this.Zi(),this.JV());y.NB=p;u93(y.JU);NO(y.JU,"queryid",y.NB);y.DD("");Def(y,function(){return v.zb.apply(v,g.hH(g.nS.apply(0,arguments)))},function(){return v.GX.apply(v,g.hH(g.nS.apply(0,arguments)))}); (p=kB(Ty).K)&&sq3(y,p);this.N&&(y.K8(this.N),this.N=null);y.mY.j_&&kB(ao3);return y}; g.K.IK=function(y){switch(y.m_()){case 0:if(y=kB(Ty).K)y=y.K,g.Lh(y.J,this),y.j&&this.w8()&&de8(y);Ul();break;case 2:bm()}}; g.K.Gm=function(){}; g.K.w8=function(){return!1}; g.K.GX=function(y,q){y.bk=!0;switch(y.x0()){case 1:Q5g(y,q);break;case 2:this.qn(y)}}; g.K.HR=function(y){var q=y.X(y);q&&(q=q.volume,y.q$=i_(q)&&q>0);COi(y,0);return qa(y,"start",yf())}; g.K.P8=function(y,q,Q){$U(hv,[y],!yf());return this.Xh(y,q,Q)}; g.K.Xh=function(y,q,Q){return qa(y,Q,yf())}; g.K.ZA=function(y){return Gy(y,"firstquartile",1)}; g.K.bL=function(y){y.BI=!0;return Gy(y,"midpoint",2)}; g.K.zX=function(y){return Gy(y,"thirdquartile",3)}; g.K.VW=function(y){var q=Gy(y,"complete",4);ir(y);return q}; g.K.x5=function(y){y.iV=3;return qa(y,"error",yf())}; g.K.KE=function(y,q,Q){q=yf();if(y.VK()&&!q){var p=y.LV(),v=cG();p.C=v}$U(hv,[y],!q);y.VK()&&(y.iV=1);return qa(y,Q,q)}; g.K.k5=function(y,q){q=this.P8(y,q||{},"skip");ir(y);return q}; g.K.hn=function(y,q){Hi(y,!0);return this.P8(y,q||{},"fullscreen")}; g.K.XA=function(y,q){Hi(y,!1);return this.P8(y,q||{},"exitfullscreen")}; g.K.xi=function(y,q,Q){q=y.LV();var p=cG();q.Vm=Up(q,p,y.iV!=1);$U(hv,[y],!yf());y.iV==1&&(y.iV=2);return qa(y,Q,yf())}; g.K.BR=function(y){$U(hv,[y],!yf());return y.W()}; g.K.eF=function(y){$U(hv,[y],!yf());this.l0(y);ir(y);return y.W()}; g.K.zb=function(){}; g.K.qn=function(){}; g.K.l0=function(){}; g.K.aN=function(){}; g.K.hs=function(){}; g.K.JV=function(){this.K||(this.K=this.hs());return this.K==null?new AT:new H2(this.K)}; g.K.Zi=function(){return new kU};g.x(P2,r5);P2.prototype.K=function(y){return y.Gs()==4};g.x(im,oz);im.prototype.K=function(y){y=y.Gs();return y==3||y==4};g.x(Xu,aK);Xu.prototype.W=function(){return new im(this.K)}; Xu.prototype.N=function(){return[new P2(this.K)]};g.x(mv,ci3);mv.prototype.K=function(y){y&&(y.e===28&&(y=Object.assign({},y,{avas:3})),y.vs===4||y.vs===5)&&(y=Object.assign({},y,{vs:3}));var q=new g4i;q.K=ur(y,zJX);q.W=ur(y,DOw);return q};TRS.prototype.W=function(){return g.qw(this.K)};g.x(CY,um);g.K=CY.prototype;g.K.qY=function(y,q){var Q=this,p=kB(Ty);if(p.K!=null)switch(p.K.getName()){case "nis":var v=JLC(this,y,q);break;case "gsv":v=wog(this,y,q);break;case "exc":v=FR9(this,y)}v||(q.opt_overlayAdElement?v=void 0:q.opt_adElement&&(v=v6b(this,y,q.opt_adElement,q.opt_osdId)));v&&v.x0()==1&&(v.X==g.D5&&(v.X=function(d){return Q.aN(d)}),OQj(this,v,q)); return v}; g.K.aN=function(y){y.W=0;y.Sj=0;if(y.Y=="h"||y.Y=="n"){JR();y.Ty&&(JR(),eJ(this)!="h"&&eJ(this));var q=g.qw("ima.common.getVideoMetadata");if(typeof q==="function")try{var Q=q(y.NB)}catch(v){y.W|=4}else y.W|=2}else if(y.Y=="b")if(q=g.qw("ytads.bulleit.getVideoMetadata"),typeof q==="function")try{Q=q(y.NB)}catch(v){y.W|=4}else y.W|=2;else if(y.Y=="ml")if(q=g.qw("ima.common.getVideoMetadata"),typeof q==="function")try{Q=q(y.NB)}catch(v){y.W|=4}else y.W|=2;else y.W|=1;y.W||(Q===void 0?y.W|=8:Q===null? y.W|=16:g.hn(Q)?y.W|=32:Q.errorCode!=null&&(y.Sj=Q.errorCode,y.W|=64));Q==null&&(Q={});q=Q;y.C=0;for(var p in NOq)q[p]==null&&(y.C|=NOq[p]);dED(q,"currentTime");dED(q,"duration");i_(Q.volume)&&i_()&&(Q.volume*=NaN);return Q}; g.K.hs=function(){JR();eJ(this)!="h"&&eJ(this);var y=YSf(this);return y!=null?new TRS(y):null}; g.K.qn=function(y){!y.K&&y.bk&&B2(this,y,"overlay_unmeasurable_impression")&&(y.K=!0)}; g.K.l0=function(y){y.pE&&(y.G0()?B2(this,y,"overlay_viewable_end_of_session_impression"):B2(this,y,"overlay_unviewable_impression"),y.pE=!1)}; g.K.zb=function(){}; g.K.Pz=function(y,q,Q,p){if(JR().flags.Zm(nGS)){var v=SL(JR().JU,"mm"),d={};(v=(d[w4.Sw]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",d[w4.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",d)[v])&&$ES(this,v);this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&g4(1044,Error())}y=um.prototype.Pz.call(this,y,q,Q,p);this.J&&(q=this.G,y.J==null&&(y.J=new uii),q.K[y.NB]=y.J,y.J.J=I0m);return y}; g.K.Ky=function(y){y&&y.x0()==1&&this.J&&delete this.G.K[y.NB];return um.prototype.Ky.call(this,y)}; g.K.JV=function(){this.K||(this.K=this.hs());return this.K==null?new AT:this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Xu(this.K):new H2(this.K)}; g.K.Zi=function(){return this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new mv:new kU}; g.K.K8=function(y,q,Q,p,v){q=new g0(Q,q+p,Q+v,q);(y=pY(v2,y))?y.K8(q):this.N=q}; var gGk=IR(193,xEC,void 0,po9);g.y_("Goog_AdSense_Lidar_sendVastEvent",gGk);var cnq=nW(194,function(y,q){q=q===void 0?{}:q;y=bQ9(kB(CY),y,q);return KRj(y)}); g.y_("Goog_AdSense_Lidar_getViewability",cnq);var UOm=IR(195,function(){return hJS()}); g.y_("Goog_AdSense_Lidar_getUrlSignalsArray",UOm);var rnu=nW(196,function(){return JSON.stringify(hJS())}); g.y_("Goog_AdSense_Lidar_getUrlSignalsList",rnu);var taj=g.b8(["//ep2.adtrafficquality.google/sodar/",""]),E6H=g.b8(["//tpc.googlesyndication.com/sodar/",""]);g.x(jP,Error);g.x(vP,g.I);vP.prototype.mD=function(){return this.wpc.f()}; vP.prototype.xL=function(y){this.wpc.c(y)}; vP.prototype.Ms=function(y){return this.wpc.m(NRs(y))}; vP.prototype.nS=function(y){return this.wpc.mws(NRs(y))}; g.x(Q$,g.I);Q$.prototype.snapshot=function(y){return this.K6.s(Object.assign({},y.e4&&{c:y.e4},y.Im&&{s:y.Im},y.j9!==void 0&&{p:y.j9}))}; Q$.prototype.nf=function(y){this.K6.e(y)}; Q$.prototype.Oh=function(){return this.K6.l()};g.x(Te,g.I);Te.prototype.share=function(){if(this.iB())throw Error("E:AD");this.W++;return this}; Te.prototype.dispose=function(){--this.W||g.I.prototype.dispose.call(this)};lbb.prototype.Xz=function(y,q){this.K.Xz("/client_streamz/bg/frs",y,q)}; zHH.prototype.Xz=function(y,q,Q,p,v,d){this.K.Xz("/client_streamz/bg/wrl",y,q,Q,p,v,d)}; DE8.prototype.DN=function(y,q){this.K.dR("/client_streamz/bg/ec",y,q)}; u38.prototype.Xz=function(y,q,Q){this.K.Xz("/client_streamz/bg/el",y,q,Q)}; IbS.prototype.DN=function(y,q){this.K.dR("/client_streamz/bg/cec",y,q)}; n69.prototype.DN=function(y,q){this.K.dR("/client_streamz/bg/po/csc",y,q)}; g63.prototype.DN=function(y,q){this.K.dR("/client_streamz/bg/po/ctav",y,q)}; cL9.prototype.DN=function(y,q){this.K.dR("/client_streamz/bg/po/cwsc",y,q)};g.x(UEC,Ho);g.x(wD,Ho);var $K=[1,2,3];var oGu=[0,$K,EGn,bMk,ZM_];var An_=[0,j9,[0,VL_,JnS]];g.x(Jj,Ho);var b3=[1,2,3];var eJc=[0,b3,Yon,wK_,pa,An_];g.x(FG,Ho);var BOk=[0,j9,oGu,eJc];var Gue=[0,qy];g.x(YK,Ho);var Poc=[0,qy,-1,Wnu];var iMG=[0,qy,-1,f0_,Wnu];g.x(fR,Ho);var Zdg=[1,2,3];var XKq=[0,Zdg,pa,Poc,pa,iMG,pa,Gue];g.x(hj,Ho);hj.prototype.R1=function(){var y=wF(this,3,sJ,3,!0);mg(y);return y[void 0]};hj.prototype.N=xd9([0,qy,XKq,tLG,j9,BOk,$Oe,Knh]);g.x(o6C,Ho);g.K=KR.prototype;g.K.isEnabled=function(){if(!g.CS.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{zo:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.K.set=function(y,q,Q){var p=!1;if(typeof Q==="object"){var v=Q.SuB;p=Q.secure||!1;var d=Q.domain||void 0;var T=Q.path||void 0;var O=Q.zo}if(/[;=\s]/.test(y))throw Error('Invalid cookie name "'+y+'"');if(/[;\r\n]/.test(q))throw Error('Invalid cookie value "'+q+'"');O===void 0&&(O=-1);Q=d?";domain="+d:"";T=T?";path="+T:"";p=p?";secure":"";O=O<0?"":O==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+O*1E3)).toUTCString();this.K.cookie=y+"="+q+Q+T+O+p+(v!=null?";samesite="+ v:"")}; g.K.get=function(y,q){for(var Q=y+"=",p=(this.K.cookie||"").split(";"),v=0,d;v=0;q--)this.remove(y[q])}; var n9=new KR(typeof document=="undefined"?null:document);WP.prototype.compress=function(y){var q,Q,p,v;return g.M(function(d){switch(d.K){case 1:return q=new CompressionStream("gzip"),Q=(new Response(q.readable)).arrayBuffer(),p=q.writable.getWriter(),g.R(d,p.write((new TextEncoder).encode(y)),2);case 2:return g.R(d,p.close(),3);case 3:return v=Uint8Array,g.R(d,Q,4);case 4:return d.return(new v(d.W))}})}; WP.prototype.isSupported=function(y){return y<1024?!1:typeof CompressionStream!=="undefined"};g.x(Z7,Ho);tj.prototype.setInterval=function(y){this.intervalMs=y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; tj.prototype.start=function(){var y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){y.tick()},this.intervalMs),this.W=this.K())}; tj.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; tj.prototype.tick=function(){var y=this;if(this.enabled){var q=Math.max(this.K()-this.W,0);q0?Q:void 0));Q=vv(Q,4,Wk(v>0?v:void 0));Q=vv(Q,5,Wk(d>0?d:void 0));v=Q.Ib;d=v[oq]|0;Q=Xi(Q,d)?Q:Xv(Q,v,d)?mm(Q,v):new Q.constructor(iO(v,d,!0));RM(T,LR,10,Q)}T=this.K.clone();Q=Date.now().toString();T=vv(T,4,N_(Q));y=sq(T,l3,3,y.slice());p&&(T=new EN,p=vv(T,13,Wk(p)),T=new kK, p=RM(T,EN,2,p),T=new MS,p=RM(T,kK,1,p),p=rF(p,2,9),RM(y,MS,18,p));q&&gF(y,14,q);return y};g.nR.prototype.W=0;g.nR.prototype.reset=function(){this.K=this.N=this.Y;this.W=0}; g.nR.prototype.getValue=function(){return this.N};g.x(d4,Ho);var mOh=TT(d4);g.x(bi3,Ho);var YP;YP=new $dD;g.x(rD,g.I);g.K=rD.prototype;g.K.FV=function(){UN(this);this.W.stop();this.Es.stop();g.I.prototype.FV.call(this)}; g.K.dispatch=function(y){if(y instanceof l3)this.log(y);else try{var q=new l3,Q=y.W3();var p=cv(q,8,Q);this.log(p)}catch(v){o_(this,4,1)}}; g.K.log=function(y){o_(this,2,1);if(this.vI){y=y.clone();var q=this.HI++;y=gF(y,21,q);this.componentId&&cv(y,26,this.componentId);q=y;var Q=QS(q,1);var p=p===void 0?!1:p;var v=typeof Q;p=Q==null?Q:v==="bigint"?String(k4(64,Q)):x4(Q)?v==="string"?EJ(Q):p?Lx(Q):aA(Q):void 0;p==null&&(p=Date.now(),p=Number.isFinite(p)?p.toString():"0",vv(q,1,N_(p)));p=QS(q,15);p!=null&&(typeof p==="bigint"?Ai(p)?p=Number(p):(p=k4(64,p),p=Ai(p)?Number(p):String(p)):p=x4(p)?typeof p==="number"?aA(p):EJ(p):void 0);p!=null|| gF(q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(p=this.experimentIds.clone(),RM(q,Z7,16,p));o_(this,1,1);q=this.K.length-1E3+1;q>0&&(this.K.splice(0,q),this.Y+=q,o_(this,3,q));this.K.push(y);this.PS||this.W.enabled||this.W.start()}}; g.K.flush=function(y,q){var Q=this;if(this.K.length===0)y&&y();else if(this.gp&&this.cI)this.N.W=3,fuD(this);else{var p=Date.now();if(this.Vm>p&&this.Sj0&&(Q.Sj=Date.now(),Q.Vm=Q.Sj+f);f=hm(uO);var Z;rM&&f&&((Z=h.Ib[f])==null?void 0:Z[175237375])!=null&&c5(oqC,3);a:{var k=k===void 0?!1:k;if(hm(Amh)&&hm(uO)&&void 0===Amh){Z=h.Ib;f=Z[uO];if(!f)break a;if(f=f.e9)try{f(Z,175237375,Xe_);break a}catch(S){So(S)}}k&&(k=h.Ib, (Z=hm(uO))&&Z in k&&(k=k[Z])&&delete k[175237375])}k=YP.K?YP.W(h,YP.K,175237375,YP.N):YP.W(h,175237375,null,YP.N);if(k=k===null?void 0:k)k=lD(k,1,-1),k!==-1&&(Q.J=new g.nR(k<1?1:k,3E5,.1),Q.W.setInterval(Q.J.getValue()))}}y&&y();Q.G=0},F=function(f,h){var b=Hv(d,l3,3); var Z=Number(R68(d,14));g.gD(Q.J);Q.W.setInterval(Q.J.getValue());f===401&&T&&(Q.LK=T);Z&&(Q.Y+=Z);h===void 0&&(h=Q.isRetryable(f));h&&(Q.K=b.concat(Q.K),Q.PS||Q.W.enabled||Q.W.start());o_(Q,7,1);q&&q("net-send-failed",f);++Q.G},Y=function(){Q.network&&Q.network.send(w,J,F)}; O?O.then(function(f){o_(Q,5,v);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=f;w.lK=2;Y()},function(){o_(Q,6,v); Y()}):Y()}}}}; g.K.isRetryable=function(y){return 500<=y&&y<600||y===401||y===0};Aj.prototype.send=function(y,q,Q){var p=this,v,d,T,O,w,J,F,Y,f,h;return g.M(function(b){switch(b.K){case 1:return d=(v=p.UM?new AbortController:void 0)?setTimeout(function(){v.abort()},y.timeoutMillis):void 0,g.EC(b,2,3),T=Object.assign({},{method:y.requestType, headers:Object.assign({},y.requestHeaders)},y.body&&{body:y.body},y.withCredentials&&{credentials:"include"},{signal:y.timeoutMillis&&v?v.signal:null}),g.R(b,fetch(y.url,T),5);case 5:O=b.W;if(O.status!==200){(w=Q)==null||w(O.status);b.ej(3);break}if((J=q)==null){b.ej(7);break}return g.R(b,O.text(),8);case 8:J(b.W);case 7:case 3:g.l8(b);clearTimeout(d);g.zf(b,0);break;case 2:F=g.Rj(b);switch((Y=F)==null?void 0:Y.name){case "AbortError":(f=Q)==null||f(408);break;default:(h=Q)==null||h(400)}b.ej(3)}})}; Aj.prototype.PP=function(){return 4};g.x(eP,g.I);eP.prototype.C5=function(){this.J=!0;return this}; eP.prototype.build=function(){this.network||(this.network=new Aj);var y=new rD({logSource:this.logSource,x7:this.x7?this.x7:qwS,sessionIndex:this.sessionIndex,BhV:this.fq,Ec:this.Y,PS:!1,C5:this.J,z4:this.z4,network:this.network});g.n(this,y);if(this.W){var q=this.W,Q=I_(y.N);cv(Q,7,q)}y.X=new WP;this.componentId&&(y.componentId=this.componentId);this.Ay&&(y.Ay=this.Ay);this.pageId&&(y.pageId=this.pageId);this.K&&((Q=this.K)?(y.experimentIds||(y.experimentIds=new Z7),q=y.experimentIds,Q=Q.W3(),cv(q, 4,Q)):y.experimentIds&&vv(y.experimentIds,4));this.N&&(y.gp=y.cI);OWS(y.N);this.network.Q0&&this.network.Q0(this.logSource);this.network.bnf&&this.network.bnf(y);return y};g.x(BP,g.I);BP.prototype.flush=function(y){y=y||[];if(y.length){for(var q=new o6C,Q=[],p=0;p-1?(q=y[T],Q||(q.Xr=!1)):(q=new trj(q,this.src,d,!!p,v),q.Xr=Q,y.push(q));return q}; g.K.remove=function(y,q,Q,p){y=y.toString();if(!(y in this.listeners))return!1;var v=this.listeners[y];q=Qp(v,q,Q,p);return q>-1?(yp(v[q]),g.kq(v,q),v.length==0&&(delete this.listeners[y],this.K--),!0):!1}; g.K.removeAll=function(y){y=y&&y.toString();var q=0,Q;for(Q in this.listeners)if(!y||Q==y){for(var p=this.listeners[Q],v=0;v-1?y[v]:null}; g.K.hasListener=function(y,q){var Q=y!==void 0,p=Q?y.toString():"",v=q!==void 0;return g.vK(this.listeners,function(d){for(var T=0;T>>0);g.bG(g.Ky,g.I);g.Ky.prototype[WDj]=!0;g.K=g.Ky.prototype;g.K.addEventListener=function(y,q,Q,p){g.vq(this,y,q,Q,p)}; g.K.removeEventListener=function(y,q,Q,p){HWS(this,y,q,Q,p)}; g.K.dispatchEvent=function(y){var q=this.Gw;if(q){var Q=[];for(var p=1;q;q=q.Gw)Q.push(q),++p}q=this.LI;p=y.type||y;if(typeof y==="string")y=new g.XG(y,q);else if(y instanceof g.XG)y.target=y.target||q;else{var v=y;y=new g.XG(p,q);g.WK(y,v)}v=!0;var d;if(Q)for(d=Q.length-1;!y.W&&d>=0;d--){var T=y.currentTarget=Q[d];v=xv(T,p,!0,y)&&v}y.W||(T=y.currentTarget=q,v=xv(T,p,!0,y)&&v,y.W||(v=xv(T,p,!1,y)&&v));if(Q)for(d=0;!y.W&&d0){this.W--;var y=this.K;this.K=y.next;y.next=null}else y=this.N();return y};var t9;kv.prototype.add=function(y,q){var Q=D1S.get();Q.set(y,q);this.W?this.W.next=Q:this.K=Q;this.W=Q}; kv.prototype.remove=function(){var y=null;this.K&&(y=this.K,this.K=this.K.next,this.K||(this.W=null),y.next=null);return y}; var D1S=new Wq(function(){return new Ly},function(y){return y.reset()}); Ly.prototype.set=function(y,q){this.K=y;this.scope=q;this.next=null}; Ly.prototype.reset=function(){this.next=this.scope=this.K=null};var Rw,sn=!1,lus=new kv;uH2.prototype.reset=function(){this.context=this.W=this.N=this.K=null;this.Y=!1}; var Iuj=new Wq(function(){return new uH2},function(y){y.reset()}); g.zD.prototype.then=function(y,q,Q){return B43(this,Zj(typeof y==="function"?y:null),Zj(typeof q==="function"?q:null),Q)}; g.zD.prototype.$goog_Thenable=!0;g.K=g.zD.prototype;g.K.finally=function(y){var q=this;y=Zj(y);return new g.zD(function(Q,p){U19(q,function(v){y();Q(v)},function(v){y(); p(v)})})}; g.K.IE=function(y,q){return B43(this,null,Zj(y),q)}; g.K.catch=g.zD.prototype.IE;g.K.cancel=function(y){if(this.K==0){var q=new cq(y);g.MN(function(){rRH(this,q)},this)}}; g.K.UKB=function(y){this.K=0;lu(this,2,y)}; g.K.EJK=function(y){this.K=0;lu(this,3,y)}; g.K.RC=function(){for(var y;y=ob8(this);)AR2(this,y,this.K,this.X);this.G=!1}; var XG3=So;g.bG(cq,$q);cq.prototype.name="cancel";g.bG(g.Un,g.Ky);g.K=g.Un.prototype;g.K.enabled=!1;g.K.AU=null;g.K.setInterval=function(y){this.Of=y;this.AU&&this.enabled?(this.stop(),this.start()):this.AU&&this.stop()}; g.K.YYp=function(){if(this.enabled){var y=g.fh()-this.hA;y>0&&y0&&(this.getStatus(),this.G=setTimeout(this.eR.bind(this), this.cI)),this.getStatus(),this.j=!0,this.K.send(y),this.j=!1}catch(T){this.getStatus(),FZs(this,T)}}; g.K.eR=function(){typeof mf!="undefined"&&this.K&&(this.Y="Timed out after "+this.cI+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.K.abort=function(y){this.K&&this.N&&(this.getStatus(),this.N=!1,this.J=!0,this.K.abort(),this.J=!1,this.W=y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),XO(this))}; g.K.FV=function(){this.K&&(this.N&&(this.N=!1,this.J=!0,this.K.abort(),this.J=!1),XO(this,!0));g.iu.FC.FV.call(this)}; g.K.OQ=function(){this.iB()||(this.m3||this.j||this.J?YpC(this):this.Yy$())}; g.K.Yy$=function(){YpC(this)}; g.K.isActive=function(){return!!this.K}; g.K.isComplete=function(){return g.Cy(this)==4}; g.K.getStatus=function(){try{return g.Cy(this)>2?this.K.status:-1}catch(y){return-1}}; g.K.getResponseHeader=function(y){if(this.K&&this.isComplete())return y=this.K.getResponseHeader(y),y===null?void 0:y}; g.K.getLastError=function(){return typeof this.Y==="string"?this.Y:String(this.Y)};pG.prototype.send=function(y,q,Q){q=q===void 0?function(){}:q; Q=Q===void 0?function(){}:Q; wiD(y.url,function(p){p=p.target;yn(p)?q(g.qv(p)):Q(p.getStatus())},y.requestType,y.body,y.requestHeaders,y.timeoutMillis,y.withCredentials)}; pG.prototype.PP=function(){return 1};dN.prototype.done=function(){this.logger.MN(this.event,vw()-this.startTime)}; g.x(TQ,Te);g.x(OI,TQ);g.K=OI.prototype;g.K.Ba=function(){}; g.K.OS=function(){}; g.K.MN=function(){}; g.K.Ea=function(){}; g.K.Kq=function(){}; g.K.kZ=function(y,q,Q,p){return p}; g.K.d4=function(){}; g.K.DB=function(){}; g.K.lq=function(){}; g.x(wN,TQ);g.K=wN.prototype;g.K.update=function(y){this.logger.dispose();this.logger=y}; g.K.OS=function(y){this.logger.OS(y)}; g.K.MN=function(y,q){this.logger.MN(y,q)}; g.K.Ea=function(y){this.logger.Ea(y)}; g.K.Kq=function(){this.logger.Kq()}; g.K.kZ=function(y,q,Q,p){return this.logger.kZ(y,q,Q,p)}; g.K.d4=function(y){this.logger.d4(y)}; g.K.DB=function(y){this.logger.DB(y)}; g.K.lq=function(y){this.logger.lq(y)}; g.K.Ba=function(y){this.logger.Ba(y)}; g.x($Ws,g.I);g.x(JS,TQ);g.K=JS.prototype;g.K.Ba=function(y){this.metrics.Dmb.Xz(y,this.qp)}; g.K.OS=function(y){this.metrics.eventCount.DN(y,this.qp)}; g.K.MN=function(y,q){this.metrics.Wy.Xz(q,y,this.qp)}; g.K.Ea=function(y){this.metrics.errorCount.DN(y,this.qp)}; g.K.kZ=function(y,q,Q,p){function v(O){if(!d.iB()){var w=vw()-T;d.metrics.nJK.Xz(w,y,Q,O,q,d.qp)}} var d=this,T=vw();p.then(function(){return void v(0)},function(O){return void v(O instanceof et?O.code:-1)}); return p}; g.K.d4=function(y){this.metrics.Ies.DN(y,this.qp)}; g.K.DB=function(y){this.metrics.CI.DN(y,this.qp)}; g.K.lq=function(y){this.metrics.CgK.DN(y,this.qp)}; g.x(Fo,JS);Fo.prototype.Kq=function(){KZC(this.K)};g.x(Y9,Ho);g.x(fG,Ho);g.x(hS,Ho);var szb=TT(hS),WZ2=function(y){return E2(function(q){return q instanceof y&&!Xi(q)})}(hS); hS.messageId="bfkj";g.x(dD,Ho);g.x(bW,Ho);var ZfC=TT(bW);g.x(KG,g.I);KG.prototype.snapshot=function(y){if(this.iB())throw Error("Already disposed");this.logger.OS("n");var q=this.logger.share();return this.N.then(function(Q){var p=Q.H2;return new Promise(function(v){var d=new dN(q,"n");p(function(T){d.done();q.Ba(T.length);q.Kq();q.dispose();v(T)},[y.e4, y.Im,y.f9,y.j9])})})}; KG.prototype.Z2=function(y){var q=this;if(this.iB())throw Error("Already disposed");this.logger.OS("n");var Q=Vn(this.logger,function(){return q.Y([y.e4,y.Im,y.f9,y.j9])},"n"); this.logger.Ba(Q.length);this.logger.Kq();return Q}; KG.prototype.nf=function(y){this.N.then(function(q){var Q;(Q=q.eZK)==null||Q(y)})}; KG.prototype.Oh=function(){return this.logger.share()};g.x(ZM,Ho);g.x(tS,Ho);EI.prototype.FE=function(y){return DWf(this,y,new OI,0)};g.x(k9,g.I);k9.prototype.snapshot=function(y){var q=this;return g.M(function(Q){switch(Q.K){case 1:if(q.iB())throw Error("Already disposed");if(q.W||q.X){Q.ej(2);break}return g.R(Q,q.J.promise,2);case 2:if(!q.W){Q.ej(4);break}return g.R(Q,q.W.snapshot(y),5);case 5:return Q.return(Q.W);case 4:throw q.X;}})}; k9.prototype.nf=function(y){var q,Q;(q=this.W)==null||(Q=q.nf)==null||Q.call(q,y)}; k9.prototype.handleError=function(y){if(!this.iB()){this.X=y;this.J.resolve();var q,Q;(Q=(q=this.options).DUK)==null||Q.call(q,y)}}; k9.prototype.Oh=function(){return this.logger.share()}; var n8D={lNB:432E5,K9:3E5,FX:10,wE:1E4,aC:3E4,iKj:3E4,tKK:6E4,qH:1E3,jx:6E4,fJ:6E5,Kh:.25,Pc:2,maxAttempts:10};var qjc,GOf=(qjc=Math.imul)!=null?qjc:function(y,q){return y*q|0},ST=[196, 200,224,18];Hw.prototype.W3=function(){return String(this.K)+","+this.W.join()}; Hw.prototype.TW=function(y,q){var Q=void 0;if(this.W[this.K]!==y){var p=this.W.indexOf(y);p!==-1?(this.W.splice(p,1),p0;)q[Q++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(y%62),y=Math.floor(y/62);return q.join("")}};g.x(sI,g.I);sI.prototype.nS=function(y,q){var Q=this.Ms(y);q==null||q(Q);return Vn(this.logger,function(){return g.Rq(Q,2)},this.W)}; g.x(zQ,sI);zQ.prototype.Ms=function(y,q){var Q=this;this.logger.OS(this.K);++this.J>=this.G&&this.N.resolve();var p=y();y=Vn(this.logger,function(){return Q.Y(p)},"C"); if(y===void 0)throw new jP(17,"YNJ:Undefined");if(!(y instanceof Uint8Array))throw new jP(18,"ODM:Invalid");q==null||q(y);return y}; g.x(DM,sI);DM.prototype.Ms=function(){return this.Y}; g.x(uW,sI);uW.prototype.Ms=function(){var y=this;return Vn(this.logger,function(){return Me(y.Y)},"d")}; uW.prototype.nS=function(){return this.Y}; g.x(IT,sI);IT.prototype.Ms=function(){if(this.Y)return this.Y;this.Y=TrC(this,function(y){return"_"+daS(y)}); return TrC(this,function(y){return y})}; g.x(gN,sI);gN.prototype.Ms=function(){var y=Math.floor(Date.now()/1E3),q=[Math.random()*255,Math.random()*255],Q=q.concat([this.Y&255,this.clientState],[y>>24&255,y>>16&255,y>>8&255,y&255]);y=new Uint8Array(2+Q.length);y[0]=34;y[1]=Q.length;y.set(Q,2);Q=y.subarray(2);for(var p=q=q.length;p150))try{this.cache=new ql9(y,this.logger)}catch(q){this.reportError(new jP(22,"GBJ:init",q))}}; g.K.reportError=function(y){this.logger.Ea(y.code);this.onError(y);return y}; var w2D=function(y){return E2(function(q){if(!UwX(q))return!1;for(var Q=g.t(Object.entries(y)),p=Q.next();!p.done;p=Q.next()){var v=g.t(p.value);p=v.next().value;v=v.next().value;if(!(p in q)){if(v.Khf===!0)continue;return!1}if(!v(q[p]))return!1}return!0})}({K6:function(y){return E2(function(q){return q instanceof y})}(k9)},"");var jTb=(new Date).getTime();g.x(AS,Ho);var j2e=TT(AS);xaH.prototype.getMetadata=function(){return this.metadata};eT.prototype.getMetadata=function(){return this.metadata}; eT.prototype.getStatus=function(){return this.status};Bw.prototype.X=function(y,q){q=q===void 0?{}:q;return new xaH(y,this,q)}; Bw.prototype.getName=function(){return this.name};var Q2m=new Bw("/google.internal.waa.v1.Waa/Create",ZM,AS,function(y){return y.W3()},j2e);g.x(GQ,Ho);var lQ9=new Bw("/google.internal.waa.v1.Waa/GenerateIT",tS,GQ,function(y){return y.W3()},TT(GQ));var iYp=new Set(["SAPISIDHASH","APISIDHASH"]);g.x(Pw,Ho);Pw.prototype.getValue=function(){var y=QS(this,2);if(Array.isArray(y)||y instanceof Ho)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Fk(this,2)};g.x(iW,Ho);iW.prototype.getMessage=function(){return Do(this,2)}; var Lv2=TT(iW);Xo.prototype.He=function(y,q){y=="data"?this.N.push(q):y=="metadata"?this.J.push(q):y=="status"?this.G.push(q):y=="end"?this.Y.push(q):y=="error"&&this.W.push(q);return this}; Xo.prototype.removeListener=function(y,q){y=="data"?jx(this.N,q):y=="metadata"?jx(this.J,q):y=="status"?jx(this.G,q):y=="end"?jx(this.Y,q):y=="error"&&jx(this.W,q);return this}; Xo.prototype.cancel=function(){this.K.abort()}; Xo.prototype.cancel=Xo.prototype.cancel;Xo.prototype.removeListener=Xo.prototype.removeListener;Xo.prototype.on=Xo.prototype.He;g.x(ZYj,Error);g.bG(g.Q3,VD2);g.Q3.prototype.K=function(){var y=new pX(this.Y,this.N);this.W&&y.setCredentialsMode(this.W);return y}; g.Q3.prototype.setCredentialsMode=function(y){this.W=y}; g.bG(pX,g.Ky);g.K=pX.prototype;g.K.open=function(y,q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.N$=y;this.cI=q;this.readyState=1;vH(this)}; g.K.send=function(y){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.C.signal.aborted)throw this.abort(),Error("Request was aborted.");this.K=!0;var q={headers:this.j,method:this.N$,credentials:this.J,cache:void 0,signal:this.C.signal};y&&(q.body=y);(this.m3||g.CS).fetch(new Request(this.cI,q)).then(this.iL.bind(this),this.mG.bind(this))}; g.K.abort=function(){this.response=this.responseText="";this.j=new Headers;this.status=0;this.C.abort();this.N&&this.N.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.K&&this.readyState!=4&&(this.K=!1,dP(this));this.readyState=0}; g.K.iL=function(y){if(this.K&&(this.Y=y,this.W||(this.status=this.Y.status,this.statusText=this.Y.statusText,this.W=y.headers,this.readyState=2,vH(this)),this.K&&(this.readyState=3,vH(this),this.K)))if(this.responseType==="arraybuffer")y.arrayBuffer().then(this.UO.bind(this),this.mG.bind(this));else if(typeof g.CS.ReadableStream!=="undefined"&&"body"in y){this.N=y.body.getReader();if(this.G){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.X=new TextDecoder;aAC(this)}else y.text().then(this.EO.bind(this),this.mG.bind(this))}; g.K.SU=function(y){if(this.K){if(this.G&&y.value)this.response.push(y.value);else if(!this.G){var q=y.value?y.value:new Uint8Array(0);if(q=this.X.decode(q,{stream:!y.done}))this.response=this.responseText+=q}y.done?dP(this):vH(this);this.readyState==3&&aAC(this)}}; g.K.EO=function(y){this.K&&(this.response=this.responseText=y,dP(this))}; g.K.UO=function(y){this.K&&(this.response=y,dP(this))}; g.K.mG=function(){this.K&&dP(this)}; g.K.setRequestHeader=function(y,q){this.j.append(y,q)}; g.K.getResponseHeader=function(y){return this.W?this.W.get(y.toLowerCase())||"":""}; g.K.getAllResponseHeaders=function(){if(!this.W)return"";for(var y=[],q=this.W.entries(),Q=q.next();!Q.done;)Q=Q.value,y.push(Q[0]+": "+Q[1]),Q=q.next();return y.join("\r\n")}; g.K.setCredentialsMode=function(y){this.J=y}; Object.defineProperty(pX.prototype,"withCredentials",{get:function(){return this.J==="include"}, set:function(y){this.setCredentialsMode(y?"include":"same-origin")}});g.To.prototype.toString=function(){var y=[],q=this.J;q&&y.push(fX(q,pQ_,!0),":");var Q=this.K;if(Q||q=="file")y.push("//"),(q=this.C)&&y.push(fX(q,pQ_,!0),"@"),y.push(g.R2(Q).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Q=this.N,Q!=null&&y.push(":",String(Q));if(Q=this.W)this.K&&Q.charAt(0)!="/"&&y.push("/"),y.push(fX(Q,Q.charAt(0)=="/"?vZ_:dR_,!0));(Q=this.Y.toString())&&y.push("?",Q);(Q=this.G)&&y.push("#",fX(Q,TVc));return y.join("")}; g.To.prototype.resolve=function(y){var q=this.clone(),Q=!!y.J;Q?g.V3(q,y.J):Q=!!y.C;Q?q.C=y.C:Q=!!y.K;Q?g.Oa(q,y.K):Q=y.N!=null;var p=y.W;if(Q)g.wP(q,y.N);else if(Q=!!y.W){if(p.charAt(0)!="/")if(this.K&&!this.W)p="/"+p;else{var v=q.W.lastIndexOf("/");v!=-1&&(p=q.W.slice(0,v+1)+p)}v=p;if(v==".."||v==".")p="";else if(g.D0(v,"./")||g.D0(v,"/.")){p=MO(v,"/");v=v.split("/");for(var d=[],T=0;T1||d.length==1&&d[0]!="")&&d.pop(), p&&T==v.length&&d.push("")):(d.push(O),p=!0)}p=d.join("/")}else p=v}Q?q.W=p:Q=y.Y.toString()!=="";Q?JA(q,y.Y.clone()):Q=!!y.G;Q&&(q.G=y.G);return q}; g.To.prototype.clone=function(){return new g.To(this)}; var pQ_=/[#\/\?@]/g,dR_=/[#\?:]/g,vZ_=/[#\?]/g,sKH=/[#\?@]/g,TVc=/#/g;g.K=Y0.prototype;g.K.add=function(y,q){$0(this);this.N=null;y=KX(this,y);var Q=this.K.get(y);Q||this.K.set(y,Q=[]);Q.push(q);this.W=this.W+1;return this}; g.K.remove=function(y){$0(this);y=KX(this,y);return this.K.has(y)?(this.N=null,this.W=this.W-this.K.get(y).length,this.K.delete(y)):!1}; g.K.clear=function(){this.K=this.N=null;this.W=0}; g.K.isEmpty=function(){$0(this);return this.W==0}; g.K.forEach=function(y,q){$0(this);this.K.forEach(function(Q,p){Q.forEach(function(v){y.call(q,v,p,this)},this)},this)}; g.K.LH=function(){$0(this);for(var y=Array.from(this.K.values()),q=Array.from(this.K.keys()),Q=[],p=0;p0?String(y[0]):q}; g.K.toString=function(){if(this.N)return this.N;if(!this.K)return"";for(var y=[],q=Array.from(this.K.keys()),Q=0;Q>>3;d.N!=1&&d.N!=2&&d.N!=15&&tA(d,T,O,"unexpected tag");d.K=1;d.W=0;d.Y=0} function Q(w){d.Y++;d.Y==5&&w&240&&tA(d,T,O,"message length too long");d.W|=(w&127)<<(d.Y-1)*7;w&128||(d.K=2,d.C=0,typeof Uint8Array!=="undefined"?d.J=new Uint8Array(d.W):d.J=Array(d.W),d.W==0&&v())} function p(w){d.J[d.C++]=w;d.C==d.W&&v()} function v(){if(d.N<15){var w={};w[d.N]=d.J;d.X.push(w)}d.K=0} for(var d=this,T=y instanceof Array?y:new Uint8Array(y),O=0;O0?y:null};Ea.prototype.isInputValid=function(){return this.K===null}; Ea.prototype.uF=function(){return this.K}; Ea.prototype.fd=function(){return!1}; Ea.prototype.parse=function(y){this.K!==null&&gUg(this,y,"stream already broken");var q=null;try{var Q=this.N;Q.N||nUC(Q,y,"stream already broken");Q.K+=y;var p=Math.floor(Q.K.length/4);if(p==0)var v=null;else{try{var d=Sob(Q.K.slice(0,p*4))}catch(T){nUC(Q,Q.K,T.message)}Q.W+=p*4;Q.K=Q.K.slice(p*4);v=d}q=v===null?null:this.Y.parse(v)}catch(T){gUg(this,y,T.message)}this.W+=y.length;return q};var OI_={INIT:0,S6:1,vY:2,I_:3,Fk:4,M_:5,STRING:6,JI:7,Hj:8,RA:9,NZ:10,MZ:11,fC:12,Kv:13,WN:14,cN:15,D0:16,oN:17,l_:18,Fd:19,sZ:20};g.K=ap.prototype;g.K.isInputValid=function(){return this.J!=3}; g.K.uF=function(){return this.j}; g.K.done=function(){return this.J===2}; g.K.fd=function(){return!1}; g.K.parse=function(y){function q(){for(;f0;)if(b=y[f++], d.C===4?d.C=0:d.C++,!b)break a;if(b==='"'&&!d.X){d.K=p();break}if(b==="\\"&&!d.X&&(d.X=!0,b=y[f++],!b))break;if(d.X)if(d.X=!1,b==="u"&&(d.C=1),b=y[f++])continue;else break;O.lastIndex=f;b=O.exec(y);if(!b){f=y.length+1;break}f=b.index+1;b=y[b.index];if(!b)break}d.N+=f-Z;continue;case w.RA:if(!b)continue;b==="r"?d.K=w.NZ:Nn(d,y,f);continue;case w.NZ:if(!b)continue;b==="u"?d.K=w.MZ:Nn(d,y,f);continue;case w.MZ:if(!b)continue;b==="e"?d.K=p():Nn(d,y,f);continue;case w.fC:if(!b)continue;b==="a"?d.K=w.Kv: Nn(d,y,f);continue;case w.Kv:if(!b)continue;b==="l"?d.K=w.WN:Nn(d,y,f);continue;case w.WN:if(!b)continue;b==="s"?d.K=w.cN:Nn(d,y,f);continue;case w.cN:if(!b)continue;b==="e"?d.K=p():Nn(d,y,f);continue;case w.D0:if(!b)continue;b==="u"?d.K=w.oN:Nn(d,y,f);continue;case w.oN:if(!b)continue;b==="l"?d.K=w.l_:Nn(d,y,f);continue;case w.l_:if(!b)continue;b==="l"?d.K=p():Nn(d,y,f);continue;case w.Fd:b==="."?d.K=w.sZ:Nn(d,y,f);continue;case w.sZ:if("0123456789.eE+-".indexOf(b)!==-1)continue;else f--,d.N--,d.K= p();continue;default:Nn(d,y,f)}}} function p(){var b=T.pop();return b!=null?b:w.S6} function v(b){d.W>1||(b||(b=Y===-1?d.Y+y.substring(F,f):y.substring(Y,f)),d.cI?d.G.push(b):d.G.push(JSON.parse(b)),Y=f)} for(var d=this,T=d.N$,O=d.m3,w=OI_,J=y.length,F=0,Y=-1,f=0;f0?(h=d.G,d.G=[],h):null}return null};Sx.prototype.isInputValid=function(){return this.J===null}; Sx.prototype.uF=function(){return this.J}; Sx.prototype.fd=function(){return!1}; Sx.prototype.parse=function(y){function q(w){d.W=6;d.J="The stream is broken @"+d.K+"/"+T+". Error: "+w+". With input:\n";throw Error(d.J);} function Q(){d.N=new ap({T8V:!0,VJ:!0})} function p(w){if(w)for(var J=0;J1)&&q("extra status: "+w);d.G=!0;var J={};J[2]=w[0];d.Y.push(J)}} for(var d=this,T=0;T0?(y=d.Y,d.Y=[],y):null};HH.prototype.cU=function(){return this.K}; HH.prototype.getStatus=function(){return this.J}; HH.prototype.cI=function(y){y=y.target;try{if(y==this.K)a:{var q=g.Cy(this.K),Q=this.K.W,p=this.K.getStatus(),v=g.qv(this.K);y=[];if(g.jT(this.K)instanceof Array){var d=g.jT(this.K);d.length>0&&d[0]instanceof Uint8Array&&(this.j=!0,y=d)}if(!(q<3||q==3&&!v&&y.length==0))if(p=p==200||p==206,q==4&&(Q==8?Rp(this,7):Q==7?Rp(this,8):p||Rp(this,3)),this.W||(this.W=cv9(this.K),this.W==null&&Rp(this,5)),this.J>2)sa(this);else{if(y.length>this.N){var T=y.length;Q=[];try{if(this.W.fd())for(var O=0;Othis.N){O=v.slice(this.N);this.N=v.length;try{var J=this.W.parse(O);J!=null&&this.Y&&this.Y(J)}catch(F){Rp(this,5);sa(this);break a}}q==4?(v.length!= 0||this.j?Rp(this,2):Rp(this,4),sa(this)):Rp(this,1)}}}catch(F){Rp(this,6),sa(this)}};g.K=Ua9.prototype;g.K.He=function(y,q){var Q=this.W[y];Q||(Q=[],this.W[y]=Q);Q.push(q);return this}; g.K.addListener=function(y,q){this.He(y,q);return this}; g.K.removeListener=function(y,q){var Q=this.W[y];Q&&g.Lh(Q,q);(y=this.K[y])&&g.Lh(y,q);return this}; g.K.once=function(y,q){var Q=this.K[y];Q||(Q=[],this.K[y]=Q);Q.push(q);return this}; g.K.Z3K=function(y){var q=this.W.data;q&&rv9(y,q);(q=this.K.data)&&rv9(y,q);this.K.data=[]}; g.K.D4K=function(){switch(this.N.getStatus()){case 1:Mn(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Mn(this,"error");break;case 8:Mn(this,"close");break;case 2:Mn(this,"end")}};oUi.prototype.serverStreaming=function(y,q,Q,p){var v=this,d=y.substring(0,y.length-p.name.length);return X2g(function(T){var O=T.uG,w=T.getMetadata(),J=Br9(v,!1);w=GyS(v,w,J,d+O.getName());var F=Pm3(J,O.W,!0);T=O.K(T.Iz);J.send(w,"POST",T);return F},this.nE).call(this,p.X(q,Q))};ma3.prototype.create=function(y,q,Q){var p=this.K,v=this.W+"/$rpc/google.internal.waa.v1.Waa/Create";q=q||{};Q=Q===void 0?{}:Q;return znS(p,v,y,q,Q2m,Q)};var oHp=new Cm9(45713224),AC3=new yji(45713225);var eF3=new Cm9(45713226),B$8=new yji(45713227);var Q_s="://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(" "),pPi=/\bocr\b/;var dSS=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.x(TDs,Ho);g.x(VP3,Ho);g.x(zo,Ho);zo.prototype.getName=function(){return Do(this,1)}; zo.prototype.getOptions=function(){return NH(this,VP3,3)}; zo.prototype.clearOptions=function(){return vv(this,3)};g.x(De,Ho);g.K=De.prototype;g.K.getName=function(){return Do(this,1)}; g.K.getOptions=function(){return NH(this,TDs,3)}; g.K.clearOptions=function(){return vv(this,3)}; g.K.G5=function(){return uD(this,6)}; g.K.BB=function(y){rF(this,6,y)};var JjD=function(y){return function(q){q=JSON.parse(q);if(!Array.isArray(q))throw Error("Expected jspb data to be an array, got "+ph(q)+": "+q);Al(q,34);return new y(q)}}(De);var wPs=Symbol();var YNp=Symbol();Object.assign({},{attributes:{},handleError:function(y){throw y;}},{R1I:!0, Mdm:!0,F_j:!1,Ycw:R__,mLf:snn,a5p:!1,uBK:!1,ATI:!1,Ngs:!0,ScK:Hhu,cGK:!1,G0m:!1,M_s:!1});var Ip=null,gP=!1,Lkj=1,tP3=Symbol("SIGNAL"),fa={version:0,Rqf:0,Ju:!1,producers:void 0,FO:void 0,AD:void 0,Cl:void 0,Cw:!1,Ue:!1,Ee:!1,kind:"unknown",Bv:function(){return!1}, kc:function(){}, SI:function(){}, jqI:function(){}};var hU=Symbol("UNSET"),bT=Symbol("COMPUTING"),$P=Symbol("ERRORED");Object.assign({},fa,{value:hU,Ju:!0,error:null,Fn:u6,kind:"computed",Bv:function(y){return y.value===hU||y.value===bT}, kc:function(y){if(y.value===bT)throw Error("");var q=y.value;y.value=bT;var Q=$Sj(y),p=!1;try{var v=y.FS();nX(null);p=q!==hU&&q!==$P&&v!==$P&&y.Fn(q,v)}catch(d){v=$P,y.error=d}finally{xS3(y,Q)}p?y.value=q:(y.value=v,y.version++)}});Object.assign({},fa,{Ee:!0,Ue:!0,Ju:!0,TX:!1,kind:"effect"});var ZR8=Object.assign({},fa,{Fn:u6,value:void 0,kind:"signal"});Object.assign({},fa,{value:hU,Ju:!0,error:null,Fn:u6,kind:"linkedSignal",Bv:function(y){return y.value===hU||y.value===bT}, kc:function(y){if(y.value===bT)throw Error("");var q=y.value;y.value=bT;var Q=$Sj(y);try{var p=y.source();var v=y.FS(p,q===hU||q===$P?void 0:{source:y.lnK,value:q});y.lnK=p}catch(d){v=$P,y.error=d}finally{xS3(y,Q)}q!==hU&&v!==$P&&y.Fn(q,v)?y.value=q:(y.value=v,y.version++)}});Object.assign({},fa,{Ee:!0,Ue:!1,SI:function(y){y.schedule!==null&&y.schedule(y.t_V)}, TX:!1,nnw:function(){}});g.x(op,g.Ky);op.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.xe.FM(this.J);delete op.instance}; op.prototype.rh=function(){return this.K}; op.prototype.Jj=function(){var y=this;this.J=this.xe.Dj(function(){var q;return g.M(function(Q){if(Q.K==1)return y.K?((q=window.navigator)==null?0:q.onLine)?Q.ej(3):g.R(Q,rP(y),3):g.R(Q,rP(y),3);y.Jj();g.tH(Q)})},3E4)};g.x(NDb,Ho);var wQk=K0g(NDb,[0,d9,SoS,f0_,d9,-2,f0_,JnS]);Go.prototype.set=function(y,q){q=q===void 0?!0:q;0<=y&&y<52&&Number.isInteger(y)&&this.data[y]!==q&&(this.data[y]=q,this.K=-1)}; Go.prototype.get=function(y){return!!this.data[y]};var i6;g.bG(g.CX,g.I);g.K=g.CX.prototype;g.K.start=function(){this.stop();this.Y=!1;var y=HRg(this),q=Rh2(this);y&&!q&&this.W.mozRequestAnimationFrame?(this.K=g.vq(this.W,"MozBeforePaint",this.N),this.W.mozRequestAnimationFrame(null),this.Y=!0):this.K=y&&q?y.call(this.W,this.N):this.W.setTimeout(gqp(this.N),20)}; g.K.stop=function(){if(this.isActive()){var y=HRg(this),q=Rh2(this);y&&!q&&this.W.mozRequestAnimationFrame?h9(this.K):y&&q?q.call(this.W,this.K):this.W.clearTimeout(this.K)}this.K=null}; g.K.isActive=function(){return this.K!=null}; g.K.gX=function(){this.Y&&this.K&&h9(this.K);this.K=null;this.G.call(this.J,g.fh())}; g.K.FV=function(){this.stop();g.CX.FC.FV.call(this)};g.bG(g.y0,g.I);g.K=g.y0.prototype;g.K.Ai=0;g.K.FV=function(){g.y0.FC.FV.call(this);this.stop();delete this.K;delete this.W}; g.K.start=function(y){this.stop();this.Ai=g.ro(this.N,y!==void 0?y:this.Of)}; g.K.stop=function(){this.isActive()&&g.CS.clearTimeout(this.Ai);this.Ai=0}; g.K.isActive=function(){return this.Ai!=0}; g.K.wx=function(){this.Ai=0;this.K&&this.K.call(this.W)};g.x(g.pU,g.I);g.K=g.pU.prototype;g.K.ZK=function(y){this.N=arguments;this.AU||this.W?this.K=!0:vO(this)}; g.K.stop=function(){this.AU&&(g.CS.clearTimeout(this.AU),this.AU=null,this.K=!1,this.N=null)}; g.K.pause=function(){this.W++}; g.K.resume=function(){this.W--;this.W||!this.K||this.AU||(this.K=!1,vO(this))}; g.K.FV=function(){g.I.prototype.FV.call(this);this.stop()};g.dl.prototype[Symbol.iterator]=function(){return this}; g.dl.prototype.next=function(){var y=this.K.next();return{value:y.done?void 0:this.W.call(void 0,y.value),done:y.done}};g.bG(g.hr,g.Ky);g.K=g.hr.prototype;g.K.isPlaying=function(){return this.K==1}; g.K.isPaused=function(){return this.K==-1}; g.K.s2=function(){this.Mh("begin")}; g.K.T0=function(){this.Mh("end")}; g.K.onFinish=function(){this.Mh("finish")}; g.K.onStop=function(){this.Mh("stop")}; g.K.Mh=function(y){this.dispatchEvent(y)};var JK_=un(function(){var y=g.bn("DIV"),q=g.FU?"-webkit":G7?"-moz":null,Q="transition:opacity 1s linear;";q&&(Q+=q+"-transition:opacity 1s linear;");q=Su8({style:Q});if(y.nodeType===1&&/^(script|style)$/i.test(y.tagName))throw Error("");y.innerHTML=bl(q);return g.P0(y.firstChild,"transition")!=""});g.bG(bx,g.hr);g.K=bx.prototype;g.K.play=function(){if(this.isPlaying())return!1;this.s2();this.Mh("play");this.startTime=g.fh();this.K=1;if(JK_())return g.B0(this.W,this.G),this.N=g.ro(this.UTs,void 0,this),!0;this.NR(!1);return!1}; g.K.UTs=function(){g.v5(this.W);l7g(this.W,this.X);g.B0(this.W,this.Y);this.N=g.ro((0,g.wk)(this.NR,this,!1),this.J*1E3)}; g.K.stop=function(){this.isPlaying()&&this.NR(!0)}; g.K.NR=function(y){g.B0(this.W,"transition","");g.CS.clearTimeout(this.N);g.B0(this.W,this.Y);this.endTime=g.fh();this.K=0;if(y)this.onStop();else this.onFinish();this.T0()}; g.K.FV=function(){this.stop();bx.FC.FV.call(this)}; g.K.pause=function(){};var DS9={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,"var":!0};$y("Element","attributes")||$y("Node","attributes");$y("Element","innerHTML")||$y("HTMLElement","innerHTML");$y("Node","nodeName");$y("Node","nodeType");$y("Node","parentNode");$y("Node","childNodes");$y("HTMLElement","style")||$y("Element","style");$y("HTMLStyleElement","sheet");var US9=I7D("getPropertyValue"),rji=I7D("setProperty");$y("Element","namespaceURI")||$y("Node","namespaceURI");var cj8={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var BDi,xwq,eh9,Aj2,GeD;BDi=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]");xwq=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.FXq=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.WO=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]");eh9=/^http:\/\/.*/;g.Yje=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Aj2=/\s+/;GeD=/[\d\u06f0-\u06f9]/;tr.prototype.CX=function(){return new E$(this.W())}; tr.prototype[Symbol.iterator]=function(){return new ky(this.W())}; tr.prototype.K=function(){return new ky(this.W())}; g.x(E$,g.Rz);E$.prototype.next=function(){return this.W.next()}; E$.prototype[Symbol.iterator]=function(){return new ky(this.W)}; E$.prototype.K=function(){return new ky(this.W)}; g.x(ky,tr);ky.prototype.next=function(){return this.N.next()};a4.prototype.clone=function(){return new a4(this.K,this.X,this.N,this.J,this.Y,this.G,this.W,this.C)}; a4.prototype.equals=function(y){return this.K==y.K&&this.X==y.X&&this.N==y.N&&this.J==y.J&&this.Y==y.Y&&this.G==y.G&&this.W==y.W&&this.C==y.C};S4.prototype.clone=function(){return new S4(this.start,this.end)};(function(){if(avp){var y=/Windows NT ([0-9.]+)/;return(y=y.exec(g.cK()))?y[1]:"0"}return kc?(y=/1[0|1][_.][0-9_.]+/,(y=y.exec(g.cK()))?y[0].replace(/_/g,"."):"10"):g.QB?(y=/Android\s+([^\);]+)(\)|;)/,(y=y.exec(g.cK()))?y[1]:""):z_h||Dwm||ucn?(y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(y=y.exec(g.cK()))?y[1].replace(/_/g,"."):""):""})();var iRp=function(){if(g.bU)return HO(/Firefox\/([0-9.]+)/);if(g.KU||g.iv||g.pn)return ZhS;if(g.NL){if(nI()||gV()){var y=HO(/CriOS\/([0-9.]+)/);if(y)return y}return HO(/Chrome\/([0-9.]+)/)}if(g.W9&&!nI())return HO(/Version\/([0-9.]+)/);if(yB||qx){if(y=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.cK()))return y[1]+"."+y[2]}else if(g.vr)return(y=HO(/Android\s+([0-9.]+)/))?y:HO(/Version\/([0-9.]+)/);return""}();g.bG(g.s$,g.I);g.K=g.s$.prototype;g.K.subscribe=function(y,q,Q){var p=this.W[y];p||(p=this.W[y]=[]);var v=this.G;this.K[v]=y;this.K[v+1]=q;this.K[v+2]=Q;this.G=v+3;p.push(v);return v}; g.K.unsubscribe=function(y,q,Q){if(y=this.W[y]){var p=this.K;if(y=y.find(function(v){return p[v+1]==q&&p[v+2]==Q}))return this.OY(y)}return!1}; g.K.OY=function(y){var q=this.K[y];if(q){var Q=this.W[q];this.Y!=0?(this.N.push(y),this.K[y+1]=function(){}):(Q&&g.Lh(Q,y),delete this.K[y],delete this.K[y+1],delete this.K[y+2])}return!!q}; g.K.publish=function(y,q){var Q=this.W[y];if(Q){var p=Array(arguments.length-1),v=arguments.length,d;for(d=1;d0&&this.Y==0)for(;Q=this.N.pop();)this.OY(Q)}}return d!=0}return!1}; g.K.clear=function(y){if(y){var q=this.W[y];q&&(q.forEach(this.OY,this),delete this.W[y])}else this.K.length=0,this.W={}}; g.K.FV=function(){g.s$.FC.FV.call(this);this.clear();this.N.length=0};g.MM.prototype.set=function(y,q){q===void 0?this.KW.remove(y):this.KW.set(y,g.Bq(q))}; g.MM.prototype.get=function(y){try{var q=this.KW.get(y)}catch(Q){return}if(q!==null)try{return JSON.parse(q)}catch(Q){throw"Storage: Invalid value was encountered";}}; g.MM.prototype.remove=function(y){this.KW.remove(y)};g.bG(lx,g.MM);lx.prototype.set=function(y,q){lx.FC.set.call(this,y,C3g(q))}; lx.prototype.dO=function(y){y=lx.FC.get.call(this,y);if(y===void 0||y instanceof Object)return y;throw"Storage: Invalid value was encountered";}; lx.prototype.get=function(y){if(y=this.dO(y)){if(y=y.data,y===void 0)throw"Storage: Invalid value was encountered";}else y=void 0;return y};g.bG(z9,lx);z9.prototype.set=function(y,q,Q){if(q=C3g(q)){if(Q){if(Q=Q.length)return g.Om;var v=Q.key(q++);if(y)return g.sp(v);v=Q.getItem(v);if(typeof v!=="string")throw"Storage mechanism: Invalid value was encountered";return g.sp(v)}; return p}; g.K.clear=function(){nU(this);this.K.clear()}; g.K.key=function(y){nU(this);return this.K.key(y)};g.bG(gl,I4);g.bG(jwi,I4);g.bG(cO,ux);cO.prototype.set=function(y,q){this.W.set(this.K+y,q)}; cO.prototype.get=function(y){return this.W.get(this.K+y)}; cO.prototype.remove=function(y){this.W.remove(this.K+y)}; cO.prototype.CX=function(y){var q=this.W[Symbol.iterator](),Q=this,p=new g.Rz;p.next=function(){var v=q.next();if(v.done)return v;for(v=v.value;v.slice(0,Q.K.length)!=Q.K;){v=q.next();if(v.done)return v;v=v.value}return g.sp(y?v.slice(Q.K.length):Q.W.get(v))}; return p};rl.prototype.getValue=function(){return this.W}; rl.prototype.clone=function(){return new rl(this.K,this.W)};g.K=o4.prototype;g.K.TW=function(y,q){var Q=this.K;Q.push(new rl(y,q));y=Q.length-1;q=this.K;for(Q=q[y];y>0;){var p=y-1>>1;if(q[p].K>Q.K)q[y]=q[p],y=p;else break}q[y]=Q}; g.K.remove=function(){var y=this.K,q=y.length,Q=y[0];if(!(q<=0)){if(q==1)y.length=0;else{y[0]=y.pop();y=0;q=this.K;for(var p=q.length,v=q[y];y

>1;){var d=y*2+1,T=y*2+2;d=Tv.K)break;q[y]=q[d];y=d}q[y]=v}return Q.getValue()}}; g.K.mL=function(){for(var y=this.K,q=[],Q=y.length,p=0;p>>16&65535|0;for(var d;Q!==0;){d=Q>2E3?2E3:Q;Q-=d;do v=v+q[p++]|0,y=y+v|0;while(--d);v%=65521;y%=65521}return v|y<<16|0};for(var x2={},Ka,KXe=[],xP=0;xP<256;xP++){Ka=xP;for(var xRS=0;xRS<8;xRS++)Ka=Ka&1?3988292384^Ka>>>1:Ka>>>1;KXe[xP]=Ka}x2=function(y,q,Q,p){Q=p+Q;for(y^=-1;p>>8^KXe[(y^q[p])&255];return y^-1};var Oe={};Oe={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 jc=[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],vA=[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],Noj=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],byp=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y2=Array(576);G9(Y2);var fE=Array(60);G9(fE);var pE=Array(512);G9(pE);var q$=Array(256);G9(q$);var QM=Array(29);G9(QM);var dX=Array(30);G9(dX);var kD9,Lf8,aj2,Evj=!1;var k2;k2=[new Ee(0,0,0,0,function(y,q){var Q=65535;for(Q>y.Ur-5&&(Q=y.Ur-5);;){if(y.oH<=1){WA(y);if(y.oH===0&&q===0)return 1;if(y.oH===0)break}y.wm+=y.oH;y.oH=0;var p=y.Fz+Q;if(y.wm===0||y.wm>=p)if(y.oH=y.wm-p,y.wm=p,ht(y,!1),y.tj.jb===0)return 1;if(y.wm-y.Fz>=y.eY-262&&(ht(y,!1),y.tj.jb===0))return 1}y.TW=0;if(q===4)return ht(y,!0),y.tj.jb===0?3:4;y.wm>y.Fz&&ht(y,!1);return 1}), new Ee(4,4,8,4,Z9),new Ee(4,5,16,8,Z9),new Ee(4,6,32,32,Z9),new Ee(4,4,16,16,tt),new Ee(8,16,32,32,tt),new Ee(8,16,128,128,tt),new Ee(8,32,128,256,tt),new Ee(32,128,258,1024,tt),new Ee(32,258,258,4096,tt)];var ttC={};ttC=function(){this.input=null;this.yH=this.ri=this.QO=0;this.output=null;this.sE=this.jb=this.T_=0;this.msg="";this.state=null;this.As=2;this.vO=0};var Sni=Object.prototype.toString; LE.prototype.push=function(y,q){var Q=this.tj,p=this.options.chunkSize;if(this.ended)return!1;var v=q===~~q?q:q===!0?4:0;typeof y==="string"?Q.input=vvH(y):Sni.call(y)==="[object ArrayBuffer]"?Q.input=new Uint8Array(y):Q.input=y;Q.QO=0;Q.ri=Q.input.length;do{Q.jb===0&&(Q.output=new BO.hm(p),Q.T_=0,Q.jb=p);y=Zyb(Q,v);if(y!==1&&y!==0)return this.T0(y),this.ended=!0,!1;if(Q.jb===0||Q.ri===0&&(v===4||v===2))if(this.options.to==="string"){var d=BO.CZ(Q.output,Q.T_);q=d;d=d.length;if(d<65537&&(q.subarray&& $Rm||!q.subarray))q=String.fromCharCode.apply(null,BO.CZ(q,d));else{for(var T="",O=0;O0||Q.jb===0)&&y!==1);if(v===4)return(Q=this.tj)&&Q.state?(p=Q.state.status,p!==42&&p!==69&&p!==73&&p!==91&&p!==103&&p!==113&&p!==666?y=wX(Q,-2):(Q.state=null,y=p===113?wX(Q,-3):0)):y=-2,this.T0(y),this.ended=!0,y===0;v===2&&(this.T0(0),Q.jb=0);return!0}; LE.prototype.T0=function(y){y===0&&(this.result=this.options.to==="string"?this.chunks.join(""):BO.Ih(this.chunks));this.chunks=[];this.err=y;this.msg=this.tj.msg};var N$="@@redux/INIT"+a3(),zQb="@@redux/REPLACE"+a3();var DNs=typeof Symbol==="function"&&Symbol.observable||"@@observable";var WXc=[0,kuG,-3,vd];g.x(gvC,Ho);var Xj8=K0g(gvC,[0,d9,Lnw,qy,kuG,qy,-1,vd,kuG,vd,-1,d9,vd,Lnw,j9,WXc,qy,-1,vd]);var c92=-2076908457;var ZIe=function(y,q){return function(){var Q=new hxC(y,q,KQ);return function(){return Q}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var TU3=new g.R3("adInfoDialogEndpoint");var giS=new g.R3("adPingingEndpoint");var vRC=new g.R3("crossDeviceProgressCommand");var r7=new g.R3("actionCompanionAdRenderer");var vs=new g.R3("adActionInterstitialRenderer");var tkC=new g.R3("adDurationRemainingRenderer");var $T=new g.R3("adHoverTextButtonRenderer");var vCb=new g.R3("adInfoDialogRenderer");var yv=new g.R3("adMessageRenderer");var KF=new g.R3("adPreviewRenderer");var Aq=new g.R3("adsEngagementPanelRenderer");var sC9=new g.R3("dismissablePanelTextPortraitImageRenderer");var VA=new g.R3("adsEngagementPanelSectionListViewModel");var EZ_=new g.R3("flyoutCtaRenderer");var o6=new g.R3("imageCompanionAdRenderer");var QC=new g.R3("instreamAdPlayerOverlayRenderer");var nD_=new g.R3("instreamSurveyAdBackgroundImageRenderer");var bE=new g.R3("instreamSurveyAdPlayerOverlayRenderer");var ju=new g.R3("instreamSurveyAdRenderer"),ha=new g.R3("instreamSurveyAdSingleSelectQuestionRenderer"),fF=new g.R3("instreamSurveyAdMultiSelectQuestionRenderer"),Wd=new g.R3("instreamSurveyAdAnswerRenderer"),kq_=new g.R3("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var yA=new g.R3("instreamVideoAdRenderer");var LXk=new g.R3("textOverlayAdContentRenderer"),adC=new g.R3("enhancedTextOverlayAdContentRenderer"),NVC=new g.R3("imageOverlayAdContentRenderer");var pN=new g.R3("playerOverlayLayoutRenderer");var dZ=new g.R3("videoInterstitialButtonedCenteredLayoutRenderer");var uxj=new g.R3("aboveFeedAdLayoutRenderer");var IFC=new g.R3("belowPlayerAdLayoutRenderer");var Dsi=new g.R3("inPlayerAdLayoutRenderer");var nSg=new g.R3("inPlayerOrganicOverlayAdLayoutRenderer");var vc=new g.R3("playerBytesAdLayoutRenderer");var FE=new g.R3("playerBytesSequenceItemAdLayoutRenderer");var Ja=new g.R3("playerUnderlayAdLayoutRenderer");var qY=new g.R3("adIntroRenderer");var m4=new g.R3("playerBytesSequentialLayoutRenderer");var $p8=new g.R3("slidingTextPlayerOverlayRenderer");var QA=new g.R3("surveyTextInterstitialRenderer");var di=new g.R3("videoAdTrackingRenderer");var NTS=new g.R3("videoInterstitialCenteredLayoutViewModel");var Sjm=new g.R3("simpleAdBadgeRenderer");var UK=new g.R3("skipAdRenderer"),HIS=new g.R3("skipButtonRenderer");var ta=new g.R3("adSlotRenderer");var Ok=new g.R3("squeezebackPlayerSidePanelRenderer");var R6G=new g.R3("timedPieCountdownRenderer");var ou=new g.R3("adAvatarViewModel");var Ah=new g.R3("adBadgeViewModel");var eS=new g.R3("adButtonViewModel");var s2u=new g.R3("adDetailsLineViewModel");var Mk_=new g.R3("adDisclosureBannerViewModel");var ldX=new g.R3("adPodIndexViewModel");var z6u=new g.R3("imageBackgroundViewModel");var DRe=new g.R3("adGridCardCollectionViewModel");var uBm=new g.R3("adGridCardTextViewModel");var Idq=new g.R3("adPreviewViewModel");var nZc=new g.R3("playerAdAvatarLockupCardButtonedViewModel");var gZk=new g.R3("skipAdButtonViewModel");var cK_=new g.R3("skipAdViewModel");var URe=new g.R3("timedPieCountdownViewModel");var rKk=new g.R3("visitAdvertiserLinkViewModel");var eV=new g.R3("bannerImageLayoutViewModel");var Bh=new g.R3("topBannerImageTextIconButtonedLayoutViewModel");var GB=new g.R3("adsEngagementPanelLayoutViewModel");var wi=new g.R3("displayUnderlayTextGridCardsLayoutViewModel");g.jY=new g.R3("browseEndpoint");var oZc=new g.R3("confirmDialogEndpoint");var Gi2=new g.R3("commandContext");var WUp=new g.R3("rawColdConfigGroup");var x7S=new g.R3("rawHotConfigGroup");g.Wt=new g.R3("commandExecutorCommand");g.x(r9b,Ho);var iBb={HHy:0,j2I:1,mrm:32,gnI:61,Urs:67,rTm:103,JTB:86,Yls:42,aaB:60,fXf:62,e$B:73,wGw:76,sqj:88,vnK:90,Enf:99,MWs:98,QqK:100,SlK:102,iP3:41,LVV:69,GYw:70,pGw:71,v63:2,QLK:27,ANDROID:3,Z1m:54,hNK:14,ovK:91,b1y:55,BSw:24,kLb:20,tPj:18,zNy:21,TSs:104,dpm:30,IjK:29,O1K:28,n0B:101,P4K:34,ljV:36,H1b:38,IOS:5,eRI:15,iX3:92,gEs:40,JMf:25,rMw:17,s5j:19,vEV:64,Q5p:66,UJ$:26,GCf:22,px$:33,VA3:68,xJy:35,EEI:53,L$f:37,yM3:39,E0V:7,iHK:57,L1y:43,p9B:59,GxK:93,C4s:74,V4$:75,xqK:85,X9j:65,hE3:80,bHK:8,Q2K:10, kxV:58,BDm:63,ZHy:72,nvf:23,XGj:11,ZPm:13,xBV:12,UqK:16,FVj:56,yTf:31,y0V:77,z4s:84,uZy:87,APf:89,Tks:94,c0y:95};g.x(se,Ho);se.prototype.GK=function(){return Do(this,3)}; se.prototype.By=function(){return Do(this,5)}; se.prototype.Yl=function(y){return cv(this,5,y)};g.x(M$,Ho);g.x(ovS,Ho);g.x(lp,Ho);g.K=lp.prototype;g.K.getDeviceId=function(){return Do(this,6)}; g.K.BE=function(y){var q=wF(this,9,Z8,3,!0);mg(q,y);return q[y]}; g.K.getPlayerType=function(){return uD(this,36)}; g.K.setHomeGroupInfo=function(y){return RM(this,ovS,81,y)}; g.K.clearLocationPlayabilityToken=function(){return vv(this,89)};g.x(zc,Ho);zc.prototype.getValue=function(){return Do(this,Eq(this,$79,2))}; var $79=[2,3,4,5,6];g.x(D9,Ho);D9.prototype.setTrackingParams=function(y){return vv(this,1,cnD(y,!1))};g.x(up,Ho);g.x(I3,Ho);I3.prototype.BE=function(y){var q=wF(this,5,ti,3,!0);mg(q,y);return q[y]};g.x(nE,Ho);nE.prototype.getToken=function(){return nA(this,2)}; nE.prototype.setToken=function(y){return cv(this,2,y)};g.x(gX,Ho);gX.prototype.setSafetyMode=function(y){return rF(this,5,y)};g.x(cA,Ho);cA.prototype.v0=function(y){return RM(this,lp,1,y)};var Wc=new g.R3("thumbnailLandscapePortraitRenderer");g.AKk=new g.R3("changeEngagementPanelVisibilityAction");var Dbi=new g.R3("continuationCommand");g.e6w=new g.R3("openPopupAction");var BVm=new g.R3("signalAction");g.ZV=new g.R3("webCommandMetadata");var LAp=new g.R3("metadataBadgeRenderer");var zgD=new g.R3("signalServiceEndpoint");var u$=new g.R3("innertubeCommand");var KGS=new g.R3("loggingDirectives");var SIp={SaK:"EMBEDDED_PLAYER_MODE_UNKNOWN",ab3:"EMBEDDED_PLAYER_MODE_DEFAULT",wCK:"EMBEDDED_PLAYER_MODE_PFP",uMI:"EMBEDDED_PLAYER_MODE_PFL"};var Xc2=new g.R3("channelThumbnailEndpoint");var iF3=new g.R3("embeddedPlayerErrorMessageRenderer");var evS=new g.R3("embeddedPlayerOverlayVideoDetailsRenderer"),mYC=new g.R3("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),CE2=new g.R3("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var tus=new g.R3("embedsInfoPanelRenderer");var t99=new g.R3("feedbackEndpoint");var Gq_=new g.R3("callToActionButtonViewModel");var PlX=new g.R3("interactionLoggingCommandMetadata");var EyD={N8I:"WEB_DISPLAY_MODE_UNKNOWN",KVm:"WEB_DISPLAY_MODE_BROWSER",cTf:"WEB_DISPLAY_MODE_MINIMAL_UI",R$b:"WEB_DISPLAY_MODE_STANDALONE",WVp:"WEB_DISPLAY_MODE_FULLSCREEN"};g.x(Ue,Ho);Ue.prototype.getPlayerType=function(){return uD(this,7)}; Ue.prototype.A1=function(){return Do(this,19)}; Ue.prototype.setVideoId=function(y){return cv(this,19,y)};g.x(o3,Ho);g.x(At,Ho);g.x(ec,Ho); var iIh=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var XQG=new g.R3("loggingContext");g.x(BA,Ho);g.x(Gc,Ho);Gc.prototype.A1=function(){return nA(this,Eq(this,wy,1))}; Gc.prototype.setVideoId=function(y){return KA(this,1,wy,RA(y))}; Gc.prototype.getPlaylistId=function(){return nA(this,Eq(this,wy,2))}; var wy=[1,2];g.x(A9b,Ho);var sB=new g.R3("changeKeyedMarkersVisibilityCommand");var mRk=new g.R3("changeMarkersVisibilityCommand");var Nib=new g.R3("loadMarkersCommand");var ClC=new g.R3("suggestedActionDataViewModel");var yGj=new g.R3("timelyActionViewModel");var Ca3=new g.R3("timelyActionsOverlayViewModel");var hig=new g.R3("productListItemRenderer");var yYC=new g.R3("shoppingOverlayRenderer");var Big=new g.R3("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var qQ_=new g.R3("adFeedbackEndpoint");var jlh=new g.R3("menuEndpoint");var WVg=new g.R3("phoneDialerEndpoint");var KVi=new g.R3("sendSmsEndpoint");var AaD=new g.R3("copyTextEndpoint");var Qlu=new g.R3("shareEndpoint"),p0X=new g.R3("shareEntityEndpoint"),vn_=new g.R3("shareEntityServiceEndpoint"),ddS=new g.R3("webPlayerShareEntityServiceEndpoint");g.cN=new g.R3("urlEndpoint");g.H3=new g.R3("watchEndpoint");var T0m=new g.R3("watchPlaylistEndpoint");g.V_q=new g.R3("offlineOrchestrationActionCommand");var llg=new g.R3("compositeVideoOverlayRenderer");var OiG=new g.R3("miniplayerRenderer");var ra3=new g.R3("paidContentOverlayRenderer");var w0X=new g.R3("playerMutedAutoplayOverlayRenderer"),JYX=new g.R3("playerMutedAutoplayEndScreenRenderer");var gjs=new g.R3("unserializedPlayerResponse"),F0_=new g.R3("unserializedPlayerResponse");var YQ_=new g.R3("playlistEditEndpoint");var tU;g.xT=new g.R3("buttonRenderer");tU=new g.R3("toggleButtonRenderer");var Hri=new g.R3("counterfactualRenderer");var f5G=new g.R3("resolveUrlCommandMetadata");var hxu=new g.R3("modifyChannelNotificationPreferenceEndpoint");var niS=new g.R3("pingingEndpoint");var bim=new g.R3("unsubscribeEndpoint");g.Qo=new g.R3("subscribeButtonRenderer");var $dq=new g.R3("subscribeEndpoint");var Z3H=new g.R3("buttonViewModel");var ROs=new g.R3("qrCodeRenderer");var mD9={Cej:"LIVING_ROOM_APP_MODE_UNSPECIFIED",lxm:"LIVING_ROOM_APP_MODE_MAIN",oEK:"LIVING_ROOM_APP_MODE_KIDS",dJj:"LIVING_ROOM_APP_MODE_MUSIC",nEs:"LIVING_ROOM_APP_MODE_UNPLUGGED",DJs:"LIVING_ROOM_APP_MODE_GAMING"};var xYf=new g.R3("autoplaySwitchButtonRenderer");var v3,Ocf,B7f,W1H;v3=new g.R3("decoratedPlayerBarRenderer");Ocf=new g.R3("chapteredPlayerBarRenderer");B7f=new g.R3("multiMarkersPlayerBarRenderer");W1H=new g.R3("chapterRenderer");g.Y5p=new g.R3("markerRenderer");var L1f=new g.R3("decoratedPlayheadRenderer");var ETi=new g.R3("desktopOverlayConfigRenderer");var Mdi=new g.R3("engagementPanelSectionListRenderer");var ZFS=new g.R3("gatedActionsOverlayViewModel");var $zD=new g.R3("heatMarkerRenderer");var bcb=new g.R3("heatmapRenderer");var aY8=new g.R3("watchToWatchTransitionRenderer");var Grs=new g.R3("playlistPanelRenderer");var K0k=new g.R3("productUpsellSuggestedActionViewModel");var xdc=new g.R3("suggestedActionTimeRangeTrigger"),W0C=new g.R3("suggestedActionsRenderer"),ZiG=new g.R3("suggestedActionRenderer");var K13=new g.R3("timedMarkerDecorationRenderer");var G0i=new g.R3("cipher");var cq8=new g.R3("playerVars");var t_c=new g.R3("playerVars");var Em=g.CS.window,Enq,k7k,PA=(Em==null?void 0:(Enq=Em.yt)==null?void 0:Enq.config_)||(Em==null?void 0:(k7k=Em.ytcfg)==null?void 0:k7k.data_)||{};g.y_("yt.config_",PA);var CE=[];var qIC=/^[\w.]*$/,XqD={q:!0,search_query:!0},iy9=String(Q9);var YQ=new function(){var y=window.document;this.K=window;this.W=y}; g.y_("yt.ads_.signals_.getAdSignalsString",function(y){return p9(hM(y))});g.fh();var QT9="XMLHttpRequest"in g.CS?function(){return new XMLHttpRequest}:null;var L0m="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.hH(L0m);var TNj={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},KCs="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.hH(L0m)),fMs=!1,JSg=Ss;g.x(sx,$q);zS.prototype.then=function(y,q,Q){return this.K?this.K.then(y,q,Q):this.N===1&&y?(y=y.call(Q,this.W))&&typeof y.then==="function"?y:ub(y):this.N===2&&q?(y=q.call(Q,this.W))&&typeof y.then==="function"?y:D1(y):this}; zS.prototype.getValue=function(){return this.W}; zS.prototype.$goog_Thenable=!0;var Io=!1;var P9=yB||qx;var aM3=/^([0-9\.]+):([0-9\.]+)$/;g.x(bw,$q);bw.prototype.name="BiscottiError";g.x(hp,$q);hp.prototype.name="BiscottiMissingError";var RLS={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},$J=null;var qui=g.b8(["data-"]),g9H={};var a5k=0,K_=g.FU?"webkit":G7?"moz":g.KU?"ms":g.pn?"o":"",N0S=g.qw("ytDomDomGetNextId")||function(){return++a5k}; g.y_("ytDomDomGetNextId",N0S);var o9i={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};kJ.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; kJ.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; kJ.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var L_=g.CS.ytEventsEventsListeners||{};g.y_("ytEventsEventsListeners",L_);var BNf=g.CS.ytEventsEventsCounter||{count:0};g.y_("ytEventsEventsCounter",BNf);var Xw3=un(function(){var y=!1;try{var q=Object.defineProperty({},"passive",{get:function(){y=!0}}); window.addEventListener("test",null,q)}catch(Q){}return y}),GQf=un(function(){var y=!1; try{var q=Object.defineProperty({},"capture",{get:function(){y=!0}}); window.addEventListener("test",null,q)}catch(Q){}return y});var kP;kP=window;g.SK=kP.ytcsi&&kP.ytcsi.now?kP.ytcsi.now:kP.performance&&kP.performance.timing&&kP.performance.now&&kP.performance.timing.navigationStart?function(){return kP.performance.timing.navigationStart+kP.performance.now()}:function(){return(new Date).getTime()};g.bG(Re,g.I);Re.prototype.j=function(y){y.K===void 0&&AS8(y);var q=y.K;y.W===void 0&&AS8(y);this.K=new g.ek(q,y.W)}; Re.prototype.gP=function(){return this.K||new g.ek}; Re.prototype.cI=function(){if(this.K){var y=(0,g.SK)();if(this.Y!=0){var q=this.G,Q=this.K,p=q.x-Q.x;q=q.y-Q.y;p=Math.sqrt(p*p+q*q)/(y-this.Y);this.W[this.N]=Math.abs((p-this.J)/this.J)>.5?1:0;for(Q=q=0;Q<4;Q++)q+=this.W[Q]||0;q>=3&&this.X();this.J=p}this.Y=y;this.G=this.K;this.N=(this.N+1)%4}}; Re.prototype.FV=function(){g.tM(this.C);g.Nx(this.N$)};g.x(sM,g.I);sM.prototype.Z=function(y,q,Q,p,v){Q=g.q7((0,g.wk)(Q,p||this.RH));Q={target:y,name:q,callback:Q};var d;v&&Xw3()&&(d={passive:!0});y.addEventListener(q,Q.callback,d);this.X.push(Q);return Q}; sM.prototype.UW=function(y){for(var q=0;q=c.qX)||k.K.version>=X||k.K.objectStoreNames.contains(u)||N.push(u)}w=N;if(w.length===0){Z.ej(5);break}J=Object.keys(Q.options.tG); F=O.objectStoreNames();if(Q.JQ.options.version+1)throw f.close(),Q.N=!1,IeC(Q,h);return Z.return(f);case 8:throw q(), Y instanceof Error&&!g.kQ("ytidb_async_stack_killswitch")&&(Y.stack=Y.stack+"\n"+T.substring(T.indexOf("\n")+1)),ZG(Y,Q.name,"",(b=Q.options.version)!=null?b:-1);}})} function q(){Q.K===p&&(Q.K=void 0)} var Q=this;if(!this.N)throw IeC(this);if(this.K)return this.K;var p,v={blocking:function(d){d.close()}, closed:q,Nhw:q,upgrade:this.options.upgrade};return this.K=p=y()};var B9=new A_("YtIdbMeta",{tG:{databases:{qX:1}},upgrade:function(y,q){q(1)&&g.sf(y,"databases",{keyPath:"actualName"})}});var mG,Xy=new function(){}(new function(){});new g.$9;g.x(q3,A_);q3.prototype.W=function(y,q,Q){Q=Q===void 0?{}:Q;return(this.options.shared?BPb:eej)(y,q,Object.assign({},Q))}; q3.prototype.delete=function(y){y=y===void 0?{}:y;return(this.options.shared?XHC:Go2)(this.name,y)};var uUw={},C63=g.jB("ytGcfConfig",{tG:(uUw.coldConfigStore={qX:1},uUw.hotConfigStore={qX:1},uUw),shared:!1,upgrade:function(y,q){q(1)&&(g.Ik(g.sf(y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Ik(g.sf(y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.x(p0,g.I);p0.prototype.FV=function(){for(var y=g.t(this.W),q=y.next();!q.done;q=y.next()){var Q=this.K;q=Q.indexOf(q.value);q>=0&&Q.splice(q,1)}this.W.length=0;g.I.prototype.FV.call(this)};JP.prototype.Yl=function(y){this.hotHashData=y;g.y_("yt.gcf.config.hotHashData",this.hotHashData||null)};var I5q=typeof TextEncoder!=="undefined"?new TextEncoder:null,UMC=I5q?function(y){return I5q.encode(y)}:function(y){y=g.H5(y); for(var q=new Uint8Array(y.length),Q=0;Q=q?!1:!0}; g.K.Zu=function(){var y=this;if(!lI(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.De.s5("QUEUED",this.qT).then(function(q){q&&!y.pR(q,y.zM)?y.xe.Dj(function(){return g.M(function(Q){if(Q.K==1)return q.id===void 0?Q.ej(2):g.R(Q,y.De.mM(q.id,y.qT),2);y.Zu();g.tH(Q)})}):y.sY.rh()&&y.d3()})};var uI;var EQ2={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72, visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337, tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359, activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378, browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396, gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419, sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4, musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440, embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463, getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488, unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513, connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var gne={},d$b=g.jB("ServiceWorkerLogsDatabase",{tG:(gne.SWHealthLog={qX:1},gne),shared:!0,upgrade:function(y,q){q(1)&&g.Ik(g.sf(y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var gW={},FJC=0;var cV;rW.prototype.requestComplete=function(y,q){q&&(this.W=!0);y=this.removeParams(y);this.K.get(y)||this.K.set(y,q)}; rW.prototype.isEndpointCFR=function(y){y=this.removeParams(y);return(y=this.K.get(y))?!1:y===!1&&this.W?!0:null}; rW.prototype.removeParams=function(y){return y.split("?")[0]}; rW.prototype.removeParams=rW.prototype.removeParams;rW.prototype.isEndpointCFR=rW.prototype.isEndpointCFR;rW.prototype.requestComplete=rW.prototype.requestComplete;rW.getInstance=oc;g.x(AP,g.Ky);g.K=AP.prototype;g.K.rh=function(){return this.K.rh()}; g.K.yO=function(y){this.K.K=y}; g.K.Rx=function(){var y=window.navigator.onLine;return y===void 0?!0:y}; g.K.AC=function(){this.W=!0}; g.K.listen=function(y,q){return this.K.listen(y,q)}; g.K.zZ=function(y){y=rP(this.K,y);y.then(function(q){g.kQ("use_cfr_monitor")&&oc().requestComplete("generate_204",q)}); return y}; AP.prototype.sendNetworkCheckRequest=AP.prototype.zZ;AP.prototype.listen=AP.prototype.listen;AP.prototype.enableErrorFlushing=AP.prototype.AC;AP.prototype.getWindowStatus=AP.prototype.Rx;AP.prototype.networkStatusHint=AP.prototype.yO;AP.prototype.isNetworkAvailable=AP.prototype.rh;AP.getInstance=hpb;g.x(g.eB,g.Ky);g.eB.prototype.rh=function(){var y=g.qw("yt.networkStatusManager.instance.isNetworkAvailable");return y?y.bind(this.W)():!0}; g.eB.prototype.yO=function(y){var q=g.qw("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);q&&q(y)}; g.eB.prototype.zZ=function(y){var q=this,Q;return g.M(function(p){Q=g.qw("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(q.W);return g.kQ("skip_network_check_if_cfr")&&oc().isEndpointCFR("generate_204")?p.return(new Promise(function(v){var d;q.yO(((d=window.navigator)==null?void 0:d.onLine)||!0);v(q.rh())})):Q?p.return(Q(y)):p.return(!0)})};var BV;g.x(GU,zU);GU.prototype.writeThenSend=function(y,q){q||(q={});q=iI(y,q);g.iw()||(this.K=!1);zU.prototype.writeThenSend.call(this,y,q)}; GU.prototype.sendThenWrite=function(y,q,Q){q||(q={});q=iI(y,q);g.iw()||(this.K=!1);zU.prototype.sendThenWrite.call(this,y,q,Q)}; GU.prototype.sendAndWrite=function(y,q){q||(q={});q=iI(y,q);g.iw()||(this.K=!1);zU.prototype.sendAndWrite.call(this,y,q)}; GU.prototype.awaitInitialization=function(){return this.N.promise};var WJb=g.CS.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.y_("ytNetworklessLoggingInitializationOptions",WJb);g.XX.prototype.isReady=function(){!this.config_&&bU3()&&(this.config_=g.Yf());return!!this.config_};var cYw,y8,j$;cYw=g.CS.ytPubsubPubsubInstance||new g.s$;y8=g.CS.ytPubsubPubsubSubscribedKeys||{};j$=g.CS.ytPubsubPubsubTopicToKeys||{};g.qB=g.CS.ytPubsubPubsubIsSynchronous||{};g.s$.prototype.subscribe=g.s$.prototype.subscribe;g.s$.prototype.unsubscribeByKey=g.s$.prototype.OY;g.s$.prototype.publish=g.s$.prototype.publish;g.s$.prototype.clear=g.s$.prototype.clear;g.y_("ytPubsubPubsubInstance",cYw);g.y_("ytPubsubPubsubTopicToKeys",j$);g.y_("ytPubsubPubsubIsSynchronous",g.qB); g.y_("ytPubsubPubsubSubscribedKeys",y8);var a9g={};g.x(bt,g.I);bt.prototype.append=function(y){if(!this.W)throw Error("This does not support the append operation");y=y.aH();this.aH().appendChild(y)}; g.x($i,bt);$i.prototype.aH=function(){return this.K};g.x(Kb,g.I);Kb.prototype.onTouchStart=function(y){this.X=!0;this.W=y.touches.length;this.K.isActive()&&(this.K.stop(),this.J=!0);y=y.touches;this.G=HEi(this,y)||y.length!=1;var q=y.item(0);this.G||!q?this.j=this.C=Infinity:(this.C=q.clientX,this.j=q.clientY);for(q=this.N.length=0;q=0)}if(q||y&&Math.pow(y.clientX-this.C,2)+Math.pow(y.clientY-this.j,2)>25)this.Y=!0}; Kb.prototype.onTouchEnd=function(y){var q=y.changedTouches;q&&this.X&&this.W==1&&!this.Y&&!this.J&&!this.G&&HEi(this,q)&&(this.cI=y,this.K.start());this.W=y.touches.length;this.W===0&&(this.Y=this.X=!1,this.N.length=0);this.J=!1};var xi=Date.now().toString();var ki={};var R$=Symbol("injectionDeps");a$.prototype.toString=function(){return"InjectionToken("+this.name+")"}; l99.prototype.resolve=function(y){return y instanceof NB?s4(this,y.key,[],!0):s4(this,y,[])};var MB;var z_=window;var nb=g.kQ("web_enable_lifecycle_monitoring")&&DX()!==0,rt3=g.kQ("web_enable_lifecycle_monitoring");g2i.prototype.cancel=function(){for(var y=g.t(this.K),q=y.next();!q.done;q=y.next())q=q.value,q.jobId===void 0||q.YB||this.scheduler.FM(q.jobId),q.YB=!0;this.W.resolve()};g.K=gw.prototype;g.K.install=function(y){this.plugins.push(y);return this}; g.K.uninstall=function(){var y=this;g.nS.apply(0,arguments).forEach(function(q){q=y.plugins.indexOf(q);q>-1&&y.plugins.splice(q,1)})}; g.K.transition=function(y,q){var Q=this;nb&&I9D(this.state);var p=this.transitions.find(function(d){return Array.isArray(d.from)?d.from.find(function(T){return T===Q.state&&d.to===y}):d.from===Q.state&&d.to===y}); if(p){this.W&&(ctp(this.W),this.W=void 0);o2i(this,y,q);this.state=y;nb&&ut(this.state);p=p.action.bind(this);var v=this.plugins.filter(function(d){return d[y]}).map(function(d){return d[y]}); p(U$3(this,v),q)}else throw Error("no transition specified from "+this.state+" to "+y);}; g.K.an$=function(y){var q=g.nS.apply(1,arguments);g.qb();for(var Q=g.t(y),p=Q.next(),v={};!p.done;v={Z8:void 0},p=Q.next())v.Z8=p.value,OXD(function(d){return function(){U4(d.Z8.name);o$(function(){return d.Z8.callback.apply(d.Z8,g.hH(q))}); rw(d.Z8.name)}}(v))}; g.K.mmj=function(y){var q=g.nS.apply(1,arguments),Q,p,v,d;return g.M(function(T){T.K==1&&(g.qb(),Q=g.t(y),p=Q.next(),v={});if(T.K!=3){if(p.done)return T.ej(0);v.OF=p.value;v.gB=void 0;d=function(O){return function(){U4(O.OF.name);var w=o$(function(){return O.OF.callback.apply(O.OF,g.hH(q))}); B$(w)?O.gB=g.kQ("web_lifecycle_error_handling_killswitch")?w.then(function(){rw(O.OF.name)}):w.then(function(){rw(O.OF.name)},function(J){n2C(J); rw(O.OF.name)}):rw(O.OF.name)}}(v); OXD(d);return v.gB?g.R(T,v.gB,3):T.ej(3)}v={OF:void 0,gB:void 0};p=Q.next();return T.ej(2)})}; g.K.rH=function(y){var q=g.nS.apply(1,arguments),Q=this,p=y.map(function(v){return{df:function(){U4(v.name);o$(function(){return v.callback.apply(v,g.hH(q))}); rw(v.name)}, priority:ca(Q,v)}}); p.length&&(this.W=new g2i(p))}; g.dg.Object.defineProperties(gw.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var e$;g.x(Az,gw);Az.prototype.J=function(y,q){var Q=this;this.K=g.C_(0,function(){Q.currentState==="application_navigating"&&Q.transition("none")},5E3); y(q==null?void 0:q.event)}; Az.prototype.G=function(y,q){this.K&&(g.BH.FM(this.K),this.K=null);y(q==null?void 0:q.event)};var KD=[];g.y_("yt.logging.transport.getScrapedGelPayloads",function(){return KD});Ba.prototype.storePayload=function(y,q){y=G_(y);this.store[y]?this.store[y].push(q):(this.W={},this.store[y]=[q]);this.K++;g.kQ("more_accurate_gel_parser")&&(q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(q));return y}; Ba.prototype.smartExtractMatchingEntries=function(y){if(!y.keys.length)return[];for(var q=Xs(this,y.keys.splice(0,1)[0]),Q=[],p=0;p=0){p=!1;break a}}p=!0}p&&(q=nD(q))&&this.eQ(q)}}; g.K.tq=function(y){return y}; g.K.onTouchStart=function(y){this.m3.onTouchStart(y)}; g.K.onTouchMove=function(y){this.m3.onTouchMove(y)}; g.K.onTouchEnd=function(y){if(this.m3)this.m3.onTouchEnd(y)}; g.K.eQ=function(y){this.layoutId?this.kf.executeCommand(y,this.layoutId):(y=new g.GH("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.l$(y))}; g.K.createServerVe=function(y,q){this.api.createServerVe(y,this);this.api.setTrackingParams(y,q)}; g.K.logVisibility=function(y,q){this.api.hasVe(y)&&this.api.logVisibility(y,q,this.interactionLoggingClientData)}; g.K.FV=function(){this.clear(null);this.UW(this.Os);for(var y=g.t(this.Sj),q=y.next();!q.done;q=y.next())this.UW(q.value);g.Ye.prototype.FV.call(this)};g.x(DI,f1); DI.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);this.K=q;if(q.text==null&&q.icon==null)g.zI(Error("ButtonRenderer did not have text or an icon set."));else{switch(q.style||null){case "STYLE_UNKNOWN":y="ytp-ad-button-link";break;default:y=null}y!=null&&g.wl(this.element,y);q.text!=null&&(y=g.b7(q.text),g.zu(y)||(this.element.setAttribute("aria-label",y),this.N=new g.Ye({S:"span",V:"ytp-ad-button-text",M$:y}),g.n(this,this.N),this.N.ym(this.element)));q.accessibilityData&&q.accessibilityData.accessibilityData&& q.accessibilityData.accessibilityData.label&&!g.zu(q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",q.accessibilityData.accessibilityData.label);q.icon!=null&&(q=zM(q.icon,this.Y),q!=null&&(this.W=new g.Ye({S:"span",V:"ytp-ad-button-icon",D:[q]}),g.n(this,this.W)),this.J?W0(this.element,this.W.element,0):this.W.ym(this.element))}}; DI.prototype.clear=function(){this.hide()}; DI.prototype.onClick=function(y){f1.prototype.onClick.call(this,y);y=g.t(Api(this));for(var q=y.next();!q.done;q=y.next())q=q.value,this.layoutId?this.kf.executeCommand(q,this.layoutId):g.l$(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.x(u7,g.I);u7.prototype.FV=function(){this.W&&g.Nx(this.W);this.K.clear();Iy=null;g.I.prototype.FV.call(this)}; u7.prototype.register=function(y,q){q&&this.K.set(y,q)}; var Iy=null;g.x(UP,f1); UP.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);y=q.hoverText||null;q=q.button&&g.U(q.button,g.xT)||null;q==null?g.l$(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new DI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,void 0,void 0,void 0,void 0,this.N),g.n(this,this.button),this.button.init(da("button"),q,this.macros),y&&this.button.element.setAttribute("aria-label",g.b7(y)),this.button.ym(this.element),this.j&&!g.O$(this.button.element, "ytp-ad-clickable")&&g.wl(this.button.element,"ytp-ad-clickable"),this.N&&g.wl(this.button.element,"ytp-ad-hover-text-button--clean-player"),y&&(this.W=new g.Ye({S:"div",V:"ytp-ad-hover-text-container"}),this.J&&(q=new g.Ye({S:"div",V:"ytp-ad-hover-text-callout"}),q.ym(this.W.element),g.n(this,q)),g.n(this,this.W),this.W.ym(this.element),q=n1(y),W0(this.W.element,q,0)),this.show())}; UP.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();f1.prototype.hide.call(this)}; UP.prototype.show=function(){this.button&&this.button.show();f1.prototype.show.call(this)};g.x(oy,f1); oy.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);Q=(y=q.thumbnail)&&ra(y)||"";g.zu(Q)?Math.random()<.01&&g.zI(Error("Found AdImage without valid image URL")):(this.K?g.B0(this.element,"backgroundImage","url("+Q+")"):JY(this.element,{src:Q}),JY(this.element,{alt:y&&y.accessibility&&y.accessibility.label||""}),q&&q.adRendererCommands&&q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; oy.prototype.clear=function(){this.hide()};g.x(AJ,f1);g.K=AJ.prototype;g.K.hide=function(){f1.prototype.hide.call(this);this.N&&this.N.focus()}; g.K.show=function(){this.N=document.activeElement;f1.prototype.show.call(this);this.Y.focus()}; g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);this.W=q;q.dialogMessages||q.title!=null?q.confirmLabel==null?g.l$(Error("ConfirmDialogRenderer.confirmLabel was not set.")):q.cancelLabel==null?g.l$(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Pw8(this,q):g.l$(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.K.clear=function(){g.lw(this.K);this.hide()}; g.K.bu=function(){this.hide()}; g.K.MR=function(){var y=this.W.cancelEndpoint;y&&(this.layoutId?this.kf.executeCommand(y,this.layoutId):g.l$(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.K.BK=function(){var y=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;y&&(this.layoutId?this.kf.executeCommand(y,this.layoutId):g.l$(Error("Missing layoutId for confirm dialog.")));this.hide()};g.x(eA,f1);g.K=eA.prototype; g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);this.N=q;if(q.defaultText==null&&q.defaultIcon==null)g.l$(Error("ToggleButtonRenderer must have either text or icon set."));else if(q.defaultIcon==null&&q.toggledIcon!=null)g.l$(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(q.style){switch(q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":y="ytp-ad-toggle-button-default-style";break;default:y=null}y!=null&&g.wl(this.Y,y)}y={};q.defaultText? (Q=g.b7(q.defaultText),g.zu(Q)||(y.buttonText=Q,this.api.T().experiments.ob("a11y_h5_associate_survey_question")||this.K.setAttribute("aria-label",Q),this.api.T().experiments.ob("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",Q))):g.dM(this.gp,!1);q.defaultTooltip&&(y.tooltipText=q.defaultTooltip,this.K.hasAttribute("aria-label")||this.W.setAttribute("aria-label",q.defaultTooltip));q.defaultIcon?(Q=zM(q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",Q),q.toggledIcon?(this.N$= !0,Q=zM(q.toggledIcon),this.updateValue("toggledIconTemplateSpec",Q)):(g.dM(this.j,!0),g.dM(this.J,!1)),g.dM(this.K,!1)):g.dM(this.W,!1);g.hn(y)||this.update(y);q.isToggled&&(g.wl(this.Y,"ytp-ad-toggle-button-toggled"),this.toggleButton(q.isToggled));BN(this);this.Z(this.element,"change",this.Sm);this.show()}}; g.K.onClick=function(y){this.Sj.length>0&&(this.toggleButton(!this.isToggled()),this.Sm());f1.prototype.onClick.call(this,y)}; g.K.Sm=function(){g.fU(this.Y,"ytp-ad-toggle-button-toggled",this.isToggled());for(var y=g.t(i_f(this,this.isToggled())),q=y.next();!q.done;q=y.next())q=q.value,this.layoutId?this.kf.executeCommand(q,this.layoutId):g.l$(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);BN(this)}; g.K.clear=function(){this.hide()}; g.K.toggleButton=function(y){g.fU(this.Y,"ytp-ad-toggle-button-toggled",y);this.K.checked=y;BN(this)}; g.K.isToggled=function(){return this.K.checked};g.x(GM,sM);GM.prototype.J=function(y){if(Array.isArray(y)){y=g.t(y);for(var q=y.next();!q.done;q=y.next())q=q.value,q instanceof Xnj&&this.N(q)}};g.x(PN,f1);g.K=PN.prototype;g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);q.reasons?q.confirmLabel==null?g.l$(Error("AdFeedbackRenderer.confirmLabel was not set.")):(q.cancelLabel==null&&g.zI(Error("AdFeedbackRenderer.cancelLabel was not set.")),q.title==null&&g.zI(Error("AdFeedbackRenderer.title was not set.")),qfb(this,q)):g.l$(Error("AdFeedbackRenderer.reasons were not set."))}; g.K.clear=function(){Se(this.J);Se(this.j);this.Y.length=0;this.hide()}; g.K.hide=function(){this.K&&this.K.hide();this.W&&this.W.hide();f1.prototype.hide.call(this);this.N&&this.N.focus()}; g.K.show=function(){this.K&&this.K.show();this.W&&this.W.show();this.N=document.activeElement;f1.prototype.show.call(this);this.J.focus()}; g.K.X9=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.K.qym=function(){this.hide()}; i7.prototype.aH=function(){return this.K.element}; i7.prototype.getCommand=function(){return this.W}; i7.prototype.isChecked=function(){return this.N.checked};g.x(X1,AJ);X1.prototype.bu=function(y){AJ.prototype.bu.call(this,y);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; X1.prototype.MR=function(y){AJ.prototype.MR.call(this,y);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; X1.prototype.BK=function(y){AJ.prototype.BK.call(this,y);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.x(mj,f1);g.K=mj.prototype; g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);this.J=q;if(q.dialogMessage==null&&q.title==null)g.l$(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{q.confirmLabel==null&&g.zI(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(y=q.closeOverlayRenderer&&g.U(q.closeOverlayRenderer,g.xT)||null)this.K=new DI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.n(this,this.K),this.K.init(da("button"),y,this.macros),this.K.ym(this.element);q.title&&(y=g.b7(q.title),this.updateValue("title",y));if(q.adReasons)for(y=q.adReasons,Q=0;Q=this.vI?(this.N$.hide(),this.Vm=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(y=Math.max(0,Math.ceil((this.vI-y)/1E3)),y!=this.BI&&(qG(this.N,{TIME_REMAINING:String(y)}),this.BI=y)))}};g.x(VI,jn);g.K=VI.prototype; g.K.init=function(y,q,Q){jn.prototype.init.call(this,y,q,Q);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if((y=q.actionButton&&g.U(q.actionButton,g.xT))&&y.navigationEndpoint){var p=this.api.getVideoData(2);if(p!=null)if(q.image&&q.image.thumbnail){var v=q.image.thumbnail.thumbnails;v!=null&&v.length>0&&g.zu(g.ll(v[0].url))&&(v[0].url=p.profilePicture)}else g.zI(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(da("ad-image"),q.image,Q);this.J.init(da("ad-text"), q.headline,Q);this.Y.init(da("ad-text"),q.description,Q);this.W.init(da("button"),y,Q);Q=mu(this.W.element);X4(this.W.element,Q+" This link opens in new tab");this.N$=y.navigationEndpoint;this.api.Ja()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.yV.bind(this));this.gp=q.startMs||0;QI(this)}else g.l$(Error("FlyoutCtaRenderer has no valid action button."));else g.l$(Error("FlyoutCtaRenderer has no description AdText."));else g.l$(Error("FlyoutCtaRenderer has no headline AdText.")); else g.zI(Error("FlyoutCtaRenderer has no image."))}; g.K.onClick=function(y){jn.prototype.onClick.call(this,y);this.api.pauseVideo();!g.Li(this.W.element,y.target)&&this.N$&&(this.layoutId?this.kf.executeCommand(this.N$,this.layoutId):g.l$(Error("Missing layoutId for flyout cta.")))}; g.K.xE=function(){if(this.K){var y=this.K.getProgressState();(y&&y.current||this.vI)&&1E3*y.current>=this.gp&&(ps(this),g.Fn(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.K.i7=function(){this.clear()}; g.K.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.yV.bind(this))}; g.K.show=function(){this.W&&this.W.show();jn.prototype.show.call(this)}; g.K.hide=function(){this.W&&this.W.hide();jn.prototype.hide.call(this)}; g.K.yV=function(y){y=="hidden"?this.show():this.hide()};g.x(Os,f1);g.K=Os.prototype; g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);this.K=q;if(this.K.rectangle)for(y=this.K.likeButton&&g.U(this.K.likeButton,tU),q=this.K.dislikeButton&&g.U(this.K.dislikeButton,tU),this.N.init(da("toggle-button"),y,Q),this.W.init(da("toggle-button"),q,Q),this.Z(this.element,"change",this.Jc),this.Y.show(100),this.show(),Q=g.t(this.K&&this.K.impressionCommands||[]),y=Q.next();!y.done;y=Q.next())y=y.value,this.layoutId?this.kf.executeCommand(y,this.layoutId):g.l$(Error("Missing layoutId for instream user sentiment."))}; g.K.clear=function(){this.hide()}; g.K.hide=function(){this.N.hide();this.W.hide();f1.prototype.hide.call(this)}; g.K.show=function(){this.N.show();this.W.show();f1.prototype.show.call(this)}; g.K.Jc=function(){MPC(this.element,"ytp-ad-instream-user-sentiment-selected");this.K.postMessageAction&&this.api.AK("onYtShowToast",this.K.postMessageAction);this.Y.hide()}; g.K.onClick=function(y){this.Sj.length>0&&this.Jc();f1.prototype.onClick.call(this,y)};g.x(wS,g.I);g.K=wS.prototype;g.K.FV=function(){this.reset();g.I.prototype.FV.call(this)}; g.K.reset=function(){g.lw(this.Y);this.G=!1;this.K&&this.K.stop();this.J.stop();this.N&&(this.N=!1,this.X.play())}; g.K.start=function(){this.reset();this.Y.Z(this.W,"mouseover",this.vj,this);this.Y.Z(this.W,"mouseout",this.sN,this);this.cI&&(this.Y.Z(this.W,"focusin",this.vj,this),this.Y.Z(this.W,"focusout",this.sN,this));this.K?this.K.start():(this.G=this.N=!0,g.B0(this.W,{opacity:this.j}))}; g.K.vj=function(){this.N&&(this.N=!1,this.X.play());this.J.stop();this.K&&this.K.stop()}; g.K.sN=function(){this.G?this.J.start():this.K&&this.K.start()}; g.K.b8=function(){this.N||(this.N=!0,this.C.play(),this.G=!0)};var YfH=[new Jx("b.f_",!1,0),new Jx("j.s_",!1,2),new Jx("r.s_",!1,4),new Jx("e.h_",!1,6),new Jx("i.s_",!0,8),new Jx("s.t_",!1,10),new Jx("p.h_",!1,12),new Jx("s.i_",!1,14),new Jx("f.i_",!1,16),new Jx("a.b_",!1,18),new Jx("a.o_",!1),new Jx("g.o_",!1,22),new Jx("p.i_",!1,24),new Jx("p.m_",!1),new Jx("n.k_",!0,20),new Jx("i.f_",!1),new Jx("a.s_",!0),new Jx("m.c_",!1),new Jx("n.h_",!1,26),new Jx("o.p_",!1),new Jx("m.p_",!0,28),new Jx("o.a_",!1),new Jx("d.p_",!1),new Jx("e.i_",!1)].reduce(function(y,q){y[q.W]= q;return y},{});g.x(xz,jn);g.K=xz.prototype; g.K.init=function(y,q,Q){jn.prototype.init.call(this,y,q,Q);this.N$=q;(this.gp=hgb(this))&&g.zI(Error("hasAdControlInClickCommands_ is true."));if(!q||g.hn(q))g.l$(Error("SkipButtonRenderer was not specified or empty."));else if(!q.message||g.hn(q.message))g.l$(Error("SkipButtonRenderer.message was not specified or empty."));else if(y=this.J?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},q=this.api.T().L("delhi_modern_web_player_icons"),q=zM(y,!1,!1,q),q==null?g.l$(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+y.iconType+ ".")):(this.api.T().L("disable_touch_events_on_skip_button")&&(q.B=Object.assign({},q.B,{"aria-hidden":"true",pej:"false"})),this.N=new g.Ye({S:"button",rp:[this.J?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],D:[{S:"span",V:this.J?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",D:[q]}]}),g.n(this,this.N),this.N.ym(this.Y.element),this.W=new yI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,"ytp-ad-skip-button-text"),this.J&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"), this.W.init(da("ad-text"),this.N$.message,Q),g.n(this,this.W),W0(this.N.element,this.W.element,0)),!this.api.T().L("disable_touch_events_on_skip_button")){var p=p===void 0?null:p;Q=this.api.T();!(this.Sj.length>0)&&Q.W&&(QK?0:"ontouchstart"in document.documentElement&&(ihj()||YB()))&&(this.UW(this.Os),p&&this.UW(p),this.Sj=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.K.clear=function(){this.vI.reset();this.hide()}; g.K.hide=function(){this.Y.hide();this.W&&this.W.hide();ps(this);jn.prototype.hide.call(this)}; g.K.onClick=function(y){if(this.N!=null){if(y){var q=y||window.event;q.returnValue=!1;q.preventDefault&&q.preventDefault()}var Q;if(J_D(y,{contentCpn:((Q=this.api.getVideoData(1))==null?void 0:Q.clientPlaybackNonce)||""})===0)this.api.AK("onAbnormalityDetected");else if(jn.prototype.onClick.call(this,y),this.publish("j"),this.api.AK("onAdSkip"),this.Vm||!this.gp)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.K.tq=function(y){if(!this.Vm)return this.gp&&hx("SkipButton click commands not pruned while ALC exist"),y;var q,Q=(q=g.U(y,g.Wt))==null?void 0:q.commands;if(!Q)return y;y=[];for(q=0;q=this.J&&bdi(this,!0)};g.x(tx,DI);tx.prototype.init=function(y,q,Q){DI.prototype.init.call(this,y,q,Q);y=!1;q.text!=null&&(y=g.b7(q.text),y=!g.zu(y));y?q.navigationEndpoint==null?g.zI(Error("No visit advertiser clickthrough provided in renderer,")):q.style!=="STYLE_UNKNOWN"?g.zI(Error("Button style was not a link-style type in renderer,")):this.show():g.zI(Error("No visit advertiser text was present in the renderer."))};g.x(Es,f1); Es.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);y=q.text;g.zu(hJ(y))?g.zI(Error("SimpleAdBadgeRenderer has invalid or empty text")):(y&&y.text&&(q=y.text,this.N&&!this.W&&(q=this.api.T(),q=y.text+" "+(q&&q.W?"\u2022":"\u00b7")),q={text:q,isTemplated:y.isTemplated},y.style&&(q.style=y.style),y.targetId&&(q.targetId=y.targetId),y=new yI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),y.init(da("simple-ad-badge"),q,Q),y.ym(this.element),g.n(this,y)),this.show())}; Es.prototype.clear=function(){this.hide()};g.x(kz,TM);g.x(Ls,g.V6);g.K=Ls.prototype;g.K.VB=function(){return this.durationMs}; g.K.stop=function(){this.K&&this.handler.UW(this.K)}; g.K.xj=function(y){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:y.current};this.publish("h")}; g.K.getProgressState=function(){return this.W}; g.K.y3=function(y){g.Ks(y,2)&&this.publish("g")};g.x(am,g.V6);g.K=am.prototype;g.K.VB=function(){return this.durationMs}; g.K.start=function(){this.K||(this.K=!0,this.timer.start())}; g.K.stop=function(){this.K&&(this.K=!1,this.timer.stop())}; g.K.xj=function(){this.aE+=100;var y=!1;this.aE>this.durationMs&&(this.aE=this.durationMs,this.timer.stop(),y=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.aE/1E3};this.publish("h");y&&this.publish("g")}; g.K.getProgressState=function(){return this.W};g.x(Ht,jn);g.K=Ht.prototype;g.K.init=function(y,q,Q){jn.prototype.init.call(this,y,q,Q);var p;if(q==null?0:(p=q.templatedCountdown)==null?0:p.templatedAdText){y=q.templatedCountdown.templatedAdText;if(!y.isTemplated){g.zI(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new yI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);this.W.init(da("ad-text"),y,{});this.W.ym(this.element);g.n(this,this.W)}this.show()}; g.K.clear=function(){this.hide()}; g.K.hide=function(){ps(this);jn.prototype.hide.call(this)}; g.K.i7=function(){this.hide()}; g.K.xE=function(){if(this.K!=null){var y=this.K.getProgressState();if(y!=null&&y.current!=null&&this.W){var q=this.K instanceof Ls?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:y.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.K instanceof am?y.seekableEnd:this.api.getDuration(2,!1);y=y.current;var Q,p,v=((Q=this.api.getVideoData())==null?0:(p=Q.Lg)==null?0:p.call(Q))?Math.max(q-y,0):q-y;qG(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.NG(v)), TIME_REMAINING:String(Math.ceil(v))})}}}; g.K.show=function(){QI(this);jn.prototype.show.call(this)};g.x(Rm,yI);Rm.prototype.onClick=function(y){yI.prototype.onClick.call(this,y);this.api.onAdUxClicked(this.componentType)};g.x(lK,f1);lK.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(y=q.content){g.al(this.element,y);var Q,p;q=((Q=q.interaction)==null?void 0:(p=Q.accessibility)==null?void 0:p.label)||y;this.element.setAttribute("aria-label",q)}else g.l$(Error("AdSimpleAttributedString does not have text content"))}; lK.prototype.clear=function(){this.hide()}; lK.prototype.onClick=function(y){f1.prototype.onClick.call(this,y)};g.x(z5,f1); z5.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});(y=q.label)&&y.content&&!g.zu(y.content)?(this.adBadgeText.init(da("ad-simple-attributed-string"),new MG(y)),(q=q.adPodIndex)&&q.content&&!g.zu(q.content)&&(this.K=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),this.K.ym(this.element),g.n(this,this.K),this.K.element.classList.add("ytp-ad-badge__pod-index"),this.K.init(da("ad-simple-attributed-string"),new MG(q))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.l$(Error("No label is returned in AdBadgeViewModel."))}; z5.prototype.show=function(){this.adBadgeText.show();var y;(y=this.K)==null||y.show();f1.prototype.show.call(this)}; z5.prototype.hide=function(){this.adBadgeText.hide();var y;(y=this.K)==null||y.hide();f1.prototype.hide.call(this)};g.x(DB,f1);DB.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});(y=q.adPodIndex)&&y.content&&!g.zu(y.content)&&(this.K=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),this.K.ym(this.element),g.n(this,this.K),this.K.init(da("ad-simple-attributed-string"),new MG(y)),q.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; DB.prototype.show=function(){var y;(y=this.K)==null||y.show();f1.prototype.show.call(this)}; DB.prototype.hide=function(){var y;(y=this.K)==null||y.hide();f1.prototype.hide.call(this)};g.x(uK,f1); uK.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(q!=null&&q.text){var Q;if(((Q=q.text)==null?0:Q.content)&&!g.zu(q.text.content)){this.K=new g.Ye({S:"div",V:"ytp-ad-disclosure-banner__text",M$:q.text.content});g.n(this,this.K);this.K.ym(this.element);if(this.api.T().L("enable_ad_disclosure_banner_a11y_fix")){var p,v,d=(p=q.interaction)==null?void 0:(v=p.accessibility)==null?void 0:v.label;d||(d=q.text.content+" This link opens in new tab");X4(this.element,d)}else{var T;p=((d= q.interaction)==null?void 0:(T=d.accessibility)==null?void 0:T.label)||q.text.content;this.element.setAttribute("aria-label",p)}var O;if((O=q.interaction)==null?0:O.onTap)this.W=new g.Ye({S:"div",V:"ytp-ad-disclosure-banner__chevron",D:[g.WN()]}),g.n(this,this.W),this.W.ym(this.element),this.api.T().L("enable_ad_disclosure_banner_a11y_fix")&&(PH(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.td));this.show()}}else g.l$(Error("No banner text found in AdDisclosureBanner."))}; uK.prototype.td=function(y){if(y.key==="Enter"||y.key===" ")y.preventDefault(),this.element.click()}; uK.prototype.clear=function(){this.hide()};g.x(gS,g.Ye);gS.prototype.xj=function(){var y=this.W.getProgressState(),q=y.seekableEnd;this.api.getPresentingPlayerType()===2&&(q=this.N?this.N/1E3:y.seekableEnd);this.progressBar.style.width=ns(new Im(y.seekableStart,q),y.current,0)*100+"%"}; gS.prototype.onStateChange=function(){g.Yo(this.api.T())||(this.api.getPresentingPlayerType()===2?this.K===-1&&(this.show(),this.K=this.W.subscribe("h",this.xj,this),this.xj()):this.K!==-1&&(this.hide(),this.W.OY(this.K),this.K=-1))};g.x(ct,f1); ct.prototype.init=function(y,q,Q,p){f1.prototype.init.call(this,y,q,Q);if(q.skipOrPreviewRenderer){if(y=g.U(q.skipOrPreviewRenderer,UK))Q=new ZB(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.W,this.j),Q.ym(this.LK),Q.init(da("skip-button"),y,this.macros),g.n(this,Q);if(y=g.U(q.skipOrPreviewRenderer,UK))var v=y.skipOffsetMilliseconds}q.brandInteractionRenderer&&(y=q.brandInteractionRenderer.brandInteractionRenderer,Q=new Os(this.api,this.layoutId,this.interactionLoggingClientData,this.kf), Q.ym(this.gp),Q.init(da("instream-user-sentiment"),y,this.macros),g.n(this,Q));if(y=g.U(q,EZ_))if(y=g.U(y,EZ_))Q=new VI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.W,!!q.showWithoutLinkedMediaLayout),g.n(this,Q),Q.ym(this.J),Q.init(da("flyout-cta"),y,this.macros);p=p&&p.videoAdDurationSeconds;q.adBadgeRenderer&&(Q=q.adBadgeRenderer,y=g.U(Q,Ah),y!=null?(Q=new z5(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!1),g.n(this,Q),Q.ym(this.K),Q.init(da("ad-badge"), y,this.macros),this.N=Q.element):(y=Q.simpleAdBadgeRenderer,y==null&&(y={text:{text:"An\u00fancio",isTemplated:!1}}),Q=new Es(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!0),g.n(this,Q),Q.ym(this.K),Q.init(da("simple-ad-badge"),y,this.macros)));q.adPodIndex&&(y=g.U(q.adPodIndex,ldX),y!=null&&(Q=new DB(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,Q),Q.ym(this.K),Q.init(da("ad-pod-index"),y)));q.adDurationRemaining&&!q.showWithoutLinkedMediaLayout&& (y=q.adDurationRemaining.adDurationRemainingRenderer,y==null&&(y={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),p=new Ht(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.W,p,!1),g.n(this,p),p.ym(this.K),p.init(da("ad-duration-remaining"),y,this.macros));q.adInfoRenderer&&(p=g.U(q.adInfoRenderer,$T))&&(y=new C1(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.element,void 0,!1),g.n(this,y),this.N!==null?this.K.insertBefore(y.element, this.N.nextSibling):y.ym(this.K),y.init(da("ad-info-hover-text-button"),p,this.macros));q.visitAdvertiserRenderer&&(y=g.U(q.visitAdvertiserRenderer,g.xT))&&(Q=WGH(this)&&this.Y?this.Y:this.K)&&(p=new tx(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,p),p.ym(Q),p.init(da("visit-advertiser"),y,this.macros),PH(p.element),y=mu(p.element),X4(p.element,y+" This link opens in new tab"));!(p=this.api.T())||g.J6(p)||g.d1(p)||p.controlsType!="3"&&!p.disableOrganicUi||(v=new gS(this.api, this.W,v,!1),v.ym(this.vI),g.n(this,v));q.adDisclosureBannerRenderer&&(q=g.U(q.adDisclosureBannerRenderer,Mk_))&&(v=new uK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),v.ym(this.N$),v.init(da("ad-disclosure-banner"),q),g.n(this,v));this.api.T().L("enable_updated_html5_player_focus_style")&&g.wl(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; ct.prototype.clear=function(){this.hide()};g.om.prototype.flush=function(y,q){y=y===void 0?[]:y;q=q===void 0?!1:q;if(g.kQ("enable_client_streamz_web")){y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())Q=BR9(Q.value),this.K&&RM(Q,fR,2,this.K),Q={serializedIncrementBatch:g.Rq(Q.N())},g.wU("streamzIncremented",Q,{sendIsolatedPayload:q})}}; g.x(tK2,g.om);var fpH=new Map;Ax.prototype.set=function(y,q,Q){Q=Q!==void 0?Date.now()+Q:void 0;this.K.set(y,q,Q)}; Ax.prototype.get=function(y){return this.K.get(y)}; Ax.prototype.remove=function(y){this.K.remove(y)};var k3g=null;var iK=null,XM=null,Cs=null,Hd8=null;g.y_("yt.www.ads.eventcache.getLastCompanionData",function(){return iK}); g.y_("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.y_("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return XM}); g.y_("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Cs}); g.y_("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Hd8});var skC=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);yT.prototype.handleResponse=function(y,q){if(!q)throw Error("request needs to be passed into ConsistencyService");var Q,p;q=((Q=q.Tx.context)==null?void 0:(p=Q.request)==null?void 0:p.consistencyTokenJars)||[];var v;(y=(v=y.responseContext)==null?void 0:v.consistencyTokenJar)&&this.replace(q,y)}; yT.prototype.replace=function(y,q){y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())delete this.K[Q.value.encryptedTokenJarContents];lGC(this,q)};var B0_=window.location.hostname.split(".").slice(-2).join("."),RE;jf.getInstance=function(){RE=g.qw("yt.clientLocationService.instance");RE||(RE=new jf,g.y_("yt.clientLocationService.instance",RE));return RE}; g.K=jf.prototype; g.K.setLocationOnInnerTubeContext=function(y){y.client||(y.client={});if(this.K)y.client.locationInfo||(y.client.locationInfo={}),y.client.locationInfo.latitudeE7=Math.floor(this.K.coords.latitude*1E7),y.client.locationInfo.longitudeE7=Math.floor(this.K.coords.longitude*1E7),y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.K.coords.accuracy),y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)y.client.locationPlayabilityToken=this.N|| this.locationPlayabilityToken}; g.K.handleResponse=function(y){var q;y=(q=y.responseContext)==null?void 0:q.locationPlayabilityToken;y!==void 0&&(this.locationPlayabilityToken=y,this.K=void 0,g.XY("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=qo(this))&&this.localStorage.set("yt-location-playability-token",y,15552E3):g.g_("YT_CL",JSON.stringify({loctok:y}),15552E3,B0_,!0))}; g.K.clearLocationPlayabilityToken=function(y){y==="TVHTML5"?(this.localStorage=qo(this))&&this.localStorage.remove("yt-location-playability-token"):g.Ux("YT_CL");this.N=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.K.getCurrentPositionFromGeolocation=function(){var y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var q=!1,Q=1E4;g.XY("INNERTUBE_CLIENT_NAME")==="MWEB"&&(q=!0,Q=15E3);return new Promise(function(p,v){navigator.geolocation.getCurrentPosition(function(d){y.K=d;p(d)},function(d){v(d)},{enableHighAccuracy:q, maximumAge:0,timeout:Q})})}; g.K.createUnpluggedLocationInfo=function(y){var q={};y=y.coords;if(y==null?0:y.latitude)q.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)q.longitudeE7=Math.floor(y.longitude*1E7);if(y==null?0:y.accuracy)q.locationRadiusMeters=Math.round(y.accuracy);return q}; g.K.createLocationInfo=function(y){var q={};y=y.coords;if(y==null?0:y.latitude)q.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)q.longitudeE7=Math.floor(y.longitude*1E7);return q};g.K=nCC.prototype;g.K.contains=function(y){return Object.prototype.hasOwnProperty.call(this.K,y)}; g.K.get=function(y){if(this.contains(y))return this.K[y]}; g.K.set=function(y,q){this.K[y]=q}; g.K.LH=function(){return Object.keys(this.K)}; g.K.remove=function(y){delete this.K[y]};pp.prototype.getModuleId=function(y){return y.serviceId.getModuleId()}; pp.prototype.get=function(y){a:{var q=this.mappings.get(y.toString());switch(q.type){case "mapping":y=q.value;break a;case "factory":q=q.value();this.mappings.set(y.toString(),{type:"mapping",value:q});y=q;break a;default:y=YZ(q)}}return y}; pp.prototype.registerService=function(y,q){this.mappings.set(y.toString(),{type:"mapping",value:q});return y}; new pp;var sm={},gCH=(sm.WEB_UNPLUGGED="^unplugged/",sm.WEB_UNPLUGGED_ONBOARDING="^unplugged/",sm.WEB_UNPLUGGED_OPS="^unplugged/",sm.WEB_UNPLUGGED_PUBLIC="^unplugged/",sm.WEB_CREATOR="^creator/",sm.WEB_KIDS="^kids/",sm.WEB_EXPERIMENTS="^experiments/",sm.WEB_MUSIC="^music/",sm.WEB_REMIX="^music/",sm.WEB_MUSIC_EMBEDDED_PLAYER="^music/",sm.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",sm);Tn.prototype.J=function(y,q,Q){q=q===void 0?{}:q;Q=Q===void 0?hP:Q;var p={context:g.QT(y.clickTrackingParams,!1,this.Y)};var v=this.W(y);if(v){this.K(p,v,q);var d;q=g.dY(this.N());(v=(d=g.U(y.commandMetadata,g.ZV))==null?void 0:d.apiUrl)&&(q=v);d=ZGp(r_(q));y=Object.assign({},{command:y},void 0);p={input:d,Zp:oo(d),Tx:p,config:y};p.config.TJ?p.config.TJ.identity=Q:p.config.TJ={identity:Q};return p}Q=new g.GH("Error: Failed to create Request from Command.",y);g.l$(Q)}; g.dg.Object.defineProperties(Tn.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.x(VT,Tn);g.x(OR,VT);OR.prototype.J=function(){return{input:"/getDatasyncIdsEndpoint",Zp:oo("/getDatasyncIdsEndpoint","GET"),Tx:{}}}; OR.prototype.N=function(){return[]}; OR.prototype.W=function(){}; OR.prototype.K=function(){};var G7m={},x3f=(G7m.GET_DATASYNC_IDS=vD(OR),G7m);var My={},PnC=(My["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",My["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",My["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",My["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",My["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",My["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",My["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", My["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",My["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",My["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",My["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",My["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",My["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",My["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",My["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", My["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",My["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",My["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",My["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",My["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",My["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",My["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", My["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",My.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",My["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",My["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",My["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",My["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",My["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",My["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", My["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",My["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",My["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",My["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",My["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",My["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",My["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",My["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",My["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",My["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",My.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",My["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",My["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",My["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",My["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",My["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",My["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",My["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",My["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",My["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",My["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",My["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",My["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",My["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",My["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",My["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",My["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",My["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",My["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",My["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",My["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",My["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", My["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",My["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",My["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",My["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",My["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",My["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",My["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",My["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",My["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", My["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",My["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",My["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",My["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",My["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",My["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",My["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",My["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", My),lT={},BUg=(lT.auto_search="LATENCY_ACTION_AUTO_SEARCH",lT.ad_to_ad="LATENCY_ACTION_AD_TO_AD",lT.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",lT.app_startup="LATENCY_ACTION_APP_STARTUP",lT.browse="LATENCY_ACTION_BROWSE",lT.cast_splash="LATENCY_ACTION_CAST_SPLASH",lT.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",lT.channels="LATENCY_ACTION_CHANNELS",lT.chips="LATENCY_ACTION_CHIPS",lT.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",lT.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", lT.editor="LATENCY_ACTION_EDITOR",lT.embed="LATENCY_ACTION_EMBED",lT.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",lT.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",lT.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",lT.explore="LATENCY_ACTION_EXPLORE",lT.favorites="LATENCY_ACTION_FAVORITES",lT.home="LATENCY_ACTION_HOME",lT.inboarding="LATENCY_ACTION_INBOARDING",lT.landing="LATENCY_ACTION_LANDING",lT.learning="LATENCY_ACTION_LEARNING", lT.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",lT.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",lT.library="LATENCY_ACTION_LIBRARY",lT.live="LATENCY_ACTION_LIVE",lT.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",lT.management="LATENCY_ACTION_MANAGEMENT",lT.mini_app="LATENCY_ACTION_MINI_APP_PLAY",lT.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",lT.onboarding="LATENCY_ACTION_ONBOARDING",lT.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", lT.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",lT.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",lT.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",lT.prebuffer="LATENCY_ACTION_PREBUFFER",lT.prefetch="LATENCY_ACTION_PREFETCH",lT.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",lT.profile_switcher="LATENCY_ACTION_LOGIN",lT.projects="LATENCY_ACTION_PROJECTS",lT.reel_watch="LATENCY_ACTION_REEL_WATCH",lT.results="LATENCY_ACTION_RESULTS",lT.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", lT.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",lT.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",lT.review="LATENCY_ACTION_REVIEW",lT.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",lT.search_ui="LATENCY_ACTION_SEARCH_UI",lT.search_suggest="LATENCY_ACTION_SUGGEST",lT.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",lT.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",lT.seek="LATENCY_ACTION_PLAYER_SEEK",lT.settings="LATENCY_ACTION_SETTINGS",lT.store="LATENCY_ACTION_STORE", lT.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",lT.tenx="LATENCY_ACTION_TENX",lT.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",lT.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",lT.watch="LATENCY_ACTION_WATCH",lT.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",lT["watch,watch7"]="LATENCY_ACTION_WATCH",lT["watch,watch7_html5"]="LATENCY_ACTION_WATCH",lT["watch,watch7ad"]="LATENCY_ACTION_WATCH",lT["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",lT.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", lT.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",lT.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",lT.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",lT.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",lT.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",lT.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",lT.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",lT);Object.assign(BUg,PnC);g.x(Kp,bI);var TWD=new $f("aft-recorded",Kp);var iiG=g.CS.ytLoggingGelSequenceIdObj_||{};g.y_("ytLoggingGelSequenceIdObj_",iiG);var Z_=g.CS.ytLoggingLatencyUsageStats_||{};g.y_("ytLoggingLatencyUsageStats_",Z_);xR.prototype.tick=function(y,q,Q,p){td(this,"tick_"+y+"_"+q)||g.wU("latencyActionTicked",{tickName:y,clientActionNonce:q},{timestamp:Q,cttAuthInfo:p})}; xR.prototype.info=function(y,q,Q){var p=Object.keys(y).join("");td(this,"info_"+p+"_"+q)||(y=Object.assign({},y),y.clientActionNonce=q,g.wU("latencyActionInfo",y,{cttAuthInfo:Q}))}; xR.prototype.jspbInfo=function(y,q,Q){for(var p="",v=0;v=v.length?(q.append(v),y-=v.length):y?(q.append(new Uint8Array(v.buffer,v.byteOffset,y)),Q.append(new Uint8Array(v.buffer,v.byteOffset+y,v.length-y)),y=0):Q.append(v);return{uq:q,tM:Q}}; Fx.prototype.isFocused=function(y){return y>=this.N&&y=64&&(this.G.set(y.subarray(0,64-this.W),this.W),q=64-this.W,this.W=0,wab(this,this.G,0));for(;q+64<=Q;q+=64)wab(this,y,q);q=this.start&&(y=2&&Q.ssdaiAdsConfig&&hx("Unexpected ad placement renderers length",y.slot,null,{length:p.length});var v;((v=Q.adSlots)==null?0:v.some(function(d){var T,O;return((T=g.U(d,ta))==null?void 0:(O=T.adSlotMetadata)==null?void 0:O.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||p.some(function(d){var T,O,w,J; return!!((T=d.renderer)==null?0:(O=T.linearAdSequenceRenderer)==null?0:(w=O.linearAds)==null?0:w.length)||!((J=d.renderer)==null||!J.instreamVideoAdRenderer)})||lhg(y)})}; pt.prototype.j2=function(){K33(this.K)};v1.prototype.mR=function(){var y=this;$q3(this.W,function(){var q=Qe(y.slot.clientMetadata,"metadata_type_ad_break_request_data");return q.cueProcessedMs?y.K.get().fetch({kF:q.getAdBreakUrl,Hq:new g.yb(q.qL,q.jd),cueProcessedMs:q.cueProcessedMs}):y.K.get().fetch({kF:q.getAdBreakUrl,Hq:new g.yb(q.qL,q.jd)})})}; v1.prototype.j2=function(){K33(this.W)};dC.prototype.mR=function(){var y=this.slot.clientMetadata,q,Q=(q=this.slot.fulfilledLayout)!=null?q:Qe(y,"metadata_type_fulfilled_layout");Xab(this.callback,this.slot,Q)}; dC.prototype.j2=function(){bF(this.callback,this.slot,new P("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")};Vb.prototype.build=function(y,q){return q.fulfilledLayout||T0(q,{M4:["metadata_type_fulfilled_layout"]})?new dC(y,q):this.N(y,q)};g.x(OT,Vb); OT.prototype.N=function(y,q){if(T0(q,{M4:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new pt(y,q,this.K,this.W,this.Rl,this.Yf,this.Us,this.JK,this.m2);if(T0(q,{M4:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new v1(y,q,this.K,this.W,this.Rl,this.Yf);throw new P("Unsupported slot with type: "+q.slotType+" and client metadata: "+pz(q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.x(wC,Vb);wC.prototype.N=function(y,q){throw new P("Unsupported slot with type: "+q.slotType+" and client metadata: "+pz(q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.K=z73.prototype;g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.init=function(){}; g.K.release=function(){}; g.K.startRendering=function(y){if(y.layoutId!==this.layout.layoutId)this.callback.Nm(this.slot,y,new qI("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 q=Qe(y.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.lj(this.slot,y),ir3(this.N, this.slot,q)):hx("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,y)}}; g.K.qz=function(y,q){y.layoutId!==this.layout.layoutId?this.callback.Nm(this.slot,y,new qI("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.Su(this.slot,y,q),uKH(this),Ihb(this))};g.x(h8,g.V6);g.K=h8.prototype;g.K.HB=function(){return this.W.slot}; g.K.hK=function(){return this.W.layout}; g.K.init=function(){this.N.get().addListener(this)}; g.K.release=function(){this.N.get().removeListener(this);this.dispose()}; g.K.mW=function(){}; g.K.FU=function(){}; g.K.Mt=function(){}; g.K.Ma=function(){}; g.K.startRendering=function(y){var q=this;ft(this.W,y,function(){return void q.fR()})}; g.K.fR=function(){this.N.get().fR(this.K)}; g.K.qz=function(y,q){var Q=this;ft(this.W,y,function(){var p=Q.N.get();qCk(p,Q.K,3);Q.K=[];Q.callback.Su(Q.slot,y,q)})}; g.K.FV=function(){this.N.iB()||this.N.get().removeListener(this);g.V6.prototype.FV.call(this)}; g.dg.Object.defineProperties(h8.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});ET.prototype.IM=function(y,q){q=q===void 0?!1:q;var Q=(this.N.get(y)||[]).concat();if(q=q&&UqH(y)){var p=this.N.get(q);p&&Q.push.apply(Q,g.hH(p))}aD(this,y,Q);this.K.add(y);q&&this.K.add(q)}; ET.prototype.z8=function(y,q){q=q===void 0?!1:q;if(!this.K.has(y)){var Q=q&&UqH(y);Q&&(q=!this.K.has(Q));this.IM(y,q)}};g.x(A48,TM);g.x(sT,h8);g.K=sT.prototype;g.K.wK=function(y,q){xr("ads-engagement-panel-layout",y,this.G.get().FT,this.Us.get(),this.Y,this.J,this.HB(),this.hK(),q)}; g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),g.U(this.hK().renderingContent,GB),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(q,Q,p,v,d){return new A48(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(y,q){this.J===q.layoutId&&(this.Y===null?this.Y=this.Us.get().Sa():hx("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)};g.x(ByH,TM);g.x(MV,h8);g.K=MV.prototype;g.K.wK=function(y,q){xr("banner-image",y,this.G.get().FT,this.Us.get(),this.Y,this.J,this.HB(),this.hK(),q)}; g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),g.U(this.hK().renderingContent,eV),this.callback,"metadata_type_banner_image_layout_view_model",function(q,Q,p,v,d){return new ByH(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(y,q){this.J===q.layoutId&&(this.Y===null?this.Y=this.Us.get().Sa():hx("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)};g.x(lB,TM);g.x(z0,h8);g.K=z0.prototype;g.K.wK=function(y,q){xr("action-companion",y,this.G.get().FT,this.Us.get(),this.Y,this.J,this.HB(),this.hK(),q)}; g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),g.U(this.hK().renderingContent,r7),this.callback,"metadata_type_action_companion_ad_renderer",function(q,Q,p,v,d){return new lB(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(y,q){q.layoutId===this.layout.layoutId?this.zy.z8("impression"):this.J===q.layoutId&&(this.Y===null?this.Y=this.Us.get().Sa():hx("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)};g.x(iDb,TM);g.x(Dm,h8);g.K=Dm.prototype;g.K.wK=function(y,q){xr("image-companion",y,this.G.get().FT,this.Us.get(),this.Y,this.J,this.HB(),this.hK(),q)}; g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),g.U(this.hK().renderingContent,o6),this.callback,"metadata_type_image_companion_ad_renderer",function(q,Q,p,v,d){return new iDb(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(y,q){q.layoutId===this.layout.layoutId?this.zy.z8("impression"):this.J===q.layoutId&&(this.Y===null?this.Y=this.Us.get().Sa():hx("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)};g.x(mqD,TM);g.x(uB,h8);g.K=uB.prototype;g.K.wK=function(y,q){xr("shopping-companion",y,this.G.get().FT,this.Us.get(),this.Y,this.J,this.HB(),this.hK(),q)}; g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(q,Q,p,v,d){return new mqD(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(y,q){q.layoutId===this.layout.layoutId?this.zy.z8("impression"):this.J===q.layoutId&&(this.Y===null?this.Y=this.Us.get().Sa():hx("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)};g.x(nt,h8);g.K=nt.prototype;g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(q,Q,p,v,d){return new lB(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(){}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)}; g.K.wK=function(){};g.K=pNS.prototype;g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.init=function(){this.JK.get().addListener(this);this.JK.get().ow.push(this);var y=Qe(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=Qe(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W1(this.layout.WB)&&q5(this.FL.get(),this.layout.layoutId,{zH:q,aS:y,listener:this})}; g.K.release=function(){this.JK.get().removeListener(this);i29(this.JK.get(),this);W1(this.layout.WB)&&jS(this.FL.get(),this.layout.layoutId)}; g.K.startRendering=function(y){this.callback.lj(this.slot,y)}; g.K.qz=function(y,q){xJf(this.Yf.get())&&!this.K&&(this.zy.z8("abandon"),this.K=!0);this.callback.Su(this.slot,y,q)}; g.K.XT=function(y){switch(y.id){case "part2viewed":this.zy.z8("start");this.zy.z8("impression");break;case "videoplaytime25":this.zy.z8("first_quartile");break;case "videoplaytime50":this.zy.z8("midpoint");break;case "videoplaytime75":this.zy.z8("third_quartile");break;case "videoplaytime100":xJf(this.Yf.get())?this.K||(this.zy.z8("complete"),this.K=!0):this.zy.z8("complete");RD(this.zy)&&Sw(this.zy,Infinity,!0);Wip(this.Yf.get())&&ID(this.W,Infinity,!0);break;case "engagedview":RD(this.zy)||this.zy.z8("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:hx("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.K.onVolumeChange=function(){}; g.K.f1=function(){}; g.K.v3=function(){}; g.K.bH=function(){}; g.K.onFullscreenToggled=function(){}; g.K.Ht=function(){}; g.K.B_=function(){}; g.K.kz=function(y){Wip(this.Yf.get())&&ID(this.W,y*1E3,!1);RD(this.zy)&&Sw(this.zy,y*1E3,!1)}; g.K.kx=function(){}; g.K.LT=function(){this.zy.z8("active_view_measurable")}; g.K.GN=function(){this.zy.z8("active_view_viewable")}; g.K.ib=function(){this.zy.z8("active_view_fully_viewable_audible_half_duration")}; g.K.Ei=function(){this.zy.z8("audio_measurable")}; g.K.Ui=function(){this.zy.z8("audio_audible")};g.x(gC,h8);g.K=gC.prototype;g.K.init=function(){h8.prototype.init.call(this);var y=Qe(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.L3};this.K.push(new kz(y,this.layout.layoutId,Qe(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,!0))}; g.K.j4=function(){this.Y||this.JK.get().resumeVideo(1)}; g.K.startRendering=function(y){h8.prototype.startRendering.call(this,y);wh(this.JK.get(),"ad-showing");this.callback.lj(this.slot,y);this.J.H7=this}; g.K.qz=function(y,q){h8.prototype.qz.call(this,y,q);Jh(this.JK.get(),"ad-showing");Pz(this.J,this)}; g.K.wK=function(y){switch(y){case "ad-info-icon-button":(this.Y=this.JK.get().VK(1))||this.JK.get().pauseVideo();break;case "visit-advertiser":this.JK.get().pauseVideo()}}; g.K.FV=function(){h8.prototype.FV.call(this)};g.x(c1,TM);g.x(UT,h8);g.K=UT.prototype;g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,Q,p,v,d){return new c1(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(){}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)}; g.K.wK=function(){};g.x(rC,TM);g.x(oD,h8);oD.prototype.init=function(){h8.prototype.init.call(this);this.K.push(new rC(g.U(this.layout.renderingContent,wi),this.layout.layoutId,{adsClientData:this.layout.L3}))}; oD.prototype.wK=function(){fZ(this.Y.get(),this.J)&&Kt(this.Us.get(),3)}; oD.prototype.startRendering=function(y){h8.prototype.startRendering.call(this,y);this.callback.lj(this.slot,y)}; oD.prototype.FV=function(){h8.prototype.FV.call(this)};g.x(A8,TM);g.x(ew,h8);ew.prototype.init=function(){h8.prototype.init.call(this);var y=g.U(this.layout.renderingContent,vs)||Qe(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),q=bB(this.zy);this.K.push(new A8(y,q,this.layout.layoutId,{adsClientData:this.layout.L3},!0,!0))}; ew.prototype.startRendering=function(y){h8.prototype.startRendering.call(this,y);this.callback.lj(this.slot,y)}; ew.prototype.wK=function(y,q){if(q===this.layout.layoutId)switch(y){case "skip-button":var Q;(y=(Q=Qe(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&y.ys(this.HB(),this.layout)}}; ew.prototype.FV=function(){h8.prototype.FV.call(this)};G0.prototype.build=function(y,q,Q,p){if(B1(p,{M4:["metadata_type_ad_break_response_data"],Cg:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new z73(y,Q,p,this.W,this.N,this.K);throw new qI("Unsupported layout with type: "+p.layoutType+" and client metadata: "+pz(p.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.x(Ta8,TM);g.x(P1,h8);g.K=P1.prototype;g.K.wK=function(y,q){xr("ads-engagement-panel",y,this.G.get().FT,this.Us.get(),this.Y,this.J,this.HB(),this.hK(),q)}; g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),g.U(this.hK().renderingContent,Aq),this.callback,"metadata_type_ads_engagement_panel_renderer",function(q,Q,p,v,d){return new Ta8(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(y,q){q.layoutId===this.layout.layoutId?this.zy.z8("impression"):this.J===q.layoutId&&(this.Y===null?this.Y=this.Us.get().Sa():hx("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)};g.x(iB,h8);g.K=iB.prototype;g.K.wK=function(y,q){xr("top-banner-image-text-icon-buttoned",y,this.G.get().FT,this.Us.get(),this.Y,this.J,this.HB(),this.hK(),q)}; g.K.startRendering=function(y){$r(this.zy,this.HB(),this.hK(),g.U(this.hK().renderingContent,Bh),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,Q,p,v,d){return new c1(q,Q,p,v,d)},this.K); h8.prototype.startRendering.call(this,y)}; g.K.lj=function(y,q){this.J===q.layoutId&&(this.Y===null?this.Y=this.Us.get().Sa():hx("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.FV=function(){fz(this.PB(),this);h8.prototype.FV.call(this)};wND.prototype.build=function(y,q,Q,p){if(B1(p,VAb())||g.U(p.renderingContent,Aq)!==void 0)return new P1(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);if(B1(p,P$j())||g.U(p.renderingContent,r7)!==void 0)return new z0(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);if(B1(p,XWi())||g.U(p.renderingContent,o6)!==void 0)return new Dm(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);if(B1(p,C$C()))return new uB(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);if(B1(p,Qy3()))return new nt(y,Q,p,this.cT,this.Us,this.PB, this.FL,this.K);if(B1(p,GIj())||g.U(p.renderingContent,eV)!==void 0)return new MV(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);if(B1(p,O1H())||g.U(p.renderingContent,Bh)!==void 0)return new iB(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);if(B1(p,ve9()))return new UT(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);if(B1(p,e7f())||g.U(p.renderingContent,GB)!==void 0)return new sT(y,Q,p,this.cT,this.Us,this.PB,this.FL,this.K);throw new qI("Unsupported layout with type: "+p.layoutType+" and client metadata: "+ pz(p.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};JJs.prototype.build=function(y,q,Q,p){if(B1(p,{M4:["metadata_type_linked_player_bytes_layout_id"],Cg:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new oD(y,Q,p,this.cT,this.Us,this.K);throw new qI("Unsupported layout with type: "+p.layoutType+" and client metadata: "+pz(p.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.K=Fji.prototype;g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.init=function(){}; g.K.release=function(){}; g.K.startRendering=function(y){y.layoutId!==this.layout.layoutId?this.callback.Nm(this.slot,y,new qI("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.lj(this.slot,y),this.zy.z8("impression"),ND(this.H_,y,"normal"))}; g.K.qz=function(y,q){y.layoutId!==this.layout.layoutId?this.callback.Nm(this.slot,y,new qI("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.Su(this.slot,y,q)};g.K=fIS.prototype;g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.init=function(){}; g.K.release=function(){}; g.K.startRendering=function(y){y.layoutId!==this.layout.layoutId?this.callback.Nm(this.slot,y,new qI("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.lj(this.slot,y),this.zy.z8("impression"),ND(this.H_,y,"normal"))}; g.K.qz=function(y,q){y.layoutId!==this.layout.layoutId?this.callback.Nm(this.slot,y,new qI("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.Su(this.slot,y,q)};XJ.prototype.build=function(y,q,Q,p){if(!this.Yf.get().U.T().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(B1(p,YP2()))return new Fji(y,Q,p,this.Us,this.H_)}else if(B1(p,{M4:[],Cg:["LAYOUT_TYPE_FORECASTING"]}))return new fIS(y,Q,p,this.Us,this.H_);throw new qI("Unsupported layout with type: "+p.layoutType+" and client metadata: "+pz(p.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.x($Pg,TM);g.x(mP,h8);g.K=mP.prototype;g.K.init=function(){h8.prototype.init.call(this);var y=g.U(this.layout.renderingContent,pN)||Qe(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q={adsClientData:this.layout.L3};this.K.push(new $Pg(y,Qe(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,q))}; g.K.j4=function(){this.Y||this.JK.get().resumeVideo(2)}; g.K.startRendering=function(y){h8.prototype.startRendering.call(this,y);this.callback.lj(this.slot,y);this.J.H7=this}; g.K.qz=function(y,q){h8.prototype.qz.call(this,y,q);Pz(this.J,this)}; g.K.wK=function(y,q){if(!eb(this.Yf.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(fZ(this.G.get(),this.X))switch(y){case "visit-advertiser-link":Kt(this.Us.get(),3)}switch(y){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.JK.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.JK.get().VK(2))||this.JK.get().pauseVideo();break; case "visit-advertiser-link":this.JK.get().pauseVideo();Kj9(this).LR();break;case "skip-button":if(y=Kj9(this),this.layout.renderingContent&&!mo(this.layout.clientMetadata,"metadata_type_dai")||!y||!y.L0){var Q;(y=(Q=Qe(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&y.ys(this.HB(),this.layout)}else hx("Requesting to skip by LegacyPlayerBytes when components enabled"),y.bb(this.HB(),this.layout)}}}; g.K.FV=function(){h8.prototype.FV.call(this)};g.x(Ct,h8);g.K=Ct.prototype;g.K.init=function(){h8.prototype.init.call(this);var y=g.U(this.layout.renderingContent,QC)||Qe(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.L3},Q;(Q=!!this.layout.renderingContent)||(Q=yC(this),Q=!(Q&&Q.L0));this.K.push(new kz(y,this.layout.layoutId,Qe(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,Q))}; g.K.j4=function(){this.Y||this.JK.get().resumeVideo(2)}; g.K.startRendering=function(y){h8.prototype.startRendering.call(this,y);this.callback.lj(this.slot,y);this.J.H7=this}; g.K.qz=function(y,q){h8.prototype.qz.call(this,y,q);Pz(this.J,this)}; g.K.wK=function(y,q){if(!this.Yf||!eb(this.Yf.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(fZ(this.G.get(),this.X))switch(y){case "visit-advertiser":Kt(this.Us.get(),3)}switch(y){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.JK.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.JK.get().VK(2))||this.JK.get().pauseVideo();break; case "visit-advertiser":this.JK.get().pauseVideo();yC(this).LR();break;case "skip-button":if(y=yC(this),this.layout.renderingContent&&!mo(this.layout.clientMetadata,"metadata_type_dai")||!y||!y.L0){var Q;(y=(Q=Qe(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&y.ys(this.HB(),this.layout)}else hx("Requesting to skip by LegacyPlayerBytes"),y.bb(this.HB(),this.layout)}}}; g.K.FV=function(){h8.prototype.FV.call(this)};g.x(Wjp,TM);g.x(qL,h8);g.K=qL.prototype;g.K.startRendering=function(y){var q=this;ft(this.W,y,function(){q.K.push(new Wjp(Qe(q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),y.layoutId,y.L3));q.fR();q.callback.lj(q.slot,y);g.G(yd(q.JK.get(),1),512)&&q.callback.Nm(q.HB(),q.hK(),new qI("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.K.B_=function(){}; g.K.Ht=function(y){if(y.state.isError()){var q;this.callback.Nm(this.HB(),this.hK(),new qI("A player error happened during adNotify",{playerErrorCode:(q=y.state.kJ)==null?void 0:q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.K.onFullscreenToggled=function(){}; g.K.v3=function(){}; g.K.bH=function(){}; g.K.f1=function(){}; g.K.onVolumeChange=function(){}; g.K.XT=function(){}; g.K.kx=function(){}; g.K.wK=function(){};g.x(tAj,TM);g.x(j6,h8);j6.prototype.init=function(){h8.prototype.init.call(this);var y=g.U(this.layout.renderingContent,dZ),q=bB(this.zy);this.K.push(new tAj(y,q,this.layout.layoutId,{adsClientData:this.layout.L3}))}; j6.prototype.startRendering=function(y){h8.prototype.startRendering.call(this,y);this.callback.lj(this.slot,y)}; j6.prototype.wK=function(y,q){if(q===this.layout.layoutId)switch(y){case "skip-button":var Q;(y=(Q=Qe(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&y.ys(this.HB(),this.layout)}}; j6.prototype.FV=function(){h8.prototype.FV.call(this)};EeH.prototype.build=function(y,q,Q,p){if(y=Tw(y,Q,p,this.cT,this.JK,this.Us,this.W,this.K,this.Yf))return y;throw new qI("Unsupported layout with type: "+p.layoutType+" and client metadata: "+pz(p.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.K=wZ.prototype;g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.init=function(){this.JK.get().addListener(this);this.JK.get().ow.push(this);if(this.layout.renderingContent){var y=this.Gy.get();y=Cj(y,1).sB/1E3}else y=Qe(this.layout.clientMetadata,"metadata_type_video_length_seconds");var q=g.U(this.layout.renderingContent,di),Q=q?Zm(q.pings):Qe(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");q=q?c43(q.pings):Qe(this.layout.clientMetadata,"metadata_type_active_view_identifier");W1(this.layout.WB)&&q5(this.FL.get(),this.layout.layoutId, {zH:Q,aS:y,listener:this,iK:q})}; g.K.release=function(){this.JK.get().removeListener(this);i29(this.JK.get(),this);W1(this.layout.WB)&&jS(this.FL.get(),this.layout.layoutId)}; g.K.startRendering=function(y){this.callback.lj(this.slot,y)}; g.K.qz=function(y,q){J7(this,"abandon");this.callback.Su(this.slot,y,q)}; g.K.XT=function(y){switch(y.id){case "part2viewed":this.zy.z8("start");this.zy.z8("impression");break;case "videoplaytime25":this.zy.z8("first_quartile");break;case "videoplaytime50":this.zy.z8("midpoint");break;case "videoplaytime75":this.zy.z8("third_quartile");break;case "videoplaytime100":J7(this,"complete");RD(this.zy)&&Sw(this.zy,Infinity,!0);break;case "engagedview":RD(this.zy)||this.zy.z8("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:hx("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.K.onVolumeChange=function(){}; g.K.f1=function(){}; g.K.v3=function(){}; g.K.bH=function(){}; g.K.onFullscreenToggled=function(){}; g.K.Ht=function(y){this.K||(g.Ks(y,4)&&!g.Ks(y,2)?NV(this.zy,"pause"):$z(y,4)<0&&!($z(y,2)<0)&&NV(this.zy,"resume"))}; g.K.B_=function(){}; g.K.kz=function(y){RD(this.zy)&&Sw(this.zy,y*1E3,!1)}; g.K.kx=function(){J7(this,"swipe")}; g.K.LT=function(){this.zy.z8("active_view_measurable")}; g.K.GN=function(){this.zy.z8("active_view_viewable")}; g.K.ib=function(){this.zy.z8("active_view_fully_viewable_audible_half_duration")}; g.K.Ei=function(){this.zy.z8("audio_measurable")}; g.K.Ui=function(){this.zy.z8("audio_audible")};kM2.prototype.build=function(y,q,Q,p){if(Q.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.U(p.renderingContent,di)!==void 0)return new wZ(y,Q,p,this.JK,this.Us,this.Yf,this.FL,this.Gy);q=["metadata_type_ad_placement_config"];for(var v=g.t(kr()),d=v.next();!d.done;d=v.next())q.push(d.value);if(B1(p,{M4:q,Cg:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return Q.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new wZ(y,Q,p,this.JK,this.Us,this.Yf,this.FL,this.Gy):new pNS(y,Q,p,this.JK,this.Us, this.vB,this.Yf,this.FL);throw new qI("Unsupported layout with type: "+p.layoutType+" and client metadata: "+pz(p.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var h7={contentCpn:"",tD:new Map};zRD.prototype.MU=function(y,q){var Q={};q=Object.assign({},q,(Q.cc=this.Mm.a5(),Q));this.Mm.U.Rb(y,q)};var bv_,na; bv_={xps:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",czB:"AUTHENTICATION_MALFORMED",RFK:"AUTHENTICATION_MISSING",Fgy:"BAD_REQUEST",gxK:"CAST_SESSION_DEVICE_MISMATCHED",yzy:"CAST_SESSION_VIDEO_MISMATCHED",Jzb:"CAST_TOKEN_EXPIRED",rzs:"CAST_TOKEN_FAILED",sEI:"CAST_TOKEN_MALFORMED",vxB:"CGI_PARAMS_MALFORMED",QEs:"CGI_PARAMS_MISSING",CHV:"DEVICE_FALLBACK",rPV:"GENERIC_WITH_LINK_AND_CPN",sDK:"ERROR_HDCP",v9f:"LICENSE",Uo$:"VIDEO_UNAVAILABLE",V0j:"FORMAT_UNAVAILABLE",bFm:"GEO_FAILURE", jDf:"HTML5_AUDIO_RENDERER_ERROR",qaj:"GENERIC_WITHOUT_LINK",fbs:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",K$m:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",W$m:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",cMw:"HTML5_SPS_UMP_STATUS_REJECTED",SvI:"INVALID_DRM_MESSAGE",KZs:"PURCHASE_NOT_FOUND",WZK:"PURCHASE_REFUNDED",Gns:"RENTAL_EXPIRED",bmV:"RETRYABLE_ERROR",DhB:"SERVER_ERROR",qP$:"SIGNATURE_EXPIRED",M43:"STOPPED_BY_ANOTHER_PLAYBACK",F1s:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",YSy:"STREAMING_NOT_ALLOWED", mqf:"STREAM_LICENSE_NOT_FOUND",JuB:"TOO_MANY_REQUESTS",ru$:"TOO_MANY_REQUESTS_WITH_LINK",s2s:"TOO_MANY_STREAMS_PER_ENTITLEMENT",v0w:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",o0K:"VIDEO_FORBIDDEN",lXp:"VIDEO_NOT_FOUND",wJB:"BROWSER_OR_EXTENSION_ERROR"};na={}; g.BT=(na.ALREADY_PINNED_ON_A_DEVICE="Voc\u00ea j\u00e1 fez o download deste v\u00eddeo para a quantidade m\u00e1xima de dispositivos permitida pelo propriet\u00e1rio dos direitos autorais. Antes de reproduzi-lo aqui, ser\u00e1 necess\u00e1rio remov\u00ea-lo de outro dispositivo.",na.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",na.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", na.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",na.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",na.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",na.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",na.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",na.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",na.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",na.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="No momento, seu navegador n\u00e3o reconhece os formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para visitar as perguntas frequentes sobre v\u00eddeos em HTML5.$END_LINK",na.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel tocar este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",na.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", na.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",na.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",na.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",na.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",na.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",na.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", na.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",na.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",na.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",na.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",na.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", na.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",na.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",na.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",na.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",na.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", na.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",na.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",na.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",na.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",na.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",na.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",na.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",na);var $em;var KgG=g.cK(),xek=KgG.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!xek||xek.length<2)$em=void 0;else{var Wgq=KgG.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);$em=Wgq&&Wgq.length===6?Number(Wgq[5].replace("_",".")):0}var CC=$em,UG=CC>=0;g.x(g.sU,sM);g.sU.prototype.Z=function(y,q,Q,p,v){return sM.prototype.Z.call(this,y,q,Q,p,v)};var g9={},Ay=(g9.FAIRPLAY="fairplay",g9.PLAYREADY="playready",g9.WIDEVINE="widevine",g9.CLEARKEY=null,g9.FLASHACCESS=null,g9.UNKNOWN=null,g9.WIDEVINE_CLASSIC=null,g9);ML.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var cd={},iH=(cd.WIDTH={name:"width",video:!0,valid:640,Sh:99999},cd.HEIGHT={name:"height",video:!0,valid:360,Sh:99999},cd.FRAMERATE={name:"framerate",video:!0,valid:30,Sh:9999},cd.BITRATE={name:"bitrate",video:!0,valid:3E5,Sh:2E9},cd.EOTF={name:"eotf",video:!0,valid:"bt709",Sh:"catavision"},cd.CHANNELS={name:"channels",video:!1,valid:2,Sh:99},cd.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Sh:"invalidformat"},cd.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Sh:"nope"},cd.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Sh:"av99.0.05M.08"},cd.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Sh:"invalid"},cd.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",Sh:"false"},cd);var Zvc=["h","H"],toe=["9","("],EBn=["9h","(h"],kKG=["8","*"],Lgu=["a","A"],anw=["o","O"],NMm=["m","M"],S2X=["mac3","MAC3"],HvC=["meac3","MEAC3"],Um={},BQC=(Um.h=Zvc,Um.H=Zvc,Um["9"]=toe,Um["("]=toe,Um["9h"]=EBn,Um["(h"]=EBn,Um["8"]=kKG,Um["*"]=kKG,Um.a=Lgu,Um.A=Lgu,Um.o=anw,Um.O=anw,Um.m=NMm,Um.M=NMm,Um.mac3=S2X,Um.MAC3=S2X,Um.meac3=HvC,Um.MEAC3=HvC,Um),Rlm=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),lm3=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var m={},Ps=(m["0"]="f",m["160"]="h",m["133"]="h",m["134"]="h",m["135"]="h",m["136"]="h",m["137"]="h",m["264"]="h",m["266"]="h",m["138"]="h",m["298"]="h",m["299"]="h",m["304"]="h",m["305"]="h",m["214"]="h",m["216"]="h",m["374"]="h",m["375"]="h",m["140"]="a",m["141"]="a",m["327"]="sa",m["258"]="m",m["380"]="mac3",m["328"]="meac3",m["161"]="H",m["142"]="H",m["143"]="H",m["144"]="H",m["222"]="H",m["223"]="H",m["145"]="H",m["224"]="H",m["225"]="H",m["146"]="H",m["226"]="H",m["227"]="H",m["147"]="H",m["384"]= "H",m["376"]="H",m["385"]="H",m["377"]="H",m["149"]="A",m["261"]="M",m["381"]="MAC3",m["329"]="MEAC3",m["598"]="9",m["278"]="9",m["242"]="9",m["243"]="9",m["244"]="9",m["775"]="9",m["776"]="9",m["777"]="9",m["778"]="9",m["779"]="9",m["780"]="9",m["781"]="9",m["782"]="9",m["783"]="9",m["247"]="9",m["248"]="9",m["353"]="9",m["355"]="9",m["356"]="9",m["271"]="9",m["577"]="9",m["313"]="9",m["579"]="9",m["272"]="9",m["302"]="9",m["303"]="9",m["407"]="9",m["408"]="9",m["308"]="9",m["315"]="9",m["330"]= "9h",m["331"]="9h",m["332"]="9h",m["333"]="9h",m["334"]="9h",m["335"]="9h",m["336"]="9h",m["337"]="9h",m["338"]="so",m["600"]="o",m["250"]="o",m["251"]="o",m["774"]="o",m["194"]="*",m["195"]="*",m["220"]="*",m["221"]="*",m["196"]="*",m["197"]="*",m["279"]="(",m["280"]="(",m["317"]="(",m["318"]="(",m["273"]="(",m["274"]="(",m["357"]="(",m["358"]="(",m["275"]="(",m["359"]="(",m["360"]="(",m["276"]="(",m["583"]="(",m["584"]="(",m["314"]="(",m["585"]="(",m["561"]="(",m["277"]="(",m["361"]="(h",m["362"]= "(h",m["363"]="(h",m["364"]="(h",m["365"]="(h",m["366"]="(h",m["591"]="(h",m["592"]="(h",m["367"]="(h",m["586"]="(h",m["587"]="(h",m["368"]="(h",m["588"]="(h",m["562"]="(h",m["409"]="(",m["410"]="(",m["411"]="(",m["412"]="(",m["557"]="(",m["558"]="(",m["394"]="1",m["395"]="1",m["396"]="1",m["397"]="1",m["398"]="1",m["399"]="1",m["720"]="1",m["721"]="1",m["400"]="1",m["401"]="1",m["571"]="1",m["402"]="1",m["694"]="1h",m["695"]="1h",m["696"]="1h",m["697"]="1h",m["698"]="1h",m["699"]="1h",m["700"]="1h", m["701"]="1h",m["702"]="1h",m["703"]="1h",m["386"]="3",m["387"]="w",m["406"]="6",m["787"]="1",m["788"]="1",m["548"]="1e",m["549"]="1e",m["550"]="1e",m["551"]="1e",m["809"]="1e",m["810"]="1e",m["552"]="1e",m["811"]="1e",m["812"]="1e",m["553"]="1e",m["813"]="1e",m["814"]="1e",m["554"]="1e",m["815"]="1e",m["816"]="1e",m["555"]="1e",m["817"]="1e",m["818"]="1e",m["572"]="1e",m["556"]="1e",m["645"]="(",m["646"]="(",m["647"]="(",m["648"]="(",m["649"]="(",m["650"]="(",m["651"]="(",m["652"]="(",m["653"]="(", m["654"]="(",m["655"]="(",m["656"]="(",m["657"]="(",m["658"]="(",m["659"]="(",m["660"]="(",m["661"]="(",m["662"]="(",m["663"]="(",m["664"]="(",m["665"]="(",m["666"]="(",m["667"]="(",m["668"]="(",m["669"]="(",m["670"]="(",m["671"]="(",m["672"]="(",m["673"]="(",m["674"]="(h",m["675"]="(h",m["676"]="(h",m["677"]="(h",m["678"]="(h",m["679"]="(h",m["680"]="(h",m["681"]="(h",m["682"]="(h",m["683"]="(h",m["684"]="(h",m["685"]="(h",m["686"]="(h",m["687"]="(h",m["688"]="A",m["689"]="A",m["690"]="A",m["691"]= "MEAC3",m["773"]="i",m["806"]="I",m["805"]="I",m["829"]="9",m["830"]="9",m["831"]="9",m["832"]="9",m["833"]="9",m["834"]="9",m["835"]="9",m["836"]="9",m["892"]="9",m["893"]="9",m["837"]="9",m["838"]="9",m["839"]="9",m["840"]="9",m["841"]="(",m["842"]="(",m["843"]="(",m["844"]="(",m["845"]="(",m["846"]="(",m["847"]="(",m["848"]="(",m["894"]="(",m["895"]="(",m["849"]="(",m["850"]="(",m["851"]="(",m["852"]="(",m["865"]="9",m["866"]="9",m["867"]="9",m["868"]="9",m["869"]="9",m["870"]="9",m["871"]="9", m["872"]="9",m["896"]="9",m["897"]="9",m["873"]="9",m["874"]="9",m["875"]="9",m["876"]="9",m["877"]="(",m["878"]="(",m["879"]="(",m["880"]="(",m["881"]="(",m["882"]="(",m["883"]="(",m["884"]="(",m["898"]="(",m["899"]="(",m["885"]="(",m["886"]="(",m["887"]="(",m["888"]="(",m);var r9={},NQH=(r9.STEREO_LAYOUT_UNKNOWN=0,r9.STEREO_LAYOUT_LEFT_RIGHT=1,r9.STEREO_LAYOUT_TOP_BOTTOM=2,r9);var P2S={KgB:0,qf3:1,fjV:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"},DGb={ve$:0,YPK:124,FZw:144,uaj:220,asI:240,SPK:340,wpw:360,e8s:480,y7K:588,geV:608,J7$:720,r7V:740,R8b:1080,N6s:1100,MG3:1440,mhs:2160,stB:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P", 588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED",1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var oE,uH,AU,HjH;oE={};g.A7=(oE.auto=0,oE.tiny=144,oE.light=144,oE.small=240,oE.medium=360,oE.large=480,oE.hd720=720,oE.hd1080=1080,oE.hd1440=1440,oE.hd2160=2160,oE.hd2880=2880,oE.highres=4320,oE);uH={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};AU={}; HjH=(AU.QUALITY_ORDINAL_UNKNOWN=0,AU.QUALITY_ORDINAL_144P_SAVER=124,AU.QUALITY_ORDINAL_144P=144,AU.QUALITY_ORDINAL_240P_SAVER=220,AU.QUALITY_ORDINAL_240P=240,AU.QUALITY_ORDINAL_360P_SAVER=340,AU.QUALITY_ORDINAL_360P=360,AU.QUALITY_ORDINAL_480P=480,AU.QUALITY_ORDINAL_608P_SAVER=588,AU.QUALITY_ORDINAL_608P=608,AU.QUALITY_ORDINAL_720P=720,AU.QUALITY_ORDINAL_720P_ENHANCED=740,AU.QUALITY_ORDINAL_1080P=1080,AU.QUALITY_ORDINAL_1080P_ENHANCED=1100,AU.QUALITY_ORDINAL_1440P=1440,AU.QUALITY_ORDINAL_2160P=2160, AU.QUALITY_ORDINAL_HIGHRES=9999,AU);var Bs="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");e6.prototype.isHdr=function(){return this.K==="smpte2084"||this.K==="arib-std-b67"};iN.prototype.al=function(){return this.containerType===2}; iN.prototype.isEncrypted=function(){return!!this.Uy}; iN.prototype.Eu=function(){return!!this.audio}; iN.prototype.V5=function(){return!!this.video}; var CN=!1;g.x(Wb,g.V6);g.K=Wb.prototype;g.K.appendBuffer=function(y,q,Q){if(this.N4.yX()!==this.appendWindowStart+this.start||this.N4.Ly()!==this.appendWindowEnd+this.start||this.N4.bj()!==this.timestampOffset+this.start)this.N4.supports(1),this.N4.pZ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.N4.Ds(this.timestampOffset+this.start);this.N4.appendBuffer(y,q,Q)}; g.K.abort=function(){this.N4.abort()}; g.K.remove=function(y,q){this.N4.remove(y+this.start,q+this.start)}; g.K.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.K.clear=function(){this.N4.clear()}; g.K.pZ=function(y,q){this.appendWindowStart=y;this.appendWindowEnd=q}; g.K.qc=function(){return this.timestampOffset+this.start}; g.K.yX=function(){return this.appendWindowStart}; g.K.Ly=function(){return this.appendWindowEnd}; g.K.Ds=function(y){this.timestampOffset=y}; g.K.bj=function(){return this.timestampOffset}; g.K.m5=function(y){y=this.N4.m5(y===void 0?!1:y);return xA(y,this.start,this.end)}; g.K.vx=function(){return this.N4.vx()}; g.K.Wi=function(){return this.N4.Wi()}; g.K.eh=function(){return this.N4.eh()}; g.K.h8=function(){return this.N4.h8()}; g.K.F7=function(){this.N4.F7()}; g.K.C$=function(y){return this.N4.C$(y)}; g.K.JJ=function(){return this.N4.JJ()}; g.K.bP=function(){return this.N4.bP()}; g.K.pC=function(y,q,Q){this.N4.pC(y,q,Q)}; g.K.Vb=function(y,q,Q){this.N4.Vb(y,q,Q)}; g.K.F4=function(y,q){return this.N4.F4(y,q)}; g.K.supports=function(y){return this.N4.supports(y)}; g.K.kA=function(){return this.N4.kA()}; g.K.isView=function(){return!0}; g.K.hZ=function(){return this.N4.hZ()?this.isActive:!1}; g.K.isLocked=function(){return this.Sc&&!this.isActive}; g.K.IH=function(y){y=this.N4.IH(y);y.vw=this.start+"-"+this.end;return y}; g.K.BP=function(){return this.N4.BP()}; g.K.Ga=function(){return this.N4.Ga()}; g.K.du=function(){return this.N4.du()}; g.K.FV=function(){this.N4.jJ(this.lI);g.V6.prototype.FV.call(this)};var rG=!1;g.x(tX,g.V6);g.K=tX.prototype;g.K.appendBuffer=function(y,q,Q){this.hD=!1;Q&&(this.iQ=Q);if(y.length){var p;((p=this.xs)==null?0:p.appendBuffer)?this.xs.appendBuffer(y):this.xs?this.xs.append(y):this.GW&&this.GW.webkitSourceAppend(this.id,y)}q&&(q.isEncrypted()&&(this.Oz=this.iQ),q.type===3&&(this.Wt=q),this.E0.push(q.r0()),this.E0.length>4&&this.E0.shift());this.yR&&(this.yR.length>=2||y.length>1048576?delete this.yR:this.yR.push(y))}; g.K.abort=function(){try{this.xs?this.xs.abort():this.GW&&this.GW.webkitSourceAbort(this.id)}catch(q){if(bTC){var y=new g.GH("Error while abort the source buffer: "+q.name+", "+q.message);g.l$(y)}}this.iQ=this.Wt=null}; g.K.remove=function(y,q,Q){this.hD=!1;var p;if((p=this.xs)==null?0:p.remove)Q&&Q({b:F7(this.m5()),s:y,e:q}),this.xs.remove(y,q)}; g.K.removeAll=function(){this.remove(this.yX(),this.Ly())}; g.K.clear=function(){this.eh()||(this.abort(),this.removeAll(),this.Oz=this.iQ=this.Wt=null,this.appendWindowStart=this.timestampOffset=0,this.IQ=JX([],[]),this.hD=!1,this.yR=ZU?[]:void 0,this.Te=!0)}; g.K.yX=function(){if(rG&&this.V5)return this.appendWindowStart;var y;return((y=this.xs)==null?void 0:y.appendWindowStart)||0}; g.K.Ly=function(){var y;return((y=this.xs)==null?void 0:y.appendWindowEnd)||0}; g.K.pZ=function(y,q){this.xs&&(rG&&this.V5?(this.appendWindowStart=y,this.xs.appendWindowEnd=q):y>this.yX()?(this.xs.appendWindowEnd=q,this.xs.appendWindowStart=y):(this.xs.appendWindowStart=y,this.xs.appendWindowEnd=q))}; g.K.qc=function(){return this.timestampOffset}; g.K.Ds=function(y){rG?this.timestampOffset=y:this.supports(1)&&(this.xs.timestampOffset=y)}; g.K.bj=function(){return rG?this.timestampOffset:this.supports(1)?this.xs.timestampOffset:0}; g.K.m5=function(y){if(y===void 0?0:y)return this.hD||this.vx()||(this.IQ=this.m5(!1),this.hD=!0),this.IQ;try{return this.xs?this.xs.buffered:this.GW?this.GW.webkitSourceBuffered(this.id):JX([0],[Infinity])}catch(q){return JX([],[])}}; g.K.vx=function(){var y;return((y=this.xs)==null?void 0:y.updating)||!1}; g.K.eh=function(){return this.Te}; g.K.h8=function(){return!this.Te&&this.vx()}; g.K.F7=function(){this.Te=!1}; g.K.C$=function(y){var q=y==null?void 0:y.nK;y=y==null?void 0:y.containerType;return!q&&!y||q===this.nK&&y===this.containerType}; g.K.JJ=function(){return this.iQ}; g.K.bP=function(){return this.Oz}; g.K.F4=function(y,q){return this.containerType!==y||this.nK!==q}; g.K.pC=function(y,q,Q){if(this.containerType!==y||Q&&this.F4(y,Q))this.supports(4),EA()&&this.xs.changeType(q),Q&&(this.nK=Q);this.containerType=y}; g.K.Vb=function(y,q,Q){this.containerType&&this.F4(y,q)&&EA()&&this.xs.changeType(Q);this.containerType=y;this.nK=q}; g.K.kA=function(){return this.Wt}; g.K.isView=function(){return!1}; g.K.supports=function(y){switch(y){case 1:var q;return((q=this.xs)==null?void 0:q.timestampOffset)!==void 0;case 0:var Q;return!((Q=this.xs)==null||!Q.appendBuffer);case 2:var p;return!((p=this.xs)==null||!p.remove);case 3:var v,d;return!!(((v=this.xs)==null?0:v.addEventListener)&&((d=this.xs)==null?0:d.removeEventListener));case 4:return!(!this.xs||!this.xs.changeType);default:return!1}}; g.K.hZ=function(){return!this.vx()}; g.K.isLocked=function(){return!1}; g.K.IH=function(y){y.to=this.bj();y.up=this.vx();var q,Q=((q=this.xs)==null?void 0:q.appendWindowStart)||0,p;q=((p=this.xs)==null?void 0:p.appendWindowEnd)||Infinity;y.aw=Q.toFixed(3)+"-"+q.toFixed(3);return y}; g.K.Wi=function(){var y;return((y=this.xs)==null?void 0:y.writeHead)||0}; g.K.BP=function(){for(var y={},q=0;q=7&&(!q||((p=this.WI)==null?0:p.L("mweb_ios_allow_playback_workaround_when_ready")))&&DPs(this,function(){g.xQ(function(){Xt3(y,y.getCurrentTime(),0)},500)})}return q}; g.K.seekTo=function(y){this.j0()>0&&(UG&&CC<4&&(y=Math.max(.1,y)),this.setCurrentTime(y))}; g.K.BC=function(){if(!this.W&&this.Zw)if(this.Zw.J)try{var y;S2(this,{l:"mer",sr:(y=this.WI)==null?void 0:y.VF(),rs:RJ(this.Zw)});this.Zw.clear();this.W=this.Zw;this.Zw=void 0}catch(q){y=new g.GH("Error while clearing Media Source in MediaElement: "+q.name+", "+q.message),g.l$(y),this.stopVideo()}else this.stopVideo()}; g.K.stopVideo=function(){var y=this;if(!this.W){var q;(q=this.Zw)==null||G59(q);if(YF3){if(!this.N){var Q=new M6;Q.then(void 0,function(){}); this.N=Q;fSs&&this.pause();g.xQ(function(){y.N===Q&&(uS(y),Q.resolve())},200)}}else uS(this)}}; g.K.gk=function(){var y=this.Cn();return $A(y)&&this.getDuration()?hX(y,this.getCurrentTime()):0}; g.K.v1=function(){var y=this.getDuration();return y===Infinity?1:y?this.gk()/y:0}; g.K.IH=function(){try{var y=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:F7(this.ih(),",",3),vbu:F7(this.Cn()),vbs:F7(this.D$()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.j0(),vns:""+this.zs(),vec:""+this.H3(),vemsg:this.uF(),vvol:""+this.getVolume(),vdom:""+ +this.bz(),vsrc:""+ +!!this.aW(),vw:""+y.width,vh:""+y.height}}catch(q){return{}}}; g.K.hasError=function(){return this.H3()>0}; g.K.addEventListener=function(y,q){this.Y.listen(y,q,!1,this);this.f5(y)}; g.K.removeEventListener=function(y,q){this.Y.UW(y,q,!1,this)}; g.K.dispatchEvent=function(y){if(this.N&&y.type==="pause")return!1;if(hDs){var q,Q=((q=y.K)==null?void 0:q.timeStamp)||Infinity;q=Q>performance.now()?Q-Date.now()+performance.now():Q;Q=this.W||this.Zw;if((Q==null?0:Q.eh())||q<=((Q==null?void 0:Q.G)||0)){var p;S2(this,{l:"mede",sr:(p=this.WI)==null?void 0:p.VF(),et:y.type});return!1}if(this.g4)return S2(this,{l:"medes",et:y.type}),Q&&y.type==="seeking"&&(Q.G=performance.now(),this.g4=!1),!1}return this.Y.dispatchEvent(y)}; g.K.Pq=function(){this.X=!1}; g.K.lr=function(){this.X=!0;this.E$(!0)}; g.K.Kk=function(){this.X&&!this.HP()&&this.E$(!0)}; g.K.equals=function(y){return!!y&&y.aH()===this.aH()}; g.K.FV=function(){this.C&&this.removeEventListener("volumechange",this.Kk);YF3&&uS(this);g.I.prototype.FV.call(this)}; var YF3=!1,fSs=!1,hDs=!1,ydf=!1;g.K=g.nj.prototype;g.K.isPaused=function(){return g.G(this,4)}; g.K.isPlaying=function(){return g.G(this,8)&&!g.G(this,512)&&!g.G(this,64)&&!g.G(this,2)}; g.K.isOrWillBePlaying=function(){return g.G(this,8)&&!g.G(this,2)&&!g.G(this,1024)}; g.K.isCued=function(){return g.G(this,64)&&!g.G(this,8)&&!g.G(this,4)}; g.K.isBuffering=function(){return g.G(this,1)&&!g.G(this,2)}; g.K.isError=function(){return g.G(this,128)}; g.K.isSuspended=function(){return g.G(this,512)}; g.K.BM=function(){return g.G(this,64)&&g.G(this,4)}; g.K.toString=function(){return"PSt."+this.state.toString(16)}; var e9={},Bd=(e9.BUFFERING="buffering-mode",e9.CUED="cued-mode",e9.ENDED="ended-mode",e9.PAUSED="paused-mode",e9.PLAYING="playing-mode",e9.SEEKING="seeking-mode",e9.UNSTARTED="unstarted-mode",e9);g.x(Pb,g.I);g.K=Pb.prototype;g.K.g6=function(){return this.N}; g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.init=function(){var y=Qe(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=Qe(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W1(this.layout.WB)&&q5(this.FL.get(),this.layout.layoutId,{zH:q,aS:y,listener:this,pm:this.L6()});UJ9(this.Us.get(),this);y=this.oM;q=this.layout.layoutId;var Q={pm:this.L6()};y.K.set(q,Q);this.y7()}; g.K.ai=function(){}; g.K.release=function(){W1(this.layout.WB)&&jS(this.FL.get(),this.layout.layoutId);reb(this.Us.get(),this);this.oM.K.delete(this.layout.layoutId);this.Pd()}; g.K.nO=function(){}; g.K.R0=function(){}; g.K.startRendering=function(y){KN(iS(this));if(X7(this,y)){var q=this.K;xp(q.params.C1.Yf.get(),!0)&&lIf(q,"p_sr",{});m8(this);this.mx(y);this.L6()||this.Uk(!1)}}; g.K.lj=function(y,q){if(q.layoutId===this.layout.layoutId){this.C3="rendering";this.W=this.JK.get().isMuted()||this.JK.get().getVolume()===0;this.z8("impression");this.z8("start");if(this.JK.get().isMuted()){pB(this,"mute");var Q;y=((Q=G$(this))==null?void 0:Q.muteCommands)||[];UH(this.vB.get(),y,this.layout.layoutId)}if(this.JK.get().isFullscreen()){this.IM("fullscreen");var p;Q=((p=G$(this))==null?void 0:p.fullscreenCommands)||[];UH(this.vB.get(),Q,this.layout.layoutId)}this.L6()||(p=this.y$.get(), p.N&&!p.W&&(p.J=!1,p.W=!0,p.actionType!=="ad_to_video"&&(gY("pbs",void 0,p.actionType),g.kQ("finalize_all_timelines")&&FL3(p.actionType))));this.LL(1);this.q8(q);var v;q=((v=G$(this))==null?void 0:v.impressionCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}}; g.K.eO=function(y,q,Q){this.X={xo:3,FJ:y==="load_timeout"?402:400,errorMessage:q.message};this.z8("error");var p;y=((p=G$(this))==null?void 0:p.errorCommands)||[];UH(this.vB.get(),y,this.layout.layoutId);this.L6()||this.It.Nm(this.slot,this.layout,q,Q)}; g.K.Q9=function(){if(this.C3==="rendering"){pB(this,"pause");var y,q=((y=G$(this))==null?void 0:y.pauseCommands)||[];UH(this.vB.get(),q,this.layout.layoutId);this.LL(2)}}; g.K.Ub=function(){if(this.C3==="rendering"){pB(this,"resume");var y,q=((y=G$(this))==null?void 0:y.resumeCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}}; g.K.Jm=function(y,q){q=q===void 0?!1:q;if(this.C3==="rendering"){var Q={currentTimeSec:y,flush:q};Ws(this.K,"p_ip",Q);Sw(this.zy,y*1E3,q);this.W||Sw(this.zy,y*1E3,q===void 0?!1:q);var p=this.HE();if(p){p/=1E3;if(y>=p*.25||q)this.z8("first_quartile"),Ws(this.K,"p_fq",Q);if(y>=p*.5||q)this.z8("midpoint"),Ws(this.K,"p_sq",Q);if(y>=p*.75||q)this.z8("third_quartile"),Ws(this.K,"p_tq",Q);this.Yf.get().U.T().experiments.ob("enable_progress_command_flush_on_kabuki")?ID(this.Y,y*1E3,q):ID(this.Y,y*1E3,dof(this)? q:!1)}}}; g.K.a5=function(){var y;return((y=Cj(this.Gy.get(),1))==null?void 0:y.clientPlaybackNonce)||""}; g.K.UA=function(y,q){y.layoutId!==this.layout.layoutId?this.It.Nm(this.slot,y,new qI("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"):q()}; g.K.Su=function(y,q,Q){if(q.layoutId===this.layout.layoutId)switch(this.C3="not_rendering",this.layoutExitReason=void 0,this.L6()||(y=Q!=="normal"||this.position+1===this.G)&&this.Uk(y),this.v6(Q),this.LL(0),Q){case "abandoned":if(H1(this.zy,"impression")){var p,v=((p=G$(this))==null?void 0:p.abandonCommands)||[];UH(this.vB.get(),v,this.layout.layoutId)}break;case "normal":p=((v=G$(this))==null?void 0:v.completeCommands)||[];UH(this.vB.get(),p,this.layout.layoutId);break;case "skipped":var d;p=((d= G$(this))==null?void 0:d.skipCommands)||[];UH(this.vB.get(),p,this.layout.layoutId)}}; g.K.zz=function(){return this.layout.layoutId}; g.K.Jb=function(){return this.X}; g.K.LT=function(){if(this.C3==="rendering"){this.zy.z8("active_view_measurable");var y,q=((y=G$(this))==null?void 0:y.activeViewMeasurableCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}}; g.K.ib=function(){if(this.C3==="rendering"){this.zy.z8("active_view_fully_viewable_audible_half_duration");var y,q=((y=G$(this))==null?void 0:y.activeViewFullyViewableAudibleHalfDurationCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}}; g.K.GN=function(){if(this.C3==="rendering"){this.zy.z8("active_view_viewable");var y,q=((y=G$(this))==null?void 0:y.activeViewViewableCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}}; g.K.Ui=function(){if(this.C3==="rendering"){this.zy.z8("audio_audible");var y,q=((y=G$(this))==null?void 0:y.activeViewAudioAudibleCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}}; g.K.Ei=function(){if(this.C3==="rendering"){this.zy.z8("audio_measurable");var y,q=((y=G$(this))==null?void 0:y.activeViewAudioMeasurableCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}}; g.K.Uk=function(y){this.y$.get().Uk(Qe(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,y,this.position,this.G,!1)}; g.K.onFullscreenToggled=function(y){if(this.C3==="rendering")if(y){this.IM("fullscreen");var q,Q=((q=G$(this))==null?void 0:q.fullscreenCommands)||[];UH(this.vB.get(),Q,this.layout.layoutId)}else this.IM("end_fullscreen"),q=((Q=G$(this))==null?void 0:Q.endFullscreenCommands)||[],UH(this.vB.get(),q,this.layout.layoutId)}; g.K.onVolumeChange=function(){if(this.C3==="rendering")if(this.JK.get().isMuted()){pB(this,"mute");var y,q=((y=G$(this))==null?void 0:y.muteCommands)||[];UH(this.vB.get(),q,this.layout.layoutId)}else pB(this,"unmute"),y=((q=G$(this))==null?void 0:q.unmuteCommands)||[],UH(this.vB.get(),y,this.layout.layoutId)}; g.K.v3=function(){}; g.K.bH=function(){}; g.K.f1=function(){}; g.K.XT=function(){}; g.K.kx=function(){}; g.K.IM=function(y){this.zy.IM(y,!this.W)}; g.K.z8=function(y){this.zy.z8(y,!this.W)}; g.K.L6=function(){var y=Qe(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return y===void 0?(hx("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Yf.get().L6(y)};g.x(OK,Pb);g.K=OK.prototype;g.K.y7=function(){}; g.K.Pd=function(){var y=this.Us.get();y.oy===this&&(y.oy=null);this.timer.stop()}; g.K.nO=function(){this.timer.stop();Pb.prototype.Q9.call(this)}; g.K.R0=function(){J$(this);Pb.prototype.Ub.call(this)}; g.K.HE=function(){return Qe(this.hK().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.K.qz=function(y,q){var Q=this;this.UA(y,function(){Q.C3!=="rendering_stop_requested"&&(Q.C3="rendering_stop_requested",Q.layoutExitReason=q,yD(Q,q),Q.timer.stop())})}; g.K.xj=function(){var y=Date.now(),q=y-this.Kp;this.Kp=y;this.aE+=q;this.aE>=this.HE()?this.BX():(this.Jm(this.aE/1E3),wL(this,this.aE))}; g.K.v6=function(){}; g.K.B_=function(){}; g.x(FP,OK);g.K=FP.prototype;g.K.Ht=function(y){if(this.C3!=="not_rendering"){y=qD(this,y);var q=this.JK.get().getPresentingPlayerType()===2;this.C3==="rendering_start_requested"?q&&VC(y)&&this.dB():q?g.Ks(y,2)?hx("Receive player ended event during MediaBreak",this.HB(),this.hK()):jX(this,y):this.Cs()}}; g.K.mx=function(){pDi(this);mJf(this.JK.get());this.Us.get().oy=this;I0("pbp")||I0("pbs")||gY("pbp");I0("pbp","watch")||I0("pbs","watch")||gY("pbp",void 0,"watch");this.dB()}; g.K.q8=function(y){this.y$.get();var q=Qe(y.clientMetadata,"metadata_type_ad_placement_config").kind,Q=this.position===0;y=Qe(y.clientMetadata,"metadata_type_linked_in_player_layout_type");y={adBreakType:QD(q),adType:$oS(y)};var p=void 0;Q?q!=="AD_PLACEMENT_KIND_START"&&(p="video_to_ad"):p="ad_to_ad";zn("ad_mbs",void 0,p);g.D_(y,p);J$(this)}; g.K.Cs=function(){this.TR()}; g.K.BX=function(){VfH(this);this.TR()}; g.x(YI,OK);g.K=YI.prototype;g.K.Ht=function(y){this.C3!=="not_rendering"&&(y=qD(this,y),jX(this,y))}; g.K.mx=function(){hx("Not used in SSAP")}; g.K.q8=function(){J$(this)}; g.K.Cs=function(){hx("Not used in SSAP")}; g.K.BX=function(){VfH(this);this.It.e$(this.HB(),this.hK(),"normal")}; g.x(fB,YI);fB.prototype.qz=function(y,q){var Q=this;this.UA(y,function(){Yp(Q.N,q)&&(Q.C3="rendering_stop_requested",Q.layoutExitReason=q,yD(Q,q),Q.timer.stop())})}; fB.prototype.startRendering=function(y){KN(iS(this));X7(this,y)&&(m8(this),this.Us.get().oy=this)};g.x($I,Pb);g.K=$I.prototype;g.K.Cs=function(){this.TR()}; g.K.Ht=function(y){if(this.C3!=="not_rendering"){y=qD(this,y);var q=this.JK.get().getPresentingPlayerType()===2;this.C3==="rendering_start_requested"?q&&VC(y)&&this.dB():!q||g.Ks(y,2)?this.TR():jX(this,y)}}; g.K.y7=function(){Qe(this.hK().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Qe(this.hK().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.K.Pd=function(){Qe(this.hK().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.wh){var y=this.context.C1,q=this.wh,Q=this.hK().layoutId;if(xp(y.Yf.get(),!0)){var p={};y.MU("mccru",(p.cid=q,p.p_ac=Q,p))}this.a7.get().removeCueRange(this.wh)}this.wh=void 0;var v;(v=this.f0)==null||v.dispose();this.bX&&this.bX.dispose()}; g.K.mx=function(y){var q=h$(this.Yf.get()),Q=b2(this.Yf.get());if(q&&Q&&!this.L6()){Q=Qe(y.clientMetadata,"metadata_type_preload_player_vars");var p=this.Yf.get();p=g.wm(p.U.T().experiments,"html5_preload_wait_time_secs");Q&&this.bX&&this.bX.start(p*1E3)}Jdf(this,y);pDi(this);q?(Q=this.ut.get(),y=Qe(y.clientMetadata,"metadata_type_player_vars"),Q.U.loadVideoByPlayerVars(y,!1,2)):Yz9(this.ut.get(),Qe(y.clientMetadata,"metadata_type_player_vars"));var v;(v=this.f0)==null||v.start();q||this.ut.get().U.playVideo(2)}; g.K.q8=function(){var y;(y=this.f0)==null||y.stop();this.cK();(this.adCpn=Q0b(this))||hx("Media layout confirmed started, but ad CPN not set.");this.nt.get().EL("onAdStart",this.adCpn);this.Qj=Date.now()}; g.K.HE=function(){var y;return(y=Cj(this.Gy.get(),2))==null?void 0:y.sB}; g.K.LR=function(){this.zy.IM("clickthrough")}; g.K.qz=function(y,q){var Q=this;this.UA(y,function(){if(Q.C3!=="rendering_stop_requested"){Q.C3="rendering_stop_requested";Q.layoutExitReason=q;yD(Q,q);var p;(p=Q.f0)==null||p.stop();Q.bX&&Q.bX.stop();Fr2(Q)}})}; g.K.onCueRangeEnter=function(y){if(y!==this.wh)hx("Received CueRangeEnter signal for unknown layout.",this.HB(),this.hK(),{cueRangeId:y});else{var q=this.context.C1,Q=this.hK().layoutId;if(xp(q.Yf.get(),!0)){var p={};q.MU("mccre",(p.cid=y,p.p_ac=Q,p))}this.a7.get().removeCueRange(this.wh);this.wh=void 0;eb(this.context.Yf.get(),"html5_ssap_flush_at_stop_rendering")&&this.L6()||(y=Qe(this.hK().clientMetadata,"metadata_type_video_length_seconds"),this.Jm(y,!0),this.z8("complete"))}}; g.K.v6=function(y){y!=="abandoned"&&this.nt.get().EL("onAdComplete");this.nt.get().EL("onAdEnd",this.adCpn)}; g.K.cK=function(){this.wh="adcompletioncuerange:"+this.hK().layoutId;this.a7.get().addCueRange(this.wh,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var y=this.context.C1,q=this.wh,Q=this.hK().layoutId;if(xp(y.Yf.get(),!0)){var p={};y.MU("mccr",(p.cid=q,p.p_ac=Q,p))}}; g.K.onCueRangeExit=function(){}; g.K.B_=function(y){this.C3==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&y>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.JK.get().g8(!0),this.Jm(y))}; g.K.Jm=function(y,q){Pb.prototype.Jm.call(this,y,q===void 0?!1:q);q=Date.now()-this.Qj;var Q=y*1E3,p={contentCpn:this.a5(),adCpn:Q0b(this)};if(y-this.VS>=5){var v=q=2||(this.o7.qz(this.layout,q),y=eb(this.params.context.Yf.get(),"html5_ssap_pass_transition_reason")&&q==="abandoned",this.Q7()&&!y&&(eb(this.params.context.Yf.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(q)||hx("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:q})),this.m2.get().finishSegmentByCpn(this.layout.layoutId, Cj(this.Gy.get(),1).clientPlaybackNonce,dL(q,this.params.context.Yf))),this.JK.get().removeListener(this),this.Hh()&&fN(this.o7.g6())&&this.v7.Su(this.slot,this.layout,this.o7.g6().K))}; g.K.MA=function(y,q,Q){syg({cpn:y,Mm:this.Gy.get(),LO:!0});this.hK().layoutId!==y||eb(this.params.context.Yf.get(),"html5_ssap_pass_transition_reason")&&Q===5||(this.o7.g6().currentState<2&&(y=Th(Q,this.params.context.Yf),y==="error"?this.v7.Nm(this.slot,this.layout,new qI("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:Q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):ND(this.Up, this.layout,y)),eb(this.params.context.Yf.get(),"html5_ssap_exit_without_waiting_for_transition")||this.v7.Su(this.slot,this.layout,this.o7.g6().K))};g.x(t$,g.I);g.K=t$.prototype;g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.Xs=function(){}; g.K.f6=function(){return this.CU[this.Qw]}; g.K.e0=function(){return this.Qw}; g.K.nO=function(y,q){var Q=this.f6();q.layoutId!==kI(Q,y,q)?hx("pauseLayout for a PlayerBytes layout that is not currently active",y,q):Q.nO()}; g.K.R0=function(y,q){var Q=this.f6();q.layoutId!==kI(Q,y,q)?hx("resumeLayout for a PlayerBytes layout that is not currently active",y,q):Q.R0()}; g.K.bb=function(y,q){var Q=this.f6();tf9(this,y,q);ERb(Q,y,q)&&this.QB(Q.HB(),Q.hK(),"skipped")}; g.K.ys=function(y,q){var Q=this.f6();kng(this);Lrs(Q,y,q)&&(y=a_i(this,Q,y,q),y!==void 0&&(this.L6()?hx("Should not happen. Should delete"):SRS(this,Q.HB(),Q.hK(),y)))}; g.K.Rz=function(y,q){var Q=Object.assign({},EK(this),{layoutId:q.layoutId}),p=Q.layoutId,v=Q.LO;if(Q.pm){var d={};$p(Q.Mm,"wrse",(d.ec=p,d.is=v,d.ctp=bN(p),d))}Lz(this.Cm,y,q)}; g.K.lj=function(y,q){var Q;(Q=this.f6())==null||Q.lj(y,q)}; g.K.Su=function(y,q,Q){q.layoutId===this.hK().layoutId&&(this.B1=!1,fz(this.PB(),this));var p;(p=this.f6())==null||p.Su(y,q,Q)}; g.K.B_=function(y){var q;(q=this.f6())==null||q.B_(y)}; g.K.Fw=function(y,q,Q){this.e0()===-1&&(this.callback.lj(this.slot,this.layout),this.Qw++);var p=this.f6();p?(p.eO(y,q,Q),this.L6()&&this.callback.Nm(this.slot,this.layout,q,Q)):hx("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.e0()),layoutId:this.hK().layoutId})}; g.K.onFullscreenToggled=function(y){var q;(q=this.f6())==null||q.onFullscreenToggled(y)}; g.K.v3=function(y){var q;(q=this.f6())==null||q.v3(y)}; g.K.f1=function(y){var q;(q=this.f6())==null||q.f1(y)}; g.K.onVolumeChange=function(){var y;(y=this.f6())==null||y.onVolumeChange()}; g.K.Qy=function(y,q,Q){aI(this.Cm,y,q,Q)}; g.K.Rc=function(y){y.startRendering(y.hK())}; g.K.init=function(){var y=Qe(this.hK().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");y&&(y.current=this);if(this.CU.length<1)throw new P("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.CU.length)});if(y=Qe(this.hK().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))y.current=this;y=g.t(this.CU);for(var q=y.next();!q.done;q=y.next())q=q.value,q.init(),mBf(this.Cm,this.slot,q.hK()),Cti(this.Cm,this.slot,q.hK()); if(this.L6())for(this.Gy.get().addListener(this),Lj3(ZpS(this),this.Gy.get()),y=ZpS(this),y=g.t(y),q=y.next();!q.done;q=y.next())this.BY(q.value)}; g.K.BY=function(y){var q=Qe(y.clientMetadata,"metadata_type_player_vars");q?(y.layoutType!=="LAYOUT_TYPE_MEDIA"&&hx("Non-video ad contains playerVars",this.slot,y),this.ut.get().addPlayerResponseForAssociation({playerVars:q})):(y=Krf(y),this.ut.get().addPlayerResponseForAssociation({s4:y}))}; g.K.release=function(){var y=Qe(this.hK().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");y&&(y.current=null);if(y=Qe(this.hK().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))y.current=null;y=g.t(this.CU);for(var q=y.next();!q.done;q=y.next())q=q.value,y4D(this.Cm,this.slot,q.hK()),q.release();this.L6()&&(this.Gy.get().removeListener(this),aIp())}; g.K.UA=function(y){return y.layoutId!==this.hK().layoutId?(this.callback.Nm(this.HB(),y,new qI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.hK().layoutId+("and LayoutType: "+this.hK().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.K.Me=function(){this.JK.get().addListener(this);Yt(this.PB(),this)}; g.K.Ht=function(y){if(y.state.isError()){var q,Q;this.Fw((q=y.state.kJ)==null?void 0:q.errorCode,new qI("There was a player error during this media layout.",{playerErrorCode:(Q=y.state.kJ)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(q=this.f6())&&q.Ht(y)}; g.K.L6=function(){var y=Qe(this.HB().clientMetadata,"metadata_type_eligible_for_ssap");return y===void 0?(hx("Expected SSAP eligibility in PlayerBytes slots",this.HB(),this.hK()),!1):this.Yf.get().L6(y)}; g.K.bH=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.XT=function(){}; g.K.kx=function(){}; g.x(SX,t$);g.K=SX.prototype;g.K.Mf=function(y,q,Q){this.QB(y,q,Q)}; g.K.Nf=function(y,q){this.QB(y,q,"error")}; g.K.QB=function(y,q,Q){var p=this;NYD(this,y,q,Q,function(){LB(p,p.e0()+1)})}; g.K.startRendering=function(y){this.UA(y)&&(this.Me(),wCH(this.y$.get()),$JH(this.Yf.get())||mJf(this.JK.get()),this.e0()===-1&&LB(this,this.e0()+1))}; g.K.qz=function(y,q){var Q=this;this.B1=!0;this.e0()===this.CU.length?this.callback.Su(this.slot,this.layout,q):(y=this.f6(),y.qz(y.hK(),q),this.MS=function(){Q.callback.Su(Q.slot,Q.layout,q)}); this.JK.get().U.XW();Yz9(this.ut.get(),{});y=yd(this.JK.get(),1);y.isPaused()&&!g.G(y,2)&&this.JK.get().playVideo();this.JK.get().removeListener(this);this.B1&&HpH(this)}; g.K.MA=function(){}; g.K.NA=function(){}; g.K.e$=function(){}; g.x(HS,t$);g.K=HS.prototype;g.K.Mf=function(y,q,Q){y=Object.assign({},EK(this),{layoutId:q.layoutId,layoutExitReason:Q});q=y.layoutId;Q=y.layoutExitReason;var p={};$p(y.Mm,"prse",(p.xc=q,p.ler=Q,p.ctp=bN(q),p))}; g.K.Nf=function(){hx("onSubLayoutError in SSAP")}; g.K.QB=function(){hx("exitSubLayoutAndPlayNext in SSAP")}; g.K.f6=function(){return this.GI}; g.K.e0=function(){var y=this;return this.CU.findIndex(function(q){var Q;return q.hK().layoutId===((Q=y.GI)==null?void 0:Q.hK().layoutId)})}; g.K.Rc=function(y){fs(this.GI===void 0,"replacing another adapter");this.GI=y;y.startRendering(y.hK())}; g.K.Qy=function(y,q,Q){aI(this.Cm,y,q,Q);var p;fs(q.layoutId===((p=this.GI)==null?void 0:p.hK().layoutId),"currentAdapter does not match exiting layout",{slot:y?"slot: "+y.slotType:"",subLayout:Yz(q)})&&(this.GI=void 0)}; g.K.release=function(){t$.prototype.release.call(this);fs(this.GI===void 0,"currentAdapter is still active during release");this.GI=void 0}; g.K.Q7=function(){return this.JK.get().getPresentingPlayerType()===2}; g.K.qz=function(y,q){function Q(){Rh(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(q)||hx("Composite stopRendering: Unexpected layout exit reason",this.slot,y,{layoutExitReason:q}))} function p(){this.GI&&sK(this,this.GI,q);if(this.Q7()&&(!Rh(this)||q!=="abandoned")){Q.call(this);var d;var T=((d=this.Gy.get().U.getVideoData())==null?void 0:d.clientPlaybackNonce)||"";d=Cj(this.Gy.get(),1).clientPlaybackNonce;this.m2.get().finishSegmentByCpn(T,d,dL(q,this.Yf))}R9S(this,q)} function v(){if(this.GI){var d=this.GI;d.g6().currentState<2&&d.qz(d.hK(),q);d=Rh(this)&&q==="abandoned";this.Q7()&&!d&&(Q.call(this),this.m2.get().finishSegmentByCpn(this.GI.hK().layoutId,Cj(this.Gy.get(),1).clientPlaybackNonce,dL(q,this.Yf)))}} fs(y.layoutId===this.hK().layoutId,"StopRendering for wrong layout")&&Yp(this.Og.W,q)&&(this.Hh()?p.call(this):v.call(this))}; g.K.Su=function(y,q,Q){t$.prototype.Su.call(this,y,q,Q);q.layoutId===this.hK().layoutId&&this.JK.get().removeListener(this)}; g.K.a5=function(){return Cj(this.Gy.get(),1).clientPlaybackNonce}; g.K.MA=function(y,q,Q){syg(Object.assign({},EK(this),{cpn:y}));if(!Rh(this)||Q!==5)if(this.Hh()){if(this.GI&&this.GI.hK().layoutId!==q){var p=this.GI.hK().layoutId;p!==y&&hx("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:p,exitingCpn:y,enteringCpn:q});y=Th(Q,this.Yf);sK(this,this.GI,y)}else this.GI&&hx("onClipExited: active layout is entering again");q===this.a5()&&Mf9(this,Q)}else{if(this.GI&&this.GI.hK().layoutId===y)s0g(this,this.GI,Q);else{var v;hx("Exiting cpn does not match active cpn", this.slot,(p=this.GI)==null?void 0:p.hK(),{exitingCpn:y,transitionReason:Q,activeCpn:(v=this.GI)==null?void 0:v.hK().layoutId})}q===this.a5()&&(this.GI!==void 0&&(hx("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Yz(this.GI.hK())}),s0g(this,this.GI,Q)),Mf9(this,Q),R9S(this,this.Og.W.K))}}; g.K.Hh=function(){return eb(this.Yf.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.K.startRendering=function(y){this.UA(y)&&(y=this.Og,fs(y.K===1,"tickStartRendering: state is not initial"),y.K=2,this.Me())}; g.K.NA=function(y){RRg(Object.assign({},EK(this),{cpn:y}));var q=this.CU.find(function(Q){return Q.hK().layoutId===y}); q?(this.Og.K!==2&&(fi8(this.Q8,this.slot.slotId),fs(this.Og.K===2,"Expect started"),this.callback.lj(this.slot,this.layout)),this.Rc(q),Lz(this.Cm,this.slot,q.hK())):l_p(this,y)}; g.K.bb=function(y,q){tf9(this,y,q);var Q=this.f6();Q?ERb(Q,y,q)&&z99(this,"skipped"):DoD(this,"onSkipRequested")}; g.K.ys=function(y,q){var Q;a:{if(Q=this.f6()){if(kng(this),Lrs(Q,y,q)&&(y=a_i(this,Q,y,q),y!==void 0)){Q={EM:Q,cRy:this.CU[y]};break a}}else DoD(this,"SkipWithAdPodSkip");Q=void 0}if(y=Q)Q=y.EM,q=y.cRy,y=Q.hK().layoutId,this.Hh()?sK(this,Q,"skipped"):Q.qz(Q.hK(),"skipped"),Q=q.hK().layoutId,this.m2.get().finishSegmentByCpn(y,Q,dL("skipped",this.Yf))}; g.K.Rz=function(){hx("Not used in html5_ssap_fix_layout_exit")}; g.K.Ht=function(y){var q;(q=this.f6())==null||q.Ht(y)}; g.K.Fw=function(){hx("Not used in html5_ssap_fix_layout_exit")}; g.K.e$=function(y,q,Q){var p;if(((p=this.f6())==null?void 0:p.hK().layoutId)!==q.layoutId)return void hx("requestToExitSubLayout: wrong layout");z99(this,Q)};g.x(MD,g.I);g.K=MD.prototype;g.K.HB=function(){return this.o7.HB()}; g.K.hK=function(){return this.o7.hK()}; g.K.init=function(){var y=Qe(this.hK().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");y&&(y.current=this);this.y7()}; g.K.y7=function(){this.o7.init()}; g.K.release=function(){var y=Qe(this.hK().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");y&&(y.current=null);this.Pd()}; g.K.Pd=function(){this.o7.release()}; g.K.nO=function(){this.o7.nO()}; g.K.R0=function(){this.o7.R0()}; g.K.bb=function(y,q){hx("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.HB(),this.hK(),{requestingSlot:y,requestingLayout:q})}; g.K.startRendering=function(y){y.layoutId!==this.hK().layoutId?this.callback.Nm(this.HB(),y,new qI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.hK().layoutId+("and LayoutType: "+this.hK().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.JK.get().addListener(this),Yt(this.PB(),this),wCH(this.y$.get()),$JH(this.Yf.get())||mJf(this.JK.get()),this.o7.startRendering(y))}; g.K.qz=function(y,q){this.B1=!0;this.o7.qz(y,q);this.JK.get().U.XW();Yz9(this.ut.get(),{});y=yd(this.JK.get(),1);y.isPaused()&&!g.G(y,2)&&this.JK.get().playVideo();this.JK.get().removeListener(this);this.B1&&this.o7.Cs()}; g.K.lj=function(y,q){this.o7.lj(y,q)}; g.K.Su=function(y,q,Q){q.layoutId===this.hK().layoutId&&(this.B1=!1,fz(this.PB(),this));this.o7.Su(y,q,Q);q.layoutId===this.hK().layoutId&&ah(this.y$.get())}; g.K.B_=function(y){this.o7.B_(y)}; g.K.Ht=function(y){if(y.state.isError()){var q,Q;this.Fw((q=y.state.kJ)==null?void 0:q.errorCode,new qI("There was a player error during this media layout.",{playerErrorCode:(Q=y.state.kJ)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.o7.Ht(y)}; g.K.Fw=function(y,q,Q){this.o7.eO(y,q,Q)}; g.K.onFullscreenToggled=function(y){this.o7.onFullscreenToggled(y)}; g.K.v3=function(y){this.o7.v3(y)}; g.K.f1=function(y){this.o7.f1(y)}; g.K.onVolumeChange=function(){this.o7.onVolumeChange()}; g.K.bH=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.XT=function(){}; g.K.kx=function(){};g.K=l2.prototype;g.K.HB=function(){return this.slot}; g.K.hK=function(){return this.layout}; g.K.init=function(){this.Aj.get().addListener(this);this.JK.get().addListener(this);var y=Qe(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var q=Qe(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Y){var Q=this.Aj.get().Ci.slice(-1)[0];Q!==void 0&&(y=Q.startSecs*1E3,q=(Q.startSecs+Q.Ey)*1E3)}this.ai(y,q);var p;Q=(p=this.Gy.get().F5)==null?void 0:p.clientPlaybackNonce;p=this.layout.L3.adClientDataEntry;zh(this.Us.get(),{daiStateTrigger:{filledAdsDurationMs:q-y,contentCpn:Q, adClientData:p}});var v=this.Aj.get();v=nRS(v.N,y,q);v!==null&&(zh(this.Us.get(),{daiStateTrigger:{filledAdsDurationMs:v-y,contentCpn:Q,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:p}}),this.m2.get().MO(v,q))}; g.K.release=function(){this.Pd();this.Aj.get().removeListener(this);this.JK.get().removeListener(this)}; g.K.startRendering=function(){this.mx();this.callback.lj(this.slot,this.layout)}; g.K.qz=function(y,q){this.D2(q);this.driftRecoveryMs!==null&&(DJ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(gRf(this)-Qe(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.JK.get().U.ue()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Su(this.slot,this.layout,q)}; g.K.Yi=function(){return!1}; g.K.tY=function(y){var q=Qe(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),Q=Qe(this.layout.clientMetadata,"metadata_type_layout_exit_ms");y*=1E3;if(q<=y&&y0&&NI(this.K(),q)}; g.K.LU=function(y){this.J.delete(y.slotId);for(var q=[],Q=g.t(this.s9.values()),p=Q.next();!p.done;p=Q.next()){p=p.value;var v=p.trigger;v instanceof I6&&v.triggeringSlotId===y.slotId&&q.push(p)}q.length>0&&NI(this.K(),q)}; g.K.QF=function(y){for(var q=[],Q=g.t(this.s9.values()),p=Q.next();!p.done;p=Q.next()){p=p.value;var v=p.trigger;v instanceof Zc&&v.slotType===y.slotType&&v.K!==y.slotId&&q.push(p)}q.length>0&&NI(this.K(),q)}; g.K.xk=function(y){this.N.add(y.slotId);for(var q=[],Q=g.t(this.s9.values()),p=Q.next();!p.done;p=Q.next())p=p.value,p.trigger instanceof a6&&y.slotId===p.trigger.triggeringSlotId&&q.push(p);q.length>0&&NI(this.K(),q)}; g.K.Xl=function(y){this.N.delete(y.slotId);this.Y.add(y.slotId);for(var q=[],Q=g.t(this.s9.values()),p=Q.next();!p.done;p=Q.next())if(p=p.value,p.trigger instanceof N8)y.slotId===p.trigger.triggeringSlotId&&q.push(p);else if(p.trigger instanceof OL){var v=p.trigger;y.slotId===v.slotId&&this.W.has(v.triggeringLayoutId)&&q.push(p)}q.length>0&&NI(this.K(),q)}; g.K.UY=function(y){for(var q=[],Q=g.t(this.s9.values()),p=Q.next();!p.done;p=Q.next())p=p.value,p.trigger instanceof SV&&y.slotId===p.trigger.triggeringSlotId&&q.push(p);q.length>0&&NI(this.K(),q)}; g.K.EY=function(y){for(var q=[],Q=g.t(this.s9.values()),p=Q.next();!p.done;p=Q.next())p=p.value,p.trigger instanceof Hh&&y.slotId===p.trigger.triggeringSlotId&&q.push(p);q.length>0&&NI(this.K(),q)}; g.K.fn=function(y,q){this.G.add(q.layoutId)}; g.K.gK=function(y,q){this.G.delete(q.layoutId)}; g.K.lj=function(y,q){this.W.add(q.layoutId);for(var Q=[],p=g.t(this.s9.values()),v=p.next();!v.done;v=p.next())if(v=v.value,v.trigger instanceof w7)q.layoutId===v.trigger.triggeringLayoutId&&Q.push(v);else if(v.trigger instanceof Wh){var d=v.trigger;y.slotType===d.slotType&&q.layoutType===d.layoutType&&q.layoutId!==d.K&&Q.push(v)}else v.trigger instanceof OL&&(d=v.trigger,q.layoutId===d.triggeringLayoutId&&this.Y.has(d.slotId)&&Q.push(v));Q.length>0&&NI(this.K(),Q)}; g.K.Su=function(y,q,Q){this.W.delete(q.layoutId);y=[];for(var p=g.t(this.s9.values()),v=p.next();!v.done;v=p.next())if(v=v.value,v.trigger instanceof F$&&q.layoutId===v.trigger.triggeringLayoutId&&y.push(v),v.trigger instanceof Jq){var d=v.trigger;q.layoutId===d.triggeringLayoutId&&d.K.includes(Q)&&y.push(v)}y.length>0&&NI(this.K(),y)}; g.K.t6=function(){}; g.K.ZC=function(){this.Y.clear()}; g.K.rY=function(){};g.x(t3,g.I);t3.prototype.bV=function(y,q,Q,p){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(q instanceof TB))throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CloseRequestedTriggerAdapter");this.s9.set(q.triggerId,new ch(y,q,Q,p))}; t3.prototype.zg=function(y){this.s9.delete(y.triggerId)};g.x(k7,g.I);k7.prototype.bV=function(y,q,Q,p){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(q instanceof d7||q instanceof EL))throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.s9.set(q.triggerId,new ch(y,q,Q,p))}; k7.prototype.zg=function(y){this.s9.delete(y.triggerId)}; k7.prototype.ZC=function(y){for(var q=[],Q=q.push,p=Q.apply,v=[],d=g.t(this.s9.values()),T=d.next();!T.done;T=d.next())T=T.value,T.trigger instanceof d7&&T.trigger.Ph===y&&v.push(T);p.call(Q,q,g.hH(v));Q=q.push;p=Q.apply;v=[];d=g.t(this.s9.values());for(T=d.next();!T.done;T=d.next())T=T.value,T.trigger instanceof EL&&T.trigger.K!==y&&v.push(T);p.call(Q,q,g.hH(v));q.length&&NI(this.K(),q)}; k7.prototype.rY=function(y){for(var q=[],Q=q.push,p=Q.apply,v=[],d=g.t(this.s9.values()),T=d.next();!T.done;T=d.next()){T=T.value;var O=T.trigger;O instanceof EL&&O.K===y&&v.push(T)}p.call(Q,q,g.hH(v));q.length&&NI(this.K(),q)};g.x(LZ,g.I);g.K=LZ.prototype;g.K.bV=function(y,q,Q,p){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");var v="adtriggercuerange:"+q.triggerId;if(q instanceof K6)pl9(this,y,q,Q,p,v,q.K.start,q.K.end,q.Ph,q.visible);else if(q instanceof Vy)pl9(this,y,q,Q,p,v,0x7ffffffffffff,0x8000000000000,q.Ph,q.visible);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CueRangeTriggerAdapter");}; g.K.zg=function(y){var q=this.s9.get(y.triggerId);q&&this.a7.get().removeCueRange(q.cueRangeId);this.s9.delete(y.triggerId)}; g.K.onCueRangeEnter=function(y){var q=vtj(this,y);if(q&&(q=this.s9.get(q)))if(g.G(yd(this.JK.get()),32))this.K.add(q.cueRangeId);else{var Q=q==null?void 0:q.Xv.trigger;if(Q instanceof K6||Q instanceof Vy){if(xp(this.context.Yf.get())){var p=q.Xv.slot,v=q.Xv.layout,d={};this.context.C1.MU("cre",(d.ca=q.Xv.category,d.tt=Q.triggerType,d.st=p.slotType,d.lt=v==null?void 0:v.layoutType,d.cid=y,d))}NI(this.W(),[q.Xv])}}}; g.K.onCueRangeExit=function(y){(y=vtj(this,y))&&(y=this.s9.get(y))&&this.K.delete(y.cueRangeId)}; g.K.Ht=function(y){if($z(y,16)<0){y=g.t(this.K);for(var q=y.next();!q.done;q=y.next())this.onCueRangeEnter(q.value,!0);this.K.clear()}}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.lj=function(){}; g.K.Su=function(){}; g.K.t6=function(){}; g.K.B_=function(){}; g.K.onFullscreenToggled=function(){}; g.K.v3=function(){}; g.K.bH=function(){}; g.K.f1=function(){}; g.K.onVolumeChange=function(){}; g.K.XT=function(){}; g.K.kx=function(){};g.x(ar,g.I);g.K=ar.prototype; g.K.bV=function(y,q,Q,p){if(this.W.has(q.triggerId)||this.N.has(q.triggerId))throw new P("Tried to re-register the trigger.");y=new ch(y,q,Q,p);if(y.trigger instanceof bP)this.W.set(y.trigger.triggerId,y);else if(y.trigger instanceof Yj)this.N.set(y.trigger.triggerId,y);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+y.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(y.trigger.triggerId)&&y.slot.slotId===this.K&&NI(this.Y(),[y])}; g.K.zg=function(y){this.W.delete(y.triggerId);this.N.delete(y.triggerId)}; g.K.Xs=function(y){y=y.slotId;if(this.K!==y){var q=[];this.K!=null&&q.push.apply(q,g.hH(dI8(this.N,this.K)));y!=null&&q.push.apply(q,g.hH(dI8(this.W,y)));this.K=y;q.length&&NI(this.Y(),q)}}; g.K.MA=function(){}; g.K.NA=function(){};g.x(Nl,g.I);g.K=Nl.prototype;g.K.bV=function(y,q,Q,p){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(q instanceof tq))throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.s9.set(q.triggerId,new ch(y,q,Q,p))}; g.K.zg=function(y){this.s9.delete(y.triggerId)}; g.K.lj=function(){}; g.K.Su=function(){}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){};g.x(SG,g.I);g.K=SG.prototype;g.K.t6=function(y,q){for(var Q=[],p=g.t(this.s9.values()),v=p.next();!v.done;v=p.next()){v=v.value;var d=v.trigger;d.opportunityType===y&&(d.associatedSlotId&&d.associatedSlotId!==q||Q.push(v))}Q.length&&NI(this.K(),Q)}; g.K.bV=function(y,q,Q,p){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(q instanceof bDj))throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OpportunityEventTriggerAdapter");this.s9.set(q.triggerId,new ch(y,q,Q,p))}; g.K.zg=function(y){this.s9.delete(y.triggerId)}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.lj=function(){}; g.K.Su=function(){};g.x(H$,g.I);g.K=H$.prototype;g.K.bV=function(y,q,Q,p){y=new ch(y,q,Q,p);if(q instanceof f6||q instanceof xj||q instanceof hq||q instanceof kj||q instanceof fF9){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");this.s9.set(q.triggerId,y)}else throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in PrefetchTriggerAdapter");}; g.K.zg=function(y){this.s9.delete(y.triggerId)}; g.K.z3=function(y){var q=y.slotFulfillmentTriggers.find(function(Q){return Q instanceof f6}); q&&(Rr(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",q.breakDurationMs,new Set([y.slotId]),!0),Ih(this.Us.get(),"ads_css","sid."+y.slotId+";bd."+q.breakDurationMs))}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.lj=function(){}; g.K.Su=function(){}; g.K.t6=function(){}; g.K.Yi=function(y){var q=this;if(!this.K)return hx("Unexpected cue break before fetch instructions are available"),!1;this.W&&this.W.stop();this.J&&g.qM(this.J);var Q=wl2(this,y);if(!Q){var p=Vb9(this),v=this.X!==void 0&&Date.now()<=this.X+1E4;Ih(this.Us.get(),"ads_ncfs","cid."+y.identifier+";cd."+y.Ey.toFixed(3)+";ccs."+v+";cfa."+this.Y+";bdc."+p.length+";"+p.slice(0,6).map(function(d){return";bd."+d}).join("")); return v?(Tb(this.Ze,this.K,y),!0):!1}(p=Qe(Q.slot.clientMetadata,"metadata_type_triggering_cue_point"))?p.current=y:hx("Expected triggering cue point ref to be available",Q.slot);(new g.y0(function(){var d=Q.trigger,T=Q.slot;Rr(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",d.breakDurationMs,new Set,!0);Rr(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",d.breakDurationMs,new Set,!1);for(var O=0,w=g.t(q.s9.values()),J=w.next();!J.done;J=w.next()){J=J.value;var F=J.trigger; J.slot.slotId===T.slotId&&(q.s9.delete(F.triggerId),O++)}Ih(q.Us.get(),"ads_csf","sid."+T.slotId+";bd."+d.breakDurationMs+";dt."+O)},10)).start(); return!0}; g.K.tY=function(){}; g.K.ZC=function(y){var q=this;this.Y=!1;this.X=Date.now();if(this.K&&this.K.contentCpn!==y)hx("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:y,fetchInstructionsCpn:this.K.contentCpn}),sg(this);else{this.N=new g.y0(function(){if(q.Y)delete q.N;else{var p=q.JK.get().getGetAdBreakContext(),v;if(Number(p==null?void 0:(v=p.livePlaybackPosition)==null?void 0:v.utcTimeMillis)>0)delete q.N,OzH(q);else{var d;(d=q.N)==null||d.start()}}},200); var Q;(Q=this.N)==null||Q.start()}}; g.K.rY=function(y){this.K&&this.K.contentCpn!==y&&hx("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:y,fetchInstructionsCpn:this.K.contentCpn},!0);sg(this)}; g.K.AY=function(y){var q=this;if(this.K)hx("Unexpected multiple fetch instructions for the current content");else{this.K=y;y=Fa2(y);this.W=new g.y0(function(){OzH(q)},y?y:6E5); this.W.start();this.J=new g.y0(function(){q.K&&(q.W&&(q.W.stop(),q.W.start()),Tmg(q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Jcf(this.K)); y=this.JK.get().getCurrentTimeSec(1,!1);for(var Q=g.t(this.Aj.get().Ci),p=Q.next();!p.done;p=Q.next())p=p.value,Ih(this.Us.get(),"nocache","ct."+Date.now()+";cmt."+y+";d."+p.Ey.toFixed(3)+";tw."+(p.startSecs-y)+";cid."+p.identifier+";")}}; g.K.FV=function(){g.I.prototype.FV.call(this);sg(this)};g.x(Ml,g.I);g.K=Ml.prototype;g.K.bV=function(y,q,Q,p){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(q instanceof g7))throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.s9.set(q.triggerId,new ch(y,q,Q,p));y=this.K.has(q.triggeringLayoutId)?this.K.get(q.triggeringLayoutId):new Set;y.add(q);this.K.set(q.triggeringLayoutId,y)}; g.K.zg=function(y){this.s9.delete(y.triggerId);if(!(y instanceof g7))throw new P("Incorrect TriggerType: Tried to unregister trigger of type "+y.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var q=this.W.get(y.triggerId);q&&(q.dispose(),this.W.delete(y.triggerId));if(q=this.K.get(y.triggeringLayoutId))q.delete(y),q.size===0&&this.K.delete(y.triggeringLayoutId)}; g.K.z3=function(){}; g.K.LU=function(){}; g.K.QF=function(){}; g.K.xk=function(){}; g.K.Xl=function(){}; g.K.UY=function(){}; g.K.EY=function(){}; g.K.fn=function(){}; g.K.gK=function(){}; g.K.t6=function(){}; g.K.lj=function(y,q){var Q=this;if(this.K.has(q.layoutId)){y=this.K.get(q.layoutId);y=g.t(y);var p=y.next();for(q={};!p.done;q={w9:void 0},p=y.next())q.w9=p.value,p=new g.y0(function(v){return function(){var d=Q.s9.get(v.w9.triggerId);NI(Q.N(),[d])}}(q),q.w9.durationMs),p.start(),this.W.set(q.w9.triggerId,p)}}; g.K.Su=function(){};g.x(lz,g.I);lz.prototype.bV=function(y,q,Q,p){if(this.s9.has(q.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(q instanceof p6))throw new P("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in VideoTransitionTriggerAdapter.");this.s9.set(q.triggerId,new ch(y,q,Q,p))}; lz.prototype.zg=function(y){this.s9.delete(y.triggerId)};Ir.prototype.zm=function(y){return y.kind==="AD_PLACEMENT_KIND_START"};g.x(Ug,g.I);g.K=Ug.prototype;g.K.logEvent=function(y){this.Vn(y)}; g.K.KF=function(y,q,Q){this.Vn(y,void 0,void 0,void 0,q,void 0,void 0,void 0,q.adSlotLoggingData,void 0,void 0,Q)}; g.K.fU=function(y,q,Q,p){this.Vn(y,void 0,void 0,void 0,q,Q?Q:void 0,void 0,void 0,q.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0,void 0,p);q=lt().resolve(S$(JP))==null?void 0:FX();y=q==null?void 0:q.adsSeenHotConfig;q=q==null?void 0:q.adsHotConfig;(y==null?0:y.logOnAdsSeen)&&(q==null?0:q.webEnablePremiumAdsSeenLogging)&&ai2(this,Q?Q:void 0,p)}; g.K.YH=function(y,q,Q,p){eb(this.Yf.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+y,"trigger:",Q,"slot:",q,"layout:",p);Ve(this.K.get())&&this.Vn(y,void 0,void 0,void 0,q,p?p:void 0,void 0,Q,q.adSlotLoggingData,p?p.adLayoutLoggingData:void 0)}; g.K.tE=function(y,q,Q,p,v){this.Vn(y,q,Q,p,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v)}; g.K.nX=function(y,q,Q,p){this.Vn("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Q,p,void 0,void 0,Q.adSlotLoggingData,p?p.adLayoutLoggingData:void 0,{errorType:y,errorMessage:q})}; g.K.Vn=function(y,q,Q,p,v,d,T,O,w,J,F,Y){var f=this;Y=Y===void 0?0:Y;eb(this.Yf.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+y,"slot:",v,"layout:",d,"ping:",T,"Opportunity:",{opportunityType:q,associatedSlotId:Q,whj:p,e6$:O,adSlotLoggingData:w,adLayoutLoggingData:J});try{var h=function(){if(!f.Yf.get().U.T().L("html5_disable_client_tmp_logs")&&y!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){y||hx("Empty PACF event type",v,d);var b=Ve(f.K.get()),Z={eventType:y,eventOrder:++f.eventCount},k={}; v&&(k.slotData=Tm(b,v));d&&(k.layoutData=Bwj(b,d));T&&(k.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:T.K.serializedAdPingMetadata,pingIndex:T.index});O&&(k.triggerData=dm(O.trigger,O.category));q&&(k.opportunityData=G_g(b,q,Q,p));b={organicPlaybackContext:{contentCpn:Cj(f.Gy.get(),1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=Cj(f.Gy.get(),1).E9;var S;b.organicPlaybackContext.isMdxPlayback=(S=Cj(f.Gy.get(),1))==null?void 0:S.isMdxPlayback; var N;if((N=Cj(f.Gy.get(),1))==null?0:N.daiEnabled)b.organicPlaybackContext.isDaiContent=!0;var l;if(S=(l=Cj(f.Gy.get(),2))==null?void 0:l.clientPlaybackNonce)b.adVideoPlaybackContext={adVideoCpn:S};b&&(k.externalContext=b);Z.adClientData=k;w&&(Z.serializedSlotAdServingData=w.serializedSlotAdServingDataEntry);J&&(Z.serializedAdServingData=J.serializedAdServingDataEntry);F&&(Z.errorInfo=F);g.wU("adsClientStateChange",{adsClientEvent:Z})}}; Y&&Y>0?g.C_(g.qb(),function(){return h()},Y):h()}catch(b){eb(this.Yf.get(),"html5_log_pacf_logging_errors")&&g.C_(g.qb(),function(){hx(b instanceof Error?b:String(b),v,d,{pacf_message:"exception during pacf logging"})})}};var Mo_=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.x(rc,Ug);g.K=rc.prototype; g.K.KF=function(y,q,Q){Ug.prototype.KF.call(this,y,q,Q);xp(this.Yf.get())&&(Q={},this.context.C1.MU("pacf",(Q.et=y,Q.st=q.slotType,Q.si=q.slotId,Q)))}; g.K.fU=function(y,q,Q,p){var v=Mo_.has(y);Ug.prototype.fU.call(this,y,q,Q,p);xp(this.Yf.get(),v)&&(p={},this.context.C1.MU("pacf",(p.et=y,p.st=q.slotType,p.si=q.slotId,p.lt=Q==null?void 0:Q.layoutType,p.li=Q==null?void 0:Q.layoutId,p.p_ac=Q==null?void 0:Q.layoutId,p)))}; g.K.tE=function(y,q,Q,p,v){Ug.prototype.tE.call(this,y,q,Q,p,v);xp(this.Yf.get())&&(Q={},this.context.C1.MU("pacf",(Q.et=y,Q.ot=q,Q.ss=p==null?void 0:p.length,Q)))}; g.K.YH=function(y,q,Q,p){Ug.prototype.YH.call(this,y,q,Q,p);if(xp(this.Yf.get())){var v={};this.context.C1.MU("pacf",(v.et=y,v.tt=Q.trigger.triggerType,v.tc=Q.category,v.st=q.slotType,v.si=q.slotId,v.lt=p==null?void 0:p.layoutType,v.li=p==null?void 0:p.layoutId,v.p_ac=p==null?void 0:p.layoutId,v))}}; g.K.nX=function(y,q,Q,p){Ug.prototype.nX.call(this,y,q,Q,p);if(xp(this.Yf.get(),!0)){var v={};this.context.C1.MU("perror",(v.ert=y,v.erm=q,v.st=Q.slotType,v.si=Q.slotId,v.lt=p==null?void 0:p.layoutType,v.li=p==null?void 0:p.layoutId,v.p_ac=p==null?void 0:p.layoutId,v))}}; g.K.Vn=function(y,q,Q,p,v,d,T,O,w,J,F){var Y=this.Yf.get();g.kt(Y.U.T())?(Y=this.Yf.get(),Y=g.wm(Y.U.T().experiments,"H5_async_logging_delay_ms")):Y=void 0;Ug.prototype.Vn.call(this,y,q,Q,p,v,d,T,O,w,J,F,Y)};or.prototype.clear=function(){this.K.clear()};A3.prototype.state=function(){return this.K==="fulfilled"?{state:"fulfilled",value:this.result}:this.K==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; A3.prototype.Y=function(y){B$(y)||eG(y)?X6(Gb(y),this.Y.bind(this),this.reject.bind(this)):(this.K="fulfilled",this.result=y,iz(this))}; A3.prototype.reject=function(y){this.K="rejected";this.error=y;iz(this)}; var eG=E2(function(y){return UwX(y)?y instanceof A3:!1});var jl=window.bP3||"pt-BR";dz.prototype.v0=function(y){this.client=y}; dz.prototype.K=function(){this.clear();this.csn=g.LD()}; dz.prototype.clear=function(){this.N.clear();this.W.clear();this.Y.clear();this.csn=null};V7.prototype.v0=function(y){g.q7(TW().v0).bind(TW())(y)}; V7.prototype.clear=function(){g.q7(TW().clear).bind(TW())()};g.K=O1.prototype;g.K.v0=function(y){this.client=y}; g.K.rU=function(y,q){var Q=this;q=q===void 0?{}:q;g.q7(function(){var p,v,d,T=((p=g.U(y==null?void 0:y.commandMetadata,g.ZV))==null?void 0:p.rootVe)||((v=g.U(y==null?void 0:y.commandMetadata,PlX))==null?void 0:(d=v.screenVisualElement)==null?void 0:d.uiType);if(T){p=g.U(y==null?void 0:y.commandMetadata,f5G);if(p==null?0:p.parentTrackingParams){var O=g.t4(p.parentTrackingParams);if(p.parentCsn)var w=p.parentCsn}else q.clickedVisualElement?O=q.clickedVisualElement:y.clickTrackingParams&&(O=g.t4(y.clickTrackingParams)); a:{p=g.U(y,g.H3);v=g.U(y,T0m);if(p){if(v=zCC(p,"VIDEO")){p={token:v,videoId:p.videoId};break a}}else if(v&&(p=zCC(v,"PLAYLIST"))){p={token:p,playlistId:v.playlistId};break a}p=void 0}q=Object.assign({},{cttAuthInfo:p,parentCsn:w},q);if(g.kQ("expectation_logging")){var J;q.loggingExpectations=((J=g.U(y==null?void 0:y.commandMetadata,PlX))==null?void 0:J.loggingExpectations)||void 0}Jo(Q,T,O,q)}else g.zI(new g.GH("Error: Trying to create a new screen without a rootVeType",y))})()}; g.K.clickCommand=function(y,q,Q){y=y.clickTrackingParams;Q=Q===void 0?0:Q;y?(Q=g.LD(Q===void 0?0:Q))?(m3(this.client,Q,g.t4(y),q),q=!0):q=!1:q=!1;return q}; g.K.stateChanged=function(y,q,Q){this.visualElementStateChanged(g.t4(y),q,Q===void 0?0:Q)}; g.K.visualElementStateChanged=function(y,q,Q){Q=Q===void 0?0:Q;Q===0&&this.W.has(Q)?this.C.push([y,q]):ccp(this,y,q,Q)};ho.prototype.fetch=function(y,q,Q){var p=this,v=otS(y,q,Q);return new Promise(function(d,T){function O(){if(Q==null?0:Q.KO)try{var J=p.handleResponse(y,v.status,v.response,Q);d(J)}catch(F){T(F)}else d(p.handleResponse(y,v.status,v.response,Q))} v.onerror=O;v.onload=O;var w;v.send((w=q.body)!=null?w:null)})}; ho.prototype.handleResponse=function(y,q,Q,p){Q=Q.replace(")]}'","");try{var v=JSON.parse(Q)}catch(d){g.zI(new g.GH("JSON parsing failed after XHR fetch",y,q,Q));if((p==null?0:p.KO)&&Q)throw new g.Xl(1,"JSON parsing failed after XHR fetch");v={}}q!==200&&(g.zI(new g.GH("XHR API fetch failed",y,q,Q)),v=Object.assign({},v,{errorMetadata:{status:q}}));return v};bH.getInstance=function(){var y=g.qw("ytglobal.storage_");y||(y=new bH,g.y_("ytglobal.storage_",y));return y}; bH.prototype.estimate=function(){var y,q,Q;return g.M(function(p){y=navigator;return((q=y.storage)==null?0:q.estimate)?p.return(y.storage.estimate()):((Q=y.webkitTemporaryStorage)==null?0:Q.queryUsageAndQuota)?p.return(Acp()):p.return()})}; g.y_("ytglobal.storageClass_",bH);VY.prototype.Ea=function(y){this.handleError(y)}; VY.prototype.logEvent=function(y,q){switch(y){case "IDB_DATA_CORRUPTED":g.kQ("idb_data_corrupted_killswitch")||this.K("idbDataCorrupted",q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.K("idbUnexpectedlyClosed",q);break;case "IS_SUPPORTED_COMPLETED":g.kQ("idb_is_supported_completed_killswitch")||this.K("idbIsSupportedCompleted",q);break;case "QUOTA_EXCEEDED":Bmi(this,q);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.K("idbTransactionEnded",q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":y= Object.assign({},q,{hasWindowUnloaded:this.W}),this.K("idbTransactionAborted",y)}};var G8={},Xhb=g.jB("yt-player-local-media",{tG:(G8.index={qX:2},G8.media={qX:2},G8.captions={qX:5},G8),shared:!1,upgrade:function(y,q){q(2)&&(g.sf(y,"index"),g.sf(y,"media"));q(5)&&g.sf(y,"captions");q(6)&&(Mb(y,"metadata"),Mb(y,"playerdata"))}, version:5});var lnh={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},Pd;a:{var iT=g.cK();iT=iT.toLowerCase();if(g.D0(iT,"android")){var zlk=iT.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(zlk){var DeX=parseFloat(zlk[1]);if(DeX<100){Pd=DeX;break a}}var ui_=iT.match("("+Object.keys(lnh).join("|")+")");Pd=ui_?lnh[ui_[0]]:0}else Pd=void 0}var w1=Pd,Ov=w1>=0;var T6s=window;var Gmi=un(function(){var y,q;return(q=(y=window).matchMedia)==null?void 0:q.call(y,"(prefers-reduced-motion: reduce)").matches});var K3;g.$F=new Lo;K3=0;var Ed=qTb()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.iv?!0:!1;var Zk={Pj:function(y,q){y[V[10]](0,q)}, d1:function(y){y[V[44]]()}, EN:function(y,q){var Q=y[0];y[0]=y[q%y[V[13]]];y[q%y[V[13]]]=Q}};var eyi={ydy:"adunit",nx$:"detailpage",M0w:"editpage",Yaj:"embedded",zRf:"leanback",I43:"previewpage",P7s:"profilepage",sM:"unplugged",dXK:"playlistoverview",ND3:"sponsorshipsoffer",Isp:"shortspage",o9m:"handlesclaiming",NRw:"immersivelivepage",DB$:"creatormusic",MAK:"immersivelivepreviewpage",ajK:"admintoolyurt",Cwj:"shortsaudiopivot",k5I:"consumption"};var QDb=2592E3;var mV,Inn,sy;mV={};g.Sl=(mV.STOP_EVENT_PROPAGATION="html5-stop-propagation",mV.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",mV.IV_DRAWER_OPEN="ytp-iv-drawer-open",mV.MAIN_VIDEO="html5-main-video",mV.VIDEO_CONTAINER="html5-video-container",mV.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",mV.HOUSE_BRAND="house-brand",mV);Inn={};sy=(Inn.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Inn.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Inn);var fm8={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var KPC={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},xVH={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"},K_D={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var bFi={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.s1.prototype.getLanguageInfo=function(){return this.ZG}; g.s1.prototype.getXtags=function(){if(!this.xtags){var y=this.id.split(";");y.length>1&&(this.xtags=y[1])}return this.xtags}; g.s1.prototype.toString=function(){return this.ZG.name}; g.s1.prototype.getLanguageInfo=g.s1.prototype.getLanguageInfo;Mm.prototype.equals=function(y){return this.W===y.W&&this.K===y.K&&this.N===y.N&&this.reason===y.reason&&(!zW||this.jj===y.jj)}; Mm.prototype.isLocked=function(){return this.N&&!!this.W&&this.W===this.K}; Mm.prototype.compose=function(y){if(y.N&&Dk(y))return tk;if(y.N||Dk(this))return y;if(this.N||Dk(y))return this;var q=this.W&&y.W?Math.max(this.W,y.W):this.W||y.W,Q=this.K&&y.K?Math.min(this.K,y.K):this.K||y.K;q=Math.min(q,Q);var p=0;zW&&(p=this.jj!==0&&y.jj!==0?Math.min(this.jj,y.jj):this.jj===0?y.jj:this.jj);return zW&&q===this.W&&Q===this.K&&p===this.jj||!zW&&q===this.W&&Q===this.K?this:zW?new Mm(q,Q,!1,Q===this.K&&p===this.jj?this.reason:y.reason,p):new Mm(q,Q,!1,Q===this.K?this.reason:y.reason)}; Mm.prototype.Y=function(y){return!y.video||zW&&this.jj!==0&&this.jj=0}; g.K.NL=function(){var y=this.segments[this.segments.length-1];return y?y.endTime:NaN}; g.K.PT=function(){return this.segments[0].startTime}; g.K.Tz=function(){return this.segments.length}; g.K.Y6=function(){return 0}; g.K.zW=function(y){return(y=this.iO(y))?y.Qm:-1}; g.K.lP=function(y){return(y=this.Ye(y))?y.sourceURL:""}; g.K.getStartTime=function(y){return(y=this.Ye(y))?y.startTime:0}; g.K.XE=function(y){return this.getStartTime(y)+this.getDuration(y)}; g.K.Id=yi(1);g.K.isLoaded=function(){return this.segments.length>0}; g.K.Ye=function(y){if(this.K&&this.K.Qm===y)return this.K;y=g.em(this.segments,new pm(y,0,0,0,""),function(q,Q){return q.Qm-Q.Qm}); return this.K=y>=0?this.segments[y]:null}; g.K.iO=function(y){if(this.K&&this.K.startTime<=y&&y=0?this.segments[y]:this.segments[Math.max(0,-y-2)]}; g.K.append=function(y){if(y.length)if(y=g.zX(y),this.segments.length){var q=this.segments.length?g.xq(this.segments).endTime:0,Q=y[0].Qm-this.D3();Q>1&&t3j(this.segments);for(Q=Q>0?0:-Q+1;Qy.Qm&&this.index.yK()<=y.Qm+1}; g.K.update=function(y,q,Q){this.index.append(y);PBb(this.index,Q);y=this.index;y.W=q;y.N="update"}; g.K.iF=function(){return this.sV()?!0:yF.prototype.iF.call(this)}; g.K.bC=function(y,q){var Q=this.index.lP(y),p=this.index.getStartTime(y),v=this.index.getDuration(y),d;q?v=d=0:d=this.info.jj>0?this.info.jj*v:1E3;return new Ff([new vj(3,this,void 0,"liveCreateRequestInfoForSegment",y,p,v,0,d,!q)],Q)}; g.K.Hl=function(){return this.sV()?0:this.initRange.length}; g.K.ZD=function(){return!1};xa.prototype.update=function(y){var q=void 0;this.W&&(q=this.W);var Q=new xa,p=Array.from(y.getElementsByTagName("S"));if(p.length){var v=+$a(y,"timescale")||1,d=(+p[0].getAttribute("t")||0)/v,T=+$a(y,"startNumber")||0;Q.Y=d;var O=q?q.startSecs+q.Ey:0,w=Date.parse(r79($a(y,"yt:segmentIngestTime")))/1E3;Q.J=y.parentElement.tagName==="SegmentTemplate";Q.J&&(Q.X=$a(y,"media"));y=q?T-q.Qm:1;Q.G=y>0?0:-y+1;y=g.t(p);for(p=y.next();!p.done;p=y.next()){p=p.value;for(var J=+p.getAttribute("d")/v,F=(+p.getAttribute("yt:sid")|| 0)/v,Y=+p.getAttribute("r")||0,f=0;f<=Y;f++)if(q&&T<=q.Qm)T++;else{var h=new c7g(T,O,J,w+F,d);Q.K.push(h);var b=p;var Z=v,k=h.startSecs;h=b.getAttribute("yt:cuepointTimeOffset");var S=b.getAttribute("yt:cuepointDuration");if(h&&S){h=Number(h);k=-h/Z+k;Z=Number(S)/Z;S=b.getAttribute("yt:cuepointContext")||null;var N=b.getAttribute("yt:cuepointIdentifier")||"";b=b.getAttribute("yt:cuepointEvent")||"";b=new fm(k,Z,S,N,gBk[b]||"unknown",h)}else b=null;b&&Q.N.push(b);T++;O+=J;d+=J;w+=J+F}}Q.K.length&& (Q.W=g.xq(Q.K))}this.G=Q.G;this.W=Q.W||this.W;g.nh(this.K,Q.K);g.nh(this.N,Q.N);this.J=Q.J;this.X=Q.X;this.Y===-1&&(this.Y=Q.getStreamTimeOffset())}; xa.prototype.getStreamTimeOffset=function(){return this.Y===-1?0:this.Y};g.x(Z3,g.vY);g.K=Z3.prototype;g.K.dG=function(){return this.pn}; g.K.UP=function(y,q){y=ty(this,y);return y>=0&&(q||!this.segments[y].pending)}; g.K.yK=function(){return this.fL?this.segments.length?this.iO(this.PT()).Qm:-1:g.vY.prototype.yK.call(this)}; g.K.PT=function(){if(this.Gf)return 0;if(!this.fL)return g.vY.prototype.PT.call(this);if(!this.segments.length)return 0;var y=Math.max(g.xq(this.segments).endTime-this.jW,0);return this.Q5>0&&this.iO(y).Qm0)return this.wY/1E3;if(!this.segments.length)return g.vY.prototype.NL.call(this);var y=this.D3();if(!this.fL||y<=this.segments[this.segments.length-1].Qm)y=this.segments[this.segments.length-1];else{var q=this.segments[this.segments.length-1];y=new pm(y,Math.max(0,q.startTime-(q.Qm-y)*this.pn),this.pn,0,"sq/"+y,void 0,void 0,!0)}return this.Gf?Math.min(this.jW,y.endTime):y.endTime}; g.K.Tz=function(){return this.fL?this.segments.length?this.D3()-this.yK()+1:0:g.vY.prototype.Tz.call(this)}; g.K.D3=function(){var y=Math.min(this.rS,Math.max(g.vY.prototype.D3.call(this),this.k0)),q=this.jW*1E3;q=this.wY>0&&this.wY0&&this.k0>0&&!q&&(q=this.iO(this.jW))&&(y=Math.min(q.Qm-1,y));return y}; g.K.r$=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.K.Hu=function(y){var q=ty(this,y.Qm);if(q>=0)this.segments[q]=y;else if(this.segments.splice(-(q+1),0,y),this.XK&&y.Qm%(300/this.pn)===0){var Q=this.segments[0].Qm,p=Math.floor(this.XK/this.pn);y=y.Qm-p;q=-(q+1)-p;q>0&&y>Q&&(this.segments=this.segments.slice(q))}}; g.K.La=function(){return this.k0}; g.K.s0=function(y){return Wj?!this.W&&y>=0&&this.D3()<=y:g.vY.prototype.s0.call(this,y)}; g.K.iO=function(y){if(!this.fL)return g.vY.prototype.iO.call(this,y);if(!this.segments.length)return null;var q=this.segments[this.segments.length-1];if(y=q.endTime)q=q.Qm+Math.floor((y-q.endTime)/this.pn+1);else{q=Be(this.segments,function(p){return y=p.endTime?1:0}); if(q>=0)return this.segments[q];var Q=-(q+1);q=this.segments[Q-1];Q=this.segments[Q];q=Math.floor((y-q.endTime)/((Q.startTime-q.endTime)/(Q.Qm-q.Qm-1))+1)+q.Qm}return this.Ye(q)}; g.K.Ye=function(y){if(!this.fL)return g.vY.prototype.Ye.call(this,y);if(!this.segments.length)return null;var q=ty(this,y);if(q>=0)return this.segments[q];var Q=-(q+1);q=this.pn;if(Q===0)var p=Math.max(0,this.segments[0].startTime-(this.segments[0].Qm-y)*q);else Q===this.segments.length?(p=this.segments[this.segments.length-1],p=p.endTime+(y-p.Qm-1)*q):(p=this.segments[Q-1],q=this.segments[Q],q=(q.startTime-p.endTime)/(q.Qm-p.Qm-1),p=p.endTime+(y-p.Qm-1)*q);return new pm(y,p,q,0,"sq/"+y,void 0,void 0, !0)}; var Wj=!1;g.x(EV,bq);g.K=EV.prototype;g.K.ek=function(){return!0}; g.K.iF=function(){return!0}; g.K.ZI=function(y){return this.D6()&&y.N&&!y.Y||!y.K.index.s0(y.Qm)}; g.K.QZ=function(){}; g.K.rP=function(y,q){return typeof y!=="number"||isFinite(y)?bq.prototype.rP.call(this,y,q===void 0?!1:q):new Ff([new vj(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.nV,void 0,this.nV*this.info.jj)],"")}; g.K.bC=function(y,q){var Q=Q===void 0?!1:Q;if(this.index.UP(y))return bq.prototype.bC.call(this,y,q);var p=this.index.getStartTime(y),v=Math.round(this.nV*this.info.jj),d=this.nV;q&&(d=v=0);return new Ff([new vj(Q?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",y,p,d,void 0,v,!q)],y>=0?"sq/"+y:"")};g.x(ka,yF);g.K=ka.prototype;g.K.gY=function(){return!1}; g.K.D6=function(){return!1}; g.K.ek=function(){return!1}; g.K.QZ=function(){return new Ff([new vj(1,this,void 0,"otfInit")],this.J)}; g.K.n2=function(){return null}; g.K.DY=function(y){this.ZI(y);return Xs9(this,OV(y),!1)}; g.K.rP=function(y,q){q=q===void 0?!1:q;y=this.index.zW(y);q&&(y=Math.min(this.index.D3(),y+1));return Xs9(this,y,!0)}; g.K.YI=function(y){y.info.type===1&&(this.K||(this.K=Kr(y.W)),y.K&&y.K.uri==="http://youtube.com/streaming/otf/durations/112015"&&mLD(this,y.K))}; g.K.ZI=function(y){return y.N===0?!0:this.index.D3()>y.Qm&&this.index.yK()<=y.Qm+1}; g.K.Hl=function(){return 0}; g.K.ZD=function(){return!1};var qAS=new Map,pb2=new Map,jJp=new function(){var y=this;this.K=new Map;this.je={HOp:function(){return y.K}}};g.K=g.zJ.prototype;g.K.UP=function(y){return y<=this.D3()}; g.K.Y6=function(y){return this.offsets[y]}; g.K.getStartTime=function(y){return this.startTicks[y]/this.K}; g.K.XE=function(y){return this.getStartTime(y)+this.getDuration(y)}; g.K.Id=yi(0);g.K.Sb=function(){return NaN}; g.K.getDuration=function(y){y=this.Fj(y);return y>=0?y/this.K:-1}; g.K.Fj=function(y){return y+1=0}; g.K.NL=function(){return this.W?this.startTicks[this.count]/this.K:NaN}; g.K.PT=function(){return 0}; g.K.Tz=function(){return this.count}; g.K.lP=function(){return""}; g.K.zW=function(y){y=g.em(this.startTicks.subarray(0,this.count),y*this.K);return y>=0?y:Math.max(0,-y-2)}; g.K.isLoaded=function(){return this.D3()>=0}; g.K.gC=function(y,q){if(y>=this.D3())return 0;var Q=0;for(q=this.getStartTime(y)+q;ythis.getStartTime(y);y++)Q=Math.max(Q,F83(this,y)/this.getDuration(y));return Q}; g.K.resize=function(y){y+=2;var q=this.offsets;this.offsets=new Float64Array(y+1);var Q=this.startTicks;this.startTicks=new Float64Array(y+1);for(y=0;y0&&y&&(Q=Q.range.end+1,y=Math.min(y,this.info.contentLength-Q),y>0&&p.push(new vj(4,this,QF(Q,y),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)));return new Ff(p)}; g.K.YI=function(y){if(y.info.type===1){if(this.K)return;this.K=Kr(y.W)}else if(y.info.type===2){if(this.J||this.index.D3()>=0)return;if(g.QR(this.info)){var q=this.index,Q=g.SE(y);y=y.info.range.start;var p=g.Km(Q,0,1936286840);Q=V6g(p);q.K=Q.timescale;var v=Q.tC;q.offsets[0]=Q.wM+y+p.size;q.startTicks[0]=v;q.W=!0;y=Q.mE.length;for(p=0;p0&&y===d[0].D_)for(y=0;y=q+Q)break}v.length||(y=new g.GH("b189619593",""+y,""+q,""+Q),g.l$(y));return new Ff(v)}; g.K.QV=function(y){for(var q=this.g3(y.info),Q=y.info.range.start+y.info.W,p=[],v=0;v=this.index.Y6(Q+1);)Q++;return this.AO(Q,q,y.N).CK}; g.K.ZI=function(y){y.Ve();return this.iF()?!0:y.range.end+1this.info.contentLength&&(q=new qX(q.start,this.info.contentLength-1)),new Ff([new vj(4,y.K,q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,y.clipId)]);y.type===4&&(y=this.g3(y),y=y[y.length-1]);var Q=0,p=y.range.start+y.W+y.N;y.type===3&&(y.Ve(),Q=y.Qm,p===y.range.end+1&&(Q+=1));return this.AO(Q,p,q)}; g.K.DY=function(){return null}; g.K.rP=function(y,q){q=q===void 0?!1:q;y=this.index.zW(y);q&&(y=Math.min(this.index.D3(),y+1));return this.AO(y,this.index.Y6(y),0,void 0)}; g.K.gY=function(){return!0}; g.K.D6=function(){return!0}; g.K.ek=function(){return!1}; g.K.Hl=function(){return this.indexRange.length+this.initRange.length}; g.K.ZD=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var yq={},SAs=(yq.COLOR_PRIMARIES_BT709="bt709",yq.COLOR_PRIMARIES_BT2020="bt2020",yq.COLOR_PRIMARIES_UNKNOWN=null,yq.COLOR_PRIMARIES_UNSPECIFIED=null,yq),qA={},fUf=(qA.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",qA.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",qA.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",qA.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",qA.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,qA.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,qA);g.I8.prototype.getName=function(){return this.name}; g.I8.prototype.getId=function(){return this.id}; g.I8.prototype.getIsDefault=function(){return this.isDefault}; g.I8.prototype.toString=function(){return this.name}; g.I8.prototype.getName=g.I8.prototype.getName;g.I8.prototype.getId=g.I8.prototype.getId;g.I8.prototype.getIsDefault=g.I8.prototype.getIsDefault;var K8C=/action_display_post/;var x6C,cj,UV;g.x(rB,g.V6);g.K=rB.prototype;g.K.isLoading=function(){return this.state===1}; g.K.rR=function(){return this.state===3}; g.K.mTb=function(y){var q=y.getElementsByTagName("Representation");if(y.getElementsByTagName("SegmentList").length>0||y.getElementsByTagName("SegmentTemplate").length>0){this.E9=this.W=!0;this.X||(this.X=new A78);PN3(this.X,y);this.publish("refresh");for(y=0;y=0?F=jE(f):Y=Y+"?range="+f}w.call(O,new pm(J.Qm,J.startSecs,J.Ey,J.K,Y,F,J.W))}p=v}Q.update(p,this.isLive,this.HI)}iN8(this.X);return!0}this.duration=ULD($a(y,"mediaPresentationDuration"));a:{for(y= 0;y0))return this.WO()-y}}y=this.K;for(var q in y){var Q=y[q].index;if(Q.isLoaded()&&!OA(y[q].info.mimeType))return Q.PT()}return 0}; g.K.getStreamTimeOffset=function(){return this.C}; g.K.Sb=function(y){for(var q in this.K){var Q=this.K[q].index;if(Q.isLoaded()){var p=Q.zW(y),v=Q.Sb(p);if(v)return v+y-Q.getStartTime(p)}}return NaN}; var Qz=null,cl_,p8=!((cl_=navigator.mediaCapabilities)==null||!cl_.decodingInfo),D68={commentary:1,alternate:2,dub:3,main:4};var tD=new Set,vg=new Map;Vz.prototype.clone=function(y){return new Vz(this.flavor,y,this.W,this.experiments)}; Vz.prototype.IH=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Vz.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var Ue_={},K8=(Ue_.playready=["com.youtube.playready","com.microsoft.playready"],Ue_.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Ue_),jZ={},sVp=(jZ.widevine="DRM_SYSTEM_WIDEVINE",jZ.fairplay="DRM_SYSTEM_FAIRPLAY",jZ.playready="DRM_SYSTEM_PLAYREADY",jZ),Qq={},rlq=(Qq.widevine=1,Qq.fairplay=2,Qq.playready=3,Qq);var ZT;g.x(xE,g.I); xE.prototype.initialize=function(y,q){for(var Q=this,p=g.t(Object.keys(y)),v=p.next();!v.done;v=p.next()){v=g.t(y[v.value]);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.Uy)for(var T=g.t(Object.keys(d.Uy)),O=T.next();!O.done;O=T.next()){var w=O.value;O=w;w=K8[w];!w&&this.L("html5_enable_vp9_fairplay")&&O==="fairplay"&&(w=["com.youtube.fairplay.sbdl"]);if(w){w=g.t(w);for(var J=w.next();!J.done;J=w.next())J=J.value,this.N[J]=this.N[J]||new Vz(O,J,d.Uy[O],this.wp.experiments),this.K[O]=this.K[O]|| {},this.K[O][d.mimeType]=!0}}}ib()&&(this.N["com.youtube.fairplay"]=new Vz("fairplay","com.youtube.fairplay","",this.wp.experiments),this.L("html5_enable_vp9_fairplay")||(this.K.fairplay=this.K.fairplay||{},this.K.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.K.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=G$i(q,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay")&&!0,this.L("html5_enable_vp9_fairplay")).filter(function(F){return!!Q.N[F]})}; xE.prototype.L=function(y){return this.wp.experiments.ob(y)};var oBk={"":"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"};y$i.prototype.L=function(y){return this.experiments.ob(y)};var Gh9={RED:"red",VWB:"white"};kE.prototype.Zm=function(y){if(y.mp!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return pSb(this,y)}; kE.prototype.ob=function(y){return this.flags.get(""+y)==="true"};L8.prototype.tO=function(){return this.N}; L8.prototype.BV=function(){return this.W}; L8.prototype.ob=function(y){y=this.Zm(y);JSON.stringify(y);return y==="true"}; L8.prototype.Zm=function(y){return this.flags[y]};var TLC=Promise.resolve(),J$3=window.queueMicrotask?window.queueMicrotask.bind(window):VXD;NC.prototype.canPlayType=function(y,q){y=y.canPlayType?y.canPlayType(q):!1;P9?y=y||Ale[q]:w1===2.2?y=y||el_[q]:GS()&&(y=y||BMe[q]);return!!y}; NC.prototype.isTypeSupported=function(y){return this.j?window.cast.receiver.platform.canDisplayType(y):S6(y)}; var el_={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},BMe={"application/x-mpegURL":"maybe"},Ale={"application/x-mpegURL":"maybe"};g.x(Rg,g.V6);Rg.prototype.add=function(y,q){if(!this.items[y]&&(q.kp||q.Wq||q.Jh)){var Q=this.items,p=q;Object.isFrozen&&!Object.isFrozen(q)&&(p=Object.create(q),Object.freeze(p));Q[y]=p;this.publish("vast_info_card_add",y)}}; Rg.prototype.remove=function(y){var q=this.get(y);delete this.items[y];return q}; Rg.prototype.get=function(y){return this.items[y]||null}; Rg.prototype.isEmpty=function(){return g.hn(this.items)};sd.prototype.encrypt=function(y){this.K.exports.AES128CTRCipher_encrypt(this.cipher,y.byteOffset,y.byteLength);return y}; sd.prototype.iB=function(){return this.cipher===0}; sd.prototype.dispose=function(){this.K.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};lU.prototype.Xz=function(y,q){q=q===void 0?1:q;this.C8+=q;this.W+=y;y/=q;for(var Q=0;Q0)p+="."+MC[v].toFixed(0)+"_"+Q.K[v].toFixed(0);else break;Q=p}Q&&(y[q]=Q)}this.K=new hyH;return y}; g.K.toString=function(){return""};g.K=ZBi.prototype;g.K.isActive=function(){return!1}; g.K.yS=function(){}; g.K.bN=function(){}; g.K.Ls=function(){}; g.K.Ia=function(y,q){q()}; g.K.O4=function(){return{}}; g.K.toString=function(){return""};var GKh=new ZBi,PXu=!!+mJ("html5_enable_profiler"),ivC=!!+mJ("html5_onesie_enable_profiler"),p7=PXu||ivC?new $Ds:GKh,VNp=PXu?p7:GKh,DT=ivC?p7:GKh;SKj.prototype.emscripten_notify_memory_growth=function(){};g.K=zt.prototype;g.K.malloc=function(y){return this.exports.malloc(y)}; g.K.free=function(y){this.exports.free(y)}; g.K.realloc=function(y,q){return this.exports.realloc(y,q)}; g.K.W1=function(y){if(y.buffer!==this.exports.memory.buffer){var q=this.malloc(y.byteLength);q=new Uint8Array(this.exports.memory.buffer,q,y.byteLength);q.set(y);return q}}; g.K.Is=function(y){if(y.buffer===this.exports.memory.buffer){var q=y.slice();this.free(y.byteOffset);return q}}; var L5b=new function(){this.K=this.W="WebAssembly"in window},uU="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); DT.yS(zt,{W1:function(y){return{profile:"copyj2w",C8:y===void 0?0:Math.ceil(y.byteLength/16)}}, Is:function(y){return{profile:"copyw2j",C8:y===void 0?0:Math.ceil(y.byteLength/16)}}});Ig.prototype.encrypt=function(y,q){try{return this.K.Is(MXb(this,y,q))}catch(Q){g.zI(Error("ocwce: wasm encrypt failed: "+Q))}}; Ig.prototype.iB=function(){return this.N}; Ig.prototype.dispose=function(){this.iB()||(g.w5(this.W),this.K.free(this.Y.byteOffset),this.N=!0)};g.x(lJD,g.I);g.x(DDp,g.I);var gK;cg.prototype.add=function(y){if(this.pos+20>this.data.length){var q=new Uint8Array(this.data.length*2);q.set(this.data);this.data=q}for(;y>31;)this.data[this.pos++]=gK[(y&31)+32],y>>=5;this.data[this.pos++]=gK[y|0]}; cg.prototype.W3=function(){return g.E6(this.data.subarray(0,this.pos))}; cg.prototype.reset=function(){this.pos=0};rK.prototype.oW=function(y,q){var Q=Math.pow(this.alpha,y);this.K=q*(1-Q)+Q*this.K;this.W+=y}; rK.prototype.Io=function(){return this.K/(1-Math.pow(this.alpha,this.W))};og.prototype.oW=function(y,q){for(var Q=0;Q<10;Q++){var p=this.K[Q],v=p+(Q===0?y:0),d=1*Math.pow(2,Q);if(v<=d)break;p=Math.min(1,(v-d*.5)/p);for(v=0;v<16;v++)d=this.values[Q*16+v]*p,this.values[(Q+1)*16+v]+=d,this.K[Q+1]+=d,this.values[Q*16+v]-=d,this.K[Q]-=d}p=Q=0;v=8192;q>8192&&(Q=Math.ceil(Math.log(q/8192)/Math.log(2)),p=8192*Math.pow(2,Q-1),v=p*2);Q+2>16?this.values[15]+=y:(q=(q-p)/(v-p),this.values[Q]+=y*(1-q),this.values[Q+1]+=y*q);this.K[0]+=y}; og.prototype.Io=function(){var y=y===void 0?this.W:y;var q=q===void 0?.02:q;var Q=Q===void 0?.98:Q;for(var p=this.N,v=0;v<16;v++)p[v]=this.values[v];v=this.K[0];for(var d=1;d<11;d++){var T=this.K[d];if(T===0)break;for(var O=Math.min(1,(y-v)/T),w=0;w<16;w++)p[w]+=this.values[d*16+w]*O;v+=T*O;if(O<1)break}for(d=y=T=0;d<16;d++){O=T+p[d]/v;y+=Math.max(0,Math.min(O,Q)-Math.max(T,q))*(d>0?8192*Math.pow(2,d-1):0);if(O>Q)break;T=O}return y/(Q-q)};AB.prototype.oW=function(y,q){y=Math.min(this.K,Math.max(1,Math.round(y*this.resolution)));y+this.W>=this.K&&(this.N=!0);for(;y--;)this.values[this.W]=q,this.W=(this.W+1)%this.K;this.Ju=!0}; AB.prototype.percentile=function(y){var q=this;if(!this.N&&this.W===0)return 0;this.Ju&&(g.Pe(this.J,function(Q,p){return q.values[Q]-q.values[p]}),this.Ju=!1); return this.values[this.J[Math.round(y*((this.N?this.K:this.W)-1))]]||0}; AB.prototype.Io=function(){return this.G?(this.percentile(this.Y-this.G)+this.percentile(this.Y)+this.percentile(this.Y+this.G))/3:this.percentile(this.Y)};g.x(ez,g.I);ez.prototype.HI=function(){var y;(y=this.LK)==null||y.start();if(qj(this)&&this.policy.C){var q;(q=this.Z3)==null||q.u5()}};gID.prototype.L=function(y){return this.experiments.ob(y)};g.x(UDD,g.I);var BLp="blogger discover-ads ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),yqs={Adj:"caoe",Dpy:"capsv",aCm:"cbrand",uTK:"cbr",S8$:"cbrver",ExK:"cchip",XJK:"ccappver",ZVK:"ccrv",pCy:"cfrmver",YvK:"c",uzB:"cver",axm:"ctheme",mJy:"cplayer",a4m:"cmodel",N0:"cnetwork",ZLp:"cos",OS_VERSION:"cosver",TYK:"cplatform",xhy:"crqyear"};g.x(Wr,g.I);g.K=Wr.prototype;g.K.L=function(y){return this.experiments.ob(y)}; g.K.tO=function(){return this.experiments.tO()}; g.K.BV=function(){return this.experiments.BV()}; g.K.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.K.getVideoUrl=function(y,q,Q,p,v,d,T){q={list:q};Q&&(v?q.time_continue=Q:q.t=Q);Q=T?"music.youtube.com":g.t6(this);v=Q==="www.youtube.com";!d&&p&&v?d="https://youtu.be/"+y:g.Yo(this)?(d="https://"+Q+"/fire",q.v=y):(d&&v?(d=this.protocol+"://"+Q+"/shorts/"+y,p&&(q.feature="share")):(d=this.protocol+"://"+Q+"/watch",q.v=y),P9&&(y=eQi())&&(q.ebc=y));return g.kb(d,q)}; g.K.getVideoEmbedCode=function(y,q,Q,p){q="https://"+g.t6(this)+"/embed/"+q;p&&(q=g.kb(q,{list:p}));p=Q.width;Q=Q.height;q=MR(q);y=MR(y!=null?y:"YouTube video player");return'')}; g.K.supportsGaplessAudio=function(){return g.NL&&!P9&&AM()>=74||g.bU&&g.Uj(68)?!0:!1}; g.K.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Vm||g.W9?!1:!0}; g.K.getPlayerType=function(){return this.K.cplayer}; g.K.U9=function(){return this.eB}; var phS=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],C2s=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],j68=[19];var vf={},VV9=(vf["140"]={numChannels:2},vf["141"]={numChannels:2},vf["251"]={audioSampleRate:48E3,numChannels:2},vf["774"]={audioSampleRate:48E3,numChannels:2},vf["380"]={numChannels:6},vf["328"]={numChannels:6},vf["773"]={},vf),d2={},d8H=(d2["1"]='video/mp4; codecs="av01.0.08M.08"',d2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',d2["1e"]='video/mp4; codecs="av01.0.08M.08"',d2["9"]='video/webm; codecs="vp9"',d2["("]='video/webm; codecs="vp9"',d2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', d2.h='video/mp4; codecs="avc1.64001e"',d2.H='video/mp4; codecs="avc1.64001e"',d2.o='audio/webm; codecs="opus"',d2.a='audio/mp4; codecs="mp4a.40.2"',d2.ah='audio/mp4; codecs="mp4a.40.2"',d2.mac3='audio/mp4; codecs="ac-3"; channels=6',d2.meac3='audio/mp4; codecs="ec-3"; channels=6',d2.i='audio/mp4; codecs="iamf.001.001.Opus"',d2),TV={},T7f=(TV["337"]={width:3840,height:2160,bitrate:3E7,fps:30},TV["336"]={width:2560,height:1440,bitrate:15E6,fps:30},TV["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, TV["702"]={width:7680,height:4320,bitrate:4E7,fps:60},TV["701"]={width:3840,height:2160,bitrate:2E7,fps:60},TV["700"]={width:2560,height:1440,bitrate:1E7,fps:60},TV["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},TV["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},TV["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},TV["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, TV["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},TV["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},TV["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},TV["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},TV["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},TV["315"]={width:3840,height:2160,bitrate:2E7,fps:60},TV["308"]={width:2560, height:1440,bitrate:1E7,fps:60},TV["303"]={width:1920,height:1080,bitrate:5E6,fps:60},TV["302"]={width:1280,height:720,bitrate:25E5,fps:60},TV["299"]={width:1920,height:1080,bitrate:75E5,fps:60},TV["298"]={width:1280,height:720,bitrate:35E5,fps:60},TV["571"]={width:7680,height:4320,bitrate:3E7,fps:60},TV["401"]={width:3840,height:2160,bitrate:15E6,fps:60},TV["400"]={width:2560,height:1440,bitrate:75E5,fps:60},TV["399"]={width:1920,height:1080,bitrate:2E6,fps:60},TV["398"]={width:1280,height:720,bitrate:1E6, fps:60},TV["397"]={width:854,height:480,bitrate:4E5,fps:30},TV["396"]={width:640,height:360,bitrate:25E4,fps:30},TV["787"]={width:1080,height:608,bitrate:2E5,fps:30},TV["788"]={width:1080,height:608,bitrate:4E5,fps:30},TV["572"]={width:7680,height:4320,bitrate:3E7,fps:60},TV["555"]={width:3840,height:2160,bitrate:15E6,fps:60},TV["554"]={width:2560,height:1440,bitrate:75E5,fps:60},TV["553"]={width:1920,height:1080,bitrate:2E6,fps:60},TV["552"]={width:1280,height:720,bitrate:1E6,fps:60},TV["551"]={width:854, height:480,bitrate:4E5,fps:30},TV["550"]={width:640,height:360,bitrate:25E4,fps:30},TV["313"]={width:3840,height:2160,bitrate:8E6,fps:30},TV["271"]={width:2560,height:1440,bitrate:4E6,fps:30},TV["248"]={width:1920,height:1080,bitrate:2E6,fps:30},TV["247"]={width:1280,height:720,bitrate:15E5,fps:30},TV["244"]={width:854,height:480,bitrate:52E4,fps:30},TV["243"]={width:640,height:360,bitrate:28E4,fps:30},TV["137"]={width:1920,height:1080,bitrate:4E6,fps:30},TV["136"]={width:1280,height:720,bitrate:3E6, fps:30},TV["135"]={width:854,height:480,bitrate:1E6,fps:30},TV["385"]={width:1920,height:1080,bitrate:6503313,fps:60},TV["376"]={width:1280,height:720,bitrate:5706960,fps:60},TV["384"]={width:1280,height:720,bitrate:3660979,fps:60},TV["225"]={width:1280,height:720,bitrate:5805E3,fps:30},TV["224"]={width:1280,height:720,bitrate:453E4,fps:30},TV["145"]={width:1280,height:720,bitrate:2682052,fps:30},TV);g.K=cr.prototype;g.K.getInfo=function(){return this.K}; g.K.o8=function(){return null}; g.K.mF=function(){var y=this.o8();return y?(y=g.TS(y.uj),Number(y.expire)):NaN}; g.K.LZ=function(){}; g.K.getHeight=function(){return this.K.video.height};F4f.prototype.build=function(){hTb(this);var y=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],q={};a:if(this.K)var Q=this.K;else{Q="";for(var p=g.t(this.N),v=p.next();!v.done;v=p.next())if(v=v.value,v.ZG){if(v.ZG.getIsDefault()){Q=v.ZG.getId();break a}Q||(Q=v.ZG.getId())}}p=g.t(this.N);for(v=p.next();!v.done;v=p.next())if(v=v.value,this.G||!v.ZG||v.ZG.getId()===Q)q[v.itag]||(q[v.itag]=[]),q[v.itag].push(v);Q=g.t(this.W);for(p=Q.next();!p.done;p=Q.next())if(p=p.value,v=q[p.K]){v=g.t(v);for(var d=v.next();!d.done;d= v.next()){var T=y,O=T.push;d=d.value;var w="#EXT-X-MEDIA:TYPE=AUDIO,",J="YES",F="audio";if(d.ZG){F=d.ZG;var Y=F.getId().split(".")[0];Y&&(w+='LANGUAGE="'+Y+'",');(this.K?this.K===F.getId():F.getIsDefault())||(J="NO");F=F.getName()}Y="";p!==null&&(Y=p.itag.toString());Y=r1(this,d.url,Y);w=w+('NAME="'+F+'",DEFAULT='+(J+',AUTOSELECT=YES,GROUP-ID="'))+(fcS(d,p)+'",URI="'+(Y+'"'));O.call(T,w)}}Q=g.t(this.J);for(p=Q.next();!p.done;p=Q.next())p=p.value,v=X5c,p=(T=p.ZG)?'#EXT-X-MEDIA:URI="'+r1(this,p.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+v+'",LANGUAGE="'+T.getId()+'",NAME="'+T.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,p&&y.push(p);Q=this.J.length>0?X5c:void 0;p=g.t(this.W);for(v=p.next();!v.done;v=p.next())v=v.value,O=q[v.K],T=void 0,((T=O)==null?void 0:T.length)>0&&(T=v,O=O[0],O="#EXT-X-STREAM-INF:BANDWIDTH="+(T.bitrate+O.bitrate)+',CODECS="'+(T.codecs+","+O.codecs+'",RESOLUTION=')+(T.width+"x"+T.height+',AUDIO="')+(fcS(O,T)+'",')+(Q?'SUBTITLES="'+Q+'",':"")+"CLOSED-CAPTIONS=NONE",T.fps>1&&(O+= ",FRAME-RATE="+T.fps),T.Wb&&(O+=",VIDEO-RANGE="+T.Wb),y.push(O),y.push(r1(this,v.url,"")));return y.join("\n")}; var X5c="text";g.x(os,cr);os.prototype.mF=function(){return this.expiration}; os.prototype.o8=function(){if(!this.uj||this.uj.iB()){var y=this.W.build();y="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(y);this.uj=new kA(y)}return this.uj};g.x(A6,cr);A6.prototype.o8=function(){return new kA(this.W.i6())}; A6.prototype.LZ=function(){this.W=jM(this.W)};g.x(ej,cr);ej.prototype.o8=function(){return new kA(this.W)};var Vq={},L4p=(Vq.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Vq.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Vq.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Vq.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Vq);g.K=g.Br.prototype;g.K.getId=function(){return this.id}; g.K.getName=function(){return this.name}; g.K.isServable=function(){return this.K}; g.K.i6=function(){return this.url}; g.K.getXtags=function(){return this.xtags}; g.K.toString=function(){return this.languageCode+": "+g.Gd(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.K.equals=function(y){return y?this.toString()===y.toString():!1}; g.K.hj=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var s6D={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},MV9={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},lcg=/^(\d*)_((\d*)_?(\d*))$/;var D8D={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},u$g={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Ot={},mem=(Ot.ALWAYS=1,Ot.BY_REQUEST=3,Ot.UNKNOWN=void 0,Ot),w2={},CXc=(w2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",w2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",w2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",w2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",w2);var ejC; ejC=function(y){for(var q=Object.keys(y),Q={},p=0;pp-q?-1:y}; g.K.C2=function(){return this.W.D3()}; g.K.mQ=function(){return this.W.yK()}; g.K.UN=function(y){this.W=y};g.x(ZD,x3);ZD.prototype.W=function(y,q){return x3.prototype.W.call(this,"$N|"+y,q)}; ZD.prototype.J=function(y,q,Q){return new W3(y,q,Q,this.isLive)};g.x(g.EB,g.V6);g.K=g.EB.prototype; g.K.setData=function(y){y=y||{};var q=y.errordetail;q!=null&&(this.errorDetail=q);var Q=y.errorcode;Q!=null?this.errorCode=Q:y.status==="fail"&&(this.errorCode="auth");var p=y.reason;p!=null&&(this.errorReason=p);var v=y.subreason;v!=null&&(this.Fa=v);this.clientPlaybackNonce||(this.clientPlaybackNonce=y.cpn||(this.wp.U9()?"r"+g.ZX(15):g.ZX(16)));this.Os=TH(this.wp.Os,y.livemonitor);Ykb(this,y);var d=y.raw_player_response;if(d)this.Wz=d;else{var T=y.player_response;T&&(d=JSON.parse(T))}d&&(this.playerResponse= d);if(this.playerResponse){var O=this.playerResponse.annotations;if(O)for(var w=g.t(O),J=w.next();!J.done;J=w.next()){var F=J.value.playerAnnotationsUrlsRenderer;if(F){F.adsOnly&&(this.tT=!0);var Y=F.loadPolicy;Y&&(this.annotationsLoadPolicy=mem[Y]);var f=F.invideoUrl;f&&(this.LK=ma(f));break}}var h=this.playerResponse.attestation;h&&njs(this,h);var b=this.playerResponse.cotn;b&&(this.cotn=b);var Z=this.playerResponse.heartbeatParams;if(Z){this.w_=!0;var k=Z.heartbeatToken;k&&(this.drmSessionId=Z.drmSessionId|| "",this.heartbeatToken=k,this.p8=Number(Z.intervalMilliseconds),this.hN=Number(Z.maxRetries),this.I4=!!Z.softFailOnError,this.p9=!!Z.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=Z.heartbeatServerData;var S;this.lV=!((S=Z.heartbeatAttestationConfig)==null||!S.requiresAttestation)}var N=this.playerResponse.messages;N&&rqp(this,N);var l=this.playerResponse.overlay;if(l){var u=l.playerControlsOverlayRenderer;if(u)if(Aqs(this,u.controlBgHtml),u.mutedAutoplay){var c=g.U(u.mutedAutoplay,w0X);if(c&& c.endScreen){var X=g.U(c.endScreen,JYX);X&&X.text&&(this.jt=g.b7(X.text))}}else this.mutedAutoplay=!1}var A=this.playerResponse.playabilityStatus;if(A){var Tf=A.backgroundability;Tf&&Tf.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var OC,pS;if((OC=A.offlineability)==null?0:(pS=OC.offlineabilityRenderer)==null?0:pS.offlineable)this.offlineable=!0;var YD=A.contextParams;YD&&(this.contextParams=YD);var q9=A.pictureInPicture;q9&&q9.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);A.playableInEmbed&&(this.allowEmbed=!0);var aj=A.ypcClickwrap;if(aj){var Pp=aj.playerLegacyDesktopYpcClickwrapRenderer,Fc=aj.ypcRentalActivationRenderer;if(Pp)this.KX=Pp.durationMessage||"",this.YW=!0;else if(Fc){var Jm=Fc.durationMessage;this.KX=Jm?g.b7(Jm):"";this.YW=!0}}var gg=A.errorScreen;if(gg){if(gg.playerLegacyDesktopYpcTrailerRenderer){var M9=gg.playerLegacyDesktopYpcTrailerRenderer;this.xn=M9.trailerVideoId||"";var pM=gg.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var DC=pM&&pM.ypcTrailerRenderer}else if(gg.playerLegacyDesktopYpcOfferRenderer)M9= gg.playerLegacyDesktopYpcOfferRenderer;else if(gg.ypcTrailerRenderer){DC=gg.ypcTrailerRenderer;var on=DC.fullVideoMessage;this.dD=on?g.b7(on):"";var Oo,H;this.xn=((Oo=g.U(DC,F0_))==null?void 0:(H=Oo.videoDetails)==null?void 0:H.videoId)||""}M9&&(this.CH=M9.itemTitle||"",M9.itemUrl&&(this.Gq=M9.itemUrl),M9.itemBuyUrl&&(this.sA=M9.itemBuyUrl),this.L2=M9.itemThumbnail||"",this.x3=M9.offerHeadline||"",this.Yn=M9.offerDescription||"",this.Wx=M9.offerId||"",this.VH=M9.offerButtonText||"",this.WS=M9.offerButtonFormattedText|| null,this.iS=M9.overlayDurationMsec||NaN,this.dD=M9.fullVideoMessage||"",this.oE=!0);if(DC){var lo=g.U(DC,F0_);if(lo)this.R5={raw_player_response:lo};else{var Nw=g.U(DC,t_c);this.R5=Nw?vF(Nw):null}this.oE=!0}}}var Qi=this.playerResponse.playbackTracking;if(Qi){var Sm=y,E=Cn(Qi.googleRemarketingUrl);E&&(this.googleRemarketingUrl=E);var j3=Cn(Qi.youtubeRemarketingUrl);j3&&(this.youtubeRemarketingUrl=j3);var HK={},mn=Cn(Qi.ptrackingUrl);if(mn){var gk=yQ(mn),Gf=gk.oid;Gf&&(this.N7=Gf);var jm=gk.pltype; jm&&(this.M7=jm);var vQ=gk.ptchn;vQ&&(this.R6=vQ);var An=gk.ptk;An&&(this.h9=encodeURIComponent(An));var L=gk.m;L&&(this.Ew=L)}var W=Cn(Qi.qoeUrl);if(W){for(var a=g.TS(W),z=g.t(Object.keys(a)),B=z.next();!B.done;B=z.next()){var wg=B.value,e=a[wg];a[wg]=Array.isArray(e)?e.join(","):e}this.q3=a;var C=a.cat;C&&(this.L("html5_enable_qoe_cat_list")?this.IL=this.IL.concat(C.split(",")):this.Gg=C);var D=a.live;D&&(this.xZ=D);var N9=a.drm_product;N9&&(this.drmProduct=N9)}var Kh=Cn(Qi.videostatsPlaybackUrl); if(Kh){var Vi=yQ(Kh),Ou=Vi.adformat;if(Ou){Sm.adformat=Ou;var oj=this.T(),LS=zTi(Ou,this.nT,oj.Y,oj.C);LS&&(this.adFormat=LS)}var qd=Vi.aqi;qd&&(Sm.ad_query_id=qd);var an=Vi.autoplay;an&&(this.KU=an=="1",this.SW=an=="1");var ce=Vi.autonav;ce&&(this.isAutonav=ce=="1");var S3=Vi.delay;S3&&(this.cB=Dd(S3));var tY=Vi.ei;tY&&(this.eventId=tY);var sC=n8(Vi.adcontext);if(sC)try{var uG=wQk(sC);uG&&(this.dl=uG)}catch(Osm){g.zI(Error("Malformed adContext"))}if(sC||Ou)this.KU=!0;var He=Vi.feature;He&&(this.Or= He);var wO=Vi.list;wO&&(this.playlistId=wO);var Rn=Vi.of;Rn&&(this.yT=Rn);var CA=Vi.osid;CA&&(this.osid=CA);var dO=Vi.referrer;dO&&(this.referrer=dO);var GX=Vi.sdetail;GX&&(this.SS=GX);var In=Vi.ssrt;In&&(this.yA=In=="1");var HQ=Vi.subscribed;HQ&&(this.subscribed=HQ=="1");var P5=Vi.uga;P5&&(this.userGenderAge=P5);var $4=Vi.upt;$4&&(this.P1=$4);var gu=Vi.vm;gu&&(this.videoMetadata=gu);HK.playback=Vi}var yO=Cn(Qi.videostatsWatchtimeUrl);if(yO){var qE=yQ(yO),O2=qE.ald;O2&&(this.Za=O2);HK.watchtime=qE}var EQ= Cn(Qi.atrUrl);if(EQ){var gR=yQ(EQ);HK.atr=gR}var iX=Cn(Qi.engageUrl);if(iX){var co=yQ(iX);HK.engage=co}this.dY=HK;if(Qi.promotedPlaybackTracking){var j_=Qi.promotedPlaybackTracking;j_.startUrls&&(this.BD=j_.startUrls);j_.firstQuartileUrls&&(this.Y$=j_.firstQuartileUrls);j_.secondQuartileUrls&&(this.mA=j_.secondQuartileUrls);j_.thirdQuartileUrls&&(this.a8=j_.thirdQuartileUrls);j_.completeUrls&&(this.rl=j_.completeUrls);j_.engagedViewUrls&&(j_.engagedViewUrls.length>1&&g.zI(new g.GH("There are more than one engaged_view_urls.")), this.oI=j_.engagedViewUrls[0])}}var Kx=this.playerResponse.playerCueRanges;Kx&&Kx.length>0&&(this.cueRanges=Kx);var ck=this.playerResponse.playerCueRangeSet;ck&&g.Ng(this,ck);a:{var Wv=this.playerResponse.adPlacements;if(Wv)for(var QO=g.t(Wv),Zo=QO.next();!Zo.done;Zo=QO.next()){var pQ=void 0,vo=void 0,dR=(pQ=Zo.value.adPlacementRenderer)==null?void 0:(vo=pQ.renderer)==null?void 0:vo.videoAdTrackingRenderer;if(dR){var TR=dR;break a}}TR=null}var tO=TR;Qi&&Qi.promotedPlaybackTracking&&tO&&g.zI(new g.GH("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var wM;if(!(wM=tO))a:{for(var VO=g.t(this.playerResponse.adSlots||[]),Ep=VO.next();!Ep.done;Ep=VO.next()){var k8=g.U(Ep.value,ta);if(k8===void 0||!gSC(k8))break;var nY=void 0,US=(nY=k8.fulfillmentContent)==null?void 0:nY.fulfilledLayout,rR=g.U(US,FE);if(rR&&Tr(rR)){wM=!0;break a}}wM=!1}wM&&(this.uU=!0);var o5=this.playerResponse.playerAds;if(o5)for(var Vp=y,gr=g.t(o5),k$=gr.next();!k$.done;k$=gr.next()){var LW=k$.value;if(LW){var On=LW.playerLegacyDesktopWatchAdsRenderer;if(On){var AL=On.playerAdParams; if(AL){AL.autoplay=="1"&&(this.SW=this.KU=!0);this.BG=AL.encodedAdSafetyReason||null;AL.showContentThumbnail!==void 0&&(this.nF=!!AL.showContentThumbnail);Vp.enabled_engage_types=AL.enabledEngageTypes;break}}}}var kn=this.playerResponse.playerConfig;if(kn){var ea=kn.manifestlessWindowedLiveConfig;if(ea){var c2=Number(ea.minDvrSequence),LX=Number(ea.maxDvrSequence),Lf=Number(ea.minDvrMediaTimeMs),wo=Number(ea.maxDvrMediaTimeMs),J9=Number(ea.startWalltimeMs);c2&&(this.Q5=c2);Lf&&(this.gp=Lf/1E3,this.L("html5_sabr_parse_live_metadata_playback_boundaries")&& nL(this)&&(this.R2=Lf/1E3));LX&&(this.rS=LX);wo&&(this.Se=wo/1E3,this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&nL(this)&&(this.dk=wo/1E3));J9&&(this.XL=J9/1E3);(c2||Lf)&&(LX||wo)&&(this.allowLiveDvr=this.isLivePlayback=this.m3=!0,this.Gf=!1)}var az=kn.daiConfig;if(az){if(az.enableDai){this.SK=!0;var mH=az.enableServerStitchedDai;mH&&(this.enableServerStitchedDai=mH);var wW=az.enablePreroll;wW&&(this.Uw=wW)}var dQ;if(az.daiType==="DAI_TYPE_SS_DISABLED"||((dQ=az.debugInfo)==null?0:dQ.isDisabledUnpluggedChannel))this.Vg= !0;az.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.WQ=!0);az.allowUstreamerRequestAdconfig&&(this.VZ=!0)}var Yv=kn.audioConfig;if(Yv){var bh=Yv.loudnessDb;bh!=null&&(this.Bn=bh);var rX=Yv.trackAbsoluteLoudnessLkfs;rX!=null&&(this.Tc=rX);var nXj=Yv.loudnessTargetLkfs;nXj!=null&&(this.loudnessTargetLkfs=nXj);Yv.audioMuted&&(this.Db=!0);Yv.muteOnStart&&(this.On=!0);var R6=Yv.loudnessNormalizationConfig;if(R6){R6.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);R6.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var gX3=R6.minimumLoudnessTargetLkfs;gX3!=null&&(this.minimumLoudnessTargetLkfs=gX3);var cWi=R6.maxStatefulTimeThresholdSec;cWi!=null&&(this.maxStatefulTimeThresholdSec=cWi)}Yv.playAudioOnly&&(this.Hn=!0)}var cli=kn.playbackEndConfig;if(cli){var UZj=cli.endSeconds,rWb=cli.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(UZj&&(this.endSeconds=UZj),rWb&&(this.limitedPlaybackDurationInSeconds=rWb))}var RL=kn.fairPlayConfig;if(RL){var oX9=RL.certificate;oX9&& (this.Vm=n8(oX9));var AW9=Number(RL.keyRotationPeriodMs);AW9>0&&(this.L8=AW9);var eZS=Number(RL.keyPrefetchMarginMs);eZS>0&&(this.iJ=eZS)}var U6=kn.playbackStartConfig;if(U6){this.nL=Number(U6.startSeconds);var BpS=U6.liveUtcStartSeconds,Gjs=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;BpS&&!Gjs&&(this.liveUtcStartSeconds=Number(BpS));var Uei=U6.startPosition;if(Uei){var PQg=Uei.utcTimeMillis;PQg&&!Gjs&&(this.liveUtcStartSeconds=Number(PQg)*.001);var iqS=Uei.streamTimeMillis;iqS&&(this.I7= Number(iqS)*.001)}this.progressBarStartPosition=U6.progressBarStartPosition;this.progressBarEndPosition=U6.progressBarEndPosition}else{var rlD=kn.skippableSegmentsConfig;if(rlD){var Xy3=rlD.introSkipDurationMs;Xy3&&(this.D4=Number(Xy3)/1E3);var mZf=rlD.outroSkipDurationMs;mZf&&(this.qG=Number(mZf)/1E3)}}var oBg=kn.skippableIntroConfig;if(oBg){var CQj=Number(oBg.startMs),yfS=Number(oBg.endMs);isNaN(CQj)||isNaN(yfS)||(this.Np=CQj,this.eB=yfS)}var qi8=kn.streamSelectionConfig;qi8&&(this.Mz=Number(qi8.maxBitrate)); var j9j=kn.vrConfig;j9j&&(this.g7=j9j.partialSpherical=="1");var sL=kn.webDrmConfig;if(sL){sL.skipWidevine&&(this.i8=!0);var Q9f=sL.widevineServiceCert;Q9f&&(this.fF=n8(Q9f));sL.useCobaltWidevine&&(this.useCobaltWidevine=!0);sL.startWithNoQualityConstraint&&(this.RW=!0)}var AA=kn.mediaCommonConfig;if(AA){var s3=AA.dynamicReadaheadConfig;if(s3){this.maxReadAheadMediaTimeMs=s3.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=s3.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=s3.readAheadGrowthRateMs|| NaN;var pUi,vdf=AA==null?void 0:(pUi=AA.mediaUstreamerRequestConfig)==null?void 0:pUi.videoPlaybackUstreamerConfig;vdf&&(this.L1=n8(vdf));var Alp=AA==null?void 0:AA.sabrContextUpdates;if(Alp&&Alp.length>0)for(var du8=g.t(Alp),eli=du8.next();!eli.done;eli=du8.next()){var pb=eli.value;if(pb.type&&pb.value){var N_c={type:pb.type,scope:pb.scope,value:n8(pb.value)||void 0,sendByDefault:pb.sendByDefault};this.sabrContextUpdates.set(pb.type,N_c)}}}var Tn9=AA.serverPlaybackStartConfig;Tn9&&(this.serverPlaybackStartConfig= Tn9);AA.useServerDrivenAbr&&(this.T5=!0);var Vh3=AA.requestPipeliningConfig;Vh3&&(this.requestPipeliningConfig=Vh3)}var OPD=kn.inlinePlaybackConfig;OPD&&(this.xw=!!OPD.showAudioControls);var MK=kn.embeddedPlayerConfig;if(MK){this.embeddedPlayerConfig=MK;var BMp=MK.embeddedPlayerMode;if(BMp){var wU2=this.T();wU2.Sj=BMp;wU2.N=BMp==="EMBEDDED_PLAYER_MODE_PFL"}var Jff=MK.permissions;Jff&&(this.allowImaMonetization=!!Jff.allowImaMonetization)}var ls=kn.webPlayerConfig;ls&&(ls.gatewayExperimentGroup&&(this.gatewayExperimentGroup= ls.gatewayExperimentGroup),ls.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var ex=this.playerResponse.streamingData;if(ex){var GKS=ex.formats;if(GKS){for(var M8=[],FMC=g.t(GKS),PXC=FMC.next();!PXC.done;PXC=FMC.next()){var ivs=PXC.value;M8.push(ivs.itag+"/"+ivs.width+"x"+ivs.height)}this.wj=M8.join(",");M8=[];for(var Yii=g.t(GKS),X59=Yii.next();!X59.done;X59=Yii.next()){var lP=X59.value,zB={itag:lP.itag,type:lP.mimeType,quality:lP.quality},fRD=lP.url;fRD&&(zB.url=fRD);var zx=QP(lP),Sxw=zx.BS, H9n=zx.hf,Rfn=zx.s;zx.nN&&(zB.url=Sxw,zB.sp=H9n,zB.s=Rfn);M8.push(g.Ew(zB))}this.t1=M8.join(",")}var me3=ex.hlsFormats;if(me3){var hkD=kn||null,DE={};if(hkD){var CX9=hkD.audioPairingConfig;if(CX9&&CX9.pairs)for(var bPb=g.t(CX9.pairs),yiS=bPb.next();!yiS.done;yiS=bPb.next()){var $u9=yiS.value,qJD=$u9.videoItag;DE[qJD]||(DE[qJD]=[]);DE[qJD].push($u9.audioItag)}}for(var KMC={},xu9=g.t(me3),jAb=xu9.next();!jAb.done;jAb=xu9.next()){var WMp=jAb.value;KMC[WMp.itag]=WMp.bitrate}for(var ZPi=[],th2=g.t(me3), QA3=th2.next();!QA3.done;QA3=th2.next()){var X3=QA3.value,aw={itag:X3.itag,type:X3.mimeType,url:X3.url,bitrate:X3.bitrate,width:X3.width,height:X3.height,fps:X3.fps},us=X3.audioTrack;if(us){var EdH=us.displayName;EdH&&(aw.name=EdH,aw.audio_track_id=us.id,us.audioIsDefault&&(aw.is_default="1"))}if(X3.drmFamilies){for(var kG9=[],LMC=g.t(X3.drmFamilies),pk9=LMC.next();!pk9.done;pk9=LMC.next())kG9.push(Ay[pk9.value]);aw.drm_families=kG9.join(",")}var IL=DE[X3.itag];if(IL&&IL.length){aw.audio_itag=IL.join(","); var aRb=KMC[IL[0]];aRb&&(aw.bitrate+=aRb)}var NnH=h3i(X3);NnH&&(aw.eotf=NnH);X3.audioChannels&&(aw.audio_channels=X3.audioChannels);ZPi.push(g.Ew(aw))}this.hlsFormats=ZPi.join(",")}var v48=ex.licenseInfos;if(v48&&v48.length>0){for(var Si9={},HPf=g.t(v48),d_2=HPf.next();!d_2.done;d_2=HPf.next()){var Rkp=d_2.value,s9j=Rkp.drmFamily,Mhj=Rkp.url;s9j&&Mhj&&(Si9[Ay[s9j]]=Mhj)}this.Uy=Si9}var lRj=ex.drmParams;lRj&&(this.drmParams=lRj);var zk3=ex.dashManifestUrl;zk3&&(this.Aw=g.kb(zk3,{cpn:this.clientPlaybackNonce})); var Du9=ex.hlsManifestUrl;Du9&&(this.hlsvp=Du9);var uZf=ex.probeUrl;uZf&&(this.probeUrl=ma(g.kb(uZf,{cpn:this.clientPlaybackNonce})));var IRs=ex.serverAbrStreamingUrl;IRs&&(this.z5=new g.X0(IRs,!0))}var nd2=this.playerResponse.trackingParams;nd2&&(this.N$=nd2);var Ej=this.playerResponse.videoDetails;if(Ej){var NN=y,Tus=Ej.videoId;Tus&&(this.videoId=Tus,NN.video_id||(NN.video_id=Tus));var V7b=Ej.title;V7b&&(this.title=V7b,NN.title||(NN.title=V7b));var Oxf=Ej.lengthSeconds;Oxf&&(this.lengthSeconds= Number(Oxf),NN.length_seconds||(NN.length_seconds=Oxf));var gdS=Ej.keywords;gdS&&(this.keywords=$Yi(gdS));var wkS=Ej.channelId;wkS&&(this.TC=wkS,NN.ucid||(NN.ucid=wkS));var cfj=Ej.viewCount;cfj&&(this.rawViewCount=Number(cfj));var Jip=Ej.author;Jip&&(this.author=Jip,NN.author||(NN.author=Jip));var Uu9=Ej.shortDescription;Uu9&&(this.shortDescription=Uu9);var rf8=Ej.isCrawlable;rf8&&(this.isListed=rf8);var odp=Ej.musicVideoType;odp&&(this.musicVideoType=odp);var Fmb=Ej.isLive;Fmb!=null&&(this.isLivePlayback= Fmb);if(Fmb||Ej.isUpcoming)this.isPremiere=!Ej.isLiveContent;var Afb=Ej.thumbnail;Afb&&(this.C=md(Afb));var ekS=Ej.isExternallyHostedPodcast;ekS&&(this.isExternallyHostedPodcast=ekS);var YJf=Ej.viewerLivestreamJoinPosition;if(YJf==null?0:YJf.utcTimeMillis)this.u2=Dd(YJf.utcTimeMillis);var BnD=kn||null,f8j=y;Ej.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Ej.isUpcoming&&(this.isUpcoming=!0);if(Ej.isPostLiveDvr){this.Gf=!0;var GG8=Ej.latencyClass;GG8&&(this.latencyClass=CXc[GG8]||"UNKNOWN"); Ej.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var h82=!1;this.Os?(this.allowLiveDvr=Sz()?!0:qx&&CC<5?!1:!0,this.isLivePlayback=!0):Ej.isLive?(f8j.livestream="1",this.allowLiveDvr=Ej.isLiveDvrEnabled?Sz()?!0:qx&&CC<5?!1:!0:!1,this.partnerId=27,h82=!0):Ej.isUpcoming&&(h82=!0);if(Ej.isLive||this.Os){Ej.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var P93=Ej.latencyClass;P93&&(this.latencyClass=CXc[P93]||"UNKNOWN");var iPb=Ej.liveChunkReadahead;iPb&&(this.liveChunkReadahead= iPb);var rT=BnD&&BnD.livePlayerConfig;if(rT){rT.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);rT.hasSubfragmentedWebm&&(this.Wa=!0);rT.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var XUb=rT.liveExperimentalContentId;XUb&&(this.liveExperimentalContentId=Number(XUb));var muj=rT.isLiveHeadPlayable;this.L("html5_live_head_playable")&&muj!=null&&(this.isLiveHeadPlayable=muj)}}h82&&(this.isLivePlayback=!0,f8j.adformat&&f8j.adformat.split("_")[1]!=="8"||this.Sj.push("heartbeat"))}var C98= Ej.isPrivate;C98!==void 0&&(this.isPrivate=TH(this.isPrivate,C98))}if(A){var ybC=Ej||null,qW3=!1,K9=A.errorScreen;qW3=K9&&(K9.playerLegacyDesktopYpcOfferRenderer||K9.playerLegacyDesktopYpcTrailerRenderer||K9.ypcTrailerRenderer)?!0:ybC&&ybC.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(A.status);if(!qW3){this.errorCode=acj(A.errorCode)||"auth";var nl=K9&&K9.playerErrorMessageRenderer;if(nl){this.playerErrorMessageRenderer=nl;var jQf=nl.reason;jQf&&(this.errorReason=g.b7(jQf)); var bxb=nl.subreason;bxb&&(this.Fa=g.b7(bxb),this.GJ=bxb)}else this.errorReason=A.reason||null;var $_2=A.status;if($_2==="LOGIN_REQUIRED")this.errorDetail="1";else if($_2==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if($_2==="AGE_CHECK_REQUIRED"){var QQH=A.errorScreen,pID=QQH&&QQH.playerKavRenderer;this.errorDetail=pID&&pID.kavUrl?"4":"3"}else{var vcb,dkS,TG9,soX=(TG9=K9==null?void 0:(vcb=K9.playerErrorMessageRenderer)==null?void 0:(dkS=vcb.proceedButton)==null?void 0:dkS.buttonRenderer)== null?void 0:TG9.command;if(A.isBlockedInRestrictedMode)this.errorDetail="5";else{var Vy3;((Vy3=g.U(soX,BVm))==null?void 0:Vy3.signal)==="RELOAD_PAGE"?this.errorDetail="7":this.errorDetail="0"}}}}var Oug=this.playerResponse.interstitialPods;Oug&&U8p(this,Oug);this.LK&&this.eventId&&(this.LK=Ox(this.LK,{ei:this.eventId}));var Kms=this.playerResponse.captions;if(Kms&&Kms.playerCaptionsTracklistRenderer)a:{var St=Kms.playerCaptionsTracklistRenderer;this.captionTracks=[];if(St.captionTracks)for(var wIs= g.t(St.captionTracks),x_j=wIs.next();!x_j.done;x_j=wIs.next()){var Hq=x_j.value,Jb8=hvg(Hq.baseUrl);if(!Jb8)break a;var Wmb={is_translateable:!!Hq.isTranslatable,languageCode:Hq.languageCode,languageName:Hq.name&&g.b7(Hq.name),url:Jb8,vss_id:Hq.vssId,kind:Hq.kind};Wmb.name=Hq.trackName;Wmb.displayName=Hq.name&&g.b7(Hq.name);this.captionTracks.push(new g.Br(Wmb))}this.nD=St.audioTracks||[];this.tZ=St.defaultAudioTrackIndex||0;this.Mx=[];if(St.translationLanguages)for(var Ft9=g.t(St.translationLanguages), Zxi=Ft9.next();!Zxi.done;Zxi=Ft9.next()){var oC=Zxi.value,va={};va.languageCode=oC.languageCode;va.languageName=g.b7(oC.languageName);if(oC.translationSourceTrackIndices){va.translationSourceTrackIndices=[];for(var YWj=g.t(oC.translationSourceTrackIndices),t7b=YWj.next();!t7b.done;t7b=YWj.next())va.translationSourceTrackIndices.push(t7b.value)}if(oC.excludeAudioTrackIndices){va.excludeAudioTrackIndices=[];for(var fZf=g.t(oC.excludeAudioTrackIndices),E4f=fZf.next();!E4f.done;E4f=fZf.next())va.excludeAudioTrackIndices.push(E4f.value)}this.Mx.push(va)}this.I8= [];if(St.defaultTranslationSourceTrackIndices)for(var hof=g.t(St.defaultTranslationSourceTrackIndices),kEH=hof.next();!kEH.done;kEH=hof.next())this.I8.push(kEH.value);this.Nx=!!St.contribute&&!!St.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.nL=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&& ojC(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var bui;this.compositeLiveIngestionOffsetToken=(bui=this.playerResponse.playbackTracking)==null?void 0:bui.compositeLiveIngestionOffsetToken;var $kf;this.compositeLiveStatusToken=($kf=this.playerResponse.playbackTracking)==null?void 0:$kf.compositeLiveStatusToken;this.L("html5_fill_default_mosaic_audio_track_id")&&xW(this)&&(this.wp.BI=v73(this));var Kt8,xkS,Wtg=(Kt8=this.playerResponse.playerConfig)==null?void 0:(xkS= Kt8.granularVariableSpeedConfig)==null?void 0:xkS.minimumPlaybackRate,ZuS,tyD,Ec2=(ZuS=this.playerResponse.playerConfig)==null?void 0:(tyD=ZuS.granularVariableSpeedConfig)==null?void 0:tyD.maximumPlaybackRate;Wtg&&Ec2&&(this.Po=Wtg/100,this.OE=Ec2/100);this.heartbeatLoggingToken=this.playerResponse.heartbeatLoggingToken}LL(this,y);y.queue_info&&(this.queueInfo=y.queue_info);var kNi=y.hlsdvr;kNi!=null&&(this.allowLiveDvr=Number(kNi)===1?Sz()?!0:qx&&CC<5?!1:!0:!1);this.adQueryId=y.ad_query_id||null; this.BG||(this.BG=y.encoded_ad_safety_reason||null);this.Db=TH(this.Db,y.infringe||y.muted);this.J1I=y.authkey;this.Nk=y.authuser;this.mutedAutoplay=TH(this.mutedAutoplay,y&&y.playmuted);this.mutedAutoplayDurationMode=OM(this.mutedAutoplayDurationMode,y&&y.muted_autoplay_duration_mode);this.rN=TH(this.rN,y&&y.mutedautoplay);var gq=y.length_seconds;gq&&(this.lengthSeconds=typeof gq==="string"?Dd(gq):gq);if(this.isAd()||this.zB||!g.f_(g.h6(this.wp)))this.endSeconds=OM(this.endSeconds,this.qG||y.end|| y.endSeconds);else{var Msn=g.h6(this.wp),cm=this.lengthSeconds;switch(Msn){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":cm>30?this.limitedPlaybackDurationInSeconds=30:cm<30&&cm>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=cm*.2}}this.N$=wf(this.N$,y.itct);this.gG=TH(this.gG,y.is_live_destination);this.isLivePlayback=TH(this.isLivePlayback,y.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&& this.E9();y.isUpcoming&&(this.isUpcoming=TH(this.isUpcoming,y.isUpcoming));this.Gf=TH(this.Gf,y.post_live_playback);this.m3&&(this.Gf=!1);this.isMdxPlayback=TH(this.isMdxPlayback,y.mdx);var U3=y.mdx_control_mode;U3&&(this.mdxControlMode=typeof U3==="number"?U3:Dd(U3));this.isInlinePlaybackNoAd=TH(this.isInlinePlaybackNoAd,y.is_inline_playback_no_ad);this.hw=OM(this.hw,y.reload_count);this.reloadReason=wf(this.reloadReason,y.reload_reason);this.nF=TH(this.nF,y.show_content_thumbnail);this.cycToken= y.cyc||null;var LtC=X_(y);Object.keys(LtC).length>0&&(this.C=LtC);this.Es=wf(this.Es,y.vvt);this.mdxEnvironment=wf(this.mdxEnvironment,y.mdx_environment);y.source_container_playlist_id&&(this.sourceContainerPlaylistId=y.source_container_playlist_id);y.serialized_mdx_metadata&&(this.serializedMdxMetadata=y.serialized_mdx_metadata);this.YuV=y.osig;this.eventId||(this.eventId=y.eventid);this.osid||(this.osid=y.osid);this.playlistId=wf(this.playlistId,y.list);y.index&&(this.playlistIndex=this.playlistIndex=== void 0?OM(0,y.index):OM(this.playlistIndex,y.index));this.jm=y.pyv_view_beacon_url;this.Wm=y.pyv_quartile25_beacon_url;this.Fb=y.pyv_quartile50_beacon_url;this.Yd=y.pyv_quartile75_beacon_url;this.KG=y.pyv_quartile100_beacon_url;var aZ8=y.session_data;!this.aA&&aZ8&&(this.aA=Q9(aZ8,"&").feature);this.isFling=OM(this.isFling?1:0,y.is_fling)===1;this.vnd=OM(this.vnd,y.vnd);this.forceAdsUrl=wf(this.forceAdsUrl,y.force_ads_url);this.MB=wf(this.MB,y.ctrl);this.k9=wf(this.k9,y.ytr);this.zR=y.ytrcc;this.u8= y.ytrexp;this.ud=y.ytrext;this.b9=wf(this.b9,y.adformat);this.nT=wf(this.nT,y.attrib);this.slotPosition=OM(this.slotPosition,y.slot_pos);this.breakType=y.break_type;this.yA=TH(this.yA,y.ssrt);this.videoId=FW(y)||this.videoId;this.G=wf(this.G,y.vss_credentials_token);this.t0=wf(this.t0,y.vss_credentials_token_type);this.Hn=TH(this.Hn,y.audio_only);this.HI=TH(this.HI,y.aac_high);this.SL=TH(this.SL,y.prefer_low_quality_audio);this.OT=TH(this.OT,y.uncap_inline_quality);this.L("html5_enable_qoe_cat_list")? y.qoe_cat&&(this.IL=this.IL.concat(y.qoe_cat.split(","))):this.Gg=wf(this.Gg,y.qoe_cat);this.vD=TH(this.vD,y.download_media);var NGC=y.prefer_gapless;this.X=NGC!=null?TH(this.X,NGC):this.X?this.X:this.wp.preferGapless&&this.wp.supportsGaplessShorts();bzS(this.playerResponse)&&this.Sj.push("ad");var SW9=y.adaptive_fmts;SW9&&(this.adaptiveFormats=SW9,this.Rb("adpfmts",{},!0));var Huf=y.allow_embed;Huf&&(this.allowEmbed=Number(Huf)===1);var Rob=y.backgroundable;Rob&&(this.backgroundable=Number(Rob)=== 1);var sQ2=y.autonav;sQ2&&(this.isAutonav=Number(sQ2)===1);var My8=y.autoplay;My8&&(this.KU=this.SW=Number(My8)===1);var lZH=y.iv_load_policy;lZH&&(this.annotationsLoadPolicy=VB(this.annotationsLoadPolicy,lZH,be));var zo3=y.cc_lang_pref;zo3&&(this.captionsLanguagePreference=wf(zo3,this.captionsLanguagePreference));var Dkp=y.cc_load_policy;Dkp&&(this.X_=VB(this.X_,Dkp,be));var uTH;this.deviceCaptionsOn=(uTH=y.device_captions_on)!=null?uTH:void 0;var IZf;this.RY=(IZf=y.device_captions_lang_pref)!=null? IZf:"";var nci;this.fD=(nci=y.viewer_selected_caption_langs)!=null?nci:[];var gcS=y.cached_load;gcS&&(this.n8=TH(this.n8,gcS));if(y.dash==="0"||y.dash===0||y.dash===!1)this.cS=!0;var cbp=y.dashmpd;cbp&&(this.Aw=g.kb(cbp,{cpn:this.clientPlaybackNonce}));var Ukg=y.delay;Ukg&&(this.cB=Dd(Ukg));var Lm2=this.qG||y.end;if(this.T8?Lm2!=null:Lm2!=void 0)this.clipEnd=OM(this.clipEnd,Lm2);var rb9=y.fmt_list;rb9&&(this.wj=rb9);y.heartbeat_preroll&&this.Sj.push("heartbeat");yih&&(this.b2=-Math.floor(Math.random()* 10),this.BL=-Math.floor(Math.random()*40));var oc3=y.is_listed;oc3&&(this.isListed=TH(this.isListed,oc3));var Abb=y.is_private;Abb&&(this.isPrivate=TH(this.isPrivate,Abb));var eos=y.is_dni;eos&&(this.cO=TH(this.cO,eos));var BG2=y.dni_color;BG2&&(this.sS=wf(this.sS,BG2));var GN9=y.pipable;GN9&&(this.pipable=TH(this.pipable,GN9));this.j7=(this.Cd=this.pipable&&this.wp.HG)&&!this.wp.showMiniplayerButton;var PMi=y.paid_content_overlay_duration_ms;PMi&&(this.paidContentOverlayDurationMs=Dd(PMi));var iuf= y.paid_content_overlay_text;iuf&&(this.paidContentOverlayText=iuf);var XIp=y.url_encoded_fmt_stream_map;XIp&&(this.t1=XIp);var mk9=y.hls_formats;mk9&&(this.hlsFormats=mk9);var CM8=y.hlsvp;CM8&&(this.hlsvp=CM8);var rq=y.live_start_walltime;rq&&(this.Tdm=typeof rq==="number"?rq:Dd(rq));var oL=y.live_manifest_duration;oL&&(this.xK=typeof oL==="number"?oL:Dd(oL));var y2f=y.player_params;y2f&&(this.playerParams=y2f);var q3p=y.partnerid;q3p&&(this.partnerId=OM(this.partnerId,q3p));var jLi=y.probe_url;jLi&& (this.probeUrl=ma(g.kb(jLi,{cpn:this.clientPlaybackNonce})));var a8D=y.pyv_billable_url;a8D&&kIS(a8D)&&(this.oI=a8D);var Nuj=y.pyv_conv_url;Nuj&&kIS(Nuj)&&(this.qw=Nuj);KA9(this,y);this.startSeconds>0?this.L("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.nL||this.D4||y.start||y.startSeconds)&&this.Rb("lss",{css:this.startSeconds,pcss:this.nL,iss:this.D4,ps:y.start||void 0,pss:y.startSeconds||void 0}):this.RH=this.startSeconds=OM(this.startSeconds,this.nL||this.D4||y.start||y.startSeconds); if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var QLH=y.live_utc_start;if(QLH!=null)this.liveUtcStartSeconds=Number(QLH);else{var SJp=this.startSeconds;SJp&&isFinite(SJp)&&SJp>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var pm9=y.utc_start_millis;pm9&&(this.liveUtcStartSeconds=Number(pm9)*.001)}var vsi=y.stream_time_start_millis;vsi&&(this.I7=Number(vsi)*.001);var Hxg=this.D4||y.start;(this.T8?Hxg==null||Number(y.resume)=== 1:Hxg==void 0||y.resume=="1")||this.isLivePlayback||(this.clipStart=OM(this.clipStart,Hxg));var dKf=y.url_encoded_third_party_media;dKf&&(this.Oa=d_(dKf));var R8j=y.ypc_offer_button_formatted_text;if(R8j){var Tqp=JSON.parse(R8j);this.WS=Tqp!=null?Tqp:null;this.lY=R8j}var VIi=y.ypc_offer_button_text;VIi&&(this.VH=VIi);var Ol2=y.ypc_offer_description;Ol2&&(this.Yn=Ol2);var wmg=y.ypc_offer_headline;wmg&&(this.x3=wmg);var J2C=y.ypc_full_video_message;J2C&&(this.dD=J2C);var FKj=y.ypc_offer_id;FKj&&(this.Wx= FKj);var Y3j=y.ypc_buy_url;Y3j&&(this.sA=Y3j);var fEb=y.ypc_item_thumbnail;fEb&&(this.L2=fEb);var hU9=y.ypc_item_title;hU9&&(this.CH=hU9);var blp=y.ypc_item_url;blp&&(this.Gq=blp);var $KD=y.ypc_vid;$KD&&(this.xn=$KD);y.ypc_overlay_timeout&&(this.iS=Number(y.ypc_overlay_timeout));var KKS=y.ypc_trailer_player_vars;KKS&&(this.R5=vF(KKS));var xKs=y.ypc_original_itct;xKs&&(this.LQ=xKs);this.TC=wf(this.TC,y.ucid);this.OI=y.storyboard_spec||null;this.XR=y.live_storyboard_spec||null;this.YQ=y.iv_endscreen_url|| null;this.oE=TH(this.oE,y.ypc_module);this.YW=TH(this.YW,y.ypc_clickwrap_module);this.oE&&this.Sj.push("ypc");this.YW&&this.Sj.push("ypc_clickwrap");this.kh={video_id:y.video_id,eventid:y.eventid,cbrand:y.cbrand,cbr:y.cbr,cbrver:y.cbrver,c:y.c,cver:y.cver,ctheme:y.ctheme,cplayer:y.cplayer,cmodel:y.cmodel,cnetwork:y.cnetwork,cos:y.cos,cosver:y.cosver,cplatform:y.cplatform,user_age:y.user_age,user_display_image:y.user_display_image,user_display_name:y.user_display_name,user_gender:y.user_gender,csi_page_type:y.csi_page_type, csi_service_name:y.csi_service_name,enablecsi:y.enablecsi,enabled_engage_types:y.enabled_engage_types};fY9(this,y);var WKC=y.cotn;WKC&&(this.cotn=WKC);if(Rvp(this))UB(this)&&(this.isLivePlayback&&this.Aw&&(this.W_=!0),this.Vm&&(this.oL=!0));else if(sSC(this))this.W_=!0;else{var ZlH,tIS,Esp=((ZlH=this.playerResponse)==null?void 0:(tIS=ZlH.streamingData)==null?void 0:tIS.adaptiveFormats)||[],A0=null;if(Esp.length>0)A0=HFp(this,Esp);else if(!this.L("html5_deprecate_adaptive_formats_string")){this.Rb("pafmtstr", {s:this.adaptiveFormats.substring(0,50)});var kx9=this.adaptiveFormats;if(kx9&&!UB(this)){this.wp.J.N&&(p8=!0);var ed=P3(kx9),sAs=this.Uy,LK3=this.lengthSeconds,zfm=this.isLivePlayback,Dc=this.Gf,BJ=this.wp,D7w=R3f(ed);if(zfm||Dc){var aEC=BJ==null?void 0:BJ.experiments,g5=new rB("",aEC,!0);g5.E9=!0;g5.isManifestless=!0;g5.W=!Dc;g5.isLive=!Dc;g5.Gf=Dc;for(var Nqj=g.t(ed),M7S=Nqj.next();!M7S.done;M7S=Nqj.next()){var Gs=M7S.value,S3s=Bj(Gs,sAs),dw=GJ(Gs.url,Gs.sp,Gs.s),Hlj=dw.get("id");Hlj&&Hlj.includes("%7E")&& (g5.cI=!0);var RUH=void 0,uqh=(RUH=aEC)==null?void 0:RUH.ob("html5_max_known_end_time_rebase"),I1m=Number(Gs.target_duration_sec)||5,nQu=Number(Gs.max_dvr_duration_sec)||14400,sLf=Number(dw.get("mindsq")||dw.get("min_sq")||"0"),MI8=Number(dw.get("maxdsq")||dw.get("max_sq")||"0")||Infinity;g5.Q5=g5.Q5||sLf;g5.rS=g5.rS||MI8;var gQu=!OA(S3s.mimeType);dw&&gB(g5,new EV(dw,S3s,{nV:I1m,fL:gQu,jW:nQu,Q5:sLf,rS:MI8,XK:300,Gf:Dc,N3:uqh}))}var lEf=g5}else{if(D7w==="FORMAT_STREAM_TYPE_OTF"){var A2=LK3;A2=A2=== void 0?0:A2;var PJ=new rB("",BJ==null?void 0:BJ.experiments,!1);PJ.duration=A2||0;for(var zU9=g.t(ed),l8S=zU9.next();!l8S.done;l8S=zU9.next()){var ij=l8S.value,z8D=Bj(ij,sAs,PJ.duration),D_C=GJ(ij.url,ij.sp,ij.s);if(D_C)if(z8D.streamType==="FORMAT_STREAM_TYPE_OTF")gB(PJ,new ka(D_C,z8D,"sq/0"));else{var cMC=jE(ij.init),U7S=jE(ij.index);gB(PJ,new uq(D_C,z8D,cMC,U7S))}}PJ.isOtf=!0;var DKi=PJ}else{var eI=LK3;eI=eI===void 0?0:eI;var Bm=new rB("",BJ==null?void 0:BJ.experiments,!1);Bm.duration=eI||0;for(var uVg= g.t(ed),uv2=uVg.next();!uv2.done;uv2=uVg.next()){var Xx=uv2.value,rMC=Bj(Xx,sAs,Bm.duration),oQq=jE(Xx.init),AMG=jE(Xx.index),IE2=GJ(Xx.url,Xx.sp,Xx.s);IE2&&gB(Bm,new uq(IE2,rMC,oQq,AMG))}DKi=Bm}lEf=DKi}var nsf=lEf;if(ed.length>0){var gsb=ed[0];if(this.T().playerStyle==="hangouts-meet"&&gsb.url){var efm=g.TS(gsb.url);this.lE=this.lE||Number(efm.expire)}}var B_n=this.isLivePlayback&&!this.Gf&&!this.m3&&!this.isPremiere;this.L("html5_live_head_playable")&&(!rx(this)&&B_n&&this.Rb("missingLiveHeadPlayable", {}),this.wp.cI==="yt"&&(nsf.Vm=!0));A0=nsf}else A0=null;this.Rb("pafmts",{isManifestFilled:!!A0})}if(A0){eC(this,A0);var c23=!0}else c23=!1;c23?this.enableServerStitchedDai=this.enableServerStitchedDai&&of(this):this.Aw&&(this.wp.cI==="yt"&&this.E9()&&this.L("drm_manifestless_unplugged")&&this.L("html5_deprecate_manifestful_fallback")?this.Rb("deprecateMflFallback",{}):this.W_=!0)}var I8i=y.adpings;I8i&&(this.hT=I8i?vF(I8i):null);var UK8=y.feature;UK8&&(this.Or=UK8);var r28=y.referrer;r28&&(this.referrer= r28);this.clientScreenNonce=wf(this.clientScreenNonce,y.csn);this.SQ=OM(this.SQ,y.root_ve_type);this.va=OM(this.va,y.kids_age_up_mode);this.T8||y.kids_app_info==void 0||(this.kidsAppInfo=y.kids_app_info);this.T8&&y.kids_app_info!=null&&(this.kidsAppInfo=y.kids_app_info);this.jL=TH(this.jL,y.upg_content_filter_mode);this.unpluggedFilterModeType=OM(this.unpluggedFilterModeType,y.unplugged_filter_mode_type);var osH=y.unplugged_location_info;osH&&(this.Kg=osH);var A2g=y.unplugged_partner_opt_out;A2g&& (this.gN=wf("",A2g));this.Fv=TH(this.Fv,y.disable_watch_next);this.yw=wf(this.yw,y.internal_ip_override);this.rj=!!y.is_yto_interstitial;(this.interstitials.length||this.rj)&&this.Sj.push("yto");var eU3=y.J0;eU3&&(this.J0=eU3);this.cI=wf(this.cI,y.csi_timer);y.watchUrl&&(this.watchUrl=y.watchUrl);var T_=y.watch_endpoint;this.L("html5_attach_watch_endpoint_ustreamer_config")&&T_&&H6S(this,T_);if(T_==null?0:T_.ustreamerConfig)this.fm=n8(T_.ustreamerConfig);var Bqg,GxS,Ps2=T_==null?void 0:(Bqg=T_.loggingContext)== null?void 0:(GxS=Bqg.qoeLoggingContext)==null?void 0:GxS.serializedContextData;Ps2&&(this.Kaf=Ps2);g.d1(this.wp)&&this.wp.Oa&&(this.embedsRct=wf(this.embedsRct,y.rct),this.embedsRctn=wf(this.embedsRctn,y.rctn));y.embed_config&&(this.Qg=y.embed_config);this.fV=this.fV||!!y.pause_at_start;y.default_active_source_video_id&&(this.defaultActiveSourceVideoId=y.default_active_source_video_id)}; g.K.T=function(){return this.wp}; g.K.L=function(y){return this.wp.L(y)}; g.K.jK=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.K.hasSupportedAudio51Tracks=function(){var y;return!((y=this.Wn)==null||!y.q$)}; g.K.getUserAudio51Preference=function(){var y=1;Sj(this.wp)&&this.L("html5_ytv_surround_toggle_default_off")?y=0:g.Ln(this.wp)&&this.isLivePlayback&&this.AR()&&(y=0);var q;return(q=g.uw("yt-player-audio51"))!=null?q:y}; g.K.bG=function(){this.iB()||(this.K.W||this.K.unsubscribe("refresh",this.bG,this),this.qZ(-1))}; g.K.qZ=function(y){if(!this.isLivePlayback||!this.J||this.J.flavor!=="fairplay"){var q=M2b(this.K,this.Qp);if(q.length>0){for(var Q=g.t(q),p=Q.next();!p.done;p=Q.next())p=p.value,p.startSecs=Math.max(p.startSecs,this.PT()),this.L("html5_cuepoint_identifier_logging")&&p.event==="start"&&this.Rb("cuepoint",{pubCue:p.identifier,segNum:y});this.publish("cuepointupdated",q,y);this.Qp+=q.length;if(of(this)&&this.wp.U9())for(q=g.t(q),Q=q.next();!Q.done;Q=q.next())Q=Q.value,this.Rb("cuepoint",{segNum:y,event:Q.event, startSecs:Q.startSecs,id:Q.identifier.slice(-16)}),Q.event==="start"&&(Q=Q.startSecs,this.Ji.start=this.ra,this.Ji.end=Q+3)}}}; g.K.d7=function(){this.iB()||(this.loading=!1,this.publish("dataloaded"))}; g.K.AR=function(){return this.zY!==void 0?this.zY:this.zY=!!this.Uy||!!this.K&&ot(this.K)}; g.K.Ek=function(y){var q=this;if(this.iB())return D1();this.EW=this.Ty=this.N=null;L$(this,"html5_high_res_logging_always")&&(this.wp.eB=!0);return zvD(this,y).then(void 0,function(){return uEC(q,y)}).then(void 0,function(){return IYH(q)}).then(void 0,function(){return gTj(q)})}; g.K.o4=function(y){this.N=y;DYg(this,this.N.getAvailableAudioTracks());if(this.N){y=g.t(this.N.videoInfos);for(var q=y.next();!q.done;q=y.next()){q=q.value;var Q=q.containerType;Q!==0&&(this.FR[Q]=q.id)}}y=this.getAvailableAudioTracks();y=y.concat(this.oD);for(q=0;q0?this.N.getAvailableAudioTracks():this.jY||[]:[]}; g.K.getAudioTrack=function(){var y=this;if(this.Y&&!pj(this.Y)){var q=g.ZC(this.getAvailableAudioTracks(),function(v){return v.id===y.Y.id}),Q; if(!q&&((Q=this.Y.ZG)==null?0:Q.id)){var p=this.Y.ZG.id;q=g.ZC(this.getAvailableAudioTracks(),function(v){return v.ZG.id===p}); this.Rb("nat",{id:this.Y.id,track:!!q})}return q||this.oD}if(this.jY){if(!this.Nq)for(q=g.t(this.jY),Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,Q.ZG.getIsDefault()){this.Nq=Q;break}return this.Nq||this.oD}return this.oD}; g.K.getPlayerResponse=function(){return this.playerResponse}; g.K.getWatchNextResponse=function(){return this.vI}; g.K.getHeartbeatResponse=function(){return this.e6}; g.K.pV=function(){return this.watchUrl?this.watchUrl:this.wp.getVideoUrl(this.videoId)}; g.K.BU=function(){return!!this.K&&(t29(this.K)||EAj(this.K)||k$f(this.K))}; g.K.getEmbeddedPlayerResponse=function(){return this.Zj}; g.K.jP=function(){return(this.eventLabel||this.wp.gp)==="shortspage"}; 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.Lg=function(){var y,q,Q;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((y=this.playerResponse)==null?0:(q=y.playerConfig)==null?0:(Q=q.daiConfig)==null?0:Q.ssaEnabledPlayback)}; g.K.Dc=function(){return this.w_}; g.K.pz=function(){return this.oE||this.Tg}; g.K.wB=function(){return L$(this,"html5_samsung_vp9_live")}; g.K.Rb=function(y,q,Q){this.publish("ctmp",y,q,Q)}; g.K.OU=function(y,q,Q){this.publish("ctmpstr",y,q,Q)}; g.K.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.K.getGetAdBreakContext=function(y,q){y=y===void 0?NaN:y;q=q===void 0?NaN:q;var Q={isSabr:nL(this)},p,v=(p=this.getHeartbeatResponse())==null?void 0:p.adBreakHeartbeatParams;v&&(Q.adBreakHeartbeatParams=v);if(this.L("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.K&&!isNaN(y)&&!isNaN(q)){q=y-q;for(var d in this.K.K)if(p=this.K.K[d],p.info.V5()||p.info.Eu())if(p=p.index,p.isLoaded()){d=p.zW(q);p=p.Sb(d)+q-p.getStartTime(d);this.Rb("gabc",{t:y.toFixed(3),mt:q.toFixed(3),sg:d,igt:p.toFixed(3)}); Q.livePlaybackPosition={utcTimeMillis:""+(p*1E3).toFixed(0)};break}}return Q}; g.K.isEmbedsShortsMode=function(y,q){if(!g.d1(this.wp)||(this.wp.Sj||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||q)return!1;var Q,p;return!!(((Q=this.embeddedPlayerConfig)==null?0:(p=Q.embeddedPlayerFlags)==null?0:p.isShortsExperienceEligible)&&y.width<=y.height)}; g.K.FV=function(){g.V6.prototype.FV.call(this);this.hT=null;delete this.uVp;delete this.accountLinkingConfig;delete this.K;this.N=this.e6=this.playerResponse=this.vI=null;this.t1=this.adaptiveFormats="";delete this.botguardData;this.BI=this.suggestions=this.HG=null;this.sabrContextUpdates.clear()}; var yih=!0;var KhD={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},xl2={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},bZC={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Ygi={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"},hq9={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},f4D={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", 3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},$li={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.x(s7,g.I);g.K=s7.prototype;g.K.handleExternalCall=function(y,q,Q){var p=this.state.X[y],v=this.state.C[y],d=p;if(v)if(Q&&Pl(Q,hlm))d=v;else if(!p)throw Error('API call from an untrusted origin: "'+Q+'"');this.logApiCall(y,Q);if(d){Q=!1;p=g.t(q);for(v=p.next();!v.done;v=p.next())if(String(v.value).includes("javascript:")){Q=!0;break}Q&&g.zI(Error('Dangerous call to "'+y+'" with ['+q+"]."));return d.apply(this,q)}throw Error('Unknown API method: "'+y+'".');}; g.K.logApiCall=function(y,q,Q){var p=this.app.T();p.R2&&!this.state.j.has(y)&&(this.state.j.add(y),g.wU("webPlayerApiCalled",{callerUrl:p.loaderUrl,methodName:y,origin:q||void 0,playerStyle:p.playerStyle||void 0,embeddedPlayerMode:p.Sj,errorCode:Q}))}; g.K.publish=function(y){var q=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[y].concat(g.hH(q)));if(y==="videodatachange"||y==="resize"||y==="cardstatechange")this.state.W.publish.apply(this.state.W,[y].concat(g.hH(q))),this.state.Y.publish.apply(this.state.Y,[y].concat(g.hH(q)))}; g.K.AK=function(y){var q=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[y].concat(g.hH(q)));this.state.W.publish.apply(this.state.W,[y].concat(g.hH(q)))}; g.K.mu=function(y){var q=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[y].concat(g.hH(q)));this.state.W.publish.apply(this.state.W,[y].concat(g.hH(q)));this.state.Y.publish.apply(this.state.Y,[y].concat(g.hH(q)))}; g.K.h1=function(y){var q=g.nS.apply(1,arguments);this.state.N.publish.apply(this.state.N,[y].concat(g.hH(q)));this.state.W.publish.apply(this.state.W,[y].concat(g.hH(q)));this.state.Y.publish.apply(this.state.Y,[y].concat(g.hH(q)));this.state.J.publish.apply(this.state.J,[y].concat(g.hH(q)))}; g.K.L=function(y){return this.app.T().L(y)}; g.K.FV=function(){if(this.state.element){var y=this.state.element,q;for(q in this.state.K)this.state.K.hasOwnProperty(q)&&(y[q]=null);this.state.element=null}g.I.prototype.FV.call(this)};g.x(uh,g.s$);uh.prototype.publish=function(y){var q=g.nS.apply(1,arguments);if(this.J.has(y))return this.J.get(y).push(q),!0;var Q=!1;try{for(q=[q],this.J.set(y,q);q.length;)Q=g.s$.prototype.publish.call.apply(g.s$.prototype.publish,[this,y].concat(g.hH(q.shift())))}finally{this.J.delete(y)}return Q};g.x(IF,g.I);IF.prototype.FV=function(){this.J.dispose();this.Y.dispose();this.W.dispose();this.N.dispose();this.j=this.K=this.C=this.X=this.G=void 0};var a4i=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.x(g6,s7);g.K=g6.prototype;g.K.getApiInterface=function(){return Array.from(this.state.G)}; g.K.B2=function(y,q){this.state.J.subscribe(y,q)}; g.K.O6B=function(y,q){this.state.J.unsubscribe(y,q)}; g.K.getPlayerState=function(y){return bwj(this.app,y)}; g.K.oC=function(){return bwj(this.app)}; g.K.r6s=function(y,q,Q){r6(this)&&(Ix(this.app,!0,1),c6(this.app,y,q,Q,1))}; g.K.getCurrentTime=function(y,q,Q){var p=this.getPlayerState(y);if(this.app.getAppState()===2&&p===5){var v;return((v=this.app.getVideoData())==null?void 0:v.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&p===0?s8(this.app,y):y?this.app.getCurrentTime(y,q,Q):this.app.getCurrentTime(y)}; g.K.Vt=function(){return this.app.getCurrentTime(1)}; g.K.tH=function(){var y=this.app.Sb(1);return isNaN(y)?this.getCurrentTime(1):y}; g.K.Zl=function(){return this.app.getDuration(1)}; g.K.CR=function(y,q){y=g.rV(Math.floor(y),0,100);isFinite(y)&&H6(this.app,{volume:y,muted:this.isMuted()},q)}; g.K.k3p=function(y){this.CR(y,!1)}; g.K.Y_=function(y){H6(this.app,{muted:!0,volume:this.getVolume()},y)}; g.K.qsj=function(){this.Y_(!1)}; g.K.g9=function(y){H6(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},y)}; g.K.QMj=function(){U7(this.app)||this.g9(!1)}; g.K.getPlayerMode=function(){var y={};this.app.getVideoData().cO&&(y.pfp={enableIma:this.app.Ff().allowImaMonetization,autoplay:hs(this.app.Ff()),mutedAutoplay:this.app.Ff().mutedAutoplay});return y}; g.K.hW=function(){var y=this.app.getPresentingPlayerType();if(y===2&&!this.app.SK()){var q=zz(this.app.yN());if(!(fCu(q)||g.d1(this.app.T())&&g.G(this.app.tK().getPlayerState(),1024))||h_G(q))return}(q=this.app.IW().sf)?q.playVideo():this.app.playVideo(y)}; g.K.Qls=function(){Ix(this.app,!0,1);this.hW()}; g.K.pauseVideo=function(y){var q=this.app.getPresentingPlayerType();if(q!==2||this.app.SK()||fCu(zz(this.app.yN()))){var Q=this.app.IW().sf;Q?Q.pauseVideo():this.app.pauseVideo(q,y)}}; g.K.OnK=function(){var y=this.app,q=!1;y.KK.XL&&(y.xf.publish("pageTransition"),q=!0);y.stopVideo(q)}; g.K.clearVideo=function(){}; g.K.getAvailablePlaybackRates=function(){var y=this.app.T();if(y.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(y.Y?y.ancestorOrigins[0]:window.location.origin)||y.Nq)return Udn;var q=this.app.getVideoData();if(J3H(q)){var Q=q.Po,p=q.OE;return AYG.filter(function(v){return v>=Q&&v<=p})}return y.supportsVarispeedExtendedFeatures?rYk:y.L("web_remix_allow_up_to_3x_playback_rate")&&g.Us(y)?onk:Hd}return[1]}; g.K.getPlaybackQuality=function(y){return(y=this.app.p6(y))?y.getPlaybackQuality():"unknown"}; g.K.xmf=function(){}; g.K.getAvailableQualityLevels=function(y){return(y=this.app.p6(y))?(y=g.W5(y.w6(),function(q){return q.quality}),y.length&&(y[0]==="auto"&&y.shift(),y=y.concat(["auto"])),y):[]}; g.K.E1=function(){return this.getAvailableQualityLevels(1)}; g.K.O1=function(){return this.Zy()}; g.K.Py=function(){return 1}; g.K.getVideoLoadedFraction=function(y){return this.app.getVideoLoadedFraction(y)}; g.K.Zy=function(){return this.getVideoLoadedFraction()}; g.K.fh=function(){return 0}; g.K.getSize=function(){var y=this.app.lB().getPlayerSize();return{width:y.width,height:y.height}}; g.K.setSize=function(){this.app.lB().resize()}; g.K.loadVideoById=function(y,q,Q,p){if(!y)return!1;y=n$(y,q,Q);return this.app.loadVideoByPlayerVars(y,p)}; g.K.L3B=function(y,q,Q){y=this.loadVideoById(y,q,Q,1);Ix(this.app,y,1)}; g.K.cueVideoById=function(y,q,Q,p){y=n$(y,q,Q);this.app.cueVideoByPlayerVars(y,p)}; g.K.QJ=function(y,q,Q){this.cueVideoById(y,q,Q,1)}; g.K.loadVideoByUrl=function(y,q,Q,p){y=LhS(y,q,Q);return this.app.loadVideoByPlayerVars(y,p)}; g.K.VjK=function(y,q,Q){y=this.loadVideoByUrl(y,q,Q,1);Ix(this.app,y,1)}; g.K.cueVideoByUrl=function(y,q,Q,p){y=LhS(y,q,Q);this.app.cueVideoByPlayerVars(y,p)}; g.K.iZ=function(y,q,Q){this.cueVideoByUrl(y,q,Q,1)}; g.K.WR=function(){var y=this.app.T();if(y.N$)return"";var q=this.app.Ff(),Q=void 0;q.isLivePlayback||(Q=Math.floor(this.app.getCurrentTime(1)));return y.getVideoUrl(q.videoId,this.getPlaylistId()||void 0,Q)}; g.K.Xi=function(){return this.app.getDebugText()}; g.K.getVideoEmbedCode=function(){var y=this.app.T();if(y.N$)return"";var q=this.app.Ff();return y.getVideoEmbedCode(q.isPrivate?"":q.title,this.app.Ff().videoId,this.app.lB().getPlayerSize(),this.getPlaylistId()||void 0)}; g.K.hp=function(y,q,Q){return Zwf(this.app,y,q,Q)}; g.K.removeCueRange=function(y){return this.app.Eh(y)}; g.K.loadPlaylist=function(y,q,Q,p){this.app.loadPlaylist(y,q,Q,p)}; g.K.Efs=function(y,q,Q,p){this.loadPlaylist(y,q,Q,p);Ix(this.app,!0,1)}; g.K.cuePlaylist=function(y,q,Q,p){this.app.cuePlaylist(y,q,Q,p)}; g.K.nextVideo=function(y,q){this.app.nextVideo(y,q)}; g.K.fwm=function(){this.nextVideo();Ix(this.app,!0,1)}; g.K.previousVideo=function(y){this.app.previousVideo(y)}; g.K.b6I=function(){this.previousVideo();Ix(this.app,!0,1)}; g.K.playVideoAt=function(y){this.app.playVideoAt(y)}; g.K.vks=function(y){this.playVideoAt(y);Ix(this.app,!0,1)}; g.K.setShuffle=function(y){var q=this.app.getPlaylist();q&&q.setShuffle(y)}; g.K.setLoop=function(y){var q=this.app.getPlaylist();q&&(q.loop=y)}; g.K.nh=function(){var y=this.app.getPlaylist();if(!y)return null;for(var q=[],Q=0;Q=400)if(y=this.Ff(),this.U.T().L("client_respect_autoplay_switch_button_renderer"))y=!!y.autoplaySwitchButtonRenderer;else{var q,Q,p,v;y=!!((q=y.getWatchNextResponse())==null?0:(Q=q.contents)==null?0:(p=Q.twoColumnWatchNextResults)==null?0:(v=p.autoplay)==null?0:v.autoplay)!==!1}if(y)this.K||(this.K=!0,this.BB(this.K),this.U.T().L("web_player_autonav_toggle_always_listen")||jt9(this), q=this.Ff(),this.i_(q.autonavState),this.U.logVisibility(this.element,this.K));else if(this.K=!1,this.BB(this.K),!this.U.T().L("web_player_autonav_toggle_always_listen"))for(this.U.T().L("web_player_autonav_toggle_always_listen"),q=g.t(this.W),Q=q.next();!Q.done;Q=q.next())this.UW(Q.value)}; g.K.i_=function(y){p_g(this)?this.isChecked=y!==1:((y=y!==1)||(y=g.rf(),y=g.kQ("web_autonav_allow_off_by_default")&&!y.Zm(141)&&g.XY("AUTONAV_OFF_BY_DEFAULT")?!1:!y.Zm(140)),this.isChecked=y);Qtf(this)}; g.K.onClick=function(){this.isChecked=!this.isChecked;this.U.GZ(this.isChecked?2:1);Qtf(this);if(p_g(this)){var y=this.Ff().autoplaySwitchButtonRenderer;this.isChecked&&(y==null?0:y.onEnabledCommand)?this.U.AK("innertubeCommand",y.onEnabledCommand):!this.isChecked&&(y==null?0:y.onDisabledCommand)&&this.U.AK("innertubeCommand",y.onDisabledCommand)}this.U.logClick(this.element)}; g.K.getValue=function(){return this.isChecked}; g.K.Ff=function(){return this.U.getVideoData(1)};g.x(vF2,Wy);g.x(gp,NZ);gp.prototype.XV=function(y){y?this.K||(this.fK.qU(this),this.K=!0):this.K&&(this.fK.Ep(this),this.K=!1);this.K&&Si(this,PF9())}; gp.prototype.Y=function(){g.Fn(this.element,"ytp-menuitem-highlight-transition-enabled")}; gp.prototype.N=function(y){var q=PF9();y!==q&&(q=g.rf(),Ap(190,y),Ap(192,!0),q.save(),this.U.AK("cinematicSettingsToggleChange",y))}; gp.prototype.FV=function(){this.K&&this.fK.Ep(this);NZ.prototype.FV.call(this)};g.x(cy,Wy);cy.prototype.updateCinematicSettings=function(y){this.K=y;var q;(q=this.menuItem)==null||q.XV(y);this.api.publish("onCinematicSettingsVisibilityChange",y)};g.x(Tzg,Wy);g.x(UY,Wy);UY.prototype.setCreatorEndscreenVisibility=function(y){var q;(q=nC(this.api.yN()))==null||q.BB(y)}; UY.prototype.K=function(y){function q(p){p==="creatorendscreen"&&(p=nC(Q.api.yN()))&&p.ptf(Q.hideButton)} var Q=this;this.hideButton=y;this.events.Z(this.api,"modulecreated",q);q("creatorendscreen")};g.x(Vl3,Wy);g.x(rp,NZ);rp.prototype.Y=function(y){this.N(y?1:0)}; rp.prototype.Il=function(){if(this.enableNewAudioSettingsMenu){var y=this.U.getPresentingPlayerType();y===2||y===3?(this.K=!1,this.fK.Ep(this)):(y=this.getDrcState(),y!==1?(y===0?(Si(this,this.W()===1),this.setEnabled(!0)):(Si(this,!1),this.setEnabled(!1)),this.K||(this.fK.qU(this),this.K=!0)):this.K&&(this.fK.Ep(this),this.K=!1))}else{y=this.hasDrcAudioTrack();var q=this.W()===1&&y;Si(this,q);this.setEnabled(y)}}; rp.prototype.FV=function(){this.fK.Ep(this);NZ.prototype.FV.call(this)}; rp.prototype.J=function(){this.U.logClick(this.element)};g.x(oV,Wy);g.K=oV.prototype;g.K.getDrcUserPreference=function(){return this.K}; g.K.setDrcUserPreference=function(y){this.api.L("html5_log_drc_pref")&&this.api.Rb("drc_set",{pref:y});g.DW("yt-player-drc-pref",y,31536E3);y!==this.K&&(this.K=y,this.updateEnvironmentData(),this.yP()&&this.api.LP(),this.api.L("html5_enable_audio_feature_manager")&&this.api.Qe())}; g.K.updateEnvironmentData=function(){this.api.T().t1=this.K===1}; g.K.yP=function(){var y,q,Q=(y=this.api.getVideoData())==null?void 0:(q=y.N)==null?void 0:q.K;if(!Q)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.L("mta_drc_mutual_exclusion_removal")){var p,v,d=(p=this.api.Vd())==null?void 0:(v=p.ZG)==null?void 0:v.id;return XH(Q,function(T){var O;return T.audio.K&&((O=T.ZG)==null?void 0:O.id)===d})}return XH(Q,function(T){var O; return((O=T.audio)==null?void 0:O.K)===!0})}; g.K.getDrcState=function(){return this.api.uw(3)};g.x(AW,Wy);AW.prototype.onVideoDataChange=function(){var y=this,q=this.api.getVideoData();this.api.BO("embargo",1);var Q=q==null?void 0:q.eL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(Q==null?0:Q.length)?Jos(this,Q.filter(function(p){return w_2(y,p)})):(q==null?0:q.cueRanges)&&Jos(this,q.cueRanges.filter(function(p){return w_2(y,p)}))}; AW.prototype.W=function(y){return y.embargo!==void 0}; AW.prototype.FV=function(){Wy.prototype.FV.call(this);this.K={}};g.x(ei,Wy); ei.prototype.addEmbedsConversionTrackingParams=function(y){var q=this.api.T(),Q=q.widgetReferrer,p=q.b9,v=this.K,d="",T=q.getWebPlayerContextConfig();T&&(d=T.embedsIframeOriginParam||"");Q.length>0&&(y.embeds_widget_referrer=Q);p.length>0&&(y.embeds_referring_euri=p);q.Y&&d.length>0&&(y.embeds_referring_origin=d);T&&T.embedsFeature&&(y.feature=T.embedsFeature);v.length>0&&(q.L("embeds_web_enable_lite_experiment_control_arm_logging")?v.unshift(28572):g.f_(g.h6(q))&&v.unshift(159628),q=v.join(","),q= g.PF()?q:g.s2(q,4),y.source_ve_path=q);this.K.length=0};g.x(F2p,Wy);g.x(Y13,Wy);g.x(By,g.I);By.prototype.FV=function(){g.I.prototype.FV.call(this);this.K=null;this.W&&this.W.disconnect()};g.x(h5i,Wy);g.x(Gj,g.r);Gj.prototype.show=function(){g.r.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Gj.prototype.stopTimer=function(){this.K&&(this.K.dispose(),this.K=null)}; Gj.prototype.onVideoDataChange=function(y){var q,Q,p=(q=this.api.getVideoData())==null?void 0:(Q=q.getPlayerResponse())==null?void 0:Q.playabilityStatus;p&&(q=b32(p),g.G(this.api.getPlayerStateObject(),128)||y==="dataloaderror"||!q?(this.W=0,this.stopTimer(),this.hide()):(y=(q.remainingTimeSecs||0)*1E3,y>0&&(this.show(),this.updateValue("label",p3(q.label)),K23(this,y))))}; Gj.prototype.FV=function(){this.stopTimer();g.r.prototype.FV.call(this)};g.x(xmD,Wy);g.x(Py,g.r);Py.prototype.onClick=function(){this.xf.logClick(this.element);this.xf.AK("onFullerscreenEduClicked")}; Py.prototype.XV=function(){this.xf.isFullscreen()?this.K?this.fade.hide():this.fade.show():this.hide();this.xf.logVisibility(this.element,this.xf.isFullscreen()&&!this.K)};g.x(iQ,Wy);iQ.prototype.updateFullerscreenEduButtonSubtleModeState=function(y){var q;(q=this.K)!=null&&(g.fU(q.element,"ytp-fullerscreen-edu-button-subtle",y),y&&!q.W&&(q.xf.L("player_tooltip_data_title_killswitch")?q.element.setAttribute("title","Role para ver detalhes"):q.element.setAttribute("data-tooltip-title","Role para ver detalhes"),Gl(q.xf,q.element,q),q.W=!0))}; iQ.prototype.updateFullerscreenEduButtonVisibility=function(y){var q;(q=this.K)!=null&&(q.K=y,q.XV())};g.x(W2C,g.r);g.x(EFf,Wy);g.x(Xa,Wy);Xa.prototype.getSphericalProperties=function(){var y=g.ji(this.api.yN());return y?y.getSphericalProperties():{}}; Xa.prototype.setSphericalProperties=function(y){if(y){var q=g.ji(this.api.yN());q&&q.setSphericalProperties(y,!0)}};g.x(my,Wy);g.K=my.prototype;g.K.createClientVe=function(y,q,Q,p){this.api.createClientVe(y,q,Q,p===void 0?!1:p)}; g.K.createServerVe=function(y,q,Q){this.api.createServerVe(y,q,Q===void 0?!1:Q)}; g.K.setTrackingParams=function(y,q){this.api.setTrackingParams(y,q)}; g.K.logClick=function(y,q){this.api.logClick(y,q)}; g.K.logVisibility=function(y,q,Q){this.api.logVisibility(y,q,Q)}; g.K.hasVe=function(y){return this.api.hasVe(y)}; g.K.destroyVe=function(y){this.api.destroyVe(y)};qu.prototype.uw=function(y){return this.K[y]}; qu.prototype.Qe=function(){for(var y=this.N,q={},Q=g.t(Cq),p=Q.next();!p.done;p=Q.next())if(p=p.value,this.W[p]){y=yj[p].u1(y,this.videoData);for(var v=g.t(Cq),d=v.next();!d.done;d=v.next())d=d.value,q[d]!==void 0||XH(y,yj[d].qb)||(q[d]=yj[p].YZ);q[p]===void 0&&(q[p]=0)}else q[p]=1;this.K=q}; var Cq=[0,1,2,3,4],FA={},yj=(FA[0]={YZ:2,qb:lkD,u1:kWs},FA[2]={YZ:4,qb:L22,u1:akg},FA[3]={YZ:5,qb:Nzg,u1:S12},FA[1]={YZ:3,qb:H3j,u1:R5i},FA[4]={YZ:6,qb:st8,u1:Ml9},FA);var Dmj=!1;Qj.prototype.setPlaybackRate=function(y){this.playbackRate=Math.max(1,y)}; Qj.prototype.getPlaybackRate=function(){return this.playbackRate};Vj.prototype.hO=function(y){var q=g.vb(y.info.K.info,this.pK.E9),Q=y.info.Qm+this.Y,p=y.info.startTime*1E3;if(this.policy.BI)try{p=this.policy.BI?g.R8(y)*1E3:y.info.startTime*1E3}catch(T){Math.random()>.99&&this.logger&&(p=Kr(y.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:y.info.r0(),encodedDataView:g.Rq(p,4)})),p=y.info.startTime*1E3}var v=y.info.clipId,d=this.policy.BI?g.V28(y)*1E3:y.info.duration*1E3;this.policy.BI&&(p<0||d<0)&&(this.logger&&(this.logger({missingSegInfo:y.info.r0(), startTimeMs:p,durationMs:d}),this.policy.D4||(p<0&&(p=y.info.startTime*1E3),d<0&&(d=y.info.duration*1E3))),this.policy.D4&&(p<0&&(p=y.info.startTime*1E3),d<0&&(d=y.info.duration*1E3)));return{formatId:q,Qm:Q,startTimeMs:p,clipId:v,Bc:d}}; Vj.prototype.Ds=function(y){this.timestampOffset=y};Oi.prototype.seek=function(y,q){y!==this.targetTime&&(this.seekCount=0);this.targetTime=y;var Q=this.videoTrack.W,p=this.audioTrack.W,v=this.audioTrack.xs,d=CH9(this,this.videoTrack,y,this.videoTrack.xs,q);q=CH9(this,this.audioTrack,this.policy.Se?y:d,v,q);y=Math.max(y,d,q);this.Y=!0;this.pK.isManifestless&&(GWf(this,this.videoTrack,Q),GWf(this,this.audioTrack,p));return y}; Oi.prototype.isSeeking=function(){return this.Y}; Oi.prototype.t3=function(y){this.W=y}; var mm3=2/24;var jWb=0;g.K=WU.prototype;g.K.sL=function(){this.j=this.now();nI3(this.g0,this.j);this.Ys.sL()}; g.K.o1=function(y,q){var Q=this.policy.W?(0,g.SK)():0;ZR(this,y,q);y-this.G<10&&this.W>0||this.J9(y,q);this.Ys.o1(y,q);this.policy.W&&(y=(0,g.SK)()-Q,this.RH+=y,this.Os=Math.max(y,this.Os))}; g.K.J9=function(y,q){var Q=(y-this.G)/1E3,p=q-this.N;this.rD||(ml(this.g0,Q,p),this.xU(Q,p));this.G=y;this.N=q}; g.K.t7=function(){this.Sj&&QW2(this);this.Ys.t7()}; g.K.AG=function(y){this.Sj||(this.Sj=this.J-this.XL+y,this.Aw=this.J,this.Mz=this.X)}; g.K.LW=function(y,q){y=y===void 0?this.X:y;q=q===void 0?this.J:q;this.W>0||(this.C=y,this.W=q,this.cI=this.isActive=!0)}; g.K.tF=function(){return this.pn||2}; g.K.Aq=function(){}; g.K.d8=function(){var y,q={rn:this.requestNumber,rt:(this.X-this.K).toFixed(),lb:this.J,stall:(1E3*this.Y).toFixed(),ht:(this.j-this.K).toFixed(),elt:(this.C-this.K).toFixed(),elb:this.W,d:(y=this.gp)==null?void 0:y.W3()};this.url&&z5D(q,this.url);this.policy.W&&(q.mph=this.Os.toFixed(),q.tph=this.RH.toFixed());q.ulb=this.Es;q.ult=this.N$;return q}; g.K.now=function(){return(0,g.SK)()}; g.K.deactivate=function(){this.isActive&&(this.isActive=!1)};g.x(Ei,WU);g.K=Ei.prototype;g.K.d8=function(){var y=WU.prototype.d8.call(this);y.pb=this.Eo;y.pt=(1E3*this.hw).toFixed();y.se=this.T8;return y}; g.K.QA=function(){var y=this.Ys;this.Ty||(this.Ty=y.QA?y.QA():1);return this.Ty}; g.K.A8=function(){return this.Ev?this.QA()!==1:!1}; g.K.Gj=function(y,q,Q){if(!this.Se){this.Se=!0;if(!this.rD){ZR(this,y,q);this.J9(y,q);var p=this.QA();this.T8=Q;if(!this.rD)if(p===2){p=y-this.C0)||kd(this,p,q),this.W>0&&iU(this.g0,q,this.Y));y=(y-this.K)/ 1E3||.01;this.policy.C&&!(this.W>0)||Pg(this.g0,y,this.N,vw2(this),this.Rt)}this.deactivate()}}; g.K.yk=function(y,q,Q){Q&&(this.Ty=2);y<0&&this.pn&&(y=this.pn);q?this.HI+=y:this.Vm+=y}; g.K.tF=function(){return this.Vm||this.HI||WU.prototype.tF.call(this)}; g.K.J9=function(y,q){var Q=(y-this.G)/1E3,p=q-this.N,v=this.QA();this.isActive?v===1&&((p>0||this.policy.J)&&(Q>.2||p<1024)?(this.Y+=Q,p>0&&Q>.2&&kd(this,this.LX?Q:.05,p),this.q$=!0):p>0&&(kd(this,Q,p),this.q$=!0)):q&&q>=this.policy.K&&this.LW(y,q);WU.prototype.J9.call(this,y,q)}; g.K.g2=function(y){if(!this.rD){ZR(this,y,this.J);var q=(y-this.K)/1E3;this.QA()!==2&&this.W>0&&(this.Y+=(y-this.G)/1E3,iU(this.g0,this.N,this.Y));Pg(this.g0,q,this.N,vw2(this),this.Rt,!0);y=(y-this.G)/1E3;ml(this.g0,y,0);this.xU(y,0)}}; g.K.LW=function(y,q){y=y===void 0?this.X:y;q=q===void 0?this.J:q;if(!(this.W>0)&&(WU.prototype.LW.call(this,y,q),this.QA()===1)){q=(this.j-this.K)/1E3;var Q=(y-this.j)/1E3;this.Ev&&LP(this,this.now());this.cB||this.rD||(this.pn&&(Q=Math.max(0,Q-this.pn)),y=this.g0,y.C.oW(1,q),y.gp.oW(1,Q))}}; g.K.iI=function(){this.Ev&&LP(this,this.now());return this.LK}; g.K.oG=function(){var y;if(y=this.N>this.iT)y=(y=this.N)?y>=this.policy.K:!1;return y}; g.K.Ab=function(){return this.BI}; g.K.KZ=function(y){y=y===void 0?this.now():y;if(this.Ev){LP(this,y);if(this.Ty?this.A8():this.m3!==this.vI){var q=this.vI;if(y0?Q+y:Q+Math.max(y,q)}; g.K.xA=function(){return this.now()-this.C}; g.K.Dv=function(){return(this.N-this.W)*1E3/this.xA()||0}; g.K.Gb=function(){return this.C};a9.prototype.feed=function(y){YS(this.K,y);this.Jj()}; a9.prototype.Jj=function(){if(this.Y){if(!this.K.totalLength)return;var y=this.K.split(this.N-this.W),q=y.uq;y=y.tM;if(!this.Ys.AG(this.Y,q,this.W,this.N))return;this.W+=q.totalLength;this.K=y;this.W===this.N&&(this.Y=this.N=this.W=void 0)}for(;;){var Q=0;y=g.t(OmD(this.K,Q));q=y.next().value;Q=y.next().value;Q=g.t(OmD(this.K,Q));y=Q.next().value;Q=Q.next().value;if(q<0||y<0)break;if(!(Q+y<=this.K.totalLength)){if(!(this.Ys.AG&&Q+1<=this.K.totalLength))break;Q=this.K.split(Q).tM;this.Ys.AG(q,Q,0, y)&&(this.Y=q,this.W=Q.totalLength,this.N=y,this.K=new Fx([]));break}y=this.K.split(Q).tM.split(y);Q=y.tM;this.Ys.OV(q,y.uq);this.K=Q}}; a9.prototype.dispose=function(){this.K=new Fx};g.K=Nu.prototype;g.K.EX=function(){return 0}; g.K.La=function(){return null}; g.K.wC=function(){return null}; g.K.Ag=function(){return this.state>=1}; g.K.isComplete=function(){return this.state>=3}; g.K.rR=function(){return this.state===5}; g.K.onStateChange=function(){}; g.K.hU=function(y){var q=this.state;this.state=y;this.onStateChange(q);this.callback&&this.callback(this,q)}; g.K.Aa=function(y){y&&this.state=this.xhr.HEADERS_RECEIVED}; g.K.getResponseHeader=function(y){try{return this.xhr.getResponseHeader(y)}catch(q){return""}}; g.K.sj=function(){return+this.getResponseHeader("content-length")}; g.K.Fc=function(){return this.W}; g.K.CT=function(){return this.status>=200&&this.status<300&&!!this.W}; g.K.JG=function(){return this.K.totalLength>0}; g.K.MI=function(){var y=this.K;this.K=new Fx;return y}; g.K.O2=function(){return this.K}; g.K.abort=function(){this.iB=!0;this.xhr.abort()}; g.K.oU=function(){return!0}; g.K.eH=function(){return this.N}; g.K.uF=function(){return""};g.K=Fq2.prototype; g.K.run=function(){var y=this,q,Q,p,v,d,T,O,w,J,F,Y,f,h,b,Z;return g.M(function(k){if(k.K==1){y.status=200;q=y.K.get("docid");Q=sj(y.K.get("fmtid")||"");p=y.K.get("lmt")||"0";v=+(y.K.get("csz")||0);if(!q||!Q||!v)throw Error("Invalid local URL");y.K.get("ck")&&y.K.get("civ")&&(d=new J1p(y.K.get("ck"),y.K.get("civ")));T=y.range;O=Math.floor(T.start/v);w=Math.floor(T.end/v);J=O}if(k.K!=5)return J<=w?g.R(k,pcg(q,Q,p,J,d),5):k.ej(0);F=k.W;if(F===void 0)throw Error("invariant: data is undefined");Y=J*v; f=(J+1)*v;h=Math.max(0,T.start-Y);b=Math.min(T.end+1,f)-(h+Y);Z=new Uint8Array(F.buffer,h,b);y.W.append(Z);y.loaded+=b;y.loaded=200&&this.status<300&&!!this.W}; g.K.JG=function(){return!!this.K.totalLength}; g.K.MI=function(){var y=this.K;this.K=new Fx;return y}; g.K.O2=function(){return this.K}; g.K.iB=function(){return this.J}; g.K.abort=function(){this.N&&this.N.cancel().catch(function(){}); this.Y&&this.Y.abort();this.J=!0}; g.K.oU=function(){return!0}; g.K.eH=function(){return this.G}; g.K.uF=function(){return this.errorMessage};g.K=hVj.prototype;g.K.onDone=function(){if(!this.iB){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(y){}this.K=!0;this.Ys.t7()}}; g.K.nu=function(){this.xhr.readyState===2&&this.Ys.sL()}; g.K.onProgress=function(y){this.iB||(this.status=this.xhr.status,this.K||(this.W=y.loaded),this.Ys.o1((0,g.SK)(),y.loaded))}; g.K.pA=function(){return this.xhr.readyState>=2}; g.K.getResponseHeader=function(y){try{return this.xhr.getResponseHeader(y)}catch(q){return g.zI(Error("Could not read XHR header "+y)),""}}; g.K.sj=function(){return+this.getResponseHeader("content-length")}; g.K.Fc=function(){return this.W}; g.K.CT=function(){return this.status>=200&&this.status<300&&this.K&&!!this.W}; g.K.JG=function(){return this.K&&!!this.response&&!!this.response.byteLength}; g.K.MI=function(){var y=this.response;this.response=void 0;return new Fx([new Uint8Array(y)])}; g.K.O2=function(){return new Fx([new Uint8Array(this.response)])}; g.K.abort=function(){this.iB=!0;this.xhr.abort()}; g.K.oU=function(){return!1}; g.K.eH=function(){return!1}; g.K.uF=function(){return""};g.x(R9,g.I);R9.prototype.Bx=function(){if(!this.n6.length)return[];var y=this.n6;this.n6=[];this.N=g.xq(y).info;return y}; R9.prototype.Em=function(){return this.n6}; R9.prototype.FV=function(){g.I.prototype.FV.call(this);this.K=null;this.n6.length=0;this.CK.length=0;this.N=null};g.x(Mu,g.I);g.K=Mu.prototype; g.K.K0p=function(){if(!this.iB()){var y=(0,g.SK)(),q=!1;if(this.policy.Oa){var Q=this.timing.W>0?this.timing.C:this.timing.K;this.policy.yT&&this.N&&(Q=this.N);y=y-Q-this.timing.tF()*1E3;Q=eM(l9(this),!1);y>=2E3*Q?q=!0:y>=this.policy.hT*Q&&(this.K=this.policy.lV)}else if(this.timing.W>0){if(this.G){this.policy.BT&&(this.K=0);return}y=this.timing.Ab();this.timing.KZ();this.timing.Ab()-y>=this.policy.Hn*.8?(this.K++,q=this.K>=5):this.K=0}else q=y-this.timing.iI(),this.policy.lV&&q>0&&(this.K+=1),y= eM(l9(this),!1)*this.policy.a8,q=q>y*1E3;this.K>0&&this.Ys.aP();q?this.OL():this.W.start()}}; g.K.OL=function(){this.J=!0;this.Ys.OA();this.lastError="net.timeout";DR(this)}; g.K.canRetry=function(y){var q=l9(this);y=y?this.policy.Gq:this.policy.vG;return q.timedOut0&&(q=xS(q.K,0),y.ubyte=q,Q===1&&q===0&&(y.b248180278=!0))}this.Bt&&(y.rc=this.policy.TB?this.Bt:this.Bt.toString());this.policy.ra&&this.MQ&&(y.tr=this.MQ);y.itag=this.info.CK[0].K.info.itag;y.ml=""+ +this.info.CK[0].K.iF();y.sq=""+this.info.CK[0].Qm;this.pg&&(y.ifi=""+ +qf(this.info.uj.W));this.Bt!==410&&this.Bt!==500&&this.Bt!==503||(y.fmt_unav="true");var p;(Q=this.errorMessage||((p=this.xhr)==null?void 0: p.uF()))&&(y.msg=Q);this.tf&&(y.smb="1");this.info.isDecorated()&&(y.sdai="1");return y}; g.K.M6=function(){return dfD(this.timing)}; g.K.uF=function(){return this.xhr.uF()||""}; g.K.oG=function(){return this.isComplete()||this.timing.oG()}; g.K.o1=function(){!this.iB()&&this.xhr&&(this.Bt=this.xhr.status,this.policy.rL&&this.J6&&this.aL(!1),this.Er()?this.Aa(2):!this.jM&&this.oG()&&(this.Aa(),this.jM=!0))}; g.K.sL=function(){if(!this.iB()&&this.xhr){if(!this.aK&&this.xhr.pA()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var y=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.aK=((0,g.SK)()-y)/1E3}this.xhr.pA()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.xw&&!w1b()&&g.DW("yt-player-headers-readable",!0,2592E3);y=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),Q;(Q=this.YU)==null||Q.stop();this.k0=y||this.k0; this.wY=q||this.wY}}; g.K.t7=function(){var y=this.xhr;if(!this.iB()&&y){this.Bt=y.status;y=this.gf(y);if(this.policy.ra){var q;(q=this.YU)==null||q.stop()}y===5?DR(this.vT):this.hU(y);this.vT.W.stop()}}; g.K.gf=function(y){BsS(this);if(u9(this.vT,this.xhr.status,this.cM?this.timing.cI||this.eN:this.xhr.CT(),!1,this.n$))return 5;var q="";I9(this.vT,this.xhr)&&(q=Wq8(this.vT,this.xhr));if(q)return A1(l9(this.vT)),this.info.JP(this.pg,q),3;q=y.Fc();if(this.zC){this.aL(!0);BsS(this);if(u9(this.vT,this.xhr.status,this.timing.cI||this.eN,!1,this.n$))return 5;if(!this.V9){if(this.eN)return A1(l9(this.vT)),3;this.vT.lastError="net.closed";return 5}}else{if(u9(this.vT,this.xhr.status,this.xhr.CT(),!1,this.n$))return 5; var Q=this.info.N;if(Q&&Q!==q||y.eH())return this.vT.lastError="net.closed",5;this.aL(!0)}Q=wYp(this)?y.getResponseHeader("X-Bandwidth-Est"):0;if(y=wYp(this)?y.getResponseHeader("X-Bandwidth-Est3"):0)this.S5=!0,this.policy.lR&&(Q=y);xfb(this.vT,q,Q?Number(Q):0,this.info.CK[0].type===5);return 4}; g.K.canRetry=function(){this.iB();var y=this.info.isDecorated();return this.vT.canRetry(y)}; g.K.onStateChange=function(){this.isComplete()&&(this.policy.iC?this.OA():this.timing.deactivate())}; g.K.OL=function(){this.vT.OL()}; g.K.aP=function(){this.callback&&this.callback(this,this.state)}; g.K.FB=function(){return this.vT.FB()}; g.K.dispose=function(){Nu.prototype.dispose.call(this);this.vT.dispose();var y;(y=this.YU)==null||y.dispose();this.policy.iC||this.OA()}; g.K.OA=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.K.Bx=function(){if(!this.Em().length)return[];this.J8=!0;return this.J6.Bx()}; g.K.Er=function(){if(this.state<1)return!1;if(this.J6&&this.J6.n6.length)return!0;var y;return((y=this.xhr)==null?0:y.JG())?!0:!1}; g.K.Em=function(){this.aL(!1);return this.J6?this.J6.Em():[]}; g.K.aL=function(y){try{if(y||this.xhr.pA()&&this.xhr.JG()&&!I9(this.vT,this.xhr)&&!this.jk)this.J6||(this.J6=new R9(this.policy,this.info.CK)),this.xhr.JG()&&(this.zC?this.zC.feed(this.xhr.MI()):si(this.J6,this.xhr.MI(),y&&!this.xhr.JG()))}catch(q){this.zC?A1s(this,q):g.zI(q)}}; g.K.OV=function(y,q){switch(y){case 21:y=q.split(1).tM;eV3(this,y);break;case 22:this.V9=!0;si(this.J6,new Fx([]),!0);break;case 43:if(y=lj(new Ns(q),1))this.info.JP(this.pg,y),this.eN=!0;break;case 45:q=rZ(new Ns(q));y=q.B$;q=q.vF;y&&q&&(this.VC=y/q);break;case 44:this.r3=zmg(new Ns(q));var Q,p,v;!this.timing.cI&&((Q=this.r3)==null?void 0:Q.action)===4&&((p=this.r3)==null?0:(v=p.NC)==null?0:v.cM)&&(this.cM=this.r3.NC.cM);break;case 53:this.policy.ra&&(y=sm8(new Ns(q)).P9)&&(this.YU||(this.P9=y,this.YU= new g.y0(this.Nd,y,this)),this.YU.start());break;case 60:this.iX=UU(new Ns(q));break;case 58:if(y=Vn9(new Ns(q)))this.JT=y,y.JT===3&&(this.n$=!0)}}; g.K.AG=function(y,q,Q,p){Q||this.timing.AG(p);if(y!==21)return!1;if(y=this.policy.rL)if(y*=this.info.CK[0].K.info.jj,q.totalLength+Q!==p&&q.totalLength0)return!1;if(!this.xhr.pA())return!0;if(this.zC)var y=!this.info.N;else this.xhr.sj()?y=!1:(y=this.xhr.getResponseHeader("content-type"),y=y==="audio/mp4"||y==="video/mp4"||y==="video/webm");if(!y)return!1;if(isNaN(this.info.ea)){y=this.xhr.getResponseHeader("x-head-seqnum");var q=this.timing.policy.X?1:0;if(y&&Number(y)>this.info.CK[0].Qm+q)return!1}return!0}; g.K.If=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.K.La=function(){this.xhr&&(this.k0=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.k0}; g.K.wC=function(){this.xhr&&(this.wY=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.wY}; g.K.H3=function(){return this.vT.H3()}; g.K.Nd=function(){if(!this.iB()&&this.xhr){this.MQ="heartbeat";var y=this.vT;y.K+=2;this.aP()}};g.x(eh,WU);g.K=eh.prototype;g.K.J9=function(y,q){var Q=(y-this.G)/1E3,p=q-this.N;this.W>0?p>0&&(this.m3&&(Q>.2||p<1024?(this.Y+=Q,Q>.2&&Ga3(this,.05,p)):Ga3(this,Q,p)),this.vI&&(this.LK+=p,this.Vm+=Q)):q>this.policy.K&&this.LW(y,q);WU.prototype.J9.call(this,y,q)}; g.K.Gj=function(y,q){ZR(this,y,q);this.J9(y,q);this.m3&&(q=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.W>0&&iU(this.g0,this.LK,this.Y),y=(y-this.K)/1E3||.01,this.policy.C&&!(this.W>0)||Pg(this.g0,y,this.N,q,!1))}; g.K.g2=function(y){ZR(this,y,this.J);var q=(y-this.G)/1E3;ml(this.g0,q,0);this.xU(q,0);!this.m3&&this.W>0||(q=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.W>0&&(this.Y+=(y-this.G)/1E3,iU(this.g0,this.LK,this.Y)),Pg(this.g0,(y-this.K)/1E3||.01,this.N,q,!1,!0))}; g.K.Jk=function(y){y=y.oQ||2147483647;(y&2)!==2&&(this.vI=!1);(y&1)===1&&(this.m3=!0)}; g.K.Fp=function(y){y=y.oQ||2147483647;(y&2)===2&&(this.vI=!1);(y&1)===1&&(this.m3=!1)}; g.K.Gb=function(){return this.C}; g.K.xA=function(){var y=this.vI?this.now()-this.G:0;return Math.max(this.Vm*1E3+y,1)}; g.K.Dv=function(){return this.LK*1E3/this.xA()}; g.K.LW=function(y,q){y=y===void 0?this.X:y;q=q===void 0?this.J:q;this.W>0||(WU.prototype.LW.call(this,y,q),q=this.g0,y=(y-this.j)/1E3,q.C.oW(1,(this.j-this.K)/1E3),q.gp.oW(1,y))}; g.K.Aq=function(y){this.HI=y}; g.K.d8=function(){var y=WU.prototype.d8.call(this);y.rbw=this.Dv();y.rbe=+this.vI;y.gbe=+this.m3;y.ackt=(this.HI-this.K).toFixed();return y}; g.K.KZ=function(){}; g.K.Ab=function(){return NaN}; g.K.iI=function(){return this.K+this.snapshot.delay*1E3};BU.prototype.OV=function(y,q){switch(y){case 20:y=new Ns(q);y={H9:RC(y,1),videoId:lj(y,2),itag:RC(y,3),lmt:RC(y,4),xtags:lj(y,5),s$:RC(y,6),Gn:s6(y,8),di:RC(y,9),K_f:RC(y,10),startMs:RC(y,11),durationMs:RC(y,12),ME:RC(y,14),timeRange:zs(y,15,AJH),lH:RC(y,16),yL:RC(y,17),clipId:lj(y,1E3)};this.cg(y);break;case 21:this.Kw(q,!1);break;case 22:this.KP(q);break;case 31:y=IC(q,EzH);this.SJ(y);break;case 52:y=IC(q,Mn9);this.Cu(y);break;default:this.Tj(y,q)}}; BU.prototype.cg=function(){}; BU.prototype.Tj=function(){};g.x(GG,BU);g.K=GG.prototype; g.K.Tj=function(y,q){switch(y){case 35:this.WG(q);break;case 44:this.wW(q);break;case 43:this.g1(q);break;case 53:this.uT(q);break;case 56:this.aV();break;case 57:this.ZE(q);break;case 42:this.Cp(q);break;case 45:this.Rq(q);break;case 59:this.uo(q);break;case 51:this.gW(q);break;case 49:this.Jk(q);break;case 50:this.Fp(q);break;case 47:this.Sz(q);break;case 58:this.JS(q);break;case 61:this.Ys.RB.Aq((0,g.SK)());break;case 66:this.D5(q);break;case 46:this.Ym(q);break;case 67:this.onSnackbarMessage(q);break; case 69:this.z0(q)}}; g.K.gW=function(y){y=new Ns(y);y={o1m:uj(y,1,IZ),DuV:uj(y,2,IZ)};this.Ys.gW(y)}; g.K.uo=function(y){var q=new Ns(y);y=DF(q,1);var Q=DF(q,2);q=DF(q,3);this.Ys.uo(y,Q,q)}; g.K.Rq=function(y){y=rZ(new Ns(y));this.Ys.Rq(y)}; g.K.Sz=function(y){y=IC(y,aBb);this.Ys.Sz(y)}; g.K.Cp=function(y){y=new Ns(y);y={videoId:lj(y,1),formatId:zs(y,2,IZ),endTimeMs:RC(y,3),gMB:RC(y,4),mimeType:lj(y,5),uc:zs(y,6,$Gs),indexRange:zs(y,7,$Gs),SZ:zs(y,8,KHb)};this.Ys.Cp(y)}; g.K.ZE=function(y){y=new Ns(y);y={type:RC(y,1),scope:RC(y,2),value:Ms(y,3),sendByDefault:s6(y,4),writePolicy:RC(y,5)};this.Ys.ZE(y)}; g.K.aV=function(){this.Ys.aV()}; g.K.WG=function(y){y=k5p(new Ns(y));this.Ys.WG(y)}; g.K.uT=function(y){y=sm8(new Ns(y));this.Ys.uT(y)}; g.K.wW=function(y){y=zmg(new Ns(y));this.Ys.wW(y)}; g.K.g1=function(y){y={redirectUrl:lj(new Ns(y),1)};this.Ys.g1(y)}; g.K.Kw=function(y){var q=xS(y,0);if(y.totalLength!==1){y=y.split(1).tM;var Q=this.W[q]||null;Q&&qk(this.Ys.Ro,q,Q,y)}}; g.K.KP=function(y){y=xS(y,0);var q=this.W[y]||null;q&&this.Ys.KP(y,q)}; g.K.Cu=function(y){this.Ys.Cu(y)}; g.K.cg=function(y){var q=y.H9,Q=y.Gn,p=y.s$,v=y.yL,d=y.lH,T=y.di,O=y.startMs,w=y.durationMs,J=y.timeRange,F=y.ME,Y=y.clipId,f=Cm(y);y=Rlm.has(Ps[""+y.itag]);this.W[q]=f;this.Ys.yk(f,y,{H9:q,Gn:!!Q,s$:p!=null?p:-1,di:T!=null?T:-1,startMs:O!=null?O:-1,durationMs:w!=null?w:-1,ME:F,yL:v,lH:d,clipId:Y,timeRange:J})}; g.K.Jk=function(y){y={oQ:RC(new Ns(y),1)};this.Ys.Jk(y)}; g.K.Fp=function(y){y={oQ:RC(new Ns(y),1)};this.Ys.Fp(y)}; g.K.SJ=function(y){this.Ys.SJ(y)}; g.K.JS=function(y){y=Vn9(new Ns(y));this.Ys.JS(y)}; g.K.D5=function(y){y={Sv:zs(new Ns(y),1,Hs9)};this.Ys.D5(y)}; g.K.onSnackbarMessage=function(y){y=RC(new Ns(y),1);this.Ys.onSnackbarMessage(y)}; g.K.z0=function(y){y={QM:uj(new Ns(y),1,bsS)};this.Ys.z0(y)}; g.K.Ym=function(y){y=new Ns(y);y={reloadPlaybackParams:zs(y,1,TSC),n9:s6(y,2)};this.Ys.Ym(y)};g.x(PU,g.I);g.K=PU.prototype;g.K.wP=function(){return Array.from(this.HT.keys())}; g.K.Sg=function(y){y=this.HT.get(y);var q=y.n6;y.NO+=q.totalLength;y.n6=new Fx;return q}; g.K.Pt=function(y){return this.HT.get(y).Pt}; g.K.tJ=function(y){return this.HT.get(y).tJ}; g.K.yk=function(y,q,Q){this.HT.get(y)||this.HT.set(y,{n6:new Fx,NO:0,bytesReceived:0,aR:0,oa:!1,Pt:!1,tJ:!1,Eu:q,UR:[],CK:[],D8:[],vS:!1,xx:new Map,ZL:new Map,S3:[]});q=this.HT.get(y);this.pK?(y=yy8(this,y,Q),C08(this,Q.H9,q,y)):(Q.Gn?q.aR=Q.ME:q.D8.push(Q),q.UR.push(Q))}; g.K.pH=function(y){var q;return((q=this.HT.get(y))==null?void 0:q.CK)||[]}; g.K.Aa=function(){for(var y=g.t(this.HT.values()),q=y.next();!q.done;q=y.next())if(q=q.value,q.oa){if(q.onProgress)q.onProgress();q.oa=!1}}; g.K.KP=function(y,q){q=this.HT.get(q);i9?q&&!q.Pt&&(q.xx.get(y)?q.xx.get(y).AJ=!0:q.xx.set(y,{data:new Fx,Ge:0,AJ:!0}),q.tJ=!0):q&&!q.tJ&&(q.tJ=!0)}; g.K.Bx=function(y){if(i9){var q=this.HT.get(y);if(q)for(var Q=g.t(q.xx),p=Q.next();!p.done;p=Q.next()){var v=g.t(p.value);p=v.next().value;v=v.next().value;var d=q.ZL.get(p);if(dB(d[0])){if(!v.AJ)continue;var T=v.data,O=0,w=[];d=g.t(d);for(var J=d.next();!J.done;J=d.next()){J=J.value;var F=J.N,Y=fr(T,O,F);O+=F;w.push(new NX(J,Y))}q.S3.push.apply(q.S3,g.hH(w))}else if(v.data.totalLength>0||!d[0].range&&v.AJ)T=void 0,O=d[0],w=v.Ge,d=v.data,O.range||(T=v.AJ),T=new NX(DLf(O,O.W+w,d.totalLength,T),d), v.Ge+=T.info.N,q.S3.push(T);q.xx.get(p).data=new Fx;v.AJ&&q.xx.delete(p)}y=this.HT.get(y);if(!y)return[];q=y.S3;y.S3=[];Q=g.t(q);for(p=Q.next();!p.done;p=Q.next())y.NO+=p.value.info.N;return q||[]}Q=(q=this.HT.get(y))==null?void 0:q.J6;if(!Q)return[];this.aL(y,Q);return Q.Bx()}; g.K.Er=function(y){if(i9)return yJ(this,y);var q,Q,p;return!!((Q=(q=this.HT.get(y))==null?void 0:q.J6)==null?0:(p=Q.Em())==null?0:p.length)||yJ(this,y)}; g.K.aL=function(y,q){for(;yJ(this,y);){var Q=this.Sg(y);var p=y;p=this.HT.get(p).Pt&&!CP(this,p);si(q,Q,p&&mfb(this,y))}}; g.K.FV=function(){g.I.prototype.FV.call(this);for(var y=g.t(this.HT.keys()),q=y.next();!q.done;q=y.next())XZ(this,q.value);var Q;if((Q=this.IB)==null?0:Q.CF)for(y=g.t(this.HT.values()),q=y.next();!q.done;q=y.next())q=q.value,q.xx.clear(),q.ZL.clear(),q.S3.length=0,q.CK.length=0,q.UR.length=0,q.D8.length=0;this.HT.clear()}; var i9=!1;g.x(jy,g.I);g.K=jy.prototype;g.K.o1=function(){!this.iB()&&this.xhr&&(this.aL(!1),is(this.Ys,this))}; g.K.sL=function(){}; g.K.t7=function(){if(!this.iB()&&this.xhr){var y=this.gf();y===5?DR(this.vT):this.hU(y);this.vT.W.stop();var q;(q=this.Ry)==null||q.stop()}}; g.K.gf=function(){var y="";I9(this.vT,this.xhr)&&(y=Wq8(this.vT,this.xhr));if(y)return this.info.uj.JP(this.pg,y),3;this.aL(!0);if(u9(this.vT,this.xhr.status,this.xhr.CT(),this.info.Uc(),this.n$))return 5;if(this.MC)return 3;xfb(this.vT,this.xhr.Fc(),0,this.Uc());this.policy.I7&&RWg(this.Ys);return 4}; g.K.aL=function(y){var q=this.xhr;!y&&I9(this.vT,this.xhr)||!q.JG()||(y=q.MI(),this.zC.feed(y))}; g.K.OV=function(y,q){this.xhr.oU()&&y===21&&pjp(this);this.FI.OV(y,q)}; g.K.AG=function(y,q,Q,p){Q||(this.RB.AG(p),this.policy.P1&&y===21&&pjp(this));if(y!==21)return!1;this.RB.cI=!0;y=q.totalLength;Q||(this.Tt=xS(q,0),q=q.split(1).tM);var v=this.policy.yx,d=this.FI.W[this.Tt],T=this.pK.N.get(d);if(v&&T&&(v*=T.info.jj,y+Q!==p&&y0){this.policy.Oa&&this.vT.W.stop();y=this.RB.xA();q=this.RB.Dv();var Q=vaD(this,y);if(!(q>Q.RF||Q.vK>0&&this.info.Vh()>Q.vK)){this.cF=(0,g.SK)();var p;(p=this.Ry)==null||p.stop();this.policy.I7&&(p=this.Ys,y={dL:Math.round(q*y/1E3),SV:y},p.policy.I7&&(p.Es=y,p.uS++));this.OL()}}}}; g.K.OL=function(){this.vT.OL()}; g.K.wW=function(y){this.Ys.wW(y,this.yU())}; g.K.g1=function(y){this.MC=!0;this.info.uj.JP(this.pg,y.redirectUrl)}; g.K.Jk=function(y){this.RB instanceof eh&&this.RB.Jk(y)}; g.K.Fp=function(y){this.RB instanceof eh&&this.RB.Fp(y)}; g.K.Cp=function(y){var q=y.formatId,Q=Cm({itag:q.itag,lmt:q.lmt,xtags:q.xtags}),p,v,d=new qX(((p=y.uc)==null?void 0:p.first)||0,((v=y.uc)==null?void 0:v.Gr)||0),T,O;p=new qX(((T=y.indexRange)==null?void 0:T.first)||0,((O=y.indexRange)==null?void 0:O.Gr)||0);this.pK.N.get(Q)||(Q=y.SZ||{},Q.mimeType=y.mimeType,Q.itag=q.itag,Q.lastModified=""+(q.lmt||0),Q.xtags=q.xtags,y=this.pK,q=GJ(""),Q=eE(Q,null),gB(y,new uq(q,Q,d,p)))}; g.K.Rq=function(y){this.Ys.Rq(y,this.yU())}; g.K.onSnackbarMessage=function(y){if(this.policy.gj)this.Ys.onSnackbarMessage(y)}; g.K.z0=function(y){this.policy.G&&this.Ys.z0(y,this.yU())}; g.K.SJ=function(y){this.bx=y;this.vT.N=(0,g.SK)();this.Ys.SJ(y)}; g.K.uo=function(y,q,Q){this.Ys.uo(y,q,Q)}; g.K.ZE=function(y){y.scope===2&&(this.sR=y);this.Ys.ZE(y)}; g.K.aV=function(){this.G4=!0;this.Ys.aV()}; g.K.gW=function(y){this.policy.Yn&&this.Ys.gW(y)}; g.K.Sz=function(y){this.Ys.Sz(y,this.yU())}; g.K.JS=function(y){y.JT===3&&(this.n$=!0);this.Ys.JS(y)}; g.K.D5=function(y){this.Ys.D5(y)}; g.K.Ym=function(y){this.Ys.Ym(y)}; g.K.canRetry=function(){this.iB();return this.vT.canRetry(!1)}; g.K.dispose=function(){if(!this.iB()){g.I.prototype.dispose.call(this);this.vT.dispose();var y;(y=this.Ry)==null||y.dispose();this.hU(-1);this.OA()}}; g.K.hU=function(y){this.state=y;is(this.Ys,this)}; g.K.Uc=function(){return this.info.Uc()}; g.K.PY=function(){return this.G4}; g.K.n_=function(){return this.sR}; g.K.yk=function(y,q,Q){Q.clipId&&(this.clipId=Q.clipId);this.policy.W&&!q&&(this.Zx=Q.di);if(this.info.isDecorated()){var p=this.info,v,d;var T=((v=p.data)==null?0:(d=v.HC)==null?0:d.H8)?p.data.HC.H8:-1;T>=0&&T>Q.di&&this.Ys.loader.Rb("sdai",{skpsqmismatch:"1",stsq:T,rcvsq:Q.di,a:q})}this.Ro.yk(y,q,Q);this.policy.ID&&this.bx&&this.RB instanceof Ei&&(T=this.bx.Rs,this.RB.yk(Q.durationMs/1E3,q,T>0&&Q.di+1>=T));this.Ro.HT.get(y).vS=!0}; g.K.KP=function(y,q){this.Ro.KP(y,q)}; g.K.Cu=function(y){this.requestIdentifier=y}; g.K.Bx=function(y){return this.Ro.Bx(y)}; g.K.pH=function(y){return this.Ro.pH(y)}; g.K.Er=function(y){return this.Ro.Er(y)}; g.K.wP=function(){return this.Ro.wP()}; g.K.QA=function(){return 1}; g.K.yU=function(){return this.RB.requestNumber}; g.K.l3=function(){return this.requestIdentifier}; g.K.i6=function(){return this.pg.i6()}; g.K.iG=function(){this.OA()}; g.K.OA=function(){this.RB.deactivate();var y;(y=this.xhr)==null||y.abort()}; g.K.isComplete=function(){return this.state>=3}; g.K.UJ=function(){return this.state===3}; g.K.rR=function(){return this.state===5}; g.K.L4=function(){return this.state===4}; g.K.fN=function(){return this.isComplete()}; g.K.Ag=function(){return this.state>=1}; g.K.FB=function(){return this.policy.BT?this.vT.FB():0}; g.K.aP=function(){this.policy.BT&&is(this.Ys,this)}; g.K.pN=function(){return WdH(this.info)}; g.K.H3=function(){return this.vT.H3()}; g.K.iE=function(){var y=Zm9(this.vT);Object.assign(y,tj3(this.info));y.req="sabr";y.rn=this.yU();var q;if((q=this.xhr)==null?0:q.status)y.rc=this.policy.TB?this.xhr.status:this.xhr.status.toString();var Q;(q=(Q=this.xhr)==null?void 0:Q.uF())&&(y.msg=q);this.cF&&(Q=vaD(this,this.cF-this.RB.Gb()),y.letm=Q.eKK,y.mrbps=Q.RF,y.mram=Q.vK);return y};dX2.prototype.tick=function(y,q){this.ticks[y]=q?window.performance.timing.navigationStart+q:(0,g.SK)()};g.x(pu,g.V6);g.K=pu.prototype; g.K.x_=function(y,q,Q,p){if(this.policy.dD&&this.policy.W){var v=y.u6||null;v?(f3C(this,y.Qm,OW(this,y.startTime,y.Qm),{u6:v,Qm:y.Qm,Vc:!!q,V5:Q},this.N),p&&this.N&&this.N.Ii(y.Qm,y.startTime,this.W,(q==null?void 0:q.K)||[],(q==null?void 0:q.W)||[],(q==null?void 0:q.Y)||[],Q,(q==null?void 0:q.PL)||0,(q==null?void 0:q.N)||void 0)):this.W===1&&dG(this,5,"noad")}else{var d=!1;this.policy.W&&(d=Q?this.Sj===y.Qm:this.m3===y.Qm);if(this.N&&p&&!d){p=[];d=[];var T=[],O=void 0,w=0;q&&(p=q.K,d=q.W,T=q.Y,O= q.N,w=q.PL,this.Rb("sdai",{sq:y.Qm,ssvicpns:p.join("."),ssvid:d.join(".")}));this.policy.W&&(Q?this.Sj=y.Qm:this.m3=y.Qm);this.N.Ii(y.Qm,y.startTime,this.W,p,d,T,Q,w,O)}this.policy.W?Q&&(this.W===1&&dG(this,5,"noad"),y.Qm!==((v=this.K)==null?void 0:v.Qm)&&(Jy9(this,y,q,Q),isNaN(y.startTime)||Fs9(this,y.Qm,OW(this,y.startTime,y.Qm),!!q,this.N))):Q&&Jy9(this,y,q)}}; g.K.Ra=function(y,q,Q){var p=this.videoTrack.K.index.D3()<=q;this.K={u6:y,Qm:q,Vc:Q};p&&vI(this,y,q)}; g.K.Gk=function(){this.N&&this.N.Gk()}; g.K.Rb=function(y,q,Q){(y!=="sdai"||this.policy.iS||(Q===void 0?0:Q))&&this.loader.Rb(y,q)}; g.K.Xc=function(y,q){var Q=this.videoTrack.K.index.zW(y);if(Q>=0){var p;var v=((p=q.X0.oK(Q,2))==null?void 0:p.aG)||"";if(this.policy.W||v)return q.eg(y,Q),TN(this.loader,y,y,Q),this.Rb("sdai",{cmskpad:1,t:y.toFixed(3),sq:Q}),!0}this.Rb("sdai",{cmskpad:0,t:y.toFixed(3),sq:Q});return!1};g.K=Ksf.prototype;g.K.wQ=function(y,q,Q){var p=y||this.K;this.Rb("clsdai",{setadcfg:1,ocid:y,cid:p,acpn:Q,acfglen:(q==null?void 0:q.length)||0});this.W.has(p)||(this.Rb("clsdai",{setadcfg:"noentry",cid:p}),this.W.set(p,{event:"unknown",startTimeSecs:0,Ey:0,Fr:[],lm:Date.now(),Vp:-1,NJ:6}));(y=this.W.get(p))?q?(y.NJ=6,y.Fr.push(Q),y.Rp=q):y.NJ=2:this.Rb("clsdai",{setadcfg:"notfound",cid:p})}; g.K.z0=function(y,q,Q){var p;if(!((((p=y.QM)==null?void 0:p.length)||0)<=0)&&(y=y.QM[0],y.u6)){var v;p=-(((v=y.u6)==null?void 0:v.EB)||0);y.timeRange&&(p+=(y.timeRange.startTicks||0)/(y.timeRange.timescale||1));var d,T,O,w,J;v=new fm(p,((d=y.u6)==null?void 0:d.w3$)||0,((T=y.u6)==null?void 0:T.LJ)||"",((O=y.u6)==null?void 0:O.identifier)||"",tE8(((w=y.u6)==null?void 0:w.event)||0),(((J=y.u6)==null?void 0:J.EB)||0)*1E3);xXj(this,v,q,y.di||0,Q)}}; g.K.eg=function(y,q,Q){var p=y;this.Y&&(p+=Q);this.Wu(p);p=this.W.get(this.K);if(!p||p.X4)return this.Rb("clsdai",{skipadfail:1,cid:this.K,sn:q,mt:y.toFixed(3),of:Q.toFixed(3),skipsq:(p==null?void 0:p.X4)||-1}),!1;this.Rb("clsdai",{skipadsuc:1,cid:this.K,sn:q,mt:y.toFixed(3),of:Q.toFixed(3)});p.X4=q;return!0}; g.K.uN=function(){this.Rb("clsdai",{rstskipad:1});for(var y=g.t(this.W.values()),q=y.next();!q.done;q=y.next())q.value.X4=NaN}; g.K.Wu=function(y,q){q&&(this.J=q);if(this.K&&(q=this.W.get(this.K))&&q.startTimeSecs<=y&&y<=q.startTimeSecs+q.Ey)return;q=this.K||"";a:{for(var Q=g.t(this.W.entries()),p=Q.next();!p.done;p=Q.next()){var v=g.t(p.value);p=v.next().value;v=v.next().value;var d=void 0,T=void 0,O=void 0;if(((d=v)==null?void 0:d.startTimeSecs)<=y&&y<=((T=v)==null?void 0:T.startTimeSecs)+((O=v)==null?void 0:O.Ey)){y=p;break a}}y=""}this.K=y;this.Rb("clsdai",{updateccid:1,cid:this.K,ocid:q})};g.x(Yc,g.I);Yc.prototype.jG=function(y,q,Q){Q=Q===void 0?{}:Q;this.policy.Jz=Tt(y,Q,this.Y,q===void 0?!1:q)};xc.prototype.Gh=function(y){var q=this;if(this.policy.Yq){var Q=new Set(y);Q.size===this.gp.size&&[].concat(g.hH(Q)).every(function(p){return q.gp.has(p)})||(this.loader.Rb("lwnmow",{itagDenylist:[].concat(g.hH(y)).join(",")}),this.loader.qN(!!Q.size),this.j=-1,this.gp=Q,WI(this,this.K),this.LK=!0)}}; xc.prototype.jG=function(y,q,Q){Q=Q===void 0?{}:Q;var p=this.policy.Jz;this.J.jG(y,q===void 0?!1:q,Q);if(p!==this.policy.Jz){WI(this,this.K);ZZ(this);var v,d;p>this.policy.Jz&&((v=this.N)==null?0:yR(v.info))&&((d=this.nextVideo)==null||!yR(d.info))&&(this.cI=!0)}};Lu.prototype.Ds=function(y){this.timestampOffset=y;this.flush()}; Lu.prototype.flush=function(){if(this.K.pos>0){var y={a:this.track.Eu(),u:this.K.W3(),pd:Math.round(this.Y),ad:Math.round(this.N)},q=this.W;if(q){var Q=q.K.info;y.itag=Q.itag;Q.K&&(y.xtags=Q.K);y.sq=q.Qm;y.st=q.startTime;y.sd=q.duration;this.track.policy.Y$&&(y.si=q.r0());q.Y&&(y.esl=q.W+q.N);q.Ve()&&(y.eos=1)}isNaN(this.timestampOffset)||(y.to=this.timestampOffset);var p;if(q=(p=this.track.xs)==null?void 0:p.IH({})){for(var v in q)this.G[v]!==q[v]&&(y["sb_"+v]=q[v]);this.G=q}this.track.Rb("sbu", y);this.K.reset();this.buffered=[];this.J=this.N=this.Y=0;this.timestampOffset=this.W=void 0}};Nk.prototype.dispose=function(){this.N$=!0}; Nk.prototype.iB=function(){return this.N$}; g.x(lM,Error);uM.prototype.skip=function(y){this.offset+=y}; uM.prototype.Y6=function(){return this.offset};g.K=pgj.prototype;g.K.E5=function(){return this.W}; g.K.Mr=function(){return this.W.length?this.W[this.W.length-1]:null}; g.K.n1=function(){this.W=[];cI(this);nu(this)}; g.K.Sg=function(y){this.Vm=this.W.shift().info;y.info.equals(this.Vm)}; g.K.pH=function(){return g.W5(this.W,function(y){return y.info})}; g.K.Eu=function(){return!!this.J.info.audio}; g.K.isDrm=function(){return!!this.J.info.Uy}; g.K.getDuration=function(){return this.J.index.NL()};g.x(wn,Nu);g.K=wn.prototype;g.K.onStateChange=function(){this.iB()&&(mM(this.Ro,this.formatId),this.K.dispose())}; g.K.iE=function(){var y=XY9(this.Ro,this.formatId),q;var Q=((q=this.Ro.HT.get(this.formatId))==null?void 0:q.bytesReceived)||0;var p;q=((p=this.Ro.HT.get(this.formatId))==null?void 0:p.NO)||0;return{expected:y,received:Q,bytesShifted:q,sliceLength:CP(this.Ro,this.formatId),isAnyMediaEndReceived:this.Ro.tJ(this.formatId)}}; g.K.M6=function(){return 0}; g.K.oG=function(){return!0}; g.K.Bx=function(){return this.Ro.Bx(this.formatId)}; g.K.Em=function(){return[]}; g.K.Er=function(){return this.Ro.Er(this.formatId)}; g.K.H3=function(){return this.lastError}; g.K.FB=function(){return 0};g.x(Ab,g.I);g.K=Ab.prototype;g.K.Eu=function(){return!!this.K.info.audio}; g.K.Mr=function(){return this.Y.Mr()}; g.K.Sg=function(y){this.Y.Sg(y);var q;(q=this.C)!=null&&(q.J.add(y.info.Qm),q.K=Um8(q,q.Yj,q.QD,y,q.K),q.N=y,q.G=(0,g.SK)());this.jj=Math.max(this.jj,y.info.K.info.jj||0)}; g.K.getDuration=function(){return this.K.index.NL()}; g.K.n1=function(){FZ(this);this.Y.n1()}; g.K.tb=function(){return this.Y}; g.K.isRequestPending=function(y){return this.N.length?y===this.N[this.N.length-1].info.CK[0].Qm:!1}; g.K.Ds=function(y){var q;(q=this.C)==null||q.Ds(y);var Q;(Q=this.j)==null||Q.Ds(y)}; g.K.Rb=function(y,q){this.loader.Rb(y,q)}; g.K.wR=function(){return this.loader.wR()}; g.K.dispose=function(){var y;(y=this.j)==null||y.flush();g.I.prototype.dispose.call(this)};g.x(dq,g.I);dq.prototype.N=function(){this.W++>15||(this.K=!this.K,new PUH(this.loader,this.policy,this.g0,this.uj,this.K),this.delay.start())}; g.K=PUH.prototype;g.K.sL=function(){}; g.K.o1=function(){}; g.K.t7=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Fc()===this.size)this.loader.Rb("rqs",this.getInfo());else{var y="net.connect";this.xhr.status>200?y="net.badstatus":this.xhr.pA()&&(y="net.closed");this.onError(y)}}; g.K.onError=function(y){var q=this;this.loader.handleError(y,this.getInfo());jh("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(Q){q.loader.Rb("pathprobe",Q)},function(Q){q.loader.handleError(Q.errorCode,Q.details)})}; g.K.getInfo=function(){var y=this.timing.d8();y.shost=C3(this.location.l4);y.pb=this.size;return y};g.x(Tx,g.I); Tx.prototype.X=function(y,q){if(y.X){this.pK.isLive?(y=this.pK.Q5&&this.pK.Y?y.K.bC(this.pK.Q5,!1):y.K.rP(Infinity),y.ea=this.ea):y=y.K.bC(0,!1);if(this.cI){var Q=this.cI;y.ea===0&&(y.J=Q.C)}else y.J=this.j;return y}Q=y.W;if(!Q.K.iF())return Q.K.gY()?(y=vU(this.J,y.K.info.jj,q.K.info.jj,0),y=Q.K.n2(Q,y)):y=Q.K.DY(Q),y;var p=Q.G-this.loader.getCurrentTime(),v=!Q.range||Q.N===0&&Q.W===0?0:Q.range.length-(Q.W+Q.N),d=Q.K;this.z7(y,p)&&v===0&&(this.pK.isManifestless?d=y.K:(d=Q.startTime+Tpf,Q.N&&(d+=Q.duration), hf(y,d),Q=y.W,d=Q.K));d.gY()?(v=this.N,q=vU(this.J,d.info.jj,q.K.info.jj,p,v.Y.length>0&&v.C===0&&this.loader.o2),p=jI(y),y=Q.K.n2(Q,q),(q=y.N)&&y.CK.length>1&&(p||y.uj.N||y.CK[0].K!==Q.K?y=Q.K.n2(Q,y.CK[0].N):(p=y.CK[y.CK.length-1],d=p.N/q,!p.Y&&d<.4&&(y=Q.K.n2(Q,q-p.N))))):(Q.Qm<0&&(q=wB(Q),q.pr=""+y.N.length,this.loader.isSeeking()&&(q.sk="1"),q.snss=Q.X,this.loader.Rb("nosq",q)),y=d.DY(Q));if(this.policy.gp)for(Q=g.t(y.CK),q=Q.next();!q.done;q=Q.next())q.value.type=6;return y}; Tx.prototype.z7=function(y,q){if(!jI(y)||!y.K.iF())return!1;var Q;(Q=this.N.LK)||(Q=jI(y)&&y.K.iF()&&y.W.K.info.jj=q)return p.return();(Q=y.K.get(0))&&Mjp(y,Q);g.tH(p)})}; var R49={OLK:0,T6w:1,Uhm:2,A7B:3,dBV:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};u_S.prototype.decrypt=function(y){var q=this,Q,p,v,d,T,O;return g.M(function(w){switch(w.K){case 1:if(q.K.length&&!q.K[0].isEncrypted)return w.return();q.W=!0;q.vA.d0("omd_s");Q=new Uint8Array(16);bd()?p=new g.xV(y):v=new g.Ko(y);case 2:if(!q.K.length||!q.K[0].isEncrypted){w.ej(4);break}d=q.K.shift();if(!p){T=v.decrypt($S(d.buffer),Q);w.ej(5);break}return g.R(w,p.decrypt($S(d.buffer),Q),6);case 6:T=w.W;case 5:O=T;for(var J=0;J=4)){var q=Ll(this),Q=this.xhr;q.rc=Q.status;y&&(q.ab=!0);if(Q.uF()){var p="onesie.net";q.msg=Q.uF()}else Q.status>=400?p="onesie.net.badstatus":Q.CT()?this.PX||(p="onesie.response.noplayerresponse"):p=Q.status===204?"onesie.net.nocontent":"onesie.net.connect";p?this.fail(new g.t7(p,q)):(this.d0("or_fs"),this.RB.Gj((0,g.SK)(),Q.Fc(),0),this.hU(4),this.u7&&this.Rb("rqs",q));this.u7&&this.Rb("ombre","ok."+ +!p);this.YD=!1;ks(this); Xrj(this.vA);if(!this.RS){this.vz.stop();var v;(v=this.H5)==null||v.stop()}var d;if(y=(d=this.qO)==null?void 0:z4C(d))for(d=0;d1E3){var y;(y=this.RB)==null||y.g2((0,g.SK)());y=Ll(this);if(this.KK.U9()&&this.xhr instanceof Sh){var q=this.xhr;y.xrs=q.xhr.readyState;y.xpb=q.K.totalLength;y.xdc=q.Y}this.fail(new g.t7("net.timeout",y))}}else(0,g.SK)()-this.RB.K>1E4&&((q=this.RB)==null||q.g2((0,g.SK)()),this.SF());this.isComplete()||this.Ru.start()}}; g.K.SF=function(){this.YD=!1;if(!ks(this)){var y=Ll(this);y.timeout="1";this.fail(new g.t7("onesie.request",y))}}; g.K.fail=function(y){var q=this;y=kp(y);this.w7?this.WI.aB(y):(this.r8.reject(y),this.w7=!0);Xrj(this.vA);this.RS||this.vz.stop();this.d0("or_fe");var Q,p;(Q=this.qO)==null||(p=z4C(Q))==null||p.forEach(function(v){q.Rb("pathprobe",v)}); this.hU(5);this.dispose()}; g.K.isComplete=function(){return this.state>=3}; g.K.L4=function(){return this.state===4}; g.K.fN=function(y){var q,Q;return this.isComplete()||!!((q=this.eK)==null?0:(Q=q.get(y))==null?0:Q.K)}; g.K.UJ=function(){return!1}; g.K.rR=function(){return this.state===5}; g.K.notifySubscribers=function(y){for(var q=0;q102400&&!this.JA&&(this.d0("or100k"),this.JA=!0);if(y.JG()){var q=y.MI(),Q=q.totalLength;this.u7&&this.Rb("ombrss","len."+Q);this.zC.feed(q)}if(this.eK)for(var p=g.t(this.eK.keys()),v=p.next();!v.done;v=p.next()){var d=v.value;y=void 0;(y=this.eK.get(d))==null||y.Aa();this.notifySubscribers(d)}}catch(T){this.fail(T)}}; g.K.yU=function(){return this.RB.requestNumber}; g.K.l3=function(y){return this.Cx.get(y)};g.x(hWf,g.I);g.K=hWf.prototype;g.K.c7=function(y,q){this.j=void 0;RWg(this);HLC(this,y,q)}; g.K.t8=function(y){if(this.K.length===0)return!1;var q=this.K[0];return q instanceof aL?y===this.loader.getCurrentTime()*1E3:!(q instanceof jy&&Zn9(q.info))&&Math.abs(q.pN()-y)<50}; g.K.WG=function(y){this.W=y;this.j=(0,g.SK)()+(y.backoffTimeMs||0)}; g.K.wW=function(y,q){if(y.action===void 0){var Q=this.WI.UI();Q!==void 0&&this.loader.fA(Q)}else if(y.action!==0||!this.Vm)if(y.action===0&&this.policy.cS&&(y.action=2),y.Tu==="sabr.malformed_config"&&this.HI++<3)this.loader.handleError("sabr.malformed_config",{action:y.action,rn:q,retry:this.HI},0);else switch(y.Tu==="sabr.malformed_config"&&(y.action=2),Q={},Q.reason=y.Tu,Q.action=y.action,Q.rn=q,y.action){case 1:this.policy.W&&this.X&&this.X.rO(void 0,void 0,Q);break;case 0:this.Vm=!0;this.videoData.Lg()&& this.policy.W&&this.X&&this.X.rO(void 0,void 0,Q,!1);this.loader.n5(Q);break;case 2:N7b(y.Tu)!=="sabr.config"&&delete Q.reason;this.loader.handleError(N7b(y.Tu),Q,1);break;case 3:this.policy.XL&&((y=this.pK.j)!=null&&(y.C=!0),this.loader.handleError("sabr.hostfallback",Q))}}; g.K.ZE=function(y){y&&(this.loader.Rb("sabrctxt",{onsbrctxt:y.type,scp:y.scope,dflt:y.sendByDefault}),y.type&&y.sendByDefault&&this.videoData.Dw.add(y.type),y.scope!==2&&(y.type&&this.videoData.sabrContextUpdates.set(y.type,y),this.WI.ZE(y)))}; g.K.aV=function(){}; g.K.Rq=function(y,q){if(this.policy.Za&&this.loader.Tm)this.loader.Rb("sdai",{ignSabrSeek:1,smt:y==null?void 0:y.B$,rn:q});else if(y.B$!==void 0&&y.vF){var Q=y.B$/y.vF;this.audioTrack.X=!1;this.videoTrack.X=!1;if(this.policy.N$||this.policy.mZ||this.policy.c9)this.loader.xW.K=!1;var p=this.loader.Wp(Q,1);this.policy.Dw&&this.policy.W&&this.loader.Wu(p,q);this.WI.getCurrentTime()!==Q&&(q={tU:"sabr_seek",dP:!0,PF:!0},y.seekSource&&(q.seekSource=y.seekSource),KP(this.loader,Q+.1,q))}}; g.K.onSnackbarMessage=function(y){this.WI.publish("onSnackbarMessage",y)}; g.K.z0=function(y,q){this.policy.G&&!Fh9(this.videoData)&&this.loader.z0(y,q)}; g.K.SJ=function(y){y.Rs&&y.PE&&qC(this.pK,y.Rs,y.PE);this.policy.iJ&&(y.SD&&y.eD&&(this.pK.R2=y.SD/y.eD),y.KB&&y.WW&&(this.pK.dk=y.KB/y.WW));v4(this.videoData)&&!this.videoData.m3&&y.PE&&this.loader.Wp(y.PE,1E3);y.At!=null&&this.WI.Oi(y.At);y.nC&&(y=((0,g.SK)()-y.nC)/1E3,this.loader.HS.oW(1,y))}; g.K.JS=function(y){this.loader.JS(y)}; g.K.r7=function(y){return this.videoData.Dw.has(y)}; g.K.uo=function(y,q,Q){this.policy.N&&this.loader.Rb("sabrctxtplc",{start:y?y.join("_"):"",stop:q?q.join("_"):"",discard:Q?Q.join("_"):""});if(y){y=g.t(y);for(var p=y.next();!p.done;p=y.next())this.videoData.Dw.add(p.value)}if(q)for(q=g.t(q),y=q.next();!y.done;y=q.next())y=y.value,this.videoData.Dw.has(y)&&this.videoData.Dw.delete(y);if(Q)for(Q=g.t(Q),q=Q.next();!q.done;q=Q.next())if(q=q.value,this.videoData.sabrContextUpdates.has(q)&&this.videoData.sabrContextUpdates.delete(q),this.policy.cI&&this.K.length)for(y= g.t(this.K),p=y.next();!p.done;p=y.next())if(p=p.value,!(p instanceof aL)){var v=void 0;((v=p.sR)==null?void 0:v.type)===q&&(p.sR=void 0)}}; g.K.gW=function(){}; g.K.vZ=function(y){this.G=y}; g.K.V1=function(y){this.J=y}; g.K.Sz=function(y,q){edb(this.policy,y,4,q)}; g.K.D5=function(y){if(y==null?0:y.Sv)if(y=y.Sv.fk){y=g.t(y);for(var q=y.next();!q.done;q=y.next())if(q=q.value,q.formatId){var Q=this.pK.N.get(Cm(q.formatId));Q&&Q.info&&(Q.info.debugInfo=q.debugInfo)}}}; g.K.Ym=function(y){this.WI.publish("reloadplayer",y)}; g.K.A1=function(){return this.WI.A1()||""}; g.K.Vh=function(){var y=E3S(this);return Math.min(y.Xb,y.Ob)}; g.K.MU=function(y,q){this.loader.Rb(y,q)}; g.K.kG=function(y){GlS(this.loader,MEC(this.BI,y))}; g.K.FV=function(){g.I.prototype.FV.call(this);this.W=void 0;HLC(this,!0,"i");this.K=[]};XV.prototype.cI=function(y){e2(y.state)&&uI9(this.N)}; XV.prototype.clear=function(){n3D(this.N);this.J.clear();this.W.clear();this.X=this.C=NaN;this.G=!1;this.B3=""}; XV.prototype.ez=function(){this.isSeeking=!0;this.K===1&&n3D(this.N);this.K===0&&this.m0.BO("transitiondetector");this.G=!1};G1b.prototype.Jj=function(y,q){if(this.Y)return Cc9(this,q);if(q=xd(y)){var Q=q.K;Q&&Q.N&&Q.K&&(y=y.N.length?y.N[0]:null)&&y.state>=2&&!y.rR()&&y.info.ea===0&&(this.Y=y,this.X=Q,this.W=q.info,this.G=this.startTimeSecs=Date.now()/1E3,this.J=this.W.startTime)}return NaN}; G1b.prototype.clear=function(){this.W=this.X=this.Y=null;this.K=this.J=this.G=this.startTimeSecs=NaN;this.N=!1};g.x(jF2,g.I);jF2.prototype.FV=function(){p4H(this);g.I.prototype.FV.call(this)};var vWs=/[?&]cpn=/;g.x(Cl,g.I);Cl.prototype.flush=function(){var y={};this.W&&(y.pe=this.W);this.K.length>0&&(y.pt=this.K.join("."));this.K=[];return y}; Cl.prototype.stop=function(){var y=this,q,Q,p;return g.M(function(v){if(v.K==1)return g.EC(v,2),g.R(v,(q=y.Y)==null?void 0:q.stop(),4);if(v.K!=2)return(Q=v.W)&&y.logTrace(Q),g.Hp(v,0);p=g.Rj(v);y.W=F_3(p.message);g.tH(v)})}; Cl.prototype.logTrace=function(y){this.encoder.reset();this.encoder.add(1);this.encoder.add(y.resources.length);for(var q=g.t(y.resources),Q=q.next();!Q.done;Q=q.next()){Q=Q.value.replace("https://www.youtube.com/s/","");this.encoder.add(Q.length);for(var p=0;p=0?y:g.pO(this.provider),this.m3?qJq.has(this.l6)&&(this.K.size||(this.l6==="PL"?y>=this.W+30:y<=this.cI+30||y>=this.W+1200&&y<=this.cI+86400))&&(g.qr(this,y,"vps",[this.l6]),this.W=y):["PL","B","S"].indexOf(this.l6)>-1&&(this.K.size||y>=this.W+30)&&(g.qr(this,y,"vps",[this.l6]),this.W=y),this.K.size)){this.sequenceNumber===7E3&&g.zI(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){vX(this,y);var q=this.provider.WI.vl(); q=g.t(q);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,this.Rb(Q.key,Q.value);q=y;Q=this.provider.WI.Oj();var p=Q.droppedVideoFrames||0,v=Q.totalVideoFrames||0,d=p-this.Re,T=v&&!this.Nb;p>Q.totalVideoFrames||d>5E3?N6C(this,"html5.badframedropcount","df."+p+";tf."+Q.totalVideoFrames):(d>0||T)&&g.qr(this,q,"df",[d]);this.Re=p;this.Nb=v;this.C>0&&(g.qr(this,y,"glf",[this.C]),this.C=0);p7.isActive()&&(y=p7.O4(),Object.keys(y).length>0&&this.Rb("profile",y));this.Se&&dA(this,"lwnmow");this.provider.KK.U9()&& this.provider.L("html5_record_now")&&this.Rb("now",{wt:(0,g.SK)()});y={};this.provider.videoData.W&&(y.fmt=this.provider.videoData.W.itag,(q=this.provider.videoData.Y)&&q.itag!==y.fmt&&(y.afmt=q.itag));y.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(y.adcpn=this.adCpn);this.jV&&(y.addocid=this.jV);this.contentCpn&&(y.ccpn=this.contentCpn);this.Sj&&(y.cdocid=this.Sj);this.provider.videoData.cotn&&(y.cotn=this.provider.videoData.cotn);y.el=FQ(this.provider.videoData);y.content_v=f$(this.provider.videoData); y.ns=this.provider.KK.cI;y.fexp=dDf(this.provider.KK.experiments).toString();y.cl=(805151667).toString();(q=this.provider.videoData.adFormat||this.adFormat)&&(y.adformat=q);(q=CL(this.provider.videoData))&&(y.live=q);this.provider.videoData.AR()&&(y.drm=1,this.provider.videoData.J&&(y.drm_system=rlq[this.provider.videoData.J.flavor]||0),this.provider.videoData.drmProduct&&(y.drm_product=this.provider.videoData.drmProduct));JM()&&this.provider.videoData.G&&(y.ctt=this.provider.videoData.G,y.cttype= this.provider.videoData.t0,this.provider.videoData.mdxEnvironment&&(y.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(y.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.JD&&(y.dai_fallback="1")):this.provider.videoData.V$?y.dai="cs":this.provider.videoData.Vg&&(y.dai="disabled");y.seq=this.sequenceNumber++;if(this.provider.videoData.q3){if(q=this.provider.videoData.q3,y&&q)for(q.ns==="3pp"&&(y.ns="3pp"),this.ra.has(q.ns)&& dA(this,"hbps"),q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=q.shbpslc),this.provider.KK.experiments.ob("html5_use_server_qoe_el_value")&&this.Dw.delete("el"),Q=g.t(Object.keys(q)),p=Q.next();!p.done;p=Q.next())p=p.value,this.Dw.has(p)||(y[p]=q[p])}else y.event="streamingstats",y.docid=this.provider.videoData.videoId,y.ei=this.provider.videoData.eventId;this.isEmbargoed&&(y.embargoed="1");Object.assign(y,this.provider.KK.K);if(q=y.seq)q={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+q,serializedWatchEndpointLoggingContext:this.provider.videoData.Kaf},this.serializedHouseBrandPlayerServiceLoggingContext&&(q.serializedHouseBrandPlayerServiceLoggingContext=Me(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(q.playerResponseCpn=this.provider.videoData.playerResponseCpn),yW.length&&(q.decoderInfo=yW),this.remoteControlMode&&(q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(q.remoteConnectedDevices= this.remoteConnectedDevices),q=g.jR(q,fB3),q=g.Rq(q,4),this.K.set("qclc",[q]);y=g.kb("//"+this.provider.KK.IL+"/api/stats/qoe",y);Q=q="";p=g.t(this.K.entries());for(v=p.next();!v.done;v=p.next())d=g.t(v.value),v=d.next().value,d=d.next().value,T=void 0,(T=d)!=null&&T.join&&(v="&"+v+"="+d.join(","),v.length>100?Q+=v:q+=v);EWp(this,y+q,Q.replace(/ /g,"%20"))}this.K.clear()}}; g.K.qN=function(y){this.Se=y}; g.K.JB=function(){if(this.provider.videoData.J){var y=this.provider.videoData.J;dA(this,"eme-"+(y.keySystemAccess?"final":wK(y)?"ms":YE(y)?"ytfp":Fh(y)?"safarifp":"nonfinal"))}}; g.K.GC=yi(53);g.K.hP=function(y){this.isEmbargoed=y}; g.K.dh=yi(30);g.K.nU=yi(36);g.K.onPlaybackRateChange=function(y){var q=g.pO(this.provider);y&&y!==this.F0&&(g.qr(this,q,"rate",[y]),this.F0=y);this.m3||this.reportStats(q)}; g.K.KV=yi(24);g.K.getPlayerState=function(y){if(g.G(y,128))return"ER";if(g.G(y,2048))return"B";if(g.G(y,512))return"SU";if(g.G(y,16)||g.G(y,32))return"S";if(y.isOrWillBePlaying()&&g.G(y,64))return"B";var q=jAS[Bb(y)];g.kt(this.provider.KK)&&q==="B"&&this.provider.WI.getVisibilityState()===3&&(q="SU");q==="B"&&g.G(y,4)&&(q="PB");return q}; g.K.Om=function(y){var q=g.pO(this.provider);g.qr(this,q,"vfi",[y===0?"":""+y,y===0?"A":"M"])}; g.K.FV=function(){g.I.prototype.FV.call(this);g.tM(this.N$);g.tM(this.XL)}; g.K.dW=function(y){this.isOffline=y;g.qr(this,g.pO(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.K.Rb=function(y,q,Q){var p=this.I7.indexOf(y)!==-1;p||this.I7.push(y);if(!Q||!p){q=typeof q!=="string"?Zr(q):q;q=H$9(q);if(!Q&&!/^t[.]/.test(q)){var v=g.pO(this.provider)*1E3;q="t."+v.toFixed()+";"+q}QW(this,"ctmp",y+":"+q);klf(this);return v}}; g.K.pW=function(y,q,Q){this.J={uC3:Number(this.Rb("glrem",{nst:y.toFixed(),rem:q.toFixed(),ca:+Q})),Ql:y,C9B:q,isAd:Q}}; g.K.fO=function(y,q,Q){g.qr(this,g.pO(this.provider),"ad_playback",[y,q,Q])}; g.K.GE=function(y,q){var Q=g.pO(this.provider)*1E3;QW(this,"daism","t."+Q.toFixed(0)+";smw."+(y*1E3).toFixed(0)+";smo."+(q*1E3).toFixed(0))}; g.K.resume=function(){var y=this;isNaN(this.N$)?L_9(this):this.N$=g.WF(function(){y.reportStats()},1E4)}; var Wf={},jAS=(Wf[5]="N",Wf[-1]="N",Wf[3]="B",Wf[0]="EN",Wf[2]="PA",Wf[1]="PL",Wf[-1E3]="ER",Wf[1E3]="N",Wf),qJq=new Set(["PL","B","S"]),yW=[];g.x(g.O_,g.I);g.K=g.O_.prototype; g.K.initialize=function(y,q,Q){y=y||0;this.policy.K||(q=zEf(this.K),B69(this.WI,new FT(q.video,q.reason)),this.WI.x8(new FT(q.audio,q.reason)));this.policy.K&&Qsb(this);this.pK.isManifestless&&VjS(this.J);this.X&&iL8(this.X,this.videoTrack.K);q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var p=!this.pK.isManifestless;this.policy.Vg&&(p=p||this.pK.Gf);if(!this.policy.Es||this.policy.T8)this.currentTime=p?y:q;this.policy.N$&&this.seek(this.getCurrentTime(),{}).IE(function(){}); if(this.policy.K){var v;((v=this.cI)==null?0:fDC(v,this.A1()||""))&&nWD(this)&&It9(this,this.videoTrack)&&It9(this,this.audioTrack)&&(sfD(this.W,this.cI),this.policy.J&&uQ9(this))}else this.N$&&(gWS(this,this.videoTrack),gWS(this,this.audioTrack),img(this.N$),delete this.N$);Q?(U48(this,!1),g.qM(this.pu)):(y=this.getCurrentTime()===0,VZ(this.J,this.videoTrack,this.videoTrack.K,y),VZ(this.J,this.audioTrack,this.audioTrack.K,y),this.policy.K&&Kc9(this.W,!0),this.policy.N$||this.seek(this.getCurrentTime(), {}).IE(function(){}),this.timing.tick("gv")); (this.pK.Q5||this.pK.rS||this.pK.gp||this.pK.Se||this.pK.XL)&&this.WI.nM(this.pK)}; g.K.resume=function(){if(this.isSuspended||this.o2){this.cP=this.o2=this.isSuspended=!1;try{this.Jj()}catch(y){g.l$(y)}}}; g.K.zk=function(){return!this.policy.cn}; g.K.JL=function(y,q){y=y===void 0?!1:y;q=q===void 0?!1:q;As3(this);this.WI.VF()&&(this.G=NaN);y?(this.policy.vI&&this.Rb("loader",{setsmb:1}),this.policy.gp=!0,this.n1()):(U48(this,!1),q||this.n1())}; g.K.setAudioTrack=function(y,q,Q){Q=Q===void 0?!1:Q;if(!this.iB()){var p=!isNaN(q);Q&&p&&(this.audioTrack.N$=Date.now(),this.policy.Bn&&(this.q$=!0));Q=this.WI.VF()&&!this.WI.getVideoData().j;if(this.policy.K){var v=this.Y.uv(y.id,p);this.WI.x8(v)}else v=this.K,v.W=v.pK.K[y.id],v.X=v.W,v=new Jb(v.X,v.N,p?"t":"m"),this.WI.x8(new FT(v.audio,v.reason));p?(this.Se=Date.now(),p=this.audioTrack.K.index.zW(q),this.Rb("setAudio",{id:y.id,cmt:q,sq:p}),p>=0&&(y=this.policy.yw?p+1:p,this.policy.K&&this.c7(!0, "mosaic"),MzH(this.audioTrack,y,NaN,NaN),!this.policy.b9&&this.pK.isLive&&yz(this.pK,y,!1))):Q||this.WI.Tn()}}; g.K.setPlaybackRate=function(y){y!==this.j.getPlaybackRate()&&this.j.setPlaybackRate(y)}; g.K.xN=function(y){var q=this.W.G;this.W.vZ(y);this.Rb("scfidc",{curr:Cm(q),"new":Cm(y)});y&&Cm(y)!==Cm(q)&&(this.c7(!0,"caption change"),this.Jj())}; g.K.VR=function(y){this.W.V1(y)}; g.K.Lf=function(y){y.K.info.Eu()?this.WI.x8(y):B69(this.WI,y)}; g.K.kG=function(y){TJ(y.CK[y.CK.length-1])&&GlS(this,MEC(this.K,y.CK[0].K))}; g.K.sP=function(){return this.WI.sP()}; g.K.Dt=function(){return this.WI.Dt()}; g.K.JS=function(y){this.WI.T().U9()&&this.Rb("sps",{status:y.JT||""});if(y.JT===1)this.WI.videoData.yx=0;else if(y.JT===2||y.JT===3){var q=!1;if(y.JT===3){q=this.WI.sF();var Q;this.BT=(Q=y.nkp)!=null?Q:Infinity;this.WI.videoData.yx=q+1;(q=djg(this))&&this.Y8(!0)}this.WI.JW(!0,q)}}; g.K.AL=function(){return this.WI.AL()}; g.K.tR=function(){return this.WI.tR()}; g.K.Qv=function(y){this.WI.Qv(y)}; g.K.GIb=function(){var y,q=(y=this.WI.OW())==null?void 0:y.getCurrentTime();q?this.WI.Rb("rms",{cta:q}):g.qM(this.EW)}; g.K.Jj=function(){etD(this);if(this.Zw&&aJ(this.Zw)&&!this.Zw.vx()&&(!this.policy.Es||isFinite(this.getCurrentTime()))){var y=BI(this.videoTrack);y=this.policy.Wz&&y&&y.Ve();this.pK.isManifestless&&this.pK.Y&&iq(this.pK)?(this.G=iq(this.pK),this.Zw.pL(this.G)):jz(this.pK)&&!y?isNaN(this.G)?(this.G=this.getCurrentTime()+3600,this.Zw.pL(this.G)):this.G<=this.getCurrentTime()+1800&&(this.G=Math.max(this.G+1800,this.getCurrentTime()+3600),this.Zw.pL(this.G)):this.Zw.isView||(y=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.G)||this.G!==y)&&y>0&&(this.Zw.pL(y),this.G=y))}if(!this.iB())if(Pj(this.pK)&&this.pK.rR()){var q=this.pK;this.handleError("manifest.net.retryexhausted",q.Dw?{rc:q.Bt}:{rc:q.Bt.toString()},1)}else if(this.policy.K)a:{try{aD3(this.W);this.pK.isManifestless&&this.policy.J&&b9(this.xW);var Q;((Q=this.Zw)==null?0:Hb(Q))&&this.W8();Kc9(this.W)}catch(T){g.zI(T);q=T;if(q.message.includes("changeType")){this.Rb("ctype",{exp:q.name,msg:q.message,s:q.stack});break a}this.handleError("fmt.unplayable", {exp:q.name,msg:q.message,s:q.stack,trg:"sabrslicerqt"},1)}vXi(this);g.qM(this.Dw)}else if(!this.pK.W||!zd3(this.videoTrack)&&!zd3(this.audioTrack)||(this.videoTrack.J||this.audioTrack.J)&&this.policy.RH?Q=!1:(this.n1(),this.WI.seekTo(Infinity,{tU:"checkLoaderTracksSync",Wp:!0}),Q=!0),!Q){etD(this);this.pK.isManifestless&&(DC9(this.videoTrack),DC9(this.audioTrack),b9(this.xW),(Q=xd(this.videoTrack))&&Q.K&&(Q=Q.K.N&&!this.policy.aD,this.Rb(Q===this.policy.C.wi?"strm":"strmbug",{strm:Q,sfmp4:this.policy.C.wi, dfs:this.policy.aD},!0)));if(this.Zw)this.W8();else if(this.policy.Y){var p;Q=!1;if(this.policy.nD){var v;y=g.t([this.videoTrack,this.audioTrack]);for(v=y.next();!v.done;v=y.next()){var d=v.value;for(v=xd(d);v&&d.Mr()!==BI(d);v=xd(d))d.Sg(v);Q=Q||!!v}}else(q=xd(this.videoTrack))&&this.videoTrack.Sg(q),(p=xd(this.audioTrack))&&this.audioTrack.Sg(p);PI(this.videoTrack)&&PI(this.audioTrack)||(q||p||Q)&&Pm(this)}csg(this);VZ(this.J,this.videoTrack,this.videoTrack.K,!1);VZ(this.J,this.audioTrack,this.audioTrack.K, !1);if(!this.policy.Nv&&(q=this.videoTrack,y=this.audioTrack,(!this.Zw||aJ(this.Zw)&&!this.policy.IL)&&!this.xW.isSeeking()&&(this.policy.K||jI(q)&&q.K.iF()&&this.K.cI)))a:{if(p=this.getCurrentTime(),Q=this.j,y=vU(Q,q.K.info.jj,y.K.info.jj,0),v=Xh(Q.g0)+y/yK(Q.g0),p+=Math.max(v,v+Q.policy.ET-y/q.K.info.jj),q.N.length){if(q.N[0].info.CK[0].startTime<=p)break a;FZ(q)}Q=q.Y;for(y=Q.W.length-1;y>=0;y--)Q.W[y].info.startTime>p&&Q.W.pop();aTD(q);q.W&&p5&&O.cI.shift();q=q.Qm;var w;if((w=this.WI.getVideoData())==null?0:w.enableServerStitchedDai)w=UCS(this.audioTrack,q),Q=UCS(this.videoTrack,q),w!==0&&Q!==0&&w!==Q&&this.handleError("ssdai.avsync",{sq:q,a:w,v:Q},0)}}; g.K.Ra=function(y,q,Q,p){y.info.video&&this.N.Ra(q,Q,p)}; g.K.Gh=function(y){this.K.Gh(y)}; g.K.Ca=yi(12);g.K.j1=function(){if(g.G(this.WI.getPlayerState(),8)){var y,q,Q=(q=(y=this.WI.OW())==null?void 0:y.getCurrentTime())!=null?q:this.WI.getCurrentTime(),p;(p=this.Ty)==null||UgD(p,Q)}var v;(v=this.hw)==null||g.qM(v)}; g.K.rq=function(){return this.videoTrack.X||this.audioTrack.X}; g.K.seek=function(y,q){if(this.iB())return Iw();if(this.rq())return Iw("seeking to head");if(this.policy.N$&&!isFinite(y))return i3p(this.xW),g.uu(Infinity);etD(this);Qsb(this);this.policy.K||csg(this,y);this.Zw&&this.Zw.K&&this.Zw.W&&!this.WI.getVideoData().IS&&(this.Zw.K.isLocked()||this.Zw.W.isLocked())&&this.WI.Tn({reattachOnLockedBuffer:1,vsb:""+this.Zw.W.isLocked(),asb:""+this.Zw.K.isLocked()});var Q=this.getCurrentTime(),p=this.xW.seek(y,q);if(!this.policy.Es||this.policy.T8)this.currentTime= p;wG(this.N,y,Q,this.policy.nT&&!q.dP);Pm(this);return g.uu(p)}; g.K.t8=function(y){return this.policy.K&&this.W.t8(y)}; g.K.r7=function(y){return this.W.r7(y)}; g.K.c7=function(y,q){this.W.c7(y,q)}; g.K.getCurrentTime=function(){if(this.policy.Es){var y=this.bj()||0;return this.WI.getCurrentTime(!0)-y}return this.currentTime}; g.K.GO=function(){return this.audioTrack.K.info}; g.K.ES=function(){return this.videoTrack.K.info}; g.K.Z$=function(){return this.audioTrack.K.info.nK}; g.K.hL=function(){return this.videoTrack.K.info.nK}; g.K.FV=function(){try{this.JL(),FZ(this.audioTrack),FZ(this.videoTrack),QZ(this.audioTrack),QZ(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.I.prototype.FV.call(this)}catch(y){g.l$(y)}}; g.K.handleError=function(y,q,Q){Q=Q===void 0?0:Q;var p=EU(Q);y==="fmt.unplayable"&&this.pK.isLive&&(this.policy.VG=!1,C5(this.pK));q=new g.t7(y,q,Q);g.V_(this);Zr(q.details);this.WI.handleError(q);y!=="html5.invalidstate"&&q.errorCode!=="fmt.unplayable"&&y!=="fmt.unparseable"&&p&&this.dispose()}; g.K.IH=function(){var y=BI(this.audioTrack),q=BI(this.videoTrack);y={lct:this.getCurrentTime().toFixed(3),lsk:this.xW.isSeeking(),lmf:this.K.K.isLocked(),lbw:C8(this.schedule).toFixed(3),lhd:Xh(this.schedule).toFixed(3),lst:((this.schedule.X.Io()||0)*1E9).toFixed(3),laa:y?y.r0():"",lva:q?q.r0():"",lar:this.audioTrack.W?this.audioTrack.W.r0():"",lvr:this.videoTrack.W?this.videoTrack.W.r0():"",laq:""+iM(this.audioTrack),lvq:""+iM(this.videoTrack)};this.Zw&&!this.Zw.Pt()&&this.Zw.K&&this.Zw.W&&(y.lab= F7(this.Zw.K.m5()),y.lvb=F7(this.Zw.W.m5()));this.Sj&&(y.lapt=((0,g.SK)()-this.Sj).toFixed(0),y.lapr=Phi(this));this.LK&&(y.lapmabht=((0,g.SK)()-this.LK).toFixed(0),y.lapmabh=fP(this,this.audioTrack).toFixed(0));this.HI&&(y.lapmvbht=((0,g.SK)()-this.HI).toFixed(0),y.lapmvbh=fP(this,this.videoTrack).toFixed(0));this.Vm&&(y.lapsdai=((0,g.SK)()-this.Vm).toFixed(0));return y}; g.K.n1=function(){try{this.policy.K&&this.W.c7(!1,"pending"),this.audioTrack.n1(),this.videoTrack.n1()}catch(y){g.l$(y)}this.policy.Y=""}; g.K.Qh=function(){return pP(this.j)}; g.K.Rb=function(y,q,Q){this.WI.Rb(y,q,Q===void 0?!1:Q)}; g.K.A1=function(){return this.WI.A1()}; g.K.Wp=function(y,q){y/=q;isNaN(this.timestampOffset)&&JW9(this,y-Math.min(y,this.policy.eL));return(y-this.timestampOffset)*q}; g.K.bj=function(){return this.timestampOffset}; g.K.isSeeking=function(){return this.xW.isSeeking()}; g.K.Gk=function(){this.N.Gk()}; g.K.jG=function(y,q,Q){q=q===void 0?!1:q;Q=Q===void 0?{}:Q;this.policy.K?this.Y.jG(y,q,Q):this.K.jG(y,q,Q)}; g.K.Xc=function(y,q){if(this.policy.W&&(this.Tm||this.isSeeking()))return this.Rb("sdai",{ignoreSkip:"1",isSkip:this.Tm,isSeek:this.isSeeking(),t:y.toFixed(3)}),!1;var Q=this.policy.W&&(this.policy.G||this.policy.Dw),p=this.videoTrack.K.index.zW(y),v=!1;if(Q){var d;v=!((d=this.m3)==null||!d.eg(y,p,this.timestampOffset))}else this.C&&(v=!!this.N.Xc(y,this.C));if(!v)return this.handleError("ad.skipfailed",{dec:!!this.C,t:y.toFixed(3),sq:p}),!1;this.policy.W&&(this.Rb("sdai",{skipAdStd:"1"}),this.Tm= !0);if(this.policy.Aw){var T;(T=this.Ty)==null||T.clear()}JW9(this,this.timestampOffset-q);Pm(this);this.policy.W&&(C5(this.pK),QZ(this.audioTrack),QZ(this.videoTrack),this.n1());return!0}; g.K.getManifest=function(){return this.pK}; g.K.isOffline=function(){return!!this.WI.getVideoData().cotn}; g.K.CM=function(y,q){this.WI.CM(y,q)}; g.K.W7=function(y){if(this.policy.K)this.W.c7(!0,"utc"),this.Jj();else{var q=this.WI.getVideoData().L1;if(q){var Q=this.J;Q.xJ=y;Q.L1=q;wq(this)}}}; g.K.fA=function(y){this.videoTrack.X=!1;this.audioTrack.X=!1;this.xW.K=!1;this.WI.fA(y)}; g.K.t3=function(y){this.xW.t3(y-this.bj())}; g.K.kq=function(){this.WI.kq()}; g.K.Y8=function(y){y!==this.policy.RW&&((this.policy.RW=y)||this.Jj())}; g.K.Tn=function(y){this.WI.Tn(y)}; g.K.qN=function(y){this.WI.qN(y)}; g.K.wQ=function(y,q,Q){var p;(p=this.m3)==null||p.wQ(y,q,Q);this.policy.G&&(this.W.j=void 0,this.Jj())}; g.K.Wu=function(y,q){var Q;(Q=this.m3)==null||Q.Wu(y,q)}; g.K.sF=function(){return this.WI.sF()}; g.K.z0=function(y,q){if(this.policy.G){var Q;(Q=this.m3)==null||Q.z0(y,q,this.C||void 0)}};g.K=g.wA.prototype;g.K.bO=function(y,q,Q,p,v,d){return this.X0.bO(y,q,Q,p,v,d)}; g.K.K0=function(y,q,Q,p,v,d){return this.X0.K0(y,q,Q,p,v,d)}; g.K.OX=function(y){return this.X0.OX(y)}; g.K.Na=function(y){this.X0.Na(y)}; g.K.rO=function(y,q,Q,p){return this.X0.rO(y,q,Q,p)}; g.K.Gk=function(){this.X0.Gk()}; g.K.eg=function(y,q){this.X0.eg(y,q)}; g.K.uN=function(){this.X0.uN()}; g.K.vV=yi(56);g.K.JP=function(y,q,Q){this.X0.JP(y,q,Q)}; g.K.qs=yi(59);g.K.Ii=function(y,q,Q,p,v,d,T,O,w){this.X0.Ii(y,q,Q,p,v,d,T,O,w)}; g.K.zV=function(y){this.X0.zV(y)}; g.K.qq=function(y){return this.X0.qq(y)}; g.K.f_=function(y){return this.X0.f_(y)}; g.K.Oe=function(y){return this.X0.Oe(y)};g.x(JD,g.V6);g.x(Fb,JD);Fb.prototype.G=function(y,q){if(y&&q){var Q=Number(HG(y,"cpi"))*1+1;isNaN(Q)||Q<=0||Qthis.N&&(this.N=Q,g.hn(this.K)||(this.K={},this.Y.stop(),this.W.stop())),this.K[q]=y,g.qM(this.W))}}; Fb.prototype.J=function(){for(var y=g.t(Object.keys(this.K)),q=y.next();!q.done;q=y.next()){var Q=q.value;q=this.publish;for(var p=this.N,v=g.b_(this.K[Q]),d=[],T=g.t(v[6].split("&")),O=T.next();!O.done;O=T.next())O=O.value,O.indexOf("cpi=")===0?d.push("cpi="+p.toString()):O.indexOf("ek=")===0?d.push("ek="+g.R2(Q)):d.push(O);v[6]="?"+d.join("&");Q="skd://"+v.slice(2).join("");v=Q.length*2;p=new Uint8Array(v+4);p[0]=v%256;p[1]=(v-p[0])/256;for(v=0;v0)for(var Q=g.t(this.K),p=Q.next();!p.done;p=Q.next())if(q===p.value.info.cryptoPeriodIndex){q=!0;break a}q=!1}if(!q){q=(0,g.SK)();a:{Q=y.cryptoPeriodIndex;if(!isNaN(Q)){p=g.t(this.N.values());for(var v=p.next();!v.done;v=p.next())if(Math.abs(v.value.cryptoPeriodIndex-Q)<=1){Q=!0;break a}}Q=!1}Q?(Q=y.K,Q=Math.max(0,Math.random()*((isNaN(Q)?120:Q)-30))*1E3):Q=0;this.publish("log_qoe",{wvagt:"delay."+Q,cpi:y.cryptoPeriodIndex,reqlen:this.K.length}); Q<=0?faH(this,y):(this.K.push({time:q+Q,info:y}),g.qM(this.W,Q))}}; YY.prototype.FV=function(){this.K=[];JD.prototype.FV.call(this)};var ZK={},xZi=(ZK.DRM_TRACK_TYPE_AUDIO="AUDIO",ZK.DRM_TRACK_TYPE_SD="SD",ZK.DRM_TRACK_TYPE_HD="HD",ZK.DRM_TRACK_TYPE_UHD1="UHD1",ZK);g.x($Z2,g.I);g.x(Zqb,g.V6);g.K=Zqb.prototype;g.K.fH=function(y){var q=this;if(!(this.iB()||y.size<=0)){var Q={};y.forEach(function(p,v){var d=JB(q.W)?v:p;v=new Uint8Array(JB(q.W)?p:v);JB(q.W)&&IaD(v);p=g.Rq(v,4);IaD(v);v=g.Rq(v,4);q.K[p]?q.K[p].status=d:q.K[v]?q.K[v].status=d:q.K[p]={type:"",status:d};DZj(q,q.K[p].type,Q)}); lab(this,",");fO(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.K.error=function(y,q,Q,p){this.iB()||(this.publish("licenseerror",y,q,Q,p),y==="drm.provision"&&(y=(Date.now()-this.G)/1E3,this.G=NaN,this.publish("ctmp","provf",{et:y.toFixed(3)})));EU(q)&&this.dispose()}; g.K.shouldRetry=function(y,q){return!y&&this.requestNumber===q.requestNumber}; g.K.FV=function(){this.K={};g.V6.prototype.FV.call(this)}; g.K.IH=function(){var y={ctype:this.C.contentType||"",length:this.C.initData.length,requestedKeyIds:this.m3,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(y.keyStatuses=this.K);return y}; g.K.getInfo=function(){var y=this.Y.join();if(hD(this)){var q=new Set,Q;for(Q in this.K)this.K[Q].status!=="usable"&&q.add(this.K[Q].type);y+="/UKS."+Array.from(q)}return y+="/"+this.cryptoPeriodIndex}; g.K.i6=function(){return this.url};g.x($Y,g.I);g.K=$Y.prototype;g.K.v4=function(y){if(this.J){var q=y.messageType||"license-request";this.J(new Uint8Array(y.message),q)}}; g.K.fH=function(){this.X&&this.X(this.K.keyStatuses)}; g.K.onClosed=function(){this.iB()||g.BF("xboxone")&&this.N&&this.N("closedShouldNotRetry")}; g.K.oJ=function(y){this.J&&this.J(y.message,"license-request")}; g.K.Df=function(y){if(this.N){if(this.W){var q=this.W.error.code;y=this.W.error.systemCode}else q=y.errorCode,y=y.systemCode;this.N("t.prefixedKeyError;c."+q+";sc."+y,q,y)}}; g.K.AX=function(){this.G&&this.G()}; g.K.update=function(y){var q=this;if(this.K)return this.K.update(y).then(null,v_(function(Q){XmS(q,"t.update",Q)})); this.W?this.W.update(y):this.element.addKey?this.element.addKey(this.C.keySystem,y,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.C.keySystem,y,this.initData,this.sessionId);return ub()}; g.K.FV=function(){this.K&&(this.j?this.K.close().catch(g.zI):this.K.close());this.element=null;g.I.prototype.FV.call(this)};g.x(KO,g.I);g.K=KO.prototype;g.K.setServerCertificate=function(){return this.W.setServerCertificate?this.K.flavor==="widevine"&&this.K.fF?this.W.setServerCertificate(this.K.fF):f8(this.K)&&this.K.Vm?this.W.setServerCertificate(this.K.Vm):null:null}; g.K.createSession=function(y,q){var Q=y.initData;if(this.K.keySystemAccess){q&&q("createsession");var p=this.W.createSession();YE(this.K)?Q=yDS(Q,this.K.Vm):f8(this.K)&&(Q=YYg(Q)||new Uint8Array(0));q&&q("genreq");y=p.generateRequest(y.contentType,Q);var v=new $Y(null,null,null,p,null,this.X);y.then(function(){q&&q("genreqsuccess")},v_(function(T){XmS(v,"t.generateRequest",T)})); return v}if(wK(this.K))return jBH(this,Q);if(Fh(this.K))return q_D(this,Q);if((p=this.element)==null?0:p.generateKeyRequest)this.element.generateKeyRequest(this.K.keySystem,Q);else{var d;(d=this.element)==null||d.webkitGenerateKeyRequest(this.K.keySystem,Q)}return this.Y=new $Y(this.element,this.K,Q,null,null,this.X)}; g.K.E7=function(y){var q=QBg(this,y);q&&q.oJ(y)}; g.K.U7=function(y){var q=QBg(this,y);q&&q.Df(y)}; g.K.Q3=function(y){var q=QBg(this,y);q&&q.AX(y)}; g.K.getMetrics=function(){var y=null;if(this.W&&this.W.getMetrics)try{y=this.W.getMetrics()}catch(q){}return y}; g.K.FV=function(){this.N=this.W=null;var y;(y=this.Y)==null||y.dispose();y=g.t(Object.values(this.G));for(var q=y.next();!q.done;q=y.next())q.value.dispose();this.G={};g.I.prototype.FV.call(this);delete this.element};g.K=xY.prototype;g.K.get=function(y){y=this.findIndex(y);return y!==-1?this.values[y]:null}; g.K.remove=function(y){y=this.findIndex(y);y!==-1&&(this.keys.splice(y,1),this.values.splice(y,1))}; g.K.removeAll=function(){this.keys=[];this.values=[]}; g.K.set=function(y,q){var Q=this.findIndex(y);Q!==-1?this.values[Q]=q:(this.keys.push(y),this.values.push(q))}; g.K.findIndex=function(y){return g.tm(this.keys,function(q){return g.iG(y,q)})};g.x(dr2,g.V6);g.K=dr2.prototype;g.K.Tmp=function(y){this.ye({onecpt:1});y.initData&&OOS(this,new Uint8Array(y.initData),y.initDataType)}; g.K.u0K=function(y){this.ye({onndky:1});OOS(this,y.initData,y.contentType)}; g.K.eJ=function(y){this.ye({onneedkeyinfo:1});this.KK.L("html5_eme_loader_sync")&&(this.X.get(y.initData)||this.X.set(y.initData,y));VFb(this,y)}; g.K.E_=function(y){this.N.push(y);WX(this)}; g.K.createSession=function(y){var q=JD3(this)?Cq9(y):g.Rq(y.initData);this.W.get(q);this.Sj=!0;y=new Zqb(this.videoData,this.KK,y,this.drmSessionId);this.W.set(q,y);y.subscribe("ctmp",this.pB,this);y.subscribe("keystatuseschange",this.fH,this);y.subscribe("licenseerror",this.VL,this);y.subscribe("newlicense",this.HW,this);y.subscribe("newsession",this.z2,this);y.subscribe("sessionready",this.Kx,this);y.subscribe("fairplay_next_need_key_info",this.BW,this);this.KK.L("html5_enable_vp9_fairplay")&&y.subscribe("qualitychange", this.Bo,this);y.subscribe("sabrlicenseconstraint",this.VbV,this);LyH(y,this.Y)}; g.K.HW=function(y){this.iB()||(this.ye({onnelcswhb:1}),y&&!this.heartbeatParams&&(this.heartbeatParams=y,this.publish("heartbeatparams",y)))}; g.K.z2=function(){this.iB()||(this.ye({newlcssn:1}),this.N.shift(),this.Sj=!1,WX(this))}; g.K.Kx=function(){if(wK(this.K)&&(this.ye({onsnrdy:1}),this.vI--,this.vI===0)){var y=this.cI,q,Q;(q=y.element)==null||(Q=q.msSetMediaKeys)==null||Q.call(q,y.N)}}; g.K.fH=function(y){if(!this.iB()){this.Es||(this.Es=!0,this.KK.U9()&&FEp(this));this.ye({onksch:1});var q=this.Bo;if(!hD(y)&&g.iv&&y.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var Q="large";else{Q=[];var p=!0;if(hD(y))for(var v=g.t(Object.keys(y.K)),d=v.next();!d.done;d=v.next())d=d.value,y.K[d].status==="usable"&&Q.push(y.K[d].type),y.K[d].status!=="unknown"&&(p=!1);if(!hD(y)||p)Q=y.Y;Q=Mi9(Q)}q.call(this,Q);if(!hD(y))for(q={},Q=g.t(y.Y),p=Q.next();!p.done;p=Q.next())DZj(y, p.value,q);this.videoData.authorizedFormats=y.authorizedFormats;this.publish("keystatuseschange",y)}}; g.K.pB=function(y,q){this.iB()||this.publish("ctmp",y,q)}; g.K.BW=function(y,q){this.iB()||this.publish("fairplay_next_need_key_info",y,q)}; g.K.VL=function(y,q,Q,p){this.iB()||(this.videoData.L("html5_log_drm_metrics_on_error")&&FEp(this),this.publish("licenseerror",y,q,Q,p))}; g.K.sI=function(){return this.C}; g.K.Bo=function(y){var q=g.lH("auto",y,!1,"l");if(this.videoData.RW){if(this.C.equals(q))return}else if(Ztp(this.C,y))return;this.C=q;this.publish("qualitychange");this.ye({updtlq:y})}; g.K.VbV=function(y){this.videoData.sabrLicenseConstraint=y}; g.K.FV=function(){var y,q;this.K.keySystemAccess&&this.element&&!((y=this.mediaElement)==null?0:(q=y.WI)==null?0:q.VF())&&(this.m3?this.element.setMediaKeys(null).catch(g.zI):this.element.setMediaKeys(null));this.element=null;this.N=[];y=g.t(this.W.values());for(q=y.next();!q.done;q=y.next())q=q.value,q.unsubscribe("ctmp",this.pB,this),q.unsubscribe("keystatuseschange",this.fH,this),q.unsubscribe("licenseerror",this.VL,this),q.unsubscribe("newlicense",this.HW,this),q.unsubscribe("newsession",this.z2, this),q.unsubscribe("sessionready",this.Kx,this),q.unsubscribe("fairplay_next_need_key_info",this.BW,this),this.KK.L("html5_enable_vp9_fairplay")&&q.unsubscribe("qualitychange",this.Bo,this),q.dispose();this.W.clear();this.G.removeAll();this.X.removeAll();this.heartbeatParams=null;g.V6.prototype.FV.call(this)}; g.K.IH=function(){for(var y={systemInfo:this.K.IH(),sessions:[]},q=g.t(this.W.values()),Q=q.next();!Q.done;Q=q.next())y.sessions.push(Q.value.IH());return y}; g.K.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.J?"/KR":"")}; g.K.ye=function(y,q){q=q===void 0?!1:q;this.iB()||(Zr(y),(this.KK.U9()||q)&&this.publish("ctmp","drmlog",y))};var $r2=!1;g.x(xrS,g.I);g.K=xrS.prototype;g.K.mw=function(){return!!this.Go}; g.K.IG=function(){return this.W}; g.K.handleError=function(y){var q=this;LEg(this,y);if((y.errorCode!=="html5.invalidstate"&&y.errorCode!=="fmt.unplayable"&&y.errorCode!=="fmt.unparseable"||!kPg(this,y.errorCode,y.details))&&!HOg(this,y)&&!RcH(this)){if(this.wp.cI!=="yt"&&NAD(this,y)&&this.videoData.lE&&(0,g.SK)()/1E3>this.videoData.lE&&this.wp.cI==="hm"){var Q=Object.assign({e:y.errorCode},y.details);Q.stalesigexp="1";Q.expire=this.videoData.lE;Q.init=this.videoData.Fe/1E3;Q.now=(0,g.SK)()/1E3;Q.systelapsed=((0,g.SK)()-this.videoData.Fe)/ 1E3;y=new g.t7(y.errorCode,Q,2);this.WI.SB(y.errorCode,2,"SIGNATURE_EXPIRED",Zr(y.details))}if(EU(y.severity)){var p;Q=(p=this.WI.loader)==null?void 0:p.K.K;if(this.wp.L("html5_use_network_error_code_enums"))if(a2D(y)&&Q&&Q.isLocked())var v="FORMAT_UNAVAILABLE";else if(this.wp.G||y.errorCode!=="auth"||y.details.rc!==429)y.errorCode==="ump.spsrejectfailure"&&(v="HTML5_SPS_UMP_STATUS_REJECTED");else{v="TOO_MANY_REQUESTS";var d="6"}else a2D(y)&&Q&&Q.isLocked()?v="FORMAT_UNAVAILABLE":this.wp.G||y.errorCode!== "auth"||y.details.rc!=="429"?y.errorCode==="ump.spsrejectfailure"&&(v="HTML5_SPS_UMP_STATUS_REJECTED"):(v="TOO_MANY_REQUESTS",d="6");this.WI.SB(y.errorCode,y.severity,v,Zr(y.details),d)}else this.WI.publish("nonfatalerror",y),p=/^pp/.test(this.videoData.clientPlaybackNonce),this.aB(y.errorCode,y.details),p&&y.errorCode==="manifest.net.connect"&&(y="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.SK)(),jh(y,"manifest",function(T){q.G=!0;q.Rb("pathprobe",T)}, function(T){q.aB(T.errorCode,T.details)}))}}; g.K.Rb=function(y,q){this.WI.G8.Rb(y,q)}; g.K.aB=function(y,q){q=Zr(q);this.WI.G8.aB(y,q)};Z2.prototype.sX=function(y){var q=zc2(this);if(!y)return{rZ:tk,pk:tk,XI:tk,jq:tk,HH:tk,bv:tk,AB:q};var Q=tk;if(Dk(q)||this.L("html5_perf_cap_override_sticky"))Q=eci(this,y);return{rZ:Q,pk:cDC(this,y),XI:nYj(this,y),jq:BA3(this,y.videoData),HH:GP2(this,y.videoData,y),bv:ubH(this,y),AB:q}}; Z2.prototype.PV=function(y){if(g.kt(this.KK)&&P_(this.KK.J,iH.HEIGHT))var q=y.K.videoInfos[0].video.qualityOrdinal;else{var Q=this.py(!!y.K.K);DD(y.videoData)||W4(y.videoData);y=y.K.videoInfos;if(y.length){var p=.85,v=y[0].video;v.projectionType!=="MESH"&&v.projectionType!=="EQUIRECTANGULAR"&&v.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Ov||(p=.45);v=g.wm(this.KK.experiments,"html5_viewport_undersend_maximum");for(var d=0;d=0,stateAtSend:q,joinLatencySecs:d,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:p,playerCanaryStage:v,isAd:this.provider.videoData.isAd(),liveMode:Q,hasDrm:!!g.XI(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:nL(this.provider.videoData)};y||g.wU("html5PlayerHealthEvent",q);this.N=!0;this.dispose()}}; E_.prototype.FV=function(){this.N||this.send();window.removeEventListener("error",this.lX);window.removeEventListener("unhandledrejection",this.lX);g.I.prototype.FV.call(this)}; var QAm=/\bnet\b/;C5g.prototype.update=function(){if(this.X){var y=this.Uu()||0,q=g.pO(this.provider);y>=this.provider.WI.getDuration()-.1&&(this.previouslyEnded=!0);if(y!==this.K||ji3(this,y,q)){var Q;if(!(Q=yq-this.nH+2||ji3(this,y,q))){Q=this.provider.WI.getVolume();var p=Q!==this.j,v=this.provider.WI.isMuted()?1:0;v!==this.C?(this.C=v,Q=!0):(!p||this.Y>=0||(this.j=Q,this.Y=q),Q=q-this.Y,this.Y>=0&&Q>2?(this.Y=-1,Q=!0):Q=!1)}Q&&(LO(this),this.N=y);this.nH=q;this.K=y}}}; C5g.prototype.Uu=function(){var y=this.provider.WI.Uu();return this.provider.KK.L("html5_disable_live_dvr_shrink_for_cdm_vss")&&If(this.provider.videoData)?y+this.provider.WI.bj():y};QiD.prototype.send=function(y){var q=this;if(!this.BI){var Q=v_s(this),p=g.kb(this.uri,Q);this.KK.L("vss_through_gel_double")&&d0f(p);this.Sj&&!this.KK.L("html5_simplify_pings")?J5f(this,p):pM8(this,y).then(function(v){q.Sj&&(v=v||{},v.method="POST",v.postParams={atr:q.attestationResponse});O$9(p,v,{token:q.N$,yb:q.RH,mdxEnvironment:q.mdxEnvironment},q.KK,y,q.gp,q.isFinal&&q.Hn||q.Es||q.N&&q.zI)}); this.BI=!0}}; QiD.prototype.W=function(y){y===void 0&&(y=NaN);return Number(y.toFixed(3)).toString()}; var tQ={},OV8=(tQ.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,tQ.LIVING_ROOM_APP_MODE_MAIN=1,tQ.LIVING_ROOM_APP_MODE_KIDS=2,tQ.LIVING_ROOM_APP_MODE_MUSIC=3,tQ.LIVING_ROOM_APP_MODE_UNPLUGGED=4,tQ.LIVING_ROOM_APP_MODE_GAMING=5,tQ),Et={},VH8=(Et.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Et.EMBEDDED_PLAYER_MODE_DEFAULT=1,Et.EMBEDDED_PLAYER_MODE_PFP=2,Et.EMBEDDED_PLAYER_MODE_PFL=3,Et);g.x(Nr,g.I);g.K=Nr.prototype; g.K.cG=function(){if(!this.N){this.provider.videoData.SQ===16623&&g.zI(Error("Playback for EmbedPage"));var y=RB(this,"playback");this.X=Fxs(this);qhb(this.K);y.X=SF(this);this.W>0&&(y.K-=this.W);y.send();if(this.provider.videoData.h9){y=this.provider.KK;var q=this.provider.videoData,Q={html5:"1",video_id:q.videoId,cpn:q.clientPlaybackNonce,ei:q.eventId,ptk:q.h9,oid:q.N7,ptchn:q.R6,pltype:q.M7,content_v:f$(q)};q.Ew&&Object.assign(Q,{m:q.Ew});y=g.kb(y.Vf+"ptracking",Q);Kx3(this,y)}this.provider.videoData.cB|| (x0j(this),Wx9(this));this.N=!0;y=this.K;y.K=y.Uu();y.nH=g.pO(y.provider);!(y.N===0&&y.K<5)&&y.K-y.N>2&&(y.N=y.K);y.X=!0}}; g.K.onProgress=function(){this.K.update();bV9(this)&&(x0j(this),Wx9(this))}; g.K.FV=function(){g.I.prototype.FV.call(this);HX(this);y5S(this.K)}; g.K.IH=function(){return v_s(RB(this,"playback"))}; g.K.Sa=function(y){var q=RB(this,"engage");q.m3=y;return TI9(q,Lx9(this.provider))};kp9.prototype.isEmpty=function(){return this.endTime===this.startTime};Mr.prototype.L=function(y){return this.KK.L(y)}; Mr.prototype.getCurrentTime=function(){return this.WI.getCurrentTime()}; Mr.prototype.Uu=function(){return this.WI.Uu()}; var azj={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.x(g.l5,g.I);g.K=g.l5.prototype;g.K.cG=function(){this.K&&this.K.cG();this.W&&this.W.cG()}; g.K.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B3){var y;(y=this.N.get(this.B3))==null||y.onProgress()}else if(this.K)this.K.onProgress()}; g.K.hP=function(y){this.qoe&&this.qoe.hP(y)}; g.K.dh=yi(29);g.K.nU=yi(35);g.K.GE=function(y,q){this.qoe&&this.qoe.GE(y,q)}; g.K.Y4=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B3){var y;(y=this.N.get(this.B3))!=null&&LO(y.K)}else this.K&&LO(this.K.K)}; g.K.aB=function(y,q){this.qoe&&N6C(this.qoe,y,q);if(this.W)this.W.onError(y)}; g.K.Om=function(y){var q;(q=this.qoe)==null||q.Om(y)}; g.K.onPlaybackRateChange=function(y){if(this.qoe)this.qoe.onPlaybackRateChange(y);this.K&&LO(this.K.K)}; g.K.GC=yi(52);g.K.Rb=function(y,q,Q){this.qoe&&this.qoe.Rb(y,q,Q)}; g.K.pW=function(y,q,Q){this.qoe&&this.qoe.pW(y,q,Q)}; g.K.Oi=function(y){var q;(q=this.qoe)==null||q.Oi(y)}; g.K.nM=function(y){var q;(q=this.qoe)==null||q.nM(y)}; g.K.Vk=function(y,q,Q,p){var v;(v=this.qoe)==null||v.Vk(y,q,Q,p)}; g.K.qN=function(y){this.qoe&&this.qoe.qN(y)}; g.K.fO=function(y,q,Q){this.qoe&&this.qoe.fO(y,q,Q)}; g.K.KV=yi(23);g.K.VX=function(){if(this.qoe)return this.qoe.VX()}; g.K.IH=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B3){var y,q;return(q=(y=this.N.get(this.B3))==null?void 0:y.IH())!=null?q:{}}return this.K?this.K.IH():{}}; g.K.yc=function(){var y;return(y=this.qoe)==null?void 0:y.yc()}; g.K.tS=function(y,q){var Q;(Q=this.qoe)==null||Q.tS(y,q)}; g.K.Sa=function(y){return this.K?this.K.Sa(y):function(){}}; g.K.getVideoData=function(){return this.provider.videoData}; g.K.resume=function(){this.qoe&&this.qoe.resume()};g.x(g.D2,g.I);g.K=g.D2.prototype;g.K.Tf=function(y,q){this.sync();q&&this.K.array.length>=2E3&&this.w$("captions",1E4);q=this.K;if(y.length>1&&y.length>q.array.length)q.array=q.array.concat(y),q.array.sort(q.K);else{y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())Q=Q.value,!q.array.length||q.K(Q,q.array[q.array.length-1])>0?q.array.push(Q):g.Xc(q.array,Q,q.K)}this.N=NaN;this.sync()}; g.K.DC=function(y){y.length>1E4&&g.zI(new g.GH("Over 10k cueRanges removal occurs with a sample: ",y[0]));if(!this.iB()){var q=new Set(y);this.W=this.W.filter(function(Q){return!q.has(Q)}); g_9(this.K,q);this.sync()}}; g.K.Eh=function(y,q){if(!this.iB()){var Q=this.tR().find(function(p){return p.id===q&&p.namespace===y}); Q&&this.DC([Q])}}; g.K.w$=function(y,q){var Q=(isNaN(this.N)?r58(this):this.N)-q;q=this.tR().filter(function(p){return p.namespace===y&&p.endthis.K,d=g.G(Q,8)&&g.G(Q,16),T=this.WI.G5().isBackground()||Q.isSuspended();BX(this,this.Ty,d&&!T,v,"qoe.slowseek",function(){},"timeout"); var O=isFinite(this.K);O=d&&O&&CK3(q,this.K);var w=!p||Math.abs(p-this.K)>10,J=this.KK.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),F=p===0&&this.W&&[11,10].includes(this.W);BX(this,this.BI,O&&w&&!T&&(!J||!F),v,"qoe.slowseek",function(){q.seekTo(y.K)},"set_cmt"); w=O&&fj(q.Cn(),this.K);var Y=this.WI.loader;O=!Y||Y.zk();var f=function(){q.seekTo(y.K+.001)}; BX(this,this.Es,w&&O&&!T,v,"qoe.slowseek",f,"jiggle_cmt");O=function(){return y.WI.ma()}; BX(this,this.LK,w&&!T,v,"qoe.slowseek",O,"new_elem");var h=e2(Q);F=Q.isBuffering();var b=q.Cn(),Z=YA(b,p),k=Z>=0&&b.end(Z)>p+5;w=h&&F&&k;J=this.WI.getVideoData();BX(this,this.vI,p<.002&&this.K<.002&&d&&g.kt(this.KK)&&g.YW(J)&&!T,v,"qoe.slowseek",O,"slow_seek_shorts");BX(this,this.j,J.jP()&&d&&!T&&!J.j,v,"qoe.slowseek",O,"slow_seek_gapless_shorts");BX(this,this.cI,w&&!T,h&&!F,"qoe.longrebuffer",f,"jiggle_cmt");BX(this,this.N$,w&&!T,h&&!F,"qoe.longrebuffer",O,"new_elem_nnr");if(Y){var S=Y.getCurrentTime(); d=q.ih();d=rxD(d,S);d=!Y.isSeeking()&&p===d;BX(this,this.Se,h&&F&&d&&!T,h&&!F&&!d,"qoe.longrebuffer",function(){q.seekTo(S)},"seek_to_loader")}d={}; f=YA(b,Math.max(p-3.5,0));var N=f>=0&&p>b.end(f)-1.1,l=f>=0&&f+1=0&&N&&l<11;d.close2edge=N;d.gapsize=l;d.buflen=b.length;this.W&&(d.seekSour=this.W);BX(this,this.m3,h&&F&&!T,h&&!F,"qoe.longrebuffer",function(){},"timeout",d); d=Q.isSuspended();d=this.WI.Lm()&&!d;BX(this,this.X,d,!d,"qoe.start15s",function(){y.WI.i9("ad")},"ads_preroll_timeout"); d=this.KK.experiments.ob("html5_use_playback_rate_in_skip_slow_ad")?this.WI.getPlaybackRate()*1E3:1E3;Z=p-this.Y5;BX(this,this.HI,g.YW(J)&&Y,h&&!F,"qoe.longrebuffer",function(){y.WI.Tn()},"reset_media_source"); BX(this,this.Vm,g.YW(J)&&Y,h&&!F,"qoe.longrebuffer",O,"reset_media_element");this.Y===0&&(this.G=p);Y=F&&this.K===0&&p>1&&p===this.G;BX(this,this.gp,g.YW(J)&&Y,h&&!F,"qoe.slowseek",function(){q.seekTo(0)},"reseek_after_time_jump"); T=Q.isOrWillBePlaying()&&!T;k=this.WI.iH()-p<6&&!k&&this.WI.Qn();BX(this,this.C,J.jP()&&T&&F&&k,h&&!F,"qoe.longrebuffer",function(){y.WI.ma(!1,!0)},"handoff_end_long_buffer_reload"); T=this.W===104||this.WI.zT;Q=z1(J)&&J.isAd()&&!J.j&&T&&(F||g.G(Q,8)&&g.G(Q,16));BX(this,this.Dw,Q,v,"qoe.start15s",O,"gapless_ad_slow_start");Q=z1(J)&&!J.j&&T&&w;BX(this,this.Os,Q,v,"qoe.longrebuffer",O,"gapless_slow_start");this.Y=p;this.J.start()}}; eF.prototype.aB=function(y,q,Q){q=this.IH(q);q.wn=Q;q.wdup=this.N[y]?"1":"0";this.WI.aB(new g.t7(y,q));this.N[y]=!0}; eF.prototype.IH=function(y){y=Object.assign(this.WI.IH(!0),y.IH());this.K&&(y.stt=this.K.toFixed(3));this.WI.getVideoData().isLivePlayback&&(y.ct=this.WI.getCurrentTime().toFixed(3),y.to=this.WI.bj().toFixed(3));delete y.uga;delete y.euri;delete y.referrer;delete y.fexp;delete y.vm;return y}; AD.prototype.reset=function(){this.K=this.W=this.N=this.startTimestamp=0;this.Y=!1}; AD.prototype.test=function(y){if(!this.J||this.W)return!1;if(!y)return this.reset(),!1;y=(0,g.SK)();if(!this.startTimestamp)this.startTimestamp=y,this.N=0;else if(this.N>=this.J)return this.W=y,!0;this.N+=1;return!1}; AD.prototype.IH=function(){var y={},q=(0,g.SK)();this.startTimestamp&&(y.wsd=(q-this.startTimestamp).toFixed());this.W&&(y.wtd=(q-this.W).toFixed());this.K&&(y.wssd=(q-this.K).toFixed());return y};g.x(Tjj,g.I);g.K=Tjj.prototype;g.K.setMediaElement=function(y){(this.mediaElement=y)?(this.mediaElement&&(this.J||this.N||!this.mediaElement.M1()||this.seekTo(.01,{tU:"seektimeline_setupMediaElement"})),GP(this)):i5(this)}; g.K.getCurrentTime=function(y){y=y===void 0?!1:y;if(PX(this.WI)){if(this.L("html5_use_centralized_player_time")&&!y&&!isNaN(this.G))return this.G;if(!isNaN(this.W))return this.W}else{if(this.L("html5_use_centralized_player_time")&&!y&&!isNaN(this.G)&&isFinite(this.G))return this.G;if(!isNaN(this.W)&&isFinite(this.W))return this.W}return this.mediaElement&&ZCC(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.N||0}; g.K.UI=function(){return this.BI}; g.K.Uu=function(){return this.getCurrentTime()-this.bj()}; g.K.E8=function(){return this.K?this.K.E8():Infinity}; g.K.isAtLiveHead=function(y){if(!this.K)return!1;y===void 0&&(y=this.getCurrentTime());return U_(this.K,y)}; g.K.DX=function(){return!!this.K&&this.K.DX()}; g.K.seekTo=function(y,q){var Q=q===void 0?{}:q;q=Q.Ie===void 0?!1:Q.Ie;var p=Q.LC===void 0?0:Q.LC;var v=Q.hJ===void 0?!1:Q.hJ;var d=Q.Jr===void 0?0:Q.Jr;var T=Q.tU===void 0?"":Q.tU;var O=Q.seekSource===void 0?void 0:Q.seekSource;var w=Q.Wp===void 0?!1:Q.Wp;var J=Q.dP===void 0?!1:Q.dP;Q=Q.PF===void 0?!1:Q.PF;w&&(y+=this.bj());nL(this.videoData)&&O===29&&(this.BI=void 0);w=y=this.WO())||!g.p$(this.videoData),Z||(k={st:k,mst:this.WO()},this.K&&this.L("html5_high_res_seek_logging")&&(k.ht=this.K.E8(),k.adft=cX(this.K)),this.WI.Rb("seeknotallowed",k)),k=Z));if(!k)return this.Y&&(this.Y=null,Kej(this)),g.uu(this.getCurrentTime());k=.005;J&&this.L("html5_sabr_seek_no_shift_tolerance")&&(k=0);if(Math.abs(y-this.W)<=k&&this.gp)return this.J;T&&(k=y,this.KK.U9()||this.L("html5_log_seek_reasons"))&& (T={reason:T,tgt:k},this.L("html5_sabr_csdai_seek_log")&&(T.source=O),this.WI.Rb("seekreason",T));O&&(this.cI.W=O);this.gp&&i5(this);this.J||(this.J=new M6);y&&!isFinite(y)&&JIf(this,!1);(T=Q||w)||(T=y,T=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.K&&!(this.mediaElement&&this.mediaElement.j0()>0&&z$(this.mediaElement)>0)||of(this.videoData)&&this.PT()===this.WO(!1)?0:isFinite(T)||!of(this.videoData)));T||(y=Xb(this,y,v));y&&!isFinite(y)&&JIf(this,!1);this.L("html5_use_centralized_player_time")? this.G=y:this.W=this.N=y;this.Vm=d;this.X=0;this.K&&(v=this.K,d=y,qG3(v,d,!1),jHH(v,d));v=this.WI;d=y;T={Ie:q,seekSource:O};v.GD.N=d;Q=v.xq;Q.mediaTime=d;Q.K=!0;T.Ie&&v.Tp(T);T=d>v.videoData.endSeconds&&d>v.videoData.limitedPlaybackDurationInSeconds;v.qr&&T&&isFinite(d)&&mQb(v);dq.start&&mQb(this.WI);return this.J}; g.K.WO=function(y){if(!this.videoData.isLivePlayback)return this.WI.videoData.WO();var q;return aF(this.videoData)&&((q=this.mediaElement)==null?0:q.isPaused())&&this.videoData.K?(y=this.getCurrentTime(),TcH(this.Sb(y)*1E3)+y):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&nL(this.videoData)&&this.videoData.K?y?this.videoData.K.m3||0:this.videoData.K.dk||0:of(this.videoData)&&this.videoData.m3&&this.videoData.K?this.videoData.K.WO()+this.timestampOffset:this.videoData.N&&this.videoData.N.K? !y&&this.K?this.K.E8():this.WI.videoData.WO()+this.timestampOffset:this.mediaElement?ib()?TcH(this.mediaElement.Bu().getTime()):z$(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.K.PT=function(){if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&nL(this.videoData)){var y;return((y=this.videoData.K)==null?void 0:y.R2)||0}y=this.videoData?this.videoData.PT()+this.timestampOffset:this.timestampOffset;if(aF(this.videoData)&&this.videoData.K){var q,Q=Number((q=this.videoData.progressBarStartPosition)==null?void 0:q.utcTimeMillis)/1E3;if(!isNaN(Q)&&(q=this.e_(Q),!isNaN(q)))return Math.max(y,q)}return y}; g.K.u3=function(){this.J||this.seekTo(this.N,{tU:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.K.rq=function(){return this.gp&&!isFinite(this.W)}; g.K.FV=function(){Fe8(this,null);this.cI.dispose();g.I.prototype.FV.call(this)}; g.K.IH=function(){var y={};this.loader&&Object.assign(y,this.loader.IH());this.mediaElement&&Object.assign(y,this.mediaElement.IH());return y}; g.K.vg=function(y){this.timestampOffset=y}; g.K.getStreamTimeOffset=function(){return of(this.videoData)?0:this.videoData.K?this.videoData.K.getStreamTimeOffset():0}; g.K.bj=function(){return this.timestampOffset}; g.K.Sb=function(y){return this.videoData&&this.videoData.K?this.videoData.K.Sb(y-this.timestampOffset):NaN}; g.K.v1=function(){if(!this.mediaElement)return 0;if(v4(this.videoData)){var y=this.mediaElement,q=y.Cn();y=($A(q)&&y.getDuration()?q.end(q.length-1):0)+this.timestampOffset-this.PT();q=this.WO()-this.PT();return Math.max(0,Math.min(1,y/q))}return this.mediaElement.v1()}; g.K.x8=function(y){this.C&&(this.C.K=y)}; g.K.W7=function(y,q){this.WI.Rb("requestUtcSeek",{time:y});nL(this.videoData)&&(this.BI=y);var Q;(Q=this.loader)==null||Q.W7(y);q&&(this.Sj=q)}; g.K.fA=function(y){nL(this.videoData)&&(this.BI=void 0);this.Sj?(this.WI.Rb("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Sj}),this.WI.seekTo(this.Sj,{tU:"utcSeekingFallback_streamTime"}),this.Sj=0):(y=this.e_(y),isNaN(y)||(this.WI.Rb("utcSeekingFallback",{source:"estimate",timeSeconds:y}),this.WI.seekTo(y,{tU:"utcSeekingFallback_estimate"})))}; g.K.kq=function(){this.Sj=0}; g.K.e_=function(y){var q=this.getCurrentTime();if(isNaN(q))return NaN;var Q=this.Sb(q);return isNaN(Q)?NaN:y-(Q-q)}; g.K.L=function(y){return this.KK&&this.KK.L(y)};g.x(mE,g.I);mE.prototype.start=function(){this.W.start()}; mE.prototype.stop=function(){this.W.stop()}; mE.prototype.clear=function(){for(var y=g.t(this.K.values()),q=y.next();!q.done;q=y.next())q.value.clear()}; mE.prototype.sample=function(){for(var y=g.t(this.N),q=y.next();!q.done;q=y.next()){var Q=g.t(q.value);q=Q.next().value;Q=Q.next().value;this.K.has(q)||this.K.set(q,new NjS(pkc.has(q)));this.K.get(q).update(Q())}this.W.start()}; var pkc=new Set(["networkactivity"]);NjS.prototype.update=function(y){this.W?(this.buffer.add(y-this.K||0),this.K=y):this.buffer.add(y)}; NjS.prototype.clear=function(){this.buffer.clear();this.K=0};q0.prototype.Ag=function(){return this.started}; q0.prototype.start=function(){this.started=!0}; q0.prototype.reset=function(){this.finished=this.started=!1};var MWC=!1;g.x(g.vM,g.V6);g.K=g.vM.prototype;g.K.FV=function(){g.tM(this.jO);bOj(this.ol);this.visibility.unsubscribe("visibilitystatechange",this.ol);Sh3(this.G8);g.w5(this.G8);Oh(this);g.BH.FM(this.DE);this.Qf();this.wd=null;g.w5(this.videoData);g.w5(this.YE);g.w5(this.zi);g.w5(this.Ti);g.JT(this.cwI);this.qr=null;g.V6.prototype.FV.call(this)}; g.K.fO=function(y,q,Q,p,v){if(this.KK.L("html5_log_ad_playback_docid")){var d=this.G8;if(d.qoe){d=d.qoe;var T=this.KK.cI||"yt";g.qr(d,g.pO(d.provider),"ad_playback",[y,q,Q,v,T])}}else this.G8.fO(y,q,Q);this.L("html5_log_media_perf_info")&&this.Rb("adloudness",{ld:p.toFixed(3),cpn:y})}; g.K.Z$=function(){var y;return(y=this.loader)==null?void 0:y.Z$()}; g.K.hL=function(){var y;return(y=this.loader)==null?void 0:y.hL()}; g.K.ES=function(){var y;return(y=this.loader)==null?void 0:y.ES()}; g.K.GO=function(){var y;return(y=this.loader)==null?void 0:y.GO()}; g.K.AR=function(){return this.videoData.AR()}; g.K.VF=function(){return this.L("html5_not_reset_media_source")}; g.K.hx=function(){this.videoData.X&&(this.videoData.Lq=this.videoData.Lq||this.Z3.tK().Z$(),this.videoData.GH=this.videoData.GH||this.Z3.tK().hL());if(PES(this.videoData)||!kW(this.videoData)){var y=this.videoData.errorDetail;this.SB(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),y,y,this.videoData.Fa||void 0)}this.L("html5_generate_content_po_token")&&this.QH();this.L("html5_enable_d6de4")&&this.fz()}; g.K.getVideoData=function(){return this.videoData}; g.K.T=function(){return this.KK}; g.K.sX=function(){return this.cJ.sX(this.wd)}; g.K.G5=function(){return this.visibility}; g.K.Qc=function(){return this.mediaElement&&this.mediaElement.yg()?this.mediaElement.aH():null}; g.K.OW=function(){return this.mediaElement}; g.K.jp=function(){if(this.videoData.errorCode)return!1;this.T().G&&this.T().houseBrandUserStatus&&this.Rb("hbut",{status:this.T().houseBrandUserStatus},!0);if(this.videoData.hj())return!0;this.SB("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.K.Jl=function(y){(y=y===void 0?!1:y)||NIi(this.G8);this.HM=y;!this.jp()||this.I1.Ag()?g.kt(this.KK)&&this.videoData.isLivePlayback&&this.I1.Ag()&&!this.I1.finished&&!this.HM&&this.ND():(this.I1.start(),y=this.G8,g.pO(y.provider),y.qoe&&L_9(y.qoe),this.ND())}; g.K.ND=function(){if(this.videoData.isLoaded()){var y=this.YE;g.wm(y.wp.experiments,"html5_player_min_build_cl")>0&&g.wm(y.wp.experiments,"html5_player_min_build_cl")>805151667&&S_p(y,"oldplayer");Gz9(this)}else this.videoData.W_||this.videoData.oL?this.HM&&g.kt(this.KK)&&this.videoData.isLivePlayback||(this.videoData.W_?Muj(this.videoData):(y=this.G8,y.qoe&&(y=y.qoe,dA(y,"protected"),y.provider.videoData.J?y.JB():y.provider.videoData.subscribe("dataloaded",y.JB,y)),SkS(this.videoData))):!this.videoData.loading&& this.I$&&AI2(this)}; g.K.nR=function(y){this.X0=y;this.loader&&(dZs(this.loader,new g.wA(y)),this.Rb("sdai",{sdsstm:1}))}; g.K.wQ=function(y,q,Q){var p;(p=this.loader)==null||p.wQ(y,q,Q)}; g.K.J7=yi(8);g.K.isFullscreen=function(){return this.visibility.isFullscreen()}; g.K.isBackground=function(){return this.visibility.isBackground()}; g.K.LP=function(){var y=this;Tp(this).then(function(){return pV(y)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.K.zp=function(){this.mediaElement&&this.mediaElement.activate();this.Jl();this.jp()&&!g.G(this.playerState,128)&&(this.Oc.Ag()||(this.Oc.start(),this.videoData.fV?this.R7(UA(this.playerState,4)):this.R7(UA(UA(this.playerState,8),1))),eY9(this))}; g.K.J4=function(){return this.I1.finished}; g.K.sendAbandonmentPing=function(){g.G(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.H$(!0),Sh3(this.G8),g.w5(this.G8),g.BH.FM(this.DE))}; g.K.Bh=function(y,q,Q){y=y===void 0?!0:y;(q===void 0||q)&&this.mediaElement&&this.mediaElement.pause();y&&Q&&this.loader&&of(this.videoData)&&this.loader.Vk(Q);this.R7(y?new g.nj(14):new g.nj)}; g.K.Eg=function(){this.G8.Y4()}; g.K.SB=function(y,q,Q,p,v,d){var T,O;g.YG(bv_,Q)?T=Q:Q?O=Q:T="GENERIC_WITHOUT_LINK";p=(p||"")+(";a6s."+pr());if(y==="auth"||y==="drm.auth"||y==="heartbeat.stop")Q&&(p+=";r."+Q.replaceAll(" ","_")),d&&(p+="sr."+d.replaceAll(" ","_"));q={errorCode:y,errorDetail:v,errorMessage:O||g.BT[T]||"",K_:T,Fa:d||"",SH:p,rA:q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=y;Vc(this,"dataloaderror");this.R7(cb(this.playerState,128,q));g.BH.FM(this.DE);Oh(this);this.BC()}; g.K.i9=function(y){this.CO=this.CO.filter(function(q){return y!==q}); this.Oc.Ag()&&eY9(this)}; g.K.JM=function(){var y;(y=!!this.CO.length)||(y=this.m0.K.array[0],y=!!y&&y.start<=-0x8000000000000);return y}; g.K.DX=function(){return this.GD.DX()}; g.K.isPlaying=function(){return this.playerState.isPlaying()}; g.K.BM=function(){return this.playerState.BM()&&this.videoData.fV}; g.K.getPlayerState=function(){return this.playerState}; g.K.xN=function(y){var q;(q=this.loader)==null||q.xN(y)}; g.K.VR=function(y){var q;(q=this.loader)==null||q.VR(y)}; g.K.getPlayerType=function(){return this.playerType}; g.K.getPreferredQuality=function(){if(this.wd){var y=this.wd;y=y.videoData.wJ.compose(y.videoData.QC);y=It(y)}else y="auto";return y}; g.K.Gx=yi(16);g.K.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.K.setMediaElement=function(y){if(this.mediaElement&&y.aH()===this.mediaElement.aH()&&(y.isView()||this.mediaElement.isView())){if(y.isView()||!this.mediaElement.isView())this.w3(),this.mediaElement=y,this.mediaElement.WI=this,Ok3(this),this.GD.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Qf();if(!this.playerState.isError()){var q=rQ(this.playerState,512);g.G(q,8)&&!g.G(q,2)&&(q=UA(q,1));y.isView()&&(q=rQ(q,64));this.R7(q)}this.mediaElement=y;this.mediaElement.WI=this;!g.kt(this.KK)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Ok3(this);this.GD.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.YE.mw()&&PKD(this.mediaElement)}}; g.K.Qf=function(y,q,Q){y=y===void 0?!1:y;q=q===void 0?!1:q;Q=Q===void 0?!1:Q;if(this.mediaElement){var p=this.getCurrentTime();p>0&&(this.GD.N=p);this.GD.setMediaElement(null);!y&&this.VF()?vhf(this):this.mV(Q);this.loader&&(Pm(this.loader),Y_(this,q));this.RX.stop();if(this.mediaElement&&(!this.Oc.Ag()&&!this.Lm()||this.playerState.isError()||g.G(this.playerState,2)||this.R7(UA(this.playerState,512)),this.mediaElement)){this.w3();if(y||!this.mediaElement.isView())this.gm.dI("mesv_s"),this.mediaElement.stopVideo(), fV(this);this.mediaElement=this.mediaElement.WI=null}}}; g.K.playVideo=function(y,q){y=y===void 0?!1:y;q=q===void 0?!1:q;var Q=this,p,v,d,T,O,w;return g.M(function(J){if(J.K==1){var F=window.google_image_requests;F&&F.length>10&&(window.google_image_requests=F.slice(-10));if(g.G(Q.playerState,128))return J.return();if(Q.YE.IG())return Q.publish("signatureexpired"),J.return();Q.mediaElement&&NIi(Q.G8);Q.zp();(g.G(Q.playerState,64)||y)&&Q.R7(UA(Q.playerState,8));return Q.Oc.finished&&Q.mediaElement?Q.wd||!Q.Um?J.ej(2):g.R(J,Q.Um,3):J.return()}if(J.K!=2&& g.G(Q.playerState,128))return J.return();if(!Q.videoData.N)return Q.videoData.isLivePlayback&&!g.Hg(Q.KK.J,!0)?(p="html5.unsupportedlive",v=2):(p=Q.videoData.AR()?"fmt.unplayable":"fmt.noneavailable",v=1),g.zI(Error("selectableFormats")),Q.SB(p,v,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),J.return();if(Q.yF()&&Q.videoData.N.K)return J.return(Tp(Q));if(PX(Q))F=Q.GD,rx(F.videoData)&&!F.isAtLiveHead(F.getCurrentTime())&&F.DX()&&F.WI.seekTo(Infinity,{tU:"seektimeline_peggedToLive", seekSource:34});else if(rx(Q.videoData)&&(d=Q.getCurrentTime()T;if(!O||!T){v&&O&&(d=Math.max(d,v));var w;v=Drp(q,(w=p.K)==null?void 0:w.videoInfos);w=q.WI.getPlaybackRate();w>1&&v&&(w=wS3(q.KK.J,p.K.videoInfos,w),y.K!==0&&w=480;if(q.L("html5_perf_cap_override_sticky")){J=q.N;q=q.L("html5_perserve_av1_perf_cap");q=q===void 0?!1:q;if(q===void 0?0:q){F=kF();y=g.t(Object.keys(F));for(d=y.next();!d.done;d=y.next())d=d.value,d.indexOf("1")!==0&&delete F[d];g.DW("yt-player-performance-cap",F,2592E3)}else g.Ie("yt-player-performance-cap");Vw2(q);if(q){q= g.t(vg.keys());for(F=q.next();!F.done;F=q.next())F=F.value,F.startsWith("1")||vg.delete(F);q=g.t(tD.values());for(F=q.next();!F.done;F=q.next())F=F.value,F.startsWith("1")||tD.delete(F);q=g.t(J.keys());for(F=q.next();!F.done;F=q.next())F=F.value,F.startsWith("1")||J.delete(F)}else vg.clear(),tD.clear(),J.clear()}}}}this.loader&&(q=this.loader,Q=Q||"",q.policy.K?$c(q.Y.K,Q):$c(q.K.J,Q));this.GY()}; g.K.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.K?It(this.videoData.wJ):uH[to()]}; g.K.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.K.setUserAudio51Preference=function(y,q){this.getUserAudio51Preference()!==y&&(this.Rb("toggle51",{pref:y}),g.DW("yt-player-audio51",y,q?31536E3:2592E3),this.LP())}; g.K.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.K.setProximaLatencyPreference=function(y){var q=this.getProximaLatencyPreference();this.Rb("proxima",{pref:y});g.DW("yt-player-proxima-pref",y,31536E3);q!==y&&(y=this.GD,y.Dw=!0,y.WI.seekTo(Infinity,{tU:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.K.getProximaLatencyPreference=function(){var y;return(y=E1())!=null?y:0}; g.K.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.K.QH=function(){this.videoData.videoId?this.Z3.QH(this.videoData):this.Rb("povid",{})}; g.K.fz=function(){this.videoData.videoId?this.Z3.fz(this.videoData):this.Rb("piavid",{})}; g.K.GY=function(){if(!this.iB()&&!g.G(this.playerState,128)&&this.videoData.N){if(this.videoData.N.K)Qc(this);else{var y=FF(this),q=this.videoData;a:{var Q=this.videoData.EW;if(y.K){for(var p=g.t(Q),v=p.next();!v.done;v=p.next()){v=v.value;var d=v.getInfo(),T=g.A7[d.video.quality];if((!y.N||d.video.quality!=="auto")&&T<=y.K){Q=v;break a}}Q=Q[Q.length-1]}else Q=Q[0]}q.Ty=Q;Ck8(this,y.reason,FTS(this,this.videoData.Ty))}if(this.L("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.GD.j= !1,this.playVideo()}}; g.K.vL=function(y,q){if(this.iB()||g.G(this.playerState,128))return!1;var Q,p=!((Q=this.videoData.N)==null||!Q.K);Q=p&&q?this.getCurrentTime()-this.bj():NaN;if(y.ZG&&y.ZG.id){var v=this.G8;if(v.qoe){v=v.qoe;var d=[y.ZG.id,isNaN(Q)?"m":"t"];g.qr(v,g.pO(v.provider),"afi",d)}}if(p)return q&&(p=YGD(this.GD),this.Rb("aswh",{id:y.id,xtags:y.xtags,bh:p.toFixed(3)})),this.loader.setAudioTrack(y,Q,q),!0;if(qZS(this)){a:{q=this.mediaElement.audioTracks();for(p=0;pd.Zw.getDuration()&&VOg(d,T)):VOg(d,J);var F=d.loader,Y=d.Zw;O=O===void 0?!1:O;w=w===void 0?!1:w;F.policy.gp&&(F.policy.vI&&F.Rb("loader",{setsmb:0}),F.n1(),F.policy.gp=!1);As3(F,w);if(!Hb(Y)){var f=xd(F.videoTrack),h=xd(F.audioTrack),b=(f?f.info.K:F.videoTrack.K).info,Z=(h?h.info.K:F.audioTrack.K).info,k=F.policy.oE, S=b.mimeType+(k===void 0?"":k),N=Z.mimeType,l=b.nK,u=Z.nK,c;Y.cI=(c=Y.Zw)==null?void 0:c.addSourceBuffer(N);var X;Y.N$=S.split(";")[0]==="fakesb"?void 0:(X=Y.Zw)==null?void 0:X.addSourceBuffer(S);Y.GW&&(Y.GW.webkitSourceAddId("0",N),Y.GW.webkitSourceAddId("1",S));var A=new tX(Y.cI,Y.GW,"0",Gw(N),u,!1),Tf=new tX(Y.N$,Y.GW,"1",Gw(S),l,!0);emb(Y,A,Tf)}f=O;h=w;f=f===void 0?!1:f;h=h===void 0?!1:h;ey(F.videoTrack,Y.W||null,h);ey(F.audioTrack,Y.K||null,h);F.Zw=Y;F.Zw.Y=!0;f||F.resume();Y.K.b7(F.BI,F);Y.W.b7(F.BI, F);try{F.Jj()}catch(OC){g.l$(OC)}d.publish("mediasourceattached")}}catch(OC){g.zI(OC),d.handleError(new g.t7("fmt.unplayable",{msi:"1",ename:OC&&typeof OC==="object"&&"name"in OC?String(OC.name):void 0,trg:"setmediasrc"},1))}} var d=this;q=q===void 0?!1:q;Q=Q===void 0?!1:Q;TJf(this,p===void 0?!1:p);this.Zw=y;this.VF()&&RJ(this.Zw)==="open"?v(this.Zw):Ax3(this.Zw,v)}; g.K.eJ=function(y){this.q2.set(y.initData,y);this.q4&&(this.q4.eJ(y),this.L("html5_eme_loader_sync")||this.q2.remove(y.initData))}; g.K.Qv=function(y){this.videoData.dJ=g.lH("auto",y,!1,"u");Qc(this)}; g.K.x8=function(y){var q=y.reason,Q=y.K.info,p=y.token,v=y.videoId,d=this.G8,T=this.videoData;if(Q!==T.Y){var O=!T.Y;T.Y=Q;q!=="m"&&q!=="t"&&(q=O?"i":"a");var w=q==="m"||q==="t";this.KK.experiments.ob("html5_refactor_sabr_audio_format_selection_logging")?this.JZ=new MF8(T,Q,q,"",p,v):(q=new MF8(T,Q,q,"",p),d.qoe&&(d=d.qoe,Q=g.pO(d.provider),ltf(d,Q,q)));this.publish("internalaudioformatchange",T,!O&&w)}this.L("html5_enable_audio_feature_manager")&&this.Qe();this.GD.x8(y.K.index)}; g.K.X6=function(y){this.publish("localmediachange",y)}; g.K.jG=function(y){y=y===void 0?{}:y;var q;(q=this.loader)==null||q.jG(this.KK,uc(this.videoData),y)}; g.K.IG=function(){return this.YE.IG()}; g.K.v$=function(y){this.aB(new g.t7("staleconfig",{reason:y}))}; g.K.handleError=function(y){this.YE.handleError(y)}; g.K.mw=function(){return this.YE.mw()}; g.K.fA=function(y){this.GD.fA(y)}; g.K.ma=function(y,q){y=y===void 0?!1:y;q=q===void 0?!1:q;var Q=this,p,v,d;return g.M(function(T){if(T.K==1){Q.loader&&Q.loader.Gk();Q.loader&&Q.loader.iB()&&Oh(Q);if(Q.L("html5_enable_vp9_fairplay")&&Q.AR()&&(p=Q.videoData.K)!=null)for(var O in p.K)p.K.hasOwnProperty(O)&&(p.K[O].K=null,p.K[O].N=!1);Q.R7(UA(Q.playerState,2048));Q.publish("newelementrequired");return y?g.R(T,Tp(Q),2):T.ej(2)}Q.videoData.E9()&&((v=Q.loader)==null?0:v.gp)&&!PX(Q)&&((d=Q.isAtLiveHead())&&rx(Q.videoData)?Q.seekTo(Infinity, {tU:"videoPlayer_getNewElement"}):Q.videoData.Gf&&Q.loader&&(O=Q.loader,O.pK.E9&&(O.pK.Gf||O.pK.Y||O.pK.isPremiere?(O.seek(0,{tU:"loader_resetSqless"}),O.videoTrack.X=!0,O.audioTrack.X=!0,O.videoTrack.J=!0,O.audioTrack.J=!0):jz(O.pK)&&wq(O))));q&&Q.seekTo(0,{seekSource:105});g.G(Q.playerState,8)&&Q.playVideo();g.tH(T)})}; g.K.L$=function(y){this.Rb("hgte",{ne:+y});this.videoData.X=!1;y&&this.ma();this.loader&&oWD(this.loader)}; g.K.Yw=function(y){this.Rb("newelem",{r:y});this.ma()}; g.K.pauseVideo=function(y){y=y===void 0?!1:y;if((g.G(this.playerState,64)||g.G(this.playerState,2))&&!y)if(g.G(this.playerState,8))this.R7(oJ(this.playerState,4,8));else if(this.BM())pV(this);else return;g.G(this.playerState,128)||(y?this.R7(UA(this.playerState,256)):this.R7(oJ(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.p$(this.videoData)&&this.loader&&Y_(this,!1)}; g.K.stopVideo=function(){this.pauseVideo();this.loader&&(Y_(this,!1),this.loader.n1())}; g.K.BC=function(y,q){y=y===void 0?!1:y;q=q===void 0?!1:q;if(this.VF()&&q){var Q;(Q=this.mediaElement)==null||Q.BC()}else{var p;(p=this.mediaElement)==null||p.stopVideo()}fV(this);Oh(this);g.G(this.playerState,128)||(y?this.R7(rQ(rQ(UA(this.playerState,4),8),16)):this.R7(cb(this.playerState)));this.videoData.videoId&&this.KK.vI.remove(this.videoData.videoId)}; g.K.seekTo=function(y,q){q=q===void 0?{}:q;g.G(this.playerState,2)&&pV(this);q.uQV&&this.R7(UA(this.playerState,2048));if((q.seekSource===58||q.seekSource===60)&&this.L("html5_update_vss_during_gapless_seeking")){var Q=this.G8;Q.K&&(Q=Q.K,q.seekSource===58?Q.K.update():Q.N&&(HX(Q),s_(Q).send(),Q.Y=NaN))}this.GD.seekTo(y,q);this.m0.sync()}; g.K.Tp=function(y){this.gm.Y.W=(0,g.SK)();g.G(this.playerState,32)||(this.R7(UA(this.playerState,32,y==null?void 0:y.seekSource)),g.G(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.xj()}; g.K.Gz=function(y){y=y==null?void 0:y.seekSource;g.G(this.playerState,32)?(this.R7(oJ(this.playerState,16,32,y)),this.publish("endseeking")):g.G(this.playerState,2)||this.R7(UA(this.playerState,16,y));y=this.gm.Y;var q=this.videoData,Q=this.playerState.isPaused();if(q.clientPlaybackNonce&&!isNaN(y.K)){if(Math.random()<.01){Q=Q?"pbp":"pbs";var p={startTime:y.K};q.G&&(p.cttAuthInfo={token:q.G,videoId:q.videoId});ug("seek",p);g.D_({clientPlaybackNonce:q.clientPlaybackNonce},"seek");isNaN(y.W)||zn("pl_ss", y.W,"seek");zn(Q,(0,g.SK)(),"seek")}y.reset()}}; g.K.ez=function(y){this.Gz(y)}; g.K.yv=function(){this.publish("SEEK_COMPLETE")}; g.K.ZE=function(y){var q=this.Z3,Q=this.videoData.clientPlaybackNonce,p=this.playerType;if(y.scope===4){var v=y.type;if(v){var d=q.K3(),T=d.getVideoData().clientPlaybackNonce;p===1&&(T=Q);if(p=Mg2(q,T)){if(Q=p.getVideoData())y.writePolicy===2&&Q.sabrContextUpdates.has(v)||(y.sendByDefault&&Q.Dw.add(v),Q.sabrContextUpdates.set(v,y)),q.L("html5_enable_t1_enf_on_sabr")&&(y=v===5,v=bzS(Q.playerResponse),y?(y=v?1:0,FM(y,"m.p_",{}),ip("MBSTAT",y)):y=1,y===0&&q.xf.AK("onAbnormalityDetected"))}else d.Rb("scuset", {ncpf:"1",ccpn:T,crcpn:Q})}else g.zI(Error("b/380308491: contextUpdateType is undefined"))}}; g.K.L_=function(){if(this.playerType===2)return this.Z3.L_("")}; g.K.getCurrentTime=function(y){return this.GD.getCurrentTime(y===void 0?!1:y)}; g.K.UI=function(){return this.GD.UI()}; g.K.Uu=function(){return this.GD.Uu()}; g.K.p_=function(){return this.Uu()}; g.K.E8=function(){return this.GD.E8()}; g.K.getPlaylistSequenceForTime=function(y){return this.videoData.getPlaylistSequenceForTime(y-this.bj())}; g.K.gk=function(){var y=NaN;this.mediaElement&&(y=this.mediaElement.gk());return y>=0?y:this.getCurrentTime()}; g.K.Sb=function(){var y;return((y=this.videoData.K)==null?0:y.Sb)?this.videoData.K.Sb(this.getCurrentTime()-this.bj()):this.mediaElement&&(y=this.mediaElement.Bu())&&(y=y.getTime(),!isNaN(y))?y/1E3+this.getCurrentTime():NaN}; g.K.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.bj():this.WO()?this.WO():0}; g.K.Dg=function(){var y=new lzf;if(this.loader){var q=this.KK.schedule,Q=this.KK.U9();Q=Q===void 0?!1:Q;y.Ug=q.m3;y.nW=q.Vm;y.bandwidthEstimate=yK(q);if(Q){Q=(q.C.Io()*1E3).toFixed();var p=(q.gp.Io()*1E3).toFixed(),v=Xh(q).toFixed(2),d=((q.X.Io()||0)*1E9).toFixed(2),T=q.N.Io().toFixed(0),O=q.Es.Io().toFixed(0),w=q.j.percentile(.5).toFixed(2),J=q.j.percentile(.92).toFixed(2),F=q.j.percentile(.96).toFixed(2),Y=q.j.percentile(.98).toFixed(2);q.K?q.K.reset():q.K=new cg;q.K.add(q.Sj);q.K.add(q.interruptions.length); for(var f=0,h=q.interruptions.length-1;h>=0;h--){var b=q.interruptions[h];q.K.add(b-f);f=b}f=0;for(h=q.Y.length-1;h>=0;h--){b=q.Y[h];var Z=b.stamp/36E5;q.K.add(Z-f);f=Z;q.K.add(b.net/1E3);q.K.add(b.max)}q=q.K.W3();y.K={ttr:Q,ttm:p,d:v,st:d,bw:T,abw:O,v50:w,v92:J,v96:F,v98:Y,"int":q}}q=this.loader;q.Zw&&q.Zw.Y&&!q.Zw.Pt()&&(y.lJ=mt(q.videoTrack),y.W=mt(q.audioTrack),q.policy.N&&(Q=iM(q.videoTrack),p=iM(q.audioTrack),v=F7(q.Zw.W.m5(),"_",5),d=F7(q.Zw.K.m5(),"_",5),Object.assign(y.K,{lvq:Q,laq:p,lvb:v, lab:d})));y.bandwidthEstimate=pP(q.j);var k;(k=q.audioTrack.j)==null||k.flush();var S;(S=q.videoTrack.j)==null||S.flush()}else this.mediaElement&&(y.lJ=DU(this.mediaElement));y.Ug=this.Ug;y.nW=this.nW;y.N=this.isAtLiveHead()&&this.isPlaying()?rIs(this):NaN;k=this.GD;k=k.K?cX(k.K):0;y.Y=k;return y}; g.K.CM=function(y,q){this.nW+=y;this.Ug+=q}; g.K.v1=function(){return this.mediaElement?g.p$(this.videoData)?1:v4(this.videoData)?this.isAtLiveHead()||this.DX()?1:this.GD.v1():this.mediaElement.v1():0}; g.K.lO=function(){var y=this.MM,q=yc(y,"bandwidth"),Q=yc(y,"bufferhealth"),p=yc(y,"livelatency"),v=yc(y,"networkactivity"),d=CO(y,"bandwidth"),T=CO(y,"bufferhealth"),O=CO(y,"livelatency");y=CO(y,"networkactivity");var w=this.Oj(),J=w.droppedVideoFrames;w=w.totalVideoFrames;var F=this.getCurrentTime();if(this.q4){var Y="IT/"+(this.q4.K.getInfo()+"/"+It(this.sI()));Y+="/"+this.q4.getInfo()}else Y="";var f=this.isGapless(),h=this.gS(),b=this.VX(),Z=g.J5(this),k=this.getPlayerState(),S=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var N=0;var l="";if(this.X0){if(this.X0.WA){l="D,";break a}N=this.X0.MW;l=this.X0.jB.substring(0,4)}N>0?(N="AD"+N+", ",l&&(N+=l+", "),l=N):l=""}return{Av:d,cE:T,currentTime:F,fb:Y,droppedVideoFrames:J,isGapless:f,gS:h,Qq:b,Br:q,kS:Q,Hr:p,zr:v,oR:O,rz:y,gZ:Z,playerState:k,Lx:S,NQ:l,totalVideoFrames:w}}; g.K.IH=function(y){var q={};if(y===void 0?0:y){Object.assign(q,this.G8.IH());this.mediaElement&&(Object.assign(q,this.mediaElement.IH()),y=this.Oj(),q.dvf=y.droppedVideoFrames,q.tvf=y.totalVideoFrames);this.loader&&Object.assign(q,this.loader.IH());this.q4&&(q.drm=JSON.stringify(this.q4.IH()));q.state=this.playerState.state.toString(16);g.G(this.playerState,128)&&(q.debug_error=JSON.stringify(this.playerState.kJ));this.JM()&&(q.prerolls=this.CO.join(","));this.videoData.Mz&&(q.ismb=this.videoData.Mz); this.videoData.latencyClass!=="UNKNOWN"&&(q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)q.is_mosaic=1;this.videoData.cotn&&(q.is_offline=1,q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(q.playerResponseCpn=this.videoData.playerResponseCpn);this.Z3.isOrchestrationLeader()&&(q.leader=1);this.videoData.isLivePlayback&& (this.videoData.K&&ms(this.videoData.K)&&(q.segduration=ms(this.videoData.K)),y=this.GD,q.lat=y.C?PLg(y.C.Y):0,q.liveutcstart=this.videoData.liveUtcStartSeconds);q.relative_loudness=this.videoData.Bn.toFixed(3);if(y=g.J5(this))q.optimal_format=y.video.qualityLabel;q.user_qual=to();q.release_version=V[15]}q.debug_videoId=this.videoData.videoId;return q}; g.K.addCueRange=function(y){this.Al([y])}; g.K.removeCueRange=function(y){this.m0.DC([y])}; g.K.U2=function(){var y=this.m0;if(y.WI.T().L("html5_sort_cueranges_on_update")&&!(y.tR().length<=0||y.iB())){var q=y.K;q.array.sort(q.K)}y.sync()}; g.K.w$=function(y,q){return this.m0.w$(y,q)}; g.K.Al=function(y,q){this.m0.Tf(y,q)}; g.K.j3=function(y){this.m0.DC(y)}; g.K.tR=function(){return this.m0.tR()||[]}; g.K.hF=function(){return this.U3}; g.K.yF=function(){return this.visibility.yF()}; g.K.lw=function(){this.mediaElement&&this.mediaElement.lw()}; g.K.K5j=function(){Vc(this)}; g.K.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.K.w3=function(){g.lw(this.Yg)}; g.K.Rmm=function(){this.xj();this.publish("onLoadProgress",this.v1())}; g.K.u0=function(y){var q=y.target.aW();if(this.mediaElement&&this.mediaElement.aW()&&this.mediaElement.aW()===q){xF8(this,y.type);switch(y.type){case "error":var Q=IJ(this.mediaElement)||"",p=this.mediaElement.uF();if(Q==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.Rb("capchg",{msg:p}),this.ma(!0)):Tp(this);return}if(this.mediaElement.hasError()&&kPg(this.YE,Q,{msg:p,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.H3()===4){this.BC();wI(this,"unplayable"); return}break;case "durationchange":Q=this.mediaElement.getDuration();isFinite(Q)&&(!this.Zw||Q>0)&&Q!==1&&this.pL(Q);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());Q=this.m0;Q.started=!0;Q.sync();this.G8.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Zkf(this);this.publish("onLoadedMetadata");Jw9(this);Q=this.Sb();this.videoData.u2&&(this.videoData.u2=Q);break;case "loadstart":Jw9(this);break;case "progress":case "suspend":this.IJ.ZK(); break;case "seeked":(Q=this.loader)!=null&&Q.policy.W&&Q.Tm&&(Q.Rb("sdai",{skipAdSked:"1"}),Q.Tm=!1);break;case "playing":this.gm.dI("plev");this.Q1&&!PX(this)&&(this.Q1=!1,this.isAtLiveHead()||this.seekTo(Infinity,{tU:"videoplayer_onPlaying"}));break;case "timeupdate":Q=this.mediaElement&&!this.mediaElement.getCurrentTime();p=this.mediaElement&&this.mediaElement.j0()===0;if(Q&&(!this.w2||p))return;this.w2=this.w2||!!this.mediaElement.getCurrentTime();wu8(this);this.xj();if(!this.mediaElement||this.mediaElement.aW()!== q)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.ih().length>0&&this.mediaElement.Cn().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.j0()>2||!this.mediaElement.isSeeking()&&fj(this.mediaElement.Cn(),this.mediaElement.getCurrentTime()))&&(Q=this.mediaElement.IH(),Q.bh=DU(this.mediaElement).toFixed(3), this.Rb("uwe",Q));break;case "resize":Zkf(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.tv&&g.G(this.playerState,8)&&!g.G(this.playerState,1024)&&this.getCurrentTime()===0&&g.W9){wI(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.aW()===q){kzH(this.GD,y);this.publish("videoelementevent",y);q=this.playerState;p=this.xq;var v=this.mediaElement;Q=this.videoData.clientPlaybackNonce; if(!g.G(q,128)){var d=q.state;v=v?v:y.target;var T=v.getCurrentTime();if(!g.G(q,64)||y.type!=="ended"&&y.type!=="pause"){var O=v.getDuration();O=v.isEnded()||T>1&&Math.abs(T-O)<1.1;var w=y.type==="pause"&&v.isEnded();T=y.type==="ended"||y.type==="waiting"||y.type==="timeupdate"&&!g.G(q,4)&&!u5(p,T);if(w||O&&T)v.zs()>0&&v.aW()&&(d=14);else switch(y.type){case "error":IJ(v)&&(d|=128);break;case "pause":g.G(q,256)?(d^=256)||(d=64):g.G(q,32)||g.G(q,2)||g.G(q,4)||(d=4,g.G(q,1)&&g.G(q,8)&&(d|=1));break; case "playing":T=d;d=(d|8)&-1093;T&4?(d|=1,gQ(p,v,!0)):u5(p,v.getCurrentTime())&&(d&=-2);g.G(q,1)&&gQ(p,v)&&(d|=1);break;case "seeking":d|=16;g.G(q,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;gQ(p,v,!0);break;case "waiting":g.G(q,2)||(d|=1);gQ(p,v);break;case "timeupdate":T=g.G(q,16),O=g.G(q,4),(g.G(q,8)||T)&&!O&&u5(p,v.getCurrentTime())&&(d=8),gQ(p,v)&&(d|=1)}}p=d;d=null;p&128&&(d=y.target,v=IJ(d),T=1,v?(v==="capability.changed"&&(T=2),O="GENERIC_WITHOUT_LINK",w=d.IH(),w.mediaElem="1",w.trg="melem", /AUDIO_RENDERER/.test(d.uF())&&(O="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:v,errorMessage:g.BT[O]||"",K_:O,SH:Zr(w),rA:T,cpn:q.kJ?q.kJ.cpn:""}):d=null,d&&(d.cpn=Q));q=cb(q,p,d)}!g.G(this.playerState,1)&&g.G(q,1)&&KT9(this,"evt"+y.type);this.R7(q)}}}; g.K.Y93=function(y){y=y.K.availability==="available";y!==this.U3&&(this.U3=y,this.publish("airplayavailabilitychange"))}; g.K.mUs=function(){var y=(0,g.SK)(),q=this.mediaElement.yF();this.Rb("airplay",{ia:q});!q&&!isNaN(this.Bi)&&y-this.Bi<2E3||(this.Bi=y,q!==this.yF()&&(y=this.visibility,y.K!==q&&(y.K=q,y.ol()),this.Rb("airplay",{rbld:q}),this.LP()),this.publish("airplayactivechange"))}; g.K.UF=function(y){if(this.loader){var q=this.loader,Q=q.N,p=q.getCurrentTime(),v=Date.now()-Q.j;Q.j=NaN;Q.Rb("sdai",{adfetchdone:y,d:v});y&&!isNaN(Q.X)&&Q.W!==3&&TN(Q.loader,p,Q.X,Q.G);Q.policy.W?Q.J=NaN:Q.Y=NaN;dG(Q,4,Q.W===3?"adfps":"adf");Pm(q)}}; g.K.fS=function(){g.tM(this.jO);this.RX.stop();this.videoData.j=!0;this.KK.c9=!0;this.KK.RH=0;var y=this.YE;if(y.videoData.W){var q=y.wp.J,Q=y.videoData.W.nK;q.Y.has(Q)&&(q.Y.delete(Q),q.W=!0)}y.K.stop();this.bW();g.G(this.playerState,8)&&this.R7(rQ(this.playerState,65));this.HM=!1;this.G8.cG();g.qM(this.zi);this.publish("playbackstarted");(y=g.qw("yt.scheduler.instance.clearPriorityThreshold"))?y():QY(0)}; g.K.bW=function(){var y=this.Z3.Ff(),q={},Q={};!I0("pbs",this.gm.timerName)&&ER.measure&&ER.getEntriesByName&&(ER.getEntriesByName("mark_nr")[0]?Y9b("mark_nr"):Y9b());y.videoId&&(q.videoId=y.videoId);y.clientPlaybackNonce&&!this.L("web_player_early_cpn")&&(q.clientPlaybackNonce=y.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(Q.isPausedOnLoad=!0);Q.itag=y.W?Number(y.W.itag):-1;y.eP&&(Q.preloadType=String(this.q6?2:1));q.liveStreamMode=oBk[CL(y)];q.playerInfo=Q;this.gm.infoGel(q); if(this.loader){y=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(y.N&&(q=window.performance.getEntriesByName(y.N),q.length&&(q=q[0],y.tick("vri",q.fetchStart),y.tick("vdns",q.domainLookupEnd),y.tick("vreq",q.requestStart),y.tick("vrc",q.responseEnd))),y.W&&(q=window.performance.getEntriesByName(y.W),q.length&&(q=q[0],y.tick("ari",q.fetchStart),y.tick("adns",q.domainLookupEnd),y.tick("areq",q.requestStart),y.tick("arc",q.responseEnd))));y=y.ticks;for(var p in y)y.hasOwnProperty(p)&& this.gm.tick(p,y[p])}}; g.K.xj=function(y){var q=this;y=y===void 0?!1:y;if(this.mediaElement&&this.videoData){fgp(this.GD,this.isPlaying());var Q=this.getCurrentTime();if(this.loader&&(g.G(this.playerState,4)&&g.p$(this.videoData)||g.G(this.playerState,32)&&nL(this.videoData)||Vif(this.loader,Q),this.L("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var p;this.Rb("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(p=this.loader)==null?void 0:p.currentTime},!0)}Q> 5&&(this.GD.N=Q);(p=g.jK())?g.BH.FM(this.DE):g.Z1(this.DE);var v=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!v||aF(this.videoData))&&!g.G(this.playerState,128)){var d=function(){if(q.mediaElement&&!g.G(q.playerState,128)){q.KK.U9()&&xF8(q,"pfx");var T=q.getCurrentTime();q.L("html5_buffer_underrun_transition_fix")&&(T-=q.bj());var O=DU(q.mediaElement),w=g.G(q.playerState,8),J=u5(q.xq,T),F=qRg(q.xq,T,(0,g.SK)(),O);w&&J?q.R7(rQ(q.playerState,1)):w&&F?(w=q.getDuration(),J=rx(q.videoData), w&&Math.abs(w-T)<1.1?(q.Rb("setended",{ct:T,bh:O,dur:w,live:J}),q.mediaElement.r6()?q.seekTo(0,{tU:"videoplayer_loop",seekSource:37}):q.Bh()):(q.playerState.isBuffering()||KT9(q,"progress_fix"),q.R7(UA(q.playerState,1)))):(w&&!J&&!F&&T>0&&(w=(Date.now()-q.Go)/1E3,J=q.getDuration(),T>J-1&&q.Rb("misspg",{t:T.toFixed(2),d:J.toFixed(2),r:w.toFixed(2),bh:O.toFixed(2)})),q.playerState.isPaused()&&q.playerState.isBuffering()&&DU(q.mediaElement)>5&&q.R7(rQ(q.playerState,1)));q.xj()}}; this.mediaElement.ih().length===0?this.DE=p?g.BH.Dj(d,100):g.xQ(d,100):this.DE=p?g.BH.Dj(d,500):g.xQ(d,500)}this.videoData.ra=Q;!y&&this.isPlaying()&&YZs(this);ADj(this.cJ,this.wd,this.OW(),this.isBackground())&&Qc(this);this.publish("progresssync",y);v&&aF(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.K.Y5=function(){this.SB("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.K.VX=function(){return this.G8.VX()}; g.K.Qh=function(){return this.loader?this.loader.Qh():yK(this.KK.schedule,!0)}; g.K.R7=function(y){if(!g.AX(this.playerState,y)){var q=new g.bK(y,this.playerState);this.playerState=y;WT9(this);var Q=!this.KR.length;this.KR.push(q);var p=this.mediaElement&&this.mediaElement.isSeeking();g.Ks(q,1)&&this.loader&&rsC(this.loader);p=q.oldState.state===8&&!p;if(g.Ks(q,1)&&p&&g.G(this.playerState,8)&&!g.G(this.playerState,64)&&this.loader){p=this.loader;p.o2=!0;if(p.policy.Mz&&p.Zw){var v,d,T,O;p.Rb("lr_rb",{c:p.getCurrentTime(),s:p.isSeeking(),ab:F7(p.Zw.K.m5()),ala:(v=BI(p.audioTrack))== null?void 0:v.r0(),alr:(d=p.audioTrack.W)==null?void 0:d.r0(),vb:F7(p.Zw.W.m5()),vla:(T=BI(p.videoTrack))==null?void 0:T.r0(),vlr:(O=p.videoTrack.W)==null?void 0:O.r0()})}p.WI.sF()!==0&&p.Rb("sps_rebuffer",{c:p.getCurrentTime()});this.mediaElement&&DU(this.mediaElement)>=5&&(v=this.cJ,d=this.wd,!d.videoData.W||v.L("html5_disable_performance_downgrade")?v=!1:(Date.now()-v.X>6E4&&(v.W=0),v.W++,v.X=Date.now(),v.W!==4?v=!1:(rDp(v,d.videoData.W),v=!0)),v&&Qc(this))}(v=g.wm(this.KK.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.G(y,1)&&(g.G(y,8)||g.G(y,16))?this.Lj.start(v):this.Lj.stop();($z(q,8)<0||g.Ks(q,1024))&&this.RX.stop();!g.Ks(q,8)||this.videoData.j||g.G(q.state,1024)||this.RX.start();g.G(q.state,8)&&$z(q,16)<0&&!g.G(q.state,32)&&!g.G(q.state,2)&&this.playVideo();g.G(q.state,2)&&v4(this.videoData)&&(this.pL(this.getCurrentTime()),this.xj(!0));g.Ks(q,2)&&(this.H$(!0),this.KK.U9()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&nL(this.videoData)&&this.videoData.K&&(y={minst:""+ this.videoData.K.R2,cminst:""+(this.videoData.K.PT()+this.bj()),maxst:""+this.videoData.K.dk,hts:""+this.videoData.K.m3,cmaxst:""+(this.videoData.K.WO()+this.bj())},this.Rb("sabrSeekableBoundaries",y)));g.Ks(q,128)&&this.BC();this.videoData.K&&this.videoData.isLivePlayback&&!this.Ah&&($z(q,8)<0?(y=this.videoData.K,y.J&&y.J.stop()):g.Ks(q,8)&&this.videoData.K.resume());y=this.GD;g.qM(y.cI.J);if(y.mediaElement)if(q.oldState.state===8&&e2(q.state)&&q.state.isBuffering()){var w=y.mediaElement.getCurrentTime(); v=y.mediaElement.Cn();d=y.L("manifestless_post_live_ufph")||y.L("manifestless_post_live")?YA(v,Math.max(w-3.5,0)):YA(v,w-3.5);d>=0&&w>v.end(d)-1.1&&d+10?(dI(y.WI,y.getCurrentTime()+y.videoData.limitedPlaybackDurationInSeconds), y.Ty=!0):y.videoData.isLivePlayback&&y.videoData.endSeconds>0&&(dI(y.WI,y.getCurrentTime()+y.videoData.endSeconds),y.Ty=!0));w=this.G8;if(g.Ks(q,1024)||g.Ks(q,512)||g.Ks(q,4))w.W&&(y=w.W,y.W>=0||(y.K=-1,y.delay.stop())),w.qoe&&(y=w.qoe,y.X||(y.N=-1));if(w.provider.videoData.enableServerStitchedDai&&w.B3){var J;(J=w.N.get(w.B3))==null||tH9(J,q)}else w.K&&tH9(w.K,q);w.qoe&&(J=w.qoe,y=q.state,v=g.pO(J.provider),d=J.getPlayerState(y),T=y.seekSource||void 0,d!==J.l6&&(J.m3||v=10&&J.playTimeSecs<=180&&(J.K.set("qoealert",["1"]),J.cB=!0)),d!=="B"||J.l6!=="PL"&&J.l6!=="PB"||(J.isBuffering=!0),J.W=v),J.l6==="PL"&&(d==="B"||d==="S")||J.provider.KK.U9()?vX(J,v):(J.RH||d!=="PL"||(J.RH=!0,Z$H(J,v,J.provider.WI.Dg())),x4i(J,v)),d==="PL"&&g.qM(J.BT),O=[d],d==="S"&&T&&O.push("ss."+T),g.qr(J,v,"vps",O),J.l6=d,J.cI=v,J.W=v,J.Y=!0),d=y.kJ,g.G(y,128)&&d&&(d.SH=d.SH||"",atS(J,v,d.errorCode, d.rA,d.SH)),(g.G(y,2)||g.G(y,128))&&J.reportStats(v),y.isPlaying()&&!J.X&&(J.N>=0&&J.K.set("user_intent",[J.N.toString()]),J.X=!0),klf(J));w.W&&(J=w.W,XX9(J),J.playerState=q.state,J.W>=0&&g.Ks(q,16)&&J.seekCount++,q.state.isError()&&J.send());if(Q&&!this.iB())try{for(var F=g.t(this.KR),Y=F.next();!Y.done;Y=F.next()){var f=Y.value,h=this.m0;if(h.started&&(h.sync(),g.G(f.oldState,16))){q=h;var b=n_i(q.K,Math.max(q.N-2E3,0));!isNaN(b)&&b<0x7ffffffffffff&&q.Y.start()}this.publish("statechange",f)}}finally{this.KR.length= 0}}}; g.K.So=function(){this.gm.tick("qoes")}; g.K.u3=function(){this.GD.u3()}; g.K.VL=function(y,q,Q,p){a:{var v=this.YE;p=p===void 0?"LICENSE":p;Q=Q.substring(0,256);var d=EU(q);y==="drm.keyerror"&&this.q4&&this.q4.W.keys.length>1&&v.Y<96&&(y="drm.sessionlimitexhausted",d=!1);var T=v.wp.experiments.ob("html5_retry_on_drm_unavailable"),O=v.wp.experiments.ob("html5_retry_on_drm_key_error"),w=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(T&&y==="drm.unavailable"||O&&y==="drm.keyerror"&&!Q.match(w))v.aB("qoe.restart",{retryOnDrmError:1,e:y,detail:Q}),v.WI.ma(!0);else{if(d)if(v.videoData.W&& v.videoData.W.video.isHdr())sB8(v,y);else{if(v.WI.SB(y,q,p,Q),ZOs(v,{detail:Q}))break a}else v.aB(y,{detail:Q});y==="drm.sessionlimitexhausted"&&(v.Rb("retrydrm",{sessionLimitExhausted:1}),v.Y++,$FD(v.WI))}}}; g.K.jHK=function(){var y=this,q=g.wm(this.KK.experiments,"html5_license_constraint_delay"),Q=vn();q&&Q?(q=new g.y0(function(){y.GY();Vc(y)},q),g.n(this,q),q.start()):(this.GY(),Vc(this))}; g.K.Ot=function(y){this.publish("heartbeatparams",y)}; g.K.fH=function(y){this.Rb("keystatuses",zZi(y));var q="auto",Q=!1;this.videoData.W&&(q=this.videoData.W.video.quality,Q=this.videoData.W.video.isHdr());a:{switch(q){case "highres":case "hd2880":q="UHD2";break;case "hd2160":case "hd1440":q="UHD1";break;case "hd1080":case "hd720":q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":q="SD";break;default:q="";break a}Q&&(q+="HDR")}q=hD(y)?b5(y,q):y.Y.includes(q);if(this.L("html5_enable_vp9_fairplay")){if(Q)if(y.X){var p;if((p= this.q4)==null?0:f8(p.K))if((Q=this.q4)==null)Q=0;else{for(var v=p=void 0,d=g.t(Q.W.values()),T=d.next();!T.done;T=d.next())T=T.value,p||(p=ua3(T,"SD")),v||(v=ua3(T,"AUDIO"));Q.ye({sd:p,audio:v});Q=p==="output-restricted"||v==="output-restricted"}else Q=!q;if(Q){this.Rb("drm",{dshdr:1});sB8(this.YE);return}}else{this.videoData.Nv||(this.videoData.Nv=!0,this.Rb("drm",{dphdr:1}),this.ma(!0));return}var O;if((O=this.q4)==null?0:f8(O.K))return}else if(O=y.X&&q,Q&&!O){sB8(this.YE);return}q||b5(y,"AUDIO")&& b5(y,"SD")||(y=zZi(y),this.S9?(this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.SB("drm.keyerror",2,void 0,"info."+y)):(this.S9=!0,this.aB(new g.t7("qoe.restart",Object.assign({},{retrydrm:1},y))),Qc(this),$FD(this)))}; g.K.q9w=function(){if(!this.videoData.j&&this.mediaElement&&!this.isBackground()){var y="0";this.mediaElement.j0()>0&&DU(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.K&&(this.R7(UA(this.playerState,1)),KT9(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),y="1");WT9(this);var q=this.videoData.N;y={restartmsg:y,mfmt:!lc(this.videoData),mdrm:!(!(q&&q.videoInfos&&q.videoInfos.length&&q.videoInfos[0].Uy)||this.q4),mfmtinfo:!this.videoData.W,prerolls:this.JM()?this.CO.join(","): "0"};if(this.q4){q=this.q4;if(q.W.size<=0){var Q="ns;";q.j||(Q+="nr;");q=Q+="ql."+q.N.length}else q=zZi(q.W.values().next().value),q=Zr(q);y.drmp=q}var p;Object.assign(y,((p=this.loader)==null?void 0:p.IH())||{});var v;Object.assign(y,((v=this.mediaElement)==null?void 0:v.IH())||{});this.G8.aB("qoe.start15s",Zr(y));this.publish("loadsofttimeout")}}; g.K.pL=function(y){this.videoData.lengthSeconds!==y&&(this.videoData.lengthSeconds=y,Vc(this))}; g.K.H$=function(y,q){var Q=this;y=y===void 0?!1:y;if(!this.yC)if(I0("att_s","player_att")||gY("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var v,d,T,O;return g.M(function(w){switch(w.K){case 1:if(!(v=y)){w.ej(2);break}return g.R(w,g.rP9(),3);case 3:v=!w.W;case 2:if(v)return w.return();g.EC(w,4);d=sig(Q.G8);if(!d)throw Error();T={};return g.R(w,g.U3S((T.cpn=Q.videoData.clientPlaybackNonce,T.encryptedVideoId=Q.videoData.videoId||"",T),3E4),6);case 6:O=w.W;if(Q.yC)throw Error(); if(!O.challenge)throw g.zI(Error("Not sending attestation ping; no attestation challenge string")),Error();Q.yC=!0;var J=[O.challenge];if(O.error){var F=ZIe();F=f78(F).get(O.error)||0;J.push("r1c="+F)}else O.webResponse&&J.push("r1a="+O.webResponse);var Y;((Y=O.adblockReporting)==null?void 0:Y.reportingStatus)!==void 0&&J.push("r6a="+O.adblockReporting.reportingStatus);var f;((f=O.adblockReporting)==null?void 0:f.broadSpectrumDetectionResult)!==void 0&&J.push("r6b="+O.adblockReporting.broadSpectrumDetectionResult); d(J.join("&"));gY("att_f",void 0,"player_att");g.Hp(w,0);break;case 4:g.Rj(w),gY("att_e",void 0,"player_att"),g.tH(w)}})})().then(function(){q==null||q()}); else{var p=new g.CFp(this.videoData);if("c1a"in p.fX&&!g.$F.isInitialized()){gY("att_wb",void 0,"player_att");this.HY===2&&Math.random()<.01&&g.zI(Error("Botguard not available after 2 attempts"));if(y)return;if(this.HY<5){g.qM(this.Ti);this.HY++;return}}(p=g.y8C(p))?(gY("att_f",void 0,"player_att"),RMf(this.G8,p),this.yC=!0):gY("att_e",void 0,"player_att")}}; g.K.iH=function(y){y=y===void 0?!1:y;return rx(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.DX()||g.p$(this.videoData))?this.getCurrentTime():this.WO(y)}; g.K.ML=function(){return this.PT()}; g.K.WO=function(y){return this.GD.WO(y===void 0?!1:y)}; g.K.PT=function(){return this.GD.PT()}; g.K.bj=function(){return this.GD?this.GD.bj():0}; g.K.getStreamTimeOffset=function(){return this.GD?this.GD.getStreamTimeOffset():0}; g.K.VA=function(){var y=0;this.KK.L("web_player_ss_media_time_offset")&&(y=this.getStreamTimeOffset()===0?this.bj():this.getStreamTimeOffset());return y}; g.K.setPlaybackRate=function(y){var q;this.playbackRate!==y&&Drp(this.cJ,(q=this.videoData.N)==null?void 0:q.videoInfos)&&(this.playbackRate=y,Qc(this));this.playbackRate=y;this.mediaElement&&this.mediaElement.setPlaybackRate(y)}; g.K.getPlaybackRate=function(){return this.playbackRate}; g.K.getPlaybackQuality=function(){var y="unknown";if(this.videoData.W&&(y=this.videoData.W.video.quality,y==="auto"&&this.mediaElement)){var q=this.Qc();q&&q.videoHeight>0&&(y=oZ(q.videoWidth,q.videoHeight))}return y}; g.K.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.K.sendVideoStatsEngageEvent=function(y,q){var Q=this.G8;Q.K?(Q=RB(Q.K,"engage"),Q.m3=y,Q.send(q)):q&&q()}; g.K.Sa=function(y){return this.G8.Sa(y)}; g.K.isAtLiveHead=function(y,q){q=q===void 0?!1:q;return rx(this.videoData)&&(this.dC||q)?this.GD.isAtLiveHead(y):!1}; g.K.ue=function(){var y=this.WO(),q=this.getCurrentTime(),Q;(Q=!rx(this.videoData))||(Q=this.GD,Q=!(Q.K&&Q.K.N));return Q||this.DX()||isNaN(y)||isNaN(q)?0:Math.max(0,y-q)}; g.K.r9=function(y){(this.dC=y)||this.RX.stop();if(this.videoData.K)if(y)this.videoData.K.resume();else{var q=this.videoData.K;q.J&&q.J.stop()}this.loader&&(q=this.videoData.L("html5_disable_preload_for_ssdai_with_preroll")&&this.Lm()&&this.videoData.isLivePlayback,y&&!q?this.loader.resume():Y_(this,!0));g.G(this.playerState,2)||y?g.G(this.playerState,512)&&y&&this.R7(rQ(this.playerState,512)):this.R7(UA(this.playerState,512));q=this.G8;q.qoe&&(q=q.qoe,g.qr(q,g.pO(q.provider),"stream",[y?"A":"I"]))}; g.K.E2=function(y){this.G8.aB("player.exception",Zr({n:y.name,m:y.message}))}; g.K.KV=yi(22);g.K.GC=yi(51);g.K.hP=function(y){this.G8.hP(y)}; g.K.Oi=function(y){this.G8.Oi(y)}; g.K.qN=function(y){this.G8.qN(y)}; g.K.dh=yi(28);g.K.nU=yi(34);g.K.nM=function(y){this.G8.nM(y)}; g.K.Vk=function(y,q,Q,p){this.G8.Vk(y,q,Q,p)}; g.K.n0=function(){this.Rb("hidden",{},!0)}; g.K.Oj=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.K.zk=function(){return this.loader?this.loader.zk():!0}; g.K.setLoop=function(y){this.loop=y;this.mediaElement&&!g.kt(this.KK)&&this.mediaElement.setLoop(y)}; g.K.r6=function(){return this.mediaElement&&!g.kt(this.KK)?this.mediaElement.r6():this.loop}; g.K.vg=function(y){this.Rb("timestamp",{o:y.toString()});this.GD.vg(y)}; g.K.d0=function(y){this.gm.tick(y)}; g.K.NK=function(y){return this.gm.NK(y)}; g.K.dI=function(y){this.gm.dI(y)}; g.K.Rb=function(y,q,Q){this.G8.Rb(y,q,Q===void 0?!1:Q)}; g.K.OU=function(y,q,Q){this.G8.Rb(y,q,Q===void 0?!1:Q)}; g.K.aB=function(y){this.G8.aB(y.errorCode,Zr(y.details));y=y.errorCode;if(this.videoData.isLivePlayback&&(y==="qoe.longrebuffer"||y==="qoe.slowseek")||y==="qoe.restart"){y=this.loader?tzS(this.loader.videoTrack):{};var q,Q;this.Rb("lasoe",Object.assign(this.loader?tzS(this.loader.audioTrack):{},(q=this.Zw)==null?void 0:(Q=q.K)==null?void 0:Q.BP()));var p,v;this.Rb("lvsoe",Object.assign(y,(p=this.Zw)==null?void 0:(v=p.W)==null?void 0:v.BP()))}if(this.L("html5_log_centralized_player_time")){var d;this.Rb("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(d=this.loader)==null?void 0:d.currentTime})}}; g.K.pW=function(y,q,Q){this.G8.pW(y,q,Q)}; g.K.IV=function(y,q,Q,p,v,d,T,O){var w;if((w=this.videoData.K)!=null&&w.isLive){var J=q.playerType===2?q:y,F=y.videoData.videoId,Y=q.videoData.videoId;if(F&&Y){w=this.G8;if(w.qoe){var f=w.qoe,h=y.cpn,b=q.cpn,Z=J.videoData.b9,k=f.provider.videoData.clientPlaybackNonce,S=f.provider.videoData.videoId,N=b!==k&&Y!==S;k=h!==k&&F!==S;f.reportStats();f.adCpn&&f.adCpn!==h||(f.adCpn=k?h:"",f.jV=k?F:"",f.adFormat=k?Z:void 0,zt8(f,d?4:v?2:0,b,Y,p),f.reportStats(),f.adCpn=N?b:"",f.jV=N?Y:"",f.adFormat=N?Z:void 0, zt8(f,d?5:v?3:1,h,F,Q),f.reportStats())}Q=y.cpn;if(w.N.has(Q)){if(v=w.N.get(Q),s_(v,!0).send(),HX(v),Q!==w.provider.videoData.clientPlaybackNonce){ZVH(v);var l;(l=w.K)==null||Yh9(l);w.N.delete(Q)}}else w.B3=w.provider.videoData.clientPlaybackNonce,w.B3&&w.K&&(w.N.set(w.B3,w.K),s_(w.K).send(),HX(w.K));l=q.cpn;J=J.videoData;p-=this.VA();if(w.N.has(l)){p=w.N.get(l);var u=p.N&&isNaN(p.J)?SF(p):NaN;p=$0f(p,!1);isNaN(u)||(p.X=u);p.send()}else p=MHp(w,w.provider,J,p),w.N.set(l,p),tH9(p,new g.bK(UA(new g.nj, 8),new g.nj)),p.cG(),(u=w.K)==null||HX(u);w.B3=l;if(this.L("html5_unify_csi_server_stitched_transition_logging")){if(w=this.gm,u=q.cpn,p=this.videoData.clientPlaybackNonce,q=q.videoData,y=(y.cpn===p?"video":"ad")+"_to_"+(u===p?"video":"ad"),y!=="video_to_ad"){p=y==="ad_to_video"?void 0:q;J=p==null?void 0:p.s4;l={};if(q==null?0:q.G)l.cttAuthInfo={token:q.G,videoId:q.videoId};T&&(l.startTime=T);ug(y,l);var c,X,A;T={targetVideoId:(c=q==null?void 0:q.videoId)!=null?c:"empty_video",targetCpn:u,adVideoId:(X= p==null?void 0:p.videoId)!=null?X:"empty_video",adClientPlaybackNonce:(A=J==null?void 0:J.cpn)!=null?A:p==null?void 0:p.clientPlaybackNonce};J&&(T.adBreakType=J.adBreakType,T.adType=J.adType);g.D_(T,y);WT(w,O,y)}}else c=this.gm,A=this.videoData.clientPlaybackNonce,X=q.videoData,A=(y.cpn===A?"video":"ad")+"_to_"+(q.cpn===A?"video":"ad"),y={},X.G&&(y.cttAuthInfo={token:X.G,videoId:X.videoId}),T&&(y.startTime=T),ug(A,y),g.D_({targetVideoId:X.videoId,targetCpn:q.cpn,isSsdai:!0},A),T||WT(c,O,A)}}else g.a8(this.logger, 360717806,"SSTEvent for nonSS")}; g.K.vl=function(){var y=this.Z3,q=y.GV;y.GV=[];return q}; g.K.n5=function(y){this.videoData.Kf=!0;this.aB(new g.t7("sabr.fallback",y));this.ma(!0)}; g.K.Rd=function(y,q){this.videoData.JD=!0;if(q===void 0||q)this.aB(new g.t7("qoe.restart",y)),this.ma(!0)}; g.K.yz=function(y){this.Rb("sdai",{aftimeout:y});this.aB(new g.t7("ad.fetchtimeout",{timeout:y}))}; g.K.JN=function(y,q){this.Rb("timelineerror",y);y=new g.t7("dai.timelineerror",y);q?this.SB("dai.timelineerror",1,"RETRYABLE_ERROR",Zr(y.details)):this.aB(y)}; g.K.wR=function(){return g.pO(this.G8.provider)}; g.K.getPlayerSize=function(){return this.kN.getPlayerSize()}; g.K.wS=function(){return this.kN.wS()}; g.K.FD=function(){return this.gm}; g.K.YM=function(){return this.Z3.YM()}; g.K.getVolume=function(){return this.Z3.getVolume()}; g.K.Au=function(){return this.Z3.Au()}; g.K.isMuted=function(){return this.Z3.isMuted()}; g.K.X7=function(){return this.Z3.X7()}; g.K.Du=function(){this.Ah=!0}; g.K.L=function(y){return this.KK.L(y)}; g.K.oV=function(y,q,Q,p,v){this.Rb("xvt",{m:y,g:q?1:0,tt:Q?1:0,np:p?1:0,c:v})}; g.K.X1=function(){var y;(y=this.loader)==null||y.resume()}; g.K.Lm=function(){return g.Eu(this.CO,"ad")}; g.K.Xc=function(){var y=this.getCurrentTime(),q=y-this.bj();var Q=this.mediaElement?bS(this.mediaElement.Cn()):0;Q=Math.floor(Math.max(Q-q,0))+100;var p;return((p=this.loader)==null?0:p.Xc(q,Q))?(this.Rb("sdai",{skipad:1,ct:q.toFixed(3),adj:Q.toFixed(3)}),nL(this.videoData)&&this.loader.seek(q+Q,{seekSource:89,tU:"videoplayer_skipServerStitchedAd"}),agD(this.GD,y),!0):!1}; g.K.U9=function(){return this.KK.U9()}; g.K.sP=function(){if(this.L("html5_generate_content_po_token"))return this.videoData.WP||"";this.Z3.ZP();return this.KK.Hn||""}; g.K.Dt=function(){if(this.videoData.videoId)return this.videoData.Pb}; g.K.A1=function(){return this.videoData.videoId}; g.K.AL=function(){return this.Z3.k8}; g.K.yq=function(){return this.HM}; g.K.Qn=function(){return this.Z3.Qn()}; g.K.W7=function(y,q,Q){this.R7(UA(this.playerState,16,Q));this.GD.W7(y,q)}; g.K.prefetchKeyPlay=function(){}; g.K.kq=function(){this.GD.kq()}; g.K.JW=function(y,q){var Q=this.L("html5_generate_content_po_token")?this.videoData:void 0;this.Z3.JW(y,q,Q)}; g.K.tS=function(y,q){this.G8.tS(y,q)}; g.K.yc=function(){return this.G8.yc()}; g.K.sF=function(){return this.videoData.yx}; g.K.gS=function(){return this.Z3.gS()}; g.K.HU=function(){return this.Z3.HU(this)}; g.K.B5=function(){this.zT=!0}; g.K.Y8=function(y){var q;(q=this.loader)==null||q.Y8(y)};g.x(tOp,Wy);g.x(h5,NZ);h5.prototype.K=function(y){y&&Si(this,this.U.getLoopVideo());this.U.logVisibility(this.element,y)}; h5.prototype.logClick=function(){this.U.logClick(this.element)}; h5.prototype.onLoopChange=function(y){Si(this,y)}; h5.prototype.W=function(y){this.U.setLoopVideo(y)};g.x(Eh2,Wy);g.x(k4D,Wy);g.K=k4D.prototype;g.K.seekToChapterWithAnimation=function(y){var q=this;if(g.c4(this.api)&&!(y<0)){var Q=this.api.getVideoData(),p=Q.YJ;if(p&&y=0)return;q=~q;g.rk(this.items,q,0,y);W0(this.menuItems.element,y.element,q)}y.subscribe("size-change",this.Nn,this);this.menuItems.publish("size-change")}; g.K.PH=function(){jd8(this)||this.items[0].focus();return!0}; g.K.jI=function(){this.items[this.items.length-1].focus();return!0}; g.K.Ep=function(y){y.unsubscribe("size-change",this.Nn,this);this.iB()||(g.Lh(this.items,y),this.menuItems.element.removeChild(y.element),this.menuItems.publish("size-change"))}; g.K.Nn=function(){this.menuItems.publish("size-change")}; g.K.focus=function(){for(var y=0,q=0;q1&&g.M0(this)}; g.K.j$=function(){dT8(this);this.NU&&(p8C(this),g.pv(this.element,this.size))}; g.K.RE=function(){var y=this.K.pop();vOD(this,y,this.K[this.K.length-1],!0)}; g.K.td=function(y){if(!y.defaultPrevented)switch(y.keyCode){case 27:this.QN();y.preventDefault();break;case 37:this.K.length>1&&this.RE();y.preventDefault();break;case 39:y.preventDefault()}}; g.K.focus=function(){this.K.length&&this.K[this.K.length-1].focus()}; g.K.FV=function(){g.JW.prototype.FV.call(this);this.N&&this.N.dispose();this.Y&&this.Y.dispose()};g.x(lL,g.Ri);lL.prototype.open=function(y,q){this.initialize(y.items)&&this.zD(q,!!q)}; lL.prototype.initialize=function(y){g.HM(this.NT);if(y===void 0||y.length===0)return!1;var q=y.length;y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())this.qU(Q.value,q--);return!0}; lL.prototype.qU=function(y,q){y.menuNavigationItemRenderer?OKS(this,y.menuNavigationItemRenderer,q):y.menuServiceItemRenderer&&w8j(this,y.menuServiceItemRenderer,q)};g.x(zp,ai);g.K=zp.prototype;g.K.cz=function(y){y.target!==this.dismissButton.element&&y.target!==this.overflowButton.element&&(this.aX(),this.onClickCommand&&this.U.AK("innertubeCommand",this.onClickCommand))}; g.K.wI=function(){this.enabled=!1;this.j.hide()}; g.K.zE=function(){return!!this.K&&this.enabled}; g.K.onVideoDataChange=function(y,q){this.e5(q);if(this.K){this.yQ();a:if(!this.isCounterfactual){var Q,p,v;this.banner.update({title:(Q=this.K)==null?void 0:Q.title,subtitle:(p=this.K)==null?void 0:p.subtitle,metadata:(v=this.K)==null?void 0:v.metadataText});var d;this.onClickCommand=g.U((d=this.K)==null?void 0:d.onTap,u$);var T;if(y=g.U((T=this.K)==null?void 0:T.onOverflow,u$))this.G=g.U(y,jlh);var O;if((O=this.K)==null?0:O.thumbnailImage){var w,J;T=((w=this.K)==null?void 0:(J=w.thumbnailImage)== null?void 0:J.sources)||[];if(T.length===0)break a;this.thumbnailImage.update({url:T[0].url})}else{var F;if((F=this.K)==null?0:F.thumbnailIconName){var Y;this.thumbnailIcon.update({icon:(Y=this.K)==null?void 0:Y.thumbnailIconName})}}var f;this.shouldShowOverflowButton=!((f=this.K)==null||!f.shouldShowOverflowButton);var h;this.shouldHideDismissButton=!((h=this.K)==null||!h.shouldHideDismissButton)}var b;this.banner.element.setAttribute("aria-label",((b=this.K)==null?void 0:b.a11yLabel)||"");var Z; this.HI=(Z=this.K)==null?void 0:Z.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;FQf(this)}}; g.K.Awj=function(){this.isVisible=!0;FQf(this)}; g.K.osK=function(){this.isVisible=!1;FQf(this)}; g.K.Pi=function(){ai.prototype.Pi.call(this);this.W&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.K.aX=function(){ai.prototype.aX.call(this,!1);this.W&&this.U.logClick(this.banner.element)}; g.K.iA=function(y){this.J||(this.J=new lL(this.U),g.n(this,this.J));var q,Q;if((q=this.G)==null?0:(Q=q.menu)==null?0:Q.menuRenderer)this.J.open(this.G.menu.menuRenderer,y.target),y.preventDefault()}; g.K.e5=function(){}; g.K.yQ=function(){}; g.K.FV=function(){this.U.BO("suggested_action_view_model");ai.prototype.FV.call(this)};g.x(Dz,zp); Dz.prototype.e5=function(y){var q,Q,p;this.productUpsellSuggestedActionViewModel=g.U((q=y.getWatchNextResponse())==null?void 0:(Q=q.playerOverlays)==null?void 0:(p=Q.playerOverlayRenderer)==null?void 0:p.suggestedActionViewModel,K0k);var v;if((v=this.productUpsellSuggestedActionViewModel)==null?0:v.content){var d;this.K=g.U((d=this.productUpsellSuggestedActionViewModel)==null?void 0:d.content,ClC)}var T,O;if(this.W=!!((T=this.productUpsellSuggestedActionViewModel)==null?0:(O=T.loggingDirectives)==null? 0:O.trackingParams)){var w,J;this.U.setTrackingParams(this.banner.element,((w=this.productUpsellSuggestedActionViewModel)==null?void 0:(J=w.loggingDirectives)==null?void 0:J.trackingParams)||null)}var F;this.isCounterfactual=!((F=this.productUpsellSuggestedActionViewModel)==null||!F.isCounterfactualServing)}; Dz.prototype.yQ=function(){var y=[],q,Q=g.t(((q=this.productUpsellSuggestedActionViewModel)==null?void 0:q.ranges)||[]);for(q=Q.next();!q.done;q=Q.next()){var p=q.value;p&&(q=Number(p.startTimeMilliseconds),p=Number(p.endTimeMilliseconds),isNaN(q)||isNaN(p)||y.push(new g.yb(q,p,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.Tf(y)};g.x(Yy9,Wy);g.x(uL,Wy);uL.prototype.onVideoDataChange=function(y,q){var Q=this;if(!xW(q)&&(y==="newdata"&&bKp(this),this.K&&y==="dataloaded")){this.K=!1;var p;mh(X6(nn(this.api.T(),(p=this.api.getVideoData())==null?void 0:g.$W(p)),function(v){tU9(Q,v)}),function(){Q.K=!0})}}; uL.prototype.Yv=function(){var y=this;if(g.kt(this.api.T())){var q,Q=g.Is(this.api.T(),(q=this.api.getVideoData())==null?void 0:g.$W(q));return X6(Gb(Q),function(p){var v=Vl();OY(v,p);return y.api.Yv(v)})}return Gb(this.api.Yv())};g.x(g.Ii,g.bQ);g.K=g.Ii.prototype;g.K.open=function(){g.sh(this.fK,this.TD)}; g.K.K1=function(y){EO9(this);var q=this.options[y];q&&(q.element.setAttribute("aria-checked","true"),this.Ct(this.WC(y)),this.N=y)}; g.K.qo=function(y){g.HM(this.TD);for(var q={},Q=!1,p=0;p=0?this.K.playbackRate:1}catch(y){return 1}}; g.K.setPlaybackRate=function(y){this.getPlaybackRate()!==y&&(this.K.playbackRate=y);return y}; g.K.r6=function(){return this.K.loop}; g.K.setLoop=function(y){this.K.loop=y}; g.K.canPlayType=function(y,q){return this.K.canPlayType(y,q)}; g.K.isPaused=function(){return this.K.paused}; g.K.isSeeking=function(){return this.K.seeking}; g.K.isEnded=function(){return this.K.ended}; g.K.HP=function(){return this.K.muted}; g.K.E$=function(y){RZ();this.K.muted=y}; g.K.ih=function(){return this.K.played||JX([],[])}; g.K.Cn=function(){try{var y=this.K.buffered}catch(q){}return y||JX([],[])}; g.K.D$=function(){return this.K.seekable||JX([],[])}; g.K.Bu=function(){var y=this.K;return y.getStartDate?y.getStartDate():null}; g.K.getCurrentTime=function(){return this.K.currentTime}; g.K.setCurrentTime=function(y){this.K.currentTime=y}; g.K.getDuration=function(){return this.K.duration}; g.K.load=function(){var y=this.K.playbackRate;try{this.K.load()}catch(q){}this.K.playbackRate=y}; g.K.pause=function(){this.K.pause()}; g.K.play=function(){var y=this.K.play();if(!y||!y.then)return null;y.then(void 0,function(){}); return y}; g.K.j0=function(){return this.K.readyState}; g.K.zs=function(){return this.K.networkState}; g.K.H3=function(){return this.K.error?this.K.error.code:null}; g.K.uF=function(){return this.K.error?this.K.error.message:""}; g.K.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.K instanceof window.HTMLVideoElement&&this.K.getVideoPlaybackQuality)return this.K.getVideoPlaybackQuality();if(this.K){var y=this.K,q=y.webkitDroppedFrameCount;if(y=y.webkitDecodedFrameCount)return{droppedVideoFrames:q||0,totalVideoFrames:y}}return{}}; g.K.yF=function(){return!!this.K.webkitCurrentPlaybackTargetIsWireless}; g.K.lw=function(){return!!this.K.webkitShowPlaybackTargetPicker()}; g.K.togglePictureInPicture=function(){var y=this.K,q=window.document;window.document.pictureInPictureEnabled?this.K!==q.pictureInPictureElement?y.requestPictureInPicture():q.exitPictureInPicture():Hs()&&y.webkitSetPresentationMode(y.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.K.gP=function(){var y=this.K;return new g.ek(y.offsetLeft,y.offsetTop)}; g.K.getSize=function(){return g.v5(this.K)}; g.K.setSize=function(y){g.pv(this.K,y)}; g.K.getVolume=function(){return this.K.volume}; g.K.setVolume=function(y){RZ();this.K.volume=y}; g.K.f5=function(y){this.J[y]||(this.K.addEventListener(y,this.listener),this.J[y]=this.listener)}; g.K.setAttribute=function(y,q){this.K.setAttribute(y,q)}; g.K.removeAttribute=function(y){this.K.removeAttribute(y)}; g.K.hasAttribute=function(y){return this.K.hasAttribute(y)}; g.K.Ex=yi(61);g.K.Af=yi(63);g.K.DL=yi(65);g.K.Y7=yi(67);g.K.Y2=function(){return EM(this.K)}; g.K.TH=function(y){g.wl(this.K,y)}; g.K.l1=function(y){return g.P0(this.K,y)}; g.K.bz=function(){return g.Li(document.body,this.K)}; g.K.audioTracks=function(){var y=this.K;if("audioTracks"in y)return y.audioTracks}; g.K.FV=function(){for(var y=g.t(Object.keys(this.J)),q=y.next();!q.done;q=y.next())q=q.value,this.K.removeEventListener(q,this.J[q]);lS.prototype.FV.call(this)}; g.K.XF=function(y){this.K.disableRemotePlayback=y};g.x(iL,g.r);g.x(mx,g.r);mx.prototype.show=function(){g.r.prototype.show.call(this);this.XV()}; mx.prototype.hide=function(){g.r.prototype.hide.call(this);this.delay.stop();this.Y.stop()}; mx.prototype.XV=function(){var y=(0,g.SK)(),q=zX9(this.xf);XF(this.K,q.bandwidth_samples);XF(this.G,q.network_activity_samples);XF(this.N,q.live_latency_samples);XF(this.W,q.buffer_health_samples);var Q={};q=g.t(Object.entries(q));for(var p=q.next();!p.done;p=q.next()){var v=g.t(p.value);p=v.next().value;v=v.next().value;this.X[p]!==v&&(Q[p]=" "+String(v));this.X[p]=v}this.update(Q);y=(0,g.SK)()-y>25?5E3:500;this.delay.start(y)}; mx.prototype.j=function(){this.J?(this.position+=1,this.position>15&&(this.J=!1)):(--this.position,this.position<=0&&(this.J=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Y.start(2E4)};g.x(Iqi,Wy);g.x(CV,g.I);CV.prototype.K=function(){var y=(0,g.SK)()-this.startTime;y=ythis.Y[y])&&(this.K=y,this.mC())}; g.K.onCueRangeExit=function(y){var q=X8D(this,y);q&&this.K===y&&this.api.AK("innertubeCommand",q);jW(this);this.K=void 0}; g.K.ez=function(y){this.N=y}; g.K.yv=function(){this.mC();this.N=void 0}; g.K.mC=function(){if(this.K!==void 0){var y=(y=qQ(this,this.K))&&y.onCueRangeEnter?nD(y.onCueRangeEnter):void 0;var q=qQ(this,this.K);a:if(q&&q.additionalTrigger){var Q=g.t(q.additionalTrigger);for(var p=Q.next();!p.done;p=Q.next())if(p=p.value,p.type){var v=void 0,d=void 0;if((v=this.Sj[p.type])==null?0:v((d=p.args)!=null?d:{})){Q=!0;break a}}Q=!1}else Q=!0;y&&Q&&(this.api.AK("innertubeCommand",y),mTj(this,q),this.Y[this.K]!==void 0&&this.Y[this.K]++,this.j=!0)}}; g.K.FV=function(){this.timelyActions=this.N=this.K=this.videoId=void 0;this.Y={};this.DC();jW(this);Wy.prototype.FV.call(this)};g.x(q8j,Wy);g.x(Qu,NZ);Qu.prototype.Y=function(y){this.N(y?2:1)}; Qu.prototype.Il=function(){var y=this.U.getPresentingPlayerType();y===2||y===3?(this.K=!1,this.fK.Ep(this)):this.U.L("html5_enable_new_audio_settings_menu")?(y=this.getVoiceBoostState(),y!==1?(y===0?(Si(this,this.W()===2),this.setEnabled(!0)):(Si(this,!1),this.setEnabled(!1)),this.K||(this.fK.qU(this),this.K=!0)):this.K&&(this.fK.Ep(this),this.K=!1)):this.K||(y=this.hasVoiceBoostAudioTrack(),this.setEnabled(y),y=this.W()===2&&y,Si(this,y),this.fK.qU(this),this.K=!0)}; Qu.prototype.FV=function(){this.fK.Ep(this);NZ.prototype.FV.call(this)};g.x(Qx2,Wy);g.K=Qx2.prototype;g.K.getVoiceBoostUserPreference=function(){return this.K}; g.K.setVoiceBoostUserPreference=function(y){this.api.Rb("vb_set",{pref:y});g.DW("yt-player-voice-boost",y);y!==this.K&&(this.K=y,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.LP(),this.api.Qe())}; g.K.hasVoiceBoostAudioTrack=function(){var y,q,Q=(y=this.api.getVideoData())==null?void 0:(q=y.N)==null?void 0:q.K;return Q?XH(Q,function(p){var v;return((v=p.audio)==null?void 0:v.W)===!0}):!1}; g.K.getVoiceBoostState=function(){return this.api.uw(1)}; g.K.updateEnvironmentData=function(){this.api.T().Or=this.K};var Y8D=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.x(dj,Wy);dj.prototype.FV=function(){this.X&&(g.tM(this.X),this.X=void 0);Wy.prototype.FV.call(this)}; dj.prototype.ZP=function(){(this.W?!this.K:this.N)&&Vu(this)}; dj.prototype.zL=function(y,q,Q){var p=this;if(v59(y)){var v=Q||"";if(this.K)q=OG(this,v),dUg(y,q);else{var d=new g.$9;q.push(d.promise);this.J.promise.then(function(){var T=OG(p,v);dUg(y,T);d.resolve()})}}}; dj.prototype.QH=function(y){var q=this;if(this.W||this.N)y.WP=OG(this,y.videoId),this.K||(this.Y=new M6,this.J.promise.then(function(){q.gm.NK("pot_if");y.WP=OG(q,y.videoId)}))};g.x(g.JI,g.r);g.JI.prototype.select=function(){this.api.HA(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Uo||void 0)&&this.api.logClick(this.element)}; g.JI.prototype.onClick=function(y){if(g.d1(this.api.T())&&this.api.L("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var q=this.suggestion.pV(),Q={};g.qZ(this.api,Q);q=g.kb(q,Q);g.RV(q,this.api,y)}else g.Hy(y,this.api,this.W,this.suggestion.sessionData||void 0)&&this.select()}; g.JI.prototype.onKeyPress=function(y){switch(y.keyCode){case 13:case 32:y.defaultPrevented||(this.select(),y.preventDefault())}}; g.JI.prototype.onVideoDataChange=function(){var y=this.api.getVideoData(),q=this.api.T();this.W=y.cO?!1:q.Y};g.x(F5,g.r);F5.prototype.FV=function(){this.hide();g.lw(this.W);g.JT(this.stills);this.stills.length=0;g.r.prototype.FV.call(this)}; F5.prototype.J=function(y){this.N&&this.N(y)}; F5.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var y,q,Q,p,v;var d=(((y=this.videoData)==null?0:(q=y.suggestions)==null?0:q.length)?(Q=this.videoData)==null?void 0:Q.suggestions:((p=this.videoData)==null?0:g.Rf(p))?[(v=this.videoData)==null?void 0:g.Rf(v)]:[]).slice(0,18);if((y=this.Y)&&this.K)if(g.xn(y),d.length)for(this.stills.length>d.length&&g.JT(this.stills.splice(d.length)),this.stills.length=d.length,q=0;q=0;y--)this.features[y].dispose();this.features.length=0;g.I.prototype.FV.call(this)};LWD.prototype.reset=function(){this.K=this.W=NaN};g.K=ap8.prototype;g.K.reset=function(){sR(this.timerName)}; g.K.tick=function(y,q){zn(y,q,this.timerName)}; g.K.NK=function(y){return np(y,void 0,this.timerName)}; g.K.dI=function(y){g.VD(y,void 0,this.timerName)}; g.K.infoGel=function(y){g.D_(y,this.timerName)};g.x(H4S,g.V6);g.K=H4S.prototype;g.K.yI=function(y){return this.loop||!!y||this.index+1=0}; g.K.setShuffle=function(y){this.shuffle=y;y=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var q=0;q0)||gj(this,1,!0)}; g.K.Z0=function(){this.G=!0;this.K.UW(this.J);this.J=this.K.Z(document,"mouseup",this.xO)}; g.K.xO=function(){this.G=!1;gj(this,8,!1);this.K.UW(this.J);this.J=this.K.Z(this.target,"mousedown",this.Z0)}; g.K.hc=function(y){if(y=(y=y.changedTouches)&&y[0])this.Sj=y.identifier,this.K.UW(this.C),this.C=this.K.Z(this.target,"touchend",this.XG,void 0,!0),gj(this,1024,!0)}; g.K.XG=function(y){if(y=y.changedTouches)for(var q=0;q1280||v>720)if(q=p.h6("maxresdefault.jpg"))break;if(d>640||v>480)if(q=p.h6("maxresdefault.jpg"))break;if(d>320||v>180)if(q=p.h6("sddefault.jpg")||p.h6("hqdefault.jpg")||p.h6("mqdefault.jpg"))break;if(q=p.h6("default.jpg"))break}g.Rs(y)&&(y=new Image,y.addEventListener("load", function(){KLp()}),y.src=q?q:"",this.api.FD().tick("ftr")); this.Y.style.backgroundImage=q?"url("+q+")":""};g.x(g.AI,g.r);g.AI.prototype.resize=function(){}; g.AI.prototype.W=function(y){var q=this;this.N=!1;haC(this);var Q=y.K_,p=this.api.T();Q!=="GENERIC_WITHOUT_LINK"||p.G?Q==="TOO_MANY_REQUESTS"?(p=this.api.getVideoData(),this.Ct(Gz(this,"TOO_MANY_REQUESTS_WITH_LINK",p.pV(),void 0,void 0,void 0,!1))):Q!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||p.G?this.api.T().L("html5_enable_bandaid_error_screen")&&Q==="HTML5_SPS_UMP_STATUS_REJECTED"&&!p.G?(p=p.hostLanguage,y="//support.google.com/youtube?p=videoError",p&&(y=g.kb(y,{hl:p})),this.Ct(Gz(this,"HTML5_SPS_UMP_STATUS_REJECTED", y))):this.api.T().L("enable_adb_handling_in_sabr")&&Q==="BROWSER_OR_EXTENSION_ERROR"&&!p.G?(p=p.hostLanguage,y="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",p&&(y=g.kb(y,{hl:p})),this.Ct(Gz(this,"BROWSER_OR_EXTENSION_ERROR",y))):this.Ct(g.eW(y.errorMessage)):this.Ct(Gz(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(y=p.hostLanguage,Q="//support.google.com/youtube/?p=player_error1",y&&(Q=g.kb(Q, {hl:y})),this.Ct(Gz(this,"GENERIC_WITH_LINK_AND_CPN",Q,!0)),p.XL&&!p.Y&&fND(this,function(d){if(g.Hy(d,q.api,!ko(q.api.T()))){d={as3:!1,html5:!0,player:!0,cpn:q.api.getVideoData().clientPlaybackNonce};var T=q.api;T.mu("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:d});T.isFullscreen()&&T.toggleFullscreen()}})); if(this.N){var v=this.uB("ytp-error-link");v&&(this.api.createClientVe(v,this,216104),this.api.logVisibility(v,!0),fND(this,function(){q.api.logClick(v)}))}}; var YDp=/([^<>]+)<\/a>/;g.x(bHH,g.r);bHH.prototype.GL=function(y,q,Q){Q=Q===void 0?!1:Q;switch(q){case 1:PT(this,y,this.N,Q);break;case 2:PT(this,y,this.Y,Q);break;case 3:PT(this,y,this.K,Q);break;case 4:PT(this,y,this.W,Q)}};g.x($5g,g.r);g.K=$5g.prototype;g.K.onClick=function(y){this.innertubeCommand?(this.U.AK("innertubeCommand",this.innertubeCommand),y.preventDefault()):g.Hy(y,this.U,!0);this.U.logClick(this.element)}; g.K.onVideoDataChange=function(y,q){x5g(this,q);this.l6&&WY9(this,this.l6)}; g.K.Zq=function(y){var q=this.U.getVideoData();this.videoId!==q.videoId&&x5g(this,q);this.K&&WY9(this,y.state);this.l6=y.state}; g.K.zD=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.K.QN=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.x(ik,g.r);ik.prototype.hide=function(){this.K.stop();this.message.style.display="none";g.r.prototype.hide.call(this)}; ik.prototype.onStateChange=function(y){this.hU(y.state)}; ik.prototype.hU=function(y){if(g.G(y,128)||this.api.yq())var q=!1;else{var Q;q=this.api.L("web_watch_enable_multiview_manager")&&((Q=this.api.getVideoData())==null?0:xW(Q))?!1:g.G(y,16)||g.G(y,1)?!0:!1}q?this.K.start():this.hide()}; ik.prototype.W=function(){this.message.style.display="block"};g.x(X5,g.JW);X5.prototype.onMutedAutoplayChange=function(y){this.W&&(y?(ZHf(this),this.zD()):(this.K&&this.logClick(),this.QN()))}; X5.prototype.WJ=function(y){this.api.isMutedByMutedAutoplay()&&g.Ks(y,2)&&this.QN()}; X5.prototype.onClick=function(){this.api.unMute();this.logClick()}; X5.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.x(g.me,g.sU);g.K=g.me.prototype;g.K.init=function(){var y=this.api,q=y.getPlayerStateObject();this.Jt=y.getPlayerSize();this.R7(q);this.pP();this.n3();this.api.publish("basechromeinitialized",this);this.jZ()&&this.api.publish("standardControlsInitialized")}; g.K.onVideoDataChange=function(y,q){var Q=this.LS!==q.videoId;if(Q||y==="newdata")y=this.api,y.isFullscreen()||(this.Jt=y.getPlayerSize());Q&&(this.LS=q.videoId,Q=this.Op,Q.gp=3E3,gj(Q,512,!0),this.pP());this.api.L("web_render_jump_buttons")&&q.showSeekingControls&&(this.xV=572)}; g.K.rUB=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.K.B8=function(){var y=this.api.Mo()&&this.api.Y0(),q=this.api.Gc();return this.Gt||y||this.sz||q}; g.K.fW=function(){var y=!this.B8();g.fU(this.api.getRootNode(),"ytp-menu-shown",!y)}; g.K.Bs=function(y){try{if(!g.Li(this.api.getRootNode(),y))return!1}catch(q){return!1}for(;y&&!Nd(y);)y=y===this.api.getRootNode()?null:y.parentElement||null;return!!y}; g.K.oi=function(y){var q=this.api.getRootNode();g.fU(q,"ytp-autohide",y);g.fU(q,"ytp-autohide-active",!0);this.Bm.start(y?250:100);y&&(this.aO=!1,g.Fn(q,"ytp-touch-mode"));this.p5=!y;this.api.AN(!y);this.api.L("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",y)}; g.K.hY=function(){var y=this.api.getRootNode();g.fU(y,"ytp-autohide-active",!1)}; g.K.Luw=function(){this.Qb=!0}; g.K.igK=function(y){if(this.api.T().L("player_doubletap_to_seek")||this.api.T().X)this.Qb=!1,this.UE&&this.UW(this.UE),this.KM===0&&y5(this,y)?(this.vU(),this.MY.start(),this.UE=this.Z(this.api.lB(),"touchmove",this.Luw,void 0,!0)):this.MY.stop();LYD(this)&&y5(this,y)&&!this.api.T().X&&EuS(this);var q=this.Gd.rk();if(!g.d1(this.api.T())&&jj&&aNp(this,y))q&&y.preventDefault();else if(this.aO=!0,g.wl(this.api.getRootNode(),"ytp-touch-mode"),this.Op.Ul(),this.api.T().L("player_doubletap_to_seek")||this.api.T().X)if(q= this.api.getPlayerStateObject(),!(!this.api.jK()||g.G(q,2)&&g.XQ(this.api)||g.G(q,64))){q=Date.now()-this.Xx;this.KM+=1;if(q<=350){this.qv=!0;q=this.api.getPlayerSize().width/3;var Q=this.api.getRootNode().getBoundingClientRect(),p=y.targetTouches[0].clientX-Q.left;Q=y.targetTouches[0].clientY-Q.top;var v=(this.KM-1)*10;p>0&&pq*2&&p=650,p=y.width<528;this.Op.resize();if(this.api.L("web_player_use_screen_width_for_big_mode")){var v,d=y.width>=((v=g.wm(this.api.T().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?v:2E3);g.fU(q,"ytp-big-mode",d)}g.fU(q,"ytp-fullscreen",this.api.isFullscreen());g.fU(q,"ytp-large-width-mode",Q);this.api.L("delhi_modern_web_player")?g.fU(q,"ytp-xsmall-width-mode",p):g.fU(q,"ytp-small-mode",this.qm()); g.fU(q,"ytp-tiny-mode",this.V7());g.fU(q,"ytp-big-mode",this.JR());this.Zn&&this.Zn.resize(y)}; g.K.WJ=function(y){this.R7(y.state);this.pP()}; g.K.Li=yi(3);g.K.Bl=function(){var y=!!this.LS&&!this.api.rd()&&!this.Lw,q=this.api.getPresentingPlayerType()===2,Q=this.api.T();if(q)return Q=zz(this.api.yN()),y&&(Q&&Q.player?y=(y=Q.player.getVideoData(2))?y.isListed&&!g.tc(Q.player.T()):!1:(hx("showInfoBarDuringAd: this is null"),y=!1)),y;q=Q.L("web_player_imax_theater_mode")&&this.api.b4()&&!this.api.isInline();return y&&(Q.l7||q||this.api.isFullscreen()||Q.oE)}; g.K.pP=function(){var y=this.Bl();this.EP!==y&&(this.EP=y,g.fU(this.api.getRootNode(),"ytp-hide-info-bar",!y))}; g.K.R7=function(y){var q=y.isCued()||this.api.JM()&&this.api.getPresentingPlayerType()!==3;q!==this.isCued&&(this.isCued=q,this.EE&&this.UW(this.EE),this.EE=this.Z(this.api.lB(),"touchstart",this.igK,void 0,q));var Q=this.Op,p=y.isPlaying()&&!g.G(y,32)||this.api.yp();gj(Q,128,!p);Q=this.Op;p=this.api.getPresentingPlayerType()===3;gj(Q,256,p);Q=this.api.getRootNode();g.G(y,2)?p=[Bd.ENDED]:(p=[],g.G(y,8)?p.push(Bd.PLAYING):g.G(y,4)&&p.push(Bd.PAUSED),g.G(y,1)&&!g.G(y,32)&&p.push(Bd.BUFFERING),g.G(y, 32)&&p.push(Bd.SEEKING),g.G(y,64)&&p.push(Bd.UNSTARTED));g.iG(this.ip,p)||(g.Yy(Q,this.ip),this.ip=p,g.Jr(Q,p));p=this.api.T();var v=g.G(y,2);a:{var d=this.api.T();var T=d.controlsType;switch(T){case "2":case "0":d=!1;break a}d=T==="3"&&!g.G(y,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:h_G(zz(this.api.yN())))||this.api.Gc()||g.d1(d)&&this.api.getPresentingPlayerType()===2?!1:!0}g.fU(Q,"ytp-hide-controls",!d);g.fU(Q,"ytp-native-controls",p.controlsType==="3"&&!q&&!v&&!this.sz);g.G(y, 128)&&!g.d1(p)?(this.Zn||(this.Zn=new g.AI(this.api),g.n(this,this.Zn),g.pq(this.api,this.Zn.element,4)),this.Zn.W(y.kJ),this.Zn.show()):this.Zn&&(this.Zn.dispose(),this.Zn=null)}; g.K.fP=function(){return this.api.Mo()&&this.api.Y0()?(this.api.QR(!1,!1),!0):this.api.rd()?(g.m_(this.api,!0),!0):!1}; g.K.onMutedAutoplayChange=function(y){this.sz=y;this.fW()}; g.K.JR=function(){return!1}; g.K.qm=function(){return!this.JR()&&(this.api.getPlayerSize().width=0&&q.left>=0&&q.bottom>q.top&&q.right>q.left?q:null;q=this.size;y=y.clone();q=q.clone();p&&(T=q,v=5,(v&65)==65&&(y.x=p.right)&&(v&=-2),(v&132)==132&&(y.y=p.bottom)&&(v&=-5),y.xp.right&&(T.width=Math.min(p.right-y.x,d+T.width-p.left),T.width=Math.max(T.width,0))),y.x+T.width>p.right&&v&1&&(y.x=Math.max(p.right-T.width,p.left)),y.yp.bottom&&(T.height=Math.min(p.bottom-y.y,d+T.height-p.top),T.height=Math.max(T.height,0))),y.y+T.height>p.bottom&&v&4&&(y.y=Math.max(p.bottom-T.height,p.top)));p=new g.ol(0,0,0,0);p.left=y.x;p.top=y.y;p.width= q.width;p.height=q.height;g.yh(this.element,new g.ek(p.left,p.top));g.lw(this.W);this.W.Z(Fa(this),"contextmenu",this.k8$);this.W.Z(this.U,"fullscreentoggled",this.onFullscreenToggled);this.W.Z(this.U,"pageTransition",this.zv)}; g.K.k8$=function(y){if(!y.defaultPrevented){var q=Hn(y);g.Li(this.element,q)||this.QN();this.U.T().disableNativeContextMenu&&y.preventDefault()}}; g.K.onFullscreenToggled=function(){this.QN();CJH(this)}; g.K.zv=function(){this.QN()};g.x(OZ,g.r);OZ.prototype.onClick=function(){var y=this,q,Q,p,v;return g.M(function(d){if(d.K==1)return q=y.api.T(),Q=y.api.getVideoData(),p=y.api.getPlaylistId(),v=q.getVideoUrl(Q.videoId,p,void 0,!0),g.R(d,jES(y,v),2);d.W&&qmi(y);y.api.logClick(y.element);g.tH(d)})}; OZ.prototype.XV=function(){this.updateValue("icon",{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{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","Copiar link");this.updateValue("tooltip-title","Copiar link");this.visible=yUf(this); g.fU(this.element,"ytp-copylink-button-visible",this.visible);this.BB(this.visible);this.tooltip.aM();this.api.logVisibility(this.element,this.visible&&this.C)}; OZ.prototype.Kt=function(y){g.r.prototype.Kt.call(this,y);this.api.logVisibility(this.element,this.visible&&y)}; OZ.prototype.FV=function(){g.r.prototype.FV.call(this);g.Fn(this.element,"ytp-copylink-button-visible")};g.x(QEC,g.r);g.K=QEC.prototype;g.K.show=function(){g.r.prototype.show.call(this);g.qM(this.W)}; g.K.hide=function(){this.Y.stop();this.N=0;this.uB("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Fn(this.element,"ytp-chapter-seek");g.Fn(this.element,"ytp-time-seeking");g.r.prototype.hide.call(this)}; g.K.S$=function(y,q,Q,p){this.N=y===this.G?this.N+p:p;this.G=y;var v=y===-1?this.j:this.X;v&&this.U.logClick(v);this.J?this.W.stop():g.Q0(this.W);this.Y.start();this.element.setAttribute("data-side",y===-1?"back":"forward");var d=3*this.U.lB().getPlayerSize().height;v=this.U.lB().getPlayerSize();v=v.width/3-3*v.height;this.K.style.width=d+"px";this.K.style.height=d+"px";y===1?(this.K.style.left="",this.K.style.right=v+"px"):y===-1&&(this.K.style.right="",this.K.style.left=v+"px");var T=d*2.5;d=T/ 2;var O=this.uB("ytp-doubletap-ripple");O.style.width=T+"px";O.style.height=T+"px";y===1?(y=this.U.lB().getPlayerSize().width-q+Math.abs(v),O.style.left="",O.style.right=y-d+"px"):y===-1&&(y=Math.abs(v)+q,O.style.right="",O.style.left=y-d+"px");O.style.top="calc((33% + "+Math.round(Q)+"px) - "+d+"px)";if(Q=this.uB("ytp-doubletap-ripple"))Q.classList.remove("ytp-doubletap-ripple"),Q.classList.add("ytp-doubletap-ripple");pdC(this,this.J?this.N:p)}; g.K.aq=function(y,q,Q){if(Q=Q===void 0?null:Q){var p=y===-1?this.j.visualElement:this.X.visualElement;Q={seekData:Q};var v=g.LD();v&&vN(v,p,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Q)}this.N=y===this.G?this.N+q:q;this.G=y;p=this.U.lB().getPlayerSize();this.J?this.W.stop():g.Q0(this.W);this.Y.start();this.element.setAttribute("data-side",y===-1?"back":"forward");g.wl(this.element,"ytp-time-seeking");this.K.style.width="110px";this.K.style.height="110px";Q=p.width*.1-15;y===1?this.cI?(this.K.style.right= Q+"px",this.K.style.left=""):(this.K.style.right="",this.K.style.left=p.width*.8-30+"px"):y===-1&&(this.cI?(this.K.style.right="",this.K.style.left=Q+"px"):(this.K.style.right="",this.K.style.left=p.width*.1-15+"px"));this.K.style.top=p.height*.5+15+"px";pdC(this,this.J?this.N:q)}; g.K.Kz=function(y,q,Q){Q=Q===void 0?null:Q;g.Q0(this.W);this.Y.start();switch(y){case -1:y="back";break;case 1:y="forward";break;default:y=""}this.element.setAttribute("data-side",y);this.K.style.width="0";this.K.style.height="0";g.wl(this.element,"ytp-chapter-seek");this.updateValue("seekText",q);this.updateValue("seekTime","");q=this.uB("ytp-seek-icon");if(Q){a:if(Q){switch(Q){case "PREMIUM_STANDALONE":Q=IWs();break a;case "PREMIUM_STANDALONE_CAIRO":Q=nJH();break a}Q=void 0}else Q=null;this.updateValue("seekIcon", Q);q.style.display="inline-block"}else q.style.display="none"};g.x(vPi,ai);g.K=vPi.prototype;g.K.Tv=function(y){this.vI||(this.vI=new lL(this.U),g.n(this,this.vI));var q,Q;if((q=this.cB)==null?0:(Q=q.menu)==null?0:Q.menuRenderer)this.vI.open(this.cB.menu.menuRenderer,y.target),y.preventDefault()}; g.K.zE=function(){return!!this.K}; g.K.jH=function(){return!!this.K}; g.K.cz=function(y){y.target===this.overflowButton.element?y.preventDefault():(this.Mz&&this.U.AK("innertubeCommand",this.Mz),this.aX(!1))}; g.K.wI=function(){this.aX(!0);var y,q;((y=this.K)==null?0:(q=y.bannerData)==null?0:q.dismissedStatusKey)&&this.XL.push(this.K.bannerData.dismissedStatusKey);this.jz()}; g.K.Lr=function(){this.jz();Ft(this)}; g.K.G3b=function(y){var q=this,Q;if(y.id!==((Q=this.K)==null?void 0:Q.identifier)){this.jz();Q=g.t(this.Sj);for(var p=Q.next();!p.done;p=Q.next()){var v=p.value,d=void 0,T=void 0;if((p=(d=v)==null?void 0:(T=d.bannerData)==null?void 0:T.itemData)&&v.identifier===y.id){T=d=void 0;var O=((d=v)==null?void 0:(T=d.bannerData)==null?void 0:T.dismissedStatusKey)||"";if(this.XL.includes(O))return;this.K=v;this.banner.element.setAttribute("aria-label",p.accessibilityLabel||"");p.trackingParams&&(this.Y=!0, this.U.setTrackingParams(this.badge.element,p.trackingParams));this.show();this.j.show();LV(this);this.gp.BB(!p.stayInApp);$yb(this);T9C(this);Jw(this);this.Mz=g.U(p.onTapCommand,u$);if(v=g.U(p.menuOnTap,u$))this.cB=g.U(v,jlh);v=void 0;this.banner.update({thumbnail:(v=(p.thumbnailSources||[])[0])==null?void 0:v.url,title:p.productTitle,price:p.priceReplacementText?p.priceReplacementText:p.price,salesOriginalPrice:wds(this),priceDropReferencePrice:JU2(this),promotionText:OaS(this),priceA11yText:FV3(this), affiliateDisclaimer:p.affiliateDisclaimer,vendor:Ymj(this)});O=T=d=v=void 0;((v=p)==null?0:(d=v.hiddenProductOptions)==null?0:d.showDropCountdown)&&((T=p)==null?0:(O=T.hiddenProductOptions)==null?0:O.dropTimestampMs)&&(this.Se=new g.y0(function(){bab(q)},1E3),this.gp.hide(),this.countdownTimer.show(),bab(this)); this.U.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&dy9(this)&&(this.T8=new g.y0(function(){V9H(q)},1E3),V9H(this))}}this.U.getRootNode()&&g.wl(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.K.jz=function(){this.K&&(this.K=void 0,this.O8(),this.U.getRootNode()&&g.Fn(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.K.onVideoDataChange=function(y,q){var Q=this;y==="dataloaded"&&Ft(this);var p,v,d;y=g.U((p=q.getWatchNextResponse())==null?void 0:(v=p.playerOverlays)==null?void 0:(d=v.playerOverlayRenderer)==null?void 0:d.productsInVideoOverlayRenderer,yYC);this.overflowButton.show();this.dismissButton.hide();var T=y==null?void 0:y.featuredProductsEntityKey;this.trendingOfferEntityKey=y==null?void 0:y.trendingOfferEntityKey;this.Sj.length||(h0p(this,T),Jw(this));var O;(O=this.F0)==null||O.call(this);this.F0=g.Mg.subscribe(function(){h0p(Q, T);Jw(Q)})}; g.K.FV=function(){Ft(this);$yb(this);T9C(this);ai.prototype.FV.call(this)};g.x(EPj,g.r);EPj.prototype.onClick=function(){this.U.logClick(this.element,this.N);if(this.U.L("embeds_enable_info_panel_dismissal")&&this.K&&this.feedbackToken){var y=this.U.Yv();(y==null?0:uy9(this.K,y.wA))&&UR(y,this.K,{feedbackTokens:[this.feedbackToken]})}};g.x(k89,g.JW);g.K=k89.prototype;g.K.show=function(){g.JW.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);LV9(this,!0)}; g.K.hide=function(){g.JW.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);LV9(this,!1)}; g.K.getId=function(){return this.N}; g.K.RL=function(){return this.itemData.length}; g.K.onVideoDataChange=function(y,q){if(q){var Q,p,v,d;this.update({title:((Q=q.qB)==null?void 0:(p=Q.title)==null?void 0:p.content)||"",body:((v=q.qB)==null?void 0:(d=v.bodyText)==null?void 0:d.content)||""});var T;y=((T=q.qB)==null?void 0:T.trackingParams)||null;this.U.setTrackingParams(this.element,y);T=g.t(this.itemData);for(y=T.next();!y.done;y=T.next())y.value.dispose();this.itemData=[];var O;if((O=q.qB)==null?0:O.ctaButtons)for(q=g.t(q.qB.ctaButtons),O=q.next();!O.done;O=q.next())if(O=g.U(O.value, Gq_))O=new EPj(this.U,O,this.K),O.hj&&(this.itemData.push(O),O.ym(this.items))}}; g.K.FV=function(){this.hide();g.JW.prototype.FV.call(this)};g.x(Sm2,g.r);g.K=Sm2.prototype;g.K.onVideoDataChange=function(y,q){N9j(this,q);this.l6&&R09(this,this.l6)}; g.K.oZ=function(y){var q=this.U.getVideoData();this.videoId!==q.videoId&&N9j(this,q);R09(this,y.state);this.l6=y.state}; g.K.hX=function(y){(this.N=y)?this.hide():this.K&&this.show()}; g.K.Dq=function(){this.W||this.zD();this.showControls=!0}; g.K.Ao=function(){this.W||this.QN();this.showControls=!1}; g.K.zD=function(){var y,q=(y=this.U)==null?void 0:y.getPlayerSize();y=q.width<380;var Q;q=q.height<(((Q=this.U)==null?0:Q.isEmbedsShortsMode())?400:280);var p,v;(((p=this.U)==null?0:p.getPlayerStateObject().isCued())||((v=this.U)==null?0:g.G(v.getPlayerStateObject(),1024)))&&y&&q||!this.K||this.N||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.K.QN=function(){this.K&&!this.N&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.K.hGs=function(){this.W=!1;this.showControls||this.QN()};var V7S={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(V7S).reduce(function(y,q){y[V7S[q]]=q;return y},{}); var OxX={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(OxX).reduce(function(y,q){y[OxX[q]]=q;return y},{}); var wkh={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(wkh).reduce(function(y,q){y[wkh[q]]=q;return y},{});var Jie,FmS;Jie=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];FmS=[{option:0,text:Yh(0)},{option:.25,text:Yh(.25)},{option:.5,text:Yh(.5)},{option:.75,text:Yh(.75)},{option:1,text:Yh(1)}]; g.$h=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:Jie},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:Yh(.5)},{option:-1,text:Yh(.75)},{option:0,text:Yh(1)},{option:1, text:Yh(1.5)},{option:2,text:Yh(2)},{option:3,text:Yh(3)},{option:4,text:Yh(4)}]},{option:"background",text:"Cor de fundo",options:Jie},{option:"backgroundOpacity",text:"Opacidade de fundo",options:FmS},{option:"windowColor",text:"Cor da janela",options:Jie},{option:"windowOpacity",text:"Opacidade da janela",options:FmS},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:Yh(.25)},{option:.5,text:Yh(.5)},{option:.75,text:Yh(.75)},{option:1,text:Yh(1)}]}];var YJX=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.x(uRg,g.sU);g.K=uRg.prototype; g.K.Tb=function(y){y.repeat||(this.N.Mi=!1);var q=!1,Q=y.keyCode,p=Hn(y),v=!y.altKey&&!y.ctrlKey&&!y.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||YJX.includes(Q)),d=!1,T=!1,O=this.api.T();y.defaultPrevented?(v=!1,T=!0):O.zf&&!this.api.isMutedByEmbedsMutedAutoplay()&&(v=!1);if(Q===9)q=!0;else{if(p)switch(Q){case 32:case 13:if(p.tagName==="BUTTON"||p.tagName==="A"||p.tagName==="INPUT")q=!0,v=!1;else if(v){var w=p.getAttribute("role");!w||w!=="option"&&w!=="button"&&w.indexOf("menuitem")!==0|| (q=!0,p.click(),d=!0)}break;case 37:case 39:case 36:case 35:q=p.getAttribute("role")==="slider";break;case 38:case 40:w=p.getAttribute("role"),p=Q===38?p.previousSibling:p.nextSibling,w==="slider"?q=!0:v&&(w==="option"?(p&&p.getAttribute("role")==="option"&&p.focus(),d=q=!0):w&&w.indexOf("menuitem")===0&&(p&&p.hasAttribute("role")&&p.getAttribute("role").indexOf("menuitem")===0&&p.focus(),d=q=!0))}if(v&&!d)switch(Q){case 38:d=Math.min(this.api.getVolume()+5,100);Q5(this.V8,d,!1);this.api.setVolume(d); T=d=!0;break;case 40:d=Math.max(this.api.getVolume()-5,0);Q5(this.V8,d,!0);this.api.setVolume(d);T=d=!0;break;case 36:this.api.jK()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),T=d=!0);break;case 35:this.api.jK()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),T=d=!0)}}q&&hw(this,!0);(q||T)&&this.Op.Ul();(d||v&&this.handleGlobalKeyDown(Q,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code,y.repeat))&&y.preventDefault();O.C&&(y={keyCode:y.keyCode, altKey:y.altKey,ctrlKey:y.ctrlKey,metaKey:y.metaKey,shiftKey:y.shiftKey,handled:y.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.h1("onKeyPress",y))}; g.K.A_=function(y){var q=y.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.N.Xw)&&this.handleGlobalKeyUp(q,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code)&&y.preventDefault()}; g.K.handleGlobalKeyUp=function(y,q,Q,p,v,d,T){this.api.publish("keyboardserviceglobalkeyup",{keyCode:y,shiftKey:q,ctrlKey:Q,altKey:p,metaKey:v,key:d,code:T});q=!1;if(this.N.Mi)return q;(d=g.ji(this.api.yN()))&&(d=d.gQ)&&d.NU&&(d.HX(y),q=!0);switch(y){case 9:hw(this,!0);q=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.N.Xw||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.T().zf){var O,w;y=(O=this.progressBar)== null?void 0:(w=O.W)==null?void 0:w.isEnabled;q=this.Q2(y)}break;case 39:(this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(v||Q&&p))&&(kc?p:Q)&&this.api.jK()&&this.api.L("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),O=(O=this.api.getVideoData())?O.YJ:[],w=M9f(O,this.api.getCurrentTime()*1E3),w!==-1&&this.K!=null&&(this.K.Kz(1,O[w].title),this.api.seekTo(O[w].startTime/1E3,void 0,void 0,void 0,52),q=!0))}return q}; g.K.handleGlobalKeyDown=function(y,q,Q,p,v,d,T,O){O||(this.N.Mi=!1);var w=!1,J=this.api.T();if(J.zf&&!this.api.isMutedByEmbedsMutedAutoplay())return w;var F=g.ji(this.api.yN());if(F&&(F=F.gQ)&&F.NU)switch(y){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:w=F.t_(y)}J.G||w||(w=d||String.fromCharCode(y).toLowerCase(),this.W+=w,"awesome".indexOf(this.W)===0||this.api.L("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(w=!0,4===this.W.length&&this.W==="bday"&&this.api.L("web_player_rtr_ctrls")&& (cCb(this.J),this.Op.Ul()),7===this.W.length&&this.W==="awesome"&&MPC(this.api.getRootNode(),"ytp-color-party")):(this.W=w,w="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!w&&(!this.api.isMutedByEmbedsMutedAutoplay()||YJX.includes(y))){var Y=this.api.getVideoData(),f,h;F=(f=this.progressBar)==null?void 0:(h=f.W)==null?void 0:h.isEnabled;f=Y?Y.YJ:[];h=kc?p:Q;switch(y){case 80:q&&!J.LK&&(jO(this.V8,gJs(),"Anterior"),this.api.previousVideo(),w=!0);break;case 78:q&&!J.LK&&(jO(this.V8, ke(),"Pr\u00f3ximo"),this.api.nextVideo(),w=!0);break;case 74:this.api.jK()&&(this.api.startSeekCsiAction(),this.K?this.api.L("enable_key_press_seek_logging")?(w=bV(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.K.aq(-1,10,w)):this.K.aq(-1,10):jO(this.V8,{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),w=!0);break;case 76:this.api.jK()&&(this.api.startSeekCsiAction(),this.K?this.api.L("enable_key_press_seek_logging")?(w=bV(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.K.aq(1,10,w)):this.K.aq(1,10):jO(this.V8,{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),w=!0);break;case 37:if(this.api.jK())if(this.api.startSeekCsiAction(),h){if(this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(v||Q&&p))h=lVC(f,this.api.getCurrentTime()*1E3),h!==-1&&this.K!=null&&(this.K.Kz(-1,f[h].title),this.api.seekTo(f[h].startTime/1E3,void 0,void 0,void 0,53),w=!0)}else this.K?this.api.L("enable_key_press_seek_logging")?(w=bV(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.K.aq(-1,5,w)):this.K.aq(-1,5):jO(this.V8,{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),w=!0;break;case 39:this.api.jK()&&(this.api.startSeekCsiAction(),h?this.api.L("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.L("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(v||Q&&p)||(h=M9f(f,this.api.getCurrentTime()*1E3),h!==-1&&this.K!=null&&(this.K.Kz(1,f[h].title),this.api.seekTo(f[h].startTime/1E3,void 0,void 0,void 0,52),w=!0)):(this.K!=null?this.api.L("enable_key_press_seek_logging")?(w=bV(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.K.aq(1,5,w)):this.K.aq(1,5):jO(this.V8,{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),w=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Q5(this.V8,this.api.getVolume(),!1)):(this.api.mute(),Q5(this.V8,0,!0));w=!0;break;case 32:w=this.api.L("web_speedmaster_spacebar_control")?!this.api.T().LK:this.Q2(F);break;case 75:w=this.Q2(F);break;case 190:q?J.enableSpeedOptions&&nP3(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w+.25,!0),SDb(this.V8,!1),w=!0):this.api.jK()&&(this.step(1),w=!0);break;case 188:q? J.enableSpeedOptions&&nP3(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w-.25,!0),SDb(this.V8,!0),w=!0):this.api.jK()&&(this.step(-1),w=!0);break;case 70:X$D(this.api)&&(this.api.toggleFullscreen().catch(function(){}),w=!0); break;case 27:F?(this.progressBar.g$(),w=!0):this.G()&&(w=!0)}if(J.controlsType!=="3")switch(y){case 67:g.sG(this.api.yN())&&(J=this.api.getOption("captions","track"),this.api.toggleSubtitles(),HHf(this.V8,!J||J&&!J.displayName),w=!0);break;case 79:Kk(this,"textOpacity");break;case 87:Kk(this,"windowOpacity");break;case 187:case 61:Kk(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Kk(this,"fontSizeIncrement",!0,!0)}var b;q||Q||p||(y>=48&&y<=57?b=y-48:y>=96&&y<=105&&(b=y-96));b!=null&&this.api.jK()&& !this.api.L("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),J=this.api.getProgressState(),this.api.seekTo(b/10*(J.seekableEnd-J.seekableStart)+J.seekableStart,void 0,void 0,void 0,81),w=!0);w&&this.Op.Ul()}this.N.rr=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:y,shiftKey:q,ctrlKey:Q,altKey:p,metaKey:v,key:d,code:T,repeat:O},this.N);this.N.rr&&(w=!0,this.Op.Ul());return w}; g.K.step=function(y){this.api.jK();if(this.api.getPlayerStateObject().isPaused()){var q=this.api.getVideoData().W;q&&(q=q.video)&&this.api.seekBy(y/(q.fps||30),void 0,void 0,y>0?77:78)}}; g.K.Q2=function(y){if(!this.api.T().LK){var q;var Q,p=(q=this.api.getVideoData())==null?void 0:(Q=q.getPlayerResponse())==null?void 0:Q.playabilityStatus;if(p){var v;q=((v=g.U(p.miniplayer,OiG))==null?void 0:v.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else q=!1;q&&this.api.AK("onExpandMiniplayer");y?this.progressBar.YP():(y=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.V8.V0(y),y?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.K.FV=function(){g.Q0(this.Y);g.sU.prototype.FV.call(this)};g.x(xh,g.r);xh.prototype.XV=function(){var y=this.U.T(),q=y.N||this.U.L("web_player_hide_overflow_button_if_empty_menu")&&this.v_.isEmpty();y=g.d1(y)&&g.yl(this.U)&&g.G(this.U.getPlayerStateObject(),128);var Q=this.U.getPlayerSize();this.visible=this.U.qm()&&!y&&Q.width>=240&&!this.U.getVideoData().cO&&!q&&!this.U.isEmbedsShortsMode();g.fU(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.aM();this.U.logVisibility(this.element,this.visible&&this.C)}; xh.prototype.Kt=function(y){g.r.prototype.Kt.call(this,y);this.U.logVisibility(this.element,this.visible&&y)}; xh.prototype.FV=function(){g.r.prototype.FV.call(this);g.Fn(this.element,"ytp-overflow-button-visible")};g.x(gP8,g.JW);g.K=gP8.prototype;g.K.lA=function(y){y=Hn(y);g.Li(this.element,y)&&(g.Li(this.K,y)||g.Li(this.closeButton,y)||YX(this))}; g.K.QN=function(){g.JW.prototype.QN.call(this);this.U.qJ(this.element)}; g.K.show=function(){this.NU&&this.U.publish("OVERFLOW_PANEL_OPENED");g.JW.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Uyf(this,!0)}; g.K.hide=function(){g.JW.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Uyf(this,!1)}; g.K.onFullscreenToggled=function(y){!y&&this.rk()&&YX(this)}; g.K.isEmpty=function(){return this.actionButtons.length===0}; g.K.focus=function(){for(var y=g.t(this.actionButtons),q=y.next();!q.done;q=y.next())if(q=q.value,q.NU){q.focus();break}};g.x(rU8,g.r);rU8.prototype.onClick=function(y){g.Hy(y,this.api)&&this.api.playVideoAt(this.index)};g.x(oPi,g.JW);g.K=oPi.prototype;g.K.show=function(){g.JW.prototype.show.call(this);this.K.Z(this.api,"videodatachange",this.yr);this.K.Z(this.api,"onPlaylistUpdate",this.yr);this.yr()}; g.K.hide=function(){g.JW.prototype.hide.call(this);g.lw(this.K);this.updatePlaylist(null)}; g.K.yr=function(){this.updatePlaylist(this.api.getPlaylist());this.api.T().N&&(this.uB("ytp-playlist-menu-title-name").removeAttribute("href"),this.W&&(this.UW(this.W),this.W=null))}; g.K.Vz=function(){var y=this.playlist,q=y.author,Q=q?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",p={CURRENT_POSITION:String(y.index+1),PLAYLIST_LENGTH:String(y.length)};q&&(p.AUTHOR=q);this.update({title:y.title,subtitle:g.Yr(Q,p),playlisturl:this.api.getVideoUrl(!0)});q=y.W;if(q===this.N)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[y.index];else{Q=g.t(this.playlistData);for(p=Q.next();!p.done;p=Q.next())p.value.dispose(); Q=y.length;this.playlistData=[];for(p=0;p=this.W&&!y.N&&!q.isAd()&&!this.api.isEmbedsShortsMode()}else y=!1;this.visible=y;this.BB(this.visible);g.fU(this.element,"ytp-search-button-visible",this.visible);g.fU(this.element,"ytp-show-search-title",!this.api.qm());this.api.logVisibility(this.element,this.visible&&this.C)}; EZ.prototype.Kt=function(y){g.r.prototype.Kt.call(this,y);this.api.logVisibility(this.element,this.visible&&y)};g.x(kh,g.r); kh.prototype.trigger=function(y,q,Q,p){this.show();if(this.W&&y!==this.W){var v=1;this.N&&(v=jYs(this));XdD(this,v,!1);qtf(this)}this.W=y;this.Y=this.W===-1?this.X:this.j;y="";q?(this.W===-1&&this.U.getCurrentTime()<=q?this.J=q:this.J+=q,y=(this.W===-1?"\u2212":"+")+" "+this.J):this.J=0;this.updateValue(this.W===-1?"durationBack":"durationForward",y);if(this.K==="hidden"||this.K==="fading-out")q=0,this.K==="fading-out"&&(q=jYs(this),yQs(this)),my2(this,q),this.K!=="fading-out"&&CTC(this,this.Y.querySelector(".ytp-seek-overlay-arrow-persistent")), this.K="fading-in";else if(this.K==="fading-in"||this.K==="lingering")q=this.Y.querySelector(".ytp-seek-overlay-duration"),y=g.wm(this.U.T().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,q.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+y+")"},{offset:1,transform:"scale(1)"}],{duration:184}),yQs(this),this.K==="lingering"&&(this.G.stop(),this.G.start());Q&&QY2(this, Q,p)}; kh.prototype.S$=function(y,q,Q,p){this.trigger(y,p)}; kh.prototype.aq=function(y,q,Q){this.trigger(y,q);Q&&(y=y===-1?this.j.visualElement:this.X.visualElement,Q={seekData:Q},(q=g.LD())&&vN(q,y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Q))}; kh.prototype.Kz=function(y,q,Q){this.trigger(y,void 0,q,Q)};g.x(Lk,g.r);Lk.prototype.onClick=function(){var y=this,q=this.api.T(),Q=this.api.getVideoData(this.api.getPresentingPlayerType()),p=this.api.getPlaylistId();q=this.api.L("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):q.getVideoUrl(Q.videoId,p,void 0,!0);if(navigator.share)try{var v=navigator.share({title:Q.title,url:q});v instanceof Promise&&v.catch(function(d){vx8(y,d)})}catch(d){d instanceof Error&&vx8(this,d)}else this.K.fP(),YX(this.W,this.element,!1); this.api.logClick(this.element)}; Lk.prototype.XV=function(){var y=this.api.T(),q=this.api.isEmbedsShortsMode();g.fU(this.element,"ytp-show-share-title",g.d1(y)&&!q);this.K.JR()&&q?(y=(this.api.lB().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.B0(this.element,"right",y+"px")):q&&g.B0(this.element,"right","0px");this.updateValue("icon",{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{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=pfj(this);g.fU(this.element,"ytp-share-button-visible",this.visible);this.BB(this.visible);this.tooltip.aM();this.api.logVisibility(this.element,pfj(this)&&this.C)}; Lk.prototype.Kt=function(y){g.r.prototype.Kt.call(this,y);this.api.logVisibility(this.element,this.visible&&y)}; Lk.prototype.FV=function(){g.r.prototype.FV.call(this);g.Fn(this.element,"ytp-share-button-visible")};g.x(T2g,g.JW);g.K=T2g.prototype;g.K.O7=function(y){y=Hn(y);g.Li(this.Y,y)||g.Li(this.closeButton,y)||YX(this)}; g.K.QN=function(){g.JW.prototype.QN.call(this);this.tooltip.qJ(this.element);this.api.logVisibility(this.K,!1);for(var y=g.t(this.W),q=y.next();!q.done;q=y.next())q=q.value,this.api.hasVe(q.element)&&this.api.logVisibility(q.element,!1)}; g.K.show=function(){var y=this.NU;g.JW.prototype.show.call(this);this.XV();y||this.api.AK("onSharePanelOpened")}; g.K.hKp=function(){this.NU&&this.XV()}; g.K.XV=function(){var y=this;g.wl(this.element,"ytp-share-panel-loading");g.Fn(this.element,"ytp-share-panel-fail");var q=this.api.getVideoData(),Q=this.api.getPlaylistId()&&this.N.checked;q.getSharePanelCommand&&UR(this.api.Yv(),q.getSharePanelCommand,{includeListId:Q}).then(function(p){y.iB()||(g.Fn(y.element,"ytp-share-panel-loading"),wfD(y,p))}); q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",q);this.updateValue("linkText",q);this.updateValue("shareLinkWithUrl",g.Yr("Compartilhar o link $URL",{URL:q}));lQ(this.K);this.api.logVisibility(this.K,!0)}; g.K.onFullscreenToggled=function(y){!y&&this.rk()&&YX(this)}; g.K.focus=function(){this.K.focus()}; g.K.FV=function(){g.JW.prototype.FV.call(this);VZH(this)};g.x(Ytg,ai);g.K=Ytg.prototype;g.K.FV=function(){K9g(this);ai.prototype.FV.call(this)}; g.K.cz=function(y){y.target!==this.dismissButton.element&&(this.aX(!1),this.U.AK("innertubeCommand",this.onClickCommand))}; g.K.wI=function(){this.Ty=!0;this.aX(!0);this.O8()}; g.K.Ot$=function(y){this.G=y;this.O8()}; g.K.onVideoDataChange=function(y,q){if(y=!!q.videoId&&this.videoId!==q.videoId)this.videoId=q.videoId,this.Ty=!1,this.m3=!0,this.X=this.N$=!1,K9g(this),$AS(this,!1),this.W=this.K=!1,NF(this),fK9(this);if(y||!q.videoId)this.cI=this.Y=!1;var Q,p;if(q==null?0:(Q=q.getPlayerResponse())==null?0:(p=Q.videoDetails)==null?0:p.isLiveContent)this.ol(!1);else{var v,d,T;q=g.U((v=q.getWatchNextResponse())==null?void 0:(d=v.playerOverlays)==null?void 0:(T=d.playerOverlayRenderer)==null?void 0:T.productsInVideoOverlayRenderer, yYC);this.G=this.enabled=!1;if(q){if(v=q==null?void 0:q.featuredProductsEntityKey){d=g.Mg.getState().entities;var O;if((O=dH(d,"featuredProductsEntity",v))==null?0:O.productsData){this.ol(!1);return}}if(!q.text||!q.onClickCommand||!q.timing){this.ol(!1);return}this.enabled=!0;if(!this.Y){var w;O=(w=q.badgeInteractionLogging)==null?void 0:w.trackingParams;(this.Y=!!O)&&this.U.setTrackingParams(this.badge.element,O||null)}if(!this.cI){var J;if(this.cI=!((J=q.dismissButton)==null||!J.trackingParams)){var F; this.U.setTrackingParams(this.dismissButton.element,((F=q.dismissButton)==null?void 0:F.trackingParams)||null)}}q.isContentForward&&(w=q.productsData,$AS(this,!0),fK9(this),w=b79(this,w),J=[],w.length>0&&J.push(w[0]),w.length>1&&(F=new g.r({S:"div",V:"ytp-suggested-action-more-products-icon"}),g.n(this,F),J.push(F),J.push.apply(J,g.hH(w.slice(1)))),this.J=new g.r({S:"div",D:J,V:"ytp-suggested-action-content-forward-container"}),g.n(this,this.J),this.Es.element.append(this.J.element));this.text=g.b7(q.text); var Y;if(w=(Y=q.dismissButton)==null?void 0:Y.a11yLabel)this.HI=g.b7(w);this.onClickCommand=q.onClickCommand;this.timing=q.timing;this.Tf()}qyi(this);LV(this);this.O8()}}; g.K.zE=function(){return!this.G&&this.enabled&&!this.Ty&&!this.U.qm()&&!this.RH&&(this.X||this.m3)}; g.K.QL=function(y){ai.prototype.QL.call(this,y);if(this.K||this.W)this.timing&&aN(this.timing.preview)&&(this.K=!1,NF(this),this.W=!1,NF(this),this.U.BO("shopping_overlay_preview_collapsed"),this.U.BO("shopping_overlay_preview_expanded"),y=SO(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),aN(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.BO("shopping_overlay_expanded"),y.end=this.timing.expanded.endSec*1E3),this.U.Tf([y])), this.N$=!0,LV(this);NF(this)}; g.K.ol=function(y){(this.X=y)?(k_(this),LV(this,!1)):(K9g(this),this.LK.start());this.O8()}; g.K.Tf=function(y){var q=this.timing;y=(y===void 0?0:y)+this.U.getCurrentTime();var Q=[],p=q.visible,v=q.preview;q=q.expanded;aN(p)&&(JQs(p,y),Q.push(SO(p.startSec,p.endSec,"shopping_overlay_visible")));aN(v)&&(JQs(v,y),p=v.startSec+1,Q.push(SO(v.startSec,p,"shopping_overlay_preview_collapsed")),Q.push(SO(p,v.endSec,"shopping_overlay_preview_expanded")));aN(q)&&(JQs(q,y),Q.push(SO(q.startSec,q.endSec,"shopping_overlay_expanded")));this.U.Tf(Q)}; g.K.O8=function(){ai.prototype.O8.call(this);this.U.getRootNode()&&g.fU(this.U.getRootNode(),"ytp-shopping-pill-shown",this.zE())};g.x(Z73,g.r); Z73.prototype.XV=function(){var y=this.api.T();this.BB(g.d1(y)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.NU);var q=this.api.getVideoData(),Q=!1;this.api.getPresentingPlayerType()===2?Q=!!q.videoId&&!!q.isListed&&!!q.author&&!!q.q$&&!!q.profilePicture:g.d1(y)&&(Q=!!q.videoId&&!!q.q$&&!!q.profilePicture&&!q.cO&&!y.N&&!(y.X&&this.api.getPlayerSize().width<200));var p=q.profilePicture;y=g.d1(y)?q.expandedTitle:q.author;p=p===void 0? "":p;y=y===void 0?"":y;Q?(this.W!==p&&(this.K.style.backgroundImage="url("+p+")",this.W=p),this.updateValue("channelLogoLabel",g.Yr("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:y})),g.wl(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Fn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.K,Q&&this.C);this.api.logVisibility(this.channelName,Q&&this.C);this.subscribeButton&&(this.subscribeButton.channelId=q.TC);this.updateValue("expandedTitle",q.expandedTitle)};g.x(Hu,g.JW);Hu.prototype.show=function(){g.JW.prototype.show.call(this);this.K.start()}; Hu.prototype.hide=function(){g.JW.prototype.hide.call(this);this.K.stop()}; Hu.prototype.gR=function(y,q){y==="dataloaded"&&((this.Np=q.Np,this.eB=q.eB,isNaN(this.Np)||isNaN(this.eB))?this.W&&(this.U.BO("intro"),this.U.removeEventListener(g.jw("intro"),this.X),this.U.removeEventListener(g.Qb("intro"),this.Y),this.U.removeEventListener("onShowControls",this.N),this.hide(),this.W=!1):(this.U.addEventListener(g.jw("intro"),this.X),this.U.addEventListener(g.Qb("intro"),this.Y),this.U.addEventListener("onShowControls",this.N),y=new g.yb(this.Np,this.eB,{priority:9,namespace:"intro"}), this.U.Tf([y]),this.W=!0))};g.x(RN,g.r);RN.prototype.onClick=function(){this.U.lw()}; RN.prototype.XV=function(){var y=!0;g.d1(this.U.T())&&(y=y&&this.U.lB().getPlayerSize().width>=480);this.BB(y);y=this.updateValue;var q=this.U.L("delhi_modern_web_player_icons"),Q=q?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,B:{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"}}]};q=q?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{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"}}]};y.call(this,"icon",this.U.yF()?Q:q)};g.x(ExH,g.r);ExH.prototype.FV=function(){this.K=null;g.r.prototype.FV.call(this)};g.x(sZ,g.r);sZ.prototype.onClick=function(){this.U.AK("innertubeCommand",this.W)}; sZ.prototype.j=function(){if(this.U.L("delhi_modern_web_player")){var y=this.U.getPlayerSize();y.width&&(this.element.style.maxWidth=y.width*.25+"px")}}; sZ.prototype.N$=function(y){y!==this.G&&(this.update({chapterTitle:y,ariaLabel:y}),this.G=y);y?this.show():this.hide()}; sZ.prototype.cI=function(){this.K.disabled=this.W==null;g.fU(this.K,"ytp-chapter-container-disabled",this.K.disabled);this.xj()};g.x(MF,sZ);MF.prototype.onClickCommand=function(y){g.U(y,sB)&&this.xj()}; MF.prototype.updateVideoData=function(y,q){var Q,p,v;y=g.U((Q=q.getWatchNextResponse())==null?void 0:(p=Q.playerOverlays)==null?void 0:(v=p.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,v3);Q=g.U(y==null?void 0:y.playerBarActionButton,g.xT);if(this.U.L("web_player_updated_entrypoint")){this.X=p3(Q==null?void 0:Q.text);var d;p=(d=Q==null?void 0:Q.tooltip)!=null?d:"Ver cap\u00edtulo";this.J.setAttribute("title",p)}this.W=Q==null?void 0:Q.command;sZ.prototype.cI.call(this)}; MF.prototype.xj=function(){var y=this.X,q=this.Y.K,Q,p=((Q=this.U.getLoopRange())==null?void 0:Q.type)==="clips";if(q.length>1&&!p){y=this.U.getProgressState().current*1E3;Q=fk(q,y);y=q[Q].title||"Cap\u00edtulos";if(Q!==this.currentIndex||this.N)this.U.AK("innertubeCommand",q[Q].onActiveCommand),this.currentIndex=Q;this.N=!1}else this.N=!0;sZ.prototype.N$.call(this,y)};g.x(lV,g.Ye);lV.prototype.W=function(){var y;(y=this.element.parentElement)==null||y.classList.contains("ytp-right-controls-left");(this.K=!this.K)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; lV.prototype.isExpanded=function(){return this.K};g.x(z4,g.r);z4.prototype.N=function(y){g.G(y.state,32)?L98(this,this.api.u4()):this.NU&&(g.G(y.state,16)||g.G(y.state,1))||this.fade.hide()}; z4.prototype.onProgress=function(){var y=this.api.getPlayerStateObject();(g.G(y,32)||g.G(y,16))&&aK3(this)}; z4.prototype.Y=function(){this.frameIndex=NaN;aK3(this)}; z4.prototype.hide=function(){this.K&&L98(this,null);g.r.prototype.hide.call(this)};g.x(N2b,g.r);g.K=N2b.prototype;g.K.onClick=function(){var y=this;if(this.U.T().q$||this.U.T().X){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(q){y.qj(q)})}catch(q){this.qj(q)}}else YX(this.message,this.element,!0)}; g.K.qj=function(y){String(y).includes("fullscreen error")?g.zI(y):g.l$(y);this.IT()}; g.K.IT=function(){this.disable();this.message.zD(this.element,!0)}; g.K.VO=function(){tp()===this.U.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())}; g.K.q0=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var y=window.screen.width*.9,q=window.screen.height*.9,Q=Math.max(window.outerWidth,window.innerWidth),p=Math.max(window.outerHeight,window.innerHeight);if(Q>p!==y>q){var v=Q;Q=p;p=v}y>Q&&q>p&&this.IT()}}; g.K.disable=function(){var y=this;if(!this.message){var q=(xJ(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.JW(this.U,{S:"div",rp:["ytp-popup","ytp-generic-popup"],B:{role:"alert",tabindex:"0"},D:[q[0],{S:"a",B:{href:"https://support.google.com/youtube/answer/6276924", target:this.U.T().j},M$:q[2]},q[4]]},100,!0);this.message.hide();g.n(this,this.message);this.message.subscribe("show",function(Q){y.W.Rn(y.message,Q)}); g.pq(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.K)();this.K=null}}; g.K.XV=function(){var y=X$D(this.U),q=this.U.T().X&&this.U.getPlayerSize().width<250;this.BB(y&&!q);this.U.logVisibility(this.element,this.NU)}; g.K.hM=function(y){if(y){var q=g.P4(this.U,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(Q){g.zI(Q)})}else q=g.P4(this.U,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"}); y=St2(this,y);q=this.message?null:q;this.U.T().L("player_tooltip_data_title_killswitch")?this.update({title:q,icon:y}):this.update({"tooltip-title":q,"aria-label":q,icon:y});this.W.Dm().aM()}; g.K.FV=function(){this.message||((0,this.K)(),this.K=null);g.r.prototype.FV.call(this)}; g.K.Kt=function(y){g.r.prototype.Kt.call(this,y)};g.x(Dl,g.r);Dl.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.K,!0);var y=this.K>0?1:-1,q=Math.abs(this.K),Q=this.U.U8().KA;Q&&Q.aq(y,q);this.W.isActive()?this.N=!0:(y=["ytp-jump-spin"],this.K<0&&y.push("backwards"),this.element.classList.add.apply(this.element.classList,g.hH(y)),g.qM(this.W))};g.x(uV,sZ);uV.prototype.onClickCommand=function(y){g.U(y,mRk)&&this.xj()}; uV.prototype.updateVideoData=function(){var y,q;this.W=(y=Ri3(this))==null?void 0:(q=y.onTap)==null?void 0:q.innertubeCommand;sZ.prototype.cI.call(this)}; uV.prototype.xj=function(){var y="",q=this.Y.G,Q,p=(Q=Ri3(this))==null?void 0:Q.headerTitle;Q=p?g.b7(p):"";var v;p=((v=this.U.getLoopRange())==null?void 0:v.type)==="clips";q.length>1&&!p&&(y=this.U.getProgressState().current*1E3,v=sEp(q,y),y=v!=null?q[v].title:Q,v!=null&&v!==this.currentIndex&&(this.U.AK("innertubeCommand",q[v].onActiveCommand),this.currentIndex=v));sZ.prototype.N$.call(this,y)};g.x(IN,g.r);IN.prototype.onClick=function(){this.U.AK("onCollapseMiniplayer");this.U.logClick(this.element)}; IN.prototype.XV=function(){this.visible=!this.U.isFullscreen();this.BB(this.visible);this.U.logVisibility(this.element,this.visible&&this.C)}; IN.prototype.Kt=function(y){g.r.prototype.Kt.call(this,y);this.U.logVisibility(this.element,this.visible&&y)};g.x(nk,g.r);nk.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.J);this.updateValue("stepvalue",this.X);this.updateValue("slidervalue",this.K);MZs(this,this.K)}; nk.prototype.N=function(){gJ(this,Number(this.W.value));this.W.focus()}; nk.prototype.G=function(y){if(!y.defaultPrevented){switch(y.code){case "ArrowDown":y=-this.X;break;case "ArrowUp":y=this.X;break;default:return}gJ(this,Math.min(this.J,Math.max(Number((this.K+y).toFixed(2)),this.Y)))}};g.x(cu,nk);cu.prototype.onVolumeChange=function(y){if(this.j)this.j=!1;else{var q=y.volume;q===0||y.muted?gJ(this,0):gJ(this,q)}}; cu.prototype.N=function(){nk.prototype.N.call(this);this.cI(this.K)}; cu.prototype.N$=function(y){var q=-y.deltaY;q=y.deltaMode===WheelEvent.DOM_DELTA_LINE||y.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.rV(this.K+q,0,100):g.rV(this.K+g.rV(q/10,-10,10),0,100);q===0?gJ(this,0):gJ(this,q);this.cI(q);y.preventDefault();y.stopPropagation()}; cu.prototype.m3=function(y,q){this.j=!0;y===0||q?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(y))};g.x(lKg,g.r);g.x(rJ,g.r);g.K=rJ.prototype;g.K.Yt=function(){if(!this.U.QU()){this.updateValue("dataTooltipOffsetY",-120);var y;(y=this.K)!=null&&UZ(y,!0);var q;(q=this.K)!=null&&q.K.stop()}}; g.K.Wr=function(){var y;(y=this.K)!=null&&y.K.start()}; g.K.mP=function(y){this.visible=y.width>=300||this.vI;this.BB(this.visible);this.U.logVisibility(this.element,this.visible&&this.C)}; g.K.FP=function(){this.U.T().Es?this.U.isMuted()?this.U.unMute():this.U.mute():YX(this.message,this.element,!0);this.U.logClick(this.element)}; g.K.W5w=function(y){if(this.U.T().Es&&this.K)if(y.target===this.N){var q;if(!this.U.QU()||((q=this.K)==null?0:q.isVisible))this.FP();else{var Q;(Q=this.K)!=null&&UZ(Q,!0)}}else{var p;(p=this.K)!=null&&UZ(p,!0)}else this.FP()}; g.K.onVolumeChange=function(y){this.setVolume(y.volume,y.muted)}; g.K.setVolume=function(y,q){var Q=this,p=q?0:y/100;y=p===0?1:y>50?1:0;if(this.j!==y){var v=this.X;isNaN(v)?nx9(this,y):cZb(this.Es,function(T){nx9(Q,v+(Q.j-v)*T)},250); this.j=y}p=p===0?1:0;if(this.G!==p){var d=this.m3;isNaN(d)?gxS(this,p):cZb(this.Sj,function(T){gxS(Q,d+(Q.G-d)*T)},250); this.G=p}DAs(this,q)}; g.K.Kt=function(y){g.r.prototype.Kt.call(this,y);this.U.logVisibility(this.element,this.visible&&y)}; var uAS=["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"],IKD=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.x(g.oN,g.r);g.K=g.oN.prototype;g.K.onStateChange=function(y){this.hU(y.state)}; g.K.hU=function(y){var q=g.p$(this.U.getVideoData()),Q=!1;y.isOrWillBePlaying()?y=q?4:2:g.G(y,2)?(y=3,Q=q):y=1;this.element.disabled=Q;if(this.K!==y){q=null;switch(y){case 2:q=g.P4(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:q="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:q=g.P4(this.U,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:q="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}y=== 3?this.U.T().L("player_tooltip_data_title_killswitch")?this.update({title:q,icon:cQ9(this,y)}):this.update({"tooltip-title":q,icon:cQ9(this,y)}):(this.U.L("player_tooltip_data_title_killswitch")?this.update({title:q}):this.update({"tooltip-title":q}),(q=cQ9(this,y))&&this.K&&this.K!==3?rZ9(this.transition,this.element,q):this.updateValue("icon",q));this.tooltip.aM();this.K=y}}; g.K.onVideoDataChange=function(){g.fU(this.element,"ytp-play-button-playlist",g.yl(this.U))}; g.K.Q2=function(y){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var q={},Q;if((Q=this.U.getVideoData())==null?0:Q.G)q.cttAuthInfo={token:this.U.getVideoData().G,videoId:this.U.getVideoData().videoId};ug("direct_playback",q);this.U.FD().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(y==null?void 0:y.type)==="click"&&this.element.blur()}; g.K.Kt=function(y){g.r.prototype.Kt.call(this,y)};g.x(g.Aw,g.r);g.K=g.Aw.prototype;g.K.onVideoDataChange=function(){ox9(this);this.Y&&(this.UW(this.Y),this.Y=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Y=this.Z(this.U,"progresssync",this.z9);this.N=AQH(this);rQ3(this);this.h5(this.U.lB().getPlayerSize())}; g.K.h5=function(y){y=y===void 0?this.U.lB().getPlayerSize():y;var q,Q=((q=this.U.getLoopRange())==null?void 0:q.type)==="clips";q=g.yl(this.U)||this.K&&g.vy(this.U)&&!this.U.L("web_hide_next_button")||eiS(this);var p=!this.K&&y.width<400;y=this.U.L("delhi_modern_web_player_horizontal_volume_controls")&&y.width<640;Q=q&&!Q&&!p&&!y;this.BB(Q);this.U.logVisibility(this.element,Q)}; g.K.onClick=function(y){this.U.logClick(this.element);var q=!0;this.G?q=g.Hy(y,this.U):y.preventDefault();q&&(this.K&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.K?(Zg(this.U.FD()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.N?this.U.seekTo(0):(Zg(this.U.FD()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.K.z9=function(){var y=AQH(this);y!==this.N&&(this.N=y,rQ3(this))}; g.K.FV=function(){this.W&&(this.W(),this.W=null);ox9(this);g.r.prototype.FV.call(this)};g.x(GV9,g.r);g.K=GV9.prototype;g.K.A$=function(y){this.Bw(y.pageX);this.by(y.pageX+y.deltaX);PCD(this)}; g.K.Bw=function(y){this.cI=y-this.vI}; g.K.by=function(y){y-=this.vI;!isNaN(this.cI)&&this.thumbnails.length>0&&(this.j=y-this.cI,this.thumbnails.length>0&&this.j!==0&&(this.N=this.X+this.j,y=yFp(this,this.N),this.N<=this.K/2&&this.N>=CC2(this)?(this.api.seekTo(y,!1,void 0,void 0,25),g.B0(this.m3,"transform","translateX("+(this.N-this.K/2)+"px)"),B2i(this,y)):this.N=this.X))}; g.K.T9=function(){this.N$&&(this.N$.FK=!0);var y=(0,g.SK)()-this.Vm<300;if(Math.abs(this.j)<5&&!y){this.Vm=(0,g.SK)();y=this.cI+this.j;var q=this.K/2-y;this.Bw(y);this.by(y+q);PCD(this);this.api.logClick(this.J)}PCD(this)}; g.K.DS=function(){eO(this,this.api.getCurrentTime())}; g.K.play=function(y){this.api.seekTo(yFp(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();y&&this.api.logClick(this.playButton)}; g.K.onExit=function(y){this.api.seekTo(this.LK,void 0,void 0,void 0,63);this.api.playVideo();y&&this.api.logClick(this.dismissButton)}; g.K.n3=function(y,q){this.vI=y;this.K=q;eO(this,this.api.getCurrentTime())}; g.K.enable=function(){this.isEnabled||(this.isEnabled=!0,this.LK=this.api.getCurrentTime(),B2i(this,this.LK),g.fU(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Es=this.Z(this.element,"wheel",this.A$),this.logVisibility(this.isEnabled))}; g.K.disable=function(){this.isEnabled=!1;this.hide();g.fU(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Es&&this.UW(this.Es);this.logVisibility(this.isEnabled)}; g.K.reset=function(){this.disable();this.Y=[];this.gp=!1}; g.K.logVisibility=function(y){this.api.logVisibility(this.element,y);this.api.logVisibility(this.J,y);this.api.logVisibility(this.dismissButton,y);this.api.logVisibility(this.playButton,y)}; g.K.FV=function(){for(;this.W.length;){var y=void 0;(y=this.W.pop())==null||y.dispose()}g.r.prototype.FV.call(this)}; g.x(i7j,g.r);g.x(Xfb,g.r);g.x(q5s,g.r);g.x(Bu,g.r);Bu.prototype.aH=function(y){return y==="PLAY_PROGRESS"?this.X:y==="LOAD_PROGRESS"?this.G:y==="LIVE_BUFFER"?this.J:this.N};px9.prototype.update=function(y,q,Q,p){Q=Q===void 0?0:Q;this.width=q;this.Y=Q;this.K=q-Q-(p===void 0?0:p);this.position=g.rV(y,Q,Q+this.K);this.N=this.position-Q;this.W=this.N/this.K};g.x(vgC,g.r);g.x(g.iV,g.Ye);g.K=g.iV.prototype; g.K.TQ=function(){var y=!1,q=this.api.getVideoData();if(!q)return y;this.api.BO("timedMarkerCueRange");V8b(this);for(var Q=g.t(q.BI),p=Q.next();!p.done;p=Q.next()){p=p.value;var v=void 0,d=(v=this.HI[p])==null?void 0:v.markerType,T=void 0;v=(T=this.HI[p])==null?void 0:T.markers;if(!v)break;if(d==="MARKER_TYPE_TIMESTAMPS"){y=g.t(v);for(d=y.next();!d.done;d=y.next()){T=d.value;d=new vgC;var O=void 0;d.title=((O=T.title)==null?void 0:O.simpleText)||"";d.timeRangeStartMillis=Number(T.startMillis);d.K= Number(T.durationMillis);var w=O=void 0;d.onActiveCommand=(w=(O=T.onActive)==null?void 0:O.innertubeCommand)!=null?w:void 0;f69(this,d)}hKg(this,this.G);y=this.G;d=this.zI;T=[];O=null;for(w=0;wJ&&(O.end=J);J=z09(J,J+Y);T.push(J);O=J;d[J.id]=y[w].onActiveCommand}}this.api.Tf(T);a:{y=g.t(v);for(v=y.next();!v.done;v=y.next())if(v.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){y= !1;break a}y=!0}y&&(this.YJ=this.HI[p]);y=!0}else if(d==="MARKER_TYPE_HEATMAP"){p=this.HI[p];F=J=d=w=O=T=void 0;if(p&&p.markers){v=(d=(F=p.markersMetadata)==null?void 0:(J=F.heatmapMetadata)==null?void 0:J.minHeightDp)!=null?d:0;d=(T=(w=p.markersMetadata)==null?void 0:(O=w.heatmapMetadata)==null?void 0:O.maxHeightDp)!=null?T:60;T=this.K.length;O=null;for(w=0;w=F&&b<=Y&&J.push(h)}d>0&&(this.N$.style.height=d+"px");F=this.Y[w];Y=J;h=v;var Z=d,k=w===0;k=k===void 0?!1:k;j1H(F,Z);f=Y;b=F.W;k=k===void 0?!1:k;var S=1E3/f.length,N=[];N.push({x:0,y:100});for(var l=0;l0&&(O=J[J.length-1])}g.Xt(this)}d=void 0;v=[];if(p=(d=p.markersDecoration)==null?void 0:d.timedMarkerDecorations)for(p=g.t(p),d=p.next();!d.done;d=p.next())d=d.value,w=O=T=void 0,v.push({visibleTimeRangeStartMillis:(T=d.visibleTimeRangeStartMillis)!= null?T:-1,visibleTimeRangeEndMillis:(O=d.visibleTimeRangeEndMillis)!=null?O:-1,decorationTimeMillis:(w=d.decorationTimeMillis)!=null?w:NaN,label:d.label?g.b7(d.label):""});p=v;this.heatMarkersDecorations=p}}q.lR=this.G;g.fU(this.element,"ytp-timed-markers-enabled",y);return y}; g.K.n3=function(){g.Xt(this);yg(this);hKg(this,this.G);if(this.W){var y=this.US(this.element).x||0;this.W.n3(y,this.J)}}; g.K.rjm=function(){var y=this.api.getVideoData();y&&a6C(this,y)}; g.K.onClickCommand=function(y){if(y=g.U(y,sB)){var q=y.key;y.isVisible&&q&&xzg(this,q)}}; g.K.C6j=function(y){this.api.AK("innertubeCommand",this.zI[y.id])}; g.K.xj=function(){yg(this);var y=this.api.getCurrentTime();(ythis.clipEnd)&&this.Uh()}; g.K.td=function(y){if(!y.defaultPrevented){var q=!1;switch(y.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);q=!0;break;case 38:this.api.L("enable_key_press_seek_logging")&&dt(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);q=!0;break;case 40:this.api.L("enable_key_press_seek_logging")&&dt(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),q=!0}q&&y.preventDefault()}}; g.K.gR=function(y,q){this.updateVideoData(q,y==="newdata")}; g.K.rT=function(){this.gR("newdata",this.api.getVideoData())}; g.K.updateVideoData=function(y,q){q=q===void 0?!1:q;var Q=!!y&&y.hj();Q&&(aF(y)||kgf(this)?this.YW=!1:this.YW=y.allowLiveDvr,g.fU(this.api.getRootNode(),"ytp-enable-live-buffer",!(y==null||!aF(y))),a6C(this,y));cFp(this,this.api.jK());if(q){if(Q){q=y.clipEnd;this.clipStart=y.clipStart;this.clipEnd=q;Ti(this);for(Qg(this,this.cI,this.cB);this.Y.length>0;)this.Y.pop().dispose();this.heatMarkersDecorations=[];this.Se={};var p;(p=this.W)==null||p.reset();F8(this);g.fU(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Pu(this))}else this.Uh();this.SP()}if(y){var v;p=((v=this.Jw)==null?void 0:v.type)==="clips";if(v=!y.isLivePlayback){v=this.api.getVideoData();q=g.dx(v);Q=wxp(v);var d;v=q!=null||Q!=null&&Q.length>0||((d=v.Zh)==null?void 0:d.length)>0}if(v&&!p){d=this.api.getVideoData();p=g.dx(d);v=!1;if(p==null?0:p.markersMap){v=this.api.getVideoData();var T;v.Kb=((T=p.visibleOnLoad)==null?void 0:T.key)||v.Kb;T=g.t(p.markersMap);for(p=T.next();!p.done;p=T.next())p=p.value,p.key&&p.value&&(this.Se[p.key]=p.value, p.value.onChapterRepeat&&(v.OUV=p.value.onChapterRepeat));v.Kb!=null&&xzg(this,v.Kb);v=!0}var O;if(((O=d.Zh)==null?void 0:O.length)>0){O=g.Mg.getState().entities;T=g.t(d.Zh);for(p=T.next();!p.done;p=T.next()){p=p.value;Q=void 0;q=(Q=dH(O,"macroMarkersListEntity",p))==null?void 0:Q.markersList;var w=Q=void 0;if(((Q=q)==null?void 0:Q.markerType)==="MARKER_TYPE_TIMESTAMPS"||((w=q)==null?void 0:w.markerType)==="MARKER_TYPE_HEATMAP")this.HI[p]=q}v=this.TQ()||v}!v&&(O=wxp(d))&&(F1C(this,O),d.YJ=this.K, JFp(this));Nbf(this,null);y.Ic&&this.Y.length===0&&(y=y.Ic,O=y.key,y.isVisible&&O&&xzg(this,O))}else dzH(this),V8b(this)}yg(this)}; g.K.sO=function(y){this.X&&!g.G(y.state,32)&&this.api.getPresentingPlayerType()!==3&&this.X.cancel();var q;((q=this.W)==null?0:q.isEnabled)&&g.G(y.state,8)&&this.api.pauseVideo();y=this.api.getPresentingPlayerType()===2||!this.api.jK()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.fU(this.t1,"ytp-hide-scrubber-button",y)}; g.K.a6=function(y){var q=!!this.Jw!==!!y,Q=this.Jw;this.Jw=y;Nbf(this,Q);(y==null?void 0:y.type)!=="clips"&&y||(y?(this.updateValue("clipstarticon",ses()),this.updateValue("clipendicon",ses()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",EJ2()),this.updateValue("clipendicon",tep()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),q&&(this.updateVideoData(this.api.getVideoData(), !0),g.Xt(this)),Ti(this));Qg(this,this.cI,this.cB)}; g.K.j7m=function(){this.api.publish("progressBarHoverStart")}; g.K.f3s=function(y,q,Q){var p=this.US(this.element),v=Ck(this).K,d=Q?Q.getAttribute("data-tooltip"):void 0,T=Q?Q.getAttribute("data-position"):void 0,O=Q?Q.getAttribute("data-offset-y"):void 0;O=O?Number(O):0;T&&(y=ns(this.N,Number(Q.getAttribute("data-position")),0)*v+this.US(this.progressBar).x);this.q$.x=y-p.x;this.q$.y=q-p.y;y=Ck(this);Q=v8(this,y);q=0;var w;if((w=this.api.getVideoData())==null?0:aF(w))(w=this.api.getProgressState().seekableEnd)&&Q>w&&(Q=w,y.position=ns(this.N,w)*Ck(this).K), q=this.N.W;kgf(this)&&(q=this.N.W);w=d||g.NG(this.YW?Q-this.N.K:Q-q);q=y.position+this.eP;Q-=this.api.bj();var J;if((J=this.W)==null||!J.isEnabled)if(this.api.u4()){if(this.K.length>1){J=pK(this,this.q$.x,!0);if(!this.Jw)for(p=0;p1)for(p=0;p0)for(J=this.q$.x,p=g.t(this.G),v=p.next();!v.done;v=p.next())v=v.value,T=mT(this, v.timeRangeStartMillis/(this.N.K*1E3),Ck(this)),g.fU(v.element,"ytp-timed-marker-hover",T<=J&&T+6>=J);p=this.tooltip.scale;J=this.api.L("delhi_modern_web_player")?67:45;O=(isNaN(O)?0:O)-J*p;this.api.L("web_key_moments_markers")?this.YJ?(J=sEp(this.G,Q*1E3),J=J!=null?this.G[J].title:""):(J=fk(this.K,Q*1E3),J=this.K[J].title):(J=fk(this.K,Q*1E3),J=this.K[J].title);J||(O+=16*p);this.tooltip.scale===.6&&(g.Nj(this.api.T())?(O=this.api.lB().getPlayerSize().height-225,p=this.api.L("delhi_modern_web_player")? 70:110,O=J?O+p:O+p+16):O=J?110:126);p=fk(this.K,Q*1E3);this.gp=HcS(this,Q,p)?p:HcS(this,Q,p+1)?p+1:-1;g.fU(this.api.getRootNode(),"ytp-progress-bar-snap",this.gp!==-1&&this.K.length>1);p=!1;v=g.t(this.heatMarkersDecorations);for(T=v.next();!T.done;T=v.next()){T=T.value;var F=Q*1E3;F>=T.visibleTimeRangeStartMillis&&F<=T.visibleTimeRangeEndMillis&&(J=T.label,w=g.NG(T.decorationTimeMillis/1E3),this.api.L("web_heat_marker_use_current_time")&&(w=g.NG(v8(this,y))),p=!0)}this.eB!==p&&(this.eB=p,this.api.logVisibility(this.Wn, this.eB));g.fU(this.api.getRootNode(),"ytp-progress-bar-decoration",p);p=160*this.tooltip.scale*2;v=J.length*(this.j?8.55:5.7);v=v<=p?v:p;T=v<160*this.tooltip.scale;p=3;!T&&v/2>y.position&&(p=1);!T&&v/2>this.J-y.position&&(p=2);this.api.T().X&&(O-=10);this.Y.length&&this.Y[0].hj&&(O-=14*(this.j?2:1),this.LK||(this.LK=!0,this.api.logVisibility(this.N$,this.LK)));var Y;if(Pu(this)&&(((Y=this.W)==null?0:Y.isEnabled)||this.BI>0)){var f;O-=((f=this.W)==null?0:f.isEnabled)?Oy(this):this.BI}Y=void 0;Pu(this)&& !this.api.L("web_player_hide_fine_scrubbing_edu")&&(Y="Puxe para cima para uma busca precisa",this.vI||(this.vI=!0,this.api.logVisibility(this.zf,this.vI)));this.tooltip.KY(q,Q,w,!!d,O,J,p,Y)}else this.tooltip.KY(q,Q,w,!!d,O);g.wl(this.api.getRootNode(),"ytp-progress-bar-hover");Egf(this)}; g.K.qWj=function(){this.SP();g.Fn(this.api.getRootNode(),"ytp-progress-bar-hover");this.LK&&(this.LK=!1,this.api.logVisibility(this.N$,this.LK));this.vI&&(this.vI=!1,this.api.logVisibility(this.zf,this.vI));this.api.L("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.K.Pt3=function(y,q){var Q=this.US(this.element);this.EW=y-Q.x;Pu(this)&&this.W&&(this.W.gp?eO(this.W,this.api.getCurrentTime()):mAb(this.W),this.W.show(),g.fU(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.oo&&(this.oo.dispose(),this.oo=null);this.yf=q;this.Bn=this.api.getCurrentTime();this.K.length>1&&this.gp!==-1?this.api.seekTo(this.K[this.gp].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(v8(this,Ck(this)),!1,void 0,void 0,7);g.wl(this.element,"ytp-drag");(this.QY= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.K.Kum=function(){if(Pu(this)&&this.W){var y=Oy(this);this.BI>=y*.5?(this.W.enable(),eO(this.W,this.api.getCurrentTime()),ggs(this,y)):F8(this)}if(g.G(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var q;if((q=this.W)==null?0:q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.K.length>1&&this.gp!==-1)this.api.L("html5_enable_progress_bar_slide_seek_logging")&&dt(this,this.Bn,this.K[this.gp].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.K[this.gp].startTime/1E3,void 0,void 0,void 0,7);else{y=v8(this,Ck(this));this.api.L("html5_enable_progress_bar_slide_seek_logging")&&dt(this,this.Bn,y,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(y,void 0,void 0,void 0,7);q=g.t(this.heatMarkersDecorations);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,y*1E3>=Q.visibleTimeRangeStartMillis&&y*1E3<=Q.visibleTimeRangeEndMillis&& this.api.logClick(this.Wn)}g.Fn(this.element,"ytp-drag");this.Sj&&(this.m3.src=this.Sj);this.QY&&!g.G(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.K.WuI=function(y,q){var Q=this,p=Ck(this),v=v8(this,p);this.api.lB().A7||(p.position>this.EW+2?this.Mz&&(this.m3.src=this.Mz):p.position1);this.BB(y&&this.U.lB().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.NU);var q=1;y&&this.isActive()&&(q=2);if(this.K!==q){this.K=q;y=this.U.L("delhi_modern_web_player_icons");switch(q){case 1:this.updateValue("icon",y?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{S:"path",Nz:!0,B:{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", y?{S:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{S:"path",B:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.WFb())}g.fU(this.element,"ytp-remote-button-active",this.isActive())}}; YO.prototype.W=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var y=this.fK,q=this.element;if(y.rk())y.QN();else{y.initialize();a:{var Q=g.t(y.NT.items);for(var p=Q.next();!p.done;p=Q.next())if(p=p.value,p.priority===1){Q=p;break a}Q=null}Q&&(Q.open(),y.zD(q));y.zD(q)}}this.U.logClick(this.element)};g.x(fK,g.r);fK.prototype.K=function(y){var q=this.U.T(),Q=400;this.U.L("web_player_small_hbp_settings_menu")&&q.G?Q=300:q.X&&(Q=200);y=this.W&&y.width>=Q;this.BB(y);this.U.logVisibility(this.element,y)}; fK.prototype.N=function(){if(this.fK.NU)this.fK.QN();else{var y=g.sG(this.U.yN());y&&!y.loaded&&(y.c_("tracklist",{includeAsr:!0}).length||y.load());this.U.logClick(this.element);this.fK.zD(this.element)}}; fK.prototype.updateBadge=function(){var y=this.U.isHdr(),q=this.U.getPresentingPlayerType(),Q=q!==2&&q!==3,p=g.Ql(this.U),v=Q&&!!g.ji(this.U.yN());q=v&&p.displayMode===1;p=v&&p.displayMode===2;Q=(v=q||p)||!Q?null:this.U.getPlaybackQuality();g.fU(this.element,"ytp-hdr-quality-badge",y);g.fU(this.element,"ytp-hd-quality-badge",!y&&(Q==="hd1080"||Q==="hd1440"));g.fU(this.element,"ytp-4k-quality-badge",!y&&Q==="hd2160");g.fU(this.element,"ytp-5k-quality-badge",!y&&Q==="hd2880");g.fU(this.element,"ytp-8k-quality-badge", !y&&Q==="highres");g.fU(this.element,"ytp-3d-badge-grey",!y&&v&&q);g.fU(this.element,"ytp-3d-badge",!y&&v&&p)};g.x(hZ,g.Ii);g.K=hZ.prototype;g.K.XV=function(){var y=this.U.getAvailableAudioTracks();y.length>1?(this.qo(g.W5(y,this.t5)),this.tracks=g.Ch(y,this.t5,this),this.countLabel.Ct(y.length?" ("+y.length+")":""),this.publish("size-change"),this.K1(this.t5(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; g.K.Fo=function(y){g.Ii.prototype.Fo.call(this,y);this.U.setAudioTrack(this.tracks[y]);this.fK.RE()}; g.K.t5=function(y){return y.toString()}; g.K.B7=function(y){this.U.L("html5_enable_new_audio_settings_menu")?this.K&&(y?this.K.qU(this):this.K.Ep(this)):g.Ii.prototype.B7.call(this,y)}; g.K.onClick=function(){this.U.logClick(this.element)};g.x(rFS,g.bQ);g.K=rFS.prototype;g.K.Qe=function(){this.U.Qe()}; g.K.open=function(){this.TD.RL()>0&&g.sh(this.fK,this.TD)}; g.K.Il=function(){this.TD.RL()>0&&this.U.getPresentingPlayerType()!==2&&this.U.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.K.td=function(y){y.defaultPrevented||(this.open(),y.preventDefault())}; g.K.qU=function(y){this.TD.qU(y)}; g.K.Ep=function(y){this.TD.Ep(y)};g.x(ba,NZ); ba.prototype.Il=function(){var y=this.U.getPresentingPlayerType();if(y!==2&&y!==3&&g.vy(this.U))this.K||(this.fK.qU(this),this.K=!0,this.W.push(this.Z(this.U,"videodatachange",this.Il)),this.W.push(this.Z(this.U,"videoplayerreset",this.Il)),this.W.push(this.Z(this.U,"onPlaylistUpdate",this.Il)),this.W.push(this.Z(this.U,"autonavchange",this.N)),y=this.U.getVideoData(),this.N(y.autonavState),this.U.logVisibility(this.element,this.K));else if(this.K){this.fK.Ep(this);this.K=!1;y=g.t(this.W);for(var q= y.next();!q.done;q=y.next())this.UW(q.value)}}; ba.prototype.N=function(y){Si(this,y!==1)}; ba.prototype.onSelect=function(y){this.U.GZ(y?2:1);this.K&&(this.U.logVisibility(this.element,this.K),this.U.logClick(this.element))}; ba.prototype.FV=function(){this.K&&this.fK.Ep(this);NZ.prototype.FV.call(this)};g.x(ogD,g.bQ);ogD.prototype.onClick=function(y){y.preventDefault();var q,Q;(q=g.c4(this.U))==null||(Q=q.hd())==null||Q.QN();var p,v;(p=g.c4(this.U))==null||(v=p.N6())==null||v.zD(y.target)};g.x(AFp,g.Ii);g.K=AFp.prototype; g.K.Il=function(){var y=this.U.getPresentingPlayerType();if(y!==2&&y!==3){this.N$=this.U.w6();var q=this.U.getAvailableQualityLevels();if(this.K){this.W={};y=g.Dt(this.U,"getAvailableQualityData",[]);y=g.t(y);for(var Q=y.next();!Q.done;Q=y.next())Q=Q.value,this.W[Q.qualityLabel]=Q;y=Object.keys(this.W);q[q.length-1]==="auto"&&y.push("auto");this.m3=new Set(q)}else if(this.Y){Q=g.Dt(this.U,"getAvailableQualityData",[]);y=[];Q=g.t(Q);for(var p=Q.next();!p.done;p=Q.next())p=p.value,this.G[p.quality]= p,p.quality&&y.push(p.quality);q[q.length-1]==="auto"&&y.push("auto")}else y=q;g.g78(this.U)&&this.U.p$()&&y.unshift("missing-qualities");q=this.U.app.tK();Q=q.getVideoData();if(!Q.W||!Q.W.video||Q.W.video.qualityOrdinal<1080||Q.qC)q=!1;else{p=/^qsa/.test(Q.clientPlaybackNonce);var v="r";Q.W.id.indexOf(";")>=0&&(p=/^[a-p]/.test(Q.clientPlaybackNonce),v="x");p?(q.Rb("iqss",{trigger:v},!0),q=!0):q=!1}q&&y.unshift("inline-survey");this.qo(y);q=this.U.getVideoData().cotn?!0:!1;Q=this.cI.rh();Q=!g.Nj(this.U.T())|| !(q===void 0?0:q)||!(Q===void 0||Q);q=this.TD;Q=Q===void 0?!1:Q;q.Ig&&g.fU(q.uB("ytp-panel-footer"),"ytp-panel-hide-footer",Q===void 0?!1:Q);if(y.length){this.u$();this.enable(!0);return}}this.enable(!1)}; g.K.u$=function(){if(this.K){var y=this.U.getPreferredQuality();this.m3.has(y)&&(this.J=this.U.getPlaybackQuality(),this.X=this.U.getPlaybackQualityLabel(),y==="auto"?(this.K1(y),this.Ct(this.WC(y))):this.K1(this.X))}else y=this.U.getPreferredQuality(),this.options[y]&&(this.J=this.U.getPlaybackQuality(),this.K1(y),y==="auto"&&this.Ct(this.WC(y)))}; g.K.Fo=function(y){if(y!=="missing-qualities"){g.Ii.prototype.Fo.call(this,y);var q=this.K?this.W[y]:this.G[y];var Q=q==null?void 0:q.quality,p=q==null?void 0:q.formatId,v=q==null?void 0:q.paygatedQualityDetails;q=v==null?void 0:v.endpoint;if(v){var d;v=(d=this.options[y])==null?void 0:d.element;this.U.logClick(v)}if(this.K){var T,O;if((T=g.U(q,g.e6w))==null?0:(O=T.popup)==null?0:O.notificationActionRenderer)this.U.AK("innertubeCommand",q);else if(q){this.U.AK("innertubeCommand",q);return}p?this.U.setPlaybackQuality(Q, p):this.U.setPlaybackQuality(Q)}else{if(this.Y){var w,J;if((w=g.U(q,g.e6w))==null?0:(J=w.popup)==null?0:J.notificationActionRenderer)this.U.AK("innertubeCommand",q);else if(q){this.U.AK("innertubeCommand",q);return}}this.U.setPlaybackQuality(y)}this.fK.QN();this.Il()}}; g.K.open=function(){for(var y=g.t(Object.values(this.options)),q=y.next();!q.done;q=y.next()){q=q.value;var Q=void 0;this.U.hasVe((Q=q)==null?void 0:Q.element)&&(Q=void 0,this.U.logVisibility((Q=q)==null?void 0:Q.element,!0))}g.Ii.prototype.open.call(this);this.U.logClick(this.element)}; g.K.RK=function(y,q,Q){var p=this;if(y==="missing-qualities")return new g.bQ({S:"a",rp:["ytp-menuitem"],B:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.T().j,tabindex:"0",role:"menuitemradio"},D:[{S:"div",rp:["ytp-menuitem-label"],M$:"{{label}}"}]},q,this.WC(y));if(y!=="inline-survey"){var v,d=(v=this.K?this.W[y]:this.G[y])==null?void 0:v.paygatedQualityDetails;v=d==null?void 0:d.veType;d=d==null?void 0:d.trackingParams;q=g.Ii.prototype.RK.call(this,y,q,Q);d?(this.U.createServerVe(q.element, this,!0),this.U.setTrackingParams(q.element,d)):v&&this.U.createClientVe(q.element,this,v,!0);return q}y=[{S:"span",M$:"Que tal?"}];Q=g.t([!0,!1]);d=Q.next();for(v={};!d.done;v={Ez:void 0},d=Q.next())v.Ez=d.value,d=new g.r({S:"span",V:"ytp-menuitem-inline-survey-response",D:[v.Ez?RI2():LF9()],B:{tabindex:"0",role:"button"}}),d.listen("click",function(T){return function(){var O=p.U.app.tK();O.Rb("iqsr",{tu:T.Ez});O.getVideoData().qC=!0;p.fK.QN();p.Il()}}(v)),y.push(d); return new g.bQ({S:"div",V:"ytp-menuitem",B:{"aria-disabled":"true"},D:[{S:"div",rp:["ytp-menuitem-label"],D:y}]},q)}; g.K.WC=function(y,q){q=q===void 0?!1:q;if(y==="missing-qualities")return{S:"div",M$:"Faltam op\u00e7\u00f5es?"};if(y==="inline-survey")return"";var Q=this.Y||this.K?[Gg2(this,y,q,!1)]:[Bb9(this,y)];var p=this.U.getPreferredQuality();q||p!=="auto"||y!=="auto"||(Q.push(" "),this.K?Q.push(Gg2(this,this.X,q,!0,["ytp-menu-label-secondary"])):this.Y?Q.push(Gg2(this,this.J,q,!0,["ytp-menu-label-secondary"])):Q.push(Bb9(this,this.J,["ytp-menu-label-secondary"])));return{S:"div",D:Q}};g.x($O,nk);$O.prototype.N=function(){nk.prototype.N.call(this);this.j&&P42(this)}; $O.prototype.Sj=function(){this.cI()}; $O.prototype.m3=function(){this.U.setPlaybackRate(this.K,!0)}; $O.prototype.G=function(y){nk.prototype.G.call(this,y);this.cI();P42(this);y.preventDefault()};g.x(KK,g.r);g.K=KK.prototype;g.K.init=function(){this.NI(this.K);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.N)}; g.K.CQ=function(y){if(!y.defaultPrevented){switch(y.keyCode){case 37:case 40:var q=-this.X;break;case 39:case 38:q=this.X;break;default:return}this.NI(this.K+q);y.preventDefault()}}; g.K.dV=function(y){var q=this.K;q+=(y.deltaX||-y.deltaY)<0?-this.j:this.j;this.NI(q);y.preventDefault()}; g.K.nQ=function(y){y=(y-g.jo(this.Y).x)/this.cI*this.range+this.W;this.NI(y)}; g.K.NI=function(y,q){q=q===void 0?"":q;y=g.rV(y,this.W,this.N);q===""&&(q=y.toString());this.updateValue("valuenow",y);this.updateValue("valuetext",q);this.N$.style.left=(y-this.W)/this.range*(this.cI-this.gp)+"px";this.K=y}; g.K.focus=function(){this.Es.focus()};g.x(xO,KK);xO.prototype.m3=function(){this.U.setPlaybackRate(this.K,!0)}; xO.prototype.NI=function(y){KK.prototype.NI.call(this,y,XxS(this,y).toString());this.J&&(icg(this),this.Sj())}; xO.prototype.updateValues=function(){var y=this.U.getPlaybackRate();XxS(this,this.K)!==y&&(this.NI(y),icg(this))};g.x(mzf,g.Ye);mzf.prototype.focus=function(){this.K.focus()};g.x(C4C,N0);g.x(qO9,g.Ii);g.K=qO9.prototype;g.K.WC=function(y){return y==="1"?"Normal":y.toLocaleString()}; g.K.XV=function(){var y,q=(y=this.U.getVideoData())==null?void 0:y.Lg();y=this.U.getPresentingPlayerType(q);this.enable(y!==2&&y!==3);p7D(this)}; g.K.qo=function(y){g.Ii.prototype.qo.call(this,y);this.X&&this.X.W.focus()}; g.K.B7=function(y){g.Ii.prototype.B7.call(this,y);y?(this.N$=this.Z(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),p7D(this),j7i(this,this.U.getPlaybackRate())):(this.UW(this.N$),this.N$=null)}; g.K.onPlaybackRateChange=function(y){var q=this.U.getPlaybackRate();!this.Y&&this.cI.includes(q)||Q7D(this,q);j7i(this,y)}; g.K.RK=function(y,q,Q){return y===this.K&&dts(this.U)?g.Ii.prototype.RK.call(this,y,q,Q,{S:"div",V:"ytp-speed-slider-menu-footer",D:[this.X]}):y===this.W&&yED(this.U,this.m3)?vMb(this,y,q,Q):g.Ii.prototype.RK.call(this,y,q,Q)}; g.K.Fo=function(y){g.Ii.prototype.Fo.call(this,y);y===this.W?(this.U.logClick(this.G.element),this.U.AK("innertubeCommand",this.m3)):y===this.K?this.U.setPlaybackRate(this.J,!0):this.U.setPlaybackRate(Number(y),!0);(!dts(this.U)||y!==this.K&&y!==this.W)&&this.fK.RE()}; g.K.T6=function(y){var q=y===this.K;this.Y=!1;q&&W8(this.U)&&!dts(this.U)?(y=new C4C(this.U),g.sh(this.fK,y)):g.Ii.prototype.T6.call(this,y)};g.x(Vq2,g.Ii);g.K=Vq2.prototype;g.K.K1=function(y){g.Ii.prototype.K1.call(this,y)}; g.K.wc=function(y){return y.option.toString()}; g.K.getOption=function(y){return this.settings[y]}; g.K.WC=function(y){return this.getOption(y).text||""}; g.K.Fo=function(y){g.Ii.prototype.Fo.call(this,y);this.publish("settingChange",this.setting,this.settings[y].option)};g.x(tZ,g.SH);tZ.prototype.Ef=function(y){for(var q=g.t(Object.keys(y)),Q=q.next();!Q.done;Q=q.next()){var p=Q.value;if(Q=this.Ns[p]){var v=y[p].toString();p=!!y[p+"Override"];Q.options[v]&&(Q.K1(v),Q.W.element.setAttribute("aria-checked",String(!p)),Q.K.element.setAttribute("aria-checked",String(p)))}}}; tZ.prototype.pF=function(y,q){this.publish("settingChange",y,q)};g.x(Ey,g.Ii);Ey.prototype.K=function(y){return y.languageCode}; Ey.prototype.WC=function(y){return this.languages[y].languageName||""}; Ey.prototype.Fo=function(y){this.publish("select",y);this.U.logClick(this.element);g.M0(this.fK)};g.x(JEf,g.Ii);g.K=JEf.prototype;g.K.LD=function(y){return g.hn(y)?"__off__":y.displayName}; g.K.WC=function(y){return y==="__off__"?"Desativado":y==="__translate__"?"Traduzir automaticamente":y==="__contribute__"?"Adicionar legendas/CC":y==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(y==="__off__"?{}:this.tracks[y]).displayName}; g.K.Fo=function(y){if(y==="__translate__")this.K.open();else if(y==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var q=g.xF(this.U.T(),this.U.getVideoData());g.Pt(q)}else if(y==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var Q=Fp9(this);kO(this,Q);g.Ii.prototype.Fo.call(this,this.LD(Q));var p,v;Q=(q=this.U.getVideoData().getPlayerResponse())==null?void 0:(p=q.captions)==null?void 0:(v=p.playerCaptionsTracklistRenderer)== null?void 0:v.openTranscriptCommand;this.U.AK("innertubeCommand",Q);this.fK.RE();this.W&&this.U.logClick(this.W)}else{if(y==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();q=Fp9(this);kO(this,q);g.Ii.prototype.Fo.call(this,this.LD(q));var d,T;q=(Q=this.U.getVideoData().getPlayerResponse())==null?void 0:(d=Q.captions)==null?void 0:(T=d.playerCaptionsTracklistRenderer)==null?void 0:T.openTranscriptCommand;this.U.AK("innertubeCommand",q)}else this.U.logClick(this.element), kO(this,y==="__off__"?{}:this.tracks[y]),g.Ii.prototype.Fo.call(this,y);this.fK.RE()}}; g.K.XV=function(){var y=this.U.getOptions();y=y&&y.indexOf("captions")!==-1;var q=this.U.getVideoData(),Q=q&&q.Nx,p,v=!((p=this.U.getVideoData())==null||!g.E7(p));p={};if(y||Q){var d;if(y){var T=this.U.getOption("captions","track");p=this.U.getOption("captions","tracklist",{includeAsr:!0});var O=v?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.Ch(p,this.LD,this);v=g.W5(p,this.LD);var w,J;Fp9(this)&&((d=q.getPlayerResponse())==null?0:(w=d.captions)==null?0:(J=w.playerCaptionsTracklistRenderer)== null?0:J.openTranscriptCommand)&&v.push("__correction__");if(O.length&&!g.hn(T)){if((d=T.translationLanguage)&&d.languageName){var F=d.languageName;d=O.findIndex(function(Y){return Y.languageName===F}); HSj(O,d)}Oe9(this.K,O);v.push("__translate__")}d=this.LD(T)}else this.tracks={},v=[],d="__off__";v.unshift("__off__");this.tracks.__off__={};Q&&v.unshift("__contribute__");this.tracks[d]||(this.tracks[d]=T,v.push(d));this.qo(v);this.K1(d);T&&T.translationLanguage?this.K.K1(this.K.K(T.translationLanguage)):EO9(this.K);y&&this.Y.Ef(this.U.getSubtitlesUserSettings());this.countLabel.Ct(p&&p.length?" ("+p.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.K.Ij=function(y){var q=this.U.getOption("captions","track");q=g.KM(q);q.translationLanguage=this.K.languages[y];kO(this,q)}; g.K.pF=function(y,q){if(y==="reset")this.U.resetSubtitlesUserSettings();else{var Q={};Q[y]=q;this.U.updateSubtitlesUserSettings(Q)}w7g(this,!0);this.J.start();this.Y.Ef(this.U.getSubtitlesUserSettings())}; g.K.Ba$=function(y){y||g.Q0(this.J)}; g.K.FV=function(){g.Q0(this.J);g.Ii.prototype.FV.call(this)}; g.K.open=function(){g.Ii.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.U.createClientVe(this.W,this,167341),this.U.logVisibility(this.W,!0))};g.x(YO8,g.Ri);g.K=YO8.prototype; g.K.initialize=function(){if(!this.isInitialized){var y=this.U.T();this.isInitialized=!0;try{this.nw=new AFp(this.U,this)}catch(Q){g.zI(Error("QualityMenuItem creation failed"))}g.n(this,this.nw);var q=new JEf(this.U,this);g.n(this,q);y.enableSpeedOptions&&(q=new qO9(this.U,this),g.n(this,q));(g.d1(y)||y.G)&&(y.W||y.Vm)&&(q=new ogD(this.U,this),g.n(this,q));y.Kg&&!y.L("web_player_move_autonav_toggle")&&(q=new ba(this.U,this),g.n(this,q));y.L("html5_enable_new_audio_settings_menu")?(this.rB=new rFS(this.U, this),g.n(this,this.rB)):(y=new hZ(this.U,this),g.n(this,y));this.U.publish("settingsMenuInitialized");Uz8(this.settingsButton,this.NT.RL())}}; g.K.qU=function(y){this.initialize();this.NT.qU(y);Uz8(this.settingsButton,this.NT.RL())}; g.K.Ep=function(y){this.iB()||(this.NU&&this.NT.RL()<=1&&this.hide(),this.NT.Ep(y),Uz8(this.settingsButton,this.NT.RL()))}; g.K.zD=function(y){this.initialize();this.NT.RL()>0&&g.Ri.prototype.zD.call(this,y)}; g.K.QN=function(){this.lU?this.lU=!1:g.Ri.prototype.QN.call(this)}; g.K.show=function(){g.Ri.prototype.show.call(this);g.wl(this.U.getRootNode(),"ytp-settings-shown")}; g.K.hide=function(){g.Ri.prototype.hide.call(this);g.Fn(this.U.getRootNode(),"ytp-settings-shown")}; g.K.ol=function(y){this.U.logVisibility(this.element,y);this.U.publish("settingsMenuVisibilityChanged",y)};g.x(beg,g.r);g.K=beg.prototype;g.K.onClick=function(){if(LK(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var y=!1,q=g.rf().Zm(65);g.Nj(this.U.T())&&q!=null&&(y=!q);y&&this.U.T().L("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.K.Ogf=function(y){var q,Q;(q=g.c4(this.U))==null||(Q=q.hd())==null||Q.zD(y)}; g.K.isEnabled=function(){var y=this.U.getOption("captions","track");return!(!y||!y.displayName)}; g.K.XV=function(){var y=LK(this),q=300;this.U.T().X&&(q=480);this.U.L("delhi_modern_web_player_icons")&&this.updateValue("icon",hzi(this));if(this.U.T().G){this.updateValue("title",g.P4(this.U,"Legendas/legendas ocultas","c"));this.update({"tooltip-title":g.P4(this.U,"Legendas/legendas ocultas","c")});this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var Q=y}else{if(y)(Q=this.uB("ytp-subtitles-button-icon"))==null||Q.setAttribute("fill-opacity","1"),this.U.T().L("player_tooltip_data_title_killswitch")? this.updateValue("title",g.P4(this.U,"Legendas/legendas ocultas","c")):this.update({"tooltip-title":g.P4(this.U,"Legendas/legendas ocultas","c")}),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{if(this.U.L("delhi_modern_web_player_icons")){var p;(p=this.uB("ytp-subtitles-button-icon"))==null||p.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var v;(v=this.uB("ytp-subtitles-button-icon"))==null||v.setAttribute("fill-opacity","0.3")}this.updateValue("title", "N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis");this.update({"tooltip-title":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"});this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"})}Q=!0}this.tooltip.aM();Q=Q&&this.U.lB().getPlayerSize().width>=q;this.BB(Q);this.U.logVisibility(this.element,Q);y?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.K.Kt=function(y){g.r.prototype.Kt.call(this,y)};g.x(g.ad,g.r);g.K=g.ad.prototype;g.K.canShowCountdown=function(){return!SU(this)&&!NT(this)}; g.K.xj=function(){var y=this.api.lB().getPlayerSize().width,q=this.j;this.api.T().X&&(q=400);q=y>=q&&(!NT(this)||!g.G(this.api.getPlayerStateObject(),64));this.BB(q);g.fU(this.element,"ytp-time-display-allow-autohide",q&&y<400);y=this.api.getProgressState();if(q){var Q=this.api.getPresentingPlayerType();q=this.api.getCurrentTime(Q,!1);this.W&&(q-=y.airingStart);SU(this)&&(q-=this.Jw.startTimeMs/1E3);this.canShowCountdown()&&this.N&&(q-=this.api.getDuration(Q,!1));var p=g.NG(q);this.Y!==p&&(this.updateValue("currenttime", p),this.Y=p);Q=SU(this)?(this.Jw.endTimeMs-this.Jw.startTimeMs)/1E3:this.api.getDuration(Q,!1);p=g.NG(Q);this.J!==p&&(this.updateValue("duration",p),this.J=p,q&&(q=g.Yr("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.NG(q,!0),DURATION:g.NG(Q,!0)}),this.updateValue("timeDisplayAriaLabel",q)))}$t2(this,y.isAtLiveHead);KpH(this,this.api.getLoopRange())}; g.K.onLoopRangeChange=function(y){var q=this.Jw!==y;this.Jw=y;q&&(this.xj(),xt2(this))}; g.K.c1b=function(){this.api.setLoopRange(null)}; g.K.XBs=function(){this.N=!this.N;this.xj()}; g.K.onVideoDataChange=function(y,q,Q){this.updateVideoData((this.api.T().L("enable_topsoil_wta_for_halftime")||this.api.T().L("enable_topsoil_wta_for_halftime_live_infra"))&&Q===2?this.api.getVideoData(1):q);this.xj();xt2(this)}; g.K.updateVideoData=function(y){this.gq=y.isLivePlayback&&!y.Os;this.W=aF(y);this.isPremiere=y.isPremiere;g.fU(this.element,"ytp-live",NT(this));this.api.L("delhi_modern_web_player")&&this.uB("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.K.onClick=function(y){y.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.K.FV=function(){this.K&&this.K();g.r.prototype.FV.call(this)};g.x(ZeC,g.r);g.K=ZeC.prototype;g.K.VO=function(){var y=this.api.JR();this.N!==y&&(this.N=y,Wp8(this,this.api.getVolume(),this.api.isMuted()))}; g.K.Sy=function(y){this.BB(y.width>=350)}; g.K.jw=function(y){if(!y.defaultPrevented){var q=y.keyCode,Q=null;q===37?Q=this.volume-5:q===39?Q=this.volume+5:q===36?Q=0:q===35&&(Q=100);Q!==null&&(Q=g.rV(Q,0,100),Q===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(Q)),y.preventDefault())}}; g.K.OH=function(y){var q=y.deltaX||-y.deltaY;y.deltaMode?this.api.setVolume(this.volume+(q<0?-10:10)):this.api.setVolume(this.volume+g.rV(q/10,-10,10));y.preventDefault();var Q,p;((Q=this.api.T())==null?0:(p=Q.getWebPlayerContextConfig())==null?0:p.enableFullscreenComponentsFeature)&&y.stopPropagation()}; g.K.zmp=function(){H8(this,this.K,!0,this.W,this.api.QU());this.j=this.volume;this.api.isMuted()&&this.api.unMute()}; g.K.PQ=function(y){var q=this.N?78:52,Q=this.N?18:12;y-=g.jo(this.X).x;q=g.rV((y-Q/2)/(q-Q),0,1);q=this.api.L("web_player_non_linear_volume_controls")?q<=.25?q/.25*.1:.1+(q-.25)/.75*.9:q;this.api.setVolume(q*100)}; g.K.HgI=function(){H8(this,this.K,!1,this.W,this.api.QU());this.volume===0&&(this.api.mute(),this.api.setVolume(this.j))}; g.K.onVolumeChange=function(y){Wp8(this,y.volume,y.muted)}; g.K.fG=function(){H8(this,this.K,this.isDragging,this.W,this.api.QU())}; g.K.FV=function(){g.r.prototype.FV.call(this);g.Fn(this.G,"ytp-volume-slider-active")};g.x(Rd,g.r); Rd.prototype.onVideoDataChange=function(){var y=this.api.T();this.n3();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).cO;this.BB(this.visible);this.api.logVisibility(this.element,this.visible&&this.C);if(this.visible){var q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",q)}y.N&&(this.K&&(this.UW(this.K),this.K=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.wl(this.element,"no-link")); q=this.api.T();y=this.api.getVideoData();var Q="";q.N||(q=g.t6(q),q.indexOf("www.")===0&&(q=q.substring(4)),Q=g.N4(y)?"Assistir no YouTube Music":q==="youtube.com"?"Assistir no YouTube":g.Yr("Assista em $WEBSITE",{WEBSITE:q}));this.api.L("player_tooltip_data_title_killswitch")?this.updateValue("title",Q):this.updateValue("tooltip-title",Q)}; Rd.prototype.onClick=function(y){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var q=this.api.T(),Q=this.api.getVideoUrl(!g.Sn(y),!1,!0,!0);if(g.d1(q)){var p={};g.d1(q)&&g.Dt(this.api,"addEmbedsConversionTrackingParams",[p]);Q=g.kb(Q,p)}g.RV(Q,this.api,y);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Rd.prototype.n3=function(){var y={S:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},D:[{S:"path",Nz:!0,V:"ytp-svg-fill",B:{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 "}}]}, q=28666,Q=this.api.getVideoData();this.api.isEmbedsShortsMode()?y={S:"svg",B:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},D:[{S:"path",B:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.N4(Q)&&(y={S:"svg",B:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},D:[{S:"path",B:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{S:"path",B:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{S:"path",B:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{S:"path",B:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{S:"path",B:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{S:"path",B:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{S:"path",B:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{S:"path",B:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{S:"path",B:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{S:"path",B:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{S:"path",B:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{S:"path",B:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},q=216163);g.N4(Q)?g.wl(this.element,"ytp-youtube-music-button"):g.Fn(this.element,"ytp-youtube-music-button");y.B=Object.assign({},y.B,{"aria-hidden":"true"});this.updateValue("logoSvg",y);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,q,!0)}; Rd.prototype.Kt=function(y){g.r.prototype.Kt.call(this,y);this.api.logVisibility(this.element,this.visible&&y)};g.x(kFC,g.sU);g.K=kFC.prototype;g.K.onProgress=function(){if(this.U.L("web_player_max_seekable_on_ended")||!g.G(this.U.getPlayerStateObject(),2))cT(this.Op),this.progressBar.xj(),this.rQ.xj()}; g.K.oi=function(){this.bD();if(cT(this.Op))this.progressBar.SP();else this.onProgress()}; g.K.q5=function(){this.onProgress();this.j.start()}; g.K.bD=function(){var y;if(y=!this.U.T().W){y=this.progressBar;var q=2*g.as()*y.J,Q=y.N;y=(Q.K-Q.W)*1E3/y.api.getPlaybackRate()/q<300}y=y&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;q=!y;cT(this.Op)&&(y=q=!1);q?this.m3||(this.m3=this.Z(this.U,"progresssync",this.onProgress)):this.m3&&(this.UW(this.m3),this.m3=null);y?this.j.isActive()||this.j.start():this.j.stop()}; g.K.n3=function(){var y=this.U.JR(),q=this.U.lB().getPlayerSize(),Q=this.U.lB().A7,p=ayp(this),v=N8p(this),d=Math.max(q.width-p*2,100);if(this.Os!==q.width||this.Dw!==y||this.U.L("web_player_rtr_ctrls")&&this.pS!==Q)this.Os=q.width,this.Dw=y,this.pS=Q,this.W.element.style.width=v+"px",this.W.element.style.left=p+"px",g.I6p(this.progressBar,p,v,y),this.U.Dm().ey=v;Q=this.Y;d=Math.min(570*(y?1.5:1),d);y=Math.min(413*(y?1.5:1),Math.round((q.height-SOD(this))*.82));Q.maxWidth=d;Q.maxHeight=y;Q.j$();this.bD(); this.cB&&tZ2(this.Ty,q.height)}; g.K.onVideoDataChange=function(){var y=this.U.getVideoData();this.LK.style.background=y.cO?y.sS:"";this.N$&&H7i(this.N$,y.showSeekingControls);this.cI&&H7i(this.cI,y.showSeekingControls)}; g.K.aH=function(){return this.W.element};g.x(He3,ai);g.K=He3.prototype;g.K.cz=function(y){y.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.AK("innertubeCommand",this.onClickCommand),this.wI())}; g.K.wI=function(){this.enabled=!1;this.j.hide()}; g.K.onVideoDataChange=function(y,q){y==="dataloaded"&&RzC(this);y=[];var Q,p,v,d;if(q=(d=g.U((Q=q.getWatchNextResponse())==null?void 0:(p=Q.playerOverlays)==null?void 0:(v=p.playerOverlayRenderer)==null?void 0:v.suggestedActionsRenderer,W0C))==null?void 0:d.suggestedActions)for(Q=g.t(q),p=Q.next();!p.done;p=Q.next())(p=g.U(p.value,ZiG))&&g.U(p.trigger,xdc)&&y.push(p);if(y.length!==0){Q=[];y=g.t(y);for(p=y.next();!p.done;p=y.next())if(p=p.value,v=g.U(p.trigger,xdc))d=(d=p.title)?g.b7(d):"View Chapters", q=v.timeRangeStartMillis,v=v.timeRangeEndMillis,q!=null&&v!=null&&p.tapCommand&&(Q.push(new g.yb(q,v,{priority:9,namespace:"suggested_action_button_visible",id:d})),this.suggestedActions[d]=p.tapCommand);this.U.Tf(Q)}}; g.K.zE=function(){return this.enabled}; g.K.ol=function(){this.enabled?this.LK.start():k_(this);this.O8()}; g.K.FV=function(){RzC(this);ai.prototype.FV.call(this)};var NA={},la=(NA.CHANNEL_NAME="ytp-title-channel-name",NA.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",NA.LINK="ytp-title-link",NA.SESSIONLINK="yt-uix-sessionlink",NA.SUBTEXT="ytp-title-subtext",NA.TEXT="ytp-title-text",NA.TITLE="ytp-title",NA);g.x(zi,g.r);zi.prototype.onClick=function(y){this.api.logClick(this.element);var q=this.api.T(),Q=this.api.getVideoUrl(!g.Sn(y),!1,!0);g.d1(q)&&(q={},g.Dt(this.api,"addEmbedsConversionTrackingParams",[q]),Q=g.kb(Q,q));g.RV(Q,this.api,y)}; zi.prototype.XV=function(){var y=this.api.getVideoData(),q=this.api.T();this.updateValue("title",y.title);var Q={S:"a",V:la.CHANNEL_NAME,B:{href:"{{channelLink}}",target:"_blank"},M$:"{{channelName}}"};this.api.T().N&&(Q={S:"span",V:la.CHANNEL_NAME,M$:"{{channelName}}",B:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",Q);s7g(this);this.api.getPresentingPlayerType()===2&&(Q=this.api.getVideoData(),Q.videoId&&Q.isListed&&Q.author&&Q.q$&&Q.profilePicture?(this.updateValue("channelLink", Q.q$),this.updateValue("channelName",Q.author),this.updateValue("channelTitleFocusable","0")):s7g(this));Q=q.externalFullscreen||!this.api.isFullscreen()&&q.oE;g.fU(this.link,la.FULLERSCREEN_LINK,Q);q.N$||!y.videoId||Q||y.cO||q.N?this.K&&(this.updateValue("url",null),this.UW(this.K),this.K=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.K||(this.K=this.Z(this.link,"click",this.onClick)));q.N&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.d1(q)?y.expandedTitle: y.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.x(g.Dq,g.r);g.K=g.Dq.prototype;g.K.setEnabled=function(y){if(this.type!=null)if(y)switch(this.type){case 3:case 2:ua(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=y}; g.K.KY=function(y,q,Q,p,v,d,T,O){if(!this.Sj||this.env.X){this.type===3&&this.SP();this.type!==1&&(g.V0(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.u4())&&this.W.subscribe("l",this.kY,this));if(O){var w=g.v5(this.bg).height||141;this.gp.style.bottom=w+2+"px"}else this.gp.style.display="none";this.env.L("delhi_modern_web_player")?(this.update({pillTimeStamp:Q,pillTitle:d!=null?d:"",eduText:O!=null?O:""}),g.wl(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:Q,title:d!=null?d:"",eduText:O!=null?O:""}),g.fU(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!d));this.api.isInline()&&g.wl(this.bottomText,"ytp-modern-tooltip-text");g.fU(this.element,"ytp-text-detail",!!p);Q=-1;this.W&&(Q=hk(this.W,243*this.scale),this.env.L("web_l3_storyboard")&&this.W.levels.length===4&&(Q=this.W.levels.length-1),Q=JaH(this.W,Q,q));Dtj(this,Q);if(T)switch(q=g.v5(this.element).width,T){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=q/2+"px",this.title.style.textAlign="center"}zzH(this,!!p,y,v)}}; g.K.QP=function(){this.type===1&&this.SP()}; g.K.xD=function(y,q){if(this.type)if(this.type===3)this.SP();else return;Mq2(this,y,3,q)}; g.K.aM=function(){this.K&&!this.X&&(this.env.L("player_tooltip_data_title_killswitch")?this.K.hasAttribute("title")&&(this.N=this.K.getAttribute("title")||"",this.K.removeAttribute("title"),this.G&&ua(this)):this.K.hasAttribute("data-tooltip-title")&&(this.N=this.K.getAttribute("data-tooltip-title")||"",this.K.removeAttribute("data-tooltip-title"),this.G&&ua(this)))}; g.K.kY=function(y,q){y<=this.Y&&this.Y<=q&&(y=this.Y,this.Y=NaN,Dtj(this,y))}; g.K.U$j=function(){OFj(this.W,this.Y,243*this.scale)}; g.K.SP=function(){switch(this.type){case 2:var y=this.K;y.removeEventListener("mouseout",this.j);y.addEventListener("mouseover",this.J);y.removeEventListener("blur",this.j);y.addEventListener("focus",this.J);uCb(this);break;case 3:uCb(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.kY,this),this.W=null),this.api.removeEventListener("videoready",this.cI),this.N$.stop()}this.type=null;this.G&&this.fade.hide()}; g.K.qJ=function(){if(this.K)for(var y=0;y=0;q--)if(this.aU[q]===y){this.aU.splice(q,1);break}gj(this.Op,64,this.aU.length>0)}; g.K.B8=function(){this.api.Mo()&&this.api.Y0();return!!this.dj||oM9(this)||g.me.prototype.B8.call(this)}; g.K.fW=function(){var y=!this.B8(),q=y&&this.api.Mo()&&!g.G(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().cO&&!this.api.T().N&&!this.api.isEmbedsShortsMode(),Q=this.rg&&g.yl(this.api)&&g.G(this.api.getPlayerStateObject(),128);y||Q?(this.Yo.show(),this.mB.show()):(this.Yo.hide(),this.mB.hide(),this.api.qJ(this.i4.element));q?this.dK.zD():this.dK.QN();this.T3&&Lpi(this.T3,this.Yps||!y);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&AE9(this);g.me.prototype.fW.call(this)}; g.K.TN=function(y,q,Q,p,v){y.style.left="";y.style.top="";y.style.bottom="";var d=g.v5(y),T=p||this.T3&&g.Li(this.T3.aH(),q),O=p=null;Q!=null&&T||(p=g.v5(q),O=g.Qh(q,this.api.getRootNode()),Q==null&&(Q=O.x+p.width/2));Q-=d.width/2;T?(q=this.T3,p=ayp(q),O=N8p(q),T=this.api.lB().getPlayerSize().height,Q=g.rV(Q,p,p+O-d.width),d=T-SOD(q)-d.height):g.Li(this.i4.element,q)?(q=this.api.lB().getPlayerSize().width,Q=g.rV(Q,12,q-d.width-12),d=this.JR()?this.Fu:this.MD,this.api.T().playerStyle==="gvn"&&(d+= 20),this.rg&&(d-=this.JR()?26:18)):(q=this.api.lB().getPlayerSize(),Q=g.rV(Q,12,q.width-d.width-12),d=O.y>(q.height-p.height)/2?O.y-d.height-12:O.y+p.height+12);y.style.top=d+(v||0)+"px";y.style.left=Q+"px"}; g.K.oi=function(y){y&&(this.api.qJ(this.i4.element),this.T3&&this.api.qJ(this.T3.aH()));this.E3&&(g.fU(this.contextMenu.element,"ytp-autohide",y),g.fU(this.contextMenu.element,"ytp-autohide-active",!0));g.me.prototype.oi.call(this,y)}; g.K.hY=function(){g.me.prototype.hY.call(this);this.E3&&(g.fU(this.contextMenu.element,"ytp-autohide-active",!1),this.E3&&(this.contextMenu.hide(),this.v_&&this.v_.hide()))}; g.K.eA=function(y,q){var Q=this.api.lB().getPlayerSize();Q=new g.ol(0,0,Q.width,Q.height);if(y||!cT(this.Op)&&!this.B8()){if(this.api.T().l7||q)y=this.JR()?this.Fu:this.MD,Q.top+=y,Q.height-=y;this.T3&&(Q.height-=SOD(this.T3))}return Q}; g.K.VO=function(y){var q=this.api.getRootNode();y?q.parentElement?(q.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.T().externalFullscreen||(q.parentElement.insertBefore(this.e8.element,q),q.parentElement.insertBefore(this.S8.element,q.nextSibling))):g.l$(Error("Player not in DOM.")):(q.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.e8.detach(),this.S8.detach());this.n3();this.pP()}; g.K.JR=function(){if(this.api.L("web_player_use_screen_width_for_big_mode")){var y;return this.api.lB().getPlayerSize().width>=((y=g.wm(this.api.T().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?y:2E3)}y=this.api.T();return this.api.isFullscreen()&&!y.X||!1}; g.K.showControls=function(y){this.Gt=!y;this.fW()}; g.K.n3=function(){var y=this.JR();this.tooltip.scale=y?1.5:1;this.contextMenu&&g.fU(this.contextMenu.element,"ytp-big-mode",y);this.fW();this.api.L("web_player_hide_overflow_button_if_empty_menu")||AE9(this);this.pP();var q=this.api.isEmbedsShortsMode();q&&y?(y=(this.api.lB().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.B0(this.i4.element,"padding-left",y+"px"),g.B0(this.i4.element,"padding-right",y+"px")):q&&(g.B0(this.i4.element,"padding-left",""),g.B0(this.i4.element,"padding-right", ""));g.me.prototype.n3.call(this)}; g.K.Bl=function(){if(oM9(this)&&!g.yl(this.api))return!1;var y=this.api.getVideoData();return!g.d1(this.api.T())||this.api.getPresentingPlayerType()===2||!this.Zj||((y=this.Zj||y.Zj)?(y=y.embedPreview)?(y=y.thumbnailPreviewRenderer,y=y.videoDetails&&g.U(y.videoDetails,evS)||null):y=null:y=null,y&&y.collapsedRenderer&&y.expandedRenderer)?g.me.prototype.Bl.call(this):!1}; g.K.pP=function(){g.me.prototype.pP.call(this);this.api.logVisibility(this.title.element,!!this.EP);this.zN&&this.zN.Kt(!!this.EP);this.channelAvatar.Kt(!!this.EP);this.overflowButton&&this.overflowButton.Kt(this.qm()&&!!this.EP);this.shareButton&&this.shareButton.Kt(!this.qm()&&!!this.EP);this.KH&&this.KH.Kt(!this.qm()&&!!this.EP);this.searchButton&&this.searchButton.Kt(!this.qm()&&!!this.EP);this.copyLinkButton&&this.copyLinkButton.Kt(!this.qm()&&!!this.EP);if(!this.EP){this.api.qJ(this.i4.element); for(var y=0;y5&&q.Rb("glrs",{cmt:Q});q.seekTo(0,{seekSource:58});q.Rb("glrre",{cmt:Q})}}; gt.prototype.FV=function(){this.K=null;g.I.prototype.FV.call(this)};g.x(g.c8,lS);g.K=g.c8.prototype;g.K.isView=function(){return!0}; g.K.M1=function(){var y=this.mediaElement.getCurrentTime();if(y1;fj(y.m5(),p-.01)&&!v&&(rt(this,4),Q.isActive=!1,Q.Sc=Q.Sc||Q.isActive,(this.J===1?this.K:this.W).Rb("sbh",{}),q.isActive=!0,q.Sc=q.Sc||q.isActive,this.J!==0&&(this.K.getVideoData().IS=!0));y=this.Y.W;if(this.Y.K.isActive&&y.isActive&&(rt(this,5),this.J!==0)){y=this.W.ES();Q=this.K.ES(); this.K.Rb("sbs",{citag:Q==null?void 0:Q.itag,nitag:y==null?void 0:y.itag});this.W.Rb("gitags",{pitag:Q==null?void 0:Q.itag,citag:y==null?void 0:y.itag});var d;(d=this.W)==null||d.SO()}}}; g.K.tX=function(){this.Qn()&&this.RM("player-reload-after-handoff")}; g.K.RM=function(y,q){q=q===void 0?{}:q;if(!this.iB()&&this.status.status!==6){var Q=this.status.status>=4&&y!=="player-reload-after-handoff";this.status={status:Infinity,error:y};if(this.K&&this.W){var p=this.W.getVideoData().clientPlaybackNonce;this.K.aB(new g.t7("dai.transitionfailure",Object.assign(q,{cpn:p,transitionTimeMs:this.BA,msg:y})));this.K.L$(Q)}this.r8.reject(y);this.dispose()}}; g.K.Qn=function(){return this.status.status>=4&&this.status.status<6}; g.K.FV=function(){QvH(this);this.K.unsubscribe("newelementrequired",this.tX,this);if(this.N){var y=this.N.W;this.N.K.N4.unsubscribe("updateend",this.HL,this);y.N4.unsubscribe("updateend",this.HL,this)}g.I.prototype.FV.call(this)}; g.K.y4=function(y){g.Ks(y,128)&&this.RM("player-error-event")};g.x(od,g.I);od.prototype.clearQueue=function(y,q){y=y===void 0?!1:y;q=q===void 0?!1:q;this.Y&&this.Y.reject("Queue cleared");this.app.T().L("html5_gapless_fallback_on_qoe_restart_v2")||q&&this.W&&this.W.L$(!1);AZ(this,y)}; od.prototype.gS=function(){return!this.K}; od.prototype.Qn=function(){var y;return((y=this.N)==null?void 0:y.Qn())||!1}; od.prototype.FV=function(){AZ(this);g.I.prototype.FV.call(this)};g.x(Ju8,g.V6);g.K=Ju8.prototype;g.K.getVisibilityState=function(y,q,Q,p,v,d,T,O){return y?4:v&&$r2?7:Y_g()?3:q?2:Q?1:p?5:v&&!$r2?7:d?8:T?9:O?10:0}; g.K.hM=function(y){this.fullscreen!==y&&(this.fullscreen=y,this.ol())}; g.K.setMinimized=function(y){this.W!==y&&(this.W=y,this.ol())}; g.K.setInline=function(y){this.inline!==y&&(this.inline=y,this.ol())}; g.K.kU=function(y){this.pictureInPicture!==y&&(this.pictureInPicture=y,this.ol())}; g.K.setSqueezeback=function(y){this.N!==y&&(this.N=y,this.ol())}; g.K.ZR=function(y){this.Y!==y&&(this.Y=y,this.ol())}; g.K.yF=function(){return this.K}; g.K.Au=function(){return this.fullscreen!==0}; g.K.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.K.Ej=function(){return this.fullscreen}; g.K.isMinimized=function(){return this.W}; g.K.isInline=function(){return this.inline}; g.K.isBackground=function(){return Y_g()}; g.K.P_=function(){return this.pictureInPicture}; g.K.Sk=function(){return!1}; g.K.vk=function(){return this.N}; g.K.b4=function(){return this.Y}; g.K.ol=function(){this.publish("visibilitychange");var y=this.getVisibilityState(this.yF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.P_(),this.Sk(),this.vk(),this.b4());y!==this.G&&this.publish("visibilitystatechange");this.G=y}; g.K.FV=function(){bOj(this.J);g.V6.prototype.FV.call(this)};g.x(g.eU,g.I);g.K=g.eU.prototype;g.K.FV=function(){this.videoData=this.playerState=null;g.I.prototype.FV.call(this)}; g.K.addCueRange=function(){}; g.K.Al=function(){}; g.K.bW=function(){}; g.K.jp=function(){return!1}; g.K.eI=function(){return!1}; g.K.Y4=function(){}; g.K.Rd=function(){}; g.K.w$=function(){return[]}; g.K.Qe=function(){}; g.K.Gz=function(){}; g.K.uw=function(){return 1}; g.K.getAudioTrack=function(){return this.getVideoData().oD}; g.K.Vd=function(){return null}; g.K.getAvailableAudioTracks=function(){return[]}; g.K.w6=function(){return[]}; g.K.We=function(){return[]}; g.K.Mp=function(){return""}; g.K.tR=function(){return[]}; g.K.Z$=function(){}; g.K.Uu=function(){return 0}; g.K.getCurrentTime=function(){return 0}; g.K.hL=function(){}; g.K.ES=function(){}; g.K.IH=function(){return{}}; g.K.getDuration=function(){return 0}; g.K.E8=function(){return 0}; g.K.Sb=function(){return 0}; g.K.hF=function(){return!1}; g.K.ue=function(){return 0}; g.K.gk=function(){return 0}; g.K.J7=yi(7);g.K.wR=function(){return 0}; g.K.r6=function(){return!1}; g.K.iH=function(){return 0}; g.K.OW=function(){return null}; g.K.MX=function(){return null}; g.K.PT=function(){return 0}; g.K.ML=function(){return 0}; g.K.ma=function(){return g.M(function(y){g.tH(y)})}; g.K.Gx=yi(15);g.K.getPlaybackQuality=function(){return"auto"}; g.K.getPlaybackRate=function(){return 1}; g.K.getPlayerState=function(){this.playerState||(this.playerState=new g.nj);return this.playerState}; g.K.getPlayerType=function(){return 0}; g.K.getPlaylistSequenceForTime=function(){return null}; g.K.Sa=function(){return function(){}}; g.K.sP=function(){return""}; g.K.getPreferredQuality=function(){return"unknown"}; g.K.yc=function(){}; g.K.getProximaLatencyPreference=function(){return 0}; g.K.Cy=function(){return tk}; g.K.u4=function(){return null}; g.K.getStoryboardFormat=function(){return null}; g.K.getStreamTimeOffset=function(){return 0}; g.K.VA=function(){return 0}; g.K.bj=function(){return 0}; g.K.lO=function(){return{Av:[],cE:[],currentTime:0,fb:"",droppedVideoFrames:0,isGapless:!1,gS:!0,Qq:0,Br:0,kS:0,Hr:0,zr:0,oR:[],rz:[],gZ:null,playerState:this.getPlayerState(),Lx:null,NQ:"",totalVideoFrames:0}}; g.K.getUserAudio51Preference=function(){return 0}; g.K.getUserPlaybackQualityPreference=function(){return""}; g.K.getVideoData=function(){this.videoData||(this.videoData=new g.EB(this.KK),g.n(this,this.videoData));return this.videoData}; g.K.WU=function(){return null}; g.K.Qc=function(){return null}; g.K.A1=function(){}; g.K.getVideoLoadedFraction=function(){return 0}; g.K.UF=function(){}; g.K.handleError=function(){}; g.K.L$=function(){}; g.K.Yw=function(){}; g.K.ZX=yi(40);g.K.JM=function(){return!1}; g.K.hasSupportedAudio51Tracks=function(){return!1}; g.K.Lm=function(){return!1}; g.K.yF=function(){return!1}; g.K.isAtLiveHead=function(){return!1}; g.K.zk=function(){return!0}; g.K.isGapless=function(){return!1}; g.K.isHdr=function(){return!1}; g.K.BM=function(){return!1}; g.K.J4=function(){return!1}; g.K.yq=function(){return!1}; g.K.isProximaLatencyEligible=function(){return!1}; g.K.gS=function(){return!0}; g.K.r7=function(){return!1}; g.K.IG=function(){return!1}; g.K.n0=function(){}; g.K.Y8=function(){}; g.K.SO=function(){}; g.K.u5=function(){}; g.K.fS=function(){}; g.K.U2=function(){}; g.K.E2=function(){}; g.K.GC=yi(50);g.K.KV=yi(21);g.K.B5=function(){}; g.K.pauseVideo=function(){}; g.K.prefetchKeyPlay=function(){}; g.K.playVideo=function(){return g.M(function(y){return y.return()})}; g.K.fO=function(){}; g.K.dh=yi(27);g.K.nU=yi(33);g.K.oV=function(){}; g.K.Rb=function(){}; g.K.hP=function(){}; g.K.GE=function(){}; g.K.pW=function(){}; g.K.aB=function(){}; g.K.yz=function(){}; g.K.JN=function(){}; g.K.IV=function(){}; g.K.Dd=function(){}; g.K.v$=function(){}; g.K.BC=function(){}; g.K.removeCueRange=function(){}; g.K.j3=function(){}; g.K.BO=function(){return[]}; g.K.mV=function(){}; g.K.Qf=function(){}; g.K.w3=function(){}; g.K.Pv=function(){}; g.K.X1=function(){}; g.K.W7=function(){}; g.K.seekTo=function(){}; g.K.sendAbandonmentPing=function(){}; g.K.sendVideoStatsEngageEvent=function(){}; g.K.Bh=function(){}; g.K.setLoop=function(){}; g.K.Du=function(){}; g.K.setMediaElement=function(){}; g.K.U$=function(){}; g.K.setPlaybackRate=function(){}; g.K.SB=function(){}; g.K.tS=function(){}; g.K.i9=function(){}; g.K.setProximaLatencyPreference=function(){}; g.K.VR=function(){}; g.K.xN=function(){}; g.K.wQ=function(){}; g.K.hx=function(){}; g.K.nR=function(){}; g.K.setUserAudio51Preference=function(){}; g.K.iN=function(){}; g.K.VF=function(){return!1}; g.K.lw=function(){}; g.K.Xc=function(){return!1}; g.K.Jl=function(){}; g.K.zp=function(){}; g.K.Tp=function(){}; g.K.stopVideo=function(){}; g.K.subscribe=function(){return NaN}; g.K.b7=function(){}; g.K.togglePictureInPicture=function(){}; g.K.IU=function(){return 0}; g.K.fM=function(){}; g.K.unsubscribe=function(){return!1}; g.K.jJ=function(){}; g.K.vL=function(){return!1}; g.K.GY=function(){}; g.K.r9=function(){}; g.K.LP=function(){};g.x(P8,g.I);g.K=P8.prototype;g.K.get=function(y){B8(this);var q=this.data.find(function(Q){return Q.key===y}); return q?q.value:null}; g.K.set=function(y,q,Q){this.remove(y,!0);B8(this);y={key:y,value:q,expire:Infinity};Q&&isFinite(Q)&&(Q*=1E3,y.expire=(0,g.SK)()+Q);for(this.data.push(y);this.data.length>this.N;)(Q=this.data.shift())&&ia(this,Q,!0);Gi(this)}; g.K.remove=function(y,q){q=q===void 0?!1:q;var Q=this.data.find(function(p){return p.key===y}); Q&&(ia(this,Q,q),g.Mw(this.data,function(p){return p.key===y}),Gi(this))}; g.K.removeAll=function(y){if(y=y===void 0?!1:y)for(var q=g.t(this.data),Q=q.next();!Q.done;Q=q.next())ia(this,Q.value,y);this.data=[];Gi(this)}; g.K.FV=function(){var y=this;g.I.prototype.FV.call(this);this.data.forEach(function(q){ia(y,q,!0)}); this.data=[]};g.x(g.X8,g.I);g.K=g.X8.prototype;g.K.FV=function(){for(var y=g.t(Object.values(this.N)),q=y.next();!q.done;q=y.next())q.value.dispose();FB3(this);this.K.dispose();g.I.prototype.FV.call(this)}; g.K.p6=function(y){return y?y===1?this.C:this.W.getVideoData().enableServerStitchedDai&&y===2?this.W.getVideoData().Uw?this.N[2]||this.W:this.W:this.N[y]||null:this.W}; g.K.Lt=function(y){var q=y.cpn;y=y.playerType;if(q)a:{y=g.t(Object.values(this.N));for(var Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,Q.Mp()===q){q=Q;break a}q=this.G[q]||null}else q=y?this.p6(y):this.W;return q}; g.K.K3=function(){return this.C}; g.K.TZ=function(y){this.C=y}; g.K.tK=function(){return this.W}; g.K.uC=function(y){this.W=y;mQ(this)}; g.K.UC=yi(46);g.K.qA=yi(48);g.x(ZT3,g.wp);g.K=ZT3.prototype;g.K.hV=function(){}; g.K.Mp=function(){return this.videoData.clientPlaybackNonce}; g.K.getVideoData=function(){if(g.wp.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){var y=eDf(this.X0,g.wp.prototype.getCurrentTime.call(this))||g.wp.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==y.clientPlaybackNonce&&tNi(this.W,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:y.clientPlaybackNonce});return this.videoData}return eDf(this.X0,g.wp.prototype.getCurrentTime.call(this))||g.wp.prototype.getVideoData.call(this)}; g.K.getCurrentTime=function(y){var q=g.wp.prototype.getCurrentTime.call(this);if(g.wp.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){this.K===0?y||(q-=this.startTimeSecs):y&&(q=this.K);var Q=y?this.X0.Qk||g.wp.prototype.getCurrentTime.call(this):Uhi(this.X0,g.wp.prototype.getCurrentTime.call(this));q!==Q&&tNi(this.W,"time"+(y!=null?y:!1),{time:q,ref:Q,ct:y!=null?y:!1})}else q=y?this.X0.Qk||q:Uhi(this.X0,q);return q}; g.K.getDuration=function(){if(g.wp.prototype.getVideoData.call(this).L("html5_huli_ssdai_use_playback_state")){var y=oLj(this.X0,g.wp.prototype.getCurrentTime.call(this));this.duration!==y&&tNi(this.W,"duration",{dur:this.duration,ref:y});return this.duration}return oLj(this.X0,g.wp.prototype.getCurrentTime.call(this))}; g.K.pL=function(y){this.duration=y};g.yU.prototype.oK=function(y,q){if(q===1)return this.K.get(y);if(q===2)return this.N.get(y);if(q===3)return this.W.get(y)}; g.yU.prototype.qs=yi(58);g.yU.prototype.Ii=function(y,q,Q,p){Q={aG:p,PL:Q};q?this.N.set(y,Q):this.K.set(y,Q)}; g.yU.prototype.clearAll=function(){this.K.clear();this.N.clear();this.W.clear()}; kC8.prototype.clear=function(){this.W=[];this.N.clear();this.Y.clear();this.K.clear()}; kC8.prototype.Lt=function(y){var q=y.cpn;y=y.V$;if(q&&(q=this.N.get(q))||y&&(q=(this.J?this.N:this.Y).get(y)))return q}; g.x(g.qU,g.I);g.K=g.qU.prototype;g.K.onCueRangeEnter=function(y){var q=y.getId();this.MU({oncueEnter:1,cpn:q,start:y.start,end:y.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Uu()||0).toFixed(3)});var Q=this.K.Lt({cpn:q});this.MU({enterAdCueRange:1});var p=this.jB||this.SG().cpn,v;p=(v=this.K.Lt({cpn:p}))!=null?v:this.SG();Q&&(v=this.playback.getCurrentTime(),Q.startTimeSecs=y.start/1E3,Q={vP:p,yB:Q,JF:v},JC9(this,q,y.start/1E3,v),VU(this,Q))}; g.K.cG=function(y,q){if(y&&q){var Q,p=((Q=this.app.IW().Y)==null?void 0:Q.Mp())||this.playback.Mp(),v;Q=(v=this.K.Lt({cpn:p}))!=null?v:this.SG();var d;y=(d=this.K.Lt({cpn:y}))!=null?d:this.SG();y.startTimeSecs=q;y.playerType===2&&(y.nP=y.nP!=null?Math.min(y.nP,q):q);d=this.playback.getCurrentTime();JC9(this,p,q,d);VU(this,{vP:Q,yB:y,JF:d})}}; g.K.LA=function(y,q){if(y===this.playback.Mp())CK(this.app.IW(),this.playback,!1);else{var Q=this.Es.get(y);Q?(Q.K=0,Q.startTimeSecs=q,CK(this.app.IW(),Q,!0)):this.MU({nop_s:y})}}; g.K.onCueRangeExit=function(y){for(var q=this.playback.getCurrentTime()*1E3,Q=y.getId(),p=g.t(this.W.values()),v=p.next();!v.done;v=p.next())if(v=v.value,v.getId()!==Q&&q>=v.start&&q<=v.end)return;if(Q=this.K.Lt({cpn:Q}))q=this.playback.getCurrentTime(),p=this.SG(),p.startTimeSecs=y.end/1E3,Q={vP:Q,yB:p,JF:q},JC9(this,this.playback.Mp(),y.end/1E3,q),VU(this,Q)}; g.K.SG=function(){return{cpn:this.playback.Mp(),durationMs:0,w0:0,playerType:1,Yy:0,videoData:this.playback.getVideoData(),errorCount:0,cC:""}}; g.K.seekTo=function(y,q,Q,p){y=y===void 0?0:y;q=q===void 0?{}:q;Q=Q===void 0?!1:Q;p=p===void 0?null:p;TL(this,this.jB);if(this.playback.getVideoData().Lg()&&y<=this.Qk)this.playback.pauseVideo(),this.Qk=0,F79(this,y);else if(this.cI=!0,Q)svD(this,y,q);else{Q=this.app.tK();var v=Q===this.gp?this.Dw:null;v6(this,!1);this.cB=y;this.q$=q;p!=null&&this.Os.start(p);Q&&(this.Dw=v||Q.getPlayerState(),Q.Tp(q),this.gp=Q)}}; g.K.FV=function(){v6(this,!1);PY3(this);iT8(this);g.I.prototype.FV.call(this)}; g.K.zV=function(y){this.RH=y;this.MU({swebm:y})}; g.K.JP=function(y,q,Q){if(Q&&q){var p=this.J.get(y);if(p){p.locations||(p.locations=new Map);var v=Number(q.split(";")[0]);Q=new g.X0(Q);this.MU({hdlredir:1,itag:q,seg:y,hostport:C3(Q)});p.locations.set(v,Q)}}}; g.K.K0=function(y,q,Q,p,v,d){var T=p===3,O=CYH(this,y,q,p,Q,d);if(!O){dd(this,q,T);var w=g.XRb(this,q)?"undec":"ncp";this.MU({gvprp:w,mt:y,seg:q,tt:p,itag:Q,ce:d});return null}T||this.J.set(q,O);d=O.cC;var J;p=((J=this.oK(q-1,p,v))==null?void 0:J.aG)||"";p===""&&this.MU({eds:1});J=qc3(this,O.ssdaiAdsConfig);v=this.playback.getVideoData();var F;T=((F=v.W)==null?void 0:F.containerType)||0;F=v.FR[T];O=O.d6&&q>=O.d6?O.d6:void 0;F={t9:d?vHf(this,d):[],adsConfig:J,aG:p,H8:O,zd:Dd(F.split(";")[0]),Td:F.split(";")[1]|| ""};O={HC:F};this.Vm&&(y={gvprpro:"v",sq:q,mt:y.toFixed(3),itag:Q,acpns:((w=F.t9)==null?void 0:w.join("_"))||"none",abid:d},this.MU(y));return O}; g.K.OX=function(y){a:{if(!this.WA){var q=yC9(this,y);if(!(this.playback.getVideoData().Lg()&&(q==null?0:q.EJ)))break a}q=void 0}var Q=q;if(!Q)return this.MU({gvprp:"ncp",mt:y}),null;q=Q.cC;var p=qc3(this,Q.ssdaiAdsConfig);Q=Q.d6&&Q.fZ&&y>=Q.fZ?Q.d6:void 0;var v=this.playback.getVideoData(),d,T=((d=v.W)==null?void 0:d.containerType)||0;d=v.FR[T];d={t9:q?vHf(this,q):[],adsConfig:p,H8:Q,zd:Dd(d.split(";")[0]),Td:d.split(";")[1]||""};var O;y={gvprpro:"v",mt:y.toFixed(3),acpns:((O=d.t9)==null?void 0:O.join("_"))|| "none",abid:q};this.MU(y);return d}; g.K.bO=function(y,q,Q,p,v,d){var T=Number(Q.split(";")[0]),O=p===3;y=CYH(this,y,q,p,Q,d);this.MU({gdu:1,seg:q,itag:T,pb:""+!!y});if(!y)return dd(this,q,O),null;y.locations||(y.locations=new Map);if(!y.locations.has(T)){var w,J;d=(w=y.videoData.getPlayerResponse())==null?void 0:(J=w.streamingData)==null?void 0:J.adaptiveFormats;if(!d)return this.MU({gdu:"noadpfmts",seg:q,itag:T}),dd(this,q,O),null;w=d.find(function(f){return f.itag===T}); if(!w||!w.url){var F=y.videoData.videoId;y=[];var Y=g.t(d);for(p=Y.next();!p.done;p=Y.next())y.push(p.value.itag);this.MU({gdu:"nofmt",seg:q,vid:F,itag:T,fullitag:Q,itags:y.join(",")});dd(this,q,O);return null}y.locations.set(T,new g.X0(w.url,!0))}d=y.locations.get(T);if(!d)return this.MU({gdu:"nourl",seg:q,itag:T}),dd(this,q,O),null;d=new rs(d);this.RH&&(d.get("dvc")?this.MU({dvc:d.get("dvc")||""}):d.set("dvc","webm"));(p=(Y=this.oK(q-1,p,v))==null?void 0:Y.aG)&&d.set("daistate",p);y.d6&&q>=y.d6&& d.set("skipsq",""+y.d6);(Y=this.playback.getVideoData().clientPlaybackNonce)&&d.set("cpn",Y);Y=[];y.cC&&(Y=vHf(this,y.cC),Y.length>0&&d.set("acpns",Y.join(",")));O||this.J.set(q,y);O=null;O=d.get("aids");p=d.i6();(p==null?void 0:p.length)>2048&&this.MU({urltoolong:1,sq:q,itag:T,len:p.length});this.Vm&&(p&&(d=y.cpn,v=y.cC,V13(this,d,v),v&&!this.Aw.has(v)&&(d=di3(this,d,v),w=T$f(this,v),this.MU({iofa:d}),this.MU({noawnzd:w-d}),this.MU({acpns:Y.join("."),aids:(F=O)==null?void 0:F.replace(/,/g,".")}), this.Aw.add(v))),this.MU({gdu:"v",seg:q,itag:Q,ast:y.w0.toFixed(3),alen:y.durationMs.toFixed(3),acpn:y.cpn,avid:y.videoData.videoId}));return p}; g.K.eg=function(y,q,Q){Q=Q===void 0?!1:Q;var p=mhC(this,y,q);if(p){this.EW&&(this.Sj=p);var v=void 0,d=p.cC;if(d){this.MU({skipadonsq:q,sts:Q,abid:d,acpn:p.cpn,avid:p.videoData.videoId});Q=this.K.K.get(d);if(!Q)return;Q=g.t(Q);for(d=Q.next();!d.done;d=Q.next())d=d.value,d.d6=q,d.fZ=y,d.w0>p.w0&&(v=d)}TL(this,this.jB);this.N=p.cpn;jPj(this);this.api.L("html5_ssdai_enable_media_end_cue_range")&&this.playback.fM(this.N);y=this.playback.getCurrentTime();QPb(this,p,v,y,y,!1,!0);wL3(this)}}; g.K.uN=function(){for(var y=g.t(this.K.W),q=y.next();!q.done;q=y.next())q=q.value,q.d6=NaN,q.fZ=NaN;jPj(this);this.MU({rsac:"resetSkipAd",sac:this.N});this.BI.delete(this.N);this.N="";this.EW&&(this.Sj=void 0)}; g.K.oK=function(y,q,Q){return this.N$.oK(y,q,Q)}; g.K.qs=yi(57); g.K.Ii=function(y,q,Q,p,v,d,T,O,w){p.length>0&&this.MU({onssinfo:1,sq:y,start:q.toFixed(3),cpns:p.join(","),ds:v.join(","),isVideo:T?1:0});if(this.EW&&this.Sj&&this.Sj.d6&&p.length>0){Q=g.t(p);for(var J=Q.next();!J.done;J=Q.next())if(J=J.value,J===this.Sj.cpn){this.BT!==J&&(this.MU({skiperror:1,sq:y,acpn:this.Sj.cpn,skipsq:this.Sj.d6||0}),this.BT=J);break}}w&&this.N$.Ii(y,T,O,w);if(T){if(p.length&&v.length)for(this.BI.has(p[0])&&this.MU({skipfail:1,sq:y,acpn:p[0]}),y=q+this.VA(),T=0;T0&&(this.MW=0,this.jB="",this.KK.L("html5_huli_ssdai_use_playback_state")&&this.LA(this.playback.Mp(),0),this.api.publish("serverstitchedvideochange"));this.playback.Rd(Q,p);return!0}; g.K.Gk=function(){this.MU({rstdaist:1});this.N$.clearAll()}; g.K.gI=function(y){var q;if(y!==((q=this.G)==null?void 0:q.identifier))this.MU({ignorenoad:y});else{this.F0.add(y);this.MU({noadrcv:y});var Q;((Q=this.G)==null?void 0:Q.identifier)===y&&QU(this)}}; g.K.qq=function(y){if(this.WA)return this.MU({dai_disabled:y.event}),!1;if(this.playback.getVideoData().Lg()&&(y.event==="continue"||y.event==="stop"))return!1;var q=zz(this.api.yN());if(q=q?q.qq(y):!1)this.Y={kL:y.identifier,Ws:y.startSecs};else if(this.Y&&this.Y.kL===y.identifier&&y.startSecs>this.Y.Ws+1){this.MU({cueStChg:y.identifier,oldSt:this.Y.Ws.toFixed(3),newSt:y.startSecs.toFixed(3),abid:this.Y.Kl});if(this.Y.Kl){var Q=y.startSecs-this.Y.Ws,p=this.K.K.get(this.Y.Kl);if(p){p=g.t(p);for(var v= p.next();!v.done;v=p.next())v=v.value,v.w0>=0&&(v.w0+=Q*1E3,this.KK.L("html5_ssdai_update_timeline_on_start_time_change")&&(v.Yy+=Q*1E3),this.MU({newApEt:v.w0,newApPrt:v.Yy,acpn:v.cpn}))}}this.Y.Ws=y.startSecs}this.KK.L("html5_ssdai_log_missing_ad_config_reason")&&(q?this.vI.add(y.identifier):this.vI.has(y.identifier)&&this.vI.delete(y.identifier));return q}; g.K.f_=function(y){var q="";y?y.event==="unknown"?q="unknown":this.vI.has(y.identifier)?this.Y&&this.Y.kL===y.identifier?this.Y.kL===y.identifier?q="pending":XH(this.Ty,function(Q){return Q.identifier===y.identifier})||(q="noAdsAdded"):q="wrongAdBreakInfo":q="unscheduled":q="noCuepoint"; return q}; g.K.Oe=function(y){return this.WA?!1:!!yC9(this,y)}; g.K.q1=function(y){var q=this;if(this.KK.L("html5_lifa_ignore_multiple_skips")&&this.m3)return this.MU({ufs_ad:this.N,ufs_cur:this.jB,ufs_cont:this.SG().cpn}),!1;TL(this,this.jB);this.playback.pauseVideo();var Q=this.playback.getCurrentTime(),p=this.K.Lt({cpn:this.jB});if(!p)return this.MU({skipFail:Q}),!1;this.N=this.jB;this.cI=!1;this.api.L("html5_ssdai_enable_media_end_cue_range")&&this.playback.fM(this.N);OJD(this,p.cC);Ycs(this,p,this.SG(),y);F79(this,Q,{seekSource:89,tU:"lifa_skip"});this.m3|| (this.m3=this.events.Z(this.api,"progresssync",function(){WT(q.api.FD(),(0,g.SK)(),"ad_to_video");q.m3&&(q.events.UW(q.m3),q.m3=null)})); return!0}; g.K.MU=function(y,q){((q===void 0?0:q)||this.Vm||this.playback.getVideoData().Lg())&&this.playback.Rb("sdai",y)}; var Dh8=0;g.x(hFi,g.I);g.K=hFi.prototype;g.K.onCueRangeEnter=function(y){if(this.K===this.app.tK()){var q=this.J.get(y);q?ZJ9(this,q.target,q.BA,y):this.aB("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:y.toString()})}else if(q=this.W.find(function(v){return v.Rk.hR===y})){var Q=q.Rk,p=Q.target; Q=Q.BA;p?ZJ9(this,p,Q,y):W73(this,q.Yy,Q,y)}}; g.K.onQueuedVideoLoaded=function(){var y=this.X;FD(this);if(y){if(!JG(this,y)){var q=this.app.tK();this.aB("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:q==null?void 0:q.getVideoData().clientPlaybackNonce,ccpn:""+y.playerVars.cpn})}this.app.tK().addCueRange(y.Rk.hR)}}; g.K.seekTo=function(y,q,Q,p){y=y===void 0?0:y;q=q===void 0?{}:q;p=p===void 0?null:p;if(Q===void 0?0:Q)fx9(this,y,q);else{Q=this.app.tK()||null;var v=Q===this.Y?this.G:null;Y5(this,!1);this.cI=y;this.j=q;p!=null&&this.C.start(p);Q&&(this.G=v||Q.getPlayerState(),Q.Tp(),this.Y=Q)}}; g.K.WJ=function(y){g.Ks(y,128)&&axi(this)}; g.K.isManifestless=function(){return of(this.K.getVideoData())}; g.K.FV=function(){Y5(this,!1);ScS(this);g.I.prototype.FV.call(this)}; g.K.aB=function(y,q){this.K.aB(new g.t7(y,q))}; var bJi=0;var HJp="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_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.x(f4,g.I);f4.prototype.X3=function(y){if(y)return this.W.get(y)}; f4.prototype.FV=function(){this.K.removeAll();this.W.removeAll();g.I.prototype.FV.call(this)};g.f8n=un(function(){var y=window.AudioContext||window.webkitAudioContext;try{return new y}catch(q){return q.name}});g.x(zFH,g.r);g.K=zFH.prototype;g.K.TH=function(){g.Jr(this.element,g.nS.apply(0,arguments))}; g.K.Qf=function(){this.f3&&(this.f3.removeEventListener("focus",this.oT),g.Z5(this.f3),this.f3=null)}; g.K.Di=function(){this.iB();var y=this.app.T();y.nL||this.TH("tag-pool-enabled");y.G&&this.TH(g.Sl.HOUSE_BRAND);y.playerStyle==="gvn"&&(this.TH("ytp-gvn"),this.element.style.backgroundColor="transparent");y.XL&&(this.ir=g.Q8("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.K.AN=function(y){g.J6(this.app.T());this.SC=!y;hG(this)}; g.K.resize=function(){if(this.f3){var y=this.wS();if(!y.isEmpty()){this.app.xf.isFullscreen()&&GS()&&this.pG.start();var q=!g.PQ(y,this.c8.getSize()),Q=gHS(this);q&&(this.c8.width=y.width,this.c8.height=y.height);y=this.app.T();(Q||q||this.uf||y.XL)&&this.app.xf.publish("resize",this.getPlayerSize())}}}; g.K.gR=function(y,q){this.updateVideoData(q)}; g.K.updateVideoData=function(y){if(this.f3){var q=this.app.T();P9&&(this.f3.setAttribute("x-webkit-airplay","allow"),y.title?this.f3.setAttribute("title",y.title):this.f3.removeAttribute("title"));this.f3.setAttribute("controlslist","nodownload");q.zY&&y.videoId&&(this.f3.poster=y.h6("default.jpg"))}q=g.yo(y,"yt:bgcolor");this.f8.style.backgroundColor=q?q:"";this.Sl=Jp(g.yo(y,"yt:stretch"));this.y_=Jp(g.yo(y,"yt:crop"),!0);g.fU(this.element,"ytp-dni",y.cO);this.resize()}; g.K.setGlobalCrop=function(y){this.RP=Jp(y,!0);this.resize()}; g.K.setCenterCrop=function(y){this.Pm=y;this.resize()}; g.K.hM=function(){}; g.K.getPlayerSize=function(){var y=this.app.T(),q=this.app.xf.isFullscreen(),Q=y.externalFullscreen&&g.d1(y);if(q&&GS()&&!Q)return new g.Gq(window.outerWidth,window.outerHeight);Q=!isNaN(this.wG.width)&&!isNaN(this.wG.height);var p=this.app.T().L("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.T().L("web_watch_enable_fs_squeezeback_panels");if(q&&!Q&&p)return new g.Gq(this.element.clientWidth,this.element.clientHeight);if(q||y.lE){if(window.matchMedia){y="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Ha&&this.Ha.media===y||(this.Ha=window.matchMedia(y));var v=this.Ha&&this.Ha.matches}if(v)return new g.Gq(window.innerWidth,window.innerHeight)}else if(Q)return this.wG.clone();return new g.Gq(this.element.clientWidth,this.element.clientHeight)}; g.K.wS=function(){var y=this.app.T().L("enable_desktop_player_underlay"),q=this.getPlayerSize(),Q=g.wm(this.app.T().experiments,"player_underlay_min_player_width");return y&&this.zw&&q.width>Q?(y=g.wm(this.app.T().experiments,"player_underlay_video_width_fraction"),new g.Gq(Math.min(q.height*this.getVideoAspectRatio(),q.width*y),Math.min(q.height,q.width*y/this.getVideoAspectRatio()))):q}; g.K.getVideoAspectRatio=function(){return isNaN(this.Sl)?udp(this):this.Sl}; g.K.getVideoContentRect=function(y){var q=this.wS();y=IxD(this,q,this.getVideoAspectRatio(),y);return new g.ol((q.width-y.width)/2,(q.height-y.height)/2,y.width,y.height)}; g.K.g8=function(y){this.zw=y;this.resize()}; g.K.Ja=function(){return this.W$}; g.K.onMutedAutoplayChange=function(){hG(this)}; g.K.setInternalSize=function(y){g.PQ(this.wG,y)||(this.wG=y,this.resize())}; g.K.FV=function(){this.ir&&g.V8(this.ir);this.Qf();g.r.prototype.FV.call(this)};g.K=UiC.prototype;g.K.click=function(y,q){this.elements.has(y);this.K.has(y);var Q=g.LD();Q&&y.visualElement&&g.p1(Q,y.visualElement,q)}; g.K.createClientVe=function(y,q,Q,p){var v=this;p=p===void 0?!1:p;this.elements.has(y);this.elements.add(y);Q=a13(Q);y.visualElement=Q;var d=g.LD(),T=g.kl();d&&T&&(g.kQ("combine_ve_grafts")?F0(wz(),Q,T):g.q7(g.BW)(void 0,d,T,Q));q.addOnDisposeCallback(function(){v.elements.has(y)&&v.destroyVe(y)}); p&&this.W.add(y)}; g.K.createServerVe=function(y,q,Q){var p=this;Q=Q===void 0?!1:Q;this.elements.has(y);this.elements.add(y);q.addOnDisposeCallback(function(){p.destroyVe(y)}); Q&&this.W.add(y)}; g.K.destroyVe=function(y){this.elements.has(y);this.elements.delete(y);this.N.delete(y);this.K.delete(y);this.W.delete(y)}; g.K.rU=function(y,q){this.clientPlaybackNonce!==q&&(this.clientPlaybackNonce=q,Jo(wz(),y),rCb(this))}; g.K.setTrackingParams=function(y,q){this.elements.has(y);q&&(y.visualElement=g.t4(q))}; g.K.BB=function(y,q,Q){this.elements.has(y);q?this.K.add(y):this.K.delete(y);var p=g.LD(),v=y.visualElement;this.W.has(y)?p&&v&&(q?g.jA(p,[v]):g.Q6(p,[v])):q&&!this.N.has(y)&&(p&&v&&g.qP(p,v,void 0,Q),this.N.add(y))}; g.K.hasVe=function(y){return this.elements.has(y)};g.x(g.$5,g.I);g.$5.create=function(y,q,Q,p){try{var v=typeof y==="string"?y:"player"+g.V_(y),d=SZ[v];if(d){try{d.dispose()}catch(O){g.l$(O)}SZ[v]=null}var T=new g.$5(y,q,Q,p);T.addOnDisposeCallback(function(){SZ[v]=null;T.XX&&T.XX()}); return SZ[v]=T}catch(O){throw g.l$(O),(O&&O instanceof Error?O:Error(String(O))).stack;}}; g.K=g.$5.prototype;g.K.G5=function(){return this.visibility}; g.K.TZ=function(y){var q=this.K3();if(y!==q){y.getVideoData().autonavState=q.getVideoData().autonavState;q.jJ(this.tI,this);var Q=q.getPlaybackRate();q.dispose();this.sW.TZ(y);y.setPlaybackRate(Q);y.b7(this.tI,this);ygC(this)}}; g.K.Yv=function(){this.XU||(this.XU=g.yL(Vl(),rcD()));return this.XU}; g.K.Qf=function(y){if(this.mediaElement){this.N_&&(this.events.UW(this.N_),this.N_=null);g.lw(this.Wh);this.tK().Qf(!0,!1,y);this.template.Qf();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.ix()}catch(q){g.zI(q)}this.mediaElement=null}}; g.K.uC=function(y,q,Q){if(y!==this.tK()){var p=null;if(Q===void 0||!Q){Q=this.tK();p=Q.getPlayerState();lk(this.Oy,3);gd(this,"cuerangesremoved",Q.tR());this.SY&&!y.isGapless()&&Q.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();Q=y.VF()&&Q.VF();this.gm.dI("iv_s");Q=Q===void 0?!0:Q;var v;if(v=this.HO){v=this.HO;var d=this.mediaElement;v=!!d&&d===v.mediaElement}v&&(this.Qf(),x5(this));v=this.tK();v.Qf(!Q);v.jJ(this.Zd,this);v.getPlayerType()!==1&&v.dispose();Q=this.sW;Q.W=Q.K;mQ(Q)}y.getPlayerType()=== 1&&this.TZ(y);Q=y.getPlayerType();v=this.sW.N[Q]||null;y!==this.K3()&&y!==v&&(v==null||v.dispose(),this.sW.N[Q]=y);this.sW.uC(y);this.mediaElement&&y.setMediaElement(this.mediaElement);y.b7(this.Zd,this);y.IG()?Sbs(this,"setPresenting",!1):(this.gR("newdata",y,y.getVideoData()),p&&!g.AX(p,y.getPlayerState())&&this.nB(new g.bK(y.getPlayerState(),p)),q=q&&y.getPlayerType()===1,y.J4()&&!q&&this.gR("dataloaded",y,y.getVideoData()),(q=(q=y.getVideoData().W)&&q.video)&&this.xf.h1("onPlaybackQualityChange", q.quality),gd(this,"cuerangesadded",y.tR()),q=y.getPlayerState(),g.G(q,2)?d29(this):g.G(q,8)?y.playVideo():y.BM()&&y.pauseVideo(),q=this.K3(),y.getPlayerType()===2&&(y.getVideoData().DK=q.getVideoData().clientPlaybackNonce),y.getPlayerType()!==2||this.SK()||(y=y.getVideoData(),q.fO(y.clientPlaybackNonce,y.b9||"",y.breakType||0,y.Bn,y.videoId||"")))}}; g.K.XW=function(){this.K3()!==this.tK()&&this.uC(this.K3())}; g.K.IW=function(){return this.sW}; g.K.Lt=function(y){return this.sW.Lt(y)}; g.K.p6=function(y){return this.sW.p6(y)}; g.K.K3=function(){return this.sW.K3()}; g.K.tK=function(){return this.sW.tK()}; g.K.lW=yi(44);g.K.S9y=function(){E8(this)||this.eW(5)}; g.K.B0m=function(){if(!E8(this)){kkC(this);var y=this.tK(),q=y.getPlayerState();y.BM()?this.pauseVideo():q.isOrWillBePlaying()&&this.playVideo()}}; g.K.canPlayType=function(y){return aZ(y)}; g.K.T=function(){return this.KK}; g.K.getVideoData=function(){return this.tK().getVideoData()}; g.K.Ca=yi(11);g.K.Ff=function(){return this.K3().getVideoData()}; g.K.getVideoLoadedFraction=function(y){return(y=this.Lt({playerType:y}))?y.getVideoLoadedFraction():this.sW.K.getVideoLoadedFraction()}; g.K.lB=function(){return this.template}; g.K.yN=function(){return this.Oy}; g.K.FD=function(){return this.gm}; g.K.Gp=function(y,q,Q){(q=this.Lt({playerType:q===void 0?1:q}))&&q.Bh(y,void 0,Q)}; g.K.YM=function(){var y=this.Oy.YM();this.xf.publish("videoStatsPingCreated",y);return y}; g.K.getVolume=function(){return Math.round(this.xf.getVolume())}; g.K.isMuted=function(){return this.xf.isMuted()}; g.K.X7=function(){if(this.K3()===this.tK()&&this.Jw)return this.Jw.postId}; g.K.okf=function(){var y=this;this.L("use_rta_for_player")||(g.kt(this.KK)?g.Is(this.KK,g.$W(this.getVideoData())).then(function(q){OY(Vl(),q);kbS(y.getVideoData(),y.KK,y.Yv())}):kbS(this.getVideoData(),this.KK,this.Yv()))}; g.K.QH=function(y){this.xf.publish("poTokenVideoBindingChange",y)}; g.K.fz=function(y){this.xf.publish("d6de4videobindingchange",y)}; g.K.ZP=function(){this.GM&&this.GM.ZP()}; g.K.BF=function(y){this.GM=y}; g.K.hk=function(y){if(y===1){this.gm.tick("vr");var q=this.tK();q.bW();Ndb(this.gm,q.getVideoData(),Em8(this));Qui(this.Oy)}q=this.KK;if(zd(q)&&q.C||g.Yo(q)){var Q;(((Q=this.tK().getVideoData())==null?0:Q.enableServerStitchedDai)||!this.SK())&&this.xf.h1("onAdStateChange",y)}}; g.K.setLoopVideo=function(y){var q=this.tK();q===this.K3()&&q.r6()!==y&&(q.setLoop(y),this.xf.AK("onLoopChange",y))}; g.K.getLoopVideo=function(){return this.tK().r6()}; g.K.setLoopRange=function(y){var q=!1;!!this.Jw!==!!y?q=!0:this.Jw&&y&&(q=this.Jw.startTimeMs!==y.startTimeMs||this.Jw.endTimeMs!==y.endTimeMs||this.Jw.postId!==y.postId||this.Jw.type!==y.type);if(q){q=this.tK();z1(q.getVideoData())&&q.Rb("slr",{et:(y==null?void 0:y.endTimeMs)||-1});q=this.K3();q.BO("applooprange");if(y){var Q=new g.yb(y.startTimeMs,y.endTimeMs,{id:"looprange",namespace:"applooprange"});q.addCueRange(Q)}else{this.Ff().clipConfig=void 0;var p;((Q=this.Jw)==null?void 0:Q.type)!=="repeatChapter"|| isNaN(Number((p=this.Jw)==null?void 0:p.loopCount))||(Q={loopCount:String(this.Jw.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.wU("repeatChapterLoopEvent",Q))}this.Jw=y;this.xf.AK("onLoopRangeChange",y||void 0);this.K3()===this.tK()&&(this.kB(),q.Y4())}}; g.K.getLoopRange=function(){return this.Jw}; g.K.kB=function(){var y="",q=this.K3();this.Jw?q!==this.tK()?y="pnea":YbD(this,q.getCurrentTime())&&(this.Jw.loopCount=0,y="ilr"):y="nlr";var Q=this.tK();if(z1(Q.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var p,v;Q.Rb("slrre",{rej:y,ct:q.getCurrentTime(),lst:(p=this.Jw)==null?void 0:p.startTimeMs,let:(v=this.Jw)==null?void 0:v.endTimeMs})}else Q.Rb("slrre",{});y||hPi(this)}; g.K.setPlaybackRate=function(y,q){if(!isNaN(y)){y=Qa8(this,y);var Q=this.K3();Q.getPlaybackRate()!==y&&(Q.setPlaybackRate(y),q&&!this.KK.Y&&g.DW("yt-player-playback-rate",y),this.xf.h1("onPlaybackRateChange",y))}}; g.K.getCurrentTime=function(y,q){q=q===void 0?!0:q;var Q=this.sW.sf;if(Q)return Q.getCurrentTime();var p=y===2&&this.getVideoData().enableServerStitchedDai;Q=null;p?Q=this.tK():Q=this.Lt({playerType:y});return Q?p&&this.PO?(y=this.sW.X)?y.getCurrentTime(q):Q.getCurrentTime():q?(q=tG(this,Q),lR(this,q.getCurrentTime(),q)):Q.getCurrentTime():this.sW.K.getCurrentTime()}; g.K.gk=function(){var y=this.Lt({playerType:void 0});if(!y)return this.sW.K.gk();y=tG(this,y);return lR(this,y.gk(),y)}; g.K.getDuration=function(y,q){q=q===void 0?!0:q;var Q=this.sW.sf;if(Q)return Q.getDuration();Q=this.getVideoData();var p=y===2&&Q.enableServerStitchedDai,v=null;p?v=this.tK():v=this.Lt({playerType:y});if(!v)return this.sW.K.getDuration();if(Q.hasProgressBarBoundaries()&&!p){var d,T=Number((d=Q.progressBarStartPosition)==null?void 0:d.utcTimeMillis),O;d=Number((O=Q.progressBarEndPosition)==null?void 0:O.utcTimeMillis);if(!isNaN(T)&&!isNaN(d))return(d-T)/1E3}if(z1(Q)&&!Q.isLivePlayback)return s8(this, y);if(q)return y=Zp(this,v),lR(this,y.getDuration(),y);if(p&&this.PO){if(this.L("html5_huli_ssdai_use_playback_state"))return y=this.sW,y=y.Y===y.X?y.Y:null,(y==null?void 0:y.getDuration())||0;var w;return((w=this.sW.X)==null?void 0:w.getDuration())||0}return v.getDuration()}; g.K.Sb=function(y){var q=this.Lt({playerType:y});return q?this.SK(q)?(q=Zp(this,q),q.Sb()-q.getCurrentTime()+this.getCurrentTime(y)):q.Sb():this.sW.K.Sb()}; g.K.finishSegmentByCpn=function(){return[]}; g.K.Di=function(){this.template.Di();var y=this.xf;y.state.element=this.template.element;var q=y.state.element,Q;for(Q in y.state.K)y.state.K.hasOwnProperty(Q)&&(q[Q]=y.state.K[Q]);(y=UvD(this.template.element))&&this.events.Z(this.template,y,this.onFullscreenChange)}; g.K.getDebugText=function(y){var q=this.K3().IH(y),Q=this.tK();if(Q!==this.K3()){Q=Q.IH(y);for(var p=g.t(Object.keys(Q)),v=p.next();!v.done;v=p.next())v=v.value,q["ad"+v]=Q[v];if(y){Q=q;p={};if(v=d0(document,"movie_player"))p.bounds=v.getBoundingClientRect(),p["class"]=v.className;v={};var d=g.w0("video-ads");d?(saH(d,v),v.html=d.outerHTML):v.missing=1;d={};var T=g.w0("videoAdUiSkipContainer"),O=g.w0("ytp-ad-skip-button-container"),w=g.w0("ytp-skip-ad-button"),J=T||O||w;J?(saH(J,d),d.ima=T?1:0,d.bulleit= O?1:0,d.component=w?1:0):d.missing=1;p=JSON.stringify({player:p,videoAds:v,skipButton:d});Q.ad_skipBtnDbgInfo=p}}y&&this.mediaElement&&(q["0sz"]=""+(+il(this.mediaElement.getSize())===0),q.op=this.mediaElement.l1("opacity"),Q=this.mediaElement.gP().y+this.mediaElement.getSize().height,q.yof=""+(+Q<=0),q.dis=this.mediaElement.l1("display"));y&&((y=(0,g.TP)())&&(q.gpu=y),(y=this.KK.playerStyle)&&(q.ps=y),this.KK.Vm&&(q.webview=1),(y=this.webPlayerContextConfig.jsUrl)&&(q.js=y));q.debug_playbackQuality= this.xf.getPlaybackQuality(1);q.debug_date=(new Date).toString();q.origin=window.origin;q.timestamp=Date.now();delete q.uga;delete q.q;return JSON.stringify(q,null,2)}; g.K.getFeedbackProductData=function(){var y={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", "),player_release:V[15]},q=this.getPlayerStateObject().kJ;q&&(y.player_error_code=q.errorCode,y.player_error_details=JSON.stringify(q.errorDetail));return y}; g.K.getPresentingPlayerType=function(y){if(this.appState===1)return 1;if(E8(this))return 3;var q;return y&&((q=this.PO)==null?0:Aub(q,this.getCurrentTime()))?2:this.tK().getPlayerType()}; g.K.Gc=function(){return!1}; g.K.getPlayerStateObject=function(y){var q=this.sW.sf;return q?q.getPlayerState():this.Lt({playerType:y}).getPlayerState()}; g.K.getAppState=function(){return this.appState}; g.K.njw=function(y){switch(y.type){case "loadedmetadata":this.xB.start();y=g.t(this.Jx);for(var q=y.next();!q.done;q=y.next())q=q.value,tg9(this,q.id,q.ARK,q.ThK,void 0,!1);this.Jx=[];break;case "loadstart":this.gm.dI("gv");break;case "progress":case "timeupdate":bS(y.target.Cn())>=2&&this.gm.dI("l2s");break;case "playing":g.Mj&&this.xB.start();if(g.kt(this.KK))y=!1;else{q=g.ji(this.yN());y=this.mediaElement.l1("display")==="none"||il(this.mediaElement.getSize())===0;var Q=bR(this.template),p=this.tK().getVideoData(), v=g.Us(this.KK);p=DD(p);q=!Q||q||v||p||this.KK.Dw;y=y&&!q}y&&(y=this.tK(),y.n0(),this.getVideoData().hw||(this.getVideoData().hw=1,this.lG(),y.playVideo()))}}; g.K.XTf=function(y){this.xf.mu("onLoadProgress",y)}; g.K.l3f=function(){this.xf.publish("playbackstalledatstart")}; g.K.zdj=function(y,q){this.xf.publish("sabrCaptionsDataLoaded",y,q)}; g.K.pO$=function(y){this.tK().xN(y)}; g.K.Gfj=function(y){this.tK().VR(y)}; g.K.I3p=function(y){y=tG(this,this.tK());y=lR(this,y.getCurrentTime(),y);this.xf.h1("onVideoProgress",y);this.KK.TB&&KNS(this,this.visibility.P_())&&this.pauseVideo()}; g.K.EjI=function(){this.xf.h1("onAutoplayBlocked");var y=this.tK().getVideoData();y&&(y.Pu=!0);g.d1(this.KK)&&(y={autoplayBrowserPolicy:H_(),autoplayIntended:Rt(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.wU("embedsAutoplayStatusChanged",y))}; g.K.tuw=function(){this.xf.publish("progresssync")}; g.K.bt3=function(){this.xf.mu("onPlaybackPauseAtStart")}; g.K.gs3=function(y){if(this.getPresentingPlayerType()===1){g.Ks(y,1)&&!g.G(y.state,64)&&this.Ff().isLivePlayback&&this.K3().isAtLiveHead()&&this.xf.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Ks(y,2)){if(this.Jw&&this.Jw.endTimeMs>=(this.getDuration()-1)*1E3){hPi(this);return}d29(this)}if(g.G(y.state,128)){var q=y.state;this.cancelPlayback(5);q=q.kJ;JSON.stringify({errorData:q,debugInfo:this.getDebugText(!0)});this.xf.h1("onError",u6b(q.errorCode));this.xf.mu("onDetailedError",{errorCode:q.errorCode, errorDetail:q.errorDetail,message:q.errorMessage,messageKey:q.K_,cpn:q.cpn});(0,g.SK)()-this.KK.Bn>6048E5&&this.xf.mu("onReloadRequired")}q={};if(y.state.isPlaying()&&!y.state.isBuffering()&&!I0("pbresume","ad_to_video")&&I0("_start","ad_to_video")){var Q=this.getVideoData();q.clientPlaybackNonce=Q.clientPlaybackNonce;Q.videoId&&(q.videoId=Q.videoId);g.D_(q,"ad_to_video");zn("pbresume",void 0,"ad_to_video");Qui(this.Oy)}this.xf.publish("applicationplayerstatechange",y)}}; g.K.nB=function(y){this.sW.sf||this.xf.publish("presentingplayerstatechange",y)}; g.K.WJ=function(y){W6(this,Bb(y.state));g.G(y.state,1024)&&this.xf.isMutedByMutedAutoplay()&&(H6(this,{muted:!1,volume:this.Ad.volume},!1),Rx(this,!1))}; g.K.onPlayerRequestSent=function(y){this.xf.AK("onPlayerRequestSent",y)}; g.K.ZJ=function(y,q){y==="newdata"&&ygC(this);this.xf.publish("applicationvideodatachange",y,q)}; g.K.UzB=function(y,q){this.L("html5_afmt_change_update_volume")&&kkC(this);this.xf.mu("onPlaybackAudioChange",this.xf.getAudioTrack().ZG.name);this.xf.publish("internalaudioformatchange",this.xf.getAudioTrack().ZG.id,q)}; g.K.Ctm=function(y){var q=this.tK().getVideoData();y===q&&this.xf.h1("onPlaybackQualityChange",y.W.video.quality)}; g.K.ze=function(){var y=this.sW.N[2]||null;y&&(y=y.getVideoData(),this.tK().Rb("ssdai",{cleanaply:1,acpn:y==null?void 0:y.clientPlaybackNonce,avid:y.videoId,isDai:this.Ff().enableServerStitchedDai?1:0}),delete this.sW.N[2])}; g.K.dzK=function(y,q){this.gR(y,this.tK(),q)}; g.K.gR=function(y,q,Q){this.KK.U9()&&q.Rb("vdc",{type:y,vid:Q.videoId||"",cpn:Q.clientPlaybackNonce||""});q===this.K3()&&(this.KK.eP=Q.oauthToken);q===this.K3()&&(this.getVideoData().enableServerStitchedDai&&!this.PO?(this.K3().Rb("sdai",{initSstm:1}),this.PO=new g.qU(this.xf,this.KK,this.K3(),this)):!this.getVideoData().enableServerStitchedDai&&this.PO&&(this.PO.dispose(),this.PO=null));if(y==="newdata")lk(this.Oy,2),this.xf.publish("videoplayerreset",q);else{if(!this.mediaElement)return;if(y=== "dataloaded")if(this.K3()===this.tK()){if(Kn(Q.wp,Q.kh),!this.K3().getPlayerState().isError()){var p=E8(this);this.Ff().isLoaded();p&&this.eW(6);Owg(this);qDb(this.Oy)||Vg9(this)}}else Owg(this);if(q.getPlayerType()===1&&(this.KK.Es&&RPH(this),this.getVideoData().isLivePlayback&&!this.KK.BG&&this.RM("html5.unsupportedlive",2,"DEVICE_FALLBACK"),Q.isLoaded()&&((oTi(Q)||this.getVideoData().hT)&&this.xf.publish("legacyadtrackingpingchange",this.getVideoData()),Q.hasProgressBarBoundaries()))){var v;p= Number((v=this.getVideoData().progressBarEndPosition)==null?void 0:v.utcTimeMillis)/1E3;!isNaN(p)&&(v=this.Sb())&&(v-=this.getCurrentTime(),p=(p-v)*1E3,v=this.a4.progressEndBoundary,(v==null?void 0:v.start)!==p&&(v&&this.j3([v]),p=new g.yb(p,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.K3().addCueRange(p),this.a4.progressEndBoundary=p))}this.xf.publish("videodatachange",y,Q,q.getPlayerType())}this.xf.h1("onVideoDataChange",{type:y,playertype:q.getPlayerType()}); this.kB();(y=Q.SQ)?this.yn.rU(y,Q.clientPlaybackNonce):rCb(this.yn)}; g.K.mz=function(){L4(this,null);this.xf.mu("onPlaylistUpdate")}; g.K.cjB=function(y){delete this.a4[y.getId()];this.K3().removeCueRange(y);a:{y=this.getVideoData();var q,Q,p,v,d,T,O,w,J,F,Y=((q=y.vI)==null?void 0:(Q=q.contents)==null?void 0:(p=Q.singleColumnWatchNextResults)==null?void 0:(v=p.autoplay)==null?void 0:(d=v.autoplay)==null?void 0:d.sets)||((T=y.vI)==null?void 0:(O=T.contents)==null?void 0:(w=O.twoColumnWatchNextResults)==null?void 0:(J=w.autoplay)==null?void 0:(F=J.autoplay)==null?void 0:F.sets);if(Y)for(q=g.t(Y),Q=q.next();!Q.done;Q=q.next())if(Q= Q.value,v=p=void 0,Q=Q.autoplayVideo||((p=Q.autoplayVideoRenderer)==null?void 0:(v=p.autoplayEndpointRenderer)==null?void 0:v.endpoint),p=g.U(Q,g.H3),d=v=void 0,Q!=null&&((v=p)==null?void 0:v.videoId)===y.videoId&&((d=p)==null?0:d.continuePlayback)){y=Q;break a}y=null}(q=g.U(y,g.H3))&&this.xf.AK("onPlayVideo",{sessionData:{autonav:"1",itct:y==null?void 0:y.clickTrackingParams},videoId:q.videoId,watchEndpoint:q})}; g.K.eW=function(y){y!==this.appState&&(y===2&&this.getPresentingPlayerType()===1&&(W6(this,-1),W6(this,5)),this.appState=y,this.xf.publish("appstatechange",y))}; g.K.RM=function(y,q,Q,p,v){this.K3().SB(y,q,Q,p,v)}; g.K.yG=yi(13);g.K.isAtLiveHead=function(y,q){q=q===void 0?!1:q;var Q=this.Lt({playerType:y});if(!Q)return this.sW.K.isAtLiveHead();y=Zp(this,Q);Q=tG(this,Q);return y!==Q?y.isAtLiveHead(lR(this,Q.getCurrentTime(),Q),!0):y.isAtLiveHead(void 0,q)}; g.K.ue=function(){var y=this.Lt({playerType:void 0});return y?Zp(this,y).ue():this.sW.K.ue()}; g.K.seekTo=function(y,q,Q,p,v,d){q=q!==!1;if(p=this.Lt({playerType:p}))if(this.appState===2&&NU(this),this.SK(p))zL(this)?this.PO.seekTo(y,{seekSource:v},q,Q):this.X0.seekTo(y,{seekSource:v},q,Q);else{this.L("html5_sabr_csdai_seek_log")||(d="");var T;p.seekTo(y,{Ie:!q,LC:Q,tU:"application"+((T=d)!=null?T:""),seekSource:v})}}; g.K.seekBy=function(y,q,Q,p){this.seekTo(this.getCurrentTime()+y,q,Q,p,void 0,"_by")}; g.K.T0j=function(){this.xf.h1("SEEK_COMPLETE")}; g.K.s7p=function(){this.xf.AK("onAbnormalityDetected")}; g.K.ojs=function(y){this.xf.AK("onSnackbarMessage",y)}; g.K.AUf=function(y){var q=this.tK(),Q=q.getVideoData();if(this.appState===1||this.appState===2)Q.startSeconds=y;this.appState===2?g.G(q.getPlayerState(),512)||NU(this):this.xf.h1("SEEK_TO",y)}; g.K.vjs=function(){this.xf.publish("airplayactivechange")}; g.K.Q7f=function(){this.xf.publish("airplayavailabilitychange")}; g.K.showAirplayPicker=function(){this.tK().lw()}; g.K.itB=function(){this.xf.publish("beginseeking")}; g.K.GDy=function(){this.xf.publish("endseeking")}; g.K.getStoryboardFormat=function(y){return(y=this.Lt({playerType:y}))?Zp(this,y).getStoryboardFormat():this.sW.K.getStoryboardFormat()}; g.K.u4=function(y){return(y=this.Lt({playerType:y}))?Zp(this,y).getVideoData().u4():this.sW.K.u4()}; g.K.SK=function(y){y=(y||this.tK()).getVideoData();if(zL(this))y=y===this.PO.playback.getVideoData();else a:{var q=this.X0;if(y===q.K.getVideoData()&&q.W.length)y=!0;else{q=g.t(q.W);for(var Q=q.next();!Q.done;Q=q.next())if(y.V$===Q.value.V$){y=!0;break a}y=!1}}return y}; g.K.Ux=function(y,q,Q,p,v,d,T,O){var w=zL(this);this.tK().Rb("appattl",{sstm:this.PO?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:w});w?(Q=ISD(this.PO,y,q,Q,p,v,d,T),y=(Q==null?void 0:Q.V$)||"",(this.L("html5_ssdai_new_decoration_logic")||this.K3().getVideoData().VZ)&&this.K3().wQ(O||"",q,(Q==null?void 0:Q.clientPlaybackNonce)||"")):y=xi2(this.X0,y,Q,p,v,d);return y}; g.K.m6=function(y,q,Q,p,v,d,T){if(zL(this)){var O;(O=this.PO)==null||ISD(O,y,q,Q,p,v,d,T)}}; g.K.gI=function(y){(this.L("html5_ssdai_new_decoration_logic")||this.K3().getVideoData().VZ)&&this.K3().wQ(y,"","");var q;(q=this.PO)==null||q.gI(y)}; g.K.MO=function(y,q){y=y===void 0?-1:y;q=q===void 0?Infinity:q;zL(this)||ScS(this.X0,y,q)}; g.K.Kd=function(y,q,Q){if(zL(this)){var p=this.PO,v=p.K.Lt({V$:y});v?(Q===void 0&&(Q=v.Yy),GCD(p,v,q,Q)):p.Ea("Invalid_timelinePlaybackId_"+y+"_specified")}else{p=this.X0;v=null;for(var d=g.t(p.W),T=d.next();!T.done;T=d.next())if(T=T.value,T.V$===y){v=T;break}v?(Q===void 0&&(Q=v.Yy),N$C(p,v,q,Q)):O8(p,"InvalidTimelinePlaybackId timelinePlaybackId="+y)}}; g.K.enqueueVideoByPlayerVars=function(y,q,Q,p){Q=Q===void 0?Infinity:Q;p=p===void 0?"":p;this.SK();y=new g.EB(this.KK,y);p&&(y.V$=p);$2H(this,y,q,Q)}; g.K.queueNextVideo=function(y,q,Q,p,v){Q=Q===void 0?NaN:Q;y=this.preloadVideoByPlayerVars(y,q===void 0?1:q,Q,p===void 0?"":p,v===void 0?"":v);q=this.tK();y&&(this.L("html5_check_queue_on_data_loaded")?this.T().supportsGaplessShorts()&&q.getVideoData().X&&(Q=this.pY,p=this.SY.J,Q.Y!==y&&(Q.W=q,Q.Y=y,Q.N=1,Q.K=y.getVideoData(),Q.J=p,Q.K.isLoaded()?Q.G():Q.K.subscribe("dataloaded",Q.G,Q))):(Q=ie9(q,y,this.SY.J),Q!=null?(q.Rb("sgap",Q),q.getVideoData().X&&q.L$(!1)):(y=y.getVideoData(),q=this.pY,q.K!== y&&(q.K=y,q.N=1,y.isLoaded()?q.X():q.K.subscribe("dataloaded",q.X,q)))))}; g.K.Ss=function(y,q,Q,p){var v=this;Q=Q===void 0?0:Q;p=p===void 0?0:p;Zp(this,this.tK()).Du();TED(this.SY,y,q,Q,p).then(function(){v.xf.mu("onQueuedVideoLoaded")},function(){})}; g.K.gS=function(){return this.SY.gS()}; g.K.HU=function(y){var q=this.SY.K;return q?q.eI(y):!1}; g.K.clearQueue=function(y,q){this.SY.clearQueue(y===void 0?!1:y,q===void 0?!1:q)}; g.K.loadVideoByPlayerVars=function(y,q,Q,p,v,d){q=q===void 0?1:q;var T=this.K3();if(q===2&&this.Ff().enableServerStitchedDai&&T&&!T.Lm())return T.Rb("lvonss",{vid:(y==null?void 0:y.videoId)||"",ptype:q}),!1;var O=!1;T=new g.EB(this.KK,y);T.c9=d;g.Rs(this.KK)&&!T.KU&&Zg(this.gm);var w;d=this.gm;var J=(w=T.cI)!=null?w:"";d.timerName=J;this.gm.NK("pl_i");this.L("web_player_early_cpn")&&T.clientPlaybackNonce&&this.gm.infoGel({clientPlaybackNonce:T.clientPlaybackNonce});Whp(T).supportsVp9Encoding===!1&& this.tK().Rb("noVp9enc",{});if(this.T().supportsGaplessShorts()){w=wR2(this.SY,T,q);if(w==null){W6(this,-1);var F;((F=this.SY.K)==null?0:F.getVideoData().isAd())||Dp(this);y=this.SY;y.app.T().L("html5_gapless_new_slr")?MU(y.app,"gaplessshortslooprange"):y.app.setLoopRange(null);y.app.getVideoData().Mv=!0;var Y;(Y=y.K)==null||Y.X1();var f;(f=y.K)==null||f.Dd();Q={tU:"gapless_to_next_video",seekSource:60,PF:y.J.K};p=g.wm(y.app.T().experiments,"html5_gapless_seek_offset");v=OTf(y);if(y.J.K){var h;T= ((h=y.N)==null?void 0:Uy(h))||{};h=T.iY;T=T.aF;T!=null&&h!=null&&(v=T-h+.001)}var b;(b=y.app.tK())==null||b.seekTo(v+p,Q);if(!y.app.getPlayerStateObject(q).isPlaying()){var Z;(Z=y.app.tK())==null||Z.playVideo(!0)}var k;(k=y.app.tK())==null||k.w3();y.X();return!0}b=this.L("html5_shorts_gapless_preload_fallback");Z=this.SY.K;b&&Z&&!Z.iB()&&(k=Z.getVideoData(),this.sW.J.set(uR(q,k),Z,3600));this.SY.clearQueue(b);this.tK().Rb("sgap",{f:w})}if(v){for(;T.J0.length&&T.J0[0].isExpired();)T.J0.shift();b=T.J0.length- 1;O=b>0&&v.W(T.J0[b])&&v.W(T.J0[b-1]);T.J0.push(v)}Q||(y&&RSj(y)?(ko(this.KK)&&!this.vJ&&(y.fetch=0),L4(this,y)):this.playlist&&L4(this,null),y&&(this.vJ=TH(!1,y.external_list)));this.xf.publish("loadvideo");b=this.PM(T,q,p);O&&this.RM("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+T.J0.join()).replace(/[;:,]/g,"_"));return b}; g.K.preloadVideoByPlayerVars=function(y,q,Q,p,v){q=q===void 0?1:q;Q=Q===void 0?NaN:Q;v=v===void 0?"":v;p=q;var d=v,T=FW(y);if(p=this.sW.J.get(p+"_"+T+"_"+d+"_"+ +(y.autonav==="1"||y.autonav===!0)+ +(y.autoplay==="1"||y.autoplay===!0||y.autoplay===1))||null)return p;y=new g.EB(this.KK,y);v&&(y.V$=v);v=uR(q,y);p=this.tK();d=uR(p.getPlayerType(),p.getVideoData());v===d?(p.Jl(!0),y.dispose(),Q=null):(y.eP=!0,y=K4(this,q,y,!0),q===1&&Sj(this.KK)||y.Jl(!0),this.sW.J.set(v,y,Q||3600),Q=y);return Q}; g.K.setMinimized=function(y){this.visibility.setMinimized(y);(y=d5C(this.Oy))&&(this.isMinimized()?y.load():y.unload());this.xf.publish("minimized")}; g.K.setInline=function(y){this.visibility.setInline(y)}; g.K.setInlinePreview=function(y){this.visibility.setInline(y)}; g.K.kU=function(y){x2C(this,y)||this.visibility.kU(y)}; g.K.setSqueezeback=function(y){this.visibility.setSqueezeback(y)}; g.K.nG=function(){var y,q=(y=this.mediaElement)==null?void 0:y.aH();q&&(this.KK.iC&&mh(P$(function(){return document.exitFullscreen()}),function(){}),mh(P$(function(){return EM(q)}),function(){}))}; g.K.x4m=function(){this.mediaElement.aH();this.mediaElement.aH().webkitPresentationMode==="picture-in-picture"?this.kU(!0):this.kU(!1)}; g.K.togglePictureInPicture=function(){this.tK().togglePictureInPicture()}; g.K.PM=function(y,q,Q){q=q===void 0?1:q;I0("_start",this.gm.timerName)||g.q7(No)(void 0,this.gm.timerName);var p=!1,v=FN8(this,q,y,!1);v?(p=!0,y.dispose()):(v=K4(this,q,y,!0,Q),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&v.jp()&&v.Jl(),this.xB.stop(),q===1&&q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,q),this.uC(v));v===this.K3()&&(this.KK.eP=y.oauthToken);if(!v.jp())return!1;if(v===this.K3())return this.eW(1),y=NU(this),p&&this.L("html5_player_preload_ad_fix")&& v.getPlayerType()===1&&v.J4()&&this.gR("dataloaded",v,v.getVideoData()),y;v.zp();return!0}; g.K.cueVideoByPlayerVars=function(y,q){var Q=this;q=q===void 0?1:q;var p=this.K3();if(this.Ff().enableServerStitchedDai&&p&&!p.Lm()&&y&&Object.keys(y).length>0)p.Rb("qvonss",{vid:(y==null?void 0:y.videoId)||"",ptype:q});else if(y&&RSj(y))if(this.d$=!0,L4(this,y),(y=g.tI(this.playlist))&&y.hj())n4(this,y,q);else this.playlist.onReady(function(){ax(Q)}); else{q||(q=this.getPresentingPlayerType());q===1&&this.mz();p=new g.EB(this.KK,y);var v=g.d1(this.KK)&&!this.KK.N$&&q===1&&!p.isAd()&&!p.b9;this.xf.publish("cuevideo");v?(this.tK().getVideoData().loading=!0,Ipj(p,y?y:{}).then(function(d){n4(Q,d,q)}),p.dispose()):n4(this,p,q)}}; g.K.HA=function(y,q,Q,p,v,d,T){if(!y&&!Q)throw Error("Playback source is invalid");if(VK(this.KK)||g.tc(this.KK))return q=q||{},q.lact=Lb(),q.vis=this.xf.getVisibilityState(),this.xf.AK("onPlayVideo",{videoId:y,watchEndpoint:d,sessionData:q,listId:Q}),!1;S89(this.gm);this.gm.reset();y={video_id:y};p&&(y.autoplay="1");p&&(y.autonav="1");d&&(y.player_params=d.playerParams);T&&(y.oauth_token=T);Q?(y.list=Q,this.loadPlaylist(y)):this.loadVideoByPlayerVars(y,1);return!0}; g.K.cuePlaylist=function(y,q,Q,p){this.d$=!0;WN3(this,y,q,Q,p)}; g.K.loadPlaylist=function(y,q,Q,p){this.d$=!1;WN3(this,y,q,Q,p)}; g.K.rG=function(){return this.xf.isMutedByMutedAutoplay()?!1:this.sW.sf?!0:!(!this.playlist||!this.playlist.yI())}; g.K.Y1=yi(5); g.K.nextVideo=function(y,q){var Q=g.Rf(this.K3().getVideoData());g.vy(this.xf)&&Q?this.HA(Q.videoId,q?Q.Mj:Q.sessionData,Q.playlistId,q,void 0,Q.kd||void 0):this.vJ?this.xf.mu("onPlaylistNext"):this.getPresentingPlayerType()===3?C$(this.Oy).nextVideo():!this.playlist||ko(this.KK)&&!this.xf.isFullscreen()||(this.playlist.yI(y)&&lpD(this.playlist,sxg(this.playlist)),this.playlist.loaded?(y=q&&this.KK.L("html5_player_autonav_logging"),q&&this.xf.publish("playlistautonextvideo"),this.PM(g.tI(this.playlist,void 0, q,y),1)):this.d$=!1)}; g.K.previousVideo=function(y){this.vJ?this.xf.mu("onPlaylistPrevious"):this.getPresentingPlayerType()===3?C$(this.Oy).My():!this.playlist||ko(this.KK)&&!this.xf.isFullscreen()||(this.playlist.bE(y)&&lpD(this.playlist,Mvb(this.playlist)),this.playlist.loaded?this.PM(g.tI(this.playlist),1):this.d$=!1)}; g.K.playVideoAt=function(y){this.vJ?this.xf.mu("onPlaylistIndex",y):this.playlist&&(this.playlist.loaded?this.PM(g.tI(this.playlist,y),1):this.d$=!1,lpD(this.playlist,y))}; g.K.getPlaylist=function(){return this.playlist}; g.K.b1=yi(19);g.K.Eh=function(y){this.Jx=g.DQ(this.Jx,function(d){return d.id!==y}); for(var q=this.K3(),Q=q.tR(),p=0;p0&&(w=Math.floor(J/1E3))}w=q?q.Ey:w;var F={AD_BLOCK:this.K++,AD_BREAK_LENGTH:w,AUTONAV_STATE:U8(this.player.T()),CA_TYPE:"image",CPN:O.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.ue()*1E3,LACT:Lb(),LIVE_INDEX:q?this.N++:1,LIVE_TARGETING_CONTEXT:q&&q.context?q.context:"",MIDROLL_POS:d? Math.round(d.start/1E3):0,MIDROLL_POS_MS:d?Math.round(d.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.lB().wS().height,P_W:this.player.lB().wS().width,YT_REMOTE:v?v.join(","):""},Y=f9(YQ);Object.keys(Y).forEach(function(h){Y[h]!=null&&(F[h.toUpperCase()]=Y[h].toString())}); Q!==""&&(F.BISCOTTI_ID=Q);Q={};Fq(y)&&(Q.sts="20340",(q=this.player.T().forcedExperiments)&&(Q.forced_experiments=q));var f=Ox(g.l6(y,F),Q);return f.split("?").length!==2?Iw(Error("Invalid AdBreakInfo URL")):g.Is(this.player.T(),O==null?void 0:O.oauthToken).then(function(h){if(h&&JM()){var b=Vl();OY(b,h)}h=p.player.Yv(b);b=CAf(p,f,F,O.isMdxPlayback,T);return g.rY(h,b,"/youtubei/v1/player/ad_break").then(function(Z){return Z})})}; rd.prototype.reset=function(){this.N=this.K=1};g.x(yeH,rd); yeH.prototype.W=function(y,q,Q){q=q===void 0?{}:q;var p=q.NW;var v=q.hR;var d=q.cueProcessedMs;Q=Q===void 0?"":Q;q=this.K;this.K++;var T=this.player.T().L("h5_disable_macro_substitution_in_get_ad_break")?y:qz9(this,y,{NW:p,hR:v,cueProcessedMs:d},Q,q);if(T.split("?").length!==2)return Math.random()<.1&&g.zI(Error("Invalid AdBreakInfo URL")),Iw(Error("Invalid AdBreakInfo URL"));var O=this.player.getVideoData(1).isMdxPlayback,w=Q;Q=eP9.exec(T);Q=Q!=null&&Q.length>=2?Q[1]:"";y=Beb.test(T);var J=Gk9.exec(T); J=J!=null&&J.length>=2?J[1]:"";var F=PA2.exec(T);F=F!=null&&F.length>=2&&!Number.isNaN(Number(F[1]))?Number(F[1]):1;var Y=iwb.exec(T);Y=Y!=null&&Y.length>=2?Y[1]:"0";var f=$o(this.player.T().Vf),h=g.QT(this.player.getVideoData(1).N$,!0);gmD(this,h,T,w===""?"":w,this.player.T(),this.player.getVideoData(1));w={splay:!1,lactMilliseconds:String(Lb()),playerHeightPixels:Math.trunc(this.player.lB().wS().height),playerWidthPixels:Math.trunc(this.player.lB().wS().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20340,autonavState:U8(this.player.T())};if(O){O={};var b=this.player.T().yf;rg3(O,b?b.join(","):"")&&(w.mdxContext=O)}if(O=XEf.includes(f)?void 0:g.cF("PREF")){b=O.split(RegExp("[:&]"));for(var Z=0,k=b.length;Z1&&S[1].toUpperCase()==="TRUE"){h.user.lockedSafetyMode=!0;break}}w.autoCaptionsDefaultOn=Agj(O)}T=m29.exec(T);(T=T!=null&&T.length>=2?T[1]:"")&&J&&(h.user.credentialTransferTokens= [{token:T,scope:"VIDEO"}]);T={contentPlaybackContext:w};w=this.player.getVideoData(1).getGetAdBreakContext();O=this.player.getVideoData(1).clientPlaybackNonce;b=d!==void 0?Math.round(d).toString():void 0;Z=(p==null?0:p.context)?p.context:void 0;k=0;d&&v&&!p&&(v=v.end-v.start,v>0&&(k=Math.floor(v/1E3)));p=(p=Math.trunc((p?p.Ey:k)*1E3))?String(p):void 0;v=this.player.ue()*1E3;v=Number.isNaN(v)?0:Math.trunc(v);q={adBlock:q,params:Q,breakIndex:F,breakPositionMs:Y,clientPlaybackNonce:O,topLevelDomain:f, isProxyAdTagRequest:y,context:h,overridePlaybackContext:T,cueProcessedMs:b,videoId:J?J:void 0,liveTargetingParams:Z,breakLengthMs:p,driftFromHeadMs:v?String(v):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:w?w:void 0};return jXj(this,q)};var bxS={pp3:"replaceUrlMacros",Vhj:"onAboutThisAdPopupClosed",iFj:"executeCommand"};QXb.prototype.R1=function(){return"adPingingEndpoint"}; QXb.prototype.EF=function(y,q,Q){cef(this.Us.get(),y,q,Q)};pCf.prototype.R1=function(){return"changeEngagementPanelVisibilityAction"}; pCf.prototype.EF=function(y){this.U.AK("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:y})};vkC.prototype.R1=function(){return"loggingUrls"}; vkC.prototype.EF=function(y,q,Q){y=g.t(y);for(var p=y.next();!p.done;p=y.next())p=p.value,cef(this.Us.get(),p.baseUrl,q,Q,p.attributionSrcMode)};g.x(Tv8,g.I);g.x(AG,g.I);g.K=AG.prototype;g.K.addListener=function(y){this.listeners.push(y)}; g.K.removeListener=function(y){this.listeners=this.listeners.filter(function(q){return q!==y})}; g.K.ZC=function(y,q,Q,p,v,d,T,O){if(y==="")hx("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(y!==this.K||Q){this.K=y;this.JK.get().ZC(y,q,Q,p,v,d,T,O);this.Gy.get().ZC(y,q,Q,p,v,d,T,O);var w;(w=this.Aj)==null||w.get().ZC(y,q,Q,p,v,d,T,O);this.W.ZC(y,q,Q,p,v,d,T,O);w=g.t(this.listeners);for(var J=w.next();!J.done;J=w.next())J.value.ZC(y,q,Q,p,v,d,T,O)}else hx("Duplicate content video loaded signal")}; g.K.O3K=function(){this.K&&this.rY(this.K)}; g.K.rY=function(y){this.K=void 0;for(var q=g.t(this.listeners),Q=q.next();!Q.done;Q=q.next())Q.value.rY(y)};ev.prototype.Uk=function(y,q,Q,p,v){VQp(this);this.J=!q&&Q===0;var d=this.U.getVideoData(1),T=this.U.getVideoData(2);d&&(this.contentCpn=d.clientPlaybackNonce,this.videoId=d.videoId,this.K=d.G);T&&(this.adCpn=T.clientPlaybackNonce,this.adVideoId=T.videoId,this.adFormat=T.adFormat);this.Y=y;p<=0?(VQp(this),this.J=!q&&Q===0):(this.actionType=this.J?q?"unknown_type":"video_to_ad":q?"ad_to_video":"ad_to_ad",this.videoStreamType=v?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.N=!0,I0("_start",this.actionType)&&Jes(this)))}; ev.prototype.reset=function(){return new ev(this.U)};g.x(B6,g.I);B6.prototype.addCueRange=function(y,q,Q,p,v,d,T,O,w){d=d===void 0?3:d;T=T===void 0?1:T;this.K.has(y)?hx("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:y}):(y=new Fii(y,q,Q,p,d,O,w),this.K.set(y.id,{hR:y,listener:v,AM:T}),this.U.Tf([y],T))}; B6.prototype.removeCueRange=function(y){var q=this.K.get(y);q?(this.U.DC([q.hR],q.AM),this.K.delete(q.hR.id)):hx("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:y})}; B6.prototype.onCueRangeEnter=function(y){if(this.K.has(y.id))this.K.get(y.id).listener.onCueRangeEnter(y.id)}; B6.prototype.onCueRangeExit=function(y){if(this.K.has(y.id))this.K.get(y.id).listener.onCueRangeExit(y.id)}; g.x(Fii,g.yb);GL.prototype.addPlayerResponseForAssociation=function(y){this.U.addPlayerResponseForAssociation(y)};P6.prototype.hk=function(y){this.U.hk(y)}; P6.prototype.EL=function(y){var q=g.nS.apply(1,arguments);y==="onAdStart"||y==="onAdEnd"?this.U.h1.apply(this.U,[y].concat(g.hH(q))):this.U.AK.apply(this.U,[y].concat(g.hH(q)))};iR.prototype.L6=function(y){return y&&XD(this)};var kv2=null;g.x(EkS,g.V6);EkS.prototype.Zv=function(y){return this.K.hasOwnProperty(y)?this.K[y].Zv():{}}; g.y_("ytads.bulleit.getVideoMetadata",function(y){return mW().Zv(y)}); g.y_("ytads.bulleit.triggerExternalActivityEvent",function(y,q,Q){var p=mW();Q=tQH(Q);Q!==null&&p.publish(Q,{queryId:y,viewabilityString:q})});g.K=C4.prototype;g.K.IM=function(y,q){if(!this.K.has(y))return{};if(q==="seek"){q=!1;q=q===void 0?!1:q;var Q=kB(CY).qY(y,{});Q?ir(Q):q&&(y=kB(CY).Pz(null,cG(),!1,y),y.iV=3,xH2([y]));return{}}q=aPH(q);if(q===null)return{};var p=this.U.Qc();if(!p)return{};var v=this.U.getPresentingPlayerType(!0);if((Q=this.U.getVideoData(v))==null||!Q.isAd())return{};Q={opt_adElement:p,opt_fullscreen:this.JK.get().isFullscreen()};return xEC(q,y,Q)}; g.K.K8=function(y,q,Q,p,v){this.K.has(y)&&(p<=0||v<=0||kB(CY).K8(y,q,Q,p,v))}; g.K.LT=function(y){var q;(q=this.K.get(y.queryId))==null||q.LT()}; g.K.ib=function(y){var q;(q=this.K.get(y.queryId))==null||q.ib()}; g.K.GN=function(y){var q;(q=this.K.get(y.queryId))==null||q.GN()}; g.K.Ui=function(y){var q;(q=this.K.get(y.queryId))==null||q.Ui()}; g.K.Ei=function(y){var q;(q=this.K.get(y.queryId))==null||q.Ei()};DJC.prototype.send=function(y,q,Q,p){try{uw2(this,y,q,Q,p===void 0?!1:p)}catch(v){}};g.x(IPD,DJC);nkg.prototype.send=function(y,q,Q,p){var v=!1;try{if(p==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||p==="ATTRIBUTION_SRC_MODE_XHR_OPTION")v=!0,y=YeH(y);p=v;var d=g.b_(y);if(d[1]==="https")var T=y;else d[1]="https",T=hR("https",d[2],d[3],d[4],d[5],d[6],d[7]);var O=vKf(T);d=[];var w=yS9(T)&&this.Yf.get().U.T().experiments.ob("add_auth_headers_to_remarketing_google_dot_com_ping");if(Fq(T)||w)d.push({headerType:"USER_AUTH"}),d.push({headerType:"PLUS_PAGE_ID"}),d.push({headerType:"VISITOR_ID"}),d.push({headerType:"EOM_VISITOR_ID"}), d.push({headerType:"AUTH_USER"}),d.push({headerType:"DATASYNC_ID"});this.K.send({baseUrl:T,scrubReferrer:O,headers:d},q,Q,p)}catch(J){}};pH.prototype.Sa=function(){return this.U.Sa(1)};g.x(vz,g.I);g.K=vz.prototype;g.K.a5=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.K.addListener=function(y){this.listeners.push(y)}; g.K.removeListener=function(y){this.listeners=this.listeners.filter(function(q){return q!==y})}; g.K.ZC=function(){this.Xt.clear();this.WK=null;this.QG.get().clear()}; g.K.rY=function(){}; g.K.fmB=function(y,q,Q,p,v){q.videoId==="nPpU29QrbiU"&&this.U.Rb("ads_ssm_vdc_s",{pt:Q,dvt:y});v$(this.Yf.get())&&y!=="dataloaded"||Gv3(this,q,Q);if(XD(this.Yf.get())&&y==="newdata"&&v!==void 0){y=this.a5();var d=q.clientPlaybackNonce,T={};$p(this,"rte",(T.ec=d,T.xc=p==null?void 0:p.clientPlaybackNonce,T.tr=v,T.pt=Q,T.ia=d!==y,T.ctp=bN(d),T));q=q.clientPlaybackNonce;p=p==null?void 0:p.clientPlaybackNonce;v=P18(v);if(v!==1)if(p!==void 0)for(Q=g.t(this.listeners),y=Q.next();!y.done;y=Q.next())y.value.MA(p, q,v);else hx("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:q,transitionReason:String(v)});v=g.t(this.listeners);for(p=v.next();!p.done;p=v.next())p.value.NA(q)}}; g.K.hm3=function(y,q){y!==void 0&&(this.WK=y,q===void 0?hx("Expected ad video start time on SS video changed"):this.Xt.set(y,q));var Q=this.U.getPresentingPlayerType(!0),p=this.U.getVideoData(Q),v;y===void 0?v=null:v=this.QG.get().K.get(y)||null;this.U.getVideoData(1).Rb("ads_ssvc",{pt:Q,cpn:p==null?void 0:p.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:q,pid:y,slid:v==null?void 0:v.layoutId});p?Gv3(this,p,Q):hx("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:y})}; g.K.Ek=function(y,q){var Q=y.author,p=y.clientPlaybackNonce,v=y.isListed,d=y.V$,T=y.title,O=y.MB,w=y.k9,J=y.isMdxPlayback,F=y.t0,Y=y.mdxEnvironment,f=y.isAutonav,h=y.SW,b=y.KU,Z=y.n8,k=y.videoId||"",S=y.profilePicture||"",N=y.TC||"",l=y.jP()||!1,u=y.Lg()||!1;y=y.zR||void 0;d=this.QG.get().K.get(d)||{layoutId:null,slotId:null};var c=this.U.getVideoData(1),X=c.E9();c=c.getPlayerResponse();q=1E3*this.U.getDuration(q);var A=1E3*this.U.getDuration(1),Tf,OC,pS=(c==null?void 0:(Tf=c.playerConfig)==null? void 0:(OC=Tf.daiConfig)==null?void 0:OC.enableDai)||!1,YD,q9;Tf=(c==null?void 0:(YD=c.playerConfig)==null?void 0:(q9=YD.daiConfig)==null?void 0:q9.enablePreroll)||!1;return Object.assign({},d,{videoId:k,author:Q,clientPlaybackNonce:p,sB:q,XD:A,daiEnabled:pS,Lk:Tf,isListed:v,E9:X,profilePicture:S,title:T,TC:N,MB:O,k9:w,zR:y,isMdxPlayback:J,t0:F,mdxEnvironment:Y,isAutonav:f,SW:h,KU:b,n8:Z,jP:l,Lg:u})}; g.K.FV=function(){this.listeners.length=0;this.F5=null;g.I.prototype.FV.call(this)};g.x(dh,g.I);g.K=dh.prototype;g.K.ZC=function(){var y=this;XD(this.Yf.get())||(this.K=Il(function(){y.U.iB()||y.U.i9("ad",1)}))}; g.K.rY=function(){}; g.K.addListener=function(y){this.listeners.push(y)}; g.K.removeListener=function(y){this.listeners=this.listeners.filter(function(q){return q!==y})}; g.K.kz=function(){}; g.K.playVideo=function(){this.U.playVideo()}; g.K.pauseVideo=function(){this.U.pauseVideo()}; g.K.resumeVideo=function(y){this.VK(y)&&this.U.playVideo()}; g.K.VK=function(y){return this.U.getPlayerState(y)===2}; g.K.getCurrentTimeSec=function(y,q,Q){var p=this.Gy.get().WK;if(y===2&&!q&&p!==null)return OD(this,p);eb(this.Yf.get(),"html5_ssap_use_cpn_to_get_time")||(Q=void 0);return Q!==void 0?this.U.getCurrentTime(y,q,Q):this.U.getCurrentTime(y,q)}; g.K.getVolume=function(){return this.U.getVolume()}; g.K.isMuted=function(){return this.U.isMuted()}; g.K.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.K.getPlayerState=function(y){return this.U.getPlayerState(y)}; g.K.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.K.isFullscreen=function(){return this.U.isFullscreen()}; g.K.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.K.g8=function(y){this.U.g8(y)}; g.K.Nay=function(){var y=this.U.getPresentingPlayerType(!0),q=this.getCurrentTimeSec(y,!1);if(y===2){y=g.t(this.listeners);for(var Q=y.next();!Q.done;Q=y.next())Q.value.B_(q)}else if(y===1)for(y=g.t(this.ow),Q=y.next();!Q.done;Q=y.next())Q.value.kz(q)}; g.K.kD$=function(y){for(var q=g.t(this.listeners),Q=q.next();!Q.done;Q=q.next())Q.value.Ht(y,this.getPresentingPlayerType())}; g.K.onFullscreenToggled=function(y){for(var q=g.t(this.listeners),Q=q.next();!Q.done;Q=q.next())Q.value.onFullscreenToggled(y)}; g.K.onVolumeChange=function(){for(var y=g.t(this.listeners),q=y.next();!q.done;q=y.next())q.value.onVolumeChange()}; g.K.v3=function(){for(var y=this.U.isMinimized(),q=g.t(this.listeners),Q=q.next();!Q.done;Q=q.next())Q.value.v3(y)}; g.K.bH=function(y){for(var q=g.t(this.listeners),Q=q.next();!Q.done;Q=q.next())Q.value.bH(y)}; g.K.n3=function(){for(var y=this.U.lB().wS(),q=g.t(this.listeners),Q=q.next();!Q.done;Q=q.next())Q.value.f1(y)}; g.K.XT=function(y){for(var q=g.t(this.listeners),Q=q.next();!Q.done;Q=q.next())Q.value.XT(y)}; g.K.kx=function(){for(var y=g.t(this.listeners),q=y.next();!q.done;q=y.next())q.value.kx()};g.x(C1p,g.I);g.x(FL,g.I);FL.prototype.FV=function(){this.Zs.iB()||this.Zs.get().removeListener(this);g.I.prototype.FV.call(this)};Yu.prototype.fetch=function(y){var q=y.Hq;return this.K.fetch(y.kF,{NW:y.NW===void 0?void 0:y.NW,hR:q,cueProcessedMs:y.cueProcessedMs===void 0?0:y.cueProcessedMs}).then(function(Q){return yHk(Q,q)})};g.x(fH,g.I);g.K=fH.prototype;g.K.addListener=function(y){this.listeners.push(y)}; g.K.removeListener=function(y){this.listeners=this.listeners.filter(function(q){return q!==y})}; g.K.fR=function(y){qCk(this,y,1)}; g.K.onAdUxClicked=function(y,q){hh(this,function(Q){Q.wK(y,q)})}; g.K.X$=function(y){hh(this,function(q){q.FU(y)})}; g.K.xz=function(y){hh(this,function(q){q.Mt(y)})}; g.K.FeB=function(y){hh(this,function(q){q.Ma(y)})};bJ.prototype.reduce=function(y){switch(y.event){case "unknown":return}var q=y.identifier;var Q=this.K[q];Q?q=Q:(Q={Cb:null,tA:-Infinity},q=this.K[q]=Q);Q=y.startSecs+y.K/1E3;if(!(Q=this.K.startSecs&&Q.startSecs<=this.K.startSecs+this.K.Ey)){var p=void 0;if(dc(this.Yf.get())&&Q.identifier!==((p=this.K)==null?void 0:p.identifier)){var v=p=void 0,d=void 0,T=void 0;Ih(this.Us.get(),"ocud","ccpi."+Q.identifier+";ccpe."+Q.event+";ccps."+Q.startSecs+";\n ccpd."+Q.Ey+";pcpi."+((p=this.K)==null?void 0:p.identifier)+ ";pcpe."+((v=this.K)==null?void 0:v.event)+";\n pcps."+((d=this.K)==null?void 0:d.startSecs)+";pcpd."+((T=this.K)==null?void 0:T.Ey)+";")}p=void 0;Q.identifier!==((p=this.K)==null?void 0:p.identifier)&&hx("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.K=Q,ppS(this,Q)}}; g.K.FV=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.HK,this),this.W=null);this.listeners.length=0;this.Ci.length=0;g.I.prototype.FV.call(this)};g.K=xu.prototype;g.K.Ux=function(y,q,Q,p,v,d,T,O){return this.U.Ux(y,q,Q,p,v,d,T,O)}; g.K.MO=function(y,q){this.U.MO(y,q)}; g.K.Kd=function(y,q,Q){this.U.Kd(y,q,Q)}; g.K.gI=function(y){this.U.gI(y)}; g.K.m6=function(y,q,Q,p,v,d,T,O){this.U.m6(y,q,Q,p,v,d,T,O)}; g.K.Xc=function(y){return this.U.Xc(y)}; g.K.finishSegmentByCpn=function(y,q,Q){Q=Tgm(Q);this.U.finishSegmentByCpn(y,q,Q)};g.x(Wz,g.I);g.x(OSu,g.I);g.x(wpC,g.I);g.x(JHk,g.I);g.x(FbX,g.I);g.x(YCu,g.I);g.x(h2S,g.I);h2S.prototype.N=function(){return this.W};g.x(bSS,GM); bSS.prototype.N=function(y){var q=y.content;if(q.componentType==="shopping-companion")switch(y.actionType){case 1:case 2:y=this.K.getVideoData(1);this.K.AK("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId,shoppingCompanionCarouselRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.K,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:this.K.AK("updateKevlarOrC3Companion",{})}else if(q.componentType==="action-companion")switch(y.actionType){case 1:case 2:y=this.K.getVideoData(1); this.K.AK("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId,actionCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.K,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.K.getVideoData(1),this.K.AK("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.K.AK("updateKevlarOrC3Companion",{})}else if(q.componentType==="image-companion")switch(y.actionType){case 1:case 2:y=this.K.getVideoData(1);this.K.AK("updateKevlarOrC3Companion", {contentVideoId:y&&y.videoId,imageCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.K,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.K.getVideoData(1),this.K.AK("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.K.AK("updateKevlarOrC3Companion",{})}else if(q.componentType==="top-banner-image-text-icon-buttoned")switch(y.actionType){case 1:case 2:y=this.K.getVideoData(1);this.K.AK("updateKevlarOrC3Companion", {contentVideoId:y&&y.videoId,topBannerImageTextIconButtonedLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.K,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.K.getVideoData(1),this.K.AK("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.K.AK("updateKevlarOrC3Companion",{})}else if(q.componentType==="banner-image")switch(y.actionType){case 1:case 2:y=this.K.getVideoData(1);this.K.AK("updateKevlarOrC3Companion", {contentVideoId:y&&y.videoId,bannerImageLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.K,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.K.getVideoData(1),this.K.AK("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.K.AK("updateKevlarOrC3Companion",{})}else if(q.componentType==="ads-engagement-panel")switch(q=q.renderer,y.actionType){case 1:case 2:this.K.AK("updateEngagementPanelAction",q.addAction);this.K.AK("changeEngagementPanelVisibility", q.expandAction);break;case 3:this.K.AK("changeEngagementPanelVisibility",q.hideAction),this.K.AK("updateEngagementPanelAction",q.removeAction)}else if(q.componentType==="ads-engagement-panel-layout"){var Q=q.renderer;switch(y.actionType){case 1:case 2:this.K.AK("updateEngagementPanelAction",{action:nD(Q.addAction),layoutId:q.layoutId,onLayoutVisibleCallback:q.K,interactionLoggingClientData:q.interactionLoggingClientData});this.K.AK("changeEngagementPanelVisibility",nD(Q.expandAction));break;case 3:this.K.AK("changeEngagementPanelVisibility", nD(Q.hideAction)),this.K.AK("updateEngagementPanelAction",{action:nD(Q.removeAction)})}}};g.x($9_,jn);g.K=$9_.prototype;g.K.init=function(y,q,Q){jn.prototype.init.call(this,y,q,Q);g.B0(this.N,"stroke-dasharray","0 "+this.W);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.J.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Y.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.K.clear=function(){this.hide()}; g.K.hide=function(){ps(this);jn.prototype.hide.call(this)}; g.K.show=function(){QI(this);jn.prototype.show.call(this)}; g.K.i7=function(){this.hide()}; g.K.xE=function(){if(this.K){var y=this.K.getProgressState();y!=null&&y.current!=null&&g.B0(this.N,"stroke-dasharray",y.current/y.seekableEnd*this.W+" "+this.W)}};g.x(Kbu,f1);g.K=Kbu.prototype; g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if(q.backgroundImage&&q.backgroundImage.thumbnail)if(q.actionButton&&g.U(q.actionButton,g.xT))if(y=q.durationMilliseconds||0,typeof y!=="number"||y<=0)g.l$(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+y));else if(q.navigationEndpoint){var p=this.api.getVideoData(2);if(p!=null){var v=q.image.thumbnail.thumbnails;v!=null&& v.length>0&&g.zu(g.ll(v[0].url))&&(v[0].url=p.profilePicture,g.zu(g.ll(p.profilePicture))&&yX2("VideoPlayer",239976093,"Expected non-empty profile picture."));v=q.backgroundImage.thumbnail.thumbnails;v!=null&&v.length>0&&g.zu(g.ll(v[0].url))&&(v[0].url=p.h6());v=q.headline;v!=null&&g.zu(g.ll(v.text))&&(v.text=p.author)}this.j.init(da("ad-image"),q.image,Q);this.J.init(da("ad-text"),q.headline,Q);this.N.init(da("ad-text"),q.description,Q);this.Vm.init(da("ad-image"),q.backgroundImage,Q);p=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.J.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");p.push("ytp-ad-action-interstitial-action-button-dark");this.api.T().W&&(p.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),p.push("ytp-ad-action-interstitial-action-button-dark"));this.api.T().L("enable_unified_action_endcap_on_web")&& !this.api.T().W&&(p.push("ytp-ad-action-interstitial-action-button-unified"),this.BI.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Dw.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.TI.classList.add("ytp-ad-action-interstitial-card-unified"),this.N$.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.gp.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.vI.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.LK.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new DI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,p);g.n(this,this.actionButton);this.actionButton.ym(this.BI); this.actionButton.init(da("button"),g.U(q.actionButton,g.xT),Q);PH(this.actionButton.element);p=mu(this.actionButton.element);X4(this.actionButton.element,p+" This link opens in new tab");this.navigationEndpoint=q.navigationEndpoint;this.Y.Z(this.vI,"click",this.Wl,this);this.Y.Z(this.N$,"click",this.Wl,this);!this.api.T().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.T().W||this.Y.Z(this.gp,"click",this.Wl,this);this.K=this.nZ?new Ls(this.api,y):new am(y);g.n(this,this.K);if(q.skipButton){(y= g.U(q.skipButton,HIS))&&this.K&&(this.skipButton=new xz(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.K,this.P$),g.n(this,this.skipButton),this.skipButton.ym(this.element),this.skipButton.init(da("skip-button"),y,Q));if(Q=q.adBadgeRenderer)if(Q=g.U(Q,Sjm))y=new Es(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!0,!0),y.ym(this.LK),y.init(da("simple-ad-badge"),Q,this.macros),g.n(this,y);if(Q=q.adInfoRenderer)if(Q=g.U(Q,$T))y=new C1(this.api,this.layoutId,this.interactionLoggingClientData, this.kf,this.element,void 0,!0),y.ym(this.LK),y.init(da("ad-info-hover-text-button"),Q,this.macros),g.n(this,y)}else q.nonskippableOverlayRenderer&&(y=g.U(q.nonskippableOverlayRenderer,KF))&&this.K&&(this.W=new T5(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.K,!1),g.n(this,this.W),this.W.ym(this.element),this.W.init(da("ad-preview"),y,Q));q.countdownRenderer&&(q=q.countdownRenderer,g.U(q,R6G)&&this.K&&(Q=new $9_(this.api,this.layoutId,this.interactionLoggingClientData,this.kf, this.K),g.n(this,Q),Q.ym(this.element),Q.init(da("timed-pie-countdown"),g.U(q,R6G),this.macros)));this.show();this.element.focus()}else g.l$(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.l$(Error("AdActionInterstitialRenderer has no button."));else g.l$(Error("AdActionInterstitialRenderer has no background AdImage."));else g.l$(Error("AdActionInterstitialRenderer has no description AdText."));else g.l$(Error("AdActionInterstitialRenderer has no headline AdText."));else g.l$(Error("AdActionInterstitialRenderer has no image."))}; g.K.clear=function(){g.lw(this.Y);this.hide()}; g.K.show=function(){x9_(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();f1.prototype.show.call(this)}; g.K.hide=function(){x9_(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();f1.prototype.hide.call(this)}; g.K.Wl=function(){this.navigationEndpoint&&(this.layoutId?this.kf.executeCommand(this.navigationEndpoint,this.layoutId):g.l$(Error("Missing layoutId for ad action interstitial.")))};var kfu={iconType:"CLOSE"},ku=new g.Gq(320,63);g.x(ED_,f1);g.K=ED_.prototype; g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);this.Y=q;this.j=g.zX(this.Y.onClickCommands||[]);this.LK=this.Y.onErrorCommand||null;if(y=this.Y.contentSupportedRenderer)y=this.Y.contentSupportedRenderer,q=this.Y.adInfoRenderer||null,g.U(y,LXk)?(this.J=g.w0("ytp-ad-overlay-ad-info-button-container",this.N.element),Lbu(this,q),y=Ngu(this,g.U(y,LXk))):g.U(y,adC)?(this.J=g.w0("ytp-ad-overlay-ad-info-button-container",this.W.element),Lbu(this,q),y=SCm(this,g.U(y,adC))):g.U(y,NVC)?(this.J= g.w0("ytp-ad-overlay-ad-info-button-container",this.K.element),Lbu(this,q),y=HSn(this,g.U(y,NVC))):(g.l$(Error("InvideoOverlayAdRenderer content could not be initialized.")),y=!1);y&&(this.show(),R2u(this,!0))}; g.K.clear=function(){R2u(this,!1);this.vI.reset();this.N$=0;this.N.hide();this.logVisibility(this.N.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.hide();this.dispose()}; g.K.d4V=function(){this.BI&&(this.layoutId?this.kf.executeCommand(this.BI,this.layoutId):g.l$(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.K.Hw=function(){a:{if(this.Y&&this.Y.closeButton&&this.Y.closeButton.buttonRenderer){var y=this.Y.closeButton.buttonRenderer;if(y.serviceEndpoint){y=[y.serviceEndpoint];break a}}y=[]}y=g.t(y);for(var q=y.next();!q.done;q=y.next())q=q.value,this.layoutId?this.kf.executeCommand(q,this.layoutId):g.l$(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.K.NmK=function(){this.Vm||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.K.Mn=function(){this.Vm||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Mn("invideo-overlay")}; g.K.Mej=function(y){y.target===this.J&&g.w0("ytp-ad-button",this.Dw.element).click()};g.x(sjS,jn);g.K=sjS.prototype;g.K.init=function(y,q,Q){jn.prototype.init.call(this,y,q,Q);y=q.durationMs;this.N=y==null||y===0?0:y+this.K.getProgressState().current*1E3;if(q.text)var p=q.text.templatedAdText;else q.staticMessage&&(p=q.staticMessage);this.messageText.init(da("ad-text"),p,Q);this.messageText.ym(this.W.element);this.Y.show(100);this.show()}; g.K.clear=function(){this.hide()}; g.K.hide=function(){M3G(this,!1);jn.prototype.hide.call(this);this.W.hide();this.messageText.hide();ps(this)}; g.K.show=function(){M3G(this,!0);jn.prototype.show.call(this);QI(this);this.W.show();this.messageText.show()}; g.K.i7=function(){this.hide()}; g.K.xE=function(){if(this.K!=null){var y=this.K.getProgressState();y!=null&&y.current!=null&&(y=1E3*y.current,!this.N$&&y>=this.N?(this.Y.hide(),this.N$=!0):this.messageText&&this.messageText.isTemplated()&&(y=Math.max(0,Math.ceil((this.N-y)/1E3)),y!==this.J&&(qG(this.messageText,{TIME_REMAINING:String(y)}),this.J=y)))}};g.x(lsh,f1);g.K=lsh.prototype; g.K.init=function(y,q,Q){f1.prototype.init.call(this,y,q,{});q.image&&q.image.thumbnail?q.headline?q.description?q.actionButton&&g.U(q.actionButton,g.xT)?(this.N.init(da("ad-image"),q.image,Q),this.W.init(da("ad-text"),q.headline,Q),this.Y.init(da("ad-text"),q.description,Q),this.actionButton=new DI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,["ytp-ad-underlay-action-button"]),q.backgroundColor&&g.B0(this.element,"background-color",g.rS(q.backgroundColor)),g.n(this,this.actionButton), this.actionButton.ym(this.J),this.actionButton.init(da("button"),g.U(q.actionButton,g.xT),Q),y=g.wm(this.api.T().experiments,"player_underlay_video_width_fraction"),this.api.T().L("place_shrunken_video_on_left_of_player")?(q=this.K,g.Fn(q,"ytp-ad-underlay-left-container"),g.wl(q,"ytp-ad-underlay-right-container"),g.B0(this.K,"margin-left",Math.round((y+.02)*100)+"%")):(q=this.K,g.Fn(q,"ytp-ad-underlay-right-container"),g.wl(q,"ytp-ad-underlay-left-container")),g.B0(this.K,"width",Math.round((1-y- .04)*100)+"%"),this.api.Ja()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.sG.bind(this)),this.api.addEventListener("resize",this.JQ.bind(this))):g.l$(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.l$(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.l$(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.l$(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.K.show=function(){z2_(!0);this.actionButton&&this.actionButton.show();f1.prototype.show.call(this)}; g.K.hide=function(){z2_(!1);this.actionButton&&this.actionButton.hide();f1.prototype.hide.call(this)}; g.K.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.sG.bind(this));this.api.removeEventListener("resize",this.JQ.bind(this));this.hide()}; g.K.onClick=function(y){f1.prototype.onClick.call(this,y);this.actionButton&&g.Li(this.actionButton.element,y.target)&&this.api.pauseVideo()}; g.K.sG=function(y){y==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):y==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):y==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))}; g.K.JQ=function(y){y.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):y.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.B0(this.W.element,"font-size",y.width/40+"px")};g.x(LH,f1); LH.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);q.toggledLoggingParams&&(this.toggledLoggingParams=q.toggledLoggingParams);q.answer&&g.U(q.answer,g.xT)?(y=new DI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),y.ym(this.answer),y.init(da("ytp-ad-survey-answer-button"),g.U(q.answer,g.xT),Q),y.show()):q.answer&&g.U(q.answer,tU)&&(this.K=new eA(this.api,this.layoutId,this.interactionLoggingClientData,this.kf, ["ytp-ad-survey-answer-toggle-button"]),this.K.ym(this.answer),g.n(this,this.K),this.K.init(da("survey-answer-button"),g.U(q.answer,tU),Q));this.show()}; LH.prototype.eQ=function(y){this.layoutId?rm(this.kf,y,this.layoutId,this.macros):(y=new g.GH("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.l$(y))}; LH.prototype.onClick=function(y){f1.prototype.onClick.call(this,y);if(this.api.T().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; LH.prototype.clear=function(){this.hide()};g.x(D9u,f1);D9u.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);q.answer&&g.U(q.answer,tU)&&(this.button=new eA(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.ym(this.K),this.button.init(da("survey-none-of-the-above-button"),g.U(q.answer,tU),Q));this.show()};g.x(au,DI);au.prototype.init=function(y,q,Q){DI.prototype.init.call(this,y,q,Q);y=!1;q.text&&(q=g.b7(q.text),y=!g.zu(q));y||g.zI(Error("No submit text was present in the renderer."))}; au.prototype.onClick=function(y){this.publish("l");DI.prototype.onClick.call(this,y)};g.x(N5,f1); N5.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);if(y=q.skipOrPreviewRenderer)g.U(y,UK)?(y=g.U(y,UK),Q=new ZB(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.Y,!0),Q.ym(this.skipOrPreview),Q.init(da("skip-button"),y,this.macros),g.n(this,Q),this.K=Q):g.U(y,KF)&&(y=g.U(y,KF),Q=new T5(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.Y,!1),Q.ym(this.skipOrPreview),Q.init(da("ad-preview"),y,this.macros),Q.N$.show(100),Q.show(),g.n(this,Q), this.K=Q);this.K==null&&(y=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(q)),g.l$(y));q.submitButton&&(y=q.submitButton,g.U(y,g.xT)&&(y=g.U(y,g.xT),Q=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),Q.ym(this.submitButton),Q.init(da("survey-submit"),y,this.macros),g.n(this,Q),this.W=Q));if(y=q.adBadgeRenderer)y=g.U(y,Sjm),Q=new Es(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!0,!0,!0),Q.ym(this.N),Q.init(da("simple-ad-badge"), y,this.macros),this.adBadge=Q.element,g.n(this,Q);if(y=q.adDurationRemaining)y=g.U(y,tkC),Q=new Ht(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.Y,void 0,!0),Q.ym(this.N),Q.init(da("ad-duration-remaining"),y,this.macros),g.n(this,Q);(q=q.adInfoRenderer)&&g.U(q,$T)&&(y=new C1(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.element,void 0,!0),g.n(this,y),this.adBadge!==void 0?this.N.insertBefore(y.element,this.adBadge.nextSibling):y.ym(this.N),y.init(da("ad-info-hover-text-button"), g.U(q,$T),this.macros));this.show()}; N5.prototype.clear=function(){this.hide()};g.x(SS,f1);SS.prototype.init=function(y,q,Q){f1.prototype.init.call(this,y,q,Q);cH_(this)}; SS.prototype.show=function(){this.N=Date.now();f1.prototype.show.call(this)}; SS.prototype.oz=function(){};g.x(U9S,SS);g.K=U9S.prototype;g.K.init=function(y,q,Q){var p=this;SS.prototype.init.call(this,y,q,Q);q.questionText&&u9m(this,q.questionText);q.answers&&q.answers.forEach(function(v,d){g.U(v,Wd)&&Isk(p,g.U(v,Wd),Q,d)}); this.J=new Set(this.W.map(function(v){return v.K.K})); (y=q.noneOfTheAbove)&&(y=g.U(y,kq_))&&rHm(this,y,Q);q.surveyAdQuestionCommon&&gDG(this,q.surveyAdQuestionCommon);q.submitEndpoints&&(this.submitEndpoints=q.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.K.oz=function(){oDX(this,!1);this.Y.W.subscribe("l",this.oyV,this)}; g.K.onChange=function(y){y.target===this.noneOfTheAbove.button.K?AHS(this):this.J.has(y.target)&&(this.noneOfTheAbove.button.toggleButton(!1),oDX(this,!0))}; g.K.oyV=function(){var y=[],q=this.W.reduce(function(v,d,T){var O=d.toggledLoggingParams;d.K&&d.K.isToggled()&&O&&(v.push(O),y.push(T));return v},[]).join("&"),Q=this.submitEndpoints.map(function(v){if(!v.loggingUrls)return v; v=g.xG(v);v.loggingUrls=v.loggingUrls.map(function(d){d.baseUrl&&(d.baseUrl=aR(d.baseUrl,q));return d}); return v}); if(Q){Q=g.t(Q);for(var p=Q.next();!p.done;p=Q.next())p=p.value,this.layoutId?rm(this.kf,p,this.layoutId,this.macros):g.l$(Error("Missing layoutId for multi_select_question."))}this.api.T().L("supports_multi_step_on_desktop")&&this.N$(y)}; g.K.clear=function(){this.api.T().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(Hz,SS);Hz.prototype.init=function(y,q,Q){var p=this;SS.prototype.init.call(this,y,q,Q);q.questionText&&u9m(this,q.questionText);q.answers&&q.answers.forEach(function(v,d){g.U(v,Wd)&&Isk(p,g.U(v,Wd),Q,d)}); q.surveyAdQuestionCommon?gDG(this,q.surveyAdQuestionCommon):Of(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(q)));this.show()}; Hz.prototype.clear=function(){this.api.T().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(Ru,f1);Ru.prototype.init=function(y,q,Q){var p=this;f1.prototype.init.call(this,y,q,Q);if(this.api.T().L("supports_multi_step_on_desktop")){var v;this.conditioningRules=(v=q.conditioningRules)!=null?v:[];var d;this.W=(d=q.questions)!=null?d:[];var T;((T=q.questions)==null?0:T.length)&&P8u(this,0)}else(q.questions||[]).forEach(function(O){g.U(O,ha)?Bgk(p,g.U(O,ha),Q):g.U(O,fF)&&Gfm(p,g.U(O,fF),Q)}); this.show()}; Ru.prototype.clear=function(){this.api.T().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Ru.prototype.Y=function(y){var q=this;if(this.api.T().L("supports_multi_step_on_desktop")){var Q;if((Q=this.conditioningRules)==null?0:Q.length){var p;if(y.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(v){return v.questionIndex===q.K})==null)g.l$(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(v){if(v.questionIndex===q.K)switch(v.condition){case "CONDITION_ALL_OF":var d;if((d=v.answerIndices)==null?0:d.every(function(O){return y.includes(O)}))p=v.nextQuestionIndex; break;case "CONDITION_ANY_OF":var T;if((T=v.answerIndices)==null?0:T.some(function(O){return y.includes(O)}))p=v.nextQuestionIndex; break;default:g.l$(Error("Expected specified condition in survey conditioning rules."))}}),p!=null)P8u(this,p); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.l$(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.x(sD,f1); sD.prototype.init=function(y,q,Q){var p=this;f1.prototype.init.call(this,y,q,Q);y=q.timeoutSeconds||0;if(typeof y!=="number"||y<0)g.l$(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+y));else if(q.timeoutCommands)if(q.text)if(q.ctaButton&&g.U(q.ctaButton,g.xT))if(q.brandImage)if(q.backgroundImage&&g.U(q.backgroundImage,Wc)&&g.U(q.backgroundImage,Wc).landscape){this.layoutId||g.l$(Error("Missing layoutId for survey interstitial."));iSm(this.interstitial,g.U(q.backgroundImage, Wc).landscape);iSm(this.logoImage,q.brandImage);g.al(this.text,g.b7(q.text));var v=["ytp-ad-survey-interstitial-action-button"];v.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new DI(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,v);g.n(this,this.actionButton);this.actionButton.ym(this.W);this.actionButton.init(da("button"),g.U(q.ctaButton,g.xT),Q);this.actionButton.show();this.K=new Ls(this.api,y*1E3);this.K.subscribe("g",function(){p.transition.hide()}); g.n(this,this.K);this.Z(this.element,"click",function(d){var T=d.target===p.interstitial;d=p.actionButton.element.contains(d.target);if(T||d)if(p.transition.hide(),T)p.api.onAdUxClicked(p.componentType,p.layoutId)}); this.transition.show(100)}else g.l$(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.l$(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.l$(Error("SurveyTextInterstitialRenderer has no button."));else g.l$(Error("SurveyTextInterstitialRenderer has no text."));else g.l$(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; sD.prototype.clear=function(){this.hide()}; sD.prototype.show=function(){Xpc(!0);f1.prototype.show.call(this)}; sD.prototype.hide=function(){Xpc(!1);f1.prototype.hide.call(this)};g.x(M5,jn);g.K=M5.prototype; g.K.init=function(y,q){jn.prototype.init.call(this,y,q,{});if(q.durationMilliseconds){if(q.durationMilliseconds<0){g.l$(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+q.durationMilliseconds));return}this.W=q.durationMilliseconds}else this.W=this.K.VB();var Q;if((Q=q.previewText)==null||!Q.text||g.zu(q.previewText.text))g.l$(Error("No text is returned for AdPreview."));else{this.J=q.previewText;q.previewText.isTemplated||g.al(this.N,q.previewText.text);var p; if(((p=this.api.getVideoData(1))==null?0:p.nF)&&q.previewImage){var v,d;(y=((d=tV(((v=q.previewImage)==null?void 0:v.sources)||[],52,!1))==null?void 0:d.url)||"")&&y.length?(this.previewImage=new g.Ye({S:"img",V:"ytp-preview-ad__image",B:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",y),g.n(this,this.previewImage),this.previewImage.ym(this.element)):g.l$(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}}; g.K.clear=function(){this.hide()}; g.K.hide=function(){ps(this);jn.prototype.hide.call(this)}; g.K.show=function(){QI(this);jn.prototype.show.call(this)}; g.K.i7=function(){this.hide()}; g.K.xE=function(){if(this.K){var y=this.K.getProgressState();if(y!=null&&y.current)if(y=1E3*y.current,y>=this.W)this.transition.hide();else{var q;if((q=this.J)==null?0:q.isTemplated)if(q=Math.max(0,Math.ceil((this.W-y)/1E3)),q!==this.Y){var Q,p;(y=(Q=this.J)==null?void 0:(p=Q.text)==null?void 0:p.replace("{TIME_REMAINING}",String(q)))&&g.al(this.N,y);this.Y=q}}}};g.x(lJ,f1); lJ.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});var Q,p;if((y=((p=tV(((Q=q.image)==null?void 0:Q.sources)||[],m9G(q),!0))==null?void 0:p.url)||"")&&y.length){Q=this.uB("ytp-ad-avatar");Q.src=y;var v,d;if(p=(v=q.interaction)==null?void 0:(d=v.accessibility)==null?void 0:d.label)Q.alt=p;switch(q.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.l$(Error("Failed to get imageUrl in AdAvatar."))}; lJ.prototype.clear=function(){this.hide()}; lJ.prototype.onClick=function(y){f1.prototype.onClick.call(this,y)};g.x(zZ,f1); zZ.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});var Q;y=(Q=q.label)==null?void 0:Q.content;if((Q=y!=null&&!g.zu(y))||q.iconImage){Q&&(this.buttonText=new g.Ye({S:"span",V:"ytp-ad-button-vm__text",M$:y}),g.n(this,this.buttonText),this.buttonText.ym(this.element));var p,v,d=((p=q.interaction)==null?0:(v=p.accessibility)==null?0:v.label)||Q?y:"";d&&X4(this.element,d+" This link opens in new tab");PH(this.element);if(q.iconImage){p=void 0;if(q.iconImage){a:{v=q.iconImage;if(v.sources)for(v= g.t(v.sources),y=v.next();!y.done;y=v.next())if(y=y.value,d=void 0,(d=y.clientResource)==null?0:d.imageName){v=y;break a}v=void 0}if(v){var T;p={iconType:(T=v.clientResource)==null?void 0:T.imageName}}}T=zM(p,!1,this.W);T!=null&&(this.buttonIcon=new g.Ye({S:"span",V:"ytp-ad-button-vm__icon",D:[T]}),g.n(this,this.buttonIcon),q.iconLeading?(W0(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):Q?(this.buttonIcon.ym(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.ym(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.L("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.K?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(q.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.zI(Error("AdButton does not have label or an icon."))}; zZ.prototype.clear=function(){this.hide()}; zZ.prototype.onClick=function(y){f1.prototype.onClick.call(this,y)};g.x(C8X,jn);g.K=C8X.prototype; g.K.init=function(y,q){jn.prototype.init.call(this,y,q,{});if(y=g.U(q.avatar,ou)){var Q=q.headline;if(Q){var p=q.description;if(p){var v=g.U(q.button,eS);v?(this.adAvatar.init(da("ad-avatar"),y),this.headline.init(da("ad-simple-attributed-string"),new MG(Q)),this.description.init(da("ad-simple-attributed-string"),new MG(p)),Q.content&&Q.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(da("ad-button"),v), this.startMilliseconds=q.startMs||0,this.api.Ja()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.vN.bind(this)),QI(this)):g.l$(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.l$(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.l$(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.l$(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.K.xE=function(){if(this.K){var y=this.K.getProgressState();y&&y.current&&1E3*y.current>=this.startMilliseconds&&(ps(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.K.i7=function(){this.clear()}; g.K.onClick=function(y){this.api.pauseVideo();jn.prototype.onClick.call(this,y)}; g.K.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.vN.bind(this))}; g.K.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();jn.prototype.show.call(this)}; g.K.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();jn.prototype.hide.call(this)}; g.K.vN=function(y){y==="hidden"?this.show():this.hide()};g.x(DN,f1);g.K=DN.prototype; g.K.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(!q.label||g.zu(q.label))g.l$(Error("No label is returned for SkipAdButton."));else if(g.al(this.Y,q.label),y=zM({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.L("delhi_modern_web_player_icons")),y==null)g.l$(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.Ye({S:"span",V:"ytp-skip-ad-button__icon",D:[y]}),g.n(this,this.N),this.N.ym(this.element),this.api.T().experiments.ob("enable_skip_to_next_messaging")&&(q=g.ll(q.targetId)))this.W= !0,this.element.setAttribute("data-tooltip-target-id",q),this.element.setAttribute("data-tooltip-target-fixed","")}; g.K.onClick=function(y){y&&y.preventDefault();var q,Q;J_D(y,{contentCpn:(Q=(q=this.api.getVideoData(1))==null?void 0:q.clientPlaybackNonce)!=null?Q:""})===0?this.api.AK("onAbnormalityDetected"):(f1.prototype.onClick.call(this,y),this.api.AK("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.K.clear=function(){this.K.reset();this.hide()}; g.K.hide=function(){f1.prototype.hide.call(this)}; g.K.show=function(){this.K.start();f1.prototype.show.call(this);this.W&&this.api.T().experiments.ob("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.x(ymw,jn);g.K=ymw.prototype; g.K.init=function(y,q){jn.prototype.init.call(this,y,q,{});y=g.U(q.preskipState,Idq);var Q;if((Q=this.api.getVideoData())==null?0:Q.isDaiEnabled()){if(!y){g.l$(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new M5(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.K);g.n(this,this.W);this.W.ym(this.element);var p;(p=this.W)==null||p.init(da("preview-ad"),y);(Q=this.W)!=null&&(Q.transition.show(100),Q.show())}(Q=g.U(q.skippableState,gZk))?(q.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=q.skipOffsetMilliseconds:(g.zI(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.N.init(da("skip-button"),Q),this.show()):g.l$(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.K.show=function(){QI(this);jn.prototype.show.call(this)}; g.K.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.N&&this.N.hide();ps(this);jn.prototype.hide.call(this)}; g.K.clear=function(){var y;(y=this.W)==null||y.clear();this.N&&this.N.clear();ps(this);jn.prototype.hide.call(this)}; g.K.i7=function(){this.hide()}; g.K.xE=function(){if(1E3*this.K.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var y;(y=this.W)!=null&&y.transition.hide();(y=this.N)!=null&&(y.transition.show(),y.show())}};g.x(uJ,f1); uJ.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(q.label){var Q;((Q=q.label)==null?0:Q.content)&&!g.zu(q.label.content)&&(this.linkText=new g.Ye({S:"span",V:"ytp-visit-advertiser-link__text",M$:q.label.content}),g.n(this,this.linkText),this.linkText.ym(this.element));var p,v;if((p=q.interaction)==null?0:(v=p.accessibility)==null?0:v.label)X4(this.element,q.interaction.accessibility.label+" This link opens in new tab");else{var d;((d=q.label)==null?0:d.content)&&!g.zu(q.label.content)&&X4(this.element, q.label.content+" This link opens in new tab")}PH(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.l$(Error("No label found in VisitAdvertiserLink."))}; uJ.prototype.onClick=function(y){f1.prototype.onClick.call(this,y);this.api.onAdUxClicked(this.componentType,this.layoutId)}; uJ.prototype.clear=function(){this.hide()};g.x(Iu,f1); Iu.prototype.init=function(y,q,Q,p){f1.prototype.init.call(this,y,q,{});if(q.skipOrPreview){Q=q.skipOrPreview;y=g.U(Q,cK_);Q=g.U(Q,Idq);if(y)this.eg=new ymw(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.W),g.n(this,this.eg),this.eg.ym(this.j),this.eg.init(da("skip-ad"),y);else{var v;Q&&((v=this.api.getVideoData())==null?0:v.isDaiEnabled())&&(this.Y=new M5(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.W,1),g.n(this,this.Y),this.Y.ym(this.j),this.Y.init(da("ad-preview"), Q),v=this.Y,v.transition.show(100),v.show())}if(v=g.U(q.skipOrPreview,cK_))var d=v.skipOffsetMilliseconds}q.playerAdCard&&(v=g.U(q.playerAdCard,nZc))&&(this.playerAdCard=new C8X(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.W),g.n(this,this.playerAdCard),this.playerAdCard.ym(this.gp),this.playerAdCard.init(da("ad-avatar-lockup-card"),v));q.adBadgeRenderer&&((v=g.U(q.adBadgeRenderer,Ah))?(this.N=new z5(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!0),g.n(this, this.N),this.N.ym(this.K),this.N.init(da("ad-badge"),v)):g.l$(Error("AdBadgeViewModel is not found in player overlay layout.")));q.adPodIndex&&(v=g.U(q.adPodIndex,ldX))&&(this.adPodIndex=new DB(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.adPodIndex),this.adPodIndex.ym(this.K),this.adPodIndex.init(da("ad-pod-index"),v));q.adInfoRenderer&&((v=g.U(q.adInfoRenderer,$T))?(this.adInfoButton=new C1(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.element, void 0,!0),g.n(this,this.adInfoButton),this.N!==void 0?this.K.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.ym(this.K),this.adInfoButton.init(da("ad-info-hover-text-button"),v,this.macros)):g.zI(Error("AdInfoRenderer is not found in player overlay layout.")));var T;v=(T=this.api.getVideoData())==null?void 0:T.isDaiEnabled();q.adDurationRemaining&&v&&(T=g.U(q.adDurationRemaining,tkC))&&(this.adDurationRemaining=new Ht(this.api,this.layoutId,this.interactionLoggingClientData, this.kf,this.W,p.videoAdDurationSeconds,!0),g.n(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.K.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.ym(this.K),this.adDurationRemaining.init(da("ad-duration-remaining"),T,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));q.visitAdvertiserLink&&(p=g.U(q.visitAdvertiserLink,rKk))&&(this.visitAdvertiserLink=new uJ(this.api,this.layoutId, this.interactionLoggingClientData,this.kf),g.n(this,this.visitAdvertiserLink),this.visitAdvertiserLink.ym(this.K),this.visitAdvertiserLink.init(da("visit-advertiser-link"),p));q.adDisclosureBanner&&(q=g.U(q.adDisclosureBanner,Mk_))&&(this.adDisclosureBanner=new uK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.adDisclosureBanner),this.adDisclosureBanner.ym(this.N$),this.adDisclosureBanner.init(da("ad-disclosure-banner"),q));this.J=new gS(this.api,this.W,d,!0);g.n(this, this.J);g.pq(this.api,this.J.element,4);this.show()}; Iu.prototype.clear=function(){this.hide()};g.x(qu_,f1);g.K=qu_.prototype; g.K.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(q!=null&&q.title)if(y=q.title)if(this.headline.init(da("ad-simple-attributed-string"),new MG(y)),y=g.U(q.moreInfoButton,eS)){if(this.moreInfoButton.init(da("ad-button"),y),q.descriptions)q.descriptions.length>0&&(y=q.descriptions[0])&&(this.K=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.K),this.K.ym(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.K.init(da("ad-simple-attributed-string"), new MG(y))),q.descriptions.length>1&&(q=q.descriptions[1])&&(this.W=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.W),this.W.ym(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(da("ad-simple-attributed-string"),new MG(q)))}else g.l$(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.l$(Error("No headline found in AdGridCardText."));else g.l$(Error("No headline found in AdGridCardText."))}; g.K.onClick=function(y){f1.prototype.onClick.call(this,y);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.K.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var y;(y=this.K)==null||y.clear();var q;(q=this.W)==null||q.clear()}; g.K.hide=function(){this.headline.hide();this.moreInfoButton.hide();var y;(y=this.K)==null||y.hide();var q;(q=this.W)==null||q.hide();f1.prototype.hide.call(this)}; g.K.show=function(){f1.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var y;(y=this.K)==null||y.show();var q;(q=this.W)==null||q.show()};g.x(nH,f1);nH.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(q!=null&&q.gridCards)if(q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.l$(Error("Only single column style is currently supported in AdGridCardCollection."));else for(y=g.t(q.gridCards),q=y.next();!q.done;q=y.next()){if(q=g.U(q.value,uBm)){var Q=new qu_(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,Q);Q.ym(this.element);Q.init(da("ad-grid-card-text"),q);this.K.push(Q)}}else g.l$(Error("No grid cards found in AdGridCardCollection."))}; nH.prototype.show=function(){for(var y=g.t(this.K),q=y.next();!q.done;q=y.next())q.value.show();f1.prototype.show.call(this)}; nH.prototype.clear=function(){this.hide();for(var y=g.t(this.K),q=y.next();!q.done;q=y.next())q.value.clear()}; nH.prototype.hide=function(){for(var y=g.t(this.K),q=y.next();!q.done;q=y.next())q.value.hide();f1.prototype.hide.call(this)};g.x(gh,jn);g.K=gh.prototype;g.K.init=function(y,q,Q,p,v){v=v===void 0?0:v;jn.prototype.init.call(this,y,q,Q,p);this.playerProgressOffsetMs=v;QI(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Dy.bind(this));this.api.addEventListener("resize",this.Q4.bind(this));this.api.Ja()?(this.W=!0,this.api.g8(!0),this.show()):this.hide()}; g.K.xE=function(){if(this.K){var y=this.K.getProgressState();y&&y.current&&!this.W&&1E3*y.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.g8(!0),this.show())}}; g.K.i7=function(){this.W&&this.api.g8(!1);this.hide()}; g.K.clear=function(){this.api.g8(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Dy.bind(this));this.api.removeEventListener("resize",this.Q4.bind(this));ps(this);this.hide()}; g.K.hide=function(){jnk(!1);jn.prototype.hide.call(this)}; g.K.show=function(){jnk(!0);jn.prototype.show.call(this)};g.x(Qnc,gh);g.K=Qnc.prototype; g.K.init=function(y,q,Q,p){if(q!=null&&q.adGridCardCollection)if(q!=null&&q.adButton){var v=Number(q.playerProgressOffsetMs||"0");isNaN(v)?gh.prototype.init.call(this,y,q,Q,p):gh.prototype.init.call(this,y,q,Q,p,v);y=q.headline;Q=g.U(q.adAvatar,ou);y&&Q?(this.headline=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.headline),this.headline.ym(this.uB("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(da("ad-simple-attributed-string"),new MG(y)), this.adAvatar=new lJ(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.adAvatar),this.adAvatar.ym(this.uB("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(da("ad-avatar"),Q)):this.Y.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");y=g.U(q.adGridCardCollection,DRe);this.adGridCardCollection.init(da("ad-grid-card-collection"),y);q=g.U(q.adButton,eS);this.adButton.init(da("ad-button"),q); this.hide()}else g.l$(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.l$(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.K.onClick=function(y){(this.adButton&&g.Li(this.adButton.element,y.target)||this.adAvatar&&g.Li(this.adAvatar.element,y.target))&&this.api.pauseVideo();gh.prototype.onClick.call(this,y);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.K.Q4=function(){}; g.K.clear=function(){this.hide();var y;(y=this.headline)==null||y.clear();var q;(q=this.adAvatar)==null||q.clear();this.adGridCardCollection.clear();this.adButton.clear();gh.prototype.clear.call(this)}; g.K.show=function(){var y;(y=this.headline)==null||y.show();var q;(q=this.adAvatar)==null||q.show();this.adGridCardCollection.show();this.adButton.show();gh.prototype.show.call(this)}; g.K.hide=function(){var y;(y=this.headline)==null||y.hide();var q;(q=this.adAvatar)==null||q.hide();this.adGridCardCollection.hide();this.adButton.hide();gh.prototype.hide.call(this)}; g.K.Dy=function(y){y==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):y==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):y==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.x(cz,f1); cz.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(q.attributes===void 0)g.l$(Error("No attributes found in AdDetailsLineViewModel."));else if(q.style===void 0)g.l$(Error("No style found in AdDetailsLineViewModel."));else{y=g.t(q.attributes);for(var Q=y.next();!Q.done;Q=y.next())if(Q=Q.value,Q.text!==void 0){Q=Q.text;var p=q.style,v=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,v);v.ym(this.element);a:switch(p){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":p="ytp-ad-details-line__text--style-responsive"; break a;default:p="ytp-ad-details-line__text--style-standard"}v.element.classList.add(p);v.init(da("ad-simple-attributed-string"),new MG(Q));this.K.push(v)}this.show()}}; cz.prototype.show=function(){this.K.forEach(function(y){y.show()}); f1.prototype.show.call(this)}; cz.prototype.clear=function(){this.hide()}; cz.prototype.hide=function(){this.K.forEach(function(y){y.hide()}); f1.prototype.hide.call(this)};g.x(UD,f1);UD.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});var Q,p;(y=((p=tV(((Q=q.image)==null?void 0:Q.sources)||[]))==null?void 0:p.url)||"")&&y.length?(Q=this.uB("ytp-image-background-image"),g.B0(Q,"backgroundImage","url("+y+")"),q.blurLevel!==void 0&&g.B0(Q,"filter","blur("+q.blurLevel+"px)"),q.gradient!==void 0&&(q=new g.r({S:"div",rp:["ytp-image-background--gradient-vertical"]}),g.n(this,q),q.ym(this.element)),this.show()):g.l$(Error("Failed to get imageUrl in ImageBackground."))}; UD.prototype.clear=function(){this.hide()};g.x(pem,jn);g.K=pem.prototype;g.K.init=function(y,q){jn.prototype.init.call(this,y,q,{});g.B0(this.N,"stroke-dasharray","0 "+this.W);this.show()}; g.K.clear=function(){this.hide()}; g.K.hide=function(){ps(this);jn.prototype.hide.call(this)}; g.K.show=function(){QI(this);jn.prototype.show.call(this)}; g.K.i7=function(){this.hide()}; g.K.xE=function(){if(this.K){var y=this.K.getProgressState();y!=null&&y.current!=null&&g.B0(this.N,"stroke-dasharray",y.current/y.seekableEnd*this.W+" "+this.W)}};g.x(rh,f1); rh.prototype.init=function(y,q){f1.prototype.init.call(this,y,q,{});if(dwh(q)){this.adAvatar=new lJ(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.adAvatar);this.adAvatar.ym(this.uB("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(da("ad-avatar"),g.U(q.adAvatar,ou));this.headline=new lK(this.api,this.layoutId,this.interactionLoggingClientData,this.kf);g.n(this,this.headline);this.headline.ym(this.uB("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); this.headline.init(da("ad-simple-attributed-string"),new MG(q.headline));if(y=g.U(q.adDetailsLine,s2u))this.detailsLine=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.detailsLine),this.detailsLine.ym(this.uB("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(da("ad-details-line"),y);this.adButton=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!0);g.n(this,this.adButton); this.adButton.ym(this.uB("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(da("ad-button"),g.U(q.adButton,eS));this.adBadge=new z5(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,!0);g.n(this,this.adBadge);this.adBadge.ym(this.Y);this.adBadge.init(da("ad-badge"),g.U(q.adBadge,Ah));this.adInfoButton=new C1(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.element,void 0,!0);g.n(this,this.adInfoButton);this.adInfoButton.ym(this.Y); this.adInfoButton.init(da("ad-info-hover-text-button"),g.U(q.adInfoRenderer,$T),this.macros);if(y=g.U(q.skipAdButton,gZk))this.skipAdButton=new DN(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.skipAdButton),this.skipAdButton.ym(this.element),this.skipAdButton.init(da("skip-button"),y);this.W=new am(q.durationMilliseconds);g.n(this,this.W);if(y=g.U(q.countdownViewModel,URe))this.K=new pem(this.api,this.layoutId,this.interactionLoggingClientData,this.kf,this.W),g.n(this, this.K),this.K.ym(this.uB("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.K.init(da("timed-pie-countdown"),y);if(q=g.U(q.imageBackground,z6u))this.imageBackground=new UD(this.api,this.layoutId,this.interactionLoggingClientData,this.kf),g.n(this,this.imageBackground),this.imageBackground.ym(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(da("image-background"), q);this.show();this.element.focus()}}; rh.prototype.clear=function(){g.lw(this.N);this.hide()}; rh.prototype.show=function(){vqh(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();f1.prototype.show.call(this)}; rh.prototype.hide=function(){vqh(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.K&&this.K.hide();this.imageBackground&&this.imageBackground.hide();f1.prototype.hide.call(this)};g.x(Bz,g.V6);g.K=Bz.prototype;g.K.VB=function(){return 1E3*this.api.getDuration(this.AM,!1)}; g.K.stop=function(){this.K&&this.handler.UW(this.K)}; g.K.xj=function(){var y=this.api.getProgressState(this.AM);this.W={seekableStart:y.seekableStart,seekableEnd:y.seekableEnd,current:this.api.getCurrentTime(this.AM,!1)};this.publish("h")}; g.K.getProgressState=function(){return this.W}; g.K.Ko=function(y){g.Ks(y,2)&&this.publish("g")};var $__="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.x(GZ,GM); GZ.prototype.N=function(y){var q=y.id,Q=y.content,p=Q.componentType;if(!$__.includes(p))switch(y.actionType){case 1:y=this.api;var v=this.kf,d=Q.layoutId,T=Q.interactionLoggingClientData,O=Q instanceof A8?Q.nZ:!1,w=Q instanceof A8||Q instanceof kz?Q.P$:!1;T=T===void 0?{}:T;O=O===void 0?!1:O;w=w===void 0?!1:w;switch(p){case "invideo-overlay":y=new ED_(y,d,T,v);break;case "player-overlay":y=new ct(y,d,T,v,new Bz(y),w);break;case "player-overlay-layout":y=new Iu(y,d,T,v,new Bz(y));break;case "survey":y= new Ru(y,d,T,v);break;case "ad-action-interstitial":y=new Kbu(y,d,T,v,O,w);break;case "video-interstitial-buttoned-centered":y=new rh(y,d,T,v);break;case "survey-interstitial":y=new sD(y,d,T,v);break;case "ad-message":y=new sjS(y,d,T,v,new Bz(y,1));break;case "player-underlay":y=new lsh(y,d,T,v);break;case "display-underlay-text-grid-cards":y=new Qnc(y,d,T,v,new Bz(y));break;default:y=null}if(!y){g.zI(Error("No UI component returned from ComponentFactory for type: "+p));break}g.F2(this.components, q)?g.zI(Error("Ad UI component already registered: "+q)):this.components[q]=y;y.bind(Q);Q instanceof rC?this.W?this.W.append(y.gw):g.zI(Error("Underlay view was not created but UnderlayRenderer was created")):this.Y.append(y.gw);break;case 2:q=Tku(this,y);if(q==null)break;q.bind(Q);break;case 3:Q=Tku(this,y),Q!=null&&(g.w5(Q),g.F2(this.components,q)?(Q=this.components,q in Q&&delete Q[q]):g.zI(Error("Ad UI component does not exist: "+q)))}}; GZ.prototype.FV=function(){g.JT(Object.values(this.components));this.components={};GM.prototype.FV.call(this)};g.x(Vmh,g.LC);g.K=Vmh.prototype;g.K.create=function(){try{Ohk(this),this.load(),this.created=!0,Ohk(this)}catch(y){hx(y instanceof Error?y:String(y))}}; g.K.load=function(){try{FSq(this)}finally{XD(th(this.K).m$)&&this.player.i9("ad",1)}}; g.K.destroy=function(){var y=this.player.getVideoData(1);this.K.K.pT.rY(y&&y.clientPlaybackNonce||"");this.unload();this.created=!1}; g.K.unload=function(){g.LC.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(q){hx(q instanceof Error?q:String(q))}if(this.W!=null){var y=this.W;this.W=null;y.dispose()}this.N.reset()}; g.K.VD=function(){return!1}; g.K.getAdState=function(){return-1}; g.K.getOptions=function(){return Object.values(bxS)}; g.K.c_=function(y,q){q=q===void 0?{}:q;switch(y){case "replaceUrlMacros":return y=q,y.url?(q=Rs8(this.player),Object.assign(q,y.HPy),y=g.l6(y.url,q)):y=null,y;case "onAboutThisAdPopupClosed":this.j4(q);break;case "executeCommand":y=q;y.command&&y.layoutId&&this.executeCommand(y);break;default:return null}}; g.K.qq=function(y){var q;return!((q=this.K.K.Aj)==null||!q.get().qq(y))}; g.K.j4=function(y){y.isMuted&&z$b(th(this.K).QI,th(this.K).Bp,y.layoutId);this.H7&&this.H7.j4()}; g.K.executeCommand=function(y){th(this.K).kf.executeCommand(y.command,y.layoutId)};g.y_("yt.player.Application.create",g.$5.create);g.y_("yt.player.Application.createAlternate",g.$5.create);oQD(HW(),h8_);var KmC=g.qw("ytcsi.tick");KmC&&KmC("pe");g.k1("ad",Vmh);g.x(g.XL,g.I);g.XL.prototype.start=function(y,q,Q){this.config={from:y,to:q,duration:Q,startTime:(0,g.SK)()};this.next()}; g.XL.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.XL.prototype.next=function(){if(this.config){var y=this.config,q=y.from,Q=y.to,p=y.duration;y=y.startTime;var v=(0,g.SK)()-y;y=this.K;p=P3s(y,v/p);if(p==0)y=y.X;else if(p==1)y=y.C;else{v=AK(y.X,y.J,p);var d=AK(y.J,y.G,p);y=AK(y.G,y.C,p);v=AK(v,d,p);d=AK(d,y,p);y=AK(v,d,p)}y=g.rV(y,0,1);this.callback(q+(Q-q)*y);y<1&&this.delay.start()}};g.x(g.mY,g.r);g.K=g.mY.prototype;g.K.hasSuggestions=function(){return this.suggestionData.length>0}; g.K.Wf=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.K.show=function(){g.r.prototype.show.call(this);KSC(this)}; g.K.cf=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.K.VO=function(){this.n3(this.api.lB().getPlayerSize())}; g.K.n3=function(y){var q=this.api.isEmbedsShortsMode()?.5625:16/9,Q=this.api.JR();y=y.width-(Q?112:58);Q=Math.ceil(y/(Q?320:192));var p=(y-Q*8)/Q;q=Math.floor(p/q);for(var v=g.t(this.K),d=v.next();!d.done;d=v.next())d=d.value.uB("ytp-suggestion-image"),d.style.width=p+"px",d.style.height=q+"px";this.suggestions.element.style.height=q+"px";this.Y=p;this.X=q;this.containerWidth=y;this.columns=Q;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.CH(this)}; g.K.onVideoDataChange=function(){var y=this.api.T(),q=this.api.getVideoData();this.J=q.cO?!1:y.Y;this.suggestionData=q.suggestions?g.DQ(q.suggestions,function(Q){return Q&&!Q.playlistId}):[]; WSn(this);q.cO?this.title.update({title:g.Yr("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.K.scrollTo=function(y){y=g.rV(y,this.containerWidth-this.suggestionData.length*(this.Y+8),0);this.G.start(this.scrollPosition,y,1E3);this.scrollPosition=y;g.CH(this);KSC(this)};})(_yt_player);