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 gW="://{={{1{%3D{cmo={fvip{/videoplayback{mn{//{/{a1.googlevideo.com{?{\\.googlevideo\\.com${1969-12-31T15:44:55.000-08:15{/file/index.m3u8{cmo{youtube.player.web_20250331_01_RC00{,57];c[57]=c;{&{:{local{index.m3u8{r{,{1969-12-31T21:31:07.000-02:30{4Vg4{cmo=td{---{rr{ad-interrupting{undefined{/initplayback{now{1970-01-01T02:31:42.000+02:30{1969-12-31T18:45:58.000-05:15{fallback_count{rr?[1-9].*\\.c\\.youtube\\.com${\\.a1\\.googlevideo\\.com${cmo=pf{Untrusted URL{www.youtube.com{false{playerfallback{redirector.googlevideo.com{mkLU4-ut1UY050BrOL-_w8_{/api/manifest".split("{"), M1,O7q,sw1,$e,gee,Swe,jm,pgw,em,hJ7,Hg,zy,cg,JUJ,yUy,fqw,tU,Ye,F4y,lq7,Gy7,$1w,AU,Pg,n7,Qi,C7,Xe,TWe,u5,rW,aw,eJe,H7i,My,zJy,cUy,ph,D17,d1e,Gl,$E,Tl,NWe,ve1,BWi,x1m,b71,RJw,tmJ,Yw1,eD,m1m,cq,AUe,Qw1,Dv,C5W,Xge,Wq,uew,xE,RJ,Pq,nh,QD,Ch,qw7,i7w,XC,iQ,uQ,Z7m,K4U,rU5,aqe,Zv,EeU,Kh,rJ,aJ,L4g,Vm7,Lh,kym,wgJ,pt,Uyy,FN,OhW,sJe,yH,gEw,MDi,S4w,Hp,pq7,Jpm,$y4,d3,Gl7,fvU,jJg,zXe,N2,Bp,bH,x$,cp7,WLW,Re,to,Y$,Ie,Pp,nt,Ct,uH,q2,tDJ,ZT,Y4w,r3,ae,EV,k$,PQW,OB,Mo,pc,nEw,S9,QJw,CQw,hf,gf,Jf,yf,fc,Xqe,FS,GH,q4W,TH,j9, e9,KLg,No,rp7,avg,EEg,LLe,WV,df,cV,ihw,Zh7,VDJ,kly,wq5,U21,xj,bU,Rp,Ot1,tf,my,Af,Ip,seq,nc,g$4,XS,Cc,hqe,qo,ZP,Joq,yo7,Kc,rf,ap,EB,Lc,op,Vf,wf,kj,lTi,SG,Uo,so,gH,G$i,hd,$2U,Jd,y5,G4,$y,T4,fX,ld,Fk,eG,Fji,Ha,T3e,hp,eqq,z4,ca,Oo,Ms,Do,dH,fh,Wa,zqw,Ns,Ba,bd,RX,td,Yy,cog,m8,D2g,Ad,d2e,Pa,IX,nX,Q5,CX,Xk,ud,Wjg,v$e,id,B35,x2w,bt4,KX,rH,LX,tSe,V5,YV4,oX,Ao7,ky,PHi,wH,Up,Op,n$J,sp,Qe1,g1,CHe,Xpe,Mk,uNy,SX,p3,J1,yS,it5,lg,roW,qVg,G3,T3,jX,Ljm,aTe,HJ,cJ,VSe,k$y,wpq,Dh,d1,WJ,Nk,vJ,BJ,xC,Ocy,spm,gjq,SBe,pVJ, Rc,hQ5,Jfy,t1,YC,mh,A1,yf7,GH7,$o7,jpU,Tfw,eQi,zQ4,QS,C3,Xs,ug,qk,Zh,K3,Wyi,ac,L3,VS,oc,w1,UG,NfU,OG,sG,Mm,Bfe,xo4,Sw,h5,J5,f1,FU,Gx,$v,PUU,njq,Qpm,CUe,ew,Hy,XVq,uS7,qBU,zx,cy,D9,di,Wy,By,by,Yv,I1,icW,ZcW,qm,KyW,kv,wi,Ejg,wVg,ojw,OXe,sF,gA,JN,MG4,paJ,So4,fa,l0,hZW,FV,ed,OF,ydy,Jdy,dA,DA,UF,Wd,NW,vd,foU,xS,loi,tN,G44,YS,m_,AN,I9,$sw,THq,jXw,Pd,eZ7,bg,M9y,u0,HXe,zZi,qW,cd5,XV,dsi,Dsi,Ca,i0,ZA,W8W,NHw,vyJ,BHe,Ka,xse,rA,Fye,fPJ,a9,EF,wA,Ug,tG7,Og,sg,MF,Yow,msg,Sy,QX4,Fh,Ioy,nyw,yU,J7,Tb,jy,Cdi,zb,Xa4, cr,DM,uke,iX4,vr,K8w,xq,bn,R4,rdW,m0,I4,VGe,oye,k4e,QU,sci,t7,Eye,MX4,O3J,wa4,UkW,Spi,gCU,Xh,ZM,hoy,J1g,y1e,fhg,Fh1,rU,lhW,Eg,G3w,jcU,eoq,LT,VU,o4,OY,zom,sY,gO,Ma,c1w,Dkg,hH,dk7,JH,yv,WZJ,vvU,xme,BiW,b1y,F6,$L,Hj,cj,Du,dO,Wj,Na,YGe,mmm,vj,A55,Bj,xL,z9,bK,tH,YL,Jp,mA,I9e,IO,Q1w,Pj,nj,Qv,Cyg,Xym,uU1,qGm,Cj,i1U,X6,uK,KZw,Evw,LZy,qa,wye,kxe,UWe,Oa7,s9w,iK,gSw,VwJ,Zu,Mdi,SFq,Kj,h4i,JN5,yNm,fA7,F_m,EY,lA7,GUq,$Wq,TAq,Ha5,j9w,Lj,Vv,oO,kL,wO,Ub,Ob,sb,cNy,ML,gD,DWy,SO,dWJ,px,W_w,NAe,vS7,BAm,hQ,yp,R41,JQ,tdi, fx,FM,YFm,lL,GD,$7,TD,jO,eO,nSW,mWi,DN,P07,dD,IAe,cD,HD,ANw,zD,NL,C05,BD,vD,Y7,m1,It,qF1,AQ,Qp,iaW,Cx,Xde,rN5,aAw,ESi,qL,iL,ZN,L_1,Kx,Vp,ot,k7,Vd7,wD,UJ,OJ,oSe,kUU,sJ,wdq,s47,r55,OTy,gqg,My5,Sge,UFe,hg4,J71,gQ,fMq,MO,y7U,F0J,lMm,Sc,GbU,p2,hj,Jj,yj,f2,FT,lv,$Fe,G5,$n,T5,TUm,egq,HTg,ec,z5,HU,DZ,dQ,WU,c7W,DF5,NO,vU,BU,W0q,NUm,xF5,vq7,bTw,mFW,xn,Ygi,Rgm,bv,RA,A75,tj,IMe,Yn,nqJ,Pnq,Q4W,Cn1,PU,n2,Xrw,uhe,qgw,Qj,C2,iT5,XT,ZTm,K0W,aMm,oqq,uv,kb7,wr4,Uae,OjU,sOJ,ZZ,gLg,MKi,SYw,oA,Vj,L2,pjg,hcy,JHW,kn,wQ,Uy, fue,S3,pC,h6,J6,yM,fC,luq,G9w,$aW,F0,GC,$s,cc,Dr,vc,jOU,HjU,eci,zcJ,cHi,Ys,DaW,da7,m3,WAy,NOe,vL4,BOW,nC,Il,q0,i4,Zr,xaU,bjW,RcU,KC,ro,tKJ,al,YYW,mam,AH4,Ey,Iuw,LC,VM,PKe,nLU,QO5,CKm,Xj5,u64,ol,ks,wo,O2,Zje,s2,gh,KA1,ijw,U2,rHU,MN,S4,pz,JS,hS,aum,ELe,LAg,yz,oLw,fz,wjJ,ULe,Oxy,st5,g75,MO1,Sbq,pDi,GM,$l,TM,JQq,hzi,yQq,fNe,e4,F1w,Hh,lN5,GDy,zM,ch,DJ,$Lw,dh,Wh,TDq,NN,vh,Bh,xl,bM,RZ,tS,Yl,jt1,ezw,HxW,zzU,ml,cQe,dLU,DLy,IZ,Ph,ND4,W1U,xL7,tOg,Rzw,nz,Ybe,mLe,AQU,PLW,IN4,n74,Qz,Qty,CL1,XO,XD1,uMg,qbw,ixW, uM,Zxi,qN,K1m,iM,ZJ,aNg,Kz,E7w,rh,aZ,L1y,VOW,E2,Vz,kD1,oZ,o7e,wD1,UOU,O27,gng,kl,Mcw,OQ,sQ,pUi,hxw,fZy,FVm,gj,M9,Su,p$,h8,J8,y_,f$,Ft,le,Gd,$h,Td,TQJ,$Og,jA4,H2W,ex5,cj5,G5e,zx4,lZU,ju,eu,dOi,WVW,NQU,DV,dj,WS,HS,BQw,N9,DO1,b2U,Rxi,xOU,vS,BS,xh,be,tcU,vnJ,YJy,RH,mO7,AjJ,IZy,PvJ,nnq,XU4,uTU,qJe,i2e,t8,KVi,rji,LVe,Vcq,m6,k5g,A8,Yh,U0g,wUJ,gs4,PS,Q_,SyW,pcW,hVw,J6W,frw,ue,Xt,F3y,y6g,$0y,jl7,zV1,rj,c6g,K$,EQ,D0W,L$,oH,kh,d0y,W3g,Sa,Now,hD,vsi,Bo7,zn,x0w,RV4,cT,t3w,Yy1,nsy,m0J,N$,vT,BT,b3,R$,qyi,tD,YU, mT,ZCw,PT,K3m,r6w,ns,Esg,Cs,XA,u3,q$,V3i,i3,Ks,rB,a$,EM,osU,kC5,wcw,V$,o$,kU,wB,U$,O$,UNe,OzU,sZ5,gle,M44,S2y,s$,ph7,yE,h_5,JSW,ySe,fG,ls,G6,$k,e6,Hi,z6,Fl5,dZ,Wi,N5,lJe,GM7,vi,$Ni,ThU,xk,Wl7,Nhq,vlW,bs,Bhe,xN7,t4J,tz,mNW,Y24,m9,IJm,PMi,nlq,IV,Pi,QZe,nG,QE,CG,Xd,us,q5,is,ZR,KG,rZ,aV,E$,LG,VE,CM5,Xh4,uOe,kk,UI,q2w,Jb,yI,f4,F2,lx,$J,Tr,rSe,jJ,eJ,H5,ElU,aJw,iz4,D2,c5,kMJ,da,YJ,bx,mo,Ab,U94,ghg,P5,pS4,Muw,SQJ,J8i,Gdg,y8w,F6e,lVw,QI,n4,$9i,X2,ux,qv,Tjw,EI,jHU,L4,VI,o0,wa,eOW,Od,sd,H$e,gr,Mt,c84,hw,ym, fE,FK,lC,GI,$d,TI,jQ,eQ,d97,HA,DO,cA,Nj7,b$w,Bjm,x9i,ROq,tuq,m95,A8m,YQi,PeJ,Nt,vA,bC,nhm,QHe,xd,Rn,XSe,ute,K6e,Z$U,Aw,In,PA,nE,Qm,XK,aVJ,EhJ,L6J,an,Ed,Vuy,ohy,kdm,wr,UT,OT,wSm,U$m,s$e,Maw,Ss,SM4,Jx,pM,Fo,lh,$O,pTe,DK,dq,WX,NR,BX,xO,RE,FT7,lUW,YO,Gnw,$$e,Ax,TB5,j$5,IE,PX,eHe,Hse,cDw,Xo,d$4,WTe,QF,NBe,vUq,x$g,BB7,ZK,D$W,RHU,taw,VF,ET,YM5,m$4,oE,kO,ADw,IUw,Ou,P3q,nUw,Q$e,C3W,hr,XTe,uA7,qMJ,isg,ZsW,KT1,rDg,aUJ,yw,EU4,Fj,Va5,oUi,knW,wT5,U5g,lB,HW,sVg,S$e,zm,pig,Jzw,OG5,yzy,fRe,F9m,gkJ,M6m,Gm,$a,eR,hRi, jR,Tm,lRw,G6e,$5W,TZi,jVq,eRg,d5w,HG7,WW,Np,BW,vkw,bGw,x5W,vW,Ix,RRW,Qw,t6w,m5i,iB,Y$w,q$e,Az4,udg,ax,iGi,rzw,Eu,rI,ZGg,K9W,aR4,Vw,L95,V6W,oke,k6w,wie,Uve,O4w,Ek7,gJq,MJ1,SIg,hj7,p5w,ybw,UC,f2i,OC,sC,gP,Fo5,l2i,pv,hE,$vq,Grq,JE,Ta5,ejw,zjq,H47,cbg,Woe,DvU,zK,dP,D5,Nay,c6,x1,bi,RD,tE,vJw,mK,xvm,P6,ID,QJ,Cv,XH,ui,b47,qY,Z5,Rjm,rP,EC,Lv,tJ4,YIq,mvi,Ab4,VJ,k1,I2g,wP,Uh,Oh,nJU,sh,gz,Q04,S$,Jt,ht,p5,yX,f5,u2g,a2e,Lo4,rb1,Kom,EJJ,GN,j$,w54,VJ1,oJm,krg,X5e,Jw1,BG,hvW,FXe,pA7,lV,x_,cG,NT,yw4,HG,i4m,qIw,Z45, TN,SdW,Y_,ev7,mi,zve,cwg,Dtw,IR,dtq,WXe,Nre,Bre,xtJ,QX,Rvg,C5,tQU,Ydw,Awm,IOw,uV,PCe,Qne,qT,CCJ,iV,Z8,es,KXg,VQg,VX,kI7,OMi,k_,gOw,Msw,STW,pXW,ys,h15,ha,BZe,SP,Ja,pU,wz,eP,jP,zz,DC,yxe,dk,NH,v_,fK1,FC1,bZ,Gwm,$RU,Tqg,jE7,e1w,HM7,z17,cxJ,DRg,dRi,mQ,WCq,Aa,P_,Nqw,vOe,BqW,nU,xR4,bMW,uZ,qH,iZ,R1g,ZC,tsJ,rk,mRW,YTm,EX,LU,Vs,od,Axm,kQ,wk,IKe,Phi,Un,On,XXe,nOJ,Chq,QEw,sn,g4,Mc,uog,qT4,iM5,Sp,KCq,EOe,aKm,pb,hB,JB,yc,fb,l9,GQ,$4,TQ,jp,ep,LCw,Vsw,oO5,Hv,zQ,cv,DY,Wv,vv,Upg,wXJ,x4,OAi,b9,R8,tB,Y4,mn,Pv,nb,Qc, Cb,XY,u9,qc,i9,ZY,Kb,r4,MR7,En,Vc,Su5,o8,hYg,Jrw,yre,Fse,Gmi,gT,$p5,S8,MZ,eY1,HA7,zYU,hF,JF,Dpy,fl,FL,lr,GA,Ws4,$6,TA,j8,NIi,e8,dpi,RY,tF,BIi,vae,Y6,mN,AF,IY,nl,bAw,RYw,Cl,XL,qZ,ir,tRy,ur,Ary,Ike,PB4,nai,QxJ,CB4,XWi,Kl,Zz,mpi,iAw,rT,Ksy,rrg,oY,akW,EK,Ll,Ea7,k6,VRi,kmi,wT,Ut,wWi,Ot,Ovi,gM,h7e,SCm,sDU,M0q,g1q,S1,pN,hJ,JJ,y4,fN,F3,GE,yEe,l5m,j1,onW,e1,GK7,TPm,zE,Wf,cf,dM,D7,Hvq,e7y,jDe,z7m,Nz,cEW,NPe,vf,xZ,BP4,bG,RG,tJ,YZ,xYy,mv,bvi,R7m,IG,CN,X3,uG,qz,iG,Z7,KN,rM,aG,Et,LN,V4,oG,t04,YCw,kZ,wM,Ua,Oa,sa, gb,mYw,AE1,Mf,Ji,n1g,QD4,yL,fQ,BC,x5,X6J,ti,Ai,uHJ,ivq,qCW,Zve,KK7,rE4,a5W,E1i,LKm,o1i,V0m,kK5,O57,g_e,UTw,M$g,Shm,h5i,PC,nQ,yte,Jti,QL,CQ,XD,Fii,um,qf,im,GNe,$Ty,Z_,l87,KQ,e5w,rb,a_,Ea,LQ,VL,o_,k5,wb,Ul,Ol,sl,gn,MJ,Sr,p_,h3,J3,y0,f_,Fl,lX,Ga,$r,Ta,jr,er,HR,za,cR,DW,dn,WR,NJ,vR,BR,xr,bX,RP,t3,Yr,mk,A3,IP,PR,n_,Q0,C_,Xl,uX,qJ,iX,ZW,K_,rn,aP,El,L_,V0,oP,kr,wn,Uq,Oq,sq,gL,MM,Sn,pi,hu,Ju,fi,F5,ctg,lo,L,Gk,y6,$G,Tk,jn,dT5,HF,NzW,en,v_q,cF,BzU,dL,zk,WF,NM,vF,xG,b57,R5i,t$y,Yh1,ni,Q6,mS,Ci,AtJ,I8i,PVw,n_i, xTW,QRJ,BF,CVg,XGm,uo,rL,qM,RL,uJW,bo,X5,io,aL,i5e,tu,YG,Ki,ZF,Z5w,Eq,Li,V6,oL,Kii,kG,wL,U7,O7,s7,rtm,a8e,Lim,V$i,S7,pZ,hR,JR,OUe,gQw,SXw,p_W,fZ,JaU,yai,j7,fCw,e7,H4,zO,c4,Dn,dp,FQy,Gze,$H7,lCm,Tkw,jd5,B4,xY,RF,YY,mE,AR,eCm,IF,HUU,P4,nZ,bl,Xc,ul,q8,il,zCw,CZ,DH7,Zn,dHi,WQq,KZ,Nk4,rp,aF,vQw,Bkw,E7,xHJ,bUm,LZ,RCm,tPm,YXJ,mHq,VV,oF,Aae,ICe,kY,wp,UO,PZe,OO,sO,g9,MX,nQw,S2,pP,Qd4,hA,CZe,JA,X_4,u_7,qX4,iU7,ZUW,KQe,yN,ram,aCi,EQJ,fP,LQe,FW,VPm,lA,oQe,GF,kzU,w_J,$F,zF,UcU,co,Dj,d9,Wo,Obq,NX,vo,Bo,s8W,g4i, bA,Ri,Sni,tA,pv1,hnm,Mpw,JB7,yBi,fYe,ma,Fng,AA,Ii,Po,nP,lYe,QN,CP,uA,GQy,qX,iA,$c5,KP,EO,r9,kF,w9,T4e,U6,j8e,s6,gm,Me,enU,pO,Hb4,JO,yr,fO,VN,F1,lE,Go,zn7,$f,To,jh,cB1,eh,H1,zo,c1,Dt,W1,Ne,v1,B1,Dcq,dc7,Wnw,N4e,Of,xf,sf,gF,v45,B4m,xcy,M6,Sz,pD,bbg,RnU,Uf,tpy,YnJ,h0,mcW,J0,yW,Fw,lR,Gh,$A,Th,ez,HI,cI,Dl,dF,WI,zh,P9m,n47,vI,BI,xA,Q85,Rz,XvJ,t0,YA,uY5,mB,A0,Iz,nD,qnU,PI,QW,CD,Xw,ibm,iR,Kn7,rBW,Zl,KD,aY5,E4y,Ln1,rF,o44,bR,Vpw,kQw,az,wve,Ef,UZw,LD,OlJ,sYm,g6m,M8w,SKw,VW,hT4,pPi,oz,UZ,JFg,OZ,yFg,sZ,fzw,FN5, gE,lzy,GA4,$ZJ,TTW,Mg,jYq,SH,Hlw,hT,JT,cFg,zTi,DZw,dZq,WNm,fn,Fn,lW,NT7,v64,BT7,xZi,blg,RTe,t8e,YKi,mZy,AFg,$3,TR,Izy,PrU,jH,eH,n6e,H8,zR,Dc,QYJ,dE,W8,Ng,Cry,v8,XPU,B8,uLe,x3,qKw,ilU,bW,ZlU,KN7,rF7,Rq,tT,Y3,mz,AT,azw,E6U,Iq,P8,nn,LNw,Qg,Cn,Xn,uW,qg,V84,o6w,iW,Zc,kAW,Kn,rE,aq,EZ,E_m,wPq,Uz5,Ln,ONm,sGU,gZW,Vg,oq,k3,wE,Uk,Ok,sk,gR,MC,S5,pr,M1y,StJ,GJ,$i,pfw,TJ,dR,e5,vl,l7W,eKJ,GEe,HNg,cJg,Dzq,zKy,dzU,WvW,NMm,Kr,xzW,RKw,YtW,mzy,AJU,Ek,Lr,PG5,nZe,u35,VZ,qty,QGg,oh,ki,wR,Ue,ZNm,a77,Kv5,V1m,g5e,s_e,oZe, MLy,se,wfe,kEU,h$4,f_5,yi7,$fU,FO7,gw,Mq,z$4,hP,cim,xf4,Bbe,v51,Nby,dfe,tL5,R$w,WOJ,Pmm,I_w,n5i,l1,XC4,Q_q,Cm1,Df4,uD5,qam,JP,fH,mf4,Yam,AiW,iQe,yd,bQ1,KOg,a_i,LOm,o5w,UJ1,O_W,grw,Mr1,pR7,SlJ,Fki,J3U,hww,lW7,Tn1,jPw,ew7,H_m,WM,bNm,DJw,zwJ,BM,NnU,Rr,Bne,xJy,vr4,tP,b_w,YX,m$,W4,AP,BMg,Ir,PM,nH,Rw1,trw,Qd,Ylw,mJy,A3i,CH,X$,u1,qq,i1,ZD,KH,rw,ar,IWq,PXw,Ee,nrw,LH,wF,Vd,or,CXe,QP4,kX,XR4,ulw,ww,UN,qle,ON,i_y,Z_w,t1m,Wk7,KkU,sN,N8,M8,G8,r3g,aWW,MG,HQw,ST,ErU,Nq,vM,T8,$X,Oe,eT,kWq,sPe,jT,Tb1,Gam,Lkw,SaJ, Ufg,SA,dJm,ah,orW,Vr4,iN5,wCU,kaU,$JU,DD,j_m,e$5,Jig,VLJ,E5m,LvJ,rJy,Xf4,CGy,I7e,ZQ7,OQw,y3W,l_g,GWy,z8,cM,HM,fWJ,riy,UMw,wRJ,p6,hW,JW,y2,f6,GB,jA,eA,HZ,zB,D1,dx,Oi5,FF,lN,cZ,gGW,sLy,WZ,Mne,SqJ,vZ,pFU,hN7,BZ,xD,bN,Ry,tW,YD,mM,AW,FSe,PZ,Iy,lFi,yuU,fF1,Gk1,n6,Q2,$My,TLw,C6,jLi,js,Hiw,eN7,cu5,dM7,WSw,DMW,NL7,xMm,RNy,K6,rx,tnW,Yqi,ay,EN,mMU,Au4,IFw,Poe,V2,kD,wx,QLU,CoU,qqg,Zi5,KSq,ii5,sH,MI,gt,ru1,aFy,UH,EGw,LSq,Vn1,oGw,OH,OZi,sFJ,gYg,U8g,wFg,kkw,M77,S7i,XF7,p4U,u57,h3i,JRq,ln7,yRq,fni,FEg,Tpy,GOy,$85, jFJ,e3W,pS,cRy,HZe,D8e,z37,d8U,WE1,Npi,vYi,Bp7,x8i,bZw,R3y,t74,Y71,m87,ARJ,hc,Ply,nYw,QFw,Inw,Clq,X4g,iZ5,yT,lJ,$c,ZZW,TZ,jg,eg,EYq,V74,LEW,kO1,hDq,UXg,vs,zZ,oYJ,an1,rRU,KEe,NI,cs,Ws,tc,Yc,fje,Ac,Iv,Rv,$Xq,FaJ,lje,T9w,Ps,nS,eDy,CS,Xr,uJ,qI,iJ,Zw,KS,HPy,zDg,rt,av,LS,DXe,dXJ,EH,VT,vFJ,B9y,ov,xXw,Ui,bP4,Oi,g2,RDi,si,Mu,t2e,p9,mXy,AA4,JC,yb,$B,PAJ,Fi,Te,el,nF4,ze,Ge,jl,Qie,c$,CAy,DS,Xoy,f9,l6,IjU,H$,d2,uWW,qO1,W$,iP4,Nu,v$,B$,xB,ZPi,Rf,b6,tC,YB,Kae,rAy,mc,AC,If,P$,n9,ajJ,Qb,C9,EFy,La5,Xi,u6,qu,oFg,V25, i6,kFw,woW,Uei,ZS,OO7,sm5,gfg,Mhw,S6m,K9,r2,af,Ei,p11,h9e,Vb,JOw,of,kB,yOg,ftg,w2,Fpe,lty,jme,e97,GoJ,$em,TmW,Oj,sj,gs,M_,HOW,z9e,Sx,cOw,de5,Dey,fu,JX,Nm7,vf7,Bmi,xeW,Fg,bOw,Gv,$b,R97,Y6e,mem,jx,c3,nf5,SOe,Dw,CEJ,X11,u1W,q65,iOq,Hs,ex,ZOq,W3,N_,at7,Efw,Lpi,v3,w14,Vhm,of4,OD5,sz4,B3,gA1,U6w,MzU,xb,bS,Rb,Sfi,pIe,tX,Yb,hFi,mf,J0w,AX,DE,Qt,y0e,po1,w4W,Cu,Xg,q_,iS,ZE,Ku,rs,uS,Lu,FBm,kb,llW,Gh1,$6e,TFW,jzg,ws,HDe,UR,c0y,OR,d6W,WBi,D65,zFU,NFm,vAi,BF7,pL,x6w,bDw,tz7,hG,yAq,JG,m6w,Ili,Bs,PRy,fL,Qzq,dt,nA5, OPe,gFq,M24,YfU,FB,lk,G_,CRU,XIg,$0,uwJ,jf,ef,Hn,z_,cn,qf4,Db,dv,iD4,ZDJ,Wn,Nn,vn,Bn,x0,bk,r0e,KBJ,RK,al5,LBm,tG,Vz4,EAw,Vh,ER,oK,wv,U3,Mn,oA7,MHg,IL,LL,M3,JT5,fc7,Qh,JI,nL,yK,lT,aK,G2,TEe,$M,T2,jqg,e61,HnW,z6w,jZ,cTe,Dgw,eZ,dgw,xgg,BEy,Wzy,v3U,NEW,Hb,bne,z2,R65,tHe,mge,ATg,IcU,X8e,N3,vb,inw,Bb,xM,Zn1,acw,E37,Lz1,VH5,bT,o3y,w8w,UC7,uT,yZe,M51,Sk7,F71,q3,lgy,$CU,GJ1,TR7,ZI,aC,jhJ,iT,E3,LJ,erq,zre,dCw,wG,So,fe,GS,PYm,ni7,eo,jo,zS,cB,Qhw,ufJ,Xlw,qkW,dd,Dp,irm,K71,rZe,Eig,vB,age,L7U,V5e,xu,bI,kJ1,kM, NP,Yu,xC5,Hri,Yk4,PB,HB,Zr4,iI,FX,Ke,rd,a6,F$5,fDw,lI,Le,V7,o6,G8e,ku,wd,$qm,$u,UE,CYU,hg,gXm,Jg,Tw1,NRq,W7m,cZ4,yA,F7,Gj,vXi,Nwi,xqU,bHU,je,He,zj,ee,D0,de,R01,We,YeU,Ni,APe,xo,mqe,b8,Ru,Qre,tg,u$W,qe1,Ag,iHU,K$i,aDm,re,EE,Ld,ko,EXe,we,Uc,MD,SV,pB,hq,L$e,Jq,yk,wM4,fB,Fa,UGw,O65,lz,syW,gD5,MAJ,SN5,GP,$2,pZw,JW1,eV,HL,DX,dg,yWJ,f14,WL,ND,vL,BL,FMw,l1e,x2,GBy,$Gq,bz,jyy,Tx7,ebW,Rg,zbW,H67,tq,cWi,Y2,me,DG4,WMg,Nx5,Aq,Ig,PL,vDq,nB,xGi,CB,b6g,Rb5,Qk,Xa,uz,qD,AWe,PNm,tAw,I1U,nDi,YNg,mGg,Qym,CN5,KB,XZ5,qNg, KMw,a1m,rW4,wg,k2,s9,LMw,gV,M4,SF,oDy,pV,kBe,VA4,hh,OSw,Jh,yO,sve,fV,gc7,gi7,JZW,SH1,MgJ,hSq,psW,Jcy,lf,yce,fwi,$P,GZ5,Ts,jF,eF,TtU,HSw,c7,D4,dV,ccg,zSe,H7,DIq,dI5,WbJ,vc4,W7,Iw5,xP,bf,uri,ag,iSU,ZSy,Kbw,rce,aw4,th,EcJ,YP,mx,Ah,Lbw,nV,Vg1,ocm,QO,CV,kZi,wsU,Uue,O9i,sfe,XQ,P7,gBW,uf,Sie,p$m,hU1,q4,JCe,yCe,fSq,Fcy,lSU,Gee,$ue,T2W,jfw,eUm,Z4,zUe,KV,cC4,aN,Due,WcW,VO,H9w,rV,oN,kP,wV,Uv,Ov,gC,N24,Ml,vBe,pW,tlq,ACm,ISe,P64,nBw,yy,Qfq,muw,RUU,C6m,hs,X$e,qi5,Sk,Js,xu1,b9e,fW,i95,Z94,Yii,B2i,Kce,lj,rC4,GG, $w,aSJ,TG,Vlm,EBw,Lc7,jk,oBW,ek,Hk,zG,ck,ke5,w$y,U_5,Ds,sbW,gbm,dC,Mx4,Wk,Nl,Sjm,p3J,hGw,JX4,yXJ,fE4,jbe,lEy,i6e,Bk,Huy,zGg,Gvm,$_J,Ffw,Ts7,Nsy,bj,xw,eG5,Bs7,Wf4,d_J,D_w,cXw,ts,x_w,rg,Yw,mD,As,bui,RGm,Yjg,txi,m_U,O9,AX5,IEJ,LB,og,uFe,Pk,Qy,CSi,X34,ugJ,XP,nW,I7,ql,nb5,PSe,Qbw,ij,qje,iuy,LV,du5,Ec,Zs,Zu7,CW,KfJ,rXw,aEw,Ebe,Lf5,KW,ob5,kvJ,w31,Une,OL7,sKU,g0e,uii,a7,Ev,SR7,rC,pn5,wZw,UIg,LW,hM1,JG5,yGw,fbw,Vy,G_W,FqJ,$ny,jKq,lb4,eMW,zMe,HLw,dn4,o7,Ux,v0q,Nvq,RMy,xni,tf1,YRw,Bv7,bL4,Wq5,mne,Ox,AGe,n05, Ib7,Pkw,g8,Mle,QK5,Ck5,Xnw,uBU,qRW,MS,iL5,SW,ZLW,pg,h4,KqW,J4,rGe,ab4,ye,E0e,Lqw,VfU,o0U,fg,eSi,F4,U37,l2,wne,OJe,sCe,jvJ,zs,gM5,MZq,$V,FUi,fI7,zX,lIy,yIW,TGe,cH,jCe,eWw,cIi,D3q,WUg,zWq,NGw,vM4,BGJ,x3y,bJi,tZJ,Y3w,m3w,RWW,d8,GX,IIy,HJg,PT5,d3i,WH,QC1,AIJ,DG,CTw,Xbe,iJw,aIg,ZJ1,EMJ,rIq,LUW,uy1,NS,VZU,q3g,r8,UPg,s6e,Oe1,guw,MoJ,Ssg,wb4,pB5,hB4,vH,JKi,yKw,fpU,FrJ,lpe,Tdi,$PW,GSw,Ex,j65,Hem,zB7,cKJ,DPq,dP5,oW,E9,Wre,Nd4,vuJ,beW,xPe,Bd7,RBy,YsJ,mPe,tog,xV,cGJ,Ipw,PIw,nuq,Zew,XBw,uXy,qsm,Kry,ap5,vbU,Lg, CIg,Q64,rKW,U9,ie1,vk,Vk,KUw,kSi,oue,wB5,Uiw,Mem,SEw,eB7,wC,kw,Lrq,pem,Vo4,h24,Jgw,Tv5,ygw,k2w,oMe,Eu7,DnJ,U_,O_,FuJ,s_,l0e,Gjq,$i5,Tey,ju4,Hd5,z2J,Wug,cge,dim,Nee,MK,bdi,Be4,xiJ,YEi,miq,Agw,SB,I0m,gy,P8w,teg,voi,pk,noW,Di5,Qui,hv,Xei,C8y,qE5,id7,ZdW,u77,Jv,kGe,rgm,Oge,USe,wk7,sWy,gVe,yn,MWw,Sx1,hhy,J4W,pHW,y4e,$Sw,FF1,lGw,GXm,T8e,jW4,eh1,zhU,Hgg,c4m,DS1,dS7,N8g,vVe,xSm,B81,bg1,WF4,RhJ,YxW,mS1,IGw,nVW,A45,lb,QWJ,C2q,tWw,XHw,P27,Gu,u4y,qxe,ig7,ZgJ,KFW,r4e,aGq,LF1,oVe,kXg,wHw,UK5,Okm,$H,sQJ,Tu,MBw, S_g,zu,hdq,c9,yv4,fBm,FPg,lBW,$Ke,Gug,suw,ed4,Hkw,Odq,DB,W9,Tyw,jQy,v9,B9,cve,zdm,DKi,dKy,WPw,ByU,Nyq,Rdy,xH,vHy,tBW,bb,Pbm,Y_W,tv,YH,nH5,RQ,QQU,mP,uIe,X9m,Avi,IB1,q_e,ikg,Zky,mKJ,KPw,Av,rve,Cb7,Jvg,NK,EHe,P9,LPg,VBi,oHg,ku5,w9i,Uwy,ORm,s37,gK7,nk,Mv4,SLi,hp4,Jm5,ym1,p2i,fHy,FJw,lHe,GYq,$wi,TcU,Ck,IYU,j3W,epg,XI,HRW,zpU,qK,dw7,WJ4,ib,vKy,Bcq,NcJ,Dwm,ZB,ub,cmy,aQ,ry,xwe,E_,Kk,YLi,IHU,nK1,Q3q,X2W,Rpm,PPq,uEw,tvU,qLw,iRg,wy,Lk,KJ5,rmJ,ZR5,oQ,LJJ,Vv7,Am7,mwW,EKw,oK1,CPw,bRw,UL,OL,sL,kYi,gc,Mjg,OIi,SSe, sU4,UVw,px1,w2e,fdy,huw,Mw,FHw,GT4,T0m,jUm,eue,cMq,Jm,DV1,HI4,kH,N04,v9e,GY,nMw,Sv,B0i,xVU,Ru7,bIm,tjm,WH4,fR,YSy,mV4,AM5,Pa5,Ide,AKW,n9w,y8,QUg,Xx7,Cam,qSw,u9m,$VJ,ZIg,iI7,FE,pR,KH4,TY,adq,E9y,LHW,Vj7,o9i,$K,fG4,zu5,kTy,f0J,Vn,wxg,UBy,OK7,sSw,ggq,jv,ev,SD4,pO1,hPi,MI5,J9y,H2,lLe,fLJ,F2g,Gfm,zY,$BU,T_w,jSg,c2,eP1,zPm,c9J,DB1,DH,HKU,dc,W2,dBe,W2w,B2,Nw,v2,N_e,xK,vgw,B_w,xBe,RPU,bKg,Am,YDg,mBy,tI7,A94,I3,IL1,P2,P$w,nR,nge,QS5,qD4,uZy,K2m,C$w,iKm,Q8,XOy,ZKg,r94,aL4,Egy,L2J,XE,VIi,iP,uP,oge,ZH,KR,wOg, a3,EL,Ub4,rc,Oow,LR,gx7,ssw,o3,kK,wc,pme,Mi1,SAq,US,hiW,FG5,yYq,JYy,fm5,OS,Gcw,ei7,Ho4,sS,ziw,cY1,$bg,T6q,WGU,N6w,vx5,B6e,xbi,boe,Sj,mbJ,pI,ti4,YAq,nx1,MV,hM,JM,Rim,AY5,Qs4,yR,CFg,Xm7,uxw,fI,qA7,F9,ioJ,Zoe,KG7,rYW,amW,ExU,LGq,kce,Viy,wmW,Uhi,sj4,gpw,d0,ynW,S1J,pww,faU,FIq,Jn4,Mtq,la4,$he,GiJ,TYU,Dh5,NV,NYe,xhy,BY1,vpi,zlW,cne,jj5,eli,dhg,vx,Bx,RlU,Cd,IDe,ttw,ba,tM,mhw,Y1m,WIJ,Iae,Ppq,npe,Y9,Qjg,CI,Xwm,uGy,q1m,Zwy,iw4,KIq,X9,ua,rnw,LIw,Vt1,Zd,EpJ,opm,kiw,aa5,aU,ww4,UUy,r0,OFw,sIJ,gti,Mbm,pN7,S0w,ykW, fi5,hI5,lig,Gt1,Jkw,VR,oU,$UJ,jIi,k9,TXJ,eI7,zI1,HFg,cki,w0,DUU,dUW,Wm4,UD,OD,sD,NXe,vtw,BX7,bFi,xUi,RIJ,tbg,Y0m,mUw,AkJ,Pw5,MB,g_,SI,nte,QI4,Iiy,iFm,ZF7,Kmq,Eti,aiJ,rki,LmJ,Vbe,pK,h9,ot7,ktm,wNe,UQ1,s2w,gTw,yx,MN1,J9,FZ,Oq5,SWe,pui,hm4,JLw,yLq,Gf,f6e,Fdg,$Q5,$g,T7y,GV1,Tf,jI,j2g,em4,zmW,DQJ,Hqe,cL1,HO,dQg,N74,vTg,xQw,bqm,zf,cO,Rmi,WdU,mQ4,YWw,tNi,DL,d_,I6g,ALw,WO,NB,PD1,vO,nTw,Q2U,CDW,BO,Xui,xg,uvJ,b$,RS,Zq4,Kde,rLw,ETi,Ld5,VNg,a6w,kVe,oTi,wu5,s5m,m2,M_w,gRy,Urw,O0U,SPJ,pQi,A9,IS,hyU,JVw,yV7,f$W, FR1,l$m,$rJ,TNw,WR5,H0U,zyq,j51,vRw,u$,i$,RyU,r_,aS,t_e,BNy,XZ,Vx,LK,ZL,mri,AVy,oS,Pt4,Q5W,nR7,kg,KK,CK,I$w,ED,xr7,YPJ,XQ5,PO,w_,u8y,qP1,qB,b05,UA,OA,i0y,sA,g6,Mb,Z0w,KRw,a$1,ER4,rVw,Si,po,LRe,hY,V_e,JY,y3,oR7,kgy,wQW,UEw,O8J,sB5,MYJ,g8m,Fx,fo,S81,hLg,pEw,lF,Gc,J2w,ffm,Fte,$x,y2y,lfe,G14,$E7,TSw,jBU,eLe,H8W,ji,ei,c2m,zLg,Hm,zc,DE5,dEe,WtW,cm,NSJ,Dm,v8g,xEw,BSq,Wm,Nb,b8y,RL7,Bm,tYU,Y8e,mEw,A2W,Ifm,P_U,QBW,C_q,XEy,n8e,uRW,q8w,i8m,Z8q,Kt5,r25,af7,E8y,Yx,Ltw,VY5,o85,U74,MCy,sTy,wEJ,Is,Of7,k1U,gIe,Pm, pte,SUw,no,h8J,Jlw,ylU,fk,$71,TKw,jT4,Xx,e8w,qb,aW,Hf5,iF,z8e,uF,cli,D71,x77,EA,Lo,os,kx,R8w,bf5,d75,w6,tCe,YUi,Alg,U1,I3W,PcW,nIm,V3,Cce,QTe,O1,s1,vIy,r6,Xtm,upe,qU5,ifw,WYe,NK5,as,Zfw,KY5,rle,a3w,oI5,k0i,Uxi,VCe,gme,iz,ZX,BH,p0y,hew,SmJ,J$m,wty,MqJ,EIw,y$i,skw,fey,Ome,uj,Vxy,aHm,gY,sx,LYe,le4,jke,St,eew,Hm4,$xe,hn,ze5,c$7,F5U,Dx4,T$y,dx1,Jn,pw,W5q,vmU,N$w,Mh,xxi,FG,rPe,yQ,lp,fw,Gi,dV4,bme,Ymw,tq7,A$1,Iew,mxi,Ti,$p,nme,Qky,C7J,Em5,Zme,K5m,qmi,omJ,uq7,Hw,Udw,k7W,OYi,sMe,et,cw,Da,pze,S5e,MU1,Ww,aee, xp,Jy1,Bw,dY,fym,lye,Gpy,VqJ,Fgy,Yp,$de,r$5,htU,Nh,TlU,zi,jMe,ete,HY5,Ij,Pw,yy5,zt5,cyg,nw,QQ,Dd4,vw,w0y,dd4,Wge,Nle,tn,vz5,bp,Blq,Rj,Be,xde,Rte,Cw,XG,tUe,Y5g,mdw,An,mI,Ayg,Ree,Iyw,Puw,nzy,QMm,Cuw,up,qh,q5q,Kg5,ayg,ubU,Op1,saU,gW7,MMW,SzJ,pKW,hA1,y_W,J_e,ip,Za,Kw,fQe,Fwm,lQe,kA,GL7,rY,$A7,aj,E1,YF,Lw,gp,Tuq,xX,c3e,jaq,pH,eAg,uR,q6,HpU,gx,zAe,c_g,b1,z5e,DAq,dAe,VQ,Nuw,vWq,oj,wY,U0,Bui,RA4,tMe,O0,Yz1,xAU,bpJ,mA4,A_W,IQq,PO7,nWe,s0,COi,ca7,tR,pn,XKe,uuy,yg,Qa5,QV,qze,ipW,Zp7,gX,N6,r_i,aQ4,MU,Sb,EWg, pF,Lwg,kp,VM5,oWe,Zbe,hk,Jk,kLw,yC,fF,wKi,Fz,Ujw,lw,Gt,Oyg,soy,eTe,$t,gNW,Sr4,MEw,Tt,pYg,jb,eb,hsw,Jeq,yeU,fxe,FWg,lxi,GqJ,T5i,zt,$jg,joU,esi,Hym,zsq,WWW,cey,Dje,djW,vN7,xji,byg,Rs5,B54,cN,tE5,YrW,mj7,Ae7,Ixe,dX,Pqe,WN,NU,vN,nNe,QoJ,XYe,um7,qrw,iy1,KWm,Zy4,re4,BN,xt,LWe,axi,EN5,bw,VEe,oN1,RI,tk,kqJ,Yt,wYg,mm,U1y,Ak,II,O7v,PN,nF,swy,geC,QC,CF,MmJ,Xz,SwC,pgJ,Zi,KF,hJh,JUX,yUl,lqh,F4l,rX,Gyh,$1J,TWE,vZJ,fq4,eJC,H7D,cUl,U11,Gy;M1=function(U){return function(){return U11[U].apply(this,arguments)}}; g.Fe=function(U,O){return U11[U]=O}; O7q=function(U){var O=0;return function(){return O=this.length))return this[U]}; Xe=function(U){return U?U:C7}; TWe=function(U,O,M){U instanceof String&&(U=String(U));for(var S=U.length-1;S>=0;S--){var p=U[S];if(O.call(M,p,S,U))return{w_:S,va:p}}return{w_:-1,va:void 0}}; u5=function(U){return U?U:function(O,M){return TWe(this,O,M).w_}}; g.Zq=function(U,O,M){U=U.split(".");M=M||g.q1;for(var S;U.length&&(S=U.shift());)U.length||O===void 0?M[S]&&M[S]!==Object.prototype[S]?M=M[S]:M=M[S]={}:M[S]=O}; rW=function(U,O){var M=g.K7("CLOSURE_FLAGS");U=M&&M[U];return U!=null?U:O}; g.K7=function(U,O){U=U.split(".");O=O||g.q1;for(var M=0;M2){var S=Array.prototype.slice.call(arguments,2);return function(){var p=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(p,S);return U.apply(O,p)}}return function(){return U.apply(O,arguments)}}; g.U4=function(U,O,M){g.U4=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?eJe:H7i;return g.U4.apply(null,arguments)}; g.O4=function(U,O){var M=Array.prototype.slice.call(arguments,1);return function(){var S=M.slice();S.push.apply(S,arguments);return U.apply(this,S)}}; g.gJ=function(){return Date.now()}; My=function(U){return U}; g.SD=function(U,O){function M(){} M.prototype=O.prototype;U.vN=O.prototype;U.prototype=new M;U.prototype.constructor=U;U.base=function(S,p,h){for(var J=Array(arguments.length-2),f=2;fO&&M.push(fh(S,1))}); return M}; g.FC=function(U){U&&typeof U.dispose=="function"&&U.dispose()}; g.lQ=function(U){for(var O=0,M=arguments.length;O>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&p=56320&&J<=57343){h=(h-55296)*1024+ J-56320+65536;S[M++]=h>>18|240;S[M++]=h>>12&63|128;S[M++]=h>>6&63|128;S[M++]=h&63|128;continue}else p--}if(O)throw Error("Found an unpaired surrogate");h=65533}S[M++]=h>>12|224;S[M++]=h>>6&63|128}S[M++]=h&63|128}}U=M===S.length?S:S.subarray(0,M)}return U}; Dv=function(U){g.q1.setTimeout(function(){throw U;},0)}; C5W=function(U){return Array.prototype.map.call(U,function(O){O=O.toString(16);return O.length>1?O:"0"+O}).join("")}; Xge=function(U){for(var O=[],M=0;M>6|192:((p&64512)==55296&&S+1>18|240,O[M++]=p>>12&63|128):O[M++]=p>>12|224,O[M++]=p>>6&63|128),O[M++]=p&63|128)}return O}; Wq=function(U,O){return U.lastIndexOf(O,0)==0}; uew=function(U,O){var M=U.length-O.length;return M>=0&&U.indexOf(O,M)==M}; g.Ny=function(U){return/^[\s\xa0]*$/.test(U)}; g.Bq=function(U,O){return U.indexOf(O)!=-1}; xE=function(U,O){return g.Bq(U.toLowerCase(),O.toLowerCase())}; g.tp=function(U,O){var M=0;U=bQ(String(U)).split(".");O=bQ(String(O)).split(".");for(var S=Math.max(U.length,O.length),p=0;M==0&&pO?1:0}; g.YE=function(){var U=g.q1.navigator;return U&&(U=U.userAgent)?U:""}; Pq=function(U){if(!mL&&!Ap||!IJ)return!1;for(var O=0;O0:!1}; Ch=function(){return QD()?!1:nh("Opera")}; qw7=function(){return QD()?!1:nh("Trident")||nh("MSIE")}; i7w=function(){return QD()?Pq("Microsoft Edge"):nh("Edg/")}; XC=function(){return nh("Firefox")||nh("FxiOS")}; iQ=function(){return nh("Safari")&&!(uQ()||(QD()?0:nh("Coast"))||Ch()||(QD()?0:nh("Edge"))||i7w()||(QD()?Pq("Opera"):nh("OPR"))||XC()||nh("Silk")||nh("Android"))}; uQ=function(){return QD()?Pq("Chromium"):(nh("Chrome")||nh("CriOS"))&&!(QD()?0:nh("Edge"))||nh("Silk")}; Z7m=function(){return nh("Android")&&!(uQ()||XC()||Ch()||nh("Silk"))}; K4U=function(U){var O={};U.forEach(function(M){O[M[0]]=M[1]}); return function(M){return O[M.find(function(S){return S in O})]||""}}; rU5=function(U){var O=g.YE();if(U==="Internet Explorer"){if(qw7())if((U=/rv: *([\d\.]*)/.exec(O))&&U[1])O=U[1];else{U="";var M=/MSIE +([\d\.]+)/.exec(O);if(M&&M[1])if(O=/Trident\/(\d.\d)/.exec(O),M[1]=="7.0")if(O&&O[1])switch(O[1]){case "4.0":U="8.0";break;case "5.0":U="9.0";break;case "6.0":U="10.0";break;case "7.0":U="11.0"}else U="7.0";else U=M[1];O=U}else O="";return O}var S=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");M=[];for(var p;p=S.exec(O);)M.push([p[1],p[2],p[3]||void 0]); O=K4U(M);switch(U){case "Opera":if(Ch())return O(["Version","Opera"]);if(QD()?Pq("Opera"):nh("OPR"))return O(["OPR"]);break;case "Microsoft Edge":if(QD()?0:nh("Edge"))return O(["Edge"]);if(i7w())return O(["Edg"]);break;case "Chromium":if(uQ())return O(["Chrome","CriOS","HeadlessChrome"])}return U==="Firefox"&&XC()||U==="Safari"&&iQ()||U==="Android Browser"&&Z7m()||U==="Silk"&&nh("Silk")?(O=M[2])&&O[1]||"":""}; aqe=function(U){if(QD()&&U!=="Silk"){var O=IJ.brands.find(function(M){return M.brand===U}); if(!O||!O.version)return NaN;O=O.version.split(".")}else{O=rU5(U);if(O==="")return NaN;O=O.split(".")}return O.length===0?NaN:Number(O[0])}; Zv=function(){return mL||Ap?!!IJ&&!!IJ.platform:!1}; EeU=function(){return Zv()?IJ.platform==="Android":nh("Android")}; Kh=function(){return nh("iPhone")&&!nh("iPod")&&!nh("iPad")}; rJ=function(){return Kh()||nh("iPad")||nh("iPod")}; aJ=function(){return Zv()?IJ.platform==="macOS":nh("Macintosh")}; L4g=function(){return Zv()?IJ.platform==="Windows":nh("Windows")}; g.E4=function(U){return U[U.length-1]}; Vm7=function(U,O){var M=U.length,S=typeof U==="string"?U.split(""):U;for(--M;M>=0;--M)M in S&&O.call(void 0,S[M],M,U)}; g.VD=function(U,O,M){O=Lh(U,O,M);return O<0?null:typeof U==="string"?U.charAt(O):U[O]}; Lh=function(U,O,M){for(var S=U.length,p=typeof U==="string"?U.split(""):U,h=0;h=0;S--)if(S in p&&O.call(M,p[S],S,U))return S;return-1}; g.kE=function(U,O){return oe7(U,O)>=0}; kym=function(U){if(!Array.isArray(U))for(var O=U.length-1;O>=0;O--)delete U[O];U.length=0}; g.OV=function(U,O){O=oe7(U,O);var M;(M=O>=0)&&g.UV(U,O);return M}; g.UV=function(U,O){return Array.prototype.splice.call(U,O,1).length==1}; g.sV=function(U,O){O=Lh(U,O);O>=0&&g.UV(U,O)}; wgJ=function(U,O){var M=0;Vm7(U,function(S,p){O.call(void 0,S,p,U)&&g.UV(U,p)&&M++})}; g.g3=function(U){return Array.prototype.concat.apply([],arguments)}; g.M2=function(U){var O=U.length;if(O>0){for(var M=Array(O),S=0;S>>1),F=void 0;M?F=O.call(void 0,U[f],f,U):F=O(S,U[f]);F>0?p=f+1:(h=f,J=!F)}return J?p:-p-1}; g.lH=function(U,O){U.sort(O||yH)}; sJe=function(U,O){var M=yH;g.lH(U,function(S,p){return M(O(S),O(p))})}; g.G$=function(U,O,M){if(!g.L7(U)||!g.L7(O)||U.length!=O.length)return!1;var S=U.length;M=M||gEw;for(var p=0;pO?1:U=0})}; g.cp=function(U,O){O===void 0&&(O=0);fvU();O=FLm[O];for(var M=Array(Math.floor(U.length/3)),S=O[64]||"",p=0,h=0;p>2];J=O[(J&3)<<4|f>>4];f=O[(f&15)<<2|F>>6];F=O[F&63];M[h++]=""+l+J+f+F}l=0;F=S;switch(U.length-p){case 2:l=U[p+1],F=O[(l&15)<<2]||S;case 1:U=U[p],M[h]=""+O[U>>2]+O[(U&3)<<4|l>>4]+F+S}return M.join("")}; g.DT=function(U,O){if(lvw&&!O)U=g.q1.btoa(U);else{for(var M=[],S=0,p=0;p255&&(M[S++]=h&255,h>>=8);M[S++]=h}U=g.cp(M,O)}return U}; $y4=function(U){var O=[];Gl7(U,function(M){O.push(M)}); return O}; d3=function(U){var O=U.length,M=O*3/4;M%3?M=Math.floor(M):g.Bq("=.",U[O-1])&&(M=g.Bq("=.",U[O-2])?M-2:M-1);var S=new Uint8Array(M),p=0;Gl7(U,function(h){S[p++]=h}); return p!==M?S.subarray(0,p):S}; Gl7=function(U,O){function M(F){for(;S>4);J!=64&&(O(h<<4&240|J>>2),f!=64&&O(J<<6&192|f))}}; fvU=function(){if(!Wp){Wp={};for(var U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),O=["+/=","+/","-_=","-_.","-_"],M=0;M<5;M++){var S=U.concat(O[M].split(""));FLm[M]=S;for(var p=0;p=O||(S[U]=M+1,U=Error(),WLW(U,"incident"),Dv(U))}}; Y$=function(U,O,M){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(M===void 0?0:M)&&Symbol.for&&U?Symbol.for(U):U!=null?Symbol(U):Symbol():O}; Ie=function(U,O){mj||Ao in U||vEe(U,BJ7);U[Ao]|=O}; Pp=function(U,O){mj||Ao in U||vEe(U,BJ7);U[Ao]=O}; nt=function(U){U[Ao]&=-3}; Ct=function(U){U=U[QH];var O=U===xyw;bhq&&U&&!O&&to(RXW,3);return O}; uH=function(U,O){if(O===void 0){if(O=U.U!==XN)Ct(U),O=!!(2&(U.o_[Ao]|0));U=O}else U=!!(2&O)&&U.U!==XN;return U}; q2=function(U){return U!==null&&typeof U==="object"&&!Array.isArray(U)&&U.constructor===Object}; tDJ=function(U,O){if(U!=null)if(typeof U==="string")U=U?new N2(U,vp):Bp();else if(U.constructor!==N2)if(dy1&&U!=null&&U instanceof Uint8Array)U=U.length?new N2(new Uint8Array(U),vp):Bp();else{if(!O)throw Error();U=void 0}return U}; ZT=function(U,O){if(typeof O!=="number"||O<0||O>=U.length)throw Error();}; Y4w=function(U,O,M){var S=O&512?0:-1,p=U.length;O=O&64?O&256:!!p&&q2(U[p-1]);for(var h=p+(O?-1:0),J=0;JO.length)return!1;if(U.lengthp)return!1;if(S>>0;w3=O;UB=(U-O)/4294967296>>>0}; Mo=function(U){if(U<0){OB(0-U);var O=g.D(gf(w3,UB));U=O.next().value;O=O.next().value;w3=U>>>0;UB=O>>>0}else OB(U)}; pc=function(U,O){var M=O*4294967296+(U>>>0);return Number.isSafeInteger(M)?M:S9(U,O)}; nEw=function(U,O){var M=O&2147483648;M&&(U=~U+1>>>0,O=~O>>>0,U==0&&(O=O+1>>>0));U=pc(U,O);return typeof U==="number"?M?-U:U:M?"-"+U:U}; S9=function(U,O){O>>>=0;U>>>=0;if(O<=2097151)var M=""+(4294967296*O+U);else ae()?M=""+(BigInt(O)<>>24|O<<8)&16777215,O=O>>16&65535,U=(U&16777215)+M*6777216+O*6710656,M+=O*8147497,O*=2,U>=1E7&&(M+=U/1E7>>>0,U%=1E7),M>=1E7&&(O+=M/1E7>>>0,M%=1E7),M=O+QJw(M)+QJw(U));return M}; QJw=function(U){U=String(U);return"0000000".slice(U.length)+U}; CQw=function(){var U=w3,O=UB;O&2147483648?ae()?U=""+(BigInt(O|0)<>>0)):(O=g.D(gf(U,O)),U=O.next().value,O=O.next().value,U="-"+S9(U,O)):U=S9(U,O);return U}; hf=function(U){if(U.length<16)Mo(Number(U));else if(ae())U=BigInt(U),w3=Number(U&BigInt(4294967295))>>>0,UB=Number(U>>BigInt(32)&BigInt(4294967295));else{var O=+(U[0]==="-");UB=w3=0;for(var M=U.length,S=0+O,p=(M-O)%6+O;p<=M;S=p,p+=6)S=Number(U.slice(S,p)),UB*=1E6,w3=w3*1E6+S,w3>=4294967296&&(UB+=Math.trunc(w3/4294967296),UB>>>=0,w3>>>=0);O&&(O=g.D(gf(w3,UB)),U=O.next().value,O=O.next().value,w3=U,UB=O)}}; gf=function(U,O){O=~O;U?U=~U+1:O+=1;return[U,O]}; Jf=function(U){return Array.prototype.slice.call(U)}; yf=function(U,O){throw Error(O===void 0?"unexpected value "+U+"!":O);}; fc=function(U){if(U!=null&&typeof U!=="number")throw Error("Value of float/double field must be a number, found "+typeof U+": "+U);return U}; Xqe=function(U){return U.displayName||U.name||"unknown type name"}; FS=function(U){if(U!=null&&typeof U!=="boolean")throw Error("Expected boolean but got "+aw(U)+": "+U);return U}; GH=function(U){switch(typeof U){case "bigint":return!0;case "number":return lU(U);case "string":return uC4.test(U);default:return!1}}; q4W=function(U){if(typeof U!=="number")throw Re("int32");if(!lU(U))throw Re("int32");return U|0}; TH=function(U){return U==null?U:q4W(U)}; j9=function(U){if(U==null)return U;if(typeof U==="string"&&U)U=+U;else if(typeof U!=="number")return;return lU(U)?U|0:void 0}; e9=function(U){if(U==null)return U;if(typeof U==="string"&&U)U=+U;else if(typeof U!=="number")return;return lU(U)?U>>>0:void 0}; KLg=function(U){var O=0;O=O===void 0?0:O;if(!GH(U))throw Re("int64");var M=typeof U;switch(O){case 2048:switch(M){case "string":return cV(U);case "bigint":return String(DP(64,U));default:return df(U)}case 4096:switch(M){case "string":return ihw(U);case "bigint":return k$(DP(64,U));default:return Zh7(U)}case 0:switch(M){case "string":return cV(U);case "bigint":return k$(DP(64,U));default:return WV(U)}default:return yf(O,"Unknown format requested type for int64")}}; No=function(U){return U==null?U:KLg(U)}; rp7=function(U){if(U[0]==="-")return!1;var O=U.length;return O<20?!0:O===20&&Number(U.substring(0,6))<184467}; avg=function(U){var O=U.length;return U[0]==="-"?O<20?!0:O===20&&Number(U.substring(0,7))>-922337:O<19?!0:O===19&&Number(U.substring(0,6))<922337}; EEg=function(U){if(U<0){Mo(U);var O=S9(w3,UB);U=Number(O);return vV(U)?U:O}O=String(U);if(rp7(O))return O;Mo(U);return pc(w3,UB)}; LLe=function(U){if(avg(U))return U;hf(U);return CQw()}; WV=function(U){GH(U);U=BV(U);vV(U)||(Mo(U),U=nEw(w3,UB));return U}; df=function(U){GH(U);U=BV(U);if(vV(U))U=String(U);else{var O=String(U);avg(O)?U=O:(Mo(U),U=CQw())}return U}; cV=function(U){GH(U);var O=BV(Number(U));if(vV(O))return String(O);O=U.indexOf(".");O!==-1&&(U=U.substring(0,O));return LLe(U)}; ihw=function(U){var O=BV(Number(U));if(vV(O))return k$(O);O=U.indexOf(".");O!==-1&&(U=U.substring(0,O));return ae()?k$(DP(64,BigInt(U))):k$(LLe(U))}; Zh7=function(U){return vV(U)?k$(WV(U)):k$(df(U))}; VDJ=function(U){if(U==null)return U;var O=typeof U;if(O==="bigint")return String(DP(64,U));if(GH(U)){if(O==="string")return cV(U);if(O==="number")return WV(U)}}; kly=function(U){if(U==null)return U;var O=typeof U;if(O==="bigint")return String(oEU(64,U));if(GH(U)){if(O==="string")return GH(U),O=BV(Number(U)),vV(O)&&O>=0?U=String(O):(O=U.indexOf("."),O!==-1&&(U=U.substring(0,O)),rp7(U)||(hf(U),U=S9(w3,UB))),U;if(O==="number")return GH(U),U=BV(U),U>=0&&vV(U)?U:EEg(U)}}; wq5=function(U){if(U==null||typeof U=="string"||U instanceof N2)return U}; U21=function(U){if(typeof U!=="string")throw Error();return U}; xj=function(U){if(U!=null&&typeof U!=="string")throw Error();return U}; bU=function(U){return U==null||typeof U==="string"?U:void 0}; Rp=function(U,O){if(!(U instanceof O))throw Error("Expected instanceof "+Xqe(O)+" but got "+(U&&Xqe(U.constructor)));return U}; Ot1=function(U,O,M){if(U!=null&&typeof U==="object"&&Ct(U))return U;if(Array.isArray(U)){var S=U[Ao]|0,p=S;p===0&&(p|=M&32);p|=M&2;p!==S&&Pp(U,p);return new O(U)}}; tf=function(U){return U}; my=function(U){var O=My(Yj);return O?U[O]:void 0}; Af=function(){}; Ip=function(U,O){for(var M in U)!isNaN(M)&&O(U,+M,U[M])}; seq=function(U){var O=new Af;Ip(U,function(M,S,p){O[S]=Jf(p)}); O.U=U.U;return O}; nc=function(U,O,M,S,p){var h=S?!!(O&32):void 0;S=[];var J=U.length,f=!1;if(O&64){if(O&256){J--;var F=U[J];var l=J}else l=4294967295,F=void 0;if(!(p||O&512)){f=!0;var G;var T=((G=PV)!=null?G:tf)(F?l- -1:O>>16&1023||536870912,-1,U,F);l=T+-1}}else l=4294967295,O&1||(F=J&&U[J-1],q2(F)?(J--,l=J,T=0):F=void 0);G=void 0;for(var e=0;e=l){var z=void 0;((z=G)!=null?z:G={})[e- -1]=H}else S[e]=H}if(F)for(var W in F)J=F[W],J!=null&&(J=M(J,h))!=null&&(e=+W,e< T?S[e+-1]=J:(e=void 0,((e=G)!=null?e:G={})[W]=J));G&&(f?S.push(G):S[l]=G);p&&(Pp(S,O&67043905|(G!=null?290:34)),My(Yj)&&(U=my(U))&&U instanceof Af&&(S[Yj]=seq(U)));return S}; g$4=function(U){switch(typeof U){case "number":return Number.isFinite(U)?U:""+U;case "bigint":return Qf(U)?Number(U):""+U;case "boolean":return U?1:0;case "object":if(Array.isArray(U)){var O=U[Ao]|0;return U.length===0&&O&1?void 0:nc(U,O,g$4,!1,!1)}if(Ct(U))return Cc(U);if(U instanceof N2){O=U.U;if(O==null)U="";else if(typeof O==="string")U=O;else{if(eXg){for(var M="",S=0,p=O.length-10240;S0?void 0:U===0?pp4||(pp4=[0,void 0]):[-U,void 0];case "string":return[0,U];case "object":return U}}; qo=function(U,O,M){U=Joq(U,O[0],O[1],M?1:2);O!==uU&&M&&Ie(U,8192);return U}; ZP=function(U,O,M){return Joq(U,O,M,3)}; Joq=function(U,O,M,S){if(U==null){var p=96;M?(U=[M],p|=512):U=[];O&&(p=p&-67043329|(O&1023)<<16)}else{if(!Array.isArray(U))throw Error("narr");p=U[Ao]|0;8192&p||!(64&p)||2&p||yo7();if(p&1024)throw Error("farr");if(p&64)return S!==3||p&16384||Pp(U,p|16384),U;S===1||S===2||(p|=64);if(M&&(p|=512,M!==U[0]))throw Error("mid");a:{M=U;var h=M.length;if(h){var J=h-1,f=M[J];if(q2(f)){p|=256;O=p&512?0:-1;J-=O;if(J>=1024)throw Error("pvtlmt");for(var F in f)h=+F,h1024)throw Error("spvt");p=p&-67043329|(F&1023)<<16}}}S===3&&(p|=16384);Pp(U,p);return U}; yo7=function(){to(fT7,5)}; Kc=function(U,O){if(typeof U!=="object")return U;if(Array.isArray(U)){var M=U[Ao]|0;if(U.length===0&&M&1)return;if(M&2)return U;var S;if(S=O)S=M===0||!!(M&32)&&!(M&64||!(M&16));return S?(Ie(U,34),M&4&&Object.freeze(U),U):nc(U,M,Kc,O!==void 0,!0)}if(Ct(U))return Ct(U),Ct(U),O=U.o_,M=O[Ao]|0,uH(U,M)?U:nc(O,M,Kc,!0,!0);if(U instanceof N2)return U}; rf=function(U){var O=U;Ct(O);O=O.o_;var M=O[Ao]|0;if(!uH(U,M))return U;O=U=new U.constructor(nc(O,M,Kc,!0,!0));Ct(O);nt(O.o_);return U}; ap=function(U){if(U.U!==XN)return!1;Ct(U);var O=U.o_;O=nc(O,O[Ao]|0,Kc,!0,!0);nt(O);Ct(U);U.o_=O;U.U=void 0;return!0}; EB=function(U){var O;if(O=!ap(U))Ct(U),O=uH(U,U.o_[Ao]|0);if(O)throw Error();}; Lc=function(U,O){O===void 0&&(O=U[Ao]|0);O&32&&!(O&32768)&&Pp(U,O|32768)}; op=function(U,O,M){Object.isExtensible(U);Ct(U);return Vf(U.o_,void 0,O,M)}; Vf=function(U,O,M,S,p){if(M===-1)return null;S=M+(S?0:-1);var h=U.length-1;if(S>=h&&(O!=null?O:U[Ao]|0)&256){O=U[h][M];var J=!0}else if(S<=h)O=U[S];else return;if(p&&O!=null){p=p(O);if(p==null)return p;if(p!==O)return J?U[h][M]=p:U[S]=p,p}return O}; wf=function(U,O,M,S){EB(U);Ct(U);var p=U.o_;kj(p,p[Ao]|0,O,M,S);return U}; kj=function(U,O,M,S,p){var h=M+(p?0:-1),J=U.length-1,f;if(h>=J&&((f=O)!=null?f:O=U[Ao]|0)&256)return U[J][M]=S,O;if(h<=J)return U[h]=S,O;S!==void 0&&(J=O>>16&1023||536870912,M>=J?S!=null&&(h={},U[J+(p?0:-1)]=(h[M]=S,h),O|=256,Pp(U,O)):U[h]=S);return O}; lTi=function(U,O,M){Ct(U);U=U.o_;return Fji(U,U[Ao]|0,O,M)!==void 0}; SG=function(U,O,M,S,p){Ct(U);var h=U.o_;var J=h[Ao]|0;S=uH(U,J)?1:S;p=!!p||S===3;S===2&&ap(U)&&(Ct(U),h=U.o_,J=h[Ao]|0);U=Uo(h,J,O);var f=U[Ao]|0;if(!(4&f)){4&f&&(U=Jf(U),f=Oo(f,J),J=kj(h,J,O,U));for(var F=0,l=0;F "+U)}; Ad=function(U,O){if(typeof U==="string")return{buffer:zXe(U),CG:O};if(Array.isArray(U))return{buffer:new Uint8Array(U),CG:O};if(U.constructor===Uint8Array)return{buffer:U,CG:!1};if(U.constructor===ArrayBuffer)return{buffer:new Uint8Array(U),CG:!1};if(U.constructor===N2)return{buffer:x$(U)||new Uint8Array(0),CG:!0};if(U instanceof Uint8Array)return{buffer:new Uint8Array(U.buffer,U.byteOffset,U.byteLength),CG:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; d2e=function(U,O,M,S){this.V=null;this.G=!1;this.U=this.B=this.X=0;this.init(U,O,M,S)}; Pa=function(U){var O=0,M=0,S=0,p=U.V,h=U.U;do{var J=p[h++];O|=(J&127)<32&&(M|=(J&127)>>4);for(S=3;S<32&&J&128;S+=7)J=p[h++],M|=(J&127)<>>0,M>>>0);throw m8();}; IX=function(U,O){U.U=O;if(O>U.B)throw D2g(U.B,O);}; nX=function(U){var O=U.V,M=U.U,S=O[M++],p=S&127;if(S&128&&(S=O[M++],p|=(S&127)<<7,S&128&&(S=O[M++],p|=(S&127)<<14,S&128&&(S=O[M++],p|=(S&127)<<21,S&128&&(S=O[M++],p|=S<<28,S&128&&O[M++]&128&&O[M++]&128&&O[M++]&128&&O[M++]&128&&O[M++]&128)))))throw m8();IX(U,M);return p}; Q5=function(U){var O=U.V,M=U.U,S=O[M+0],p=O[M+1],h=O[M+2];O=O[M+3];IX(U,U.U+4);return(S<<0|p<<8|h<<16|O<<24)>>>0}; CX=function(U){var O=Q5(U);U=Q5(U);return pc(O,U)}; Xk=function(U){var O=Q5(U),M=Q5(U);U=(M>>31)*2+1;var S=M>>>20&2047;O=4294967296*(M&1048575)+O;return S==2047?O?NaN:U*Infinity:S==0?U*4.9E-324*O:U*Math.pow(2,S-1075)*(O+4503599627370496)}; ud=function(U){for(var O=0,M=U.U,S=M+10,p=U.V;MU.B)throw D2g(O,U.B-M);U.U=S;return M}; v$e=function(U,O){if(O==0)return Bp();var M=Wjg(U,O);U.Fd&&U.G?M=U.V.subarray(M,M+O):(U=U.V,O=M+O,M=M===O?new Uint8Array(0):N3w?U.slice(M,O):new Uint8Array(U.subarray(M,O)));return M.length==0?Bp():new N2(M,vp)}; id=function(U,O,M,S){if(qs.length){var p=qs.pop();p.init(U,O,M,S);U=p}else U=new d2e(U,O,M,S);this.U=U;this.B=this.U.U;this.V=this.X=-1;B35(this,S)}; B35=function(U,O){O=O===void 0?{}:O;U.GM=O.GM===void 0?!1:O.GM}; x2w=function(U,O,M,S){if(Zo.length){var p=Zo.pop();B35(p,S);p.U.init(U,O,M,S);return p}return new id(U,O,M,S)}; bt4=function(U){var O=U.U;if(O.U==O.B)return!1;U.B=U.U.U;var M=nX(U.U)>>>0;O=M>>>3;M&=7;if(!(M>=0&&M<=5))throw cog(M,U.B);if(O<1)throw Error("Invalid field number: "+O+" (at position "+U.B+")");U.X=O;U.V=M;return!0}; KX=function(U){switch(U.V){case 0:U.V!=0?KX(U):ud(U.U);break;case 1:U=U.U;IX(U,U.U+8);break;case 2:if(U.V!=2)KX(U);else{var O=nX(U.U)>>>0;U=U.U;IX(U,U.U+O)}break;case 5:U=U.U;IX(U,U.U+4);break;case 3:O=U.X;do{if(!bt4(U))throw Error("Unmatched start-group tag: stream EOF");if(U.V==4){if(U.X!=O)throw Error("Unmatched end-group tag");break}KX(U)}while(1);break;default:throw cog(U.V,U.B);}}; rH=function(U,O,M){var S=U.U.B,p=nX(U.U)>>>0,h=U.U.U+p,J=h-S;J<=0&&(U.U.B=h,M(O,U,void 0,void 0,void 0),J=h-U.U.U);if(J)throw Error("Message parsing ended unexpectedly. Expected to read "+(p+" bytes, instead read "+(p-J)+" bytes, either the data ended unexpectedly or the message misreported its own length"));U.U.U=h;U.U.B=S}; LX=function(U){var O=nX(U.U)>>>0;U=U.U;var M=Wjg(U,O);U=U.V;if(Rqe){var S=U,p;(p=aX)||(p=aX=new TextDecoder("utf-8",{fatal:!0}));O=M+O;S=M===0&&O===S.length?S:S.subarray(M,O);try{var h=p.decode(S)}catch(l){if(Eo===void 0){try{p.decode(new Uint8Array([128]))}catch(G){}try{p.decode(new Uint8Array([97])),Eo=!0}catch(G){Eo=!1}}!Eo&&(aX=void 0);throw l;}}else{h=M;O=h+O;M=[];for(var J=null,f,F;h=O?cq():(F=U[h++],f<194||(F&192)!==128?(h--,cq()):M.push((f&31)<<6|F&63)): f<240?h>=O-1?cq():(F=U[h++],(F&192)!==128||f===224&&F<160||f===237&&F>=160||((p=U[h++])&192)!==128?(h--,cq()):M.push((f&15)<<12|(F&63)<<6|p&63)):f<=244?h>=O-2?cq():(F=U[h++],(F&192)!==128||(f<<28)+(F-144)>>30!==0||((p=U[h++])&192)!==128||((S=U[h++])&192)!==128?(h--,cq()):(f=(f&7)<<18|(F&63)<<12|(p&63)<<6|S&63,f-=65536,M.push((f>>10&1023)+55296,(f&1023)+56320))):cq(),M.length>=8192&&(J=AUe(J,M),M.length=0);h=AUe(J,M)}return h}; tSe=function(U){var O=nX(U.U)>>>0;return v$e(U.U,O)}; V5=function(U,O,M){U=ZP(U,O,M);Ct(this);this.o_=U}; YV4=function(U,O){if(O==null||O=="")return new U;O=JSON.parse(O);if(!Array.isArray(O))throw Error("dnarr");Ie(O,32);return new U(O)}; oX=function(U,O){this.V=U>>>0;this.U=O>>>0}; Ao7=function(U){if(!U)return m21||(m21=new oX(0,0));if(!/^\d+$/.test(U))return null;hf(U);return new oX(w3,UB)}; ky=function(U,O){this.V=U>>>0;this.U=O>>>0}; PHi=function(U){if(!U)return IT7||(IT7=new ky(0,0));if(!/^-?\d+$/.test(U))return null;hf(U);return new ky(w3,UB)}; wH=function(){this.U=[]}; Up=function(U,O,M){for(;M>0||O>127;)U.U.push(O&127|128),O=(O>>>7|M<<25)>>>0,M>>>=7;U.U.push(O)}; Op=function(U,O){for(;O>127;)U.U.push(O&127|128),O>>>=7;U.U.push(O)}; n$J=function(U,O){if(O>=0)Op(U,O);else{for(var M=0;M<9;M++)U.U.push(O&127|128),O>>=7;U.U.push(1)}}; sp=function(U,O){U.U.push(O>>>0&255);U.U.push(O>>>8&255);U.U.push(O>>>16&255);U.U.push(O>>>24&255)}; Qe1=function(){this.B=[];this.V=0;this.U=new wH}; g1=function(U,O){O.length!==0&&(U.B.push(O),U.V+=O.length)}; CHe=function(U,O){Mk(U,O,2);O=U.U.end();g1(U,O);O.push(U.V);return O}; Xpe=function(U,O){var M=O.pop();for(M=U.V+U.U.length()-M;M>127;)O.push(M&127|128),M>>>=7,U.V++;O.push(M);U.V++}; Mk=function(U,O,M){Op(U.U,O*8+M)}; uNy=function(U,O,M){if(M!=null){switch(typeof M){case "string":Ao7(M)}Mk(U,O,1);switch(typeof M){case "number":U=U.U;OB(M);sp(U,w3);sp(U,UB);break;case "bigint":M=BigInt.asUintN(64,M);M=new oX(Number(M&BigInt(4294967295)),Number(M>>BigInt(32)));U=U.U;O=M.U;sp(U,M.V);sp(U,O);break;default:M=Ao7(M),U=U.U,O=M.U,sp(U,M.V),sp(U,O)}}}; SX=function(U,O,M){Mk(U,O,2);Op(U.U,M.length);g1(U,U.U.end());g1(U,M)}; p3=function(){function U(){throw Error();} Object.setPrototypeOf(U,U.prototype);return U}; J1=function(U,O,M){this.uN=U;this.fK=O;U=My(h1);this.U=!!U&&M===U||!1}; yS=function(U,O){var M=M===void 0?h1:M;return new J1(U,O,M)}; it5=function(U,O,M,S,p){O=qVg(O,S);O!=null&&(M=CHe(U,M),p(O,U),Xpe(U,M))}; lg=function(U,O,M,S){var p=S[U];if(p)return p;p={};p.Jm=S;p.Ry=hqe(S[0]);var h=S[1],J=1;h&&h.constructor===Object&&(p.extensions=h,h=S[++J],typeof h==="function"&&(p.ZH=!0,f3!=null||(f3=h),Fs!=null||(Fs=S[J+1]),h=S[J+=2]));for(var f={};h&&Array.isArray(h)&&h.length&&typeof h[0]==="number"&&h[0]>0;){for(var F=0;F>BigInt(32)));Up(U.U,M.V,M.U);break;default:M=PHi(O),Up(U.U,M.V,M.U)}}}; xC=function(U,O,M){O=j9(O);O!=null&&O!=null&&(Mk(U,M,0),n$J(U.U,O))}; Ocy=function(U,O,M){O=O==null||typeof O==="boolean"?O:typeof O==="number"?!!O:void 0;O!=null&&(Mk(U,M,0),U.U.U.push(O?1:0))}; spm=function(U,O,M){O=bU(O);O!=null&&SX(U,M,Qw1(O))}; gjq=function(U,O,M,S,p){O=qVg(O,S);O!=null&&(M=CHe(U,M),p(O,U),Xpe(U,M))}; SBe=function(){var U=bg;this.U=M9y;this.isRepeated=0;this.V=Ha;this.defaultValue=void 0;this.B=U.messageId!=null?Kt:void 0}; pVJ=function(U){return function(){var O=new Qe1;Ct(this);k$y(this.o_,O,lg(z3,HJ,cJ,U));g1(O,O.U.end());for(var M=new Uint8Array(O.V),S=O.B,p=S.length,h=0,J=0;J>>31)&4294967295;T=p[0];var z=p[1],W=p[2],v=p[3],x=p[4];for(H=0;H<80;H++){if(H<40)if(H<20){var t=v^z&(W^v);var m=1518500249}else t=z^W^v,m=1859775393;else H<60?(t=z&W|v&(z|W),m=2400959708):(t=z^W^v,m=3395469782);t=((T<<5|T>>>27)&4294967295)+t+x+m+e[H]&4294967295;x=v;v=W;W=(z<<30|z>>>2)&4294967295;z=T;T=t}p[0]=p[0]+T&4294967295;p[1]=p[1]+z&4294967295;p[2]= p[2]+W&4294967295;p[3]=p[3]+v&4294967295;p[4]=p[4]+x&4294967295} function M(T,e){if(typeof T==="string"){T=unescape(encodeURIComponent(T));for(var H=[],z=0,W=T.length;z=56;H--)h[H]=e&255,e>>>=8;O(h);for(H=e=0;H<5;H++)for(var z=24;z>=0;z-=8)T[e++]=p[H]>>z&255;return T} for(var p=[],h=[],J=[],f=[128],F=1;F<64;++F)f[F]=0;var l,G;U();return{reset:U,update:M,digest:S,Dn:function(){for(var T=S(),e="",H=0;H4);p++)O[h5(U[p])]||(M+="\nInner error "+S++ +": ",U[p].stack&&U[p].stack.indexOf(U[p].toString())==0||(M+=typeof U[p]==="string"?U[p]:U[p].message+"\n"),M+=Sw(U[p],O));p")!=-1&&(U=U.replace(YB1,">")),U.indexOf('"')!=-1&&(U=U.replace(mow,""")),U.indexOf("'")!=-1&&(U=U.replace(Af4,"'")),U.indexOf("\x00")!=-1&&(U=U.replace(IPe,"�")));return U}; g.ly=function(U){return U==null?"":String(U)}; Gx=function(U){for(var O=0,M=0;M>>0;return O}; $v=function(U){var O=Number(U);return O==0&&g.Ny(U)?NaN:O}; PUU=function(U){return String(U).replace(/\-([a-z])/g,function(O,M){return M.toUpperCase()})}; njq=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Qpm=function(U){return U.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(O,M,S){return M+S.toUpperCase()})}; CUe=function(U){var O=1;U=U.split(":");for(var M=[];O>0&&U.length;)M.push(U.shift()),O--;U.length&&M.push(U.join(":"));return M}; ew=function(U){this.U=U||{cookie:""}}; Hy=function(U){U=(U.U.cookie||"").split(";");for(var O=[],M=[],S,p,h=0;h/g,">").replace(/"/g,""").replace(/'/g,"'");return VS(U)}; Ejg=function(U){var O=wi("");return VS(U.map(function(M){return oc(wi(M))}).join(oc(O).toString()))}; wVg=function(U){var O;if(!LyU.test("div"))throw Error("");if(V9U.indexOf("DIV")!==-1)throw Error("");var M="":(U=Ejg(O.map(function(S){return S instanceof L3?S:wi(String(S))})),M+=">"+U.toString()+""); return VS(M)}; ojw=function(U){for(var O="",M=Object.keys(U),S=0;S2&&hZW(p,J,S,2);return J}; hZW=function(U,O,M,S){function p(f){f&&O.appendChild(typeof f==="string"?U.createTextNode(f):f)} for(;S0)p(h);else{a:{if(h&&typeof h.length=="number"){if(g.Vi(h)){var J=typeof h.item=="function"||typeof h.item=="string";break a}if(typeof h==="function"){J=typeof h.item=="function";break a}}J=!1}g.T$(J?g.M2(h):h,p)}}}; g.GU=function(U){return FV(document,U)}; FV=function(U,O){O=String(O);U.contentType==="application/xhtml+xml"&&(O=O.toLowerCase());return U.createElement(O)}; g.$S=function(U){return document.createTextNode(String(U))}; g.TU=function(U,O){U.appendChild(O)}; g.jd=function(U){for(var O;O=U.firstChild;)U.removeChild(O)}; ed=function(U,O,M){U.insertBefore(O,U.childNodes[M]||null)}; g.Hd=function(U){return U&&U.parentNode?U.parentNode.removeChild(U):null}; g.zU=function(U,O){if(!U||!O)return!1;if(U.contains&&O.nodeType==1)return U==O||U.contains(O);if(typeof U.compareDocumentPosition!="undefined")return U==O||!!(U.compareDocumentPosition(O)&16);for(;O&&U!=O;)O=O.parentNode;return O==U}; OF=function(U){return U.nodeType==9?U:U.ownerDocument||U.document}; g.cd=function(U,O){if("textContent"in U)U.textContent=O;else if(U.nodeType==3)U.data=String(O);else if(U.firstChild&&U.firstChild.nodeType==3){for(;U.lastChild!=U.firstChild;)U.removeChild(U.lastChild);U.firstChild.data=String(O)}else g.jd(U),U.appendChild(OF(U).createTextNode(String(O)))}; ydy=function(U){return U.tagName=="A"&&U.hasAttribute("href")||U.tagName=="INPUT"||U.tagName=="TEXTAREA"||U.tagName=="SELECT"||U.tagName=="BUTTON"?!U.disabled&&(!U.hasAttribute("tabindex")||Jdy(U)):U.hasAttribute("tabindex")&&Jdy(U)}; Jdy=function(U){U=U.tabIndex;return typeof U==="number"&&U>=0&&U<32768}; dA=function(U,O,M){if(!O&&!M)return null;var S=O?String(O).toUpperCase():null;return DA(U,function(p){return(!S||p.nodeName==S)&&(!M||typeof p.className==="string"&&g.kE(p.className.split(/\s+/),M))},!0)}; DA=function(U,O,M){U&&!M&&(U=U.parentNode);for(M=0;U;){if(O(U))return U;U=U.parentNode;M++}return null}; UF=function(U){this.U=U||g.q1.document||document}; Wd=function(U){U=ZP(U);Ct(this);this.o_=U}; NW=function(U){U=ZP(U);Ct(this);this.o_=U}; vd=function(U){U=ZP(U);Ct(this);this.o_=U}; foU=function(U,O){ca(U,NW,1,O)}; xS=function(U){U=ZP(U);Ct(this);this.o_=U}; loi=function(U,O){O=O===void 0?F8m:O;if(!b0){var M;U=(M=U.navigator)==null?void 0:M.userAgentData;if(!U||typeof U.getHighEntropyValues!=="function"||U.brands&&typeof U.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));M=(U.brands||[]).map(function(p){var h=new NW;h=RX(h,1,p.brand);return RX(h,2,p.version)}); foU(wf(R9,2,FS(U.mobile)),M);b0=U.getHighEntropyValues(O)}var S=new Set(O);return b0.then(function(p){var h=R9.clone();S.has("platform")&&RX(h,3,p.platform);S.has("platformVersion")&&RX(h,4,p.platformVersion);S.has("architecture")&&RX(h,5,p.architecture);S.has("model")&&RX(h,6,p.model);S.has("uaFullVersion")&&RX(h,7,p.uaFullVersion);return h}).catch(function(){return R9.clone()})}; tN=function(U){U=ZP(U);Ct(this);this.o_=U}; G44=function(U){U=ZP(U);Ct(this);this.o_=U}; YS=function(U){U=ZP(U,4);Ct(this);this.o_=U}; m_=function(U){U=ZP(U,36);Ct(this);this.o_=U}; AN=function(U){U=ZP(U,19);Ct(this);this.o_=U}; I9=function(U,O){this.Cs=O=O===void 0?!1:O;this.uach=this.locale=null;this.V=0;this.isFinal=!1;this.U=new AN;Number.isInteger(U)&&this.U.d6(U);O||(this.locale=document.documentElement.getAttribute("lang"));$sw(this,new tN)}; $sw=function(U,O){z4(U.U,tN,1,O);Ba(O,1)||Yy(O,1,1);U.Cs||(O=Pd(U),Ns(O,5)||RX(O,5,U.locale));U.uach&&(O=Pd(U),Ha(O,vd,9)||z4(O,vd,9,U.uach))}; THq=function(U,O){U.V=O}; jXw=function(U){var O=O===void 0?F8m:O;var M=U.Cs?void 0:fa();M?loi(M,O).then(function(S){U.uach=S;S=Pd(U);z4(S,vd,9,U.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; Pd=function(U){U=Ha(U.U,tN,1);var O=Ha(U,xS,11);O||(O=new xS,z4(U,xS,11,O));return O}; eZ7=function(U){return g.yG?"webkit"+U:U.toLowerCase()}; g.na=function(U,O,M,S){this.X=U;this.G=O;this.U=this.B=U;this.C=M||0;this.D=S||2}; g.QG=function(U){U.U=Math.min(U.G,U.U*U.D);U.B=Math.min(U.G,U.U+(U.C?Math.round(U.C*(Math.random()-.5)*2*U.U):0));U.V++}; bg=function(U){U=ZP(U,8);Ct(this);this.o_=U}; M9y=function(U){U=ZP(U);Ct(this);this.o_=U}; u0=function(U){g.C.call(this);var O=this;this.componentId="";this.U=[];this.TY="";this.pageId=null;this.HA=this.sA=-1;this.D=this.experimentIds=null;this.C=this.X=0;this.Z=null;this.ol=this.BA=0;this.hZ=1;this.timeoutMillis=0;this.QP=!1;this.logSource=U.logSource;this.w0=U.w0||function(){}; this.B=new I9(U.logSource,U.Cs);this.network=U.network||null;this.Cd=U.Cd||null;this.Y=U.K0G||null;this.sessionIndex=U.sessionIndex||null;this.bE=U.bE||!1;this.logger=null;this.withCredentials=!U.Nx;this.Cs=U.Cs||!1;this.yP=!this.Cs&&!!fa()&&!!fa().navigator&&fa().navigator.sendBeacon!==void 0;this.Ka=typeof URLSearchParams!=="undefined"&&!!(new URL(Ca())).searchParams&&!!(new URL(Ca())).searchParams.set;var M=Yy(new tN,1,1);$sw(this.B,M);this.G=new g.na(1E4,3E5,.1);U=HXe(this,U.Vj);this.V=new D9(this.G.getValue(), U);this.Ca=new D9(6E5,U);this.bE||this.Ca.start();this.Cs||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){XV(O);var S;(S=O.Z)==null||S.flush()}}),document.addEventListener("pagehide",function(){XV(O); var S;(S=O.Z)==null||S.flush()}))}; HXe=function(U,O){return U.Ka?O?function(){O().then(function(){U.flush()})}:function(){U.flush()}:function(){}}; zZi=function(U){U.Y||(U.Y=Ca());try{return(new URL(U.Y)).toString()}catch(O){return(new URL(U.Y,fa().location.origin)).toString()}}; qW=function(U,O,M){U.Z&&U.Z.HJ(O,M)}; cd5=function(U,O,M){M=M===void 0?U.w0():M;var S=S===void 0?U.withCredentials:S;var p={},h=new URL(zZi(U));M&&(p.Authorization=M);U.sessionIndex&&(p["X-Goog-AuthUser"]=U.sessionIndex,h.searchParams.set("authuser",U.sessionIndex));U.pageId&&(Object.defineProperty(p,"X-Goog-PageId",{value:U.pageId}),h.searchParams.set("pageId",U.pageId));return{url:h.toString(),body:O,Rh:1,requestHeaders:p,requestType:"POST",withCredentials:S,timeoutMillis:U.timeoutMillis}}; XV=function(U){U.B.isFinal=!0;U.flush();U.B.isFinal=!1}; dsi=function(U){Dsi(U,function(O,M){O=new URL(O);O.searchParams.set("format","json");var S=!1;try{S=fa().navigator.sendBeacon(O.toString(),M.g3())}catch(p){}S||(U.yP=!1);return S})}; Dsi=function(U,O){if(U.U.length!==0){var M=new URL(zZi(U));M.searchParams.delete("format");var S=U.w0();S&&M.searchParams.set("auth",S);M.searchParams.set("authuser",U.sessionIndex||"0");for(S=0;S<10&&U.U.length;++S){var p=U.U.slice(0,32),h=U.B.build(p,U.X,U.C,U.Cd,U.BA,U.ol);if(!O(M.toString(),h)){++U.C;break}U.X=0;U.C=0;U.BA=0;U.ol=0;U.U=U.U.slice(p.length)}U.V.enabled&&U.V.stop()}}; Ca=function(){return"https://play.google.com/log?format=json&hasfast=true"}; i0=function(){this.lW=typeof AbortController!=="undefined"}; ZA=function(U,O){g.C.call(this);this.logSource=U;this.sessionIndex=O;this.Eq="https://play.google.com/log?format=json&hasfast=true";this.V=null;this.X=!1;this.network=null;this.componentId="";this.U=this.Cd=null;this.B=!1;this.pageId=null}; W8W=function(U,O){U.V=O;return U}; NHw=function(U,O){U.network=O;return U}; vyJ=function(U,O){U.U=O}; BHe=function(U){U.B=!0;return U}; Ka=function(U,O,M,S,p,h,J){U=U===void 0?-1:U;O=O===void 0?"":O;M=M===void 0?"":M;S=S===void 0?!1:S;p=p===void 0?"":p;g.C.call(this);this.logSource=U;this.componentId=O;h?O=h:(U=new ZA(U,"0"),U.componentId=O,g.X(this,U),M!==""&&(U.Eq=M),S&&(U.X=!0),p&&W8W(U,p),J&&NHw(U,J),O=U.build());this.U=O}; xse=function(U){this.U=U}; rA=function(U,O,M){this.V=U;this.X=O;this.fields=M||[];this.U=new Map}; Fye=function(U){return U.fields.map(function(O){return O.fieldType})}; fPJ=function(U){return U.fields.map(function(O){return O.fieldName})}; a9=function(U,O){rA.call(this,U,3,O)}; EF=function(U,O){rA.call(this,U,2,O)}; g.La=function(U,O){this.type=U;this.currentTarget=this.target=O;this.defaultPrevented=this.V=!1}; wA=function(U,O){g.La.call(this,U?U.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.U=null;U&&this.init(U,O)}; Ug=function(U){return!(!U||!U[bX7])}; tG7=function(U,O,M,S,p){this.listener=U;this.proxy=null;this.src=O;this.type=M;this.capture=!!S;this.V7=p;this.key=++RZe;this.removed=this.vX=!1}; Og=function(U){U.removed=!0;U.listener=null;U.proxy=null;U.src=null;U.V7=null}; sg=function(U){this.src=U;this.listeners={};this.U=0}; g.gU=function(U,O){var M=O.type;M in U.listeners&&g.OV(U.listeners[M],O)&&(Og(O),U.listeners[M].length==0&&(delete U.listeners[M],U.U--))}; MF=function(U,O,M,S){for(var p=0;p1)));J=J.next)p||(h=J);p&&(M.U==0&&S==1?k4e(M,O):(h?(S=h,S.next==M.X&&(M.X=S),S.next=S.next.next):wa4(M),UkW(M,p,3,O)))}U.B=null}else t7(U,3,O)}; QU=function(U,O){U.V||U.U!=2&&U.U!=3||O3J(U);U.X?U.X.next=O:U.V=O;U.X=O}; sci=function(U,O,M,S){var p=m0(null,null,null);p.U=new g.Yq(function(h,J){p.B=O?function(f){try{var F=O.call(S,f);h(F)}catch(l){J(l)}}:h; p.V=M?function(f){try{var F=M.call(S,f);F===void 0&&f instanceof Xh?J(f):h(F)}catch(l){J(l)}}:J}); p.U.B=U;QU(U,p);return p.U}; t7=function(U,O,M){U.U==0&&(U===M&&(O=3,M=new TypeError("Promise cannot resolve to itself")),U.U=1,Eye(M,U.Myg,U.nXl,U)||(U.D=M,U.U=O,U.B=null,O3J(U),O!=3||M instanceof Xh||gCU(U,M)))}; Eye=function(U,O,M,S){if(U instanceof g.Yq)return oye(U,O,M,S),!0;if(U)try{var p=!!U.$goog_Thenable}catch(J){p=!1}else p=!1;if(p)return U.then(O,M,S),!0;if(g.Vi(U))try{var h=U.then;if(typeof h==="function")return MX4(U,h,O,M,S),!0}catch(J){return M.call(S,J),!0}return!1}; MX4=function(U,O,M,S,p){function h(F){f||(f=!0,S.call(p,F))} function J(F){f||(f=!0,M.call(p,F))} var f=!1;try{O.call(U,J,h)}catch(F){h(F)}}; O3J=function(U){U.C||(U.C=!0,g.NF(U.Um,U))}; wa4=function(U){var O=null;U.V&&(O=U.V,U.V=O.next,O.next=null);U.V||(U.X=null);return O}; UkW=function(U,O,M,S){if(M==3&&O.V&&!O.X)for(;U&&U.G;U=U.B)U.G=!1;if(O.U)O.U.B=null,Spi(O,M,S);else try{O.X?O.B.call(O.context):Spi(O,M,S)}catch(p){pJy.call(null,p)}Cdi(aom,O)}; Spi=function(U,O,M){O==2?U.B.call(U.context,M):U.V&&U.V.call(U.context,M)}; gCU=function(U,O){U.G=!0;g.NF(function(){U.G&&pJy.call(null,O)})}; Xh=function(U){eD.call(this,U)}; g.un=function(U,O){g.$q.call(this);this.pm=U||1;this.YA=O||g.q1;this.Mx=(0,g.U4)(this.xbP,this);this.AI=g.gJ()}; g.qF=function(U,O,M){if(typeof U==="function")M&&(U=(0,g.U4)(U,M));else if(U&&typeof U.handleEvent=="function")U=(0,g.U4)(U.handleEvent,U);else throw Error("Invalid listener argument");return Number(O)>2147483647?-1:g.q1.setTimeout(U,O||0)}; ZM=function(U,O){var M=null;return(new g.Yq(function(S,p){M=g.qF(function(){S(O)},U); M==-1&&p(Error("Failed to schedule timer."))})).yq(function(S){g.q1.clearTimeout(M); throw S;})}; g.KT=function(U){g.C.call(this);this.D=U;this.X=0;this.B=100;this.G=!1;this.V=new Map;this.C=new Set;this.flushInterval=3E4;this.U=new g.un(this.flushInterval);this.U.listen("tick",this.mm,!1,this);g.X(this,this.U)}; hoy=function(U){U.U.enabled||U.U.start();U.X++;U.X>=U.B&&U.mm()}; J1g=function(U,O){return U.C.has(O)?void 0:U.V.get(O)}; y1e=function(U){for(var O=0;O=0){var h=U[M].substring(0,S);p=U[M].substring(S+1)}else h=U[M];O(h,p?f1(p):"")}}}; gO=function(U,O){if(!O)return U;var M=U.indexOf("#");M<0&&(M=U.length);var S=U.indexOf("?");if(S<0||S>M){S=M;var p=""}else p=U.substring(S+1,M);U=[U.slice(0,S),p,U.slice(M)];M=U[1];U[1]=O?M?M+"&"+O:O:M;return U[0]+(U[1]?"?"+U[1]:"")+U[2]}; Ma=function(U,O,M){if(Array.isArray(O))for(var S=0;S=0&&OM)p=M;S+=O.length+1;return f1(U.slice(S,p!==-1?p:0))}; yv=function(U,O){for(var M=U.search(Whg),S=0,p,h=[];(p=dk7(U,S,O,M))>=0;)h.push(U.substring(S,p)),S=Math.min(U.indexOf("&",p)+1||M,M);h.push(U.slice(S));return h.join("").replace(N1y,"$1")}; WZJ=function(U,O,M){return hH(yv(U,O),O,M)}; g.fj=function(U){g.$q.call(this);this.headers=new Map;this.QP=U||null;this.B=!1;this.U=null;this.Y="";this.V=0;this.X="";this.G=this.BA=this.Z=this.ol=!1;this.yP=0;this.C=null;this.sA="";this.D=!1}; vvU=function(U,O,M,S,p,h,J){var f=new g.fj;Ni4.push(f);O&&f.listen("complete",O);f.zg("ready",f.xN);h&&(f.yP=Math.max(0,h));J&&(f.D=J);f.send(U,M,S,p)}; xme=function(U,O){U.B=!1;U.U&&(U.G=!0,U.U.abort(),U.G=!1);U.X=O;U.V=5;BiW(U);F6(U)}; BiW=function(U){U.ol||(U.ol=!0,U.dispatchEvent("complete"),U.dispatchEvent("error"))}; b1y=function(U){if(U.B&&typeof lK!="undefined")if(U.Z&&g.G9(U)==4)setTimeout(U.j1.bind(U),0);else if(U.dispatchEvent("readystatechange"),U.isComplete()){U.getStatus();U.B=!1;try{if($L(U))U.dispatchEvent("complete"),U.dispatchEvent("success");else{U.V=6;try{var O=g.G9(U)>2?U.U.statusText:""}catch(M){O=""}U.X=O+" ["+U.getStatus()+"]";BiW(U)}}finally{F6(U)}}}; F6=function(U,O){if(U.U){U.C&&(clearTimeout(U.C),U.C=null);var M=U.U;U.U=null;O||U.dispatchEvent("ready");try{M.onreadystatechange=null}catch(S){}}}; $L=function(U){var O=U.getStatus();a:switch(O){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var M=!0;break a;default:M=!1}if(!M){if(O=O===0)U=g.wU(1,String(U.Y)),!U&&g.q1.self&&g.q1.self.location&&(U=g.q1.self.location.protocol.slice(0,-1)),O=!Ra4.test(U?U.toLowerCase():"");M=O}return M}; g.G9=function(U){return U.U?U.U.readyState:0}; g.T9=function(U){try{return U.U?U.U.responseText:""}catch(O){return""}}; g.jK=function(U){try{if(!U.U)return null;if("response"in U.U)return U.U.response;switch(U.sA){case "":case "text":return U.U.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in U.U)return U.U.mozResponseArrayBuffer}return null}catch(O){return null}}; g.twJ=function(U){var O={};U=(U.U&&g.G9(U)>=2?U.U.getAllResponseHeaders()||"":"").split("\r\n");for(var M=0;M>1,O),Kj(U,U.length>>1)]}; JN5=function(U){var O=g.D(h4i(U,aO));U=O.next().value;O=O.next().value;return U.toString(16)+O.toString(16)}; yNm=function(U,O){var M=h4i(O);U=new Uint32Array(U.buffer);O=U[0];var S=g.D(M);M=S.next().value;S=S.next().value;for(var p=1;p>>8|J<<24,J+=h|0,J^=f+38293,h=h<<3|h>>>29,h^=J,F=F>>>8|F<<24,F+=f|0,F^=l+38293,f=f<<3|f>>>29,f^=F;h=[h,J];U[p]^=h[0];p+1=M?(globalThis.sessionStorage.removeItem(U),["e"]):["a",new Uint8Array(S.buffer,O+4)]}; EY=function(U,O,M){M=M===void 0?[]:M;this.maxItems=U;this.U=O===void 0?0:O;this.V=M}; lA7=function(U){var O=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!O)return new EY(U);var M=O.split(",");if(M.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new EY(U);O=M.slice(1);O.length===1&&O[0]===""&&(O=[]);M=Number(M[0]);return isNaN(M)||M<0||M>O.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new EY(U)):new EY(U,M,O)}; GUq=function(U,O){this.logger=O;try{var M=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(S){M=!1}M&&(this.index=lA7(U))}; $Wq=function(U,O,M,S,p){var h=U.index?dO(U.logger,function(){return fA7(U.index,JN5(O),M,S,p)},"W"):"u"; U.logger.s8(h)}; TAq=function(U,O,M){var S=g.D(U.index?dO(U.logger,function(){return F_m(JN5(O),M)},"R"):["u"]),p=S.next().value; S=S.next().value;U.logger.XR(p);return S}; Ha5=function(U){function O(){M-=S;M-=p;M^=p>>>13;S-=p;S-=M;S^=M<<8;p-=M;p-=S;p^=S>>>13;M-=S;M-=p;M^=p>>>12;S-=p;S-=M;S^=M<<16;p-=M;p-=S;p^=S>>>5;M-=S;M-=p;M^=p>>>3;S-=p;S-=M;S^=M<<10;p-=M;p-=S;p^=S>>>15} U=j9w(U);for(var M=2654435769,S=2654435769,p=314159265,h=U.length,J=h,f=0;J>=12;J-=12,f+=12)M+=Lj(U,f),S+=Lj(U,f+4),p+=Lj(U,f+8),O();p+=h;switch(J){case 11:p+=U[f+10]<<24;case 10:p+=U[f+9]<<16;case 9:p+=U[f+8]<<8;case 8:S+=U[f+7]<<24;case 7:S+=U[f+6]<<16;case 6:S+=U[f+5]<<8;case 5:S+=U[f+4];case 4:M+=U[f+3]<<24;case 3:M+=U[f+2]<<16;case 2:M+=U[f+1]<<8;case 1:M+=U[f+0]}O();return e4w.toString(p)}; j9w=function(U){for(var O=[],M=0;M>7,U.error.code]);S.set(M,4);return S}; ML=function(U,O,M){Vv.call(this,U);this.X=O;this.clientState=M;this.U="S";this.B="q"}; gD=function(U){return globalThis.TextEncoder?(new TextEncoder).encode(U):g.dJ(U)}; DWy=function(U,O,M){return U instanceof uK?Evw(U,M,O,1):U.JQ(M)}; SO=function(U,O,M){g.C.call(this);var S=this;this.logger=U;this.onError=O;this.state=M;this.D=0;this.V=void 0;this.addOnDisposeCallback(function(){S.U&&(S.U.dispose(),S.U=void 0)})}; dWJ=function(U,O){O=O instanceof ph?O:new ph(5,"TVD:error",O);return U.reportError(O)}; px=function(U,O,M){try{if(U.GY())throw new ph(21,"BNT:disposed");if(!U.U&&U.V)throw U.V;var S,p;return(p=(S=W_w(U,O,M))!=null?S:NAe(U,O,M))!=null?p:vS7(U,O,M)}catch(h){if(!O.ZP)throw dWJ(U,h);return BAm(U,M,h)}}; W_w=function(U,O,M){var S;return(S=U.U)==null?void 0:kL(S,function(){return hQ(U,O)},M,function(p){var h; if(U.U instanceof wO&&((h=O.Bi)==null?0:h.V6))try{var J;(J=U.cache)==null||$Wq(J,hQ(U,O),p,O.Bi.hE,U.Y-120)}catch(f){U.reportError(new ph(24,"ELX:write",f))}})}; NAe=function(U,O,M){var S;if((S=O.Bi)!=null&&S.YR)try{var p,h=(p=U.cache)==null?void 0:TAq(p,hQ(U,O),O.Bi.hE);return h?M?dO(U.logger,function(){return g.cp(h,2)},"a"):h:void 0}catch(J){U.reportError(new ph(23,"RXO:read",J))}}; vS7=function(U,O,M){var S={stack:[],error:void 0,hasError:!1};try{if(!O.Nv)throw new ph(29,"SDF:notready");return kL(zJy(S,new ML(U.logger,U.D,U.state)),function(){return hQ(U,O)},M)}catch(p){S.error=p,S.hasError=!0}finally{cUy(S)}}; BAm=function(U,O,M){var S={stack:[],error:void 0,hasError:!1};try{var p=dWJ(U,M);return kL(zJy(S,new sb(U.logger,p)),function(){return[]},O)}catch(h){S.error=h,S.hasError=!0}finally{cUy(S)}}; hQ=function(U,O){return O.kq?O.kq:O.Nb?dO(U.logger,function(){return O.kq=gD(O.Nb)},"c"):[]}; yp=function(U){var O;SO.call(this,U.x5.Th(),(O=U.onError)!=null?O:function(){},2); var M=this;this.G=0;this.X=new g.AH;this.B=!1;this.x5=U.x5;this.eG=U.eG;this.W6=Object.assign({},xW1,U.W6||{});this.RX=U.RX||!1;if(ba4(U)){var S=this.x5;this.C=function(){return wye(S).catch(function(J){J=M.reportError(new ph(M.B?20:32,"TRG:Disposed",J));M.V=J;var f;(f=M.U)==null||f.dispose();M.U=void 0;M.X.reject(J)})}; UWe(S,function(){return void JQ(M)}); S.Y===2&&JQ(this)}else this.C=U.CmL,JQ(this);var p=this.logger.share();p.F4("o");var h=new cj(p,"o");this.X.promise.then(function(){h.done();p.zs();p.dispose()},function(){return void p.dispose()}); this.addOnDisposeCallback(function(){M.B||(M.V?M.logger.zs():(M.V=M.reportError(new ph(32,"TNP:Disposed")),M.logger.zs(),M.X.reject(M.V)))}); g.X(this,this.logger)}; R41=function(U,O){if(!(O instanceof ph))if(O instanceof rU){var M=Error(O.toString());M.stack=O.stack;O=new ph(11,"EBH:Error",M)}else O=new ph(12,"BSO:Unknown",O);return U.reportError(O)}; JQ=function(U){var O,M,S,p,h,J,f,F,l,G,T,e,H,z,W;return g.A(function(v){switch(v.U){case 1:O=void 0;U.G++;M=new g.AH;U.x5 instanceof qa&&U.x5.X.push(M.promise);if(!U.RX){v.tZ(2);break}S=new g.AH;setTimeout(function(){return void S.resolve()}); return g.Y(v,S.promise,2);case 2:return p=U.logger.share(),g.dW(v,4,5),U.state=5,h={},J=[],g.Y(v,Zu(U.x5.snapshot({Nb:h,tS:J}),U.W6.kOL,function(){return Promise.reject(new ph(15,"MDA:Timeout"))}),7); case 7:f=v.V;if(U.GY())throw new ph(U.B?20:32,"MDA:Disposed");F=J[0];U.state=6;return g.Y(v,Zu(DWy(U.eG,p,f),U.W6.QD,function(){return Promise.reject(new ph(10,"BWB:Timeout"))}),8); case 8:l=v.V;if(U.GY())throw new ph(U.B?20:32,"BWB:Disposed");U.state=7;O=dO(p,function(){var t=tdi(U,l,M,F);t.V.promise.then(function(){return void U.C()}).catch(function(){}); return t},"i"); case 5:g.xe(v);p.dispose();g.Rw(v,6);break;case 4:G=g.Bg(v);(T=O)==null||T.dispose();if(!U.V){e=R41(U,G);M.resolve();var x;if(x=U.x5 instanceof qa&&U.G<2)a:if(G instanceof ph)x=G.code!==32&&G.code!==20&&G.code!==10;else{if(G instanceof rU)switch(G.code){case 2:case 13:case 14:case 4:break;default:x=!1;break a}x=!0}if(x)return H=(1+Math.random()*.25)*(U.B?6E4:1E3),z=setTimeout(function(){return void U.C()},H),U.addOnDisposeCallback(function(){return void clearTimeout(z)}),v.return(); U.V=e}p.wc(U.B?13:14);U.X.reject(U.V);return v.return();case 6:U.state=8,U.G=0,(W=U.U)==null||W.dispose(),U.U=O,U.B=!0,U.X.resolve(),g.Dq(v)}})}; tdi=function(U,O,M,S){var p=Wa(O,2)*1E3;if(p<=0)throw new ph(31,"TTM:Invalid");if(Ns(O,4))return new Ob(U.logger,Ns(O,4),p);if(!Wa(O,3))return new Ub(U.logger,bH(hd(O,1)),p);if(!S)throw new ph(4,"PMD:Undefined");S=S(bH(hd(O,1)));if(!(S instanceof Function))throw new ph(16,"APF:Failed");U.Y=Math.floor((Date.now()+p)/1E3);U=new wO(U.logger,S,Wa(O,3),p);U.addOnDisposeCallback(function(){return void M.resolve()}); return U}; fx=function(){var U=0,O;return function(M){O||(O=new Wj);var S=new ML(O,U,1),p=kL(S,function(){return gD(M)},!0); S.dispose();U++;return p}}; FM=function(U){U=ZP(U);Ct(this);this.o_=U}; YFm=function(U,O,M){this.ED=U;this.xU=O;this.metadata=M}; lL=function(U,O){O=O===void 0?{}:O;this.RXG=U;this.metadata=O;this.status=null}; GD=function(U,O,M,S,p){this.name=U;this.methodType="unary";this.requestType=O;this.responseType=M;this.U=S;this.V=p}; $7=function(U){U=ZP(U);Ct(this);this.o_=U}; TD=function(U){U=ZP(U);Ct(this);this.o_=U}; jO=function(U){U=ZP(U);Ct(this);this.o_=U}; eO=function(U,O){this.D=U.ezA;this.Y=O;this.U=U.xhr;this.B=[];this.G=[];this.C=[];this.X=[];this.V=[];this.D&&mWi(this)}; nSW=function(U,O){var M=new ANw;g.pT(U.U,"complete",function(){if($L(U.U)){var S=g.T9(U.U);if(O&&U.U.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");S=atob(S)}try{var p=U.Y(S)}catch(f){HD(U,zD(new rU(13,"Error when deserializing response data; error: "+f+(", response: "+S)),M));return}S=fhg(U.U.getStatus());cD(U,DN(U));S==0?IAe(U,p):HD(U,zD(new rU(S,"Xhr succeeded but the status code is not 200"),M))}else{S=g.T9(U.U);p=DN(U);if(S){var h=P07(U, S);S=h.code;var J=h.details;h=h.metadata}else S=2,J="Rpc failed due to xhr error. uri: "+String(U.U.Y)+", error code: "+U.U.V+", error: "+U.U.getLastError(),h=p;cD(U,p);HD(U,zD(new rU(S,J,h),M))}})}; mWi=function(U){U.D.P3("data",function(O){if("1"in O){var M=O["1"];try{var S=U.Y(M)}catch(p){HD(U,new rU(13,"Error when deserializing response data; error: "+p+(", response: "+M)))}S&&IAe(U,S)}if("2"in O)for(O=P07(U,O["2"]),M=0;M-1&&U.splice(O,1)}; IAe=function(U,O){for(var M=0;M>4&15).toString(16)+(U&15).toString(16)}; AQ=function(U,O){this.V=this.U=null;this.B=U||null;this.X=!!O}; Qp=function(U){U.U||(U.U=new Map,U.V=0,U.B&&sY(U.B,function(O,M){U.add(f1(O),M)}))}; iaW=function(U,O){Qp(U);O=Cx(U,O);return U.U.has(O)}; g.ZaW=function(U,O,M){U.remove(O);M.length>0&&(U.B=null,U.U.set(Cx(U,O),g.M2(M)),U.V=U.V+M.length)}; Cx=function(U,O){O=String(O);U.X&&(O=O.toLowerCase());return O}; Xde=function(U,O){O&&!U.X&&(Qp(U),U.B=null,U.U.forEach(function(M,S){var p=S.toLowerCase();S!=p&&(this.remove(S),g.ZaW(this,p,M))},U)); U.X=O}; g.K_e=function(U){var O="";g.mZ(U,function(M,S){O+=S;O+=":";O+=M;O+="\r\n"}); return O}; g.XM=function(U,O,M){if(g.iy(M))return U;M=g.K_e(M);if(typeof U==="string")return hH(U,g.yo(O),M);g.PD(U,O,M);return U}; g.uL=function(U){g.C.call(this);this.V=U;this.U={}}; rN5=function(U,O,M,S,p,h){if(Array.isArray(M))for(var J=0;J0&&(O[p]=S)},U); return O}; TUm=function(U){U=T5(U);var O=[];g.mZ(U,function(M,S){S in Object.prototype||typeof M!="undefined"&&O.push([S,":",M].join(""))}); return O}; egq=function(U){lv(U,"od",j4g);lv(U,"opac",jc).U=!0;lv(U,"sbeos",jc).U=!0;lv(U,"prf",jc).U=!0;lv(U,"mwt",jc).U=!0;lv(U,"iogeo",jc)}; HTg=function(){this.U=this.P2=null}; ec=function(){}; z5=function(){if(!HU())throw Error();}; HU=function(){return!(!cU||!cU.performance)}; DZ=function(U){return U?U.passive&&zge()?U:U.capture||!1:!1}; dQ=function(U,O,M,S){return U.addEventListener?(U.addEventListener(O,M,DZ(S)),!0):!1}; WU=function(U){if(U.prerendering)return 3;var O;return(O={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[U.visibilityState||U.webkitVisibilityState||U.mozVisibilityState||""])!=null?O:0}; c7W=function(){}; DF5=function(){return(mL||Ap)&&IJ?IJ.mobile:!NO()&&(nh("iPod")||nh("iPhone")||nh("Android")||nh("IEMobile"))}; NO=function(){return(mL||Ap)&&IJ?!IJ.mobile&&(nh("iPad")||nh("Android")||nh("Silk")):nh("iPad")||nh("Android")&&!nh("Mobile")||nh("Silk")}; vU=function(U){try{return!!U&&U.location.href!=null&&pq7(U,"foo")}catch(O){return!1}}; BU=function(U,O){if(U)for(var M in U)Object.prototype.hasOwnProperty.call(U,M)&&O(U[M],M,U)}; W0q=function(){var U=[];BU(dFi,function(O){U.push(O)}); return U}; NUm=function(U){var O,M;return(M=(O=/https?:\/\/[^\/]+/.exec(U))==null?void 0:O[0])!=null?M:""}; xF5=function(){var U=vq7("IFRAME"),O={};g.T$(BUW(),function(M){U.sandbox&&U.sandbox.supports&&U.sandbox.supports(M)&&(O[M]=!0)}); return O}; vq7=function(U,O){O=O===void 0?document:O;return O.createElement(String(U).toLowerCase())}; bTw=function(U){for(var O=U;U&&U!=U.parent;)U=U.parent,vU(U)&&(O=U);return O}; mFW=function(U){U=U||xn();for(var O=new Rgm(g.q1.location.href,!1),M=null,S=U.length-1,p=S;p>=0;--p){var h=U[p];!M&&tye.test(h.url)&&(M=h);if(h.url&&!h.U){O=h;break}}p=null;h=U.length&&U[S].url;O.depth!==0&&h&&(p=U[S]);return new Ygi(O,p,M)}; xn=function(){var U=g.q1,O=[],M=null;do{var S=U;if(vU(S)){var p=S.location.href;M=S.document&&S.document.referrer||null}else p=M,M=null;O.push(new Rgm(p||""));try{U=S.parent}catch(h){U=null}}while(U&&S!==U);S=0;for(U=O.length-1;S<=U;++S)O[S].depth=U-S;S=g.q1;if(S.location&&S.location.ancestorOrigins&&S.location.ancestorOrigins.length===O.length-1)for(U=1;UO&&(O=M.length);return 3997-O-U.B.length-1}; Yn=function(U,O){this.U=U;this.depth=O}; nqJ=function(){function U(f,F){return f==null?F:f} var O=xn(),M=Math.max(O.length-1,0),S=mFW(O);O=S.U;var p=S.V,h=S.B,J=[];h&&J.push(new Yn([h.url,h.U?2:0],U(h.depth,1)));p&&p!=h&&J.push(new Yn([p.url,2],0));O.url&&O!=h&&J.push(new Yn([O.url,0],U(O.depth,M)));S=g.mV(J,function(f,F){return J.slice(0,J.length-F)}); !O.url||(h||p)&&O!=h||(p=NUm(O.url))&&S.push([new Yn([p,1],U(O.depth,M))]);S.push([]);return g.mV(S,function(f){return Pnq(M,f)})}; Pnq=function(U,O){g.Aj(O,function(p){return p.depth>=0}); var M=IA(O,function(p,h){return Math.max(p,h.depth)},-1),S=MDi(M+2); S[0]=U;g.T$(O,function(p){return S[p.depth+1]=p.U}); return S}; Q4W=function(){var U=U===void 0?nqJ():U;return U.map(function(O){return tj(O)})}; Cn1=function(U){var O=!1;O=O===void 0?!1:O;cU.google_image_requests||(cU.google_image_requests=[]);var M=vq7("IMG",cU.document);O&&(M.attributionSrc="");M.src=U;cU.google_image_requests.push(M)}; PU=function(U){var O="K6";if(U.K6&&U.hasOwnProperty(O))return U.K6;var M=new U;U.K6=M;U.hasOwnProperty(O);return M}; n2=function(){this.V=new c7W;this.U=HU()?new z5:new ec}; Xrw=function(){Qj();var U=cU.document;return!!(U&&U.body&&U.body.getBoundingClientRect&&typeof cU.setInterval==="function"&&typeof cU.clearInterval==="function"&&typeof cU.setTimeout==="function"&&typeof cU.clearTimeout==="function")}; uhe=function(){Qj();return Q4W()}; qgw=function(){}; Qj=function(){var U=PU(qgw);if(!U.U){if(!cU)throw Error("Context has not been set and window is undefined.");U.U=PU(n2)}return U.U}; C2=function(U){U=ZP(U);Ct(this);this.o_=U}; iT5=function(U){this.B=U;this.U=-1;this.V=this.X=0}; XT=function(U,O){return function(){var M=g.m4.apply(0,arguments);if(U.U>-1)return O.apply(null,g.N(M));try{return U.U=U.B.U.now(),O.apply(null,g.N(M))}finally{U.X+=U.B.U.now()-U.U,U.U=-1,U.V+=1}}}; ZTm=function(U,O){this.V=U;this.B=O;this.U=new iT5(U)}; K0W=function(){this.U={}}; aMm=function(){var U=uv().flags,O=r7e;U=U.U[O.key];if(O.valueType==="proto"){try{var M=JSON.parse(U);if(Array.isArray(M))return M}catch(S){}return O.defaultValue}return typeof U===typeof O.defaultValue?U:O.defaultValue}; oqq=function(){this.B=void 0;this.V=this.C=0;this.G=-1;this.Cr=new FT;lv(this.Cr,"mv",Eqe).U=!0;lv(this.Cr,"omid",jc);lv(this.Cr,"epoh",jc).U=!0;lv(this.Cr,"epph",jc).U=!0;lv(this.Cr,"umt",jc).U=!0;lv(this.Cr,"phel",jc).U=!0;lv(this.Cr,"phell",jc).U=!0;lv(this.Cr,"oseid",L0U).U=!0;var U=this.Cr;U.U.sloi||(U.U.sloi=new yj);U.U.sloi.U=!0;lv(this.Cr,"mm",qO);lv(this.Cr,"ovms",Vym).U=!0;lv(this.Cr,"xdi",jc).U=!0;lv(this.Cr,"amp",jc).U=!0;lv(this.Cr,"prf",jc).U=!0;lv(this.Cr,"gtx",jc).U=!0;lv(this.Cr, "mvp_lv",jc).U=!0;lv(this.Cr,"ssmol",jc).U=!0;lv(this.Cr,"fmd",jc).U=!0;lv(this.Cr,"gen204simple",jc);this.U=new ZTm(Qj(),this.Cr);this.X=!1;this.flags=new K0W}; uv=function(){return PU(oqq)}; kb7=function(U,O,M,S){if(Math.random()<(S||U.U))try{if(M instanceof bv)var p=M;else p=new bv,BU(M,function(J,f){var F=p,l=F.X++;J=RA(f,J);F.U.push(l);F.V[l]=J}); var h=p.kI(U.V,"pagead2.googlesyndication.com","/pagead/gen_204?id="+O+"&");h&&(Qj(),Cn1(h))}catch(J){}}; wr4=function(U,O,M){M=M===void 0?{}:M;this.error=U;this.meta=M;this.context=O.context;this.msg=O.message||"";this.id=O.id||"jserror"}; Uae=function(){var U=U===void 0?g.q1:U;return(U=U.performance)&&U.now&&U.timing?Math.floor(U.now()+U.timing.navigationStart):g.gJ()}; OjU=function(){var U=U===void 0?g.q1:U;return(U=U.performance)&&U.now?U.now():null}; sOJ=function(U,O,M){this.label=U;this.type=O;this.value=M;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; ZZ=function(){var U=window;this.events=[];this.V=U||g.q1;var O=null;U&&(U.google_js_reporting_queue=U.google_js_reporting_queue||[],this.events=U.google_js_reporting_queue,O=U.google_measure_js_timing);this.U=iv()||(O!=null?O:Math.random()<1)}; gLg=function(U){U&&K2&&iv()&&(K2.clearMarks("goog_"+U.label+"_"+U.uniqueId+"_start"),K2.clearMarks("goog_"+U.label+"_"+U.uniqueId+"_end"))}; MKi=function(){var U=rQ;this.U=aA;this.UZ="jserror";this.t7=!0;this.OL=null;this.V=this.cS;this.RT=U===void 0?null:U}; SYw=function(U,O,M){var S=EJ;return XT(uv().U.U,function(){try{if(S.RT&&S.RT.U){var p=S.RT.start(U.toString(),3);var h=O();S.RT.end(p)}else h=O()}catch(f){var J=S.t7;try{gLg(p),J=S.V(U,new L2(Vj(f)),void 0,M)}catch(F){S.cS(217,F)}if(!J)throw f;}return h})()}; oA=function(U,O,M,S){return XT(uv().U.U,function(){var p=g.m4.apply(0,arguments);return SYw(U,function(){return O.apply(M,p)},S)})}; Vj=function(U){var O=U.toString();U.name&&O.indexOf(U.name)==-1&&(O+=": "+U.name);U.message&&O.indexOf(U.message)==-1&&(O+=": "+U.message);if(U.stack)a:{U=U.stack;var M=O;try{U.indexOf(M)==-1&&(U=M+"\n"+U);for(var S;U!=S;)S=U,U=U.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");O=U.replace(/\n */g,"\n");break a}catch(p){O=M;break a}O=void 0}return O}; L2=function(U){wr4.call(this,Error(U),{message:U})}; pjg=function(){cU&&typeof cU.google_measure_js_timing!="undefined"&&(cU.google_measure_js_timing||rQ.disable())}; hcy=function(U){EJ.OL=function(O){g.T$(U,function(M){M(O)})}}; JHW=function(U,O){return SYw(U,O)}; kn=function(U,O){return oA(U,O)}; wQ=function(U,O,M,S){EJ.cS(U,O,M,S)}; Uy=function(){return Date.now()-yHW}; fue=function(){var U=uv().B,O=Oy>=0?Uy()-Oy:-1,M=sy?Uy()-go:-1,S=M0>=0?Uy()-M0:-1;if(U==947190542)return 100;if(U==79463069)return 200;U=[2E3,4E3];var p=[250,500,1E3];wQ(637,Error(),.001);var h=O;M!=-1&&M1500&&S<4E3?500:J}; S3=function(U,O,M,S){this.top=U;this.right=O;this.bottom=M;this.left=S}; pC=function(U){return U.right-U.left}; h6=function(U,O){return U==O?!0:U&&O?U.top==O.top&&U.right==O.right&&U.bottom==O.bottom&&U.left==O.left:!1}; J6=function(U,O,M){O instanceof g.xv?(U.left+=O.x,U.right+=O.x,U.top+=O.y,U.bottom+=O.y):(U.left+=O,U.right+=O,typeof M==="number"&&(U.top+=M,U.bottom+=M));return U}; yM=function(U,O,M){var S=new S3(0,0,0,0);this.time=U;this.volume=null;this.B=O;this.U=S;this.V=M}; fC=function(U,O,M,S,p,h,J,f){this.X=U;this.D=O;this.B=M;this.C=S;this.U=p;this.G=h;this.V=J;this.Y=f}; luq=function(U){var O=U!==U.top,M=U.top===bTw(U),S=-1,p=0;if(O&&M&&U.top.mraid){S=3;var h=U.top.mraid}else S=(h=U.mraid)?O?M?2:1:0:-1;h&&(h.IS_GMA_SDK||(p=2),icW(FAw,function(J){return typeof h[J]==="function"})||(p=1)); return{Oi:h,compatibility:p,CUy:S}}; G9w=function(){var U=window.document;return U&&typeof U.elementFromPoint==="function"}; $aW=function(U,O,M){if(U&&O!==null&&O!=O.top){if(!O.top)return new g.R1(-12245933,-12245933);O=O.top}try{return(M===void 0?0:M)?(new g.R1(O.innerWidth,O.innerHeight)).round():MG4(O||window).round()}catch(S){return new g.R1(-12245933,-12245933)}}; F0=function(U,O,M){try{if(U){if(!O.top)return new S3(-12245933,-12245933,-12245933,-12245933);O=O.top}var S=$aW(U,O,M),p=S.height,h=S.width;if(h===-12245933)return new S3(h,h,h,h);var J=paJ(sF(O.document).U),f=J.x,F=J.y;return new S3(F,f+h,F+p,f)}catch(l){return new S3(-12245933,-12245933,-12245933,-12245933)}}; g.l4=function(U,O,M,S){this.left=U;this.top=O;this.width=M;this.height=S}; GC=function(U,O){return U==O?!0:U&&O?U.left==O.left&&U.width==O.width&&U.top==O.top&&U.height==O.height:!1}; g.j3=function(U,O,M){if(typeof O==="string")(O=$s(U,O))&&(U.style[O]=M);else for(var S in O){M=U;var p=O[S],h=$s(M,S);h&&(M.style[h]=p)}}; $s=function(U,O){var M=TOw[O];if(!M){var S=PUU(O);M=S;U.style[S]===void 0&&(S=(g.yG?"Webkit":Hc?"Moz":null)+Qpm(S),U.style[S]!==void 0&&(M=S));TOw[O]=M}return M}; g.zC=function(U,O){var M=U.style[PUU(O)];return typeof M!=="undefined"?M:U.style[$s(U,O)]||""}; cc=function(U,O){var M=OF(U);return M.defaultView&&M.defaultView.getComputedStyle&&(U=M.defaultView.getComputedStyle(U,null))?U[O]||U.getPropertyValue(O)||"":""}; Dr=function(U,O){return cc(U,O)||(U.currentStyle?U.currentStyle[O]:null)||U.style&&U.style[O]}; g.N0=function(U,O,M){if(O instanceof g.xv){var S=O.x;O=O.y}else S=O,O=M;U.style.left=g.Wc(S,!1);U.style.top=g.Wc(O,!1)}; vc=function(U){try{return U.getBoundingClientRect()}catch(O){return{left:0,top:0,right:0,bottom:0}}}; jOU=function(U){var O=OF(U),M=Dr(U,"position"),S=M=="fixed"||M=="absolute";for(U=U.parentNode;U&&U!=O;U=U.parentNode)if(U.nodeType==11&&U.host&&(U=U.host),M=Dr(U,"position"),S=S&&M=="static"&&U!=O.documentElement&&U!=O.body,!S&&(U.scrollWidth>U.clientWidth||U.scrollHeight>U.clientHeight||M=="fixed"||M=="absolute"||M=="relative"))return U;return null}; g.Bc=function(U){var O=OF(U),M=new g.xv(0,0);if(U==(O?OF(O):document).documentElement)return M;U=vc(U);O=paJ(sF(O).U);M.x=U.left+O.x;M.y=U.top+O.y;return M}; HjU=function(U,O){var M=new g.xv(0,0),S=fa(OF(U));if(!pq7(S,"parent"))return M;do{var p=S==O?g.Bc(U):eci(U);M.x+=p.x;M.y+=p.y}while(S&&S!=O&&S!=S.parent&&(U=S.frameElement)&&(S=S.parent));return M}; g.xs=function(U,O){U=zcJ(U);O=zcJ(O);return new g.xv(U.x-O.x,U.y-O.y)}; eci=function(U){U=vc(U);return new g.xv(U.left,U.top)}; zcJ=function(U){if(U.nodeType==1)return eci(U);U=U.changedTouches?U.changedTouches[0]:U;return new g.xv(U.clientX,U.clientY)}; g.b4=function(U,O,M){if(O instanceof g.R1)M=O.height,O=O.width;else if(M==void 0)throw Error("missing height argument");U.style.width=g.Wc(O,!0);U.style.height=g.Wc(M,!0)}; g.Wc=function(U,O){typeof U=="number"&&(U=(O?Math.round(U):U)+"px");return U}; g.Rl=function(U){var O=cHi;if(Dr(U,"display")!="none")return O(U);var M=U.style,S=M.display,p=M.visibility,h=M.position;M.visibility="hidden";M.position="absolute";M.display="inline";U=O(U);M.display=S;M.position=h;M.visibility=p;return U}; cHi=function(U){var O=U.offsetWidth,M=U.offsetHeight,S=g.yG&&!O&&!M;return(O===void 0||S)&&U.getBoundingClientRect?(U=vc(U),new g.R1(U.right-U.left,U.bottom-U.top)):new g.R1(O,M)}; g.t6=function(U,O){U.style.display=O?"":"none"}; Ys=function(U,O){O=Math.pow(10,O);return Math.floor(U*O)/O}; DaW=function(U){return new S3(U.top,U.right,U.bottom,U.left)}; da7=function(U){var O=U.top||0,M=U.left||0;return new S3(O,M+(U.width||0),O+(U.height||0),M)}; m3=function(U){return U!=null&&U>=0&&U<=1}; WAy=function(){var U=g.YE();return U?A6("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(O){return xE(U,O)})||xE(U,"OMI/")&&!xE(U,"XiaoMi/")?!0:xE(U,"Presto")&&xE(U,"Linux")&&!xE(U,"X11")&&!xE(U,"Android")&&!xE(U,"Mobi"):!1}; NOe=function(){this.B=!vU(cU.top);this.isMobileDevice=NO()||DF5();var U=xn();this.domain=U.length>0&&U[U.length-1]!=null&&U[U.length-1].url!=null?g.UY(U[U.length-1].url)||"":"";this.U=new S3(0,0,0,0);this.X=new g.R1(0,0);this.G=new g.R1(0,0);this.D=new S3(0,0,0,0);this.frameOffset=new g.xv(0,0);this.C=0;this.Y=!1;this.V=!(!cU||!luq(cU).Oi);this.update(cU)}; vL4=function(U,O){O&&O.screen&&(U.X=new g.R1(O.screen.width,O.screen.height))}; BOW=function(U,O){a:{var M=U.U?new g.R1(pC(U.U),U.U.getHeight()):new g.R1(0,0);O=O===void 0?cU:O;O!==null&&O!=O.top&&(O=O.top);var S=0,p=0;try{var h=O.document,J=h.body,f=h.documentElement;if(h.compatMode=="CSS1Compat"&&f.scrollHeight)S=f.scrollHeight!=M.height?f.scrollHeight:f.offsetHeight,p=f.scrollWidth!=M.width?f.scrollWidth:f.offsetWidth;else{var F=f.scrollHeight,l=f.scrollWidth,G=f.offsetHeight,T=f.offsetWidth;f.clientHeight!=G&&(F=J.scrollHeight,l=J.scrollWidth,G=J.offsetHeight,T=J.offsetWidth); F>M.height?F>G?(S=F,p=l):(S=G,p=T):F0||U.Y)return!0;U=Qj().V.isVisible();var O=WU(Pc)===0;return U||O}; Il=function(){return PU(NOe)}; q0=function(U){this.B=U;this.V=0;this.U=null}; i4=function(U,O,M){this.B=U;this.TY=M===void 0?"na":M;this.G=[];this.isInitialized=!1;this.X=new yM(-1,!0,this);this.U=this;this.Y=O;this.yP=this.Z=!1;this.QP="uk";this.sA=!1;this.C=!0}; Zr=function(U,O){g.kE(U.G,O)||(U.G.push(O),O.NE(U.U),O.Av(U.X),O.AB()&&(U.Z=!0))}; xaU=function(U){U=U.U;U.d9();U.bY();var O=Il();O.D=F0(!1,U.B,O.isMobileDevice);BOW(Il(),U.B);U.X.U=U.xm()}; bjW=function(U){U.Z=U.G.length?A6(U.G,function(O){return O.AB()}):!1}; RcU=function(U){var O=g.M2(U.G);g.T$(O,function(M){M.Av(U.X)})}; KC=function(U){var O=g.M2(U.G);g.T$(O,function(M){M.NE(U.U)}); U.U!=U||RcU(U)}; ro=function(U,O,M,S){this.element=U;this.U=new S3(0,0,0,0);this.B=null;this.C=new S3(0,0,0,0);this.V=O;this.Cr=M;this.sA=S;this.BA=!1;this.timestamp=-1;this.Z=new fC(O.X,this.element,this.U,new S3(0,0,0,0),0,0,Uy(),0);this.G=void 0}; tKJ=function(U,O){return U.G?new S3(Math.max(O.top+U.G.top,O.top),Math.min(O.left+U.G.right,O.right),Math.min(O.top+U.G.bottom,O.bottom),Math.max(O.left+U.G.left,O.left)):O.clone()}; al=function(U){this.G=!1;this.U=U;this.X=function(){}}; YYW=function(U,O,M){this.B=M===void 0?0:M;this.V=U;this.U=O==null?"":O}; mam=function(U){switch(Math.trunc(U.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; AH4=function(U,O){return U.BO.B?!1:U.VO.V?!1:typeof U.Utypeof O.U?!1:U.U0?S[M]-S[M-1]:S[M]})}; MN=function(){this.V=new ks;this.TY=this.Ka=0;this.hZ=new ol;this.ol=this.D=-1;this.NL=1E3;this.pE=new ks([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.QP=this.BA=-1}; S4=function(U,O){return Zje(U.V,O===void 0?!0:O)}; pz=function(U,O,M,S){var p=p===void 0?!1:p;M=oA(S,M);dQ(U,O,M,{capture:p})}; JS=function(U,O){O=hS(O);return O===0?0:hS(U)/O}; hS=function(U){return Math.max(U.bottom-U.top,0)*Math.max(U.right-U.left,0)}; aum=function(U,O){if(!U||!O)return!1;for(var M=0;U!==null&&M++<100;){if(U===O)return!0;try{if(U=U.parentElement||U){var S=OF(U),p=S&&fa(S),h=p&&p.frameElement;h&&(U=h)}}catch(J){break}}return!1}; ELe=function(U,O,M){if(!U||!O)return!1;O=J6(U.clone(),-O.left,-O.top);U=(O.left+O.right)/2;O=(O.top+O.bottom)/2;vU(window.top)&&window.top&&window.top.document&&(window=window.top);if(!G9w())return!1;U=window.document.elementFromPoint(U,O);if(!U)return!1;O=(O=(O=OF(M))&&O.defaultView&&O.defaultView.frameElement)&&aum(O,U);var S=U===M;U=!S&&U&&DA(U,function(p){return p===M}); return!(O||S||U)}; LAg=function(U,O,M,S){return Il().B?!1:pC(U)<=0||U.getHeight()<=0?!0:M&&S?JHW(208,function(){return ELe(U,O,M)}):!1}; yz=function(U,O,M){g.C.call(this);this.position=VKW.clone();this.CC=this.Bv();this.PS=-2;this.timeCreated=Date.now();this.zo=-1;this.Eh=O;this.rW=null;this.Co=!1;this.Z9=null;this.opacity=-1;this.requestSource=M;this.rLA=!1;this.iZ=function(){}; this.Qm=function(){}; this.T4=new HTg;this.T4.P2=U;this.T4.U=U;this.dk=!1;this.E3={xn:null,zT:null};this.S3=!0;this.H6=null;this.BH=this.pVn=!1;uv().C++;this.bB=this.lG();this.Eo=-1;this.iV=null;this.hasCompleted=this.zna=!1;this.Cr=new FT;egq(this.Cr);oLw(this);this.requestSource==1?G5(this.Cr,"od",1):G5(this.Cr,"od",0)}; oLw=function(U){U=U.T4.P2;var O;if(O=U&&U.getAttribute)O=/-[a-z]/.test("googleAvInapp")?!1:k9U&&U.dataset?"googleAvInapp"in U.dataset:U.hasAttribute?U.hasAttribute("data-"+njq()):!!U.getAttribute("data-"+njq());O&&(Il().V=!0)}; fz=function(U,O){O!=U.BH&&(U.BH=O,U=Il(),O?U.C++:U.C>0&&U.C--)}; wjJ=function(U,O){if(U.iV){if(O.getName()===U.iV.getName())return;U.iV.dispose();U.iV=null}O=O.create(U.T4.U,U.Cr,U.AB());if(O=O!=null&&O.observe()?O:null)U.iV=O}; ULe=function(U,O,M){if(!U.rW||U.Eh==-1||O.V===-1||U.rW.V===-1)return 0;U=O.V-U.rW.V;return U>M?0:U}; Oxy=function(U,O,M){if(U.iV){U.iV.hT();var S=U.iV.Z,p=S.X,h=p.U;if(S.C!=null){var J=S.B;U.Z9=new g.xv(J.left-h.left,J.top-h.top)}h=U.qK()?Math.max(S.U,S.G):S.U;J={};p.volume!==null&&(J.volume=p.volume);p=U.cP(S);U.rW=S;U.PA(h,O,M,!1,J,p,S.Y)}}; st5=function(U){if(U.Co&&U.H6){var O=$n(U.Cr,"od")==1,M=Il().U,S=U.H6,p=U.iV?U.iV.getName():"ns",h=U.Z9,J=new g.R1(pC(M),M.getHeight());M=U.qK();U={jAd:p,Z9:h,k5A:J,qK:M,HT:U.bB.HT,CBd:O};if(O=S.V){O.hT();p=O.Z;h=p.X.U;var f=J=null;p.C!=null&&h&&(J=p.B,J=new g.xv(J.left-h.left,J.top-h.top),f=new g.R1(h.right-h.left,h.bottom-h.top));p=M?Math.max(p.U,p.G):p.U;M={jAd:O.getName(),Z9:J,k5A:f,qK:M,CBd:!1,HT:p}}else M=null;M&&u64(S,U,M)}}; g75=function(U,O,M){O&&(U.iZ=O);M&&(U.Qm=M)}; g.FO=function(){}; g.lM=function(U){return{value:U,done:!1}}; MO1=function(){this.X=this.U=this.B=this.V=this.G=0}; Sbq=function(U){var O={};var M=g.gJ()-U.G;O=(O.ptlt=M,O);(M=U.V)&&(O.pnk=M);(M=U.B)&&(O.pnc=M);(M=U.X)&&(O.pnmm=M);(U=U.U)&&(O.pns=U);return O}; pDi=function(){p2.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; GM=function(U){return m3(U.volume)&&U.volume>0}; $l=function(U,O,M,S){M=M===void 0?!0:M;S=S===void 0?function(){return!0}:S; return function(p){var h=p[U];if(Array.isArray(h)&&S(p))return hzi(h,O,M)}}; TM=function(U,O){return function(M){return O(M)?M[U]:void 0}}; JQq=function(U){return function(O){for(var M=0;M0?h[p-1]+1:0,S+1).reduce(function(J,f){return J+f},0)})}; yQq=function(){this.V=this.U=""}; fNe=function(){}; e4=function(U,O){var M={};if(U!==void 0)if(O!=null)for(var S in O){var p=O[S];S in Object.prototype||p!=null&&(M[S]=typeof p==="function"?p(U):U[p])}else g.Vo(M,U);return VM(LC(new Ey,M))}; F1w=function(){var U={};this.V=(U.vs=[1,0],U.vw=[0,1],U.am=[2,2],U.a=[4,4],U.f=[8,8],U.bm=[16,16],U.b=[32,32],U.avw=[0,64],U.avs=[64,0],U.pv=[256,256],U.gdr=[0,512],U.p=[0,1024],U.r=[0,2048],U.m=[0,4096],U.um=[0,8192],U.ef=[0,16384],U.s=[0,32768],U.pmx=[0,16777216],U.mut=[33554432,33554432],U.umutb=[67108864,67108864],U.tvoff=[134217728,134217728],U);this.U={};for(var O in this.V)this.V[O][1]>0&&(this.U[O]=0);this.B=0}; Hh=function(U,O){var M=U.V[O],S=M[1];U.B+=M[0];S>0&&U.U[O]==0&&(U.U[O]=1)}; lN5=function(U){var O=g.C1(U.V),M=0,S;for(S in U.U)g.kE(O,S)&&U.U[S]==1&&(M+=U.V[S][1],U.U[S]=2);return M}; GDy=function(U){var O=0,M;for(M in U.U){var S=U.U[M];if(S==1||S==2)O+=U.V[M][1]}return O}; zM=function(){this.U=this.V=0}; ch=function(){MN.call(this);this.B=new ol;this.HA=this.Z=this.sA=0;this.Y=-1;this.w7=new ol;this.G=new ol;this.U=new ks;this.C=this.X=-1;this.yP=new ol;this.NL=2E3;this.Ca=new zM;this.Rl=new zM;this.Yy=new zM}; DJ=function(U,O,M){var S=U.HA;sy||M||U.Y==-1||(S+=O-U.Y);return S}; $Lw=function(){this.B=!1}; dh=function(U,O){this.B=!1;this.X=U;this.Z=O;this.G=0}; Wh=function(U,O){dh.call(this,U,O);this.D=[]}; TDq=function(){}; NN=function(){}; vh=function(U,O,M,S){ro.call(this,U,O,M,S)}; Bh=function(U,O,M){ro.call(this,null,U,O,M);this.Y=U.isActive();this.D=0}; xl=function(U){return[U.top,U.left,U.bottom,U.right]}; bM=function(U,O,M,S,p,h){h=h===void 0?new NN:h;yz.call(this,O,M,S);this.BI=p;this.Kc=0;this.IL={};this.ZV=new F1w;this.LQ={};this.Uv="";this.Yy=null;this.Qa=!1;this.U=[];this.Gs=h.V();this.C=h.B();this.X=null;this.B=-1;this.TY=this.Z=void 0;this.ol=this.yP=0;this.QP=-1;this.NL=this.Rl=!1;this.sA=this.Y=this.V=this.fL=this.r7=0;new ks;this.Ca=this.HA=0;this.hZ=-1;this.z4=0;this.D=g.Br;this.BA=[this.Bv()];this.hG=2;this.XX={};this.XX.pause="p";this.XX.resume="r";this.XX.skip="s";this.XX.mute="m";this.XX.unmute= "um";this.XX.exitfullscreen="ef";this.G=null;this.pE=this.w7=!1;this.AG=Math.floor(Date.now()/1E3-1704067200);this.Ka=0}; RZ=function(U){U.hasCompleted=!0;U.z4!=0&&(U.z4=3)}; tS=function(U){return U===void 0?U:Number(U)?Ys(U,3):0}; Yl=function(U,O){return U.BA[O!=null&&OMath.max(1E4,U.B/3)?0:O);var M=U.D(U)||{};M=M.currentTime!==void 0?M.currentTime:U.yP;var S=M-U.yP,p=0;S>=0?(U.ol+=O,U.Ca+=Math.max(O-S,0),p=Math.min(S,U.ol)):U.HA+=Math.abs(S);S!=0&&(U.ol=0);U.hZ==-1&&S>0&&(U.hZ=M0>=0?Uy()-M0:-1);U.yP=M;return p}; HxW=function(U,O){A6(U.C,function(M){return M.X==O.X})||U.C.push(O)}; zzU=function(U){var O=O2(U.kF().U,1);return ml(U,O)}; ml=function(U,O,M){return O>=15E3?!0:U.Rl?(M===void 0?0:M)?!0:U.B>0?O>=U.B/2:U.QP>0?O>=U.QP:!1:!1}; cQe=function(U){var O=Ys(U.bB.HT,2),M=U.ZV.B,S=U.bB,p=Yl(U),h=tS(p.X),J=tS(p.C),f=tS(S.volume),F=Ys(p.D,2),l=Ys(p.ol,2),G=Ys(S.HT,2),T=Ys(p.BA,2),e=Ys(p.QP,2);S=Ys(S.n9,2);var H=U.Uf().clone().round();U=U.iV&&U.iV.B?(U.iV?U.iV.B:null).clone().round():null;p=S4(p,!1);return{T30:O,Gg:M,kh:h,tp:J,N6:f,D9:F,fC:l,HT:G,LC:T,dW:e,n9:S,position:H,VY:U,HE:p}}; dLU=function(U,O){DLy(U.U,O,function(){return{T30:0,Gg:void 0,kh:-1,tp:-1,N6:-1,D9:-1,fC:-1,HT:-1,LC:-1,dW:-1,n9:-1,position:void 0,VY:void 0,HE:[]}}); U.U[O]=cQe(U)}; DLy=function(U,O,M){for(var S=U.length;S0?1:0;T.atos= wo(l.U);T.ssb=wo(l.pE,!1);T.amtos=Zje(l.U,!1);T.uac=U.r7;T.vpt=l.B.U;G=="nio"&&(T.nio=1,T.avms="nio");T.gmm="4";T.gdr=ml(U,l.B.U,!0)?1:0;T.efpf=U.hG;if(G=="gsv"||G=="nis")G=U.iV,G.D>0&&(T.nnut=G.D);T.tcm=jt1(U);T.nmt=U.HA;T.bt=U.Ca;T.pst=U.hZ;T.vpaid=U.Z;T.dur=U.B;T.vmtime=U.yP;T.is=U.ZV.B;U.U.length>=1&&(T.i0=U.U[0].Gg,T.a0=[U.U[0].N6],T.c0=[U.U[0].HT],T.ss0=[U.U[0].n9],G=U.U[0].position,h=U.U[0].VY,T.p0=G?xl(G):void 0,G&&h&&!h6(h,G)&&(T.cp0=xl(h)));U.U.length>=2&&(T.i1=U.U[1].Gg,T.a1=Ph(U.U[1].kh, U.U[1].N6,U.U[1].tp),T.c1=Ph(U.U[1].D9,U.U[1].HT,U.U[1].fC),T.ss1=Ph(U.U[1].LC,U.U[1].n9,U.U[1].dW),G=U.U[1].position,h=U.U[1].VY,T.p1=G?xl(G):void 0,G&&h&&!h6(h,G)&&(T.cp1=xl(h)),T.mtos1=U.U[1].HE);U.U.length>=3&&(T.i2=U.U[2].Gg,T.a2=Ph(U.U[2].kh,U.U[2].N6,U.U[2].tp),T.c2=Ph(U.U[2].D9,U.U[2].HT,U.U[2].fC),T.ss2=Ph(U.U[2].LC,U.U[2].n9,U.U[2].dW),G=U.U[2].position,h=U.U[2].VY,T.p2=G?xl(G):void 0,G&&h&&!h6(h,G)&&(T.cp2=xl(h)),T.mtos2=U.U[2].HE);U.U.length>=4&&(T.i3=U.U[3].Gg,T.a3=Ph(U.U[3].kh,U.U[3].N6, U.U[3].tp),T.c3=Ph(U.U[3].D9,U.U[3].HT,U.U[3].fC),T.ss3=Ph(U.U[3].LC,U.U[3].n9,U.U[3].dW),G=U.U[3].position,h=U.U[3].VY,T.p3=G?xl(G):void 0,G&&h&&!h6(h,G)&&(T.cp3=xl(h)),T.mtos3=U.U[3].HE);T.cs=GDy(U.ZV);O&&(T.ic=lN5(U.ZV),T.dvpt=l.B.V,T.dvs=gh(l.V,.5),T.dfvs=gh(l.V,1),T.davs=gh(l.U,.5),T.dafvs=gh(l.U,1),M&&(l.B.V=0,KA1(l.V),KA1(l.U)),U.Ou()&&(T.dtos=l.sA,T.dav=l.Z,T.dtoss=U.Kc+1,M&&(l.sA=0,l.Z=0,U.Kc++)),T.dat=l.G.V,T.dft=l.yP.V,M&&(l.G.V=0,l.yP.V=0));T.ps=[f.G.width,f.G.height];T.bs=[pC(f.U),f.U.getHeight()]; T.scs=[f.X.width,f.X.height];T.dom=f.domain;U.fL&&(T.vds=U.fL);if(U.C.length>0||U.Gs)O=g.M2(U.C),U.Gs&&O.push(U.Gs),T.pings=g.mV(O,function(e){return e.toString()}); O=g.mV(g.j4(U.C,function(e){return e.C()}),function(e){return e.getId()}); Uyy(O);T.ces=O;U.V&&(T.vmer=U.V);U.Y&&(T.vmmk=U.Y);U.sA&&(T.vmiec=U.sA);T.avms=U.iV?U.iV.getName():"ns";U.iV&&g.Vo(T,U.iV.yT());S?(T.c=Ys(U.bB.HT,2),T.ss=Ys(U.bB.n9,2)):T.tth=Uy()-BDi;T.mc=Ys(l.ol,2);T.nc=Ys(l.D,2);T.mv=tS(l.C);T.nv=tS(l.X);T.lte=Ys(U.PS,2);S=Yl(U,p);S4(l);T.qmtos=S4(S);T.qnc=Ys(S.D,2);T.qmv=tS(S.C);T.qnv=tS(S.X);T.qas=S.X>0?1:0;T.qi=U.Uv;T.avms||(T.avms="geo");T.psm=l.Ca.U;T.psv=l.Ca.getValue();T.psfv=l.Rl.getValue();T.psa=l.Yy.getValue();F=TUm(F.Cr);F.length&&(T.veid=F);U.G&&g.Vo(T, Sbq(U.G));T.avas=U.Yd();T.vs=U.wN();T.co=xL7(U);T.tm=l.Ka;T.tu=l.TY;return T}; W1U=function(U,O){if(g.kE(bx4,O))return!0;var M=U.IL[O];return M!==void 0?(U.IL[O]=!0,!M):!1}; xL7=function(U){var O=U.Ka.toString(10).padStart(2,"0");O=""+U.AG+O;U.Ka<99&&U.Ka++;return O}; tOg=function(){this.U={};var U=fa();nz(this,U,document);var O=Rzw();try{if("1"==O){for(var M=U.parent;M!=U.top;M=M.parent)nz(this,M,M.document);nz(this,U.top,U.top.document)}}catch(S){}}; Rzw=function(){var U=document.documentElement;try{if(!vU(fa().top))return"2";var O=[],M=fa(U.ownerDocument);for(U=M;U!=M.top;U=U.parent)if(U.frameElement)O.push(U.frameElement);else break;return O&&O.length!=0?"1":"0"}catch(S){return"2"}}; nz=function(U,O,M){pz(M,"mousedown",function(){return Ybe(U)},301); pz(O,"scroll",function(){return mLe(U)},302); pz(M,"touchmove",function(){return AQU(U)},303); pz(M,"mousemove",function(){return IN4(U)},304); pz(M,"keydown",function(){return PLW(U)},305)}; Ybe=function(U){g.mZ(U.U,function(O){O.B>1E5||++O.B})}; mLe=function(U){g.mZ(U.U,function(O){O.U>1E5||++O.U})}; AQU=function(U){g.mZ(U.U,function(O){O.U>1E5||++O.U})}; PLW=function(U){g.mZ(U.U,function(O){O.V>1E5||++O.V})}; IN4=function(U){g.mZ(U.U,function(O){O.X>1E5||++O.X})}; n74=function(){this.U=[];this.V=[]}; Qz=function(U,O){return g.VD(U.U,function(M){return M.Uv==O})}; Qty=function(U,O){return O?g.VD(U.U,function(M){return M.T4.P2==O}):null}; CL1=function(U,O){return g.VD(U.V,function(M){return M.IE()==2&&M.Uv==O})}; XO=function(){var U=Cz;return U.U.length==0?U.V:U.V.length==0?U.U:g.g3(U.V,U.U)}; XD1=function(U,O){U=O.IE()==1?U.U:U.V;var M=Lh(U,function(S){return S==O}); return M!=-1?(U.splice(M,1),O.iV&&O.iV.unobserve(),O.dispose(),!0):!1}; uMg=function(U){var O=Cz;if(XD1(O,U)){switch(U.IE()){case 0:var M=function(){return null}; case 2:M=function(){return CL1(O,U.Uv)}; break;case 1:M=function(){return Qz(O,U.Uv)}}for(var S=M();S;S=M())XD1(O,S)}}; qbw=function(U){var O=Cz;U=g.j4(U,function(M){return!Qty(O,M.T4.P2)}); O.U.push.apply(O.U,g.N(U))}; ixW=function(U){var O=[];g.T$(U,function(M){A6(Cz.U,function(S){return S.T4.P2===M.T4.P2&&S.Uv===M.Uv})||(Cz.U.push(M),O.push(M))})}; uM=function(){this.U=this.V=null}; Zxi=function(U,O){function M(S,p){O(S,p)} if(U.V==null)return!1;U.U=g.VD(U.V,function(S){return S!=null&&S.Od()}); U.U&&(U.U.init(M)?xaU(U.U.U):O(U.U.U.H_(),U.U));return U.U!=null}; qN=function(U){U=K1m(U);al.call(this,U.length?U[U.length-1]:new i4(cU,0));this.B=U;this.V=null}; K1m=function(U){if(!U.length)return[];U=(0,g.j4)(U,function(M){return M!=null&&M.Ft()}); for(var O=1;OM.time?O:M},U[0])}; rh=function(U){U=U===void 0?cU:U;al.call(this,new i4(U,2))}; aZ=function(){var U=L1y();i4.call(this,cU.top,U,"geo")}; L1y=function(){uv();var U=Il();return U.B||U.V?0:2}; VOW=function(){}; E2=function(){this.done=!1;this.U={OR:0,Jb:0,Rfl:0,xH:0,pA:-1,nR:0,MS:0,Q1:0,czg:0};this.G=null;this.C=!1;this.B=null;this.D=0;this.V=new q0(this)}; Vz=function(){var U=Lz;U.C||(U.C=!0,o7e(U,function(){return U.X.apply(U,g.N(g.m4.apply(0,arguments)))}),U.X())}; kD1=function(){PU(VOW);var U=PU(uM);U.U!=null&&U.U.U?xaU(U.U.U):Il().update(cU)}; oZ=function(U,O,M){if(!U.done&&(U.V.cancel(),O.length!=0)){U.B=null;try{kD1();var S=Uy();uv().G=S;if(PU(uM).U!=null)for(var p=0;p=0?Uy()-Oy:-1,f=Uy();p.U.pA==-1&&(J=f);var F=Il(),l=uv(),G=T5(l.Cr),T=XO();try{if(T.length>0){var e=F.U;e&&(G.bs=[pC(e),e.getHeight()]);var H=F.G;H&&(G.ps=[H.width,H.height]);cU.screen&&(G.scs=[cU.screen.width,cU.screen.height])}else G.url=encodeURIComponent(cU.location.href.substring(0,512)),h.referrer&&(G.referrer=encodeURIComponent(h.referrer.substring(0,512))); G.tt=J;G.pt=Oy;G.bin=l.V;cU.google_osd_load_pub_page_exp!==void 0&&(G.olpp=cU.google_osd_load_pub_page_exp);G.deb=[1,p.U.OR,p.U.Jb,p.U.xH,p.U.pA,0,p.V.V,p.U.nR,p.U.MS,p.U.Q1,p.U.czg,-1].join(";");G.tvt=UOU(p,f);F.V&&(G.inapp=1);if(cU!==null&&cU!=cU.top){T.length>0&&(G.iframe_loc=encodeURIComponent(cU.location.href.substring(0,512)));var z=F.D;G.is=[pC(z),z.getHeight()]}}catch(W){G.error=1}Lz.B=G}e=g.ri(Lz.B);H=uv().U;$n(H.B,"prf")==1?(z=new C2,p=H.U,h=0,p.U>-1&&(h=p.B.U.now()-p.U),z=Jd(z,1,fc(p.X+ h),0),p=H.U,z=Jd(z,5,TH(p.U>-1?p.V+1:p.V),0),z=Jd(z,2,No(H.V.U.B()),"0"),z=Jd(z,3,No(H.V.U.V()),"0"),H=Jd(z,4,No(H.V.U.U()),"0"),z={},H=(z.pf=g.cp(H.V()),z)):H={};g.Vo(e,H);g.Vo(O,S,M,e,U())}])}; gng=function(){var U=sAq||cU;if(!U)return"";var O=[];if(!U.location||!U.location.href)return"";O.push("url="+encodeURIComponent(U.location.href.substring(0,512)));U.document&&U.document.referrer&&O.push("referrer="+encodeURIComponent(U.document.referrer.substring(0,512)));return O.join("&")}; kl=function(){var U="youtube.player.web_20250331_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250331_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250331_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250331_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),O;if(((O=U)==null?void 0:O.length)==2)return U[1];U="youtube.player.web_20250331_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var M;return((M=U)==null?void 0:M.length)==3?"20"+U[1]+U[2]:null}; Mcw=function(){return"av.default_js".includes("ima_html5_sdk")?{M9:"ima",nt:null}:"av.default_js".includes("ima_native_sdk")?{M9:"nima",nt:null}:"av.default_js".includes("admob-native-video-javascript")?{M9:"an",nt:null}:"youtube.player.web_20250331_01_RC00".includes("cast_js_sdk")?{M9:"cast",nt:kl()}:"youtube.player.web_20250331_01_RC00".includes("youtube.player.web")?{M9:"yw",nt:kl()}:"youtube.player.web_20250331_01_RC00".includes("outstream_web_client")?{M9:"out",nt:kl()}:"youtube.player.web_20250331_01_RC00".includes("drx_rewarded_web")? {M9:"r",nt:kl()}:"youtube.player.web_20250331_01_RC00".includes("gam_native_web_video")?{M9:"n",nt:kl()}:"youtube.player.web_20250331_01_RC00".includes("admob_interstitial_video")?{M9:"int",nt:kl()}:{M9:"j",nt:null}}; OQ=function(U,O){var M={sv:"966"};wh!==null&&(M.v=wh);M.cb=SJg;M.nas=Cz.U.length;M.msg=U;O!==void 0&&(U=pUi(O))&&(M.e=UQ[U]);return M}; sQ=function(U){return Wq(U,"custom_metric_viewable")}; pUi=function(U){var O=sQ(U)?"custom_metric_viewable":U.toLowerCase();return qm(AS,function(M){return M==O})}; hxw=function(){this.U=void 0;this.V=!1;this.B=0;this.X=-1;this.G="tos"}; fZy=function(U){try{var O=U.split(",");return O.length>g.C1(Jje).length?null:IA(O,function(M,S){S=S.toLowerCase().split("=");if(S.length!=2||yji[S[0]]===void 0||!yji[S[0]](S[1]))throw Error("Entry ("+S[0]+", "+S[1]+") is invalid.");M[S[0]]=S[1];return M},{})}catch(M){return null}}; FVm=function(U,O){if(U.U==void 0)return 0;switch(U.G){case "mtos":return U.V?s2(O.U,U.U):s2(O.V,U.U);case "tos":return U.V?O2(O.U,U.U):O2(O.V,U.U)}return 0}; gj=function(U,O,M,S){dh.call(this,O,S);this.D=U;this.Y=M}; M9=function(){}; Su=function(U){dh.call(this,"fully_viewable_audible_half_duration_impression",U)}; p$=function(U){this.U=U}; h8=function(U,O){dh.call(this,U,O)}; J8=function(U){Wh.call(this,"measurable_impression",U)}; y_=function(){p$.apply(this,arguments)}; f$=function(U,O,M){Bh.call(this,U,O,M)}; Ft=function(U){U=U===void 0?cU:U;al.call(this,new i4(U,2))}; le=function(U,O,M){Bh.call(this,U,O,M)}; Gd=function(U){U=U===void 0?cU:U;al.call(this,new i4(U,2))}; $h=function(){i4.call(this,cU,2,"mraid");this.Ca=0;this.ol=this.BA=!1;this.D=null;this.V=luq(this.B);this.X.U=new S3(0,0,0,0);this.Ka=!1}; Td=function(U,O,M){U.t_("addEventListener",O,M)}; TQJ=function(U){uv().X=!!U.t_("isViewable");Td(U,"viewableChange",lZU);U.t_("getState")==="loading"?Td(U,"ready",G5e):$Og(U)}; $Og=function(U){typeof U.V.Oi.AFMA_LIDAR==="string"?(U.BA=!0,jA4(U)):(U.V.compatibility=3,U.D="nc",U.z5("w"))}; jA4=function(U){U.ol=!1;var O=$n(uv().Cr,"rmmt")==1,M=!!U.t_("isViewable");(O?!M:1)&&Qj().setTimeout(kn(524,function(){U.ol||(ex5(U),wQ(540,Error()),U.D="mt",U.z5("w"))}),500); H2W(U);Td(U,U.V.Oi.AFMA_LIDAR,zx4)}; H2W=function(U){var O=$n(uv().Cr,"sneio")==1,M=U.V.Oi.AFMA_LIDAR_EXP_1!==void 0,S=U.V.Oi.AFMA_LIDAR_EXP_2!==void 0;(O=O&&S)&&(U.V.Oi.AFMA_LIDAR_EXP_2=!0);M&&(U.V.Oi.AFMA_LIDAR_EXP_1=!O)}; ex5=function(U){U.t_("removeEventListener",U.V.Oi.AFMA_LIDAR,zx4);U.BA=!1}; cj5=function(U,O){if(U.t_("getState")==="loading")return new g.R1(-1,-1);O=U.t_(O);if(!O)return new g.R1(-1,-1);U=parseInt(O.width,10);O=parseInt(O.height,10);return isNaN(U)||isNaN(O)?new g.R1(-1,-1):new g.R1(U,O)}; G5e=function(){try{var U=PU($h);U.t_("removeEventListener","ready",G5e);$Og(U)}catch(O){wQ(541,O)}}; zx4=function(U,O){try{var M=PU($h);M.ol=!0;var S=U?new S3(U.y,U.x+U.width,U.y+U.height,U.x):new S3(0,0,0,0);var p=Uy(),h=nC();var J=new yM(p,h,M);J.U=S;J.volume=O;M.Av(J)}catch(f){wQ(542,f)}}; lZU=function(U){var O=uv(),M=PU($h);U&&!O.X&&(O.X=!0,M.Ka=!0,M.D&&M.z5("w",!0))}; ju=function(){this.isInitialized=!1;this.U=this.V=null;var U={};this.D=(U.start=this.Ldg,U.firstquartile=this.TG0,U.midpoint=this.DLY,U.thirdquartile=this.Pgg,U.complete=this.Cga,U.error=this.GYQ,U.pause=this.vI,U.resume=this.NV,U.skip=this.mLy,U.viewable_impression=this.Tz,U.mute=this.tJ,U.unmute=this.tJ,U.fullscreen=this.kYP,U.exitfullscreen=this.IQQ,U.fully_viewable_audible_half_duration_impression=this.Tz,U.measurable_impression=this.Tz,U.abandon=this.vI,U.engagedview=this.Tz,U.impression=this.Tz, U.creativeview=this.Tz,U.progress=this.tJ,U.custom_metric_viewable=this.Tz,U.bufferstart=this.vI,U.bufferfinish=this.NV,U.audio_measurable=this.Tz,U.audio_audible=this.Tz,U);U={};this.Y=(U.overlay_resize=this.qAa,U.abandon=this.Jj,U.close=this.Jj,U.collapse=this.Jj,U.overlay_unmeasurable_impression=function(O){return IZ(O,"overlay_unmeasurable_impression",nC())},U.overlay_viewable_immediate_impression=function(O){return IZ(O,"overlay_viewable_immediate_impression",nC())},U.overlay_unviewable_impression= function(O){return IZ(O,"overlay_unviewable_impression",nC())},U.overlay_viewable_end_of_session_impression=function(O){return IZ(O,"overlay_viewable_end_of_session_impression",nC())},U); uv().V=3;DO1(this);this.B=null}; eu=function(U,O,M,S){U=U.aI(null,S,!0,O);U.X=M;qbw([U]);return U}; dOi=function(U,O,M){GbU(O);var S=U.U;g.T$(O,function(p){var h=g.mV(p.criteria,function(J){var f=fZy(J);if(f==null)J=null;else if(J=new hxw,f.visible!=null&&(J.U=f.visible/100),f.audible!=null&&(J.V=f.audible==1),f.time!=null){var F=f.timetype=="mtos"?"mtos":"tos",l=uew(f.time,"%")?"%":"ms";f=parseInt(f.time,10);l=="%"&&(f/=100);J.setTime(f,l,F)}return J}); A6(h,function(J){return J==null})||HxW(M,new gj(p.id,p.event,h,S))})}; WVW=function(){var U=[],O=uv();U.push(PU(aZ));$n(O.Cr,"mvp_lv")&&U.push(PU($h));O=[new Ft,new Gd];O.push(new qN(U));O.push(new rh(cU));return O}; NQU=function(U){if(!U.isInitialized){U.isInitialized=!0;try{var O=Uy(),M=uv(),S=Il();Oy=O;M.B=79463069;U.V!=="o"&&(sAq=bTw(cU));if(Xrw()){Lz.U.Jb=0;Lz.U.pA=Uy()-O;var p=WVW(),h=PU(uM);h.V=p;Zxi(h,function(){HS()})?Lz.done||(wD1(),Zr(h.U.U,U),Vz()):S.B?HS():Vz()}else zd=!0}catch(J){throw Cz.reset(),J; }}}; DV=function(U){Lz.V.cancel();cS=U;Lz.done=!0}; dj=function(U){if(U.V)return U.V;var O=PU(uM).U;if(O)switch(O.getName()){case "nis":U.V="n";break;case "gsv":U.V="m"}U.V||(U.V="h");return U.V}; WS=function(U,O,M){if(U.U==null)return O.fL|=4,!1;U=vnJ(U.U,M,O);O.fL|=U;return U==0}; HS=function(){var U=[new rh(cU)],O=PU(uM);O.V=U;Zxi(O,function(){DV("i")})?Lz.done||(wD1(),Vz()):DV("i")}; BQw=function(U,O){if(!U.Qa){var M=IZ(U,"start",nC());M=U.BI.U(M).U;var S={id:"lidarv"};S.r=O;S.sv="966";wh!==null&&(S.v=wh);sY(M,function(p,h){return S[p]=p=="mtos"||p=="tos"?h:encodeURIComponent(h)}); O=gng();sY(O,function(p,h){return S[p]=encodeURIComponent(h)}); O="//pagead2.googlesyndication.com/pagead/gen_204?"+VM(LC(new Ey,S));CKm(O);U.Qa=!0}}; N9=function(U,O,M){oZ(Lz,[U],!nC());dLU(U,M);M!=4&&DLy(U.BA,M,U.Bv);return IZ(U,O,nC())}; DO1=function(U){O27(function(){var O=xOU();U.V!=null&&(O.sdk=U.V);var M=PU(uM);M.U!=null&&(O.avms=M.U.getName());return O})}; b2U=function(U,O,M,S){var p=Qty(Cz,M);p!==null&&p.Uv!==O&&(U.S8(p),p=null);p||(O=U.aI(M,Uy(),!1,O),Cz.V.length==0&&(uv().B=79463069),ixW([O]),p=O,p.X=dj(U),S&&(p.Yy=S));return p}; Rxi=function(U,O){var M=U[O];M!==void 0&&M>0&&(U[O]=Math.floor(M*1E3))}; xOU=function(){var U=Il(),O={},M={},S={};return Object.assign({},(O.sv="966",O),wh!==null&&(M.v=wh,M),(S["if"]=U.B?"1":"0",S.nas=String(Cz.U.length),S))}; vS=function(U){dh.call(this,"audio_audible",U)}; BS=function(U){Wh.call(this,"audio_measurable",U)}; xh=function(){p$.apply(this,arguments)}; be=function(){}; tcU=function(U){this.U=U}; vnJ=function(U,O,M){U=U.V();if(typeof U==="function"){var S={};var p={};S=Object.assign({},wh!==null&&(S.v=wh,S),(p.sv="966",p.cb=SJg,p.e=YJy(O),p));p=IZ(M,O,nC());g.Vo(S,p);M.LQ[O]=p;S=M.IE()==2?QO5(S).join("&"):M.BI.U(S).U;try{return U(M.Uv,S,O),0}catch(h){return 2}}else return 1}; YJy=function(U){var O=sQ(U)?"custom_metric_viewable":U;U=qm(AS,function(M){return M==O}); return UQ[U]}; RH=function(){ju.call(this);this.C=null;this.G=!1;this.X="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; mO7=function(U,O,M){M=M.opt_configurable_tracking_events;U.U!=null&&Array.isArray(M)&&dOi(U,M,O)}; AjJ=function(U,O,M){var S=Qz(Cz,O);S||(S=M.opt_nativeTime||-1,S=eu(U,O,dj(U),S),M.opt_osdId&&(S.Yy=M.opt_osdId));return S}; IZy=function(U,O,M){var S=Qz(Cz,O);S||(S=eu(U,O,"n",M.opt_nativeTime||-1));return S}; PvJ=function(U,O){var M=Qz(Cz,O);M||(M=eu(U,O,"h",-1));return M}; nnq=function(U){uv();switch(dj(U)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; XU4=function(U,O,M,S){M=M===void 0?{}:M;var p={};g.Vo(p,{opt_adElement:void 0,opt_fullscreen:void 0},M);var h=U.dw(O,M);M=h?h.BI:U.MB();if(p.opt_bounds)return M.U(OQ("ol",S));if(S!==void 0)if(pUi(S)!==void 0)if(zd)U=OQ("ue",S);else if(NQU(U),cS=="i")U=OQ("i",S),U["if"]=0;else if(O=U.dw(O,p)){b:{cS=="i"&&(O.dk=!0);h=p.opt_fullscreen;h!==void 0&&fz(O,!!h);var J;if(h=!Il().V)(h=xE(g.YE(),"CrKey")&&!(xE(g.YE(),"CrKey")&&xE(g.YE(),"SmartSpeaker"))||xE(g.YE(),"PlayStation")||xE(g.YE(),"Roku")||WAy()||xE(g.YE(), "Xbox"))||(h=g.YE(),h=xE(h,"AppleTV")||xE(h,"Apple TV")||xE(h,"CFNetwork")||xE(h,"tvOS")),h||(h=g.YE(),h=xE(h,"sdk_google_atv_x86")||xE(h,"Android TV")),h=!h;h&&(Qj(),h=WU(Pc)===0);if(J=h){switch(O.IE()){case 1:BQw(O,"pv");break;case 2:U.G6(O)}DV("pv")}h=S.toLowerCase();if(J=!J)J=$n(uv().Cr,"ssmol")&&h==="loaded"?!1:g.kE(QAm,h);if(J&&O.z4==0){cS!="i"&&(Lz.done=!1);J=p!==void 0?p.opt_nativeTime:void 0;M0=J=typeof J==="number"?J:Uy();O.Co=!0;var f=nC();O.z4=1;O.IL={};O.IL.start=!1;O.IL.firstquartile= !1;O.IL.midpoint=!1;O.IL.thirdquartile=!1;O.IL.complete=!1;O.IL.resume=!1;O.IL.pause=!1;O.IL.skip=!1;O.IL.mute=!1;O.IL.unmute=!1;O.IL.viewable_impression=!1;O.IL.measurable_impression=!1;O.IL.fully_viewable_audible_half_duration_impression=!1;O.IL.fullscreen=!1;O.IL.exitfullscreen=!1;O.Kc=0;f||(O.kF().Y=J);oZ(Lz,[O],!f)}(J=O.XX[h])&&Hh(O.ZV,J);$n(uv().Cr,"fmd")||g.kE(Cv5,h)&&O.Gs&&O.Gs.V(O,null);switch(O.IE()){case 1:var F=sQ(h)?U.D.custom_metric_viewable:U.D[h];break;case 2:F=U.Y[h]}if(F&&(S=F.call(U, O,p,S),$n(uv().Cr,"fmd")&&g.kE(Cv5,h)&&O.Gs&&O.Gs.V(O,null),S!==void 0)){p=OQ(void 0,h);g.Vo(p,S);S=p;break b}S=void 0}O.z4==3&&U.S8(O);U=S}else U=OQ("nf",S);else U=void 0;else zd?U=OQ("ue"):h?(U=OQ(),g.Vo(U,ND4(h,!0,!1,!1))):U=OQ("nf");return typeof U==="string"?M.U():M.U(U)}; uTU=function(U,O){O&&(U.X=O)}; qJe=function(U){var O={};return O.viewability=U.U,O.googleViewability=U.V,O}; i2e=function(U,O,M){M=M===void 0?{}:M;U=XU4(PU(RH),O,M,U);return qJe(U)}; t8=function(U){var O=g.m4.apply(1,arguments).filter(function(S){return S}).join("&"); if(!O)return U;var M=U.match(/[?&]adurl=/);return M?U.slice(0,M.index+1)+O+"&"+U.slice(M.index+1):U+(U.indexOf("?")===-1?"?":"&")+O}; KVi=function(U){var O=U.url;U=U.bsa;this.U=O;this.D=U;U=/[?&]dsh=1(&|$)/.test(O);this.G=!U&&/[?&]ae=1(&|$)/.test(O);this.C=!U&&/[?&]ae=2(&|$)/.test(O);if((this.V=/[?&]adurl=([^&]*)/.exec(O))&&this.V[1]){try{var M=decodeURIComponent(this.V[1])}catch(S){M=null}this.B=M}this.X=(new Date).getTime()-Z2w}; rji=function(U){U=U.D;if(!U)return"";var O="";U.platform&&(O+="&uap="+encodeURIComponent(U.platform));U.platformVersion&&(O+="&uapv="+encodeURIComponent(U.platformVersion));U.uaFullVersion&&(O+="&uafv="+encodeURIComponent(U.uaFullVersion));U.architecture&&(O+="&uaa="+encodeURIComponent(U.architecture));U.model&&(O+="&uam="+encodeURIComponent(U.model));U.bitness&&(O+="&uab="+encodeURIComponent(U.bitness));U.fullVersionList&&(O+="&uafvl="+encodeURIComponent(U.fullVersionList.map(function(M){return encodeURIComponent(M.brand)+ ";"+encodeURIComponent(M.version)}).join("|"))); typeof U.wow64!=="undefined"&&(O+="&uaw="+Number(U.wow64));return O.substring(1)}; LVe=function(U,O,M,S,p){var h=window;var J=J===void 0?!1:J;var f;M?f=(J===void 0?0:J)?"//ep1.adtrafficquality.google/bg/"+FU(M)+".js":"//pagead2.googlesyndication.com/bg/"+FU(M)+".js":f="";J=J===void 0?!1:J;M=h.document;var F={};O&&(F._scs_=O);F._bgu_=f;F._bgp_=S;F._li_="v_h.3.0.0.0";p&&(F._upb_=p);(O=h.GoogleTyFxhY)&&typeof O.push=="function"||(O=h.GoogleTyFxhY=[]);O.push(F);O=sF(M).createElement("SCRIPT");O.type="text/javascript";O.async=!0;U=(J===void 0?0:J)?OXe(aZ5,FU(U)+".js"):OXe(Ene,FU(U)+ ".js");g.gi(O,U);(h=(h.GoogleTyFxhYEET||{})[O.src])?h():M.getElementsByTagName("head")[0].appendChild(O)}; Vcq=function(){try{var U,O;return!!((U=window)==null?0:(O=U.top)==null?0:O.location.href)&&!1}catch(M){return!0}}; m6=function(){var U=onW();U=U===void 0?"bevasrsg":U;return new Promise(function(O){var M=window===window.top?window:Vcq()?window:window.top,S=M[U],p;((p=S)==null?0:p.bevasrs)?O(new Yh(S.bevasrs)):(S||(S={},S=(S.nqfbel=[],S),M[U]=S),S.nqfbel.push(function(h){O(new Yh(h))}))})}; k5g=function(U){var O={c:U.Nb,e:U.kq,mc:U.Nv,me:U.ZP};U.Bi&&(O.co={c:U.Bi.hE,a:U.Bi.YR,s:U.Bi.V6});return O}; A8=function(U){g.C.call(this);this.wpc=U}; Yh=function(U){g.C.call(this);var O=this;this.x5=U;this.B="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.U=void 0;this.Z_=this.x5.p;this.X=this.So.bind(this);this.addOnDisposeCallback(function(){return void wUJ(O)})}; U0g=function(U){var O;return g.A(function(M){if(M.U==1){if(!U.x5.wpc)throw new ph(30,"NWA");return U.V?M.return(U.V):g.Y(M,U.x5.wpc(),2)}O=M.V;U.V=new A8(O);return M.return(U.V)})}; wUJ=function(U){U.U!==void 0&&(U.B.forEach(function(O){var M;(M=U.U)==null||M.removeEventListener(O,U.X)}),U.U=void 0)}; gs4=function(U){if(g.Ny(g.ly(U)))return!1;if(U.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var O=new g.x7(U)}catch(M){return g.VD(OCJ,function(S){return U.search(S)>0})!=null}return O.C.match(sle)?!0:g.VD(OCJ,function(M){return U.match(M)!=null})!=null}; g.IH=function(U,O){return U.replace(M35,function(M,S){try{var p=g.Z9(O,S);if(p==null||p.toString()==null)return M;p=p.toString();if(p==""||!g.Ny(g.ly(p)))return encodeURIComponent(p).replace(/%2C/g,",")}catch(h){}return M})}; PS=function(U,O){return Object.is(U,O)}; Q_=function(U){var O=n$;n$=U;return O}; SyW=function(U){if(U.Nh!==void 0){var O=C$;C$=!0;try{for(var M=g.D(U.Nh),S=M.next();!S.done;S=M.next()){var p=S.value;p.pI||(U=void 0,p.pI=!0,SyW(p),(U=p.Pn)==null||U.call(p,p))}}finally{C$=O}}}; pcW=function(){var U;return((U=n$)==null?void 0:U.mP)!==!1}; hVw=function(U){U&&(U.j2=0);return Q_(U)}; J6W=function(U,O){Q_(O);if(U&&U.Sy!==void 0&&U.U7!==void 0&&U.E4!==void 0){if(Xt(U))for(O=U.j2;OU.j2;)U.Sy.pop(),U.E4.pop(),U.U7.pop()}}; frw=function(U,O,M){y6g(U);if(U.Nh.length===0&&U.Sy!==void 0)for(var S=0;S0}; F3y=function(U){U.Sy!=null||(U.Sy=[]);U.U7!=null||(U.U7=[]);U.E4!=null||(U.E4=[])}; y6g=function(U){U.Nh!=null||(U.Nh=[]);U.Ya!=null||(U.Ya=[])}; $0y=function(U){function O(){if(C$)throw Error("");if(n$!==null){var S=n$.j2++;F3y(n$);S0?" "+O:O))}}; g.Gn=function(U,O){if(U.classList)Array.prototype.forEach.call(O,function(p){g.l3(U,p)}); else{var M={};Array.prototype.forEach.call(hD(U),function(p){M[p]=!0}); Array.prototype.forEach.call(O,function(p){M[p]=!0}); O="";for(var S in M)O+=O.length>0?" "+S:S;g.JD(U,O)}}; g.$U=function(U,O){U.classList?U.classList.remove(O):g.y$(U,O)&&g.JD(U,Array.prototype.filter.call(hD(U),function(M){return M!=O}).join(" "))}; g.Tn=function(U,O){U.classList?Array.prototype.forEach.call(O,function(M){g.$U(U,M)}):g.JD(U,Array.prototype.filter.call(hD(U),function(M){return!g.kE(O,M)}).join(" "))}; g.ea=function(U,O,M){M?g.l3(U,O):g.$U(U,O)}; vsi=function(U,O){var M=!g.y$(U,O);g.ea(U,O,M)}; g.HT=function(){g.$q.call(this);this.U=0;this.endTime=this.startTime=null}; Bo7=function(U,O){Array.isArray(O)||(O=[O]);O=O.map(function(M){return typeof M==="string"?M:M.property+" "+M.duration+"s "+M.timing+" "+M.delay+"s"}); g.j3(U,"transition",O.join(","))}; zn=function(U,O,M,S,p){g.HT.call(this);this.V=U;this.G=O;this.C=M;this.X=S;this.D=Array.isArray(p)?p:[p]}; x0w=function(U,O,M,S){return new zn(U,O,{opacity:M},{opacity:S},{property:"opacity",duration:O,timing:"ease-in",delay:0})}; RV4=function(U){U=bQ(U);if(U=="")return null;var O=String(U.slice(0,4)).toLowerCase();if(("url("1||U&&U.split(")"),null;if(U.indexOf("(")>0){if(/"|'/.test(U))return null;O=/([\-\w]+)\(/g;for(var M;M=O.exec(U);)if(!(M[1].toLowerCase()in bC1))return null}return U}; cT=function(U,O){U=g.q1[U];return U&&U.prototype?(O=Object.getOwnPropertyDescriptor(U.prototype,O))&&O.get||null:null}; t3w=function(U){var O=g.q1.CSSStyleDeclaration;return O&&O.prototype&&O.prototype[U]||null}; Yy1=function(U,O,M,S){if(U)return U.apply(O,S);if(g.DU&&document.documentMode<10){if(!O[M].call)throw Error("IE Clobbering detected");}else if(typeof O[M]!="function")throw Error("Clobbering detected");return O[M].apply(O,S)}; nsy=function(U){if(!U)return"";var O=document.createElement("div").style;m0J(U).forEach(function(M){var S=g.yG&&M in A6i?M:M.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Wq(S,"--")||Wq(S,"var")||(M=Yy1(Iry,U,U.getPropertyValue?"getPropertyValue":"getAttribute",[M])||"",M=RV4(M),M!=null&&Yy1(P4J,O,O.setProperty?"setProperty":"setAttribute",[S,M]))}); return O.cssText||""}; m0J=function(U){g.L7(U)?U=g.M2(U):(U=g.C1(U),g.OV(U,"cssText"));return U}; g.WT=function(U){var O,M=O=0,S=!1;U=U.split(Qlw);for(var p=0;p.4?-1:1;return(O==0?null:O)==-1?"rtl":"ltr"}; g.xU=function(U){if(U instanceof N$||U instanceof vT||U instanceof BT)return U;if(typeof U.next=="function")return new N$(function(){return U}); if(typeof U[Symbol.iterator]=="function")return new N$(function(){return U[Symbol.iterator]()}); if(typeof U.In=="function")return new N$(function(){return U.In()}); throw Error("Not an iterator or iterable.");}; N$=function(U){this.V=U}; vT=function(U){this.V=U}; BT=function(U){N$.call(this,function(){return U}); this.B=U}; b3=function(U,O,M,S,p,h,J,f){this.U=U;this.D=O;this.B=M;this.G=S;this.X=p;this.C=h;this.V=J;this.Y=f}; R$=function(U,O){if(O==0)return U.U;if(O==1)return U.V;var M=By(U.U,U.B,O),S=By(U.B,U.X,O);U=By(U.X,U.V,O);M=By(M,S,O);S=By(S,U,O);return By(M,S,O)}; qyi=function(U,O){var M=(O-U.U)/(U.V-U.U);if(M<=0)return 0;if(M>=1)return 1;for(var S=0,p=1,h=0,J=0;J<8;J++){h=R$(U,M);var f=(R$(U,M+1E-6)-h)/1E-6;if(Math.abs(h-O)<1E-6)return M;if(Math.abs(f)<1E-6)break;else h1E-6&&J<8;J++)h=0}; g.AD=function(U){g.C.call(this);this.C=1;this.B=[];this.X=0;this.U=[];this.V={};this.D=!!U}; ZCw=function(U,O,M){g.NF(function(){U.apply(O,M)})}; g.I$=function(U){this.U=U}; PT=function(U){this.U=U}; K3m=function(U){this.data=U}; r6w=function(U){return U===void 0||U instanceof K3m?U:new K3m(U)}; ns=function(U){this.U=U}; g.ar5=function(U){var O=U.creation;U=U.expiration;return!!U&&Ug.gJ()}; g.Q$=function(U){this.U=U}; Esg=function(){}; Cs=function(){}; XA=function(U){this.U=U;this.V=null}; u3=function(U){if(U.U==null)throw Error("Storage mechanism: Storage unavailable");var O;(L35?U.isAvailable():(O=U.V)!=null?O:U.isAvailable())||Dv(Error("Storage mechanism: Storage unavailable"))}; q$=function(){var U=null;try{U=g.q1.localStorage||null}catch(O){}XA.call(this,U)}; V3i=function(){var U=null;try{U=g.q1.sessionStorage||null}catch(O){}XA.call(this,U)}; i3=function(U,O){this.V=U;this.U=O+"::"}; g.ZU=function(U){var O=new q$;return O.isAvailable()?U?new i3(O,U):O:null}; Ks=function(U,O){this.U=U;this.V=O}; rB=function(U){this.U=[];if(U)a:{if(U instanceof rB){var O=U.ao();U=U.Zz();if(this.U.length<=0){for(var M=this.U,S=0;S>>6:(h<65536?f[M++]=224|h>>>12:(f[M++]=240|h>>>18,f[M++]=128|h>>>12&63),f[M++]=128|h>>> 6&63),f[M++]=128|h&63);return f}; V$=function(U){for(var O=U.length;--O>=0;)U[O]=0}; o$=function(U,O,M,S,p){this.mS=U;this.Bk=O;this.vk=M;this.jO=S;this.GSA=p;this.Oy=U&&U.length}; kU=function(U,O){this.gp=U;this.jl=0;this.Ti=O}; wB=function(U,O){U.GJ[U.pending++]=O&255;U.GJ[U.pending++]=O>>>8&255}; U$=function(U,O,M){U.qb>16-M?(U.Su|=O<>16-U.qb,U.qb+=M-16):(U.Su|=O<>>=1,M<<=1;while(--O>0);return M>>>1}; OzU=function(U,O,M){var S=Array(16),p=0,h;for(h=1;h<=15;h++)S[h]=p=p+M[h-1]<<1;for(M=0;M<=O;M++)p=U[M*2+1],p!==0&&(U[M*2]=UNe(S[p]++,p))}; sZ5=function(U){var O;for(O=0;O<286;O++)U.qh[O*2]=0;for(O=0;O<30;O++)U.zU[O*2]=0;for(O=0;O<19;O++)U.F8[O*2]=0;U.qh[512]=1;U.RZ=U.U0=0;U.oV=U.matches=0}; gle=function(U){U.qb>8?wB(U,U.Su):U.qb>0&&(U.GJ[U.pending++]=U.Su);U.Su=0;U.qb=0}; M44=function(U,O,M){gle(U);wB(U,M);wB(U,~M);Ls.eW(U.GJ,U.window,O,M,U.pending);U.pending+=M}; S2y=function(U,O,M,S){var p=O*2,h=M*2;return U[p]>>7)];O$(U,J,M);f=hz[J];f!==0&&(p-=Jz[J],U$(U,p,f))}}while(S>1;J>=1;J--)s$(U,M,J);F=h;do J=U.LW[1],U.LW[1]=U.LW[U.AX--],s$(U,M,1),S=U.LW[1],U.LW[--U.g_]=J,U.LW[--U.g_]=S,M[F*2]=M[J*2]+M[S*2],U.depth[F]=(U.depth[J]>=U.depth[S]?U.depth[J]:U.depth[S])+1,M[J*2+1]=M[S*2+1]=F,U.LW[1]=F++,s$(U,M,1);while(U.AX>= 2);U.LW[--U.g_]=U.LW[1];J=O.gp;F=O.jl;S=O.Ti.mS;p=O.Ti.Oy;h=O.Ti.Bk;var l=O.Ti.vk,G=O.Ti.GSA,T,e=0;for(T=0;T<=15;T++)U.ZS[T]=0;J[U.LW[U.g_]*2+1]=0;for(O=U.g_+1;O<573;O++){var H=U.LW[O];T=J[J[H*2+1]*2+1]+1;T>G&&(T=G,e++);J[H*2+1]=T;if(!(H>F)){U.ZS[T]++;var z=0;H>=l&&(z=h[H-l]);var W=J[H*2];U.RZ+=W*(T+z);p&&(U.U0+=W*(S[H*2+1]+z))}}if(e!==0){do{for(T=G-1;U.ZS[T]===0;)T--;U.ZS[T]--;U.ZS[T+1]+=2;U.ZS[G]--;e-=2}while(e>0);for(T=G;T!==0;T--)for(H=U.ZS[T];H!==0;)S=U.LW[--O],S>F||(J[S*2+1]!==T&&(U.RZ+=(T- J[S*2+1])*J[S*2],J[S*2+1]=T),H--)}OzU(M,f,U.ZS)}; h_5=function(U,O,M){var S,p=-1,h=O[1],J=0,f=7,F=4;h===0&&(f=138,F=3);O[(M+1)*2+1]=65535;for(S=0;S<=M;S++){var l=h;h=O[(S+1)*2+1];++J>>=1)if(O&1&&U.qh[M*2]!==0)return 0;if(U.qh[18]!==0||U.qh[20]!==0||U.qh[26]!==0)return 1;for(M=32;M<256;M++)if(U.qh[M*2]!==0)return 1;return 0}; fG=function(U,O,M){U.GJ[U.lE+U.oV*2]=O>>>8&255;U.GJ[U.lE+U.oV*2+1]=O&255;U.GJ[U.CA+U.oV]=M&255;U.oV++;O===0?U.qh[M*2]++:(U.matches++,O--,U.qh[(gZ[M]+256+1)*2]++,U.zU[(O<256?pG[O]:pG[256+(O>>>7)])*2]++);return U.oV===U.xt-1}; ls=function(U,O){U.msg=Fd[O];return O}; G6=function(U){for(var O=U.length;--O>=0;)U[O]=0}; $k=function(U){var O=U.state,M=O.pending;M>U.wK&&(M=U.wK);M!==0&&(Ls.eW(U.output,O.GJ,O.i4,M,U.Nk),U.Nk+=M,O.i4+=M,U.R0+=M,U.wK-=M,O.pending-=M,O.pending===0&&(O.i4=0))}; e6=function(U,O){var M=U.Hb>=0?U.Hb:-1,S=U.fE-U.Hb,p=0;if(U.level>0){U.RW.df===2&&(U.RW.df=ySe(U));yE(U,U.wW);yE(U,U.OM);h_5(U,U.qh,U.wW.jl);h_5(U,U.zU,U.OM.jl);yE(U,U.Xv);for(p=18;p>=3&&U.F8[fJm[p]*2+1]===0;p--);U.RZ+=3*(p+1)+5+5+4;var h=U.RZ+3+7>>>3;var J=U.U0+3+7>>>3;J<=h&&(h=J)}else h=J=S+5;if(S+4<=h&&M!==-1)U$(U,O?1:0,3),M44(U,M,S);else if(U.strategy===4||J===h)U$(U,2+(O?1:0),3),ph7(U,T6,j6);else{U$(U,4+(O?1:0),3);M=U.wW.jl+1;S=U.OM.jl+1;p+=1;U$(U,M-257,5);U$(U,S-1,5);U$(U,p-4,4);for(h=0;h>>8&255;U.GJ[U.pending++]=O&255}; Fl5=function(U,O){var M=U.Rt,S=U.fE,p=U.BD,h=U.vr,J=U.fE>U.Qf-262?U.fE-(U.Qf-262):0,f=U.window,F=U.eA,l=U.rR,G=U.fE+258,T=f[S+p-1],e=f[S+p];U.BD>=U.yJ&&(M>>=2);h>U.zS&&(h=U.zS);do{var H=O;if(f[H+p]===e&&f[H+p-1]===T&&f[H]===f[S]&&f[++H]===f[S+1]){S+=2;for(H++;f[++S]===f[++H]&&f[++S]===f[++H]&&f[++S]===f[++H]&&f[++S]===f[++H]&&f[++S]===f[++H]&&f[++S]===f[++H]&&f[++S]===f[++H]&&f[++S]===f[++H]&&Sp){U.cH=O;p=H;if(H>=h)break;T=f[S+p-1];e=f[S+p]}}}while((O=l[O&F])>J&&--M!== 0);return p<=U.zS?p:U.zS}; dZ=function(U){var O=U.Qf,M;do{var S=U.cM-U.zS-U.fE;if(U.fE>=O+(O-262)){Ls.eW(U.window,U.window,O,O,0);U.cH-=O;U.fE-=O;U.Hb-=O;var p=M=U.mH;do{var h=U.head[--p];U.head[p]=h>=O?h-O:0}while(--M);p=M=O;do h=U.rR[--p],U.rR[p]=h>=O?h-O:0;while(--M);S+=O}if(U.RW.Km===0)break;p=U.RW;M=U.window;h=U.fE+U.zS;var J=p.Km;J>S&&(J=S);J===0?M=0:(p.Km-=J,Ls.eW(M,p.input,p.Bu,J,h),p.state.wrap===1?p.Ke=ci(p.Ke,M,J,h):p.state.wrap===2&&(p.Ke=DR(p.Ke,M,J,h)),p.Bu+=J,p.yx+=J,M=J);U.zS+=M;if(U.zS+U.Y$>=3)for(S=U.fE-U.Y$, U.Zh=U.window[S],U.Zh=(U.Zh<=3&&(U.Zh=(U.Zh<=3)if(M=fG(U,U.fE-U.cH,U.M_-3),U.zS-=U.M_,U.M_<=U.hc&&U.zS>=3){U.M_--;do U.fE++,U.Zh=(U.Zh<=3&&(U.Zh=(U.Zh<4096)&&(U.M_=2));if(U.BD>=3&&U.M_<=U.BD){S=U.fE+U.zS-3;M=fG(U,U.fE-1-U.GW,U.BD-3);U.zS-=U.BD-1;U.BD-=2;do++U.fE<=S&&(U.Zh=(U.Zh<=3&&U.fE>0&&(S=U.fE-1,M=h[S],M===h[++S]&&M===h[++S]&&M===h[++S])){for(p=U.fE+258;M===h[++S]&&M===h[++S]&&M===h[++S]&&M===h[++S]&&M===h[++S]&&M===h[++S]&&M===h[++S]&&M===h[++S]&&SU.zS&&(U.M_=U.zS)}U.M_>=3?(M=fG(U,1,U.M_-3),U.zS-=U.M_,U.fE+=U.M_,U.M_=0):(M=fG(U,0,U.window[U.fE]),U.zS--,U.fE++);if(M&&(e6(U,!1),U.RW.wK===0))return 1}U.Y$=0;return O=== 4?(e6(U,!0),U.RW.wK===0?3:4):U.oV&&(e6(U,!1),U.RW.wK===0)?1:2}; GM7=function(U,O){for(var M;;){if(U.zS===0&&(dZ(U),U.zS===0)){if(O===0)return 1;break}U.M_=0;M=fG(U,0,U.window[U.fE]);U.zS--;U.fE++;if(M&&(e6(U,!1),U.RW.wK===0))return 1}U.Y$=0;return O===4?(e6(U,!0),U.RW.wK===0?3:4):U.oV&&(e6(U,!1),U.RW.wK===0)?1:2}; vi=function(U,O,M,S,p){this.rZ0=U;this.CMg=O;this.RzA=M;this.SQn=S;this.func=p}; $Ni=function(){this.RW=null;this.status=0;this.GJ=null;this.wrap=this.pending=this.i4=this.BO=0;this.lV=null;this.vC=0;this.method=8;this.Iy=-1;this.eA=this.Qt=this.Qf=0;this.window=null;this.cM=0;this.head=this.rR=null;this.vr=this.yJ=this.strategy=this.level=this.hc=this.Rt=this.BD=this.zS=this.cH=this.fE=this.xD=this.GW=this.M_=this.Hb=this.Qu=this.nI=this.Wz=this.mH=this.Zh=0;this.qh=new Ls.i8(1146);this.zU=new Ls.i8(122);this.F8=new Ls.i8(78);G6(this.qh);G6(this.zU);G6(this.F8);this.Xv=this.OM= this.wW=null;this.ZS=new Ls.i8(16);this.LW=new Ls.i8(573);G6(this.LW);this.g_=this.AX=0;this.depth=new Ls.i8(573);G6(this.depth);this.qb=this.Su=this.Y$=this.matches=this.U0=this.RZ=this.lE=this.oV=this.xt=this.CA=0}; ThU=function(U,O){if(!U||!U.state||O>5||O<0)return U?ls(U,-2):-2;var M=U.state;if(!U.output||!U.input&&U.Km!==0||M.status===666&&O!==4)return ls(U,U.wK===0?-5:-2);M.RW=U;var S=M.Iy;M.Iy=O;if(M.status===42)if(M.wrap===2)U.Ke=0,Hi(M,31),Hi(M,139),Hi(M,8),M.lV?(Hi(M,(M.lV.text?1:0)+(M.lV.l5?2:0)+(M.lV.extra?4:0)+(M.lV.name?8:0)+(M.lV.comment?16:0)),Hi(M,M.lV.time&255),Hi(M,M.lV.time>>8&255),Hi(M,M.lV.time>>16&255),Hi(M,M.lV.time>>24&255),Hi(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),Hi(M,M.lV.os& 255),M.lV.extra&&M.lV.extra.length&&(Hi(M,M.lV.extra.length&255),Hi(M,M.lV.extra.length>>8&255)),M.lV.l5&&(U.Ke=DR(U.Ke,M.GJ,M.pending,0)),M.vC=0,M.status=69):(Hi(M,0),Hi(M,0),Hi(M,0),Hi(M,0),Hi(M,0),Hi(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),Hi(M,3),M.status=113);else{var p=8+(M.Qt-8<<4)<<8;p|=(M.strategy>=2||M.level<2?0:M.level<6?1:M.level===6?2:3)<<6;M.fE!==0&&(p|=32);M.status=113;z6(M,p+(31-p%31));M.fE!==0&&(z6(M,U.Ke>>>16),z6(M,U.Ke&65535));U.Ke=1}if(M.status===69)if(M.lV.extra){for(p= M.pending;M.vC<(M.lV.extra.length&65535)&&(M.pending!==M.BO||(M.lV.l5&&M.pending>p&&(U.Ke=DR(U.Ke,M.GJ,M.pending-p,p)),$k(U),p=M.pending,M.pending!==M.BO));)Hi(M,M.lV.extra[M.vC]&255),M.vC++;M.lV.l5&&M.pending>p&&(U.Ke=DR(U.Ke,M.GJ,M.pending-p,p));M.vC===M.lV.extra.length&&(M.vC=0,M.status=73)}else M.status=73;if(M.status===73)if(M.lV.name){p=M.pending;do{if(M.pending===M.BO&&(M.lV.l5&&M.pending>p&&(U.Ke=DR(U.Ke,M.GJ,M.pending-p,p)),$k(U),p=M.pending,M.pending===M.BO)){var h=1;break}h=M.vCp&&(U.Ke=DR(U.Ke,M.GJ,M.pending-p,p));h===0&&(M.vC=0,M.status=91)}else M.status=91;if(M.status===91)if(M.lV.comment){p=M.pending;do{if(M.pending===M.BO&&(M.lV.l5&&M.pending>p&&(U.Ke=DR(U.Ke,M.GJ,M.pending-p,p)),$k(U),p=M.pending,M.pending===M.BO)){h=1;break}h=M.vCp&&(U.Ke=DR(U.Ke,M.GJ,M.pending-p,p));h===0&&(M.status=103)}else M.status= 103;M.status===103&&(M.lV.l5?(M.pending+2>M.BO&&$k(U),M.pending+2<=M.BO&&(Hi(M,U.Ke&255),Hi(M,U.Ke>>8&255),U.Ke=0,M.status=113)):M.status=113);if(M.pending!==0){if($k(U),U.wK===0)return M.Iy=-1,0}else if(U.Km===0&&(O<<1)-(O>4?9:0)<=(S<<1)-(S>4?9:0)&&O!==4)return ls(U,-5);if(M.status===666&&U.Km!==0)return ls(U,-5);if(U.Km!==0||M.zS!==0||O!==0&&M.status!==666){S=M.strategy===2?GM7(M,O):M.strategy===3?lJe(M,O):Bi[M.level].func(M,O);if(S===3||S===4)M.status=666;if(S===1||S===3)return U.wK===0&&(M.Iy= -1),0;if(S===2&&(O===1?(U$(M,2,3),O$(M,256,T6),M.qb===16?(wB(M,M.Su),M.Su=0,M.qb=0):M.qb>=8&&(M.GJ[M.pending++]=M.Su&255,M.Su>>=8,M.qb-=8)):O!==5&&(U$(M,0,3),M44(M,0,0),O===3&&(G6(M.head),M.zS===0&&(M.fE=0,M.Hb=0,M.Y$=0))),$k(U),U.wK===0))return M.Iy=-1,0}if(O!==4)return 0;if(M.wrap<=0)return 1;M.wrap===2?(Hi(M,U.Ke&255),Hi(M,U.Ke>>8&255),Hi(M,U.Ke>>16&255),Hi(M,U.Ke>>24&255),Hi(M,U.yx&255),Hi(M,U.yx>>8&255),Hi(M,U.yx>>16&255),Hi(M,U.yx>>24&255)):(z6(M,U.Ke>>>16),z6(M,U.Ke&65535));$k(U);M.wrap>0&& (M.wrap=-M.wrap);return M.pending!==0?0:1}; xk=function(U){if(!(this instanceof xk))return new xk(U);U=this.options=Ls.assign({level:-1,method:8,chunkSize:16384,E_:15,qQP:8,strategy:0,Kg:""},U||{});U.raw&&U.E_>0?U.E_=-U.E_:U.ULy&&U.E_>0&&U.E_<16&&(U.E_+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.RW=new jZi;this.RW.wK=0;var O=this.RW;var M=U.level,S=U.method,p=U.E_,h=U.qQP,J=U.strategy;if(O){var f=1;M===-1&&(M=6);p<0?(f=0,p=-p):p>15&&(f=2,p-=16);if(h<1||h>9||S!==8||p<8||p>15||M<0||M>9||J<0||J>4)O=ls(O,-2);else{p===8&&(p=9); var F=new $Ni;O.state=F;F.RW=O;F.wrap=f;F.lV=null;F.Qt=p;F.Qf=1<>=7;h<30;h++)for(Jz[h]=J<<7,p=0;p<1<=l.Qf&&(O===0&&(G6(l.head),l.fE=0,l.Hb=0,l.Y$=0),M=new Ls.AN(l.Qf),Ls.eW(M,h,J-l.Qf,l.Qf,0),h=M,J=l.Qf);M=U.Km;S=U.Bu;p=U.input;U.Km=J;U.Bu=0;U.input=h;for(dZ(l);l.zS>=3;){h=l.fE;J=l.zS-2;do l.Zh=(l.Zh<=(0,M[3])(M[74],M[12],(0,M[65])()),((0,M[3])(M[8],M[12],(0,M[53])()),(0,M[9])(M[28],M[0]),((0,M[3])(M[74],M[12],(0,M[48])()),M[73])(M[37],M[63]),M[9])(M[61],M[52])/ (0,M[3])(M[63],M[45],(0,M[65])()),M[63],M[12],(0,M[65])()):(((((0,M[20])((0,M[20])((0,M[58])(M[63],M[6]),M[9],M[72],M[8]),M[58],M[63],M[15]),((0,M[40])(M[66],M[7]),M[57])(M[63],M[46]),(((0,M[59])(M[43]),M[38])(M[8],M[4]),M[21])(M[71],M[46]),M[27])(M[78],M[46]),M[3])(M[77],M[73],(0,M[32])()),M[47])(M[34],(0,M[0])(M[78],M[59]),(0,M[53])(M[72],M[55]),(0,M[61])(M[56],M[16]),M[45]),M[37])(M[45],M[74],(0,M[71])())),M[11]<1?(0,M[23])(M[2],(((0,M[20])((0,M[34])(M[new Date(gW[25])/1E3],M[30]),M[46],M[48], M[32]),(0,M[20])((0,M[34])(M[45],M[18]),M[37],M[32],M[28],(0,M[54])()),M[46])(M[7],M[45]),M[46])(M[57],M[56]),M[68],(0,M[37])(M[32],M[74],(0,M[54])()),(0,M[46])(M[59],M[45]),(0,M[60])(M[32]),M[76]):(0,M[21])((0,M[27])((0,M[31])(M[72],M[32]),M[61],((((0,M[0])(M[13],M[33]),M[34])(M[67],M[55]),M[75])(M[66],M[19]),(0,M[76])(M[74],M[4]),M[76])(M[30],M[64]),M[64],M[72]),M[52],(0,M[52])((0,M[66])(M[32],M[38]),M[13],M[18],M[27]),M[89-243%(new Date(gW[34])/1E3)],M[49])}catch(S){(0,M[59])(M[51],M[22],(0,M[25])()), (0,M[62])(M[20],M[21])}finally{M[11]1?O[U[0]]=U[1]:U.length===1&&Object.assign(O,U[0])}; g.wZ=function(U,O){return U in oV?oV[U]:O}; UI=function(U){var O=oV.EXPERIMENT_FLAGS;return O?O[U]:void 0}; q2w=function(U){OI.forEach(function(O){return O(U)})}; g.p4=function(U){return U&&window.yterr?function(){try{return U.apply(this,arguments)}catch(O){g.SJ(O)}}:U}; g.SJ=function(U){var O=g.K7("yt.logging.errors.log");O?O(U,"ERROR",void 0,void 0,void 0,void 0,void 0):(O=g.wZ("ERRORS",[]),O.push([U,"ERROR",void 0,void 0,void 0,void 0,void 0]),kk("ERRORS",O));q2w(U)}; Jb=function(U,O,M,S,p){var h=g.K7("yt.logging.errors.log");h?h(U,"WARNING",O,M,S,void 0,p):(h=g.wZ("ERRORS",[]),h.push([U,"WARNING",O,M,S,void 0,p]),kk("ERRORS",h))}; yI=function(U,O){O=U.split(O);for(var M={},S=0,p=O.length;S1?U[1]:U[0])):{}}; $J=function(U,O){return rSe(U,O||{},!0)}; Tr=function(U,O){return rSe(U,O||{},!1)}; rSe=function(U,O,M){var S=U.split("#",2);U=S[0];S=S.length>1?"#"+S[1]:"";var p=U.split("?",2);U=p[0];p=F2(p[1]||"");for(var h in O)if(M||!g.XU(p,h))p[h]=O[h];return g.pj(U,p)+S}; jJ=function(U){if(!O)var O=window.location.href;var M=g.wU(1,U),S=g.UY(U);M&&S?(U=U.match(kq),O=O.match(kq),U=U[3]==O[3]&&U[1]==O[1]&&U[4]==O[4]):U=S?g.UY(O)===S&&(Number(g.wU(4,O))||null)===(Number(g.wU(4,U))||null):!0;return U}; eJ=function(U){U||(U=document.location.href);U=g.wU(1,U);return U!==null&&U==="https"}; H5=function(U){U=aJw(U);return U===null?!1:U[0]==="com"&&U[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; ElU=function(U){U=aJw(U);return U===null?!1:U[1]==="google"?!0:U[2]==="google"?U[0]==="au"&&U[1]==="com"?!0:U[0]==="uk"&&U[1]==="co"?!0:!1:!1}; aJw=function(U){U=g.UY(U);return U!==null?U.split(".").reverse():null}; iz4=function(U){return U&&U.match(Lle)?U:f1(U)}; D2=function(U){var O=zr;U=U===void 0?Xh4():U;var M=Object,S=M.assign,p=c5(O);var h=O.U;try{var J=h.screenX;var f=h.screenY}catch(x){}try{var F=h.outerWidth;var l=h.outerHeight}catch(x){}try{var G=h.innerWidth;var T=h.innerHeight}catch(x){}try{var e=h.screenLeft;var H=h.screenTop}catch(x){}try{G=h.innerWidth,T=h.innerHeight}catch(x){}try{var z=h.screen.availWidth;var W=h.screen.availTop}catch(x){}h=[e,H,J,f,z,W,F,l,G,T];J=$aW(!1,O.U.top);f={};var v=v===void 0?g.q1:v;F=new EQ;"SVGElement"in v&&"createElementNS"in v.document&&F.set(0);l=xF5();l["allow-top-navigation-by-user-activation"]&&F.set(1);l["allow-popups-to-escape-sandbox"]&&F.set(2);v.crypto&&v.crypto.subtle&&F.set(3);"TextDecoder"in v&&"TextEncoder"in v&&F.set(4);v=D0W(F);O=(f.bc=v,f.bih=J.height,f.biw=J.width,f.brdim=h.join(),f.vis=WU(O.V),f.wgl=!!cU.WebGLRenderingContext,f);M=S.call(M,p,O);M.ca_type="image";U&&(M.bid=U);return M}; c5=function(U){var O={};O.dt=V41;O.flash="0";a:{try{var M=U.U.top.location.href}catch(G){U=2;break a}U=M?M===U.V.location.href?0:1:2}O=(O.frm=U,O);try{O.u_tz=-(new Date).getTimezoneOffset();var S=S===void 0?cU:S;try{var p=S.history.length}catch(G){p=0}O.u_his=p;var h;O.u_h=(h=cU.screen)==null?void 0:h.height;var J;O.u_w=(J=cU.screen)==null?void 0:J.width;var f;O.u_ah=(f=cU.screen)==null?void 0:f.availHeight;var F;O.u_aw=(F=cU.screen)==null?void 0:F.availWidth;var l;O.u_cd=(l=cU.screen)==null?void 0: l.colorDepth}catch(G){}return O}; kMJ=function(){if(!olw)return null;var U=olw();return"open"in U?U:null}; g.W5=function(U){switch(da(U)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; da=function(U){return U&&"status"in U?U.status:-1}; g.Nv=function(U,O){typeof U==="function"&&(U=g.p4(U));return window.setTimeout(U,O)}; g.v5=function(U,O){typeof U==="function"&&(U=g.p4(U));return window.setInterval(U,O)}; g.B5=function(U){window.clearTimeout(U)}; g.xJ=function(U){window.clearInterval(U)}; g.R0=function(U){U=bx(U);return typeof U==="string"&&U==="false"?!1:!!U}; g.tb=function(U,O){U=bx(U);return U===void 0&&O!==void 0?O:Number(U||0)}; YJ=function(){return g.wZ("EXPERIMENTS_TOKEN","")}; bx=function(U){return g.wZ("EXPERIMENT_FLAGS",{})[U]}; mo=function(){for(var U=[],O=g.wZ("EXPERIMENTS_FORCED_FLAGS",{}),M=g.D(Object.keys(O)),S=M.next();!S.done;S=M.next())S=S.value,U.push({key:S,value:String(O[S])});M=g.wZ("EXPERIMENT_FLAGS",{});S=g.D(Object.keys(M));for(var p=S.next();!p.done;p=S.next())p=p.value,p.startsWith("force_")&&O[p]===void 0&&U.push({key:p,value:String(M[p])});return U}; Ab=function(U,O,M,S,p,h,J,f){function F(){(l&&"readyState"in l?l.readyState:0)===4&&O&&g.p4(O)(l)} M=M===void 0?"GET":M;S=S===void 0?"":S;f=f===void 0?!1:f;var l=kMJ();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",F,!1):l.onreadystatechange=F;g.R0("debug_forward_web_query_parameters")&&(U=whm(U,window.location.search));l.open(M,U,!0);h&&(l.responseType=h);J&&(l.withCredentials=!0);M=M==="POST"&&(window.FormData===void 0||!(S instanceof FormData));if(p=U94(U,p))for(var G in p)l.setRequestHeader(G,p[G]),"content-type"===G.toLowerCase()&&(M=!1);M&&l.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(f&&"setAttributionReporting"in XMLHttpRequest.prototype){U={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(U)}catch(T){Jb(T)}}l.send(S);return l}; U94=function(U,O){O=O===void 0?{}:O;var M=jJ(U),S=g.wZ("INNERTUBE_CLIENT_NAME"),p=g.R0("web_ajax_ignore_global_headers_if_set"),h;for(h in O$1){var J=g.wZ(O$1[h]),f=h==="X-Goog-AuthUser"||h==="X-Goog-PageId";h!=="X-Goog-Visitor-Id"||J||(J=g.wZ("VISITOR_DATA"));var F;if(!(F=!J)){if(!(F=M||(g.UY(U)?!1:!0))){F=U;var l;if(l=g.R0("add_auth_headers_to_remarketing_google_dot_com_ping")&&h==="Authorization"&&(S==="TVHTML5"||S==="TVHTML5_UNPLUGGED"||S==="TVHTML5_SIMPLY")&&ElU(F))F=o4(g.wU(5,F))||"",F=F.split("/"), F="/"+(F.length>1?F[1]:""),l=F==="/pagead";F=l?!0:!1}F=!F}F||p&&O[h]!==void 0||S==="TVHTML5_UNPLUGGED"&&f||(O[h]=J)}"X-Goog-EOM-Visitor-Id"in O&&"X-Goog-Visitor-Id"in O&&delete O["X-Goog-Visitor-Id"];if(M||!g.UY(U))O["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(M||!g.UY(U)){try{var G=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(T){}G&&(O["X-YouTube-Time-Zone"]=G)}document.location.hostname.endsWith("youtubeeducation.com")||!M&&g.UY(U)||(O["X-YouTube-Ad-Signals"]= f4(D2()));return O}; ghg=function(U,O){var M=g.UY(U);g.R0("debug_handle_relative_url_for_query_forward_killswitch")||!M&&jJ(U)&&(M=document.location.hostname);var S=o4(g.wU(5,U));S=(M=M&&(M.endsWith("youtube.com")||M.endsWith("youtube-nocookie.com")))&&S&&S.startsWith("/api/");if(!M||S)return U;var p=F2(O),h={};g.T$(sHe,function(J){p[J]&&(h[J]=p[J])}); return Tr(U,h)}; P5=function(U,O){O.method="POST";O.postParams||(O.postParams={});return g.I0(U,O)}; pS4=function(U,O){if(window.fetch&&O.format!=="XML"){var M={method:O.method||"GET",credentials:"same-origin"};O.headers&&(M.headers=O.headers);O.priority&&(M.priority=O.priority);U=Muw(U,O);var S=SQJ(U,O);S&&(M.body=S);O.withCredentials&&(M.credentials="include");var p=O.context||g.q1,h=!1,J;fetch(U,M).then(function(f){if(!h){h=!0;J&&g.B5(J);var F=f.ok,l=function(G){G=G||{};F?O.onSuccess&&O.onSuccess.call(p,G,f):O.onError&&O.onError.call(p,G,f);O.onFinish&&O.onFinish.call(p,G,f)}; (O.format||"JSON")==="JSON"&&(F||f.status>=400&&f.status<500)?f.json().then(l,function(){l(null)}):l(null)}}).catch(function(){O.onError&&O.onError.call(p,{},{})}); U=O.timeout||0;O.onFetchTimeout&&U>0&&(J=g.Nv(function(){h||(h=!0,g.B5(J),O.onFetchTimeout.call(O.context||g.q1))},U))}else g.I0(U,O)}; g.I0=function(U,O){var M=O.format||"JSON";U=Muw(U,O);var S=SQJ(U,O),p=!1,h=hO7(U,function(F){if(!p){p=!0;f&&g.B5(f);var l=g.W5(F),G=null,T=400<=F.status&&F.status<500,e=500<=F.status&&F.status<600;if(l||T||e)G=J8i(U,M,F,O.convertToSafeHtml);l&&(l=y8w(M,F,G));G=G||{};T=O.context||g.q1;l?O.onSuccess&&O.onSuccess.call(T,F,G):O.onError&&O.onError.call(T,F,G);O.onFinish&&O.onFinish.call(T,F,G)}},O.method,S,O.headers,O.responseType,O.withCredentials); S=O.timeout||0;if(O.onTimeout&&S>0){var J=O.onTimeout;var f=g.Nv(function(){p||(p=!0,h.abort(),g.B5(f),J.call(O.context||g.q1,h))},S)}return h}; Muw=function(U,O){O.includeDomain&&(U=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+U);var M=g.wZ("XSRF_FIELD_NAME");if(O=O.urlParams)O[M]&&delete O[M],U=$J(U,O);return U}; SQJ=function(U,O){var M=g.wZ("XSRF_FIELD_NAME"),S=g.wZ("XSRF_TOKEN"),p=O.postBody||"",h=O.postParams,J=g.wZ("XSRF_FIELD_NAME"),f;O.headers&&(f=O.headers["Content-Type"]);O.excludeXsrf||g.UY(U)&&!O.withCredentials&&g.UY(U)!==document.location.hostname||O.method!=="POST"||f&&f!=="application/x-www-form-urlencoded"||O.postParams&&O.postParams[J]||(h||(h={}),h[M]=S);(g.R0("ajax_parse_query_data_only_when_filled")&&h&&Object.keys(h).length>0||h)&&typeof p==="string"&&(p=F2(p),g.Vo(p,h),p=O.postBodyFormat&& O.postBodyFormat==="JSON"?JSON.stringify(p):g.SK(p));h=p||h&&!g.iy(h);!fVJ&&h&&O.method!=="POST"&&(fVJ=!0,g.SJ(Error("AJAX request with postData should use POST")));return p}; J8i=function(U,O,M,S){var p=null;switch(O){case "JSON":try{var h=M.responseText}catch(J){throw S=Error("Error reading responseText"),S.params=U,Jb(S),J;}U=M.getResponseHeader("Content-Type")||"";h&&U.indexOf("json")>=0&&(h.substring(0,5)===")]}'\n"&&(h=h.substring(5)),p=JSON.parse(h));break;case "XML":if(U=(U=M.responseXML)?F6e(U):null)p={},g.T$(U.getElementsByTagName("*"),function(J){p[J.tagName]=lVw(J)})}S&&Gdg(p); return p}; Gdg=function(U){if(g.Vi(U))for(var O in U)O==="html_content"||uew(O,"_html")?U[O]=VS(U[O]):Gdg(U[O])}; y8w=function(U,O,M){if(O&&O.status===204)return!0;switch(U){case "JSON":return!!M;case "XML":return Number(M&&M.return_code)===0;case "RAW":return!0;default:return!!M}}; F6e=function(U){return U?(U=("responseXML"in U?U.responseXML:U).getElementsByTagName("root"))&&U.length>0?U[0]:null:null}; lVw=function(U){var O="";g.T$(U.childNodes,function(M){O+=M.nodeValue}); return O}; QI=function(U,O){var M=g.ri(O),S;return(new g.Yq(function(p,h){M.onSuccess=function(J){g.W5(J)?p(new $9i(J)):h(new n4("Request failed, status="+da(J),"net.badstatus",J))}; M.onError=function(J){h(new n4("Unknown request error","net.unknown",J))}; M.onTimeout=function(J){h(new n4("Request timed out","net.timeout",J))}; S=g.I0(U,M)})).yq(function(p){if(p instanceof Xh){var h; (h=S)==null||h.abort()}return I4(p)})}; g.C4=function(U,O,M,S){function p(f,F,l){return f.yq(function(G){if(F<=0||da(G.xhr)===403)return I4(new n4("Request retried too many times","net.retryexhausted",G.xhr,G));G=Math.pow(2,M-F+1)*l;var T=J>0?Math.min(J,G):G;return h(l).then(function(){return p(QI(U,O),F-1,T)})})} function h(f){return new g.Yq(function(F){setTimeout(F,f)})} var J=J===void 0?-1:J;return p(QI(U,O),M-1,S)}; n4=function(U,O,M){eD.call(this,U+", errorCode="+O);this.errorCode=O;this.xhr=M;this.name="PromiseAjaxError"}; $9i=function(U){this.xhr=U}; X2=function(U){this.U=U===void 0?null:U;this.B=0;this.V=null}; ux=function(U){var O=new X2;U=U===void 0?null:U;O.B=2;O.V=U===void 0?null:U;return O}; qv=function(U){var O=new X2;U=U===void 0?null:U;O.B=1;O.V=U===void 0?null:U;return O}; g.K4=function(U,O,M,S,p){ix||Z2.set(""+U,O,{yb:M,path:"/",domain:S===void 0?"youtube.com":S,secure:p===void 0?!1:p})}; g.ra=function(U,O){if(!ix)return Z2.get(""+U,O)}; g.a0=function(U,O,M){ix||Z2.remove(""+U,O===void 0?"/":O,M===void 0?"youtube.com":M)}; Tjw=function(){if(g.R0("embeds_web_enable_cookie_detection_fix")){if(!g.q1.navigator.cookieEnabled)return!1}else if(!Z2.isEnabled())return!1;if(!Z2.isEmpty())return!0;g.R0("embeds_web_enable_cookie_detection_fix")?Z2.set("TESTCOOKIESENABLED","1",{yb:60,zX0:"none",secure:!0}):Z2.set("TESTCOOKIESENABLED","1",{yb:60});if(Z2.get("TESTCOOKIESENABLED")!=="1")return!1;Z2.remove("TESTCOOKIESENABLED");return!0}; g.q=function(U,O){if(U)return U[O.name]}; EI=function(U){var O=g.wZ("INNERTUBE_HOST_OVERRIDE");O&&(U=String(O)+String(OY(U)));return U}; jHU=function(U){var O={};g.R0("json_condensed_response")&&(O.prettyPrint="false");return U=Tr(U,O)}; L4=function(U,O){var M=M===void 0?{}:M;U={method:O===void 0?"POST":O,mode:jJ(U)?"same-origin":"cors",credentials:jJ(U)?"same-origin":"include"};O={};for(var S=g.D(Object.keys(M)),p=S.next();!p.done;p=S.next())p=p.value,M[p]&&(O[p]=M[p]);Object.keys(O).length>0&&(U.headers=O);return U}; VI=function(){var U=/Chrome\/(\d+)/.exec(g.YE());return U?parseFloat(U[1]):NaN}; o0=function(){var U=/\sCobalt\/(\S+)\s/.exec(g.YE());if(!U)return NaN;var O=[];U=g.D(U[1].split("."));for(var M=U.next();!M.done;M=U.next())M=parseInt(M.value,10),M>=0&&O.push(M);return parseFloat(O.join("."))}; wa=function(){return g.kJ("android")&&g.kJ("chrome")&&!(g.kJ("trident/")||g.kJ("edge/"))&&!g.kJ("cobalt")}; eOW=function(){return g.kJ("armv7")||g.kJ("aarch64")||g.kJ("android")}; g.Ud=function(){return g.kJ("cobalt")}; Od=function(){return g.kJ("cobalt")&&g.kJ("appletv")}; sd=function(){return g.kJ("(ps3; leanback shell)")||g.kJ("ps3")&&g.Ud()}; H$e=function(){return g.kJ("(ps4; leanback shell)")||g.kJ("ps4")&&g.Ud()}; g.zOw=function(){return g.Ud()&&(g.kJ("ps4 vr")||g.kJ("ps4 pro vr"))}; gr=function(){var U=/WebKit\/([0-9]+)/.exec(g.YE());return!!(U&&parseInt(U[1],10)>=600)}; Mt=function(){var U=/WebKit\/([0-9]+)/.exec(g.YE());return!!(U&&parseInt(U[1],10)>=602)}; c84=function(){return g.kJ("iemobile")||g.kJ("windows phone")&&g.kJ("edge")}; hw=function(){return(SQ||pE)&&g.kJ("applewebkit")&&!g.kJ("version")&&(!g.kJ("safari")||g.kJ("gsa/"))}; ym=function(){return g.Jw&&g.kJ("version/")}; fE=function(){return g.kJ("smart-tv")&&g.kJ("samsung")}; g.kJ=function(U){var O=g.YE();return O?O.toLowerCase().indexOf(U)>=0:!1}; FK=function(){return XVq()||hw()||ym()?!0:g.wZ("EOM_VISITOR_DATA")?!1:!0}; lC=function(U,O){return O===void 0||O===null?U:O==="1"||O===!0||O===1||O==="True"?!0:!1}; GI=function(U,O,M){for(var S in M)if(M[S]==O)return M[S];return U}; $d=function(U,O){return O===void 0||O===null?U:Number(O)}; TI=function(U,O){return O===void 0||O===null?U:O.toString()}; jQ=function(U,O){if(O){if(U==="fullwidth")return Infinity;if(U==="fullheight")return 0}return U&&(O=U.match(D9w))&&(U=Number(O[2]),O=Number(O[1]),!isNaN(U)&&!isNaN(O)&&U>0)?O/U:NaN}; eQ=function(U){var O=U.docid||U.video_id||U.videoId||U.id;if(O)return O;O=U.raw_player_response;O||(U=U.player_response)&&(O=JSON.parse(U));return O&&O.videoDetails&&O.videoDetails.videoId||null}; d97=function(U){return HA(U,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.zI=function(U){return U==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||U==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; HA=function(U,O){O=(O===void 0?0:O)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(O="EMBEDDED_PLAYER_MODE_PFL");var M=U.raw_embedded_player_response;if(!M&&(U=U.embedded_player_response))try{M=JSON.parse(U)}catch(S){return O}return M?GI(O,M.embeddedPlayerMode,W67):O}; DO=function(U){eD.call(this,U.message||U.description||U.name);this.isMissing=U instanceof cA;this.isTimeout=U instanceof n4&&U.errorCode=="net.timeout";this.isCanceled=U instanceof Xh}; cA=function(){eD.call(this,"Biscotti ID is missing from server")}; Nj7=function(){if(g.R0("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!FK())return Error("User has not consented - not fetching biscotti id.");var U=g.wZ("PLAYER_VARS",{});if(g.Z9(U,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(d97(U))return Error("Biscotti id fetching has been disabled for pfl.")}; b$w=function(){var U=Nj7();if(U!==void 0)return I4(U);dr||(dr=QI("//googleads.g.doubleclick.net/pagead/id",vhy).then(Bjm).yq(function(O){return x9i(2,O)})); return dr}; Bjm=function(U){U=U.xhr.responseText;if(!Wq(U,")]}'"))throw new cA;U=JSON.parse(U.substr(4));if((U.type||1)>1)throw new cA;U=U.id;uOe(U);dr=qv(U);ROq(18E5,2);return U}; x9i=function(U,O){O=new DO(O);uOe("");dr=ux(O);U>0&&ROq(12E4,U-1);throw O;}; ROq=function(U,O){g.Nv(function(){QI("//googleads.g.doubleclick.net/pagead/id",vhy).then(Bjm,function(M){return x9i(O,M)}).yq(g.Br)},U)}; tuq=function(){try{var U=g.K7("yt.ads.biscotti.getId_");return U?U():b$w()}catch(O){return I4(O)}}; m95=function(U){U&&(U.dataset?U.dataset[YQi()]="true":Bfe(U))}; A8m=function(U){return U?U.dataset?U.dataset[YQi()]:U.getAttribute("data-loaded"):null}; YQi=function(){return IVw.loaded||(IVw.loaded="loaded".replace(/\-([a-z])/g,function(U,O){return O.toUpperCase()}))}; PeJ=function(){var U=document;if("visibilityState"in U)return U.visibilityState;var O=WA+"VisibilityState";if(O in U)return U[O]}; Nt=function(U,O){var M;A6(U,function(S){M=O[S];return!!M}); return M}; vA=function(U){if(U.requestFullscreen)U=U.requestFullscreen(void 0);else if(U.webkitRequestFullscreen)U=U.webkitRequestFullscreen();else if(U.mozRequestFullScreen)U=U.mozRequestFullScreen();else if(U.msRequestFullscreen)U=U.msRequestFullscreen();else if(U.webkitEnterFullscreen)U=U.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return U instanceof Promise?U:Promise.resolve()}; bC=function(U){var O;g.BA()?xd()==U&&(O=document):O=U;return O&&(U=Nt(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],O))?(O=U.call(O),O instanceof Promise?O:Promise.resolve()):Promise.resolve()}; nhm=function(U){return g.VD(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(O){return"on"+O.toLowerCase()in U})}; QHe=function(){var U=document;return g.VD(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(O){return"on"+O.toLowerCase()in U})}; g.BA=function(){return!!Nt(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; xd=function(U){U=U===void 0?!1:U;var O=Nt(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(U)for(;O&&O.shadowRoot;)O=O.shadowRoot.fullscreenElement;return O?O:null}; Rn=function(U){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(U=U||window.event){this.event=U;for(var O in U)O in Cem||(this[O]=U[O]);this.scale=U.scale;this.rotation=U.rotation;var M=U.target||U.srcElement;M&&M.nodeType==3&&(M=M.parentNode);this.target=M;var S=U.relatedTarget; if(S)try{S=S.nodeName?S:null}catch(p){S=null}else this.type=="mouseover"?S=U.fromElement:this.type=="mouseout"&&(S=U.toElement);this.relatedTarget=S;this.clientX=U.clientX!=void 0?U.clientX:U.pageX;this.clientY=U.clientY!=void 0?U.clientY:U.pageY;this.keyCode=U.keyCode?U.keyCode:U.which;this.charCode=U.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=U.altKey;this.ctrlKey=U.ctrlKey;this.shiftKey=U.shiftKey;this.metaKey=U.metaKey;this.U=U.pageX;this.V=U.pageY}}catch(p){}}; XSe=function(U){if(document.body&&document.documentElement){var O=document.body.scrollTop+document.documentElement.scrollTop;U.U=U.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);U.V=U.clientY+O}}; ute=function(U,O,M,S){S=S===void 0?{}:S;U.addEventListener&&(O!="mouseenter"||"onmouseenter"in document?O!="mouseleave"||"onmouseenter"in document?O=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(O="MozMousePixelScroll"):O="mouseout":O="mouseover");return qm(tw,function(p){var h=typeof p[4]==="boolean"&&p[4]==!!S,J=g.Vi(p[4])&&g.Vi(S)&&g.K1(p[4],S);return!!p.length&&p[0]==U&&p[1]==O&&p[2]==M&&(h||J)})}; g.Yd=function(U,O,M,S){S=S===void 0?{}:S;if(!U||!U.addEventListener&&!U.attachEvent)return"";var p=ute(U,O,M,S);if(p)return p;p=++qQi.count+"";var h=!(O!="mouseenter"&&O!="mouseleave"||!U.addEventListener||"onmouseenter"in document);var J=h?function(f){f=new Rn(f);if(!DA(f.relatedTarget,function(F){return F==U},!0))return f.currentTarget=U,f.type=O,M.call(U,f)}:function(f){f=new Rn(f); f.currentTarget=U;return M.call(U,f)}; J=g.p4(J);U.addEventListener?(O=="mouseenter"&&h?O="mouseover":O=="mouseleave"&&h?O="mouseout":O=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(O="MozMousePixelScroll"),i$4()||typeof S==="boolean"?U.addEventListener(O,J,S):U.addEventListener(O,J,!!S.capture)):U.attachEvent("on"+O,J);tw[p]=[U,O,M,J,S];return p}; K6e=function(U){return Z$U(U,function(O){return g.y$(O,"ytp-ad-has-logging-urls")})}; Z$U=function(U,O){var M=document.body||document;return g.Yd(M,"click",function(S){var p=DA(S.target,function(h){return h===M||O(h)},!0); p&&p!==M&&!p.disabled&&(S.currentTarget=p,U.call(p,S))})}; g.mX=function(U){U&&(typeof U=="string"&&(U=[U]),g.T$(U,function(O){if(O in tw){var M=tw[O],S=M[0],p=M[1],h=M[3];M=M[4];S.removeEventListener?i$4()||typeof M==="boolean"?S.removeEventListener(p,h,M):S.removeEventListener(p,h,!!M.capture):S.detachEvent&&S.detachEvent("on"+p,h);delete tw[O]}}))}; Aw=function(U){for(var O in tw)tw[O][0]==U&&g.mX(O)}; In=function(U){U=U||window.event;var O;U.composedPath&&typeof U.composedPath==="function"?O=U.composedPath():O=U.path;O&&O.length?U=O[0]:(U=U||window.event,U=U.target||U.srcElement,U.nodeType==3&&(U=U.parentNode));return U}; PA=function(U){this.D=U;this.U=null;this.X=0;this.C=null;this.G=0;this.V=[];for(U=0;U<4;U++)this.V.push(0);this.B=0;this.ol=g.Yd(window,"mousemove",(0,g.U4)(this.Z,this));this.Y=g.v5((0,g.U4)(this.yP,this),25)}; nE=function(U){g.C.call(this);this.Y=[];this.Qa=U||this}; Qm=function(U,O,M,S){for(var p=0;p0?M:0;M=S?Date.now()+S*1E3:0;if((S=S?(0,g.uC)():qt())&&window.JSON){typeof O!=="string"&&(O=JSON.stringify(O,void 0));try{S.set(U,O,M)}catch(p){S.remove(U)}}}; g.ZO=function(U){var O=qt(),M=(0,g.uC)();if(!O&&!M||!window.JSON)return null;try{var S=O.get(U)}catch(p){}if(typeof S!=="string")try{S=M.get(U)}catch(p){}if(typeof S!=="string")return null;try{S=JSON.parse(S,void 0)}catch(p){}return S}; EhJ=function(){var U=(0,g.uC)();if(U&&(U=U.V("yt-player-quality")))return U.creation}; g.KE=function(U){try{var O=qt(),M=(0,g.uC)();O&&O.remove(U);M&&M.remove(U)}catch(S){}}; g.rr=function(){return g.ZO("yt-remote-session-screen-id")}; L6J=function(U){var O=this;this.V=void 0;this.U=!1;U.addEventListener("beforeinstallprompt",function(M){M.preventDefault();O.V=M}); U.addEventListener("appinstalled",function(){O.U=!0},{once:!0})}; an=function(){if(!g.q1.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.q1.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.q1.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.q1.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.q1.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(U){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Ed=function(){this.iX=!0}; Vuy=function(){Ed.instance||(Ed.instance=new Ed);return Ed.instance}; ohy=function(U){switch(U){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}}; kdm=function(){this.U=g.wZ("ALT_PREF_COOKIE_NAME","PREF");this.V=g.wZ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var U=g.ra(this.U);U&&this.parse(U)}; g.Vm=function(){LE||(LE=new kdm);return LE}; g.on=function(U,O){return!!((wSm("f"+(Math.floor(O/31)+1))||0)&1<0;)switch(U=zw.shift(),U.type){case "ERROR":Tw.wc(U.payload);break;case "EVENT":Tw.logEvent(U.eventType,U.payload)}}; DK=function(U){cX||(Tw?Tw.wc(U):(zw.push({type:"ERROR",payload:U}),zw.length>10&&zw.shift()))}; dq=function(U,O){cX||(Tw?Tw.logEvent(U,O):(zw.push({type:"EVENT",eventType:U,payload:O}),zw.length>10&&zw.shift()))}; WX=function(U){if(U.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; NR=function(U){return U.substr(0,U.indexOf(":"))||U}; g.vX=function(U,O,M,S,p){O=O===void 0?{}:O;M=M===void 0?hH4[U]:M;S=S===void 0?JDm[U]:S;p=p===void 0?yD7[U]:p;g.sT.call(this,M,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:U},O));this.type=U;this.message=M;this.level=S;this.U=p;Object.setPrototypeOf(this,g.vX.prototype)}; BX=function(U,O){g.vX.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:O,foundObjectStores:U},hH4.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,BX.prototype)}; xO=function(U,O){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.index=U;this.objectStore=O;Object.setPrototypeOf(this,xO.prototype)}; RE=function(U,O,M,S){O=NR(O);var p=U instanceof Error?U:Error("Unexpected error: "+U);if(p instanceof g.vX)return p;U={objectStoreNames:M,dbName:O,dbVersion:S};if(p.name==="QuotaExceededError")return new g.vX("QUOTA_EXCEEDED",U);if(g.bh&&p.name==="UnknownError")return new g.vX("QUOTA_MAYBE_EXCEEDED",U);if(p instanceof xO)return new g.vX("MISSING_INDEX",Object.assign({},U,{objectStore:p.objectStore,index:p.index}));if(p.name==="InvalidStateError"&&fUy.some(function(h){return p.message.includes(h)}))return new g.vX("EXECUTE_TRANSACTION_ON_CLOSED_DB", U); if(p.name==="AbortError")return new g.vX("UNKNOWN_ABORT",U,p.message);p.args=[Object.assign({},U,{name:"IdbError",fh:p.name})];p.level="WARNING";return p}; g.tx=function(U,O,M){var S=$O();return new g.vX("IDB_NOT_SUPPORTED",{context:{caller:U,publicName:O,version:M,hasSucceededOnce:S==null?void 0:S.hasSucceededOnce}})}; FT7=function(U){if(!U)throw Error();throw U;}; lUW=function(U){return U}; YO=function(U){this.U=U}; g.mC=function(U){function O(p){if(S.state.status==="PENDING"){S.state={status:"REJECTED",reason:p};p=g.D(S.V);for(var h=p.next();!h.done;h=p.next())h=h.value,h()}} function M(p){if(S.state.status==="PENDING"){S.state={status:"FULFILLED",value:p};p=g.D(S.U);for(var h=p.next();!h.done;h=p.next())h=h.value,h()}} var S=this;this.state={status:"PENDING"};this.U=[];this.V=[];U=U.U;try{U(M,O)}catch(p){O(p)}}; Gnw=function(U,O,M,S,p){try{if(U.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var h=M(U.state.value);h instanceof g.mC?Ax(U,O,h,S,p):S(h)}catch(J){p(J)}}; $$e=function(U,O,M,S,p){try{if(U.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var h=M(U.state.reason);h instanceof g.mC?Ax(U,O,h,S,p):S(h)}catch(J){p(J)}}; Ax=function(U,O,M,S,p){O===M?p(new TypeError("Circular promise chain detected.")):M.then(function(h){h instanceof g.mC?Ax(U,O,h,S,p):S(h)},function(h){p(h)})}; TB5=function(U,O,M){function S(){M(U.error);h()} function p(){O(U.result);h()} function h(){try{U.removeEventListener("success",p),U.removeEventListener("error",S)}catch(J){}} U.addEventListener("success",p);U.addEventListener("error",S)}; j$5=function(U){return new Promise(function(O,M){TB5(U,O,M)})}; IE=function(U){return new g.mC(new YO(function(O,M){TB5(U,O,M)}))}; PX=function(U,O){return new g.mC(new YO(function(M,S){function p(){var h=U?O(U):null;h?h.then(function(J){U=J;p()},S):M()} p()}))}; eHe=function(U,O){this.request=U;this.cursor=O}; Hse=function(U){return IE(U).then(function(O){return O?new eHe(U,O):null})}; g.zHU=function(U){U.cursor.continue(void 0);return Hse(U.request)}; cDw=function(U,O){this.U=U;this.options=O;this.transactionCount=0;this.B=Math.round((0,g.nM)());this.V=!1}; g.CM=function(U,O,M){U=U.U.createObjectStore(O,M);return new QF(U)}; Xo=function(U,O){U.U.objectStoreNames.contains(O)&&U.U.deleteObjectStore(O)}; g.ih=function(U,O,M){return g.uh(U,[O],{mode:"readwrite",GS:!0},function(S){return g.qR(S.objectStore(O),M)})}; g.uh=function(U,O,M,S){var p,h,J,f,F,l,G,T,e,H,z,W;return g.A(function(v){switch(v.U){case 1:var x={mode:"readonly",GS:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof M==="string"?x.mode=M:Object.assign(x,M);p=x;U.transactionCount++;h=p.GS?3:1;J=0;case 2:if(f){v.tZ(4);break}J++;F=Math.round((0,g.nM)());g.dW(v,5);l=U.U.transaction(O,p.mode);x=new ZK(l);x=D$W(x,S);return g.Y(v,x,7);case 7:return G=v.V,T=Math.round((0,g.nM)()),d$4(U,F,T,J,void 0,O.join(),p),v.return(G);case 5:e=g.Bg(v);H=Math.round((0,g.nM)()); z=RE(e,U.U.name,O.join(),U.U.version);if((W=z instanceof g.vX&&!z.U)||J>=h)d$4(U,F,H,J,z,O.join(),p),f=z;v.tZ(2);break;case 4:return v.return(Promise.reject(f))}})}; d$4=function(U,O,M,S,p,h,J){O=M-O;p?(p instanceof g.vX&&(p.type==="QUOTA_EXCEEDED"||p.type==="QUOTA_MAYBE_EXCEEDED")&&dq("QUOTA_EXCEEDED",{dbName:NR(U.U.name),objectStoreNames:h,transactionCount:U.transactionCount,transactionMode:J.mode}),p instanceof g.vX&&p.type==="UNKNOWN_ABORT"&&(M-=U.B,M<0&&M>=2147483648&&(M=0),dq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:h,transactionDuration:O,transactionCount:U.transactionCount,dbDuration:M}),U.V=!0),WTe(U,!1,S,h,O,J.tag),DK(p)):WTe(U,!0,S,h,O, J.tag)}; WTe=function(U,O,M,S,p,h){dq("TRANSACTION_ENDED",{objectStoreNames:S,connectionHasUnknownAbortedTransaction:U.V,duration:p,isSuccessful:O,tryCount:M,tag:h===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":h})}; QF=function(U){this.U=U}; g.KM=function(U,O,M){U.U.createIndex(O,M,{unique:!1})}; NBe=function(U,O){return g.rq(U,{query:O},function(M){return M.delete().then(function(){return g.aE(M)})}).then(function(){})}; vUq=function(U,O,M){var S=[];return g.rq(U,{query:O},function(p){if(!(M!==void 0&&S.length>=M))return S.push(p.getValue()),g.aE(p)}).then(function(){return S})}; x$g=function(U){return"getAllKeys"in IDBObjectStore.prototype?IE(U.U.getAllKeys(void 0,void 0)):BB7(U)}; BB7=function(U){var O=[];return g.bs7(U,{query:void 0},function(M){O.push(M.cursor.primaryKey);return g.zHU(M)}).then(function(){return O})}; g.qR=function(U,O,M){return IE(U.U.put(O,M))}; g.rq=function(U,O,M){U=U.U.openCursor(O.query,O.direction);return ET(U).then(function(S){return PX(S,M)})}; g.bs7=function(U,O,M){var S=O.query;O=O.direction;U="openKeyCursor"in IDBObjectStore.prototype?U.U.openKeyCursor(S,O):U.U.openCursor(S,O);return Hse(U).then(function(p){return PX(p,M)})}; ZK=function(U){var O=this;this.U=U;this.B=new Map;this.V=!1;this.done=new Promise(function(M,S){O.U.addEventListener("complete",function(){M()}); O.U.addEventListener("error",function(p){p.currentTarget===p.target&&S(O.U.error)}); O.U.addEventListener("abort",function(){var p=O.U.error;if(p)S(p);else if(!O.V){p=g.vX;for(var h=O.U.objectStoreNames,J=[],f=0;f=M))return S.push(p.getValue()),g.aE(p)}).then(function(){return S})}; g.LM=function(U,O,M){U=U.U.openCursor(O.query===void 0?null:O.query,O.direction===void 0?"next":O.direction);return ET(U).then(function(S){return PX(S,M)})}; VF=function(U,O){this.request=U;this.cursor=O}; ET=function(U){return IE(U).then(function(O){return O?new VF(U,O):null})}; g.aE=function(U){U.cursor.continue(void 0);return ET(U.request)}; YM5=function(U,O,M){return new Promise(function(S,p){function h(){e||(e=new cDw(J.result,{closed:T}));return e} var J=O!==void 0?self.indexedDB.open(U,O):self.indexedDB.open(U);var f=M.blocked,F=M.blocking,l=M.NLa,G=M.upgrade,T=M.closed,e;J.addEventListener("upgradeneeded",function(H){try{if(H.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(J.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");H.dataLoss&&H.dataLoss!=="none"&&dq("IDB_DATA_CORRUPTED",{reason:H.dataLossMessage||"unknown reason",dbName:NR(U)});var z=h(),W=new ZK(J.transaction); G&&G(z,function(v){return H.oldVersion=v},W); W.done.catch(function(v){p(v)})}catch(v){p(v)}}); J.addEventListener("success",function(){var H=J.result;F&&H.addEventListener("versionchange",function(){F(h())}); H.addEventListener("close",function(){dq("IDB_UNEXPECTEDLY_CLOSED",{dbName:NR(U),dbVersion:H.version});l&&l()}); S(h())}); J.addEventListener("error",function(){p(J.error)}); f&&J.addEventListener("blocked",function(){f()})})}; m$4=function(U,O,M){M=M===void 0?{}:M;return YM5(U,O,M)}; oE=function(U,O){O=O===void 0?{}:O;var M,S,p,h;return g.A(function(J){if(J.U==1)return g.dW(J,2),M=self.indexedDB.deleteDatabase(U),S=O,(p=S.blocked)&&M.addEventListener("blocked",function(){p()}),g.Y(J,j$5(M),4); if(J.U!=2)return g.vg(J,0);h=g.Bg(J);throw RE(h,U,"",-1);})}; kO=function(U,O){this.name=U;this.options=O;this.B=!0;this.G=this.X=0}; ADw=function(U,O){return new g.vX("INCOMPATIBLE_DB_VERSION",{dbName:U.name,oldVersion:U.options.version,newVersion:O})}; g.wq=function(U,O){if(!O)throw g.tx("openWithToken",NR(U.name));return U.open()}; IUw=function(U,O){var M;return g.A(function(S){if(S.U==1)return g.Y(S,g.wq(Uu,O),2);M=S.V;return S.return(g.uh(M,["databases"],{GS:!0,mode:"readwrite"},function(p){var h=p.objectStore("databases");return h.get(U.actualName).then(function(J){if(J?U.actualName!==J.actualName||U.publicName!==J.publicName||U.userIdentifier!==J.userIdentifier:1)return g.qR(h,U).then(function(){})})}))})}; Ou=function(U,O){var M;return g.A(function(S){if(S.U==1)return U?g.Y(S,g.wq(Uu,O),2):S.return();M=S.V;return S.return(M.delete("databases",U))})}; P3q=function(U,O){var M,S;return g.A(function(p){return p.U==1?(M=[],g.Y(p,g.wq(Uu,O),2)):p.U!=3?(S=p.V,g.Y(p,g.uh(S,["databases"],{GS:!0,mode:"readonly"},function(h){M.length=0;return g.rq(h.objectStore("databases"),{},function(J){U(J.getValue())&&M.push(J.getValue());return g.aE(J)})}),3)):p.return(M)})}; nUw=function(U,O){return P3q(function(M){return M.publicName===U&&M.userIdentifier!==void 0},O)}; Q$e=function(){var U,O,M,S;return g.A(function(p){switch(p.U){case 1:U=$O();if((O=U)==null?0:O.hasSucceededOnce)return p.return(!0);if(gI&&gr()&&!Mt()||g.Mp)return p.return(!1);try{if(M=self,!(M.indexedDB&&M.IDBIndex&&M.IDBKeyRange&&M.IDBObjectStore))return p.return(!1)}catch(h){return p.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return p.return(!1);g.dW(p,2);S={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.Y(p,IUw(S,SR),4);case 4:return g.Y(p,Ou("yt-idb-test-do-not-use",SR),5);case 5:return p.return(!0);case 2:return g.Bg(p),p.return(!1)}})}; C3W=function(){if(pA!==void 0)return pA;cX=!0;return pA=Q$e().then(function(U){cX=!1;var O;if((O=Gw())!=null&&O.U){var M;O={hasSucceededOnce:((M=$O())==null?void 0:M.hasSucceededOnce)||U};var S;(S=Gw())==null||S.set("LAST_RESULT_ENTRY_KEY",O,2592E3,!0)}return U})}; hr=function(){return g.K7("ytglobal.idbToken_")||void 0}; g.Jr=function(){var U=hr();return U?Promise.resolve(U):C3W().then(function(O){(O=O?SR:void 0)&&g.Zq("ytglobal.idbToken_",O);return O})}; XTe=function(U){if(!g.MR())throw U=new g.vX("AUTH_INVALID",{dbName:U}),DK(U),U;var O=g.gq();return{actualName:U+":"+O,publicName:U,userIdentifier:O}}; uA7=function(U,O,M,S){var p,h,J,f,F,l;return g.A(function(G){switch(G.U){case 1:return h=(p=Error().stack)!=null?p:"",g.Y(G,g.Jr(),2);case 2:J=G.V;if(!J)throw f=g.tx("openDbImpl",U,O),g.R0("ytidb_async_stack_killswitch")||(f.stack=f.stack+"\n"+h.substring(h.indexOf("\n")+1)),DK(f),f;WX(U);F=M?{actualName:U,publicName:U,userIdentifier:void 0}:XTe(U);g.dW(G,3);return g.Y(G,IUw(F,J),5);case 5:return g.Y(G,m$4(F.actualName,O,S),6);case 6:return G.return(G.V);case 3:return l=g.Bg(G),g.dW(G,7),g.Y(G,Ou(F.actualName, J),9);case 9:g.vg(G,8);break;case 7:g.Bg(G);case 8:throw l;}})}; qMJ=function(U,O,M){M=M===void 0?{}:M;return uA7(U,O,!1,M)}; isg=function(U,O,M){M=M===void 0?{}:M;return uA7(U,O,!0,M)}; ZsW=function(U,O){O=O===void 0?{}:O;var M,S;return g.A(function(p){if(p.U==1)return g.Y(p,g.Jr(),2);if(p.U!=3){M=p.V;if(!M)return p.return();WX(U);S=XTe(U);return g.Y(p,oE(S.actualName,O),3)}return g.Y(p,Ou(S.actualName,M),0)})}; KT1=function(U,O,M){U=U.map(function(S){return g.A(function(p){return p.U==1?g.Y(p,oE(S.actualName,O),2):g.Y(p,Ou(S.actualName,M),0)})}); return Promise.all(U).then(function(){})}; rDg=function(U){var O=O===void 0?{}:O;var M,S;return g.A(function(p){if(p.U==1)return g.Y(p,g.Jr(),2);if(p.U!=3){M=p.V;if(!M)return p.return();WX(U);return g.Y(p,nUw(U,M),3)}S=p.V;return g.Y(p,KT1(S,O,M),0)})}; aUJ=function(U,O){O=O===void 0?{}:O;var M;return g.A(function(S){if(S.U==1)return g.Y(S,g.Jr(),2);if(S.U!=3){M=S.V;if(!M)return S.return();WX(U);return g.Y(S,oE(U,O),3)}return g.Y(S,Ou(U,M),0)})}; yw=function(U,O){kO.call(this,U,O);this.options=O;WX(U)}; EU4=function(U,O){var M;return function(){M||(M=new yw(U,O));return M}}; g.fA=function(U,O){return EU4(U,O)}; Fj=function(U){return g.wq(LTy(),U)}; Va5=function(U,O,M,S){var p,h,J;return g.A(function(f){switch(f.U){case 1:return p={config:U,hashData:O,timestamp:S!==void 0?S:(0,g.nM)()},g.Y(f,Fj(M),2);case 2:return h=f.V,g.Y(f,h.clear("hotConfigStore"),3);case 3:return g.Y(f,g.ih(h,"hotConfigStore",p),4);case 4:return J=f.V,f.return(J)}})}; oUi=function(U,O,M,S,p){var h,J,f;return g.A(function(F){switch(F.U){case 1:return h={config:U,hashData:O,configData:M,timestamp:p!==void 0?p:(0,g.nM)()},g.Y(F,Fj(S),2);case 2:return J=F.V,g.Y(F,J.clear("coldConfigStore"),3);case 3:return g.Y(F,g.ih(J,"coldConfigStore",h),4);case 4:return f=F.V,F.return(f)}})}; knW=function(U){var O,M;return g.A(function(S){return S.U==1?g.Y(S,Fj(U),2):S.U!=3?(O=S.V,M=void 0,g.Y(S,g.uh(O,["coldConfigStore"],{mode:"readwrite",GS:!0},function(p){return g.LM(p.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(h){M=h.getValue()})}),3)):S.return(M)})}; wT5=function(U){var O,M;return g.A(function(S){return S.U==1?g.Y(S,Fj(U),2):S.U!=3?(O=S.V,M=void 0,g.Y(S,g.uh(O,["hotConfigStore"],{mode:"readwrite",GS:!0},function(p){return g.LM(p.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(h){M=h.getValue()})}),3)):S.return(M)})}; U5g=function(){return g.A(function(U){return g.Y(U,rDg("ytGcfConfig"),0)})}; lB=function(){g.C.call(this);this.V=[];this.U=[];var U=g.K7("yt.gcf.config.hotUpdateCallbacks");U?(this.V=[].concat(g.N(U)),this.U=U):(this.U=[],g.Zq("yt.gcf.config.hotUpdateCallbacks",this.U))}; HW=function(){var U=this;this.G=!1;this.B=this.X=0;this.C=new lB;this.BB={ZIA:function(){U.G=!0}, Y7L:function(){return U.U}, p2P:function(O){Gm(U,O)}, o9:function(O){U.o9(O)}, FEA:function(O){$a(U,O)}, Ty:function(){return U.coldHashData}, hM:function(){return U.hotHashData}, X3d:function(){return U.V}, ae0:function(){return Tm()}, orG:function(){return jR()}, yXn:function(){return g.K7("yt.gcf.config.coldHashData")}, rXl:function(){return g.K7("yt.gcf.config.hotHashData")}, ull:function(){OG5(U)}, iXd:function(){U.o9(void 0);eR(U);delete HW.instance}, zfZ:function(O){U.B=O}, xXl:function(){return U.B}}}; sVg=function(){if(!HW.instance){var U=new HW;HW.instance=U}return HW.instance}; S$e=function(U){var O;g.A(function(M){if(M.U==1)return g.R0("start_client_gcf")||g.R0("delete_gcf_config_db")?g.R0("start_client_gcf")?g.Y(M,g.Jr(),3):M.tZ(2):M.return();M.U!=2&&((O=M.V)&&g.MR()&&!g.R0("delete_gcf_config_db")?(U.G=!0,OG5(U)):(gkJ(U),M6m(U)));return g.R0("delete_gcf_config_db")?g.Y(M,U5g(),0):M.tZ(0)})}; zm=function(){var U;return(U=jR())!=null?U:g.wZ("RAW_HOT_CONFIG_GROUP")}; pig=function(U){var O,M,S,p,h,J;return g.A(function(f){switch(f.U){case 1:if(U.V)return f.return(jR());if(!U.G)return O=g.tx("getHotConfig IDB not initialized"),Jb(O),f.return(Promise.reject(O));M=hr();S=g.wZ("TIME_CREATED_MS");if(!M){p=g.tx("getHotConfig token error");Jb(p);f.tZ(2);break}return g.Y(f,wT5(M),3);case 3:if((h=f.V)&&h.timestamp>S)return Gm(U,h.config),U.o9(h.hashData),f.return(jR());case 2:M6m(U);if(!(M&&U.V&&U.hotHashData)){f.tZ(4);break}return g.Y(f,Va5(U.V,U.hotHashData,M,S),4);case 4:return U.V? f.return(jR()):(J=new g.sT("Config not available in ytConfig"),Jb(J),f.return(Promise.reject(J)))}})}; Jzw=function(U){var O,M,S,p,h,J;return g.A(function(f){switch(f.U){case 1:if(U.U)return f.return(Tm());if(!U.G)return O=g.tx("getColdConfig IDB not initialized"),Jb(O),f.return(Promise.reject(O));M=hr();S=g.wZ("TIME_CREATED_MS");if(!M){p=g.tx("getColdConfig");Jb(p);f.tZ(2);break}return g.Y(f,knW(M),3);case 3:if((h=f.V)&&h.timestamp>S)return $a(U,h.config),hRi(U,h.configData),eR(U,h.hashData),f.return(Tm());case 2:gkJ(U);if(!(M&&U.U&&U.coldHashData&&U.configData)){f.tZ(4);break}return g.Y(f,oUi(U.U, U.coldHashData,U.configData,M,S),4);case 4:return U.U?f.return(Tm()):(J=new g.sT("Config not available in ytConfig"),Jb(J),f.return(Promise.reject(J)))}})}; OG5=function(U){if(!U.V||!U.U){if(!hr()){var O=g.tx("scheduleGetConfigs");Jb(O)}U.X||(U.X=g.aH.YX(function(){return g.A(function(M){switch(M.U){case 1:return g.dW(M,2),g.Y(M,pig(U),4);case 4:g.vg(M,3);break;case 2:g.Bg(M);case 3:return g.dW(M,5),g.Y(M,Jzw(U),7);case 7:g.vg(M,6);break;case 5:g.Bg(M);case 6:U.X&&(U.X=0),g.Dq(M)}})},100))}}; yzy=function(U,O,M){var S,p,h;return g.A(function(J){switch(J.U){case 1:if(!g.R0("start_client_gcf")){J.tZ(0);break}M&&Gm(U,M);U.o9(O);S=hr();if(!S){J.tZ(3);break}if(M){J.tZ(4);break}return g.Y(J,wT5(S),5);case 5:p=J.V,M=(h=p)==null?void 0:h.config;case 4:return g.Y(J,Va5(M,O,S),3);case 3:if(M)for(var f=M,F=g.D(U.C.U),l=F.next();!l.done;l=F.next())l=l.value,l(f);g.Dq(J)}})}; fRe=function(U,O,M){var S,p,h,J;return g.A(function(f){if(f.U==1){if(!g.R0("start_client_gcf"))return f.tZ(0);eR(U,O);return(S=hr())?M?f.tZ(4):g.Y(f,knW(S),5):f.tZ(0)}f.U!=4&&(p=f.V,M=(h=p)==null?void 0:h.config);if(!M)return f.tZ(0);J=M.configData;return g.Y(f,oUi(M,O,J,S),0)})}; F9m=function(){var U=sVg(),O=(0,g.nM)()-U.B;if(!(U.B!==0&&O0&&(O.request={internalExperimentFlags:M});G6e(U,void 0,O);$5W(void 0,O);TZi(void 0,O);jVq(U,void 0,O);eRg(void 0,O);g.R0("start_client_gcf")&&HG7(void 0,O);g.wZ("DELEGATED_SESSION_ID")&& !g.R0("pageid_as_header_web")&&(O.user={onBehalfOfUser:g.wZ("DELEGATED_SESSION_ID")});!g.R0("fill_delegate_context_in_gel_killswitch")&&(U=g.wZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(O.user=Object.assign({},O.user,{serializedDelegationContext:U}));U=g.wZ("INNERTUBE_CONTEXT");var S;if(g.R0("enable_persistent_device_token")&&(U==null?0:(S=U.client)==null?0:S.rolloutToken)){var p;O.client.rolloutToken=U==null?void 0:(p=U.client)==null?void 0:p.rolloutToken}S=Object;p=S.assign;U=O.client; M={};for(var h=g.D(Object.entries(F2(g.wZ("DEVICE","")))),J=h.next();!J.done;J=h.next()){var f=g.D(J.value);J=f.next().value;f=f.next().value;J==="cbrand"?M.deviceMake=f:J==="cmodel"?M.deviceModel=f:J==="cbr"?M.browserName=f:J==="cbrver"?M.browserVersion=f:J==="cos"?M.osName=f:J==="cosver"?M.osVersion=f:J==="cplatform"&&(M.platform=f)}O.client=p.call(S,U,M);return O}; G6e=function(U,O,M){U=U.wy;if(U==="WEB"||U==="MWEB"||U===1||U===2)if(O){M=Ha(O,Pi,96)||new Pi;var S=an();S=Object.keys(zRe).indexOf(S);S=S===-1?null:S;S!==null&&Yy(M,3,S);z4(O,Pi,96,M)}else M&&(M.client.mainAppWebInfo=(S=M.client.mainAppWebInfo)!=null?S:{},M.client.mainAppWebInfo.webDisplayMode=an())}; $5W=function(U,O){var M=g.K7("yt.embedded_player.embed_url");M&&(U?(O=Ha(U,us,7)||new us,RX(O,4,M),z4(U,us,7,O)):O&&(O.thirdParty={embedUrl:M}))}; TZi=function(U,O){var M;if(g.R0("web_log_memory_total_kbytes")&&((M=g.q1.navigator)==null?0:M.deviceMemory)){var S;M=(S=g.q1.navigator)==null?void 0:S.deviceMemory;U?wf(U,95,No(M*1E6)):O&&(O.client.memoryTotalKbytes=""+M*1E6)}}; jVq=function(U,O,M){if(U.appInstallData)if(O){var S;M=(S=Ha(O,IV,62))!=null?S:new IV;RX(M,6,U.appInstallData);z4(O,IV,62,M)}else M&&(M.client.configInfo=M.client.configInfo||{},M.client.configInfo.appInstallData=U.appInstallData)}; eRg=function(U,O){var M=s$e();M&&(U?Yy(U,61,cz5[M]):O&&(O.client.connectionType=M));g.R0("web_log_effective_connection_type")&&(M=Maw())&&(U?Yy(U,94,D5m[M]):O&&(O.client.effectiveConnectionType=M))}; d5w=function(U,O,M){M=M===void 0?{}:M;var S={};g.wZ("EOM_VISITOR_DATA")?S={"X-Goog-EOM-Visitor-Id":g.wZ("EOM_VISITOR_DATA")}:S={"X-Goog-Visitor-Id":M.visitorData||g.wZ("VISITOR_DATA","")};if(O&&O.includes("www.youtube-nocookie.com"))return S;O=M.wS||g.wZ("AUTHORIZATION");O||(U?O="Bearer "+g.K7("gapi.auth.getToken")().access_token:(U=Vuy().eQ(dI),g.R0("pageid_as_header_web")||delete U["X-Goog-PageId"],S=Object.assign({},S,U)));O&&(S.Authorization=O);return S}; HG7=function(U,O){var M=F9m();if(M){var S=M.coldConfigData,p=M.coldHashData;M=M.hotHashData;if(U){var h;O=(h=Ha(U,IV,62))!=null?h:new IV;S=RX(O,1,S);RX(S,3,p).o9(M);z4(U,IV,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},S&&(O.client.configInfo.coldConfigData=S),p&&(O.client.configInfo.coldHashData=p),M&&(O.client.configInfo.hotHashData=M))}}; WW=function(U,O){this.version=U;this.args=O}; Np=function(U,O){this.topic=U;this.U=O}; BW=function(U,O){var M=vW();M&&M.publish.call(M,U.toString(),U,O)}; vkw=function(U){var O=W9g,M=vW();if(!M)return 0;var S=M.subscribe(O.toString(),function(p,h){var J=g.K7("ytPubsub2Pubsub2SkipSubKey");J&&J==S||(J=function(){if(ms[S])try{if(h&&O instanceof Np&&O!=p)try{var f=O.U,F=h;if(!F.args||!F.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!f.RS){var l=new f;f.RS=l.version}var G=f.RS}catch(T){}if(!G||F.version!=G)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(f, g.M2(F.args))}catch(T){throw T.message="yt.pubsub2.Data.deserialize(): "+T.message,T;}}catch(T){throw T.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+O.toString()+": "+T.message,T;}U.call(window,h)}catch(T){g.SJ(T)}},NZU[O.toString()]?g.fM()?g.aH.YX(J):g.Nv(J,0):J())}); ms[S]=!0;Ar[O.toString()]||(Ar[O.toString()]=[]);Ar[O.toString()].push(S);return S}; bGw=function(){var U=BZe,O=vkw(function(M){U.apply(void 0,arguments);x5W(O)}); return O}; x5W=function(U){var O=vW();O&&(typeof U==="number"&&(U=[U]),g.T$(U,function(M){O.unsubscribeByKey(M);delete ms[M]}))}; vW=function(){return g.K7("ytPubsub2Pubsub2Instance")}; Ix=function(U,O,M){M=M===void 0?{sampleRate:.1}:M;Math.random()IRq||J=Csw&&(KA++,g.R0("abandon_compression_after_N_slow_zips")?Zk===g.tb("compression_disable_point")&&KA>XiU&&(uB=!1):uB=!1);udg(O);S.headers||(S.headers={});S.headers["Content-Encoding"]="gzip";S.postBody=U;S.postParams=void 0;p(M,S)}; q$e=function(U){var O=O===void 0?!1:O;var M=M===void 0?!1:M;var S=(0,g.nM)(),p={startTime:S,ticks:{},infos:{}},h=O?g.K7("yt.logging.gzipForFetch",!1):!0;if(uB&&h){if(!U.body)return U;try{var J=M?U.body:typeof U.body==="string"?U.body:JSON.stringify(U.body);h=J;if(!M&&typeof J==="string"){var f=Az4(J);if(f!=null&&(f>IRq||f=Csw)if(KA++,g.R0("abandon_compression_after_N_slow_zips")||g.R0("abandon_compression_after_N_slow_zips_lr")){O=KA/Zk;var l=XiU/g.tb("compression_disable_point");Zk>0&&Zk%g.tb("compression_disable_point")===0&&O>=l&&(uB=!1)}else uB=!1;udg(p)}}U.headers=Object.assign({},{"Content-Encoding":"gzip"},U.headers||{});U.body=h;return U}catch(G){return Jb(G),U}}else return U}; Az4=function(U){try{return(new Blob(U.split(""))).size}catch(O){return Jb(O),null}}; udg=function(U){g.R0("gel_compression_csi_killswitch")||!g.R0("log_gel_compression_latency")&&!g.R0("log_gel_compression_latency_lr")||Ix("gel_compression",U,{sampleRate:.1})}; ax=function(U){var O=this;this.oN=this.U=!1;this.potentialEsfErrorCounter=this.V=0;this.handleError=function(){}; this.Z7=function(){}; this.now=Date.now;this.dY=!1;this.BB={ZX0:function(G){O.FL=G}, f60:function(){O.nL()}, Wf:function(){O.jZ()}, KH:function(G){return g.A(function(T){return g.Y(T,O.KH(G),0)})}, UE:function(G,T){return O.UE(G,T)}, MK:function(){O.MK()}}; var M;this.Rx=(M=U.Rx)!=null?M:100;var S;this.x8=(S=U.x8)!=null?S:1;var p;this.Jf=(p=U.Jf)!=null?p:2592E6;var h;this.LY=(h=U.LY)!=null?h:12E4;var J;this.zW=(J=U.zW)!=null?J:5E3;var f;this.FL=(f=U.FL)!=null?f:void 0;this.kd=!!U.kd;var F;this.sM=(F=U.sM)!=null?F:.1;var l;this.Pl=(l=U.Pl)!=null?l:10;U.handleError&&(this.handleError=U.handleError);U.Z7&&(this.Z7=U.Z7);U.dY&&(this.dY=U.dY);U.oN&&(this.oN=U.oN);this.F0=U.F0;this.ut=U.ut;this.Nz=U.Nz;this.GO=U.GO;this.sendFn=U.sendFn;this.xB=U.xB;this.rJ= U.rJ;rI(this)&&(!this.F0||this.F0("networkless_logging"))&&iGi(this)}; iGi=function(U){rI(U)&&!U.dY&&(U.U=!0,U.kd&&Math.random()<=U.sM&&U.Nz.zb(U.FL),U.MK(),U.GO.SH()&&U.nL(),U.GO.listen(U.xB,U.nL.bind(U)),U.GO.listen(U.rJ,U.jZ.bind(U)))}; rzw=function(U,O){if(!rI(U))throw Error("IndexedDB is not supported: updateRequestHandlers");var M=O.options.onError?O.options.onError:function(){}; O.options.onError=function(p,h){var J,f,F,l;return g.A(function(G){switch(G.U){case 1:J=ZGg(h);(f=K9W(h))&&U.F0&&U.F0("web_enable_error_204")&&U.handleError(Error("Request failed due to compression"),O.url,h);if(!(U.F0&&U.F0("nwl_consider_error_code")&&J||U.F0&&!U.F0("nwl_consider_error_code")&&U.potentialEsfErrorCounter<=U.Pl)){G.tZ(2);break}if(!U.GO.l9){G.tZ(3);break}return g.Y(G,U.GO.l9(),3);case 3:if(U.GO.SH()){G.tZ(2);break}M(p,h);if(!U.F0||!U.F0("nwl_consider_error_code")||((F=O)==null?void 0: F.id)===void 0){G.tZ(6);break}return g.Y(G,U.Nz.L2(O.id,U.FL,!1),6);case 6:return G.return();case 2:if(U.F0&&U.F0("nwl_consider_error_code")&&!J&&U.potentialEsfErrorCounter>U.Pl)return G.return();U.potentialEsfErrorCounter++;if(((l=O)==null?void 0:l.id)===void 0){G.tZ(8);break}return O.sendCount=400&&U<=599?!1:!0}; K9W=function(U){var O;U=U==null?void 0:(O=U.error)==null?void 0:O.code;return!(U!==400&&U!==415)}; aR4=function(){if(LA)return LA();var U={};LA=g.fA("LogsDatabaseV2",{LI:(U.LogsRequestsStore={cO:2},U),shared:!1,upgrade:function(O,M,S){M(2)&&g.CM(O,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});M(3);M(5)&&(S=S.objectStore("LogsRequestsStore"),S.U.indexNames.contains("newRequest")&&S.U.deleteIndex("newRequest"),g.KM(S,"newRequestV2",["status","interface","timestamp"]));M(7)&&Xo(O,"sapisid");M(9)&&Xo(O,"SWHealthLog")}, version:9});return LA()}; Vw=function(U){return g.wq(aR4(),U)}; L95=function(U,O){var M,S,p,h;return g.A(function(J){if(J.U==1)return M={startTime:(0,g.nM)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.Y(J,Vw(O),2);if(J.U!=3)return S=J.V,p=Object.assign({},U,{options:JSON.parse(JSON.stringify(U.options)),interface:g.wZ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.Y(J,g.ih(S,"LogsRequestsStore",p),3);h=J.V;M.ticks.tc=(0,g.nM)();Ek7(M);return J.return(h)})}; V6W=function(U,O){var M,S,p,h,J,f,F,l;return g.A(function(G){if(G.U==1)return M={startTime:(0,g.nM)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.Y(G,Vw(O),2);if(G.U!=3)return S=G.V,p=g.wZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[U,p,0],J=[U,p,(0,g.nM)()],f=IDBKeyRange.bound(h,J),F="prev",g.R0("use_fifo_for_networkless")&&(F="next"),l=void 0,g.Y(G,g.uh(S,["LogsRequestsStore"],{mode:"readwrite",GS:!0},function(T){return g.LM(T.objectStore("LogsRequestsStore").index("newRequestV2"), {query:f,direction:F},function(e){e.getValue()&&(l=e.getValue(),U==="NEW"&&(l.status="QUEUED",e.update(l)))})}),3); M.ticks.tc=(0,g.nM)();Ek7(M);return G.return(l)})}; oke=function(U,O){var M;return g.A(function(S){if(S.U==1)return g.Y(S,Vw(O),2);M=S.V;return S.return(g.uh(M,["LogsRequestsStore"],{mode:"readwrite",GS:!0},function(p){var h=p.objectStore("LogsRequestsStore");return h.get(U).then(function(J){if(J)return J.status="QUEUED",g.qR(h,J).then(function(){return J})})}))})}; k6w=function(U,O,M,S){M=M===void 0?!0:M;var p;return g.A(function(h){if(h.U==1)return g.Y(h,Vw(O),2);p=h.V;return h.return(g.uh(p,["LogsRequestsStore"],{mode:"readwrite",GS:!0},function(J){var f=J.objectStore("LogsRequestsStore");return f.get(U).then(function(F){return F?(F.status="NEW",M&&(F.sendCount+=1),S!==void 0&&(F.options.compress=S),g.qR(f,F).then(function(){return F})):g.mC.resolve(void 0)})}))})}; wie=function(U,O){var M;return g.A(function(S){if(S.U==1)return g.Y(S,Vw(O),2);M=S.V;return S.return(M.delete("LogsRequestsStore",U))})}; Uve=function(U){var O,M;return g.A(function(S){if(S.U==1)return g.Y(S,Vw(U),2);O=S.V;M=(0,g.nM)()-2592E6;return g.Y(S,g.uh(O,["LogsRequestsStore"],{mode:"readwrite",GS:!0},function(p){return g.rq(p.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=M)return h.delete().then(function(){return g.aE(h)})})}),0)})}; O4w=function(){g.A(function(U){return g.Y(U,rDg("LogsDatabaseV2"),0)})}; Ek7=function(U){g.R0("nwl_csi_killswitch")||Ix("networkless_performance",U,{sampleRate:1})}; gJq=function(U){return g.wq(s0W(),U)}; MJ1=function(U){var O,M;g.A(function(S){if(S.U==1)return g.Y(S,gJq(U),2);O=S.V;M=(0,g.nM)()-2592E6;return g.Y(S,g.uh(O,["SWHealthLog"],{mode:"readwrite",GS:!0},function(p){return g.rq(p.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=M)return h.delete().then(function(){return g.aE(h)})})}),0)})}; SIg=function(U){var O;return g.A(function(M){if(M.U==1)return g.Y(M,gJq(U),2);O=M.V;return g.Y(M,O.clear("SWHealthLog"),0)})}; g.ox=function(U,O,M,S,p,h,J){p=p===void 0?"":p;h=h===void 0?!1:h;J=J===void 0?!1:J;if(U)if(M&&!g.Ud())Jb(new g.sT("Legacy referrer-scrubbed ping detected")),U&&p5w(U,void 0,{scrubReferrer:!0});else if(p)Ab(U,O,"POST",p,S);else if(g.wZ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||S||J)Ab(U,O,"GET","",S,void 0,h,J);else{b:{try{var f=new KVi({url:U});if(f.G?typeof f.B!=="string"||f.B.length===0?0:{version:3,qS:f.B,hm:t8(f.U,"act=1","ri=1",rji(f))}:f.C&&{version:4,qS:t8(f.U,"dct=1","suid="+f.X,""),hm:t8(f.U, "act=1","ri=1","suid="+f.X)}){var F=o4(g.wU(5,U));var l=!(!F||!F.endsWith("/aclk")||JH(U,"ri")!=="1");break b}}catch(G){}l=!1}l?hj7(U)?(O&&O(),M=!0):M=!1:M=!1;M||p5w(U,O)}}; hj7=function(U,O){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(U,O===void 0?"":O))return!0}catch(M){}return!1}; p5w=function(U,O,M){M=M===void 0?{}:M;var S=new Image,p=""+Jb5++;ka[p]=S;S.onload=S.onerror=function(){O&&ka[p]&&O();delete ka[p]}; M.scrubReferrer&&(S.referrerPolicy="no-referrer");S.src=U}; ybw=function(U){var O;return((O=document.featurePolicy)==null?0:O.allowedFeatures().includes("attribution-reporting"))?U+"&nis=6":U+"&nis=5"}; UC=function(){wI||(wI=new lh("yt.offline"));return wI}; f2i=function(U){if(g.R0("offline_error_handling")){var O=UC().get("errors",!0)||{};O[U.message]={name:U.name,stack:U.stack};U.level&&(O[U.message].level=U.level);UC().set("errors",O,2592E3,!0)}}; OC=function(){this.U=new Map;this.V=!1}; sC=function(){if(!OC.instance){var U=g.K7("yt.networkRequestMonitor.instance")||new OC;g.Zq("yt.networkRequestMonitor.instance",U);OC.instance=U}return OC.instance}; gP=function(){g.$q.call(this);var U=this;this.V=!1;this.U=c6g();this.U.listen("networkstatus-online",function(){if(U.V&&g.R0("offline_error_handling")){var O=UC().get("errors",!0);if(O){for(var M in O)if(O[M]){var S=new g.sT(M,"sent via offline_errors");S.name=O[M].name;S.stack=O[M].stack;S.level=O[M].level;g.SJ(S)}UC().set("errors",{},2592E3,!0)}}})}; Fo5=function(){if(!gP.instance){var U=g.K7("yt.networkStatusManager.instance")||new gP;g.Zq("yt.networkStatusManager.instance",U);gP.instance=U}return gP.instance}; g.MY=function(U){U=U===void 0?{}:U;g.$q.call(this);var O=this;this.U=this.X=0;this.V=Fo5();var M=g.K7("yt.networkStatusManager.instance.listen").bind(this.V);M&&(U.rateLimit?(this.rateLimit=U.rateLimit,M("networkstatus-online",function(){l2i(O,"publicytnetworkstatus-online")}),M("networkstatus-offline",function(){l2i(O,"publicytnetworkstatus-offline")})):(M("networkstatus-online",function(){O.dispatchEvent("publicytnetworkstatus-online")}),M("networkstatus-offline",function(){O.dispatchEvent("publicytnetworkstatus-offline")})))}; l2i=function(U,O){U.rateLimit?U.U?(g.aH.C1(U.X),U.X=g.aH.YX(function(){U.B!==O&&(U.dispatchEvent(O),U.B=O,U.U=(0,g.nM)())},U.rateLimit-((0,g.nM)()-U.U))):(U.dispatchEvent(O),U.B=O,U.U=(0,g.nM)()):U.dispatchEvent(O)}; pv=function(){var U=ax.call;S0||(S0=new g.MY({MV0:!0,ABY:!0}));U.call(ax,this,{Nz:{zb:Uve,uA:wie,ji:V6W,bEQ:oke,L2:k6w,set:L95},GO:S0,handleError:function(O,M,S){var p,h=S==null?void 0:(p=S.error)==null?void 0:p.code;if(h===400||h===415){var J;Jb(new g.sT(O.message,M,S==null?void 0:(J=S.error)==null?void 0:J.code),void 0,void 0,void 0,!0)}else g.SJ(O)}, Z7:Jb,sendFn:Grq,now:g.nM,ip:f2i,ut:g.yF(),xB:"publicytnetworkstatus-online",rJ:"publicytnetworkstatus-offline",kd:!0,sM:.1,Pl:g.tb("potential_esf_error_limit",10),F0:g.R0,dY:!(g.MR()&&g.UY(document.location.toString())!=="www.youtube-nocookie.com")});this.B=new g.AH;g.R0("networkless_immediately_drop_all_requests")&&O4w();aUJ("LogsDatabaseV2")}; hE=function(){var U=g.K7("yt.networklessRequestController.instance");U||(U=new pv,g.Zq("yt.networklessRequestController.instance",U),g.R0("networkless_logging")&&g.Jr().then(function(O){U.FL=O;iGi(U);U.B.resolve();U.kd&&Math.random()<=U.sM&&U.FL&&MJ1(U.FL);g.R0("networkless_immediately_drop_sw_health_store")&&$vq(U)})); return U}; $vq=function(U){var O;g.A(function(M){if(!U.FL)throw O=g.tx("clearSWHealthLogsDb"),O;return M.return(SIg(U.FL).catch(function(S){U.handleError(S)}))})}; Grq=function(U,O,M,S){S=S===void 0?!1:S;O=g.R0("web_fp_via_jspb")?Object.assign({},O):O;g.R0("use_cfr_monitor")&&Ta5(U,O);if(g.R0("use_request_time_ms_header"))O.headers&&jJ(U)&&(O.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.nM)())));else{var p;if((p=O.postParams)==null?0:p.requestTimeMs)O.postParams.requestTimeMs=Math.round((0,g.nM)())}M&&Object.keys(O).length===0?g.ox(U):O.compress?O.postBody?(typeof O.postBody!=="string"&&(O.postBody=JSON.stringify(O.postBody)),iB(U,O.postBody, O,g.I0,S)):iB(U,JSON.stringify(O.postParams),O,P5,S):g.I0(U,O)}; JE=function(U,O){g.R0("use_event_time_ms_header")&&jJ(U)&&(O.headers||(O.headers={}),O.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.nM)())));return O}; Ta5=function(U,O){var M=O.onError?O.onError:function(){}; O.onError=function(p,h){sC().requestComplete(U,!1);M(p,h)}; var S=O.onSuccess?O.onSuccess:function(){}; O.onSuccess=function(p,h){sC().requestComplete(U,!0);S(p,h)}}; g.yJ=function(U){this.config_=null;U?this.config_=U:lRw()&&(this.config_=g.cW())}; g.fv=function(U,O,M,S){function p(l){try{if((l===void 0?0:l)&&S.retry&&!S.networklessOptions.bypassNetworkless)h.method="POST",S.networklessOptions.writeThenSend?hE().writeThenSend(F,h):hE().sendAndWrite(F,h);else if(S.compress){var G=!S.networklessOptions.writeThenSend;if(h.postBody){var T=h.postBody;typeof T!=="string"&&(T=JSON.stringify(h.postBody));iB(F,T,h,g.I0,G)}else iB(F,JSON.stringify(h.postParams),h,P5,G)}else g.R0("web_all_payloads_via_jspb")?g.I0(F,h):P5(F,h)}catch(e){if(e.name==="InvalidAccessError")Jb(Error("An extension is blocking network request.")); else throw e;}} !g.wZ("VISITOR_DATA")&&O!=="visitor_id"&&Math.random()<.01&&Jb(new g.sT("Missing VISITOR_DATA when sending innertube request.",O,M,S));if(!U.isReady())throw U=new g.sT("innertube xhrclient not ready",O,M,S),g.SJ(U),U;var h={headers:S.headers||{},method:"POST",postParams:M,postBody:S.postBody,postBodyFormat:S.postBodyFormat||"JSON",onTimeout:function(){S.onTimeout()}, onFetchTimeout:S.onTimeout,onSuccess:function(l,G){if(S.onSuccess)S.onSuccess(G)}, onFetchSuccess:function(l){if(S.onSuccess)S.onSuccess(l)}, onError:function(l,G){if(S.onError)S.onError(G)}, onFetchError:function(l){if(S.onError)S.onError(l)}, timeout:S.timeout,withCredentials:!0,compress:S.compress};h.headers["Content-Type"]||(h.headers["Content-Type"]="application/json");M="";var J=U.config_.Jq;J&&(M=J);J=U.config_.RU||!1;var f=d5w(J,M,S);Object.assign(h.headers,f);h.headers.Authorization&&!M&&J&&(h.headers["x-origin"]=window.location.origin);var F=$J(""+M+("/youtubei/"+U.config_.innertubeApiVersion+"/"+O),{alt:"json"});g.K7("ytNetworklessLoggingInitializationOptions")&&j05.isNwlInitialized?C3W().then(function(l){p(l)}):p(!1)}; g.TK=function(U,O,M){var S=g.FH();if(S&&O){var p=S.subscribe(U,function(){function h(){li[p]&&O.apply&&typeof O.apply=="function"&&O.apply(M||window,J)} var J=arguments;try{g.GK[U]?h():g.Nv(h,0)}catch(f){g.SJ(f)}},M); li[p]=!0;$1[U]||($1[U]=[]);$1[U].push(p);return p}return 0}; ejw=function(U){var O=g.TK("LOGGED_IN",function(M){U.apply(void 0,arguments);g.j0(O)})}; g.j0=function(U){var O=g.FH();O&&(typeof U==="number"?U=[U]:typeof U==="string"&&(U=[parseInt(U,10)]),g.T$(U,function(M){O.unsubscribeByKey(M);delete li[M]}))}; g.e0=function(U,O){var M=g.FH();return M?M.publish.apply(M,arguments):!1}; zjq=function(U){var O=g.FH();if(O)if(O.clear(U),U)H47(U);else for(var M in $1)H47(M)}; g.FH=function(){return g.q1.ytPubsubPubsubInstance}; H47=function(U){$1[U]&&(U=$1[U],g.T$(U,function(O){li[O]&&delete li[O]}),U.length=0)}; g.H6=function(U,O,M){cbg(U,O,M===void 0?null:M)}; cbg=function(U,O,M){M=M===void 0?null:M;var S=DvU(U),p=document.getElementById(S),h=p&&A8m(p),J=p&&!h;h?O&&O():(O&&(h=g.TK(S,O),O=""+g.wW(O),dv1[O]=h),J||(p=Woe(U,S,function(){A8m(p)||(m95(p),g.e0(S),g.Nv(function(){zjq(S)},0))},M)))}; Woe=function(U,O,M,S){S=S===void 0?null:S;var p=g.GU("SCRIPT");p.id=O;p.onload=function(){M&&setTimeout(M,0)}; p.onreadystatechange=function(){switch(p.readyState){case "loaded":case "complete":p.onload()}}; S&&p.setAttribute("nonce",S);g.gi(p,g.Yk(U));U=document.getElementsByTagName("head")[0]||document.body;U.insertBefore(p,U.firstChild);return p}; DvU=function(U){var O=document.createElement("a");g.Ep(O,U);U=O.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Gx(U)}; zK=function(U,O){if(U===O)U=!0;else if(Array.isArray(U)&&Array.isArray(O))U=g.G$(U,O,zK);else if(g.Vi(U)&&g.Vi(O))a:if(g.C1(U).length!=g.C1(O).length)U=!1;else{for(var M in U)if(!zK(U[M],O[M])){U=!1;break a}U=!0}else U=!1;return U}; dP=function(U){var O=g.m4.apply(1,arguments);if(!c6(U)||O.some(function(S){return!c6(S)}))throw Error("Only objects may be merged."); O=g.D(O);for(var M=O.next();!M.done;M=O.next())D5(U,M.value)}; D5=function(U,O){for(var M in O)if(c6(O[M])){if(M in U&&!c6(U[M]))throw Error("Cannot merge an object into a non-object.");M in U||(U[M]={});D5(U[M],O[M])}else if(x1(O[M])){if(M in U&&!x1(U[M]))throw Error("Cannot merge an array into a non-array.");M in U||(U[M]=[]);Nay(U[M],O[M])}else U[M]=O[M];return U}; Nay=function(U,O){O=g.D(O);for(var M=O.next();!M.done;M=O.next())M=M.value,c6(M)?U.push(D5({},M)):x1(M)?U.push(Nay([],M)):U.push(M);return U}; c6=function(U){return typeof U==="object"&&!Array.isArray(U)}; x1=function(U){return typeof U==="object"&&Array.isArray(U)}; bi=function(U){g.C.call(this);this.V=U}; RD=function(U){bi.call(this,!0);this.U=U}; tE=function(U,O){g.C.call(this);var M=this;this.B=[];this.D=!1;this.V=0;this.G=this.C=this.X=!1;this.yP=null;var S=(0,g.U4)(U,O);this.U=new g.UM(function(){return S(M.yP)},300); g.X(this,this.U);this.Z=this.Y=Infinity}; vJw=function(U,O){if(!O)return!1;for(var M=0;M-1)throw Error("Deps cycle for: "+O);if(U.V.has(O))return U.V.get(O);if(!U.U.has(O)){if(S)return;throw Error("No provider for: "+O);}S=U.U.get(O);M.push(O);if(S.XP!==void 0)var p=S.XP;else if(S.SHL)p=S[ii]?Rjm(U,S[ii],M):[],p=S.SHL.apply(S,g.N(p));else if(S.Bs){p=S.Bs;var h=p[ii]?Rjm(U,p[ii],M):[];p=new (Function.prototype.bind.apply(p,[null].concat(g.N(h))))}else throw Error("Could not resolve providers for: "+O);M.pop();S.MMG||U.V.set(O,p); return p}; Rjm=function(U,O,M){return O?O.map(function(S){return S instanceof XH?Z5(U,S.key,M,!0):Z5(U,S,M)}):[]}; rP=function(){Kv||(Kv=new b47);return Kv}; EC=function(){var U,O;return"h5vcc"in aD&&((U=aD.h5vcc.traceEvent)==null?0:U.traceBegin)&&((O=aD.h5vcc.traceEvent)==null?0:O.traceEnd)?1:"performance"in aD&&aD.performance.mark&&aD.performance.measure?2:0}; Lv=function(U){var O=EC();switch(O){case 1:aD.h5vcc.traceEvent.traceBegin("YTLR",U);break;case 2:aD.performance.mark(U+"-start");break;case 0:break;default:yf(O,"unknown trace type")}}; tJ4=function(U){var O=EC();switch(O){case 1:aD.h5vcc.traceEvent.traceEnd("YTLR",U);break;case 2:O=U+"-start";var M=U+"-end";aD.performance.mark(M);aD.performance.measure(U,O,M);break;case 0:break;default:yf(O,"unknown trace type")}}; YIq=function(U){var O,M;(M=(O=window).onerror)==null||M.call(O,U.message,"",0,0,U)}; mvi=function(U){var O=this;var M=M===void 0?0:M;var S=S===void 0?g.yF():S;this.B=M;this.scheduler=S;this.V=new g.AH;this.U=U;for(U={Qe:0};U.Qe=1E3?p():S>=U?zN||(zN=cG(function(){p();zN=void 0},0)):h-f>=10&&(VJ1(O,M.tier),J.X=h)}; Kom=function(U,O){if(U.endpoint==="log_event"){g.R0("more_accurate_gel_parser")&&f5().storePayload({isJspb:!1},U.payload);lV(U);var M=GN(U),S=new Map;S.set(M,[U.payload]);var p=qIw(U.payload)||"";O&&(e$=new O);return new g.Yq(function(h,J){e$&&e$.isReady()?oJm(S,e$,h,J,{bypassNetworkless:!0},!0,TN(p)):h()})}}; EJJ=function(U,O,M){if(O.endpoint==="log_event"){lV(void 0,O);var S=GN(O,!0),p=new Map;p.set(S,[XS(O.payload)]);M&&(e$=new M);return new g.Yq(function(h){e$&&e$.isReady()?krg(p,e$,h,{bypassNetworkless:!0},!0,TN(U)):h()})}}; GN=function(U,O){var M="";if(U.dangerousLogToVisitorSession)M="visitorOnlyApprovedKey";else if(U.cttAuthInfo){if(O===void 0?0:O){O=U.cttAuthInfo.token;M=U.cttAuthInfo;var S=new VE;M.videoId?S.setVideoId(M.videoId):M.playlistId&&G4(S,2,D8,xj(M.playlistId));dz[O]=S}else O=U.cttAuthInfo,M={},O.videoId?M.videoId=O.videoId:O.playlistId&&(M.playlistId=O.playlistId),WG[U.cttAuthInfo.token]=M;M=U.cttAuthInfo.token}return M}; j$=function(U,O,M){U=U===void 0?{}:U;O=O===void 0?!1:O;new g.Yq(function(S,p){var h=HG(O,M),J=h.B;h.B=!1;NT(h.V);NT(h.U);h.U=0;e$&&e$.isReady()?M===void 0&&g.R0("enable_web_tiered_gel")?w54(S,p,U,O,300,J):w54(S,p,U,O,M,J):(VJ1(O,M),S())})}; w54=function(U,O,M,S,p,h){var J=e$;M=M===void 0?{}:M;S=S===void 0?!1:S;p=p===void 0?200:p;h=h===void 0?!1:h;var f=new Map,F=new Map,l={isJspb:S,cttAuthInfo:void 0,tier:p},G={isJspb:S,cttAuthInfo:void 0};if(S){O=g.D(Object.keys($_));for(p=O.next();!p.done;p=O.next())p=p.value,F=g.R0("enable_web_tiered_gel")?f5().smartExtractMatchingEntries({keys:[l,G],sizeLimit:1E3}):f5().extractMatchingEntries({isJspb:!0,cttAuthInfo:p}),F.length>0&&f.set(p,F),(g.R0("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.R0("web_fp_via_jspb_and_json"))&& delete $_[p];krg(f,J,U,M,!1,h)}else{f=g.D(Object.keys($_));for(l=f.next();!l.done;l=f.next())l=l.value,G=g.R0("enable_web_tiered_gel")?f5().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:p},{isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):f5().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),G.length>0&&F.set(l,G),(g.R0("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.R0("web_fp_via_jspb_and_json"))&&delete $_[l];oJm(F,J,U,O,M,!1,h)}}; VJ1=function(U,O){function M(){j$({writeThenSend:!0},U,O)} U=U===void 0?!1:U;O=O===void 0?200:O;var S=HG(U,O),p=S===UtJ||S===OEW?5E3:snw;g.R0("web_gel_timeout_cap")&&!S.U&&(p=cG(function(){M()},p),S.U=p); NT(S.V);p=g.wZ("LOGGING_BATCH_TIMEOUT",g.tb("web_gel_debounce_ms",1E4));g.R0("shorten_initial_gel_batch_timeout")&&vG&&(p=gd7);p=cG(function(){g.tb("gel_min_batch_size")>0?f5().getSequenceCount({cttAuthInfo:void 0,isJspb:U,tier:O})>=MQw&&M():M()},p); S.V=p}; oJm=function(U,O,M,S,p,h,J){p=p===void 0?{}:p;var f=Math.round((0,g.nM)()),F=U.size,l=SdW(J);U=g.D(U);var G=U.next();for(J={};!G.done;J={au:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Yn:void 0,AV:void 0},G=U.next()){var T=g.D(G.value);G=T.next().value;T=T.next().value;J.batchRequest=g.a1({context:g.Dk(O.config_||g.cW())});if(!g.L7(T)&&!g.R0("throw_err_when_logevent_malformed_killswitch")){S();break}J.batchRequest.events=T;(T=WG[G])&&pA7(J.batchRequest,G,T);delete WG[G];J.dangerousLogToVisitorSession= G==="visitorOnlyApprovedKey";hvW(J.batchRequest,f,J.dangerousLogToVisitorSession);Jw1(p);J.Yn=function(e){g.R0("start_client_gcf")&&g.aH.YX(function(){return g.A(function(H){return g.Y(H,yw4(e),0)})}); F--;F||M()}; J.au=0;J.AV=function(e){return function(){e.au++;if(p.bypassNetworkless&&e.au===1)try{g.fv(O,l,e.batchRequest,BG({writeThenSend:!0},e.dangerousLogToVisitorSession,e.Yn,e.AV,h)),vG=!1}catch(H){g.SJ(H),S()}F--;F||M()}}(J); try{g.fv(O,l,J.batchRequest,BG(p,J.dangerousLogToVisitorSession,J.Yn,J.AV,h)),vG=!1}catch(e){g.SJ(e),S()}}}; krg=function(U,O,M,S,p,h){S=S===void 0?{}:S;var J=Math.round((0,g.nM)()),f={value:U.size},F=new Map([].concat(g.N(U)));F=g.D(F);for(var l=F.next();!l.done;l=F.next()){var G=g.D(l.value).next().value,T=U.get(G);l=new CM5;var e=O.config_||g.cW(),H=new ZR,z=new nG;RX(z,1,e.yv);RX(z,2,e.aH);Yy(z,16,e.jF);RX(z,17,e.innertubeContextClientVersion);if(e.R3){var W=e.R3,v=new IV;W.coldConfigData&&RX(v,1,W.coldConfigData);W.appInstallData&&RX(v,6,W.appInstallData);W.coldHashData&&RX(v,3,W.coldHashData);W.hotHashData&& v.o9(W.hotHashData);z4(z,IV,62,v)}(W=g.q1.devicePixelRatio)&&W!=1&&wf(z,65,fc(W));W=YJ();W!==""&&RX(z,54,W);W=mo();if(W.length>0){v=new Xd;for(var x=0;x65535&&(U=1);kk("BATCH_CLIENT_COUNTER",U);return U}; pA7=function(U,O,M){if(M.videoId)var S="VIDEO";else if(M.playlistId)S="PLAYLIST";else return;U.credentialTransferTokenTargetId=M;U.context=U.context||{};U.context.user=U.context.user||{};U.context.user.credentialTransferTokens=[{token:O,scope:S}]}; lV=function(U,O){if(!g.K7("yt.logging.transport.enableScrapingForTest")){var M=bx("il_payload_scraping");if((M!==void 0?String(M):"")==="enable_il_payload_scraping")RR=[],g.Zq("yt.logging.transport.enableScrapingForTest",!0),g.Zq("yt.logging.transport.scrapedPayloadsForTesting",RR),g.Zq("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Zq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Zq("yt.logging.transport.scrapeClientEvent",!0);else return}M=g.K7("yt.logging.transport.scrapedPayloadsForTesting");var S=g.K7("yt.logging.transport.payloadToScrape");O&&(O=O.payload,(O=g.K7("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(O)())&&M.push(O));O=g.K7("yt.logging.transport.scrapeClientEvent");if(S&&S.length>=1)for(var p=0;p0&&tQU(U,O,h)}else tQU(U,O)}; tQU=function(U,O,M){U=Ydw(U);O=O?g.SK(O):"";M=M||5;FK()&&g.K4(U,O,M)}; Ydw=function(U){for(var O=g.D(mt5),M=O.next();!M.done;M=O.next())U=yv(U,M.value);return"ST-"+Gx(U).toString(36)}; Awm=function(U){if(U.name==="JavaException")return!0;U=U.stack;return U.includes("chrome://")||U.includes("chrome-extension://")||U.includes("moz-extension://")}; IOw=function(){this.zw=[];this.Ts=[]}; uV=function(){if(!XJ){var U=XJ=new IOw;U.Ts.length=0;U.zw.length=0;PCe(U,ndJ)}return XJ}; PCe=function(U,O){O.Ts&&U.Ts.push.apply(U.Ts,O.Ts);O.zw&&U.zw.push.apply(U.zw,O.zw)}; Qne=function(U){function O(){return U.charCodeAt(S++)} var M=U.length,S=0;do{var p=qT(O);if(p===Infinity)break;var h=p>>3;switch(p&7){case 0:p=qT(O);if(h===2)return p;break;case 1:if(h===2)return;S+=8;break;case 2:p=qT(O);if(h===2)return U.substr(S,p);S+=p;break;case 5:if(h===2)return;S+=4;break;default:return}}while(S500));S++);S=p}else if(typeof U==="object")for(p in U){if(U[p]){var h=p;var J=U[p],f=O,F=M;h=typeof J!=="string"||h!=="clickTrackingParams"&&h!=="trackingParams"?0:(J=Qne(atob(J.replace(/-/g,"+").replace(/_/g,"/"))))?iV(h+".ve",J,f,F):0;S+=h;S+=iV(p,U[p],O,M);if(S>500)break}}else M[O]=Z8(U),S+=M[O].length;else M[O]=Z8(U),S+=M[O].length;return S}; iV=function(U,O,M,S){M+="."+U;U=Z8(O);S[M]=U;return M.length+U.length}; Z8=function(U){try{return(typeof U==="string"?U:String(JSON.stringify(U))).substr(0,500)}catch(O){return"unable to serialize "+typeof U+" ("+O.message+")"}}; es=function(U){g.K5(U)}; g.rz=function(U){g.K5(U,"WARNING")}; g.K5=function(U,O){var M=M===void 0?{}:M;M.name=g.wZ("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=g.wZ("INNERTUBE_CONTEXT_CLIENT_VERSION");O=O===void 0?"ERROR":O;var S=!1;O=O===void 0?"ERROR":O;S=S===void 0?!1:S;if(U){U.hasOwnProperty("level")&&U.level&&(O=U.level);if(g.R0("console_log_js_exceptions")){var p=[];p.push("Name: "+U.name);p.push("Message: "+U.message);U.hasOwnProperty("params")&&p.push("Error Params: "+JSON.stringify(U.params));U.hasOwnProperty("args")&&p.push("Error args: "+JSON.stringify(U.args)); p.push("File name: "+U.fileName);p.push("Stacktrace: "+U.stack);window.console.log(p.join("\n"),U)}if(!(XAJ>=5)){p=[];for(var h=g.D(uKU),J=h.next();!J.done;J=h.next()){J=J.value;try{J()&&p.push(J())}catch(W){}}p=[].concat(g.N(qdw),g.N(p));var f=xo4(U);h=f.message||"Unknown Error";J=f.name||"UnknownError";var F=f.stack||U.V||"Not available";if(F.startsWith(J+": "+h)){var l=F.split("\n");l.shift();F=l.join("\n")}l=f.lineNumber||"Not available";f=f.fileName||"Not available";var G=0;if(U.hasOwnProperty("args")&& U.args&&U.args.length)for(var T=0;T=500);T++);else if(U.hasOwnProperty("params")&&U.params){var e=U.params;if(typeof U.params==="object")for(T in e){if(e[T]){var H="params."+T,z=Z8(e[T]);M[H]=z;G+=H.length+z.length;if(G>500)break}}else M.params=Z8(e)}if(p.length)for(T=0;T=500);T++);navigator.vendor&&!M.hasOwnProperty("vendor")&&(M["device.vendor"]=navigator.vendor);M={message:h,name:J,lineNumber:l, fileName:f,stack:F,params:M,sampleWeight:1};T=Number(U.columnNumber);isNaN(T)||(M.lineNumber=M.lineNumber+":"+T);if(U.level==="IGNORED")U=0;else a:{U=uV();T=g.D(U.Ts);for(p=T.next();!p.done;p=T.next())if(p=p.value,M.message&&M.message.match(p.IZ)){U=p.weight;break a}U=g.D(U.zw);for(T=U.next();!T.done;T=U.next())if(T=T.value,T.callback(M)){U=T.weight;break a}U=1}M.sampleWeight=U;U=g.D(iEw);for(T=U.next();!T.done;T=U.next())if(T=T.value,T.Ch[M.name])for(h=g.D(T.Ch[M.name]),p=h.next();!p.done;p=h.next())if(J= p.value,p=M.message.match(J.Nn)){M.params["params.error.original"]=p[0];h=J.groups;J={};for(l=0;l1E3&&g.rz(new g.sT("IL Attach cache exceeded limit"))}f= SP(M,O);UX.has(f)?pU(M,O):sX.set(f,!0)}}S=S.filter(function(G){G.csn!==O?(G.csn=O,G=!0):G=!1;return G}); M={csn:O,parentVe:M.getAsJson(),childVes:g.mV(S,function(G){return G.getAsJson()})}; O==="UNDEFINED_CSN"?ha("visualElementAttached",h,M):U?Y_("visualElementAttached",M,U,h):g.HX("visualElementAttached",M,h)}; Msw=function(U,O,M,S,p){Ja(M,O);S=wz({cttAuthInfo:QX(O)||void 0},O);M={csn:O,ve:M.getAsJson(),eventType:1};p&&(M.clientData=p);O==="UNDEFINED_CSN"?ha("visualElementShown",S,M):U?Y_("visualElementShown",M,U,S):g.HX("visualElementShown",M,S)}; STW=function(U,O,M,S){var p=(S=S===void 0?!1:S)?16:8;S=wz({cttAuthInfo:QX(O)||void 0,endOfSequence:S},O);M={csn:O,ve:M.getAsJson(),eventType:p};O==="UNDEFINED_CSN"?ha("visualElementHidden",S,M):U?Y_("visualElementHidden",M,U,S):g.HX("visualElementHidden",M,S)}; pXW=function(U,O,M,S,p){ys(U,O,M,void 0,S,p)}; ys=function(U,O,M,S,p){Ja(M,O);S=S||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=wz({cttAuthInfo:QX(O)||void 0},O);M={csn:O,ve:M.getAsJson(),gestureType:S};p&&(M.clientData=p);O==="UNDEFINED_CSN"?ha("visualElementGestured",h,M):U?Y_("visualElementGestured",M,U,h):g.HX("visualElementGestured",M,h)}; h15=function(){var U=mK(16);for(var O=[],M=0;M0&&M.push(g.GU("BR"));M.push(g.$S(h))}):M.push(g.$S(S))}return M}; dk=function(U,O,M,S){if(M==="child"){g.jd(O);var p;S===void 0?p=void 0:p=!Array.isArray(S)||S&&typeof S.K==="string"?[S]:S;M=yxe(U,p);M=g.D(M);for(U=M.next();!U.done;U=M.next())O.appendChild(U.value)}else M==="style"?g.j3(O,"cssText",S?S:""):S===null||S===void 0?O.removeAttribute(M):(U=S.toString(),M==="href"&&(U=g.ig(g.r1(U))),O.setAttribute(M,U))}; g.r=function(U){g.c_.call(this,U);this.UQ=!0;this.G=!1;this.listeners=[]}; g.W_=function(U){g.r.call(this,U);this.HA=new g.H_;g.X(this,this.HA)}; NH=function(U,O,M,S,p,h,J){J=J===void 0?null:J;g.W_.call(this,O);this.api=U;this.macros={};this.componentType=M;this.D=this.Y=null;this.w7=J;this.layoutId=S;this.interactionLoggingClientData=p;this.EA=h;this.Yy=null;this.iL=new RD(this.element);g.X(this,this.iL);this.pE=this.j(this.element,"click",this.onClick);this.sA=[];this.BA=new tE(this.onClick,this);g.X(this,this.BA);this.r7=!1;this.Ca=this.yP=null}; v_=function(U,O){U=U===void 0?null:U;O=O===void 0?null:O;if(U==null)return g.rz(Error("Got null or undefined adText object")),"";var M=g.ly(U.text);if(!U.isTemplated)return M;if(O==null)return g.rz(Error("Missing required parameters for a templated message")),M;U=g.D(Object.entries(O));for(O=U.next();!O.done;O=U.next()){var S=g.D(O.value);O=S.next().value;S=S.next().value;M=M.replace("{"+O+"}",S)}return M}; fK1=function(U){U=U===void 0?null:U;return U!=null&&(U=U.thumbnail,U!=null&&U.thumbnails!=null&&U.thumbnails.length!=0&&U.thumbnails[0].url!=null)?g.ly(U.thumbnails[0].url):""}; FC1=function(U){U=U===void 0?null:U;return U!=null&&(U=U.thumbnail,U!=null&&U.thumbnails!=null&&U.thumbnails.length!=0&&U.thumbnails[0].width!=null&&U.thumbnails[0].height!=null)?new g.R1(U.thumbnails[0].width||0,U.thumbnails[0].height||0):new g.R1(0,0)}; g.B_=function(U){if(U.simpleText)return U.simpleText;if(U.runs){var O=[];U=g.D(U.runs);for(var M=U.next();!M.done;M=U.next())M=M.value,M.text&&O.push(M.text);return O.join("")}return""}; g.xQ=function(U){if(U.simpleText)return U=document.createTextNode(U.simpleText),U;var O=[];if(U.runs)for(var M=0;M1){for(var O=[U[0]],M=1;M0&&(this.U=new g.UM(this.a6,O,this),g.X(this,this.U));this.G=new g.UM(this.a6,M,this);g.X(this,this.G);this.Y=x0w(this.V,p,1,S);g.X(this,this.Y);this.D=x0w(this.V,0,S,1);g.X(this,this.D);this.X=new nE;g.X(this,this.X)}; ep=function(U,O,M){this.V=U;this.isAsync=O;this.U=M}; LCw=function(U){switch(U){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:yf(U,"unknown result type")}}; Vsw=function(U,O){var M=1;U.isTrusted===!1&&(M=0);kk("ISDSTAT",M);Hv(M,"i.s_",{triggerContext:"sk",metadata:O});return M}; oO5=function(U,O){var M=[];O?O.isTrusted===!0?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):O.isTrusted===!1?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Hv(0,"a.s_",{metadata:U,states:M});kk("ASDSTAT",0)}; Hv=function(U,O,M){O=kww[O];var S,p,h={detected:U===0,source:""+O.V+((S=M.triggerContext)!=null?S:"")+((p=M.Gb)!=null?p:""),detectionStates:M.states,durationMs:M.CT};M.metadata&&(h.contentCpn=M.metadata.contentCpn,h.adCpn=M.metadata.adCpn);g.HX("biscottiBasedDetection",h);O.U!==void 0&&(M=Number(g.wZ("CATSTAT",0)),O.U!==void 0?(O=O.U,U=LCw(U),U=M&~(3<0}; vv=function(U,O,M,S,p,h){JB.call(this,U,{K:"div",L:"ytp-ad-skip-button-slot"},"skip-button",O,M,S,p);var J=this;this.ol=null;this.QP=!1;this.hZ=h;this.C=this.api.J().experiments.F0("enable_modern_skip_button_on_web");this.Rl=!1;this.B=new g.W_({K:"span",OA:["ytp-ad-skip-button-container"]});this.C&&this.B.element.classList.add("ytp-ad-skip-button-container-detached");this.api.T("enable_ad_pod_index_autohide")&&this.B.element.classList.add("ytp-ad-skip-button-container--clean-player");g.X(this,this.B); this.B.AZ(this.element);this.V=this.X=null;this.NL=new g.FY(this.B,500,!1,100,function(){return J.hide()}); g.X(this,this.NL);this.Ka=new jp(this.B.element,15E3,5E3,.5,.5,this.C);g.X(this,this.Ka);this.hide()}; Upg=function(U){U=U.ol&&U.ol.adRendererCommands;return(U&&U.clickCommand&&g.q(U.clickCommand,g.Bv)&&g.q(U.clickCommand,g.Bv).commands||[]).some(function(O){return O.adLifecycleCommand?wXJ(O.adLifecycleCommand):!1})}; wXJ=function(U){return U.action==="END_LINEAR_AD"||U.action==="END_LINEAR_AD_PLACEMENT"}; x4=function(U,O,M,S,p,h){JB.call(this,U,{K:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",O,M,S,p);this.ol=h;this.X=!1;this.C=0;this.B=this.V=null;this.hide()}; OAi=function(U,O){U.X||(U.X=!0,U.V&&(O?U.V.ol.hide():U.V.hide()),O?(U=U.B,U.NL.show(),U.show()):U.B.show())}; b9=function(U,O,M,S){iZ.call(this,U,O,M,S,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; R8=function(U,O,M,S,p,h,J){h=h===void 0?!1:h;J=J===void 0?!1:J;NH.call(this,U,{K:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",O,M,S);this.B=p;this.U=this.ML("ytp-ad-simple-ad-badge");(this.V=h)&&this.U.classList.add("ytp-ad-simple-ad-badge--clean-player");J&&this.U.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; tB=function(U,O,M,S,p){p=p===void 0?!1:p;eP.call(this,"player-overlay",U,{},O,S);this.videoAdDurationSeconds=M;this.interactionLoggingClientData=S;this.kC=p}; Y4=function(U,O){g.H_.call(this);this.api=U;this.durationMs=O;this.U=null;this.V7=new nE(this);g.X(this,this.V7);this.V=sxW;this.V7.j(this.api,"presentingplayerstatechange",this.W4);this.U=this.V7.j(this.api,"onAdPlaybackProgress",this.kZ)}; mn=function(U){g.H_.call(this);this.U=!1;this.XE=0;this.V7=new nE(this);g.X(this,this.V7);this.durationMs=U;this.e9=new g.un(100);g.X(this,this.e9);this.V7.j(this.e9,"tick",this.kZ);this.V={seekableStart:0,seekableEnd:U/1E3,current:0};this.start()}; g.AB=function(U,O){var M=Math.abs(Math.floor(U)),S=Math.floor(M/86400),p=Math.floor(M%86400/3600),h=Math.floor(M%3600/60);M=Math.floor(M%60);if(O){O="";S>0&&(O+=" "+S+" d\u00edas");if(S>0||p>0)O+=" "+p+" horas";O+=" "+h+" minutos";O+=" "+M+" segundos";S=O.trim()}else{O="";S>0&&(O+=S+":",p<10&&(O+="0"));if(S>0||p>0)O+=p+":",h<10&&(O+="0");O+=h+":";M<10&&(O+="0");S=O+M}return U>=0?S:"-"+S}; g.I8=function(U){return(!("button"in U)||typeof U.button!=="number"||U.button===0)&&!("shiftKey"in U&&U.shiftKey)&&!("altKey"in U&&U.altKey)&&!("metaKey"in U&&U.metaKey)&&!("ctrlKey"in U&&U.ctrlKey)}; Pv=function(U,O,M,S,p,h,J){JB.call(this,U,{K:"span",L:J?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",O,M,S,p);this.videoAdDurationSeconds=h;this.V=null;J&&this.api.J().V&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),gI&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; nb=function(U,O,M,S){pb.call(this,U,O,M,S,"ytp-video-ad-top-bar-title","ad-title")}; Qc=function(U){this.content=U.content;if(U.commandRuns){U=g.D(U.commandRuns);for(var O=U.next();!O.done;O=U.next())O=O.value,this.loggingDirectives=g.q(O,gae),O.onTap&&(this.interaction={onTap:O.onTap})}}; Cb=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ad-simple-attributed-string"},"ad-simple-attributed-string",O,M,S);this.hide()}; XY=function(U,O,M,S,p){NH.call(this,U,{K:"span",L:p?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",O,M,S);this.V=p;this.adBadgeText=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);this.adBadgeText.AZ(this.element);g.X(this,this.adBadgeText);p?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),gI&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; u9=function(U,O,M,S){NH.call(this,U,{K:"span",L:"ytp-ad-pod-index"},"ad-pod-index",O,M,S);this.api.J().V&&(this.element.classList.add("ytp-ad-pod-index--mweb"),gI&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; qc=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",O,M,S);this.hide()}; i9=function(U,O){this.V=U;this.U=O}; ZY=function(U,O,M){if(!U.getLength())return M!=null?M:Infinity;U=(O-U.V)/U.getLength();return g.Nm(U,0,1)}; Kb=function(U,O,M,S){S=S===void 0?!1:S;g.W_.call(this,{K:"div",L:"ytp-ad-persistent-progress-bar-container",W:[{K:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=U;this.V=O;this.B=M;S&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.X(this,this.V);this.progressBar=this.ML("ytp-ad-persistent-progress-bar");this.U=-1;this.j(U,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; r4=function(U,O,M,S,p,h){NH.call(this,U,{K:"div",L:"ytp-ad-player-overlay",W:[{K:"div",L:"ytp-ad-player-overlay-flyout-cta"},{K:"div",L:"ytp-ad-player-overlay-instream-info"},{K:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",L:"ytp-ad-player-overlay-progress-bar"},{K:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",L:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",O,M,S);this.Z=h;this.C=this.ML("ytp-ad-player-overlay-flyout-cta");this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.U=this.ML("ytp-ad-player-overlay-instream-info");this.X=null;MR7(this)&&(U=l0("div"),g.l3(U,"ytp-ad-player-overlay-top-bar-gradients"),O=this.U,O.parentNode&&O.parentNode.insertBefore(U,O),(O=this.api.getVideoData(2))&&O.isListed&&O.title&&(M=new nb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),M.AZ(U),M.init(jP("ad-title"),{text:O.title},this.macros),g.X(this,M)),this.X=U);this.B=null;this.TY=this.ML("ytp-ad-player-overlay-skip-or-preview");this.Ka=this.ML("ytp-ad-player-overlay-progress-bar"); this.QP=this.ML("ytp-ad-player-overlay-instream-user-sentiment");this.ol=this.ML("ytp-ad-player-overlay-ad-disclosure-banner");this.V=p;g.X(this,this.V);this.hide()}; MR7=function(U){U=U.api.J();var O=g.a8(U)&&U.V;return U.T("embeds_embc3ds_atb")&&U.disableOrganicUi&&!0||O}; En=function(U,O,M){var S={};O&&(S.v=O);M&&(S.list=M);U={name:U,locale:void 0,feature:void 0};for(var p in S)U[p]=S[p];S=g.pj("/sharing_services",U);g.ox(S)}; g.Lb=function(U){U&=16777215;var O=[(U&16711680)>>16,(U&65280)>>8,U&255];U=O[0];var M=O[1];O=O[2];U=Number(U);M=Number(M);O=Number(O);if(U!=(U&255)||M!=(M&255)||O!=(O&255))throw Error('"('+U+","+M+","+O+'") is not a valid RGB color');M=U<<16|M<<8|O;return U<16?"#"+(16777216|M).toString(16).slice(1):"#"+M.toString(16)}; Vc=function(U){this.U=new ns(U)}; Su5=function(){var U=!1;try{U=!!window.sessionStorage.getItem("session_logininfo")}catch(O){U=!0}return(g.wZ("INNERTUBE_CLIENT_NAME")==="WEB"||g.wZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&U}; o8=function(U){if(g.wZ("LOGGED_IN",!0)&&Su5()){var O=g.wZ("VALID_SESSION_TEMPDATA_DOMAINS",[]);var M=g.UY(window.location.href);M&&O.push(M);M=g.UY(U);g.kE(O,M)||!M&&Wq(U,"/")?(O=OY(U),(O=zom(O))?(O=Ydw(O),O=(O=g.ra(O)||null)?F2(O):{}):O=null):O=null;O==null&&(O={});M=O;var S=void 0;Su5()?(S||(S=g.wZ("LOGIN_INFO")),S?(M.session_logininfo=S,M=!0):M=!1):M=!1;M&&C5(U,O)}}; g.pWJ=function(U){var O=O===void 0?{}:O;var M=M===void 0?"":M;var S=S===void 0?window:S;U=g.pj(U,O);o8(U);M=g.r1(U+M);S=S.location;M=ac(M);M!==void 0&&(S.href=M)}; g.k4=function(U,O,M){O=O===void 0?{}:O;M=M===void 0?!1:M;var S=g.wZ("EVENT_ID");S&&(O.ei||(O.ei=S));O&&C5(U,O);M||(o8(U),g.pWJ(U))}; g.w4=function(U,O,M,S,p){p=p===void 0?!1:p;M&&C5(U,M);M=g.r1(U);var h=g.ig(M);U!=h&&Jb(Error("Unsafe window.open URL: "+U));U=h;O=O||Gx(U).toString(36);try{if(p)return p=U,p=ybw(p),o8(p),g.kC(window,p,O,"attributionsrc")}catch(J){g.SJ(J)}o8(U);return g.kC(window,M,O,S)}; hYg=function(U){UK=U}; Jrw=function(U){OK=U}; yre=function(U){sK=U}; Fse=function(){fkw=sK=OK=UK=null}; Gmi=function(){var U=U===void 0?window.location.href:U;if(g.R0("kevlar_disable_theme_param"))return null;var O=o4(g.wU(5,U));if(g.R0("enable_dark_theme_only_on_shorts")&&O!=null&&O.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var M=g.Gr(U).theme;return lke.get(M)||null}catch(S){}return null}; gT=function(){this.U={};if(this.V=Tjw()){var U=g.ra("CONSISTENCY");U&&$p5(this,{encryptedTokenJarContents:U})}}; $p5=function(U,O){if(O.encryptedTokenJarContents&&(U.U[O.encryptedTokenJarContents]=O,typeof O.expirationSeconds==="string")){var M=Number(O.expirationSeconds);setTimeout(function(){delete U.U[O.encryptedTokenJarContents]},M*1E3); U.V&&g.K4("CONSISTENCY",O.encryptedTokenJarContents,M,void 0,!0)}}; S8=function(){this.V=-1;var U=g.wZ("LOCATION_PLAYABILITY_TOKEN");g.wZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=MZ(this))&&(U=this.localStorage.get("yt-location-playability-token"));U&&(this.locationPlayabilityToken=U,this.U=void 0)}; MZ=function(U){return U.localStorage===void 0?new lh("yt-client-location"):U.localStorage}; g.pl=function(U,O,M){O=O===void 0?!1:O;M=M===void 0?!1:M;var S=g.wZ("INNERTUBE_CONTEXT");if(!S)return g.K5(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};S=g.a1(S);g.R0("web_no_tracking_params_in_shell_killswitch")||delete S.clickTracking;S.client||(S.client={});var p=S.client;p.clientName==="MWEB"&&p.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(p.clientFormFactor=g.wZ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");p.screenWidthPoints=window.innerWidth;p.screenHeightPoints= window.innerHeight;p.screenPixelDensity=Math.round(window.devicePixelRatio||1);p.screenDensityFloat=window.devicePixelRatio||1;p.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var h=h===void 0?!1:h;g.Vm();var J="USER_INTERFACE_THEME_LIGHT";g.on(0,165)?J="USER_INTERFACE_THEME_DARK":g.on(0,174)?J="USER_INTERFACE_THEME_LIGHT":!g.R0("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (J="USER_INTERFACE_THEME_DARK");h=h?J:Gmi()||J;p.userInterfaceTheme=h;if(!O){if(h=s$e())p.connectionType=h;g.R0("web_log_effective_connection_type")&&(h=Maw())&&(S.client.effectiveConnectionType=h)}var f;if(g.R0("web_log_memory_total_kbytes")&&((f=g.q1.navigator)==null?0:f.deviceMemory)){var F;f=(F=g.q1.navigator)==null?void 0:F.deviceMemory;S.client.memoryTotalKbytes=""+f*1E6}g.R0("web_gcf_hashes_innertube")&&(h=F9m())&&(F=h.coldConfigData,f=h.coldHashData,h=h.hotHashData,S.client.configInfo=S.client.configInfo|| {},F&&(S.client.configInfo.coldConfigData=F),f&&(S.client.configInfo.coldHashData=f),h&&(S.client.configInfo.hotHashData=h));F=g.Gr(g.q1.location.href);!g.R0("web_populate_internal_geo_killswitch")&&F.internalcountrycode&&(p.internalGeo=F.internalcountrycode);p.clientName==="MWEB"||p.clientName==="WEB"?(p.mainAppWebInfo={graftUrl:g.q1.location.href},g.R0("kevlar_woffle")&&L6J.instance&&(F=L6J.instance,p.mainAppWebInfo.pwaInstallabilityStatus=!F.U&&F.V?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),p.mainAppWebInfo.webDisplayMode=an(),p.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):p.clientName==="TVHTML5"&&(!g.R0("web_lr_app_quality_killswitch")&&(F=g.wZ("LIVING_ROOM_APP_QUALITY"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{appQuality:F})),F=g.wZ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{certificationScope:F}));if(!g.R0("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(P){}l=void 0}l&&(p.timeZone=l)}(l=YJ())?p.experimentsToken=l:delete p.experimentsToken;l=mo();gT.instance||(gT.instance=new gT);S.request=Object.assign({},S.request,{internalExperimentFlags:l,consistencyTokenJars:g.Qo(gT.instance.U)});!g.R0("web_prequest_context_killswitch")&&(l=g.wZ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(S.request.externalPrequestContext=l);p=g.Vm();l=g.on(0,58);p=p.get("gsml","");S.user=Object.assign({}, S.user);l&&(S.user.enableSafetyMode=l);p&&(S.user.lockedSafetyMode=!0);g.R0("warm_op_csn_cleanup")?M&&(O=g.n5())&&(S.clientScreenNonce=O):!O&&(O=g.n5())&&(S.clientScreenNonce=O);U&&(S.clickTracking={clickTrackingParams:U});if(U=g.K7("yt.mdx.remote.remoteClient_"))S.remoteClient=U;S8.getInstance().setLocationOnInnerTubeContext(S);try{var G=D2(),T=G.bid;delete G.bid;S.adSignalsInfo={params:[],bid:T};for(var e=g.D(Object.entries(G)),H=e.next();!H.done;H=e.next()){var z=g.D(H.value),W=z.next().value, v=z.next().value;G=W;T=v;U=void 0;(U=S.adSignalsInfo.params)==null||U.push({key:G,value:""+T})}var x,t;if(((x=S.client)==null?void 0:x.clientName)==="TVHTML5"||((t=S.client)==null?void 0:t.clientName)==="TVHTML5_UNPLUGGED"){var m=g.wZ("INNERTUBE_CONTEXT");m.adSignalsInfo&&(S.adSignalsInfo.advertisingId=m.adSignalsInfo.advertisingId,S.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",S.adSignalsInfo.limitAdTracking=m.adSignalsInfo.limitAdTracking)}}catch(P){g.K5(P)}return S}; eY1=function(U,O){if(!U)return!1;var M,S=(M=g.q(U,TIe))==null?void 0:M.signal;if(S&&O.NA)return!!O.NA[S];var p;if((M=(p=g.q(U,jx4))==null?void 0:p.request)&&O.o5)return!!O.o5[M];for(var h in U)if(O.gf[h])return!0;return!1}; HA7=function(U){var O={"Content-Type":"application/json"};g.wZ("EOM_VISITOR_DATA")?O["X-Goog-EOM-Visitor-Id"]=g.wZ("EOM_VISITOR_DATA"):g.wZ("VISITOR_DATA")&&(O["X-Goog-Visitor-Id"]=g.wZ("VISITOR_DATA"));O["X-Youtube-Bootstrap-Logged-In"]=g.wZ("LOGGED_IN",!1);g.wZ("DEBUG_SETTINGS_METADATA")&&(O["X-Debug-Settings-Metadata"]=g.wZ("DEBUG_SETTINGS_METADATA"));U!=="cors"&&((U=g.wZ("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(O["X-Youtube-Client-Name"]=U),(U=g.wZ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(O["X-Youtube-Client-Version"]= U),(U=g.wZ("CHROME_CONNECTED_HEADER"))&&(O["X-Youtube-Chrome-Connected"]=U),(U=g.wZ("DOMAIN_ADMIN_STATE"))&&(O["X-Youtube-Domain-Admin-State"]=U),g.wZ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(U=g.wZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(O["X-YouTube-Lava-Device-Context"]=U));return O}; zYU=function(){this.U={}}; hF=function(){this.mappings=new zYU}; JF=function(U){return function(){return new U}}; Dpy=function(U){var O=O===void 0?"UNKNOWN_INTERFACE":O;if(U.length===1)return U[0];var M=cre[O];if(M){M=new RegExp(M);for(var S=g.D(U),p=S.next();!p.done;p=S.next())if(p=p.value,M.exec(p))return p}var h=[];Object.entries(cre).forEach(function(J){var f=g.D(J);J=f.next().value;f=f.next().value;O!==J&&h.push(f)}); M=new RegExp(h.join("|"));U.sort(function(J,f){return J.length-f.length}); S=g.D(U);for(p=S.next();!p.done;p=S.next())if(p=p.value,!M.exec(p))return p;return U[0]}; g.ya=function(U){return"/youtubei/v1/"+Dpy(U)}; fl=function(){}; FL=function(){}; lr=function(){}; GA=function(U){return g.K7("ytcsi."+(U||"")+"data_")||dpi(U)}; Ws4=function(){var U=GA();U.info||(U.info={});return U.info}; $6=function(U){U=GA(U);U.metadata||(U.metadata={});return U.metadata}; TA=function(U){U=GA(U);U.tick||(U.tick={});return U.tick}; j8=function(U){U=GA(U);if(U.gel){var O=U.gel;O.gelInfos||(O.gelInfos={});O.gelTicks||(O.gelTicks={})}else U.gel={gelTicks:{},gelInfos:{}};return U.gel}; NIi=function(U){U=j8(U);U.gelInfos||(U.gelInfos={});return U.gelInfos}; e8=function(U){var O=GA(U).nonce;O||(O=g.AE(16),GA(U).nonce=O);return O}; dpi=function(U){var O={tick:{},info:{}};g.Zq("ytcsi."+(U||"")+"data_",O);return O}; RY=function(){var U=g.K7("ytcsi.debug");U||(U=[],g.Zq("ytcsi.debug",U),g.Zq("ytcsi.reference",{}));return U}; tF=function(U){U=U||"";var O=vae();if(O[U])return O[U];var M=RY(),S={timerName:U,info:{},tick:{},span:{},jspbInfo:[]};M.push(S);return O[U]=S}; BIi=function(U){U=U||"";var O=vae();O[U]&&delete O[U];var M=RY(),S={timerName:U,info:{},tick:{},span:{},jspbInfo:[]};M.push(S);O[U]=S}; vae=function(){var U=g.K7("ytcsi.reference");if(U)return U;RY();return g.K7("ytcsi.reference")}; Y6=function(U){return xpw[U]||"LATENCY_ACTION_UNKNOWN"}; mN=function(U,O){WW.call(this,1,arguments);this.e9=O}; AF=function(){this.U=0}; IY=function(){AF.instance||(AF.instance=new AF);return AF.instance}; nl=function(U,O){PP[O]=PP[O]||{count:0};var M=PP[O];M.count++;M.time=(0,g.nM)();U.U||(U.U=g.hx(0,function(){var S=(0,g.nM)(),p;for(p in PP)PP[p]&&S-PP[p].time>6E4&&delete PP[p];U&&(U.U=0)},5E3)); return M.count>5?(M.count===6&&Math.random()*1E5<1&&(M=new g.sT("CSI data exceeded logging limit with key",O.split("_")),O.indexOf("plev")>=0||g.rz(M)),!0):!1}; bAw=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; RYw=function(){var U;if(g.R0("csi_use_performance_navigation_timing")||g.R0("csi_use_performance_navigation_timing_tvhtml5")){var O,M,S,p=Qa==null?void 0:(U=Qa.getEntriesByType)==null?void 0:(O=U.call(Qa,"navigation"))==null?void 0:(M=O[0])==null?void 0:(S=M.toJSON)==null?void 0:S.call(M);p?(p.requestStart=Cl(p.requestStart),p.responseEnd=Cl(p.responseEnd),p.redirectStart=Cl(p.redirectStart),p.redirectEnd=Cl(p.redirectEnd),p.domainLookupEnd=Cl(p.domainLookupEnd),p.connectStart=Cl(p.connectStart), p.connectEnd=Cl(p.connectEnd),p.responseStart=Cl(p.responseStart),p.secureConnectionStart=Cl(p.secureConnectionStart),p.domainLookupStart=Cl(p.domainLookupStart),p.isPerformanceNavigationTiming=!0,U=p):U=Qa.timing}else U=g.R0("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Qa.timing)):Qa.timing;return U}; Cl=function(U){return Math.round(XL()+U)}; XL=function(){return(g.R0("csi_use_time_origin")||g.R0("csi_use_time_origin_tvhtml5"))&&Qa.timeOrigin?Math.floor(Qa.timeOrigin):Qa.timing.navigationStart}; qZ=function(U,O){ur("_start",U,O)}; ir=function(U,O){if(!g.R0("web_csi_action_sampling_enabled")||!GA(O).actionDisabled){var M=tF(O||"");dP(M.info,U);U.loadType&&(M=U.loadType,$6(O).loadType=M);dP(NIi(O),U);M=e8(O);O=GA(O).cttAuthInfo;IY().info(U,M,O)}}; tRy=function(){var U,O,M,S;return((S=rP().resolve(ui(HW))==null?void 0:(U=zm())==null?void 0:(O=U.loggingHotConfig)==null?void 0:(M=O.csiConfig)==null?void 0:M.debugTicks)!=null?S:[]).map(function(p){return Object.values(p)[0]})}; ur=function(U,O,M){if(!g.R0("web_csi_action_sampling_enabled")||!GA(M).actionDisabled){var S=e8(M),p;if(p=g.R0("web_csi_debug_sample_enabled")&&S){(rP().resolve(ui(HW))==null?0:zm())&&!Yue&&(Yue=!0,ur("gcfl",(0,g.nM)(),M));var h,J,f;p=(rP().resolve(ui(HW))==null?void 0:(h=zm())==null?void 0:(J=h.loggingHotConfig)==null?void 0:(f=J.csiConfig)==null?void 0:f.debugSampleWeight)||0;if(h=p!==0)b:{h=tRy();if(h.length>0)for(J=0;JM.duration?S:M},{duration:0}))&&O.startTime>0&&O.responseEnd>0&&(ur("wffs",Cl(O.startTime)),ur("wffe",Cl(O.responseEnd)))}; CB4=function(U,O,M){Qa&&Qa.measure&&(U.startsWith("measure_")||(U="measure_"+U),M?Qa.measure(U,O,M):O?Qa.measure(U,O):Qa.measure(U))}; XWi=function(U){var O=Zz("aft",U);if(O)return O;O=g.wZ((U||"")+"TIMING_AFT_KEYS",["ol"]);for(var M=O.length,S=0;S0&&ir(O);O={isNavigation:!0,actionType:Y6(g.wZ("TIMING_ACTION"))};var M=g.wZ("PREVIOUS_ACTION");M&&(O.previousAction=Y6(M));if(M=g.wZ("CLIENT_PROTOCOL"))O.httpProtocol=M;if(M=g.wZ("CLIENT_TRANSPORT"))O.transportProtocol=M;(M=g.n5())&&M!=="UNDEFINED_CSN"&&(O.clientScreenNonce=M);M=Ike();if(M===1||M===-1)O.isVisible= !0;M=$6().loadType==="cold";var S=Ws4();M||(M=S.yt_lt==="cold");if(M){O.loadType="cold";M=Ws4();S=RYw();var p=XL(),h=g.wZ("CSI_START_TIMESTAMP_MILLIS",0);h>0&&!g.R0("embeds_web_enable_csi_start_override_killswitch")&&(p=h);p&&(ur("srt",S.responseStart),M.prerender!==1&&qZ(p));M=iAw();M>0&&ur("fpt",M);M=RYw();M.isPerformanceNavigationTiming&&ir({performanceNavigationTiming:!0},void 0);ur("nreqs",M.requestStart,void 0);ur("nress",M.responseStart,void 0);ur("nrese",M.responseEnd,void 0);M.redirectEnd- M.redirectStart>0&&(ur("nrs",M.redirectStart,void 0),ur("nre",M.redirectEnd,void 0));M.domainLookupEnd-M.domainLookupStart>0&&(ur("ndnss",M.domainLookupStart,void 0),ur("ndnse",M.domainLookupEnd,void 0));M.connectEnd-M.connectStart>0&&(ur("ntcps",M.connectStart,void 0),ur("ntcpe",M.connectEnd,void 0));M.secureConnectionStart>=XL()&&M.connectEnd-M.secureConnectionStart>0&&(ur("nstcps",M.secureConnectionStart,void 0),ur("ntcpe",M.connectEnd,void 0));Qa&&"getEntriesByType"in Qa&&QxJ();M=[];if(document.querySelector&& Qa&&Qa.getEntriesByName)for(var J in aY)aY.hasOwnProperty(J)&&(S=aY[J],nai(J,S)&&M.push(S));if(M.length>0)for(O.resourceInfo=[],J=g.D(M),M=J.next();!M.done;M=J.next())O.resourceInfo.push({resourceCache:M.value})}ir(O);O=j8();O.preLoggedGelInfos||(O.preLoggedGelInfos=[]);J=O.preLoggedGelInfos;O=NIi();M=void 0;for(S=0;S-1&&(delete d["@type"],E=d);W&&U.V.has(W)&&U.V.delete(W);((i5=O.config)==null?0:i5.eXA)&&Ll(O.config.eXA);if(E||(vq=U.B)==null||!vq.xd0(O.input,O.H5)){b5.tZ(15);break}return g.Y(b5,U.B.BzZ(O.input,O.H5),16);case 16:E=b5.V;case 15:return h7e(U,E,O),((Hq=O.config)==null?0:Hq.fVn)&&Ll(O.config.fVn),S(),b5.return(E|| void 0)}})}; sDU=function(U,O){a:{U=U.DJ;var M,S=(M=g.q(O,TIe))==null?void 0:M.signal;if(S&&U.NA&&(M=U.NA[S])){var p=M();break a}var h;if((M=(h=g.q(O,jx4))==null?void 0:h.request)&&U.o5&&(h=U.o5[M])){p=h();break a}for(p in O)if(U.gf[p]&&(O=U.gf[p])){p=O();break a}p=void 0}if(p!==void 0)return Promise.resolve(p)}; M0q=function(U,O,M){var S,p,h,J,f,F,l;return g.A(function(G){if(G.U==1){h=((S=O)==null?void 0:(p=S.TU)==null?void 0:p.identity)||dI;F=(J=O)==null?void 0:(f=J.TU)==null?void 0:f.sessionIndex;var T=g.A7(U.U.eQ(h,{sessionIndex:F}));return g.Y(G,T,2)}l=G.V;return G.return(Promise.resolve(Object.assign({},HA7(M),l)))})}; g1q=function(U,O,M){var S,p=(O==null?void 0:(S=O.TU)==null?void 0:S.identity)||dI,h;O=O==null?void 0:(h=O.TU)==null?void 0:h.sessionIndex;U=U.U.eQ(p,{sessionIndex:O});return Object.assign({},HA7(M),U)}; S1=function(){}; pN=function(){}; hJ=function(U){this.C=U}; JJ=function(){}; y4=function(){}; fN=function(){}; F3=function(){}; g.lG=function(U,O){var M=g.m4.apply(2,arguments);U=U===void 0?0:U;g.sT.call(this,O,M);this.errorType=U;Object.setPrototypeOf(this,this.constructor.prototype)}; GE=function(U,O,M,S){this.U=U;this.V=O;this.B=M;this.X=S}; yEe=function(U,O,M){if(U.U){var S=o4(g.wU(5,yv(O,"key")))||"/UNKNOWN_PATH";U.U.start(S)}S=M;g.R0("wug_networking_gzip_request")&&(S=q$e(M));var p;return new ((p=U.X)!=null?p:window.Request)(O,S)}; g.TE=function(U,O){if(!$Z){var M=rP();qY(M,{Kn:f55,Bs:GE});var S={gf:{feedbackEndpoint:JF(JJ),modifyChannelNotificationPreferenceEndpoint:JF(y4),playlistEditEndpoint:JF(fN),shareEntityEndpoint:JF(hJ),subscribeEndpoint:JF(S1),unsubscribeEndpoint:JF(pN),webPlayerShareEntityServiceEndpoint:JF(F3)}},p=S8.getInstance(),h={};p&&(h.client_location=p);U===void 0&&(U=Vuy());O===void 0&&(O=M.resolve(f55));Ovi(S,O,U,h);qY(M,{Kn:FKw,XP:Ot.instance});$Z=M.resolve(FKw)}return $Z}; l5m=function(U){var O=new YL;if(U.interpreterJavascript){var M=t4J(U.interpreterJavascript);M=OG(M).toString();var S=new bK;RX(S,6,M);z4(O,bK,1,S,Kt)}else U.interpreterUrl&&(M=tz(U.interpreterUrl),M=ug(M).toString(),S=new tH,RX(S,4,M),z4(O,tH,2,S,Kt));U.interpreterHash&&td(O,3,U.interpreterHash,Kt);U.program&&td(O,4,U.program,Kt);U.globalName&&td(O,5,U.globalName,Kt);U.clientExperimentsStateBlob&&td(O,7,U.clientExperimentsStateBlob,Kt);return O}; j1=function(U){var O={};U=U.split("&");U=g.D(U);for(var M=U.next();!M.done;M=U.next())M=M.value.split("="),M.length===2&&(O[M[0]]=M[1]);return O}; onW=function(){if(g.R0("bg_st_hr"))return"havuokmhhs-0";var U,O=((U=performance)==null?void 0:U.timeOrigin)||0;return"havuokmhhs-"+Math.floor(O)}; e1=function(U){this.U=U}; GK7=function(){return new Promise(function(U){var O=window.top;O.ntpevasrs!==void 0?U(new e1(O.ntpevasrs)):(O.ntpqfbel===void 0&&(O.ntpqfbel=[]),O.ntpqfbel.push(function(M){U(new e1(M))}))})}; TPm=function(){if(!g.R0("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.R0("disable_biscotti_fetch_entirely_for_all_web_clients")&&FK()){var U=g.wZ("PLAYER_VARS",{});if(g.Z9(U,"privembed",!1)!="1"&&!d97(U)){var O=function(){Hf=!0;"google_ad_status"in window?kk("DCLKSTAT",1):kk("DCLKSTAT",2)}; try{g.H6("//static.doubleclick.net/instream/ad_status.js",O)}catch(M){}$Yi.push(g.aH.YX(function(){if(!(Hf||"google_ad_status"in window)){try{if(O){var M=""+g.wW(O),S=dv1[M];S&&g.j0(S)}}catch(p){}Hf=!0;kk("DCLKSTAT",3)}},5E3))}}}; zE=function(){var U=Number(g.wZ("DCLKSTAT",0));return isNaN(U)?0:U}; Wf=function(U,O,M){var S=this;this.network=U;this.options=O;this.V=M;this.U=null;if(O.OsZ){var p=new g.AH;this.U=p.promise;g.q1.ytAtRC&&pM(function(){var h,J;return g.A(function(f){if(f.U==1){if(!g.q1.ytAtRC)return f.return();h=cf(null);return g.Y(f,D7(S,h),2)}J=f.V;g.q1.ytAtRC&&g.q1.ytAtRC(JSON.stringify(J));g.Dq(f)})},2); GK7().then(function(h){var J,f,F,l;return g.A(function(G){if(G.U==1)return h.bindInnertubeChallengeFetcher(function(T){return D7(S,cf(T))}),g.Y(G,m6(),2); J=G.V;f=h.getLatestChallengeResponse();F=f.challenge;if(!F)throw Error("BGE_MACIL");l={challenge:F,HD:j1(F),x5:J,bgChallenge:new YL};p.resolve(l);h.registerChallengeFetchedCallback(function(T){T=T.challenge;if(!T)throw Error("BGE_MACR");T={challenge:T,HD:j1(T),x5:J,bgChallenge:new YL};S.U=Promise.resolve(T)}); g.Dq(G)})})}else O.preload&&jDe(this,new Promise(function(h){g.hx(0,function(){h(dM(S))},0)}))}; cf=function(U){var O={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};U&&(O.interpreterHash=U);return O}; dM=function(U,O){O=O===void 0?0:O;var M,S,p,h,J,f,F,l,G,T,e,H;return g.A(function(z){switch(z.U){case 1:M=cf(nj().U);if(g.R0("att_fet_ks"))return g.dW(z,7),g.Y(z,D7(U,M),9);g.dW(z,4);return g.Y(z,e7y(U,M),6);case 6:J=z.V;p=J.NKg;h=J.ZOQ;S=J;g.vg(z,3);break;case 4:return g.Bg(z),g.rz(Error("Failed to fetch attestation challenge after "+(O+" attempts; not retrying for 24h."))),Nz(U,864E5),z.return({challenge:"",HD:{},x5:void 0,bgChallenge:void 0});case 9:S=z.V;if(!S)throw Error("Fetching Attestation challenge returned falsy"); if(!S.challenge)throw Error("Missing Attestation challenge");p=S.challenge;h=j1(p);if("c1a"in h&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.vg(z,3);break;case 7:f=g.Bg(z);g.rz(f);O++;if(O>=5)return g.rz(Error("Failed to fetch attestation challenge after "+(O+" attempts; not retrying for 24h."))),Nz(U,864E5),z.return({challenge:"",HD:{},x5:void 0,bgChallenge:void 0});F=1E3*Math.pow(2,O-1)+Math.random()*1E3;return z.return(new Promise(function(W){g.hx(0, function(){W(dM(U,O))},F)})); case 3:l=Number(h.t)||7200;Nz(U,l*1E3);G=void 0;if(!("c1a"in h&&S.bgChallenge)){z.tZ(10);break}T=l5m(S.bgChallenge);g.dW(z,11);return g.Y(z,Qv(nj(),T),13);case 13:g.vg(z,12);break;case 11:return e=g.Bg(z),g.rz(e),z.return({challenge:p,HD:h,x5:G,bgChallenge:T});case 12:return g.dW(z,14),G=new IO({challenge:T,EO:{zO:"aGIf"}}),g.Y(z,G.Z_,16);case 16:g.vg(z,10);break;case 14:H=g.Bg(z),g.rz(H),G=void 0;case 10:return z.return({challenge:p,HD:h,x5:G,bgChallenge:T})}})}; D7=function(U,O){var M;return g.A(function(S){M=U.V;if(!M||M.SH())return S.return(D7(U.network,O));Ut("att_pna",void 0,"attestation_challenge_fetch");return S.return(new Promise(function(p){M.zg("publicytnetworkstatus-online",function(){D7(U.network,O).then(p)})}))})}; Hvq=function(U){if(!U)throw Error("Fetching Attestation challenge returned falsy");if(!U.challenge)throw Error("Missing Attestation challenge");var O=U.challenge,M=j1(O);if("c1a"in M&&(!U.bgChallenge||!U.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},U,{NKg:O,ZOQ:M})}; e7y=function(U,O){var M,S,p,h,J;return g.A(function(f){switch(f.U){case 1:M=void 0,S=0,p={};case 2:if(!(S<5)){f.tZ(4);break}if(!(S>0)){f.tZ(5);break}p.vn=1E3*Math.pow(2,S-1)+Math.random()*1E3;return g.Y(f,new Promise(function(F){return function(l){g.hx(0,function(){l(void 0)},F.vn)}}(p)),5); case 5:return g.dW(f,7),g.Y(f,D7(U,O),9);case 9:return h=f.V,f.return(Hvq(h));case 7:M=J=g.Bg(f),J instanceof Error&&g.rz(J);case 8:S++;p={vn:void 0};f.tZ(2);break;case 4:throw M;}})}; jDe=function(U,O){U.U=O}; z7m=function(U){var O,M,S;return g.A(function(p){if(p.U==1)return g.Y(p,Promise.race([U.U,null]),2);O=p.V;var h=dM(U);U.U=h;(M=O)==null||(S=M.x5)==null||S.dispose();g.Dq(p)})}; Nz=function(U,O){function M(){var p;return g.A(function(h){p=S-Date.now();return p<1E3?g.Y(h,z7m(U),0):(pM(M,0,Math.min(p,6E4)),h.tZ(0))})} var S=Date.now()+O;M()}; cEW=function(U,O){return new Promise(function(M){g.hx(0,function(){M(O())},U)})}; g.DYW=function(U,O){var M;return g.A(function(S){var p=g.K7("yt.aba.att");return(M=p?p:Wf.instance!==void 0?Wf.instance.B.bind(Wf.instance):null)?S.return(M("ENGAGEMENT_TYPE_PLAYBACK",U,O)):S.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.dYJ=function(){var U;return(U=(U=g.K7("yt.aba.att2"))?U:Wf.instance!==void 0?Wf.instance.X.bind(Wf.instance):null)?U():Promise.resolve(!1)}; NPe=function(U,O){var M=g.K7("ytDebugData.callbacks");M||(M={},g.Zq("ytDebugData.callbacks",M));if(g.R0("web_dd_iu")||WKw.includes(U))M[U]=O}; vf=function(){var U=v14;var O=O===void 0?[]:O;var M=M===void 0?[]:M;O=Nhq.apply(null,[vlW.apply(null,g.N(O))].concat(g.N(M)));this.store=xN7(U,void 0,O)}; g.Bf=function(U,O,M){for(var S=Object.assign({},U),p=g.D(Object.keys(O)),h=p.next();!h.done;h=p.next()){h=h.value;var J=U[h],f=O[h];if(f===void 0)delete S[h];else if(J===void 0)S[h]=f;else if(Array.isArray(f)&&Array.isArray(J))S[h]=M?[].concat(g.N(J),g.N(f)):f;else if(!Array.isArray(f)&&g.Vi(f)&&!Array.isArray(J)&&g.Vi(J))S[h]=g.Bf(J,f,M);else if(typeof f===typeof J)S[h]=f;else return O=new g.sT("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:h,Ixy:J,updateValue:f}),g.K5(O), U}return S}; xZ=function(U){var O=this;U=U===void 0?[]:U;this.BN=[];this.K1=this.dc=0;this.hx=void 0;this.totalLength=0;U.forEach(function(M){O.append(M)})}; BP4=function(U,O){return U.BN.length===0?!1:(U=U.BN[U.BN.length-1])&&U.buffer===O.buffer&&U.byteOffset+U.length===O.byteOffset}; bG=function(U,O){O=g.D(O.BN);for(var M=O.next();!M.done;M=O.next())U.append(M.value)}; RG=function(U,O,M){return U.split(O).Aa.split(M).L7}; tJ=function(U){U.hx=void 0;U.dc=0;U.K1=0}; YZ=function(U,O,M){U.isFocused(O);return O-U.K1+M<=U.BN[U.dc].length}; xYy=function(U){if(!U.hx){var O=U.BN[U.dc];U.hx=new DataView(O.buffer,O.byteOffset,O.length)}return U.hx}; mv=function(U,O,M){U=U.c7(O===void 0?0:O,M===void 0?-1:M);O=new Uint8Array(U.length);try{O.set(U)}catch(S){for(M=0;M>10;h=56320|h&1023}Pf[p++]=h}}h=String.fromCharCode.apply(String,Pf); p<1024&&(h=h.substring(0,p));M.push(h)}return M.join("")}; CN=function(U,O){var M;if((M=Q4)==null?0:M.encodeInto)return O=Q4.encodeInto(U,O),O.read>6|192:((p&64512)===55296&&S+1>18|240,O[M++]=p>>12&63|128):O[M++]=p>>12|224,O[M++]=p>>6&63|128),O[M++]=p&63|128)}return M}; X3=function(U){if(Q4)return Q4.encode(U);var O=new Uint8Array(Math.ceil(U.length*1.2)),M=CN(U,O);O.lengthM&&(O=O.subarray(0,M));return O}; uG=function(U){this.U=U;this.pos=0;this.V=-1}; qz=function(U){var O=U.U.getUint8(U.pos);++U.pos;if(O<128)return O;for(var M=O&127,S=1;O>=128;)O=U.U.getUint8(U.pos),++U.pos,S*=128,M+=(O&127)*S;return M}; iG=function(U,O){var M=U.V;for(U.V=-1;U.U.nG(U.pos,1);){M<0&&(M=qz(U));var S=M>>3,p=M&7;if(S===O)return!0;if(S>O){U.V=M;break}M=-1;switch(p){case 0:qz(U);break;case 1:U.pos+=8;break;case 2:S=qz(U);U.pos+=S;break;case 5:U.pos+=4}}return!1}; Z7=function(U,O){if(iG(U,O))return qz(U)}; KN=function(U,O){if(iG(U,O))return!!qz(U)}; rM=function(U,O){if(iG(U,O)){O=qz(U);var M=U.U.c7(U.pos,O);U.pos+=O;return M}}; aG=function(U,O){if(U=rM(U,O))return g.nN(U)}; Et=function(U,O,M){if(U=rM(U,O))return M(new uG(new xZ([U])))}; LN=function(U,O){for(var M=[];iG(U,O);)M.push(qz(U));return M.length?M:void 0}; V4=function(U,O,M){for(var S=[],p;p=rM(U,O);)S.push(M(new uG(new xZ([p]))));return S.length?S:void 0}; oG=function(U,O){U=U instanceof Uint8Array?new xZ([U]):U;return O(new uG(U))}; t04=function(U,O,M){if(O&&M&&M.buffer===O.exports.memory.buffer){var S=O.realloc(M.byteOffset,U);if(S)return new Uint8Array(O.exports.memory.buffer,S,U)}U=O?new Uint8Array(O.exports.memory.buffer,O.malloc(U),U):new Uint8Array(U);M&&U.set(M);return U}; YCw=function(U,O){this.Mm=O;this.pos=0;this.V=[];this.U=t04(U===void 0?4096:U,O);this.view=new DataView(this.U.buffer,this.U.byteOffset,this.U.byteLength)}; kZ=function(U,O){O=U.pos+O;if(!(U.U.length>=O)){for(var M=U.U.length*2;M268435455){kZ(U,4);for(var M=O&1073741823,S=0;S<4;S++)U.view.setUint8(U.pos,M&127|128),M>>=7,U.pos+=1;O=Math.floor(O/268435456)}for(kZ(U,4);O>127;)U.view.setUint8(U.pos,O&127|128),O>>=7,U.pos+=1;U.view.setUint8(U.pos,O);U.pos+=1}; Ua=function(U,O,M){M!==void 0&&(wM(U,O*8),wM(U,M))}; Oa=function(U,O,M){M!==void 0&&Ua(U,O,M?1:0)}; sa=function(U,O,M){M!==void 0&&(wM(U,O*8+2),O=M.length,wM(U,O),kZ(U,O),U.U.set(M,U.pos),U.pos+=O)}; gb=function(U,O,M){M!==void 0&&(mYw(U,O,Math.ceil(Math.log2(M.length*4+2)/7)),kZ(U,M.length*1.2),O=CN(M,U.U.subarray(U.pos)),U.pos+O>U.U.length&&(kZ(U,O),O=CN(M,U.U.subarray(U.pos))),U.pos+=O,AE1(U))}; mYw=function(U,O,M){M=M===void 0?2:M;wM(U,O*8+2);U.V.push(U.pos);U.V.push(M);U.pos+=M}; AE1=function(U){for(var O=U.V.pop(),M=U.V.pop(),S=U.pos-M-O;O--;){var p=O?128:0;U.view.setUint8(M++,S&127|p);S>>=7}}; Mf=function(U,O,M,S,p){M&&(mYw(U,O,p===void 0?3:p),S(U,M),AE1(U))}; g.SL=function(U,O,M){M=new YCw(4096,M);O(M,U);return new Uint8Array(M.U.buffer,M.U.byteOffset,M.pos)}; g.pQ=function(U){var O=new uG(new xZ([d3(decodeURIComponent(U))]));U=aG(O,2);O=Z7(O,4);var M=I5e[O];if(typeof M==="undefined")throw U=new g.sT("Failed to recognize field number",{name:"EntityKeyHelperError",kwA:O}),g.K5(U),U;return{Zn:O,entityType:M,entityId:U}}; g.hi=function(U,O){var M=M===void 0?0:M;var S=new YCw;sa(S,2,X3(U));U=Piq[O];if(typeof U==="undefined")throw M=new g.sT("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:O}),g.K5(M),M;Ua(S,4,U);Ua(S,5,1);O=new Uint8Array(S.U.buffer,S.U.byteOffset,S.pos);return encodeURIComponent(g.cp(O,M))}; Ji=function(U,O,M,S){if(S===void 0)return S=Object.assign({},U[O]||{}),M=(delete S[M],S),S={},Object.assign({},U,(S[O]=M,S));var p={},h={};return Object.assign({},U,(h[O]=Object.assign({},U[O],(p[M]=S,p)),h))}; n1g=function(U,O,M,S,p){var h=U[O];if(h==null||!h[M])return U;S=g.Bf(h[M],S,p==="REPEATED_FIELDS_MERGE_OPTION_APPEND");p={};h={};return Object.assign({},U,(h[O]=Object.assign({},U[O],(p[M]=S,p)),h))}; QD4=function(U,O){U=U===void 0?{}:U;switch(O.type){case "ENTITY_LOADED":return O.payload.reduce(function(S,p){var h,J=(h=p.options)==null?void 0:h.persistenceOption;if(J&&J!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&J!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return S;if(!p.entityKey)return g.K5(Error("Missing entity key")),S;if(p.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!p.payload)return g.K5(new g.sT("REPLACE entity mutation is missing a payload",{entityKey:p.entityKey})),S;var f=g.n1(p.payload); return Ji(S,f,p.entityKey,p.payload[f])}if(p.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{p=p.entityKey;try{var F=g.pQ(p).entityType;f=Ji(S,F,p);break a}catch(T){if(T instanceof Error){g.K5(new g.sT("Failed to deserialize entity key",{entityKey:p,gU:T.message}));f=S;break a}throw T;}f=void 0}return f}if(p.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!p.payload)return g.K5(new g.sT("UPDATE entity mutation is missing a payload",{entityKey:p.entityKey})),S;f=g.n1(p.payload);var l,G;return n1g(S,f,p.entityKey, p.payload[f],(l=p.fieldMask)==null?void 0:(G=l.mergeOptions)==null?void 0:G.repeatedFieldsMergeOption)}return S},U); case "REPLACE_ENTITY":var M=O.payload;return Ji(U,M.entityType,M.key,M.NS);case "REPLACE_ENTITIES":return Object.keys(O.payload).reduce(function(S,p){var h=O.payload[p];return Object.keys(h).reduce(function(J,f){return Ji(J,p,f,h[f])},S)},U); case "UPDATE_ENTITY":return M=O.payload,n1g(U,M.entityType,M.key,M.NS,M.Q9Y);default:return U}}; yL=function(U,O,M){return U[O]?U[O][M]||null:null}; fQ=function(U){return window.Int32Array?new Int32Array(U):Array(U)}; BC=function(U){g.C.call(this);this.counter=[0,0,0,0];this.V=new Uint8Array(16);this.U=16;if(!Ciy){var O,M=new Uint8Array(256),S=new Uint8Array(256);var p=1;for(O=0;O<256;O++)M[p]=O,S[O]=p,p^=p<<1^(p>>7&&283);FD=new Uint8Array(256);lm=fQ(256);WC=fQ(256);Nf=fQ(256);vC=fQ(256);for(var h=0;h<256;h++){p=h?S[255^M[h]]:0;p^=p<<1^p<<2^p<<3^p<<4;p=p&255^p>>>8^99;FD[h]=p;O=p<<1^(p>>7&&283);var J=O^p;lm[h]=O<<24|p<<16|p<<8|J;WC[h]=J<<24|lm[h]>>>8;Nf[h]=p<<24|WC[h]>>>8;vC[h]=p<<24|Nf[h]>>>8}Ciy=!0}p=fQ(44);for(M= 0;M<4;M++)p[M]=U[4*M]<<24|U[4*M+1]<<16|U[4*M+2]<<8|U[4*M+3];for(S=1;M<44;M++)U=p[M-1],M%4||(U=(FD[U>>16&255]^S)<<24|FD[U>>8&255]<<16|FD[U&255]<<8|FD[U>>>24],S=S<<1^(S>>7&&283)),p[M]=p[M-4]^U;this.key=p}; x5=function(U,O){for(var M=0;M<4;M++)U.counter[M]=O[M*4]<<24|O[M*4+1]<<16|O[M*4+2]<<8|O[M*4+3];U.U=16}; X6J=function(U){for(var O=U.key,M=U.counter[0]^O[0],S=U.counter[1]^O[1],p=U.counter[2]^O[2],h=U.counter[3]^O[3],J=3;J>=0&&!(U.counter[J]=-~U.counter[J]);J--);for(var f,F,l=4;l<40;)J=lm[M>>>24]^WC[S>>16&255]^Nf[p>>8&255]^vC[h&255]^O[l++],f=lm[S>>>24]^WC[p>>16&255]^Nf[h>>8&255]^vC[M&255]^O[l++],F=lm[p>>>24]^WC[h>>16&255]^Nf[M>>8&255]^vC[S&255]^O[l++],h=lm[h>>>24]^WC[M>>16&255]^Nf[S>>8&255]^vC[p&255]^O[l++],M=J,S=f,p=F;U=U.V;J=O[40];U[0]=FD[M>>>24]^J>>>24;U[1]=FD[S>>16&255]^J>>16&255;U[2]=FD[p>>8&255]^ J>>8&255;U[3]=FD[h&255]^J&255;J=O[41];U[4]=FD[S>>>24]^J>>>24;U[5]=FD[p>>16&255]^J>>16&255;U[6]=FD[h>>8&255]^J>>8&255;U[7]=FD[M&255]^J&255;J=O[42];U[8]=FD[p>>>24]^J>>>24;U[9]=FD[h>>16&255]^J>>16&255;U[10]=FD[M>>8&255]^J>>8&255;U[11]=FD[S&255]^J&255;J=O[43];U[12]=FD[h>>>24]^J>>>24;U[13]=FD[M>>16&255]^J>>16&255;U[14]=FD[S>>8&255]^J>>8&255;U[15]=FD[p&255]^J&255}; ti=function(){if(!bm&&!g.Mp){if(R_)return R_;var U;R_=(U=window.crypto)==null?void 0:U.subtle;var O,M,S;if(((O=R_)==null?0:O.importKey)&&((M=R_)==null?0:M.sign)&&((S=R_)==null?0:S.encrypt))return R_;R_=void 0}}; g.Y5=function(U){this.X=U}; g.mO=function(U){this.V=U}; Ai=function(U){this.G=new Uint8Array(64);this.B=new Uint8Array(64);this.X=0;this.C=new Uint8Array(64);this.V=0;this.G.set(U);this.B.set(U);for(U=0;U<64;U++)this.G[U]^=92,this.B[U]^=54;this.reset()}; uHJ=function(U,O,M){for(var S=U.D,p=U.U[0],h=U.U[1],J=U.U[2],f=U.U[3],F=U.U[4],l=U.U[5],G=U.U[6],T=U.U[7],e,H,z,W=0;W<64;)W<16?(S[W]=z=O[M]<<24|O[M+1]<<16|O[M+2]<<8|O[M+3],M+=4):(e=S[W-2],H=S[W-15],z=S[W-7]+S[W-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),S[W]=z),e=T+I_[W]+z+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&l^~F&G),H=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&h^p&J^h&J),T=e+H,f+=e,W++,W<16?(S[W]=z=O[M]<<24|O[M+1]<<16|O[M+2]<<8|O[M+3],M+=4):(e= S[W-2],H=S[W-15],z=S[W-7]+S[W-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),S[W]=z),e=G+I_[W]+z+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&F^~f&l),H=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+(T&p^T&h^p&h),G=e+H,J+=e,W++,W<16?(S[W]=z=O[M]<<24|O[M+1]<<16|O[M+2]<<8|O[M+3],M+=4):(e=S[W-2],H=S[W-15],z=S[W-7]+S[W-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),S[W]=z),e=l+I_[W]+z+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&f^ ~J&F),H=((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+(G&T^G&p^T&p),l=e+H,h+=e,W++,W<16?(S[W]=z=O[M]<<24|O[M+1]<<16|O[M+2]<<8|O[M+3],M+=4):(e=S[W-2],H=S[W-15],z=S[W-7]+S[W-16]+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),S[W]=z),e=F+I_[W]+z+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&J^~h&f),H=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&G^l&T^G&T),z=T,T=f,f=z,z=G,G=J,J=z,z=l,l=h,h=z,F=p+e,p=e+H,W++;U.U[0]=p+U.U[0]|0;U.U[1]=h+U.U[1]|0;U.U[2]=J+U.U[2]|0;U.U[3]= f+U.U[3]|0;U.U[4]=F+U.U[4]|0;U.U[5]=l+U.U[5]|0;U.U[6]=G+U.U[6]|0;U.U[7]=T+U.U[7]|0}; ivq=function(U){var O=new Uint8Array(32),M=64-U.V;U.V>55&&(M+=64);var S=new Uint8Array(M);S[0]=128;for(var p=U.X*8,h=1;h<9;h++){var J=p%256;S[M-h]=J;p=(p-J)/256}U.update(S);for(M=0;M<8;M++)O[M*4]=U.U[M]>>>24,O[M*4+1]=U.U[M]>>>16&255,O[M*4+2]=U.U[M]>>>8&255,O[M*4+3]=U.U[M]&255;qCW(U);return O}; qCW=function(U){U.U=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];U.D=[];U.D.length=64;U.X=0;U.V=0}; Zve=function(U){this.U=U}; KK7=function(U,O,M){U=new Ai(U.U);U.update(O);U.update(M);O=ivq(U);U.update(U.G);U.update(O);O=ivq(U);U.reset();return O}; rE4=function(U){this.V=U}; a5W=function(U,O,M,S){var p,h,J;return g.A(function(f){switch(f.U){case 1:if(U.U){f.tZ(2);break}return g.Y(f,S.importKey("raw",U.V,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:U.U=f.V;case 2:return p=new Uint8Array(O.length+M.length),p.set(O),p.set(M,O.length),h={name:"HMAC",hash:"SHA-256"},g.Y(f,S.sign(h,U.U,p),4);case 4:return J=f.V,f.return(new Uint8Array(J))}})}; E1i=function(U,O,M){U.B||(U.B=new Zve(U.V));return KK7(U.B,O,M)}; LKm=function(U,O,M){var S,p;return g.A(function(h){if(h.U==1){S=ti();if(!S)return h.return(E1i(U,O,M));g.dW(h,3);return g.Y(h,a5W(U,O,M,S),5)}if(h.U!=3)return h.return(h.V);p=g.Bg(h);g.rz(p);bm=!0;return h.return(E1i(U,O,M))})}; o1i=function(U){for(var O="",M=0;M=1?U[U.length-1]:null;for(var S=g.D(U),p=S.next();!p.done;p=S.next())if(p=p.value,p.width&&p.height&&(M&&p.width>=O||!M&&p.height>=O))return p;for(O=U.length-1;O>=0;O--)if(M&&U[O].width||!M&&U[O].height)return U[O];return U[0]}; nQ=function(){this.state=1;this.x5=null;this.lU=void 0}; yte=function(U,O,M,S,p,h){var J=J===void 0?"trayride":J;M?(U.YZ(2),g.H6(M,function(){if(window[J])Jti(U,S,J,p);else{U.YZ(3);var f=DvU(M),F=document.getElementById(f);F&&(zjq(f),F.parentNode.removeChild(F));g.rz(new g.sT("BL:ULB",""+M))}},h)):O?(h=g.GU("SCRIPT"),O instanceof UG?(h.textContent=OG(O),sG(h)):h.textContent=O,h.nonce=w1(document),document.head.appendChild(h),document.head.removeChild(h),window[J]?Jti(U,S,J,p):(U.YZ(4),g.rz(new g.sT("BL:ULBJ")))):g.rz(new g.sT("BL:ULV"))}; Jti=function(U,O,M,S){U.YZ(5);var p=!!U.lU&&f8w.includes(g.UY(U.lU)||"");try{var h=new IO({program:O,globalName:M,EO:{disable:!g.R0("att_web_record_metrics")||!g.R0("att_skip_metrics_for_cookieless_domains_ks")&&p,zO:"aGIf"}});h.Z_.then(function(){U.YZ(6);S&&S(O)}); U.Ub(h)}catch(J){U.YZ(7),J instanceof Error&&g.rz(J)}}; QL=function(){var U=g.K7("yt.abuse.playerAttLoader");return U&&["bgvma","bgvmb","bgvmc"].every(function(O){return O in U})?U:null}; CQ=function(){nQ.apply(this,arguments)}; XD=function(){}; Fii=function(U,O,M){for(var S=!1,p=g.D(U.BU.entries()),h=p.next();!h.done;h=p.next())h=g.D(h.value).next().value,h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.JZ==="core"&&(S=!0);if(S){a:if(!M){U=g.D(U.BU.entries());for(M=U.next();!M.done;M=U.next())if(S=g.D(M.value),M=S.next().value,S=S.next().value,M.slotType==="SLOT_TYPE_IN_PLAYER"&&M.JZ==="core"){M=S.layoutId;break a}M=void 0}M?O.hj(M):DY("No triggering layout ID available when attempting to mute.")}}; um=function(U,O){this.gC=U;this.KN=O}; qf=function(){}; im=function(){}; GNe=function(U){g.C.call(this);var O=this;this.Zq=U;this.U=new Map;Z_(this,"commandExecutorCommand",function(M,S,p){l87(O,M.commands,S,p)}); Z_(this,"clickTrackingParams",function(){})}; $Ty=function(U,O){Z_(U,O.Uu(),function(M,S,p){O.QT(M,S,p)})}; Z_=function(U,O,M){U.GY();U.U.get(O)&&g.K5(Error("Extension name "+O+" already registered"));U.U.set(O,M)}; l87=function(U,O,M,S){O=O===void 0?[]:O;U.GY();var p=[],h=[];O=g.D(O);for(var J=O.next();!J.done;J=O.next())J=J.value,g.q(J,TzW)||g.q(J,jRg)?p.push(J):h.push(J);p=g.D(p);for(O=p.next();!O.done;O=p.next())KQ(U,O.value,M,S);h=g.D(h);for(p=h.next();!p.done;p=h.next())KQ(U,p.value,M,S)}; KQ=function(U,O,M,S){U.GY();O.loggingUrls&&e5w(U,"loggingUrls",O.loggingUrls,M,S);O=g.D(Object.entries(O));for(var p=O.next();!p.done;p=O.next()){var h=g.D(p.value);p=h.next().value;h=h.next().value;p==="openPopupAction"?U.Zq.get().U_("innertubeCommand",{openPopupAction:h}):p==="confirmDialogEndpoint"?U.Zq.get().U_("innertubeCommand",{confirmDialogEndpoint:h}):H55.hasOwnProperty(p)||e5w(U,p,h,M,S)}}; e5w=function(U,O,M,S,p){if((U=U.U.get(O))&&typeof U==="function")try{U(M,S,p)}catch(h){g.K5(h)}else O=new g.sT("Unhandled field",O),g.rz(O)}; rb=function(U,O,M){this.Up=U;this.U=O;this.Il=M;z5e(this.U)&&qY(rP(),{Kn:pGq,Bs:Shm})}; a_=function(U){this.value=U}; Ea=function(U){this.value=U}; LQ=function(U){this.value=U}; VL=function(U){this.value=U}; o_=function(U){this.value=U}; k5=function(U){this.value=U}; wb=function(U){this.value=U}; Ul=function(){a_.apply(this,arguments)}; Ol=function(U){this.value=U}; sl=function(U){this.value=U}; gn=function(U){this.value=U}; MJ=function(U){this.value=U}; Sr=function(U){this.value=U}; p_=function(U){this.value=U}; h3=function(U){this.value=U}; J3=function(U){this.value=U}; y0=function(U){this.value=U}; f_=function(U){this.value=U}; Fl=function(){a_.apply(this,arguments)}; lX=function(U){this.value=U}; Ga=function(U){this.value=U}; $r=function(U){this.value=U}; Ta=function(U){this.value=U}; jr=function(U){this.value=U}; er=function(U){this.value=U}; HR=function(U){this.value=U}; za=function(U){this.value=U}; cR=function(U){this.value=U}; DW=function(U){this.value=U}; dn=function(U){this.value=U}; WR=function(U){this.value=U}; NJ=function(U){this.value=U}; vR=function(U){this.value=U}; BR=function(U){this.value=U}; xr=function(U){this.value=U}; bX=function(U){this.value=U}; RP=function(U){this.value=U}; t3=function(U){this.value=U}; Yr=function(U){this.value=U}; mk=function(U){this.value=U}; A3=function(U){this.value=U}; IP=function(U){this.value=U}; PR=function(U){this.value=U}; n_=function(U){this.value=U}; Q0=function(U){this.value=U}; C_=function(U){this.value=U}; Xl=function(U){this.value=U}; uX=function(U){this.value=U}; qJ=function(U){this.value=U}; iX=function(U){this.value=U}; ZW=function(U){this.value=U}; K_=function(U){this.value=U}; rn=function(U){this.value=U}; aP=function(U){this.value=U}; El=function(U){this.value=U}; L_=function(U){this.value=U}; V0=function(U){this.value=U}; oP=function(){a_.apply(this,arguments)}; kr=function(U){this.value=U}; wn=function(){a_.apply(this,arguments)}; Uq=function(){a_.apply(this,arguments)}; Oq=function(){a_.apply(this,arguments)}; sq=function(){a_.apply(this,arguments)}; gL=function(){a_.apply(this,arguments)}; MM=function(U){this.value=U}; Sn=function(U){this.value=U}; pi=function(U){this.value=U}; hu=function(U){this.value=U}; Ju=function(U){this.value=U}; fi=function(U,O,M){if(M&&!M.includes(U.layoutType))return!1;O=g.D(O);for(M=O.next();!M.done;M=O.next())if(!y6(U.clientMetadata,M.value))return!1;return!0}; F5=function(){return""}; ctg=function(U,O){switch(U){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 O(U),8}}; lo=function(U,O,M,S){S=S===void 0?!1:S;eD.call(this,U);this.Pb=M;this.I$=S;this.args=[];O&&this.args.push(O)}; L=function(U,O,M,S){S=S===void 0?!1:S;eD.call(this,U);this.Pb=M;this.I$=S;this.args=[];O&&this.args.push(O)}; Gk=function(U){var O=new Map;U.forEach(function(M){O.set(M.getType(),M)}); this.U=O}; y6=function(U,O){return U.U.has(O)}; $G=function(U,O){U=U.U.get(O);if(U!==void 0)return U.get()}; Tk=function(U){return Array.from(U.U.keys())}; jn=function(U,O,M){if(M&&M!==U.slotType)return!1;O=g.D(O);for(M=O.next();!M.done;M=O.next())if(!y6(U.clientMetadata,M.value))return!1;return!0}; dT5=function(U){var O;return((O=DTe.get(U))==null?void 0:O.xR)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; HF=function(U,O){var M={type:O.slotType,controlFlowManagerLayer:Wig.get(O.JZ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};O.slotEntryTrigger&&(M.entryTriggerType=O.slotEntryTrigger.triggerType);O.slotPhysicalPosition!==1&&(M.slotPhysicalPosition=O.slotPhysicalPosition);if(U){M.debugData={slotId:O.slotId};if(U=O.slotEntryTrigger)M.debugData.slotEntryTriggerData=en(U);U=O.slotFulfillmentTriggers;M.debugData.fulfillmentTriggerData=[];U=g.D(U);for(var S=U.next();!S.done;S=U.next())M.debugData.fulfillmentTriggerData.push(en(S.value)); O=O.slotExpirationTriggers;M.debugData.expirationTriggerData=[];O=g.D(O);for(U=O.next();!U.done;U=O.next())M.debugData.expirationTriggerData.push(en(U.value))}return M}; NzW=function(U,O){var M={type:O.layoutType,controlFlowManagerLayer:Wig.get(O.JZ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};U&&(M.debugData={layoutId:O.layoutId});return M}; en=function(U,O){var M={type:U.triggerType};O!=null&&(M.category=O);U.triggeringSlotId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedSlotId=U.triggeringSlotId);U.triggeringLayoutId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedLayoutId=U.triggeringLayoutId);return M}; v_q=function(U,O,M,S){O={opportunityType:O};U&&(S||M)&&(S=g.mV(S||[],function(p){return HF(U,p)}),O.debugData=Object.assign({},M&&M.length>0?{associatedSlotId:M}:{},S.length>0?{slots:S}:{})); return O}; cF=function(U,O){return function(M){return BzU(zk(U),O.slotId,O.slotType,O.slotPhysicalPosition,O.JZ,O.slotEntryTrigger,O.slotFulfillmentTriggers,O.slotExpirationTriggers,M.layoutId,M.layoutType,M.JZ)}}; BzU=function(U,O,M,S,p,h,J,f,F,l,G){return{adClientDataEntry:{slotData:HF(U,{slotId:O,slotType:M,slotPhysicalPosition:S,JZ:p,slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:f,clientMetadata:new Gk([])}),layoutData:NzW(U,{layoutId:F,layoutType:l,JZ:G,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],BV:new Map,clientMetadata:new Gk([]),kp:{}})}}}; dL=function(U){this.vA=U;U=Math.random();var O=this.vA.get();O=g.DF(O.S.J().experiments,"html5_debug_data_log_probability");O=Number.isFinite(O)&&O>=0&&O<=1?O:0;this.U=U1){g.rz(new g.sT("Exit already started",{current:U.currentState}));var M=!1}else M=!0;if(!M)return!1;U.currentState=2;U.U=O;return!0}; Bo=function(U){if(U.currentState!==2)return!1;U.currentState=3;return!0}; s8W=function(U,O){var M=new Map;U=g.D(U);for(var S=U.next();!S.done;S=U.next()){S=S.value;if(S.layoutType==="LAYOUT_TYPE_MEDIA")var p="v";else S.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(p=$G(S.clientMetadata,"metadata_type_linked_in_player_layout_type"),p=p==="LAYOUT_TYPE_ENDCAP"||p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":p==="LAYOUT_TYPE_SURVEY"?"s":p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):p="u";M.set(S.layoutId,p);if(p==="u"){var h={};p=O;S=(h.c=S.layoutId,h);p.S.al("uct",S)}}U= O.JU();xF={contentCpn:U,cR:M};S={};M=(S.ct=M.size,S.c=U,S);O.S.al("acc",M)}; g4i=function(){xF={contentCpn:"",cR:new Map}}; bA=function(U){var O;return(O=xF.cR.get(U))!=null?O:"u"}; Ri=function(U,O,M){U.S.al(O,M);Mpw(U)}; Sni=function(U){var O=U.layoutId,M=U.dg;if(U.A0){var S={};Ri(U.Up,"slso",(S.ec=O,S.is=M,S.ctp=bA(O),S))}}; tA=function(U){var O=U.layoutId,M=U.dg;if(U.A0){var S={};Ri(U.Up,"slse",(S.ec=O,S.is=M,S.ctp=bA(O),S))}}; pv1=function(U){var O=U.layoutId,M=U.dg,S=U.Up;U.A0&&(U={},Ri(S,"sleo",(U.xc=O,U.is=M,U.ctp=bA(O),U)),Mpw(S))}; hnm=function(U){var O=U.cpn,M=U.Up;U=U.dg;var S=M.JU(),p={};Ri(M,"ce",(p.ec=O,p.ia=O!==S,p.r=xF.cR.has(O),p.is=U,p.ctp=bA(O),p))}; Mpw=function(U){if(U.JU()!==xF.contentCpn){var O={};O=(O.c=xF.contentCpn,O);U.S.al("ccm",O)}}; JB7=function(U){var O=U.cpn,M=U.Up;U=U.dg;var S=M.JU(),p={};Ri(M,"cx",(p.xc=O,p.ia=O!==S,p.r=xF.cR.has(O),p.is=U,p.ctp=bA(O),p))}; yBi=function(U){this.params=U;this.U=new Set}; fYe=function(U,O,M){if(!U.U.has(O)){U.U.add(O);var S={};U.params.Za.ya(O,Object.assign({},M,(S.p_ac=U.params.adCpn,S.p_isv=U.params.wVA&&U.params.i$,S)))}}; ma=function(U,O,M){if(YF(U.params.Za.vA.get(),!0)){var S=M.flush,p={};fYe(U,O,(p.cts=M.currentTimeSec,p.f=S,p))}}; Fng=function(U,O){this.Up=U;this.vA=O}; AA=function(U){var O=[];if(U){U=g.D(Object.entries(U));for(var M=U.next();!M.done;M=U.next()){var S=g.D(M.value);M=S.next().value;S=S.next().value;S!==void 0&&(S=typeof S==="boolean"?""+ +S:(""+S).replace(/[:,=]/g,"_"),O.push(M+"."+S))}}return O.join(";")}; Ii=function(U,O,M){O=O===void 0?{}:O;this.errorCode=U;this.details=O;this.severity=M===void 0?0:M}; Po=function(U){return U===1||U===2}; nP=function(U,O){O=O===void 0?0:O;if(U instanceof Ii)return U;U=U&&U instanceof Error?U:Error(""+U);Po(O)?g.K5(U):g.rz(U);return new Ii(O===1?"player.fatalexception":"player.exception",{name:""+U.name,message:""+U.message},O)}; lYe=function(U,O){function M(){var S=g.m4.apply(0,arguments);U.removeEventListener("playing",M);O.apply(null,g.N(S))} U.addEventListener("playing",M)}; QN=function(){var U=g.K7("yt.player.utils.videoElement_");U||(U=g.GU("VIDEO"),g.Zq("yt.player.utils.videoElement_",U));return U}; CP=function(U){var O=QN();return!!(O&&O.canPlayType&&O.canPlayType(U))}; uA=function(U){if(/opus/.test(U)&&g.XW&&!mT("38")&&!g.Ud())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(U);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(U);if(/webm/.test(U)&&!H$e())return!1;U==='audio/mp4; codecs="mp4a.40.2"'&&(U='video/mp4; codecs="avc1.4d401f"');return!!CP(U)}; GQy=function(U){try{var O=uA('video/mp4; codecs="avc1.42001E"')||uA('video/webm; codecs="vp9"');return(uA('audio/mp4; codecs="mp4a.40.2"')||uA('audio/webm; codecs="opus"'))&&(O||!U)||CP('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(M){return"html5.missingapi"}}; qX=function(){var U=QN();return!(!U.webkitSupportsPresentationMode||typeof U.webkitSetPresentationMode!=="function")}; iA=function(){var U=QN();try{var O=U.muted;U.muted=!O;return U.muted!==O}catch(M){}return!1}; $c5=function(){var U;return((U=navigator.connection)==null?void 0:U.type)||""}; g.Zj=function(){nE.apply(this,arguments)}; KP=function(U,O,M,S,p,h,J){this.sampleRate=U===void 0?0:U;this.numChannels=O===void 0?0:O;this.spatialAudioType=M===void 0?"SPATIAL_AUDIO_TYPE_NONE":M;this.U=S===void 0?!1:S;this.B=p===void 0?0:p;this.V=h===void 0?0:h;this.audioQuality=J===void 0?"AUDIO_QUALITY_UNKNOWN":J}; EO=function(U,O,M,S,p,h,J,f,F){this.width=U;this.height=O;this.quality=h||r9(U,O);this.qualityOrdinal=g.ai[this.quality];this.fps=M||0;this.stereoLayout=!p||S!=null&&S!=="UNKNOWN"&&S!=="RECTANGULAR"?0:p;this.projectionType=S?S==="EQUIRECTANGULAR"&&p===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":S:"UNKNOWN";(U=J)||(U=g.ai[this.quality],U===0?U="Autom\u00e1tica":(O=this.fps,M=this.projectionType,U=U.toString()+(M==="EQUIRECTANGULAR"||M==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||M==="MESH"?"s":"p")+(O>55?"60": O>49?"50":O>39?"48":"")));this.qualityLabel=U;this.U=f||"";this.primaries=F||""}; r9=function(U,O){var M=Math.max(U,O);U=Math.min(U,O);O=LP[0];for(var S=0;S=Math.floor(h*16/9)*1.3||U>=h*1.3)return O;O=p}return"tiny"}; kF=function(U,O,M){M=M===void 0?{}:M;this.id=U;this.mimeType=O;M.a_>0||(M.a_=16E3);Object.assign(this,M);U=g.D(this.id.split(";"));this.itag=U.next().value;this.U=U.next().value;this.containerType=VN(O);this.zY=oi[this.itag]||""}; w9=function(U){return U.zY==="9"||U.zY==="("||U.zY==="9h"||U.zY==="(h"}; T4e=function(U){return U.zY==="H"||U.zY==="h"}; U6=function(U){return U.zY==="9h"||U.zY==="(h"}; j8e=function(U){return!!U.IW&&!!U.IW.fairplay&&(U.zY==="("||U.zY==="(h"||U.zY==="A"||U.zY==="MEAC3")||O6&&!!U.IW&&U.zY==="1e"}; s6=function(U){return U.zY==="1"||U.zY==="1h"||O6&&U.zY==="1e"}; gm=function(U){return U.zY==="mac3"||U.zY==="meac3"||U.zY==="m"||U.zY==="i"}; Me=function(U){return U.zY==="MAC3"||U.zY==="MEAC3"||U.zY==="M"||U.zY==="I"}; g.Sh=function(U){return U.containerType===1}; enU=function(U){return U.zY==="("||U.zY==="(h"||U.zY==="H"||O6&&U.zY==="1e"}; pO=function(U){return U.mimeType==="application/x-mpegURL"}; g.hO=function(U,O){return{itag:+U.itag,lmt:O?0:U.lastModified,xtags:U.U||""}}; Hb4=function(U){var O=navigator.mediaCapabilities;if(O==null||!O.decodingInfo||U.zY==="f")return Promise.resolve();var M={type:U.audio&&U.video?"file":"media-source"};U.video&&(M.video={contentType:U.mimeType,width:U.video.width||640,height:U.video.height||360,bitrate:U.a_*8||1E6,framerate:U.video.fps||30});U.audio&&(M.audio={contentType:U.mimeType,channels:""+(U.audio.numChannels||2),bitrate:U.a_*8||128E3,samplerate:U.audio.sampleRate||44100});return O.decodingInfo(M).then(function(S){U.V=S})}; JO=function(U){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(U)}; yr=function(U){return/(vp9|vp09|vp8|avc1|av01)/.test(U)}; fO=function(U){return U.includes("vtt")||U.includes("text/mp4")}; VN=function(U){return U.indexOf("/mp4")>=0?1:U.indexOf("/webm")>=0?2:U.indexOf("/x-flv")>=0?3:U.indexOf("/vtt")>=0?4:0}; F1=function(U,O,M,S,p,h){var J=new KP;O in g.ai||(O="small");O==="light"&&(O="tiny");S&&p?(p=Number(p),S=Number(S)):(p=g.ai[O],S=Math.round(p*16/9));h=new EO(S,p,0,null,void 0,O,h);U=unescape(U.replace(/"/g,'"'));return new kF(M,U,{audio:J,video:h})}; lE=function(U){var O="id="+U.id;U.video&&(O+=", res="+U.video.qualityLabel);var M,S;return O+", byterate=("+((M=U.DE)==null?void 0:M.toFixed(0))+", "+((S=U.a_)==null?void 0:S.toFixed(0))+")"}; Go=function(U,O){return{start:function(M){return U[M]}, end:function(M){return O[M]}, length:U.length}}; zn7=function(U,O,M){for(var S=[],p=[],h=0;h=O)return M}catch(S){}return-1}; jh=function(U,O){return To(U,O)>=0}; cB1=function(U,O){if(!U)return NaN;O=To(U,O);return O>=0?U.start(O):NaN}; eh=function(U,O){if(!U)return NaN;O=To(U,O);return O>=0?U.end(O):NaN}; H1=function(U){return U&&U.length?U.end(U.length-1):NaN}; zo=function(U,O){U=eh(U,O);return U>=0?U-O:0}; c1=function(U,O,M){for(var S=[],p=[],h=0;hM||(S.push(Math.max(O,U.start(h))-O),p.push(Math.min(M,U.end(h))-O));return Go(S,p)}; Dt=function(U,O,M,S){g.H_.call(this);var p=this;this.oW=U;this.start=O;this.end=M;this.isActive=S;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.nB={error:function(){!p.GY()&&p.isActive&&p.publish("error",p)}, updateend:function(){!p.GY()&&p.isActive&&p.publish("updateend",p)}}; this.oW.b7(this.nB);this.Mr=this.isActive}; W1=function(U,O,M,S,p,h){g.H_.call(this);var J=this;this.I_=U;this.mU=O;this.id=M;this.containerType=S;this.zY=p;this.i$=h;this.TT=this.EV=this.pW=null;this.Qp=!1;this.appendWindowStart=this.timestampOffset=0;this.H9=Go([],[]);this.wY=!1;this.ez=[];this.q8=dm?[]:void 0;this.V7=function(F){return J.publish(F.type,J)}; var f;if((f=this.I_)==null?0:f.addEventListener)this.I_.addEventListener("updateend",this.V7),this.I_.addEventListener("error",this.V7)}; Ne=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; v1=function(U,O){this.uM=U;this.U=O===void 0?!1:O;this.V=!1}; B1=function(U,O,M){M=M===void 0?!1:M;g.C.call(this);this.mediaElement=U;this.La=O;this.isView=M;this.C=0;this.X=!1;this.G=!0;this.Z=0;this.callback=null;this.Y=!1;this.La||(this.mU=this.mediaElement.tG());this.events=new g.Zj(this);g.X(this,this.events);this.B=new v1(this.La?window.URL.createObjectURL(this.La):this.mU.webkitMediaSourceURL,!0);U=this.La||this.mU;Qm(this.events,U,["sourceopen","webkitsourceopen"],this.Gey);Qm(this.events,U,["sourceclose","webkitsourceclose"],this.C$A);this.D={updateend:this.Fg}}; Dcq=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; dc7=function(U,O){xf(U)?g.NF(function(){O(U)}):U.callback=O}; Wnw=function(U,O,M){if(bE){var S;Uf(U.mediaElement,{l:"mswssb",sr:(S=U.mediaElement.wG)==null?void 0:S.vU()},!1);O.b7(U.D,U);M.b7(U.D,U)}U.U=O;U.V=M;g.X(U,O);g.X(U,M)}; N4e=function(U,O,M,S){S=O.mimeType+(S===void 0?"":S);var p=M.mimeType;O=O.zY;M=M.zY;var h;U.yP=(h=U.La)==null?void 0:h.addSourceBuffer(p);var J;U.ol=S.split(";")[0]==="fakesb"?void 0:(J=U.La)==null?void 0:J.addSourceBuffer(S);U.mU&&(U.mU.webkitSourceAddId("0",p),U.mU.webkitSourceAddId("1",S));h=new W1(U.yP,U.mU,"0",VN(p),M,!1);S=new W1(U.ol,U.mU,"1",VN(S),O,!0);Wnw(U,h,S)}; Of=function(U){return!!U.U||!!U.V}; xf=function(U){try{return sf(U)==="open"}catch(O){return!1}}; sf=function(U){if(U.La)return U.La.readyState;switch(U.mU.webkitSourceState){case U.mU.SOURCE_OPEN:return"open";case U.mU.SOURCE_ENDED:return"ended";default:return"closed"}}; gF=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; v45=function(U){xf(U)&&(U.La?U.La.endOfStream():U.mU.webkitSourceEndOfStream(U.mU.EOS_NO_ERROR))}; B4m=function(U,O,M,S){if(!U.U||!U.V)return null;var p=U.U.isView()?U.U.oW:U.U,h=U.V.isView()?U.V.oW:U.V,J=new B1(U.mediaElement,U.La,!0);J.B=U.B;Wnw(J,new Dt(p,O,M,S),new Dt(h,O,M,S));xf(U)||U.U.tK(U.U.je());return J}; xcy=function(U){var O;(O=U.U)==null||O.aj();var M;(M=U.V)==null||M.aj();U.G=!1}; M6=function(){var U=this;this.K2=this.jp=m1m;this.promise=new g.Yq(function(O,M){U.jp=O;U.K2=M})}; Sz=function(){g.C.call(this);this.iP=!1;this.uM=null;this.D=this.C=!1;this.X=new g.$q;this.wG=null;g.X(this,this.X)}; pD=function(U){U=U.Et();return U.length<1?NaN:U.end(U.length-1)}; bbg=function(U){!U.V&&Dcq()&&(U.B?U.B.then(function(){return bbg(U)}):U.QN()||(U.V=U.Ea()))}; RnU=function(U){U.V&&(U.V.dispose(),U.V=void 0)}; Uf=function(U,O,M){var S;((S=U.wG)==null?0:S.PV())&&U.wG.al("rms",O,M===void 0?!1:M)}; tpy=function(U,O,M){U.isPaused()||U.getCurrentTime()>O||M>10||(U.play(),g.Nv(function(){tpy(U,U.getCurrentTime(),M+1)},500))}; YnJ=function(U,O){U.uM&&U.uM.KW(O)||(U.uM&&U.uM.dispose(),U.uM=O)}; h0=function(U){return zo(U.wL(),U.getCurrentTime())}; mcW=function(U,O){if(U.K9()===0||U.hasError())return!1;var M=U.getCurrentTime()>0;return O>=0&&(U=U.Et(),U.length||!M)?jh(U,O):M}; J0=function(U){U.QN()&&(U.wG&&U.wG.mN("rs_s"),gI&&U.getCurrentTime()>0&&U.seekTo(0),U.pP(),U.load(),YnJ(U,null));delete U.B}; yW=function(U){switch(U.eH()){case 2:return"progressive.net.retryexhausted";case 3:return U=U.XT(),(U==null?0:U.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||ABy&&(U==null?0:U.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.fD=function(U,O,M){this.p6=O===void 0?null:O;this.seekSource=M===void 0?null:M;this.state=U||64}; Fw=function(U,O,M){M=M===void 0?!1:M;return IYU(U,O.getCurrentTime(),(0,g.nM)(),h0(O),M)}; lR=function(U,O,M,S){if(!(O===U.state&&M===U.p6&&S===U.seekSource||O!==void 0&&(O&128&&!M||O&2&&O&16))){var p;if(p=O)p=O||U.state,p=!!(p&16||p&32);U=new g.fD(O,M,p?S?S:U.seekSource:null)}return U}; Gh=function(U,O,M){return lR(U,U.state|O,null,M===void 0?null:M)}; $A=function(U,O){return lR(U,U.state&~O,null,null)}; Th=function(U,O,M,S){return lR(U,(U.state|O)&~M,null,S===void 0?null:S)}; g.a=function(U,O){return!!(U.state&O)}; g.jz=function(U,O){return O.state===U.state&&O.p6===U.p6}; ez=function(U){return U.isPlaying()&&!g.a(U,16)&&!g.a(U,32)}; HI=function(U){return g.a(U,128)?-1:g.a(U,2)?0:g.a(U,2048)?3:g.a(U,64)?-1:g.a(U,1)&&!g.a(U,32)?3:g.a(U,8)?1:g.a(U,4)?2:-1}; cI=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z,W,v){g.C.call(this);var x=this;this.cC=U;this.slot=O;this.layout=M;this.Il=S;this.X9=p;this.qL=h;this.dG=J;this.SY=f;this.OQ=F;this.nJ=l;this.position=T;this.C=e;this.vA=H;this.IY=z;this.Z2=W;this.context=v;this.yO=!0;this.G=!1;this.wi="not_rendering";this.V=!1;this.B=new NX;U=$G(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.WA=new P4(M.BV,this.Il,U,M.layoutId);var t;U=((t=zh(this))==null?void 0:t.progressCommands)||[];this.X=new mHq(F, U,M.layoutId,function(){return x.iA()}); this.U=new yBi({adCpn:this.layout.layoutId,Za:v.Za,wVA:this.IY,i$:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Dl=function(U){return{layoutId:U.jn(),dg:U.IY,Up:U.qL.get(),A0:U.l$()}}; dF=function(U,O){return O.layoutId!==U.layout.layoutId?(U.cC.aK(U.slot,O,new lo("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+U.layout.layoutId+("and LayoutType: "+U.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; WI=function(U){U.wi="rendering_start_requested";U.nJ(-1)}; zh=function(U){return $G(U.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; P9m=function(U){DY("Received layout exit signal when not in layout exit flow.",U.slot,U.layout)}; n47=function(U){var O;return((O=N6(U.qL.get(),2))==null?void 0:O.clientPlaybackNonce)||""}; vI=function(U,O){switch(O){case "normal":U.R_("complete");break;case "skipped":U.R_("skip");break;case "abandoned":q8(U.WA,"impression")&&U.R_("abandon")}}; BI=function(U,O){U.G||(O=new g.d4(O.state,new g.fD),U.G=!0);return O}; xA=function(U,O){co(O)?U.nJ(1):g.Nc(O,4)&&!g.Nc(O,2)&&U.oX();Wv(O,4)<0&&!(Wv(O,2)<0)&&U.rq()}; Q85=function(U){U.position===0&&(U.SY.get(),U=$G(U.layout.clientMetadata,"metadata_type_ad_placement_config").kind,U={adBreakType:bR(U)},Ll("ad_bl"),g.Va(U))}; Rz=function(U,O){Xc(U.WA,O,!U.V)}; XvJ=function(U){var O;return(((O=zh(U))==null?void 0:O.progressCommands)||[]).findIndex(function(M){return!!g.q(M==null?void 0:M.command,C95)})!==-1}; t0=function(U,O){var M=$G(U.clientMetadata,"metadata_type_eligible_for_ssap");return M===void 0?(DY("Expected SSAP eligibility in PlayerBytes factory",U),!1):O.l$(M)}; YA=function(U,O){if(!gp(O.get(),"html5_ssap_pass_transition_reason"))return 3;switch(U){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return DY("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return DY("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:U}),3;default:yf(U,"unknown layoutExitReason")}}; uY5=function(U){DY("getExitReason: unexpected reason",void 0,void 0,{reason:U})}; mB=function(U,O){if(gp(O.get(),"html5_ssap_pass_transition_reason"))switch(U){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return uY5(U),"abandoned";case 3:case 1:return uY5(U),"error";default:yf(U,"unexpected transition reason")}else switch(U){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return DY("getExitReason: unexpected reason",void 0,void 0,{reason:U}),"error";default:yf(U,"unexpected transition reason")}}; A0=function(U,O,M){k6(U,M)||Ut(U,O,M);k6(U,"video_to_ad")||Ut(U,O,"video_to_ad");k6(U,"ad_to_video")||Ut(U,O,"ad_to_video");k6(U,"ad_to_ad")||Ut(U,O,"ad_to_ad")}; Iz=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z,W,v,x){cI.call(this,U,O,M,S,p,h,J,f,l,G,T,e,H,z,W,v,x);var t=this;this.Zq=F;this.P5=T;this.N$=!0;this.m1=this.XE=0;this.lJ=bn(function(){Sni(Dl(t));t.cC.xZ(t.slot,t.layout)}); this.U$=bn(function(){pv1(Dl(t));t.wi!=="rendering_stop_requested"&&t.P5(t);t.layoutExitReason?t.cC.As(t.slot,t.layout,t.layoutExitReason):P9m(t)}); this.e9=new g.un(200);this.e9.listen("tick",function(){t.kZ()}); g.X(this,this.e9)}; nD=function(U){U.m1=Date.now();PI(U,U.XE);U.e9.start()}; qnU=function(U){U.XE=U.iA();U.rQ(U.XE/1E3,!0);PI(U,U.XE)}; PI=function(U,O){O={current:O/1E3,duration:U.iA()/1E3};U.Zq.get().U_("onAdPlaybackProgress",O)}; QW=function(U){Iz.call(this,U.cC,U.slot,U.IK,U.Il,U.X9,U.qL,U.dG,U.SY,U.Zq,U.OQ,U.nJ,U.P5,U.fJ,U.Ns,U.vA,U.IY,U.Z2,U.context)}; CD=function(U){Iz.call(this,U.cC,U.slot,U.IK,U.Il,U.X9,U.qL,U.dG,U.SY,U.Zq,U.OQ,U.nJ,U.P5,U.fJ,U.Ns,U.vA,U.IY,U.Z2,U.context)}; Xw=function(){CD.apply(this,arguments)}; ibm=function(U){return t0(U.slot,U.vA.get())?new Xw(U):new QW(U)}; iR=function(U){cI.call(this,U.callback,U.slot,U.IK,U.Il,U.X9,U.qL,U.dG,U.SY,U.OQ,U.nJ,U.P5,U.fJ,U.Ns,U.vA,U.IY,U.Z2,U.context);var O=this;this.adCpn="";this.Uc=this.eP=0;this.lJ=bn(function(){Sni(Dl(O));O.cC.xZ(O.slot,O.layout)}); this.U$=bn(function(){pv1(Dl(O));O.wi!=="rendering_stop_requested"&&O.P5(O);O.layoutExitReason?O.cC.As(O.slot,O.layout,O.layoutExitReason):P9m(O)}); this.RO=U.RO;this.N4=U.N4;this.Lr=U.Lr;this.Zq=U.Zq;this.HN=U.HN;this.P5=U.P5;if(!this.l$()){gp(this.vA.get(),"html5_disable_media_load_timeout")||(this.Iz=new g.UM(function(){O.WE("load_timeout",new lo("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); U=uR(this.vA.get());var M=q6(this.vA.get());U&&M&&(this.Je=new g.UM(function(){var S=$G(O.layout.clientMetadata,"metadata_type_preload_player_vars");S&&O.N4.get().S.preloadVideoByPlayerVars(S,2,300)}))}}; Kn7=function(U,O){var M=$G(O.clientMetadata,"metadata_type_ad_video_id"),S=$G(O.clientMetadata,"metadata_type_legacy_info_card_vast_extension");M&&S&&U.HN.get().S.J().Ca.add(M,{nZ:S});(O=$G(O.clientMetadata,"metadata_type_sodar_extension_data"))&&rtm(U.RO.get(),O);Zbe(U.dG.get(),!1)}; rBW=function(U){Zbe(U.dG.get(),!0);var O;((O=U.shrunkenPlayerBytesConfig)==null?0:O.shouldRequestShrunkenPlayerBytes)&&U.dG.get().u8(!1)}; Zl=function(){iR.apply(this,arguments)}; KD=function(){Zl.apply(this,arguments)}; aY5=function(U){return ibm(Object.assign({},U,{cC:U.callback,nJ:function(){}}))}; E4y=function(U){return new iR(Object.assign({},U,{nJ:function(O){U.Zq.get().U_("onAdIntroStateChange",O)}}))}; Ln1=function(U){function O(M){U.Zq.get().NR(M)} return t0(U.slot,U.vA.get())?new KD(Object.assign({},U,{nJ:O})):new iR(Object.assign({},U,{nJ:O}))}; rF=function(U){for(var O=U.IK,M=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],S=g.D(nZ()),p=S.next();!p.done;p=S.next())M.push(p.value);if(S2(O,{Q7:M,zk:["LAYOUT_TYPE_MEDIA_BREAK"]}))return aY5(U);O=U.IK;M=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];S=g.D(nZ());for(p=S.next();!p.done;p=S.next())M.push(p.value);if(S2(O,{Q7:M,zk:["LAYOUT_TYPE_MEDIA"]}))return y6(U.IK.clientMetadata,"metadata_type_ad_intro")?E4y(U):Ln1(U)}; o44=function(U){var O=$G(U.clientMetadata,"metadata_type_ad_placement_config").kind,M=$G(U.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:U.layoutId,adType:Vpw(M),adBreakType:bR(O)}}; bR=function(U){switch(U){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"}}; Vpw=function(U){switch(U){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; kQw=function(U){try{return new az(U.tT,U.slot,U.layout,U.Gk,U.Al,U.qL,U.XI,U.N4,U.oT,U.dG,U.Jzl,U)}catch(O){}}; az=function(U,O,M,S,p,h,J,f,F,l,G,T){g.C.call(this);this.tT=U;this.slot=O;this.layout=M;this.Gk=S;this.Al=p;this.qL=h;this.XI=J;this.N4=f;this.oT=F;this.dG=l;this.params=T;this.yO=!0;U=rF(G);if(!U)throw Error("Invalid params for sublayout");this.WB=U}; wve=function(){this.U=1;this.V=new NX}; Ef=function(U,O,M,S,p,h,J,f,F,l,G,T,e){g.C.call(this);this.callback=U;this.qL=O;this.XI=M;this.N4=S;this.dG=p;this.SY=h;this.h0=J;this.slot=f;this.layout=F;this.Gk=l;this.jy=G;this.oT=T;this.vA=e;this.yO=!0;this.bd=!1;this.w3=[];this.EP=-1;this.vS=!1;this.jV=new wve}; UZw=function(U){var O;return(O=U.layout.dR)!=null?O:$G(U.layout.clientMetadata,"metadata_type_sub_layouts")}; LD=function(U){return{Up:U.qL.get(),dg:!1,A0:U.l$()}}; OlJ=function(U,O,M){if(U.jU()===U.w3.length-1){var S,p;DY("Unexpected skip requested during the last sublayout",(S=U.N_())==null?void 0:S.JG(),(p=U.N_())==null?void 0:p.cA(),{requestingSlot:O,requestingLayout:M})}}; sYm=function(U,O,M){return M.layoutId!==VW(U,O,M)?(DY("onSkipRequested for a PlayerBytes layout that is not currently active",U.JG(),U.cA()),!1):!0}; g6m=function(U){U.jU()===U.w3.length-1&&DY("Unexpected skip with target requested during the last sublayout")}; M8w=function(U,O,M){return M.renderingContent===void 0&&M.layoutId!==VW(U,O,M)?(DY("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",U.JG(),U.cA(),{requestingSlot:O,requestingLayout:M}),!1):!0}; SKw=function(U,O,M,S){var p=$G(O.cA().clientMetadata,"metadata_type_ad_pod_skip_target");if(p&&p>0&&p0)){DY("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",U.slot,U.layout,{indexToPlay:O,layoutId:U.layout.layoutId});break a}U.EP=O;O=U.N_();if(U.jU()>0&&!U.l$()){var M=U.SY.get();M.V=!1;var S={};M.U&&M.videoId&&(S.cttAuthInfo={token:M.U,videoId:M.videoId});oY("ad_to_ad",S)}U.S4(O)}}; UZ=function(U){Ef.call(this,U.tT,U.qL,U.XI,U.N4,U.dG,U.SY,U.h0,U.slot,U.layout,U.Gk,U.jy,U.oT,U.vA)}; JFg=function(U){(U=U.N_())&&U.F6()}; OZ=function(U){Ef.call(this,U.tT,U.qL,U.XI,U.N4,U.dG,U.SY,U.h0,U.slot,U.layout,U.Gk,U.jy,U.oT,U.vA);this.b$=void 0}; yFg=function(U,O){U.KF()&&!Bo(U.jV.V)||U.callback.As(U.slot,U.layout,O)}; sZ=function(U){return gp(U.vA.get(),"html5_ssap_pass_transition_reason")}; fzw=function(U,O,M){O.pN().currentState<2&&(M=mB(M,U.vA),O.rH(O.cA(),M));M=O.pN().U;U.a5(U.slot,O.cA(),M)}; FN5=function(U,O){if(U.jV.V.currentState<2){var M=mB(O,U.vA);M==="error"?U.callback.aK(U.slot,U.layout,new lo("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:O},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):wF(U.jy,U.layout,M)}}; gE=function(U,O,M){O.pN().currentState>=2||(O.rH(O.cA(),M),Bo(O.pN())&&(Q6(U.h0,U.slot,O.cA(),M),U.b$=void 0))}; lzy=function(U,O){U.jV.U===2&&O!==U.JU()&&DY("onClipEntered: unknown cpn",U.slot,U.layout,{cpn:O})}; GA4=function(U,O){var M=U.N_();if(M){var S=M.cA().layoutId,p=U.jU()+1;U.KF()?gE(U,M,O):M.rH(M.cA(),O);p>=0&&pp&&J.gx(G,p-S);return G}; dZq=function(U,O,M){var S=$G(O.clientMetadata,"metadata_type_sodar_extension_data");if(S)try{rtm(M,S)}catch(p){DY("Unexpected error when loading Sodar",U,O,{error:p})}}; WNm=function(U,O,M,S,p,h,J){fn(U,O,new g.d4(M,new g.fD),S,p,J,!1,h)}; fn=function(U,O,M,S,p,h,J,f){J=J===void 0?!0:J;co(M)&&Dj(p,0,null)&&(!q8(U,"impression")&&f&&f(),U.R_("impression"));q8(U,"impression")&&(g.Nc(M,4)&&!g.Nc(M,2)&&U.aL("pause"),Wv(M,4)<0&&!(Wv(M,2)<0)&&U.aL("resume"),g.Nc(M,16)&&p>=.5&&U.aL("seek"),J&&g.Nc(M,2)&&Fn(U,M.state,O,S,p,h))}; Fn=function(U,O,M,S,p,h,J,f){q8(U,"impression")&&(h?(h=p-S,h=h>=-1&&h<=2):h=Math.abs(S-p)<=1,lW(U,O,h?S:p,M,S,J,f&&h),h&&U.R_("complete"))}; lW=function(U,O,M,S,p,h,J){ul(U,M*1E3,J);p<=0||M<=0||(O==null?0:g.a(O,16))||(O==null?0:g.a(O,32))||(Dj(M,p*.25,S)&&(h&&!q8(U,"first_quartile")&&h("first"),U.R_("first_quartile")),Dj(M,p*.5,S)&&(h&&!q8(U,"midpoint")&&h("second"),U.R_("midpoint")),Dj(M,p*.75,S)&&(h&&!q8(U,"third_quartile")&&h("third"),U.R_("third_quartile")))}; NT7=function(U,O){q8(U,"impression")&&U.aL(O?"fullscreen":"end_fullscreen")}; v64=function(U){q8(U,"impression")&&U.aL("clickthrough")}; BT7=function(U){U.aL("active_view_measurable")}; xZi=function(U){q8(U,"impression")&&!q8(U,"seek")&&U.aL("active_view_fully_viewable_audible_half_duration")}; blg=function(U){q8(U,"impression")&&!q8(U,"seek")&&U.aL("active_view_viewable")}; RTe=function(U){q8(U,"impression")&&!q8(U,"seek")&&U.aL("audio_audible")}; t8e=function(U){q8(U,"impression")&&!q8(U,"seek")&&U.aL("audio_measurable")}; YKi=function(U,O,M,S,p,h,J,f,F,l,G,T){this.callback=U;this.slot=O;this.layout=M;this.XI=S;this.WA=p;this.dG=h;this.AT=J;this.X9=f;this.RO=F;this.vA=l;this.Il=G;this.qL=T;this.N$=!0;this.xI=this.wi=null;this.adCpn=void 0;this.U=!1}; mZy=function(U,O,M){var S;yg(U.Il.get(),"ads_qua","cpn."+$G(U.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((S=N6(U.qL.get(),2))==null?void 0:S.clientPlaybackNonce)+";qt."+O+";clr."+M)}; AFg=function(U,O){var M,S;yg(U.Il.get(),"ads_imp","cpn."+$G(U.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((M=N6(U.qL.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+O+";skp."+!!g.q((S=$G(U.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:S.skipOrPreviewRenderer,GR))}; $3=function(U){return{enterMs:$G(U.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:$G(U.clientMetadata,"metadata_type_layout_exit_ms")}}; TR=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H){SH.call(this,U,O,M,S,p,J,f,F,l,T);this.AT=h;this.RO=G;this.X9=e;this.vA=H;this.xI=this.wi=null}; Izy=function(U,O){var M;yg(U.Il.get(),"ads_imp","acpn."+((M=N6(U.qL.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+O)}; PrU=function(U,O,M){var S;yg(U.Il.get(),"ads_qua","cpn."+$G(U.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((S=N6(U.qL.get(),2))==null?void 0:S.clientPlaybackNonce)+";qt."+O+";clr."+M)}; jH=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z,W,v,x,t,m,P){this.oT=U;this.Gk=O;this.jy=M;this.qL=S;this.XI=p;this.dG=h;this.Il=J;this.AT=f;this.YI=F;this.X9=l;this.RO=G;this.N4=T;this.Lr=e;this.SY=H;this.Zq=z;this.OQ=W;this.HN=v;this.vA=x;this.U=t;this.context=m;this.Z2=P}; eH=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z,W,v,x){this.oT=U;this.Gk=O;this.jy=M;this.Il=S;this.X9=p;this.RO=h;this.N4=J;this.qL=f;this.dG=F;this.Lr=l;this.SY=G;this.Zq=T;this.OQ=e;this.HN=H;this.vA=z;this.XI=W;this.context=v;this.Z2=x}; n6e=function(U,O,M,S){eP.call(this,"survey-interstitial",U,O,M,S)}; H8=function(U,O,M,S,p){xY.call(this,M,U,O,S);this.Il=p;U=$G(O.clientMetadata,"metadata_type_ad_placement_config");this.WA=new P4(O.BV,p,U,O.layoutId)}; zR=function(U){return Math.round(U.width)+"x"+Math.round(U.height)}; Dc=function(U,O,M){M=M===void 0?c8:M;M.widthU.width*U.height*.2)return{td:3,ov:501,errorMessage:"ad("+zR(M)+") to container("+zR(U)+") ratio exceeds limit."};if(M.height>U.height/3-O)return{td:3,ov:501,errorMessage:"ad("+zR(M)+") covers container("+zR(U)+") center."}}; QYJ=function(U,O){var M=$G(U.clientMetadata,"metadata_type_ad_placement_config");return new P4(U.BV,O,M,U.layoutId)}; dE=function(U){return $G(U.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; W8=function(U,O,M,S){eP.call(this,"invideo-overlay",U,O,M,S);this.interactionLoggingClientData=S}; Ng=function(U,O,M,S,p,h,J,f,F,l,G,T){xY.call(this,h,U,O,p);this.Il=M;this.X=J;this.dG=f;this.OQ=F;this.vA=l;this.C=G;this.G=T;this.WA=QYJ(O,M)}; Cry=function(){var U=["metadata_type_invideo_overlay_ad_renderer"];nZ().forEach(function(O){U.push(O)}); return{Q7:U,zk:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; v8=function(U,O,M,S,p,h,J,f,F,l,G,T,e){xY.call(this,h,U,O,p);this.Il=M;this.X=J;this.Y=f;this.dG=F;this.OQ=l;this.vA=G;this.C=T;this.G=e;this.WA=QYJ(O,M)}; XPU=function(){for(var U=["metadata_type_invideo_overlay_ad_renderer"],O=g.D(nZ()),M=O.next();!M.done;M=O.next())U.push(M.value);return{Q7:U,zk:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; B8=function(U){this.dG=U;this.U=!1}; uLe=function(U,O,M){eP.call(this,"survey",U,{},O,M)}; x3=function(U,O,M,S,p,h,J){xY.call(this,M,U,O,S);this.X=p;this.dG=h;this.vA=J}; qKw=function(U,O,M,S,p,h,J,f,F,l){this.Vr=U;this.dG=O;this.Il=M;this.X=S;this.X9=p;this.V=h;this.B=J;this.OQ=f;this.vA=F;this.U=l}; ilU=function(U,O,M,S,p,h,J,f,F,l){this.Vr=U;this.dG=O;this.Il=M;this.X=S;this.X9=p;this.V=h;this.B=J;this.OQ=f;this.vA=F;this.U=l}; bW=function(U,O,M,S,p,h,J,f,F,l){FW.call(this,U,O,M,S,p,h,J,F);this.PO=f;this.qL=l}; ZlU=function(){var U=VPm();U.Q7.push("metadata_type_ad_info_ad_metadata");return U}; KN7=function(U,O,M,S,p,h,J){this.Vr=U;this.dG=O;this.Il=M;this.V=S;this.PO=p;this.U=h;this.qL=J}; rF7=function(U,O,M,S,p,h,J,f){this.Vr=U;this.dG=O;this.Il=M;this.V=S;this.PO=p;this.U=h;this.vA=J;this.qL=f}; Rq=function(U,O){this.slotId=O;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=U(this.triggerType)}; tT=function(U,O){this.adPodIndex=U;this.U=O.length;this.adBreakLengthSeconds=O.reduce(function(S,p){return S+p},0); var M=0;for(U+=1;U0}; GJ=function(U){return!!(U.WdZ&&U.slot&&U.layout)}; $i=function(U){var O,M=(O=U.config)==null?void 0:O.adPlacementConfig;U=U.renderer;return!(!M||M.kind==null||!U)}; pfw=function(U){if(!pr(U.adLayoutMetadata))return!1;U=U.renderingContent;return g.q(U,e2)||g.q(U,Ho)||g.q(U,TF)||g.q(U,j2)?!0:!1}; TJ=function(U){return U.playerVars!==void 0&&U.pings!==void 0&&U.externalVideoId!==void 0}; dR=function(U){if(!pr(U.adLayoutMetadata))return!1;U=U.renderingContent;var O=g.q(U,j5);return O?e5(O):(O=g.q(U,Hl))?TJ(O):(O=g.q(U,zJ))?O.playerVars!==void 0:(O=g.q(U,e2))?O.durationMilliseconds!==void 0:g.q(U,cl)||g.q(U,Dg)?!0:!1}; e5=function(U){U=(U.sequentialLayouts||[]).map(function(O){return g.q(O,Wl)}); return U.length>0&&U.every(dR)}; vl=function(U){return pr(U.adLayoutMetadata)?(U=g.q(U.renderingContent,NC))&&U.pings?!0:!1:!1}; l7W=function(U){if(!pr(U.adLayoutMetadata))return!1;if(g.q(U.renderingContent,hKW)||g.q(U.renderingContent,JJq))return!0;var O=g.q(U.renderingContent,Bl);return g.q(U.renderingContent,xi)||g.q(O==null?void 0:O.sidePanel,yJ4)||g.q(O==null?void 0:O.sidePanel,f75)||g.q(O==null?void 0:O.sidePanel,Fv5)?!0:!1}; eKJ=function(U){var O;(O=!U)||(O=U.adSlotMetadata,O=!((O==null?void 0:O.slotId)!==void 0&&(O==null?void 0:O.slotType)!==void 0));if(O||!(GEe(U)||U.slotEntryTrigger&&U.slotFulfillmentTriggers&&U.slotExpirationTriggers))return!1;var M;U=(M=U.fulfillmentContent)==null?void 0:M.fulfilledLayout;return(M=g.q(U,Wl))?dR(M):(M=g.q(U,Pl))?l7W(M):(M=g.q(U,$ze))?pfw(M):(M=g.q(U,TMw))?M1y(M):(M=g.q(U,jGg))?pr(M.adLayoutMetadata)?g.q(M.renderingContent,hZ)?!0:!1:!1:(U=g.q(U,nr))?vl(U):!1}; GEe=function(U){var O;U=g.q((O=U.fulfillmentContent)==null?void 0:O.fulfilledLayout,Pl);var M;return U&&((M=U.adLayoutMetadata)==null?void 0:M.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&U.layoutExitNormalTriggers===void 0}; HNg=function(U){var O;return(U==null?void 0:(O=U.adSlotMetadata)==null?void 0:O.slotType)==="SLOT_TYPE_IN_PLAYER"}; cJg=function(U,O){var M;if((M=U.questions)==null||!M.length||!U.playbackCommands||(O===void 0||!O)&&U.questions.length!==1)return!1;U=g.D(U.questions);for(O=U.next();!O.done;O=U.next()){O=O.value;var S=M=void 0,p=((M=g.q(O,QZ))==null?void 0:M.surveyAdQuestionCommon)||((S=g.q(O,Cr))==null?void 0:S.surveyAdQuestionCommon);if(!zKy(p))return!1}return!0}; Dzq=function(U){U=((U==null?void 0:U.playerOverlay)||{}).instreamSurveyAdRenderer;var O;if(U)if(U.playbackCommands&&U.questions&&U.questions.length===1){var M,S=((O=g.q(U.questions[0],QZ))==null?void 0:O.surveyAdQuestionCommon)||((M=g.q(U.questions[0],Cr))==null?void 0:M.surveyAdQuestionCommon);O=zKy(S)}else O=!1;else O=!1;return O}; zKy=function(U){if(!U)return!1;U=g.q(U.instreamAdPlayerOverlay,Xf);var O=g.q(U==null?void 0:U.skipOrPreviewRenderer,GR),M=g.q(U==null?void 0:U.adInfoRenderer,uY);return(g.q(U==null?void 0:U.skipOrPreviewRenderer,qC)||O)&&M?!0:!1}; dzU=function(U){return U.linearAds!=null&&pr(U.adLayoutMetadata)}; WvW=function(U){return U.linearAd!=null&&U.adVideoStart!=null}; NMm=function(U){if(isNaN(Number(U.timeoutSeconds))||!U.text||!U.ctaButton||!g.q(U.ctaButton,g.iY)||!U.brandImage)return!1;var O;return U.backgroundImage&&g.q(U.backgroundImage,Zg)&&((O=g.q(U.backgroundImage,Zg))==null?0:O.landscape)?!0:!1}; Kr=function(U,O,M,S,p,h,J){g.C.call(this);this.vA=U;this.U=O;this.B=S;this.qL=p;this.X=h;this.V=J}; xzW=function(U,O,M){var S,p=((S=M.adSlots)!=null?S:[]).map(function(f){return g.q(f,rR)}); if(M.Mc)if($G(O.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))W4(U.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},O.slotId); else{if(U.vA.get().S.J().T("h5_check_forecasting_renderer_for_throttled_midroll")){var h=M.GU.filter(function(f){var F;return((F=f.renderer)==null?void 0:F.clientForecastingAdRenderer)!=null}); h.length!==0?vZJ(U.V,h,p,O.slotId,M.ssdaiAdsConfig):W4(U.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},O.slotId)}else W4(U.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},O.slotId); BMg(U.X,O)}else{var J;S={Ze:Math.round(((h=$G(O.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:h.Ze)||0),Fi:(J=$G(O.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:J.Fi};vZJ(U.V,M.GU,p,O.slotId,M.ssdaiAdsConfig,S)}}; RKw=function(U,O,M,S,p,h,J){var f=N6(U.qL.get(),1);W4(U.U.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return bNm(U.B.get(),M,S,p,f.clientPlaybackNonce,f.Cm,f.daiEnabled,f,h,J)},O)}; YtW=function(U,O,M,S,p,h,J){O=t1m(O,h,Number(S.prefetchMilliseconds)||0,J);U=O instanceof L?O:ah(U,S,p,O,M);return U instanceof L?U:[U]}; mzy=function(U,O,M,S,p){var h=N8(U.V.get(),"SLOT_TYPE_AD_BREAK_REQUEST");S=[new rn({getAdBreakUrl:S.getAdBreakUrl,Ze:0,Fi:0}),new pi(!0)];U=O.pauseDurationMs?O.lactThresholdMs?{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Ok(U.U,h),slotFulfillmentTriggers:[new E6U(U.U)],slotExpirationTriggers:[new EZ(U.U,p),new k3(U.U,h)],JZ:"core",clientMetadata:new Gk(S),adSlotLoggingData:M}:new L("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new L("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return U instanceof L?U:[U]}; AJU=function(U){var O,M;return((O=U.renderer)==null?void 0:(M=O.adBreakServiceRenderer)==null?void 0:M.getAdBreakUrl)!==void 0}; Ek=function(U,O,M){if(U.beforeContentVideoIdStartedTrigger)U=U.beforeContentVideoIdStartedTrigger?new Y3(F5,O,U.id):new L("Not able to create BeforeContentVideoIdStartedTrigger");else{if(U.layoutIdExitedTrigger){var S;O=(S=U.layoutIdExitedTrigger)!=null&&S.triggeringLayoutId?new Qg(F5,U.layoutIdExitedTrigger.triggeringLayoutId,U.id):new L("Not able to create LayoutIdExitedTrigger")}else{if(U.layoutExitedForReasonTrigger){var p,h;((p=U.layoutExitedForReasonTrigger)==null?0:p.triggeringLayoutId)&&((h= U.layoutExitedForReasonTrigger)==null?0:h.layoutExitReason)?(O=LNw(U.layoutExitedForReasonTrigger.layoutExitReason),U=O instanceof L?O:new nn(F5,U.layoutExitedForReasonTrigger.triggeringLayoutId,[O],U.id)):U=new L("Not able to create LayoutIdExitedForReasonTrigger")}else{if(U.onLayoutSelfExitRequestedTrigger){var J;O=(J=U.onLayoutSelfExitRequestedTrigger)!=null&&J.triggeringLayoutId?new aq(F5,U.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,U.id):new L("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(U.onNewPlaybackAfterContentVideoIdTrigger)U= U.onNewPlaybackAfterContentVideoIdTrigger?new EZ(F5,O,U.id):new L("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(U.skipRequestedTrigger){var f;O=(f=U.skipRequestedTrigger)!=null&&f.triggeringLayoutId?new Vg(F5,U.skipRequestedTrigger.triggeringLayoutId,U.id):new L("Not able to create SkipRequestedTrigger")}else if(U.slotIdEnteredTrigger){var F;O=(F=U.slotIdEnteredTrigger)!=null&&F.triggeringSlotId?new oq(F5,U.slotIdEnteredTrigger.triggeringSlotId,U.id):new L("Not able to create SlotIdEnteredTrigger")}else if(U.slotIdExitedTrigger){var l; O=(l=U.slotIdExitedTrigger)!=null&&l.triggeringSlotId?new k3(F5,U.slotIdExitedTrigger.triggeringSlotId,U.id):new L("Not able to create SkipRequestedTrigger")}else if(U.surveySubmittedTrigger){var G;O=(G=U.surveySubmittedTrigger)!=null&&G.triggeringLayoutId?new gR(F5,U.surveySubmittedTrigger.triggeringLayoutId,U.id):new L("Not able to create SurveySubmittedTrigger")}else{if(U.mediaResumedTrigger)U=U.mediaResumedTrigger&&U.id?new V84(U.id):new L("Not able to create MediaResumedTrigger");else{if(U.closeRequestedTrigger){var T; O=(T=U.closeRequestedTrigger)!=null&&T.triggeringLayoutId?new mz(F5,U.closeRequestedTrigger.triggeringLayoutId,U.id):new L("Not able to create CloseRequestedTrigger")}else if(U.slotIdScheduledTrigger){var e;O=(e=U.slotIdScheduledTrigger)!=null&&e.triggeringSlotId?new Ok(F5,U.slotIdScheduledTrigger.triggeringSlotId,U.id):new L("Not able to create SlotIdScheduledTrigger")}else{if(U.mediaTimeRangeTrigger){var H;S=Number((H=U.mediaTimeRangeTrigger)==null?void 0:H.offsetStartMilliseconds);var z;J=Number((z= U.mediaTimeRangeTrigger)==null?void 0:z.offsetEndMilliseconds);isFinite(S)&&isFinite(J)?(z=J,z===-1&&(z=M),M=S>z?new L("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:S,offsetEndMs:z},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",z===M&&S-500<=z):new tD(S,z),U=M instanceof L?M:new iW(F5,O,M,!1,U.id)):U=new L("Not able to create MediaTimeRangeTrigger")}else if(U.contentVideoIdEndedTrigger)U=U.contentVideoIdEndedTrigger?new AT(F5,O,!1,U.id):new L("Not able to create ContentVideoIdEndedTrigger"); else{if(U.layoutIdEnteredTrigger){var W;O=(W=U.layoutIdEnteredTrigger)!=null&&W.triggeringLayoutId?new P8(F5,U.layoutIdEnteredTrigger.triggeringLayoutId,U.id):new L("Not able to create LayoutIdEnteredTrigger")}else if(U.timeRelativeToLayoutEnterTrigger){var v;O=(v=U.timeRelativeToLayoutEnterTrigger)!=null&&v.triggeringLayoutId?new MC(F5,Number(U.timeRelativeToLayoutEnterTrigger.durationMs),U.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,U.id):new L("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(U.onDifferentLayoutIdEnteredTrigger){var x; O=(x=U.onDifferentLayoutIdEnteredTrigger)!=null&&x.triggeringLayoutId&&U.onDifferentLayoutIdEnteredTrigger.slotType&&U.onDifferentLayoutIdEnteredTrigger.layoutType?new Kn(F5,U.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,U.onDifferentLayoutIdEnteredTrigger.slotType,U.onDifferentLayoutIdEnteredTrigger.layoutType,U.id):new L("Not able to create CloseRequestedTrigger")}else{if(U.liveStreamBreakStartedTrigger)U=U.liveStreamBreakStartedTrigger&&U.id?new qg(F5,U.id):new L("Not able to create LiveStreamBreakStartedTrigger"); else if(U.liveStreamBreakEndedTrigger)U=U.liveStreamBreakEndedTrigger&&U.id?new Cn(F5,U.id):new L("Not able to create LiveStreamBreakEndedTrigger");else{if(U.liveStreamBreakScheduledDurationMatchedTrigger){var t;O=(t=U.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&t.breakDurationMs?new Xn(Number(U.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,U.id):new L("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(U.liveStreamBreakScheduledDurationNotMatchedTrigger){var m; O=(m=U.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&m.breakDurationMs?new uW(Number(U.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,U.id):new L("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(U.newSlotScheduledWithBreakDurationTrigger){var P;O=(P=U.newSlotScheduledWithBreakDurationTrigger)!=null&&P.breakDurationMs?new Zc(Number(U.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,U.id):new L("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else O= U.prefetchCacheExpiredTrigger?new Ln(F5,U.id):new L("Not able to convert an AdsControlflowTrigger.");U=O}O=U}U=O}O=U}U=O}O=U}U=O}O=U}U=O}O=U}U=O}return U}; Lr=function(U,O){O.U>=2&&(U.slot_pos=O.adPodIndex);U.autoplay="1"}; PG5=function(U,O,M,S,p,h,J,f){return O===null?new L("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:O,ActionCompanionAdRenderer:S}):[I7e(U,O,J,h,function(F){var l=F.slotId;F=f(F);var G=S.adLayoutLoggingData,T=new Gk([new Ea(S),new p_(p)]);l=M8(M.V.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var e={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",JZ:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",BV:new Map, layoutExitNormalTriggers:[new EZ(M.U,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:T,kp:F(e),adLayoutLoggingData:G}})]}; nZe=function(U,O,M,S,p,h,J,f){return O===null?new L("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:O,TopBannerImageTextIconButtonedLayoutViewModel:S}):[I7e(U,O,J,h,function(F){var l=F.slotId;F=f(F);var G=S.adLayoutLoggingData,T=new Gk([new LQ(S),new p_(p)]);l=M8(M.V.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var e={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",JZ:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", BV:new Map,layoutExitNormalTriggers:[new EZ(M.U,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:T,kp:F(e),adLayoutLoggingData:G}})]}; u35=function(U,O,M,S,p,h){if(!h)for(O=g.D(O),h=O.next();!h.done;h=O.next())h=h.value,VZ(U,h.renderer,h.config.adPlacementConfig.kind);U=Array.from(U.values()).filter(function(G){return QGg(G)}); O=[];h=g.D(U);for(var J=h.next(),f={};!J.done;f={iT:void 0},J=h.next()){f.iT=J.value;J=g.D(f.iT.Aw);for(var F=J.next(),l={};!F.done;l={HO:void 0},F=J.next())l.HO=F.value,F=function(G,T){return function(e){return G.HO.BY(e,T.iT.instreamVideoAdRenderer.elementId,G.HO.Q3)}}(l,f),l.HO.isContentVideoCompanion?O.push(CGy(M,S,p,f.iT.instreamVideoAdRenderer.elementId,l.HO.associatedCompositePlayerBytesLayoutId,l.HO.adSlotLoggingData,F)):U.length>1?O.push(Xf4(M,S,p,f.iT.instreamVideoAdRenderer.elementId,l.HO.adSlotLoggingData, function(G,T){return function(e){return G.HO.BY(e,T.iT.instreamVideoAdRenderer.elementId,G.HO.Q3,G.HO.associatedCompositePlayerBytesLayoutId)}}(l,f))):O.push(Xf4(M,S,p,f.iT.instreamVideoAdRenderer.elementId,l.HO.adSlotLoggingData,F))}return O}; VZ=function(U,O,M){if(O=qty(O)){O=g.D(O);for(var S=O.next();!S.done;S=O.next())if((S=S.value)&&S.externalVideoId){var p=oh(U,S.externalVideoId);p.instreamVideoAdRenderer||(p.instreamVideoAdRenderer=S,p.IP=M)}else DY("InstreamVideoAdRenderer without externalVideoId")}}; qty=function(U){var O=[],M=U.sandwichedLinearAdRenderer&&U.sandwichedLinearAdRenderer.linearAd&&g.q(U.sandwichedLinearAdRenderer.linearAd,Hl);if(M)return O.push(M),O;if(U.instreamVideoAdRenderer)return O.push(U.instreamVideoAdRenderer),O;if(U.linearAdSequenceRenderer&&U.linearAdSequenceRenderer.linearAds){U=g.D(U.linearAdSequenceRenderer.linearAds);for(M=U.next();!M.done;M=U.next())M=M.value,g.q(M,Hl)&&O.push(g.q(M,Hl));return O}return null}; QGg=function(U){if(U.instreamVideoAdRenderer===void 0)return DY("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var O=g.D(U.Aw),M=O.next();!M.done;M=O.next()){M=M.value;if(M.BY===void 0)return!1;if(M.Q3===void 0)return DY("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(U.IP===void 0||M.YG===void 0||U.IP!==M.YG&&M.YG!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(U.instreamVideoAdRenderer.elementId===void 0)return DY("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:U.IP,"matching APSR kind":M.YG}),!1}return!0}; oh=function(U,O){U.has(O)||U.set(O,{instreamVideoAdRenderer:void 0,IP:void 0,adVideoId:O,Aw:[]});return U.get(O)}; ki=function(U,O,M,S,p,h,J,f,F){p?oh(U,p).Aw.push({e4A:O,YG:M,isContentVideoCompanion:S,Q3:J,associatedCompositePlayerBytesLayoutId:h,adSlotLoggingData:f,BY:F}):DY("Companion AdPlacementSupportedRenderer without adVideoId")}; wR=function(U){var O=0;U=g.D(U.questions);for(var M=U.next();!M.done;M=U.next())if(M=M.value,M=g.q(M,QZ)||g.q(M,Cr)){var S=void 0;O+=((S=M.surveyAdQuestionCommon)==null?void 0:S.durationMilliseconds)||0}return O}; Ue=function(U){var O,M,S,p,h=((M=g.q((O=U.questions)==null?void 0:O[0],QZ))==null?void 0:M.surveyAdQuestionCommon)||((p=g.q((S=U.questions)==null?void 0:S[0],Cr))==null?void 0:p.surveyAdQuestionCommon),J;O=[].concat(g.N(((J=U.playbackCommands)==null?void 0:J.instreamAdCompleteCommands)||[]),g.N((h==null?void 0:h.timeoutCommands)||[]));var f,F,l,G,T,e,H,z,W,v,x,t,m,P,u,w,E,Sm,JU,Uw;return{impressionCommands:(f=U.playbackCommands)==null?void 0:f.impressionCommands,errorCommands:(F=U.playbackCommands)== null?void 0:F.errorCommands,muteCommands:(l=U.playbackCommands)==null?void 0:l.muteCommands,unmuteCommands:(G=U.playbackCommands)==null?void 0:G.unmuteCommands,pauseCommands:(T=U.playbackCommands)==null?void 0:T.pauseCommands,rewindCommands:(e=U.playbackCommands)==null?void 0:e.rewindCommands,resumeCommands:(H=U.playbackCommands)==null?void 0:H.resumeCommands,skipCommands:(z=U.playbackCommands)==null?void 0:z.skipCommands,progressCommands:(W=U.playbackCommands)==null?void 0:W.progressCommands,aSn:(v= U.playbackCommands)==null?void 0:v.clickthroughCommands,fullscreenCommands:(x=U.playbackCommands)==null?void 0:x.fullscreenCommands,activeViewViewableCommands:(t=U.playbackCommands)==null?void 0:t.activeViewViewableCommands,activeViewMeasurableCommands:(m=U.playbackCommands)==null?void 0:m.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(P=U.playbackCommands)==null?void 0:P.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(u=U.playbackCommands)== null?void 0:(w=u.activeViewTracking)==null?void 0:w.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(E=U.playbackCommands)==null?void 0:(Sm=E.activeViewTracking)==null?void 0:Sm.activeViewAudioMeasurableCommands,endFullscreenCommands:(JU=U.playbackCommands)==null?void 0:JU.endFullscreenCommands,abandonCommands:(Uw=U.playbackCommands)==null?void 0:Uw.abandonCommands,completeCommands:O}}; ZNm=function(U,O,M,S,p,h,J){return function(f,F){return iN5(U,F.slotId,f,h,function(l,G){var T=F.layoutId;l=J(l);return Oe(O,T,G,p,l,"LAYOUT_TYPE_SURVEY",[new dn(M),S],M.adLayoutLoggingData)})}}; a77=function(U,O,M,S,p,h,J){if(!Kv5(U))return new L("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:U});var f=U.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[rJy(h,O,M,S,function(F){var l=F.slotId;F=J(F);l=M8(p.V.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",l);var G={layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",JZ:"core"},T=new Qg(p.U,S);return{layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",BV:new Map,layoutExitNormalTriggers:[T], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:new Gk([new WR(f)]),kp:F(G)}})]}; Kv5=function(U){U=g.q(U==null?void 0:U.additionalPlayerOverlay,EZi);if(!U)return!1;var O=U.slidingMessages;return U.title&&O&&O.length!==0?!0:!1}; V1m=function(U,O,M,S,p){var h;if((h=U.playerOverlay)==null||!h.instreamSurveyAdRenderer)return function(){return[]}; if(!Dzq(U))return function(){return new L("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:U})}; var J=U.playerOverlay.instreamSurveyAdRenderer,f=wR(J);return f<=0?function(){return new L("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:J})}:function(F,l){var G=LvJ(F,M,S,function(T){var e=T.slotId; T=l(T);var H=Ue(J);e=M8(p.V.get(),"LAYOUT_TYPE_SURVEY",e);var z={layoutId:e,layoutType:"LAYOUT_TYPE_SURVEY",JZ:"core"},W=new Qg(p.U,S),v=new Vg(p.U,e),x=new gR(p.U,e),t=new Uz5(p.U);return{layoutId:e,layoutType:"LAYOUT_TYPE_SURVEY",BV:new Map,layoutExitNormalTriggers:[W,t],layoutExitSkipTriggers:[v],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[x],PB:[],JZ:"core",clientMetadata:new Gk([new DW(J),new p_(O),new L_(f/1E3),new wn(H)]),kp:T(z),adLayoutLoggingData:J.adLayoutLoggingData}}); F=a77(U,M,G.slotId,S,p,F,l);return F instanceof L?F:[G].concat(g.N(F))}}; g5e=function(U,O,M,S,p,h,J){J=J===void 0?!1:J;var f=[];try{var F=[];if(M.renderer.linearAdSequenceRenderer)var l=function(W){W=oZe(W.slotId,M,O,p(W),S,h,J);F=W.YgP;return W.Gn}; else if(M.renderer.instreamVideoAdRenderer)l=function(W){var v=W.slotId;W=p(W);var x=J,t=M.config.adPlacementConfig,m=kEU(t),P=m.rp,u=m.BP;m=M.renderer.instreamVideoAdRenderer;var w;if(m==null?0:(w=m.playerOverlay)==null?0:w.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var E=se(m,x);w=Math.min(P+E.videoLengthSeconds*1E3,u);x=new tT(0,[E.videoLengthSeconds]);u=E.videoLengthSeconds;var Sm=E.playerVars,JU=E.instreamAdPlayerOverlayRenderer,Uw=E.playerOverlayLayoutRenderer, Z=E.adVideoId,k=wfe(M),d=E.BV;E=E.mE;var K=m==null?void 0:m.adLayoutLoggingData;m=m==null?void 0:m.sodarExtensionData;v=M8(O.V.get(),"LAYOUT_TYPE_MEDIA",v);var i5={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",JZ:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",BV:d,layoutExitNormalTriggers:[new Cn(O.U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:new Gk([new lX(S),new A3(u),new IP(Sm),new Q0(P),new C_(w),JU&&new Ga(JU), Uw&&new $r(Uw),new p_(t),new Fl(Z),new h3(x),new ZW(k),m&&new n_(m),new RP({current:null}),new uX({}),new sq(E)].filter(Ufg)),kp:W(i5),adLayoutLoggingData:K}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var G=OQw(U,S,M.adSlotLoggingData,l);f.push(G);for(var T=g.D(F),e=T.next();!e.done;e=T.next()){var H=e.value,z=H(U,p);if(z instanceof L)return z;f.push.apply(f,g.N(z))}}catch(W){return new L(W,{errorMessage:W.message,AdPlacementRenderer:M,numberOfSurveyRenderers:s_e(M)})}return f}; s_e=function(U){U=(U.renderer.linearAdSequenceRenderer||{}).linearAds;return U!=null&&U.length?U.filter(function(O){var M,S;return((M=g.q(O,Hl))==null?void 0:(S=M.playerOverlay)==null?void 0:S.instreamSurveyAdRenderer)!=null}).length:0}; oZe=function(U,O,M,S,p,h,J){var f=O.config.adPlacementConfig,F=kEU(f),l=F.rp,G=F.BP;F=(O.renderer.linearAdSequenceRenderer||{}).linearAds;if(F==null||!F.length)throw new TypeError("Expected linear ads");var T=[],e={c6:l,fJ:0,RGc:T};F=F.map(function(z){return MLy(U,z,e,M,S,f,p,G,J)}).map(function(z,W){W=new tT(W,T); return z(W)}); var H=F.map(function(z){return z.Ie}); return{Gn:SaJ(M,U,l,H,f,wfe(O),S,G,h),YgP:F.map(function(z){return z.E$n})}}; MLy=function(U,O,M,S,p,h,J,f,F){var l=se(g.q(O,Hl),F),G=M.c6,T=M.fJ,e=Math.min(G+l.videoLengthSeconds*1E3,f);M.c6=e;M.fJ++;M.RGc.push(l.videoLengthSeconds);var H,z,W=(H=g.q(O,Hl))==null?void 0:(z=H.playerOverlay)==null?void 0:z.instreamSurveyAdRenderer;if(l.adVideoId==="nPpU29QrbiU"&&W==null)throw new TypeError("Survey slate media has no survey overlay");return function(v){Lr(l.playerVars,v);var x,t,m=l.videoLengthSeconds,P=l.playerVars,u=l.BV,w=l.mE,E=l.instreamAdPlayerOverlayRenderer,Sm=l.playerOverlayLayoutRenderer, JU=l.adVideoId,Uw=(x=g.q(O,Hl))==null?void 0:x.adLayoutLoggingData;x=(t=g.q(O,Hl))==null?void 0:t.sodarExtensionData;t=M8(S.V.get(),"LAYOUT_TYPE_MEDIA",U);var Z={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",JZ:"adapter"};v={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",BV:u,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"adapter",clientMetadata:new Gk([new lX(J),new A3(m),new IP(P),new Q0(G),new C_(e),new Xl(T),new RP({current:null}), E&&new Ga(E),Sm&&new $r(Sm),new p_(h),new Fl(JU),new h3(v),x&&new n_(x),W&&new Oq(W),new uX({}),new sq(w)].filter(Ufg)),kp:p(Z),adLayoutLoggingData:Uw};m=V1m(g.q(O,Hl),h,J,v.layoutId,S);return{Ie:v,E$n:m}}}; se=function(U,O){if(!U)throw new TypeError("Expected instream video ad renderer");if(!U.playerVars)throw new TypeError("Expected player vars in url encoded string");var M=F2(U.playerVars),S=Number(M.length_seconds);if(isNaN(S))throw new TypeError("Expected valid length seconds in player vars");var p=Number(U.trimmedMaxNonSkippableAdDurationMs);S=isNaN(p)?S:Math.min(S,p/1E3);p=U.playerOverlay||{};p=p.instreamAdPlayerOverlayRenderer===void 0?null:p.instreamAdPlayerOverlayRenderer;var h=U.playerOverlay|| {};h=h.playerOverlayLayoutRenderer===void 0?null:h.playerOverlayLayoutRenderer;var J=M.video_id;J||(J=(J=U.externalVideoId)?J:void 0);if(!J)throw new TypeError("Expected valid video id in IVAR");if(O&&S===0){var f;O=(f=pCy[J])!=null?f:S}else O=S;return{playerVars:M,videoLengthSeconds:O,instreamAdPlayerOverlayRenderer:p,playerOverlayLayoutRenderer:h,adVideoId:J,BV:U.pings?IF(U.pings):new Map,mE:AR(U.pings)}}; wfe=function(U){U=Number(U.driftRecoveryMs);return isNaN(U)||U<=0?null:U}; kEU=function(U){var O=U.adTimeOffset||{};U=O.offsetEndMilliseconds;O=Number(O.offsetStartMilliseconds);if(isNaN(O))throw new TypeError("Expected valid start offset");U=Number(U);if(isNaN(U))throw new TypeError("Expected valid end offset");return{rp:O,BP:U}}; h$4=function(U){var O,M=(O=$G(U.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:O.current;if(!M)return null;O=$G(U.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var S=U.layoutId,p=$G(U.clientMetadata,"metadata_type_content_cpn"),h=$G(U.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J=$G(U.clientMetadata,"metadata_type_player_underlay_renderer"),f=$G(U.clientMetadata,"metadata_type_ad_placement_config"),F=$G(U.clientMetadata,"metadata_type_video_length_seconds"); var l=y6(U.clientMetadata,"metadata_type_layout_enter_ms")&&y6(U.clientMetadata,"metadata_type_layout_exit_ms")?($G(U.clientMetadata,"metadata_type_layout_exit_ms")-$G(U.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Cg:S,contentCpn:p,sY:M,lF:O,instreamAdPlayerOverlayRenderer:h,instreamAdPlayerUnderlayRenderer:J,adPlacementConfig:f,videoLengthSeconds:F,Gx:l,inPlayerLayoutId:$G(U.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:$G(U.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; f_5=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z){S=N8(S,"SLOT_TYPE_PLAYER_BYTES");U=Jig(p,U,J,M,S,F,l);if(U instanceof L)return U;var W;l=(W=$G(U.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:W.layoutId;if(!l)return new L("Invalid adNotify layout");O=yi7(l,p,h,M,f,O,F,G,T,e,H,z,J);return O instanceof L?O:[U].concat(g.N(O))}; yi7=function(U,O,M,S,p,h,J,f,F,l,G,T,e){M=FO7(O,M,S,h,J,f,F,l,G,T,e);if(M instanceof L)return M;U=l_g(O,U,J,p,M);return U instanceof L?U:[].concat(g.N(U.Ge),[U.Kd])}; $fU=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H){O=FO7(U,O,M,p,h,f,F,l,G,T,e,H);if(O instanceof L)return O;U=GWy(U,M,h,J,S,f.KE,O);return U instanceof L?U:U.Ge.concat(U.Kd)}; FO7=function(U,O,M,S,p,h,J,f,F,l,G,T){var e=gw(S,M,l);return e instanceof lo?new L(e):l.S.J().experiments.F0("html5_refactor_in_player_slot_generation")?function(H){var z=new tT(0,[e.rb]);H=Tb1(O,e.layoutId,e.ex,M,Mq(e.playerVars,e.Cn,h,F,z),e.rb,p,z,J(H),f.get(e.ex.externalVideoId),T);z=[];if(e.ex.playerOverlay.instreamAdPlayerOverlayRenderer){var W=h$4(H);if(!W)return DY("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,H),{layout:H,Ge:[]}; z=[j_m(U,W.contentCpn,W.Cg,function(x){return ST(O,x.slotId,"core",W,cF(G,x))},W.inPlayerSlotId)].concat(g.N(z)); if(W.instreamAdPlayerUnderlayRenderer&&pH(l)){var v=W.instreamAdPlayerUnderlayRenderer;z=[e$5(U,W.contentCpn,W.Cg,function(x){return HQw(O,x.slotId,v,W.adPlacementConfig,W.Cg,cF(G,x))})].concat(g.N(z))}}return{layout:H, Ge:z}}:function(H){var z=new tT(0,[e.rb]); return{layout:Tb1(O,e.layoutId,e.ex,M,Mq(e.playerVars,e.Cn,h,F,z),e.rb,p,z,J(H),f.get(e.ex.externalVideoId),T),Ge:[]}}}; gw=function(U,O,M){if(!U.playerVars)return new lo("No playerVars available in InstreamVideoAdRenderer.");var S,p;if(U.elementId==null||U.playerVars==null||U.playerOverlay==null||((S=U.playerOverlay)==null?void 0:S.instreamAdPlayerOverlayRenderer)==null&&((p=U.playerOverlay)==null?void 0:p.playerOverlayLayoutRenderer)==null||U.pings==null||U.externalVideoId==null)return new lo("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:U});S=F2(U.playerVars);p=Number(S.length_seconds); isNaN(p)&&(p=0,DY("Expected valid length seconds in player vars but got NaN"));if(M.l$(O.kind==="AD_PLACEMENT_KIND_START")){if(U.layoutId===void 0)return new lo("Expected server generated layout ID in instreamVideoAdRenderer");O=U.layoutId}else O=U.elementId;return{layoutId:O,ex:U,playerVars:S,Cn:U.playerVars,rb:p}}; Mq=function(U,O,M,S,p){U.iv_load_policy=S;O=F2(O);if(O.cta_conversion_urls)try{U.cta_conversion_urls=JSON.parse(O.cta_conversion_urls)}catch(h){DY(h)}M.Vf&&(U.ctrl=M.Vf);M.Zt&&(U.ytr=M.Zt);M.ej&&(U.ytrcc=M.ej);M.isMdxPlayback&&(U.mdx="1");U.vvt&&(U.vss_credentials_token=U.vvt,M.SS&&(U.vss_credentials_token_type=M.SS),M.mdxEnvironment&&(U.mdx_environment=M.mdxEnvironment));Lr(U,p);return U}; z$4=function(U){var O=new Map;U=g.D(U);for(var M=U.next();!M.done;M=U.next())(M=M.value.renderer.remoteSlotsRenderer)&&M.hostElementId&&O.set(M.hostElementId,M);return O}; hP=function(U){return U.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; cim=function(U){return U!=null}; xf4=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H){for(var z=[],W=g.D(U),v=W.next();!v.done;v=W.next())if(v=v.value,!GEe(v)&&!HNg(v)){var x=hP(v)&&!!v.slotEntryTrigger.beforeContentVideoIdStartedTrigger,t=F.l$(x),m=Df4(v,l,S,M.Cm,t);if(m instanceof L)return m;var P=void 0,u={slotId:v.adSlotMetadata.slotId,slotType:v.adSlotMetadata.slotType,slotPhysicalPosition:(P=v.adSlotMetadata.slotPhysicalPosition)!=null?P:1,JZ:"core",slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers, slotExpirationTriggers:m.slotExpirationTriggers},w=g.q(v.fulfillmentContent.fulfilledLayout,Wl);if(w){if(!dR(w))return new L("Invalid PlayerBytesAdLayoutRenderer");P=T&&!(hP(v)&&v.slotEntryTrigger.beforeContentVideoIdStartedTrigger);m=m.slotFulfillmentTriggers.some(function(E){return E instanceof Xn}); t=P?dfe(u,v.adSlotMetadata.triggerEvent,w,M,S,h,l,U,t,e,m,H):WOJ(u,v.adSlotMetadata.triggerEvent,w,O,M,S,p,h,J,f,F,l,U,G,t,v.adSlotMetadata.triggeringSourceLayoutId);if(t instanceof L)return t;m=[];hP(v)&&m.push(new hu({SM:hP(v)&&!!v.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));P&&m.push(new uX({}));M.KE&&m.push(new Uq({}));m.push(new Sn(x));v=Object.assign({},u,{clientMetadata:new Gk(m),fulfilledLayout:t.layout,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});z.push.apply(z,g.N(t.Ge)); z.push(v)}else if(x=g.q(v.fulfillmentContent.fulfilledLayout,Pl)){if(!l7W(x))return new L("Invalid PlayerUnderlayAdLayoutRenderer");x=Nby(x,S,M.Cm,h,u,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof L)return x;v=Object.assign({},u,{clientMetadata:new Gk([]),fulfilledLayout:x,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});z.push(v)}else if(x=g.q(v.fulfillmentContent.fulfilledLayout,TMw)){if(!M1y(x))return new L("Invalid AboveFeedAdLayoutRenderer");x= v51(x,S,M.Cm,h,u,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof L)return x;v=Object.assign({},u,{clientMetadata:new Gk([]),fulfilledLayout:x,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});z.push(v)}else if(x=g.q(v.fulfillmentContent.fulfilledLayout,jGg)){if(!pr(x.adLayoutMetadata)||!g.q(x.renderingContent,hZ))return new L("Invalid BelowPlayerAdLayoutRenderer");x=v51(x,S,M.Cm,h,u,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId); if(x instanceof L)return x;v=Object.assign({},u,{clientMetadata:new Gk([]),fulfilledLayout:x,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});z.push(v)}else if(x=g.q(v.fulfillmentContent.fulfilledLayout,nr)){if(!vl(x))return new L("Invalid PlayerBytesSequenceItemAdLayoutRenderer");x=Bbe(x,S,M.Cm,h,u,v.adSlotMetadata.triggerEvent);if(x instanceof L)return x;v=Object.assign({},u,{clientMetadata:new Gk([]),fulfilledLayout:x,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});z.push(v)}else return new L("Unable to retrieve a client slot ["+ u.slotType+"] from a given AdSlotRenderer")}return z}; Bbe=function(U,O,M,S,p,h){var J={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,JZ:"core"};O=JP(U,O,M);return O instanceof L?O:(M=g.q(U.renderingContent,NC))&&M.pings?Object.assign({},J,{renderingContent:U.renderingContent,BV:IF(M.pings)},O,{kp:cF(S,p)(J),clientMetadata:new Gk([new p_(yd(h))]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}):new L("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; v51=function(U,O,M,S,p,h,J){var f={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,JZ:"core"};O=JP(U,O,M);if(O instanceof L)return O;M=[];M.push(new p_(yd(h)));h==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&J!==void 0&&M.push(new NJ(J));return Object.assign({},f,{renderingContent:U.renderingContent,BV:new Map([["impression",bQ1(U)]])},O,{kp:cF(S,p)(f),clientMetadata:new Gk(M),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData})}; Nby=function(U,O,M,S,p,h,J){if(U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(J=g.q(U.renderingContent,Bl))if(J=g.q(J.sidePanel,f75)){var f={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,JZ:"core"};O=JP(U,O,M);U=O instanceof L?O:Object.assign({},f,{renderingContent:U.renderingContent,BV:new Map([["impression",J.impressionPings||[]],["resume",J.resumePings||[]]])},O,{kp:cF(S,p)(f),clientMetadata:new Gk([new p_(yd(h))]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData})}else U= new L("DismissablePanelTextPortraitImageRenderer is missing");else U=new L("SqueezebackPlayerSidePanelRenderer is missing");else U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.q(U.renderingContent,hKW)?(J={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,JZ:"core"},O=JP(U,O,M),U=O instanceof L?O:Object.assign({},J,{renderingContent:U.renderingContent,BV:new Map},O,{kp:cF(S,p)(J),clientMetadata:new Gk([new p_(yd(h))]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData})): U=new L("CounterfactualRenderer is missing"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?U=new L("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?U=new L("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.q(U.renderingContent,xi)?(h={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType, JZ:"core"},O=JP(U,O,M),U=O instanceof L?O:J?Object.assign({},h,{renderingContent:U.renderingContent,BV:new Map},O,{kp:cF(S,p)(h),clientMetadata:new Gk([new NJ(J)]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}):new L("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):U=new L("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.q(U.renderingContent,JJq)? (h={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,JZ:"core"},O=JP(U,O,M),U=O instanceof L?O:Object.assign({},h,{renderingContent:U.renderingContent,BV:new Map([])},O,{kp:cF(S,p)(h),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Gk([])})):U=new L("AdsEngagementPanelSectionListViewModel is missing"):U=new L("LayoutType ["+U.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return U}; dfe=function(U,O,M,S,p,h,J,f,F,l,G,T){if((T==null?void 0:T.Ze)===void 0||(T==null?void 0:T.Fi)===void 0)return new L("Cached ad break range from cue point is missing");var e=JP(M,p,S.Cm);if(e instanceof L)return e;e={layoutExitMuteTriggers:[],layoutExitNormalTriggers:e.layoutExitNormalTriggers,layoutExitSkipTriggers:[],PB:[],layoutExitUserInputSubmittedTriggers:[]};if(g.q(M.renderingContent,Hl))return U=R$w(U,O,M,e,p,h,f,F,S.Cm,J,T.Ze,T.Fi),U instanceof L?U:U.j9===void 0?new L("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:U.layout,Ge:[U.j9]};var H=g.q(M.renderingContent,j5);if(H){if(!pr(M.adLayoutMetadata))return new L("Invalid ad layout metadata");if(!e5(H))return new L("Invalid sequential layout");H=H.sequentialLayouts.map(function(z){return z.playerBytesAdLayoutRenderer}); U=tL5(U,O,M,e,H,p,S,h,J,F,f,l,T.Ze,T.Fi,G);return U instanceof L?U:{layout:U.pc,Ge:U.Ge}}return new L("Not able to convert a sequential layout")}; tL5=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z){var W=Yam(p,e,H);if(W instanceof L)return W;var v=[],x=[];W=g.D(W);for(var t=W.next();!t.done;t=W.next()){var m=t.value;t=U;var P=p[m.fJ],u=m,w=O;m=h;var E=J,Sm=f,JU=F,Uw=l,Z=G,k=fH(P);if(k instanceof L)t=k;else{var d={layoutId:P.adLayoutMetadata.layoutId,layoutType:P.adLayoutMetadata.layoutType,JZ:"adapter"};u=mf4(w,P,u,m);u instanceof L?t=u:(t=Object.assign({},d,F$,{BV:k,renderingContent:P.renderingContent,clientMetadata:new Gk(u),kp:cF(Sm,t)(d),adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData}), t=(P=l1(Z,t,m,E.Cm,Sm,JU,Uw,void 0,!0))?P instanceof L?P:{layout:t,j9:P}:new L("Expecting associatedInPlayerSlot"))}if(t instanceof L)return t;v.push(t.layout);x.push(t.j9)}p={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,JZ:"core"};O=[new ZW(Number(M.driftRecoveryMs)),new Q0(e),new C_(H),new p_(yd(O)),new MM(T),new uX({})];z&&O.push(new Ju({}));return{pc:Object.assign({},p,S,{dR:v,BV:new Map,clientMetadata:new Gk(O),kp:cF(f,U)(p)}),Ge:x}}; R$w=function(U,O,M,S,p,h,J,f,F,l,G,T){if(!dR(M))return new L("Invalid PlayerBytesAdLayoutRenderer");var e=fH(M);if(e instanceof L)return e;var H={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,JZ:"core"},z=g.q(M.renderingContent,Hl);if(!z)return new L("Invalid rendering content for DAI media layout");z=se(z,!1);G={KZ:z,fJ:0,c6:G,Hy:Math.min(G+z.videoLengthSeconds*1E3,T),oE:new tT(0,[z.videoLengthSeconds])};var W;T=(W=Number(M.driftRecoveryMs))!=null?W:void 0;O=mf4(O, M,G,p,T);if(O instanceof L)return O;U=Object.assign({},H,S,{BV:e,renderingContent:M.renderingContent,clientMetadata:new Gk(O),kp:cF(h,U)(H),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});return(p=l1(J,U,p,F,h,l,f,void 0,!0))?p instanceof L?p:{layout:U,j9:p}:new L("Expecting associatedInPlayerSlot")}; WOJ=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z,W){var v=JP(M,h,p.Cm);if(v instanceof L)return v;if(g.q(M.renderingContent,Hl)){F=AiW([M],p,F);if(F instanceof L)return F;if(F.length!==1)return new L("Only expected one media layout.");U=I_w(U,O,M,v,F[0],void 0,"core",S,h,J,f,l,e,H,z,p.Cm,T,void 0,W);return U instanceof L?U:{layout:U.layout,Ge:U.j9?[U.j9]:[]}}var x=g.q(M.renderingContent,j5);if(x){if(!pr(M.adLayoutMetadata))return new L("Invalid ad layout metadata");if(!e5(x))return new L("Invalid sequential layout"); x=x.sequentialLayouts.map(function(t){return t.playerBytesAdLayoutRenderer}); U=Pmm(U,O,M.adLayoutMetadata,v,x,S,h,p,F,J,f,l,G,T,z,e,H,W);return U instanceof L?U:{layout:U.pc,Ge:U.Ge}}return new L("Not able to convert a sequential layout")}; Pmm=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H,z,W,v,x){var t=new f_({current:null}),m=AiW(p,f,F);if(m instanceof L)return m;F=[];for(var P=[],u=void 0,w=0;w0&&(w.push(x),w.push(new y0(u.adPodSkipTarget)));(h=l.get(u.externalVideoId))&&w.push(new El(h));h=w}else h=new L("Invalid vod media renderer")}if(h instanceof L)return h;U=Object.assign({},J,S,{BV:m,renderingContent:M.renderingContent,clientMetadata:new Gk(h),kp:cF(G,U)(J),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});M=g.q(M.renderingContent,Hl);if(!M||!TJ(M))return new L("Invalid meida renderer");T=oh(T,M.externalVideoId);T.instreamVideoAdRenderer=M;T.IP="AD_PLACEMENT_KIND_START";return H?(F=l1(e,U,F,W,G,v,z,x,!1),F instanceof L?F:Cm1(U.layoutId,e)&&F?{layout:Object.assign({},U,{clientMetadata:new Gk(h.concat(new er(F)))})}:{layout:U,j9:F}): {layout:U}}; n5i=function(U,O,M,S,p){if(!dR(O))return new L("Invalid PlayerBytesAdLayoutRenderer");var h=g.q(O.renderingContent,e2);if(!h||h.durationMilliseconds===void 0)return new L("Invalid endcap renderer");var J={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,JZ:"adapter"};S=[new V0(h.durationMilliseconds),new wn({impressionCommands:void 0,abandonCommands:h.abandonCommands?[{commandExecutorCommand:h.abandonCommands}]:void 0,completeCommands:h.completionCommands}),new p_(S), new BR("LAYOUT_TYPE_ENDCAP")];if(p){S.push(new J3(p.oE.adPodIndex-1));S.push(new Xl(p.oE.adPodIndex));var f;S.push(new y0((f=p.adPodSkipTarget)!=null?f:-1))}return Object.assign({},J,F$,{renderingContent:O.renderingContent,clientMetadata:new Gk(S),BV:h.skipPings?new Map([["skip",h.skipPings]]):new Map,kp:cF(M,U)(J),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})}; l1=function(U,O,M,S,p,h,J,f,F){U=U.filter(function(G){return G.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&G.adSlotMetadata.triggeringSourceLayoutId===O.layoutId}); if(U.length!==0){if(U.length!==1)return new L("Invalid InPlayer slot association for the given PlayerBytes layout");U=U[0];J=Df4(U,h,M,S,J);if(J instanceof L)return J;var l;h={slotId:U.adSlotMetadata.slotId,slotType:U.adSlotMetadata.slotType,slotPhysicalPosition:(l=U.adSlotMetadata.slotPhysicalPosition)!=null?l:1,JZ:"core",slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers};l=g.q(U.fulfillmentContent.fulfilledLayout, $ze);if(!l||!pfw(l))return new L("Invalid InPlayerAdLayoutRenderer");J={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,JZ:"core"};M=JP(l,M,S);if(M instanceof L)return M;S=[];F&&S.push(new uX({}));if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")S.push.apply(S,g.N(XC4(U.adSlotMetadata.triggerEvent,O)));else if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")S.push(new p_(yd(U.adSlotMetadata.triggerEvent))),f&&S.push(f);else return new L("Not able to parse an SDF InPlayer layout"); p=Object.assign({},J,M,{renderingContent:l.renderingContent,BV:new Map,kp:cF(p,h)(J),clientMetadata:new Gk(S),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},h,{fulfilledLayout:p,clientMetadata:new Gk([])})}}; XC4=function(U,O){var M=[];M.push(new p_(yd(U)));M.push(new NJ(O.layoutId));(U=$G(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&M.push(new RP(U));(U=$G(O.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&M.push(new f_(U));(U=$G(O.clientMetadata,"metadata_type_remote_slots_data"))&&M.push(new El(U));(U=$G(O.clientMetadata,"metadata_type_ad_next_params"))&&M.push(new k5(U));(U=$G(O.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&M.push(new wb(U));(U= $G(O.clientMetadata,"metadata_type_ad_pod_info"))&&M.push(new h3(U));(O=$G(O.clientMetadata,"metadata_type_ad_video_id"))&&M.push(new Fl(O));return M}; Q_q=function(U,O,M,S,p,h){function J(l){return G8(O,l)} var f=S.m8.inPlayerSlotId,F={layoutId:S.m8.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",JZ:"core"};M={slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:new P8(J,U),slotFulfillmentTriggers:[new oq(J,f)],slotExpirationTriggers:[new k3(J,f),new EZ(J,M)]};U=Object.assign({},F,{layoutExitNormalTriggers:[new Qg(J,U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],BV:new Map,clientMetadata:new Gk([new za(S.m8), new p_(S.adPlacementConfig),p]),kp:cF(h,M)(F),adLayoutLoggingData:S.m8.adLayoutLoggingData});return Object.assign({},M,{clientMetadata:new Gk([new K_(U)])})}; Cm1=function(U,O){O=g.D(O);for(var M=O.next();!M.done;M=O.next())if(M=M.value,M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var S=g.q(M.fulfillmentContent.fulfilledLayout,Pl);if(S&&(S=g.q(S.renderingContent,Bl))&&S.associatedPlayerBytesLayoutId===U)return M}}; Df4=function(U,O,M,S,p){var h=uD5(Ek(U.slotEntryTrigger,M,S),p,U,O);if(h instanceof L)return h;for(var J=[],f=g.D(U.slotFulfillmentTriggers),F=f.next();!F.done;F=f.next()){F=Ek(F.value,M,S);if(F instanceof L)return F;J.push(F)}J=qam(J,p,U,O);O=[];U=g.D(U.slotExpirationTriggers);for(p=U.next();!p.done;p=U.next()){p=Ek(p.value,M,S);if(p instanceof L)return p;O.push(p)}return{slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:O}}; uD5=function(U,O,M,S){return O&&M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U instanceof Y3?new Rq(function(p){return G8(S,p)},M.adSlotMetadata.slotId):U}; qam=function(U,O,M,S){return O&&M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?U.map(function(p){return p instanceof oq?new Ok(function(h){return G8(S,h)},M.adSlotMetadata.slotId):p}):U}; JP=function(U,O,M){for(var S=[],p=g.D(U.layoutExitNormalTriggers||[]),h=p.next();!h.done;h=p.next()){h=Ek(h.value,O,M);if(h instanceof L)return h;S.push(h)}p=[];h=g.D(U.layoutExitSkipTriggers||[]);for(var J=h.next();!J.done;J=h.next()){J=Ek(J.value,O,M);if(J instanceof L)return J;p.push(J)}h=[];J=g.D(U.layoutExitMuteTriggers||[]);for(var f=J.next();!f.done;f=J.next()){f=Ek(f.value,O,M);if(f instanceof L)return f;h.push(f)}J=[];U=g.D(U.layoutExitUserInputSubmittedTriggers||[]);for(f=U.next();!f.done;f= U.next()){f=Ek(f.value,O,M);if(f instanceof L)return f;J.push(f)}return{layoutExitNormalTriggers:S,layoutExitSkipTriggers:p,layoutExitMuteTriggers:h,layoutExitUserInputSubmittedTriggers:J,PB:[]}}; fH=function(U){var O=g.q(U.renderingContent,Hl);if(O==null?0:O.pings)return IF(O.pings);U=g.q(U.renderingContent,e2);return(U==null?0:U.skipPings)?new Map([["skip",U.skipPings]]):new Map}; mf4=function(U,O,M,S,p){O=g.q(O.renderingContent,Hl);if(!O)return new L("Invalid rendering content for DAI media layout");U=[new lX(S),new A3(M.KZ.videoLengthSeconds),new IP(M.KZ.playerVars),new Q0(M.c6),new C_(M.Hy),new Xl(M.fJ),new p_(yd(U)),new Fl(M.KZ.adVideoId),new h3(M.oE),O.sodarExtensionData&&new n_(O.sodarExtensionData),new RP({current:null}),new uX({}),new sq(AR(O.pings))].filter(cim);p!==void 0&&U.push(new ZW(p));return U}; Yam=function(U,O,M){U=U.map(function(F){return se(g.q(F.renderingContent,Hl),!1)}); var S=U.map(function(F){return F.videoLengthSeconds}),p=S.map(function(F,l){return new tT(l,S)}),h=O,J=M,f=[]; U.forEach(function(F,l){J=Math.min(h+F.videoLengthSeconds*1E3,M);Lr(F.playerVars,p[l]);f.push({KZ:F,c6:h,Hy:J,fJ:l,oE:p[l]});h=J}); return f}; AiW=function(U,O,M){for(var S=[],p=g.D(U),h=p.next();!h.done;h=p.next())if(h=g.q(h.value.renderingContent,Hl)){if(!TJ(h))return new L("Invalid vod media renderer");S.push(iQe(h))}p=S.map(function(T){return T.rb}); h=[];for(var J=0,f=0;f0?Uw:-1;else if(d=g.q(k,e2)){k=UJ1(U,O,M,d,h,W,f,E,Uw);if(k instanceof L){H= k;break a}k=k(e);v.push(k.IK);x=[].concat(g.N(k.jG),g.N(x));t=[].concat(g.N(k.G4),g.N(t));k.j9&&(JU=[k.j9].concat(g.N(JU)))}else if(d=g.q(k,cl)){if(H===void 0){H=new L("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:d});break a}k=grw(U,O,M,h,d,w,f,H,W,gp(G,"supports_multi_step_on_desktop"));if(k instanceof L){H=k;break a}k=k(e);v.push(k.IK);k.j9&&JU.push(k.j9);x=[].concat(g.N(k.jG),g.N(x));t=[].concat(g.N(k.G4),g.N(t));m=[].concat(g.N(k.X6),g.N(m)); P=[].concat(g.N(k.B_),g.N(P));u=[w].concat(g.N(u))}else if(k=g.q(k,Dg)){k=Mr1(U,O,M,h,k,w,f,W);if(k instanceof L){H=k;break a}k=k(e);v.push(k.IK);k.j9&&JU.push(k.j9);t=[].concat(g.N(k.G4),g.N(t))}else{H=new L("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}H={dR:v,layoutExitSkipTriggers:x,layoutExitUserInputSubmittedTriggers:m,PB:P,layoutExitMuteTriggers:t,Vi:u,Ge:JU}}}else a:if(W=lW7(S,M,G),W instanceof L)H=W;else{v=0;x=[];t=[];m=[];P=[];u=[];w=[];E=new t3({current:null});Sm=new f_({current:null}); JU=!1;Z=[];Uw=-1;z=g.D(S);for(k=z.next();!k.done;k=z.next())if(k=k.value,g.q(k,zJ)){k=O_W(O,M,g.q(k,zJ),f);if(k instanceof L){H=k;break a}k=k(e);x.push(k.IK);t=[].concat(g.N(k.jG),g.N(t));m=[].concat(g.N(k.G4),g.N(m));k.j9&&(Z=[k.j9].concat(g.N(Z)))}else if(g.q(k,Hl)){Uw=gw(g.q(k,Hl),M,G);if(Uw instanceof lo){H=new L(Uw);break a}k=new tT(v,W);k=Gam(O,Uw.layoutId,Uw.ex,M,Mq(Uw.playerVars,Uw.Cn,J,l,k),Uw.rb,h,k,f(e),Sm,F.get(Uw.ex.externalVideoId),void 0,T);v++;x.push(k.IK);t=[].concat(g.N(k.jG),g.N(t)); m=[].concat(g.N(k.G4),g.N(m));JU||(w.push(Sm),JU=!0);Uw=(Uw=Uw.ex.adPodSkipTarget)&&Uw>0?Uw:-1}else if(g.q(k,e2)){k=UJ1(U,O,M,g.q(k,e2),h,v,f,Sm,Uw);if(k instanceof L){H=k;break a}k=k(e);x.push(k.IK);t=[].concat(g.N(k.jG),g.N(t));m=[].concat(g.N(k.G4),g.N(m));k.j9&&(Z=[k.j9].concat(g.N(Z)))}else if(g.q(k,cl)){if(H===void 0){H=new L("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.q(k,cl)});break a}k=grw(U,O,M,h,g.q(k,cl),E,f,H,v,gp(G,"supports_multi_step_on_desktop")); if(k instanceof L){H=k;break a}k=k(e);x.push(k.IK);k.j9&&Z.push(k.j9);t=[].concat(g.N(k.jG),g.N(t));m=[].concat(g.N(k.G4),g.N(m));P=[].concat(g.N(k.X6),g.N(P));u=[].concat(g.N(k.B_),g.N(u));w=[E].concat(g.N(w))}else if(g.q(k,Dg)){k=Mr1(U,O,M,h,g.q(k,Dg),E,f,v);if(k instanceof L){H=k;break a}k=k(e);x.push(k.IK);k.j9&&Z.push(k.j9);m=[].concat(g.N(k.G4),g.N(m))}else{H=new L("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}H={dR:x,layoutExitSkipTriggers:t,layoutExitUserInputSubmittedTriggers:P, PB:u,layoutExitMuteTriggers:m,Vi:w,Ge:Z}}H instanceof L?e=H:(u=e.slotId,W=H.dR,v=H.layoutExitSkipTriggers,x=H.layoutExitMuteTriggers,t=H.layoutExitUserInputSubmittedTriggers,m=H.Vi,e=f(e),P=p?p.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",u=p?p.layoutId:M8(O.V.get(),P,u),w={layoutId:u,layoutType:P,JZ:"core"},e={layout:{layoutId:u,layoutType:P,BV:new Map,layoutExitNormalTriggers:[new aq(O.U,u)],layoutExitSkipTriggers:v,layoutExitMuteTriggers:x,layoutExitUserInputSubmittedTriggers:t,PB:[],JZ:"core", clientMetadata:new Gk([new Yr(W)].concat(g.N(m))),kp:e(w)},Ge:H.Ge});return e}}; lW7=function(U,O,M){var S=[];U=g.D(U);for(var p=U.next();!p.done;p=U.next())if(p=p.value,g.q(p,Hl)){p=gw(g.q(p,Hl),O,M);if(p instanceof lo)return new L(p);S.push(p.rb)}return S}; Tn1=function(U,O,M,S,p,h,J,f){if(!cJg(M,f===void 0?!1:f))return new L("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:M});var F=wR(M);if(F<=0)return new L("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:M});var l=new t3({current:null}),G=ZNm(U,O,M,l,S,h,J);return $JU(U,S,h,F,p,function(T,e){var H=T.slotId,z=Ue(M);T=J(T);var W,v=(W=eT(O,S,M.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?W: M8(O.V.get(),"LAYOUT_TYPE_MEDIA_BREAK",H);H={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",JZ:"core"};W=G(v,e);var x=$G(W.clientMetadata,"metadata_type_fulfilled_layout");x||DY("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");z=[new p_(S),new V0(F),new wn(z),l];x&&z.push(new BR(x.layoutType));return{kSP:{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",BV:new Map,layoutExitNormalTriggers:[new aq(O.U,v)],layoutExitSkipTriggers:[new Vg(O.U, e.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new gR(O.U,e.layoutId)],PB:[],JZ:"core",clientMetadata:new Gk(z),kp:T(H)},jla:W}})}; jPw=function(U){if(!WvW(U))return!1;var O=g.q(U.adVideoStart,dw);return O?g.q(U.linearAd,Hl)&&GJ(O)?!0:(DY("Invalid Sandwich with notify"),!1):!1}; ew7=function(U){if(U.linearAds==null)return!1;U=g.q(U.adStart,dw);return U?GJ(U)?!0:(DY("Invalid LASR with notify"),!1):!1}; H_m=function(U){if(!dzU(U))return!1;U=g.q(U.adStart,dw);return U?GJ(U)?!0:(DY("Invalid LASR with notify"),!1):!1}; WM=function(U,O,M,S,p,h,J,f,F,l){this.X=U;this.V=O;this.U=M;this.vA=S;this.rK=p;this.B=h;this.dG=J;this.kV=f;this.j5=F;this.loadPolicy=l===void 0?1:l}; bNm=function(U,O,M,S,p,h,J,f,F,l){var G=[];if(O.length===0&&S.length===0&&M.length===0)return G;O=O.filter($i);var T=M.filter(eKJ),e=S.filter($i),H=new Map,z=z$4(O),W=M.some(function(K){var i5;return(K==null?void 0:(i5=K.adSlotMetadata)==null?void 0:i5.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),v=M.some(function(K){var i5; return(K==null?void 0:(i5=K.adSlotMetadata)==null?void 0:i5.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),x=M.some(function(K){var i5; return(K==null?void 0:(i5=K.adSlotMetadata)==null?void 0:i5.slotType)==="SLOT_TYPE_IN_PLAYER"}),t=M.some(function(K){var i5,vq; return(K==null?void 0:(i5=K.adSlotMetadata)==null?void 0:i5.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(K==null?void 0:(vq=K.adSlotMetadata)==null?void 0:vq.slotType)==="SLOT_TYPE_ABOVE_FEED"}); M=M.some(function(K){var i5;return(K==null?void 0:(i5=K.adSlotMetadata)==null?void 0:i5.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(W||v||x||t||M)l=xf4(T,O,f,p,z,U.rK.get(),U.loadPolicy,H,U.vA.get(),U.X.get(),x,J,F,l),l instanceof L?DY(l,void 0,void 0,{contentCpn:p}):G.push.apply(G,g.N(l));l=g.D(O);for(M=l.next();!M.done;M=l.next())M=M.value,v=zwJ(U,H,M,p,h,J,W,f,z,F,T),v instanceof L?DY(v,void 0,void 0,{renderer:M.renderer,config:M.config.adPlacementConfig,kind:M.config.adPlacementConfig.kind,contentCpn:p,daiEnabled:J}):G.push.apply(G,g.N(v));c3e(U.vA.get())||(h=DJw(U,e,p,f,z,H),G.push.apply(G,g.N(h)));if(U.B===null||J&&!f.Es){var m, P,u;U=f.KE&&O.length===1&&((m=O[0].config)==null?void 0:(P=m.adPlacementConfig)==null?void 0:P.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((u=O[0].renderer)==null?void 0:u.adBreakServiceRenderer);if(!G.length&&!U){var w,E,Sm,JU;DY("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":O.length,contentCpn:p,"first APR kind":(w=O[0])==null?void 0:(E=w.config)==null?void 0:(Sm=E.adPlacementConfig)==null?void 0:Sm.kind,renderer:(JU=O[0])==null?void 0: JU.renderer})}return G}m=S.filter($i);G.push.apply(G,g.N(u35(H,m,U.V.get(),U.B,p,W)));if(!G.length){var Uw,Z,k,d;DY("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":O.length,contentCpn:p,daiEnabled:J.toString(),"first APR kind":(Uw=O[0])==null?void 0:(Z=Uw.config)==null?void 0:(k=Z.adPlacementConfig)==null?void 0:k.kind,renderer:(d=O[0])==null?void 0:d.renderer})}return G}; DJw=function(U,O,M,S,p,h){function J(e){return cF(U.rK.get(),e)} var f=[];O=g.D(O);for(var F=O.next();!F.done;F=O.next()){F=F.value;var l=F.renderer,G=l.sandwichedLinearAdRenderer,T=l.linearAdSequenceRenderer;G&&jPw(G)?(DY("Found AdNotify with SandwichedLinearAdRenderer"),T=g.q(G.adVideoStart,dw),G=g.q(G.linearAd,Hl),VZ(h,l,F.config.adPlacementConfig.kind),l=void 0,T=yi7((l=T)==null?void 0:l.layout.layoutId,U.V.get(),U.U.get(),F.config.adPlacementConfig,F.adSlotLoggingData,G,M,S,J,p,U.loadPolicy,U.vA.get(),U.rK.get()),T instanceof L?DY(T):f.push.apply(f,g.N(T))): T&&(!T.adLayoutMetadata&&ew7(T)||T.adLayoutMetadata&&H_m(T))&&(DY("Found AdNotify with LinearAdSequenceRenderer"),VZ(h,l,F.config.adPlacementConfig.kind),l=void 0,G=SlJ((l=g.q(T.adStart,dw))==null?void 0:l.layout.layoutId,U.V.get(),U.U.get(),F.config.adPlacementConfig,F.adSlotLoggingData,T.linearAds,pr(T.adLayoutMetadata)?T.adLayoutMetadata:void 0,M,S,J,p,U.loadPolicy,U.vA.get()),G instanceof L?DY(G):f.push.apply(f,g.N(G)))}return f}; zwJ=function(U,O,M,S,p,h,J,f,F,l,G){function T(x){return cF(U.rK.get(),x)} var e=M.renderer,H=M.config.adPlacementConfig,z=H.kind,W=M.adSlotLoggingData,v=f.Es&&z==="AD_PLACEMENT_KIND_START";v=h&&!v;if(e.adsEngagementPanelRenderer!=null)return ki(O,M.elementId,z,e.adsEngagementPanelRenderer.isContentVideoEngagementPanel,e.adsEngagementPanelRenderer.adVideoId,e.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,H,W,function(x,t,m,P){var u=U.U.get(),w=x.slotId,E=e.adsEngagementPanelRenderer;x=cF(U.rK.get(),x);return Nq(u,w,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new VL(E),t,m,E.impressionPings,x,e.adsEngagementPanelRenderer.adLayoutLoggingData,P)}),[]; if(e.adsEngagementPanelLayoutViewModel)return ki(O,M.elementId,z,e.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,e.adsEngagementPanelLayoutViewModel.adVideoId,e.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,W,function(x,t,m,P){var u=U.U.get(),w=x.slotId,E=e.adsEngagementPanelLayoutViewModel;x=cF(U.rK.get(),x);return vM(u,w,"LAYOUT_TYPE_PANEL",new o_(E),t,m,x,e.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,P)}),[]; if(e.actionCompanionAdRenderer!=null){if(e.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return PG5(U.V.get(),U.B,U.U.get(),e.actionCompanionAdRenderer,H,W,S,T);ki(O,M.elementId,z,e.actionCompanionAdRenderer.isContentVideoCompanion,e.actionCompanionAdRenderer.adVideoId,e.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,W,function(x,t,m,P){var u=U.U.get(),w=x.slotId,E=e.actionCompanionAdRenderer;x=cF(U.rK.get(),x);return Nq(u,w,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Ea(E),t,m,E.impressionPings,x,e.actionCompanionAdRenderer.adLayoutLoggingData,P)})}else if(e.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(e.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return nZe(U.V.get(),U.B,U.U.get(),e.topBannerImageTextIconButtonedLayoutViewModel,H,W,S,T); ki(O,M.elementId,z,e.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,e.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,e.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,W,function(x,t,m,P){var u=U.U.get(),w=x.slotId,E=e.topBannerImageTextIconButtonedLayoutViewModel;x=cF(U.rK.get(),x);return vM(u,w,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new LQ(E),t,m,x,e.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,P)})}else if(e.imageCompanionAdRenderer)ki(O, M.elementId,z,e.imageCompanionAdRenderer.isContentVideoCompanion,e.imageCompanionAdRenderer.adVideoId,e.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,W,function(x,t,m,P){var u=U.U.get(),w=x.slotId,E=e.imageCompanionAdRenderer; x=cF(U.rK.get(),x);return Nq(u,w,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Ol(E),t,m,E.impressionPings,x,e.imageCompanionAdRenderer.adLayoutLoggingData,P)}); else if(e.bannerImageLayoutViewModel)ki(O,M.elementId,z,e.bannerImageLayoutViewModel.isContentVideoCompanion,e.bannerImageLayoutViewModel.adVideoId,e.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,W,function(x,t,m,P){var u=U.U.get(),w=x.slotId,E=e.bannerImageLayoutViewModel;x=cF(U.rK.get(),x);return vM(u,w,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new sl(E),t,m,x,e.bannerImageLayoutViewModel.adLayoutLoggingData,P)}); else if(e.shoppingCompanionCarouselRenderer)ki(O,M.elementId,z,e.shoppingCompanionCarouselRenderer.isContentVideoCompanion,e.shoppingCompanionCarouselRenderer.adVideoId,e.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,H,W,function(x,t,m,P){var u=U.U.get(),w=x.slotId,E=e.shoppingCompanionCarouselRenderer;x=cF(U.rK.get(),x);return Nq(u,w,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new gn(E),t,m,E.impressionPings,x,e.shoppingCompanionCarouselRenderer.adLayoutLoggingData,P)}); else if(e.adBreakServiceRenderer){if(!AJU(M))return[];if(z==="AD_PLACEMENT_KIND_PAUSE")return mzy(U.V.get(),H,W,M.renderer.adBreakServiceRenderer,S);if(z!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&z!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return YtW(U.V.get(),H,W,M.renderer.adBreakServiceRenderer,S,p,h);f.KE||DY("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:z,adPlacementConfig:H,daiEnabledForContentVideo:String(h),isServedFromLiveInfra:String(f.KE),clientPlaybackNonce:f.clientPlaybackNonce}); if(z==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!U.dG)return new L("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!U.j5)return new L("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");U.j5.lC({adPlacementRenderer:M,contentCpn:S,Cm:p});p=U.dG.get().getCurrentTimeSec(1,!1);return dJm(U.V.get(),M.renderer.adBreakServiceRenderer,H,p,S,W,h)}if(!U.kV)return new L("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); U.kV.lC({adPlacementRenderer:M,contentCpn:S,Cm:p})}else{if(e.clientForecastingAdRenderer)return a_i(U.V.get(),U.U.get(),H,W,e.clientForecastingAdRenderer,S,p,T);if(e.invideoOverlayAdRenderer)return o5w(U.V.get(),U.U.get(),H,W,e.invideoOverlayAdRenderer,S,p,T);if(e.instreamAdPlayerOverlayRenderer)return LOm(U.V.get(),U.U.get(),H,W,e.instreamAdPlayerOverlayRenderer,S,T);if((e.linearAdSequenceRenderer||e.instreamVideoAdRenderer)&&v)return g5e(U.V.get(),U.U.get(),M,S,T,l,!U.vA.get().S.J().T("html5_override_ad_video_length_killswitch")); if(e.linearAdSequenceRenderer&&!v){if(J)return[];VZ(O,e,z);if(e.linearAdSequenceRenderer.adLayoutMetadata){if(!dzU(e.linearAdSequenceRenderer))return new L("Received invalid LinearAdSequenceRenderer.")}else if(e.linearAdSequenceRenderer.linearAds==null)return new L("Received invalid LinearAdSequenceRenderer.");if(g.q(e.linearAdSequenceRenderer.adStart,dw)){DY("Found AdNotify in LinearAdSequenceRenderer");M=g.q(e.linearAdSequenceRenderer.adStart,dw);if(!StJ(M))return new L("Invalid AdMessageRenderer."); h=e.linearAdSequenceRenderer.linearAds;return pR7(U.X.get(),U.V.get(),U.U.get(),U.rK.get(),H,W,M,pr(e.linearAdSequenceRenderer.adLayoutMetadata)?e.linearAdSequenceRenderer.adLayoutMetadata:void 0,h,S,p,f,T,F,U.loadPolicy,U.vA.get())}return Fki(U.V.get(),U.U.get(),H,W,e.linearAdSequenceRenderer.linearAds,pr(e.linearAdSequenceRenderer.adLayoutMetadata)?e.linearAdSequenceRenderer.adLayoutMetadata:void 0,S,p,f,T,F,U.loadPolicy,U.vA.get(),G)}if(!e.remoteSlotsRenderer||h){if(e.instreamVideoAdRenderer&& !v){if(J)return[];VZ(O,e,z);return $fU(U.V.get(),U.U.get(),H,W,e.instreamVideoAdRenderer,S,p,f,T,F,U.loadPolicy,U.vA.get(),U.rK.get(),G)}if(e.instreamSurveyAdRenderer)return Tn1(U.V.get(),U.U.get(),e.instreamSurveyAdRenderer,H,W,S,T,gp(U.vA.get(),"supports_multi_step_on_desktop"));if(e.sandwichedLinearAdRenderer!=null)return WvW(e.sandwichedLinearAdRenderer)?g.q(e.sandwichedLinearAdRenderer.adVideoStart,dw)?(DY("Found AdNotify in SandwichedLinearAdRenderer"),M=g.q(e.sandwichedLinearAdRenderer.adVideoStart, dw),StJ(M)?(h=g.q(e.sandwichedLinearAdRenderer.linearAd,Hl))?f_5(M,h,H,U.X.get(),U.V.get(),U.U.get(),U.rK.get(),W,S,p,f,T,F,U.loadPolicy,U.vA.get()):new L("Missing IVAR from Sandwich"):new L("Invalid AdMessageRenderer.")):Fki(U.V.get(),U.U.get(),H,W,[e.sandwichedLinearAdRenderer.adVideoStart,e.sandwichedLinearAdRenderer.linearAd],void 0,S,p,f,T,F,U.loadPolicy,U.vA.get()):new L("Received invalid SandwichedLinearAdRenderer.");if(e.videoAdTrackingRenderer!=null)return KOg(U.V.get(),U.U.get(),e.videoAdTrackingRenderer, H,W,S,p,f.HU,T)}}return[]}; BM=function(U,O,M,S,p,h,J,f){g.C.call(this);var F=this;this.V=U;this.B=O;this.YI=S;this.dG=p;this.vA=h;this.Il=J;this.XI=f;this.U=null;M.get().addListener(this);this.addOnDisposeCallback(function(){M.GY()||M.get().removeListener(F)}); S.get().addListener(this);this.addOnDisposeCallback(function(){S.GY()||S.get().removeListener(F)})}; NnU=function(U,O,M){var S=U.dG.get().getCurrentTimeSec(1,!1);U.vA.get().S.J().PV()&&yg(U.Il.get(),"sdai","onopp.1;evt."+M.event+";start."+M.startSecs.toFixed(3)+";d."+M.PJ.toFixed(3));W4(U.V.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var p=U.B.get(),h=O.adPlacementRenderer.renderer.adBreakServiceRenderer,J=O.contentCpn,f=O.adPlacementRenderer.adSlotLoggingData,F=xX(U.vA.get()),l=U.Il;if(p.vA.get().S.J().experiments.F0("enable_smearing_expansion_dai")){var G=g.DF(p.vA.get().S.J().experiments, "max_prefetch_window_sec_for_livestream_optimization");var T=g.DF(p.vA.get().S.J().experiments,"min_prefetch_offset_sec_for_livestream_optimization");F={sC:Wk7(M),SB:!1,cueProcessedMs:S*1E3};var e=M.startSecs+M.PJ;if(S===0)F.NU=new tD(0,e*1E3);else{T=M.startSecs-T;var H=T-S;F.NU=H<=0?new tD(T*1E3,e*1E3):new tD(Math.floor(S+Math.random()*Math.min(H,G))*1E3,e*1E3)}G=F}else G={sC:Wk7(M),SB:!1},e=M.startSecs+M.PJ,M.startSecs<=S?F=new tD((M.startSecs-4)*1E3,e*1E3):(T=Math.max(0,M.startSecs-S-10),F=new tD(Math.floor(S+ Math.random()*(F?S===0?0:Math.min(T,5):T))*1E3,e*1E3)),G.NU=F;h=ah(p,h,J,G,f,[new mk(M)]);b1(p.vA.get())&&yg(l.get(),"abrsm","cpi."+M.identifier+";cps."+M.startSecs+";cpd."+M.PJ+";cts."+S+";rbf."+G.NU.start);l.get().S.XV(G.NU.start/1E3-S,M.startSecs-S);return[h]})}; Rr=function(U){var O,M=(O=$G(U.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:O.current;if(!M)return null;O=$G(U.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var S=U.layoutId,p=$G(U.clientMetadata,"metadata_type_content_cpn"),h=$G(U.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J=$G(U.clientMetadata,"metadata_type_player_overlay_layout_renderer"),f=$G(U.clientMetadata,"metadata_type_player_underlay_renderer"),F=$G(U.clientMetadata, "metadata_type_ad_placement_config"),l=$G(U.clientMetadata,"metadata_type_video_length_seconds");var G=y6(U.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?$G(U.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):y6(U.clientMetadata,"metadata_type_layout_enter_ms")&&y6(U.clientMetadata,"metadata_type_layout_exit_ms")?($G(U.clientMetadata,"metadata_type_layout_exit_ms")-$G(U.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Cg:S,contentCpn:p,sY:M,lF:O,instreamAdPlayerOverlayRenderer:h, playerOverlayLayoutRenderer:J,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:F,videoLengthSeconds:l,Gx:G,inPlayerLayoutId:$G(U.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:$G(U.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Bne=function(U,O){return vr4(U,O)}; xJy=function(U,O){O=vr4(U,O);if(!O)return null;var M;O.Gx=(M=$G(U.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:M.adBreakRemainingLengthSeconds;return O}; vr4=function(U,O){var M,S=(M=$G(U.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:M.current;if(!S)return null;M=aCi(U,O);return{KT:ram(U,O),adPlacementConfig:$G(U.clientMetadata,"metadata_type_ad_placement_config"),Ih:M,contentCpn:$G(U.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:$G(U.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:$G(U.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:$G(U.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Gx:void 0,sY:S,Cg:U.layoutId,videoLengthSeconds:$G(U.clientMetadata,"metadata_type_video_length_seconds")}}; tP=function(U,O,M,S,p,h,J,f,F){g.C.call(this);this.X=U;this.C=O;this.G=M;this.B=S;this.U=p;this.V=h;this.rK=J;this.vA=f;this.qL=F;this.yO=!0}; b_w=function(U,O,M){return e$5(U.U.get(),O.contentCpn,O.Cg,function(S){return HQw(U.V.get(),S.slotId,M,O.adPlacementConfig,O.Cg,cF(U.rK.get(),S))})}; YX=function(U,O,M,S,p,h,J,f){g.C.call(this);this.V=U;this.U=O;this.B=M;this.vA=S;this.X=p;this.qL=h;this.dG=J;this.SY=f}; m$=function(U){g.C.call(this);this.U=U}; W4=function(U,O,M,S){U.U().cN(O,S);M=M();U=U.U();U.DN.h8("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",O,S,M);O=g.D(M);for(M=O.next();!M.done;M=O.next())a:{S=U;M=M.value;S.DN.Qq("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M);S.DN.Qq("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",M);try{var p=S.U;if(g.Ny(M.slotId))throw new L("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(RL(p,M))throw new L("Duplicate registration for slot.",{slotId:M.slotId,slotEntryTriggerType:M.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!p.L6.xK.has(M.slotType))throw new L("No fulfillment adapter factory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!p.L6.CF.has(M.slotType))throw new L("No SlotAdapterFactory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");aL(p,"TRIGGER_CATEGORY_SLOT_ENTRY",M.slotEntryTrigger?[M.slotEntryTrigger]:[]);aL(p,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", M.slotFulfillmentTriggers);aL(p,"TRIGGER_CATEGORY_SLOT_EXPIRATION",M.slotExpirationTriggers);var h=S.U,J=M.slotType+"_"+M.slotPhysicalPosition,f=qM(h,J);if(RL(h,M))throw new L("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");f.set(M.slotId,new XGm(M));h.U.set(J,f)}catch(Sm){Sm instanceof L&&Sm.Pb?(S.DN.C0("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Sm.Pb,M),DY(Sm,M,void 0,void 0,Sm.I$)):(S.DN.C0("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", M),DY(Sm,M));break a}RL(S.U,M).C=!0;try{var F=S.U,l=RL(F,M),G=M.slotEntryTrigger,T=F.L6.OC.get(G.triggerType);T&&(T.Bb("TRIGGER_CATEGORY_SLOT_ENTRY",G,M,null),l.BA.set(G.triggerId,T));for(var e=g.D(M.slotFulfillmentTriggers),H=e.next();!H.done;H=e.next()){var z=H.value,W=F.L6.OC.get(z.triggerType);W&&(W.Bb("TRIGGER_CATEGORY_SLOT_FULFILLMENT",z,M,null),l.yP.set(z.triggerId,W))}for(var v=g.D(M.slotExpirationTriggers),x=v.next();!x.done;x=v.next()){var t=x.value,m=F.L6.OC.get(t.triggerType);m&&(m.Bb("TRIGGER_CATEGORY_SLOT_EXPIRATION", t,M,null),l.Z.set(t.triggerId,m))}var P=F.L6.xK.get(M.slotType).get().build(F.B,M);l.D=P;var u=F.L6.CF.get(M.slotType).get().build(F.G,M);u.init();l.V=u}catch(Sm){Sm instanceof L&&Sm.Pb?(S.DN.C0("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Sm.Pb,M),DY(Sm,M,void 0,void 0,Sm.I$)):(S.DN.C0("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",M),DY(Sm,M));BF(S,M,!0);break a}S.DN.Qq("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",M);S.U.RK(M);for(var w=g.D(S.V),E=w.next();!E.done;E= w.next())E.value.RK(M);mS(S,M)}}; AP=function(U,O,M,S,p){g.C.call(this);var h=this;this.V=U;this.B=O;this.Lr=M;this.context=p;this.U=new Map;S.get().addListener(this);this.addOnDisposeCallback(function(){S.GY()||S.get().removeListener(h)})}; BMg=function(U,O){var M=0x8000000000000;var S=0;for(var p=g.D(O.slotFulfillmentTriggers),h=p.next();!h.done;h=p.next())h=h.value,h instanceof iW?(M=Math.min(M,h.U.start),S=Math.max(S,h.U.end)):DY("Found unexpected fulfillment trigger for throttled slot.",O,null,{fulfillmentTrigger:h});S=new tD(M,S);M="throttledadcuerange:"+O.slotId;U.U.set(M,O);U.Lr.get().addCueRange(M,S.start,S.end,!1,U);YF(U.context.vA.get())&&(O=S.start,S=S.end,p={},U.context.Za.ya("tcrr",(p.cid=M,p.sm=O,p.em=S,p)))}; Ir=function(){g.C.apply(this,arguments);this.yO=!0;this.BU=new Map;this.U=new Map}; PM=function(U,O){U=g.D(U.BU.values());for(var M=U.next();!M.done;M=U.next())if(M.value.layoutId===O)return!0;return!1}; nH=function(U,O){U=g.D(U.U.values());for(var M=U.next();!M.done;M=U.next()){M=g.D(M.value);for(var S=M.next();!S.done;S=M.next())if(S=S.value,S.layoutId===O)return S}DY("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Ny(O)),layoutId:O})}; Rw1=function(){this.U=new Map}; trw=function(U,O){this.callback=U;this.slot=O}; Qd=function(){}; Ylw=function(U,O,M){this.callback=U;this.slot=O;this.dG=M}; mJy=function(U,O,M){this.callback=U;this.slot=O;this.dG=M;this.V=!1;this.U=0}; A3i=function(U,O,M){this.callback=U;this.slot=O;this.dG=M}; CH=function(U){this.dG=U}; X$=function(U){g.C.call(this);this.ES=U;this.Se=new Map}; u1=function(U,O){for(var M=[],S=g.D(U.Se.values()),p=S.next();!p.done;p=S.next()){p=p.value;var h=p.trigger;h instanceof gR&&h.triggeringLayoutId===O&&M.push(p)}M.length?Ci(U.ES(),M):DY("Survey is submitted but no registered triggers can be activated.")}; qq=function(U,O,M){X$.call(this,U);var S=this;this.vA=M;O.get().addListener(this);this.addOnDisposeCallback(function(){O.GY()||O.get().removeListener(S)})}; i1=function(U){g.C.call(this);this.U=U;this.yO=!0;this.Se=new Map;this.G=new Set;this.B=new Set;this.X=new Set;this.C=new Set;this.V=new Set}; ZD=function(U){g.C.call(this);this.U=U;this.Se=new Map}; KH=function(U,O){for(var M=[],S=g.D(U.Se.values()),p=S.next();!p.done;p=S.next())p=p.value,p.trigger.U===O.layoutId&&M.push(p);M.length&&Ci(U.U(),M)}; rw=function(U,O,M){g.C.call(this);var S=this;this.U=U;this.context=M;this.Se=new Map;O.get().addListener(this);this.addOnDisposeCallback(function(){O.GY()||O.get().removeListener(S)})}; ar=function(U,O,M,S,p){g.C.call(this);var h=this;this.V=U;this.Lr=O;this.dG=M;this.qL=S;this.context=p;this.yO=!0;this.Se=new Map;this.U=new Set;M.get().addListener(this);this.addOnDisposeCallback(function(){M.GY()||M.get().removeListener(h)})}; IWq=function(U,O,M,S,p,h,J,f,F,l){if(N6(U.qL.get(),1).clientPlaybackNonce!==F)throw new L("Cannot register CueRange-based trigger for different content CPN",{trigger:M});U.Se.set(M.triggerId,{gY:new S5(O,M,S,p),cueRangeId:h});U.Lr.get().addCueRange(h,J,f,l,U);YF(U.context.vA.get())&&(F={},U.context.Za.ya("crr",(F.ca=O,F.tt=M.triggerType,F.st=S.slotType,F.lt=p==null?void 0:p.layoutType,F.cid=h,F.sm=J,F.em=f,F)))}; PXw=function(U,O){U=g.D(U.Se.entries());for(var M=U.next();!M.done;M=U.next()){var S=g.D(M.value);M=S.next().value;S=S.next().value;if(O===S.cueRangeId)return M}return""}; Ee=function(U,O){g.C.call(this);var M=this;this.X=U;this.V=new Map;this.B=new Map;this.U=null;O.get().addListener(this);this.addOnDisposeCallback(function(){O.GY()||O.get().removeListener(M)}); var S;this.U=((S=O.get().W$)==null?void 0:S.slotId)||null}; nrw=function(U,O){var M=[];U=g.D(U.values());for(var S=U.next();!S.done;S=U.next())S=S.value,S.slot.slotId===O&&M.push(S);return M}; LH=function(U){g.C.call(this);this.U=U;this.yO=!0;this.Se=new Map}; wF=function(U,O,M){O=O.layoutId;for(var S=[],p=g.D(U.Se.values()),h=p.next();!h.done;h=p.next())if(h=h.value,h.trigger instanceof aq){var J;if(J=h.trigger.layoutId===O){J=M;var f=mTw.get(h.category);J=f?f===J:!1}J&&S.push(h)}S.length&&Ci(U.U(),S)}; Vd=function(U){g.C.call(this);this.U=U;this.yO=!0;this.Se=new Map}; or=function(U,O,M,S,p){g.C.call(this);var h=this;this.G=U;this.YI=O;this.dG=M;this.Il=S;this.U=null;this.yO=!0;this.Se=new Map;this.X=new Set;O.get().addListener(this);this.addOnDisposeCallback(function(){O.GY()||O.get().removeListener(h)}); p.get().addListener(this);this.addOnDisposeCallback(function(){p.GY()||p.get().removeListener(h)})}; CXe=function(U){U.U&&(U.V&&(U.V.stop(),U.V.start()),QP4(U,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; QP4=function(U,O){for(var M=[],S=g.D(U.Se.values()),p=S.next();!p.done;p=S.next())p=p.value,p.trigger.triggerType===O&&M.push(p);M.length>0&&Ci(U.G(),M)}; kX=function(U,O,M,S,p){for(var h=[],J=g.D(U.Se.values()),f=J.next();!f.done;f=J.next()){var F=f=f.value,l=F.trigger;F=F.slot;if(l.triggerType===O){if(l instanceof Xn||l instanceof uW||l instanceof Zc){if(p&&l.breakDurationMs!==M)continue;if(!p&&l.breakDurationMs===M)continue;if(S.has(F.slotId))continue;if(U.X.has(F.slotId))continue}h.push(f)}}h.length>0&&Ci(U.G(),h)}; XR4=function(U){U=U.adPlacementRenderer.config.adPlacementConfig;if(!U.prefetchModeConfig||!U.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;U=Number(U.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(U)||U<=0?0:Math.floor(Math.random()*U)}; ulw=function(U){U=U.adPlacementRenderer.config.adPlacementConfig;if(U.prefetchModeConfig&&U.prefetchModeConfig.cacheFetchRefreshDurationMs&&(U=Number(U.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(U)||U<=0)))return U}; ww=function(U){U.U=null;U.Se.clear();U.X.clear();U.V&&U.V.stop();U.B&&U.B.stop()}; UN=function(U){g.C.call(this);this.B=U;this.yO=!0;this.Se=new Map;this.U=new Map;this.V=new Map}; qle=function(U,O){var M=[];if(O=U.U.get(O.layoutId)){O=g.D(O);for(var S=O.next();!S.done;S=O.next())(S=U.V.get(S.value.triggerId))&&M.push(S)}return M}; ON=function(U){g.C.call(this);this.U=U;this.Se=new Map}; i_y=function(U,O){for(var M=[],S=g.D(U.Se.values()),p=S.next();!p.done;p=S.next())p=p.value,p.trigger instanceof Rq&&p.trigger.slotId===O&&M.push(p);M.length>=1&&Ci(U.U(),M)}; Z_w=function(U,O){var M={slotId:N8(O,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],JZ:"surface",clientMetadata:new Gk([])},S=Object,p=S.assign;O=M8(O,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",M.slotId);O={layoutId:O,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",BV:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"surface", clientMetadata:new Gk([]),kp:BzU(!1,M.slotId,M.slotType,M.slotPhysicalPosition,M.JZ,M.slotEntryTrigger,M.slotFulfillmentTriggers,M.slotExpirationTriggers,O,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return p.call(S,{},U,{WdZ:!0,slot:M,layout:O})}; t1m=function(U,O,M,S){var p=U.kind;S=S?!1:!U.hideCueRangeMarker;switch(p){case "AD_PLACEMENT_KIND_START":return S={sC:new tD(-0x8000000000000,-0x8000000000000),SB:S},M!=null&&(S.NU=new tD(-0x8000000000000,-0x8000000000000)),S;case "AD_PLACEMENT_KIND_END":return S={sC:new tD(0x7ffffffffffff,0x8000000000000),SB:S},M!=null&&(S.NU=new tD(Math.max(0,O-M),0x8000000000000)),S;case "AD_PLACEMENT_KIND_MILLISECONDS":p=U.adTimeOffset;p.offsetStartMilliseconds||DY("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); p.offsetEndMilliseconds||DY("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");U=Number(p.offsetStartMilliseconds);p=Number(p.offsetEndMilliseconds);p===-1&&(p=O);if(Number.isNaN(U)||Number.isNaN(p)||U>p)return new L("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:U,offsetEndMs:p},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",p===O&&U-500<=p);S={sC:new tD(U,p),SB:S};if(M!=null){U=Math.max(0,U-M);if(U===p)return S;S.NU=new tD(U,p)}return S; default:return new L("AdPlacementKind not supported in convertToRange.",{kind:p,adPlacementConfig:U})}}; Wk7=function(U){var O=U.startSecs*1E3;return new tD(O,O+U.PJ*1E3)}; KkU=function(U){if(!U||!U.adPlacements&&!U.adSlots)return!1;for(var O=g.D(U.adPlacements||[]),M=O.next();!M.done;M=O.next())if(M=M.value)if(M=M.adPlacementRenderer,M!=null&&(M.config&&M.config.adPlacementConfig&&M.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;U=g.D(U.adSlots||[]);for(O=U.next();!O.done;O=U.next()){var S=M=void 0;if(((M=g.q(O.value,rR))==null?void 0:(S=M.adSlotMetadata)==null?void 0:S.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; sN=function(U){this.vA=U;this.V=new Map;this.U=new Map;this.B=new Map}; N8=function(U,O){if(gx(U.vA.get())){var M=U.V.get(O)||0;M++;U.V.set(O,M);return O+"_"+M}return g.AE(16)}; M8=function(U,O,M){if(gx(U.vA.get())){var S=U.U.get(O)||0;S++;U.U.set(O,S);return M+"_"+O+"_"+S}return g.AE(16)}; G8=function(U,O){if(gx(U.vA.get())){var M=U.B.get(O)||0;M++;U.B.set(O,M);return O+"_"+M}return g.AE(16)}; r3g=function(U){var O=[new NJ(U.Cg),new bX(U.sY),new p_(U.adPlacementConfig),new A3(U.videoLengthSeconds),new L_(U.Gx)];U.instreamAdPlayerOverlayRenderer&&O.push(new Ga(U.instreamAdPlayerOverlayRenderer));U.playerOverlayLayoutRenderer&&O.push(new $r(U.playerOverlayLayoutRenderer));U.lF&&O.push(new f_(U.lF));return O}; aWW=function(U,O,M,S,p,h){U=M.inPlayerLayoutId?M.inPlayerLayoutId:M8(h,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",U);var J,f,F=M.instreamAdPlayerOverlayRenderer?(J=M.instreamAdPlayerOverlayRenderer)==null?void 0:J.adLayoutLoggingData:(f=M.playerOverlayLayoutRenderer)==null?void 0:f.adLayoutLoggingData;J={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",JZ:O};return{layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",BV:new Map,layoutExitNormalTriggers:[new Qg(function(l){return G8(h, l)},M.Cg)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:O,clientMetadata:S,kp:p(J),adLayoutLoggingData:F}}; MG=function(U,O){var M=this;this.V=U;this.vA=O;this.U=function(S){return G8(M.V.get(),S)}}; HQw=function(U,O,M,S,p,h){M=new Gk([new Ta(M),new p_(S)]);O=M8(U.V.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",O);S={layoutId:O,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",JZ:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",BV:new Map,layoutExitNormalTriggers:[new Qg(function(J){return G8(U.V.get(),J)},p)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:M,kp:h(S),adLayoutLoggingData:void 0}}; ST=function(U,O,M,S,p){var h=r3g(S);return aWW(O,M,S,new Gk(h),p,U.V.get())}; ErU=function(U,O,M,S,p){var h=r3g(S);h.push(new MJ(S.KT));h.push(new Sr(S.Ih));return aWW(O,M,S,new Gk(h),p,U.V.get())}; Nq=function(U,O,M,S,p,h,J,f,F,l){O=M8(U.V.get(),M,O);var G={layoutId:O,layoutType:M,JZ:"core"},T=new Map;J&&T.set("impression",J);J=[new Kn(U.U,p,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&J.push(new nn(U.U,l,["normal"]));return{layoutId:O,layoutType:M,BV:T,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:new Gk([S,new p_(h),new NJ(p)]),kp:f(G),adLayoutLoggingData:F}}; vM=function(U,O,M,S,p,h,J,f,F){O=M8(U.V.get(),M,O);var l={layoutId:O,layoutType:M,JZ:"core"},G=[new Kn(U.U,p,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];F&&G.push(new nn(U.U,F,["normal"]));return{layoutId:O,layoutType:M,BV:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:new Gk([S,new p_(h),new NJ(p)]),kp:J(l),adLayoutLoggingData:f}}; T8=function(U,O,M){var S=[];S.push(new rE(U.U,M));O&&S.push(O);return S}; $X=function(U,O,M,S,p,h,J){var f={layoutId:O,layoutType:M,JZ:"core"};return{layoutId:O,layoutType:M,BV:new Map,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[new mz(U.U,O)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:new Gk([new Ul(S),new p_(p)]),kp:h(f),adLayoutLoggingData:S.adLayoutLoggingData}}; Oe=function(U,O,M,S,p,h,J,f){var F={layoutId:O,layoutType:h,JZ:"core"};return{layoutId:O,layoutType:h,BV:new Map,layoutExitNormalTriggers:[new Qg(U.U,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:new Gk([new p_(S)].concat(g.N(J))),kp:p(F),adLayoutLoggingData:f}}; eT=function(U,O,M,S){if(U.vA.get().l$(O.kind==="AD_PLACEMENT_KIND_START"))if(M===void 0)DY("Expected SSAP layout ID in renderer",void 0,void 0,{caller:S});else return M}; kWq=function(U,O,M,S,p,h,J,f,F,l,G,T,e){U=jT(U,O,M,p,h,J,f,F,T,eT(U,M,S.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),e);O=U.Vi;M=new vR(U.bQ);S=U.layoutExitSkipTriggers;l>0&&(O.push(M),O.push(new y0(l)),S=[]);O.push(new J3(G));return{IK:{layoutId:U.layoutId,layoutType:U.layoutType,BV:U.BV,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:U.JZ,clientMetadata:new Gk(O),kp:U.kp,adLayoutLoggingData:U.adLayoutLoggingData}, jG:S,G4:U.layoutExitMuteTriggers,X6:U.layoutExitUserInputSubmittedTriggers,B_:U.PB,j9:U.j9}}; sPe=function(U,O,M,S,p,h,J,f,F,l){O=jT(U,O,M,S,h,new Map,J,function(G){return f(G,F)},void 0,eT(U,M,p.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); U=new gR(U.U,O.bQ);M=new vR(O.bQ);l=new J3(l);return{IK:{layoutId:O.layoutId,layoutType:O.layoutType,BV:O.BV,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:O.JZ,clientMetadata:new Gk([].concat(g.N(O.Vi),[M,l])),kp:O.kp,adLayoutLoggingData:O.adLayoutLoggingData},jG:O.layoutExitSkipTriggers,G4:O.layoutExitMuteTriggers,X6:[].concat(g.N(O.layoutExitUserInputSubmittedTriggers),[U]),B_:O.PB,j9:O.j9}}; jT=function(U,O,M,S,p,h,J,f,F,l,G){O=l!=null?l:M8(U.V.get(),"LAYOUT_TYPE_MEDIA_BREAK",O);l={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",JZ:"adapter"};f=f(O);var T=$G(f.clientMetadata,"metadata_type_fulfilled_layout");T||DY("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var e=T?T.layoutId:"";M=[new p_(M),new V0(S),new wn(p)];T&&M.push(new BR(T.layoutType));G&&M.push(new Xl(G));return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", BV:h,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Vg(U.U,e)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"adapter",Vi:M,kp:J(l),adLayoutLoggingData:F,j9:f,bQ:e}}; Tb1=function(U,O,M,S,p,h,J,f,F,l,G){U=Lkw(U,O,"core",M,S,p,h,J,f,F,l,void 0,G);return{layoutId:U.layoutId,layoutType:U.layoutType,BV:U.BV,layoutExitNormalTriggers:U.layoutExitNormalTriggers,layoutExitSkipTriggers:U.layoutExitSkipTriggers,layoutExitMuteTriggers:U.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:U.layoutExitUserInputSubmittedTriggers,PB:U.PB,JZ:U.JZ,clientMetadata:new Gk(U.I6),kp:U.kp,adLayoutLoggingData:U.adLayoutLoggingData}}; Gam=function(U,O,M,S,p,h,J,f,F,l,G,T,e){O=Lkw(U,O,"adapter",M,S,p,h,J,f,F,G,T,e);S=O.layoutExitSkipTriggers;p=O.I6;M.adPodSkipTarget&&M.adPodSkipTarget>0&&(p.push(l),p.push(new y0(M.adPodSkipTarget)),S=[]);p.push(new J3(f.adPodIndex));M.isCritical&&(S=[new nn(U.U,O.layoutId,["error"])].concat(g.N(S)));return{IK:{layoutId:O.layoutId,layoutType:O.layoutType,BV:O.BV,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:O.JZ,clientMetadata:new Gk(p), kp:O.kp,adLayoutLoggingData:O.adLayoutLoggingData},jG:S,G4:O.layoutExitMuteTriggers,X6:O.layoutExitUserInputSubmittedTriggers,B_:O.PB}}; Lkw=function(U,O,M,S,p,h,J,f,F,l,G,T,e){var H={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",JZ:M};p=[new p_(p),new h3(F),new Fl(S.externalVideoId),new lX(f),new wn({impressionCommands:S.impressionCommands,abandonCommands:S.onAbandonCommands,completeCommands:S.completeCommands,progressCommands:S.adVideoProgressCommands}),new IP(h),new RP({current:null}),new A3(J)];(h=S.playerOverlay.instreamAdPlayerOverlayRenderer)&&p.push(new Ga(h));(J=S.playerOverlay.playerOverlayLayoutRenderer)&&p.push(new $r(J)); T&&p.push(new PR(T));(T=S.playerUnderlay)&&p.push(new Ta(T));f=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER");T=(T=h?h.elementId:J==null?void 0:J.layoutId)?T:M8(U.V.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",f);p.push(new vR(T));p.push(new xr(f));p.push(new Xl(F.adPodIndex));S.adNextParams&&p.push(new k5(S.adNextParams));S.shrunkenPlayerBytesConfig&&p.push(new HR(S.shrunkenPlayerBytesConfig));S.clickthroughEndpoint&&p.push(new wb(S.clickthroughEndpoint));S.legacyInfoCardVastExtension&&p.push(new oP(S.legacyInfoCardVastExtension)); S.sodarExtensionData&&p.push(new n_(S.sodarExtensionData));G&&p.push(new El(G));p.push(new sq(AR(S.pings)));F=IF(S.pings);if(e){a:{e=g.D(e);for(G=e.next();!G.done;G=e.next())if(G=G.value,G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(h=g.q(G.fulfillmentContent.fulfilledLayout,Pl))&&(h=g.q(h.renderingContent,Bl))&&h.associatedPlayerBytesLayoutId===O){e=G;break a}e=void 0}e&&p.push(new jr(e))}return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",BV:F,layoutExitNormalTriggers:[new aq(U.U,O)],layoutExitSkipTriggers:S.skipOffsetMilliseconds? [new Vg(U.U,T)]:[],layoutExitMuteTriggers:[new Vg(U.U,T)],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:M,I6:p,kp:l(H),adLayoutLoggingData:S.adLayoutLoggingData}}; SaJ=function(U,O,M,S,p,h,J,f,F){S.every(function(G){return fi(G,[],["LAYOUT_TYPE_MEDIA"])})||DY("Unexpect subLayout type for DAI composite layout"); O=M8(U.V.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",O);var l={layoutId:O,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",JZ:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",BV:new Map,layoutExitNormalTriggers:[new Cn(U.U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],PB:[],JZ:"core",clientMetadata:new Gk([new Q0(M),new C_(f),new Yr(S),new p_(p),new ZW(h),new uX({}),new MM(F)]),kp:J(l)}}; Ufg=function(U){return U!=null}; SA=function(U,O,M){var S=this;this.V=U;this.B=O;this.vA=M;this.U=function(p){return G8(S.V.get(),p)}}; dJm=function(U,O,M,S,p,h,J){if(!M.prefetchModeConfig)return new L("AdPlacementConfig for Live Prefetch is missing prefetch_config");M=M.prefetchModeConfig;S*=1E3;var f=[];if(!M.breakLengthMs)return new L("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var F=g.D(M.breakLengthMs),l=F.next();!l.done;l=F.next())if(l=l.value,Number(l)>0){var G=S+Number(M.startTimeOffsetMs),T=G+Number(M.cacheFetchSmearingDurationMs);l={sC:new tD(T,T+Number(l)),SB:!1,NU:new tD(Math.floor(G+Math.random()* Number(M.cacheFetchSmearingDurationMs)),T),cueProcessedMs:S?S:G};G=[];G.push(new Ju({}));T=[];T.push(new Ln(U.U));T.push(new azw(U.U));J&&G.push(new uX({}));f.push(ah(U,O,p,l,h,G,T))}return f}; ah=function(U,O,M,S,p,h,J){h=h===void 0?[]:h;var f=N8(U.V.get(),"SLOT_TYPE_AD_BREAK_REQUEST");J||(J=[],S.NU&&S.NU.start!==S.sC.start&&J.push(new iW(U.U,M,new tD(S.NU.start,S.sC.start),!1)),J.push(new iW(U.U,M,new tD(S.sC.start,S.sC.end),S.SB)));S={getAdBreakUrl:O.getAdBreakUrl,Ze:S.sC.start,Fi:S.sC.end,cueProcessedMs:S.cueProcessedMs};O=new Uk(U.U,f);h=[new rn(S)].concat(g.N(h));return{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:J, slotExpirationTriggers:[new EZ(U.U,M),new k3(U.U,f),new wE(U.U,f)],JZ:"core",clientMetadata:new Gk(h),adSlotLoggingData:p}}; orW=function(U,O,M){var S=[];M=g.D(M);for(var p=M.next();!p.done;p=M.next())S.push(Vr4(U,O,p.value));return S}; Vr4=function(U,O,M){return M.triggeringSlotId!=null&&M.triggeringSlotId===U?M.clone(O):M}; iN5=function(U,O,M,S,p){return kaU(U,O,M,S,p)}; wCU=function(U,O,M,S){var p=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER");return kaU(U,p,O,M,S)}; kaU=function(U,O,M,S,p){var h=new P8(U.U,M),J=[new oq(U.U,O)];U=[new k3(U.U,O),new EZ(U.U,S)];return{slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(p({slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:U},M))]),adSlotLoggingData:void 0}}; $JU=function(U,O,M,S,p,h){var J=N8(U.V.get(),"SLOT_TYPE_PLAYER_BYTES"),f=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER"),F=M8(U.V.get(),"LAYOUT_TYPE_SURVEY",f);S=p6(U,O,M,S);var l=[new oq(U.U,J)];M=[new k3(U.U,J),new EZ(U.U,M),new mz(U.U,F)];if(S instanceof L)return S;f=h({slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:S,slotFulfillmentTriggers:l,slotExpirationTriggers:M},{slotId:f,layoutId:F});h=f.kSP;f=f.jla;return[{slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:z8(U,O,J,S),slotFulfillmentTriggers:cM(U,O,J,l),slotExpirationTriggers:M,JZ:"core",clientMetadata:new Gk([new K_(h),new Sn(DD(O)),new hu({SM:U.SM(O)})]),adSlotLoggingData:p},f]}; DD=function(U){return U.kind==="AD_PLACEMENT_KIND_START"}; j_m=function(U,O,M,S,p){p=p?p:N8(U.V.get(),"SLOT_TYPE_IN_PLAYER");M=new P8(U.U,M);var h=[new oq(U.U,p)];U=[new EZ(U.U,O),new k3(U.U,p)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:h,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(S({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:M,slotFulfillmentTriggers:h,slotExpirationTriggers:U}))])}}; e$5=function(U,O,M,S){var p=N8(U.V.get(),"SLOT_TYPE_PLAYER_UNDERLAY");M=new P8(U.U,M);var h=[new oq(U.U,p)];U=[new EZ(U.U,O),new k3(U.U,p)];return{slotId:p,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:h,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(S({slotId:p,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:M,slotFulfillmentTriggers:h,slotExpirationTriggers:U}))])}}; Jig=function(U,O,M,S,p,h,J){var f=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER"),F=M8(U.V.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",f);S=wRJ(U,S,h,J,F);if(S instanceof L)return S;J=[new oq(U.U,f)];p=[new EZ(U.U,h),new oq(U.U,p),new sk(U.U,p)];M=cF(M,{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:S,slotFulfillmentTriggers:J,slotExpirationTriggers:p});U=U.B.get();h={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",JZ:"core"};O={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", BV:new Map,layoutExitNormalTriggers:[new ONm(U.U,F,O.durationMs)],layoutExitSkipTriggers:[new gZW(U.U,F,O.durationMs)],PB:[new sGU(U.U,F)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],JZ:"core",clientMetadata:new Gk([new kr(O)]),kp:M(h)};return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:S,slotFulfillmentTriggers:J,slotExpirationTriggers:p,clientMetadata:new Gk([new K_(O)])}}; VLJ=function(U,O,M,S,p,h){O=p6(U,O,M,S);if(O instanceof L)return O;var J=O instanceof iW?new kAW(U.U,M,O.U):null;S=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER");var f=[new oq(U.U,S)];U=[new EZ(U.U,M),new k3(U.U,S)];h=h({slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:O,slotFulfillmentTriggers:f,slotExpirationTriggers:U},J);return h instanceof lo?new L(h):{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:f,slotExpirationTriggers:U, JZ:"core",clientMetadata:new Gk([new K_(h)]),adSlotLoggingData:p}}; E5m=function(U,O,M,S){var p=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER"),h=new Y3(U.U,O),J=[new Ok(U.U,p)];U=[new EZ(U.U,O),new k3(U.U,p)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(S({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:U}))]),adSlotLoggingData:M}}; LvJ=function(U,O,M,S){var p=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER");M=new P8(U.U,M);var h=[new oq(U.U,p)],J=[new k3(U.U,p),new EZ(U.U,O)];h={slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:M,slotFulfillmentTriggers:h,slotExpirationTriggers:J};return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:[new oq(U.U,p)],slotExpirationTriggers:[new EZ(U.U,O),new k3(U.U,p)],JZ:"core",clientMetadata:new Gk([new K_(S(h))])}}; rJy=function(U,O,M,S,p){var h=N8(U.V.get(),"SLOT_TYPE_IN_PLAYER");M=new Iq(U.U,S,M);S=[new oq(U.U,h)];U=[new EZ(U.U,O)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:S,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(p({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:M,slotFulfillmentTriggers:S,slotExpirationTriggers:U}))])}}; Xf4=function(U,O,M,S,p,h){var J=N8(U.V.get(),O);return hW(U,J,O,new P8(U.U,S),[new EZ(U.U,M),new k3(U.U,J),new nn(U.U,S,["error"])],p,h)}; CGy=function(U,O,M,S,p,h,J){var f=N8(U.V.get(),O);return hW(U,f,O,new nn(U.U,p,["normal"]),[new EZ(U.U,M),new k3(U.U,f),new nn(U.U,S,["error"])],h,J)}; I7e=function(U,O,M,S,p){var h=N8(U.V.get(),O);return hW(U,h,O,new Y3(U.U,M),[new EZ(U.U,M),new k3(U.U,h)],S,p)}; ZQ7=function(U,O,M,S,p){M=M?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var h=N8(U.V.get(),M);O=new Y3(U.U,O);var J=[new oq(U.U,h)];U=[new k3(U.U,h)];return{slotId:h,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:J,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(p({slotId:h,slotType:M,slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:O,slotFulfillmentTriggers:J,slotExpirationTriggers:U}))]),adSlotLoggingData:S}}; OQw=function(U,O,M,S){var p=N8(U.V.get(),"SLOT_TYPE_PLAYER_BYTES"),h=new qg(U.U),J=[new Ok(U.U,p)];U=[new EZ(U.U,O)];return{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(S({slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:U})),new uX({})]),adSlotLoggingData:M}}; y3W=function(U,O){return c3e(U.vA.get())?new nn(U.U,O,["normal","error","skipped"]):new nn(U.U,O,["normal"])}; l_g=function(U,O,M,S,p){O=y3W(U,O);U=HM(U,O,M);p=p({slotId:U.slotId,slotType:U.slotType,slotPhysicalPosition:U.slotPhysicalPosition,slotEntryTrigger:U.slotEntryTrigger,slotFulfillmentTriggers:U.slotFulfillmentTriggers,slotExpirationTriggers:U.slotExpirationTriggers,JZ:U.JZ});return p instanceof L?p:{Kd:Object.assign({},U,{clientMetadata:new Gk([new K_(p.layout)]),adSlotLoggingData:S}),Ge:p.Ge}}; GWy=function(U,O,M,S,p,h,J){M=fWJ(U,O,M,S);if(M instanceof L)return M;J=J({slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers,JZ:M.JZ});if(J instanceof L)return J;S=[new Sn(DD(O)),new K_(J.layout),new hu({SM:U.SM(O)})];h&&S.push(new Uq({}));return{Kd:{slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:z8(U, O,M.slotId,M.slotEntryTrigger),slotFulfillmentTriggers:cM(U,O,M.slotId,M.slotFulfillmentTriggers),slotExpirationTriggers:M.slotExpirationTriggers,JZ:M.JZ,clientMetadata:new Gk(S),adSlotLoggingData:p},Ge:J.Ge}}; z8=function(U,O,M,S){return U.vA.get().l$(DD(O))?new Rq(U.U,M):S}; cM=function(U,O,M,S){return U.vA.get().l$(DD(O))?[new Ok(U.U,M)]:S}; HM=function(U,O,M){var S=N8(U.V.get(),"SLOT_TYPE_PLAYER_BYTES"),p=[new oq(U.U,S)];U=[new k3(U.U,S),new EZ(U.U,M)];return{slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:p,slotExpirationTriggers:U,JZ:"core"}}; fWJ=function(U,O,M,S){O=p6(U,O,M,S);return O instanceof L?O:HM(U,O,M)}; riy=function(U,O,M,S,p,h){var J=N8(U.V.get(),"SLOT_TYPE_FORECASTING");O=p6(U,O,M,S);if(O instanceof L)return O;S=[new oq(U.U,J)];U=[new k3(U.U,J),new EZ(U.U,M)];return{slotId:J,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:S,slotExpirationTriggers:U,JZ:"core",clientMetadata:new Gk([new K_(h({slotId:J,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:O,slotFulfillmentTriggers:S,slotExpirationTriggers:U}))]),adSlotLoggingData:p}}; UMw=function(U,O,M,S,p){var h=!O.hideCueRangeMarker;switch(O.kind){case "AD_PLACEMENT_KIND_START":return new Y3(U.U,M);case "AD_PLACEMENT_KIND_MILLISECONDS":return U=t1m(O,S),U instanceof L?U:p(U.sC,h);case "AD_PLACEMENT_KIND_END":return new AT(U.U,M,h);default:return new L("Cannot construct entry trigger",{kind:O.kind})}}; wRJ=function(U,O,M,S,p){return UMw(U,O,M,S,function(h,J){return new o6w(U.U,M,h,J,p)})}; p6=function(U,O,M,S){return UMw(U,O,M,S,function(p,h){return new iW(U.U,M,p,h)})}; hW=function(U,O,M,S,p,h,J){U=[new Ok(U.U,O)];return{slotId:O,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:S,slotFulfillmentTriggers:U,slotExpirationTriggers:p,JZ:"core",clientMetadata:new Gk([new K_(J({slotId:O,slotType:M,slotPhysicalPosition:1,JZ:"core",slotEntryTrigger:S,slotFulfillmentTriggers:U,slotExpirationTriggers:p}))]),adSlotLoggingData:h}}; JW=function(U,O){g.C.call(this);this.vA=U;this.U=O;this.eventCount=0}; y2=function(U,O,M,S){JW.call(this,U,O);this.vA=U;this.qL=M;this.context=S}; f6=function(){this.U=new Map}; GB=function(U,O){var M=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=U;this.result=O.result;this.error=O.error;O.promise&&O.promise.then(function(S){FF(M,S)},function(S){lN(M,S)})}; jA=function(U){if($D(U)){if(U instanceof GB)return U;if(TB(U))return new GB("wait",{promise:U})}return new GB("done",{result:U})}; eA=function(){return new GB("wait",{})}; HZ=function(U){return new GB("fail",{error:U})}; zB=function(U){try{return jA(U())}catch(O){return HZ(O)}}; D1=function(U,O){var M=eA();U.onSuccess.push(function(S){try{var p=O(S);FF(M,p)}catch(h){lN(M,h)}}); U.onFailure.push(function(S){lN(M,S)}); cZ(U);return M}; dx=function(U,O){var M=eA();U.onSuccess.push(function(S){FF(M,S)}); U.onFailure.push(function(S){try{var p=O(S);FF(M,p)}catch(h){lN(M,h)}}); cZ(U);return M}; Oi5=function(U,O){var M=eA();U.onSuccess.push(function(S){try{O(),FF(M,S)}catch(p){lN(M,p)}}); U.onFailure.push(function(S){try{O(),lN(M,S)}catch(p){lN(M,p)}}); cZ(U)}; FF=function(U,O){if($D(O)){if(TB(O)){O.then(function(M){FF(U,M)},function(M){lN(U,M)}); return}if(O instanceof GB){D1(O,function(M){FF(U,M)}); dx(O,function(M){lN(U,M)}); return}}U.currentState="done";U.result=O;cZ(U)}; lN=function(U,O){U.currentState="fail";U.error=O;cZ(U)}; cZ=function(U){if(U.currentState==="done"){var O=U.onSuccess;U.onSuccess=[];U.onFailure=[];O=g.D(O);for(var M=O.next();!M.done;M=O.next())M=M.value,M(U.result)}else if(U.currentState==="fail")for(O=U.onFailure,U.onSuccess=[],U.onFailure=[],O=g.D(O),M=O.next();!M.done;M=O.next())M=M.value,M(U.error)}; gGW=function(U){return function(){return sLy(U.apply(this,g.m4.apply(0,arguments)))}}; sLy=function(U){return zB(function(){return WZ(U,U.next())})}; WZ=function(U,O){return O.done?jA(O.value):dx(D1(O.value.bK,function(M){return WZ(U,U.next(M))}),function(M){return WZ(U,U.throw(M))})}; Mne=function(U,O){if(U.length===0)return jA(NaN);var M=eA(),S=U.length;U.forEach(function(p,h){Oi5(jA(p),function(){M.currentState==="wait"&&(O!==void 0&&O(h)&&M.currentState==="wait"?M.resolve(h):(--S,S===0&&M.resolve(NaN)))})}); return M}; SqJ=function(U){return U.map(function(O){return jA(O)})}; vZ=function(U){var O=U.hours||0;var M=U.minutes||0,S=U.seconds||0;O=S+M*60+O*3600+(U.days||0)*86400+(U.weeks||0)*604800+(U.months||0)*2629800+(U.years||0)*31557600;O<=0?O={hours:0,minutes:0,seconds:0}:(U=O,O=Math.floor(U/3600),U%=3600,M=Math.floor(U/60),S=Math.floor(U%60),O={hours:O,minutes:M,seconds:S});var p=O.hours===void 0?0:O.hours;M=O.minutes===void 0?0:O.minutes;U=O.seconds===void 0?0:O.seconds;S=p>0;O=[];if(S){p=(new Intl.NumberFormat("en-u-nu-latn")).format(p);var h=["fr"],J="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(" "); p="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(NG)?p.replace(",","\u00a0"):h.includes(NG)?p.replace(",","\u202f"):J.includes(NG)?p.replace(",","."):p;O.push(p)}S=S===void 0?!1:S;M=(["af","be","lt"].includes(NG)||S)&&M<10?pFU().format(M):(new Intl.NumberFormat("en-u-nu-latn")).format(M);O.push(M);M=pFU().format(U);O.push(M);M=":";"da fi id si sr sr-Latn".split(" ").includes(NG)&&(M=".");return O.join(M)}; pFU=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; hN7=function(U,O){var M,S;U=((M=U.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(S=M.videoAuthorizationToken)==null?void 0:S.credentialTransferTokens)||[];for(M=0;MO;U=M}else U=!1;return U}; NL7=function(U){U=U.split(gW[2]);qG.Zr(U,68);qG.MN(U,80);qG.e2(U,3);qG.MN(U,20);qG.Zr(U,9);qG.MN(U,18);qG.e2(U,1);qG.MN(U,49);qG.e2(U,3);return U.join(gW[2])}; g.iN=function(U,O){return U.lU+"timedtext_video?ref=player&v="+O.videoId}; g.vGm=function(U){var O=this;this.videoData=U;U={};this.U=(U.c1a=function(){var M=[];if(g.XF.isInitialized()){var S="";O.videoData&&O.videoData.Nd&&(S=O.videoData.Nd+("&r1b="+O.videoData.clientPlaybackNonce));var p={};S=(p.atr_challenge=S,p);Ut("bg_v",void 0,"player_att");(S=WSw(S))?(Ut("bg_s",void 0,"player_att"),M.push("r1a="+S)):(Ut("bg_e",void 0,"player_att"),M.push("r1c=2"))}else Ut("bg_e",void 0,"player_att"),window.trayride||window.botguard?M.push("r1c=1"):M.push("r1c=4");M.push("r1d="+g.XF.getState()); return M.join("&")},U.c6a=function(M){return"r6a="+(Number(M.c)^zE())},U.c6b=function(M){return"r6b="+(Number(M.c)^Number(g.wZ("CATSTAT",0)))},U); this.videoData&&this.videoData.Nd?this.HD=F2(this.videoData.Nd):this.HD={}}; g.BLg=function(U){if(U.videoData&&U.videoData.Nd){for(var O=[U.videoData.Nd],M=g.D(Object.keys(U.U)),S=M.next();!S.done;S=M.next())S=S.value,U.HD[S]&&U.U[S]&&(S=U.U[S](U.HD))&&O.push(S);return O.join("&")}return null}; g.Z1=function(U,O){dM7(U,{GJL:g.DF(O.experiments,"bg_vm_reinit_threshold"),cspNonce:O.cspNonce,lU:O.lU||""})}; xMm=function(){var U=XMLHttpRequest.prototype.fetch;return!!U&&U.length===3}; RNy=function(U){bim=2592E3*(U||1)}; K6=function(U){U=U===void 0?bim:U;if(U>0&&!(EhJ()>(0,g.nM)()-U*1E3))return 0;U=g.ZO("yt-player-quality");if(typeof U==="string"){if(U=g.ai[U],U>0)return U}else if(U instanceof Object)return U.quality;return 0}; rx=function(){var U=g.ZO("yt-player-proxima-pref");return U==null?null:U}; tnW=function(){var U=g.ZO("yt-player-quality");if(U instanceof Object&&U.quality&&U.previousQuality){if(U.quality>U.previousQuality)return 1;if(U.quality0&&O[0]?U.getAutoplayPolicy(O[0]):U.getAutoplayPolicy("mediaelement");if(nG4[M])return nG4[M]}}catch(S){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; wx=function(U){return U.DD||U.RL||U.mutedAutoplay}; QLU=function(U,O){return wx(U)?O!==1&&O!==2&&O!==0?"AUTOPLAY_STATUS_UNAVAILABLE":U.Jp?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; CoU=function(U,O,M){var S=O.J();U.thirdParty||(U.thirdParty={});S.ancestorOrigins&&(U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{ancestorOrigins:S.ancestorOrigins}));S.T("embeds_enable_autoplay_and_visibility_signals")&&(S.u6!=null&&(U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(S.u6)})),S.f9&&(U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{visibilityFractionSource:S.f9})), U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:kD(),autoplayIntended:wx(O),autoplayStatus:QLU(O,M)}))}; qqg=function(U,O){Mf(U,2,O.xr,UH,3);Mf(U,3,O.oH,XF7,3);sa(U,4,O.onesieUstreamerConfig);sa(U,9,O.Y_);Mf(U,10,O.Bw,OH,3);Mf(U,15,O.reloadPlaybackParams,u57,3)}; Zi5=function(U,O){Mf(U,1,O.formatId,sH,3);Ua(U,2,O.startTimeMs);Ua(U,3,O.durationMs);Ua(U,4,O.Qc);Ua(U,5,O.gL);Mf(U,9,O.WGZ,ii5,3);Mf(U,11,O.qqA,gt,1);Mf(U,12,O.UY,gt,1)}; KSq=function(U,O){gb(U,1,O.videoId);Ua(U,2,O.lmt)}; ii5=function(U,O){if(O.Rr)for(var M=0;M>31));Ua(U,16,O.rGy);Ua(U,17,O.detailedNetworkType);Ua(U,18,O.oe);Ua(U,19,O.wX);Ua(U,21,O.H6a);Ua(U,23,O.jD);Ua(U,28,O.A$);Ua(U,29,O.piA);Ua(U,34,O.visibility);M=O.playbackRate;if(M!==void 0){var S=new ArrayBuffer(4);(new Float32Array(S))[0]=M;M=(new Uint32Array(S))[0];if(M!==void 0)for(wM(U,285),kZ(U,4),S=0;S<4;)U.view.setUint8(U.pos,M&255),M>>=8,U.pos+=1,S+=1}Ua(U,36,O.ij); Mf(U,38,O.mediaCapabilities,EGw,3);Ua(U,39,O.gXc);Ua(U,40,O.TH);Ua(U,44,O.playerState);Oa(U,46,O.Hg);Ua(U,48,O.Rg);Ua(U,50,O.H$);Ua(U,51,O.p$);Ua(U,54,O.s7);if(O.Sh)for(M=0;M>31));gb(U,2,O.message)}; gYg=function(U,O){Ua(U,1,O.clientState);Mf(U,2,O.ujg,OZi,1)}; U8g=function(U,O){sa(U,1,O.aVn);Mf(U,2,O.wNy,sFJ,3);Mf(U,3,O.coldStartInfo,gYg,3)}; wFg=function(U,O){Ua(U,1,O.type);sa(U,2,O.value)}; kkw=function(U,O){gb(U,1,O.hl);gb(U,12,O.deviceMake);gb(U,13,O.deviceModel);Ua(U,16,O.clientName);gb(U,17,O.clientVersion);gb(U,18,O.osName);gb(U,19,O.osVersion)}; M77=function(U,O){gb(U,1,O.name);gb(U,2,O.value)}; S7i=function(U,O){gb(U,1,O.url);if(O.zd)for(var M=0;M1&&(this.G=U[1]==="2")}; yT=function(U,O,M,S,p){this.V=U;this.U=O;this.B=M;this.reason=S;this.a_=p===void 0?0:p}; g.fS=function(U,O,M,S){return new yT(g.ai[U]||0,g.ai[O]||0,M,S)}; lJ=function(U){if(Fr&&U.a_)return!1;var O=g.ai.auto;return U.V===O&&U.U===O}; $c=function(U){return GZ[U.U||U.V]||"auto"}; ZZW=function(U,O){O=g.ai[O];return U.V<=O&&(!U.U||U.U>=O)}; TZ=function(U){return"["+U.V+"-"+U.U+", override: "+(U.B+", reason: "+U.reason+"]")}; jg=function(U,O,M){this.videoInfos=U;this.U=O;this.audioTracks=[];if(this.U){U=new Set;M==null||M({ainfolen:this.U.length});O=g.D(this.U);for(var S=O.next();!S.done;S=O.next())if(S=S.value,!S.ZN||U.has(S.ZN.id)){var p=void 0,h=void 0,J=void 0;(J=M)==null||J({atkerr:!!S.ZN,itag:S.itag,xtag:S.U,lang:((p=S.ZN)==null?void 0:p.name)||"",langid:((h=S.ZN)==null?void 0:h.id)||""})}else p=new g.Jc(S.id,S.ZN),U.add(S.ZN.id),this.audioTracks.push(p);M==null||M({atklen:this.audioTracks.length})}}; eg=function(){g.C.apply(this,arguments);this.U=null}; EYq=function(U,O,M,S,p,h,J){if(U.U)return U.U;var f={},F=new Set,l={};if(Hs(S)){for(var G in S.U)S.U.hasOwnProperty(G)&&(U=S.U[G],l[U.info.zY]=[U.info]);return l}G=KEe(O,S,f);h&&p({aftsrt:zZ(G)});for(var T={},e=g.D(Object.keys(G)),H=e.next();!H.done;H=e.next()){H=H.value;for(var z=g.D(G[H]),W=z.next();!W.done;W=z.next()){W=W.value;var v=W.itag,x=void 0,t=H+"_"+(((x=W.video)==null?void 0:x.fps)||0);T.hasOwnProperty(t)?T[t]===!0?l[H].push(W):f[v]=T[t]:(x=cs(O,W,M,S.isLive,F),x!==!0?(J.add(H),f[v]=x, x==="disablevp9hfr"&&(T[t]="disablevp9hfr")):(l[H]=l[H]||[],l[H].push(W),T[t]=!0))}}h&&p({bfflt:zZ(l)});for(var m in l)l.hasOwnProperty(m)&&(S=m,l[S]&&l[S][0].i$()&&(l[S]=l[S],l[S]=rRU(O,l[S],f),l[S]=an1(l[S],f)));h&&Object.keys(f).length>0&&p({rjr:AA(f)});O=g.D(F.values());for(S=O.next();!S.done;S=O.next())(S=M.V.get(S.value))&&--S.Zu;h&&p({aftflt:zZ(l)});U.U=g.A5(l,function(P){return!!P.length}); return U.U}; V74=function(U,O,M,S,p,h,J,f){f=f===void 0?!1:f;if(O.cB&&J&&J.length>1&&!(O.Ov>0||O.Z)){for(var F=O.V||!!p,l=F&&O.HV?h:void 0,G=KEe(O,S),T=[],e=[],H={},z=0;z0&&e&&p&&(G=[J,M],v=p.concat(e).filter(function(x){return x})); if(v.length&&!O.k_){Ws(v,G);if(F){F=[];O=g.D(v);for(S=O.next();!S.done;S=O.next())F.push(S.value.itag);h({hbdfmt:F.join(".")})}return qv(new jg(v,U,l))}v=po1(O);v=g.VD(v,f);if(!v){if(T[J])return h=T[J],Ws(h),qv(new jg(h,U,l));F&&h({novideo:1});return ux()}O.Oj&&(v==="1"||v==="1h")&&T[M]&&(J=NI(T[v]),G=NI(T[M]),G>J?v=M:G===J&&hDq(T[M])&&(v=M));v==="9"&&T.h&&NI(T.h)>NI(T["9"])&&(v="h");O.Qa&&S.isLive&&v==="("&&T.H&&NI(T["("])<1440&&(v="H");F&&h({vfmly:vs(v)});O=T[v];if(!O.length)return F&&h({novfmly:vs(v)}), ux();Ws(O);return qv(new jg(O,U,l))}; kO1=function(U,O){var M=!(!U.m&&!U.M),S=!(!U.mac3&&!U.MAC3),p=!(!U.meac3&&!U.MEAC3);U=!(!U.i&&!U.I);O.FI=U;return M||S||p||U}; hDq=function(U){U=g.D(U);for(var O=U.next();!O.done;O=U.next())if(O=O.value,O.itag&&JAw.has(O.itag))return!0;return!1}; UXg=function(U){U=g.D(U);for(var O=U.next();!O.done;O=U.next())if(O.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; vs=function(U){switch(U){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return U}}; zZ=function(U){var O=[],M;for(M in U)if(U.hasOwnProperty(M)){var S=M;O.push(vs(S));S=g.D(U[S]);for(var p=S.next();!p.done;p=S.next())O.push(p.value.itag)}return O.join(".")}; oYJ=function(U,O,M,S,p,h){var J={},f={};g.mZ(O,function(F,l){F=F.filter(function(G){var T=G.itag;if(!G.IW)return f[T]="noenc",!1;if(h.AG&&G.zY==="(h"&&h.r7)return f[T]="lichdr",!1;if(!U.X&&G.zY==="1e")return f[T]="noav1enc",!1;if(G.zY==="("||G.zY==="(h"){if(U.B&&M&&M.flavor==="widevine"){var e=G.mimeType+"; experimental=allowed";(e=!!G.IW[M.flavor]&&!!M.U[e])||(f[T]=G.IW[M.flavor]?"unspt":"noflv");return e}if(!Bs(U,xc.CRYPTOBLOCKFORMAT)&&!U.Ca||U.sA)return f[T]=U.sA?"disvp":"vpsub",!1}return M&&G.IW[M.flavor]&& M.U[G.mimeType]?!0:(f[T]=M?G.IW[M.flavor]?"unspt":"noflv":"nosys",!1)}); F.length&&(J[l]=F)}); S&&Object.entries(f).length&&p({rjr:AA(f)});return J}; an1=function(U,O){var M=IA(U,function(S,p){return p.video.fps>32?Math.min(S,p.video.width):S},Infinity); M32||S.video.widthU.D)return"max"+U.D;if(U.pE&&O.zY==="h"&&O.video&&O.video.qualityOrdinal>1080)return"blkhigh264";if(O.zY==="(h"&&!M.D)return"enchdr";if((S===void 0?0:S)&&Me(O)&&!U.HA)return"blk51live";if((O.zY==="MAC3"||O.zY==="mac3")&&!U.G)return"blkac3";if((O.zY==="MEAC3"||O.zY==="meac3")&&!U.C)return"blkeac3";if(O.zY==="M"||O.zY==="m")return"blkaac51"; if((O.zY==="so"||O.zY==="sa")&&!U.ol)return"blkamb";if(!U.AG&&j8e(O)&&(!M.X||O.zY!=="1e"))return"cbc";if(!M.X&&j8e(O)&&O.zY==="1e")return"cbcav1";if((O.zY==="i"||O.zY==="I")&&!U.hG)return"blkiamf";if(O.itag==="774"&&!U.sA)return"blkouh";var h,J;if(U.Rl&&(O.zY==="1"||O.zY==="1h"||M.X&&O.zY==="1e")&&((h=O.video)==null?0:h.qualityOrdinal)&&((J=O.video)==null?void 0:J.qualityOrdinal)>U.Rl)return"av1cap";if((S=M.V.get(O.zY))&&S.Zu>0)return p.add(O.zY),"byerr";var f;if((f=O.video)==null?0:f.fps>32){if(!M.QP&& !Bs(M,xc.FRAMERATE))return"capHfr";if(U.NL&&O.video.qualityOrdinal>=4320)return"blk8khfr";if(w9(O)&&U.sX&&O.IW&&O.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(U.a_&&O.a_>U.a_)return"ratecap";U=yAq(M,O);return U!==!0?U:!0}; Ws=function(U,O){O=O===void 0?[]:O;g.lH(U,function(M,S){var p=S.a_-M.a_;if(!M.i$()||!S.i$())return p;var h=S.video.height*S.video.width-M.video.height*M.video.width;!h&&O&&O.length>0&&(M=O.indexOf(M.zY)+1,S=O.indexOf(S.zY)+1,h=M===0||S===0?S||-1:M-S);h||(h=p);return h})}; g.bJ=function(U,O){this.V=U;this.X=O===void 0?!1:O;this.B=this.path=this.scheme=gW[2];this.U={};this.url=gW[2]}; tc=function(U){Rv(U);return U.B}; Yc=function(U){return U.V?U.V.startsWith(gW[21]):U.scheme===gW[21]}; fje=function(U){Rv(U);return g.Py(U.U,function(O){return O!==null})}; Ac=function(U){Rv(U);var O=decodeURIComponent(U.get(gW[8])||gW[2]).split(gW[24]);return U.path===gW[7]&&O.length>1&&!!O[1]}; Iv=function(U,O){O=O===void 0?!1:O;Rv(U);if(U.path!==gW[7]){var M=U.clone();M.set(gW[43],gW[3]);return M}var S=U.kI();M=new g.x7(S);var p=U.get(gW[6]),h=decodeURIComponent(U.get(gW[8])||gW[2]).split(gW[24]);if(p&&h&&h.length>1&&h[1])return S=M.U,U=S.replace(/^[^.]*/,gW[2]),g.Rt(M,(S.indexOf(gW[29])===0?gW[29]:gW[23])+p+gW[28]+h[1]+U),M=new g.bJ(M.toString()),M.set(gW[36],gW[3]),M;if(O)return M=U.clone(),M.set(gW[36],gW[3]),M;p=M.U.match(gW[38]);M.U.match(gW[13])?(g.Rt(M,gW[44]),S=M.toString()):M.U.match(gW[37])? (g.Rt(M,gW[41]),S=M.toString()):(M=p_W(S),JR(M)&&(S=M));M=new g.bJ(S);M.set(gW[39],gW[3]);p&&M.set(gW[27],gW[11]);return M}; Rv=function(U){if(U.V){if(!JR(U.V)&&!U.V.startsWith(gW[21]))throw new g.sT(gW[40],U.V);var O=g.nx(U.V);U.scheme=O.G;U.B=O.U+(O.B!=null?gW[20]+O.B:gW[2]);var M=O.V;if(M.startsWith(gW[7]))U.path=gW[7],M=M.slice(14);else if(M.startsWith(gW[32]))U.path=gW[32],M=M.slice(13);else if(M.startsWith(gW[46])){var S=M.indexOf(gW[10],12),p=M.indexOf(gW[10],S+1);S>0&&p>0?(U.path=M.slice(0,p),M=M.slice(p+1)):(U.path=M,M=gW[2])}else U.path=M,M=gW[2];S=U.U;U.U=FaJ(M);Object.assign(U.U,lje(O.X.toString()));Object.assign(U.U, S);U.U.file===gW[22]&&(delete U.U.file,U.path+=gW[15]);U.V=gW[2];U.url=gW[2];U.X&&(O=PMi(),Rv(U),M=U.U[O]||null)&&(M=GFw[0](M),U.set(O,M),U.X||PMi(gW[2]))}}; $Xq=function(U){Rv(U);var O=U.scheme+(U.scheme?gW[0]:gW[9])+U.B+U.path;if(fje(U)){var M=[];g.mZ(U.U,function(S,p){S!==null&&M.push(p+gW[1]+S)}); O+=gW[12]+M.join(gW[19])}return O}; FaJ=function(U){U=U.split(gW[10]);var O=0;U[0]||O++;for(var M={};O0?T9w(O,S.slice(0,p),S.slice(p+1)):S&&(O[S]=gW[2])}return O}; T9w=function(U,O,M){if(O===gW[16]){var S;(S=M.indexOf(gW[1]))>=0?(O=gW[5]+M.slice(0,S),M=M.slice(S+1)):(S=M.indexOf(gW[4]))>=0&&(O=gW[5]+M.slice(0,S),M=M.slice(S+3))}U[O]=M}; Ps=function(U){var O=g.q(U,jim)||U.signatureCipher;U={QJ:!1,yY:gW[2],Lz:gW[2],s:gW[2]};if(!O)return U;O=F2(O);U.QJ=!0;U.yY=O.url;U.Lz=O.sp;U.s=O.s;return U}; nS=function(U,O,M,S,p,h,J,f,F){this.Sc=U;this.startTime=O;this.duration=M;this.ingestionTime=S;this.sourceURL=p;this.LO=F;this.endTime=O+M;this.U=J||0;this.range=h||null;this.pending=f||!1;this.LO=F||null}; g.QT=function(){this.segments=[];this.U=null;this.V=!0;this.B=""}; eDy=function(U,O){if(O>U.zZ())U.segments=[];else{var M=Lh(U.segments,function(S){return S.Sc>=O},U); M>0&&U.segments.splice(0,M)}}; CS=function(U,O,M,S,p){p=p===void 0?!1:p;this.data=U;this.offset=O;this.size=M;this.type=S;this.U=(this.V=p)?0:8;this.dataOffset=this.offset+this.U}; Xr=function(U){var O=U.data.getUint8(U.offset+U.U);U.U+=1;return O}; uJ=function(U){var O=U.data.getUint16(U.offset+U.U);U.U+=2;return O}; qI=function(U){var O=U.data.getInt32(U.offset+U.U);U.U+=4;return O}; iJ=function(U){var O=U.data.getUint32(U.offset+U.U);U.U+=4;return O}; Zw=function(U){var O=U.data;var M=U.offset+U.U;O=O.getUint32(M)*4294967296+O.getUint32(M+4);U.U+=8;return O}; KS=function(U,O){O=O===void 0?NaN:O;if(isNaN(O))var M=U.size;else for(M=U.U;M1?Math.ceil(p*O):Math.floor(p*O))}U.skip(1);M=Xr(U)<<16|uJ(U);if(M&256){S=M&1;p=M&4;var h=M&512,J=M&1024,f=M&2048;M=iJ(U);S&&U.skip(4);p&&U.skip(4);S=(h?4:0)+(J?4:0)+(f?4:0);for(p=0;p1?Math.ceil(J*O):Math.floor(J*O)),U.skip(S)}}}; Ui=function(U){U=new DataView(U.buffer,U.byteOffset,U.byteLength);return(U=g.kc(U,0,1836476516))?g.wt(U):NaN}; bP4=function(U){var O=g.kc(U,0,1937011556);if(!O)return null;O=Oi(U,O.dataOffset+8,1635148593)||Oi(U,O.dataOffset+8,1635135537);if(!O)return null;var M=Oi(U,O.dataOffset+78,1936995172),S=Oi(U,O.dataOffset+78,1937126244);if(!S)return null;O=null;if(M)switch(M.skip(4),Xr(M)){default:O=0;break;case 1:O=2;break;case 2:O=1;break;case 3:O=255}var p=M=null,h=null;if(S=Oi(U,S.dataOffset,1886547818)){var J=Oi(U,S.dataOffset,1886546020),f=Oi(U,S.dataOffset,2037673328);if(!f&&(f=Oi(U,S.dataOffset,1836279920), !f))return null;J&&(J.skip(4),M=qI(J)/65536,h=qI(J)/65536,p=qI(J)/65536);U=HPy(f);U=new DataView(U.buffer,U.byteOffset+8,U.byteLength-8);return new B9y(O,M,h,p,U)}return null}; Oi=function(U,O,M){for(;si(U,O);){var S=g2(U,O);if(S.type===M)return S;O+=S.size}return null}; g.kc=function(U,O,M){for(;si(U,O);){var S=g2(U,O);if(S.type===M)return S;O=Mu(S.type)?O+8:O+S.size}return null}; g.Sl=function(U){if(U.data.getUint8(U.dataOffset)){var O=U.data;U=U.dataOffset+4;O=O.getUint32(U)*4294967296+O.getUint32(U+4)}else O=U.data.getUint32(U.dataOffset+4);return O}; g2=function(U,O){var M=U.getUint32(O),S=U.getUint32(O+4);return new CS(U,O,M,S)}; g.wt=function(U){var O=U.data.getUint8(U.dataOffset)?20:12;return U.data.getUint32(U.dataOffset+O)}; RDi=function(U){U=new CS(U.data,U.offset,U.size,U.type,U.V);var O=Xr(U);U.skip(7);var M=iJ(U);if(O===0){O=iJ(U);var S=iJ(U)}else O=Zw(U),S=Zw(U);U.skip(2);for(var p=uJ(U),h=[],J=[],f=0;f122)return!1}return!0}; Mu=function(U){return U===1701082227||U===1836019558||U===1836019574||U===1835297121||U===1835626086||U===1937007212||U===1953653094||U===1953653099||U===1836475768}; t2e=function(U){U.skip(4);return{xzG:KS(U,0),value:KS(U,0),timescale:iJ(U),HXy:iJ(U),fSQ:iJ(U),id:iJ(U),ZI:KS(U),offset:U.offset}}; g.YO5=function(U){var O=Oi(U,0,1701671783);if(!O)return null;var M=t2e(O),S=M.xzG;M=ov(M.ZI);if(U=Oi(U,O.offset+O.size,1701671783))if(U=t2e(U),U=ov(U.ZI),M&&U){O=g.D(Object.keys(U));for(var p=O.next();!p.done;p=O.next())p=p.value,M[p]=U[p]}return M?new LS(M,S):null}; p9=function(U,O){for(var M=Oi(U,0,O);M;){var S=M;S.type=1936419184;S.data.setUint32(S.offset+4,1936419184);M=Oi(U,M.offset+M.size,O)}}; g.hC=function(U,O){for(var M=0,S=[];si(U,M);){var p=g2(U,M);p.type===O&&S.push(p);M=Mu(p.type)?M+8:M+p.size}return S}; mXy=function(U,O){var M=g.kc(U,0,1937011556),S=g.kc(U,0,1953654136);if(!M||!S||U.getUint32(M.offset+12)>=2)return null;var p=new DataView(O.buffer,O.byteOffset,O.length),h=g.kc(p,0,1937011556);if(!h)return null;O=p.getUint32(h.dataOffset+8);S=p.getUint32(h.dataOffset+12);if(S!==1701733217&&S!==1701733238)return null;S=new zDg(U.byteLength+O);rt(S,U,0,M.offset+12);S.data.setInt32(S.offset,2);S.offset+=4;rt(S,U,M.offset+16,M.size-16);rt(S,p,p.byteOffset+h.dataOffset+8,O);rt(S,U,M.offset+M.size,U.byteLength- (M.offset+M.size));M=g.D([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(p=M.next();!p.done;p=M.next())p=g.kc(U,0,p.value),S.data.setUint32(p.offset,p.size+O);U=g.kc(S.data,0,1953654136);S.data.setUint32(U.offset+16,2);return S.data}; AA4=function(U){var O=g.kc(U,0,1937011556);if(!O)return null;var M=U.getUint32(O.dataOffset+12);if(M!==1701733217&&M!==1701733238)return null;O=Oi(U,O.offset+24+(M===1701733217?28:78),1936289382);if(!O)return null;M=Oi(U,O.offset+8,1935894637);if(!M||U.getUint32(M.offset+12)!==1667392371)return null;O=Oi(U,O.offset+8,1935894633);if(!O)return null;O=Oi(U,O.offset+8,1952804451);if(!O)return null;M=new Uint8Array(16);for(var S=0;S<16;S++)M[S]=U.getInt8(O.offset+16+S);return M}; JC=function(U,O){this.U=U;this.pos=0;this.start=O||0}; yb=function(U){return U.pos>=U.U.byteLength}; $B=function(U,O,M){var S=new JC(M);if(!f9(S,U))return!1;S=Fi(S);if(!l6(S,O))return!1;for(U=0;O;)O>>>=8,U++;O=S.start+S.pos;var p=Ge(S,!0);S=U+(S.start+S.pos-O)+p;S=S>9?IjU(S-9,8):IjU(S-2,1);U=O-U;M.setUint8(U++,236);for(O=0;OM;p++)M=M*256+ze(U),S*=128;return O?M-S:M}; jl=function(U){var O=Ge(U,!0);U.pos+=O}; Qie=function(U){if(!l6(U,440786851,!0))return null;var O=U.pos;Ge(U,!1);var M=Ge(U,!0)+U.pos-O;U.pos=O+M;if(!l6(U,408125543,!1))return null;Ge(U,!0);if(!l6(U,357149030,!0))return null;var S=U.pos;Ge(U,!1);var p=Ge(U,!0)+U.pos-S;U.pos=S+p;if(!l6(U,374648427,!0))return null;var h=U.pos;Ge(U,!1);var J=Ge(U,!0)+U.pos-h,f=new Uint8Array(M+12+p+J),F=new DataView(f.buffer);f.set(new Uint8Array(U.U.buffer,U.U.byteOffset+O,M));F.setUint32(M,408125543);F.setUint32(M+4,33554431);F.setUint32(M+8,4294967295); f.set(new Uint8Array(U.U.buffer,U.U.byteOffset+S,p),M+12);f.set(new Uint8Array(U.U.buffer,U.U.byteOffset+h,J),M+12+p);return f}; c$=function(U){var O=U.pos;U.pos=0;var M=1E6;f9(U,[408125543,357149030,2807729])&&(M=Te(U));U.pos=O;return M}; CAy=function(U,O){var M=U.pos;U.pos=0;if(U.U.getUint8(U.pos)!==160&&!DS(U)||!l6(U,160))return U.pos=M,NaN;Ge(U,!0);var S=U.pos;if(!l6(U,161))return U.pos=M,NaN;Ge(U,!0);ze(U);var p=ze(U)<<8|ze(U);U.pos=S;if(!l6(U,155))return U.pos=M,NaN;S=Te(U);U.pos=M;return(p+S)*O/1E9}; DS=function(U){if(!Xoy(U)||!l6(U,524531317))return!1;Ge(U,!0);return!0}; Xoy=function(U){if(U.QB()){if(!l6(U,408125543))return!1;Ge(U,!0)}return!0}; f9=function(U,O){for(var M=0;M0){var S=lje(O.substring(M+1));g.mZ(S,function(p,h){this.set(h,p)},U); O=O.substring(0,M)}O=FaJ(O);g.mZ(O,function(p,h){this.set(h,p)},U)}; qO1=function(U){var O=U.base.kI(),M=[];g.mZ(U.U,function(p,h){M.push(h+"="+p)}); if(!M.length)return O;var S=M.join("&");U=fje(U.base)?"&":"?";return O+U+S}; W$=function(U,O){var M=new g.bJ(O);(O=M.get("req_id"))&&U.set("req_id",O);g.mZ(U.U,function(S,p){M.set(p,null)}); return M}; iP4=function(){this.X=this.B=this.U=this.timedOut=this.started=this.G=this.V=0}; Nu=function(U){U.G=(0,g.nM)();U.started=0;U.timedOut=0;U.U=0}; v$=function(U,O){var M=U.started+U.U*4;O&&(M+=U.B);M=Math.max(0,M-3);return Math.pow(1.6,M)}; B$=function(U,O){U[O]||(U[O]=new iP4);return U[O]}; xB=function(U){this.Z=this.D=this.G=this.V=0;this.Y=this.C=!1;this.U=U;this.B=U.clone()}; ZPi=function(U,O,M){if(Yc(U.U))return!1;var S=B$(M,tc(U.U));if(S.timedOut<1&&S.U<1)return!1;S=S.timedOut+S.U;U=b6(U,O);M=B$(M,tc(U));return M.timedOut+M.U+01?O=O.IB:(M=B$(M,tC(U,U.UU(O,M),O)),O=Math.max(U.G,M.timedOut)+O.Pv*(U.V-U.G)+.25*U.D,O=O>3?1E3*Math.pow(1.6,O-3):0);return O===0?!0:U.Z+O<(0,g.nM)()}; Kae=function(U,O,M){U.U.set(O,M);U.B.set(O,M);U.X&&U.X.set(O,M)}; rAy=function(U,O,M,S,p){++U.V;O&&++U.G;tc(M.base).startsWith("redirector.")&&(U.U=U.B.clone(),delete U.X,S.Sm&&delete p[tc(U.U)])}; mc=function(U){return U?(U.itag||"")+";"+(U.lmt||0)+";"+(U.xtags||""):""}; AC=function(U,O,M,S){this.initRange=M;this.indexRange=S;this.U=null;this.B=!1;this.C=0;this.X=this.Ko=this.V=null;this.info=O;this.uM=new xB(U)}; If=function(U,O){this.start=U;this.end=O;this.length=O-U+1}; P$=function(U){U=U.split("-");var O=Number(U[0]),M=Number(U[1]);if(!isNaN(O)&&!isNaN(M)&&U.length===2&&(U=new If(O,M),!isNaN(U.start)&&!isNaN(U.end)&&!isNaN(U.length)&&U.length>0))return U}; n9=function(U,O){return new If(U,U+O-1)}; ajJ=function(U){return U.end==null?{start:String(U.start)}:{start:String(U.start),end:String(U.end)}}; Qb=function(U){if(!U)return new If(0,0);var O=Number(U.start);U=Number(U.end);if(!isNaN(O)&&!isNaN(U)&&(O=new If(O,U),O.length>0))return O}; C9=function(U,O,M,S,p,h,J,f,F,l,G,T){S=S===void 0?"":S;this.type=U;this.U=O;this.range=M;this.source=S;this.zA=G;this.clipId=T===void 0?"":T;this.Z=[];this.D="";this.Sc=-1;this.yP=this.ol=0;this.D=S;this.Sc=p>=0?p:-1;this.startTime=h||0;this.duration=J||0;this.V=f||0;this.B=F>=0?F:this.range?this.range.length:NaN;this.G=this.range?this.V+this.B===this.range.length:l===void 0?!!this.B:l;this.range?(this.X=this.startTime+this.duration*this.V/this.range.length,this.Y=this.duration*this.B/this.range.length, this.C=this.X+this.Y):EFy(this)}; EFy=function(U){U.X=U.startTime;U.Y=U.duration;U.C=U.X+U.Y}; La5=function(U,O,M){var S=!(!O||O.U!==U.U||O.type!==U.type||O.Sc!==U.Sc);return M?S&&!!O&&(U.range&&O.range?O.range.end===U.range.end:O.range===U.range)&&O.V+O.B===U.V+U.B:S}; Xi=function(U){return U.type===1||U.type===2}; u6=function(U){return U.type===3||U.type===6}; qu=function(U,O){return U.U===O.U?U.range&&O.range?U.range.start+U.V+U.B===O.range.start+O.V:U.Sc===O.Sc?U.V+U.B===O.V:U.Sc+1===O.Sc&&O.V===0&&U.G:!1}; oFg=function(U,O){return U.Sc!==O.Sc&&O.Sc!==U.Sc+1||U.type!==O.type?!1:qu(U,O)?!0:Math.abs(U.X-O.X)<=1E-6&&U.Sc===O.Sc?!1:V25(U,O)}; V25=function(U,O){return qu(U,O)||Math.abs(U.C-O.X)<=1E-6||U.Sc+1===O.Sc&&O.V===0&&U.G?!0:!1}; i6=function(U){return U.Sc+(U.G?1:0)}; kFw=function(U){U.length===1||g.Aj(U,function(M){return!!M.range}); for(var O=1;O=O.range.start+O.V&&U.range.start+U.V+U.B<=O.range.start+O.V+O.B:U.Sc===O.Sc&&U.V>=O.V&&(U.V+U.B<=O.V+O.B||O.G)}; S6m=function(U,O){return U.U!==O.U?!1:U.type===4&&O.type===3&&U.U.Sv()?(U=U.U.D_(U),A6(U,function(M){return S6m(M,O)})):U.Sc===O.Sc&&!!O.B&&O.V+O.B>U.V&&O.V+O.B<=U.V+U.B}; K9=function(U,O){var M=O.Sc;U.D="updateWithSegmentInfo";U.Sc=M;if(U.startTime!==O.startTime||U.duration!==O.duration)U.startTime=O.startTime+U.ol,U.duration=O.duration,EFy(U)}; r2=function(U,O){var M=this;this.xp=U;this.X=this.U=null;this.G=this.Og=NaN;this.UU=this.requestId=null;this.BB={Gsc:function(){return M.range}}; this.uM=U[0].U.uM;this.V=O||"";this.xp[0].range&&this.xp[0].B>0&&(woW(U)?(this.range=kFw(U),this.B=this.range.length):(this.range=this.xp[this.xp.length-1].range,this.B=Uei(U)))}; af=function(U){return!Xi(U.xp[U.xp.length-1])}; Ei=function(U){return U.xp[U.xp.length-1].type===4}; g.L9=function(U,O,M){M=U.UU===null?U.uM.UU(O,M,U.xp[0].type):U.UU;if(U.U){O=M?Iv(U.U,O.wb):U.U;var S=new d2(O);S.get("alr")||S.set("alr","yes");U.V&&uWW(S,U.V)}else/http[s]?:\/\//.test(U.V)?S=new d2(new g.bJ(U.V)):(S=Rf(U.uM,M,O),U.V&&uWW(S,U.V));(O=U.range)?S.set("range",O.toString()):U.xp[0].U.Tl()&&U.xp.length===1&&U.xp[0].V&&S.set("range",U.xp[0].V+"-");U.requestId&&S.set("req_id",U.requestId);isNaN(U.Og)||S.set("headm",U.Og.toString());isNaN(U.G)||S.set("mffa",U.G+"ms");U.urlParams&&g.mZ(U.urlParams, function(p,h){S.set(h,p)}); return S}; p11=function(U){if(U.range)return U.B;U=U.xp[0];return Math.round(U.Y*U.U.info.a_)}; h9e=function(U,O){return Math.max(0,U.xp[0].X-O)}; Vb=function(U,O,M,S,p,h){h=h===void 0?0:h;AC.call(this,U,O,S,void 0);this.G=M;this.xV=h;this.index=p||new g.QT}; JOw=function(U,O,M,S,p){this.Sc=U;this.startSecs=O;this.PJ=M;this.U=S||NaN;this.V=p||NaN}; of=function(U,O,M){for(;U;U=U.parentNode)if(U.attributes&&(!M||U.nodeName===M)){var S=U.getAttribute(O);if(S)return S}return""}; kB=function(U,O){for(;U;U=U.parentNode){var M=U.getElementsByTagName(O);if(M.length>0)return M[0]}return null}; yOg=function(U){if(!U)return 0;var O=U.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return O?(Number(O[2])|0)*3600+(Number(O[4])|0)*60+(Number(O[6])|0):Number(U)|0}; ftg=function(U){return U.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?U+"Z":U}; w2=function(){this.U=[];this.V=null;this.C=0;this.B=[];this.G=!1;this.D="";this.X=-1}; Fpe=function(U){var O=U.B;U.B=[];return O}; lty=function(){this.X=[];this.U=null;this.V={};this.B={}}; jme=function(U,O){var M=[];O=Array.from(O.getElementsByTagName("SegmentTimeline"));O=g.D(O);for(var S=O.next();!S.done;S=O.next()){S=S.value;var p=S.parentNode.parentNode,h=null;p.nodeName==="Period"?h=GoJ(U):p.nodeName==="AdaptationSet"?(p=p.getAttribute("id")||p.getAttribute("mimetype")||"",h=$em(U,p)):p.nodeName==="Representation"&&(p=p.getAttribute("id")||"",h=TmW(U,p));if(h==null)return;h.update(S);g.SS(M,Fpe(h))}g.SS(U.X,M);sJe(U.X,function(J){return J.startSecs*1E3+J.U})}; e97=function(U){U.U&&(U.U.U=[]);g.mZ(U.V,function(O){O.U=[]}); g.mZ(U.B,function(O){O.U=[]})}; GoJ=function(U){U.U||(U.U=new w2);return U.U}; $em=function(U,O){U.V[O]||(U.V[O]=new w2);return U.V[O]}; TmW=function(U,O){U.B[O]||(U.B[O]=new w2);return U.B[O]}; Oj=function(U){var O=U===void 0?{}:U;U=O.xV===void 0?0:O.xV;var M=O.i7===void 0?!1:O.i7;var S=O.wg===void 0?0:O.wg;var p=O.QM===void 0?0:O.QM;var h=O.d3===void 0?Infinity:O.d3;var J=O.ix===void 0?0:O.ix;var f=O.Dh===void 0?!1:O.Dh;O=O.wx===void 0?!1:O.wx;g.QT.call(this);this.pJ=this.mG=-1;this.TJ=U;this.wg=S;this.i7=M;this.QM=p;this.d3=h;this.ix=J;((this.Dh=f)||isFinite(h)&&this.d3>0)&&M&&Uj&&(this.V=!1,this.B="postLive");this.wx=O}; sj=function(U,O){return FN(U.segments,function(M){return O-M.Sc})}; gs=function(U,O,M){M=M===void 0?{}:M;Vb.call(this,U,O,"",void 0,void 0,M.xV||0);this.index=new Oj(M)}; M_=function(U,O,M){AC.call(this,U,O);this.G=M;U=this.index=new g.QT;U.V=!1;U.B="d"}; HOW=function(U,O,M){var S=U.index.An(O),p=U.index.getStartTime(O),h=U.index.getDuration(O);M?h=M=0:M=U.info.a_*h;return new r2([new C9(3,U,void 0,"otfCreateRequestInfoForSegment",O,p,h,0,M)],S)}; z9e=function(U,O){if(!U.index.isLoaded()){var M=[],S=O.X;O=O.G.split(",").filter(function(G){return G.length>0}); for(var p=0,h=0,J=0,f=/^(\d+)/,F=/r=(\d+)/,l=0;lS)return null}else if(M&&(M=U.U,S=O.U,M=!(S.BN.length?BP4(M,S.BN[0]):1)),M)return null;M=new C9(U.info.type,U.info.U,U.info.range,U.info.D,U.info.Sc,U.info.startTime,U.info.duration,U.info.V,U.info.B,U.info.G,U.info.zA,U.info.clipId);S=O.info;M.B+=S.B;M.range&&(M.Y+=S.Y);M.C=S.C;M.G=S.G;S=new xZ;bG(S,U.U);bG(S,O.U);M=new Sx(M,S);M.V= O.V||U.V;M.B=U.B!==-1?U.B:O.B;M.X=U.X!==-1?U.X:O.X;return M}; g.hX=function(U){g.Sh(U.info.U.info)||U.info.U.info.XL();if(U.B!==-1)return U.B;if(U.V&&dXJ(U.V))return U.B=dXJ(U.V),U.B;if(g.Sh(U.info.U.info)){var O=U.AR();for(var M=U.info.U.U,S=NaN,p=NaN,h=0;si(O,h);){var J=g2(O,h);J.type===1936286840?p=J.data.getUint32(J.dataOffset+8):J.type===1836476516?p=g.wt(J):J.type===1952867444&&isNaN(S)&&(S=g.Sl(J));h=Mu(J.type)?h+8:h+J.size}!p&&M&&(p=Ui(M));O=S/p}else O=new JC(U.AR()),M=U.G?O:new JC(new DataView(U.info.U.U.buffer)),S=c$(M),M=O.pos,O.pos=0,DS(O)?l6(O, 231)?(S=Te(O)*S/1E9,O.pos=M,O=S):(O.pos=M,O=NaN):(O.pos=M,O=NaN);U.B=O||U.info.X;return U.B}; de5=function(U,O){U.timestampOffset>0&&(O-=U.timestampOffset);var M=g.hX(U)+O;Dey(U,M);U.timestampOffset=O}; Dey=function(U,O){g.Sh(U.info.U.info)||U.info.U.info.XL();U.B=O;if(g.Sh(U.info.U.info)){var M=U.AR();U=U.info.U.U;for(var S=NaN,p=NaN,h=0;si(M,h);){var J=g2(M,h);isNaN(S)&&(J.type===1936286840?S=J.data.getUint32(J.dataOffset+8):J.type===1836476516&&(S=g.wt(J)));if(J.type===1952867444){!S&&U&&(S=Ui(U));var f=g.Sl(J);isNaN(p)&&(p=Math.round(O*S)-f);var F=J;f+=p;if(F.data.getUint8(F.dataOffset)){var l=F.data;F=F.dataOffset+4;l.setUint32(F,Math.floor(f/4294967296));l.setUint32(F+4,f&4294967295)}else F.data.setUint32(F.dataOffset+ 4,f)}h=Mu(J.type)?h+8:h+J.size}return!0}M=new JC(U.AR());U=U.G?M:new JC(new DataView(U.info.U.U.buffer));S=c$(U);U=M.pos;M.pos=0;if(DS(M)&&l6(M,231))if(p=Ge(M,!0),O=Math.floor(O*1E9/S),Math.ceil(Math.log(O)/Math.log(2)/8)>p)O=!1;else{for(S=p-1;S>=0;S--)M.U.setUint8(M.pos+S,O&255),O>>>=8;M.pos=U;O=!0}else O=!1;return O}; fu=function(U,O){O=O===void 0?!1:O;var M=JX(U);U=O?0:U.info.Y;return M||U}; JX=function(U){g.Sh(U.info.U.info)||U.info.U.info.XL();if(U.V&&U.info.type===6)return U.V.xV;if(g.Sh(U.info.U.info)){var O=U.AR();var M=0;O=g.hC(O,1936286840);O=g.D(O);for(var S=O.next();!S.done;S=O.next())S=RDi(S.value),M+=S.TF[0]/S.timescale;M=M||NaN;if(!(M>=0))a:{M=U.AR();O=U.info.U.U;for(var p=S=0,h=0;si(M,S);){var J=g2(M,S);if(J.type===1836476516)p=g.wt(J);else if(J.type===1836019558){!p&&O&&(p=Ui(O));if(!p){M=NaN;break a}var f=Oi(J.data,J.dataOffset,1953653094),F=f;f=p;var l=Oi(F.data,F.dataOffset, 1952868452);F=Oi(F.data,F.dataOffset,1953658222);var G=qI(l);qI(l);G&2&&qI(l);l=G&8?qI(l):0;var T=qI(F),e=T&1;G=T&4;var H=T&256,z=T&512,W=T&1024;T&=2048;var v=iJ(F);e&&qI(F);G&&qI(F);for(var x=e=0;x2048?"":O.indexOf("https://")===0?O:""}; jx=function(U,O,M){O.match(It1);return U(O,M).then(function(S){var p=g.AOJ(S.xhr);return p?jx(U,p,M):S.xhr})}; c3=function(U,O,M){U=U===void 0?"":U;O=O===void 0?null:O;M=M===void 0?!1:M;g.H_.call(this);var S=this;this.sourceUrl=U;this.isLivePlayback=M;this.Yy=this.duration=0;this.isPremiere=this.Dh=this.X=this.isLiveHeadPlayable=this.isLive=this.V=!1;this.d3=this.QM=0;this.isOtf=this.KE=!1;this.HA=(0,g.nM)();this.yP=Infinity;this.U={};this.B=new Map;this.state=this.PN=0;this.timeline=null;this.isManifestless=!1;this.BA=[];this.C=null;this.sA=0;this.G="";this.QP=NaN;this.Ka=this.EQ=this.timestampOffset=this.D= 0;this.GR=this.aG=NaN;this.Oj=0;this.hZ=this.Z=!1;this.Ca=[];this.TY={};this.ol=NaN;this.BB={EYQ:function(f){ex(S,f)}}; var p;this.Rl=(p=O)==null?void 0:p.F0("html5_use_network_error_code_enums");PE7=!!O&&O.F0("html5_modern_vp9_mime_type");var h;H3=!((h=O)==null||!h.F0("html5_enable_flush_during_seek"))&&g.Ud();var J;zv=!((J=O)==null||!J.F0("html5_enable_reset_audio_decoder"))&&g.Ud()}; nf5=function(U){return g.Py(U.U,function(O){return!!O.info.video&&O.info.video.qualityOrdinal>=2160})}; SOe=function(U){return g.Py(U.U,function(O){return!!O.info.video&&O.info.video.isHdr()})}; Dw=function(U){return g.Py(U.U,function(O){return!!O.info.IW})}; g.QmJ=function(U){return g.Py(U.U,function(O){return fO(O.info.mimeType)})}; CEJ=function(U){return g.Py(U.U,function(O){return O.info.video?O.info.video.projectionType==="EQUIRECTANGULAR":!1})}; X11=function(U){return g.Py(U.U,function(O){return O.info.video?O.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; u1W=function(U){return g.Py(U.U,function(O){return O.info.video?O.info.video.projectionType==="MESH":!1})}; q65=function(U){return g.Py(U.U,function(O){return O.info.video?O.info.video.stereoLayout===1:!1})}; iOq=function(U){return icW(U.U,function(O){return O.info.video?O.Xx():!0})}; Hs=function(U){return g.Py(U.U,function(O){return Yc(O.uM.U)})}; ex=function(U,O){U.U[O.info.id]=O;U.B.set(mc(g.hO(O.info,U.KE)),O)}; ZOq=function(U,O){return mc({itag:O.itag,lmt:U.KE?0:O.lmt||0,xtags:O.xtags})}; W3=function(U,O,M){M=M===void 0?0:M;var S=U.mimeType||"",p=U.itag;var h=U.xtags;p=p?p.toString():"";h&&(p+=";"+h);h=p;if(yr(S)){var J=U.width||640;p=U.height||360;var f=U.fps,F=U.qualityLabel,l=U.colorInfo,G=U.projectionType,T;U.stereoLayout&&(T=KpU[U.stereoLayout]);var e=Y6e(U)||void 0;if(l==null?0:l.primaries)var H=rOe[l.primaries]||void 0;J=new EO(J,p,f,G,T,void 0,F,e,H);S=DE(S,J,oi[U.itag||""]);H3&&(S+="; enableflushduringseek=true");zv&&(S+="; enableresetaudiodecoder=true")}var z;if(JO(S)){var W= U.audioSampleRate;T=U.audioTrack;W=new KP(W?+W:void 0,U.audioChannels,U.spatialAudioType,U.isDrc,U.loudnessDb,U.trackAbsoluteLoudnessLkfs,U.audioQuality||"AUDIO_QUALITY_UNKNOWN");T&&(H=T.displayName,p=T.id,T=T.audioIsDefault,H&&(z=new g.Tv(H,p||"",!!T)))}var v;U.captionTrack&&(F=U.captionTrack,T=F.displayName,H=F.vssId,p=F.languageCode,f=F.kind,F=F.id,T&&H&&p&&(v=new R97(T,H,p,f,U.xtags,F)));T=Number(U.bitrate)/8;H=Number(U.contentLength);p=Number(U.lastModified);F=U.drmFamilies;f=U.type;M=M&&H?H/ M:0;U=Number(U.approxDurationMs);if(O&&F){var x={};F=g.D(F);for(l=F.next();!l.done;l=F.next())(l=ds[l.value])&&(x[l]=O[l])}return new kF(h,S,{audio:W,video:J,ZN:z,IW:x,a_:T,DE:M,contentLength:H,lastModified:p,captionTrack:v,streamType:f,approxDurationMs:U})}; N_=function(U,O,M){M=M===void 0?0:M;var S=U.type;var p=U.itag;var h=U.xtags;h&&(p=U.itag+";"+h);if(yr(S)){var J=(U.size||"640x360").split("x");J=new EO(+J[0],+J[1],+U.fps,U.projection_type,+U.stereo_layout,void 0,U.quality_label,U.eotf,U.primaries);S=DE(S,J,oi[U.itag]);H3&&(S+="; enableflushduringseek=true");zv&&(S+="; enableresetaudiodecoder=true")}var f;if(JO(S)){var F=new KP(+U.audio_sample_rate||void 0,+U.audio_channels||0,U.spatial_audio_type,!!U.drc);U.name&&(f=new g.Tv(U.name,U.audio_track_id, U.isDefault==="1"))}var l;U.caption_display_name&&U.caption_vss_id&&U.caption_language_code&&(l=new R97(U.caption_display_name,U.caption_vss_id,U.caption_language_code,U.caption_kind,U.xtags,U.caption_id));h=Number(U.bitrate)/8;var G=Number(U.clen),T=Number(U.lmt);M=M&&G?G/M:0;if(O&&U.drm_families){var e={};for(var H=g.D(U.drm_families.split(",")),z=H.next();!z.done;z=H.next())z=z.value,e[z]=O[z]}return new kF(p,S,{audio:F,video:J,ZN:f,IW:e,a_:h,DE:M,contentLength:G,lastModified:T,captionTrack:l, streamType:U.stream_type,approxDurationMs:Number(U.approx_duration_ms)})}; at7=function(U){return A6(U,function(O){return"FORMAT_STREAM_TYPE_OTF"===O.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Efw=function(U){return A6(U,function(O){return"FORMAT_STREAM_TYPE_OTF"===O.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Lpi=function(U,O){return U.timeline?pt(U.timeline.X,O):U.BA.length?pt(U.BA,O):[]}; v3=function(U,O,M){O=O===void 0?"":O;M=M===void 0?"":M;U=new g.bJ(U,!0);U.set("alr","yes");M&&(M=NL7(decodeURIComponent(M)),U.set(O,encodeURIComponent(M)));return U}; w14=function(U,O){var M=of(O,"id");M=M.replace(":",";");var S=of(O,"mimeType"),p=of(O,"codecs");S=p?S+'; codecs="'+p+'"':S;p=Number(of(O,"bandwidth"))/8;var h=Number(kB(O,"BaseURL").getAttribute(U.G+":contentLength")),J=U.duration&&h?h/U.duration:0;if(yr(S)){var f=Number(of(O,"width"));var F=Number(of(O,"height")),l=Number(of(O,"frameRate")),G=Vhm(of(O,U.G+":projectionType"));a:switch(of(O,U.G+":stereoLayout")){case "layout_left_right":var T=1;break a;case "layout_top_bottom":T=2;break a;default:T= 0}f=new EO(f,F,l,G,T)}if(JO(S)){var e=Number(of(O,"audioSamplingRate"));var H=Number(of(O.getElementsByTagName("AudioChannelConfiguration")[0],"value"));F=of4(of(O,U.G+":spatialAudioType"));e=new KP(e,H,F);a:{H=of(O,"lang")||"und";if(F=kB(O,"Role"))if(G=of(F,"value")||"",g.XU(koW,G)){F=H+"."+koW[G];l=G==="main";U=of(O,U.G+":langName")||H+" - "+G;H=new g.Tv(U,F,l);break a}H=void 0}}if(O=kB(O,"ContentProtection"))if(O.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var z={};for(O= O.firstChild;O!=null;O=O.nextSibling)O instanceof Element&&/SystemURL/.test(O.nodeName)&&(U=O.getAttribute("type"),F=O.textContent,U&&F&&(z[U]=F.trim()))}else z=void 0;return new kF(M,S,{audio:e,video:f,ZN:H,IW:z,a_:p,DE:J,contentLength:h})}; Vhm=function(U){switch(U){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"}}; of4=function(U){switch(U){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"}}; OD5=function(U,O){O=O===void 0?"":O;U.state=1;U.HA=(0,g.nM)();return mem(O||U.sourceUrl).then(function(M){if(!U.GY()){U.PN=M.status;M=M.responseText;var S=new DOMParser;M=J5(S,mNW(M),"text/xml").getElementsByTagName("MPD")[0];U.yP=yOg(of(M,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(M.attributes){S=g.D(M.attributes);for(var p=S.next();!p.done;p=S.next())if(p=p.value,p.value==="http://youtube.com/yt/2012/10/10"){S=p.name.split(":")[1];break b}}S=""}U.G=S;U.isLive=U.yP=U.yP}; gA1=function(U){U.C&&U.C.stop()}; U6w=function(U){var O=U.yP;isFinite(O)&&(B3(U)?U.refresh():(O=Math.max(0,U.HA+O-(0,g.nM)()),U.C||(U.C=new g.UM(U.refresh,O,U),g.X(U,U.C)),U.C.start(O)))}; MzU=function(U){U=U.U;for(var O in U){var M=U[O].index;if(M.isLoaded())return M.zZ()+1}return 0}; xb=function(U){return U.EQ?U.EQ-(U.D||U.timestampOffset):0}; bS=function(U){return U.Ka?U.Ka-(U.D||U.timestampOffset):0}; Rb=function(U){if(!isNaN(U.QP))return U.QP;var O=U.U,M;for(M in O){var S=O[M].index;if(S.isLoaded()&&!fO(O[M].info.mimeType)){O=0;for(M=S.wB();M<=S.zZ();M++)O+=S.getDuration(M);O/=S.JH();O=Math.round(O/.5)*.5;S.JH()>10&&(U.QP=O);return O}if(U.isLive&&(S=O[M],S.xV))return S.xV}return NaN}; Sfi=function(U,O){U=KyW(U.U,function(S){return S.index.isLoaded()}); if(!U)return NaN;U=U.index;var M=U.Eg(O);return U.getStartTime(M)===O?O:M=0&&p.segments.splice(h,1)}}}; hFi=function(U){for(var O in U.U)fO(U.U[O].info.mimeType)||eDy(U.U[O].index,Infinity)}; mf=function(U,O,M){for(var S in U.U){var p=U.U[S].index,h=O,J=M;p.i7&&(h&&(p.mG=Math.max(p.mG,h)),J&&(p.pJ=Math.max(p.pJ||0,J)))}M&&(U.ol=M/1E3)}; J0w=function(U){U.Ka=0;U.EQ=0;U.Oj=0}; AX=function(U){return U.hZ&&U.isManifestless?U.isLiveHeadPlayable:U.isLive}; DE=function(U,O,M){Ib===null&&(Ib=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(PE7&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Ib||M!=="9"&&M!=="("?Ib||M!=="9h"&&M!=="(h"||(U='video/webm; codecs="vp9.2"'):U='video/webm; codecs="vp9"',U;if(!Ib&&!P3||U!=='video/webm; codecs="vp9"'&&U!=='video/webm; codecs="vp9.2"')return U; M="00";var S="08",p="01",h="01",J="01";U==='video/webm; codecs="vp9.2"'&&(M="02",S="10",O.primaries==="bt2020"&&(J=p="09"),O.U==="smpte2084"&&(h="16"),O.U==="arib-std-b67"&&(h="18"));return'video/webm; codecs="'+["vp09",M,"51",S,"01",p,h,J,"00"].join(".")+'"'}; Qt=function(U,O,M){U=""+U+(O>49?"p60":O>32?"p48":"");O=ay()[U];if(O!=null&&O>0)return O;O=nu.get(U);if(O!=null&&O>0)return O;M=M==null?void 0:M.get(U);return M!=null&&M>0?M:8192}; y0e=function(U){this.X0=U;this.F9=this.k_=this.Ka=this.C=this.G=this.TY=this.Yy=this.ol=!1;this.Y=this.D=0;this.pE=!1;this.BA=!0;this.NL=!1;this.Ov=0;this.Nr=this.QP=!1;this.Oj=!0;this.hZ=this.HA=!1;this.U={};this.WV=this.disableAv1=this.r7=this.FI=this.w7=this.Qa=this.V=this.Z=!1;this.UX=this.X0.T("html5_disable_aac_preference");this.EQ=Infinity;this.Ca=0;this.HV=this.X0.PV();this.AG=this.X0.experiments.F0("html5_enable_vp9_fairplay");this.gK=this.X0.T("html5_force_av1_for_testing");this.Rl=g.DF(this.X0.experiments, "html5_av1_ordinal_cap");this.sX=this.X0.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.cB=this.X0.T("html5_account_onesie_format_selection_during_format_filter");this.a_=g.DF(this.X0.experiments,"html5_max_byterate");this.B=this.X0.T("html5_sunset_aac_high_codec_family");this.sA=this.X0.T("html5_sunset_aac_high_codec_family");this.hG=this.X0.T("html5_enable_iamf_audio");this.dH=this.X0.experiments.F0("html5_allow_capability_merge");this.Dq=this.X0.T("html5_enable_encrypted_av1")}; po1=function(U){if(U.Yy)return["f"];if(g.kJ("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var O=["9h","9","h","8"];U.Dq&&O.push("1e");O=O.concat(["(h","(","H","*"]);U.QP&&(O.unshift("1"),O.unshift("1h"));U.k_&&O.unshift("h");U.yP&&(O=(fli[U.yP]||[U.yP]).concat(O));return O}; w4W=function(U){var O=["o","a","A"];U.Ca===1&&(U.G&&(O=["mac3","MAC3"].concat(O)),U.C&&(O=["meac3","MEAC3"].concat(O)),U.hG&&(O=["i","I"].concat(O)));U.ol&&(O=["so","sa"].concat(O));!U.F9||U.Ka||U.X||U.UX||O.unshift("a");U.TY&&!U.B&&O.unshift("ah");U.X&&(O=(fli[U.X]||[U.X]).concat(O));return O}; Cu=function(U,O,M,S){O=O===void 0?{}:O;if(S===void 0?0:S)return O.disabled=1,0;if(Bs(U.G,xc.AV1_CODECS)&&Bs(U.G,xc.HEIGHT)&&Bs(U.G,xc.BITRATE))return O.isCapabilityUsable=1,8192;try{var p=Poe();if(p)return O.localPref=p}catch(f){}S=1080;p=navigator.hardwareConcurrency;p<=2&&(S=480);O.coreCount=p;if(p=g.DF(U.experiments,"html5_default_av1_threshold"))S=O["default"]=p;!U.T("html5_disable_av1_arm_check")&&eOW()&&(O.isArm=1,S=240);if(U=U.G.BA)O.mcap=U,S=Math.max(S,U);if(M){var h,J;if(U=(h=M.videoInfos.find(function(f){return s6(f)}))== null?void 0:(J=h.V)==null?void 0:J.powerEfficient)S=8192,O.isEfficient=1; M=M.videoInfos[0].video;h=Math.min(Qt("1",M.fps),Qt("1",30));O.perfCap=h;S=Math.min(S,h);M.isHdr()&&!U&&(O.hdr=1,S*=.75)}else M=Qt("1",30),O.perfCap30=M,S=Math.min(S,M),M=Qt("1",60),O.perfCap60=M,S=Math.min(S,M);return O.av1Threshold=S}; Xg=function(U,O,M,S){this.flavor=U;this.keySystem=O;this.V=M;this.experiments=S;this.U={};this.NL=this.keySystemAccess=null;this.Cq=this.Lq=-1;this.ma=null;this.B=!!S&&S.F0("edge_nonprefixed_eme");S&&S.F0("html5_enable_vp9_fairplay")}; q_=function(U){return U.B?!1:!U.keySystemAccess&&!!uS()&&U.keySystem==="com.microsoft.playready"}; iS=function(U){return U.keySystem==="com.microsoft.playready"}; ZE=function(U){return!U.keySystemAccess&&!!uS()&&U.keySystem==="com.apple.fps.1_0"}; Ku=function(U){return U.keySystem==="com.youtube.fairplay"}; rs=function(U){return U.keySystem==="com.youtube.fairplay.sbdl"}; g.ab=function(U){return U.flavor==="fairplay"}; uS=function(){var U=window,O=U.MSMediaKeys;gr()&&!O&&(O=U.WebKitMediaKeys);return O&&O.isTypeSupported?O:null}; Lu=function(U){return navigator.requestMediaKeySystemAccess?g.XW&&!g.Ud()?mT("45"):g.Mp||g.DU?U.F0("edge_nonprefixed_eme"):g.Ej?mT("47"):g.bh&&U.F0("html5_enable_safari_fairplay")?!1:!0:!1}; FBm=function(U,O,M,S){var p=Od(),h=(M=p||M&&gr())?["com.youtube.fairplay"]:["com.widevine.alpha"];O&&h.unshift("com.youtube.widevine.l3");p&&S&&h.unshift("com.youtube.fairplay.sbdl");return M?h:U?[].concat(g.N(h),g.N(Vt.playready)):[].concat(g.N(Vt.playready),g.N(h))}; kb=function(){this.V=this.JK=0;this.U=Array.from({length:ob.length}).fill(0)}; llW=function(){}; Gh1=function(){this.startTimeMs=(0,g.nM)();this.U=!1}; $6e=function(){this.U=new llW}; TFW=function(U,O,M,S){S=S===void 0?1:S;M>=0&&(O in U.U||(U.U[O]=new kb),U.U[O].Mw(M,S))}; jzg=function(U,O,M,S,p){var h=(0,g.nM)(),J=p?p(O):void 0,f;p=(f=J==null?void 0:J.JK)!=null?f:1;if(p!==0){var F;f=(F=J==null?void 0:J.profile)!=null?F:M;TFW(U,f,h-S,p)}return O}; ws=function(U,O,M,S,p){if(O&&typeof O==="object"){var h=function(J){return jzg(U,J,M,S,p)}; if(TB(O))return O.then(h);if(eFm(O))return D1(O,h)}return jzg(U,O,M,S,p)}; HDe=function(){}; UR=function(U,O,M,S,p){S=S===void 0?!1:S;g.C.call(this);this.X0=O;this.useCobaltWidevine=S;this.al=p;this.V=[];this.B={};this.U={};this.callback=null;this.G=!1;this.X=[];this.initialize(U,!M)}; c0y=function(U,O){U.callback=O;U.X=[];Lu(U.X0.experiments)?OR(U):zFU(U)}; OR=function(U){if(!U.GY())if(U.V.length===0)U.callback(U.X);else{var O=U.V[0],M=U.B[O],S=D65(U,M);if(sR&&sR.keySystem===O&&sR.jKQ===JSON.stringify(S))U.al("remksa",{re:!0}),d6W(U,M,sR.keySystemAccess);else{var p,h;U.al("remksa",{re:!1,ok:(h=(p=sR)==null?void 0:p.keySystem)!=null?h:""});sR=void 0;(gv.isActive()?gv.XO("emereq",function(){return navigator.requestMediaKeySystemAccess(O,S)}):navigator.requestMediaKeySystemAccess(O,S)).then(xD(function(J){d6W(U,M,J,S)}),xD(function(){U.G=!U.G&&U.B[U.V[0]].flavor=== "widevine"; U.G||U.V.shift();OR(U)}))}}}; d6W=function(U,O,M,S){if(!U.GY()){S&&(sR={keySystem:O.keySystem,keySystemAccess:M,jKQ:JSON.stringify(S)});O.keySystemAccess=M;if(iS(O)){M=QN();S=g.D(Object.keys(U.U[O.flavor]));for(var p=S.next();!p.done;p=S.next())p=p.value,O.U[p]=!!M.canPlayType(p)}else{M=O.keySystemAccess.getConfiguration();if(M.audioCapabilities)for(S=g.D(M.audioCapabilities),p=S.next();!p.done;p=S.next())WBi(U,O,p.value);if(M.videoCapabilities)for(M=g.D(M.videoCapabilities),S=M.next();!S.done;S=M.next())WBi(U,O,S.value)}U.X.push(O); U.useCobaltWidevine||U.T("html5_enable_vp9_fairplay")&&rs(O)?(U.V.shift(),OR(U)):U.callback(U.X)}}; WBi=function(U,O,M){U.T("log_robustness_for_drm")?O.U[M.contentType]=M.robustness||!0:O.U[M.contentType]=!0}; D65=function(U,O){var M={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(U.T("html5_enable_vp9_fairplay")&&Ku(O))return M.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),M.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[M];iS(O)&&(M.initDataTypes=["keyids","cenc"]);for(var S=g.D(Object.keys(U.U[O.flavor])),p=S.next();!p.done;p=S.next()){p=p.value;var h=p.indexOf("audio/")===0,J=h?M.audioCapabilities:M.videoCapabilities;O.flavor!== "widevine"||U.G?J.push({contentType:p}):h?J.push({contentType:p,robustness:"SW_SECURE_CRYPTO"}):(g.XW&&g.kJ("windows nt")&&!U.T("html5_drm_enable_moho")||J.push({contentType:p,robustness:"HW_SECURE_ALL"}),h=p,U.X0.G.B&&p.includes("vp09")&&(h=p+"; experimental=allowed"),J.push({contentType:h,robustness:"SW_SECURE_DECODE"}),Mn(U.X0)==="MWEB"&&(ym()||wa())&&(U.al("swcrypto",{}),J.push({contentType:p,robustness:"SW_SECURE_CRYPTO"})))}return[M]}; zFU=function(U){if(uS()&&(g.bh||SQ))U.X.push(new Xg("fairplay","com.apple.fps.1_0","",U.X0.experiments));else{var O=NFm(),M=g.VD(U.V,function(S){var p=U.B[S],h=!1,J=!1,f;for(f in U.U[p.flavor])O(f,S)&&(p.U[f]=!0,h=h||f.indexOf("audio/")===0,J=J||f.indexOf("video/")===0);return h&&J}); M&&U.X.push(U.B[M]);U.V=[]}U.callback(U.X)}; NFm=function(){var U=uS();if(U){var O=U.isTypeSupported;return function(S,p){return O(p,S)}}var M=QN(); return M&&(M.addKey||M.webkitAddKey)?function(S,p){return!!M.canPlayType(S,p)}:function(){return!1}}; vAi=function(U){this.experiments=U;this.U=2048;this.X=0;this.BA=(this.D=this.T("html5_streaming_resilience"))?.5:.25;var O=O===void 0?0:O;this.B=g.DF(this.experiments,"html5_media_time_weight_prop")||O;this.ol=g.DF(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.Z=(this.G=this.experiments.F0("html5_consider_end_stall"))&&Sf;this.V=this.experiments.F0("html5_measure_max_progress_handling");this.Y=this.T("html5_treat_requests_pre_elbow_as_metadata");this.C=this.T("html5_media_time_weight")|| !!this.B;this.yP=g.DF(this.experiments,"html5_streaming_fallback_byterate");this.T("html5_sabr_live_audio_early_return_fix")&&Sf&&(this.U=65536)}; BF7=function(U,O){this.U=void 0;this.experimentIds=U?U.split(","):[];this.flags=yI(O||"","&");U={};O=g.D(this.experimentIds);for(var M=O.next();!M.done;M=O.next())U[M.value]=!0;this.experiments=U}; g.DF=function(U,O){U=U.flags[O];JSON.stringify(U);return Number(U)||0}; pL=function(U,O){return(U=U.flags[O])?U.toString():""}; x6w=function(U){if(U=U.flags.html5_web_po_experiment_ids)if(U=U.replace(/\[ *(.*?) *\]/,"$1"))return U.split(",").map(Number);return[]}; bDw=function(U){if(U.U)return U.U;if(U.experimentIds.length<=1)return U.U=U.experimentIds,U.U;var O=[].concat(g.N(U.experimentIds)).map(function(S){return Number(S)}); O.sort();for(var M=O.length-1;M>0;--M)O[M]-=O[M-1];U.U=O.map(function(S){return S.toString()}); U.U.unshift("v1");return U.U}; tz7=function(U){return RFJ.then(U)}; hG=function(U,O,M){this.experiments=U;this.QP=O;this.Ca=M===void 0?!1:M;this.ol=!!g.K7("cast.receiver.platform.canDisplayType");this.Z={};this.Y=!1;this.V=new Map;this.D=!0;this.G=this.B=!1;this.U=new Map;this.BA=0;this.sA=this.experiments.F0("html5_disable_vp9_encrypted");this.X=this.experiments.F0("html5_enable_encrypted_av1");U=g.K7("cast.receiver.platform.getValue");this.C=!this.ol&&U&&U("max-video-resolution-vpx")||null;YfU(this);this.B=!!(Od()&&o0()>=21)}; yAq=function(U,O,M){M=M===void 0?1:M;var S=O.itag;if(S==="0")return!0;var p=O.mimeType;if(O.zY==="1e"&&!U.X)return"dav1enc";if(s6(O)&&U.Y)return"dav1";if(O.video&&(O.video.isHdr()||O.video.primaries==="bt2020")&&!(Bs(U,xc.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(S==="338"&&!(g.XW?mT(53):g.Ej&&mT(64)))return"dopus";var h=M;h=h===void 0?1:h; M={};O.video&&(O.video.width&&(M[xc.WIDTH.name]=O.video.width),O.video.height&&(M[xc.HEIGHT.name]=O.video.height),O.video.fps&&(M[xc.FRAMERATE.name]=O.video.fps*h),O.video.U&&(M[xc.EOTF.name]=O.video.U),O.a_&&(M[xc.BITRATE.name]=O.a_*8*h),O.zY==="("&&(M[xc.CRYPTOBLOCKFORMAT.name]="subsample"),O.video.projectionType==="EQUIRECTANGULAR"||O.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||O.video.projectionType==="MESH")&&(M[xc.DECODETOTEXTURE.name]="true");O.audio&&O.audio.numChannels&&(M[xc.CHANNELS.name]= O.audio.numChannels);U.B&&w9(O)&&(M[xc.EXPERIMENTAL.name]="allowed");h=g.D(Object.keys(xc));for(var J=h.next();!J.done;J=h.next()){J=xc[J.value];var f;if(f=M[J.name])if(f=!(J===xc.EOTF&&O.mimeType.indexOf("vp09.02")>0)){f=J;var F=O;f=!(U.experiments.F0("html5_ignore_h264_framerate_cap")&&f===xc.FRAMERATE&&T4e(F))}if(f)if(Bs(U,J))if(U.C){if(U.C[J.name]1080&&O.IW&& (p+="; hdcp=2.2");return S==="227"?"hqcenc":S!=="585"&&S!=="588"&&S!=="583"&&S!=="586"&&S!=="584"&&S!=="587"&&S!=="591"&&S!=="592"||U.experiments.F0("html5_enable_new_hvc_enc")?U.isTypeSupported(p)?!0:"tpus":"newhvc"}; JG=function(){var U=wa()&&!mT(29),O=g.kJ("google tv")&&g.kJ("chrome")&&!mT(30);return U||O?!1:Dcq()}; m6w=function(U,O,M){var S=480;O=g.D(O);for(var p=O.next();!p.done;p=O.next()){p=p.value;var h=p.video.qualityOrdinal;h<=1080&&h>S&&yAq(U,p,M)===!0&&(S=h)}return S}; g.yh=function(U,O){O=O===void 0?!1:O;return JG()&&U.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!O&&U.canPlayType(QN(),"application/x-mpegURL")?!0:!1}; Ili=function(U){A0i(function(){for(var O=g.D(Object.keys(xc)),M=O.next();!M.done;M=O.next())Bs(U,xc[M.value])})}; Bs=function(U,O){O.name in U.Z||(U.Z[O.name]=PRy(U,O));return U.Z[O.name]}; PRy=function(U,O){if(U.C)return!!U.C[O.name];if(O===xc.BITRATE&&U.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!U.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(O===xc.AV1_CODECS)return U.isTypeSupported("video/mp4; codecs="+O.valid)&&!U.isTypeSupported("video/mp4; codecs="+O.BC);if(O.video){var M='video/webm; codecs="vp9"';U.isTypeSupported(M)||(M='video/mp4; codecs="avc1.4d401e"')}else M='audio/webm; codecs="opus"', U.isTypeSupported(M)||(M='audio/mp4; codecs="mp4a.40.2"');return U.isTypeSupported(M+"; "+O.name+"="+O.valid)&&!U.isTypeSupported(M+"; "+O.name+"="+O.BC)}; fL=function(U){U.G=!0;U.experiments.F0("html5_ssap_update_capabilities_on_change")&&nA5(U)}; Qzq=function(U,O){var M=0;U.V.has(O)&&(M=U.V.get(O).XC);U.V.set(O,{XC:M+1,Zu:Math.pow(2,M+1)});fL(U)}; dt=function(U){for(var O=[],M=g.D(U.U.keys()),S=M.next();!S.done;S=M.next()){S=S.value;var p=U.U.get(S);O.push(S+"_"+p.maxWidth+"_"+p.maxHeight)}return O.join(".")}; nA5=function(U){U.yP=[];for(var O=g.D(U.U.values()),M=O.next();!M.done;M=O.next()){M=M.value;var S=M.zY;U.experiments.F0("html5_ssap_force_mp4_aac")&&S!=="a"&&S!=="h"||U.V.has(S)||U.Y&&(S==="1"||S==="1h"||U.X&&S==="1e")||U.yP.push(M)}}; OPe=function(U,O){for(var M=new Map,S=g.D(U.U.keys()),p=S.next();!p.done;p=S.next()){p=p.value;var h=p.split("_")[0];O.has(h)||M.set(p,U.U.get(p))}U.U=M}; gFq=function(U,O,M){var S,p=((S=M.video)==null?void 0:S.fps)||0;S=O+"_"+p;var h=!!M.audio,J={itag:M.itag,zY:O,xS:h};if(h)J.numChannels=M.audio.numChannels;else{var f=M.video;J.maxWidth=f==null?void 0:f.width;J.maxHeight=f==null?void 0:f.height;J.maxFramerate=p;Bs(U,xc.BITRATE)&&(J.maxBitrateBps=M.a_*8);J.qg=f==null?void 0:f.isHdr()}f=U.U.get(S);f?h||(M=Math.max(f.maxWidth||0,f.maxHeight||0)>Math.max(J.maxWidth||0,J.maxHeight||0)?f:J,O={itag:M.itag,zY:O,xS:h,maxWidth:Math.max(f.maxWidth||0,J.maxWidth|| 0),maxHeight:Math.max(f.maxHeight||0,J.maxHeight||0),maxFramerate:p,qg:M.qg},Bs(U,xc.BITRATE)&&(O.maxBitrateBps=M.maxBitrateBps),U.U.set(S,O)):U.U.set(S,J)}; M24=function(U,O,M){var S,p=((S=M.video)==null?void 0:S.fps)||0;S=O+"_"+p;var h=!!M.audio,J=U.U.get(S);a:{var f=U.U.get(S),F=!!M.audio;if(f){if(F){var l=!1;break a}var G;if(!F&&((l=M.video)==null?0:l.height)&&f.maxHeight&&f.maxHeight>=((G=M.video)==null?void 0:G.height)){l=!1;break a}}l=!0}l&&(l=M.itag,O=J?J:{itag:l,zY:O,xS:h},h?O.numChannels=M.audio.numChannels:(h=M.video,O.maxWidth=h==null?void 0:h.width,O.maxHeight=h==null?void 0:h.height,O.maxFramerate=p,Bs(U,xc.BITRATE)&&(O.maxBitrateBps=M.a_* 8),O.qg=h==null?void 0:h.isHdr()),U.U.set(S,O))}; YfU=function(U){var O;(O=navigator.mediaCapabilities)!=null&&O.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(M){M.smooth&&M.powerEfficient&&(U.BA=2160)})}; FB=function(){g.H_.call(this);this.items={}}; lk=function(){g.Y5.apply(this,arguments)}; G_=function(){g.mO.apply(this,arguments)}; CRU=function(U,O,M){this.encryptedClientKey=O;this.G=M;this.U=new Uint8Array(U.buffer,0,16);this.B=new Uint8Array(U.buffer,16)}; XIg=function(U){U.V||(U.V=new lk(U.U));return U.V}; $0=function(U){try{return d3(U)}catch(O){return null}}; uwJ=function(U,O){if(!O&&U)try{O=JSON.parse(U)}catch(p){}if(O){U=O.clientKey?$0(O.clientKey):null;var M=O.encryptedClientKey?$0(O.encryptedClientKey):null,S=O.keyExpiresInSeconds?Number(O.keyExpiresInSeconds)*1E3+(0,g.nM)():null;U&&M&&S&&(this.U=new CRU(U,M,S));O.onesieUstreamerConfig&&(this.onesieUstreamerConfig=$0(O.onesieUstreamerConfig)||void 0);this.baseUrl=O.baseUrl}}; jf=function(){this.data=new Uint8Array(2048);this.pos=0;T_||(T_=X3("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; ef=function(U,O){U.add(O==null||isNaN(O)?0:O+1)}; Hn=function(U){this.U=this.V=0;this.alpha=Math.exp(Math.log(.5)/U)}; z_=function(U){this.V=U===void 0?15:U;this.values=new Float64Array(176);this.U=new Float64Array(11);this.B=new Float64Array(16)}; cn=function(U,O,M,S){M=M===void 0?.5:M;S=S===void 0?0:S;this.resolution=O;this.V=0;this.B=!1;this.pI=!0;this.U=Math.round(U*this.resolution);this.values=Array(this.U);for(U=0;U0)O=U.byterate,this.yP=!0;else{var S; M=(((S=navigator.connection)==null?void 0:S.downlink)||0)*64*1024;M>0&&(O=M,this.yP=!0)}this.B.Wi(this.policy.C,O);U.delay>0&&this.Y.Wi(1,Math.min(U.delay,2));U.stall>0&&this.D.Wi(1,U.stall);U.init>0&&(this.Ka=Math.min(U.init,this.Ka));U.interruptions&&(this.X=this.X.concat(U.interruptions),this.X.length>16&&this.X.pop());this.ol=(0,g.nM)();this.policy.D>0&&(this.TY=new g.UM(this.hZ,this.policy.D,this),g.X(this,this.TY),this.TY.start())}; dv=function(U,O,M,S){U.B.Wi(S===void 0?O:S,M/O);U.C=(0,g.nM)()}; iD4=function(U){U.G||(U.G=(0,g.nM)());U.policy.Z&&(U.C=(0,g.nM)())}; ZDJ=function(U,O){if(U.G){var M=O-U.G;if(M<6E4){if(M>1E3){var S=U.interruptions;S.push(Math.ceil(M));S.sort(function(p,h){return h-p}); S.length>16&&S.pop()}U.sA+=M}}U.G=O}; Wn=function(U,O,M,S,p,h){h=h===void 0?!1:h;U.Ca.Wi(O,M/O);U.C=(0,g.nM)();p||U.Z.Wi(1,O-S);h||(U.G=0);U.ol>-1&&(0,g.nM)()-U.ol>3E4&&KBJ(U)}; Nn=function(U,O,M){O=Math.max(O,U.V.U);U.D.Wi(1,M/O)}; vn=function(U){U=U.Y.aA()+U.QP.aA()||0;U=isNaN(U)?.5:U;return U=Math.min(U,5)}; Bn=function(U,O,M){isNaN(M)||(U.BA+=M);isNaN(O)||(U.HA+=O)}; x0=function(U){U=U.B.aA();return U>0?U:1}; bk=function(U,O,M){O=O===void 0?!1:O;M=M===void 0?1048576:M;var S=x0(U);S=1/((U.D.aA()||0)*U.policy.yP+1/S);var p=U.Ca.aA();p=p>0?p:1;var h=Math.max(S,p);U.policy.G>0&&p=4E3}; al5=function(U){this.experiments=U;this.U=17;this.B=13E4;this.C=.5;this.V=!1;this.ol=this.T("html5_use_histogram_for_bandwidth");this.X=!1;this.G=g.DF(this.experiments,"html5_auxiliary_estimate_weight");this.yP=g.DF(this.experiments,"html5_stall_factor")||1;this.D=g.DF(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.F0("html5_trigger_loader_when_idle_network");this.Z=this.experiments.F0("html5_sabr_fetch_on_idle_network_preloaded_players")}; LBm=function(U,O){U=U===void 0?{}:U;O=O===void 0?{}:O;g.C.call(this);var M=this;this.values=U;this.MX=O;this.V={};this.B=this.U=0;this.X=new g.UM(function(){EAw(M)},1E4); g.X(this,this.X)}; tG=function(U,O){Vz4(U,O);return U.values[O]&&U.MX[O]?U.values[O]/Math.pow(2,U.U/U.MX[O]):0}; Vz4=function(U,O){U.values[O]||(O=Yqi(),U.values=O.values||{},U.MX=O.halfLives||{},U.V=O.values?Object.assign({},O.values):{})}; EAw=function(U){var O=Yqi();if(O.values){O=O.values;for(var M={},S=g.D(Object.keys(U.values)),p=S.next();!p.done;p=S.next())p=p.value,O[p]&&U.V[p]&&(U.values[p]+=O[p]-U.V[p]),M[p]=tG(U,p);U.V=M}O=U.MX;M={};M.values=U.V;M.halfLives=O;g.iC("yt-player-memory",M,2592E3)}; Vh=function(U,O,M,S,p){g.C.call(this);this.webPlayerContextConfig=O;this.GR=S;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.cU=this.HV=this.Yy=this.TA=this.userDisplayName=this.userDisplayImage=this.jH="";this.U={};this.WV={};this.controlsType="0";this.dH=NaN;this.w7=!1;this.mD=(0,g.nM)();this.EQ=0;this.IB=this.wb=!1;this.kL=!0;this.preferGapless=this.b6=this.q_=this.B=this.dO=this.DD=!1;this.qT=[];this.e5=!1;U=U?g.ri(U):{};O&&O.csiPageType&&(this.csiPageType=O.csiPageType);O&&O.csiServiceName&& (this.csiServiceName=O.csiServiceName);O&&O.preferGapless&&(this.preferGapless=O.preferGapless);this.experiments=new BF7(O?O.serializedExperimentIds:U.fexp,O?O.serializedExperimentFlags:U.fflags);this.forcedExperiments=O?O.serializedForcedExperimentIds:TI("",U.forced_experiments)||void 0;this.cspNonce=(O==null?0:O.cspNonce)?O.cspNonce:TI("",U.csp_nonce);this.T("web_player_deprecated_uvr_killswitch");try{var h=document.location.toString()}catch(Sm){h=""}this.u$=h;this.ancestorOrigins=(S=window.location.ancestorOrigins)? Array.from(S):[];this.X=lC(!1,O?O.isEmbed:U.is_embed);if(O&&O.device){if(S=O.device,S.androidOsExperience&&(this.U.caoe=""+S.androidOsExperience),S.androidPlayServicesVersion&&(this.U.capsv=""+S.androidPlayServicesVersion),S.brand&&(this.U.cbrand=S.brand),S.browser&&(this.U.cbr=S.browser),S.browserVersion&&(this.U.cbrver=S.browserVersion),S.cobaltReleaseVehicle&&(this.U.ccrv=""+S.cobaltReleaseVehicle),this.U.c=S.interfaceName||"WEB",this.U.cver=S.interfaceVersion||"html5",S.interfaceTheme&&(this.U.ctheme= S.interfaceTheme),this.U.cplayer=S.interfacePlayerType||"UNIPLAYER",S.model&&(this.U.cmodel=S.model),S.network&&(this.U.cnetwork=S.network),S.os&&(this.U.cos=S.os),S.osVersion&&(this.U.cosver=S.osVersion),S.platform&&(this.U.cplatform=S.platform),h=pL(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),h==="all"||h==="once")S.chipset&&(this.WV.cchip=S.chipset),S.cobaltAppVersion&&(this.WV.ccappver=S.cobaltAppVersion),S.firmwareVersion&&(this.WV.cfrmver=S.firmwareVersion),S.deviceYear&&(this.WV.crqyear= S.deviceYear)}else this.U.c=U.c||"web",this.U.cver=U.cver||"html5",this.U.cplayer="UNIPLAYER";this.loaderUrl=O?this.X||oA7(this)&&O.loaderUrl?O.loaderUrl||"":this.u$:this.X||oA7(this)&&U.loaderUrl?TI("",U.loaderUrl):this.u$;this.X&&g.Zq("yt.embedded_player.embed_url",this.loaderUrl);this.D=pZ(this.loaderUrl,kh4);S=this.loaderUrl;var J=J===void 0?!1:J;this.Gw=S7(pZ(S,wIq),S,J,"Trusted Ad Domain URL");this.Dq=lC(!1,U.privembed);this.protocol=this.u$.indexOf("http:")===0?"http":"https";this.lU=hR((O? O.customBaseYoutubeUrl:U.BASE_YT_URL)||"")||hR(this.u$)||this.protocol+"://www.youtube.com/";J=O?O.eventLabel:U.el;S="detailpage";J==="adunit"?S=this.X?"embedded":"detailpage":J==="embedded"||this.D?S=GI(S,J,Uge):J&&(S="embedded");this.QP=S;xvm();J=null;S=O?O.playerStyle:U.ps;h=g.kE(On7,S);!S||h&&!this.D||(J=S);this.playerStyle=J;this.C=g.kE(On7,this.playerStyle);this.houseBrandUserStatus=O==null?void 0:O.houseBrandUserStatus;this.ol=this.C&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Vk=!this.ol;this.Ka=lC(!1,U.disableplaybackui);this.disablePaidContentOverlay=lC(!1,O==null?void 0:O.disablePaidContentOverlay);this.disableSeek=lC(!1,O==null?void 0:O.disableSeek);this.enableSpeedOptions=(O==null?void 0:O.enableSpeedOptions)||(QN().defaultPlaybackRate?Y0||g.Jw||mq?g.Ej&&mT("20")||g.XW&&mT("4")||g.AG&&mT("11")||Mt():!(g.AG&&!g.kJ("chrome")||Y0||g.kJ("android")||g.kJ("silk")):!1);this.y$=lC(!1,U.enable_faster_speeds);var f;this.supportsVarispeedExtendedFeatures=(f=O==null?void 0: O.supportsVarispeedExtendedFeatures)!=null?f:!1;this.V=lC(this.playerStyle==="blazer",U.is_html5_mobile_device||O&&O.isMobileDevice);this.HA=hw()||ym();this.aG=this.T("mweb_allow_background_playback")?!1:this.V&&!this.C;this.TY=iA();this.ZK=g.IK;var F;this.TR=!!(O==null?0:(F=O.embedsHostFlags)==null?0:F.optOutApiDeprecation);var l;this.q9=!!(O==null?0:(l=O.embedsHostFlags)==null?0:l.allowPfpImaIntegration);this.RE=this.T("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var G;O?O.hideInfo!== void 0&&(G=!O.hideInfo):G=U.showinfo;this.IV=g.Pn(this)&&!this.TR||lC(!nL(this)&&!Qh(this)&&!this.C,G);this.L9=O?!!O.mobileIphoneSupportsInlinePlayback:lC(!1,U.playsinline);f=this.V&&CL&&XB!=null&&XB>0&&XB<=2.3;F=O?O.useNativeControls:U.use_native_controls;this.Y=g.Pn(this)&&this.V;l=this.V&&!this.Y;F=g.uk(this)||!f&&lC(l,F)?"3":"1";this.disableOrganicUi=!(O==null||!O.disableOrganicUi);l=O?O.controlsType:U.controls;this.controlsType=this.disableOrganicUi?"0":l!=="0"&&l!==0?F:"0";this.sU=this.V;this.color= GI("red",O?O.progressBarColor:U.color,sqm);this.Lg=this.controlsType==="3";this.Oj=!this.X;this.TB=(F=!this.Oj&&!Qh(this)&&!this.ol&&!this.C&&!nL(this))&&!this.Lg&&this.controlsType==="1";this.UX=g.qn(this)&&F&&this.controlsType==="0"&&!this.TB&&!(O==null?0:O.embedsEnableEmc3ds);this.j_=this.NT=f;this.cB=(this.controlsType==="3"||this.V||lC(!1,U.use_media_volume))&&!this.Y;this.DO=SQ&&!g.z$(601)?!1:!0;this.YY=this.X||!1;this.Rl=Qh(this)?"":(this.loaderUrl||U.post_message_origin||"").substring(0,128); this.widgetReferrer=TI("",O?O.widgetReferrer:U.widget_referrer);var T;O?O.disableCastApi&&(T=!1):T=U.enablecastapi;T=!this.D||lC(!0,T);f=!0;O&&O.disableMdxCast&&(f=!1);this.FE=this.T("enable_cast_for_web_unplugged")&&g.ik(this)&&f||g.a8(this)&&f||T&&f&&this.controlsType==="1"&&!this.V&&(Qh(this)||g.qn(this)||g.Zb(this));this.xY=!!window.document.pictureInPictureEnabled||qX();T=O?!!O.supportsAutoplayOverride:lC(!1,U.autoplayoverride);this.FT=!(this.V&&!g.Pn(this))&&!g.kJ("nintendo wiiu")||T;this.QO= (O?!!O.enableMutedAutoplay:lC(!1,U.mutedautoplay))&&!1;T=(Qh(this)||nL(this))&&this.playerStyle==="blazer";this.gs=O?!!O.disableFullscreen:!lC(!0,U.fs);f=g.zI(g.KL(this))&&g.Pn(this);this.hG=!this.gs&&(T||g.BA())&&!f;this.hB=this.T("html5_picture_in_picture_logging_onresize");var e;this.F$=(e=g.DF(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?e:.33;this.Dy=this.T("html5_picture_in_picture_blocking_onresize");this.qy=this.T("html5_picture_in_picture_blocking_ontimeupdate"); this.Ho=this.T("html5_picture_in_picture_blocking_document_fullscreen");this.ma=this.T("html5_picture_in_picture_blocking_standard_api");e=wa()&&mT(58)&&!ym();T=gI||typeof MediaSource==="undefined";this.l6=this.T("uniplayer_block_pip")&&(e||T)||this.Dy||this.qy||this.ma;e=g.Pn(this)&&!this.TR;var H;O?O.disableRelatedVideos!==void 0&&(H=!O.disableRelatedVideos):H=U.rel;this.FI=e||lC(!this.C,H);this.GB=lC(!1,O?O.enableContentOwnerRelatedVideos:U.co_rel);this.Z=ym()&&XB>0&&XB<=4.4?"_top":"_blank";this.WN= g.Zb(this);this.n1=lC(this.playerStyle==="blazer",O?O.enableCsiLogging:U.enablecsi);switch(this.playerStyle){case "blogger":H="bl";break;case "gmail":H="gm";break;case "gac":H="ga";break;case "ads-preview":H="ap";break;case "books":H="gb";break;case "docs":case "flix":H="gd";break;case "duo":H="gu";break;case "google-live":H="gl";break;case "google-one":H="go";break;case "play":H="gp";break;case "chat":H="hc";break;case "hangouts-meet":H="hm";break;case "photos-edu":case "picasaweb":H="pw";break; default:H="yt"}this.yP=H;this.BA=TI("",O?O.authorizedUserIndex:U.authuser);this.F9=g.Pn(this)&&(this.Dq||!Tjw()||this.HA);var z;O?O.disableWatchLater!==void 0&&(z=!O.disableWatchLater):z=U.showwatchlater;this.Op=((H=!this.F9)||!!this.BA&&H)&&lC(!this.ol,this.D?z:void 0);this.gK=O?O.isMobileDevice||!!O.disableKeyboardControls:lC(!1,U.disablekb);this.loop=lC(!1,U.loop);this.pageId=TI("",O?O.initialDelegatedSessionId:U.pageid);this.zv=lC(!0,U.canplaylive);this.pE=lC(!1,U.livemonitor);this.disableSharing= lC(this.C,O?O.disableSharing:U.ss);(z=O&&this.T("fill_video_container_size_override_from_wpcc")?O.videoContainerOverride:U.video_container_override)?(H=z.split("x"),H.length!==2?z=null:(z=Number(H[0]),H=Number(H[1]),z=isNaN(z)||isNaN(H)||z*H<=0?null:new g.R1(z,H))):z=null;this.qU=z;this.mute=O?!!O.startMuted:lC(!1,U.mute);this.storeUserVolume=!this.mute&&lC(this.controlsType!=="0",O?O.storeUserVolume:U.store_user_volume);z=O?O.annotationsLoadPolicy:U.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:GI(void 0,z,rv);this.captionsLanguagePreference=O?O.captionsLanguagePreference||"":TI("",U.cc_lang_pref);z=GI(2,O?O.captionsLanguageLoadPolicy:U.cc_load_policy,rv);this.controlsType==="3"&&z===2&&(z=3);this.r7=z;this.Qa=O?O.hl||"en_US":TI("en_US",U.hl);this.region=O?O.contentRegion||"US":TI("US",U.cr);this.hostLanguage=O?O.hostLanguage||"en":TI("en",U.host_language);this.aE=!this.Dq&&Math.random()=480;this.schedule=new Db(T,new vAi(this.experiments),p);g.X(this,this.schedule);var W;this.enableSafetyMode=(W=O==null?void 0:O.initialEnableSafetyMode)!=null? W:lC(!1,U.enable_safety_mode);p=this.Ka?!1:Qh(this)&&this.playerStyle!=="blazer";var v;O?O.disableAutonav!=null&&(v=!O.disableAutonav):v=U.allow_autonav;this.sX=lC(p,!this.ol&&v);this.sendVisitorIdHeader=O?!!O.sendVisitorIdHeader:lC(!1,U.send_visitor_id_header);var x;this.playerStyle==="docs"&&(O?x=O.disableNativeContextMenu:x=U.disable_native_context_menu);this.disableNativeContextMenu=lC(!1,x);this.J6=IL(this)&&this.T("enable_skip_intro_button");this.embedConfig=TI("",O?O.serializedEmbedConfig: U.embed_config);this.sA=HA(U,g.Pn(this));this.B=this.sA==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(O==null||!O.embedsErrorLinks);this.o2=lC(!1,U.full_window);var t;this.NL=!((t=this.webPlayerContextConfig)==null?0:t.chromeless);var m;this.livingRoomAppMode=GI("LIVING_ROOM_APP_MODE_UNSPECIFIED",U.living_room_app_mode||(O==null?void 0:(m=O.device)==null?void 0:m.livingRoomAppMode),SZw);var P;v=$d(NaN,O==null?void 0:(P=O.device)==null?void 0:P.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground= O?!!O.transparentBackground:lC(!1,U.transparent_background);this.showMiniplayerButton=O?!!O.showMiniplayerButton:lC(!1,U.show_miniplayer_button);var u;g.Pn(this)&&!(O==null?0:(u=O.embedsHostFlags)==null?0:u.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=O?!!O.externalFullscreen:lC(!1,U.external_fullscreen);this.showMiniplayerUiWhenMinimized=O?!!O.showMiniplayerUiWhenMinimized:lC(!1,U.use_miniplayer_ui);var w;this.kL=(w=U.show_loop_video_toggle)!=null?w:!0;this.qd=Math.random()< 1E-4;this.tU=U.onesie_hot_config||(O==null?0:O.onesieHotConfig)?new uwJ(U.onesie_hot_config,O==null?void 0:O.onesieHotConfig):void 0;this.isTectonic=O?!!O.isTectonic:!!U.isTectonic;this.playerCanaryState=M;this.playerCanaryStage=O==null?void 0:O.canaryStage;this.fO=new LBm;g.X(this,this.fO);this.dO=lC(!1,U.force_gvi);this.datasyncId=(O==null?void 0:O.datasyncId)||g.wZ("DATASYNC_ID");this.B7=g.wZ("LOGGED_IN",!1);this.mW=(O==null?void 0:O.allowWoffleManagement)||!1;this.XK=Infinity;this.Mh=NaN;this.livingRoomPoTokenId= O==null?void 0:O.livingRoomPoTokenId;this.T("html5_high_res_logging_always")?this.q_=!0:this.q_=Math.random()*100=0&&U0&&U.qd&&(S.sort(),g.rz(new g.sT("Player client parameters changed after startup",S)));U.userAge=$d(U.userAge,O.user_age);U.jH=TI(U.jH,O.user_display_email);U.userDisplayImage=TI(U.userDisplayImage,O.user_display_image);g.yV(U.userDisplayImage)||(U.userDisplayImage= "");U.userDisplayName=TI(U.userDisplayName,O.user_display_name);U.TA=TI(U.TA,O.user_gender);U.csiPageType=TI(U.csiPageType,O.csi_page_type);U.csiServiceName=TI(U.csiServiceName,O.csi_service_name);U.n1=lC(U.n1,O.enablecsi);U.pageId=TI(U.pageId,O.pageid);if(M=O.enabled_engage_types)U.enabledEngageTypes=new Set(M.split(","));O.living_room_session_po_token&&(U.EF=O.living_room_session_po_token.toString())}; oK=function(U,O){return!U.C&&wa()&&mT(55)&&U.controlsType==="3"&&!O}; g.k0=function(U){U=aK(U.lU);return U==="www.youtube-nocookie.com"?"www.youtube.com":U}; wv=function(U,O,M){return U.protocol+"://i1.ytimg.com/vi/"+O+"/"+(M||"hqdefault.jpg")}; U3=function(U){return Qh(U)&&!g.ik(U)}; g.uk=function(U){return U.T("html5_local_playsinline")?SQ&&!g.z$(602)&&!("playsInline"in QN()):SQ&&!U.L9||g.kJ("nintendo wiiu")?!0:!1}; Mn=function(U){return U.U.c}; g.PF=function(U){return/^TVHTML5/.test(Mn(U))}; g.O3=function(U){return Mn(U)==="TVHTML5"}; oA7=function(U){return Mn(U)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; MHg=function(U){return U.U.cmodel==="CHROMECAST ULTRA/STEAK"||U.U.cmodel==="CHROMECAST/STEAK"}; g.s3=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; IL=function(U){return/web/i.test(Mn(U))}; g.gG=function(U){return Mn(U).toUpperCase()==="WEB"}; LL=function(U){return Mn(U)==="WEB_KIDS"}; g.ik=function(U){return Mn(U)==="WEB_UNPLUGGED"}; M3=function(U){return Mn(U)==="TVHTML5_UNPLUGGED"}; g.Au=function(U){return g.ik(U)||Mn(U)==="TV_UNPLUGGED_CAST"||M3(U)}; g.a8=function(U){return Mn(U)==="WEB_REMIX"}; g.SZ=function(U){return Mn(U)==="WEB_EMBEDDED_PLAYER"}; g.hI=function(U){return(U.deviceIsAudioOnly||!g.XW||gI||U.controlsType==="3"?!1:g.Jw?U.X&&g.z$(51):!0)||(U.deviceIsAudioOnly||!g.Ej||gI||U.controlsType==="3"?!1:g.Jw?U.X&&g.z$(48):g.z$(38))||(U.deviceIsAudioOnly||!g.AG||gI||U.controlsType==="3"?!1:g.Jw?U.X&&g.z$(37):g.z$(27))||!U.deviceIsAudioOnly&&g.pJ&&!c84()&&g.z$(11)||!U.deviceIsAudioOnly&&g.bh&&g.z$("604.4")}; JT5=function(U){if(g.qn(U)&&CL)return!1;if(g.Ej){if(!g.z$(47)||!g.z$(52)&&g.z$(51))return!1}else if(g.bh)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; fc7=function(U,O){return U.enabledEngageTypes.has(O.toString())||yTe.includes(O)}; Qh=function(U){return U.QP==="detailpage"}; g.qn=function(U){return U.QP==="embedded"}; JI=function(U){return U.QP==="leanback"}; nL=function(U){return U.QP==="adunit"||U.playerStyle==="gvn"}; g.Zb=function(U){return U.QP==="profilepage"}; g.Pn=function(U){return U.X&&g.qn(U)&&!nL(U)&&!U.C}; yK=function(U){if(!U.userDisplayImage)return"";var O=U.userDisplayImage.split("/");if(O.length===5)return U=O[O.length-1].split("="),U[1]="s20-c",O[O.length-1]=U.join("="),O.join("/");if(O.length===8)return O.splice(7,0,"s20-c"),O.join("/");if(O.length===9)return O[7]+="-s20-c",O.join("/");g.rz(new g.sT("Profile image not a FIFE URL.",U.userDisplayImage));return U.userDisplayImage}; g.fJ=function(U){var O=g.k0(U);FzW.includes(O)&&(O="www.youtube.com");return U.protocol+"://"+O}; g.Fy=function(U,O){O=O===void 0?"":O;if(U.GR){var M=new M6,S,p=U.GR();p.signedOut?S="":p.token?S=p.token:p.pendingResult.then(function(h){p.signedOut?M.resolve(""):M.resolve(h.token)},function(h){g.rz(new g.sT("b189348328_oauth_callback_failed",{error:h})); M.resolve(O)}); return S!==void 0?qv(S):new X2(M)}return qv(O)}; lT=function(U,O){O=O===void 0?"":O;return U.B7?jA(!0):dx(D1(jA(g.Fy(U,O)),function(M){return jA(!!M)}),function(){return jA(!1)})}; aK=function(U){var O=g.UY(U);return(U=Number(g.wU(4,U))||null)?O+":"+U:O}; G2=function(U,O){O=O===void 0?!1:O;var M=oi[U],S=lcW[M],p=GRw[U];if(!p||!S)return null;O=new EO(O?p.height:p.width,O?p.width:p.height,p.fps);S=DE(S,O,M);return new kF(U,S,{video:O,a_:p.bitrate/8})}; TEe=function(U){var O=lcW[oi[U]],M=$gw[U];return M&&O?new kF(U,O,{audio:new KP(M.audioSampleRate,M.numChannels)}):null}; $M=function(U){this.U=U}; T2=function(U,O,M,S){if(M)return ux();M={};var p=QN();O=g.D(O);for(var h=O.next();!h.done;h=O.next())if(h=h.value,U.canPlayType(p,h.getInfo().mimeType)||S){var J=h.U.video.quality;if(!M[J]||M[J].getInfo().XL())M[J]=h}U=[];M.auto&&U.push(M.auto);S=g.D(LP);for(p=S.next();!p.done;p=S.next())(p=M[p.value])&&U.push(p);return U.length?qv(U):ux()}; jqg=function(U){this.itag=U.itag;this.url=U.url;this.codecs=U.codecs;this.width=U.width;this.height=U.height;this.fps=U.fps;this.bitrate=U.bitrate;var O;this.V=((O=U.audioItag)==null?void 0:O.split(","))||[];this.bq=U.bq;this.IW=U.IW||"";this.ZN=U.ZN;this.audioChannels=U.audioChannels;this.U=""}; e61=function(U,O,M,S){O=O===void 0?!1:O;M=M===void 0?!0:M;S=S===void 0?{}:S;var p={};U=g.D(U);for(var h=U.next();!h.done;h=U.next()){h=h.value;if(O&&MediaSource&&MediaSource.isTypeSupported){var J=h.type;h.audio_channels&&(J=J+"; channels="+h.audio_channels);if(!MediaSource.isTypeSupported(J)){S[h.itag]="tpus";continue}}if(M||!h.drm_families||h.eotf!=="smpte2084"&&h.eotf!=="arib-std-b67"){J=void 0;var f={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},F=h.type.match(/codecs="([^"]*)"/); F=F?F[1]:"";h.audio_track_id&&(J=new g.Tv(h.name,h.audio_track_id,!!h.is_default));var l=h.eotf;h=new jqg({itag:h.itag,url:h.url,codecs:F,width:Number(h.width),height:Number(h.height),fps:Number(h.fps),bitrate:Number(h.bitrate),audioItag:h.audio_itag,bq:l?f[l]:void 0,IW:h.drm_families,ZN:J,audioChannels:Number(h.audio_channels)});p[h.itag]=p[h.itag]||[];p[h.itag].push(h)}else S[h.itag]="enchdr"}return p}; HnW=function(U,O,M,S,p){this.B=U;this.V=O;this.G=M;this.cpn=S;this.C=p;this.X=0;this.U=""}; z6w=function(U,O){U.B.some(function(M){var S;return((S=M.ZN)==null?void 0:S.getId())===O}); U.U=O}; jZ=function(U,O,M){U.cpn&&(O=g.pj(O,{cpn:U.cpn}));M&&(O=g.pj(O,{paired:M}));return O}; cTe=function(U,O){U=U.itag.toString();O!==null&&(U+=O.itag.toString());return U}; Dgw=function(U){for(var O=[],M=[],S=g.D(U.V),p=S.next();!p.done;p=S.next())p=p.value,p.bitrate<=U.X?O.push(p):M.push(p);O.sort(function(h,J){return J.bitrate-h.bitrate}); M.sort(function(h,J){return h.bitrate-J.bitrate}); U.V=O.concat(M)}; eZ=function(U,O,M){this.U=U;this.V=O;this.expiration=M;this.uM=null}; dgw=function(U,O){if(!(gI||gr()||Od()))return null;U=e61(O,U.T("html5_filter_fmp4_in_hls"));if(!U)return null;O=[];for(var M={},S=g.D(Object.keys(U)),p=S.next();!p.done;p=S.next()){p=g.D(U[p.value]);for(var h=p.next();!h.done;h=p.next()){var J=h.value;J.ZN&&(h=J.ZN.getId(),M[h]||(J=new g.Jc(h,J.ZN),M[h]=J,O.push(J)))}}return O.length>0?O:null}; xgg=function(U,O,M,S,p,h,J){if(!(gI||gr()||Od()))return ux();var f={},F=Wzy(M),l=e61(M,U.T("html5_filter_fmp4_in_hls"),U.G.D,f);if(!l)return J({noplst:1}),ux();NEW(l);M={};var G=(M.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",M),T;M=[];var e=[],H=[],z=null,W="";S=S&&S.match(/hls_timedtext_playlist/)?new jqg({itag:"0",url:S,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,ZN:new g.Tv("English","en",!1)}):null;for(var v=g.D(Object.keys(l)),x=v.next();!x.done;x=v.next())if(x=x.value,!U.T("html5_disable_drm_hfr_1080")|| x!=="383"&&x!=="373"){x=g.D(l[x]);for(var t=x.next();!t.done;t=x.next())if(t=t.value,t.width){for(var m=g.D(t.V),P=m.next();!P.done;P=m.next())if(P=P.value,l[P]){t.U=P;break}t.U||(t.U=v3U(l,t));if(m=l[t.U])if(M.push(t),t.IW==="fairplay"&&(T=G),P="",t.bq==="PQ"?P="smpte2084":t.bq==="HLG"&&(P="arib-std-b67"),P&&(W=P),H.push(BEy(m,[t],S,h,t.itag,t.width,t.height,t.fps,F,void 0,void 0,T,P)),!z||t.width*t.height*t.fps>z.width*z.height*z.fps)z=t}else e.push(t)}else f[x]="disdrmhfr";H.reduce(function(u, w){return w.getInfo().isEncrypted()&&u},!0)&&(T=G); p=Math.max(p,0);G=z||{};l=G.fps===void 0?0:G.fps;z=G.width===void 0?0:G.width;G=G.height===void 0?0:G.height;v=U.T("html5_native_audio_track_switching");H.push(BEy(e,M,S,h,"93",z,G,l,F,"auto",p,T,W,v));Object.entries(f).length&&J(f);return T2(U.G,H,oK(U,O),!1)}; BEy=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H){for(var z=0,W="",v=g.D(U),x=v.next();!x.done;x=v.next())x=x.value,W||(W=x.itag),x.audioChannels&&x.audioChannels>z&&(z=x.audioChannels,W=x.itag);p=new kF(p,"application/x-mpegURL",{audio:new KP(0,z),video:new EO(h,J,f,null,void 0,l,void 0,e),IW:T,cE:W});U=new HnW(U,O,M?[M]:[],S,!!H);U.X=G?G:1369843;return new eZ(p,U,F)}; Wzy=function(U){U=g.D(U);for(var O=U.next();!O.done;O=U.next())if(O=O.value,O.url&&(O=O.url.split("expire/"),!(O.length<=1)))return+O[1].split("/")[0];return NaN}; v3U=function(U,O){for(var M=g.D(Object.keys(U)),S=M.next();!S.done;S=M.next()){S=S.value;var p=U[S][0];if(!p.width&&p.IW===O.IW&&!p.audioChannels)return S}return""}; NEW=function(U){for(var O=new Set,M=g.D(Object.values(U)),S=M.next();!S.done;S=M.next())S=S.value,S.length&&(S=S[0],S.height&&S.codecs.startsWith("vp09")&&O.add(S.height));M=[];if(O.size){S=g.D(Object.keys(U));for(var p=S.next();!p.done;p=S.next())if(p=p.value,U[p].length){var h=U[p][0];h.height&&O.has(h.height)&&!h.codecs.startsWith("vp09")&&M.push(p)}}O=g.D(M);for(M=O.next();!M.done;M=O.next())delete U[M.value]}; Hb=function(U,O){this.U=U;this.V=O}; bne=function(U,O,M,S){var p=[];M=g.D(M);for(var h=M.next();!h.done;h=M.next()){var J=h.value;if(J.url){h=new g.bJ(J.url,!0);if(J.s){var f=h,F=J.sp,l=NL7(decodeURIComponent(J.s));f.set(F,encodeURIComponent(l))}f=g.D(Object.keys(S));for(F=f.next();!F.done;F=f.next())F=F.value,h.set(F,S[F]);J=F1(J.type,J.quality,J.itag,J.width,J.height);p.push(new Hb(J,h))}}return T2(U.G,p,oK(U,O),!1)}; z2=function(U,O){this.U=U;this.V=O}; R65=function(U,O,M){var S=[];M=g.D(M);for(var p=M.next();!p.done;p=M.next())if((p=p.value)&&p.url){var h=F1(p.type,"medium","0");S.push(new z2(h,p.url))}return T2(U.G,S,oK(U,O),!1)}; tHe=function(U,O){var M=[],S=F1(O.type,"auto",O.itag);M.push(new z2(S,O.url));return T2(U.G,M,!1,!0)}; mge=function(U){return U&&YZq[U]?YZq[U]:null}; ATg=function(U){if(U=U.commonConfig)this.url=U.url,this.urlQueryOverride=U.urlQueryOverride,U.ustreamerConfig&&(this.Y_=$0(U.ustreamerConfig)||void 0)}; IcU=function(U,O){var M;if(O=O==null?void 0:(M=O.watchEndpointSupportedOnesieConfig)==null?void 0:M.html5PlaybackOnesieConfig)U.ZR=new ATg(O)}; g.cb=function(U){U=U===void 0?{}:U;this.languageCode=U.languageCode||"";this.languageName=U.languageName||null;this.kind=U.kind||"";this.name=U.name===void 0?null:U.name;this.displayName=U.displayName||null;this.id=U.id||null;this.U=U.is_servable||!1;this.isTranslateable=U.is_translateable||!1;this.url=U.url||null;this.vssId=U.vss_id||"";this.isDefault=U.is_default||!1;this.translationLanguage=U.translationLanguage||null;this.xtags=U.xtags||"";this.captionId=U.captionId||""}; g.dG=function(U){var O={languageCode:U.languageCode,languageName:U.languageName,displayName:g.DI(U),kind:U.kind,name:U.name,id:U.id,is_servable:U.U,is_default:U.isDefault,is_translateable:U.isTranslateable,vss_id:U.vssId};U.xtags&&(O.xtags=U.xtags);U.captionId&&(O.captionId=U.captionId);U.translationLanguage&&(O.translationLanguage=U.translationLanguage);return O}; g.Wb=function(U){return U.translationLanguage?U.translationLanguage.languageCode:U.languageCode}; g.PWq=function(U){var O=U.vssId;U.translationLanguage&&O&&(O="t"+O+"."+g.Wb(U));return O}; g.DI=function(U){var O=[];if(U.displayName)O.push(U.displayName);else{var M=U.languageName||"";O.push(M);U.kind==="asr"&&M.indexOf("(")===-1&&O.push(" (Subt\u00edtulos autom\u00e1ticos)");U.name&&O.push(" - "+U.name)}U.translationLanguage&&O.push(" >> "+U.translationLanguage.languageName);return O.join("")}; X8e=function(U,O,M,S){U||(U=O&&n3e.hasOwnProperty(O)&&QqJ.hasOwnProperty(O)?QqJ[O]+"_"+n3e[O]:void 0);O=U;if(!O)return null;U=O.match(CWU);if(!U||U.length!==5)return null;if(U=O.match(CWU)){var p=Number(U[3]),h=[7,8,10,5,6];U=!(Number(U[1])===1&&p===8)&&h.indexOf(p)>=0}else U=!1;return M||S||U?O:null}; N3=function(U,O){for(var M={},S=g.D(Object.keys(unm)),p=S.next();!p.done;p=S.next()){p=p.value;var h=O?O+p:p;h=U[h+"_webp"]||U[h];g.yV(h)&&(M[unm[p]]=h)}return M}; vb=function(U){var O={};if(!U||!U.thumbnails)return O;U=U.thumbnails.filter(function(f){return!!f.url}); U.sort(function(f,F){return f.width-F.width||f.height-F.height}); for(var M=g.D(Object.keys(qZ7)),S=M.next();!S.done;S=M.next()){var p=Number(S.value);S=qZ7[p];for(var h=g.D(U),J=h.next();!J.done;J=h.next())if(J=J.value,J.width>=p){p=inw(J.url);g.yV(p)&&(O[S]=p);break}}(U=U.pop())&&U.width>=1280&&(U=inw(U.url),g.yV(U)&&(O["maxresdefault.jpg"]=U));return O}; inw=function(U){return U.startsWith("//")?"https:"+U:U}; Bb=function(U){return U&&U.baseUrl||""}; xM=function(U){U=g.Gr(U);for(var O=g.D(Object.keys(U)),M=O.next();!M.done;M=O.next()){M=M.value;var S=U[M];U[M]=Array.isArray(S)?S[0]:S}return U}; Zn1=function(U,O){U.botguardData=O.playerAttestationRenderer.botguardData;O=O.playerAttestationRenderer.challenge;O!=null&&(U.Nd=O)}; acw=function(U,O){O=g.D(O);for(var M=O.next();!M.done;M=O.next()){M=M.value;var S=M.interstitials.map(function(J){var f=g.q(J,Kzw);if(f)return{is_yto_interstitial:!0,raw_player_response:f};if(J=g.q(J,rTi))return Object.assign({is_yto_interstitial:!0},F2(J))}); S=g.D(S);for(var p=S.next();!p.done;p=S.next())switch(p=p.value,M.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":U.interstitials=U.interstitials.concat({time:0,playerVars:p,Ei:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":U.interstitials=U.interstitials.concat({time:0x7ffffffffffff,playerVars:p,Ei:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(M.podConfig.timeToInsertAtMillis);U.interstitials=U.interstitials.concat({time:h,playerVars:p, Ei:h===0?5:7})}}}; E37=function(U,O){if(O=O.find(function(M){return!(!M||!M.tooltipRenderer)}))U.tooltipRenderer=O.tooltipRenderer}; Lz1=function(U,O){O.subscribeCommand&&(U.subscribeCommand=O.subscribeCommand);O.unsubscribeCommand&&(U.unsubscribeCommand=O.unsubscribeCommand);O.addToWatchLaterCommand&&(U.addToWatchLaterCommand=O.addToWatchLaterCommand);O.removeFromWatchLaterCommand&&(U.removeFromWatchLaterCommand=O.removeFromWatchLaterCommand);O.getSharePanelCommand&&(U.getSharePanelCommand=O.getSharePanelCommand)}; VH5=function(U,O){O!=null?(U.t6=O,U.cJ=!0):(U.t6="",U.cJ=!1)}; bT=function(U,O){this.type=U||"";this.id=O||""}; g.RC=function(U){return new bT(U.substring(0,2),U.substring(2))}; g.tI=function(U,O){this.X0=U;this.author="";this.DW=null;this.playlistLength=0;this.U=this.sessionData=null;this.Z={};this.title="";if(O){this.author=O.author||O.playlist_author||"";this.title=O.playlist_title||"";if(U=O.session_data)this.sessionData=yI(U,"&");var M;this.U=((M=O.thumbnail_ids)==null?void 0:M.split(",")[0])||null;this.Z=N3(O,"playlist_");this.videoId=O.video_id||void 0;if(M=O.list)switch(O.listType){case "user_uploads":this.playlistId=(new bT("UU","PLAYER_"+M)).toString();break;default:if(U= O.playlist_length)this.playlistLength=Number(U)||0;this.playlistId=g.RC(M).toString();if(O=O.video)this.videoId=(O[0]||null).video_id||void 0}else O.playlist&&(this.playlistLength=O.playlist.toString().split(",").length)}}; g.YM=function(U,O){this.X0=U;this.PR=this.author="";this.DW=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.ek=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(O){this.ariaLabel=O.aria_label||void 0;this.author=O.author||"";this.PR=O.PR||"";if(U=O.endscreen_autoplay_session_data)this.DW=yI(U,"&");this.Sn=O.Sn;this.isLivePlayback=O.live_playback==="1";this.isUpcoming=!!O.isUpcoming;if(U=O.length_seconds)this.lengthSeconds=typeof U==="string"?Number(U):U;this.lengthText= O.lengthText||"";this.ek=O.ek||"";this.publishedTimeText=O.publishedTimeText||void 0;if(U=O.session_data)this.sessionData=yI(U,"&");this.shortViewCount=O.short_view_count_text||void 0;this.Z=N3(O);this.title=O.title||"";this.videoId=O.docid||O.video_id||O.videoId||O.id||void 0;this.watchUrl=O.watchUrl||void 0}}; o3y=function(U){var O,M,S=(O=U.getWatchNextResponse())==null?void 0:(M=O.contents)==null?void 0:M.twoColumnWatchNextResults,p,h,J,f,F;U=(p=U.getWatchNextResponse())==null?void 0:(h=p.playerOverlays)==null?void 0:(J=h.playerOverlayRenderer)==null?void 0:(f=J.endScreen)==null?void 0:(F=f.watchNextEndScreenRenderer)==null?void 0:F.results;if(!U){var l,G;U=S==null?void 0:(l=S.endScreen)==null?void 0:(G=l.endScreen)==null?void 0:G.results}return U}; g.AI=function(U){var O,M,S;U=g.q((O=U.getWatchNextResponse())==null?void 0:(M=O.playerOverlays)==null?void 0:(S=M.playerOverlayRenderer)==null?void 0:S.decoratedPlayerBarRenderer,mU);return g.q(U==null?void 0:U.playerBar,kR4)}; w8w=function(U){this.U=U.playback_progress_0s_url;this.B=U.playback_progress_2s_url;this.V=U.playback_progress_10s_url}; UC7=function(){if(IC===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(O){}a:{try{var U=!!self.localStorage}catch(O){U=!1}if(U&&(U=g.ZU(g.gq()+"::yt-player"))){IC=new Vc(U);break a}IC=void 0}}return IC}; g.Pb=function(){var U=UC7();if(!U)return{};try{var O=U.get("yt-player-lv");return JSON.parse(O||"{}")}catch(M){return{}}}; g.Or5=function(U){var O=UC7();O&&(U=JSON.stringify(U),O.set("yt-player-lv",U))}; g.nJ=function(U){return g.Pb()[U]||0}; g.QK=function(U,O){var M=g.Pb();O!==M[U]&&(O!==0?M[U]=O:delete M[U],g.Or5(M))}; g.CJ=function(U){return g.A(function(O){return O.return(g.wq(shg(),U))})}; uT=function(U,O,M,S,p,h,J,f){var F,l,G,T,e,H;return g.A(function(z){switch(z.U){case 1:return F=g.nJ(U),F===4?z.return(4):g.Y(z,g.Jr(),2);case 2:l=z.V;if(!l)throw g.tx("wiac");if(!f||J===void 0){z.tZ(3);break}return g.Y(z,gi7(f,J),4);case 4:J=z.V;case 3:return G=M.lastModified||"0",g.Y(z,g.CJ(l),5);case 5:return T=z.V,g.dW(z,6),Xy++,g.Y(z,g.uh(T,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",GS:!0},function(W){if(h!==void 0&&J!==void 0){var v=""+U+"|"+O.id+"|"+G+"|"+String(h).padStart(10, "0");v=g.qR(W.objectStore("media"),J,v)}else v=g.mC.resolve(void 0);var x=M51(U,O.i$()),t=M51(U,!O.i$()),m={fmts:Sk7(S),format:M||{}};x=g.qR(W.objectStore("index"),m,x);var P=S.downloadedEndTime===-1;m=P?W.objectStore("index").get(t):g.mC.resolve(void 0);var u={fmts:"music",format:{}};W=P&&p&&!O.i$()?g.qR(W.objectStore("index"),u,t):g.mC.resolve(void 0);return g.mC.all([W,m,v,x]).then(function(w){w=g.D(w);w.next();w=w.next().value;Xy--;var E=g.nJ(U);if(E!==4&&P&&p||w!==void 0&&g.pl1(w.fmts))E=1,g.QK(U, E);return E})}),8); case 8:return z.return(z.V);case 6:e=g.Bg(z);Xy--;H=g.nJ(U);if(H===4)return z.return(H);g.QK(U,4);throw e;}})}; g.hre=function(U){var O,M;return g.A(function(S){if(S.U==1)return g.Y(S,g.Jr(),2);if(S.U!=3){O=S.V;if(!O)throw g.tx("ri");return g.Y(S,g.CJ(O),3)}M=S.V;return S.return(g.uh(M,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(p){var h=IDBKeyRange.bound(U+"|",U+"~");return p.objectStore("index").getAll(h).then(function(J){return J.map(function(f){return f?f.format:{}})})}))})}; yZe=function(U,O,M,S,p){var h,J,f;return g.A(function(F){if(F.U==1)return g.Y(F,g.Jr(),2);if(F.U!=3){h=F.V;if(!h)throw g.tx("rc");return g.Y(F,g.CJ(h),3)}J=F.V;f=g.uh(J,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(l){var G=""+U+"|"+O+"|"+M+"|"+String(S).padStart(10,"0");return l.objectStore("media").get(G)}); return p?F.return(f.then(function(l){if(l===void 0)throw Error("No data from indexDb");return JZW(p,l)}).catch(function(l){throw new g.sT("Error while reading chunk: "+l.name+", "+l.message); })):F.return(f)})}; g.pl1=function(U){return U?U==="music"?!0:U.includes("dlt=-1")||!U.includes("dlt="):!1}; M51=function(U,O){return""+U+"|"+(O?"v":"a")}; Sk7=function(U){var O={};return f4((O.dlt=U.downloadedEndTime.toString(),O.mket=U.maxKnownEndTime.toString(),O.avbr=U.averageByteRate.toString(),O))}; F71=function(U){var O={},M={};U=g.D(U);for(var S=U.next();!S.done;S=U.next()){var p=S.value,h=p.split("|");p.match(g.fgg)?(S=Number(h.pop()),isNaN(S)?M[p]="?":(h=h.join("|"),(p=O[h])?(h=p[p.length-1],S===h.end+1?h.end=S:p.push({start:S,end:S})):O[h]=[{start:S,end:S}])):M[p]="?"}U=g.D(Object.keys(O));for(S=U.next();!S.done;S=U.next())S=S.value,M[S]=O[S].map(function(J){return J.start+"-"+J.end}).join(","); return M}; q3=function(U){g.H_.call(this);this.U=null;this.B=new a$;this.U=null;this.C=new Set;this.crossOrigin=U||""}; lgy=function(U,O,M){for(M=iT(U,M);M>=0;){var S=U.levels[M];if(S.isLoaded(ZI(S,O))&&(S=g.KJ(S,O)))return S;M--}return g.KJ(U.levels[0],O)}; $CU=function(U,O,M){M=iT(U,M);for(var S,p;M>=0;M--)if(S=U.levels[M],p=ZI(S,O),!S.isLoaded(p)){S=U;var h=M,J=h+"-"+p;S.C.has(J)||(S.C.add(J),S.B.enqueue(h,{S7:h,a7:p}))}GJ1(U)}; GJ1=function(U){if(!U.U&&!U.B.isEmpty()){var O=U.B.remove();U.U=TR7(U,O)}}; TR7=function(U,O){var M=document.createElement("img");U.crossOrigin&&(M.crossOrigin=U.crossOrigin);M.src=U.levels[O.S7].kI(O.a7);M.onload=function(){var S=O.S7,p=O.a7;U.U!==null&&(U.U.onload=null,U.U=null);S=U.levels[S];S.loaded.add(p);GJ1(U);var h=S.columns*S.rows;p*=h;S=Math.min(p+h-1,S.zV()-1);p=[p,S];U.publish("l",p[0],p[1])}; return M}; g.rG=function(U,O,M,S){this.level=U;this.X=O;this.loaded=new Set;this.level=U;this.X=O;U=M.split("#");this.width=Math.floor(Number(U[0]));this.height=Math.floor(Number(U[1]));this.frameCount=Math.floor(Number(U[2]));this.columns=Math.floor(Number(U[3]));this.rows=Math.floor(Number(U[4]));this.U=Math.floor(Number(U[5]));this.B=U[6];this.signature=U[7];this.videoLength=S}; ZI=function(U,O){return Math.floor(O/(U.columns*U.rows))}; g.KJ=function(U,O){O>=U.Wa()&&U.qa();var M=ZI(U,O),S=U.columns*U.rows,p=O%S;O=p%U.columns;p=Math.floor(p/U.columns);var h=U.qa()+1-S*M;if(h1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; jhJ=function(U,O,M){return(U=U.levels[O])?U.J8(M):-1}; iT=function(U,O){var M=U.X.get(O);if(M)return M;M=U.levels.length;for(var S=0;S=O)return U.X.set(O,S),S;U.X.set(O,M-1);return M-1}; E3=function(U,O,M,S){M=M.split("#");M=[M[1],M[2],0,M[3],M[4],-1,M[0],""].join("#");g.rG.call(this,U,O,M,0);this.V=null;this.G=S?2:0}; LJ=function(U,O,M,S){aC.call(this,U,0,void 0,O,!(S===void 0||!S));for(U=0;U(M!=null?M:50)&&(M=viW.shift())&&gd.delete(M),M=p),p!==M&&U.qA("ssei","dcpn_"+p+"_"+M+"_"+U.clientPlaybackNonce),M)}; wG=function(U,O){var M=O.raw_watch_next_response;if(!M){var S=O.watch_next_response;S&&(M=JSON.parse(S))}if(M){U.HA=M;var p=U.HA.playerCueRangeSet;p&&g.MP(U,p);var h=U.HA.playerOverlays;if(h){var J=h.playerOverlayRenderer;if(J){var f=J.autonavToggle;f&&(U.autoplaySwitchButtonRenderer=g.q(f,BR1),U.T("web_player_autonav_use_server_provided_state")&&So(U)&&(U.autonavState=U.autoplaySwitchButtonRenderer.enabled?2:1));var F=J.videoDetails;if(F){var l=F.embeddedPlayerOverlayVideoDetailsRenderer;var G=F.playerOverlayVideoDetailsRenderer; G&&(G.title&&(O.title=g.B_(G.title)),G.subtitle&&(O.subtitle=g.B_(G.subtitle)))}g.qn(U.X0)&&(U.Op=!!J.addToMenu);xC5(U,J.shareButton);J.startPosition&&J.endPosition&&(U.progressBarStartPosition=J.startPosition,U.progressBarEndPosition=J.endPosition);var T=J.gatedActionsOverlayRenderer;T&&(U.Bq=g.q(T,brJ));var e,H,z,W=g.q((e=U.getWatchNextResponse())==null?void 0:(H=e.playerOverlays)==null?void 0:(z=H.playerOverlayRenderer)==null?void 0:z.infoPanel,RrU);if(W){U.ZG=Number(W==null?void 0:W.durationMs)|| NaN;if(W==null?0:W.infoPanelOverviewViewModel)U.e5=W==null?void 0:W.infoPanelOverviewViewModel;if(W==null?0:W.infoPanelDetailsViewModel)U.u6=W==null?void 0:W.infoPanelDetailsViewModel}U.showSeekingControls=!!J.showSeekingControls}}var v,x,t=(v=U.getWatchNextResponse())==null?void 0:(x=v.contents)==null?void 0:x.twoColumnWatchNextResults;if(t){var m=t.desktopOverlay&&g.q(t.desktopOverlay,t51);m&&(m.suppressShareButton&&(U.showShareButton=!1),m.suppressWatchLaterButton&&(U.Op=!1))}l&&Yk4(U,O,l);var P= $d(0,O.autoplay_count),u=U.getWatchNextResponse(),w,E=(w=u.contents)==null?void 0:w.twoColumnWatchNextResults,Sm,JU,Uw,Z=(Sm=u.playerOverlays)==null?void 0:(JU=Sm.playerOverlayRenderer)==null?void 0:(Uw=JU.autoplay)==null?void 0:Uw.playerOverlayAutoplayRenderer,k=o3y(U),d,K=(d=u.contents)==null?void 0:d.singleColumnWatchNextResults;if(K){var i5;if(((i5=K.autoplay)==null?0:i5.autoplay)&&!K.playlist){var vq=K.autoplay.autoplay.sets,Hq={},b5=new g.YM(U.J()),s4=null,yD;if(vq){for(var zl=g.D(vq),B=zl.next();!B.done;B= zl.next()){var b=B.value.autoplayVideoRenderer;if(b&&b.compactVideoRenderer){s4=b.compactVideoRenderer;break}}if(yD=vq[0].autoplayVideo){var R=yD.clickTrackingParams;R&&(Hq.itct=R);Hq.autonav="1";Hq.playnext=String(P)}}else Hq.feature="related-auto";var I=g.q(yD,g.pe);if(s4){b5.videoId=s4.videoId;var n=s4.shortBylineText;n&&(b5.author=g.B_(n));var Ow=s4.title;Ow&&(b5.title=g.B_(Ow))}else I!=null&&I.videoId&&(b5.videoId=I.videoId);b5.DW=Hq;U.suggestions=[];U.s3=b5}}if(k){for(var p7=[],hU=g.D(k),Q= hU.next();!Q.done;Q=hU.next()){var Wg=Q.value,yi=void 0,f7=null;if(Wg.endScreenVideoRenderer){var Iw=Wg.endScreenVideoRenderer,ke=Iw.title;f7=new g.YM(U.J());f7.videoId=Iw.videoId;f7.lengthSeconds=Iw.lengthInSeconds||0;var qy=Iw.publishedTimeText;qy&&(f7.publishedTimeText=g.B_(qy));var wJ=Iw.shortBylineText;wJ&&(f7.author=g.B_(wJ));var Ew=Iw.shortViewCountText;Ew&&(f7.shortViewCount=g.B_(Ew));if(ke){f7.title=g.B_(ke);var Lt=ke.accessibility;if(Lt){var iU=Lt.accessibilityData;iU&&iU.label&&(f7.ariaLabel= iU.label)}}var HV=Iw.navigationEndpoint;if(HV){yi=HV.clickTrackingParams;var EG=g.q(HV,g.pe),Tx=g.q(HV,g.ad);EG?f7.Sn=EG:Tx!=null&&(f7.watchUrl=Tx.url)}var VG=Iw.thumbnailOverlays;if(VG)for(var iH=g.D(VG),o9=iH.next();!o9.done;o9=iH.next()){var Bd=o9.value.thumbnailOverlayTimeStatusRenderer;if(Bd)if(Bd.style==="LIVE"){f7.isLivePlayback=!0;break}else if(Bd.style==="UPCOMING"){f7.isUpcoming=!0;break}}f7.Z=vb(Iw.thumbnail)}else if(Wg.endScreenPlaylistRenderer){var jw=Wg.endScreenPlaylistRenderer,Pr= jw.navigationEndpoint;if(!Pr)continue;var zH=g.q(Pr,g.pe);if(!zH)continue;var nT=zH.videoId;f7=new g.tI(U.J());f7.playlistId=jw.playlistId;f7.playlistLength=Number(jw.videoCount)||0;f7.U=nT||null;f7.videoId=nT;var rD=jw.title;rD&&(f7.title=g.B_(rD));var at=jw.shortBylineText;at&&(f7.author=g.B_(at));yi=Pr.clickTrackingParams;f7.Z=vb(jw.thumbnail)}f7&&(yi&&(f7.sessionData={itct:yi}),p7.push(f7))}U.suggestions=p7}if(Z){U.T8=!!Z.preferImmediateRedirect;U.gK=U.gK||!!Z.webShowNewAutonavCountdown;U.TR= U.TR||!!Z.webShowBigThumbnailEndscreen;if(U.gK||U.TR){var RO=E||null,sB=new g.YM(U.J());sB.videoId=Z.videoId;var kS=Z.videoTitle;if(kS){sB.title=g.B_(kS);var ho=kS.accessibility;if(ho){var q9=ho.accessibilityData;q9&&q9.label&&(sB.ariaLabel=q9.label)}}var sI=Z.byline;sI&&(sB.author=g.B_(sI));var eS=Z.publishedTimeText;eS&&(sB.publishedTimeText=g.B_(eS));var Rm=Z.shortViewCountText;Rm&&(sB.shortViewCount=g.B_(Rm));var tO=Z.thumbnailOverlays;if(tO)for(var Yf=g.D(tO),HP=Yf.next();!HP.done;HP=Yf.next()){var TC= HP.value.thumbnailOverlayTimeStatusRenderer;if(TC)if(TC.style==="LIVE"){sB.isLivePlayback=!0;break}else if(TC.style==="UPCOMING"){sB.isUpcoming=!0;break}else if(TC.style==="DEFAULT"&&TC.text){sB.lengthText=g.B_(TC.text);var zA=TC.text.accessibility;if(zA){var cP=zA.accessibilityData;cP&&cP.label&&(sB.ek=cP.label||"")}break}}sB.Z=vb(Z.background);var mp=Z.nextButton;if(mp){var AO=mp.buttonRenderer;if(AO){var Im=AO.navigationEndpoint;if(Im){var P1=g.q(Im,g.pe);P1&&(sB.Sn=P1)}}}if(Z.topBadges){var nO= Z.topBadges[0];if(nO){var Qr=g.q(nO,mC1);Qr&&Qr.style==="BADGE_STYLE_TYPE_PREMIUM"&&(sB.dzZ=!0)}}var OE=Z.alternativeTitle;OE&&(sB.PR=g.B_(OE));var ie={autonav:"1",playnext:String(P)};sB.playlistId&&(ie.autoplay="1");if(RO){var sE,L1,Dz,CO,dT=(sE=RO.autoplay)==null?void 0:(L1=sE.autoplay)==null?void 0:(Dz=L1.sets)==null?void 0:(CO=Dz[0])==null?void 0:CO.autoplayVideo;if(dT){var X1=dT.clickTrackingParams;X1&&(ie.itct=X1);var WP=g.q(dT,g.pe);WP&&(sB.o6=WP)}}else if(Z){var uE,qe,iE,Zt=(uE=Z.nextButton)== null?void 0:(qe=uE.buttonRenderer)==null?void 0:(iE=qe.navigationEndpoint)==null?void 0:iE.clickTrackingParams;Zt&&(ie.itct=Zt)}ie.itct||(ie.feature="related-auto");sB.DW=ie;U.suggestions||(U.suggestions=[]);U.s3=sB}Z.countDownSecs!=null&&(U.RD=Z.countDownSecs*1E3);Z.countDownSecsForFullscreen!=null&&(U.d4=Z.countDownSecsForFullscreen>=0?Z.countDownSecsForFullscreen*1E3:-1);U.T("web_autonav_color_transition")&&Z.watchToWatchTransitionRenderer&&(U.watchToWatchTransitionRenderer=g.q(Z.watchToWatchTransitionRenderer, AZg))}var NZ=o3y(U);if(NZ){var xa,KO,vP,BP=NZ==null?void 0:(xa=NZ[0])==null?void 0:(KO=xa.endScreenVideoRenderer)==null?void 0:(vP=KO.navigationEndpoint)==null?void 0:vP.clickTrackingParams,rm=g.hK(U);BP&&rm&&(rm.sessionData={itct:BP})}U.HA.currentVideoThumbnail&&(U.Z=vb(U.HA.currentVideoThumbnail));var ge,am,E6,Mi,LO,bB=(ge=U.HA)==null?void 0:(am=ge.contents)==null?void 0:(E6=am.twoColumnWatchNextResults)==null?void 0:(Mi=E6.results)==null?void 0:(LO=Mi.results)==null?void 0:LO.contents;if(bB&&bB[1]){var Vr, om,ZV,va,Eb=(Vr=bB[1].videoSecondaryInfoRenderer)==null?void 0:(om=Vr.owner)==null?void 0:(ZV=om.videoOwnerRenderer)==null?void 0:(va=ZV.thumbnail)==null?void 0:va.thumbnails;Eb&&Eb.length&&(U.profilePicture=Eb[Eb.length-1].url)}var kf=eQ(O),x6,Rx=(x6=U.getWatchNextResponse())==null?void 0:x6.onResponseReceivedEndpoints;if(Rx)for(var tr=g.D(Rx),br=tr.next();!br.done;br=tr.next()){var Lx=br.value;g.q(Lx,JK)&&(U.tb=g.q(Lx,JK));var Ya=g.q(Lx,Igq),wm=void 0;if((wm=Ya)==null?0:wm.entityKeys)U.hk=Ya.entityKeys|| [],Ya.visibleOnLoadKeys&&(U.visibleOnLoadKeys=Ya.visibleOnLoadKeys)}if(U.T("web_key_moments_markers")){var pd=g.y7.getState().entities,e3=g.hi("visibility_override","markersVisibilityOverrideEntity");var Mv=yL(pd,"markersVisibilityOverrideEntity",e3);U.r7=(Mv==null?void 0:Mv.videoId)===(U.videoId||kf)&&(Mv==null?0:Mv.visibilityOverrideMarkersKey)?Mv.visibilityOverrideMarkersKey:U.visibleOnLoadKeys;U.visibleOnLoadKeys=[].concat(g.N(U.r7))}}}; So=function(U){var O;return((O=U.autoplaySwitchButtonRenderer)==null?void 0:O.enabled)!==void 0}; fe=function(U){return!!(U.B&&U.B.videoInfos&&U.B.videoInfos.length)}; g.TS=function(U){var O=U.Y;U.T("html5_gapless_unlimit_format_selection")&&FX(U)&&(O=!1);var M=!!U.U&&U.U.KE,S=U.X0,p=U.Mv(),h=lI(U),J=U.TY,f=O,F=U.isOtf();O=U.Nr();var l=U.pE,G=U.getUserAudio51Preference(),T=GS(U),e=new y0e(S);if(S.PV()||S.T("html5_logging_format_selection"))e.V=!0;e.Yy=h;e.TY=J&&S.D;e.Ca=G;g.kJ("windows nt 5.1")&&!g.Ej&&(e.k_=!0);if(h=p)h=g.hI(S)?JT5(S):!1;h&&(e.ol=!0);f&&(e.k_=!0,e.F9=!0);F&&!S.T("html5_otf_prefer_vp9")&&(e.k_=!0);S.playerStyle==="picasaweb"&&(F&&(e.k_=!1),e.BA= !1);l&&(e.k_=!0);Bs(S.G,xc.CHANNELS)&&(S.T("html5_enable_ac3")&&(e.G=!0),S.T("html5_enable_eac3")&&(e.C=!0),S.T("html5_enable_ac3_gapless")&&(e.Ka=!0));S.T("html5_block_8k_hfr")&&(e.NL=!0);e.D=g.DF(S.experiments,"html5_max_selectable_quality_ordinal");e.Y=g.DF(S.experiments,"html5_min_selectable_quality_ordinal");mq&&(e.EQ=480);if(M||p)e.BA=!1;e.pE=!1;e.disableAv1=T;M=Cu(S,e.U,void 0,e.disableAv1);M>0&&M<2160&&(Ne()||S.T("html5_format_hybridization"))&&(e.U.supportsChangeType=+Ne(),e.Ov=M);M>=2160&& (e.QP=!0);Poe()&&(e.U.serveVp9OverAv1IfHigherRes=0,e.Oj=!1);e.Nr=O;e.hZ=g.Mp||fE()&&!O?!1:!0;e.Z=S.T("html5_format_hybridization");e.Qa=S.T("html5_disable_encrypted_vp9_live_non_2k_4k");$u(U)&&(e.WV=U.T("html5_prefer_language_over_codec"));Od()&&U.playerResponse&&U.playerResponse.playerConfig&&U.playerResponse.playerConfig.webPlayerConfig&&U.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(e.G=!0,e.C=!0);U.Y&&U.isAd()&&(U.zi&&(e.yP=U.zi),U.Zw&&(e.X=U.Zw));e.HA=U.isLivePlayback&& U.Fk()&&U.X0.T("html5_drm_live_audio_51");e.r7=U.hF;return U.mD=e}; GS=function(U){return U.X0.T("html5_disable_av1")||U.T("html5_gapless_shorts_disable_av1")&&FX(U)?!0:!1}; PYm=function(U){Ll("drm_pb_s",void 0,U.hZ);U.NL||U.U&&Dw(U.U);var O={};U.U&&(O=EYq(U.bT,g.TS(U),U.X0.G,U.U,function(M){return U.publish("ctmp","fmtflt",M)},!0,new Set)); O=new UR(O,U.X0,U.Ds,U.useCobaltWidevine?Od()?jo(U):!1:!1,function(M,S){U.al(M,S)}); g.X(U,O);U.wb=!1;U.loading=!0;c0y(O,function(M){Ll("drm_pb_f",void 0,U.hZ);for(var S=g.D(M),p=S.next();!p.done;p=S.next())switch(p=p.value,p.flavor){case "fairplay":p.NL=U.NL;p.Lq=U.Lq;p.Cq=U.Cq;break;case "widevine":p.ma=U.ma}U.J6=M;if(U.J6.length>0&&(U.G=U.J6[0],U.X0.PV())){M={};S=g.D(Object.entries(U.G.U));for(p=S.next();!p.done;p=S.next()){var h=g.D(p.value);p=h.next().value;h=h.next().value;var J="unk";(p=p.match(/(.*)codecs="(.*)"/))&&(J=p[2]);M[J]=h}U.al("drmProbe",M)}U.pn()})}; ni7=function(U,O){if(O.length===0||eo(U))return null;U.X0.G.B&&(P3=!0);var M=U.IW;var S=U.lengthSeconds,p=U.isLivePlayback,h=U.Dh,J=U.X0,f=Efw(O);if(p||h){J=J.experiments;S=new c3("",J,!0);S.V=!h;S.KE=!0;S.isManifestless=!0;S.isLive=!h;S.Dh=h;O=g.D(O);for(p=O.next();!p.done;p=O.next()){var F=p.value;p=W3(F,M);f=Ps(F);f=v3(f.yY||F.url||"",f.Lz,f.s);var l=f.get("id");l&&l.includes("%7E")&&(S.Z=!0);var G=void 0;l=(G=J)==null?void 0:G.F0("html5_max_known_end_time_rebase");G=Number(F.targetDurationSec|| 5);F=Number(F.maxDvrDurationSec||14400);var T=Number(f.get("mindsq")||f.get("min_sq")||"0"),e=Number(f.get("maxdsq")||f.get("max_sq")||"0")||Infinity;S.QM=S.QM||T;S.d3=S.d3||e;var H=!fO(p.mimeType);f&&ex(S,new gs(f,p,{xV:G,i7:H,wg:F,QM:T,d3:e,ix:300,Dh:h,wx:l}))}M=S}else if(f==="FORMAT_STREAM_TYPE_OTF"){S=S===void 0?0:S;h=new c3("",J.experiments,!1);h.duration=S||0;J=g.D(O);for(S=J.next();!S.done;S=J.next())S=S.value,O=W3(S,M,h.duration),p=Ps(S),(p=v3(p.yY||S.url||"",p.Lz,p.s))&&(O.streamType==="FORMAT_STREAM_TYPE_OTF"? ex(h,new M_(p,O,"sq/0")):ex(h,new $b(p,O,Qb(S.initRange),Qb(S.indexRange))));h.isOtf=!0;M=h}else{S=S===void 0?0:S;h=new c3("",J.experiments,!1);h.duration=S||0;J=g.D(O);for(S=J.next();!S.done;S=J.next())f=S.value,S=W3(f,M,h.duration),O=Qb(f.initRange),p=Qb(f.indexRange),l=Ps(f),(f=v3(l.yY||f.url||"",l.Lz,l.s))&&ex(h,new $b(f,S,O,p));M=h}h=U.isLivePlayback&&!U.Dh&&!U.Ca&&!U.isPremiere;U.T("html5_live_head_playable")&&(!HB(U)&&h&&U.al("missingLiveHeadPlayable",{}),U.X0.yP==="yt"&&(M.hZ=!0));return M}; eo=function(U){return Od()?!jo(U):gr()?!(!U.NL||!U.T("html5_enable_safari_fairplay")&&JG()):!1}; jo=function(U){return U.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.MP=function(U,O){O=g.D(O);for(var M=O.next();!M.done;M=O.next())if(M=M.value,M.cueRangeSetIdentifier){var S=void 0;U.ul.set(M.cueRangeSetIdentifier,(S=M.playerCueRanges)!=null?S:[])}}; zS=function(U){return!(!U.U||!U.U.isManifestless)}; cB=function(U){return U.Dq?U.isLowLatencyLiveStream&&U.U!=null&&Rb(U.U)>=5:U.isLowLatencyLiveStream&&U.U!=void 0&&Rb(U.U)>=5}; Qhw=function(U){return Od()&&jo(U)?!1:eo(U)&&(g.Au(U.X0)?!U.isLivePlayback:U.hlsvp)||!JG()||U.Pt?!0:!1}; ufJ=function(U){U.loading=!0;U.TA=!1;if(CYU(U))g.hre(U.videoId).then(function(S){Xlw(U,S)}).then(function(){U.pn()}); else{JR(U.cB)||g.rz(new g.sT("DASH MPD Origin invalid: ",U.cB));var O=U.cB,M=g.DF(U.X0.experiments,"dash_manifest_version")||4;O=g.pj(O,{mpd_version:M});U.isLowLatencyLiveStream&&U.latencyClass!=="NORMAL"||(O=g.pj(O,{pacing:0}));sz4(O,U.X0.experiments,U.isLivePlayback).then(function(S){U.GY()||(Dp(U,S,!0),Ll("mrc",void 0,U.hZ),U.pn())},function(S){U.GY()||(U.loading=!1,U.publish("dataloaderror",new Ii("manifest.net.retryexhausted",{backend:"manifest", rc:S.status},1)))}); Ll("mrs",void 0,U.hZ)}}; Xlw=function(U,O){var M=O.map(function(F){return F.itag}),S; if((S=U.playerResponse)!=null&&S.streamingData){S=[];if(U.T("html5_offline_always_use_local_formats")){M=0;for(var p=g.D(O),h=p.next();!h.done;h=p.next()){h=h.value;var J=Object.assign({},h);J.signatureCipher="";S.push(J);J=g.D(U.playerResponse.streamingData.adaptiveFormats);for(var f=J.next();!f.done;f=J.next())if(f=f.value,h.itag===f.itag&&h.xtags===f.xtags){M+=1;break}}MG&&(G=H.getInfo().audio.numChannels)}G>2&&U.al("hlschl",{mn:G});var v;((v=U.mD)==null?0:v.V)&&U.al("hlsfmtaf",{itags:T.join(".")});var x;if(U.T("html5_enable_vp9_fairplay")&&((x=U.G)==null?0:rs(x)))for(U.al("drm",{sbdlfbk:1}),G=g.D(U.J6),T=G.next();!T.done;T=G.next())if(T=T.value,Ku(T)){U.G=T;break}vB(U,l)})}return ux()}; rZe=function(U){if(U.isExternallyHostedPodcast&&U.WN){var O=NP(U.WN);if(!O[0])return ux();U.Ek=O[0];return tHe(U.X0,O[0]).then(function(M){vB(U,M)})}return U.qy&&U.Xz?R65(U.X0,U.isAd(),U.qy).then(function(M){vB(U,M)}):ux()}; Eig=function(U){if(U.isExternallyHostedPodcast)return ux();var O=NP(U.WN,U.Fr);if(U.hlsvp){var M=erq(U.hlsvp,U.clientPlaybackNonce,U.dH);O.push(M)}return bne(U.X0,U.isAd(),O,age(U)).then(function(S){vB(U,S)})}; vB=function(U,O){U.UX=O;U.d2(new jg(g.mV(U.UX,function(M){return M.getInfo()})))}; age=function(U){var O={cpn:U.clientPlaybackNonce,c:U.X0.U.c,cver:U.X0.U.cver};U.jk&&(O.ptk=U.jk,O.oid=U.dl,O.ptchn=U.bk,O.pltype=U.OI,U.Kq&&(O.m=U.Kq));return O}; g.BB=function(U){return eo(U)&&U.NL?(U={},U.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",U):U.V&&U.V.IW||null}; L7U=function(U){var O=xu(U);return O&&O.text?g.B_(O.text):U.paidContentOverlayText}; V5e=function(U){var O=xu(U);return O&&O.durationMs?$v(O.durationMs):U.paidContentOverlayDurationMs}; xu=function(U){var O,M,S;return U.playerResponse&&U.playerResponse.paidContentOverlay&&U.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.q((O=U.HA)==null?void 0:(M=O.playerOverlays)==null?void 0:(S=M.playerOverlayRenderer)==null?void 0:S.playerDisclosure,oi5)||null}; bI=function(U){var O="";if(U.Ta)return U.Ta;U.isLivePlayback&&(O=U.allowLiveDvr?"dvr":U.isPremiere?"lp":U.Ca?"window":"live");U.Dh&&(O="post");return O}; g.R6=function(U,O){return typeof U.keywords[O]!=="string"?null:U.keywords[O]}; kJ1=function(U){return!!U.WU||!!U.UP||!!U.Ig||!!U.T3||U.fS||U.D.focEnabled||U.D.rmktEnabled}; g.tK=function(U){return!!(U.cB||U.WN||U.qy||U.hlsvp||U.MF())}; kM=function(U){if(U.T("html5_onesie")&&U.errorCode)return!1;var O=g.kE(U.BA,"ypc");U.ypcPreview&&(O=!1);return U.cT()&&!U.loading&&(g.tK(U)||g.kE(U.BA,"heartbeat")||O)}; NP=function(U,O){U=lx(U);var M={};if(O){O=g.D(O.split(","));for(var S=O.next();!S.done;S=O.next())(S=S.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(M[S[1]]={width:S[2],height:S[3]})}O=g.D(U);for(S=O.next();!S.done;S=O.next()){S=S.value;var p=M[S.itag];p&&(S.width=p.width,S.height=p.height)}return U}; Yu=function(U){var O=U.getAvailableAudioTracks();O=O.concat(U.mW);for(var M=0;M0:O||U.adFormat!=="17_8"||U.isAutonav||g.SZ(U.X0)||U.LN?U.fO?!1:U.X0.FT||U.X0.QO||!g.Pn(U.X0)?!O&&iI(U)==="adunit"&&U.WU?!1:!0:!1:!1:(U.fO?0:U.DD)&&g.Pn(U.X0)?!0:!1;U.T("html5_log_detailpage_autoplay")&&iI(U)==="detailpage"&&U.al("autoplay_info",{autoplay:U.RL,autonav:U.isAutonav,wasDompaused:U.fO,result:O});return O}; g.Es=function(U){return U.oauthToken||U.X0.cU}; F$5=function(U){if(U.T("html5_stateful_audio_normalization")){var O=1,M=g.DF(U.X0.experiments,"html5_default_ad_gain");M&&U.isAd()&&(O=M);var S;if(M=((S=U.X)==null?void 0:S.audio.V)||U.t8){S=(0,g.nM)();U.y$=2;var p=S-U.X0.Mh<=U.maxStatefulTimeThresholdSec*1E3;U.applyStatefulNormalization&&p?U.y$=4:p||(U.X0.XK=Infinity,U.X0.Mh=NaN);p=(U.y$===4?g.Nm(U.X0.XK,U.minimumLoudnessTargetLkfs,U.loudnessTargetLkfs):U.loudnessTargetLkfs)-M;if(U.y$!==4){var h,J,f,F,l=((h=U.playerResponse)==null?void 0:(J=h.playerConfig)== null?void 0:(f=J.audioConfig)==null?void 0:(F=f.loudnessNormalizationConfig)==null?void 0:F.statelessLoudnessAdjustmentGain)||0;p+=l}p=Math.min(p,0);U.preserveStatefulLoudnessTarget&&(U.X0.XK=M+p,U.X0.Mh=S);U=Math.min(1,Math.pow(10,p/20))||O}else U=fDw(U)}else U=fDw(U);return U}; fDw=function(U){var O=1,M=g.DF(U.X0.experiments,"html5_default_ad_gain");M&&U.isAd()&&(O=M);var S;if(M=((S=U.X)==null?void 0:S.audio.B)||U.gs)U.y$=1;return Math.min(1,Math.pow(10,-M/20))||O}; lI=function(U){var O=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],M=Mn(U.X0)==="TVHTML5_SIMPLY"&&U.X0.U.ctheme==="MUSIC";U.FT||!g.a8(U.X0)&&!M||!O.includes(U.musicVideoType)&&!U.isExternallyHostedPodcast||(U.FT=!0);if(O=g.Ud())O=/Starboard\/([0-9]+)/.exec(g.YE()),O=(O?parseInt(O[1],10):NaN)<10;M=U.X0;M=(Mn(M)==="TVHTML5_CAST"||Mn(M)==="TVHTML5"&&(M.U.cver.startsWith("6.20130725")||M.U.cver.startsWith("6.20130726")))&&U.X0.U.ctheme==="MUSIC";var S;if(S=!U.FT)M||(M=U.X0,M=Mn(M)=== "TVHTML5"&&M.U.cver.startsWith("7")),S=M;S&&!O&&(O=U.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",M=(U.T("cast_prefer_audio_only_for_atv_and_uploads")||U.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&U.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",O||M||U.isExternallyHostedPodcast)&&(U.FT=!0);return U.X0.deviceIsAudioOnly||U.FT&&U.X0.D}; Le=function(U){var O,M,S;return((O=U.playerResponse)==null?void 0:(M=O.playerConfig)==null?void 0:(S=M.compositeVideoConfig)==null?void 0:S.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.lD5=function(U){return U.T("html5_enable_sabr_live_captions")&&U.KE()&&$u(U)||Le(U)}; V7=function(U){var O,M,S;return!!((O=U.playerResponse)==null?0:(M=O.playerConfig)==null?0:(S=M.mediaCommonConfig)==null?0:S.splitScreenEligible)}; o6=function(U){var O;return!((O=U.playerResponse)==null||!O.compositePlayabilityStatus)}; G8e=function(U){return isNaN(U)?0:Math.max((Date.now()-U)/1E3-30,0)}; ku=function(U){return!(!U.TB||!U.X0.D)&&U.MF()}; wd=function(U){return U.O3&&U.enableServerStitchedDai}; $qm=function(U){return U.v7&&!U.o2}; $u=function(U){var O=U.T("html5_enable_sabr_on_drive")&&U.X0.yP==="gd";if(U.us)return U.v7&&U.al("fds",{fds:!0},!0),!1;if(U.X0.yP!=="yt"&&!O)return U.v7&&U.al("dsvn",{ns:U.X0.yP},!0),!1;if(U.cotn||!U.U||U.U.isOtf||U.UI&&!U.T("html5_enable_sabr_csdai"))return!1;if(U.T("html5_use_sabr_requests_for_debugging"))return!0;U.v7&&U.al("esfw",{usbc:U.v7,hsu:!!U.o2},!0);if(U.v7&&U.o2)return!0;if(U.T("html5_remove_client_sabr_determination"))return!1;var M=!U.U.KE&&!U.Fk();O=M&&Sf&&U.T("html5_enable_sabr_vod_streaming_xhr"); M=M&&!Sf&&U.T("html5_enable_sabr_vod_non_streaming_xhr");var S=UE(U),p=U.T("html5_enable_sabr_drm_vod_streaming_xhr")&&Sf&&U.Fk()&&!U.U.KE&&(U.n1==="1"?!1:!0);(O=O||M||S||p)&&!U.o2&&U.al("sabr",{loc:"m"},!0);return O&&!!U.o2}; UE=function(U){var O;if(!(O=Sf&&U.KE()&&U.Fk()&&(U.n1==="1"?!1:!0)&&U.T("html5_sabr_live_drm_streaming_xhr"))){O=U.KE()&&!U.Fk()&&Sf;var M=U.KE()&&U.latencyClass!=="ULTRALOW"&&!U.isLowLatencyLiveStream&&U.T("html5_sabr_live_normal_latency_streaming_xhr"),S=U.isLowLatencyLiveStream&&U.T("html5_sabr_live_low_latency_streaming_xhr"),p=U.latencyClass==="ULTRALOW"&&U.T("html5_sabr_live_ultra_low_latency_streaming_xhr");O=O&&(M||S||p)}M=O;O=U.enableServerStitchedDai&&M&&U.T("html5_enable_sabr_ssdai_streaming_xhr"); M=!U.enableServerStitchedDai&&M;S=U.KE()&&!Sf&&U.T("html5_enable_sabr_live_non_streaming_xhr");U=Sf&&(U.Js()||V7(U)&&U.T("html5_enable_sabr_for_lifa_eligible_streams"));return O||M||S||U}; g.Os=function(U){return U.lN&&$u(U)}; CYU=function(U){var O;if(O=!!U.cotn)O=U.videoId,O=!!O&&g.nJ(O)===1;return O&&!U.TB}; g.Se=function(U){if(!U.U||!U.V||!U.X)return!1;var O=U.U.U,M=!!O[U.V.id]&&Yc(O[U.V.id].uM.U);O=!!O[U.X.id]&&Yc(O[U.X.id].uM.U);return(U.V.itag==="0"||M)&&O}; hg=function(U){return U.ag?["OK","LIVE_STREAM_OFFLINE"].includes(U.ag.status):!0}; gXm=function(U){return(U=U.kL)&&U.showError?U.showError:!1}; Jg=function(U,O){return U.T(O)?!0:(U.fflags||"").includes(O+"=true")}; Tw1=function(U){return U.T("html5_heartbeat_iff_heartbeat_params_filled")}; NRq=function(U,O){O.inlineMetricEnabled&&(U.inlineMetricEnabled=!0);O.playback_progress_0s_url&&(U.T3=new w8w(O));if(O=O.video_masthead_ad_quartile_urls)U.UP=O.quartile_0_url,U.D1=O.quartile_25_url,U.Ly=O.quartile_50_url,U.Pj=O.quartile_75_url,U.kc=O.quartile_100_url,U.Ig=O.quartile_0_urls,U.XG=O.quartile_25_urls,U.nU=O.quartile_50_urls,U.Qs=O.quartile_75_urls,U.vt=O.quartile_100_urls}; W7m=function(U){var O={};U=g.D(U);for(var M=U.next();!M.done;M=U.next()){M=M.value;var S=M.split("=");S.length===2?O[S[0]]=S[1]:O[M]=!0}return O}; cZ4=function(U){if(U){if(SXw(U))return U;U=p_W(U);if(SXw(U,!0))return U}return""}; g.jre=function(U){return U.captionsLanguagePreference||U.X0.captionsLanguagePreference||g.R6(U,"yt:cc_default_lang")||U.X0.Qa}; yA=function(U){return!(!U.isLivePlayback||!U.hasProgressBarBoundaries())}; g.hK=function(U){var O;return U.s3||((O=U.suggestions)==null?void 0:O[0])||null}; g.fd=function(U){return U.cJ&&(U.T("embeds_enable_pfp_always_unbranded")||U.X0.q9)}; F7=function(U,O){U.T("html5_log_autoplay_src")&&FX(U)&&U.al("apsrc",{src:O})}; g.l8=function(U){var O,M;return!!((O=U.embeddedPlayerConfig)==null?0:(M=O.embeddedPlayerFlags)==null?0:M.enableMusicUx)}; Gj=function(U){return U.X0.X&&U.isPrivate}; g.Tj=function(U){var O=U.J(),M=g.$o(O),S=O.Rl;(O.T("embeds_web_enable_iframe_api_send_full_embed_url")||O.T("embeds_web_enable_rcat_validation_in_havs")||O.T("embeds_enable_autoplay_and_visibility_signals"))&&g.qn(O)&&(S&&(M.thirdParty=Object.assign({},M.thirdParty,{embedUrl:S})),CoU(M,U));if(S=U.QP)M.clickTracking={clickTrackingParams:S};S=M.client||{};var p="EMBED",h=iI(U);h==="leanback"?p="WATCH":O.T("gvi_channel_client_screen")&&h==="profilepage"?p="CHANNEL":U.pE?p="LIVE_MONITOR":h==="detailpage"? p="WATCH_FULL_SCREEN":h==="adunit"?p="ADUNIT":h==="sponsorshipsoffer"&&(p="UNKNOWN");S.clientScreen=p;if(O=U.kidsAppInfo)S.kidsAppInfo=JSON.parse(O);(p=U.aE)&&!O&&(S.kidsAppInfo={contentSettings:{ageUpMode:e0w[p]}});if(O=U.sK)S.unpluggedAppInfo={enableFilterMode:!0};(p=U.unpluggedFilterModeType)&&!O&&(S.unpluggedAppInfo={filterModeType:HHy[p]});if(O=U.yP)S.unpluggedLocationInfo=O;M.client=S;S=M.request||{};U.FI&&(S.isPrefetch=!0);if(O=U.mdxEnvironment)S.mdxEnvironment=O;if(O=U.mdxControlMode)S.mdxControlMode= z01[O];M.request=S;S=M.user||{};if(O=U.ol)S.credentialTransferTokens=[{token:O,scope:"VIDEO"}];if(O=U.Qa)S.delegatePurchases={oauthToken:O},S.kidsParent={oauthToken:O};M.user=S;if(S=U.contextParams)M.activePlayers=[{playerContextParams:S}];if(U=U.clientScreenNonce)M.clientScreenNonce=U;return M}; g.$o=function(U){var O=g.pl(),M=O.client||{};if(U.forcedExperiments){var S=U.forcedExperiments.split(","),p=[];S=g.D(S);for(var h=S.next();!h.done;h=S.next())p.push(Number(h.value));M.experimentIds=p}if(p=U.homeGroupInfo)M.homeGroupInfo=JSON.parse(p);if(p=U.getPlayerType())M.playerType=p;if(p=U.U.ctheme)M.theme=p;if(p=U.livingRoomAppMode)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomAppMode:p});p=U.deviceYear;U.T("html5_propagate_device_year")&&p&&(M.tvAppInfo=Object.assign({},M.tvAppInfo,{deviceYear:p})); if(p=U.livingRoomPoTokenId)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomPoTokenId:p});O.client=M;M=O.user||{};U.enableSafetyMode&&(M=Object.assign({},M,{enableSafetyMode:!0}));U.pageId&&(M=Object.assign({},M,{onBehalfOfUser:U.pageId}));O.user=M;M=U.Rl;U.T("embeds_web_enable_iframe_api_send_full_embed_url")||U.T("embeds_web_enable_rcat_validation_in_havs")||U.T("embeds_enable_autoplay_and_visibility_signals")||!M||(O.thirdParty={embedUrl:M});return O}; vXi=function(U,O,M){var S=U.videoId,p=g.Tj(U),h=U.J(),J={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(QJ()),referer:document.location.toString(),signatureTimestamp:20179};g.Vm();U.isAutonav&&(J.autonav=!0);g.on(0,141)&&(J.autonavState=g.on(0,140)?"STATE_OFF":"STATE_ON");J.autoCaptionsDefaultOn=g.on(0,66);a6(U)&&(J.autoplay=!0);h.D&&U.cycToken&&(J.cycToken=U.cycToken);h.enablePrivacyFilter&&(J.enablePrivacyFilter=!0);U.isFling&&(J.fling=!0);var f=U.forceAdsUrl;if(f){var F={},l=[];f=f.split(","); f=g.D(f);for(var G=f.next();!G.done;G=f.next()){G=G.value;var T=G.split("|");T.length!==3||G.includes("=")||(T[0]="breaktype="+T[0],T[1]="offset="+T[1],T[2]="url="+T[2]);G={adtype:"video_ad"};T=g.D(T);for(var e=T.next();!e.done;e=T.next()){var H=g.D(e.value.split("="));e=H.next().value;H=Swe(H);G[e]=H.join("=")}T=G.url;e=G.presetad;H=G.viralresponseurl;var z=Number(G.campaignid);if(G.adtype==="in_display_ad")T&&(F.url=T),e&&(F.presetAd=e),H&&(F.viralAdResponseUrl=H),z&&(F.viralCampaignId=String(z)); else if(G.adtype==="video_ad"){var W={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(G.offset)||0)}};if(G=cPy[G.breaktype])W.breakType=G;T&&(W.url=T);e&&(W.presetAd=e);H&&(W.viralAdResponseUrl=H);z&&(W.viralCampaignId=String(z));l.push(W)}}J.forceAdParameters={videoAds:l,inDisplayAd:F}}U.isInlinePlaybackNoAd&&(J.isInlinePlaybackNoAd=!0);U.isLivingRoomDeeplink&&(J.isLivingRoomDeeplink=!0);F=U.qc;if(F!=null){F={startWalltime:String(F)};if(l=U.f9)F.manifestDuration=String(l||14400);J.liveContext= F}if(U.mutedAutoplay){J.mutedAutoplay=!0;F=h.getWebPlayerContextConfig();var v,x;(F==null?0:(v=F.embedsHostFlags)==null?0:v.allowMutedAutoplayDurationMode)&&(F==null?0:(x=F.embedsHostFlags)==null?0:x.allowMutedAutoplayDurationMode.includes(Dqw[U.mutedAutoplayDurationMode]))&&(J.mutedAutoplayDurationMode=Dqw[U.mutedAutoplayDurationMode])}if(U.fO?0:U.DD)J.splay=!0;v=U.vnd;v===5&&(J.vnd=v);v={};if(x=U.isMdxPlayback)v.triggeredByMdx=x;if(x=U.ej)v.skippableAdsSupported=x.split(",").includes("ska");if(l= U.Zt){x=U.tF;F=[];l=g.D(X4g(l));for(f=l.next();!f.done;f=l.next()){f=f.value;G=f.platform;f={applicationState:f.DH?"INACTIVE":"ACTIVE",clientFormFactor:dq7[G]||"UNKNOWN_FORM_FACTOR",clientName:q7y[f.Ix]||"UNKNOWN_INTERFACE",clientVersion:f.deviceVersion||"",platform:W$i[G]||"UNKNOWN_PLATFORM"};G={};if(x){T=void 0;try{T=JSON.parse(x)}catch(t){g.rz(t)}T&&(G={params:[{key:"ms",value:T.ms}]},T.advertising_id&&(G.advertisingId=T.advertising_id),T.limit_ad_tracking!==void 0&&T.limit_ad_tracking!==null&& (G.limitAdTracking=T.limit_ad_tracking),f.osName=T.os_name,f.userAgent=T.user_agent,f.windowHeightPoints=T.window_height_points,f.windowWidthPoints=T.window_width_points)}F.push({adSignalsInfo:G,remoteClient:f})}v.remoteContexts=F}x=U.sourceContainerPlaylistId;F=U.serializedMdxMetadata;if(x||F)l={},x&&(l.mdxPlaybackContainerInfo={sourceContainerPlaylistId:x}),F&&(l.serializedMdxMetadata=F),v.mdxPlaybackSourceContext=l;J.mdxContext=v;v=O.width;v>0&&(J.playerWidthPixels=Math.round(v));if(O=O.height)J.playerHeightPixels= Math.round(O);M!==0&&(J.vis=M);if(M=h.widgetReferrer)J.widgetReferrer=M.substring(0,128);g.Pn(h)&&J&&(J.ancestorOrigins=h.ancestorOrigins);U.defaultActiveSourceVideoId&&(J.compositeVideoContext={defaultActiveSourceVideoId:U.defaultActiveSourceVideoId});if(h=h.getWebPlayerContextConfig())J.encryptedHostFlags=h.encryptedHostFlags;S={videoId:S,context:p,playbackContext:{contentPlaybackContext:J}};U.reloadPlaybackParams&&(S.playbackContext.reloadPlaybackContext={reloadPlaybackParams:U.reloadPlaybackParams}); U.contentCheckOk&&(S.contentCheckOk=!0);if(p=U.clientPlaybackNonce)S.cpn=p;if(p=U.playerParams)S.params=p;if(p=U.playlistId)S.playlistId=p;U.racyCheckOk&&(S.racyCheckOk=!0);p=U.J();if(J=p.embedConfig)S.serializedThirdPartyEmbedConfig=J;S.captionParams={};J=g.on(g.Vm(),65);U.deviceCaptionsOn!=null?S.captionParams.deviceCaptionsOn=U.deviceCaptionsOn:g.gG(p)&&(S.captionParams.deviceCaptionsOn=J!=null?!J:!1);U.nK&&(S.captionParams.deviceCaptionsLangPref=U.nK);U.Ht.length?S.captionParams.viewerSelectedCaptionLangs= U.Ht:g.gG(p)&&(J=g.L6(),J==null?0:J.length)&&(S.captionParams.viewerSelectedCaptionLangs=J);J=U.fetchType==="onesie"&&U.T("html5_onesie_attach_po_token");h=U.fetchType!=="onesie"&&U.T("html5_non_onesie_attach_po_token");if(J||h)J=U.J(),J.EF&&(S.serviceIntegrityDimensions={},S.serviceIntegrityDimensions.poToken=J.EF);p.T("fetch_att_independently")&&(S.attestationRequest={omitBotguardData:!0});S.playbackContext||(S.playbackContext={});S.playbackContext.devicePlaybackCapabilities=Nwi(U);S.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&U.al("noVp9",{});return S}; Nwi=function(U){var O=!(U==null?0:U.Nr())&&(U==null?void 0:U.KE())&&fE(),M;if(M=U==null?0:U.T("html5_report_supports_vp9_encoding")){if(U==null)M=0;else{M=g.TS(U);U=U.J().G;var S=G2("243");M=S?cs(M,S,U,!0)===!0:!1}M=M&&!O}return{supportsVp9Encoding:!!M,supportXhr:Sf}}; xqU=function(U,O){var M,S,p;return g.A(function(h){if(h.U==1)return M={context:g.$o(U.J()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:U.videoId,cpn:U.clientPlaybackNonce}}]},S=g.ya(Bww),g.Y(h,g.Mz(O,M,S),2);p=h.V;return h.return(p)})}; bHU=function(U,O,M){var S=g.DF(O.experiments,"bg_vm_reinit_threshold");(!uN||(0,g.nM)()-uN>S)&&xqU(U,M).then(function(p){p&&(p=p.botguardData)&&g.Z1(p,O)},function(p){U.GY()||(p=nP(p),U.al("attf",p.details))})}; je=function(U,O){g.C.call(this);this.app=U;this.state=O}; He=function(U,O,M){U.state.U.hasOwnProperty(O)||ee(U,O,M);U.state.D[O]=function(){return M.apply(U,g.m4.apply(0,arguments))}; U.state.C.add(O)}; zj=function(U,O,M){U.state.U.hasOwnProperty(O)||ee(U,O,M);U.app.J().D&&(U.state.Y[O]=function(){return M.apply(U,g.m4.apply(0,arguments))},U.state.C.add(O))}; ee=function(U,O,M){U.state.U[O]=function(){return M.apply(U,g.m4.apply(0,arguments))}}; g.ce=function(U,O,M){return U.state.U[O].apply(U.state.U,g.N(M))}; D0=function(){g.AD.call(this);this.G=new Map}; de=function(){g.C.apply(this,arguments);this.element=null;this.C=new Set;this.D={};this.Y={};this.U={};this.Z=new Set;this.B=new D0;this.V=new D0;this.X=new D0;this.G=new D0}; R01=function(U,O,M){typeof U==="string"&&(U={mediaContentUrl:U,startSeconds:O,suggestedQuality:M});a:{if((O=U.mediaContentUrl)&&(O=/\/([ve]|embed)\/([^#?]+)/.exec(O))&&O[2]){O=O[2];break a}O=null}U.videoId=O;return We(U)}; We=function(U,O,M){if(typeof U==="string")return{videoId:U,startSeconds:O,suggestedQuality:M};O={};M=g.D(tTw);for(var S=M.next();!S.done;S=M.next())S=S.value,U[S]&&(O[S]=U[S]);return O}; YeU=function(U,O,M,S){if(g.Vi(U)&&!Array.isArray(U)){O="playlist list listType index startSeconds suggestedQuality".split(" ");M={};for(S=0;S32&&S.push("hfr");O.isHdr()&&S.push("hdr");O.primaries==="bt2020"&&S.push("wcg");M.video_quality_features=S}}if(U=U.getPlaylistId())M.list=U;return M}; b8=function(){Ni.apply(this,arguments)}; Ru=function(U,O){var M={};if(U.app.J().ol){U=g.D(P15);for(var S=U.next();!S.done;S=U.next())S=S.value,O.hasOwnProperty(S)&&(M[S]=O[S]);if(O=M.qoe_cat)U="",typeof O==="string"&&O.length>0&&(U=O.split(",").filter(function(p){return nXw.includes(p)}).join(",")),M.qoe_cat=U; Qre(M)}else for(U=g.D(C1g),S=U.next();!S.done;S=U.next())S=S.value,O.hasOwnProperty(S)&&(M[S]=O[S]);return M}; Qre=function(U){var O=U.raw_player_response;if(!O){var M=U.player_response;M&&(O=JSON.parse(M))}delete U.player_response;delete U.raw_player_response;if(O){U.raw_player_response={streamingData:O.streamingData,playerConfig:O.playerConfig};var S;if((S=O.playbackTracking)==null?0:S.qoeUrl)U.raw_player_response=Object.assign({},U.raw_player_response,{playbackTracking:{qoeUrl:O.playbackTracking.qoeUrl}});var p;if((p=O.videoDetails)==null?0:p.videoId)U.raw_player_response=Object.assign({},U.raw_player_response, {videoDetails:{videoId:O.videoDetails.videoId}})}}; tg=function(U,O,M){var S=U.app.hR(M);if(!S)return 0;U=S-U.app.getCurrentTime(M);return O-U}; u$W=function(U){var O=O===void 0?5:O;return U?XMU[U]||O:O}; g.Yo=function(){b8.apply(this,arguments)}; qe1=function(U){ee(U,"getInternalApiInterface",U.getInternalApiInterface);ee(U,"addEventListener",U.qP);ee(U,"removeEventListener",U.Doy);ee(U,"cueVideoByPlayerVars",U.Ow);ee(U,"loadVideoByPlayerVars",U.npy);ee(U,"preloadVideoByPlayerVars",U.nSG);ee(U,"getAdState",U.getAdState);ee(U,"sendAbandonmentPing",U.sendAbandonmentPing);ee(U,"setLoopRange",U.setLoopRange);ee(U,"getLoopRange",U.getLoopRange);ee(U,"setAutonavState",U.setAutonavState);ee(U,"seekTo",U.wxA);ee(U,"seekBy",U.g$d);ee(U,"seekToLiveHead", U.seekToLiveHead);ee(U,"requestSeekToWallTimeSeconds",U.requestSeekToWallTimeSeconds);ee(U,"seekToStreamTime",U.seekToStreamTime);ee(U,"startSeekCsiAction",U.startSeekCsiAction);ee(U,"getStreamTimeOffset",U.getStreamTimeOffset);ee(U,"getVideoData",U.xLa);ee(U,"setInlinePreview",U.setInlinePreview);ee(U,"getAppState",U.getAppState);ee(U,"updateLastActiveTime",U.updateLastActiveTime);ee(U,"setBlackout",U.setBlackout);ee(U,"setUserEngagement",U.setUserEngagement);ee(U,"updateSubtitlesUserSettings",U.updateSubtitlesUserSettings); ee(U,"getPresentingPlayerType",U.n7);ee(U,"canPlayType",U.canPlayType);ee(U,"updatePlaylist",U.updatePlaylist);ee(U,"updateVideoData",U.updateVideoData);ee(U,"updateEnvironmentData",U.updateEnvironmentData);ee(U,"sendVideoStatsEngageEvent",U.Uzg);ee(U,"productsInVideoVisibilityUpdated",U.productsInVideoVisibilityUpdated);ee(U,"setSafetyMode",U.setSafetyMode);ee(U,"isAtLiveHead",function(O){return U.isAtLiveHead(void 0,O)}); ee(U,"getVideoAspectRatio",U.getVideoAspectRatio);ee(U,"getPreferredQuality",U.getPreferredQuality);ee(U,"getPlaybackQualityLabel",U.getPlaybackQualityLabel);ee(U,"setPlaybackQualityRange",U.QAc);ee(U,"onAdUxClicked",U.onAdUxClicked);ee(U,"getFeedbackProductData",U.getFeedbackProductData);ee(U,"getStoryboardFrame",U.getStoryboardFrame);ee(U,"getStoryboardFrameIndex",U.getStoryboardFrameIndex);ee(U,"getStoryboardLevel",U.getStoryboardLevel);ee(U,"getNumberOfStoryboardLevels",U.getNumberOfStoryboardLevels); ee(U,"getCaptionWindowContainerId",U.getCaptionWindowContainerId);ee(U,"getAvailableQualityLabels",U.getAvailableQualityLabels);ee(U,"addCueRange",U.addCueRange);ee(U,"addUtcCueRange",U.addUtcCueRange);ee(U,"showAirplayPicker",U.showAirplayPicker);ee(U,"dispatchReduxAction",U.dispatchReduxAction);ee(U,"getPlayerResponse",U.RC);ee(U,"getWatchNextResponse",U.yZ0);ee(U,"getHeartbeatResponse",U.Hk);ee(U,"getCurrentTime",U.kf);ee(U,"getDuration",U.T9);ee(U,"getPlayerState",U.getPlayerState);ee(U,"getPlayerStateObject", U.eq);ee(U,"getVideoLoadedFraction",U.getVideoLoadedFraction);ee(U,"getProgressState",U.getProgressState);ee(U,"getVolume",U.getVolume);ee(U,"setVolume",U.Gh);ee(U,"isMuted",U.isMuted);ee(U,"mute",U.hp);ee(U,"unMute",U.wZ);ee(U,"loadModule",U.loadModule);ee(U,"unloadModule",U.unloadModule);ee(U,"getOption",U.RR);ee(U,"getOptions",U.getOptions);ee(U,"setOption",U.setOption);ee(U,"loadVideoById",U.DI);ee(U,"loadVideoByUrl",U.qN);ee(U,"playVideo",U.Mj);ee(U,"loadPlaylist",U.loadPlaylist);ee(U,"nextVideo", U.nextVideo);ee(U,"previousVideo",U.previousVideo);ee(U,"playVideoAt",U.playVideoAt);ee(U,"getDebugText",U.getDebugText);ee(U,"getWebPlayerContextConfig",U.getWebPlayerContextConfig);ee(U,"notifyShortsAdSwipeEvent",U.notifyShortsAdSwipeEvent);ee(U,"getVideoContentRect",U.getVideoContentRect);ee(U,"setSqueezeback",U.setSqueezeback);ee(U,"toggleSubtitlesOn",U.toggleSubtitlesOn);ee(U,"isSubtitlesOn",U.isSubtitlesOn);ee(U,"reportPlaybackIssue",U.reportPlaybackIssue);ee(U,"setAutonav",U.setAutonav);ee(U, "isNotServable",U.isNotServable);ee(U,"channelSubscribed",U.channelSubscribed);ee(U,"channelUnsubscribed",U.channelUnsubscribed);ee(U,"togglePictureInPicture",U.togglePictureInPicture);ee(U,"supportsGaplessAudio",U.supportsGaplessAudio);ee(U,"supportsGaplessShorts",U.supportsGaplessShorts);ee(U,"enqueueVideoByPlayerVars",function(O){return void U.enqueueVideoByPlayerVars(O)}); ee(U,"clearQueue",U.clearQueue);ee(U,"getAudioTrack",U.Om);ee(U,"setAudioTrack",U.VHg);ee(U,"getAvailableAudioTracks",U.C3);ee(U,"getMaxPlaybackQuality",U.getMaxPlaybackQuality);ee(U,"getUserPlaybackQualityPreference",U.getUserPlaybackQualityPreference);ee(U,"getSubtitlesUserSettings",U.getSubtitlesUserSettings);ee(U,"resetSubtitlesUserSettings",U.resetSubtitlesUserSettings);ee(U,"setMinimized",U.setMinimized);ee(U,"setOverlayVisibility",U.setOverlayVisibility);ee(U,"confirmYpcRental",U.confirmYpcRental); ee(U,"queueNextVideo",U.queueNextVideo);ee(U,"handleExternalCall",U.handleExternalCall);ee(U,"logApiCall",U.logApiCall);ee(U,"isExternalMethodAvailable",U.isExternalMethodAvailable);ee(U,"setScreenLayer",U.setScreenLayer);ee(U,"getCurrentPlaylistSequence",U.getCurrentPlaylistSequence);ee(U,"getPlaylistSequenceForTime",U.getPlaylistSequenceForTime);ee(U,"shouldSendVisibilityState",U.shouldSendVisibilityState);ee(U,"syncVolume",U.syncVolume);ee(U,"highlightSettingsMenuItem",U.highlightSettingsMenuItem); ee(U,"openSettingsMenuItem",U.openSettingsMenuItem);ee(U,"getEmbeddedPlayerResponse",U.getEmbeddedPlayerResponse);ee(U,"getVisibilityState",U.getVisibilityState);ee(U,"isMutedByMutedAutoplay",U.isMutedByMutedAutoplay);ee(U,"isMutedByEmbedsMutedAutoplay",U.isMutedByEmbedsMutedAutoplay);ee(U,"setGlobalCrop",U.setGlobalCrop);ee(U,"setInternalSize",U.setInternalSize);ee(U,"setFauxFullscreen",U.setFauxFullscreen);ee(U,"setAppFullscreen",U.setAppFullscreen)}; Ag=function(U,O,M){U=g.mu(U.BJ(),O);return M?(M.addOnDisposeCallback(U),null):U}; g.Iu=function(U,O,M){return U.app.J().gK?O:g.v4("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:O,SHORTCUT:M})}; iHU=function(U){U.BJ().element.setAttribute("aria-live","polite")}; g.Pe=function(U,O){g.Yo.call(this,U,O);qe1(this);zj(this,"addEventListener",this.LT);zj(this,"removeEventListener",this.mol);zj(this,"cueVideoByPlayerVars",this.KR);zj(this,"loadVideoByPlayerVars",this.s_y);zj(this,"preloadVideoByPlayerVars",this.sKZ);zj(this,"loadVideoById",this.DI);zj(this,"loadVideoByUrl",this.qN);zj(this,"playVideo",this.Mj);zj(this,"loadPlaylist",this.loadPlaylist);zj(this,"nextVideo",this.nextVideo);zj(this,"previousVideo",this.previousVideo);zj(this,"playVideoAt",this.playVideoAt); zj(this,"getVideoData",this.gN);zj(this,"seekBy",this.pxL);zj(this,"seekTo",this.yzY);zj(this,"showControls",this.showControls);zj(this,"hideControls",this.hideControls);zj(this,"cancelPlayback",this.cancelPlayback);zj(this,"getProgressState",this.getProgressState);zj(this,"isInline",this.isInline);zj(this,"setInline",this.setInline);zj(this,"setLoopVideo",this.setLoopVideo);zj(this,"getLoopVideo",this.getLoopVideo);zj(this,"getVideoContentRect",this.getVideoContentRect);zj(this,"getVideoStats",this.wAL); zj(this,"getCurrentTime",this.ql);zj(this,"getDuration",this.T9);zj(this,"getPlayerState",this.Yf);zj(this,"getVideoLoadedFraction",this.gyQ);zj(this,"mute",this.hp);zj(this,"unMute",this.wZ);zj(this,"setVolume",this.Gh);zj(this,"loadModule",this.loadModule);zj(this,"unloadModule",this.unloadModule);zj(this,"getOption",this.RR);zj(this,"getOptions",this.getOptions);zj(this,"setOption",this.setOption);zj(this,"addCueRange",this.addCueRange);zj(this,"getDebugText",this.getDebugText);zj(this,"getStoryboardFormat", this.getStoryboardFormat);zj(this,"toggleFullscreen",this.toggleFullscreen);zj(this,"isFullscreen",this.isFullscreen);zj(this,"getPlayerSize",this.getPlayerSize);zj(this,"toggleSubtitles",this.toggleSubtitles);this.app.J().T("embeds_enable_move_set_center_crop_to_public")||zj(this,"setCenterCrop",this.setCenterCrop);zj(this,"setFauxFullscreen",this.setFauxFullscreen);zj(this,"setSizeStyle",this.setSizeStyle);zj(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);zj(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); APe(this)}; g.nd=function(U){U=U.nE();var O=U.oO.get("endscreen");return O&&O.SA()?!0:U.Gu()}; g.QA=function(U,O){U.getPresentingPlayerType()===3?U.publish("mdxautoplaycancel"):U.ZQ("onAutonavCancelled",O)}; g.X7=function(U){var O=Cd(U.nE());return U.app.IF&&!U.isFullscreen()||U.getPresentingPlayerType()===3&&O&&O.Ny()&&O.Di()||!!U.getPlaylist()}; g.u8=function(U,O){g.ce(U,"addEmbedsConversionTrackingParams",[O])}; g.i8=function(U){return(U=g.qi(U.nE()))?U.lP():{}}; g.ZHy=function(U){U=(U=U.getVideoData())&&U.V;return!!U&&!(!U.audio||!U.video)&&U.mimeType!=="application/x-mpegURL"}; g.Z0=function(U,O,M){U=U.g7().element;var S=FN(U.children,function(p){p=Number(p.getAttribute("data-layer"));return M-p||1}); S<0&&(S=-(S+1));ed(U,O,S);O.setAttribute("data-layer",String(M))}; g.Kd=function(U){var O=U.J();if(!O.sX)return!1;var M=U.getVideoData();if(!M||U.getPresentingPlayerType()===3)return!1;var S=(!M.isLiveDefaultBroadcast||O.T("allow_poltergust_autoplay"))&&!yA(M);S=M.isLivePlayback&&(!O.T("allow_live_autoplay")||!S);var p=M.isLivePlayback&&O.T("allow_live_autoplay_on_mweb");U=U.getPlaylist();U=!!U&&U.Ny();var h=M.HA&&M.HA.playerOverlays||null;h=!!(h&&h.playerOverlayRenderer&&h.playerOverlayRenderer.autoplay);h=M.cJ&&h;return!M.ypcPreview&&(!S||p)&&!g.kE(M.BA,"ypc")&& !U&&(!g.Pn(O)||h)}; K$i=function(U){U=U.app.jc();if(!U)return!1;var O=U.getVideoData();if(!O.V||!O.V.video||O.V.video.qualityOrdinal<1080||O.Gq)return!1;var M=/^qsa/.test(O.clientPlaybackNonce),S="r";O.V.id.indexOf(";")>=0&&(M=/^[a-p]/.test(O.clientPlaybackNonce),S="x");return M?(U.al("iqss",{trigger:S},!0),!0):!1}; aDm=function(U,O){U=rPe(U.app.rk().X);U=g.D(U);for(var M=U.next();!M.done;M=U.next()){M=M.value;var S=M.getAvailableAudioTracks(),p=null;S=g.D(S);for(var h=S.next();!h.done;h=S.next())if(h=h.value,h.getLanguageInfo().getId()===O){p=h;break}p&&M.v0(p,!0)}}; re=function(){Ed.apply(this,arguments);this.requestHeaders={}}; EE=function(){au||(au=new re);return au}; Ld=function(U,O){O?U.requestHeaders.Authorization="Bearer "+O:delete U.requestHeaders.Authorization}; g.VA=function(U){g.C.call(this);var O=this;this.wG=U;this.BB={jZP:function(){return O.wG}}}; g.ou=function(U,O,M,S){S=S===void 0?!1:S;g.W_.call(this,O);var p=this;this.S=U;this.BA=S;this.Y=new g.Zj(this);this.fade=new g.FY(this,M,!0,void 0,void 0,function(){p.t4()}); g.X(this,this.Y);g.X(this,this.fade)}; ko=function(U){var O=U.S.getRootNode();return U.S.T("web_watch_pip")||U.S.T("web_shorts_pip")?OF(O):document}; EXe=function(U){U.V&&(document.activeElement&&g.zU(U.element,document.activeElement)&&U.V.focus(),U.V.setAttribute("aria-expanded","false"),U.V=void 0);g.CE(U.Y);U.Z=void 0}; we=function(U,O,M){U.eh()?U.CE():U.jY(O,M)}; Uc=function(U,O,M,S){S=new g.r({K:"div",OA:["ytp-linked-account-popup-button"],UA:S,N:{role:"button",tabindex:"0"}});O=new g.r({K:"div",L:"ytp-linked-account-popup",N:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{K:"div",L:"ytp-linked-account-popup-title",UA:O},{K:"div",L:"ytp-linked-account-popup-description",UA:M},{K:"div",L:"ytp-linked-account-popup-buttons",W:[S]}]});g.ou.call(this,U,{K:"div",L:"ytp-linked-account-popup-container",W:[O]},100);var p=this;this.dialog=O;g.X(this,this.dialog); S.listen("click",function(){p.CE()}); g.X(this,S);g.Z0(this.S,this.element,4);this.hide()}; g.sc=function(U,O,M,S){g.W_.call(this,U);this.priority=O;M&&g.Oc(this,M);S&&this.gH(S)}; g.gg=function(U,O,M,S){U=U===void 0?{}:U;O=O===void 0?[]:O;M=M===void 0?!1:M;S=S===void 0?!1:S;O.push("ytp-menuitem");var p=U;"role"in p||(p.role="menuitem");M||(p=U,"tabindex"in p||(p.tabindex="0"));U={K:M?"a":"div",OA:O,N:U,W:[{K:"div",L:"ytp-menuitem-icon",UA:"{{icon}}"},{K:"div",L:"ytp-menuitem-label",UA:"{{label}}"},{K:"div",L:"ytp-menuitem-content",UA:"{{content}}"}]};S&&U.W.push({K:"div",L:"ytp-menuitem-secondary-icon",UA:"{{secondaryIcon}}"});return U}; g.Oc=function(U,O){U.updateValue("label",O)}; MD=function(U){g.sc.call(this,g.gg({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var O=this;this.S=U;this.V=this.U=!1;this.lM=U.Nw();U.createServerVe(this.element,this,!0);this.j(this.S,"settingsMenuVisibilityChanged",function(M){O.iM(M)}); this.j(this.S,"videodatachange",this.X);this.listen("click",this.onClick);this.X()}; SV=function(U){return U?g.B_(U):""}; pB=function(U){g.C.call(this);this.api=U}; hq=function(U){pB.call(this,U);var O=this;ee(U,"setAccountLinkState",function(M){O.setAccountLinkState(M)}); ee(U,"updateAccountLinkingConfig",function(M){O.updateAccountLinkingConfig(M)}); U.addEventListener("videodatachange",function(M,S){O.onVideoDataChange(S)}); U.addEventListener("settingsMenuInitialized",function(){O.menuItem=new MD(O.api);g.X(O,O.menuItem)})}; L$e=function(U){this.api=U;this.U={}}; Jq=function(U,O,M,S){O in U.U||(M=new g.ll(M,S,{id:O,priority:2,namespace:"appad"}),U.api.pO([M],1),U.U[O]=M)}; yk=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(this);g.X(this,this.events);this.U=new L$e(this.api);this.events.j(this.api,"legacyadtrackingpingreset",function(){O.U.U={}}); this.events.j(this.api,"legacyadtrackingpingchange",function(M){var S=O.U;Jq(S,"part2viewed",1,0x8000000000000);Jq(S,"engagedview",Math.max(1,M.hG*1E3),0x8000000000000);if(!M.isLivePlayback){var p=M.lengthSeconds*1E3;FX(M)&&S.api.T("html5_shorts_gapless_ads_duration_fix")&&(p=S.api.getProgressState().seekableEnd*1E3-M.Du);Jq(S,"videoplaytime25",p*.25,p);Jq(S,"videoplaytime50",p*.5,p);Jq(S,"videoplaytime75",p*.75,p);Jq(S,"videoplaytime100",p,0x8000000000000);Jq(S,"conversionview",p,0x8000000000000); Jq(S,"videoplaybackstart",1,p);Jq(S,"videoplayback2s",2E3,p);Jq(S,"videoplayback10s",1E4,p)}}); this.events.j(this.api,g.$Y("appad"),this.V);this.events.j(this.api,g.TO("appad"),this.V)}; wM4=function(U,O,M){if(!(M in O))return!1;O=O[M];Array.isArray(O)||(O=[O]);O=g.D(O);for(M=O.next();!M.done;M=O.next()){M=M.value;var S={CPN:U.api.getVideoData().clientPlaybackNonce};M=g.IH(M,S);S=void 0;S=S===void 0?!1:S;(S=S7(pZ(M,VTw),M,S,"Active View 3rd Party Integration URL"))||(S=void 0,S=S===void 0?!1:S,S=S7(pZ(M,oXe),M,S,"Google/YouTube Brand Lift URL"));S||(S=void 0,S=S===void 0?!1:S,S=S7(pZ(M,k81),M,S,"Nielsen OCR URL"));g.ox(M,void 0,S)}return!0}; fB=function(U,O){UGw(U,O).then(function(M){g.ox(O,void 0,void 0,M)})}; Fa=function(U,O){O.forEach(function(M){fB(U,M)})}; UGw=function(U,O){return g.PF(U.api.J())&&H5(O)&&eJ(O)?g.Fy(U.api.J(),g.Es(U.api.getVideoData())).then(function(M){var S;M&&(S={Authorization:"Bearer "+M});return S},void 0):qv()}; O65=function(U){pB.call(this,U);this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"videoready",function(O){if(U.getPresentingPlayerType()===1){var M,S,p={playerDebugData:{pmlSignal:!!((M=O.getPlayerResponse())==null?0:(S=M.adPlacements)==null?0:S.some(function(h){var J;return h==null?void 0:(J=h.adPlacementRenderer)==null?void 0:J.renderer})), contentCpn:O.clientPlaybackNonce}};g.HX("adsClientStateChange",p)}})}; lz=function(U){g.r.call(this,{K:"button",OA:["ytp-button"],N:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{K:"div",L:"ytp-autonav-toggle-button-container",W:[{K:"div",L:"ytp-autonav-toggle-button",N:{"aria-checked":"true"}}]}]});this.S=U;this.V=[];this.U=!1;this.isChecked=!0;U.createClientVe(this.element,this,113681);this.j(U,"presentingplayerstatechange",this.pU);this.listen("click",this.onClick);this.S.J().T("web_player_autonav_toggle_always_listen")&& syW(this);Ag(U,this.element,this);this.pU()}; syW=function(U){U.V.push(U.j(U.S,"videodatachange",U.pU));U.V.push(U.j(U.S,"videoplayerreset",U.pU));U.V.push(U.j(U.S,"onPlaylistUpdate",U.pU));U.V.push(U.j(U.S,"autonavchange",U.Pp))}; gD5=function(U){U.isChecked=U.isChecked;U.ML("ytp-autonav-toggle-button").setAttribute("aria-checked",String(U.isChecked));var O=U.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";U.updateValue("title",O);U.updateValue("label",O);U.S.Mb()}; MAJ=function(U){return U.S.J().T("web_player_autonav_use_server_provided_state")&&So(U.eY())}; SN5=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"standardControlsInitialized",function(){var M=new lz(U);g.X(O,M);U.Rs(M,"RIGHT_CONTROLS_LEFT")})}; GP=function(U,O){g.sc.call(this,g.gg({role:"menuitemcheckbox","aria-checked":"false"}),O,U,{K:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; $2=function(U,O){U.checked=O;U.element.setAttribute("aria-checked",String(U.checked))}; pZw=function(U){var O=!U.J().gs&&U.getPresentingPlayerType()!==3;return U.isFullscreen()||O}; g.TP=function(U,O,M,S){var p=U.currentTarget;if((M===void 0||!M)&&g.I8(U))return U.preventDefault(),!0;O.pauseVideo();U=p.getAttribute("href");g.k4(U,S,!0);return!1}; g.jV=function(U,O,M){if(U3(O.J())&&O.getPresentingPlayerType()!==2){if(g.I8(M))return O.isFullscreen()&&!O.J().externalFullscreen&&O.toggleFullscreen(),M.preventDefault(),!0}else{var S=g.I8(M);S&&O.pauseVideo();g.k4(U,void 0,!0);S&&(g.w4(U),M.preventDefault())}return!1}; JW1=function(){var U=hbi.includes("es-419")?{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,N:{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"}}]}:{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,N:{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"}}]};U.L="ytp-subtitles-button-icon";return U}; eV=function(){return{K:"div",L:"ytp-spinner-container",W:[{K:"div",L:"ytp-spinner-rotator",W:[{K:"div",L:"ytp-spinner-left",W:[{K:"div",L:"ytp-spinner-circle"}]},{K:"div",L:"ytp-spinner-right",W:[{K:"div",L:"ytp-spinner-circle"}]}]}]}}; HL=function(U){if(document.createRange){var O=document.createRange();O&&(O.selectNodeContents(U),U=window.getSelection())&&(U.removeAllRanges(),U.addRange(O))}}; DX=function(U){var O=U.T("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";GP.call(this,O,g.zP.MW);var M=this;this.S=U;this.U=!1;this.V=new g.UM(function(){g.$U(M.element,"ytp-menuitem-highlighted")},0); this.lM=U.Nw();this.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.B,this);this.listen(cL,this.X);g.X(this,this.V)}; dg=function(U){pB.call(this,U);var O=this;this.U=!1;U.addEventListener("settingsMenuInitialized",function(){yWJ(O)}); U.addEventListener("highlightSettingsMenu",function(M){yWJ(O);var S=O.menuItem;M==="menu_item_cinematic_lighting"&&(g.l3(S.element,"ytp-menuitem-highlighted"),g.l3(S.element,"ytp-menuitem-highlight-transition-enabled"),S.V.start())}); ee(U,"updateCinematicSettings",function(M){O.updateCinematicSettings(M)})}; yWJ=function(U){U.menuItem||(U.menuItem=new DX(U.api),g.X(U,U.menuItem),U.menuItem.PA(U.U))}; f14=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"applicationvideodatachange",function(M,S){S=S.clipConfig;M==="dataloaded"&&S&&S.startTimeMs!=null&&S.endTimeMs!=null&&O.api.setLoopRange({startTimeMs:Math.floor(Number(S.startTimeMs)),endTimeMs:Math.floor(Number(S.endTimeMs)),postId:S.postId,type:"clips"})})}; WL=function(U){pB.call(this,U);this.events=new g.Zj(U);g.X(this,this.events);ee(U,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));ee(U,"setCreatorEndscreenHideButton",this.U.bind(this))}; ND=function(U,O,M,S){GP.call(this,"Volumen estable",g.zP.VC);g.l3(this.element,"ytp-drc-menu-item");this.lM=U.Nw();this.X=O;this.U=M;this.hasDrcAudioTrack=S;U.addEventListener("videodatachange",this.V.bind(this));U.T("mta_drc_mutual_exclusion_removal")&&this.j(U,"onPlaybackAudioChange",this.V);U=this.U()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.B,this);$2(this,U);this.lM.q4(this)}; vL=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);U.T("html5_show_drc_toggle")&&U.addEventListener("settingsMenuInitialized",function(){O.menuItem||(O.menuItem=new ND(O.api,O.setDrcUserPreference.bind(O),O.getDrcUserPreference.bind(O),O.V.bind(O)),g.X(O,O.menuItem))}); ee(this.api,"setDrcUserPreference",function(S){O.setDrcUserPreference(S)}); ee(this.api,"getDrcUserPreference",function(){return O.getDrcUserPreference()}); ee(this.api,"hasDrcAudioTrack",function(){return O.V()}); var M;this.U=(M=g.ZO("yt-player-drc-pref"))!=null?M:1;this.updateEnvironmentData()}; BL=function(U){pB.call(this,U);var O=this;this.U={};this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"videodatachange",function(){O.onVideoDataChange()}); this.events.j(U,g.$Y("embargo"),function(M){O.api.Vc(!0);var S,p=(S=O.U[M.id])!=null?S:[];S=g.D(p);for(p=S.next();!p.done;p=S.next()){var h=p.value;O.api.hideControls();O.api.k5("auth",2,"This video isn't available in your current playback area",AA({embargoed:1,id:M.id,idx:M.V,start:M.start}));p=void 0;(h=(p=h.embargo)==null?void 0:p.onTrigger)&&O.api.ZQ("innertubeCommand",h)}})}; FMw=function(U,O){var M;return(M=O.onEnter)==null?void 0:M.some(U.V)}; l1e=function(U,O){O=g.D(O);for(var M=O.next();!M.done;M=O.next()){M=M.value;var S=void 0,p=Number((S=M.playbackPosition)==null?void 0:S.utcTimeMillis)/1E3,h=void 0;S=p+Number((h=M.duration)==null?void 0:h.seconds);h="embargo_"+p;U.api.addUtcCueRange(h,p,S,"embargo",!1);M.onEnter&&(U.U[h]=M.onEnter.filter(U.V))}}; x2=function(U){pB.call(this,U);var O=this;this.U=[];this.events=new g.Zj(U);g.X(this,this.events);ee(U,"addEmbedsConversionTrackingParams",function(M){O.api.J().RE&&O.addEmbedsConversionTrackingParams(M)}); this.events.j(U,"veClickLogged",function(M){O.api.hasVe(M)&&(M=fh(M.visualElement.getAsJspb(),2),O.U.push(M))})}; GBy=function(U){pB.call(this,U);ee(U,"isEmbedsShortsMode",function(){return U.isEmbedsShortsMode()})}; $Gq=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"initialvideodatacreated",function(M){AW(mM(),16623);O.U=g.n5();var S=U.J().FT&&!M.fO;if(rd(M)&&S){AW(mM(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(M.getWatchNextResponse()){var p,h=(p=M.getWatchNextResponse())==null?void 0:p.trackingParams;h&&PZ(h)}if(M.getPlayerResponse()){var J;(M=(J=M.getPlayerResponse())==null?void 0:J.trackingParams)&&PZ(M)}}else AW(mM(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),M.getEmbeddedPlayerResponse()&&(J=(h=M.getEmbeddedPlayerResponse())==null?void 0:h.trackingParams)&&PZ(J)}); this.events.j(U,"loadvideo",function(){AW(mM(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:O.U})}); this.events.j(U,"cuevideo",function(){AW(mM(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:O.U})}); this.events.j(U,"largeplaybuttonclicked",function(M){AW(mM(),27240,M.visualElement)}); this.events.j(U,"playlistnextbuttonclicked",function(M){AW(mM(),27240,M.visualElement)}); this.events.j(U,"playlistprevbuttonclicked",function(M){AW(mM(),27240,M.visualElement)}); this.events.j(U,"playlistautonextvideo",function(){AW(mM(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; bz=function(U,O){g.C.call(this);var M=this;this.U=null;this.B=O;O=[];for(var S=0;S<=100;S++)O.push(S/100);O={threshold:O,trackVisibility:!0,delay:1E3};(this.V=window.IntersectionObserver?new IntersectionObserver(function(p){p=p[p.length-1];typeof p.isVisible==="undefined"?document.visibilityState==="visible"&&p.isIntersecting&&p.intersectionRatio>0?M.U=p.intersectionRatio:document.visibilityState==="hidden"?M.U=0:M.U=null:M.U=p.isVisible?p.intersectionRatio:0;typeof M.B==="function"&&M.B(M.U)},O): null)&&this.V.observe(U)}; jyy=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"applicationInitialized",function(){Tx7(O)})}; Tx7=function(U){var O=U.api.getRootNode(),M,S=U.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((M=O.parentElement)==null?void 0:M.parentElement)||O:O;U.U=new bz(S,function(p){p!=null&&(U.api.J().u6=p,U.api.J().f9="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.X(U,U.U);U.events.j(U.api,"videoStatsPingCreated",function(p){var h=U.U;h=h.U==null?null:Math.round(h.U*100)/100;p.inview=h!=null?h:void 0;h=U.api.getPlayerSize();if(h.height>0&&h.width>0){h=[Math.round(h.width),Math.round(h.height)];var J=g.s3();J>1&&h.push(J);h=h.join(":")}else h=void 0;p.size=h})}; ebW=function(U){var O;return((O=((U==null?void 0:U.messageRenderers)||[]).find(function(M){return!!M.timeCounterRenderer}))==null?void 0:O.timeCounterRenderer)||null}; Rg=function(U){g.r.call(this,{K:"div",OA:["ytp-player-content","ytp-iv-player-content"],W:[{K:"div",L:"ytp-free-preview-countdown-timer",W:[{K:"span",UA:"{{label}}"},{K:"span",L:"ytp-free-preview-countdown-timer-separator",UA:"\u2022"},{K:"span",UA:"{{duration}}"}]}]});this.api=U;this.U=null;this.B=this.V=0;this.j(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; zbW=function(U,O){U.U||(U.V=O,U.B=(0,g.nM)(),U.U=new g.wj(function(){H67(U)},null),H67(U))}; H67=function(U){var O=Math,M=O.round,S=Math.min((0,g.nM)()-U.B,U.V);O=M.call(O,(U.V-S)/1E3);U.updateValue("duration",vZ({seconds:O}));O<=0&&U.U?tq(U):U.U&&U.U.start()}; tq=function(U){U.U&&(U.U.dispose(),U.U=null)}; cWi=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"basechromeinitialized",function(){O.U=new Rg(U);g.X(O,O.U);g.Z0(U,O.U.element,4);O.U.hide()})}; Y2=function(U){g.r.call(this,{K:"button",OA:["ytp-fullerscreen-edu-button","ytp-button"],W:[{K:"div",OA:["ytp-fullerscreen-edu-text"],UA:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{K:"div",OA:["ytp-fullerscreen-edu-chevron"],W:[{K:"svg",N:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{K:"path",N:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],N:{"data-priority":"1"}});this.md=U;this.fade=new g.FY(this,250,void 0,100);this.V=this.U= !1;U.createClientVe(this.element,this,61214);g.X(this,this.fade);this.j(U,"fullscreentoggled",this.PA);this.j(U,"presentingplayerstatechange",this.PA);this.listen("click",this.onClick);this.PA()}; me=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);ee(this.api,"updateFullerscreenEduButtonSubtleModeState",function(S){O.updateFullerscreenEduButtonSubtleModeState(S)}); ee(this.api,"updateFullerscreenEduButtonVisibility",function(S){O.updateFullerscreenEduButtonVisibility(S)}); var M=U.J();U.T("external_fullscreen_with_edu")&&M.externalFullscreen&&U3(M)&&M.controlsType==="1"&&this.events.j(U,"standardControlsInitialized",function(){O.U=new Y2(U);g.X(O,O.U);U.Rs(O.U)})}; DG4=function(U){g.r.call(this,{K:"div",L:"ytp-gated-actions-overlay",W:[{K:"div",L:"ytp-gated-actions-overlay-background",W:[{K:"div",L:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",OA:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],N:{"aria-label":"Cerrar"},W:[g.YQ()]},{K:"div",L:"ytp-gated-actions-overlay-bar",W:[{K:"div",L:"ytp-gated-actions-overlay-text-container",W:[{K:"div",L:"ytp-gated-actions-overlay-title",UA:"{{title}}"},{K:"div",L:"ytp-gated-actions-overlay-subtitle", UA:"{{subtitle}}"}]},{K:"div",L:"ytp-gated-actions-overlay-button-container"}]}]});var O=this;this.api=U;this.background=this.ML("ytp-gated-actions-overlay-background");this.V=this.ML("ytp-gated-actions-overlay-button-container");this.U=[];this.j(this.ML("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){O.api.ZQ("onCloseMiniplayer")}); this.hide()}; WMg=function(U,O){var M=0;M=0;for(var S={};M p&&(p=f.width,h="url("+f.url+")")}M.background.style.backgroundImage=h;WMg(M,S.actionButtons||[]);M.show()}else M.hide()}); g.Z0(this.api,this.U.element,4)}; Aq=function(U){pB.call(this,U);var O=this;zj(this.api,"getSphericalProperties",function(){return O.getSphericalProperties()}); zj(this.api,"setSphericalProperties",function(){O.setSphericalProperties.apply(O,g.N(g.m4.apply(0,arguments)))}); He(this.api,"getSphericalProperties",function(){return O.api.getPresentingPlayerType()===2?{}:O.getSphericalProperties()}); He(this.api,"setSphericalProperties",function(){var M=g.m4.apply(0,arguments);O.api.getPresentingPlayerType()!==2&&O.setSphericalProperties.apply(O,g.N(M))})}; Ig=function(U){pB.call(this,U);ee(U,"createClientVe",this.createClientVe.bind(this));ee(U,"createServerVe",this.createServerVe.bind(this));ee(U,"destroyVe",this.destroyVe.bind(this));ee(U,"hasVe",this.hasVe.bind(this));ee(U,"logClick",this.logClick.bind(this));ee(U,"logVisibility",this.logVisibility.bind(this));ee(U,"setTrackingParams",this.setTrackingParams.bind(this))}; PL=function(U,O,M,S){function p(J){var f=!(J.status!==204&&J.status!==200&&!J.response),F;J={succ:""+ +f,rc:J.status,lb:((F=J.response)==null?void 0:F.byteLength)||0,rt:((0,g.nM)()-h).toFixed(),shost:g.UY(U),trigger:O};vDq(J,U);M&&M(J);S&&!f&&S(new Ii("pathprobe.net",J))} var h=(0,g.nM)();g.I0(U,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:p,onTimeout:p})}; vDq=function(U,O){var M;((M=window.performance)==null?0:M.getEntriesByName)&&(O=performance.getEntriesByName(O))&&O.length&&(O=O[0],U.pedns=(O.domainLookupEnd-O.startTime).toFixed(),U.pecon=(O.connectEnd-O.domainLookupEnd).toFixed(),U.perqs=(O.requestStart-O.connectEnd).toFixed(),Bxm&&(U.perqsa=O.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; nB=function(U,O){this.Kr=U;this.policy=O;this.playbackRate=1}; xGi=function(U,O){var M=Math.min(2.5,vn(U.Kr));U=Qk(U);return O-M*U}; CB=function(U,O,M,S,p){p=p===void 0?!1:p;if(U.policy.hB)return Math.ceil(U.policy.hB*O);U.policy.IV&&(S=Math.abs(S));S/=U.playbackRate;var h=1/bk(U.Kr);M=Math.max(.9*(S-3),vn(U.Kr)+U.Kr.V.U*h)/h*.8/(O+M);M=Math.min(M,S);U.policy.v7>0&&p&&(M=Math.max(M,U.policy.v7));return b6g(U,M,O)}; b6g=function(U,O,M){return Math.ceil(Math.max(Math.max(U.policy.l6,U.policy.xa*M),Math.min(Math.min(U.policy.hZ,31*M),Math.ceil(O*M))))||U.policy.l6}; Rb5=function(U,O,M){M=CB(U,O.U.info.a_,M.U.info.a_,0);var S=vn(U.Kr)+M/bk(U.Kr);return Math.max(S,S+U.policy.Qs-M/O.U.info.a_)}; Qk=function(U){return bk(U.Kr,!U.policy.B7,U.policy.Lq)}; Xa=function(U){return Qk(U)/U.playbackRate}; uz=function(U,O,M){var S=U.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],p=U.policy.playbackStartPolicy.startMinReadaheadPolicy||[];U=Infinity;O=g.D(O&&S.length>0?S:p);for(S=O.next();!S.done;S=O.next())S=S.value,p=S.minReadaheadMs||0,M<(S.minBandwidthBytesPerSec||0)||U>p&&(U=p);return U0&&(this.V=M.MQ)}; AWe=function(U,O,M,S,p){if(!S.info.G){if(M.length===0)M.push(S);else{var h;(U=(h=M.pop())==null?void 0:g.pu(h,S))?M.push(U):M.push(S)}return p}var J;(M=(J=M.pop())==null?void 0:g.pu(J,S))||(M=S);if(U.policy.Dq&&M.info.V)return U.logger&&U.logger({incompleteSegment:M.info.Qr()}),p;J=U.aP(M);S=J.formatId;p=J.Sc;M=J.clipId;h=J.hW;J=J.startTimeMs;if(!U.policy.RA&&U.policy.V&&U.HB){var f=iz(U.HB,M);J+=f}S={clipId:M,formatId:S,startTimeMs:J,durationMs:h,Qc:p,gL:p};p=tAw(O,S.startTimeMs);(M=p>=0?O[p]:null)&& YNg(U,M,S)?S=M:(p+=1,O.splice(p,0,S));M=0;for(h=p+1;h=l+J.V?J=!0:G+J.V=0?U:-U-2}; I1U=function(U,O){if(U.I_){var M=U.I_.Nm();if(M.length!==0){if(U.B&&O){var S=U.B,p=S.info.X;!jh(M,p)&&S.info.Y>0&&(0,g.nM)()-U.C<5E3&&(U.logger&&U.logger({dend:S.info.Qr()}),M=zn7(M,p,p+.01))}U.policy.qy&&U.logger&&U.logger({cbri:""+U.U});S=[];for(var h=p=0;p=J){var G=0;if(U.HB){var T=ZX(U.HB,F*1E3);T&&(G=T.U9/1E3)}T=Object.assign({},U.N0[h]);var e=U.DQ.B.get(mc(U.N0[h].formatId)), H=Math.max(F,J);J=e.index.Eg(H+U.V/1E3-G);F=e.index.getStartTime(J)+G;var z=J+ +(Math.abs(F-H)>U.V/1E3);H=z+U.X;z=(e.index.getStartTime(z)+G)*1E3;h!==U.U||O?(T.Qc=H,T.startTimeMs=z):(U.logger&&U.logger({pEvict:"1",og:T.startTimeMs,adj:F*1E3}),T.Qc=J+U.X,T.startTimeMs=F*1E3);J=void 0;F=((J=U.B)==null?void 0:J.info.duration)||11;h===U.U&&fU.V/1E3);J=F+U.X;G=(e.index.Nf(F)+G)*1E3;T.gL=J;T.durationMs=G-T.startTimeMs;T.Qc<=T.gL&&S.push(T)}lU.V)return!1;if(mGg(U,O.formatId,M.formatId))return O.durationMs=Math.max(S,p)-O.startTimeMs,O.gL=Math.max(O.gL,M.gL),!0;if(Math.abs(O.startTimeMs-M.startTimeMs)<=U.V){if(O.durationMs>M.durationMs+U.V){U=O.formatId;var h=O.Qc,J=O.gL;O.formatId=M.formatId;O.durationMs=M.durationMs;O.Qc=M.Qc;O.gL=M.gL;M.formatId=U;M.startTimeMs=p;M.durationMs=S-p;M.Qc=h;M.gL=J;return!1}O.formatId=M.formatId;return!0}S> M.startTimeMs&&(O.durationMs=M.startTimeMs-O.startTimeMs,O.clipId===M.clipId&&(O.gL=M.Qc-1));return!1}; mGg=function(U,O,M){return O.itag!==M.itag||O.xtags!==M.xtags?!1:U.DQ.KE||O.lmt===M.lmt}; Qym=function(U,O,M){if(U.logger){for(var S=[],p=0;p=0&&LB(U.audioTrack,U.U)>=0&&h?((U.videoTrack.G||U.audioTrack.G)&&U.rG.al("iterativeSeeking",{status:"done",count:U.seekCount}),U.videoTrack.G=!1,U.audioTrack.G=!1):S&&g.NF(function(){if(U.V||!U.policy.Qa)k2(U);else{var J=O.startTime,f=O.duration;if(!U.policy.C){var F=M?U.videoTrack.G:U.audioTrack.G,l=U.videoTrack.C!==-1&&U.audioTrack.C!==-1,G=U.U>=J&&U.U432E3&&J0w(U.DQ);U.B&&(p=U.B,U.B=0);g.NF(function(){U.policy.C||wg(U,p,102)}); U.rG.al("initManifestlessSync",{st:p,ost:p+U.rG.je(),a:U.audioTrack.C,v:U.videoTrack.C});U.X&&(U.X.resolve(p+.1),U.X=null);U.policy.C&&wg(U,p,102)}}}; s9=function(U,O){var M=this;this.sQ=U;this.requestNumber=++EDi;this.U=this.now();this.Y=this.Z=NaN;this.D=this.U;this.B=this.HV=this.G=0;this.C=this.U;this.Rl=this.ol=this.Ca=this.F9=this.WV=this.sA=this.V=this.X=0;this.yP=this.isActive=!1;this.AG=this.pE=0;this.BB={ouy:function(){return M.RV}}; this.Kr=O.Kr;this.snapshot=r0e(this.Kr);this.policy=this.Kr.V;this.A6=!!O.A6;this.nF=O.nF;this.rC=O.rC||0;this.TJ=O.TJ||0;O.D4&&(this.QP=new jf);var S;this.RV=(S=O.RV)!=null?S:!1;this.A6||iD4(this.Kr)}; LMw=function(U){U.Ca=Math.max(U.Ca,U.G-U.WV);U.ol=Math.max(U.ol,U.D-U.F9);U.sA=0}; gV=function(U,O,M){ZDJ(U.Kr,O);U.QP&&(U.QP.add(Math.ceil(O)-Math.ceil(U.D)),U.QP.add(Math.max(0,Math.ceil(M/1024)-Math.ceil(U.G/1024))));var S=O-U.D,p=M-U.G;U.HV=p;U.Rl=Math.max(U.Rl,p/(S+.01)*1E3);U.D=O;U.G=M;U.sA&&M>U.sA&&LMw(U)}; M4=function(U,O){U.url=O;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; SF=function(U,O){s9.call(this,U,O);this.r7=this.hG=!1;this.Ka=this.BA=Infinity;this.TY=NaN;this.Qa=!1;this.NL=NaN;this.EQ=this.HA=this.hZ=0;this.Cj=O.Cj||1;this.wU=O.wU||this.Cj;this.y5=O.y5;this.Sc=O.Sc;this.Og=O.Og;VA4(this);this.Iq(this.U);this.w7=(this.NL-this.U)/1E3}; oDy=function(U){var O=U.HA||U.hZ;return O?U.snapshot.delay+Math.min(U.TJ,(U.Y-U.Z)/1E3)+O:U.w7}; pV=function(U,O,M){if(!U.A6){O=Math.max(O,.01);var S=U.rC?Math.max(O,M/U.rC):O,p=U.Kr.V.B;p&&(S=O,U.rC&&(S=Math.max(O,M/U.rC*p)));dv(U.Kr,O,M,S)}}; kBe=function(U){return(U.C-U.U)/1E3}; VA4=function(U){U.TY=U.U+U.snapshot.delay*1E3;U.Qa=!1}; hh=function(U,O){if(U.y5&&U.Sc!==void 0&&U.Og!==void 0){var M=Math,S=M.min,p=U.BA;var h=U.y5;var J=U.U;if(wZw(h,U.Sc))h=O;else{var f=0;h.nm&&(f=.2);h=J+(h.TJ+f)*1E3}U.BA=S.call(M,p,h);M=Math;S=M.min;p=U.Ka;h=U.y5;J=U.U;f=UIg(h,U.Sc,U.Og);f!==2&&(O=f?O:J+h.TJ*1E3,h.nm&&(O+=h.TJ*1E3));U.Ka=S.call(M,p,O);U.BA<=U.U?VA4(U):(U.TY=U.BA,U.Qa=!0)}}; OSw=function(U,O){if(U.nG(O,1)){var M=U.getUint8(O);M=M<128?1:M<192?2:M<224?3:M<240?4:5}else M=0;if(M<1||!U.nG(O,M))return[-1,O];if(M===1)U=U.getUint8(O++);else if(M===2)M=U.getUint8(O++),U=U.getUint8(O++),U=(M&63)+64*U;else if(M===3){M=U.getUint8(O++);var S=U.getUint8(O++);U=U.getUint8(O++);U=(M&31)+32*(S+256*U)}else if(M===4){M=U.getUint8(O++);S=U.getUint8(O++);var p=U.getUint8(O++);U=U.getUint8(O++);U=(M&15)+16*(S+256*(p+256*U))}else M=O+1,U.focus(M),YZ(U,M,4)?U=xYy(U).getUint32(M-U.K1,!0):(S= U.getUint8(M+2)+256*U.getUint8(M+3),U=U.getUint8(M)+256*(U.getUint8(M+1)+256*S)),O+=5;return[U,O]}; Jh=function(U){this.sQ=U;this.U=new xZ}; yO=function(U,O){this.info=U;this.callback=O;this.state=1;this.XN=this.Yx=!1;this.ub=null}; sve=function(U){return g.Aj(U.info.xp,function(O){return O.type===3})}; fV=function(U,O,M,S){var p=this;S=S===void 0?{}:S;this.policy=O;this.sQ=M;this.status=0;this.U=new xZ;this.V=0;this.GY=this.X=this.B=!1;this.xhr=new XMLHttpRequest;this.xhr.open(S.method||"GET",U);if(S.headers)for(U=S.headers,O=g.D(Object.keys(U)),M=O.next();!M.done;M=O.next())M=M.value,this.xhr.setRequestHeader(M,U[M]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return p.yV()}; this.xhr.onload=function(){return p.onDone()}; this.xhr.onerror=function(){return p.onError()}; this.xhr.fetch(function(h){p.U.append(h);p.V+=h.length;h=(0,g.nM)();p.sQ.JX(h,p.V)},function(){},S.body||null)}; gc7=function(U,O){this.V=(new TextEncoder).encode(U);this.U=(new TextEncoder).encode(O)}; gi7=function(U,O){var M,S,p;return g.A(function(h){if(h.U==1){if(!O)return h.return(O);M=FQ.y6();S=new g.Y5(U.V);return g.Y(h,S.encrypt(O,U.U),2)}p=h.V;FQ.Ij("woe",M,Math.ceil(O.byteLength/16));return h.return(p)})}; JZW=function(U,O){var M,S,p;return g.A(function(h){if(h.U==1){if(!O)return h.return(O);M=FQ.y6();S=new g.Y5(U.V);return g.Y(h,S.decrypt(O,U.U),2)}p=h.V;FQ.Ij("wod",M,Math.ceil(O.byteLength/16));return h.return(p)})}; SH1=function(U,O){var M=this;this.U=U;this.sQ=O;this.loaded=this.status=0;this.error="";U=P$(this.U.get("range")||"");if(!U)throw Error("bad range");this.range=U;this.V=new xZ;MgJ(this).then(function(){M.sQ.Gv()},function(S){M.error=""+S||"unknown_err"; M.sQ.Gv()})}; MgJ=function(U){var O,M,S,p,h,J,f,F,l,G,T,e,H,z,W;return g.A(function(v){if(v.U==1){U.status=200;O=U.U.get("docid");M=f1(U.U.get("fmtid")||"");S=U.U.get("lmt")||"0";p=+(U.U.get("csz")||0);if(!O||!M||!p)throw Error("Invalid local URL");U.U.get("ck")&&U.U.get("civ")&&(h=new gc7(U.U.get("ck"),U.U.get("civ")));J=U.range;f=Math.floor(J.start/p);F=Math.floor(J.end/p);l=f}if(v.U!=5)return l<=F?g.Y(v,yZe(O,M,S,l,h),5):v.tZ(0);G=v.V;if(G===void 0)throw Error("invariant: data is undefined");T=l*p;e=(l+1)*p; H=Math.max(0,J.start-T);z=Math.min(J.end+1,e)-(H+T);W=new Uint8Array(G.buffer,H,z);U.V.append(W);U.loaded+=z;U.loaded0&&(p.U=Math.min(p.U+J,10),p.V=h);p.U>0?(p.U--,p=!0):p=!1;if(p)typeof S==="function"&&(S=S()),console.log("plyr."+O,S);else{var f;S=((f=$IJ.get(O))!=null?f:0)+1;$IJ.set(O,S);S%100===1&&console.warn("plyr","plyr."+O+" is chatty, dropping logs.")}}}; GZ5=function(){this.U=10;this.V=Date.now()}; Ts=function(U,O){g.C.call(this);var M=this;this.policy=U;this.xp=O;this.V=0;this.U=null;this.Jl=[];this.B=null;this.BB={Gz:function(){return M.xp}}; this.xp.length===1||g.Aj(this.xp,function(S){return!!S.range})}; jF=function(U,O,M){U.U&&(bG(U.U,O),O=U.U,U.U=null);for(var S=0,p=0,h=g.D(U.xp),J=h.next();!J.done;J=h.next())if(J=J.value,J.range&&S+J.B<=U.V)S+=J.B;else{O.getLength();if(Xi(J)&&!M&&U.V+O.getLength()-p=400?(U.lastError="net.badstatus",!0):(p===void 0?0:p)?(U.lastError="ump.spsrejectfailure",!0):M||S!==void 0&&S?!1:(U.lastError=O===204?"net.nocontent":"net.connect",!0)}; dV=function(U,O){if(U.policy.AF)return!1;var M=O.getResponseHeader("content-type"),S=O.Yq();U=!S||S<=U.policy.Zw;return(!O.Dw()||!M||M.indexOf("text/plain")!==-1)&&U}; ccg=function(U,O){var M="";O=O.ID();O.getLength()<=U.policy.Zw&&(M=zSe(U,O.c7()));return M}; zSe=function(U,O){var M=IG(O);return JR(M)?(U.logger.debug(function(){return"Redirecting to "+M}),M):""}; H7=function(U){return B$(U.B,tc(U.bV.base))}; DIq=function(U){var O=U.timing.Wo();O.shost=tc(U.bV.base);return O}; dI5=function(U,O){return(U==null?void 0:U.maxWidth)>(O==null?void 0:O.maxWidth)||(U==null?void 0:U.maxHeight)>(O==null?void 0:O.maxHeight)}; WbJ=function(U,O){for(var M=g.D(O.keys()),S=M.next();!S.done;S=M.next())if(S=O.get(S.value),S.length!==0){g.lH(S,function(f,F){return F.maxFramerate-f.maxFramerate}); for(var p=[S[0]],h=0,J=1;JU.U||M.push(S)}return M}; W7=function(U,O,M){var S=Bt1[U]||[];M.T("html5_shorts_onesie_mismatched_fix")&&(S=xIg[U]||[]);O.push.apply(O,g.N(S));M.T("html5_early_media_for_drm")&&O.push.apply(O,g.N(bS4[U]||[]))}; Iw5=function(U,O){var M=g.TS(U),S=U.J(),p=S.G;S=S.T("html5_shorts_onesie_mismatched_fix");var h=U.HU();if(S){if(!p.G){if(h&&N4)return N4;if(v7)return v7}}else if(v7&&!p.G)return v7;var J=[],f=[],F={},l=B7.concat(RSw);S&&(l=B7.concat(tge));U.T("html5_early_media_for_drm")&&(l=l.concat(YH1),U.T("allow_vp9_1080p_mq_enc")&&l.push(mIy));var G=[].concat(g.N(Acg));if(M.B)for(var T=0;TM.Ov)){var W=g.DF(U.J().experiments,"html5_drm_byterate_soft_cap");W>0&&enU(z)&&z.a_>W||(T?(J.push(H),W7(H,J,U)):(z=cs(M,z,p),z===!0?(T=!0,J.push(H),W7(H,J,U)):F[H]=z))}}}G=g.D(G);for(l=G.next();!l.done;l=G.next())for(l=g.D(l.value),T=l.next();!T.done;T= l.next())if(T=T.value,(e=TEe(T))&&e.audio&&(U.T("html5_onesie_51_audio")||!gm(e)&&!Me(e)))if(e=cs(M,e,p),e===!0){f.push(T);W7(T,f,U);break}else F[T]=e;M.V&&O("orfmts",F);if(S)return p.G&&(p.G=!1,N4=v7=void 0),h?N4={video:J,audio:f}:v7={video:J,audio:f};v7={video:J,audio:f};p.G=!1;return v7}; g.QvU=function(U,O,M){var S=M.G,p=[],h=[],J=M.T("html5_shorts_onesie_mismatched_fix");U=U.HU();var f=B7.concat(RSw);J&&(f=B7.concat(tge));M.T("html5_early_media_for_drm")&&(f=f.concat(YH1),M.T("allow_vp9_1080p_mq_enc")&&f.push(mIy));var F=[].concat(g.N(Acg));if(O.B)for(var l=0;l0&&enU(T)&&T.a_>e)&&cs(O,T,S)===!0){p.push({videoCodec:PJJ[oi[G]],maxWidth:T.video.width,maxHeight:T.video.height,maxFramerate:T.video.fps});break}}}}J=g.D(F);for(U=J.next();!U.done;U=J.next())for(U=g.D(U.value),F=U.next();!F.done;F=U.next())if(F=F.value,(f=TEe(F))&&f.audio&&(M.T("html5_onesie_51_audio")||!gm(f)&&!Me(f))&&cs(O,f,S)=== !0){h.push({audioCodec:nci[oi[F]],numChannels:f.audio.numChannels});break}return{videoFormatCapabilities:p,audioFormatCapabilities:h}}; xP=function(U){var O={},M=U.wG,S=U.X0,p=M.getVideoData(),h=K6(0),J=M.getPlayerSize(),f=M.getVisibilityState();h&&(O.rGy=h,O.lastManualDirection=tnW(),h=EhJ()||0,h>0&&(h=(S.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.nM)())-h,S.T("html5_use_date_now_for_local_storage")?h>0&&(O.timeSinceLastManualFormatSelectionMs=h):O.timeSinceLastManualFormatSelectionMs=h));h=S.T("html5_use_streamer_bandwidth_for_low_latency_live")&&p.isLowLatencyLiveStream;if(S.schedule.yP&&!h){var F;h=S.T("html5_disable_bandwidth_cofactors_for_sabr_live")? !((F=U.wH)==null||!F.B7):!1;O.jD=bk(S.schedule,!h)}F=g.s3();var l=g.ai.medium,G=Math.floor(l*16/9);h=p.HU()?l:G;l=p.HU()?G:l;O.oe=Math.max(J.width*F,h);O.wX=Math.max(J.height*F,l);O.visibility=f;O.gXc=QJ();O.ij=M.Sr()*1E3;J=U.wG.ZJ(!0);var T,e,H,z,W,v;O.OWa={defaultPolicy:(J==null?void 0:(T=J.Tn)==null?void 0:T.U)||0,smooth:(J==null?void 0:(e=J.I2A)==null?void 0:e.U)||0,visibility:(J==null?void 0:(H=J.DbP)==null?void 0:H.U)||0,YN:(J==null?void 0:(z=J.Wg)==null?void 0:z.U)||0,performance:(J==null? void 0:(W=J.nY)==null?void 0:W.U)||0,speed:(J==null?void 0:(v=J.qgA)==null?void 0:v.U)||0};var x;O.H6a=(J==null?void 0:(x=J.PUZ)==null?void 0:x.U)||0;S.T("html5_enable_sabr_authorized_drm_track_types")&&(O.Sh=U.Sh&&U.Sh.length>0?U.Sh:[1,2]);S.T("html5_enable_sabr_drm_hd720p")&&U.sabrLicenseConstraint&&(O.sabrLicenseConstraint=U.sabrLicenseConstraint);if(S.T("html5_onesie_media_capabilities")||S.T("html5_enable_server_format_filter"))O.TH=3;S.T("html5_onesie_audio_only_playback")&&lI(p)&&(O.TH=1); var t;((t=U.wH)==null?0:t.r7)&&U.NGA&&(O.TH=O.TH===void 0?7:O.TH|4);T=p.mD?p.mD:g.TS(p);S.T("html5_onesie_media_capabilities")&&(O.mediaCapabilities=g.QvU(p,T,S));var m;if((m=U.wH)==null?0:m.U&&m.Op){H=S.G;m=[];e=[];z=new Map;S.T("html5_ssap_update_capabilities_on_change")?(H.yP||nA5(H),W=H.yP||[]):W=Array.from(H.U.values());W=g.D(W);for(v=W.next();!v.done;v=W.next())x=v.value,x.xS?e.push({audioCodec:nci[x.zY],numChannels:x.numChannels,spatialCapabilityBitmask:CJU[x.zY]}):(t=PJJ[x.zY],v={videoCodec:t, maxWidth:x.maxWidth||0,maxHeight:x.maxHeight||0,maxFramerate:x.maxFramerate||0,is10BitSupported:x.qg||!1},x.maxBitrateBps&&(v.maxBitrateBps=x.maxBitrateBps,J=G2(x.itag),f=void 0,((f=J)==null?0:f.video)&&cs(T,J,H)===!0&&(J=J.a_*8,J>v.maxBitrateBps&&(v.maxBitrateBps=J))),x=t+"_"+x.qg,t=z.get(x)||[],t.push(v),z.set(x,t));m=WbJ(m,z);H={};S.T("html5_ssff_denylist_opus_low")&&(H={itagDenylist:[249,350]});O.mediaCapabilities={videoFormatCapabilities:m,audioFormatCapabilities:e,hdrModeBitmask:3,perPlaybackAttributes:H}}var P; if((P=U.wH)==null?0:P.U){O.k_=T.k_;var u;O.Ov=(u=U.wH)==null?void 0:u.Ov}S.e5&&(O.Hg=S.e5);O.A$=U.Ax;O.rj=U.rj;O.U4=U.U4;O.Rg=U.Rg;if(S.T("html5_fix_time_since_last_seek_reporting")?U.er!==void 0:U.er)O.piA=(0,g.nM)()-U.er;U.isPrefetch&&S.T("html5_report_prefetch_requests")&&(O.isPrefetch=!0);Sf||(O.HEP=!0);P=vn(S.schedule)*1E3;P>0&&(O.Bg=P);var w;((w=U.wH)==null?0:w.Cq)&&U.vu&&U.vu0?E:S.schedule.interruptions[0]||0);var Sm;if((Sm=U.wH)==null?0:Sm.hG)O.c$=U.c$;S.T("html5_sabr_enable_server_xtag_selection")&&(p.XK||S.AG)&&(O.audioTrackId=p.XK||S.AG);var JU;if((JU=U.wH)==null?0:JU.vE)if(U=$c5())O.detailedNetworkType=Xs1[U]||Xs1.other;return O}; bf=function(U,O,M,S,p,h,J){var f={};O&&(f.sx=O);if(!U)return f;f.playbackCookie=M==null?void 0:M.playbackCookie;p&&(f.F3=p);f.AJ=[];f.JY=[];if(J==null?0:J.size)for(O=g.D(J.values()),M=O.next();!M.done;M=O.next())f.JY.push(M.value);if(U.sabrContextUpdates.size>0)for(O=g.D(U.sabrContextUpdates.values()),M=O.next();!M.done;M=O.next())uri(f,M.value,S);$u(U)&&!g.Os(U)&&U.T("html5_enable_sabr_request_pipelining")&&h&&uri(f,h,S);U.UK&&(f.KUl=U.UK);S=U.J().U;f.clientInfo={clientName:qHq[S.c.toUpperCase()]|| 0};S.cbrand&&(f.clientInfo.deviceMake=S.cbrand);S.cmodel&&(f.clientInfo.deviceModel=S.cmodel);S.cver&&(f.clientInfo.clientVersion=S.cver);S.cos&&(f.clientInfo.osName=S.cos);S.cosver&&(f.clientInfo.osVersion=S.cosver);S=U.J();S.T("html5_sabr_enable_server_xtag_selection")&&S.Qa&&(f.clientInfo.hl=S.Qa);U.Y_&&(f.Y_=U.Y_);return f}; uri=function(U,O,M){var S=O.type||0;(M==null?0:M.has(S))?U.JY.push(O):U.AJ.push(S)}; ag=function(U,O,M,S,p,h){var J=h===void 0?{}:h;var f=J.jt===void 0?[]:J.jt;var F=J.h3===void 0?!1:J.h3;var l=J.P$===void 0?0:J.P$;var G=J.poToken===void 0?"":J.poToken;var T=J.O5===void 0?void 0:J.O5;var e=J.z0===void 0?"":J.z0;var H=J.Hx===void 0?0:J.Hx;var z=J.Da===void 0?new Uint8Array(0):J.Da;var W=J.hO===void 0?!1:J.hO;h=J.N9===void 0?0:J.N9;J=J.sx===void 0?void 0:J.sx;yO.call(this,O,p);var v=this;this.policy=U;this.logger=new g.Gs("dash/request");this.v_=this.PN=0;this.VS=!1;this.pJ=this.mG= null;this.bD=!1;this.Da=this.Hx=null;this.pK=this.XA=!1;this.UM=null;this.N9=this.WR=0;this.LG=!1;this.BB={YZ:function(t){v.YZ(t)}, ksL:function(){return v.ub}, yvd:function(t){v.ub=t}, a6A:function(t){v.PN=t}, w2y:function(t){v.TZ.lastError=t}, Dk:function(){return v.xhr}}; this.timing=new SF(this,M);this.h3=F;this.Hx=H;this.Da=z;this.bV=g.L9(this.info,this.policy,S);this.bV.set("rn",this.Fe().toString());this.bV.set("rbuf",(l*1E3).toFixed().toString());this.h3&&this.bV.set("smb","1");this.policy.kL&&G&&this.bV.set("pot",G);e&&this.bV.set("bbs",e);this.policy.useUmp&&!Yc(this.bV.base)&&(this.u2=new Jh(this),this.bV.set("ump","1"),this.bV.set("srfvp","1"));if(U=this.policy.DS?this.policy.zK&&!isNaN(this.info.Og)&&this.info.Og>this.policy.hJ?!1:!0:!1)O=null,this.policy.Ga&& this.policy.DF?O=[1]:W&&(O=[]),O!=null&&(this.policy.gI&&O.push(2),this.bV.set("defsel",O.join(",")));this.TZ=new eF(this,this.policy,this.bV,this.info.uM,this.timing,this.logger,S,T);this.jt=f||null;this.XN=iSU(this);TtU(this.TZ);S=void 0;if(this.policy.t8||this.u2||this.policy.Ca)S={method:"POST"},f=(0,g.RN)([120,0]),T={},this.policy.Pt&&J&&(J=bf(void 0,J),T.Bw=J),this.policy.Ig&&this.Da&&(T.videoPlaybackUstreamerConfig=this.Da),this.policy.Ca&&(J=this.info.X)&&Object.assign(T,J),Object.keys(T).length> 0?S.body=g.SL(T,g.Sg):S.body=f;if(this.Hx&&this.Da){this.bV.set("iwts","1");S={method:"POST"};J={Rg:this.Hx*1E3};var x;f=(x=this.info.X)==null?void 0:x.Qy;x=g.SL({xr:J,Qy:f||void 0,videoPlaybackUstreamerConfig:this.Da},g.Sg);S.body=x}try{this.xhr=lf(this.bV,this.policy.Y,this.timing,U,S),this.TZ.V.start(),h&&(this.Jv=new g.UM(this.Ec,h,this),this.Jv.start(h+(this.timing.Kr.Y.aA()||0)*1E3)),this.policy.bT&&M4(this.timing,this.kI()),this.logger.debug(function(){return"Sent, itag="+v.bV.get("itag")+ " seg="+v.info.xp[0].Sc+" range="+v.bV.get("range")+" time="+Math.round(v.info.xp[0].X)+"-"+Math.round(g.E4(v.info.xp).C)+" rtp="+(v.timing.Q0()-Date.now()).toFixed(0)}),g.NF(function(){})}catch(t){ZSy(this,t,!0)}}; iSU=function(U){if(!(Ei(U.info)&&U.info.RV()&&U.policy.e5&&U.jt)||U.info.uM.V>=2||K6()>0||!IFw())return!1;var O=U.bV.get("aitags");if(!O)return!1;O=f1(O).split(",");for(var M=[],S=g.D(U.jt),p=S.next();!p.done;p=S.next())p=p.value,g.kE(O,p)&&M.push(p);if(!M.length)return!1;U.bV.set("altitags",g.yo(M.join(",")));return!0}; ZSy=function(U,O,M){M=M===void 0?!1:M;g.K5(O);U.TZ.lastError="player.exception";U.errorMessage=O.name+"_"+O.message;M?g.NF(function(){c7(U.TZ)}):c7(U.TZ)}; Kbw=function(U,O){U.timing.yP=!0;U.xhr.Dw()&&U.timing.Be();if(U.policy.dH){var M;(M=U.Jv)==null||M.stop()}jF(U.ub,O,!1)}; rce=function(U,O){U.info=O;if(U.ub){var M=U.ub;O=O.xp;(O.length!==M.xp.length||O.length0){O=g.D(O.xp);for(var M=O.next();!M.done;M=O.next()){var S=void 0;U+=((S=M.value.range)==null?void 0:S.length)||0}return U}if(O.Vb.length>0)for(M=g.D(O.Vb),S=M.next();!S.done;S=M.next())U+=S.value.yF||0;return U+O.hq}; QO=function(U,O){if(IN){var M=0;U=U.hs.get(O);if(U==null||!U.ir)return 0;U=g.D(U.ir.values());for(O=U.next();!O.done;O=U.next())M+=O.value.data.getLength();return M}return((M=U.hs.get(O))==null?void 0:M.Jl.getLength())||0}; CV=function(U,O){U=U.hs.get(O);if(IN){if(U==null||!U.eR)return!1;O=U.ir.size>0;return U.yW.length>0||O}return!(U==null||!U.eR)&&!(U==null||!U.Jl.getLength())}; kZi=function(U,O){var M=U.hs.get(O),S=ocm(U,O),p=!S&&!!M.bytesReceived;if(IN){var h;if((h=U.DQ)==null?0:h.KE){U=g.D(M.ir.values());for(O=U.next();!O.done;O=U.next())if(!O.value.IJ)return!1;return p}}else if(h=U.OG(O),p&&U.U&&h!==void 0)return h;return(p||M.bytesReceived===S)&&M.zp+QO(U,O)===M.bytesReceived}; wsU=function(U,O,M){U.hs.set(O,{Jl:new xZ,zp:0,bytesReceived:0,hq:0,f2:!1,rL:!1,OG:!1,xS:M,EY:[],xp:[],Vb:[],eR:!1,ir:new Map,D0:new Map,yW:[]});U.logger.debug(function(){return"[initStream] formatId: "+O})}; Uue=function(U,O,M,S){M.xp.push.apply(M.xp,g.N(S));if(IN){M.D0.has(O)||M.D0.set(O,[]);var p;(p=M.D0.get(O)).push.apply(p,g.N(S))}else if(M.ub)for(U=g.D(S),O=U.next();!O.done;O=U.next())M.ub.xp.push(O.value);else{M.ub=new Ts(U.wH,[].concat(g.N(M.xp)));var h;((h=U.wH)==null?0:h.f9)&&g.X(U,M.ub)}}; O9i=function(U,O,M){var S,p=(S=U.DQ)==null?void 0:S.B.get(O);if(!p)return[];if(M.QB){var h;return((h=p.UG(0,M.clipId))==null?void 0:h.xp)||[]}if(p.aV()){var J=M.startMs,f=M.durationMs,F=1E3,l;if(((l=U.wH)==null?0:l.U)&&M.timeRange){var G;J=(G=M.timeRange.startTicks)!=null?G:-1;var T;f=(T=M.timeRange.SQ)!=null?T:-1;var e;F=(e=M.timeRange.timescale)!=null?e:-1}if(M.PG<0||M.m2<0||f<0||J<0||M.yF<0||F<0)return nV(U,O),[];U=n9(M.PG,M.yF);O=M.NC||0;return[new C9(3,p,U,"makeSliceInfosMediaBytes",M.m2-1,J/ F,f/F,O,U.length-O,void 0,M.zA,M.clipId)]}if(M.m2<0)return nV(U,O),[];var H;return((H=U.DQ)==null?0:H.KE)?(O=p.xV,l=O*p.info.a_,G=((J=U.wH)==null?0:J.Dq)?M.NC:void 0,((F=U.wH)==null?0:F.Y1)&&M.timeRange&&!G&&(f=M.timeRange.startTicks/M.timeRange.timescale),[new C9(3,p,void 0,"makeSliceInfosMediaBytes",M.m2,f,O,G,l,!0,M.zA,M.clipId)]):[]}; sfe=function(U,O,M){U.DQ=O;U.wH=M;O=g.D(U.hs);for(M=O.next();!M.done;M=O.next()){var S=g.D(M.value);M=S.next().value;S=S.next().value;for(var p=g.D(S.EY),h=p.next();!h.done;h=p.next()){h=h.value;var J=O9i(U,M,h);Uue(U,h.Lt,S,J)}}}; XQ=function(U,O,M,S){U.logger.debug(function(){return"[addStreamData] formatId: "+M+",headerId: "+O+" bytes: "+S.getLength()}); (U=U.hs.get(M))&&!U.rL&&(IN?(U.ir.has(O)||U.ir.set(O,{data:new xZ,rI:0,IJ:!1}),bG(U.ir.get(O).data,S)):bG(U.Jl,S),U.bytesReceived+=S.getLength(),U.f2=!0)}; P7=function(U,O){U.logger.debug(function(){return"[closeStream] formatId: "+O}); var M=U.hs.get(O);M&&!M.rL&&(M.rL=!0,M.Ji&&M.Ji(),gBW(U)&&U.X.XY())}; gBW=function(U){U=g.D(U.hs.values());for(var O=U.next();!O.done;O=U.next())if(!O.value.rL)return!1;return!0}; uf=function(U,O,M,S,p,h,J,f){g.C.call(this);this.policy=U;this.info=O;this.DQ=M;this.sQ=p;this.Yl=f;this.logger=new g.Gs("sabr");this.u2=new Jh(this);this.ax=new mx(this);this.wD=new Ah(this);this.state=1;this.w5=!1;this.kB=0;this.clipId="";this.l_=this.G5=-1;this.Rm=0;this.bu=-1;this.LG=this.z8=!1;this.S1=0;this.yE=!1;this.policy.jR?this.BT=new th(this,h):this.BT=new SF(this,h);this.bV=this.policy.hG?O.AO:Mle(O,this.policy,S);this.bV.set("rn",""+this.Fe());this.bV.set("alr","yes");sfe(this.wD,M, U);this.TZ=new eF(this,this.policy,this.bV,O.uM,this.BT,this.logger,S,J,this.policy.enableServerDrivenRequestCancellation);TtU(this.TZ);var F;if((F=this.policy)==null?0:F.f9)g.X(this,this.wD),g.X(this,this.TZ);U=O.V;O={method:"POST",body:U};U&&(this.Rm=U.length);try{this.xhr=lf(this.bV,this.policy.Y,this.BT,Sf,O),this.policy.bT&&M4(this.BT,this.kI()),this.TZ.V.start()}catch(l){g.rz(l)}}; Sie=function(U){U.policy.ag&&U.sE&&!U.yE?U.yE=!0:U.BT.Be()}; p$m=function(U,O){var M=-1,S=-1,p=-1,h;if((h=U.T6)==null?0:h.items)for(U=g.D(U.T6.items),h=U.next();!h.done;h=U.next())h=h.value,O=f,F=U.DQ.isManifestless&&U.policy.fq,J){var l;if(((l=U.U)==null?void 0:l.LO.event)==="predictStart"&&U.U.ScU.C&&(U.C=NaN,U.D=NaN);U.U&&U.U.Sc===O?Due(U,O,M,U.U,p):U.V===1&&rV(U,5,"noad")}; Due=function(U,O,M,S,p){if(p&&S){var h=S.LO,J=p.W2(h);h.event==="predictStart"&&(U.ol=O);U.al("sdai",{onqevt:h.event,sq:O,mt:M,gab:J,cst:h.startSecs,cueid:U.policy.M6&&(J||h.event==="start")?h.identifier:void 0},!0);if(J)if(h.event!=="predictStart")h.event==="start"&&U.ol===O-1&&U.al("sdai",{gabonstart:O}),S.zt?rV(U,4,"cue"):(U.C=O,U.D=M,U.al("sdai",{joinad:U.V,sg:U.C,st:U.D.toFixed(3)}),U.Z=Date.now(),rV(U,2,"join"),p.C7(S.LO));else{var f=O+Math.max(Math.ceil(-h.U/5E3),1);J=Math.floor(M-h.U/1E3); U.policy.G?U.G=J:U.X=f;U.al("sdai",{onpred:M,estsq:f,estmt:J.toFixed(3)});E9(U.rG,J,J,f);U.Z=Date.now();rV(U,3,"predict");p.C7(S.LO)}else U.V===1?((f=U.B)==null?0:f.I5(M))?(E9(U.rG,M,M,O),rV(U,4,"sk2had")):rV(U,5,"nogab"):h.event==="predictStart"&&(U.policy.G&&U.G>0?(M=Math.floor(M-h.U/1E3),U.G!==M&&U.al("sdai",{updateSt:M,old:U.G}),U.G=M):U.X>0&&(M=O+Math.max(Math.ceil(-h.U/5E3),1),U.X!==M&&(U.al("sdai",{updateSt:M,old:U.X}),U.X=M)));var F,l;if(U.Js&&h.event==="start"&&((F=U.U)==null?void 0:F.LO.event)!== "predictStart"&&((l=U.U)==null?void 0:l.Sc)===O-1){var G;U.al("sdai",{ovlpst:(G=U.U)==null?void 0:G.LO.event,sq:O})}}else U.al("sdai",{nulldec:1,sq:O,mt:M.toFixed(3),evt:(S==null?void 0:(h=S.LO)==null?void 0:h.event)||"none"})}; WcW=function(U,O,M){if(U.policy.Gw&&U.policy.G)return!(U.V===1||U.V===2||U.V===3&&M>=U.X);if(U.V===1||U.V===2)return!1;if(U.V!==0&&O===U.audioTrack){if(U.policy.G)return du5(U.videoTrack,M)||du5(U.videoTrack,M+1);U=LV(U.videoTrack);if(M>(U?U.Sc:-1))return!1}return!0}; VO=function(U,O,M){return(M<0||M===U.C)&&!isNaN(U.D)?U.D:O}; H9w=function(U,O){if(U.U){var M=U.U.LO.PJ-(O.startTime+U.Y-U.U.LO.startSecs);M<=0||(M=new av(U.U.LO.startSecs-(isNaN(U.Y)?0:U.Y),M,U.U.LO.context,U.U.LO.identifier,"stop",U.U.LO.U+O.duration*1E3),U.al("cuepointdiscontinuity",{segNum:O.Sc}),KV(U,M,O.Sc))}}; rV=function(U,O,M){U.V!==O&&(U.al("sdai",{setsst:O,old:U.V,r:M}),U.V=O)}; oN=function(U,O,M,S){(S===void 0?0:S)?rV(U,1,"seek"):O>0&&Math.abs(O-M)>=5&&U.V===4&&rV(U,5,"sk2t."+O.toFixed(2)+";ct."+M.toFixed(2))}; kP=function(U,O,M){this.audio=U;this.video=O;this.reason=M}; wV=function(U,O,M){this.U=U;this.reason=O;this.token=M;this.videoId=void 0}; Uv=function(U,O,M){g.C.call(this);this.policy=U;this.X=O;this.al=M;this.B=new Map;this.G=0;this.C=!1;this.U="";this.V=!1}; Ov=function(U,O,M){if(M===void 0?0:M)U.C=!0;++U.G;M=6E4*Math.pow(2,U.G);M=(0,g.nM)()+M;U.B.set(O.info.id,M)}; gC=function(U){for(var O=g.D(U.B.entries()),M=O.next();!M.done;M=O.next()){var S=g.D(M.value);M=S.next().value;S=S.next().value;S<(0,g.nM)()&&U.B.delete(M)}return U.B}; N24=function(U){return U.C&&gC(U).size>0}; Ml=function(U,O){U.U!==O&&(U.U=O,U.V=!0)}; vBe=function(U,O){var M;O&&(M=g.VD(U.X.U,function(p){return p.id===O})); if(!M&&(M=g.VD(U.X.U,function(p){var h;return!((h=p.ZN)==null||!h.isDefault)}),O)){var S; U.al("iaf",{id:O,sid:(S=M)==null?void 0:S.id})}return M}; pW=function(U,O,M,S,p,h){var J=this;h=h===void 0?[]:h;this.rG=U;this.BA=O;this.policy=M;this.DQ=S;this.C=p;this.NL=h;this.logger=new g.Gs("dash/abr");this.U=VK;this.B=this.D=null;this.Z=-1;this.Ka=!1;this.nextVideo=this.V=null;this.X=[];this.HA=new Set;this.Ca={};this.Rl=new Hn(1);this.Y=0;this.hZ=this.ol=this.yP=!1;this.sA=0;this.Yy=!1;this.QP=new Set;this.TY=!1;this.BB={ox:function(){Sk(J)}}; this.G=new Uv(this.policy,p,function(f,F){J.rG.al(f,F)})}; tlq=function(U,O,M){hs(U,O);O=vBe(U.G,M);M||O||(O=B2i(U));O=O||U.C.U[0];U.V=U.DQ.U[O.id];Sk(U);U.D=U.V;xu1(U);b9e(U);U.B=U.nextVideo;U.D=U.V;return RUU(U)}; ACm=function(U,O){if(Yii(U,O))return null;if(O.reason==="m"&&O.isLocked())return U.logger.debug(function(){return"User sets constraint to: "+TZ(O)}),hs(U,O),U.Y=U.X.length-1,Sk(U),Js(U),U.ol=U.ol||U.B!==U.nextVideo,U.B=U.nextVideo,new kP(U.V,U.B,O.reason); O.reason==="r"&&(U.Z=-1);hs(U,O);Js(U);if(O.reason==="r"&&U.nextVideo===U.B)return new kP(U.V,U.nextVideo,O.reason);muw(U);return null}; ISe=function(U,O,M){U.V=U.DQ.U[O];U.D=U.V;return new kP(U.D,U.B,M?"t":"m")}; P64=function(U,O){if(O.info.video){if(U.B!==O)return U.B=O,RUU(U)}else U.hZ=U.D!==O,U.D=O;return null}; nBw=function(U,O){if(O.U.info.video&&O.G){var M=(O.V+O.B)/O.duration,S=O.U.info.a_;M&&S&&(U.Rl.Wi(1,M/S),U.policy.B&&M/S>1.5&&U.rG.al("overshoot",{sq:O.Sc,br:M,max:S}))}}; yy=function(U,O,M){Ov(U.G,O,M===void 0?!1:M);U.Z=-1;hs(U,U.U)}; Qfq=function(U,O){return new kP(U.D,U.B,O||U.U.reason)}; muw=function(U){if(U.B&&U.nextVideo&&fW(U,U.B.info)U.policy.Ov,f=p<=U.policy.Ov?s6(S):w9(S);if(!h||J||f)M[p]=S}return M}; hs=function(U,O){U.U=O;var M=U.C.videoInfos;if(!U.U.isLocked()){var S=(0,g.nM)();M=g.j4(M,function(f){if(f.a_>this.policy.a_)return!1;var F=this.DQ.U[f.id];return gC(this.G).get(f.id)>S?!1:F.uM.V>4||F.C>4?(this.logger.debug(function(){return"Remove "+lE(f)+"; 4 load failures"}),!1):this.QP.has(+f.itag)?!1:!0},U); N24(U.G)&&(M=g.j4(M,function(f){return f.video.width<=854&&f.video.height<=480}))}M.length||(M=U.C.videoInfos); var p=M;U.policy.F$&&(p=X$e(U,p,O));p=g.j4(p,O.X,O);if(U.U.isLocked()&&U.G.U){var h=g.VD(M,function(f){return f.id===U.G.U}); h?p=[h]:Ml(U.G,"")}U.policy.F$||(p=X$e(U,p,O));p.length||(p=[M[0]]);p.sort(function(f,F){return fW(U,f)-fW(U,F)}); O={};for(M=1;MO.qq.video.width?(g.UV(p,M),M--):fW(U,O.v9)*U.policy.Z>fW(U,O.qq)&&(g.UV(p,M-1),M--);var J=p[p.length-1];U.Yy=!!U.B&&!!U.B.info&&U.B.info.zY!==J.zY;U.logger.debug(function(){return"Constraint: "+TZ(U.U)+", "+p.length+" fmts selectable, max selectable fmt: "+lE(J)}); U.X=p;U.HA.clear();O=!1;for(M=0;M=1080&&(O=!0);uii(U.policy,J,U.DQ.KE)}; X$e=function(U,O,M){var S=M.reason==="m"||M.reason==="s";U.policy.A1&&FP&&g.bh&&(!S||M.U<1080)&&(O=O.filter(function(l){return l.video&&(!l.V||l.V.powerEfficient)})); if(O.length>0)if(Ne()){var p=C6m(U,O);O=O.filter(function(l){return!!l&&!!l.video&&l.zY===p[l.video.qualityOrdinal].zY})}else{var h,J,f=(h=O[0])==null?void 0:(J=h.video)==null?void 0:J.qualityOrdinal; if(f){M=O.filter(function(l){return!!l&&!!l.video&&l.video.qualityOrdinal===f}); var F=C6m(U,M)[f].zY;O=O.filter(function(l){return!!l&&!!l.video&&l.zY===F})}}return O}; qi5=function(U,O){for(var M=0;M+1S}; Sk=function(U){if(!U.V||!U.policy.X&&!U.V.info.ZN){var O=U.C.U;U.V&&(O=O.filter(function(S){return S.audio.U===U.V.info.audio.U}),O.length||(O=U.C.U)); U.V=U.DQ.U[O[0].id];if(O.length>1){if(U.policy.GB){if(U.policy.tN&&U.D===null){var M=g.mV(O,function(S){return S.audio.audioQuality}); U.rG.al("aq",{hqa:U.policy.TY,qs:M.join("_")})}if(U.policy.TY)return;if(M=g.VD(O,function(S){return S.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))U.V=U.DQ.U[M.id]}M=!1; if(M=U.policy.FI?!0:U.U.isLocked()?U.U.U<240:qi5(U,U.V))U.V=U.DQ.U[g.E4(O).id]}}}; Js=function(U){if(!U.nextVideo||!U.policy.X)if(U.U.isLocked())U.nextVideo=U.U.U<=360?U.DQ.U[U.X[0].id]:U.DQ.U[g.E4(U.X).id],U.logger.debug(function(){return"Select max fmt: "+lE(U.nextVideo.info)}); else{for(var O=Math.min(U.Y,U.X.length-1),M=Xa(U.BA),S=fW(U,U.V.info),p=M/U.policy.yP-S;O>0&&!(fW(U,U.X[O])<=p);O--);for(var h=M/U.policy.Z-S;O=h);O++);U.nextVideo=U.DQ.U[U.X[O].id];U.Y!==O&&U.logger.info(function(){return"Adapt to: "+lE(U.nextVideo.info)+", bandwidth: "+M.toFixed(0)+", bandwidth to downgrade: "+p.toFixed(0)+", bandwidth to upgrade: "+h.toFixed(0)+", constraint: "+TZ(U.U)}); U.Y=O}}; xu1=function(U){var O=U.policy.yP,M=Xa(U.BA),S=M/O-fW(U,U.V.info);O=g.oJ(U.X,function(p){return fW(this,p)h?p=0:S[J]>U.buffered[J]&&(J===h-1?p=2:J===h-2&&S[J+1]>U.buffered[J+1]&&(p=3))}U.U.add(O<<3|(M&&4)|p);O=Math.ceil(U.track.Sr()*1E3);U.U.add(O-U.G);U.G=O;if(p===1)for(U.U.add(h),J=O=0;J=2&&U.U.add(S[h- 1]-U.buffered[h-1]);M&&U.U.add(M);U.buffered=S}; $w=function(U,O,M){var S=this;this.policy=U;this.U=O;this.sA=M;this.X=this.V=0;this.pW=null;this.yP=new Set;this.Z=[];this.indexRange=this.initRange=null;this.Y=new M6;this.ol=this.BA=!1;this.BB={KFG:function(){return S.B}, EEA:function(){return S.chunkSize}, huA:function(){return S.D}, HgA:function(){return S.C}}; (O=aSJ(this))?(this.chunkSize=O.csz,this.B=Math.floor(O.clen/O.csz),this.D=O.ck,this.C=O.civ):(this.chunkSize=U.CU,this.B=0,this.D=g.AE(16),this.C=g.AE(16));this.G=new Uint8Array(this.chunkSize);this.D&&this.C&&(this.crypto=new gc7(this.D,this.C))}; aSJ=function(U){if(U.policy.QO&&U.policy.DB)for(var O=g.D(U.policy.QO),M=O.next(),S={};!M.done;S={z2:void 0,AC:void 0},M=O.next())if(M=g.Gr(M.value),S.z2=+M.clen,S.AC=+M.csz,S.z2>0&&S.AC>0&&U.policy.X===M.docid&&U.U.info.id===M.fmtid&&U.U.info.lastModified===+M.lmt)return U={},U.clen=S.z2,U.csz=S.AC,U.ck=M.ck,U.civ=M.civ,U}; TG=function(U){return!!U.pW&&U.pW.Lm()}; Vlm=function(U,O){if(!TG(U)&&!U.GY()){if(!(U.BA||(U.BA=!0,U.B>0))){var M=jk(U);M=uT(U.policy.X,U.U.info,ek(U),M,U.policy.pE);Hk(U,M)}if(O.info.type===1){if(U.pW){zG(U,Error("Woffle: Expect INIT slices to always start us off"));return}U.initRange=n9(0,O.U.getLength())}else if(O.info.type===2)U.pW&&U.pW.type===1||zG(U,Error("Woffle: Index before init")),U.indexRange=n9(U.initRange.end+1,O.U.getLength());else if(O.info.type===3){if(!U.pW){zG(U,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(U.pW.type===3&&!qu(U.pW,O.info)&&(U.Z=[],O.info.Sc!==i6(U.pW)||O.info.V!==0))return;if(O.info.G){M=g.D(U.Z);for(var S=M.next();!S.done;S=M.next())EBw(U,S.value);U.Z=[]}else{U.Z.push(O);U.pW=O.info;return}}else{zG(U,Error("Woffle: Unexpected slice type"));return}U.pW=O.info;EBw(U,O);Lc7(U)}}; EBw=function(U,O){var M=0,S=O.U.c7();if(U.X=S.length)return;if(M<0)throw Error("Missing data");U.X=U.B;U.V=0}for(p={};M0){var J=S.getUint32(M+28);h+=J*16+4}var f=S.getUint32(M+h-4);try{var F=OuW(O.subarray(M+h,M+h+f));if(F!==null){var l=F;break a}}catch(G){}}M+=p}l=null;break a}catch(G){l=null;break a}l=void 0}if(l!=null)for(O=e9(op(l,7)),O==null||U.XL||(U.cryptoPeriodIndex=O),O=e9(op(l,10)),O!=null&&O>0&&!U.XL&&(U.U=O),l=SG(l, 2,G$i,void 0===je5?2:4),l=g.D(l),O=l.next();!O.done;O=l.next())U.B.push(g.cp(bH(O.value),4))}; gbm=function(U){return isNaN(U.cryptoPeriodIndex)?g.cp(U.initData):""+U.cryptoPeriodIndex}; dC=function(U,O,M){var S=M===void 0?{}:M;M=S.videoDuration===void 0?0:S.videoDuration;var p=S.Yt===void 0?void 0:S.Yt;S=S.hn===void 0?!1:S.hn;this.videoId=U;this.status=O;this.videoDuration=M;this.Yt=p;this.hn=S}; Mx4=function(U,O,M,S,p){this.videoId=U;this.YO=O;this.V=M;this.bytesDownloaded=S;this.U=p}; Wk=function(U){this.U=U;this.offset=0}; Nl=function(U){if(U.offset>=U.U.getLength())throw Error();return U.U.getUint8(U.offset++)}; Sjm=function(U,O){O=O===void 0?!1:O;var M=Nl(U);if(M===1){O=-1;for(M=0;M<7;M++){var S=Nl(U);O===-1&&S!==255&&(O=0);O>-1&&(O=O*256+S)}return O}S=128;for(var p=0;p<6&&S>M;p++)M=M*256+Nl(U),S*=128;return O?M:M-S}; p3J=function(U){try{var O=Sjm(U,!0),M=Sjm(U,!1);return{id:O,size:M}}catch(S){return{id:-1,size:-1}}}; hGw=function(U){for(var O=new Wk(U),M=-1,S=0,p=0;!S||!p;){var h=p3J(O),J=h.id;h=h.size;if(J<0)return;if(J===176){if(h!==2)return;S=O.WD()}else if(J===186){if(h!==2)return;p=O.WD()}J===374648427?M=O.WD()+h:J!==408125543&&J!==174&&J!==224&&O.skip(h)}O=mv(U,0,M);M=new DataView(O.buffer);M.setUint16(S,3840);M.setUint16(p,2160);S=new xZ([O]);bG(S,U);return S}; JX4=function(U,O,M){var S=this;this.rG=U;this.policy=O;this.C=M;this.logger=new g.Gs("dash");this.V=[];this.U=null;this.BA=-1;this.Z=0;this.QP=NaN;this.yP=0;this.B=NaN;this.Y=this.Ka=0;this.Yy=-1;this.Ca=this.G=this.X=this.sA=null;this.Rl=this.hZ=NaN;this.D=this.ol=this.HA=this.NL=null;this.pE=!1;this.TY=this.timestampOffset=0;this.BB={YH:function(){return S.V}}; if(this.policy.X){var p=this.C,h=this.policy.X;this.policy.pE&&U.al("atv",{ap:this.policy.pE});this.D=new $w(this.policy,p,function(J,f,F){vk(U,new dC(S.policy.X,2,{Yt:new Mx4(h,J,p.info,f,F)}))}); this.D.Y.promise.then(function(J){S.D=null;J===1?vk(U,new dC(S.policy.X,J)):S.rG.al("offlineerr",{status:J.toString()})},function(J){var f=(J.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); J instanceof ck&&!J.U?(S.logger.info(function(){return"Assertion failed: "+f}),S.rG.al("offlinenwerr",{em:f}),Bk(S),vk(U,new dC(S.policy.X,4))):(S.logger.info(function(){return"Failed to write to disk: "+f}),S.rG.al("dldbwerr",{em:f}),Bk(S),vk(U,new dC(S.policy.X,4,{hn:!0})))})}}; yXJ=function(U){return U.V.length?U.V[0]:null}; fE4=function(U,O){return U.V.some(function(M){return M.info.Sc===O})}; jbe=function(U,O,M,S){S=S===void 0?0:S;if(U.G){var p=U.G.V+U.G.B;if(M.info.V>0)if(M.info.Sc===U.G.Sc&&M.info.V=0&&U.G.Sc>=0&&!qu(U.G,M.info))throw new g.sT("improper_continuation",U.G.Qr(),M.info.Qr());oFg(U.G,M.info)||xw(U,"d")}else if(M.info.V>0)throw new g.sT("continuation_of_null",M.info.Qr());U.G=M.info;U.C=M.info.U;if(M.info.V===0){if(U.U)if(!U.rG.isOffline()||U.policy.Mh)U.rG.al("slice_not_fully_processed",{buffered:U.U.info.Qr(), push:M.info.Qr()});else throw new g.sT("slice_not_fully_processed",U.U.info.Qr(),M.info.Qr());bj(U);U.Ka=S}else{if(U.Ka&&S&&U.Ka!==S)throw U=new g.sT("lmt_mismatch",M.info.Sc,U.Ka,S),U.level="WARNING",U;!M.info.U.aV()&&U.X&&(S=M.info,p=U.X.G5,S.D="updateWithEmsg",S.Sc=p)}if(U.U){S=g.pu(U.U,M);if(!S)throw new g.sT("failed_to_merge",U.U.info.Qr(),M.info.Qr());U.U=S}else U.U=M;a:{M=g.Sh(U.U.info.U.info);if(U.U.info.type!==3){if(!U.U.info.G)break a;U.U.info.type===6?Ffw(U,O,U.U):lEy(U,U.U);U.U=null}for(;U.U;){S= U.U.U.getLength();if(U.BA<=0&&U.Z===0){var h=U.U.U,J=-1;p=-1;if(M){for(var f=0;f+80))break;if(T!==408125543)if(T===524531317)f=!0,G>=0&&(p=h.WD()+G,F=!0);else{if(f&&(T===160||T===163)&&(J<0&&(J=l),F))break;T===163&&(J=Math.max(0,J),p=h.WD()+G);if(T===160){J<0&&(p=J=h.WD()+G);break}h.skip(G)}}J<0&&(p=-1)}if(J< 0)break;U.BA=J;U.Z=p-J}if(U.BA>S)break;U.BA?(S=Gvm(U,U.BA),S.G&&$_J(U,S),Ffw(U,O,S),Ts7(U,S),U.BA=0):U.Z&&(S=Gvm(U,U.Z<0?Infinity:U.Z),U.Z-=S.U.getLength(),Ts7(U,S))}}U.U&&U.U.info.G&&(Ts7(U,U.U),U.U=null)}; lEy=function(U,O){!O.info.U.aV()&&O.info.V===0&&(g.Sh(O.info.U.info)||O.info.U.info.XL())&&Bmi(O);if(O.info.type===1)try{$_J(U,O),eG5(U,O)}catch(p){g.K5(p);var M=ZS(O.info);M.hms="1";U.rG.handleError("fmt.unparseable",M||{},1)}M=O.info.U;M.Hz(O);U.D&&Vlm(U.D,O);if(M.Sv()&&U.policy.U)a:{U=U.rG.DQ;O=O.info.clipId;M=g.hO(M.info,U.KE);if(O){var S=ZOq(U,M);if(U.TY[S])break a;U.TY[S]=O}U.Ca.push(M)}}; i6e=function(U,O,M){if(U.V.length!==0&&(M||U.V.some(function(h){return h.info.X=ts(J)+f):O=U.getDuration()>=J.getDuration(),O=!O;O&&cXw(M)&&(O=U.sA,R7?(f=Nm7(M),J=1/f,f=ts(U,f),O=ts(O)+J-f):O=O.getDuration()- U.getDuration(),O=1+O/M.info.duration,xXw(M.AR(),O))}else{J=!1;U.X||(Bmi(M),M.V&&(U.X=M.V,J=!0,h=M.info,S=M.V.G5,h.D="updateWithEmsg",h.Sc=S,h=M.V,h.Lm&&(S=U.C.index,S.V=!h.Lm,S.B="emsg"),h=M.info.U.info,S=M.AR(),g.Sh(h)?p9(S,1701671783):h.XL()&&$B([408125543],307544935,S)));a:if((h=fu(M,U.policy.EQ))&&vf7(M))f=D_w(U,M),U.Y+=f,h-=f,U.yP+=h,U.B=U.policy.u6?U.B+h:NaN;else{if(U.policy.gQ){if(S=F=U.rG.L0(g.hX(M),1),U.B>=0&&M.info.type!==6){if(U.policy.u6&&isNaN(U.hZ)){g.rz(new g.sT("Missing duration while processing previous chunk", M.info.Qr()));U.rG.isOffline()&&!U.policy.Mh||d_J(U,M,S);xw(U,"m");break a}var l=F-U.B,G=l-U.Y,T=M.info.Sc,e=U.Ca?U.Ca.Sc:-1,H=U.Rl,z=U.hZ,W=U.policy.j_&&l>U.policy.j_,v=Math.abs(G)>10,x=Math.abs(U.B-S)<1E-7;if(Math.abs(G)>1E-4){U.TY+=1;var t=(p=U.X)==null?void 0:VT(p);p={audio:""+ +U.xS(),sq:T.toFixed(),sliceStart:F,lastSq:e.toFixed(),lastSliceStart:H,lastSliceDuration:z,totalDrift:(l*1E3).toFixed(),segDrift:(G*1E3).toFixed(),skipRewrite:""+ +(W||v)};if(t==null?0:t.length)p.adCpn=t[0];U.rG.handleError("qoe.avsync", p);U.Yy=T}W||v||x||(S=U.B);p=D_w(U,M,F);h-=p;U.Y=l+p;U.policy.B&&(G&&!x||p)&&(l=(f=U.X)==null?void 0:VT(f),U.rG.al("discontinuityRewrite",{adCpn:(l==null?0:l.length)?l.join("."):"",itag:M.info.U.info.itag,sq:M.info.Sc,originalStartTime:F,rewrittenStartTime:S,startTimeAdjustment:S-F,segDrift:(G*1E3).toFixed(),originalDuration:h+p,rewrittenDuration:h,durationAdjustment:p}))}}else S=isNaN(U.B)?M.info.startTime:U.B;d_J(U,M,S)&&(U.yP+=h,U.B=S+h,U.policy.xY&&U.TY>=U.policy.xY&&(U.TY=0,U.rG.DK({resetForRewrites:"count"})))}U.Ca= M.info;U.hZ=JX(M);M.B>=0&&(U.Rl=M.B);if(J&&U.X){J=Wf4(U,!0);K9(M.info,J);U.U&&K9(U.U.info,J);O=g.D(O);for(f=O.next();!f.done;f=O.next())f=f.value,p=void 0,U.policy.C&&f.Sc!==((p=U.X)==null?void 0:p.G5)||K9(f,J);(M.info.G||U.U&&U.U.info.G)&&M.info.type!==6||(U.ol=J,U.policy.NL?(O=Nsy(U.X),U.rG.Vd(U.C,J,O)):(O=U.rG,O.DQ.isManifestless&&vbU(O,J,null,!!U.C.info.video)),U.policy.FT||Bs7(U))}}eG5(U,M);U.timestampOffset&&de5(M,U.timestampOffset)}; Ts7=function(U,O){if(O.info.G){U.NL=O.info;if(U.X){var M=U.X,S=Wf4(U,!1);M=Nsy(M);U.rG.Vd(U.C,S,M);U.ol||U.policy.FT||Bs7(U);U.ol=null}bj(U)}U.D&&Vlm(U.D,O);if(S=U.Tv())if(S=g.pu(S,O,U.policy.K$,U.policy.mD)){U.V.pop();U.V.push(S);return}U.V.push(O)}; Nsy=function(U){if(U.zt()){var O=U.data["Stitched-Video-Id"]?U.data["Stitched-Video-Id"].split(",").slice(0,-1):[],M=VT(U),S=[];if(U.data["Stitched-Video-Duration-Us"])for(var p=g.D(U.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=p.next();!h.done;h=p.next())S.push((Number(h.value)||0)/1E6);p=[];if(U.data["Stitched-Video-Start-Frame-Index"]){h=g.D(U.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var J=h.next();!J.done;J=h.next())p.push(Number(J.value)||0)}p=[]; if(U.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(h=g.D(U.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),J=h.next();!J.done;J=h.next())p.push((Number(J.value)||0)/1E6);U=new U_5(O,M,S,p,g.Waw(U),g.N9w(U))}else U=null;return U}; bj=function(U){U.U=null;U.BA=-1;U.Z=0;U.X=null;U.QP=NaN;U.yP=0;U.ol=null}; xw=function(U,O){O={rst4disc:O,cd:U.Y.toFixed(3),sq:U.Ca?U.Ca.Sc:-1};U.B=NaN;U.Y=0;U.Yy=-1;U.Ca=null;U.Rl=NaN;U.hZ=NaN;U.HA=null;U.rG.al("mdstm",O)}; eG5=function(U,O){if(U.C.info.IW){if(O.info.U.info.XL()){var M=new JC(O.AR());if(f9(M,[408125543,374648427,174,28032,25152,20533,18402])){var S=Ge(M,!0);M=S!==16?null:H$(M,S)}else M=null;S="webm"}else O.info.Z=ke5(O.AR()),M=w$y(O.info.Z),S="cenc";M&&M.length&&(M=new Ds(M,S),U.policy.OP&&g.Sh(O.info.U.info)&&(S=AA4(O.AR()))&&(M.V=S),M.XL=O.info.U.info.XL(),O.V&&O.V.cryptoPeriodIndex&&(M.cryptoPeriodIndex=O.V.cryptoPeriodIndex),O.V&&O.V.V&&(M.U=O.V.V),U.rG.NZ(M))}}; Bs7=function(U){var O=U.X,M=DXe(O);M&&(M.startSecs+=U.QP,U.rG.Lb(U.C,M,O.G5,O.zt()))}; Wf4=function(U,O){var M,S=U.X;if(M=DXe(S))M.startSecs+=U.QP;return new nS(S.G5,U.QP,O?S.xV:U.yP,S.ingestionTime,"sq/"+S.G5,void 0,void 0,O,M)}; d_J=function(U,O,M){if(!Dey(O,M))return O=ZS(O.info),O.smst="1",U.rG.handleError("fmt.unparseable",O||{},1),!1;isNaN(U.QP)&&(U.QP=M);return!0}; D_w=function(U,O,M){var S=0;if(O.info.U.info.XL()&&!vf7(O))return 0;if(U.sA&&!U.xS()){var p=0;M&&g.Sh(O.info.U.info)?p=M-U.B:O.info.U.info.XL()&&(p=U.Y);var h=O.info.Sc;M=fu(O,U.policy.EQ);var J=U.sA;var f=J.Yy;J=J.Y;var F=Math.abs(J-p)>.02;if((h===f||h>f&&h>U.Yy)&&F){S=Math.max(.95,Math.min(1.05,(M-(J-p))/M));if(g.Sh(O.info.U.info))xXw(O.AR(),S);else if(O.info.U.info.XL()&&(h=p-J,!g.Sh(O.info.U.info)&&(O.info.U.info.XL(),S=new JC(O.AR()),f=O.G?S:new JC(new DataView(O.info.U.U.buffer)),fu(O,!0)))){var l= h*1E3,G=c$(f);f=S.pos;S.pos=0;if(S.U.getUint8(S.pos)===160||DS(S))if(l6(S,160))if(Ge(S,!0),l6(S,155)){if(h=S.pos,F=Ge(S,!0),S.pos=h,l=l*1E9/G,G=Te(S),l=G+Math.max(-G*.7,Math.min(G,l)),l=Math.sign(l)*Math.floor(Math.abs(l)),!(Math.ceil(Math.log(l)/Math.log(2)/8)>F)){S.pos=h+1;for(h=F-1;h>=0;h--)S.U.setUint8(S.pos+h,l&255),l>>>=8;S.pos=f}}else S.pos=f;else S.pos=f;else S.pos=f}S=fu(O,U.policy.EQ);S=M-S}S&&O.info.U.info.XL()&&U.rG.al("webmDurationAdjustment",{durationAdjustment:S,videoDrift:p+S,audioDrift:J})}return S}; cXw=function(U){return U.info.U.aV()&&U.info.Sc===U.info.U.index.zZ()}; ts=function(U,O){O=(O=O===void 0?0:O)?Math.round(U.timestampOffset*O)/O:U.timestampOffset;U.C.X&&O&&(O+=U.C.X.U);return O+U.getDuration()}; x_w=function(U,O){O<0||(U.V.forEach(function(M){de5(M,O)}),U.timestampOffset=O)}; rg=function(U,O,M,S,p){yO.call(this,M,p);var h=this;this.policy=U;this.formatId=O;this.wD=S;this.lastError=null;this.Ji=function(){h.GY()||(h.wD.hs.has(h.formatId)?(h.isComplete()||h.U.start(),CV(h.wD,h.formatId)&&h.Zj(2),h.wD.rL(h.formatId)&&(kZi(h.wD,h.formatId)?h.YZ(4):(h.lastError="net.closed",h.YZ(5)))):(h.lastError="player.exception",h.YZ(5)))}; this.U=new g.UM(function(){h.isComplete()||(h.lastError="net.timeout",h.YZ(5))},1E3); this.U.start();Lbw(this.wD,this.formatId,this.Ji);g.NF(this.Ji)}; Yw=function(U,O,M,S){g.C.call(this);var p=this;this.rG=U;this.policy=O;this.U=M;this.timing=S;this.logger=new g.Gs("dash");this.B=[];this.sA=[];this.V=this.I_=null;this.Ka=!1;this.TY=this.HA=0;this.C=-1;this.BA=!1;this.QP=-1;this.Ca=null;this.ol=NaN;this.yP=[];this.BB={Aj:function(){return p.X}, dXn:function(){return p.B}, JBa:function(){return p.D}}; this.X=new JX4(U,O,M);this.policy.U&&(this.D=new qD(this.X,this.rG.getManifest(),this.policy,function(h){p.policy.ZK&&p.al("buftl",h)})); this.policy.HV&&(this.Z=new lj(this));this.a_=M.info.a_;this.Y=this.policy.ol?!1:M.Ae();this.isManifestless=M.Ae();this.G=this.Y;g.X(this,this.Ca)}; mD=function(U,O,M){M=M===void 0?!1:M;O&&R7&&x_w(U.X,O.Td());if(!M){var S;(S=U.D)==null||CN5(S)}U.I_=O;(O=U.D)!=null&&(O.I_=U.I_)}; As=function(U){var O=U.I_&&U.I_.y0();if(U.policy.L9){if((U=U.D)==null)U=void 0;else{var M;U=(M=U.B)==null?void 0:M.info}return U||null}return O}; bui=function(U){for(var O={},M=0;M4&&U.sA.shift()}; Yjg=function(U,O){if(O.Xc()){var M=O.s9();M=g.D(M);for(var S=M.next();!S.done;S=M.next())S=S.value,U.policy.B&&O instanceof rg&&U.al("omblss",{s:S.info.Qr()}),txi(U,O.info.xp,S,O.C_())}}; txi=function(U,O,M,S){S=S===void 0?0:S;isNaN(U.ol)||(U.al("aswm",{sq:O[0].Sc,id:O[0].U.info.itag,xtag:O[0].U.info.U,ep:Date.now()-U.ol}),U.ol=NaN);switch(M.info.type){case 1:case 2:m_U(U,M);break;case 4:var p=M.info.U,h=p.mJ(M),J;((J=U.V)==null?0:J.type===4)&&Mhw(M.info,U.V)&&(U.V=p.D_(U.V).pop());M=g.D(h);for(p=M.next();!p.done;p=M.next())txi(U,O,p.value,S);break;case 3:M.info.U.info.video?(p=U.timing,p.sA||(p.sA=(0,g.nM)(),A0("fvb_r",p.sA,p.U))):(p=U.timing,p.C||(p.C=(0,g.nM)(),A0("fab_r",p.C,p.U))); jbe(U.X,O,M,S);U.policy.U&&AX5(U);break;case 6:jbe(U.X,O,M,S),U.V=M.info}}; m_U=function(U,O){if(O.info.type===1)if(O.info.U.info.video){var M=U.timing;M.Ca||(M.Ca=(0,g.nM)(),A0("vis_r",M.Ca,M.U))}else M=U.timing,M.Y||(M.Y=(0,g.nM)(),A0("ais_r",M.Y,M.U));lEy(U.X,O);U=U.rG;U.videoTrack.U.Sv()&&U.audioTrack.U.Sv()&&U.policy.U&&!U.DQ.KE&&(O=U.audioTrack.getDuration(),M=U.videoTrack.getDuration(),Math.abs(O-M)>1&&U.al("trBug",{af:""+g.hO(U.audioTrack.U.info,!1),vf:""+g.hO(U.videoTrack.U.info,!1),a:""+O,v:""+M}))}; O9=function(U){return yXJ(U.X)}; AX5=function(U){U.B.length?U.V=g.E4(g.E4(U.B).info.xp):U.X.V.length?U.V=U.X.Tv().info:U.V=As(U)}; IEJ=function(U,O){var M={N0:[],vD:[]},S;if((U=U.D)==null)U=void 0;else{Qym(U,U.N0,"og");I1U(U,O);Qym(U,U.N0,"trim");var p=nDi(U);O=p.N0;p=p.vO;for(var h=[],J=0;J0){var e=To(T,F);e>=0&&(G=(T.end(e)-F+.1)*1E3)}h.push({formatId:g.hO(f.info.U.info,U.DQ.KE), zA:f.info.zA,sequenceNumber:f.info.Sc+U.X,RN:l,Kw:f.info.B,VE:G})}U={N0:O,vD:h}}return(S=U)!=null?S:M}; LB=function(U,O,M){M=M===void 0?!1:M;if(U.I_){var S=U.I_.Nm(),p=eh(S,O),h=NaN,J=As(U);J&&(h=eh(S,J.U.index.getStartTime(J.Sc)));if(p===h&&U.V&&U.V.B&&PSe(nb5(U),0))return O}U=Qbw(U,O,M);return U>=0?U:NaN}; og=function(U,O,M){U.U.Sv();var S=Qbw(U,O);if(S>=0)return S;var p;(p=U.D)==null||PNm(p,O,M);M=Math;S=M.min;p=U.X;if(p.D)if(p=p.D,p.pW&&p.pW.type===3)p=p.pW.startTime;else if(p.B>0){var h=p.U.index;h=g.ft(h.offsets.subarray(0,h.count),p.B*p.chunkSize);p=p.U.index.getStartTime(h>=0?h:Math.max(0,-h-2))}else p=0;else p=Infinity;O=S.call(M,O,p);if(U.policy.V){var J,f;M=(J=U.rG.ZD())==null?void 0:(f=ZX(J,O))==null?void 0:f.clipId;U.V=U.U.v3(O,void 0,M).xp[0]}else U.V=U.policy.ol?null:U.U.v3(O).xp[0];I7(U)&& (U.I_&&U.I_.abort(),U.policy.jk&&(J=U.D)!=null&&(J.B=void 0));U.TY=0;return U.V?U.V.startTime:O}; uFe=function(U){U.Y=!0;U.G=!0;U.C=-1;og(U,Infinity)}; Pk=function(U){for(var O=0,M=g.D(U.B),S=M.next();!S.done;S=M.next())O+=p11(S.value.info);return O+=Huy(U.X)}; Qy=function(U,O){O=O===void 0?!1:O;var M=U.rG.getCurrentTime(),S=U.X.Tv(),p=(S==null?void 0:S.info.C)||0;U.policy.Po&&(S==null?0:S.info.U.Ae())&&!S.info.G&&(p=S.info.X);if(U.policy.V&&S&&S.info.clipId){var h,J=(((h=U.rG.ZD())==null?void 0:iz(h,S.info.clipId))||0)/1E3;p+=J}if(!U.I_)return U.policy.U&&O&&!isNaN(M)&&S?p-M:0;if((h=As(U))&&nW(U,h))return h.C;J=U.I_.Nm(!0);if(O&&S)return h=0,U.policy.U&&(h=zo(J,p+.02)),h+p-M;p=zo(J,M);U.policy.Bt&&h&&(O=To(J,M),J=To(J,h.X-.02),O===J&&(M=h.C-M,U.policy.B&& M>p+.02&&U.al("abh",{bh:p,bhtls:M}),p=Math.max(p,M)));return p}; CSi=function(U){var O=As(U);return O?O.C-U.rG.getCurrentTime():0}; X34=function(U,O){if(U.B.length){if(U.B[0].info.xp[0].startTime<=O)return;Ec(U)}for(var M=U.X,S=M.V.length-1;S>=0;S--)M.V[S].info.startTime>O&&M.V.pop();AX5(U);U.V&&O=0;J--){var f=p.V[J];f.info.Sc>=O&&(p.V.pop(),p.B-=fu(f,p.policy.EQ),h=f.info)}h&&(p.G=p.V.length>0?p.V[p.V.length-1].info:p.HA,p.V.length!==0||p.G||xw(p,"r"));p.rG.al("mdstm",{rollbk:1,itag:h?h.U.info.itag:"",popped:h?h.Sc:-1,sq:O,lastslc:p.G?p.G.Sc:-1,lastfraget:p.B.toFixed(3)});if(U.policy.U)return U.V=null,!0;S>M?og(U,S):U.V=U.U.Dx(O-1,!1).xp[0]}catch(F){return O=nP(F),O.details.reason="rollbkerr", U.rG.handleError(O.errorCode,O.details,O.severity),!1}return!0}; XP=function(U,O){var M;for(M=0;M0?M||O.Sc>=U.QP:M}; ql=function(U){var O;return I7(U)||nW(U,(O=U.X.Tv())==null?void 0:O.info)}; nb5=function(U){var O=[],M=As(U);M&&O.push(M);O=g.g3(O,U.X.Gz());M=g.D(U.B);for(var S=M.next();!S.done;S=M.next()){S=S.value;for(var p=g.D(S.info.xp),h=p.next(),J={};!h.done;J={v6:void 0},h=p.next())J.v6=h.value,S.Yx&&(O=g.j4(O,function(f){return function(F){return!Mhw(F,f.v6)}}(J))),(u6(J.v6)||J.v6.type===4)&&O.push(J.v6)}U.V&&!La5(U.V,g.E4(O),U.V.U.aV())&&O.push(U.V); return O}; PSe=function(U,O){if(!U.length)return!1;for(O+=1;O=O){O=h;break a}}O=p}return O<0?NaN:PSe(U,M?O:0)?U[O].startTime:NaN}; ij=function(U){return!(!U.V||U.V.U===U.U)}; qje=function(U){return ij(U)&&U.U.Sv()&&U.V.U.info.a_O&&S.C1080&&!U.QK&&(U.HA=36700160,U.w7=5242880,U.hZ=Math.max(4194304,U.hZ),U.QK=!0);O.video.qualityOrdinal>2160&&!U.AE&&(U.HA=104857600,U.a_=13107200,U.AE=!0);g.DF(U.X0.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?O.isEncrypted()&&g.Ud()&&g.kJ("samsung")&&(g.kJ("kant")||g.kJ("muse"))&&(U.a_=g.DF(U.X0.experiments,"html5_samsung_kant_limit_max_bitrate")):O.isEncrypted()&&g.Ud()&&g.kJ("kant")&&(U.a_=1310720);U.RE!==0&&O.isEncrypted()&& (U.a_=U.RE);U.YY!==0&&O.isEncrypted()&&M&&(U.a_=U.YY);O.a_&&(U.Lq=Math.max(U.l6,Math.min(U.hZ,5*O.a_)))}; a7=function(U){return U.U&&U.FE&&U.playbackStartPolicy}; Ev=function(U){return U.V||U.U&&U.Op}; SR7=function(U,O,M,S){U.FE&&(U.playbackStartPolicy=O,U.q6=M,U.T$=S)}; rC=function(U,O,M){M=M===void 0?0:M;return g.DF(U.X0.experiments,O)||M}; pn5=function(U){var O=U===void 0?{}:U;U=O.DF;var M=O.nm;var S=O.TJ;var p=O.zZ;O=O.ye;this.DF=U;this.nm=M;this.TJ=S;this.zZ=p;this.ye=O}; wZw=function(U,O){if(O<0)return!0;var M=U.zZ();return O0)return 2;if(O<0)return 1;M=U.zZ();return O(0,g.nM)()?0:1}; Vy=function(U,O,M,S,p,h,J,f,F,l,G,T,e,H){H=H===void 0?null:H;g.C.call(this);var z=this;this.rG=U;this.policy=O;this.videoTrack=M;this.audioTrack=S;this.X=p;this.U=h;this.timing=J;this.G=f;this.schedule=F;this.DQ=l;this.B=G;this.yP=T;this.hO=e;this.Da=H;this.ol=!1;this.z0="";this.y5=null;this.Og=NaN;this.BA=!1;this.V=null;this.Hx=this.Z=NaN;this.N9=this.C=0;this.logger=new g.Gs("dash");this.BB={lZ:function(W,v){return z.lZ(W,v)}}; this.policy.Xn>0&&(this.z0=g.AE(this.policy.Xn));this.policy.Sx&&(this.Y=new LW(this.rG,this.policy,this.schedule),g.X(this,this.Y))}; G_W=function(U,O,M){var S=O.V?O.V.U.uM:O.U.uM;var p=U.X,h;(h=!U.policy.il)||(h=tc(S.U)===tc(S.B));h?S=!1:(p=B$(p,tc(S.B)),h=6E4*Math.pow(p.X,1.6),(0,g.nM)()=p.X?(p.al("sdai",{haltrq:h+1,est:p.X}),S=!1):S=p.V!==2;if(!S||!YB(O.V?O.V.U.uM:O.U.uM,U.policy,U.X,U.rG.B2())||U.rG.isSuspended&&(!RK(U.schedule)||U.rG.GV))return!1;if(U.policy.X&&Xy>=5)return g.OM(U.rG.PH),!1;if(U.DQ.isManifestless){if(O.B.length>0&&O.V&&O.V.Sc===-1||O.B.length>=U.policy.zv||!U.policy.SR&&O.B.length>0&&!U.policy.Y.nm)return!1;if(O.Y)return!U.DQ.isLive||!isNaN(U.Og)}if(aEw(O))return U.logger.debug("Pending request with server-selectable format found"), !1;if(!O.V){if(!O.U.Sv())return!1;og(O,U.rG.getCurrentTime())}if(O9(O)&&(O.Tv()!==O9(O)||U.rG.isSuspended))return!1;p=(S=U.policy.Hw)&&!O.B.length&&Qy(O,!0)=U.policy.NI)return!1;S=O.V;if(!S)return!0;S.type===4&&S.U.Sv()&&(O.V=g.E4(S.U.D_(S)),S=O.V);if(!S.Lm()&&!S.U.TP(S))return!1;h=U.DQ.Dh||U.DQ.X;if(U.DQ.isManifestless&&h){h=O.U.index.zZ();var J=M.U.index.zZ(); h=Math.min(h,J);if(O.U.index.xk()>0&&h>0&&S.Sc>=h)return O.QP=h,M.QP=h,!1}if(S.U.info.audio&&S.type===4||S.Lm())return!1;h=!O.G&&!M.G;if(p=!p)p=S.C,p=!!(M.V&&!nW(M,M.V)&&M.V.C$ny(U,O)?($ny(U,O),!1):(U=O.I_)&&U.isLocked()?!1:!0}; $ny=function(U,O){var M=U.U;M=M.U?M.U.LO:null;if(U.policy.sA&&M)return M.startSecs+M.PJ+15;O=Vk(U.rG,O);U.policy.AG>0&&(M=((0,g.nM)()-U.rG.er)/1E3,O=Math.min(O,U.policy.AG+U.policy.WU*M));M=U.rG.getCurrentTime()+O;return U.policy.tE&&(O=Tv5(U.rG)+U.policy.tE,O=0||O.uM.XW("defrag")==="1"||O.uM.XW("otf")==="1"){O=null;break a}p=n9(0,4096)}p=new r2([new C9(5,S.U,p,"createProbeRequestInfo"+S.D,S.Sc)],O.V);p.UU=M;p.U=O.U;O=p}O&&lb4(U,O)}}; lb4=function(U,O){U.rG.rN(O);var M=p11(O),S=U.rG.M$();M={Kr:U.schedule,Cj:M,wU:xGi(U.G,M),RV:Xi(O.xp[0]),A6:Yc(O.uM.U),D4:U.policy.B,nF:function(J,f){U.rG.pz(J,f)}}; if(U.schedule.V.C){var p,h;M.rC=(((p=U.videoTrack.U)==null?void 0:p.info.a_)||0)+(((h=U.audioTrack.U)==null?void 0:h.info.a_)||0)}U.y5&&(M.Sc=O.xp[0].Sc,M.Og=O.Og,M.y5=U.y5);S={P$:h9e(O,U.rG.getCurrentTime()),jt:U.policy.e5&&Ei(O)&&O.xp[0].U.info.video?Z94(U.B):void 0,h3:U.policy.sA,poToken:U.rG.Ui(),O5:U.rG.Rj(),z0:U.z0,Hx:isNaN(U.Hx)?null:U.Hx,Da:U.Da,hO:U.hO,N9:U.N9,sx:S};return new ag(U.policy,O,M,U.X,function(J,f){try{a:{var F=J.info.xp[0].U,l=F.info.video?U.videoTrack:U.audioTrack;if(!(J.state>= 2)||J.isComplete()||J.Vu()||!(!U.rG.La||U.rG.isSuspended||Qy(l)>3)){var G=yGw(J,U.policy,U.X);G===1&&(U.BA=!0);jKq(U,J,G);if(J.isComplete()||J.GY()&&f<3){if(U.policy.B){var T=J.timing.Wo();T.rst=J.state;T.strm=J.xhr.Dw();T.cncl=J.xhr&&J.TZ.X?1:0;U.rG.al("rqs",T)}J.VS&&U.rG.al("sbwe3",{},!0)}if(!U.GY()&&J.state>=2){jfw(U.timing,J,F);var e=U.rG;U.Hx&&J.UM&&e&&(U.Hx=NaN,U.rG.r$(J.UM),U.rG.oi(),U.rG.al("cabrUtcSeek",{mediaTimeSeconds:J.UM}));J.Ln&&U.Hx&&J.Ln&&!J.Ln.action&&(U.rG.H2(U.Hx),U.Hx=NaN,U.rG.al("cabrUtcSeekFallback", {targetUtcTimeSeconds:U.Hx}));J.b8&&U.rG.aS(J.b8);U.policy.dH&&(U.N9=J.N9);if(J.state===3){XP(l,J);Ei(J.info)&&o7(U,l,F,!0);if(U.V){var H=J.info.Lj();H&&U.V.jh(J.info.xp[0].Sc,F.info.id,H)}U.rG.Ce()}else if(J.isComplete()&&J.info.xp[0].type===5){if(J.state!==4)J.xT()&&U.rG.handleError(J.eH(),J.bO());else{var z=(J.info.xp[0].U.info.video?U.videoTrack:U.audioTrack).B[0]||null;z&&z instanceof ag&&z.Vu()&&z.He()}J.dispose()}else{J.xT()||eMW(U,J);var W;((W=J.k7)==null?0:W.itagDenylist)&&U.rG.oD(J.k7.itagDenylist); if(J.state===4)HLw(U,J),U.U&&cC4(U.U,J.info,U.V);else if(U.policy.DS&&J.Xc()&&!J.isComplete()&&!HLw(U,J)&&!J.xT())break a;J.xT()&&(zMe(U,J),isNaN(U.Hx)||(U.rG.H2(U.Hx),U.Hx=NaN));U.policy.WV&&!J.isComplete()?cGJ(U.rG):U.rG.Ce();var v=fbw(J,U.policy,U.X);jKq(U,J,v)}}}}}catch(x){f=U.ol?1:0,U.ol=!0,J=Po(f),f=nP(x,f),U.rG.handleError(f.errorCode,f.details,f.severity),J||U.rG.m0()}},S)}; eMW=function(U,O){if(O.XN&&O.state>=2&&O.state!==3){var M=O.xhr.getResponseHeader("X-Response-Itag");if(M){U.logger.debug(function(){return"Applying streamer-selected format "+M}); var S=i95(U.B,M),p=O.info.B;p&&(p-=S.tj(),S.B=!0,O.info.xp[0].U.B=!1,rce(O,S.UG(p)),kw(U.rG,U.videoTrack,S),Ebe(U.videoTrack,S),U.rG.N5(S.info.video.quality),(p=O.C_())&&S.info.lastModified&&S.info.lastModified!==+p&&XP(U.videoTrack,O))}else O.XN=!1}}; zMe=function(U,O){var M=O.info.xp[0].U,S=O.eH();if(Yc(M.uM.U)){var p=g.DT(O.XT(),3);U.rG.al("dldbrerr",{em:p||"none"})}p=O.info.xp[0].Sc;var h=VO(U.U,O.info.xp[0].X,p);S==="net.badstatus"&&(U.C+=1);if(O.canRetry()&&DnJ(U.rG)){if(!(O.info.uM.V>=U.policy.Ma&&U.V&&O.info.isDecorated()&&S==="net.badstatus"&&U.V.du(h,p))){p=(M.info.video&&M.uM.V>1||O.PN===410||O.PN===500||O.PN===503)&&!(gC(U.B.G).size>0)&&!Yc(M.uM.U);h=O.bO();var J=M.info.video?U.videoTrack:U.audioTrack;p&&(h.stun="1");U.rG.handleError(S, h);U.GY()||(p&&(U.logger.debug(function(){return"Stunning format "+M.info.id}),yy(U.B,M)),XP(J,O),U.rG.Ce())}}else J=1,U.V&&O.info.isDecorated()&&S==="net.badstatus"&&U.V.du(h,p)&&(J=0),U.DQ.isLive&&O.eH()==="net.badstatus"&&U.C<=U.policy.gs*2?(hFi(U.DQ),U.DQ.Dh||U.DQ.isPremiere?U9(U.rG,0,{uH:"badStatusWorkaround"}):U.DQ.X?U9(U.rG,U.DQ.Ka,{uH:"badStatusWorkaround", L0:!0}):wC(U.rG)):U.rG.handleError(S,O.bO(),J)}; HLw=function(U,O){if(U.policy.useUmp&&O.GY())return!1;try{var M=O.info.xp[0].U,S=M.info.video?U.videoTrack:U.audioTrack;if(U.DQ.isManifestless&&S){U.C=0;S.Y&&(O.GY(),O.isComplete()||O.Xc(),S.Y=!1);O.p_()&&U.rG.rY.Wi(1,O.p_());var p=O.xk(),h=O.mX();mf(U.DQ,p,h)}if(O.info.RV()&&!af(O.info))for(var J=g.D(O.s9()),f=J.next();!f.done;f=J.next())m_U(S,f.value);for(U.rG.getCurrentTime();S.B.length&&S.B[0].state===4;){var F=S.B.shift();Yjg(S,F);S.HA=F.G9()}S.B.length&&Yjg(S,S.B[0]);var l=!!O9(S);l&&O instanceof rg&&(M.info.xS()?yCe(U.timing):JCe(U.timing));return l}catch(G){O=O.bO();O.origin="hrhs";a:{U=U.rG;M=G;if(M instanceof Error){O.msg||(O.msg=""+M.message);O.name||(O.name=""+M.name);if(M instanceof g.sT&&M.args)for(S=g.D(Object.entries(M.args)),p=S.next();!p.done;p=S.next())h=g.D(p.value),p=h.next().value,h=h.next().value,O["arg"+p]=""+h;g.rz(M);if(M.level==="WARNING"){U.wG.DK(O);break a}}U.handleError("fmt.unplayable",O,1)}return!1}}; dn4=function(U){var O=U.videoTrack.U.index;U.y5=new pn5({DF:U.policy.DF,nm:U.policy.Y.nm,TJ:O.nH(),zZ:function(){return O.zZ()}, ye:function(){return O.ye()}})}; o7=function(U,O,M,S){var p=U.policy.cL?U.rG.B2():0;M.Sv()||M.Sl()||M.B||!YB(M.uM,U.policy,U.X,p)||M.info.zY==="f"||U.policy.U||(S?(S=U.G,p=M.info,S=b6g(S,p.video?S.policy.FV:S.policy.DO,p.a_)):S=0,S=M.UG(S),U=lb4(U,S),af(S)&&RGm(O,U),M.B=!0)}; Ux=function(U,O,M,S,p,h,J,f){g.C.call(this);var F=this;this.rG=U;this.wH=O;this.videoTrack=M;this.audioTrack=S;this.DQ=p;this.Z=h;this.isAudioOnly=J;this.C=f;this.V=VK;this.BA=!1;this.logger=new g.Gs("sabr");this.Y=this.ol=this.yP=!1;this.videoInfos=this.D=this.Z.videoInfos;this.B=this.sA=this.Z.U;this.U=new Uv(O,h,function(l,G){F.rG.al(l,G)}); this.wH.GR||Wq5(this);this.isAudioOnly&&Nvq(this,this.DQ.U["0"])}; v0q=function(U,O){var M=[];O=g.D(O);for(var S=O.next();!S.done;S=O.next())M.push(g.hO(S.value,U.DQ.KE));return M}; Nvq=function(U,O,M){O!==U.X&&(U.X&&(U.BA=!0),U.X=O,U.yd(O,U.videoTrack,M))}; RMy=function(U,O){U.logger.debug("setConstraint: "+TZ(O));Ev(U.wH)&&(U.ol=O.reason==="m"||O.reason==="l"?!0:!1);O.reason==="m"?O.isLocked()&&Bv7(U,O.U):xni(U,O)?bL4(U,O.V,O.U):U.videoInfos=U.D;U.V=O}; xni=function(U,O){return U.wH.hF&&O.reason==="b"||U.wH.nP&&O.reason==="l"||U.wH.JF?!1:U.wH.dQ?!0:O.reason==="l"||O.reason==="b"||O.reason==="o"}; tf1=function(U,O){return O.isLocked()&&U.U.V||U.V===void 0?!1:O.KW(U.V)}; YRw=function(U,O){var M,S=(M=U.X)==null?void 0:M.info.video.qualityOrdinal;return U.BA?!0:U.X?O!==S?!0:!U.U.V||U.wH.o2&&U.U.U===U.X.info.itag?!1:!0:!1}; Bv7=function(U,O){var M=U.U.U;if(M){U.videoInfos=U.D;var S=g.VD(U.videoInfos,function(p){return p.id===M}); S&&S.video.qualityOrdinal===O?U.videoInfos=[S]:(S=U.videoInfos.map(function(p){return p.id}),U.rG.al("sabrpf",{pfid:""+M, vfids:""+S.join(".")}),bL4(U,O,O),Ml(U.U,""))}else bL4(U,O,O)}; bL4=function(U,O,M){U.videoInfos=U.D;U.videoInfos=g.j4(U.videoInfos,function(S){return S.video.qualityOrdinal>=O&&S.video.qualityOrdinal<=M})}; Wq5=function(U){var O=vBe(U.U,U.C);O&&(U.B=[O])}; mne=function(U,O,M){if(U.wH.GR){if(U.C){var S=g.j4(U.B,function(p){return p.id===U.C}); return Ox(S,M).includes(O)}S=g.j4(U.B,function(p){var h;return!((h=p.ZN)==null||!h.isDefault)}); if(S.length>0)return Ox(S,M).includes(O)}return Ox(U.B,M).includes(O)}; Ox=function(U,O){return U.map(function(M){return mc(g.hO(M,O))})}; AGe=function(U){var O;if((O=U.V)==null?0:O.isLocked())return U.videoInfos;var M=gC(U.U);O=g.j4(U.videoInfos,function(S){return S.a_>U.wH.a_?!1:!M.has(S.id)}); N24(U.U)&&(O=g.j4(O,function(S){return S.video.width<=854&&S.video.height<=480})); return O}; n05=function(U,O,M,S){var p=U.DQ,h=U.wG.getVideoData(),J=g.Os(h),f=U.ly,F=xP({X0:h.J(),wG:U.wG,Ax:U.Ax,wH:U.wH,er:U.er,vu:U.vu,H$:U.H$,p$:U.p$,s7:U.s7,isPrefetch:U.isPrefetch,T7:U.T7,sabrLicenseConstraint:h.sabrLicenseConstraint,Rg:U.Rg,c$:U.c$,rj:U.rj,U4:U.U4,NGA:!!f,Sh:h.Sh}),l=bf(h,U.sx,U.nextRequestPolicy,U.R2,U.F3,U.cic,U.tW);S&&M&&(S=l.JY?l.JY.map(function(W){return W.type}):[],M("sabr",{stmctxt:S.join("_"), unsntctxt:l.AJ?l.AJ.join("_"):""}));S=U.t3;var G=U.uy;if(G===void 0&&S===void 0){var T;G=Ib7(p.KE,(T=U.eD)==null?void 0:T.video);var e;S=Ib7(p.KE,(e=U.eD)==null?void 0:e.audio)}if(h.Da)var H=h.Da;h={xr:F,vD:U.vD,t3:S,uy:G,ly:f,videoPlaybackUstreamerConfig:H,Bw:l};U.Qy&&(h.Qy=U.Qy);if(J&&O){J=new Map;var z=g.D(p.Ca);for(f=z.next();!f.done;f=z.next())f=f.value,(F=p.TY[ZOq(p,f)]||"")?(J.has(F)||J.set(F,[]),J.get(F).push(f)):M&&M("ssap",{nocid4fmt:(f.itag||"")+"_"+(f.lmt||0)+"_"+(f.xtags||"")});p=new Map; z=g.D(U.N0);for(f=z.next();!f.done;f=z.next())f=f.value,F=f.startTimeMs||0,l=void 0,T=(l=O)==null?void 0:ZX(l,F),l=T.clipId,T=T.U9,l?(p.has(l)||(e=J.get(l)||[],p.set(l,{clipId:l,N0:[],d0:e})),T!==0&&(f.startTimeMs=F-T),p.get(l).N0.push(f)):M&&(l=void 0,M("ssap",{nocid4range:"1",fmt:((l=f.formatId)==null?void 0:l.itag)||"",st:F.toFixed(3),d:(f.durationMs||0).toFixed(3),timeline:sx(O)}));h.P6=[];p=g.D(p.entries());for(J=p.next();!J.done;J=p.next())J=g.D(J.value),J.next(),J=J.next().value,h.P6.push(J); if(U.N0.length&&!h.P6.length){M&&M("ssap",{nobfrange:"1",br:Pkw(U.N0),timeline:sx(O)});return}U.V9&&(h.V9=U.V9);U.oz&&(h.oz=U.oz)}else h.N0=U.N0,h.d0=p.Ca,J&&((z=U.N0)==null?void 0:z.length)>0&&!O&&M&&M("ssap",{bldmistlm:"1"});return h}; Ib7=function(U,O){return O?[g.hO(O.info,U)]:[]}; Pkw=function(U){var O="";U=g.D(U);for(var M=U.next();!M.done;M=U.next()){M=M.value;var S=void 0,p=void 0,h=void 0;O+="fmt."+(((S=M.formatId)==null?void 0:S.itag)||"")+"_"+(((p=M.formatId)==null?void 0:p.lmt)||0)+"_"+(((h=M.formatId)==null?void 0:h.xtags)||"")+";st."+(M.startTimeMs||0).toFixed(3)+";d."+(M.durationMs||0).toFixed(3)+";"}return O}; g8=function(U,O,M){var S=this;this.requestType=U;this.uM=O;this.sQ=M;this.V=null;this.BB={yTy:function(){var p;return(p=S.data)==null?void 0:p.isPrefetch}, F3:function(){var p;return(p=S.data)==null?void 0:p.F3}}}; Mle=function(U,O,M){O=Rf(U.uM,QK5(U,O,M),O);U.fI()&&O.set("probe","1");return O}; QK5=function(U,O,M){U.UU===void 0&&(U.UU=U.uM.UU(O,M));return U.UU}; Ck5=function(U){var O,M;return((O=U.U)==null?void 0:(M=O.xr)==null?void 0:M.A$)||0}; Xnw=function(U){var O,M;return!!((O=U.U)==null?0:(M=O.xr)==null?0:M.Rg)}; uBU=function(U){var O={},M=[],S=[];if(!U.data)return O;for(var p=0;p0;F--)M.push(f)}M.length!==J?O.error=!0:(h=M.slice(-h),M.length=p,FUi(O,M,h));break;case 1:FUi(O,TX,S3q);break;case 0:lIy(O, O.U&7);M=zX(O,16);p=zX(O,16);(M^p)!==65535&&(O.error=!0);O.output.set(O.data.subarray(O.V,O.V+M),O.B);O.V+=M;O.B+=M;break;default:O.error=!0}U.B>U.output.length&&(U.output=new Uint8Array(U.B*2),U.B=0,U.V=0,U.X=!1,U.U=0,U.register=0)}U.output.length!==U.B&&(U.output=U.output.subarray(0,U.B));return U.error?new Uint8Array(0):U.output}; FUi=function(U,O,M){O=yIW(O);M=yIW(M);for(var S=U.data,p=U.output,h=U.B,J=U.register,f=U.U,F=U.V;;){if(f<15){if(F>S.length){U.error=!0;break}J|=(S[F+1]<<8)+S[F]<>=7;l<0;)l=O[(J&1)-l],J>>=1;else J>>=l&15;f-=l&15;l>>=4;if(l<256)p[h++]=l;else if(U.register=J,U.U=f,U.V=F,l>256){J=eW[l];J+=zX(U,jW[l]);F=fI7(U,M);f=HH[F];f+=zX(U,pbJ[F]);if($35&&JM.length&&(U.error=!0);U.register|=(M[S+1]<<8)+M[S]<=0)return lIy(U,M&15),M>>4;for(lIy(U,7);M<0;)M=O[zX(U,1)-M];return M>>4}; zX=function(U,O){for(;U.U=U.data.length)return U.error=!0,0;U.register|=U.data[U.V++]<>=O;U.U-=O;return M}; lIy=function(U,O){U.U-=O;U.register>>=O}; yIW=function(U){for(var O=[],M=g.D(U),S=M.next();!S.done;S=M.next())S=S.value,O[S]||(O[S]=0),O[S]++;var p=O[0]=0;M=[];var h=0;S=0;for(var J=1;J7&&(h+=O[J]);for(p=1;p>F&1;f=h<<4|J;if(J<=7)for(F=1<<7-J;F--;)S[F<>=7;J--;){S[F]||(S[F]=-O,O+=2);var l=p&1;p>>=1;F=l-S[F]}S[F]=f}}return S}; TGe=function(U){var O,M,S,p,h,J,f;return g.A(function(F){switch(F.U){case 1:if(!("DecompressionStream"in window))return F.return(g.G2q(new g.hWy(U)));O=new DecompressionStream("gzip");M=O.writable.getWriter();M.write(U);M.close();S=O.readable.getReader();p=new xZ([]);case 2:return g.Y(F,S.read(),5);case 5:h=F.V;J=h.value;if(f=h.done){F.tZ(4);break}p.append(J);F.tZ(2);break;case 4:return F.return(p.c7())}})}; cH=function(U,O){this.U=U;this.Mm=O}; jCe=function(U){return dx(dx(zB(function(){return D1(U.Mm,function(O){return U.HK(U.U,O)})}),function(){return U.PK(U.U)}),function(){return U.LB(U.U)})}; eWw=function(U,O){return jCe(new cH(U,O))}; cIi=function(U){YP.call(this,"onesie");this.sj=U;this.U={};this.B=!0;this.X=null;this.queue=new MZq(this);this.G={};this.C=gGW(function(O,M){var S=this;return function h(){var J,f,F,l,G,T,e,H,z,W,v,x,t,m,P,u,w,E,Sm,JU;return lq7(h,function(Uw){switch(Uw.U){case 1:g.N1(Uw,2);S.sj.vl();J=function(Z){return function(k){throw{name:Z,message:k};}}; f=O.c7();g.dW(Uw,4,5);if(!M){Uw.tZ(7);break}return JUJ(Uw,dx(HJg(S.sj,f,S.iv),J("DecryptError")).wait(),8);case 8:F=Uw.V;case 7:if(!S.sj.enableCompression){Uw.tZ(9);break}return JUJ(Uw,dx(eWw((T=F)!=null?T:f,S.sj.J().RA),J("DecompressError")).wait(),10);case 10:l=Uw.V;case 9:G=oG((H=(e=l)!=null?e:F)!=null?H:f,p4U);case 5:g.xe(Uw,0,2);if(W=(z=S.sj.J())==null?void 0:z.Mm)((v=F)==null?void 0:v.buffer)===W.exports.memory.buffer&&W.free(F.byteOffset),((x=l)==null?void 0:x.buffer)===W.exports.memory.buffer&& W.free(l.byteOffset);g.Rw(Uw,6);break;case 4:throw m=t=g.Bg(Uw),new Ii("onesie.response.parse",{name:(E=m.name)!=null?E:"unknown",message:(Sm=m.message)!=null?Sm:"unknown",wasm:((P=S.sj.J())==null?0:P.Mm)?((u=S.sj.J())==null?0:(w=u.Mm)==null?0:w.c5)?"1js":"1":"0",enc:S.B,gz:S.sj.enableCompression,webcrypto:!!ti()});case 6:return zWq(G),JU=g.nN(G.body),Uw.return(JU);case 2:g.xe(Uw),g.Rw(Uw,0)}})}()})}; D3q=function(U){var O=U.queue;O.U.length&&O.U[0].isEncrypted&&!O.V&&(O.U.length=0);O=g.D(Object.keys(U.U));for(var M=O.next();!M.done;M=O.next()){M=M.value;var S=U.U[M];if(!S.tq){var p=U.queue;p.U.push({videoId:S.videoId,formatId:M,isEncrypted:!1});p.V||$V(p)}}}; WUg=function(U,O){var M=O.getLength(),S=!1;switch(U.X){case 0:U.sj.T("html5_future_onesie_ump_handler_on_player_response")?dx(D1(U.C(O,U.B),function(p){d3i(U.sj,p)}),function(p){U.sj.z5(p)}):U.vl(O,U.B).then(function(p){d3i(U.sj,p)},function(p){U.sj.z5(p)}); break;case 2:U.Xh("ormk");O=O.c7();U.queue.decrypt(O);break;default:S=!0}U.sj.xL&&U.sj.al("ombup","id.11;pt."+U.X+";len."+M+(S?";ignored.1":""));U.X=null}; zWq=function(U){if(U.yI!==1)throw new Ii("onesie.response.badproxystatus",{st:U.yI,webcrypto:!!ti(),textencoder:!!g.q1.TextEncoder});if(U.GL!==200)throw new Ii("onesie.response.badstatus",{st:U.GL});}; NGw=function(U){return new Promise(function(O){setTimeout(O,U)})}; vM4=function(U,O){var M=U.J();M=U.FI&&M.T("html5_onesie_preload_use_content_owner");var S=U.ZR,p=pL(O.gG.experiments,"debug_bandaid_hostname");if(p)O=F4(O,p);else if((M===void 0?0:M)&&(S==null?0:S.url)&&!O.V){var h=tc(new g.bJ(S.url));O=F4(O,h)}else O=(h=O.U.get(0))==null?void 0:h.location.clone();if(O&&U.videoId){h=$0(U.videoId);U=[];if(h)for(h=g.D(h),M=h.next();!M.done;M=h.next())U.push(M.value.toString(16).padStart(2,"0"));O.set("id",U.join(""));return O}}; BGJ=function(U,O,M){M=M===void 0?0:M;var S,p;return g.A(function(h){if(h.U==1)return S=[],S.push(O.load()),M>0&&S.push(NGw(M)),g.Y(h,Promise.race(S),2);p=vM4(U,O);return h.return(p)})}; x3y=function(U,O,M,S){S=S===void 0?!1:S;U.set("cpn",O.clientPlaybackNonce);U.set("opr","1");var p=O.J();U.set("por","1");ti()||U.set("onem","1");O.startSeconds>0&&U.set("osts",""+O.startSeconds);S||(p.T("html5_onesie_disable_partial_segments")&&U.set("oses","1"),O=p.T("html5_gapless_onesie_no_media_bytes")&&FX(O)&&O.FI,M&&!O?(O=M.audio,U.set("pvi",M.video.join(",")),p.T("html5_onesie_disable_audio_bytes")||U.set("pai",O.join(",")),Sf||U.set("osh","1")):(U.set("oad","0"),U.set("ovd","0"),U.set("oaad", "0"),U.set("oavd","0")))}; bJi=function(U,O,M,S,p){p=p===void 0?!1:p;var h="https://youtubei.googleapis.com/youtubei/"+O.v7.innertubeApiVersion+"/player",J=[{name:"Content-Type",value:"application/json"}];S&&J.push({name:"Authorization",value:"Bearer "+S});J.push({name:"User-Agent",value:g.YE()});g.wZ("EOM_VISITOR_DATA")?J.push({name:"X-Goog-EOM-Visitor-Id",value:g.wZ("EOM_VISITOR_DATA")}):(M=M.visitorData||g.wZ("VISITOR_DATA"))&&J.push({name:"X-Goog-Visitor-Id",value:M});(M=g.wZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&J.push({name:"X-YouTube-Lava-Device-Context", value:M});(O=pL(O.experiments,"debug_sherlog_username"))&&J.push({name:"X-Youtube-Sherlog-Username",value:O});U=X3(JSON.stringify(U));return{url:h,zd:J,postBody:U,bWA:p,pL:p}}; tZJ=function(U,O,M,S,p,h){var J=g.SL(U,S7i,U.pL?void 0:M.Mm),f={encryptedClientKey:O.U.encryptedClientKey,Uo:!0,wp:!0,kO:RWW(M,!!U.pL),IX:M.experiments.F0("html5_use_jsonformatter_to_parse_player_response")};if(U.pL)f.sLY=J;else{U=O.encrypt(J);var F;if(((F=M.Mm)==null?void 0:F.exports.memory.buffer)===J.buffer&&U.byteOffset!==J.byteOffset){var l;(l=M.Mm)==null||l.free(J.byteOffset)}var G;U=((G=M.Mm)==null?void 0:G.gJ(U))||U;J=f.oR=U;(0,g.nM)();J=KK7(new Zve(O.U.B),J,O.iv);f.SF=J;f.iv=O.iv}O=S.getVideoData(); M=xP({X0:M,wG:S,Ax:O.startSeconds*1E3});p={oH:f,xr:M,onesieUstreamerConfig:p,Y_:h,Bw:bf(O)};O.reloadPlaybackParams&&(p.reloadPlaybackParams=O.reloadPlaybackParams);return p}; Y3w=function(U,O,M){var S,p,h;return g.A(function(J){if(J.U==1)return S=g.SL(O,S7i),g.Y(J,Lqw(M,S),2);if(J.U!=3)return p=J.V,g.Y(J,VfU(M,p),3);h=J.V;return J.return({oR:p,encryptedClientKey:M.U.encryptedClientKey,iv:M.iv,SF:h,Uo:!0,wp:!0,kO:RWW(U,!!O.pL),IX:U.experiments.F0("html5_use_jsonformatter_to_parse_player_response")})})}; m3w=function(U,O,M,S,p,h){var J,f,F,l;return g.A(function(G){if(G.U==1)return g.Y(G,Y3w(M,U,O),2);J=G.V;f=S.getVideoData();F=xP({X0:M,wG:S,Ax:f.startSeconds*1E3});l={oH:J,xr:F,onesieUstreamerConfig:p,Y_:h,Bw:bf(f)};f.reloadPlaybackParams&&(l.reloadPlaybackParams=f.reloadPlaybackParams);return G.return(l)})}; RWW=function(U,O){U=bk(U.schedule,!0);O=O||!!ti()&&U>1572864;return"DecompressionStream"in window||!O}; d8=function(U,O){g.C.call(this);var M=this;this.wG=U;this.playerRequest=O;this.logger=new g.Gs("onesie");this.xhr=null;this.state=1;this.O7=new M6;this.fB=!1;this.playerResponse="";this.u2=new Jh(this);this.Vy=new cIi(this);this.ra="";this.FW=this.Ym=!1;this.zX="";this.enableCompression=this.jf=this.sO=!1;this.iy=[];this.l_=this.G5=-1;this.gG=this.wG.J();this.videoData=this.wG.getVideoData();this.xL=this.gG.PV();this.tC=this.gG.tU;this.vG=new ye(this.tC.U,this.gG.RA,qRW(this.gG));this.pS=this.gG.T("html5_onesie_check_timeout"); this.EL=new g.UM(this.Z8,500,this);this.mf=new g.UM(this.jd,1E4,this);this.lQ=new g.UM(function(){if(!M.isComplete()){var S=DG(M);M.z5(new Ii("net.timeout",S))}},1E3); this.wA=new g.UM(this.INd,2E3,this);this.pM=this.wG.Rj();this.Xs=this.T("html5_onesie_wait_for_media_availability");g.X(this.videoData,this);g.X(this,this.EL);g.X(this,this.mf);g.X(this,this.wA);g.X(this,this.vG);U=JG();Sf&&U&&(this.Qo=new Map);this.OZ=new Map;this.rr=new Map;this.eK=new Map;this.E2=new Map}; GX=function(U,O){var M;return(M=U.Qo)==null?void 0:M.get(O)}; IIy=function(U,O,M){var S;return g.A(function(p){if(p.U==1)return U.Xh("oprd_s"),AIJ(U)?g.Y(p,o0U(U.vG,O,M),3):(S=U.vG.decrypt(O,M),p.tZ(2));p.U!=2&&(S=p.V);U.Xh("oprd_c");return p.return(S)})}; HJg=function(U,O,M){U.Xh("oprd_s");O=E0e(U.vG).encrypt(O,M);D1(O,function(){U.Xh("oprd_c")}); return O}; PT5=function(U){return U.T("html5_onesie_host_probing")||U.xL?Sf:!1}; d3i=function(U,O){U.Xh("oprr");U.playerResponse=O;U.jf||(U.Xs=!1);WH(U)}; WH=function(U){if(!U.playerResponse)return!1;if(U.sO)return!0;var O=U.videoData.T("html5_onesie_audio_only_playback")&&lI(U.videoData);if(U.Qo&&U.Xs){if(!U.Qo.has(U.ra))return!1;var M=U.Qo.get(U.ra),S;if(S=M){S=!1;for(var p=g.D(M.hs.keys()),h=p.next();!h.done;h=p.next())if(h=M.hs.get(h.value))for(var J=g.D(h.Vb),f=J.next();!f.done;f=J.next())f.value.yF>0&&(h.xS?S=!0:O=!0);S=!(O&&S)}if(S)return!1}U.Xh("ofr");U.O7.resolve(U.playerResponse);if(!U.pS){var F;(F=U.lQ)==null||F.start();U.mf.start()}return U.sO= !0}; QC1=function(U){if(U.Qo&&!U.T("html5_onesie_media_capabilities")){U.Xh("ogsf_s");var O=Iw5(U.wG.getVideoData(),function(S,p){U.al(S,p)}),M=nMw(U.wG); O.video=vc4(M,O.video);U.Xh("ogsf_c");if(O.video.length)return O;U.al("ombspf","l."+M.V+";u."+M.U+";o."+M.B+";r."+M.reason)}}; AIJ=function(U,O){return U.T("html5_onesie_sync_request_encryption")||(O==null?0:O.pL)||g.SZ(U.gG)&&U.T("html5_embed_onesie_use_sync_encryption")?!1:!!ti()}; DG=function(U){if(!U.BT)return{};var O=U.BT.Wo(),M;O.d=(M=U.BT.QP)==null?void 0:M.g3();O.shost=U.AO;O.ty="o";return O}; CTw=function(U,O){var M,S;(S=(U=(M=U.Qo)==null?void 0:M.get(O))==null)||(O=U.B?!1:U.B=!0,S=!O);return!S}; Xbe=function(U,O,M,S,p,h,J,f,F,l,G){g.C.call(this);var T=this;this.wG=U;this.rG=O;this.policy=M;this.audioTrack=S;this.videoTrack=p;this.DQ=h;this.Kr=J;this.Yy=f;this.B=F;this.timing=l;this.Z=G;this.U=[];this.D={};this.HA=this.hZ=!1;this.R2=new Set;this.G=this.TY=this.yP=this.s7=0;this.X=null;this.BA={N0:[],vD:[]};this.sA={N0:[],vD:[]};this.C=null;this.Ka=[];this.BB={TgZ:function(){return T.U}, Zgn:function(){return T.D}, woG:function(){T.U.length=0}, Msl:function(){return T.R2}, Vsl:function(){return T.yP}, gKa:function(e){T.yP=e}, oKL:function(e){T.G=e}, lX:function(e){T.C=e}}; this.videoData=this.wG.getVideoData();this.policy.Sx&&(this.Ca=new LW(this.rG,this.policy,this.Kr),g.X(this,this.Ca))}; iJw=function(U,O){O=O===void 0?!1:O;if(uy1(U)){U.policy.D&&U.rG.al("sabrcrq",{create:1});var M=new g8(0,U.DQ.Y,U);U.policy.WN>0&&U.G++;O=q3g(U,M,O);U.U.push(O);var S;(S=U.Ca)==null||hM1(S,U.DQ.Y)}}; aIg=function(U,O){var M=ZJ1(U);if(U.policy.ma){var S=U.BA;var p=U.sA}else S=NS(U,U.audioTrack),p=NS(U,U.videoTrack);var h=[].concat(g.N(S.N0),g.N(p.N0));U.policy.r7&&U.C&&h.push.apply(h,g.N(U.Ka));var J=[].concat(g.N(S.vD),g.N(p.vD)),f=U.rG.M$(),F,l,G=U.wG,T=U.DQ,e=U.V,H=U.R2,z=U.policy,W=U.rG.er,v=Tv5(U.rG)*1E3,x=(F=U.QP)==null?void 0:F.H$;F=(l=U.QP)==null?void 0:l.p$;var t;l=Number((t=U.B.X)==null?void 0:t.info.itag)||0;var m;t=Number((m=U.B.G)==null?void 0:m.info.itag)||0;O={wG:G,DQ:T,N0:h,vD:J, Ax:M,nextRequestPolicy:e,R2:H,wH:z,er:W,vu:v,H$:x,p$:F,s7:U.s7,isPrefetch:O||U.rG.isSuspended,V9:l,oz:t,sx:f,tW:U.wG.yA()};M=U.rG.Ui();h=$0(M);M&&(O.F3=h);if(M=U.wG.Ve())O.Rg=M*1E3;var P;M=U.B;h=M.yP;if((M.wH.V&&M.wH.Fr||((P=M.wH)==null?0:P.U&&P.Op))&&!h)for(P=g.D(M.B),J=P.next();!J.done;J=P.next())if(J.value.ZN){h=!0;break}P=Ev(M.wH)&&!h?[]:v0q(M,M.B);O.t3=P;P=U.B;Ev(P.wH)&&!P.ol?P=[]:(M=AGe(P),M.length===0&&(M=P.D),P=v0q(P,M));O.uy=P;O.ly=U.policy.r7&&U.C?[U.C]:void 0;U.policy.CZ&&(O.rj=KUw(U.rG, U.audioTrack),O.U4=KUw(U.rG,U.videoTrack));if(U.policy.G){S=rIq(U,S.N0,p.N0);var u;if(p=(u=U.X)==null?void 0:u.Gd(S))O.Qy=p}U.policy.Ka&&U.U.length>0&&U.U[0].c9()&&(O.cic=U.U[0].K_());return O}; ZJ1=function(U){var O,M=U.policy.C&&((O=U.rG)==null?void 0:O.HL());O=U.rG.getCurrentTime()||0;O=EMJ(U,O);var S=U.rG.je()||0;O+=S;S=PB(U.videoData)||g.I6(U.videoData);var p=0;M?(S&&(p=Number.MAX_SAFE_INTEGER),U.videoData.Ca&&(p=Math.ceil(U.videoData.Ka*1E3))):p=Math.ceil(O*1E3);return Math.min(Number.MAX_SAFE_INTEGER,p)}; EMJ=function(U,O){if(U.rG.isSeeking())return O;var M=U.wG.tR();if(!M)return O;M=M.wL();if(M.length===0||jh(M,O))return O;if(!Lf5(U.videoTrack,O)&&!Lf5(U.audioTrack,O))return U.rG.al("sundrn",{b:0,lt:O}),O;for(var S=O,p=Infinity,h=0;hO)){var J=O-M.end(h);J=20)?(U.rG.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),O):S}; rIq=function(U,O,M){var S=U.rG.getCurrentTime()||0;O=LUW(U,O,S);U=LUW(U,M,S);return Math.min(O,U)}; LUW=function(U,O,M){U=U.rG.je()||0;O=g.D(O);for(var S=O.next();!S.done;S=O.next()){var p=S.value;S=p.startTimeMs?p.startTimeMs/1E3-U:0;p=S+(p.durationMs?p.durationMs/1E3:0);if(S<=M&&M<=p)return p}return M}; uy1=function(U){if(U.policy.WN>0){var O=Math.floor((0,g.nM)()/1E4);if(O===U.TY){if(U.G>=U.policy.WN){if(U.G===U.policy.WN){var M={reason:"toomanyrequests"};M.limit=U.G;U.rG.handleError("player.exception",M);U.G+=1}return!1}}else U.TY=O,U.G=0}if(U.rG.isSuspended&&U.rG.GV)return!1;if(U.ol&&(0,g.nM)()0&&(!U.policy.Ka||U.U.length!==1||!U.U[0].c9()))return!1;var S;if((S=U.DQ.Y)==null||!YB(S,U.policy,U.D,U.rG.B2()))return!1;O=U.policy.us&&U.policy.V&&U.rG.ZD(); if(ql(U.audioTrack)&&ql(U.videoTrack)&&!O)return!1;if(U.policy.V&&U.Y&&!U.rG.ZD())return U.ya("ssap",{pauseontlm:1}),!1;if(vH(U,U.audioTrack)&&vH(U,U.videoTrack))return U.policy.B&&U.rG.al("sabrHeap",{a:""+Pk(U.audioTrack),v:""+Pk(U.videoTrack)}),!1;if(O=U.policy.G){O=!1;if(U.Z.V===2)O=!0;else if(U.Z.V===3){ZJ1(U);U.rG.je();S=rIq(U,IEJ(U.audioTrack,U.rG.isSeeking()).N0,IEJ(U.videoTrack,U.rG.isSeeking()).N0);var p=U.Z;S>=p.G?(p.al("sdai",{haltrq:S,est:p.G}),S=!0):S=!1;S&&(O=!0)}O&&U.policy.D&&U.rG.al("sabrcrq", {waitad:1})}if(O)return!1;U.policy.ma&&(U.BA=NS(U,U.audioTrack),U.sA=NS(U,U.videoTrack));if(!U.V)return U.policy.D&&U.rG.al("sabrcrq",{nopolicy:1}),!0;if(U.wG.Ve())return U.policy.D&&U.rG.al("sabrcrq",{utc:1}),!0;if(U.B.Y)return U.policy.D&&U.rG.al("sabrcrq",{audio:1}),!0;if(!U.V.targetAudioReadaheadMs||!U.V.targetVideoReadaheadMs)return U.policy.D&&U.rG.al("sabrcrq",{noreadahead:1}),!0;if(U.policy.C&&U.rG.HL())return U.policy.D&&U.rG.al("sabrcrq",{seekToHead:1}),!0;O=Math.min(Vk(U.rG,U.audioTrack)* 1E3,U.V.targetAudioReadaheadMs);S=Math.min(Vk(U.rG,U.videoTrack)*1E3,U.V.targetVideoReadaheadMs);var h=Math.min(O,S);p=Qy(U.audioTrack,!0)*1E3;var J=Qy(U.videoTrack,!0)*1E3;if(U.policy.ma){var f=U.wG.getCurrentTime()*1E3;var F=VZU(U.BA.N0,f);f=VZU(U.sA.N0,f)}else F=p,f=J;var l=FO||S>=0&&p.Qc>S+1)break;M=Math.max(M,p.startTimeMs+p.durationMs);S=Math.max(S,p.gL)}return Math.max(0,M-O)}; q3g=function(U,O,M){var S={Kr:U.Kr,nF:function(F,l){U.wG.pz(F,l)}, RV:U.policy.J6,D4:U.policy.B};U.Kr.V.C&&(S.rC=(U.videoTrack.U.info.a_||0)+(U.audioTrack.U.info.a_||0));U.policy.b6&&(S.TJ=U.audioTrack.U.index.nH(),S.RV=!1);var p=QK5(O,U.policy,U.D)?2:1;p!==U.yP&&(U.yP=p,wb4(U));M=aIg(U,M);if((U.policy.V||U.policy.Ka)&&U.policy.B&&M.R2){for(var h=p="",J=g.D(M.R2),f=J.next();!f.done;f=J.next())f=f.value,U.videoData.sabrContextUpdates.has(f)?p+="_"+f:h+="_"+f;U.rG.al("sabrbldrqs",{ctxts:p,misctxts:h})}O.setData(M,U.rG.ZD(),U.policy,U.D)||!U.policy.V&&!U.policy.Ka|| U.rG.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);S=new uf(U.policy,O,U.DQ,U.D,U,S,U.rG.Rj(),U.policy.RA?U.rG.ZD():void 0);q4(U.timing);U.policy.D&&U.rG.al("sabrcrq",{rn:S.Fe(),probe:O.fI()});return S}; r8=function(U,O){if(O.GY()||U.GY())U.policy.Q$||(U.policy.C?xV(U.rG):U.rG.Ce());else{if(U.policy.B&&O.isComplete()&&O instanceof uf){var M=U.rG,S=M.al,p,h,J=Object.assign(O.BT.Wo(),{rst:O.state,strm:O.xhr.Dw(),d:(p=O.BT.QP)==null?void 0:p.g3(),cncl:O.xhr&&O.TZ.X?1:0,rqb:O.Rm,cwt:O.S1,swt:(h=O.sE)==null?void 0:h.AS});p=Object.assign(uBU(O.info),J);S.call(M,"rqs",p)}if(O.isComplete()&&O.fI()&&O instanceof uf)U.policy.F9?O.xl()?(O.dispose(),U.U.length===0?U.rG.Ce():(U=U.U[0],U instanceof uf&&U.Vu()&& U.He())):O.xT()&&U.rG.handleError(O.eH(),O.bO()):(O.dispose(),U.rG.Ce());else{if(O.zL())O instanceof uf&&jfw(U.timing,O),wb4(U),UPg(U);else if(O.xT())M=U.wG.Ve(),O instanceof uf&&Xnw(O.info)&&M&&U.rG.H2(M),O instanceof d8?U.U.pop():(M=1,O.canRetry()&&DnJ(U.rG)&&(Oe1(U,O),M=0),U.rG.handleError(O.eH(),O.bO(),M));else{if(U.rG.isSuspended&&!O.isComplete())return;UPg(U)}O.GY()||O instanceof d8||(O.isComplete()?M=fbw(O,U.policy,U.D):(M=yGw(O,U.policy,U.D),M===1&&(U.hZ=!0)),M!==0&&(S=new g8(1,O.info.uM), S.UU=M===2,q3g(U,S)));U.policy.WV&&!O.isComplete()?cGJ(U.rG):U.rG.Ce()}}}; UPg=function(U){for(;U.U.length&&U.U[0].E1(U.OF());){var O=U.U.shift();s6e(U,O);if(U.policy.G){var M=U;if(!M.policy.NL&&O.E1(M.OF())){var S=O.Fe();if(M.Rl!==S){var p=O.z9();O=p.G5;var h=p.l_;p=p.isDecorated;!M.X||h<0||(M.Rl=S,S=VO(M.Z,h/1E3,O),h=M.rG.je()||0,aN(M.Z,O,S-h,p,M.X))}}}}U.U.length&&s6e(U,U.U[0])}; s6e=function(U,O){var M=new Set(O.wk(U.OF()));M=g.D(M);for(var S=M.next();!S.done;S=M.next()){var p=S.value;if(!(S=!(O instanceof d8))){S=U.B;var h=S.DQ.KE,J=Ox(S.videoInfos,h);h=mne(S,p,h);var f=J.includes(p);!S.wH.qc||h||f||S.rG.al("sabrcpf",{fid:""+p,vfids:""+J.join("."),said:S.C||""});S=h||J.includes(p)}if(S&&(S=O.Gz(p,U.OF()),J=U.policy.r7&&fO(S[0].U.info.mimeType),(!(!J&&U.policy.sP&&S.length>0&&(S[0].U.info.xS()?Qy(U.audioTrack):Qy(U.videoTrack))>3)||O.isComplete())&&O.Xc(p,U.OF()))){p=O.s9(p, U.OF());if(U.policy.V&&(h=S[0].U.info,(f=U.rG.ZD())&&h)){var F=O.KV();f.api.T("html5_ssap_set_format_info_on_video_data")&&F===uj(f)&&(h.xS()?f.playback.getVideoData().X=h:f.playback.getVideoData().V=h);if(f=aW(f.timeline,F))if(f=f[0].getVideoData())h.xS()?f.X=h:f.V=h}p=g.D(p);for(h=p.next();!h.done;h=p.next())if(h=h.value,U.policy.B&&O instanceof d8&&U.rG.al("omblss",{s:h.info.Qr()}),J)f=U,f.videoData.KE()&&f.C&&mc(f.C)===mc(g.hO(h.info.U.info,f.DQ.KE))&&f.wG.publish("sabrCaptionsDataLoaded",h,f.By.bind(f)); else{f=h.info.U.info.xS();var l=h.info.U;if(f){F=void 0;var G=U.B,T=(F=O.dh(U.OF()))==null?void 0:F.token;G.Y&&l!==G.G?F=!0:(G.Y=!1,l!==G.G&&(G.G=l,G.yd(l,G.audioTrack,T)),F=!1);if(F)continue}else F=void 0,Nvq(U.B,l,(F=O.dh(U.OF()))==null?void 0:F.token);F=f?U.audioTrack:U.videoTrack;O instanceof d8&&(F.Y=!1,O instanceof d8&&(f?yCe(U.timing):JCe(U.timing)));try{txi(F,S,h)}catch(e){h=nP(e),U.rG.handleError(h.errorCode,h.details,h.severity),F.m0(),U.pX(!1,"pushSlice"),xV(U.rG)}}}}}; Oe1=function(U,O){U.policy.Ka?U.U.splice(U.U.indexOf(O)).forEach(function(M){M.dispose()}):(U.U.pop(),O==null||O.dispose())}; guw=function(U,O,M){for(var S=[],p=0;p0)for(var O=g.D(U.videoData.sabrContextUpdates.keys()),M=O.next();!M.done;M=O.next()){M=M.value;var S=void 0;((S=U.videoData.sabrContextUpdates.get(M))==null?0:S.sendByDefault)&&U.R2.add(M)}if(U.policy.Ka&&U.U.length)for(O=g.D(U.U),M=O.next();!M.done;M=O.next())(M=M.value.K_())&&M.type&&M.sendByDefault&&U.R2.add(M.type)}; pB5=function(U){U.policy.Oj&&(U.QP=void 0,U.s7=0)}; hB4=function(U,O){if(O.xT()||O.GY()){var M=U.rG,S=M.al,p=O.state;U=U.OF();var h,J;if((O=(h=O.Qo)==null?void 0:h.get(U))==null)O=void 0;else{h=0;U=O.wk();for(var f=0;f=U.policy.sK,J=!1;if(h){var f=0;!isNaN(O)&&O>U.G&&(f=O-U.G,U.G=O);f/p=U.policy.Dy&&!U.B;if(!h&&!M&&GSw(U,O))return NaN;M&&(U.B=!0);a:{S=J;M=(0,g.nM)()/1E3-(U.v_.aA()||0)-U.D.U-U.policy.cB;h=U.V.startTime;M=h+M;if(S){if(isNaN(O)){Ex(U,NaN,"n",O);h=NaN;break a}S=O-U.policy.TR;S=h.X&&S<=h.C){S=!0;break a}S=!1}S=!S}if(S)return U.al("ostmf",{ct:U.getCurrentTime(),a:O.U.info.xS()}),!1;(U=U.ol)!=null&&(U.hs.get(M).eR=!0);return!0}; cKJ=function(U){if(!U.DQ.KE)return!0;var O=U.wG.getVideoData();if(U.wG.nN())return U.al("ombpa",{}),!1;var M,S;if(U.policy.Ic&&!!((M=U.yP)==null?0:(S=M.GI)==null?0:S.BDP)!==U.DQ.Dh)return U.al("ombplmm",{}),!1;M=O.HV||O.liveUtcStartSeconds||O.u$;if(U.DQ.Dh&&M)return U.al("ombplst",{}),!1;if(U.DQ.Z)return U.al("ombab",{}),!1;M=Date.now();return AX(U.DQ)&&!isNaN(U.BA)&&M-U.BA>U.policy.ul*1E3?(U.al("ombttl",{}),!1):U.DQ.QM&&U.DQ.X||!U.policy.Ad&&U.DQ.isPremiere||!(dd(O)===0||U.policy.U&&O.T("html5_enable_onesie_media_for_sabr_proxima_optin"))|| O.T("html5_disable_onesie_media_for_mosaic")&&o6(O)||O.T("html5_disable_onesie_media_for_ssdai")&&O.isDaiEnabled()&&O.enableServerStitchedDai||O.T("html5_disable_onesie_media_for_lifa_eligible")&&V7(O)?!1:!0}; DPq=function(U,O){var M=O.U,S=U.DQ.KE;if(cKJ(U))if(U.ol&&U.ol.hs.has(mc(g.hO(M.info,S)))){if(S=mc(g.hO(M.info,S)),zB7(U,O)){var p=new r2(U.ol.Gz(S)),h=function(J){try{if(J.xT())U.handleError(J.eH(),J.bO()),XP(O,J),Ei(J.info)&&o7(U.G,O,M,!0),U.Ce();else if(HLw(U.G,J)){var f;(f=U.B)==null||cC4(f,J.info,U.Y);U.Ce()}}catch(F){J=nP(F),U.handleError(J.errorCode,J.details,J.severity),U.m0()}}; M.B=!0;af(p)&&(RGm(O,new rg(U.policy,S,p,U.ol,h)),q4(U.timing))}}else U.al("ombfmt",{})}; dP5=function(U,O){O=O||U.videoTrack&&U.videoTrack.V&&U.videoTrack.V.startTime||U.getCurrentTime();var M=kw,S=U.videoTrack,p=U.U;O=p.nextVideo&&p.nextVideo.index.Eg(O)||0;p.sA!==O&&(p.Ca={},p.sA=O,hs(p,p.U));O=!p.U.isLocked()&&p.Z>-1&&(0,g.nM)()-p.ZO.U&&O.reason==="b";S||p||M?(U.wG.DK({reattachOnConstraint:S?"u":p?"drm":"perf",lo:O.V,up:O.U}),U.policy.o2||(U.X.U.V=!1)):(U.policy.o2&&(U.X.U.V=!1),xV(U))}}else if(!Yii(U.U,O)&&U.videoTrack){U.logger.debug(function(){return"Setting constraint: r="+O.reason+" u="+O.U}); M=U.U.U;tog(U,ACm(U.U,O));dP5(U);S=O.isLocked()&&O.reason==="m"&&U.U.ol;p=U.policy.mW&&O.reason==="l"&&ij(U.videoTrack);M=M.U>O.U&&O.reason==="b";var h=U.U.Yy&&!Ne();S||p||M||h?U.wG.DK({reattachOnConstraint:S?"u":p?"drm":h?"codec":"perf"}):xV(U)}}; mPe=function(U,O,M){if((!U.La||xf(U.La)&&!U.policy.aE)&&!U.zJ.isSeeking()&&(U.policy.U||ij(O)&&O.U.Sv()&&U.U.yP)){var S=U.getCurrentTime()+Rb5(U.Z,O,M);U.logger.debug(function(){return"Clearing back to "+S.toFixed(3)}); X34(O,S)}}; tog=function(U,O){O&&(U.logger.debug(function(){return"Logging new format: "+lE(O.video.info)}),AKW(U.wG,new wV(O.video,O.reason))); if(U.U.hZ){var M=Qfq(U.U,"a");U.wG.uS(new wV(M.audio,M.reason))}}; xV=function(U){g.OM(U.Qa)}; cGJ=function(U){U.policy.WV&&U.policy.DS&&Math.min(CSi(U.videoTrack),CSi(U.audioTrack))*1E3>U.policy.bl?g.OM(U.r7):U.Ce()}; Ipw=function(U,O){var M=(0,g.nM)()-O,S=Qy(U.audioTrack,!0)*1E3,p=Qy(U.videoTrack,!0)*1E3;U.logger.debug(function(){return"Appends paused for "+M}); if(U.policy.B&&(U.al("apdpe",{dur:M.toFixed(),abuf:S.toFixed(),vbuf:p.toFixed()}),a7(U.policy))){var h=Xa(U.Z);U.al("sdps",{ct:O,ah:S.toFixed(),vh:p.toFixed(),mr:uz(U.Z,U.bI,h),bw:h.toFixed(),js:U.isSeeking(),re:+U.bI,ps:(U.policy.q6||"").toString(),rn:(U.policy.T$||"").toString()})}}; PIw=function(U){if(U.policy.V&&KW(U.videoTrack)&&KW(U.audioTrack))return"ssap";if(aEw(U.videoTrack))return U.logger.debug("Pausing appends for server-selectable format"),"ssf";if(U.policy.Yy&&ob5(U.videoTrack)&&ob5(U.audioTrack))return"updateEnd";if(ql(U.audioTrack)||ql(U.videoTrack)&&U.videoTrack.U.info.zY!=="f")return"";if(U.zJ.isSeeking()){var O=U.Z;var M=U.videoTrack;var S=U.audioTrack;if(O.policy.U){var p=O.policy.XK;a7(O.policy)&&(p=uz(O,!1,Xa(O)));O=p;M=Qy(S,!0)>=O&&Qy(M,!0)>=O}else M.B.length|| S.B.length?(p=M.U.info.a_+S.U.info.a_,p=10*(1-Xa(O)/p),O=Math.max(p,O.policy.XK),M=Qy(S,!0)>=O&&Qy(M,!0)>=O):M=!0;if(!M)return"abr";M=U.videoTrack;if(M.B.length>0&&M.X.V.length===1&&yXJ(M.X).info.Y360);S=a7(U.policy)&&U.policy.q9;if(!U.bI||!S&&M)return"";M=U.policy.tU;a7(U.policy)&&(M=uz(U.Z,U.bI,Xa(U.Z)));M=iuy(U.videoTrack, U.getCurrentTime(),M)||iuy(U.audioTrack,U.getCurrentTime(),M);return a7(U.policy)?M?"mbnm":"":(U.videoTrack.B.length>0||U.audioTrack.B.length>0||FqJ(U.G,U.videoTrack,U.audioTrack)||FqJ(U.G,U.audioTrack,U.videoTrack))&&M?"nord":""}; nuq=function(U){if(U.D){var O=U.D.Ce(U.audioTrack,H1(U.La.V.Nm()));O&&U.wG.seekTo(O,{fG:!0,uH:"pollSubsegmentReadahead",L0:!0})}}; Zew=function(U,O,M){if(U.policy.Yy&&ob5(O))return!1;if(M.BS())return!0;if(!M.Xf())return!1;var S=O9(O);if(!S||S.info.type===6)return!1;var p;if(U.policy.d1||((p=U.B)==null?0:WcW(p,O,S.info.Sc)))U.Ca=0;else return U.zJ.isSeeking()&&xV(U),U.Ca=U.Ca||(0,g.nM)(),!1;if(!Lg(U,O,M,S.info))return!1;if(U.DQ.V&&S.info.V===0){if(p=Q64(O,M,S)){var h=As(O);U.al("initchg",{it:S.info.U.info.id,sr:!!h&&h.U===S.info.U,ty:S.info.type,seg:S.info.Sc})}h=g.Sh(S.info.U.info);U.policy.gK&&h&&!p&&xeW(S)}h=U.D&&!!U.D.X&& O.U.info.audio;p=U.DQ.isManifestless||S.G;if(!(U.DQ.V&&S.info.V!==0||p&&!h)&&CIg(U,O,M,S))return!0;if(h)return!1;h=Vk(U,O);h=U.getCurrentTime()+h;if(S.info.X>h)return U.policy.U&&XBw(U,O),U.policy.Kq&&i6e(O.X,h,!1),!1;uXy(U,O);var J;U.policy.DD&&M===((J=U.La)==null?void 0:J.U)&&U.Rl&&(M.K7()===0?(U.Rl=!1,U.policy.DD=!1):U.NL=M.K7());if(!qsm(U,M,S,O))return!1;U.policy.Yy&&S.info.Lm()?(U.wG.J().PV()&&U.al("eosl",{ls:S.info.Qr()}),S.isLocked=!0):(O.Xj(S),nBw(U.U,S.info),U.logger.debug(function(){return"Appended "+ S.info.Qr()+", buffered: "+$f(M.Nm())})); p&&ie1(U,S.info.U.Ko);return!0}; XBw=function(U,O){O===U.videoTrack?U.Ka=U.Ka||(0,g.nM)():U.QP=U.QP||(0,g.nM)()}; uXy=function(U,O){O===U.videoTrack?U.Ka=0:U.QP=0}; qsm=function(U,O,M,S){var p=U.policy.HV?(0,g.nM)():0,h=M.G&&M.info.U.U||void 0,J=M.U;M.G&&(J=Kry(U,M,J)||J);var f=J.c7();J=U.policy.HV?(0,g.nM)():0;O=rKW(U,O,f,M.info,h);(S=S.Z)!=null&&(h=M.info,p=J-p,J=(0,g.nM)()-J,!S.V||oFg(S.V,h)&&S.V.Sc===h.Sc||S.flush(),S.X+=p,S.B+=J,p=1,!S.V&&h.V&&(p=2),GG(S,p,O),J=Math.ceil(h.V/1024),p===2&&S.U.add(J),S.U.add(Math.ceil((h.V+h.B)/1024)-J),S.V=h);U.sA=0;if(O===0)return U.TY&&(U.logger.debug("Retry succeed, back to normal append logic."),U.TY=!1,U.w7=!1),U.pE= 0,!0;if(O===2||O===5)return ap5(U,"checked",O,M.info),!1;if(O===1){if(!U.TY)return U.logger.debug("QuotaExceeded, retrying."),U.TY=!0,!1;if(!U.w7)return U.w7=!0,U.wG.seekTo(U.getCurrentTime(),{uH:"quotaExceeded",L0:!0}),!1;M.info.i$()?(p=U.policy,p.HA=Math.floor(p.HA*.8),p.BA=Math.floor(p.BA*.8)):(p=U.policy,p.w7=Math.floor(p.w7*.8),p.BA=Math.floor(p.BA*.8));U.policy.U?Ov(U.X.U,M.info.U,!1):yy(U.U,M.info.U)}U.wG.DK({reattachOnAppend:O});return!1}; Kry=function(U,O,M){var S;if(S=U.policy.UK&&U.La&&!U.La.Y&&!U.wG.qf())O=O.info.U.info,S=O.XL()&&w9(O)&&O.video&&O.video.width<3840&&O.video.width>O.video.height;if(S&&(U.La.Y=!0,uA('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return M=hGw(M),U.policy.B&&U.al("sp4k",{s:!!M}),M}; ap5=function(U,O,M,S){var p="fmt.unplayable",h=1;M===5||M===3?(p="fmt.unparseable",U.policy.U?!S.U.info.video||gC(U.X.U).size>0||Ov(U.X.U,S.U,!1):!S.U.info.video||gC(U.U.G).size>0||yy(U.U,S.U)):M===2&&(U.pE<15?(U.pE++,p="html5.invalidstate",h=0):p="fmt.unplayable");S=ZS(S);var J;S.mrs=(J=U.La)==null?void 0:sf(J);S.origin=O;S.reason=M;U.handleError(p,S,h)}; vbU=function(U,O,M,S,p){var h=U.DQ;var J=U.policy.U,f=!1,F=-1,l;for(l in h.U){var G=fO(h.U[l].info.mimeType)||h.U[l].info.i$();if(S===G)if(G=h.U[l].index,G.gP(O.Sc)){f=G;var T=O,e=f.ZO(T.Sc);e&&e.startTime!==T.startTime?(f.segments=[],f.c8(T),f=!0):f=!1;f?F=O.Sc:!O.pending&&J&&(T=G.getDuration(O.Sc),T!==O.duration&&(h.publish("clienttemp","mfldurUpdate",{itag:h.U[l].info.itag,seg:O.Sc,od:T,nd:O.duration},!1),G.c8(O),f=!0))}else G.c8(O),f=!0}F>=0&&(J={},h.publish("clienttemp","resetMflIndex",(J[S? "v":"a"]=F,J),!1));h=f;a1m(U.zJ,O,S,h);U.B.Vd(O,M,S,p);if(U.policy.q_&&M){var H;(H=U.WV)!=null&&H.B.set(O.Sc,M)}O.Sc===U.DQ.QM&&h&&bS(U.DQ)&&O.startTime>bS(U.DQ)&&(U.DQ.Ka=O.startTime+(isNaN(U.timestampOffset)?0:U.timestampOffset),U.zJ.isSeeking()&&U.zJ.U 5)return U.sA=0,U.wG.DK({initSegStuck:1,as:S.info.Qr()}),!0}else U.sA=0,U.hG=S;U.policy.un&&(M.abort(),(J=O.Z)!=null&&(GG(J,4),J.flush()));p=rKW(U,M,h,F,p);var l;(l=O.Z)==null||rC4(l,p,F);if(p!==0)return Eu7(U,p,S),!0;S.info.i$()?lSU(U.timing):Gee(U.timing);U.logger.debug(function(){return"Appended init for "+S.info.U.info.id}); ie1(U,S.info.U.Ko);return M.W7()}; Q64=function(U,O,M){if(O.aJ()==null){U=As(U);if(!(O=!U||U.U!==M.info.U)){a:if(U=U.Z,M=M.info.Z,U.length!==M.length)M=!1;else{for(O=0;O1)return 6;F.Ca=new g.UM(function(){var l=O9(F);U.GY()||l==null||!l.isLocked?U.wG.J().PV()&&U.al("eosl",{delayA:l==null?void 0:l.info.Qr()}):Lrq(F)?(U.wG.J().PV()&&U.al("eosl",{dunlock:l==null?void 0:l.info.Qr()}),Vo4(U, F===U.audioTrack)):(U.al("nue",{ls:l.info.Qr()}),l.info.yP+=1,U.La&&U.t5())},1E4,U); U.wG.J().PV()&&U.al("eosl",{delayS:S.Qr()});F.Ca.start()}U.policy.We&&(S==null?void 0:S.U)instanceof Vb&&S.Lm()&&U.al("poseos",{itag:S.U.info.itag,seg:S.Sc,lseg:S.U.index.zZ(),es:S.U.index.B});O.appendBuffer(M,S,p)}catch(l){if(l instanceof DOMException){if(l.code===11)return 2;if(l.code===12)return 5;if(l.code===22||l.message.indexOf("Not enough storage")===0)return O=Object.assign({name:"QuotaExceededError",buffered:$f(O.Nm()).replace(/,/g,"_"),vheap:Pk(U.videoTrack),aheap:Pk(U.audioTrack),message:g.DT(l.message, 3),track:U.La?O===U.La.V?"v":"a":"u"},j65()),U.handleError("player.exception",O),1;g.K5(l)}return 4}return U.La.rL()?3:0}; U9=function(U,O,M){U.wG.seekTo(O,M)}; ie1=function(U,O){O&&U.wG.NZ(new Ds(O.key,O.type))}; vk=function(U,O){U.wG.Ue(O)}; Vk=function(U,O){if(U.TY&&!U.bI)return 3;if(U.isSuspended)return 1;var M;if((M=U.La)==null?0:M.La&&M.La.streaming===!1)return 4;M=(O.U.info.audio?U.policy.w7:U.policy.HA)/(O.a_*U.policy.qU);if(U.policy.v$>0&&U.La&&xf(U.La)&&(O=O.U.info.video?U.La.V:U.La.U)&&!O.W7()){O=O.Nm();var S=To(O,U.getCurrentTime());S>=0&&(O=U.getCurrentTime()-O.start(S),M+=Math.max(0,Math.min(O-U.policy.v$,U.policy.XG)))}U.policy.BA>0&&(M=Math.min(M,U.policy.BA));return M}; KUw=function(U,O){return(Vk(U,O)+U.policy.G$)*O.a_}; kSi=function(U){U.Yy&&!U.isSuspended&&RK(U.schedule)&&(oue(U,U.Yy),U.Yy="")}; oue=function(U,O){PL(O,"cms",function(M){U.policy.B&&U.al("pathprobe",M)},function(M){U.wG.handleError(M)})}; wB5=function(U,O){if(U.La&&U.La.X&&!U.La.rL()&&(O.P$=Qy(U.videoTrack),O.V=Qy(U.audioTrack),U.policy.B)){var M=Pk(U.videoTrack),S=Pk(U.audioTrack),p=$f(U.La.V.Nm(),"_",5),h=$f(U.La.U.Nm(),"_",5);Object.assign(O.U,{lvq:M,laq:S,lvb:p,lab:h})}O.bandwidthEstimate=Qk(U.Z);var J;(J=U.audioTrack.Z)==null||J.flush();var f;(f=U.videoTrack.Z)==null||f.flush();U.logger.debug(function(){return AA(O.U)})}; Uiw=function(U,O){U.Y=O;U.B&&(U.B.B=O);U.Y.V4(U.videoTrack.U.info.XL());U.G.V=U.Y;U.policy.G&&(U.V.X=U.Y)}; Mem=function(U,O){if(U.La&&U.La.V){if(U.policy.Z0){var M=Une(U.audioTrack);if(M&&M.xS()){var S=U.wG;if(S.FG&&(S.FG.U=M,M=S.cV(S.FG.videoId),M.qoe)){M=M.qoe;S=S.FG;var p=g.kV(M.provider);Odq(M,p,S)}}}U.policy.s6&&(M=Une(U.videoTrack))&&M.i$()&&(S=U.wG,S.VU&&(S.VU.U=M,M=S.cV(S.VU.videoId),M.qoe&&suw(M.qoe,S.VU)));O-=isNaN(U.timestampOffset)?0:U.timestampOffset;U.getCurrentTime()!==O&&U.resume();U.zJ.isSeeking()&&U.La&&!U.La.rL()&&(S=U.getCurrentTime()<=O&&O=0&&h1?f.V[0]=O&&eB7(U,S.startTime,!1)}); return M&&M.startTimeU.getCurrentTime())return M.start/1E3;return Infinity}; ygw=function(U){var O=As(U.videoTrack),M=As(U.audioTrack);return O&&!w31(U.videoTrack)?O.startTime:M&&!w31(U.audioTrack)?M.startTime:NaN}; k2w=function(U){if(U.wG.getVideoData().isLivePlayback)return!1;var O=U.wG.tR();if(!O)return!1;O=O.getDuration();return oMe(U,O)}; oMe=function(U,O){if(!U.La||!U.La.U||!U.La.V)return!1;var M=U.getCurrentTime(),S=U.La.U.Nm();U=U.La.V.Nm();S=S?eh(S,M):M;M=U?eh(U,M):M;M=Math.min(S,M);return isNaN(M)?!1:M>=O-.01}; Eu7=function(U,O,M){U.policy.ZG&&FX(U.wG.getVideoData())?(U.wG.Ac()||ap5(U,"sepInit",O,M.info),f0J(U.wG,"sie")):ap5(U,"sepInit",O,M.info)}; DnJ=function(U){return U.wG.B2()0){var p=S.U.shift();l0e(S,p.info)}S.U.length>0&&(p=S.U[0].time-(0,g.nM)(),S.V.start(Math.max(0,p)))}},0); g.X(this,this.V);O.subscribe("widevine_set_need_key_info",this.G,this)}; l0e=function(U,O){a:{var M=O.cryptoPeriodIndex;if(isNaN(M)&&U.B.size>0)M=!0;else{for(var S=g.D(U.B.values()),p=S.next();!p.done;p=S.next())if(p.value.cryptoPeriodIndex===M){M=!0;break a}M=!1}}U.publish("log_qoe",{wvagt:"reqnews",canskip:M});M||U.publish("rotated_need_key_info_ready",O)}; Gjq=function(){var U={};var O=U.url;var M=U.interval;U=U.retries;this.url=O;this.interval=M;this.retries=U}; $i5=function(U,O){this.statusCode=U;this.message=O;this.V=this.heartbeatParams=this.errorMessage=null;this.U={};this.nextFairplayKeyId=null}; Tey=function(U,O,M){M=M===void 0?"":M;g.C.call(this);this.message=U;this.requestNumber=O;this.e9=M;this.onError=this.onSuccess=null;this.U=new g.na(5E3,2E4,.2)}; ju4=function(U,O,M){U.onSuccess=O;U.onError=M}; Hd5=function(U,O,M,S){var p={timeout:3E4,onSuccess:function(h){if(!U.GY()){Ll("drm_net_r",void 0,U.e9);var J=h.status==="LICENSE_STATUS_OK"?0:9999,f=null;if(h.license)try{f=d3(h.license)}catch(z){g.K5(z)}if(J!==0||f){f=new $i5(J,f);J!==0&&h.reason&&(f.errorMessage=h.reason);if(h.authorizedFormats){J={};for(var F=[],l={},G=g.D(h.authorizedFormats),T=G.next();!T.done;T=G.next())if(T=T.value,T.trackType&&T.keyId){var e=e25[T.trackType];if(e){e==="HD"&&h.isHd720&&(e="HD720");T.isHdr&&(e+="HDR");J[e]|| (F.push(e),J[e]=!0);var H=null;try{H=d3(T.keyId)}catch(z){g.K5(z)}H&&(l[g.cp(H,4)]=e)}}f.V=F;f.U=l}h.nextFairplayKeyId&&(f.nextFairplayKeyId=h.nextFairplayKeyId);h.sabrLicenseConstraint&&(f.sabrLicenseConstraint=d3(h.sabrLicenseConstraint));h=f}else h=null;if(h)U.onSuccess(h,U.requestNumber);else U.onError(U,"drm.net","t.p;p.i")}}, onError:function(h){if(!U.GY())if(h&&h.error)h=h.error,U.onError(U,"drm.net.badstatus","t.r;p.i;c."+h.code+";s."+h.status,h.code);else U.onError(U,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){U.onError(U,"drm.net","rt.req."+U.requestNumber)}}; S&&(p.wS="Bearer "+S);g.fv(M,"player/get_drm_license",O,p)}; z2J=function(U,O,M,S){g.H_.call(this);this.videoData=U;this.gG=O;this.Y=M;this.sessionId=S;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.yP=this.ol=!1;this.B=null;this.BA=[];this.X=[];this.Sh=[];this.D=!1;this.U={};this.status="";this.C=NaN;this.V=U.G;this.cryptoPeriodIndex=M.cryptoPeriodIndex;U={};Object.assign(U,this.gG.U);U.cpn=this.videoData.clientPlaybackNonce;this.videoData.ol&&(U.vvt=this.videoData.ol,this.videoData.mdxEnvironment&&(U.mdx_environment=this.videoData.mdxEnvironment)); this.gG.BA&&(U.authuser=this.gG.BA);this.gG.pageId&&(U.pageid=this.gG.pageId);isNaN(this.cryptoPeriodIndex)||(U.cpi=this.cryptoPeriodIndex.toString());var p=(p=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.YE()))?p[1]:"";p==="ATV"&&(U.cdt=p);this.G=U;this.G.session_id=S;this.Z=!0;this.V.flavor==="widevine"&&(this.G.hdr="1");this.V.flavor==="playready"&&(O=Number(pL(O.experiments,"playready_first_play_expiration")),!isNaN(O)&&O>=0&&(this.G.mfpe=""+O),this.Z=!1);O="";g.ab(this.V)?rs(this.V)?(S=M.V)&&(O="https://www.youtube.com/api/drm/fps?ek="+ C5W(S)):(O=M.initData.subarray(4),O=new Uint16Array(O.buffer,O.byteOffset,O.byteLength/2),O=String.fromCharCode.apply(null,O).replace("skd://","https://")):O=this.V.V;this.baseUrl=O;this.fairplayKeyId=JH(this.baseUrl,"ek")||"";if(O=JH(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(O);this.BA=M.XL?[g.cp(M.initData,4)]:M.B;gy(this,{sessioninit:M.cryptoPeriodIndex});this.status="in"}; Wug=function(U,O){gy(U,{createkeysession:1});U.status="gr";Ll("drm_gk_s",void 0,U.videoData.hZ);U.url=cge(U);try{U.B=O.createSession(U.Y,function(M){gy(U,{m:M})})}catch(M){O="t.g"; M instanceof DOMException&&(O+=";c."+M.code);U.publish("licenseerror","drm.unavailable",1,O,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}U.B&&(Di5(U.B,function(M,S){dim(U,M,S)},function(M,S,p){if(!U.GY()){S=void 0; var h=1;g.ab(U.V)&&g.ik(U.gG)&&U.gG.T("html5_enable_safari_fairplay")&&p===1212433232&&(S="ERROR_HDCP",h=U.gG.T("html5_safari_fairplay_ignore_hdcp")?0:h);U.error("drm.keyerror",h,M,S)}},function(){U.GY()||(gy(U,{onkyadd:1}),U.yP||(U.publish("sessionready"),U.yP=!0))},function(M){U.zz(M)}),g.X(U,U.B))}; cge=function(U){var O=U.baseUrl;gQw(O)||U.error("drm.net",2,"t.x");if(!JH(O,"fexp")){var M=["23898307","23914062","23916106","23883098"].filter(function(p){return U.gG.experiments.experiments[p]}); M.length>0&&(U.G.fexp=M.join())}M=g.D(Object.keys(U.G));for(var S=M.next();!S.done;S=M.next())S=S.value,O=WZJ(O,S,U.G[S]);return O}; dim=function(U,O,M){if(!U.GY())if(O){gy(U,{onkmtyp:M});U.status="km";switch(M){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Nee(U,O);return;default:U.publish("ctmp","message_type",{t:M,l:O.byteLength})}U.ol||(Ll("drm_gk_f",void 0,U.videoData.hZ),U.ol=!0,U.publish("newsession",U));if(iS(U.V)&&(O=voi(O),!O))return;O=new Tey(O,++U.requestNumber,U.videoData.hZ);ju4(O,function(S){Be4(U,S)},function(S,p,h){if(!U.GY()){var J=0; S.U.V>=3&&(J=1,p="drm.net.retryexhausted");gy(U,{onlcsrqerr:p,info:h});U.error(p,J,h);U.shouldRetry(Po(J),S)&&xiJ(U,S)}}); g.X(U,O);bdi(U,O)}else U.error("drm.unavailable",1,"km.empty")}; Nee=function(U,O){gy(U,{sdpvrq:1});U.C=Date.now();if(U.V.flavor!=="widevine")U.error("drm.provision",1,"e.flavor;f."+U.V.flavor+";l."+O.byteLength);else{var M={cpn:U.videoData.clientPlaybackNonce};Object.assign(M,U.gG.U);M=g.pj("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",M);O={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, O)}),responseType:"arraybuffer"};g.C4(M,O,3,500).then(xD(function(S){S=S.xhr;if(!U.GY()){S=new Uint8Array(S.response);var p=String.fromCharCode.apply(null,S);try{var h=JSON.parse(p)}catch(J){}h&&h.signedResponse?(U.publish("ctmp","drminfo",{provisioning:1}),h=(Date.now()-U.C)/1E3,U.C=NaN,U.publish("ctmp","provs",{et:h.toFixed(3)}),U.B&&U.B.update(S)):(h=h&&h.error&&h.error.message,S="e.parse",h&&(S+=";m."+h),U.error("drm.provision",1,S))}}),xD(function(S){U.GY()||U.error("drm.provision",1,"e."+S.errorCode+ ";c."+(S.xhr&&S.xhr.status))}))}}; MK=function(U){var O;if(O=U.Z&&U.B!=null)U=U.B,O=!(!U.U||!U.U.keyStatuses);return O}; bdi=function(U,O){U.status="km";Ll("drm_net_s",void 0,U.videoData.hZ);var M=new g.yJ(U.gG.v7),S={context:g.Dk(M.config_||g.cW())};S.drmSystem=R2w[U.V.flavor];S.videoId=U.videoData.videoId;S.cpn=U.videoData.clientPlaybackNonce;S.sessionId=U.sessionId;S.licenseRequest=g.cp(O.message);S.drmParams=U.videoData.drmParams;isNaN(U.cryptoPeriodIndex)||(S.isKeyRotated=!0,S.cryptoPeriodIndex=U.cryptoPeriodIndex);var p,h,J=!!((p=U.videoData.V)==null?0:(h=p.video)==null?0:h.isHdr());S.drmVideoFeature=J?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(S.context&&S.context.client){if(p=U.gG.U)S.context.client.deviceMake=p.cbrand,S.context.client.deviceModel=p.cmodel,S.context.client.browserName=p.cbr,S.context.client.browserVersion=p.cbrver,S.context.client.osName=p.cos,S.context.client.osVersion=p.cosver;S.context.user=S.context.user||{};S.context.request=S.context.request||{};U.videoData.ol&&(S.context.user.credentialTransferTokens=[{token:U.videoData.ol,scope:"VIDEO"}]);S.context.request.mdxEnvironment=U.videoData.mdxEnvironment|| S.context.request.mdxEnvironment;U.videoData.Qa&&(S.context.user.kidsParent={oauthToken:U.videoData.Qa});g.ab(U.V)&&(S.fairplayKeyId=g.cp(Xge(U.fairplayKeyId)));g.Fy(U.gG,g.Es(U.videoData)).then(function(f){Hd5(O,S,M,f);U.status="rs"})}else U.error("drm.net",2,"t.r;ic.0")}; Be4=function(U,O){if(!U.GY())if(gy(U,{onlcsrsp:1}),U.status="rr",O.statusCode!==0)U.error("drm.auth",1,"t.f;c."+O.statusCode,O.errorMessage||void 0);else{Ll("drm_kr_s",void 0,U.videoData.hZ);if(O.heartbeatParams&&O.heartbeatParams.url&&U.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var M=U.V.V.match(/(.*)youtube.com/g);M&&(O.heartbeatParams.url=M[0]+O.heartbeatParams.url)}O.heartbeatParams&&U.publish("newlicense",O.heartbeatParams);O.V&&(U.X=O.V,U.videoData.Jg||U.publish("newlicense", new Gjq),U.videoData.Jg=!0,U.D=A6(U.X,function(S){return S.includes("HDR")})); O.U&&(U.gG.T("html5_enable_vp9_fairplay")&&rs(U.V)?(M=g.cp(Xge(U.fairplayKeyId),4),U.U[M]={type:O.U[M],status:"unknown"}):U.U=I1(O.U,function(S){return{type:S,status:"unknown"}})); Ku(U.V)&&(O.message=R7m(g.cp(O.message)));U.B&&(gy(U,{updtks:1}),U.status="ku",U.B.update(O.message).then(function(){Ll("drm_kr_f",void 0,U.videoData.hZ);MK(U)||(gy(U,{ksApiUnsup:1}),U.publish("keystatuseschange",U))},function(S){S="msuf.req."+U.requestNumber+";msg."+g.DT(S.message,3); U.error("drm.keyerror",1,S)})); g.ab(U.V)&&U.publish("fairplay_next_need_key_info",U.baseUrl,O.nextFairplayKeyId);U.gG.T("html5_enable_vp9_fairplay")&&rs(U.V)&&U.publish("qualitychange",teg(U.X));O.sabrLicenseConstraint&&U.publish("sabrlicenseconstraint",O.sabrLicenseConstraint)}}; xiJ=function(U,O){var M=O.U.getValue();M=new g.UM(function(){bdi(U,O)},M); g.X(U,M);M.start();g.QG(O.U);gy(U,{rtyrq:1})}; YEi=function(U,O){for(var M=[],S=g.D(Object.keys(U.U)),p=S.next();!p.done;p=S.next())p=p.value,M.push(p+"_"+U.U[p].type+"_"+U.U[p].status);return M.join(O)}; miq=function(U){var O={};O[U.status]=MK(U)?YEi(U,"."):U.X.join(".");return O}; Agw=function(U){switch(U){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; SB=function(U,O){for(var M in U.U)if(U.U[M].status==="usable"&&U.U[M].type===O)return!0;return!1}; I0m=function(U,O){for(var M in U.U)if(U.U[M].type===O)return U.U[M].status}; gy=function(U,O){var M=M===void 0?!1:M;AA(O);(M||U.gG.PV())&&U.publish("ctmp","drmlog",O)}; P8w=function(U){var O=U[0];U[0]=U[3];U[3]=O;O=U[1];U[1]=U[2];U[2]=O;O=U[4];U[4]=U[5];U[5]=O;O=U[6];U[6]=U[7];U[7]=O}; teg=function(U){return g.kE(U,"UHD2")||g.kE(U,"UHD2HDR")?"highres":g.kE(U,"UHD1")||g.kE(U,"UHD1HDR")?"hd2160":g.kE(U,"HD")||g.kE(U,"HDHDR")?"hd1080":g.kE(U,"HD720")||g.kE(U,"HD720HDR")?"hd720":"large"}; voi=function(U){for(var O="",M=0;M'.charCodeAt(S);U=U.B.createSession("video/mp4",O,M);return new pk(null,null,null,null,U)}; ZdW=function(U,O){var M=U.C[O.sessionId];!M&&U.X&&(M=U.X,U.X=null,M.sessionId=O.sessionId,U.C[O.sessionId]=M);return M}; u77=function(U,O){var M=U.subarray(4);M=new Uint16Array(M.buffer,M.byteOffset,M.byteLength/2);M=String.fromCharCode.apply(null,M).match(/ek=([0-9a-f]+)/)[1];for(var S="",p=0;p 19.2999?(U=M.Lq,M=M.Cq,M>=U&&(M=U*.75),O=(U-M)*.5,M=new O_(O,U,U-O-M,this)):M=null;break a;case "widevine":M=new s_(O,this,U);break a;default:M=null}if(this.G=M)g.X(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.Wj,this),this.G.subscribe("log_qoe",this.lr,this);Lu(this.gG.experiments);this.lr({cks:this.U.getInfo()})}; rgm=function(U){var O=Xei(U.X);O?O.then(xD(function(){wk7(U)}),xD(function(M){if(!U.GY()){g.K5(M); var S="t.a";M instanceof DOMException&&(S+=";n."+M.name+";m."+M.message);U.publish("licenseerror","drm.unavailable",1,S,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(U.lr({mdkrdy:1}),U.Z=!0); U.yP&&(O=Xei(U.yP))}; Oge=function(U,O,M){U.TY=!0;M=new Ds(O,M);U.gG.T("html5_eme_loader_sync")&&(U.C.get(O)||U.C.set(O,M));USe(U,M)}; USe=function(U,O){if(!U.GY()){U.lr({onInitData:1});if(U.gG.T("html5_eme_loader_sync")&&U.videoData.B&&U.videoData.B.U){var M=U.D.get(O.initData);O=U.C.get(O.initData);if(!M||!O)return;O=M;M=O.initData;U.C.remove(M);U.D.remove(M)}U.lr({initd:O.initData.length,ct:O.contentType});if(U.U.flavor==="widevine")if(U.QP&&!U.videoData.isLivePlayback)yn(U);else{if(!(U.gG.T("vp9_drm_live")&&U.videoData.isLivePlayback&&O.XL)){U.QP=!0;M=O.cryptoPeriodIndex;var S=O.U;sbW(O);O.XL||(S&&O.U!==S?U.publish("ctmp","cpsmm", {emsg:S,pssh:O.U}):M&&O.cryptoPeriodIndex!==M&&U.publish("ctmp","cpimm",{emsg:M,pssh:O.cryptoPeriodIndex}));U.publish("widevine_set_need_key_info",O)}}else U.Wj(O)}}; wk7=function(U){if(!U.GY())if(U.gG.T("html5_drm_set_server_cert")||rs(U.U)){var O=U.X.setServerCertificate();O?O.then(xD(function(M){U.gG.PV()&&U.publish("ctmp","ssc",{success:M})}),xD(function(M){U.publish("ctmp","ssce",{n:M.name, m:M.message})})).then(xD(function(){sWy(U)})):sWy(U)}else sWy(U)}; sWy=function(U){U.GY()||(U.Z=!0,U.lr({onmdkrdy:1}),yn(U))}; gVe=function(U){return U.U.flavor==="widevine"&&U.videoData.T("html5_drm_cpi_license_key")}; yn=function(U){if((U.TY||U.gG.T("html5_widevine_use_fake_pssh"))&&U.Z&&!U.sA){for(;U.B.length;){var O=U.B[0],M=gVe(U)?gbm(O):g.cp(O.initData);if(rs(U.U)&&!O.V)U.B.shift();else{if(U.V.get(M))if(U.U.flavor!=="fairplay"||rs(U.U)){U.B.shift();continue}else U.V.delete(M);sbW(O);break}}U.B.length&&U.createSession(U.B[0])}}; MWw=function(U){var O;if(O=g.Ud()){var M;O=!((M=U.X.V)==null||!M.getMetrics)}O&&(O=U.X.getMetrics())&&(O=g.nN(O),U.publish("ctmp","drm",{metrics:O}))}; Sx1=function(){var U=PeJ();return!(!U||U==="visible")}; hhy=function(U){var O=pHW();O&&document.addEventListener(O,U,!1)}; J4W=function(U){var O=pHW();O&&document.removeEventListener(O,U,!1)}; pHW=function(){if(document.visibilityState)var U="visibilitychange";else{if(!document[WA+"VisibilityState"])return"";U=WA+"visibilitychange"}return U}; y4e=function(U){g.C.call(this);var O=this;this.wG=U;this.WL=0;this.C=this.V=this.G=!1;this.X=0;this.X0=this.wG.J();this.videoData=this.wG.getVideoData();this.B=g.DF(this.X0.experiments,"html5_delayed_retry_count");this.U=new g.UM(function(){O.wG.Mo()},g.DF(this.X0.experiments,"html5_delayed_retry_delay_ms")); g.X(this,this.U)}; $Sw=function(U,O,M){var S=U.videoData.V,p=U.videoData.X;FX(U.wG.getVideoData())&&U.X0.T("html5_gapless_fallback_on_qoe_restart")&&f0J(U.wG,"pe");if((O==="progressive.net.retryexhausted"||O==="fmt.unplayable"||O==="fmt.decode")&&!U.wG.yc.G&&S&&S.itag==="22")return U.wG.yc.G=!0,U.iH("qoe.restart",{reason:"fmt.unplayable.22"}),U.wG.Oq(),!0;var h=!1;if(U.videoData.isExternallyHostedPodcast){if(h=U.videoData.Ek)M.mimeType=h.type,U.al("3pp",{url:h.url});M.ns="3pp";U.wG.k5(O,1,"VIDEO_UNAVAILABLE",AA((new Ii(O, M,1)).details));return!0}var J=U.WL+3E4<(0,g.nM)()||U.U.isActive();if(U.X0.T("html5_empty_src")&&U.videoData.isAd()&&O==="fmt.unplayable"&&/Empty src/.test(""+M.msg))return M.origin="emptysrc",U.iH("auth",M),!0;J||fk(U.wG.Dt())||(M.nonfg="paused",J=!0,U.wG.pauseVideo());(O==="fmt.decode"||O==="fmt.unplayable")&&(p==null?0:gm(p)||Me(p))&&(Qzq(U.X0.G,p.zY),M.acfallexp=p.zY,h=J=!0);!J&&U.B>0&&(U.U.start(),J=!0,M.delayed="1",--U.B);p=U.wG.rG;!J&&((S==null?0:s6(S))||(S==null?0:w9(S)))&&(Qzq(U.X0.G,S.zY), h=J=!0,M.cfallexp=S.zY);if(U.X0.T("html5_ssap_ignore_decode_error_for_next_video")&&g.Os(U.videoData)&&O==="fmt.unplayable"&&M.cid&&M.ccid&&fk(U.wG.Dt())){if(M.cid!==M.ccid)return M.ignerr="1",U.iH("ssap.transitionfailure",M),!0;U.iH("ssap.transitionfailure",M);if(fG4(U.wG,O))return!0}if(!J)return FF1(U,M);if(U.X0.T("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.Os(U.videoData)&&O==="fmt.unplayable"&&M.cid&&M.ccid&&M.cid!==M.ccid&&fk(U.wG.Dt())&&(U.iH("ssap.transitionfailure",M),fG4(U.wG, O)))return!0;J=!1;U.G?U.WL=(0,g.nM)():J=U.G=!0;var f=U.videoData;if(f.w7){f=f.w7.kH();var F=Date.now()/1E3+1800;f=f6048E5&&Hgg(U,"signature");return!1}; Hgg=function(U,O){try{window.location.reload(),U.iH("qoe.restart",{detail:"pr."+O})}catch(M){}}; c4m=function(U,O){O=O===void 0?"fmt.noneavailable":O;var M=U.X0.G;M.D=!1;fL(M);U.iH("qoe.restart",{e:O,detail:"hdr"});U.wG.Mo(!0)}; DS1=function(U,O,M,S,p,h){this.videoData=U;this.U=O;this.reason=M;this.V=S;this.token=p;this.videoId=h}; dS7=function(U,O,M){this.gG=U;this.gM=O;this.wG=M;this.Y=this.C=this.U=this.X=this.D=this.V=0;this.G=!1;this.Z=g.DF(this.gG.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.B=new Map}; N8g=function(U,O,M){!U.gG.T("html5_tv_ignore_capable_constraint")&&g.PF(U.gG)&&(M=M.compose(WF4(U,O)));return M}; vVe=function(U){if(U.wG.Dt().isInline())return VK;var O;U.T("html5_exponential_memory_for_sticky")?O=tG(U.gG.fO,"sticky-lifetime")<.5?"auto":GZ[K6()]:O=GZ[K6()];return g.fS("auto",O,!1,"s")}; xSm=function(U,O){var M,S=B81(U,(M=O.U)==null?void 0:M.videoInfos);M=U.wG.getPlaybackRate();return M>1&&S?(U=m6w(U.gG.G,O.U.videoInfos,M),new yT(0,U,!0,"o")):new yT(0,0,!1,"o")}; B81=function(U,O){return O&&g.PF(U.gG)?O.some(function(M){return M.video.fps>32}):!1}; bg1=function(U,O){if(U.T("html5_disable_ustreamer_constraint_for_sabr")&&$u(O.videoData))return VK;var M=U.wG.Z4();U.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&M&&M.MG>0&&lJ(O.videoData.Y1)&&(U=M.MG,O.videoData.Y1=new yT(0,U,!1,"u"));return O.videoData.Y1}; WF4=function(U,O){if(g.PF(U.gG)&&Bs(U.gG.G,xc.HEIGHT))var M=O.U.videoInfos[0].video.qualityOrdinal;else{var S=!!O.U.U;var p;g.uk(U.gG)&&(p=window.screen&&window.screen.width?new g.R1(window.screen.width,window.screen.height):null);p||(p=U.gG.qU?U.gG.qU.clone():U.gM.tL());(SQ||FP||S)&&p.scale(g.s3());S=p;lI(O.videoData)||ku(O.videoData);O=O.U.videoInfos;if(O.length){p=g.DF(U.gG.experiments,"html5_override_oversend_fraction")||.85;var h=O[0].video;h.projectionType!=="MESH"&&h.projectionType!=="EQUIRECTANGULAR"&& h.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||CL||(p=.45);U=g.DF(U.gG.experiments,"html5_viewport_undersend_maximum");for(h=0;h0&&(M=Math.min(M,S));if(S=g.DF(U.gG.experiments,"html5_max_vertical_resolution")){U=4320;for(p=0;pS&&(U=Math.min(U,h.video.qualityOrdinal));if(U<4320){for(p=S=0;p32){p=!0;break a}}p=!1}p&&(M=Math.min(M,S));(S=g.DF(U.gG.experiments,"html5_live_quality_cap"))&&O.videoData.isLivePlayback&&(M=Math.min(M,S));M=tWw(U,O,M);U=g.DF(U.gG.experiments,"html5_byterate_soft_cap");return new yT(0,M===4320?0:M,!1,"d",U)}; mS1=function(U){var O,M,S,p;return g.A(function(h){switch(h.U){case 1:return U.U.U&&typeof((O=navigator.mediaCapabilities)==null?void 0:O.decodingInfo)==="function"?g.Y(h,Promise.resolve(),2):h.return(Promise.resolve());case 2:M=g.D(U.U.videoInfos),S=M.next();case 3:if(S.done){h.tZ(0);break}p=S.value;return g.Y(h,Hb4(p),4);case 4:S=M.next(),h.tZ(3)}})}; IGw=function(U,O){if(!O.videoData.V||U.T("html5_disable_performance_downgrade"))return!1;Date.now()-U.D>6E4&&(U.V=0);U.V++;U.D=Date.now();if(U.V!==4)return!1;A45(U,O.videoData.V);return!0}; nVW=function(U,O,M,S){if(!O||!M||!O.videoData.V)return!1;var p=g.DF(U.gG.experiments,"html5_df_downgrade_thresh"),h=U.T("html5_log_media_perf_info");if(!((0,g.nM)()-U.X<5E3?0:h||p>0))return!1;var J=((0,g.nM)()-U.X)/1E3;U.X=(0,g.nM)();M=M.getVideoPlaybackQuality();if(!M)return!1;var f=M.droppedVideoFrames-U.C,F=M.totalVideoFrames-U.Y;U.C=M.droppedVideoFrames;U.Y=M.totalVideoFrames;var l=M.displayCompositedVideoFrames===0?0:M.displayCompositedVideoFrames||-1;h&&U.gG.PV()&&U.wG.al("ddf",{dr:M.droppedVideoFrames, de:M.totalVideoFrames,comp:l});if(S)return U.U=0,!1;if((F-f)/J>U.Z||!p||g.PF(U.gG))return!1;U.U=(F>60?f/F:0)>p?U.U+1:0;if(U.U!==3)return!1;A45(U,O.videoData.V);U.wG.al("dfd",Object.assign({dr:M.droppedVideoFrames,de:M.totalVideoFrames},P27()));return!0}; A45=function(U,O){var M=O.zY,S=O.video.fps,p=O.video.qualityOrdinal-1,h=U.B;O=""+M+(S>49?"p60":S>32?"p48":"");M=Qt(M,S,h);p>0&&(M=Math.min(M,p));if(!FI.has(O)&&EN().includes(O)){var J=M;M=ay();+M[O]>0&&(J=Math.min(+M[O],J));M[O]!==J&&(M[O]=J,g.iC("yt-player-performance-cap",M,2592E3))}else if(FI.has(O)||h==null){a:{J=J===void 0?!0:J;S=EN().slice();if(J){if(S.includes(O))break a;S.push(O)}else{if(!S.includes(O))break a;S.splice(S.indexOf(O),1)}g.iC("yt-player-performance-cap-active-set",S,2592E3)}nu.set(O, M)}else FI.add(O),h==null||h.set(O,M);U.wG.Ro()}; lb=function(U,O){if(!O.U.U)return U.G?new yT(0,360,!1,"b"):VK;for(var M=!1,S=!1,p=g.D(O.U.videoInfos),h=p.next();!h.done;h=p.next())s6(h.value)?M=!0:S=!0;M=M&&S;S=0;p=g.DF(U.gG.experiments,"html5_performance_cap_floor");p=U.gG.V?240:p;O=g.D(O.U.videoInfos);for(h=O.next();!h.done;h=O.next()){var J=h.value;if(!M||!s6(J))if(h=Qt(J.zY,J.video.fps,U.B),J=J.video.qualityOrdinal,Math.max(h,p)>=J){S=J;break}}return new yT(0,S,!1,"b")}; QWJ=function(U,O){var M=U.wG.Dt();return M.isInline()&&!O.LU?new yT(0,480,!1,"v"):U.gG.T("html5_remove_visibility_constraint_for_background_playbacks")&&$u(O)?VK:M.isBackground()&&QJ()/1E3>60&&!g.PF(U.gG)?new yT(0,360,!1,"v"):VK}; C2q=function(U,O,M){if(U.gG.experiments.F0("html5_disable_client_autonav_cap_for_onesie")&&O.fetchType==="onesie"||g.PF(U.gG)&&(K6(-1)>=1080||O.osid))return VK;var S=g.DF(U.gG.experiments,"html5_autonav_quality_cap"),p=g.DF(U.gG.experiments,"html5_autonav_cap_idle_secs");return S&&O.isAutonav&&QJ()/1E3>p?(M&&(S=tWw(U,M,S)),new yT(0,S,!1,"e")):VK}; tWw=function(U,O,M){if(U.T("html5_optimality_defaults_chooses_next_higher")&&M)for(U=O.U.videoInfos,O=1;O=0||(U.provider.wG.getVisibilityState()===3?U.G=!0:(U.U=g.kV(U.provider),U.delay.start()))}; qxe=function(U){if(!(U.V<0)){var O=g.kV(U.provider),M=O-U.X;U.X=O;U.playerState.state===8?U.playTimeSecs+=M:U.playerState.isBuffering()&&!g.a(U.playerState,16)&&(U.rebufferTimeSecs+=M)}}; ig7=function(U){var O;switch((O=U.gG.playerCanaryStage)==null?void 0:O.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"}}; ZgJ=function(U){return window.PressureObserver&&new window.PressureObserver(U)}; KFW=function(U){U=U===void 0?ZgJ:U;g.C.call(this);var O=this;try{this.B=U(function(S){O.V=S.at(-1)}); var M;this.X=(M=this.B)==null?void 0:M.observe("cpu",{sampleInterval:2E3}).catch(function(S){S instanceof DOMException&&(O.U=S)})}catch(S){S instanceof DOMException&&(this.U=S)}}; r4e=function(U){var O={},M=window.h5vcc;O.hwConcurrency=navigator.hardwareConcurrency;U.U&&(O.cpe=U.U.message);U.V&&(O.cpt=U.V.time,O.cps=U.V.state);if(M==null?0:M.cVal)O.cb2s=M.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),O.cb5s=M.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),O.cb30s=M.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return O}; aGq=function(U){var O;g.A(function(M){switch(M.U){case 1:return g.dW(M,2),g.Y(M,U.X,4);case 4:g.vg(M,3);break;case 2:g.Bg(M);case 3:(O=U.B)==null||O.disconnect(),g.Dq(M)}})}; LF1=function(U,O){O?EVy.test(U):(U=g.Gr(U),Object.keys(U).includes("cpn"))}; oVe=function(U,O,M,S,p,h,J){var f={format:"RAW"},F={};if(jJ(U)&&eJ()){if(J){var l;((l=VW5.uaChPolyfill)==null?void 0:l.state.type)!==2?J=null:(J=VW5.uaChPolyfill.state.data.values,J={"Synth-Sec-CH-UA-Arch":J.architecture,"Synth-Sec-CH-UA-Model":J.model,"Synth-Sec-CH-UA-Platform":J.platform,"Synth-Sec-CH-UA-Platform-Version":J.platformVersion,"Synth-Sec-CH-UA-Full-Version":J.uaFullVersion});F=Object.assign(F,J);f.withCredentials=!0}(J=g.wZ("EOM_VISITOR_DATA"))?F["X-Goog-EOM-Visitor-Id"]=J:S?F["X-Goog-Visitor-Id"]= S:g.wZ("VISITOR_DATA")&&(F["X-Goog-Visitor-Id"]=g.wZ("VISITOR_DATA"));M&&(F["X-Goog-PageId"]=M);(S=O.BA)&&!M3(O)&&(F["X-Goog-AuthUser"]=S);p&&(F.Authorization="Bearer "+p);O.T("enable_datasync_id_header_in_web_vss_pings")&&O.B7&&O.datasyncId&&(F["X-YouTube-DataSync-Id"]=O.datasyncId);J||F["X-Goog-Visitor-Id"]||p||M||S?f.withCredentials=!0:O.T("html5_send_cpn_with_options")&&EVy.test(U)&&(f.withCredentials=!0)}Object.keys(F).length>0&&(f.headers=F);h&&(f.onFinish=h);return Object.keys(f).length>1? f:null}; kXg=function(U,O,M,S,p,h,J,f){eJ()&&M.token&&(U=$J(U,{ctt:M.token,cttype:M.j4,mdx_environment:M.mdxEnvironment}));S.T("net_pings_low_priority")&&(O||(O={}),O.priority="low");h||f&&S.T("nwl_skip_retry")?(O==null?O={}:LF1(U,S.T("html5_assert_cpn_with_regex")),J?hE().sendAndWrite(U,O):hE().sendThenWrite(U,O,f)):O?(LF1(U,S.T("html5_assert_cpn_with_regex")),S.T("net_pings_use_fetch")?pS4(U,O):g.I0(U,O)):g.ox(U,p)}; wHw=function(U){for(var O=[],M=0;M0&&M>0&&!U.V&&U.B<1E7)try{U.X=U.G({sampleInterval:O,maxBufferSize:M});var S;(S=U.X)==null||S.addEventListener("samplebufferfull",function(){return g.A(function(p){if(p.U==1)return g.Y(p,U.stop(),2);sQJ(U);g.Dq(p)})})}catch(p){U.V=Okm(p.message)}}; Tu=function(U,O){var M,S;return!!((M=window.h5vcc)==null?0:(S=M.settings)==null?0:S.set(U,O))}; MBw=function(){var U,O,M,S=(U=window.h5vcc)==null?void 0:(O=U.settings)==null?void 0:(M=O.getPersistentSettingAsString)==null?void 0:M.call(O,"cpu_usage_tracker_intervals");if(S!=null){var p;U=(p=JSON.parse(S))!=null?p:[];p=U.filter(function(l){return l.type==="total"}).map(function(l){return l.seconds}); O=g.D(gH7);for(M=O.next();!M.done;M=O.next())M=M.value,p.indexOf(M)===-1&&U.push({type:"total",seconds:M});var h,J;(h=window.h5vcc)==null||(J=h.settings)==null||J.set("cpu_usage_tracker_intervals_enabled",1);var f,F;(f=window.h5vcc)==null||(F=f.settings)==null||F.set("cpu_usage_tracker_intervals",JSON.stringify(U))}}; S_g=function(){var U=window.H5vccPlatformService,O="";if(U&&U.has("dev.cobalt.coat.clientloginfo")&&(U=U.open("dev.cobalt.coat.clientloginfo",function(){}))){var M=U.send(new ArrayBuffer(0)); M&&(O=String.fromCharCode.apply(String,g.N(new Uint8Array(M))));U.close()}return O}; g.H9=function(U,O){g.C.call(this);var M=this;this.provider=U;this.logger=new g.Gs("qoe");this.U=new Map;this.sequenceNumber=1;this.C=NaN;this.qm="N";this.Z=this.fn=this.uc=this.BA=this.V=0;this.WV=this.TY=this.D=this.hZ="";this.Oj=this.HA=NaN;this.F9=0;this.cB=-1;this.Dq=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Qa=this.isEmbargoed=this.Ca=this.isOffline=this.isBuffering=!1;this.FI=[];this.yP=null;this.r7=this.X=this.w7=this.Y=!1;this.B=-1;this.Rl=!1;this.dH=new g.UM(this.fQ0,750,this);this.JN= this.adCpn=this.ol=this.contentCpn="";this.adFormat=void 0;this.sX=0;this.pE=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.UX=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.AG=!1;this.EQ=NaN;this.Ka=0;this.hG=!1;this.QP=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.HV=!1;this.BB={F5:function(p){M.F5(p)}, sZg:function(){return M.G}, JU:function(){return M.contentCpn}, FBc:function(){return M.ol}, reportStats:function(){M.reportStats()}, Rua:function(){return M.U.get("cat")||[]}, XW:function(p){return M.U.get(p)||[]}, cXl:function(){return M.U}, eYL:function(){return M.QP}, mdA:function(){return{adCpn:M.adCpn,JN:M.JN,adFormat:M.adFormat}}}; this.sA=this.provider.gG.T("html5_qoe_relaxed_reporting");var S=g.DF(this.provider.gG.experiments,"html5_qoe_proto_mock_length");S&&!jB.length&&(jB=wHw(S));g.X(this,this.dH);try{navigator.getBattery().then(function(p){M.yP=p})}catch(p){}g.eB(this,0,"vps",["N"]); U.gG.PV()&&(this.Ka=(0,g.nM)(),this.EQ=g.v5(function(){var p=(0,g.nM)(),h=p-M.Ka;h>500&&M.al("vmlock",{diff:h.toFixed()});M.Ka=p},250)); U.wG.ZD()&&O&&(this.QP=O-Math.round(g.kV(U)*1E3));this.provider.videoData.Vf&&(this.remoteControlMode=p95[this.provider.videoData.Vf]||0);this.provider.videoData.Zt&&(O=iZ5(this.provider.videoData.Zt),O==null?0:O.length)&&(this.remoteConnectedDevices=O);if(U.gG.PV()||U.T("html5_log_cpu_info"))this.NL=new KFW,g.X(this,this.NL);O=g.DF(U.gG.experiments,"html5_js_self_profiler_sample_interval_ms");U=g.DF(U.gG.experiments,"html5_js_self_profiler_max_samples");O>0&&U>0&&(this.Yy=new $H(O,U),g.X(this,this.Yy))}; zu=function(U,O,M){var S=U.U.get(O);S?S.push(M):U.U.set(O,[M])}; g.eB=function(U,O,M,S){zu(U,M,O.toFixed(3)+":"+S.join(":"))}; hdq=function(U,O){var M=U.adCpn||U.provider.videoData.clientPlaybackNonce,S=U.provider.getCurrentTime(M);g.eB(U,O,"cmt",[S.toFixed(3)]);S=U.provider.aO(M);if(U.G&&S*1E3>U.G.Vh+100&&U.G){var p=U.G;M=p.isAd;S=S*1E3-p.Vh;U.Gm=O*1E3-p.Wr0-S-p.TDQ;p=(0,g.nM)()-S;O=U.Gm;S=U.provider.videoData;var h=S.isAd();if(M||h){h=(M?"ad":"video")+"_to_"+(h?"ad":"video");var J={};S.C&&(J.cttAuthInfo={token:S.C,videoId:S.videoId});J.startTime=p-O;oY(h,J);g.Va({targetVideoId:S.videoId,targetCpn:S.clientPlaybackNonce}, h);Ll("pbs",p,h)}else p=U.provider.wG.f6(),p.C!==S.clientPlaybackNonce?(p.G=S.clientPlaybackNonce,p.V=O):S.HU()||g.rz(new g.sT("CSI timing logged before gllat",{cpn:S.clientPlaybackNonce}));U.al("gllat",{l:U.Gm.toFixed(),prev_ad:+M});delete U.G}}; c9=function(U,O){O=O===void 0?NaN:O;O=O>=0?O:g.kV(U.provider);var M=U.provider.wG.Xr(),S=M.fX-(U.HA||0);S>0&&g.eB(U,O,"bwm",[S,(M.LF-(U.Oj||0)).toFixed(3)]);isNaN(U.HA)&&M.fX&&U.isOffline&&U.F5(!1);U.HA=M.fX;U.Oj=M.LF;isNaN(M.bandwidthEstimate)||g.eB(U,O,"bwe",[M.bandwidthEstimate.toFixed(0)]);U.provider.gG.PV()&&Object.keys(M.U).length!==0&&U.al("bwinfo",M.U);if(U.provider.gG.PV()||U.provider.gG.T("html5_log_meminfo"))S=j65(),Object.values(S).some(function(h){return h!==void 0})&&U.al("meminfo", S); if(U.provider.gG.PV()||U.provider.gG.T("html5_log_cpu_info")){var p;(S=(p=U.NL)==null?void 0:r4e(p))&&Object.values(S).some(function(h){return h!=null})&&U.al("cpuinfo",S)}U.Yy&&U.al("jsprof",U.Yy.flush()); U.yP&&g.eB(U,O,"bat",[U.yP.level,U.yP.charging?"1":"0"]);p=U.provider.wG.getVisibilityState();U.cB!==p&&(g.eB(U,O,"vis",[p]),U.cB=p);hdq(U,O);(p=Jvg(U.provider))&&p!==U.F9&&(g.eB(U,O,"conn",[p]),U.F9=p);yv4(U,O,M)}; yv4=function(U,O,M){if(!isNaN(M.P$)){var S=M.P$;M.V96E3&&(new g.UM(U.reportStats,0,U)).start()}}; lBW=function(U){U.provider.videoData.FI&&DB(U,"prefetch");U.provider.videoData.F9&&U.al("reload",{r:U.provider.videoData.reloadReason,ct:U.provider.videoData.F9});U.provider.videoData.pE&&DB(U,"monitor");U.provider.videoData.isLivePlayback&&DB(U,"live");Sf&&DB(U,"streaming");U.provider.videoData.Vf&&U.al("ctrl",{mode:U.provider.videoData.Vf},!0);if(U.provider.videoData.Zt){var O=U.provider.videoData.Zt.replace(/,/g,"_");U.al("ytp",{type:O},!0)}U.provider.videoData.pw&&(O=U.provider.videoData.pw.replace(/,/g, "."),U.al("ytrexp",{ids:O},!0));var M=U.provider.videoData;O=U.provider.gG.T("enable_white_noise")||U.provider.gG.T("enable_webgl_noop");M=g.WB(M)||g.ne(M)||g.Q7(M)||g.Ce(M);(O||M)&&(O=(0,g.dy)())&&U.U.set("gpu",[O]);ku(U.provider.videoData)&&g.eB(U,g.kV(U.provider),"dt",["1"]);U.provider.gG.PV()&&(O=(0,g.nM)()-U.provider.gG.mD,U.al("playerage",{secs:Math.pow(1.6,Math.round(Math.log(O/1E3)/Math.log(1.6))).toFixed()}));U.X=!0;U.C=g.v5(function(){U.reportStats()},1E4)}; $Ke=function(U,O,M){var S=g.kV(U.provider);Gug(U,S,O,0,M);c9(U,S);FPg(U)}; Gug=function(U,O,M,S,p){var h=U.provider.gG.U.cbrver;U.provider.gG.U.cbr==="Chrome"&&/^96[.]/.test(h)&&M==="net.badstatus"&&/rc\.500/.test(p)&&Tyw(U,3);U.provider.gG.T("html5_use_ump")&&/b248180278/.test(p)&&Tyw(U,4);h=U.provider.getCurrentTime(U.adCpn||U.provider.videoData.clientPlaybackNonce);S=S===1?"fatal":"";M=[M,S,h.toFixed(3)];S&&(p+=";a6s."+zE());p&&M.push(jQy(p));g.eB(U,O,"error",M);U.X=!0}; suw=function(U,O){var M=g.kV(U.provider);if(!U.provider.gG.experiments.F0("html5_refactor_sabr_video_format_selection_logging")||O.U.id!==U.hZ){var S=[O.U.id,O.V,U.hZ,O.reason];O.token&&S.push(O.token);g.eB(U,M,"vfs",S);U.hZ=O.U.id;S=U.provider.wG.getPlayerSize();if(S.width>0&&S.height>0){S=[Math.round(S.width),Math.round(S.height)];var p=g.s3();p>1&&S.push(p);g.eB(U,M,"view",S)}U.w7||(U.provider.gG.PV()&&DB(U,"rqs2"),U.provider.videoData.U&&Hs(U.provider.videoData.U)&&U.U.set("preload",["1"]));U.w7= !0;U.X=!0}O.reason==="m"&&++U.sX===100&&Tyw(U,2);g.eB(U,M,"vps",[U.qm]);U.sA||U.reportStats(M)}; ed4=function(U){U.B>=0||(U.provider.gG.DD||U.provider.wG.getVisibilityState()!==3?U.B=g.kV(U.provider):U.Rl=!0)}; Hkw=function(U,O,M,S){if(M!==U.qm){U.sA||O=10&&U.playTimeSecs<=180&&(U.U.set("qoealert",["1"]),U.Qa=!0)),M!=="B"||U.qm!=="PL"&&U.qm!=="PB"||(U.isBuffering=!0),U.V=O);U.qm==="PL"&&(M==="B"||M==="S")||U.provider.gG.PV()?c9(U,O):(U.AG||M!=="PL"||(U.AG=!0,yv4(U,O,U.provider.wG.Xr())),hdq(U,O));M==="PL"&&g.OM(U.dH);var p=[M];M==="S"&&S&&p.push("ss."+S);g.eB(U,O,"vps", p);U.qm=M;U.BA=O;U.V=O;U.X=!0}}; Odq=function(U,O,M){if(U.provider.gG.experiments.F0("html5_refactor_sabr_audio_format_selection_logging")){O=M.U;var S=[O.audio&&O.video?O.cE?O.cE:"":O.id];O.ZN&&O.ZN.id&&S.push(O.ZN.id);O=S.join(";");O!==U.D&&(S=[O,U.D,M.reason],M.token&&S.push(M.token),g.eB(U,g.kV(U.provider),"afs",S),U.D=O)}else M.U.id!==U.D&&(S=[M.U.id,U.D,M.reason],M.token&&S.push(M.token),g.eB(U,O,"afs",S),U.D=M.U.id)}; DB=function(U,O){zu(U,"cat",O)}; W9=function(U,O,M,S,p,h){var J=g.kV(U.provider);M!==1&&M!==3&&M!==5||g.eB(U,J,"vps",[U.qm]);zu(U,"xvt","t."+J.toFixed(3)+";m."+h.toFixed(3)+";g."+O+";tt."+M+";np.0;c."+S+";d."+p)}; Tyw=function(U,O){U.r7||(zu(U,"fcnz",""+O),U.r7=!0)}; jQy=function(U){/[^a-zA-Z0-9;.!_-]/.test(U)&&(U=U.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return U}; v9=function(U){this.provider=U;this.D=!1;this.U=0;this.X=-1;this.Eh=NaN;this.B=0;this.segments=[];this.C=this.G=0;this.previouslyEnded=!1;this.Z=this.provider.wG.getVolume();this.Y=this.provider.wG.isMuted()?1:0;this.V=NK(this.provider)}; B9=function(U){U.V.startTime=U.B;U.V.endTime=U.U;var O=!1;U.segments.length&&g.E4(U.segments).isEmpty()?(U.segments[U.segments.length-1].previouslyEnded&&(U.V.previouslyEnded=!0),U.segments[U.segments.length-1]=U.V,O=!0):U.segments.length&&U.V.isEmpty()||(U.segments.push(U.V),O=!0);O?U.V.endTime===0&&(U.previouslyEnded=!1):U.V.previouslyEnded&&(U.previouslyEnded=!0);U.G+=U.U-U.B;U.V=NK(U.provider);U.V.previouslyEnded=U.previouslyEnded;U.previouslyEnded=!1;U.B=U.U}; cve=function(U){zdm(U);U.C=g.v5(function(){U.update()},100); U.Eh=g.kV(U.provider);U.V=NK(U.provider)}; zdm=function(U){g.xJ(U.C);U.C=NaN}; DKi=function(U,O,M){M-=U.Eh;return O===U.U&&M>.5}; dKy=function(U,O,M,S){this.gG=O;this.EQ=M;this.segments=[];this.experimentIds=[];this.Yy=this.HV=this.isFinal=this.delayThresholdMet=this.Qa=this.Dq=this.autoplay=this.autonav=!1;this.WV="yt";this.C=[];this.D=this.Z=null;this.sendVisitorIdHeader=this.Rl=!1;this.Y=this.pageId="";this.G=M==="watchtime";this.B=M==="playback";this.sA=M==="atr";this.fO=M==="engage";this.sendVisitorIdHeader=!1;this.uri=this.sA?"/api/stats/"+M:"//"+O.LJ+"/api/stats/"+M;S&&(this.HV=S.fs,S.rtn&&(this.D=S.rtn),this.G?(this.playerState= S.state,S.rti>0&&(this.Z=S.rti)):(this.DD=S.mos,this.EF=S.volume,S.at&&(this.adType=S.at)),S.autonav&&(this.autonav=S.autonav),S.inview!=null&&(this.Oj=S.inview),S.size&&(this.F9=S.size),S.playerwidth&&(this.playerWidth=S.playerwidth),S.playerheight&&(this.playerHeight=S.playerheight));this.UX=g.ri(O.U);this.Y=pL(O.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Y==="all"||this.Y==="once")this.AG=g.ri(O.WV);this.u$=O.Rl;this.experimentIds=bDw(O.experiments);this.hZ=O.Qa;this.WV=O.yP;this.region= O.region;this.userAge=O.userAge;this.pE=O.TA;this.dH=QJ();this.sendVisitorIdHeader=O.sendVisitorIdHeader;this.QP=O.T("vss_pings_using_networkless")||O.T("kevlar_woffle");this.q_=O.T("vss_final_ping_send_and_write");this.Ca=O.T("vss_use_send_and_write");this.pageId=O.pageId;this.mD=O.T("vss_playback_use_send_and_write");O.livingRoomAppMode&&(this.livingRoomAppMode=O.livingRoomAppMode);this.Op=O.X&&O.T("embeds_append_synth_ch_headers");g.Pn(O)&&(this.TY=O.sA);g.zI(g.KL(O))&&this.C.push(1);this.accessToken= g.Es(U);U.Q$[this.EQ]?this.X=U.Q$[this.EQ]:U.Q$.playback&&(this.X=U.Q$.playback);this.adFormat=U.adFormat;this.adQueryId=U.adQueryId;this.autoplay=a6(U);this.B&&(this.Dq=(U.T("html5_enable_log_server_autoplay")||U.T("enable_cleanup_masthead_autoplay_hack_fix"))&&U.LN&&iI(U)==="adunit"?!0:!1);this.autonav=U.isAutonav||this.autonav;this.contentVideoId=Ke(U);this.clientPlaybackNonce=U.clientPlaybackNonce;this.Qa=U.cJ;U.C&&(this.ol=U.C,this.r7=U.SS);U.mdxEnvironment&&(this.mdxEnvironment=U.mdxEnvironment); this.U=U.Yy;this.hG=U.hG;U.V&&(this.FI=U.V.itag,U.X&&U.X.itag!==this.FI&&(this.w7=U.X.itag));U.U&&Hs(U.U)&&(this.offlineDownloadUserChoice="1");this.eventLabel=iI(U);this.Yy=U.fO?!1:U.DD;this.sX=U.r4;if(O=bI(U))this.e5=O;this.gK=U.Vs;this.partnerId=U.partnerId;this.eventId=U.eventId;this.playlistId=U.jC||U.playlistId;this.gQ=U.gQ;this.Vf=U.Vf;this.Zt=U.Zt;this.Gw=U.Gw;this.subscribed=U.subscribed;this.videoId=U.videoId;this.videoMetadata=U.videoMetadata;this.visitorData=U.visitorData;this.osid=U.osid; this.hJ=U.hJ;this.referrer=U.referrer;this.YY=U.KB||U.YY;this.NL=U.M6;this.n$=U.n$;this.userGenderAge=U.userGenderAge;this.v$=U.v$;this.embedsRct=U.embedsRct;this.embedsRctn=U.embedsRctn;g.Pn(this.gG)&&U.mutedAutoplay&&(U.mutedAutoplayDurationMode===2&&U.limitedPlaybackDurationInSeconds===0&&U.endSeconds===0?this.C.push(7):this.C.push(2));U.isEmbedsShortsMode(new g.R1(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.C.push(3);g.l8(U)&&this.C.push(4);this.HA=U.CZ;U.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=U.compositeLiveIngestionOffsetToken)}; WPw=function(U,O){var M=U.sendVisitorIdHeader?U.visitorData:void 0;return g.Fy(U.gG,U.accessToken).then(function(S){return oVe(U.uri,U.gG,U.pageId,M,S,O,U.Op)})}; ByU=function(U,O){return function(){U.gG.T("html5_simplify_pings")?(U.U=U.Ka,U.cB=O(),U.dH=0,U.send()):WPw(U).then(function(M){var S=Nyq(U);S.cmt=S.len;S.lact="0";var p=O().toFixed(3);S.rt=Number(p).toString();S=g.pj(U.uri,S);U.gG.T("vss_through_gel_double")&&vHy(S);U.QP?(M==null&&(M={}),U.Ca?hE().sendAndWrite(S,M):hE().sendThenWrite(S,M)):M?g.I0(S,M):g.ox(S)})}}; Nyq=function(U){var O={ns:U.WV,el:U.eventLabel,cpn:U.clientPlaybackNonce,ver:2,cmt:U.V(U.U),fmt:U.FI,fs:U.HV?"1":"0",rt:U.V(U.cB),adformat:U.adFormat,content_v:U.contentVideoId,euri:U.u$,lact:U.dH,live:U.e5,cl:(742482130).toString(),mos:U.DD,state:U.playerState,volume:U.EF};U.subscribed&&(O.subscribed="1");Object.assign(O,U.UX);U.Y==="all"?Object.assign(O,U.AG):U.Y==="once"&&U.B&&Object.assign(O,U.AG);U.autoplay&&(O.autoplay="1");U.Dq&&(O.sautoplay="1");U.Qa&&(O.dni="1");!U.G&&U.TY&&(O.epm=xKq[U.TY]); U.isFinal&&(O["final"]="1");U.Yy&&(O.splay="1");U.hG&&(O.delay=U.hG);U.hZ&&(O.hl=U.hZ);U.region&&(O.cr=U.region);U.userGenderAge&&(O.uga=U.userGenderAge);U.userAge!==void 0&&U.pE&&(O.uga=U.pE+U.userAge);U.Ka!==void 0&&(O.len=U.V(U.Ka));!U.G&&U.experimentIds.length>0&&(O.fexp=U.experimentIds.toString());U.D!==null&&(O.rtn=U.V(U.D));U.YY&&(O.feature=U.YY);U.Vf&&(O.ctrl=U.Vf);U.Zt&&(O.ytr=U.Zt);U.w7&&(O.afmt=U.w7);U.offlineDownloadUserChoice&&(O.ODUC=U.offlineDownloadUserChoice);U.yP&&(O.lio=U.V(U.yP)); U.G?(O.idpj=U.sX,O.ldpj=U.gK,U.delayThresholdMet&&(O.dtm="1"),U.Z!=null&&(O.rti=U.V(U.Z)),U.v$&&(O.ald=U.v$),U.compositeLiveIngestionOffsetToken&&(O.clio=U.compositeLiveIngestionOffsetToken)):U.adType!==void 0&&(O.at=U.adType);U.F9&&(U.B||U.G)&&(O.size=U.F9);U.B&&U.C.length&&(O.pbstyle=U.C.join(","));U.Oj!=null&&(U.B||U.G)&&(O.inview=U.V(U.Oj));U.G&&(O.volume=xH(U,g.mV(U.segments,function(S){return S.volume})),O.st=xH(U,g.mV(U.segments,function(S){return S.startTime})),O.et=xH(U,g.mV(U.segments,function(S){return S.endTime})), A6(U.segments,function(S){return S.playbackRate!==1})&&(O.rate=xH(U,g.mV(U.segments,function(S){return S.playbackRate}))),A6(U.segments,function(S){return S.U!=="-"})&&(O.als=g.mV(U.segments,function(S){return S.U}).join(",")),A6(U.segments,function(S){return S.previouslyEnded})&&(O.pe=g.mV(U.segments,function(S){return""+ +S.previouslyEnded}).join(","))); O.muted=xH(U,g.mV(U.segments,function(S){return S.muted?1:0})); A6(U.segments,function(S){return S.visibilityState!==0})&&(O.vis=xH(U,g.mV(U.segments,function(S){return S.visibilityState}))); A6(U.segments,function(S){return S.connectionType!==0})&&(O.conn=xH(U,g.mV(U.segments,function(S){return S.connectionType}))); A6(U.segments,function(S){return S.V!==0})&&(O.blo=xH(U,g.mV(U.segments,function(S){return S.V}))); A6(U.segments,function(S){return!!S.B})&&(O.blo=g.mV(U.segments,function(S){return S.B}).join(",")); A6(U.segments,function(S){return!!S.compositeLiveStatusToken})&&(O.cbs=g.mV(U.segments,function(S){return S.compositeLiveStatusToken}).join(",")); A6(U.segments,function(S){return S.X!=="-"})&&(O.cc=g.mV(U.segments,function(S){return S.X}).join(",")); A6(U.segments,function(S){return S.clipId!=="-"})&&(O.clipid=g.mV(U.segments,function(S){return S.clipId}).join(",")); if(A6(U.segments,function(S){return!!S.audioId})){var M="au"; U.B&&(M="au_d");O[M]=g.mV(U.segments,function(S){return S.audioId}).join(",")}eJ()&&U.ol&&(O.ctt=U.ol,O.cttype=U.r7,O.mdx_environment=U.mdxEnvironment); U.fO&&(O.etype=U.BA!==void 0?U.BA:0);U.NL&&(O.uoo=U.NL);U.livingRoomAppMode&&U.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(O.clram=bkU[U.livingRoomAppMode]||U.livingRoomAppMode);U.X?Rdy(U,O):(O.docid=U.videoId,O.referrer=U.referrer,O.ei=U.eventId,O.of=U.hJ,O.osid=U.osid,O.vm=U.videoMetadata,U.adQueryId&&(O.aqi=U.adQueryId),U.autonav&&(O.autonav="1"),U.playlistId&&(O.list=U.playlistId),U.Gw&&(O.ssrt="1"),U.n$&&(O.upt=U.n$));U.B&&(U.embedsRct&&(O.rct=U.embedsRct),U.embedsRctn&&(O.rctn= U.embedsRctn),U.compositeLiveIngestionOffsetToken&&(O.clio=U.compositeLiveIngestionOffsetToken));U.HA&&(O.host_cpn=U.HA);return O}; Rdy=function(U,O){if(O&&U.X){var M=new Set(["q","feature","mos"]),S=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),p=new Set(["aqi","autonav","list","ssrt","upt"]);U.X.ns==="3pp"&&(O.ns="3pp");for(var h=g.D(Object.keys(U.X)),J=h.next();!J.done;J=h.next())J=J.value,S.has(J)||M.has(J)||p.has(J)&&!U.X[J]||(O[J]=U.X[J])}}; xH=function(U,O){return g.mV(O,U.V).join(",")}; vHy=function(U){U.indexOf("watchtime")!==-1&&g.HX("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:U}})}; tBW=function(U,O){U.attestationResponse&&WPw(U).then(function(M){M=M||{};M.method="POST";M.postParams={atr:U.attestationResponse};U.QP?U.Ca?hE().sendAndWrite(O,M):hE().sendThenWrite(O,M):g.I0(O,M)})}; bb=function(U){g.C.call(this);this.provider=U;this.C="paused";this.G=NaN;this.D=[10,10,10,40];this.Z=this.Y=0;this.ol=this.sA=this.BA=this.yP=this.B=!1;this.V=this.X=NaN;this.logger=new g.Gs("vss");this.U=new v9(U)}; Pbm=function(U){if(!U.B){U.provider.videoData.nz===16623&&g.rz(Error("Playback for EmbedPage"));var O=RQ(U,"playback");U.D=Y_W(U);cve(U.U);O.D=tv(U);U.V>0&&(O.U-=U.V);O.send();if(U.provider.videoData.jk){O=U.provider.gG;var M=U.provider.videoData,S={html5:"1",video_id:M.videoId,cpn:M.clientPlaybackNonce,ei:M.eventId,ptk:M.jk,oid:M.dl,ptchn:M.bk,pltype:M.OI,content_v:Ke(M)};M.Kq&&Object.assign(S,{m:M.Kq});O=g.pj(O.lU+"ptracking",S);mKJ(U,O)}U.provider.videoData.hG||(Avi(U),IB1(U),U.KJ());U.B=!0;U= U.U;U.U=U.aO();U.Eh=g.kV(U.provider);!(U.B===0&&U.U<5)&&U.U-U.B>2&&(U.B=U.U);U.D=!0}}; Y_W=function(U){var O=U.provider.videoData.r4,M=U.provider.videoData.Vs,S=[10+O,10,10,40+M-O,40],p,h=(p=U.provider.videoData.getPlayerResponse())==null?void 0:p.playbackTracking,J=h==null?void 0:h.videostatsScheduledFlushWalltimeSeconds;p=h==null?void 0:h.videostatsDefaultFlushIntervalSeconds;if(!(J&&J.length>0&&p))return U.logger.U(347111855,"Unexpected scheduled pings config "+J+" "+p),S;O=[J[0]+O].concat(g.N(J.slice(1).map(function(f,F){return f-J[F]})),[p+M-O, p]);return O.some(function(f){return f<0})?(U.logger.U(347111855,"Neg vss scheduled pings "+J+" "+p),S):O}; tv=function(U,O){O=O===void 0?NaN:O;var M=g.kV(U.provider);O=isNaN(O)?M:O;O=Math.ceil(O);var S=U.D[U.Y];U.Y+11E3;!(h.length>1)&&h[0].isEmpty()||f||(J.D=tv(U,p));J.send();U.Z++}},(p-M)*1E3); return U.X=p}; YH=function(U){g.B5(U.G);U.G=NaN}; nH5=function(U){U.U.update();U=U.U;U.segments.length&&U.U===U.B||B9(U);var O=U.segments;U.segments=[];return O}; RQ=function(U,O){var M=Cb7(U.provider);Object.assign(M,{state:U.C});O=new dKy(U.provider.videoData,U.provider.gG,O,M);O.U=U.provider.wG.aO();M=U.provider.videoData.clientPlaybackNonce;O.U=U.provider.wG.VA(M);U.provider.videoData.isLivePlayback||(O.Ka=U.provider.wG.getDuration(M));U.provider.videoData.U&&(M=U.provider.videoData.U.hR(O.U))&&(O.yP=M-O.U,U.provider.gG.T("html5_disable_live_dvr_shrink_for_cdm_vss")&&Le(U.provider.videoData)&&(O.U+=U.provider.wG.je(),O.yP-=U.provider.wG.je()));O.cB=g.kV(U.provider); O.segments=[NK(U.provider)];return O}; QQU=function(U,O){var M=RQ(U,"watchtime");X9m(U)&&(M.delayThresholdMet=!0,U.BA=!0);if(U.V>0){for(var S=g.D(O),p=S.next();!p.done;p=S.next())p=p.value,p.startTime-=U.V,p.endTime-=U.V;M.U-=U.V}else M.U=U.U.QA();M.segments=O;return M}; mP=function(U,O){var M=uIe(U,!isNaN(U.X));O&&(U.X=NaN);return M}; uIe=function(U,O){var M=QQU(U,nH5(U));!isNaN(U.X)&&O&&(M.Z=U.X);return M}; X9m=function(U){var O;if(O=U.provider.videoData.isLoaded()&&U.provider.videoData.hG&&U.B&&!U.BA)O=U.U,O=O.G+O.aO()-O.B>=U.provider.videoData.hG;return!!O}; Avi=function(U){U.provider.videoData.youtubeRemarketingUrl&&!U.sA&&(mKJ(U,U.provider.videoData.youtubeRemarketingUrl),U.sA=!0)}; IB1=function(U){U.provider.videoData.googleRemarketingUrl&&!U.ol&&(mKJ(U,U.provider.videoData.googleRemarketingUrl),U.ol=!0)}; q_e=function(U){if(!U.GY()&&U.B){U.C="paused";var O=mP(U);O.isFinal=!0;O.send();U.dispose()}}; ikg=function(U,O){if(!U.GY())if(g.a(O.state,2)||g.a(O.state,512)){if(U.C="paused",g.Nc(O,2)||g.Nc(O,512))g.Nc(O,2)&&(U.U.previouslyEnded=!0),U.B&&(YH(U),mP(U).send(),U.X=NaN)}else if(g.a(O.state,8)){U.C="playing";var M=U.B&&isNaN(U.G)?tv(U):NaN;if(!isNaN(M)&&(Wv(O,64)<0||Wv(O,512)<0)){var S=uIe(U,!1);S.D=M;S.send()}g.Nc(O,16)&&O.state.seekSource===58&&(U.U.previouslyEnded=!0)}else U.C="paused"}; Zky=function(U,O,M){if(!U.yP){M||(M=RQ(U,"atr"));M.attestationResponse=O;try{M.send()}catch(S){if(S.message!=="Unknown Error")throw S;}U.yP=!0}}; mKJ=function(U,O){var M=U.provider.gG;g.Fy(U.provider.gG,g.Es(U.provider.videoData)).then(function(S){var p=U.provider.gG.pageId,h=U.provider.gG.sendVisitorIdHeader?U.provider.videoData.visitorData:void 0,J=U.provider.gG.T("vss_pings_using_networkless")||U.provider.gG.T("kevlar_woffle"),f=U.provider.gG.T("allow_skip_networkless");S=oVe(O,M,p,h,S);kXg(O,S,{token:U.provider.videoData.C,j4:U.provider.videoData.SS,mdxEnvironment:U.provider.videoData.mdxEnvironment},M,void 0,J&&!f,!1,!0)})}; KPw=function(){this.endTime=this.startTime=-1;this.X="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.V=0;this.compositeLiveStatusToken=this.B=void 0;this.volume=this.connectionType=0;this.muted=!1;this.U=this.clipId="-";this.previouslyEnded=!1}; Av=function(U,O,M){this.videoData=U;this.gG=O;this.wG=M;this.U=void 0}; g.kV=function(U){return rve(U)()}; rve=function(U){if(!U.U){var O=g.O4(function(S){var p=(0,g.nM)();S&&p<=631152E6&&(U.wG.al("ytnerror",{issue:28799967,value:""+p}),p=(new Date).getTime()+2);return p},U.gG.T("html5_validate_yt_now")),M=O(); U.U=function(){return Math.round(O()-M)/1E3}; U.wG.jE()}return U.U}; Cb7=function(U){var O=U.wG.B3()||{};O.fs=U.wG.h6();O.volume=U.wG.getVolume();O.muted=U.wG.isMuted()?1:0;O.mos=O.muted;O.clipid=U.wG.D7();var M;O.playerheight=((M=U.wG.getPlayerSize())==null?void 0:M.height)||0;var S;O.playerwidth=((S=U.wG.getPlayerSize())==null?void 0:S.width)||0;U=U.videoData;M={};U.V&&(M.fmt=U.V.itag,U.X&&(U.Dq?U.X.itag!==U.V.itag:U.X.itag!=U.V.itag)&&(M.afmt=U.X.itag));M.ei=U.eventId;M.list=U.playlistId;M.cpn=U.clientPlaybackNonce;U.videoId&&(M.v=U.videoId);U.Mh&&(M.infringe=1); (U.fO?0:U.DD)&&(M.splay=1);(S=bI(U))&&(M.live=S);U.LN&&(M.sautoplay=1);U.RL&&(M.autoplay=1);U.gQ&&(M.sdetail=U.gQ);U.partnerId&&(M.partnerid=U.partnerId);U.osid&&(M.osid=U.osid);U.mL&&(M.cc=g.PWq(U.mL));return Object.assign(O,M)}; Jvg=function(U){var O=$c5();if(O)return aB4[O]||aB4.other;if(g.PF(U.gG)){U=navigator.userAgent;if(/[Ww]ireless[)]/.test(U))return 3;if(/[Ww]ired[)]/.test(U))return 30}return 0}; NK=function(U){var O=new KPw,M;O.X=((M=Cb7(U).cc)==null?void 0:M.toString())||"-";O.playbackRate=U.wG.getPlaybackRate();M=U.wG.getVisibilityState();M!==0&&(O.visibilityState=M);U.gG.w7&&(O.V=1);O.B=U.videoData.j_;O.compositeLiveStatusToken=U.videoData.compositeLiveStatusToken;M=U.wG.getAudioTrack();M.ZN&&M.ZN.id&&M.ZN.id!=="und"&&(O.audioId=M.ZN.id);O.connectionType=Jvg(U);O.volume=U.wG.getVolume();O.muted=U.wG.isMuted();O.clipId=U.wG.D7()||"-";O.U=U.videoData.gI||"-";return O}; g.IQ=function(U,O){g.C.call(this);var M=this;this.provider=U;this.X=!1;this.B=new Map;this.qm=new g.fD;this.BB={Sug:function(){return M.qoe}, RYA:function(){return M.U}, UXA:function(){return M.V}}; this.provider.videoData.cT()&&!this.provider.videoData.qy&&(this.U=new bb(this.provider),this.U.V=this.provider.videoData.sX/1E3,g.X(this,this.U),this.qoe=new g.H9(this.provider,O),g.X(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.x$=this.provider.videoData.clientPlaybackNonce)&&this.B.set(this.x$,this.U));if(U.gG.playerCanaryState==="canary"||U.gG.playerCanaryState==="holdback")this.V=new Gu(this.provider),g.X(this,this.V)}; EHe=function(U){return!!U.U&&!!U.qoe}; P9=function(U){U.V&&u4y(U.V);U.qoe&&ed4(U.qoe)}; LPg=function(U){if(U.qoe){U=U.qoe;for(var O=U.provider.videoData,M=U.provider.gG,S=g.D(M.qT),p=S.next();!p.done;p=S.next())DB(U,p.value);if(U.provider.T("html5_enable_qoe_cat_list"))for(S=g.D(O.RE),p=S.next();!p.done;p=S.next())DB(U,p.value);else O.qT&&DB(U,U.provider.videoData.qT);O.KE()&&(S=O.U,zS(O)&&DB(U,"manifestless"),S&&Rb(S)&&DB(U,"live-segment-"+Rb(S).toFixed(1)));$u(O)?DB(U,"sabr"):U.mA(dd(O));if(V7(O)||O.Js())O.Js()&&DB(U,"ssa"),DB(U,"lifa");Le(O)&&DB(U,"cdm");O.gatewayExperimentGroup&& (S=O.gatewayExperimentGroup,S==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?S="spkadtrt":S==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(S="spkadctrl"),DB(U,S));M.yP!=="yt"&&U.U.set("len",[O.lengthSeconds.toFixed(2)]);O.cotn&&!ku(O)&&U.F5(!0);M.PV()&&(O=S_g())&&U.al("cblt",{m:O});if(M.T("html5_log_screen_diagonal")){M=U.al;var h;O=((h=window.H5vccScreen)==null?0:h.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;M.call(U,"cbltdiag",{v:O})}}}; VBi=function(U){if(U.provider.wG.ZD()){if(U.X)return;U.X=!0}U.U&&Pbm(U.U);if(U.V){U=U.V;var O=g.kV(U.provider);U.U<0&&(U.U=O,U.delay.start());U.V=O;U.X=O}}; oHg=function(U,O){U.U&&(U=U.U,O===58?U.U.update():U.B&&(YH(U),mP(U).send(),U.X=NaN))}; ku5=function(U,O){if(g.Nc(O,1024)||g.Nc(O,512)||g.Nc(O,4)){if(U.V){var M=U.V;M.V>=0||(M.U=-1,M.delay.stop())}U.qoe&&(M=U.qoe,M.Y||(M.B=-1))}if(U.provider.videoData.enableServerStitchedDai&&U.x$){var S;(S=U.B.get(U.x$))==null||ikg(S,O)}else U.U&&ikg(U.U,O);if(U.qoe){S=U.qoe;M=O.state;var p=g.kV(S.provider),h=S.getPlayerState(M);Hkw(S,p,h,M.seekSource||void 0);h=M.p6;g.a(M,128)&&h&&(h.Ee=h.Ee||"",Gug(S,p,h.errorCode,h.mV,h.Ee));(g.a(M,2)||g.a(M,128))&&S.reportStats(p);M.isPlaying()&&!S.Y&&(S.B>=0&& S.U.set("user_intent",[S.B.toString()]),S.Y=!0);FPg(S)}U.V&&(S=U.V,qxe(S),S.playerState=O.state,S.V>=0&&g.Nc(O,16)&&S.seekCount++,O.state.isError()&&S.send());U.provider.wG.ZD()&&(U.qm=O.state)}; w9i=function(U){U.V&&U.V.send();if(U.qoe){var O=U.qoe;if(O.X){O.qm==="PL"&&(O.qm="N");var M=g.kV(O.provider);g.eB(O,M,"vps",[O.qm]);O.Y||(O.B>=0&&O.U.set("user_intent",[O.B.toString()]),O.Y=!0);O.provider.gG.PV()&&O.al("finalized",{});O.Ca=!0;O.reportStats(M)}}if(U.provider.videoData.enableServerStitchedDai)for(O=g.D(U.B.values()),M=O.next();!M.done;M=O.next())q_e(M.value);else U.U&&q_e(U.U);U.dispose()}; Uwy=function(U,O){U.U&&Zky(U.U,O)}; ORm=function(U){if(!U.U)return null;var O=RQ(U.U,"atr");return function(M){U.U&&Zky(U.U,M,O)}}; s37=function(U,O,M,S){M.adFormat=M.WV;var p=O.wG;O=new bb(new Av(M,O.gG,{getDuration:function(){return M.lengthSeconds}, getCurrentTime:function(){return p.getCurrentTime()}, aO:function(){return p.aO()}, VA:function(){return p.VA()}, ZD:function(){return p.ZD()}, Xr:function(){return p.Xr()}, getPlayerSize:function(){return p.getPlayerSize()}, getAudioTrack:function(){return M.getAudioTrack()}, getPlaybackRate:function(){return p.getPlaybackRate()}, Ag:function(){return p.Ag()}, getVisibilityState:function(){return p.getVisibilityState()}, f6:function(){return p.f6()}, B3:function(){return p.B3()}, getVolume:function(){return p.getVolume()}, isMuted:function(){return p.isMuted()}, h6:function(){return p.h6()}, D7:function(){return p.D7()}, getProximaLatencyPreference:function(){return p.getProximaLatencyPreference()}, jE:function(){p.jE()}, al:function(h,J){p.al(h,J)}, zM:function(){return p.zM()}, je:function(){return p.je()}})); O.V=S;g.X(U,O);return O}; gK7=function(){this.P$=0;this.B=this.LF=this.fX=this.V=NaN;this.U={};this.bandwidthEstimate=NaN}; nk=function(U,O,M){g.C.call(this);var S=this;this.gG=U;this.wG=O;this.V=M;this.U=new Map;this.x$="";this.BB={ao:function(){return Array.from(S.U.keys())}}}; Mv4=function(U,O){U.U.has(O)&&(w9i(U.U.get(O)),U.U.delete(O))}; SLi=function(){this.U=g.GO;this.array=[]}; hp4=function(U,O,M){var S=[];for(O=p2i(U,O);OM)break}return S}; Jm5=function(U,O){var M=[];U=g.D(U.array);for(var S=U.next();!S.done&&!(S=S.value,S.contains(O)&&M.push(S),S.start>O);S=U.next());return M}; ym1=function(U){return U.array.slice(p2i(U,0x7ffffffffffff),U.array.length)}; p2i=function(U,O){U=FN(U.array,function(M){return O-M.start||1}); return U<0?-(U+1):U}; fHy=function(U,O){var M=NaN;U=g.D(U.array);for(var S=U.next();!S.done;S=U.next())if(S=S.value,S.contains(O)&&(isNaN(M)||S.endO&&(isNaN(M)||S.startU.mediaTime+U.G&&O1)U.X=!0;if((p===void 0?0:p)||isNaN(U.V))U.V=O;if(U.U)O!==U.mediaTime&&(U.U=!1);else if(O>0&&U.mediaTime===O){p=1500;if(U.gG.T("html5_buffer_underrun_transition_fix")){p=g.DF(U.gG.experiments,"html5_min_playback_advance_for_steady_state_secs");var h=g.DF(U.gG.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");p=p>0&&h>0&&Math.abs(O-U.V)(S||!U.X?p:400)}U.mediaTime=O;U.B=M;return!1}; j3W=function(U,O){this.videoData=U;this.U=O}; epg=function(U,O,M){return O.aN(M).then(function(){return qv(new j3W(O,O.B))},function(S){S instanceof Error&&g.rz(S); var p=CP('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),h=uA('audio/mp4; codecs="mp4a.40.2"'),J=p||h,f=O.isLivePlayback&&!g.yh(U.G,!0);S="fmt.noneavailable";f?S="html5.unsupportedlive":J||(S="html5.missingapi");J=f||!J?2:1;p={buildRej:"1",a:O.MF(),d:!!O.cB,drm:O.Fk(),f18:O.WN.indexOf("itag=18")>=0,c18:p};O.U&&(O.Fk()?(p.f142=!!O.U.U["142"],p.f149=!!O.U.U["149"],p.f279=!!O.U.U["279"]):(p.f133=!!O.U.U["133"],p.f140=!!O.U.U["140"],p.f242=!!O.U.U["242"]),p.cAAC=h,p.cAVC=uA('video/mp4; codecs="avc1.42001E"'), p.cVP9=uA('video/webm; codecs="vp9"'));O.G&&(p.drmsys=O.G.keySystem,h=0,O.G.U&&(h=Object.keys(O.G.U).length),p.drmst=h);return new Ii(S,p,J)})}; XI=function(U){this.data=window.Float32Array?new Float32Array(U):Array(U);this.V=this.U=U-1}; HRW=function(U){return U.data[U.U]||0}; zpU=function(U){this.G=U;this.B=this.V=0;this.X=new XI(50)}; qK=function(U,O,M){g.H_.call(this);this.videoData=U;this.experiments=O;this.G=M;this.V=[];this.FX=0;this.B=!0;this.X=!1;this.C=0;M=new cmy;U.latencyClass==="ULTRALOW"&&(M.G=!1);U.pE?M.V=3:g.I6(U)&&(M.V=2);U.latencyClass==="NORMAL"&&(M.X=!0);g.DF(O,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.DF(O,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||U.latencyClass!=="LOW"&&U.latencyClass!=="ULTRALOW"||(M.X=!0);var S=g.DF(O,"html5_liveness_drift_proxima_override");if(dd(U)!== 0&&S){M.U=S;var p;((p=U.U)==null?0:nf5(p))&&M.U--}$u(U)&&O.F0("html5_sabr_parse_live_metadata_playback_boundaries")&&(M.Z=!0);if(g.kJ("trident/")||g.kJ("edge/"))p=g.DF(O,"html5_platform_minimum_readahead_seconds")||3,M.B=Math.max(M.B,p);g.DF(O,"html5_minimum_readahead_seconds")&&(M.B=g.DF(O,"html5_minimum_readahead_seconds"));g.DF(O,"html5_maximum_readahead_seconds")&&(M.Y=g.DF(O,"html5_maximum_readahead_seconds"));O.F0("html5_force_adaptive_readahead")&&(M.G=!0);if(p=g.DF(O,"html5_liveness_drift_chunk_override"))M.U= p;cB(U)&&(M.U=(M.U+1)/5,U.latencyClass==="LOW"&&(M.U*=2));if(U.latencyClass==="ULTRALOW"||U.latencyClass==="LOW")M.C=g.DF(O,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,M.D=g.DF(O,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=M;this.D=this.policy.V!==1;this.U=ub(this,Dwm(this,isNaN(U.liveChunkReadahead)?3:U.liveChunkReadahead,U))}; dw7=function(U,O){if(O)return O=U.videoData,O=Dwm(U,isNaN(O.liveChunkReadahead)?3:O.liveChunkReadahead,O),ub(U,O);if(U.V.length){if(Math.min.apply(null,U.V)>1)return ub(U,U.U-1);if(U.policy.G)return ub(U,U.U+1)}return U.U}; WJ4=function(U,O){if(!U.V.length)return!1;var M=U.U;U.U=dw7(U,O===void 0?!1:O);if(O=M!==U.U)U.V=[],U.FX=0;return O}; ib=function(U,O){return O>=U.P7()-NcJ(U)}; vKy=function(U,O,M){O=ib(U,O);M||O?O&&(U.B=!0):U.B=!1;U.D=U.policy.V===2||U.policy.V===3&&U.B}; Bcq=function(U,O){O=ib(U,O);U.X!==O&&U.publish("livestatusshift",O);U.X=O}; NcJ=function(U){var O=U.policy.U;U.X||(O=Math.max(O-1,0));return O*ZB(U)}; Dwm=function(U,O,M){M.pE&&O--;cB(M)&&(O=1);if(dd(M)!==0&&(U=g.DF(U.experiments,"html5_live_chunk_readahead_proxima_override"))){O=U;var S;((S=M.U)==null?0:nf5(S))&&O++}return O}; ZB=function(U){return U.videoData.U?Rb(U.videoData.U)||5:5}; ub=function(U,O){O=Math.max(Math.max(1,Math.ceil(U.policy.B/ZB(U))),O);return Math.min(Math.min(8,Math.floor(U.policy.Y/ZB(U))),O)}; cmy=function(){this.B=0;this.Y=Infinity;this.G=!0;this.U=2;this.V=1;this.X=!1;this.D=10;this.Z=!1;this.C=1}; aQ=function(U){g.C.call(this);this.wG=U;this.U=0;this.V=null;this.C=this.X=0;this.B={};this.gG=this.wG.J();this.G=new g.UM(this.Ce,1E3,this);this.pE=new Kk({delayMs:g.DF(this.gG.experiments,"html5_seek_timeout_delay_ms")});this.QP=new Kk({delayMs:g.DF(this.gG.experiments,"html5_long_rebuffer_threshold_ms")});this.w7=ry(this,"html5_seek_set_cmt");this.HA=ry(this,"html5_seek_jiggle_cmt");this.Yy=ry(this,"html5_seek_new_elem");this.HV=ry(this,"html5_unreported_seek_reseek");this.BA=ry(this,"html5_long_rebuffer_jiggle_cmt"); this.Ca=ry(this,"html5_long_rebuffer_ssap_clip_not_match");this.sA=new Kk({delayMs:2E4});this.hZ=ry(this,"html5_seek_new_elem_shorts");this.NL=ry(this,"html5_seek_new_media_source_shorts_reuse");this.Rl=ry(this,"html5_seek_new_media_element_shorts_reuse");this.TY=ry(this,"html5_reseek_after_time_jump");this.Y=ry(this,"html5_gapless_handoff_close_end_long_rebuffer");this.yP=ry(this,"html5_gapless_slow_seek");this.Z=ry(this,"html5_gapless_slice_append_stuck");this.ol=ry(this,"html5_gapless_slow_start"); this.D=ry(this,"html5_ads_preroll_lock_timeout");this.hG=ry(this,"html5_ssap_ad_longrebuffer_new_element");this.r7=new Kk({delayMs:g.DF(this.gG.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tH:!this.gG.T("html5_report_slow_ads_as_error")});this.Qa=new Kk({delayMs:g.DF(this.gG.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tH:!this.gG.T("html5_skip_slow_buffering_ad")});this.AG=new Kk({delayMs:g.DF(this.gG.experiments,"html5_slow_start_timeout_delay_ms")});this.Ka=ry(this,"html5_slow_start_no_media_source"); g.X(this,this.G)}; ry=function(U,O){var M=g.DF(U.gG.experiments,O+"_delay_ms");U=U.gG.T(O+"_cfl");return new Kk({delayMs:M,tH:U})}; xwe=function(U,O){U.U=O}; E_=function(U,O,M,S,p,h,J,f){O.test(M)?(U.iH(p,O,J),O.tH||h()):(O.y_&&O.V&&!O.X?(M=(0,g.nM)(),S?O.U||(O.U=M):O.U=0,h=!S&&M-O.V>O.y_,M=O.U&&M-O.U>O.C2||h?O.X=!0:!1):M=!1,M&&(f=Object.assign({},U.aT(O),f),f.wn=J,f.we=p,f.wsuc=S,U.wG.al("workaroundReport",f),S&&(O.reset(),U.B[p]=!1)))}; Kk=function(U){var O=U===void 0?{}:U;U=O.delayMs===void 0?0:O.delayMs;var M=O.C2===void 0?1E3:O.C2;var S=O.y_===void 0?3E4:O.y_;O=O.tH===void 0?!1:O.tH;this.U=this.V=this.B=this.startTimestamp=0;this.X=!1;this.G=Math.ceil(U/1E3);this.C2=M;this.y_=S;this.tH=O}; YLi=function(U){g.C.call(this);var O=this;this.wG=U;this.D=this.U=this.rG=this.mediaElement=this.playbackData=null;this.B=0;this.G=this.ol=this.X=null;this.BA=!1;this.r7=0;this.yP=!1;this.timestampOffset=0;this.Y=!0;this.HA=0;this.Yy=this.AG=!1;this.C=0;this.NL=!1;this.sA=0;this.gG=this.wG.J();this.videoData=this.wG.getVideoData();this.policy=new bRw;this.Z=new aQ(this.wG);this.pE=this.TY=this.Ka=this.V=NaN;this.Ca=new g.UM(function(){Rpm(O,!1)},2E3); this.Qa=new g.UM(function(){Lk(O)}); this.hZ=new g.UM(function(){O.BA=!0;tvU(O,{})}); this.w7=NaN;this.QP=new g.UM(function(){var M=O.gG.fO;M.U+=1E4/36E5;M.U-M.B>1/6&&(EAw(M),M.B=M.U);O.QP.start()},1E4); g.X(this,this.Z);g.X(this,this.Ca);g.X(this,this.hZ);g.X(this,this.Qa);g.X(this,this.QP)}; IHU=function(U,O){U.playbackData=O;U.videoData.isLivePlayback&&(U.D=new zpU(function(){a:{if(U.playbackData&&U.playbackData.U.U){if(zS(U.videoData)&&U.rG){var M=U.rG.rY.aA()||0;break a}if(U.videoData.U){M=U.videoData.U.sA;break a}}M=0}return M}),U.U=new qK(U.videoData,U.gG.experiments,function(){return U.S9(!0)})); Vn(U.wG)?(O=mwW(U),O.VL?($u(U.videoData)&&U.xu(O.VL,O.startSeconds),U.B=O.startSeconds):O.startSeconds>0&&U.seekTo(O.startSeconds,{uH:"seektimeline_startPlayback",seekSource:15}),U.Y=!1):Am7(U)||(U.B=U.B||(g.Os(U.videoData)?0:U.videoData.startSeconds)||0)}; nK1=function(U,O){(U.rG=O)?PPq(U,!0):oQ(U)}; Q3q=function(U,O){g.OM(U.Z.G);U.T("html5_exponential_memory_for_sticky")&&(O.state.isPlaying()?g.OM(U.QP):U.QP.stop());if(U.mediaElement)if(O.oldState.state===8&&ez(O.state)&&O.state.isBuffering()){O=U.mediaElement.getCurrentTime();var M=U.mediaElement.wL();var S=U.T("manifestless_post_live_ufph")||U.T("manifestless_post_live")?To(M,Math.max(O-3.5,0)):To(M,O-3.5);S>=0&&O>M.end(S)-1.1&&S+10?(kH(U.wG,U.getCurrentTime()+U.videoData.limitedPlaybackDurationInSeconds),U.Yy=!0):U.videoData.isLivePlayback&&U.videoData.endSeconds>0&&(kH(U.wG,U.getCurrentTime()+U.videoData.endSeconds),U.Yy=!0))}; X2W=function(U,O){var M=U.getCurrentTime(),S=U.isAtLiveHead(M);if(U.D&&S){var p=U.D;if(p.U&&!(M>=p.V&&M50&&p.V.shift())),p=U.U,vKy(p,M,O===void 0?!0:O),Bcq(p,M),O&&Rpm(U,!0));S!==U.AG&&(O=U.getCurrentTime()-U.pE<=500,M=U.r7>=1E3,O||M||(O=U.wG.cV(),O.qoe&&(O=O.qoe,M=g.kV(O.provider), g.eB(O,M,"lh",[S?"1":"0"])),U.AG=S,U.r7++,U.pE=U.getCurrentTime()))}; Rpm=function(U,O){if(U.U){var M=U.U;var S=U.getCurrentTime();!ib(M,S)&&M.jr()?(M.policy.X&&(M.policy.U=Math.max(M.policy.U+M.policy.C,M.policy.D)),M=Infinity):M=S0&&pD(U.mediaElement)>0&&(U.V=wy(U,U.V,!1)),!U.mediaElement||!KJ5(U))U.Qa.start(750);else if(!isNaN(U.V)&&isFinite(U.V)){var O=U.TY-(U.V-U.timestampOffset);if(!(O===0||U.T("html5_enable_new_seek_timeline_logic")&&Math.abs(O)<.005))if(O=U.mediaElement.getCurrentTime()-U.V,Math.abs(O)<=U.HA||U.T("html5_enable_new_seek_timeline_logic")&&Math.abs(O)<.005)rmJ(U);else{if(U.videoData.jR)U.videoData.jR= !1;else if(!HB(U.videoData)&&U.V>=U.S9()-.1){U.V=U.S9();U.X.resolve(U.S9());U.wG.u_();return}try{var M=U.V-U.timestampOffset;U.mediaElement.seekTo(M);U.Z.U=M;U.TY=M;U.B=U.V;U.T("html5_enable_new_seek_timeline_logic")&&(U.yP=!1)}catch(S){}}}}; KJ5=function(U){if(!U.mediaElement||U.mediaElement.K9()===0||U.mediaElement.hasError())return!1;var O=U.mediaElement.getCurrentTime()>0;if(!(U.videoData.B&&U.videoData.B.U||U.videoData.isLivePlayback)&&U.videoData.Fk())return O;if(U.V>=0){var M=U.mediaElement.Et();if(M.length||!O)return jh(M,U.V-U.timestampOffset)}return O}; rmJ=function(U){U.X&&(U.X.resolve(U.mediaElement.getCurrentTime()),U.Z.V=null)}; ZR5=function(U,O){U.G&&(U.G.resolve(O),U.wG.Ru(),U.gG.PV()&&(O=U.aT(),O["native"]=""+ +U.yP,O.otgt=""+(U.V+U.timestampOffset),U.wG.al("seekEnd",O)));oQ(U)}; oQ=function(U){U.V=NaN;U.TY=NaN;U.X=null;U.ol=null;U.G=null;U.BA=!1;U.yP=!1;U.HA=0;U.Ca.stop();U.hZ.stop()}; LJJ=function(U,O,M){var S=U.mediaElement,p=O.type;switch(p){case "seeking":var h=S.getCurrentTime()+U.timestampOffset;if(!U.X||U.yP&&h!==U.V){var J=!!U.X;U.X=new M6;U.T("html5_enable_new_seek_timeline_logic")&&U.X.then(function(F){ZR5(U,F)},function(){oQ(U)}); if(U.videoData.isAd()){var f;oO5({adCpn:U.videoData.clientPlaybackNonce,contentCpn:(f=U.videoData.CZ)!=null?f:""},O.U)}U.TY=h;xwe(U.Z,S.getCurrentTime());U.seekTo(h,{seekSource:104,uH:"seektimeline_mediaElementEvent"});M&&aHm(M,h*1E3,!!J);U.yP=!0}break;case "seeked":rmJ(U);break;case "loadedmetadata":Vn(U.wG)||EKw(U);Lk(U);break;case "progress":Lk(U);break;case "pause":U.C=U.getCurrentTime()}U.C&&((p==="play"||p==="playing"||p==="timeupdate"||p==="progress")&&U.getCurrentTime()-U.C>10&&(U.T("html5_enable_new_media_element_puase_jump")? (U.wG.iH(new Ii("qoe.restart",{reason:"pauseJump"})),U.wG.Mo(),U.seekTo(U.C,{uH:"pauseJumpNewElement"})):U.seekTo(U.C,{uH:"pauseJump"})),p!=="pause"&&p!=="play"&&p!=="playing"&&p!=="progress"&&(U.C=0))}; Vv7=function(U){return(PB(U.videoData)||!!U.videoData.liveUtcStartSeconds)&&(!!U.videoData.liveUtcStartSeconds||Am7(U))&&!!U.videoData.U}; Am7=function(U){return!!U.videoData.startSeconds&&isFinite(U.videoData.startSeconds)&&U.videoData.startSeconds>1E9}; mwW=function(U){var O=0,M=NaN,S="";if(!U.Y)return{startSeconds:O,VL:M,source:S};U.videoData.Ca?O=U.videoData.Ka:HB(U.videoData)&&(O=Infinity);if(g.I6(U.videoData))return{startSeconds:O,VL:M,source:S};U.videoData.startSeconds?(S="ss",O=U.videoData.startSeconds):U.videoData.u$&&(S="stss",O=U.videoData.u$);U.videoData.liveUtcStartSeconds&&(M=U.videoData.liveUtcStartSeconds);if(isFinite(O)&&(O>U.S9()||OU.S9()||M0?(S.onesie="0",U.handleError(new Ii("html5.missingapi",S)),!1):!0}; SSe=function(U){var O=EE();Ld(O,U);return g.TE(O,$My())}; sU4=function(U,O){var M,S,p,h,J,f,F,l,G,T,e,H,z,W,v,x,t,m,P,u,w,E,Sm,JU,Uw,Z;return g.A(function(k){if(k.U==1)return O.fetchType="onesie",M=vXi(O,U.getPlayerSize(),U.getVisibilityState()),S=new d8(U,M),g.Y(k,S.fetch(),2);p=k.V;h={player_response:p};O.loading=!1;J=U.mj.i5;if(S.Qo){f=g.D(S.Qo.entries());for(F=f.next();!F.done;F=f.next())l=F.value,G=g.D(l),T=G.next().value,e=G.next().value,H=T,z=e,J.U.set(H,z,180),H===O.videoId&&(W=z.wk(),O.LL=W);J.eG=S}v=g.D(S.OZ.entries());for(x=v.next();!x.done;x= v.next())t=x.value,m=g.D(t),P=m.next().value,u=m.next().value,w=P,E=u,J.V.set(w,E,180);g.Us(O,h,!0);if(O.loading||kM(O))return k.return(Promise.resolve());J.U.removeAll();J.V.removeAll();O.LL=[];Sm={};JU="onesie.response";Uw=0;O.errorCode?(JU="auth",Sm.ec=O.errorCode,Sm.ed=O.errorDetail,Sm.es=O.WO||"",Uw=2):(Sm.successButUnplayable="1",Sm.disposed=""+ +O.GY(),Sm.afmts=""+ +/adaptiveFormats/.test(p),Sm.cpn=O.clientPlaybackNonce);Z=new Ii(JU,Sm,Uw);return k.return(Promise.reject(Z))})}; UVw=function(U,O){var M,S,p,h,J,f,F,l,G,T,e;return g.A(function(H){switch(H.U){case 1:M=O.isAd(),S=!M,p=M?1:3,h=0;case 2:if(!(h0)){H.tZ(5);break}return g.Y(H,ZM(5E3),6);case 6:J=new g.sT("Retrying OnePlatform request",{attempt:h}),g.rz(J);case 5:return g.dW(H,7),g.Y(H,px1(U,O),9);case 9:return H.return();case 7:f=g.Bg(H);F=nP(f);l=F.errorCode;G=U.J();T=G.T("html5_use_network_error_code_enums")?401:"401";S&&l==="manifest.net.badstatus"&&F.details.rc===T&&(S=!1,h===p-1&&(p+= 1));if(h===p-1)return e=huw(M,F.details),e.details.backend="op",e.details.originec=l,H.return(Promise.reject(e));if(l==="auth"||l==="manifest.net.retryexhausted")return H.return(Promise.reject(F));U.handleError(F);if(Po(F.severity)){H.tZ(4);break}case 3:h++;H.tZ(2);break;case 4:return H.return(Promise.reject(huw(M,{backend:"op"})))}})}; px1=function(U,O){function M(JU){JU.readyState===2&&U.Xh("ps_c")} var S,p,h,J,f,F,l,G,T,e,H,z,W,v,x,t,m,P,u,w,E,Sm;return g.A(function(JU){switch(JU.U){case 1:O.fetchType="gp";S=U.J();p=g.Fy(S,g.Es(O));if(!p.U){h=p.getValue();JU.tZ(2);break}return g.Y(JU,p.U,3);case 3:h=JU.V;case 2:return J=h,f=SSe(J),F=vXi(O,U.getPlayerSize(),U.getVisibilityState()),l=g.ya(JMe),G=g.Es(O),T=(0,g.nM)(),e=!1,H="empty",z=0,U.Xh("psns"),W={yV:M},g.Y(JU,g.Mz(f,F,l,void 0,W),4);case 4:v=JU.V;U.Xh("psnr");if(O.GY())return JU.return();v?"error"in v&&v.error?(e=!0,H="esf:"+v.error.message, z=v.error.code):v.errorMetadata&&(e=!0,H="its",z=v.errorMetadata.status):e=!0;if(e)return x=0,t=((0,g.nM)()-T).toFixed(),m={},m=S.T("html5_use_network_error_code_enums")?{backend:"op",rc:z,rt:t,reason:H,has_kpt:O.Qa?"1":"0",has_mdx_env:O.mdxEnvironment?"1":"0",has_omit_key_flag:g.wZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:S.pageId?"1":"0",has_token:G?"1":"0",has_vvt:O.ol?"1":"0",is_mdx:O.isMdxPlayback?"1":"0",mdx_ctrl:O.Vf||"",token_eq:G===g.Es(O)?"1":"0"}:{backend:"op", rc:""+z,rt:t,reason:H,has_kpt:O.Qa?"1":"0",has_mdx_env:O.mdxEnvironment?"1":"0",has_omit_key_flag:g.wZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:S.pageId?"1":"0",has_token:G?"1":"0",has_vvt:O.ol?"1":"0",is_mdx:O.isMdxPlayback?"1":"0",mdx_ctrl:O.Vf||"",token_eq:G===g.Es(O)?"1":"0"},P="manifest.net.connect",z===429?(P="auth",x=2):z>200&&(P="manifest.net.badstatus",z===400&&(x=2)),JU.return(Promise.reject(new Ii(P,m,x)));O.loading=!1;g.Us(O,{raw_player_response:v},!0); u=v;g.qn(O.J())&&u&&u.trackingParams&&PZ(u.trackingParams);if(O.errorCode)return w={ec:O.errorCode,ed:O.errorDetail,es:O.WO||""},JU.return(Promise.reject(new Ii("auth",w,2)));if(!O.loading&&!kM(O))return E=O.isAd()?"auth":"manifest.net.retryexhausted",Sm=O.isAd()?2:1,JU.return(Promise.reject(new Ii(E,{successButUnplayable:"1",hasMedia:g.tK(O)?"1":"0"},Sm)));g.Dq(JU)}})}; w2e=function(U,O,M){function S(z){z=nP(z);if(Po(z.severity))return Promise.reject(z);U.handleError(z);return!1} function p(){return!0} var h,J,f,F,l,G,T,e,H;return g.A(function(z){switch(z.U){case 1:var W=U.J(),v=U.getPlayerSize(),x=U.getVisibilityState();U.isFullscreen();var t=window.location.search;if(O.partnerId===38&&W.playerStyle==="books")t=O.videoId.indexOf(":"),t=g.pj("//play.google.com/books/volumes/"+O.videoId.slice(0,t)+"/content/media",{aid:O.videoId.slice(t+1),sig:O.OJ});else if(O.partnerId===30&&W.playerStyle==="docs")t=g.pj("https://docs.google.com/get_video_info",{docid:O.videoId,authuser:O.wv,authkey:O.uv,eurl:W.Rl}); else if(O.partnerId===33&&W.playerStyle==="google-live")t=g.pj("//google-liveplayer.appspot.com/get_video_info",{key:O.videoId});else{W.yP!=="yt"&&g.K5(Error("getVideoInfoUrl for invalid namespace: "+W.yP));var m={html5:"1",video_id:O.videoId,cpn:O.clientPlaybackNonce,eurl:W.Rl,ps:W.playerStyle,el:iI(O),hl:W.Qa,list:O.playlistId,agcid:O.zK,aqi:O.adQueryId,sts:20179,lact:QJ()};Object.assign(m,W.U);W.forcedExperiments&&(m.forced_experiments=W.forcedExperiments);O.ol?(m.vvt=O.ol,O.mdxEnvironment&&(m.mdx_environment= O.mdxEnvironment)):g.Es(O)&&(m.access_token=g.Es(O));O.adFormat&&(m.adformat=O.adFormat);O.slotPosition>=0&&(m.slot_pos=O.slotPosition);O.breakType&&(m.break_type=O.breakType);O.sP!==null&&(m.ad_id=O.sP);O.ll!==null&&(m.ad_sys=O.ll);O.cL!==null&&(m.encoded_ad_playback_context=O.cL);W.captionsLanguagePreference&&(m.cc_lang_pref=W.captionsLanguagePreference);W.r7&&W.r7!==2&&(m.cc_load_policy=W.r7);var P=g.on(g.Vm(),65);g.gG(W)&&P!=null&&!P&&(m.device_captions_on="1");W.mute&&(m.mute=W.mute);O.annotationsLoadPolicy&& W.annotationsLoadPolicy!==2&&(m.iv_load_policy=O.annotationsLoadPolicy);O.Sj&&(m.endscreen_ad_tracking=O.Sj);(P=W.Ca.get(O.videoId))&&P.YC&&(m.ic_track=P.YC);O.QP&&(m.itct=O.QP);a6(O)&&(m.autoplay="1");O.mutedAutoplay&&(m.mutedautoplay=O.mutedAutoplay);O.isAutonav&&(m.autonav="1");O.s6&&(m.noiba="1");O.isMdxPlayback&&(m.mdx="1",m.ytr=O.Zt);O.mdxControlMode&&(m.mdx_control_mode=O.mdxControlMode);O.ej&&(m.ytrcc=O.ej);O.Ga&&(m.utpsa="1");O.isFling&&(m.is_fling="1");O.isInlinePlaybackNoAd&&(m.mute="1"); O.vnd&&(m.vnd=O.vnd);O.forceAdsUrl&&(P=O.forceAdsUrl.split("|").length===3,m.force_ad_params=P?O.forceAdsUrl:"||"+O.forceAdsUrl);O.FI&&(m.preload=O.FI);v.width&&(m.width=v.width);v.height&&(m.height=v.height);(O.fO?0:O.DD)&&(m.splay="1");O.ypcPreview&&(m.ypc_preview="1");Ke(O)&&(m.content_v=Ke(O));O.pE&&(m.livemonitor=1);W.BA&&(m.authuser=W.BA);W.pageId&&(m.pageid=W.pageId);W.Yy&&(m.ei=W.Yy);W.X&&(m.iframe="1");O.contentCheckOk&&(m.cco="1");O.racyCheckOk&&(m.rco="1");W.D&&O.qc&&(m.live_start_walltime= O.qc);W.D&&O.f9&&(m.live_manifest_duration=O.f9);W.D&&O.playerParams&&(m.player_params=O.playerParams);W.D&&O.cycToken&&(m.cyc=O.cycToken);W.D&&O.G$&&(m.tkn=O.G$);x!==0&&(m.vis=x);W.enableSafetyMode&&(m.enable_safety_mode="1");O.Qa&&(m.kpt=O.Qa);O.aE&&(m.kids_age_up_mode=O.aE);O.kidsAppInfo&&(m.kids_app_info=O.kidsAppInfo);O.sK&&(m.upg_content_filter_mode="1");W.widgetReferrer&&(m.widget_referrer=W.widgetReferrer.substring(0,128));O.yP?(v=O.yP.latitudeE7!=null&&O.yP.longitudeE7!=null?O.yP.latitudeE7+ ","+O.yP.longitudeE7:",",v+=","+(O.yP.clientPermissionState||0)+","+(O.yP.locationRadiusMeters||"")+","+(O.yP.locationOverrideToken||"")):v=null;v&&(m.uloc=v);O.qU&&(m.internalipoverride=O.qU);W.embedConfig&&(m.embed_config=W.embedConfig);W.GB&&(m.co_rel="1");W.ancestorOrigins.length>0&&(m.ancestor_origins=Array.from(W.ancestorOrigins).join(","));W.homeGroupInfo!==void 0&&(m.home_group_info=W.homeGroupInfo);W.livingRoomAppMode!==void 0&&(m.living_room_app_mode=W.livingRoomAppMode);W.enablePrivacyFilter&& (m.enable_privacy_filter="1");O.isLivingRoomDeeplink&&(m.is_living_room_deeplink="1");O.lT&&O.uT&&(m.clip=O.lT,m.clipt=O.uT);O.d1&&(m.disable_watch_next="1");O.DO&&(m.forced_by_var="1");for(var u in m)!yM4.has(u)&&m[u]&&String(m[u]).length>512&&(g.rz(Error("GVI param too long: "+u)),m[u]="");u=W.lU;g.ik(W)&&(u=hR(u.replace(/\b(?:www|web)([.-])/,"tv$1"))||W.lU);W=g.pj(u+"get_video_info",m);t&&(W=ghg(W,t));t=W}h=t;f=(J=O.isAd())?1:3;F=0;case 2:if(!(F0)){z.tZ(5);break}return g.Y(z, ZM(5E3),6);case 6:G={playerretry:F,playerretrysrc:M},J||(G.recover="embedded"),l=Tr(h,G);case 5:return g.Y(z,fdy(O,l).then(p,S),7);case 7:if(T=z.V)return z.return();F++;z.tZ(2);break;case 4:e=J?"auth":"manifest.net.retryexhausted";H=J?2:1;if(!J&&Math.random()<1E-4)try{g.rz(new g.sT("b/152131571",btoa(h)))}catch(w){}return z.return(Promise.reject(new Ii(e,{backend:"gvi"},H)))}})}; fdy=function(U,O){function M(v){return S(v.xhr)} function S(v){if(!U.GY()){v=v?v.status:-1;var x=0,t=((0,g.nM)()-G).toFixed();t=p.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:v,rt:t}:{backend:"gvi",rc:""+v,rt:t};var m="manifest.net.connect";v===429?(m="auth",x=2):v>200&&(m="manifest.net.badstatus",v===400&&(x=2));return Promise.reject(new Ii(m,t,x))}} var p,h,J,f,F,l,G,T,e,H,z,W;return g.A(function(v){if(v.U==1){U.fetchType="gvi";p=U.J();var x={};U.tF&&(x.ytrext=U.tF);(f=g.iy(x)?void 0:x)?(h={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},J=Tr(O,{action_display_post:1})):(h={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},J=O);F={};p.sendVisitorIdHeader&&U.visitorData&&(F["X-Goog-Visitor-Id"]=U.visitorData);(l=pL(p.experiments,"debug_sherlog_username"))&&(F["X-Youtube-Sherlog-Username"]=l);Object.keys(F).length> 0&&(h.headers=F);G=(0,g.nM)();return g.Y(v,jx(QI,J,h).then(void 0,M),2)}T=v.V;if(!T||!T.responseText)return v.return(S(T));U.loading=!1;e=F2(T.responseText);g.Us(U,e,!0);if(U.errorCode)return H={ec:U.errorCode,ed:U.errorDetail,es:U.WO||""},v.return(Promise.reject(new Ii("auth",H,2)));if(!U.loading&&!kM(U))return z=U.isAd()?"auth":"manifest.net.retryexhausted",W=U.isAd()?2:1,v.return(Promise.reject(new Ii(z,{successButUnplayable:"1"},W)));g.Dq(v)})}; huw=function(U,O){return new Ii(U?"auth":"manifest.net.retryexhausted",O,U?2:1)}; Mw=function(U,O,M){M=M===void 0?!1:M;var S,p,h,J;g.A(function(f){if(f.U==1){S=U.J();if(M&&(!g.SZ(S)||iI(O)!=="embedded")||O.d1||iI(O)!=="adunit"&&(g.PF(S)||LL(S)||g.a8(S)||g.ik(S)||Mn(S)==="WEB_CREATOR"))return f.return();p=g.Fy(S,g.Es(O));return p.U?g.Y(f,p.U,3):(h=p.getValue(),f.tZ(2))}f.U!=2&&(h=f.V);J=h;return f.return(FHw(U,O,J))})}; FHw=function(U,O,M){var S,p,h,J,f;return g.A(function(F){if(F.U==1){g.dW(F,2);S=SSe(M);var l=O.J();g.Vm();var G={context:g.Tj(O),videoId:O.videoId,racyCheckOk:O.racyCheckOk,contentCheckOk:O.contentCheckOk,autonavState:"STATE_NONE"};iI(O)==="adunit"&&(G.isAdPlayback=!0);l.embedConfig&&(G.serializedThirdPartyEmbedConfig=l.embedConfig);l.GB&&(G.showContentOwnerOnly=!0);O.g5&&(G.showShortsOnly=!0);g.on(0,141)&&(G.autonavState=g.on(0,140)?"STATE_OFF":"STATE_ON");if(g.gG(l)){var T=g.on(0,65);T=T!=null? !T:!1;var e=!!g.ZO("yt-player-sticky-caption");G.captionsRequested=T&&e}var H;if(l=(H=l.getWebPlayerContextConfig())==null?void 0:H.encryptedHostFlags)G.playbackContext={encryptedHostFlags:l};p=G;h=g.ya(ldy);U.Xh("wn_s");return g.Y(F,g.Mz(S,p,h),4)}if(F.U!=2)return J=F.V,U.Xh("wn_r"),!J||"error"in J&&J.error||(f=J,g.qn(O.J())&&f.trackingParams&&PZ(f.trackingParams),g.Us(O,{raw_watch_next_response:J},!1)),g.vg(F,0);g.Bg(F);g.Dq(F)})}; GT4=function(U){U.Xh("vir");U.Xh("ps_s");Ut("vir",void 0,"video_to_ad");var O=Mjg(U);O.then(function(){U.Xh("virc");Ut("virc",void 0,"video_to_ad");U.Xh("ps_r");Ut("ps_r",void 0,"video_to_ad")},function(){U.Xh("virc"); Ut("virc",void 0,"video_to_ad")}); return O}; g.hm=function(U,O,M,S,p,h,J,f,F,l){F=F===void 0?new g.oC(U):F;l=l===void 0?!0:l;g.H_.call(this);var G=this;this.gG=U;this.playerType=O;this.d7=M;this.gM=S;this.getVisibilityState=h;this.visibility=J;this.mj=f;this.videoData=F;this.Ys=l;this.logger=new g.Gs("VideoPlayer");this.Fh=null;this.M8=new Jv;this.aZ=null;this.sy=!0;this.La=this.rG=null;this.yk=[];this.Yr=new gc;this.rD=this.Pd=null;this.W3=new gc;this.TN=null;this.dN=this.Ks=!1;this.kW=NaN;this.Af=!1;this.playerState=new g.fD;this.m4=[];this.U6= new g.Zj;this.hU=new y4e(this);this.mediaElement=null;this.Fm=new g.UM(this.jTd,15E3,this);this.eJ=this.E8=!1;this.G3=NaN;this.xd=!1;this.G2=0;this.Dc=!1;this.y9=NaN;this.GF=new UL(new Map([["bufferhealth",function(){return CPw(G.IT)}], ["bandwidth",function(){return G.xx()}], ["networkactivity",function(){return G.gG.schedule.BA}], ["livelatency",function(){return G.isAtLiveHead()&&G.isPlaying()?$VJ(G):NaN}], ["rawlivelatency",function(){return $VJ(G)}]])); this.WL=0;this.loop=!1;this.playbackRate=1;this.Bh=0;this.IT=new YLi(this);this.rS=!1;this.q2=[];this.IH=this.tf=0;this.cI=this.Oz=!1;this.LF=this.fX=0;this.dI=-1;this.x9="";this.Mq=new g.UM(this.VcQ,0,this);this.vV=this.HB=null;this.Epn=[this.U6,this.Mq,this.Fm,this.GF];this.VU=this.FG=null;this.oK=function(){var T=G.cV();T.provider.gG.DD||T.provider.wG.getVisibilityState()===3||(T.provider.gG.DD=!0);T.Fn();if(T.V){var e=T.V;e.G&&e.U<0&&e.provider.wG.getVisibilityState()!==3&&u4y(e)}T.qoe&&(T=T.qoe, T.Rl&&T.B<0&&T.provider.gG.DD&&ed4(T),T.X&&c9(T));G.rG&&Sv(G);G.gG.aG&&!G.videoData.backgroundable&&G.mediaElement&&!G.oA()&&(G.isBackground()&&G.mediaElement.P8()?(G.al("bgmobile",{suspend:1}),G.Xo(!0,!0)):G.isBackground()||pR(G)&&G.al("bgmobile",{resume:1}))}; this.BB={zz:function(T){G.zz(T)}, xZP:function(T){G.Fh=T}, AXg:function(){return G.mI}, pH:function(){return G.LM}, Ea:function(){return G.La}, cBL:function(){return G.IQ}, iga:function(){return G.T2}, KE0:function(){}, J:function(){return G.gG}, tR:function(){return G.mediaElement}, Sqn:function(T){G.pY(T)}, HId:function(){return G.gM}}; this.logger.debug(function(){return"creating, type "+O}); this.xq=new TcU(this.gG);this.yc=new dS7(this.gG,this.gM,this);this.nf=new g.Qn(this,function(T,e){T!==g.$Y("endcr")||g.a(G.playerState,32)||G.u_();p(T,e,G.playerType)},function(T,e){g.Os(G.videoData)&&G.al(T,e)}); g.X(this,this.nf);g.X(this,this.IT);T0m(this,F);this.videoData.subscribe("dataupdated",this.jOZ,this);this.videoData.subscribe("dataloaded",this.Y3,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.al,this);this.videoData.subscribe("ctmpstr",this.qA,this);this.Xy();hhy(this.oK);this.visibility.subscribe("visibilitystatechange",this.oK);this.IQ=new g.UM(this.tO,g.DF(this.gG.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.T2= new g.UM(this.tO,g.DF(this.gG.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.hD=new g.M$(this.Hr,g.DF(this.gG.experiments,"html5_progress_event_throttle_ms")||350,this);g.X(this,this.hD)}; T0m=function(U,O){if(U.playerType===2||U.gG.Gw)O.Xz=!0;var M=X8e(O.WV,O.We,U.gG.X,U.gG.D);M&&(O.adFormat=M);U.playerType===2&&(O.RL=!0);if(U.isFullscreen()||U.gG.X)M=g.ZO("yt-player-autonavstate"),O.autonavState=M||(U.gG.X?2:U.videoData.autonavState);O.endSeconds&&O.endSeconds>O.startSeconds&&kH(U,O.endSeconds)}; jUm=function(U){w9i(U.mI);g.FC(U.mI);for(var O=U.LM,M=g.D(O.U.values()),S=M.next();!S.done;S=M.next())w9i(S.value);O.U.clear();g.FC(U.LM)}; eue=function(U){var O=U.videoData;GT4(U).then(void 0,function(M){U.videoData!==O||O.GY()||(M=nP(M),M.errorCode==="auth"&&U.videoData.errorDetail?U.k5(M.errorCode,2,unescape(U.videoData.errorReason),AA(M.details),U.videoData.errorDetail,U.videoData.WO||void 0):U.handleError(M))})}; cMq=function(U){if(!g.a(U.playerState,128))if(U.videoData.isLoaded(),U.logger.debug("finished loading playback data"),U.yk=g.M2(U.videoData.BA),g.tK(U.videoData)){U.d7.tick("bpd_s");Jm(U).then(function(){U.d7.tick("bpd_c");if(!U.GY()){U.Ks&&(U.M4(Gh(Gh(U.playerState,512),1)),pR(U));var S=U.videoData;S.endSeconds&&S.endSeconds>S.startSeconds&&kH(U,S.endSeconds);U.Yr.finished=!0;y8(U,"dataloaded");U.W3.Gr()&&HI4(U);XHw(U.yc,U.rD)}}); U.T("html5_log_media_perf_info")&&U.al("loudness",{v:U.videoData.gs.toFixed(3)},!0);var O,M=(O=U.mediaElement)==null?void 0:O.tG();if(M&&"disablePictureInPicture"in M&&U.gG.ma)try{M.disablePictureInPicture=U.gG.l6&&!U.videoData.backgroundable}catch(S){g.rz(S)}zu5(U)}else y8(U,"dataloaded")}; Jm=function(U){fR(U);U.rD=null;var O=epg(U.gG,U.videoData,U.oA());U.Pd=O;U.Pd.then(function(M){DV1(U,M)},function(M){U.GY()||(M=nP(M),U.visibility.isBackground()?(FE(U,"vp_none_avail"),U.Pd=null,U.Yr.reset()):(U.Yr.finished=!0,U.k5(M.errorCode,M.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",AA(M.details))))}); return O}; DV1=function(U,O){if(!U.GY()&&!O.videoData.GY()){U.logger.debug("finished building playback data");U.rD=O;IHU(U.IT,U.rD);if(U.videoData.isLivePlayback){var M=dV4(U.mj.i5,U.videoData.videoId)||U.rG&&!isNaN(U.rG.BA);M=U.T("html5_onesie_live")&&M;Vn(U)||U.videoData.HV>0&&!zS(U.videoData)||M||U.seekTo(U.S9(),{uH:"videoplayer_playbackData",seekSource:18})}if(U.videoData.B.U){if(U.T("html5_sabr_report_missing_url_as_error")&&$qm(U.videoData)){U.handleError(new Ii("fmt.missing",{missabrurl:"1"},2));return}U.rG? g.rz(Error("Duplicated Loader")):(M=g.DF(U.gG.experiments,"html5_onesie_defer_content_loader_ms"))&&U.nN()&&dV4(U.mj.i5,U.videoData.Gj)?g.Nv(function(){U.GY()||U.rG||WH4(U)},M):WH4(U)}else!U.videoData.B.U&&ku(U.videoData)&&U.Ue(new dC(U.videoData.videoId||"",4)); U.Tw();mS1(O).then(function(){var S={};U.Ro(S);U.gG.PV()&&U.T("html5_log_media_perf_info")&&U.al("av1Info",S);Sv(U)})}}; HI4=function(U){U.GY();U.logger.debug("try finish readying playback");if(U.W3.finished)U.logger.debug("already finished readying");else if(U.Yr.finished)if(g.a(U.playerState,128))U.logger.debug("cannot finish readying because of error");else if(U.yk.length)U.logger.debug(function(){return"cannot finish readying because of pending preroll: "+U.yk}); else if(U.nf.started||lHe(U.nf),U.Jt())U.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{U.rG&&(U.dN=eUm(U.rG.timing));U.W3.finished||(U.W3.finished=!0);var O=U.T("html5_onesie_live")&&U.rG&&!isNaN(U.rG.BA);!U.videoData.isLivePlayback||U.videoData.HV>0&&!zS(U.videoData)||O||Vn(U)||(U.logger.debug("seek to head for live"),U.seekTo(Infinity,{uH:"videoplayer_readying",seekSource:18}),U.isBackground()&&(U.eJ=!0));LPg(U.cV());U.logger.debug("finished readying playback"); U.publish("playbackready");k6("pl_c",U.d7.timerName)||(U.d7.tick("pl_c"),Ut("pl_c",void 0,"video_to_ad"));k6("pbr",U.d7.timerName)||(U.d7.tick("pbr"),Ut("pbr",void 0,"video_to_ad"))}else U.logger.debug("playback data not loaded")}; kH=function(U,O){U.aZ&&N04(U);U.aZ=new g.ll(O*1E3,0x7ffffffffffff);U.aZ.namespace="endcr";U.addCueRange(U.aZ)}; N04=function(U){U.removeCueRange(U.aZ);U.aZ=null}; v9e=function(U,O,M,S,p){var h=U.cV(p),J=g.Os(U.videoData)?h.getVideoData():U.videoData;J.V=M;var f=g.lP(U);M=new DS1(J,M,O,f?f.itag:"",S);U.gG.experiments.F0("html5_refactor_sabr_video_format_selection_logging")?(M.videoId=p,U.VU=M):h.qoe&&suw(h.qoe,M);p=U.yc;p.V=0;p.U=0;U.publish("internalvideoformatchange",J,O==="m")}; g.lP=function(U){var O=GY(U);return lJ(O)||!U.rD?null:g.VD(U.rD.U.videoInfos,function(M){return O.X(M)})}; GY=function(U){if(U.rD){var O=U.yc;var M=U.rD;U=U.oJ();var S=vVe(O);if(lJ(S)){if(S=WF4(O,M).compose(RhJ(O,M)).compose(YxW(O,M)).compose(QWJ(O,M.videoData)).compose(C2q(O,M.videoData,M)).compose(lb(O,M)).compose(xSm(O,M)),lJ(U)||O.T("html5_apply_pbr_cap_for_drm"))S=S.compose(bg1(O,M))}else O.T("html5_perf_cap_override_sticky")&&(S=S.compose(lb(O,M))),O.T("html5_ustreamer_cap_override_sticky")&&(S=S.compose(bg1(O,M)));S=S.compose(xSm(O,M));O=M.videoData.Qx.compose(S).compose(M.videoData.Ib).compose(U)}else O= VK;return O}; nMw=function(U){var O=U.yc;U=U.videoData;var M=QWJ(O,U);O.T("html5_disable_client_autonav_cap_for_onesie")||M.compose(C2q(O,U));return M}; Sv=function(U){if(U.videoData.B&&U.videoData.B.U){var O=GY(U);U.rG&&YsJ(U.rG,O)}}; B0i=function(U){var O;return!!(U.T("html5_native_audio_track_switching")&&g.bh&&((O=U.videoData.V)==null?0:pO(O)))}; xVU=function(U){if(!B0i(U))return!1;var O;U=(O=U.mediaElement)==null?void 0:O.audioTracks();return!!(U&&U.length>1)}; Ru7=function(U){var O=bIm(U);if(O)return U.videoData.getAvailableAudioTracks().find(function(M){return M.ZN.getName()===O})}; bIm=function(U){var O;if(U=(O=U.mediaElement)==null?void 0:O.audioTracks())for(O=0;O0&&(O.QO=S.NI)); O.mW=S.sU;O.Ov=Cu(M,{},S.B||void 0,GS(S));O.pE=lI(S)&&g.a8(M);$u(S)&&(O.sX=!0,M.T("html5_sabr_report_partial_segment_estimated_duration")&&(O.Sj=!0),O.U=!0,O.qd=M.T("html5_sabr_enable_live_clock_offset"),O.q9=M.T("html5_disable_client_resume_policy_for_sabr"),O.n$=M.T("html5_trigger_loader_when_idle_network"),O.n1=M.T("html5_sabr_parse_live_metadata_playback_boundaries"),O.s3=M.T("html5_enable_platform_backpressure_with_sabr"),O.y$=M.T("html5_consume_onesie_next_request_policy_for_sabr"),O.Cq=M.T("html5_sabr_report_next_ad_break_time"), O.ZK=M.T("html5_log_high_res_buffer_timeline")&&M.PV(),O.Kq=M.T("html5_remove_stuck_slices_beyond_max_buffer_limits"),O.L9=M.T("html5_gapless_sabr_btl_last_slice")&&FX(S),O.jk=M.T("html5_reset_last_appended_slice_on_seek")&&FX(S),zS(S)?(O.O3=!0,O.J6=M.T("html5_disable_variability_tracker_for_live"),O.Rl=M.T("html5_sabr_use_accurate_slice_info_params"),M.T("html5_simplified_backup_timeout_sabr_live")&&(O.dO=!0,O.EF=O.NT)):O.F9=M.T("html5_probe_request_on_sabr_request_progress"),O.lT=M.T("html5_serve_start_seconds_seek_for_post_live_sabr"), O.fO=M.T("html5_flush_index_on_updated_timestamp_offset"),O.Ka=M.T("html5_enable_sabr_request_pipelining")&&!g.Os(S),O.Po=M.T("html5_ignore_partial_segment_from_live_readahead"),O.We=M.T("html5_use_non_active_broadcast_for_post_live"),O.QP=M.T("html5_use_centralized_player_time"),O.cU=M.T("html5_consume_onesie_sabr_seek"),O.ol=M.T("html5_enable_sabr_seek_loader_refactor"),O.Y1=M.T("html5_update_segment_start_time_from_media_header"),S.enableServerStitchedDai&&(O.G=!0,O.T3=M.T("html5_reset_server_stitch_state_for_non_sabr_seek"), O.d1=M.T("html5_remove_ssdai_append_pause")&&!S.Js(),O.NL=M.T("html5_consume_ssdai_info_with_streaming"),O.q_=M.T("html5_ssdai_log_ssevt_in_loader")),O.Lg=M.PV()||S.Js());O.C=O.U&&M.T("html5_sabr_live");O.r7=g.lD5(S);Bs(M.G,xc.BITRATE)&&(O.a_=NaN);if(f=g.DF(M.experiments,"html5_request_size_max_kb"))O.hZ=f*1024;M.G.B?O.u$="; "+xc.EXPERIMENTAL.name+"=allowed":M.T("html5_enable_cobalt_tunnel_mode")&&(O.u$="; tunnelmode=true");f=S.serverPlaybackStartConfig;(f==null?0:f.enable)&&(f==null?0:f.playbackStartPolicy)&& (O.FE=!0,SR7(O,f.playbackStartPolicy,2));f=tjm(U);U.M8.removeAll();a:{M=U.mj.i5;if(S=U.videoData.videoId)if(p=M.U.get(S)){M.U.remove(S);M=p;break a}M=void 0}U.rG=new g.Ve(U,U.gG.schedule,O,U.videoData.U,U.videoData.B,GY(U),f,U.videoData.enableServerStitchedDai,M,U.videoData.hZ);O=U.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&U.videoData.isLivePlayback&&U.nN()?!0:U.Ks&&g.PF(U.gG)&&U.videoData.isLivePlayback;U.rG.initialize(U.getCurrentTime(),GY(U),O);U.videoData.probeUrl&&(U.rG.Yy= U.videoData.probeUrl);if(U.yk.length||U.Ks)U.videoData.cotn||$K(U,!1);nK1(U.IT,U.rG);U.HB&&(Uiw(U.rG,new g.w8(U.HB)),U.al("sdai",{sdl:1}));U.vV&&(U.rG.O_(U.vV),U.IT.Y=!1);g.Se(U.videoData)&&(U=U.rG,U.policy.gs=U.policy.tF)}; fR=function(U){U.rG&&(U.rG.dispose(),U.rG=null,nK1(U.IT,null));U.vU()?YSy(U):U.Md()}; YSy=function(U){if(U.La)if(U.logger.debug("release media source"),U.bA(),U.La.G)try{U.gG.PV()&&U.al("rms",{l:"vprms",sr:U.vU(),rs:sf(U.La)});U.La.clear();var O;(O=U.mediaElement)!=null&&(O.V=U.La);U.La=null}catch(M){O=new g.sT("Error while clearing Media Source in VideoPlayer: "+M.name+", "+M.message),O=nP(O),U.handleError(O),U.Md()}else U.Md()}; mV4=function(U,O){O=O===void 0?!1:O;if(U.La)return U.La.B;U.logger.debug("update media source");a:{O=O===void 0?!1:O;try{g.Ud()&&U.videoData.Mv()&&RnU(U.mediaElement);var M=U.mediaElement.Ea(U.uO(),U.U1())}catch(p){if($Sw(U.hU,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",p);U.k5("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}U.cG(M,!1,!1,O)}var S;return((S=U.Ea())==null?void 0:S.B)||null}; AM5=function(U,O){O=O===void 0?!1:O;if(U.rG){U.videoData.enableServerStitchedDai&&Jgw(U.rG);var M=U.getCurrentTime()-U.je();U.rG.seek(M,{KI:O}).yq(function(){})}else WH4(U)}; Pa5=function(U,O,M,S){M=M===void 0?!1:M;S=S===void 0?!1:S;if(U.La&&(!O||U.La===O)){U.logger.debug("media source opened");var p=U.getDuration();!p&&zS(U.videoData)&&(p=25200);if(U.La.isView){var h=p;U.logger.debug(function(){return"Set media source duration to "+h+", video duration "+p}); h>U.La.getDuration()&&Ide(U,h)}else Ide(U,p);beW(U.rG,U.La,M,S);U.publish("mediasourceattached")}}; Ide=function(U,O){if(U.La){U.La.l8(O);var M;(M=U.rG)!=null&&M.policy.QP&&(M.C=O)}}; AKW=function(U,O){v9e(U,O.reason,O.U.info,O.token,O.videoId)}; n9w=function(U,O){U.gG.experiments.F0("enable_adb_handling_in_sabr")&&(U.pauseVideo(!0),U.publish("onAbnormalityDetected"),O&&U.k5("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; y8=function(U,O){U.publish("internalvideodatachange",O===void 0?"dataupdated":O,U.videoData)}; QUg=function(U){var O="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");U.T("html5_remove_progress_event_listener")||(O.push("progress"),O.push("suspend"));O=g.D(O);for(var M=O.next();!M.done;M=O.next())U.U6.j(U.mediaElement,M.value,U.pY,U);U.gG.GD&&U.mediaElement.U3()&&(U.U6.j(U.mediaElement,"webkitplaybacktargetavailabilitychanged",U.ZEQ,U),U.U6.j(U.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",U.zzZ, U))}; Xx7=function(U){g.xJ(U.kW);Cam(U)||(U.kW=g.v5(function(){return Cam(U)},100))}; Cam=function(U){var O=U.mediaElement;O&&U.E8&&!U.videoData.sA&&!k6("vfp",U.d7.timerName)&&O.K9()>=2&&!O.isEnded()&&H1(O.wL())>0&&U.d7.tick("vfp");return(O=U.mediaElement)&&!U.videoData.sA&&O.getDuration()>0&&(O.isPaused()&&O.K9()>=2&&H1(O.wL())>0&&(k6("pbp",U.d7.timerName)||U.d7.tick("pbp"),!U.videoData.b6||U.Af||O.isSeeking()||(U.Af=!0,U.publish("onPlaybackPauseAtStart"))),O=O.getCurrentTime(),Ck(U.xq,O))?(U.s4(),!0):!1}; qSw=function(U){U.cV().Ji();if(HB(U.videoData)&&Date.now()>U.Bh+6283){if(!(!U.isAtLiveHead()||U.videoData.U&&B3(U.videoData.U))){var O=U.cV();if(O.qoe){O=O.qoe;var M=O.provider.wG.Xr(),S=g.kV(O.provider);yv4(O,S,M);M=M.B;isNaN(M)||g.eB(O,S,"e2el",[M.toFixed(3)])}}U.T("html5_alc_live_log_rawlat")?(O=U.videoData,O=g.Au(O.J())?!0:g.O3(O.J())?O.n1==="6":!1):O=g.Au(U.gG);O&&U.al("rawlat",{l:sL(U.GF,"rawlivelatency").toFixed(3)});U.Bh=Date.now()}U.videoData.V&&pO(U.videoData.V)&&(O=U.MZ())&&O.videoHeight!== U.IH&&(U.IH=O.videoHeight,v9e(U,"a",u9m(U,U.videoData.w7)))}; u9m=function(U,O){if(O.U.video.quality==="auto"&&pO(O.getInfo())&&U.videoData.UX)for(var M=g.D(U.videoData.UX),S=M.next();!S.done;S=M.next())if(S=S.value,S.getHeight()===U.IH&&S.U.video.quality!=="auto")return S.getInfo();return O.getInfo()}; $VJ=function(U){if(!HB(U.videoData))return NaN;var O=0;U.rG&&U.videoData.U&&(O=zS(U.videoData)?U.rG.rY.aA()||0:U.videoData.U.sA);return(0,g.nM)()/1E3-U.hR()-O}; ZIg=function(U){U.mediaElement&&U.mediaElement.oA()&&(U.y9=(0,g.nM)());U.gG.ZK?g.Nv(function(){iI7(U)},0):iI7(U)}; iI7=function(U){var O;if((O=U.La)==null||!O.wP()){if(U.mediaElement)try{U.TN=U.mediaElement.playVideo()}catch(S){FE(U,"err."+S)}if(U.TN){var M=U.TN;M.then(void 0,function(S){U.logger.debug(function(){return"playMediaElement failed: "+S}); if(!g.a(U.playerState,4)&&!g.a(U.playerState,256)&&U.TN===M)if(S&&S.name==="AbortError"&&S.message&&S.message.includes("load"))U.logger.debug(function(){return"ignore play media element failure: "+S.message}); else{var p="promise";S&&S.name&&(p+=";m."+S.name);FE(U,p);U.rS=!0;U.videoData.fO=!0}})}}}; FE=function(U,O){g.a(U.playerState,128)||(U.M4(Th(U.playerState,1028,9)),U.al("dompaused",{r:O}),U.publish("onAutoplayBlocked"))}; pR=function(U,O){O=O===void 0?!1:O;if(!U.mediaElement||!U.videoData.B)return!1;var M=O;M=M===void 0?!1:M;var S=null;var p;if((p=U.videoData.B)==null?0:p.U){S=mV4(U,M);var h;(h=U.rG)==null||h.resume()}else fR(U),U.videoData.w7&&(S=U.videoData.w7.g4());p=U.mediaElement.P8();M=!1;p&&p.KW(S)||(KH4(U,S),M=!0);g.a(U.playerState,2)||(S=U.IT,O=O===void 0?!1:O,S.G||!(S.B>0)||S.mediaElement&&S.mediaElement.getCurrentTime()>0||(O={uH:"seektimeline_resumeTime",KI:O},S.videoData.sA||(O.seekSource=15),S.seekTo(S.B, O)));a:{O=M;if($u(U.videoData)){if(!U.videoData.Fk())break a}else if(!g.BB(U.videoData))break a;if(U.mediaElement)if((S=U.videoData.G)&&U.mediaElement.U3()){p=U.mediaElement.tG();if(U.Fh)if(p!==U.Fh.element)TY(U);else if(O&&S.flavor==="fairplay"&&!Od())TY(U);else break a;if(U.T("html5_report_error_for_unsupported_tvos_widevine")&&Od()&&S.flavor==="widevine")U.k5("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{U.Fh=new kGe(p,U.videoData,U.gG);U.Fh.subscribe("licenseerror", U.rT,U);U.Fh.subscribe("qualitychange",U.irc,U);U.Fh.subscribe("heartbeatparams",U.ON,U);U.Fh.subscribe("keystatuseschange",U.zz,U);U.Fh.subscribe("ctmp",U.al,U);U.T("html5_widevine_use_fake_pssh")&&!U.videoData.isLivePlayback&&S.flavor==="widevine"&&U.Fh.NZ(new Ds(rMq,"cenc",!1));O=g.D(U.M8.keys);for(S=O.next();!S.done;S=O.next())S=U.M8.get(S.value),U.Fh.NZ(S);U.T("html5_eme_loader_sync")||U.M8.removeAll()}}else U.k5("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return M}; KH4=function(U,O){U.d7.tick("vta");Ut("vta",void 0,"video_to_ad");U.getCurrentTime()>0&&uEw(U.IT,U.getCurrentTime());U.mediaElement.activate(O);U.La&&Fo(0,4);!U.videoData.sA&&U.playerState.isOrWillBePlaying()&&U.Fm.start();if(B0i(U)){var M;if(O=(M=U.mediaElement)==null?void 0:M.audioTracks())O.onchange=function(){U.publish("internalaudioformatchange",U.videoData,!0)}}}; TY=function(U){U.Fh&&(U.Fh.dispose(),U.Fh=null)}; adq=function(U){var O=O===void 0?!1:O;U.logger.debug("reattachVideoSource");U.mediaElement&&(U.La?(TY(U),U.Md(),mV4(U,O)):(U.videoData.w7&&U.videoData.w7.WI(),U.mediaElement.stopVideo()),U.playVideo())}; E9y=function(U,O){U.gG.T("html5_log_rebuffer_reason")&&(O={r:O,lact:QJ()},U.mediaElement&&(O.bh=h0(U.mediaElement)),U.al("bufreason",O))}; LHW=function(U,O){if(U.gG.PV()&&U.mediaElement){var M=U.mediaElement.aT();M.omt=(U.mediaElement.getCurrentTime()+U.je()).toFixed(3);M.ps=U.playerState.state.toString(16);M.rt=(g.kV(U.cV().provider)*1E3).toFixed();M.e=O;U.q2[U.tf++%5]=M}try{if(O==="timeupdate"||O==="progress")return}catch(S){}U.logger.debug(function(){return"video element event "+O})}; Vj7=function(U){if(U.gG.PV()){U.q2.sort(function(S,p){return+S.rt-+p.rt}); for(var O=g.D(U.q2),M=O.next();!M.done;M=O.next())M=M.value,U.al("vpe",Object.assign({t:M.rt},M));U.q2=[];U.tf=0}}; o9i=function(U){if(g.kJ("cobalt")&&g.kJ("nintendo switch")){var O=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;U.al("nxdock",{d:O})}}; $K=function(U,O){var M;(M=U.rG)==null||oW(M,O)}; fG4=function(U,O){return g.Os(U.videoData)&&U.vV?U.vV.handleError(O,void 0):!1}; zu5=function(U){Jg(U.videoData,"html5_set_debugging_opt_in")&&(U=g.Vm(),g.on(0,183)||(wr(183,!0),U.save()))}; kTy=function(U){return g.Os(U.videoData)&&U.vV?BH(U.vV):U.videoData.S9()}; f0J=function(U,O){U.mj.uB()||(U.al("sgap",{f:O}),U.mj.clearQueue(!1,O==="pe"))}; Vn=function(U){return U.T("html5_disable_video_player_initiated_seeks")&&$u(U.videoData)}; wxg=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);ee(this.api,"isLifaAdPlaying",function(){return O.api.isLifaAdPlaying()}); this.events.j(U,"serverstitchedvideochange",function(){var M;(M=O.api.getVideoData())!=null&&M.Js()&&(O.api.isLifaAdPlaying()?(O.playbackRate=O.api.getPlaybackRate(),O.api.setPlaybackRate(1)):O.api.setPlaybackRate(O.playbackRate))}); this.playbackRate=1}; UBy=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);ee(this.api,"seekToChapterWithAnimation",function(M){O.seekToChapterWithAnimation(M)}); ee(this.api,"seekToTimeWithAnimation",function(M,S){O.seekToTimeWithAnimation(M,S)}); ee(this.api,"renderChapterSeekingAnimation",function(M,S,p){O.api.renderChapterSeekingAnimation(M,S,p)}); ee(this.api,"setMacroMarkers",function(M){O.setMacroMarkers(U,M)}); ee(this.api,"changeMarkerVisibility",function(M,S,p){O.changeMarkerVisibility(M,S,p)}); ee(this.api,"isSameMarkerTypeVisible",function(M){return O.isSameMarkerTypeVisible(M)})}; OK7=function(U,O,M){var S=U.api.getCurrentTime()*1E30&&p>0&&(M.width+=p,g.j3(O.element,"width",M.width+"px")));U.size=M}}; g.YK=function(U,O){var M=U.U[U.U.length-1];M!==O&&(U.U.push(O),xBe(U,M,O))}; g.mJ=function(U){if(!(U.U.length<=1)){var O=U.U.pop(),M=U.U[0];U.U=[M];xBe(U,O,M,!0)}}; xBe=function(U,O,M,S){bKg(U);O&&(O.unsubscribe("size-change",U.uq,U),O.unsubscribe("back",U.oF,U));M.subscribe("size-change",U.uq,U);M.subscribe("back",U.oF,U);if(U.UQ){g.l3(M.element,S?"ytp-panel-animate-back":"ytp-panel-animate-forward");M.AZ(U.element);M.focus();U.element.scrollLeft=0;U.element.scrollTop=0;var p=U.size;B_w(U);g.b4(U.element,p);U.C=new g.UM(function(){RPU(U,O,M,S)},20,U); U.C.start()}else M.AZ(U.element),O&&O.detach()}; RPU=function(U,O,M,S){U.C.dispose();U.C=null;g.l3(U.element,"ytp-popup-animating");S?(g.l3(O.element,"ytp-panel-animate-forward"),g.$U(M.element,"ytp-panel-animate-back")):(g.l3(O.element,"ytp-panel-animate-back"),g.$U(M.element,"ytp-panel-animate-forward"));g.b4(U.element,U.size);U.D=new g.UM(function(){g.$U(U.element,"ytp-popup-animating");O.detach();g.Tn(O.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);U.D.dispose();U.D=null},250,U); U.D.start()}; bKg=function(U){U.C&&g.sM(U.C);U.D&&g.sM(U.D)}; Am=function(U){g.tm.call(this,U,"ytp-shopping-product-menu");this.UF=new g.bP(this.S);g.X(this,this.UF);this.hide();g.YK(this,this.UF);g.Z0(this.S,this.element,4)}; YDg=function(U,O,M){var S,p=O==null?void 0:(S=O.text)==null?void 0:S.simpleText;p&&(M=tI7(U,M,p,O==null?void 0:O.icon,O==null?void 0:O.secondaryIcon),O.navigationEndpoint&&M.listen("click",function(){U.S.ZQ("innertubeCommand",O.navigationEndpoint);U.hide()},U))}; mBy=function(U,O,M){var S,p=O==null?void 0:(S=O.text)==null?void 0:S.simpleText;p&&tI7(U,M,p,O==null?void 0:O.icon).listen("click",function(){var h;(O==null?void 0:(h=O.icon)==null?void 0:h.iconType)==="HIDE"?U.S.publish("featuredproductdismissed"):O.serviceEndpoint&&U.S.ZQ("innertubeCommand",O.serviceEndpoint);U.hide()},U)}; tI7=function(U,O,M,S,p){O=new g.sc(g.gg({},[],!1,!!p),O,M);p&&O.updateValue("secondaryIcon",A94(p));O.setIcon(A94(S));g.X(U,O);U.UF.q4(O,!0);return O}; A94=function(U){if(!U)return null;switch(U.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{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{K:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{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 z17();case "HIDE":return{K:"svg",N:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"g",W:[{K:"path",N:{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 P_()}}; I3=function(U){B2.call(this,U,!1,!0);this.isCounterfactual=this.V=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.r({K:"button",OA:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.r({K:"img",L:"ytp-suggested-action-badge-img",N:{src:"{{url}}"}}); this.thumbnailImage.hide();g.X(this,this.thumbnailImage);this.thumbnailIcon=new g.r({K:"div",L:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.X(this,this.thumbnailIcon);this.banner=new g.r({K:"a",L:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{K:"div",L:"ytp-suggested-action-details",W:[{K:"text",L:"ytp-suggested-action-title",UA:"{{title}}"},{K:"text",L:"ytp-suggested-action-subtitle",UA:"{{subtitle}}"},{K:"text",L:"ytp-suggested-action-metadata-text", UA:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.X(this,this.banner);this.banner.AZ(this.B.element);this.j(this.S,"videodatachange",this.onVideoDataChange);this.j(this.S,g.$Y("suggested_action_view_model"),this.kZP);this.j(this.S,g.TO("suggested_action_view_model"),this.qj0);this.j(this.overflowButton.element,"click",this.a8);this.j(U,"featuredproductdismissed",this.YK);this.S.createServerVe(this.banner.element,this.banner,!0)}; IL1=function(U){U.isInitialized&&(U.enabled=U.isVisible,U.ol=U.isVisible,v2(U),U.f0(),U.thumbnailImage.ri(U.isVisible),U.shouldHideDismissButton||U.dismissButton.ri(U.isVisible),U.shouldShowOverflowButton&&U.overflowButton.ri(U.isVisible))}; P2=function(){I3.apply(this,arguments)}; P$w=function(U){pB.call(this,U);this.U=new P2(this.api);g.X(this,this.U);g.Z0(this.api,this.U.element,4)}; nR=function(U){pB.call(this,U);var O=this;this.U="";this.B=!0;this.V=this.api.T("html5_enable_audio_track_stickiness_phase_two");var M=new g.Zj(U);g.X(this,M);M.j(U,"internalaudioformatchange",function(S,p){nge(O,S,p)}); M.j(U,"videoplayerreset",function(){QS5(O)}); M.j(U,"videodatachange",function(S,p){O.onVideoDataChange(S,p)})}; nge=function(U,O,M){if(M){var S="";if(C$w(U,O)&&(S=O,U.V||(U.U=O),U.api.T("html5_sabr_enable_server_xtag_selection"))){if(M=U.api.getVideoData(void 0,!0))M.XK=O;U.api.J().AG=O}if(U.V&&S&&XOy(U,S)){aDm(U.api,U.U||S);var p;D1(lT(U.api.J(),(p=U.api.getVideoData())==null?void 0:g.Es(p)),function(h){uZy(U,S,h)})}}}; QS5=function(U){if(U.U)qD4(U);else{var O;if(U.V&&((O=V2())==null?0:O.size)){var M;D1(lT(U.api.J(),(M=U.api.getVideoData())==null?void 0:g.Es(M)),function(S){if((S=iKm(S))&&XOy(U,S)){var p=U.api.getVideoData(void 0,!0);p&&(p.XK=S);U.api.J().AG=S}})}}}; qD4=function(U){var O=U.api.getVideoData(void 0,!0);O&&(O.XK=U.U)}; uZy=function(U,O,M){iKm(M)!==O&&(ZKg([{settingItemId:Q8(M),settingOptionValue:{stringValue:O}}]),D1(U.hL(),function(S){g_e(S,Q8(M),{stringValue:O})}))}; K2m=function(U,O){dx(D1(D1(U.hL(),function(M){return O57(M,[Q8(O)])}),function(M){if(M){M=g.D(M); for(var S=M.next();!S.done;S=M.next()){var p=S.value;S=p.key;p=p.value;S&&p&&(ZKg([{settingItemId:S,settingOptionValue:p}]),QS5(U))}}}),function(){U.B=!0})}; C$w=function(U,O){U=U.api.getAvailableAudioTracks();U=g.D(U);for(var M=U.next();!M.done;M=U.next())if(M=M.value,M.getLanguageInfo().getId()===O)return M;return null}; iKm=function(U){U=Q8(U);var O=V2();U=O?O.get(U):void 0;return U&&U.stringValue?U.stringValue:""}; Q8=function(U){var O=(484).toString();U&&(O=(483).toString());return O}; XOy=function(U,O){var M;return O.split(".")[0]!==""&&((M=U.api.getVideoData())==null?void 0:!o6(M))}; ZKg=function(U){var O=V2();O||(O=new Map);U=g.D(U);for(var M=U.next();!M.done;M=U.next())M=M.value,O.set(M.settingItemId,M.settingOptionValue);O=JSON.stringify(Object.fromEntries(O));g.iC("yt-player-user-settings",O,2592E3)}; g.CR=function(U,O,M,S,p,h,J){g.sc.call(this,g.gg({"aria-haspopup":"true"}),O,U);this.lM=S;this.Y=!1;this.B=null;this.options={};this.V=new g.bP(M,void 0,U,p,h,J);g.X(this,this.V);this.listen("keydown",this.yw);this.listen("click",this.open)}; r94=function(U){if(U.B){var O=U.options[U.B];O.element.getAttribute("aria-checked");O.element.setAttribute("aria-checked","false");U.B=null}}; aL4=function(U,O){g.CR.call(this,"Temporizador de apagado",g.zP.SLEEP_TIMER,U,O);this.S=U;this.Z={};this.C=this.hH("Off");this.D=this.U="";U.T("web_settings_menu_icons")&&this.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{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.X=new g.r({K:"div",OA:["ytp-menuitem-label-wrapper"],W:[{K:"div",UA:"Fin del video"},{K:"div",OA:["ytp-menuitem-sublabel"],UA:"{{content}}"}]});g.X(this,this.X);this.listen("click",this.onClick);this.j(U,"videodatachange",this.onVideoDataChange);this.j(U,"presentingplayerstatechange",this.PA);this.j(U,"settingsMenuVisibilityChanged",this.bOl);U.createClientVe(this.element,this,218889);this.PA();this.S.ZQ("onSleepTimerFeatureAvailable")}; Egy=function(U){var O="Off 10 15 20 30 45 60".split(" "),M;((M=U.S.getVideoData())==null?0:M.isLivePlayback)||O.push("End of video");M=U.S.getPlaylist();var S;M&&((S=M.listId)==null?void 0:S.type)!=="RD"&&O.push("End of playlist");U.C9(g.mV(O,U.hH));U.Z=g.jS(O,U.hH,U);O=U.hH("End of video");U.options[O]&&g.Oc(U.options[O],U.X)}; L2J=function(U,O){var M=U.Z[O],S=M==="End of video"||M==="End of playlist";M==="Off"&&(U.U="");U.S.getPlayerState()!==0&&U.S.getPlayerState()!==5||!S?(U.C=O,g.CR.prototype.n6.call(U,O),U.VN(O),U.S.ZQ("onSleepTimerSettingsChanged",M)):U.S.ZQ("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; XE=function(U){pB.call(this,U);var O=this;U.addEventListener("settingsMenuInitialized",function(){O.menuItem||(O.menuItem=new aL4(O.api,O.api.Nw()),g.X(O,O.menuItem))}); U.addEventListener("openSettingsMenuItem",function(M){if(M==="menu_item_sleep_timer"){if(!O.menuItem){var S;(S=O.api.Nw())==null||S.jY()}O.menuItem.open()}}); ee(U,"resetSleepTimerMenuSettings",function(){O.resetSleepTimerMenuSettings()}); ee(U,"setSleepTimerTimeLeft",function(M){O.setSleepTimerTimeLeft(M)}); ee(U,"setVideoTimeLeft",function(M){O.setVideoTimeLeft(M)})}; VIi=function(U){pB.call(this,U);var O=this;this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"onSnackbarMessage",function(M){switch(M){case 1:M=O.api.getPlayerStateObject(),M.isBuffering()&&g.a(M,8)&&g.a(M,16)&&O.api.ZQ("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubre los motivos"}]},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.qw=function(U,O,M,S,p){O=O===void 0?!1:O;S=S===void 0?!1:S;p=p===void 0?!1:p;g.H_.call(this);this.Z=p;this.D=!1;this.X=new nE(this);this.G=this.C=null;this.B=this.V=!1;g.X(this,this.X);this.target=U;this.U=O;this.Y=M||U;this.D=S;O&&(g.yG&&this.target.setAttribute("draggable","true"),p||(this.target.style.touchAction="none"));uP(this)}; iP=function(U){g.CE(U.X,!U.U)}; uP=function(U){U.G=null;U.C=null;U.j(ZH("over"),U.U5);U.j("touchstart",U.ZT);U.U&&U.j(ZH("down"),U.cGn)}; oge=function(U,O){for(var M=0;Mp.start&&M>=5;W+=x}e=W.substr(0,4)+" "+W.substr(4,4)+" "+W.substr(8,4)+" "+(W.substr(12,4)+" "+W.substr(16,4))}else e="";J={video_id_and_cpn:String(O.videoId)+" / "+e,codecs:"", dims_and_frames:"",bandwidth_kbps:J.toFixed(0)+" Kbps",buffer_health_seconds:F.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:l?"":"display:none",drm:l,debug_info:M,extra_debug_info:"",bandwidth_style:T,network_activity_style:T,network_activity_bytes:f.toFixed(0)+" KB",shader_info:G,shader_info_style:G?"":"display:none",playback_categories:""};f=S.clientWidth+"x"+S.clientHeight+(p>1?"*"+p.toFixed(2):"");F="-";h.totalVideoFrames&&(F=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames); J.dims_and_frames=f+" / "+F;U=U.getVolume();f=F$5(O);var m;F=((m=O.X)==null?0:m.audio.U)?"DRC":Math.round(U*f)+"%";m=Math.round(U)+"% / "+F;U=O.gs.toFixed(1);isFinite(Number(U))&&(m+=" (content loudness "+U+"dB)");J.volume=m;J.resolution=S.videoWidth+"x"+S.videoHeight;if(S=O.V){if(m=S.video)U=m.fps,U>1&&(J.resolution+="@"+U),(U=h.UD)&&U.video&&(J.resolution+=" / "+U.video.width+"x"+U.video.height,U.video.fps>1&&(J.resolution+="@"+U.video.fps)),J.codecs=ssw(S),!O.X||S.audio&&S.video?S.cE&&(J.codecs+= " / "+S.cE+"A"):J.codecs+=" / "+ssw(O.X),m.U||m.primaries?(U=m.U||"unknown",U==="smpte2084"?U+=" (PQ)":U==="arib-std-b67"&&(U+=" (HLG)"),J.color=U+" / "+(m.primaries||"unknown"),J.color_style=""):J.color_style="display:none";if(S.debugInfo)for(J.fmt_debug_info="",S=g.D(S.debugInfo),m=S.next();!m.done;m=S.next())m=m.value,J.fmt_debug_info+=m.label+":"+m.text+" ";J.fmt_debug_info_style=J.fmt_debug_info&&J.fmt_debug_info.length>0?"":"display:none"}S=O.isLivePlayback;m=O.Dh;J.live_mode_style=S||m?"": "display:none";J.live_latency_style=S?"":"display:none";if(m)J.live_mode="Post-Live"+(zS(O)?" Manifestless":"");else if(S){m=h.dn;J.live_latency_secs=m.toFixed(2)+"s";S=zS(O)?"Manifestless, ":"";O.Ca&&(S+="Windowed, ");U="Uncertain";if(m>=0&&m<120)if(O.latencyClass&&O.latencyClass!=="UNKNOWN")switch(O.latencyClass){case "NORMAL":U="Optimized for Normal Latency";break;case "LOW":U="Optimized for Low Latency";break;case "ULTRALOW":U="Optimized for Ultra Low Latency";break;default:U="Unknown Latency Setting"}else U= O.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";S+=U;(m=h.bR)&&(S+=", seq "+m.sequence);J.live_mode=S}!h.isGapless||FX(O)&&h.uB||(J.playback_categories+="Gapless ");J.playback_categories_style=J.playback_categories?"":"display:none";J.bandwidth_samples=h.Bn;J.network_activity_samples=h.yh;J.live_latency_samples=h.Cw;J.buffer_health_samples=h.FX;h=g.Se(O);if(O.cotn||h)J.cotn_and_local_media=(O.cotn?O.cotn:"null")+" / "+h;J.cotn_and_local_media_style=J.cotn_and_local_media? "":"display:none";Jg(O,"web_player_release_debug")?(J.release_name=gW[17],J.release_style=""):J.release_style="display:none";J.debug_info&&H.length>0&&J.debug_info.length+H.length<=60?J.debug_info+=" "+H:J.extra_debug_info=H;J.extra_debug_info_style=J.extra_debug_info&&J.extra_debug_info.length>0?"":"display:none";return J}; ssw=function(U){var O=/codecs="([^"]*)"/.exec(U.mimeType);return O&&O[1]?O[1]+" ("+U.itag+")":U.itag}; o3=function(U,O,M,S,p){g.r.call(this,{K:"div",L:"ytp-horizonchart"});this.D=O;this.sampleCount=M;this.X=S;this.C=p;this.index=0;this.heightPx=-1;this.B=this.V=null;this.U=Math.round(U/M);this.element.style.width=this.U*this.sampleCount+"px";this.element.style.height=this.D+"em"}; kK=function(U,O){if(U.heightPx===-1){var M=null;try{M=g.GU("CANVAS"),U.V=M.getContext("2d")}catch(f){}if(U.V){var S=U.U*U.sampleCount;U.B=M;U.B.width=S;U.B.style.width=S+"px";U.element.appendChild(U.B)}else for(U.sampleCount=Math.floor(U.sampleCount/4),U.U*=4,M=0;M1?2:1,U.B.height=U.heightPx*M,U.B.style.height= U.heightPx+"px",U.V.scale(1,M)));O=g.D(O);for(S=O.next();!S.done;S=O.next()){M=U;var p=U.index,h=S.value;for(S=0;S+20&&g.jd(O.B.element);S.classList.add("ytp-timely-actions-overlay");O.B.element.appendChild(S)}); g.X(this,this.B);g.Z0(this.api,this.B.element,4)}; Ho4=function(U){U.timelyActions&&(U.X=U.timelyActions.reduce(function(O,M){if(M.cueRangeId===void 0)return O;O[M.cueRangeId]=0;return O},{}))}; sS=function(U,O){if(U.timelyActions){U=g.D(U.timelyActions);for(var M=U.next();!M.done;M=U.next())if(M=M.value,M.cueRangeId===O)return M}}; ziw=function(U,O){if((U=sS(U,O))&&U.onCueRangeExit)return VX(U.onCueRangeExit)}; cY1=function(U){if(U.U!==void 0){var O=(O=sS(U,U.U))&&O.onCueRangeEnter?VX(O.onCueRangeEnter):void 0;var M=sS(U,U.U);if(M&&M.additionalTrigger){var S=!1;for(var p=g.D(M.additionalTrigger),h=p.next();!h.done;h=p.next())h=h.value,h.type&&h.args&&U.D[h.type]!==void 0&&(S=S||U.D[h.type](h.args))}else S=!0;O&&S&&(U.api.ZQ("innertubeCommand",O),U.setTimeout(M),U.X[U.U]!==void 0&&U.X[U.U]++,U.G=!0)}}; $bg=function(U,O){return U.V===void 0?!1:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(O.seekLengthMilliseconds)===5E3?U.V===72:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(O.seekLengthMilliseconds)===1E4?U.V===74:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(O.seekLengthMilliseconds)===5E3?U.V===71:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(O.seekLengthMilliseconds)===1E4?U.V===73:!1}; T6q=function(U){if(U=U.getWatchNextResponse()){var O,M;U=(O=U.playerOverlays)==null?void 0:(M=O.playerOverlayRenderer)==null?void 0:M.timelyActionsOverlayViewModel;O=g.q(U,Dbi);if(O!=null&&O.timelyActions)return O==null?void 0:O.timelyActions.map(function(S){return g.q(S,db4)}).filter(function(S){return!!S})}}; WGU=function(U){pB.call(this,U);var O=this;He(this.api,"getPlaybackRate",function(){return O.api.getPlaybackRate()}); He(this.api,"setPlaybackRate",function(M){typeof M==="number"&&O.api.setPlaybackRate(M)})}; N6w=function(U){U=U.kI();if(!U)return!1;U=g.Gr(U).exp||"";return U.includes("xpv")||U.includes("xpe")}; vx5=function(U){U=g.D(g.g0(U,!0));for(var O=U.next();!O.done;O=U.next())if(N6w(O.value))return!0;return!1}; B6e=function(U,O){U=g.D(g.g0(U,!0));for(var M=U.next();!M.done;M=U.next())if(M=M.value,N6w(M)){var S={potc:"1",pot:O};M.url&&(M.url=$J(M.url,S))}}; xbi=function(U){var O=new hg4,M={},S=(M["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",M);return new uK(O,U,function(){return S})}; boe=function(U){return g.A(function(O){if(O.U==1)return g.dW(O,2),g.Y(O,U,4);if(O.U!=2)return g.vg(O,0);g.Bg(O);g.Dq(O)})}; Sj=function(U){pB.call(this,U);var O=this;this.useLivingRoomPoToken=!1;this.X=new g.AH;this.d7=null;this.D=!1;this.B=null;this.G=!1;var M=U.J().getWebPlayerContextConfig();this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"spsumpreject",function(S,p,h){O.G=p;S&&O.D&&!O.B&&(O.T("html5_generate_content_po_token")&&h?O.lq(h):O.T("html5_generate_session_po_token")&&Rim(O));O.B||O.api.al("stp",{s:+O.D,b:+O.G})}); this.events.j(U,"poTokenVideoBindingChange",function(S){O.lq(S)}); this.useLivingRoomPoToken=!(M==null||!M.useLivingRoomPoToken);U.addEventListener("csiinitialized",function(){O.d7=U.f6();var S=(O.T("html5_generate_session_po_token")||O.T("html5_generate_content_po_token"))&&!O.useLivingRoomPoToken;try{if(O.T("html5_use_shared_owl_instance"))ti4(O);else if(S){O.d7.bb("pot_isc");O.T("html5_new_wpo_client")||YAq(O);var p=g.DF(O.api.J().experiments,"html5_webpo_kaios_defer_timeout_ms");p?(O.T("html5_new_wpo_client")&&(O.V=fx()),g.Nv(function(){MV(O)},p)):O.T("html5_webpo_idle_priority_job")? (O.T("html5_new_wpo_client")&&(O.V=fx()),g.hx(g.yF(),function(){MV(O)})):MV(O)}}catch(h){h instanceof Error&&g.rz(h)}}); U.addEventListener("trackListLoaded",this.JL.bind(this));U.y4(this)}; mbJ=function(U){var O=pL(U.experiments,"html5_web_po_request_key");return O?O:g.PF(U)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; pI=function(U,O){if(U.T("html5_webpo_bge_ctmp")){var M,S={hwpo:!!U.U,hwpor:!((M=U.U)==null||!M.isReady())};U.api.al(O,S)}}; ti4=function(U){var O,M;g.A(function(S){if(S.U==1)return pI(U,"swpo_i"),U.V=fx(),hM(U),g.Y(S,m6(),2);if(S.U!=3)return O=S.V,pI(U,"swpo_co"),g.Y(S,U0g(O),3);M=S.V;U.U=AY5(U,M);pI(U,"swpo_cc");U.U.ready().then(function(){U.X.resolve();pI(U,"swpo_re")}); g.Nv(function(){MV(U);pI(U,"swpo_si")},0); g.Dq(S)})}; YAq=function(U){var O=U.api.J(),M=mbJ(O),S=xbi(M);O=new gQ({zO:"CLEn",Qk:M,eG:S,onEvent:function(p){(p=Im1[p])&&U.d7.bb(p)}, onError:g.rz,N7:x6w(O.experiments),SE:function(){return void U.api.al("itr",{})}, kJL:O.experiments.F0("html5_web_po_disable_remote_logging")||PFe.includes(g.UY(O.lU)||"")});O.ready().then(function(){return void U.X.resolve()}); g.X(U,O);U.U=O}; nx1=function(U){var O=U.api.J(),M=xbi(mbJ(O)),S=M.JQ.bind(M);M.JQ=function(f){var F;return g.A(function(l){if(l.U==1)return g.Y(l,S(f),2);F=l.V;U.api.al("itr",{});return l.return(F)})}; try{var p=new qa({eG:M,W6:{maxAttempts:5},EO:{zO:"CLEn",disable:O.experiments.F0("html5_web_po_disable_remote_logging")||PFe.includes(g.UY(O.lU)||""),VD:x6w(O.experiments),PMP:U.T("wpo_dis_lfdms")?0:1E3},D4Z:g.rz});var h=new yp({x5:p,eG:M,onError:g.rz});boe(h.R5()).then(function(){return void U.X.resolve()}); g.X(U,p);g.X(U,h);U.U=AY5(U,h)}catch(f){g.rz(f);var J;(J=p)==null||J.dispose()}}; MV=function(U){var O=U.api.J();U.d7.bb("pot_ist");U.U?U.U.start():U.T("html5_new_wpo_client")&&nx1(U);U.T("html5_bandaid_attach_content_po_token")||(U.T("html5_generate_session_po_token")&&(hM(U),Rim(U)),O=g.DF(O.experiments,"html5_session_po_token_interval_time_ms")||0,O>0&&(U.C=g.v5(function(){hM(U)},O)),U.D=!0)}; hM=function(U){var O,M,S,p;g.A(function(h){if(!U.T("html5_generate_session_po_token")||U.useLivingRoomPoToken)return h.return();O=U.api.J();M=g.wZ("EOM_VISITOR_DATA")||g.wZ("VISITOR_DATA");S=O.B7?O.datasyncId:M;p=pL(O.experiments,"html5_mock_content_binding_for_session_token")||O.livingRoomPoTokenId||S;O.EF=JM(U,p);g.Dq(h)})}; JM=function(U,O){if(!U.U){if(U.V)try{return U.V(O)}catch(J){g.rz(J)}return""}try{var M=U.U.isReady();U.d7.bb(M?"pot_cms":"pot_csms");var S="";S=U.T("html5_web_po_token_disable_caching")?U.U.qX({Nb:O}):U.U.qX({Nb:O,Bi:{hE:O,d0Y:150,YR:!0,V6:!0}});U.d7.bb(M?"pot_cmf":"pot_csmf");if(M){var p;(p=U.B)==null||p.resolve();U.B=null;if(U.G){U.G=!1;var h;(h=U.api.app.jc())==null||h.gV(!1)}}return S}catch(J){return g.rz(J),""}}; Rim=function(U){U.U&&(U.B=new M6,U.U.ready().then(function(){U.d7.bb("pot_if");hM(U)}))}; AY5=function(U,O){U.T("html5_web_po_token_disable_caching")||O.vY(150);var M=!1,S=boe(O.R5()).then(function(){M=!0}); return{isReady:function(){return M}, ready:function(){return S}, qX:function(p){return O.qX({Nb:p.Nb,Nv:!0,ZP:!0,Bi:p.Bi?{hE:p.Bi.hE,YR:p.Bi.YR,V6:p.Bi.V6}:void 0})}, start:function(){}}}; Qs4=function(U){pB.call(this,U);var O=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Zj(U);g.X(this,this.events);this.events.j(U,"heartbeatRequest",function(M){if(O.freePreviewUsageDetails.length||O.freePreviewWatchedDuration!==null)M.heartbeatRequestParams||(M.heartbeatRequestParams={}),M.heartbeatRequestParams.unpluggedParams||(M.heartbeatRequestParams.unpluggedParams={}),O.freePreviewUsageDetails.length>0?M.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= O.freePreviewUsageDetails:M.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+O.freePreviewWatchedDuration}}); ee(U,"setFreePreviewWatchedDuration",function(M){O.freePreviewWatchedDuration=M}); ee(U,"setFreePreviewUsageDetails",function(M){O.freePreviewUsageDetails=M})}; yR=function(U){g.C.call(this);this.features=[];var O=this.U,M=new Ig(U),S=new hq(U),p=new zY(U),h=new Sj(U);var J=g.Au(U.J())?void 0:new BL(U);var f=new H2(U),F=new pme(U),l=new WGU(U),G=new Aq(U);var T=g.Au(U.J())?new Qs4(U):void 0;var e=U.T("html5_enable_ssap")?new Oow(U):void 0;var H=U.T("web_cinematic_watch_settings")&&(H=U.J().getWebPlayerContextConfig())!=null&&H.cinematicSettingsAvailable?new dg(U):void 0;var z=new me(U);var W=U.T("enable_courses_player_overlay_purchase")?new Nx5(U):void 0; var v=g.gG(U.J())?new cWi(U):void 0;var x=new x2(U);var t=U.J().X?new $Gq(U):void 0;var m=g.Pn(U.J())?new GBy(U):void 0;var P=U.T("web_player_move_autonav_toggle")&&U.J().sX?new SN5(U):void 0;var u=g.gG(U.J())?new UBy(U):void 0;var w=U.T("web_enable_speedmaster")&&g.gG(U.J())?new a3(U):void 0;var E=U.J().o2?void 0:new Gcw(U);var Sm=U.T("report_pml_debug_signal")?new O65(U):void 0;var JU=new Gfm(U),Uw=new W2(U);var Z=g.a8(U.J())?new W2w(U):void 0;var k=navigator.mediaSession&&window.MediaMetadata&& U.J().Q$?new jv(U):void 0;var d=U.T("html5_enable_drc")&&!U.J().C?new vL(U):void 0;var K=new yk(U);var i5=g.gG(U.J())?new P$w(U):void 0;var vq=U.T("html5_enable_d6de4")?new c2(U):void 0;var Hq=g.gG(U.J())&&U.T("web_sleep_timer")?new XE(U):void 0;var b5=g.Pn(U.J())?new jyy(U):void 0;var s4=new nR(U),yD=new f14(U),zl=new wxg(U);var B=U.T("enable_sabr_snackbar_message")?new VIi(U):void 0;var b=U.T("web_enable_timely_actions")?new ei7(U):void 0;O.call(this,M,S,p,h,J,f,F,l,G,T,e,H,z,W,v,x,t,m,P,u,w,E, Sm,JU,Uw,Z,void 0,k,d,K,void 0,i5,vq,Hq,b5,void 0,s4,yD,zl,void 0,B,b,new WL(U))}; CFg=function(){this.V=this.U=NaN}; Xm7=function(U,O){this.gG=U;this.timerName="";this.B=!1;this.V=NaN;this.X=new CFg;this.U=O||null;this.B=!1}; uxw=function(U,O,M){var S=g.qn(O.X0)&&!O.X0.C;if(O.X0.n1&&(Qh(O.X0)||O.X0.QP==="shortspage"||JI(O.X0)||S)&&!U.B){U.B=!0;U.C=O.clientPlaybackNonce;g.wZ("TIMING_ACTION")||kk("TIMING_ACTION",U.gG.csiPageType);U.gG.csiServiceName&&kk("CSI_SERVICE_NAME",U.gG.csiServiceName);if(U.U){S=U.U.f6();for(var p=g.D(Object.keys(S)),h=p.next();!h.done;h=p.next())h=h.value,Ll(h,S[h],U.timerName);S=g.p4(PB4)(U.U.fZ);g.Va(S,U.timerName);S=U.U;S.V={};S.fZ={}}g.Va({playerInfo:{visibilityState:g.p4(Ike)()},playerType:"LATENCY_PLAYER_HTML5"}, U.timerName);U.G!==O.clientPlaybackNonce||Number.isNaN(U.V)||(k6("_start",U.timerName)?M=g.p4(Zz)("_start",U.timerName)+U.V:g.rz(new g.sT("attempted to log gapless pbs before CSI timeline started",{cpn:O.clientPlaybackNonce})));M&&!k6("pbs",U.timerName)&&fI(U,M)}}; fI=function(U,O,M){Ll("pbs",O!=null?O:(0,g.nM)(),M!=null?M:U.timerName)}; qA7=function(U,O,M,S,p,h,J,f){O=(O===S?"video":"ad")+"_to_"+(M===S?"video":"ad");if(O!=="video_to_ad"||J!=null&&J.sA){J=O==="ad_to_video"?J:p;S=J==null?void 0:J.bJ;var F={};if(p==null?0:p.C)F.cttAuthInfo={token:p.C,videoId:p.videoId};h&&(F.startTime=h);oY(O,F);var l,G,T;p={targetVideoId:(l=p==null?void 0:p.videoId)!=null?l:"empty_video",targetCpn:M,adVideoId:(G=J==null?void 0:J.videoId)!=null?G:"empty_video",adClientPlaybackNonce:(T=S==null?void 0:S.cpn)!=null?T:J==null?void 0:J.clientPlaybackNonce}; S&&(p.adBreakType=S.adBreakType,p.adType=S.adType);g.Va(p,O);fI(U,f,O)}}; F9=function(U){rrg();Ksy();U.timerName=""}; ioJ=function(U){if(U.U){var O=U.U;O.V={};O.fZ={}}U.B=!1;U.G=void 0;U.V=NaN}; Zoe=function(U,O){g.H_.call(this);this.X0=U;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.U=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.V=0;if(U=O.session_data)this.sessionData=yI(U,"&");this.index=Math.max(0,Number(O.index)||0);this.loop=!!O.loop;this.startSeconds=Number(O.startSeconds)||0;this.title=O.playlist_title||"";this.description=O.playlist_description||"";this.author= O.author||O.playlist_author||"";O.video_id&&(this.items[this.index]=O);if(U=O.api)typeof U==="string"&&U.length===16?O.list="PL"+U:O.playlist=U;if(U=O.list)switch(O.listType){case "user_uploads":this.listId=new bT("UU","PLAYER_"+U);break;default:var M=O.playlist_length;M&&(this.length=Number(M)||0);this.listId=g.RC(U);if(U=O.video)this.items=U.slice(0),this.loaded=!0}else if(O.playlist){U=O.playlist.toString().split(",");this.index>0&&(this.items=[]);U=g.D(U);for(M=U.next();!M.done;M=U.next())(M= M.value)&&this.items.push({video_id:M});this.length=this.items.length;if(U=O.video)this.items=U.slice(0),this.loaded=!0}this.setShuffle(!!O.shuffle);if(U=O.suggestedQuality)this.quality=U;this.Z=N3(O,"playlist_");this.B=(O=O.thumbnail_ids)?O.split(","):[]}; KG7=function(U){return!!(U.playlist||U.list||U.api)}; rYW=function(U){var O=U.index+1;return O>=U.length?0:O}; amW=function(U){var O=U.index-1;return O<0?U.length-1:O}; g.la=function(U,O,M,S){O=O!==void 0?O:U.index;O=U.items&&O in U.items?U.items[U.order[O]]:null;var p=null;O&&(M&&(O.autoplay="1"),S&&(O.autonav="1"),p=new g.oC(U.X0,O),g.X(U,p),p.GB=!0,p.startSeconds=U.startSeconds||p.clipStart||0,U.listId&&(p.playlistId=U.listId.toString()));return p}; ExU=function(U,O){U.index=g.Nm(O,0,U.length-1);U.startSeconds=0}; LGq=function(U,O){if(O.video&&O.video.length){U.title=O.title||"";U.description=O.description;U.views=O.views;U.likes=O.likes;U.dislikes=O.dislikes;U.author=O.author||"";var M=O.loop;M&&(U.loop=M);M=g.la(U);U.items=[];for(var S=g.D(O.video),p=S.next();!p.done;p=S.next())if(p=p.value)p.video_id=p.encrypted_id,U.items.push(p);U.length=U.items.length;(O=O.index)?U.index=O:U.findIndex(M);U.setShuffle(!1);U.loaded=!0;U.V++;U.U&&U.U()}}; kce=function(U,O){var M,S,p,h,J,f,F;return g.A(function(l){if(l.U==1){M=g.TE();var G=U.J(),T={context:g.Tj(U),playbackContext:{contentPlaybackContext:{ancestorOrigins:G.ancestorOrigins}}},e=G.getWebPlayerContextConfig();if(e==null?0:e.encryptedHostFlags)T.playbackContext.contentPlaybackContext.encryptedHostFlags=e.encryptedHostFlags;if(e==null?0:e.hideInfo)T.playerParams={showinfo:!1};G=G.embedConfig;e=O.docid||O.video_id||O.videoId||O.id;if(!e){e=O.raw_embedded_player_response;if(!e){var H=O.embedded_player_response; H&&(e=JSON.parse(H))}if(e){var z,W,v,x,t,m;e=((m=g.q((z=e)==null?void 0:(W=z.embedPreview)==null?void 0:(v=W.thumbnailPreviewRenderer)==null?void 0:(x=v.playButton)==null?void 0:(t=x.buttonRenderer)==null?void 0:t.navigationEndpoint,g.pe))==null?void 0:m.videoId)||null}else e=null}z=(z=e)?z:void 0;W=U.playlistId?U.playlistId:O.list;v=O.listType;if(W){var P;v==="user_uploads"?P={username:W}:P={playlistId:W};Viy(G,z,O,P);T.playlistRequest=P}else O.playlist?(P={templistVideoIds:O.playlist.toString().split(",")}, Viy(G,z,O,P),T.playlistRequest=P):z&&(P={videoId:z},G&&(P.serializedThirdPartyEmbedConfig=G),T.singleVideoRequest=P);S=T;p=g.ya(oxe);g.dW(l,2);return g.Y(l,g.Mz(M,S,p),4)}if(l.U!=2)return h=l.V,J=U.J(),O.raw_embedded_player_response=h,J.sA=HA(O,g.Pn(J)),J.B=J.sA==="EMBEDDED_PLAYER_MODE_PFL",h&&(f=h,f.trackingParams&&PZ(f.trackingParams)),l.return(new g.oC(J,O));F=g.Bg(l);F instanceof Error||(F=Error("b259802748"));g.K5(F);return l.return(U)})}; Viy=function(U,O,M,S){M.index&&(S.playlistIndex=String(Number(M.index)+1));S.videoId=O?O:"";U&&(S.serializedThirdPartyEmbedConfig=U)}; g.$9=function(U,O){GT.get(U);GT.set(U,O)}; g.TT=function(U){g.H_.call(this);this.loaded=!1;this.player=U}; wmW=function(){this.V=[];this.U=[]}; g.g0=function(U,O){return O?U.U.concat(U.V):U.U}; g.jj=function(U,O){switch(O.kind){case "asr":Uhi(O,U.V);break;default:Uhi(O,U.U)}}; Uhi=function(U,O){g.VD(O,function(M){return U.KW(M)})||O.push(U)}; g.ej=function(U){g.C.call(this);this.md=U;this.V=new wmW;this.X=null;this.G=[];this.Y=[]}; g.Hx=function(U,O,M){g.ej.call(this,U);this.videoData=O;this.audioTrack=M;this.U=null;this.B=!1;this.G=O.tE;this.Y=O.CU;this.B=g.Zp(O)}; g.zT=function(U,O){return fO(U.info.mimeType)?O?U.info.itag===O:!0:!1}; g.OwW=function(U,O){if(U.U!=null&&g.Au(O.J())&&!U.U.isManifestless&&U.U.U.rawcc!=null)return!0;if(!U.KE())return!1;O=!!U.U&&U.U.isManifestless&&Object.values(U.U.U).some(function(M){return g.zT(M,"386")}); U=!!U.U&&!U.U.isManifestless&&g.QmJ(U.U);return O||U}; g.cx=function(U,O,M,S,p,h){g.ej.call(this,U);this.videoId=M;this.qJ=p;this.eventId=h;this.C={};this.U=null;U=S||g.Gr(O).hl||"";U=U.split("_").join("-");this.B=$J(O,{hl:U})}; sj4=function(U,O){this.V=U;this.U=O;this.onFailure=void 0}; gpw=function(U,O){return{EK:U.EK&&O.EK,Mm:U.Mm&&O.Mm,sync:U.sync&&O.sync,streaming:U.streaming&&O.streaming}}; d0=function(U,O){var M=Mtq,S=this;this.path=U;this.B=O;this.X=M;this.capabilities={EK:!!this.B,Mm:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new sj4([{name:"compileStreaming",condition:function(p){return!!S.V&&p.streaming}, pG:Dd.O0("wmcx",function(){return WebAssembly.compileStreaming(fetch(S.path))}), onFailure:function(){return S.capabilities.streaming=!1}}, {name:"sync",condition:function(p){return p.sync}, pG:function(){return D1(S1J(S),Dd.O0("wmcs",function(p){return new WebAssembly.Module(p)}))}, onFailure:function(){return S.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, pG:function(){return D1(S1J(S),Dd.O0("wmca",function(p){return WebAssembly.compile(p)}))}, onFailure:function(){return S.capabilities.Mm=!1}}]); this.C=new sj4([{name:"instantiateStreaming",condition:function(p){return p.Mm&&p.streaming&&!S.V&&!S.U}, pG:function(p,h){return Dd.XO("wmix",function(){return WebAssembly.instantiateStreaming(fetch(S.path),h)}).then(function(J){S.U=jA(J.module); return{instance:J.instance,c5:!1}})}, onFailure:function(){return S.capabilities.streaming=!1}}, {name:"sync",condition:function(p){return p.Mm&&p.sync}, pG:function(p,h){return D1(pww(S,p),Dd.O0("wmis",function(J){return{instance:new WebAssembly.Instance(J,h),c5:!1}}))}, onFailure:function(){return S.capabilities.sync=!1}}, {name:"async",condition:function(p){return p.Mm}, pG:function(p,h){return D1(D1(pww(S,p),Dd.O0("wmia",function(J){return WebAssembly.instantiate(J,h)})),function(J){return{instance:J, c5:!1}})}, onFailure:function(){return S.capabilities.Mm=!1}}, {name:"asmjs",condition:function(p){return p.EK}, pG:function(p,h){return jA(Dd.XO("wmij",function(){return S.B(h)}).then(function(J){return{instance:{exports:J}, c5:!0}}))}, onFailure:function(){return S.capabilities.EK=!1}}],function(p,h,J){return S.X(J,p.instance.exports)})}; ynW=function(U){var O=hlU;return O.instantiate(U?gpw(O.capabilities,U):O.capabilities,new Jn4)}; S1J=function(U){if(U.V)return U.V;var O=fetch(U.path).then(function(M){return M.arrayBuffer()}).then(function(M){U.V=jA(M); return M}).then(void 0,function(M){g.rz(Error("wasm module fetch failure: "+M.message,{cause:M})); U.V=void 0;throw M;}); U.V=jA(O);return U.V}; pww=function(U,O){if(!O.Mm)return HZ(Error("wasm unavailable"));if(U.U)return U.U;U.U=dx(D1(U.compile(O),function(M){U.U=jA(M);return M}),function(M){g.rz(Error("wasm module compile failure: "+M.message,{cause:M})); U.U=void 0;throw M;}); return U.U}; faU=function(){}; FIq=function(){var U=this;this.proc_exit=function(){}; this.fd_write=function(O,M,S){if(!U.exports)return 1;O=new Uint32Array(U.exports.memory.buffer,M,S*2);M=[];for(var p=0;p=11;U=U.api.J().Y&&mH;return!(!O&&!U)}; Zd=function(U,O){return!U.api.isInline()&&!LIw(U,In(O))&&g.I8(O)}; EpJ=function(U){U.No.Pe();if(U.EE&&U.U2)U.U2=!1;else if(!U.api.J().Ka&&!U.yu()){var O=U.api.getPlayerStateObject();g.a(O,2)&&g.nd(U.api)||U.II(O);!U.api.J().hG||O.isCued()||g.a(O,1024)?U.lm():U.JO.isActive()?(U.N1(),U.JO.stop()):U.JO.start()}}; opm=function(U,O){var M;if((M=U.api.getVideoData())==null?0:M.mutedAutoplay){var S,p;if((S=O.target)==null?0:(p=S.className)==null?0:p.includes("ytp-info-panel"))return!1}return g.I8(O)&&U.api.isMutedByMutedAutoplay()?(U.api.unMute(),U.api.getPresentingPlayerType()===2&&U.api.playVideo(),O=U.api.getPlayerStateObject(),!g.a(O,4)||g.a(O,8)||g.a(O,2)||U.lm(),!0):!1}; kiw=function(U,O,M){U.api.isFullscreen()?M<1-O&&U.api.toggleFullscreen():M>1+O&&U.api.toggleFullscreen()}; aa5=function(U){var O=wa()&&VI()>=67&&!U.api.J().Y;U=U.api.J().disableOrganicUi;return!g.kJ("tizen")&&!mq&&!O&&!U}; g.KI=function(U){g.r.call(this,{K:"div",W:[{K:"div",L:"ytp-bezel-text-wrapper",W:[{K:"div",L:"ytp-bezel-text",UA:"{{title}}"}]},{K:"div",L:"ytp-bezel",N:{role:"status","aria-label":"{{label}}"},W:[{K:"div",L:"ytp-bezel-icon",UA:"{{icon}}"}]}]});this.S=U;this.V=new g.UM(this.show,10,this);U=this.S.T("delhi_modern_web_player")?1E3:500;this.U=new g.UM(this.hide,U,this);g.X(this,this.V);g.X(this,this.U);this.hide()}; aU=function(U,O,M){if(O<=0){M=uZ();O="silenciado";var S=0}else M=M?{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,N:{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"}}]}:{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,N:{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"}}]},S=Math.floor(O),O=S+"volumen";r0(U,M,O,S+"%")}; ww4=function(U,O){O=O?{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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"}}]}:HM7();var M=U.S.getPlaybackRate(),S=g.v4("La velocidad es de $RATE",{RATE:String(M)});r0(U,O,S,M+"x")}; UUy=function(U,O){O=O?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";r0(U,JW1(),O)}; r0=function(U,O,M,S){S=S===void 0?"":S;U.updateValue("label",M===void 0?"":M);U.updateValue("icon",O);g.gB(U.U);U.V.start();U.updateValue("title",S);g.ea(U.element,"ytp-bezel-text-hide",!S)}; OFw=function(U,O){g.r.call(this,{K:"button",OA:["ytp-button","ytp-cards-button"],N:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Pn(U.J()))},W:[{K:"span",L:"ytp-cards-button-icon-default",W:[{K:"div",L:"ytp-cards-button-icon",W:[U.J().T("player_new_info_card_format")?DRg():{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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"}}]}]}, {K:"div",L:"ytp-cards-button-title",UA:"Informaci\u00f3n"}]},{K:"span",L:"ytp-cards-button-icon-shopping",W:[{K:"div",L:"ytp-cards-button-icon",W:[{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",L:"ytp-svg-shadow",N:{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"}},{K:"path",L:"ytp-svg-fill",N:{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"}},{K:"path",L:"ytp-svg-shadow-fill",N:{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"}}]}]},{K:"div", L:"ytp-cards-button-title",UA:"Shopping"}]}]});this.S=U;this.V=O;this.U=null;this.fade=new g.FY(this,250,!0,100);g.X(this,this.fade);g.ea(this.V,"ytp-show-cards-title",g.Pn(U.J()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Kz(!0)}; sIJ=function(U,O){g.r.call(this,{K:"div",L:"ytp-cards-teaser",W:[{K:"div",L:"ytp-cards-teaser-box"},{K:"div",L:"ytp-cards-teaser-text",W:U.J().T("player_new_info_card_format")?[{K:"button",L:"ytp-cards-teaser-info-icon",N:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},W:[DRg()]},{K:"span",L:"ytp-cards-teaser-label",UA:"{{text}}"},{K:"button",L:"ytp-cards-teaser-close-button",N:{"aria-label":"Cerrar"},W:[g.YQ()]}]:[{K:"span",L:"ytp-cards-teaser-label",UA:"{{text}}"}]}]});var M=this;this.S= U;this.uU=O;this.fade=new g.FY(this,250,!1,250);this.U=null;this.D=new g.UM(this.Zrd,300,this);this.C=new g.UM(this.Nid,2E3,this);this.X=[];this.V=null;this.Y=new g.UM(function(){M.element.style.margin="0"},250); this.onClickCommand=this.B=null;g.X(this,this.fade);g.X(this,this.D);g.X(this,this.C);g.X(this,this.Y);U.J().T("player_new_info_card_format")?(g.l3(U.getRootNode(),"ytp-cards-teaser-dismissible"),this.j(this.ML("ytp-cards-teaser-close-button"),"click",this.Xa),this.j(this.ML("ytp-cards-teaser-info-icon"),"click",this.DA),this.j(this.ML("ytp-cards-teaser-label"),"click",this.DA)):this.listen("click",this.DA);this.j(O.element,"mouseover",this.Yv);this.j(O.element,"mouseout",this.Ed);this.j(U,"cardsteasershow", this.keg);this.j(U,"cardsteaserhide",this.CE);this.j(U,"cardstatechange",this.AA);this.j(U,"presentingplayerstatechange",this.AA);this.j(U,"appresize",this.z_);this.j(U,"onShowControls",this.z_);this.j(U,"onHideControls",this.gX);this.listen("mouseenter",this.MH)}; gti=function(U){g.r.call(this,{K:"button",OA:[ES.BUTTON,ES.TITLE_NOTIFICATIONS],N:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{K:"div",L:ES.TITLE_NOTIFICATIONS_ON,N:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},W:[g.Id()]},{K:"div",L:ES.TITLE_NOTIFICATIONS_OFF,N:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},W:[{K:"svg",N:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},W:[{K:"path",N:{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=U;this.U=!1;U.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; Mbm=function(U,O){U.U=O;U.element.classList.toggle(ES.NOTIFICATIONS_ENABLED,U.U);var M=U.api.getVideoData();M?(O=O?M.q6:M.T$)?(U=U.api.hL())?gM(U,O):g.K5(Error("No innertube service available when updating notification preferences.")):g.K5(Error("No update preferences command available.")):g.K5(Error("No video data when updating notification preferences."))}; pN7=function(U,O,M){var S=S===void 0?800:S;var p=p===void 0?600:p;var h=document.location.protocol;U=Dkg(h+"//"+U+"/signin?context=popup","feature",O,"next",h+"//"+location.hostname+"/post_login");S0w(U,M,S,p)}; S0w=function(U,O,M,S){M=M===void 0?800:M;S=S===void 0?600:S;if(U=g.kC(window,U,"loginPopup","width="+M+",height="+S+",resizable=yes,scrollbars=yes"))ejw(function(){O()}),U.moveTo((screen.width-M)/2,(screen.height-S)/2)}; g.LI=function(U,O,M,S,p,h,J,f,F,l,G,T){U=U.charAt(0)+U.substring(1).toLowerCase();M=M.charAt(0)+M.substring(1).toLowerCase();if(O==="0"||O==="-1")O=null;if(S==="0"||S==="-1")S=null;var e=G.J(),H=e.userDisplayName&&g.qn(e);g.r.call(this,{K:"div",OA:["ytp-button","ytp-sb"],W:[{K:"div",L:"ytp-sb-subscribe",N:H?{title:g.v4("Suscribirse como $USER_NAME",{USER_NAME:e.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":yK(e),"data-tooltip-opaque":String(g.Pn(e)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},W:[{K:"div",L:"ytp-sb-text",W:[{K:"div",L:"ytp-sb-icon"},U]},O?{K:"div",L:"ytp-sb-count",UA:O}:""]},{K:"div",L:"ytp-sb-unsubscribe",N:H?{title:g.v4("Suscrito como $USER_NAME",{USER_NAME:e.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":yK(e),"data-tooltip-opaque":String(g.Pn(e)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},W:[{K:"div",L:"ytp-sb-text",W:[{K:"div",L:"ytp-sb-icon"},M]}, S?{K:"div",L:"ytp-sb-count",UA:S}:""]}],N:{"aria-live":"polite"}});var z=this;this.channelId=J;this.S=G;this.B=T;var W=this.ML("ytp-sb-subscribe"),v=this.ML("ytp-sb-unsubscribe");h&&g.l3(this.element,"ytp-sb-classic");if(p){f?this.U():this.V();var x=function(){if(e.BA){var m=z.channelId;if(F||l){var P={c:m};var u;g.XF.isInitialized()&&(u=WSw(P));P=u||"";if(u=G.getVideoData())if(u=u.subscribeCommand){var w=G.hL();w?(gM(w,u,{botguardResponse:P,feature:F}),G.ZQ("SUBSCRIBE",m)):g.K5(Error("No innertube service available when updating subscriptions."))}else g.K5(Error("No subscribe command in videoData.")); else g.K5(Error("No video data available when updating subscription."))}v.focus();v.removeAttribute("aria-hidden");W.setAttribute("aria-hidden","true")}else pN7(g.k0(z.S.J()),"sb_button",z.X)},t=function(){var m=z.channelId; if(F||l){var P=G.getVideoData();gM(G.hL(),P.unsubscribeCommand,{feature:F});G.ZQ("UNSUBSCRIBE",m)}W.focus();W.removeAttribute("aria-hidden");v.setAttribute("aria-hidden","true")}; this.j(W,"click",x);this.j(v,"click",t);this.j(W,"keypress",function(m){m.keyCode===13&&x(m)}); this.j(v,"keypress",function(m){m.keyCode===13&&t(m)}); this.j(G,"SUBSCRIBE",this.U);this.j(G,"UNSUBSCRIBE",this.V);this.B&&H&&(iHU(G),Ag(G,W,this),Ag(G,v,this))}else g.l3(W,"ytp-sb-disabled"),g.l3(v,"ytp-sb-disabled")}; ykW=function(U){g.r.call(this,{K:"div",L:"ytp-title-channel",W:[{K:"div",L:"ytp-title-beacon"},{K:"a",L:"ytp-title-channel-logo",N:{href:"{{channelLink}}",target:U.J().Z,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",L:"ytp-title-expanded-overlay",N:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{K:"div",L:"ytp-title-expanded-heading",W:[{K:"div",L:"ytp-title-expanded-title",W:[{K:"a",UA:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:U.J().Z,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",L:"ytp-title-expanded-subtitle",UA:"{{expandedSubtitle}}",N:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var O=this;this.api=U;this.channel=this.ML("ytp-title-channel");this.V=this.ML("ytp-title-channel-logo");this.channelName=this.ML("ytp-title-expanded-title");this.C=this.ML("ytp-title-expanded-overlay");this.B=this.U=this.subscribeButton=null;this.X=!1;U.createClientVe(this.V,this,36925);U.createClientVe(this.channelName,this, 37220);g.Pn(this.api.J())&&hI5(this);this.j(U,"videodatachange",this.PA);this.j(U,"videoplayerreset",this.PA);this.j(this.channelName,"click",function(M){O.api.logClick(O.channelName);g.kC(window,Jkw(O));M.preventDefault()}); this.j(this.V,"click",this.sTY);this.PA()}; fi5=function(U){if(!U.api.J().F9){var O=U.api.getVideoData(),M=new g.LI("Suscribirse",null,"Suscrito/a",null,!0,!1,O.b2,O.subscribed,"channel_avatar",null,U.api,!0);U.api.createServerVe(M.element,U);var S;U.api.setTrackingParams(M.element,((S=O.subscribeButtonRenderer)==null?void 0:S.trackingParams)||null);U.j(M.element,"click",function(){U.api.logClick(M.element)}); U.subscribeButton=M;g.X(U,U.subscribeButton);U.subscribeButton.AZ(U.C);U.subscribeButton.hide();var p=new gti(U.api);U.U=p;g.X(U,p);p.AZ(U.C);p.hide();U.j(U.api,"SUBSCRIBE",function(){O.Dy&&(p.show(),U.api.logVisibility(p.element,!0))}); U.j(U.api,"UNSUBSCRIBE",function(){O.Dy&&(p.hide(),U.api.logVisibility(p.element,!1),Mbm(p,!1))})}}; hI5=function(U){var O=U.api.J();fi5(U);U.updateValue("flyoutUnfocusable","true");U.updateValue("channelTitleFocusable","-1");U.updateValue("shouldHideExpandedTitleForA11y","true");U.updateValue("shouldHideExpandedSubtitleForA11y","true");O.V||O.HA||(U.j(U.channel,"mouseenter",U.cY),U.j(U.channel,"mouseleave",U.xO),U.j(U.channel,"focusin",U.cY),U.j(U.channel,"focusout",function(M){U.channel.contains(M.relatedTarget)||U.xO()})); U.B=new g.UM(function(){U.isExpanded()&&(U.api.logVisibility(U.channelName,!1),U.subscribeButton&&(U.subscribeButton.hide(),U.api.logVisibility(U.subscribeButton.element,!1)),U.U&&(U.U.hide(),U.api.logVisibility(U.U.element,!1)),U.channel.classList.remove("ytp-title-expanded"),U.channel.classList.add("ytp-title-show-collapsed"))},500); g.X(U,U.B);U.j(U.channel,Fm4,function(){lig(U)}); U.j(U.api,"onHideControls",U.mR);U.j(U.api,"appresize",U.mR);U.j(U.api,"fullscreentoggled",U.mR)}; lig=function(U){U.channel.classList.remove("ytp-title-show-collapsed");U.channel.classList.remove("ytp-title-show-expanded")}; Gt1=function(U){var O=U.api.getPlayerSize();return g.Pn(U.api.J())&&O.width>=524}; Jkw=function(U){var O=U.api.J(),M=U.api.getVideoData(),S=g.fJ(O)+M.AG;g.l8(M)&&(S="https://music.youtube.com"+M.AG);if(!g.Pn(O))return S;O={};g.ce(U.api,"addEmbedsConversionTrackingParams",[O]);return g.pj(S,O)}; VR=function(U){var O=g.gg({"aria-haspopup":"true"});g.sc.call(this,O,U);this.listen("keydown",this.U)}; oU=function(U,O){U.element.setAttribute("aria-haspopup",String(O))}; $UJ=function(U,O){g.r.call(this,{K:"div",L:"ytp-user-info-panel",N:{"aria-label":"Informaci\u00f3n del usuario"},W:U.J().BA&&!U.T("embeds_web_always_enable_signed_out_state")?[{K:"div",L:"ytp-user-info-panel-icon",UA:"{{icon}}"},{K:"div",L:"ytp-user-info-panel-content",W:[{K:"div",L:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable}}",role:"text"},UA:"{{watchingAsUsername}}"},{K:"div",L:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable2}}",role:"text"},UA:"{{watchingAsEmail}}"}]}]: [{K:"div",L:"ytp-user-info-panel-icon",UA:"{{icon}}"},{K:"div",L:"ytp-user-info-panel-content",W:[{K:"div",W:[{K:"text",N:{tabIndex:"{{userInfoFocusable}}"},UA:"Saliste de la cuenta"}]},{K:"div",L:"ytp-user-info-panel-login",W:[{K:"a",N:{tabIndex:"{{userInfoFocusable2}}",role:"button"},UA:U.J().F9?"":"Acceder a YouTube"}]}]}]});this.md=U;this.U=O;U.J().BA||U.J().F9||this.j(this.ML("ytp-user-info-panel-login"),"click",this.Qw);this.closeButton=new g.r({K:"button",OA:["ytp-collapse","ytp-button"],N:{title:"Cerrar"}, W:[g.X_()]});this.closeButton.AZ(this.element);g.X(this,this.closeButton);this.j(window,"blur",this.hide);this.j(document,"click",this.n4);this.PA()}; jIi=function(U,O,M){g.bP.call(this,U);this.lM=O;this.PT=M;this.getVideoUrl=new VR(6);this.VB=new VR(5);this.gB=new VR(4);this.aT=new VR(3);this.UW=new g.sc(g.gg({href:"{{href}}",target:this.S.J().Z},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.sc(g.gg(),1,"Estad\u00edsticas");this.Qi=new g.W_({K:"div",OA:["ytp-copytext","ytp-no-contextmenu"],N:{draggable:"false",tabindex:"1"},UA:"{{text}}"});this.hh=new xK(this.S,this.Qi);this.yU=this.u5=null;g.Pn(this.S.J())&& (this.closeButton=new g.r({K:"button",OA:["ytp-collapse","ytp-button"],N:{title:"Cerrar"},W:[g.X_()]}),g.X(this,this.closeButton),this.closeButton.AZ(this.element),this.closeButton.listen("click",this.rX,this));g.Pn(this.S.J())&&(this.Q5=new g.sc(g.gg(),8,"Cuenta"),g.X(this,this.Q5),this.q4(this.Q5,!0),this.Q5.listen("click",this.d_n,this),U.createClientVe(this.Q5.element,this.Q5,137682));this.S.J().kL&&(this.wC=new GP("En bucle",7),g.X(this,this.wC),this.q4(this.wC,!0),this.wC.listen("click",this.Rsg, this),U.createClientVe(this.wC.element,this.wC,28661));g.X(this,this.getVideoUrl);this.q4(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.HrP,this);U.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.X(this,this.VB);this.q4(this.VB,!0);this.VB.listen("click",this.hsA,this);U.createClientVe(this.VB.element,this.VB,28660);g.X(this,this.gB);this.q4(this.gB,!0);this.gB.listen("click",this.PHP,this);U.createClientVe(this.gB.element,this.gB,28658);g.X(this,this.aT);this.q4(this.aT, !0);this.aT.listen("click",this.Ljc,this);g.X(this,this.UW);this.q4(this.UW,!0);this.UW.listen("click",this.wJg,this);g.X(this,this.showVideoInfo);this.q4(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.OOa,this);g.X(this,this.Qi);this.Qi.listen("click",this.uI0,this);g.X(this,this.hh);O=document.queryCommandSupported&&document.queryCommandSupported("copy");aqe("Chromium")>=43&&(O=!0);aqe("Firefox")<=40&&(O=!1);O&&(this.u5=new g.r({K:"textarea",L:"ytp-html5-clipboard",N:{readonly:"", tabindex:"-1"}}),g.X(this,this.u5),this.u5.AZ(this.element));var S;(S=this.Q5)==null||S.setIcon(vOe());var p;(p=this.wC)==null||p.setIcon({K:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.aT.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{"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.UW.setIcon(z17());this.showVideoInfo.setIcon(cxJ());this.j(U,"onLoopChange",this.onLoopChange);this.j(U,"videodatachange",this.onVideoDataChange);TXJ(this);this.CP(this.S.getVideoData())}; k9=function(U,O){var M=!1;if(U.u5){var S=U.u5.element;S.value=O;S.select();try{M=document.execCommand("copy")}catch(p){}}M?U.lM.CE():(U.Qi.gH(O,"text"),g.YK(U.lM,U.hh),HL(U.Qi.element),U.u5&&(U.u5=null,TXJ(U)));return M}; TXJ=function(U){var O=!!U.u5;g.Oc(U.aT,O?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");oU(U.aT,!O);g.Oc(U.gB,O?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");oU(U.gB,!O);g.Oc(U.getVideoUrl,O?"Copiar URL del video":"Obtener la URL del video");oU(U.getVideoUrl,!O);g.Oc(U.VB,O?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");oU(U.VB,!O);U.gB.setIcon(O?jE7():null);U.getVideoUrl.setIcon(O? mQ():null);U.VB.setIcon(O?mQ():null)}; eI7=function(U){return g.Pn(U.S.J())?U.Q5:U.wC}; zI1=function(U,O){g.tm.call(this,U);this.PT=O;this.X=new g.Zj(this);this.yP=new g.UM(this.HOG,1E3,this);this.ol=this.B=null;g.X(this,this.X);g.X(this,this.yP);O=this.S.J();U.createClientVe(this.element,this,28656);g.l3(this.element,"ytp-contextmenu");this.S.J().experiments.F0("delhi_modern_web_player")&&g.gG(O)&&g.l3(this.element,"ytp-delhi-modern-contextmenu");HFg(this);this.hide()}; HFg=function(U){g.CE(U.X);var O=U.S.J();O.playerStyle==="gvn"||O.V||O.HA||(O=U.S.g7(),U.X.j(O,"contextmenu",U.tYZ),U.X.j(O,"touchstart",U.onTouchStart,null,!0),U.X.j(O,"touchmove",U.xP,null,!0),U.X.j(O,"touchend",U.xP,null,!0))}; cki=function(U){U.S.isFullscreen()?g.Z0(U.S,U.element,10):U.AZ(ko(U).body)}; w0=function(U,O,M){M=M===void 0?240:M;g.r.call(this,{K:"button",OA:["ytp-button","ytp-copylink-button"],N:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Pn(U.J()))},W:[{K:"div",L:"ytp-copylink-icon",UA:"{{icon}}"},{K:"div",L:"ytp-copylink-title",UA:"Copiar v\u00ednculo",N:{"aria-hidden":"true"}}]});this.api=U;this.U=O;this.V=M;this.visible=!1;this.tooltip=this.U.BJ();O=U.J();this.tooltip.element.setAttribute("aria-live","polite");g.ea(this.element,"ytp-show-copylink-title",g.Pn(O));U.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.j(U,"videodatachange",this.PA);this.j(U,"videoplayerreset",this.PA);this.j(U,"appresize",this.PA);this.PA();this.addOnDisposeCallback(g.mu(this.tooltip,this.element))}; DUU=function(U){var O=U.api.J(),M=U.api.getVideoData(),S=U.api.g7().getPlayerSize().width;O=O.B;return!!M.videoId&&S>=U.V&&M.qd&&!g.fd(M)&&!U.api.isEmbedsShortsMode()&&!O}; dUW=function(U){U.updateValue("icon",bZ());if(U.api.J().V)U.tooltip.Tu(U.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{U.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");U.tooltip.Mb();U.tooltip.Tu(U.element);var O=U.listen("mouseleave",function(){U.bH(O);U.PA();U.tooltip.PD()})}}; Wm4=function(U,O){return g.A(function(M){if(M.U==1)return g.dW(M,2),g.Y(M,navigator.clipboard.writeText(O),4);if(M.U!=2)return M.return(!0);g.Bg(M);var S=M.return,p=!1,h=g.GU("TEXTAREA");h.value=O;h.setAttribute("readonly","");var J=U.api.getRootNode();J.appendChild(h);if(gI){var f=window.getSelection();f.removeAllRanges();var F=document.createRange();F.selectNodeContents(h);f.addRange(F);h.setSelectionRange(0,O.length)}else h.select();try{p=document.execCommand("copy")}catch(l){}J.removeChild(h); return S.call(M,p)})}; UD=function(U){g.r.call(this,{K:"div",L:"ytp-doubletap-ui-legacy",W:[{K:"div",L:"ytp-doubletap-fast-forward-ve"},{K:"div",L:"ytp-doubletap-rewind-ve"},{K:"div",L:"ytp-doubletap-static-circle",W:[{K:"div",L:"ytp-doubletap-ripple"}]},{K:"div",L:"ytp-doubletap-overlay-a11y"},{K:"div",L:"ytp-doubletap-seek-info-container",W:[{K:"div",L:"ytp-doubletap-arrows-container",W:[{K:"span",L:"ytp-doubletap-base-arrow"},{K:"span",L:"ytp-doubletap-base-arrow"},{K:"span",L:"ytp-doubletap-base-arrow"}]},{K:"div", L:"ytp-doubletap-tooltip",W:[{K:"div",L:"ytp-seek-icon-text-container",W:[{K:"div",L:"ytp-seek-icon",UA:"{{seekIcon}}"},{K:"div",L:"ytp-chapter-seek-text-legacy",UA:"{{seekText}}"}]},{K:"div",L:"ytp-doubletap-tooltip-label",UA:"{{seekTime}}"}]}]}]});this.S=U;this.X=new g.UM(this.show,10,this);this.V=new g.UM(this.hide,700,this);this.D=this.B=0;this.yP=this.C=!1;this.U=this.ML("ytp-doubletap-static-circle");g.X(this,this.X);g.X(this,this.V);this.hide();this.Y=this.ML("ytp-doubletap-fast-forward-ve"); this.Z=this.ML("ytp-doubletap-rewind-ve");this.S.createClientVe(this.Y,this,28240);this.S.createClientVe(this.Z,this,28239);this.S.logVisibility(this.Y,!0);this.S.logVisibility(this.Z,!0);this.C=U.T("web_show_cumulative_seek_time");this.yP=U.T("web_center_static_circles")}; OD=function(U,O,M,S){if(S=S===void 0?null:S){var p=O===-1?U.Z.visualElement:U.Y.visualElement;S={seekData:S};var h=g.n5();h&&g.p4(ys)(void 0,h,p,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",S,void 0)}U.B=O===U.D?U.B+M:M;U.D=O;p=U.S.g7().getPlayerSize();U.C?U.V.stop():g.gB(U.V);U.X.start();U.element.setAttribute("data-side",O===-1?"back":"forward");g.l3(U.element,"ytp-time-seeking");U.U.style.width="110px";U.U.style.height="110px";S=p.width*.1-15;O===1?U.yP?(U.U.style.right=S+"px",U.U.style.left=""): (U.U.style.right="",U.U.style.left=p.width*.8-30+"px"):O===-1&&(U.yP?(U.U.style.right="",U.U.style.left=S+"px"):(U.U.style.right="",U.U.style.left=p.width*.1-15+"px"));U.U.style.top=p.height*.5+15+"px";NXe(U,U.C?U.B:M)}; sD=function(U,O,M,S){S=S===void 0?null:S;g.gB(U.V);U.X.start();switch(O){case -1:O="back";break;case 1:O="forward";break;default:O=""}U.element.setAttribute("data-side",O);U.U.style.width="0";U.U.style.height="0";g.l3(U.element,"ytp-chapter-seek");U.updateValue("seekText",M);U.updateValue("seekTime","");M=U.ML("ytp-seek-icon");if(S){a:if(S){switch(S){case "PREMIUM_STANDALONE":S={K:"svg",N:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},W:[{K:"path",N:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{K:"path",N:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":S={K:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"rect",N:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"rect",N:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"path",N:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{K:"defs",W:[{K:"linearGradient",N:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},W:[{K:"stop",N:{offset:"0.3","stop-color":"#E1002D"}},{K:"stop",N:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}S=void 0}else S=null;U.updateValue("seekIcon",S);M.style.display="inline-block"}else M.style.display="none"}; NXe=function(U,O){O=g.v4("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:O.toString()});U.updateValue("seekTime",O)}; vtw=function(U){B2.call(this,U,!1,!0);this.sA=[];this.HV=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.QP=new g.r({K:"div",L:"ytp-featured-product-open-in-new"});g.X(this,this.QP);this.countdownTimer=new g.r({K:"text",L:"ytp-featured-product-countdown",UA:"{{content}}"});this.countdownTimer.hide();g.X(this,this.countdownTimer);this.V=new g.r({K:"div",L:"ytp-featured-product-trending",W:[{K:"div",L:"ytp-featured-product-trending-icon"},{K:"text",L:"ytp-featured-product-trending-text", UA:"{{trendingOffer}}"}]});this.V.hide();g.X(this,this.V);this.overflowButton=new g.r({K:"button",OA:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.D=new g.r({K:"text",L:"ytp-featured-product-exclusive-countdown",UA:"{{content}}",N:{id:"exclusiveCountdown","aria-hidden":"true"}});this.D.hide();g.X(this,this.D);this.C=new g.r({K:"div",L:"ytp-featured-product-exclusive-container",N:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, W:[{K:"div",L:"ytp-featured-product-exclusive-badge-container",W:[{K:"div",L:"ytp-featured-product-exclusive-badge",W:[{K:"text",L:"ytp-featured-product-exclusive-badge-text",UA:"{{exclusive}}",N:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.D]});this.C.hide();g.X(this,this.C);this.banner=new g.r({K:"a",L:"ytp-featured-product-container",W:[{K:"div",L:"ytp-featured-product-thumbnail",W:[{K:"img",N:{src:"{{thumbnail}}"}},this.QP]},{K:"div",L:"ytp-featured-product-details",W:[{K:"text",L:"ytp-featured-product-title", UA:"{{title}}"},this.S.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",L:"ytp-featured-product-price-container",N:{"aria-label":"{{priceA11yText}}"},W:[{K:"text",L:"ytp-featured-product-price-when-promotion-text-enabled",UA:"{{price}}",N:{"aria-hidden":"true"}},{K:"text",L:"ytp-featured-product-promotion-text",UA:"{{promotionText}}",N:{"aria-hidden":"true"}}]}:{K:"div",N:{"aria-label":"{{priceA11yText}}"},W:[{K:"text",L:"ytp-featured-product-price",UA:"{{price}}", N:{"aria-hidden":"true"}},{K:"text",L:"ytp-featured-product-sales-original-price",UA:"{{salesOriginalPrice}}",N:{"aria-hidden":"true"}},{K:"text",L:"ytp-featured-product-price-drop-reference-price",UA:"{{priceDropReferencePrice}}",N:{"aria-hidden":"true"}}]},this.S.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",L:"ytp-featured-product-when-promotion-text-enabled",W:[{K:"text",L:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",UA:"{{affiliateDisclaimer}}"}, this.V,{K:"text",L:"ytp-featured-product-vendor-when-promotion-text-enabled",UA:"{{vendor}}"}]}:{K:"div",W:[{K:"text",L:"ytp-featured-product-affiliate-disclaimer",UA:"{{affiliateDisclaimer}}"},this.S.T("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.C:null,this.V,{K:"text",L:"ytp-featured-product-vendor",UA:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.X(this,this.banner);this.banner.AZ(this.B.element);this.j(this.S,g.$Y("featured_product"),this.Xxa);this.j(this.S, g.TO("featured_product"),this.yX);this.j(this.S,"videodatachange",this.onVideoDataChange);this.j(this.overflowButton.element,"click",this.t9);this.j(U,"featuredproductdismissed",this.YK)}; BX7=function(U){var O,M;U=(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:M.itemData;var S,p,h;return(U==null||!U.affiliateDisclaimer)&&(U==null?0:(S=U.exclusivesData)==null?0:S.exclusiveOfferLabelText)&&(U==null?0:(p=U.exclusivesData)==null?0:p.expirationTimestampMs)&&(U==null?0:(h=U.exclusivesData)==null?0:h.exclusiveOfferCountdownText)?!0:!1}; bFi=function(U){var O,M,S,p,h=(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:(S=M.itemData)==null?void 0:(p=S.exclusivesData)==null?void 0:p.expirationTimestampMs;O=(Number(h)-Date.now())/1E3;if(O>0){if(O<604800){var J,f,F,l;M=(J=U.U)==null?void 0:(f=J.bannerData)==null?void 0:(F=f.itemData)==null?void 0:(l=F.exclusivesData)==null?void 0:l.exclusiveOfferCountdownText;if(M!==void 0)for(J=Date.now(),f=g.D(M),F=f.next();!F.done;F=f.next())if(F=F.value,F!==void 0&&F.text!==void 0&&(l=Number(F.textDisplayStartTimestampMs), !isNaN(l)&&J>=l)){F.insertCountdown?(O=F.text.replace(/\$0/,String(vZ({seconds:O}))),U.D.gH(O)):U.D.gH(F.text);U.D.show();break}}var G,T,e,H;U.C.update({exclusive:(G=U.U)==null?void 0:(T=G.bannerData)==null?void 0:(e=T.itemData)==null?void 0:(H=e.exclusivesData)==null?void 0:H.exclusiveOfferLabelText});U.C.show();g_(U);var z;(z=U.EQ)==null||z.start()}else xUi(U)}; xUi=function(U){var O;(O=U.EQ)==null||O.stop();U.D.hide();U.C.hide();MB(U)}; RIJ=function(U){var O,M,S=(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:M.itemData;return U.S.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(S==null||!S.priceReplacementText)&&(S==null?0:S.promotionText)?S==null?void 0:S.promotionText.content:null}; tbg=function(U){var O,M,S=(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:M.itemData,p,h;if(!(S!=null&&S.priceReplacementText||U.S.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(S==null?0:(p=S.dealsData)==null?0:(h=p.sales)==null?0:h.originalPrice)){var J,f;return S==null?void 0:(J=S.dealsData)==null?void 0:(f=J.sales)==null?void 0:f.originalPrice}return null}; Y0m=function(U){var O,M,S=(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:M.itemData,p,h,J,f;if(!((S==null?0:S.priceReplacementText)||U.S.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(S==null?0:(p=S.dealsData)==null?0:(h=p.sales)==null?0:h.originalPrice))&&(S==null?0:(J=S.dealsData)==null?0:(f=J.priceDrop)==null?0:f.referencePrice)){var F,l;return S==null?void 0:(F=S.dealsData)==null?void 0:(l=F.priceDrop)==null?void 0:l.referencePrice}return null}; mUw=function(U){var O,M,S=(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:M.itemData;if(S==null?0:S.priceReplacementText)return S==null?void 0:S.priceReplacementText;if((S==null?0:S.promotionText)&&U.S.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var p;return(S==null?void 0:S.price)+" "+(S==null?void 0:(p=S.promotionText)==null?void 0:p.content)}var h,J;if(S==null?0:(h=S.dealsData)==null?0:(J=h.sales)==null?0:J.originalPrice){var f,F;return S==null?void 0:(f=S.dealsData)== null?void 0:(F=f.sales)==null?void 0:F.salesPriceAccessibilityLabel}var l,G;if(S==null?0:(l=S.dealsData)==null?0:(G=l.priceDrop)==null?0:G.referencePrice){var T,e;return(S==null?void 0:S.price)+" "+(S==null?void 0:(T=S.dealsData)==null?void 0:(e=T.priceDrop)==null?void 0:e.referencePrice)}return S==null?void 0:S.price}; AkJ=function(U){if(U.S.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var O,M,S;return U.V.UQ?null:(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:(S=M.itemData)==null?void 0:S.vendorName}var p,h,J,f,F,l;return U.V.UQ||U.C.UQ||((p=U.U)==null?0:(h=p.bannerData)==null?0:(J=h.itemData)==null?0:J.affiliateDisclaimer)?null:(f=U.U)==null?void 0:(F=f.bannerData)==null?void 0:(l=F.itemData)==null?void 0:l.vendorName}; Pw5=function(U,O){SI(U);if(O){var M=g.y7.getState().entities;M=yL(M,"featuredProductsEntity",O);if(M!=null&&M.productsData){O=[];M=g.D(M.productsData);for(var S=M.next();!S.done;S=M.next()){S=S.value;var p=void 0;if((p=S)!=null&&p.identifier&&S.featuredSegments){U.sA.push(S);var h=void 0;p=g.D((h=S)==null?void 0:h.featuredSegments);for(h=p.next();!h.done;h=p.next()){var J=h.value;h=Iiy(J.startTimeSec);h!==void 0&&(J=Iiy(J.endTimeSec),O.push(new g.ll(h*1E3,J===void 0?0x7ffffffffffff:J*1E3,{id:S.identifier, namespace:"featured_product"})))}}}U.S.pO(O)}}}; MB=function(U){if(U.trendingOfferEntityKey){var O=g.y7.getState().entities;if(O=yL(O,"trendingOfferEntity",U.trendingOfferEntityKey)){var M,S,p;O.encodedSkuId!==((M=U.U)==null?void 0:(S=M.bannerData)==null?void 0:(p=S.itemData)==null?void 0:p.encodedOfferSkuId)?g_(U):(U.V.update({trendingOffer:O.shortLabel+" \u2022 "+O.countLabel}),U.V.show(),U.banner.update({vendor:AkJ(U)}))}else g_(U)}else g_(U)}; g_=function(U){U.V.hide();U.banner.update({vendor:AkJ(U)})}; SI=function(U){U.sA=[];U.yX();U.S.Le("featured_product")}; nte=function(U){var O,M,S,p,h=(O=U.U)==null?void 0:(M=O.bannerData)==null?void 0:(S=M.itemData)==null?void 0:(p=S.hiddenProductOptions)==null?void 0:p.dropTimestampMs;O=(Number(h)-Date.now())/1E3;U.countdownTimer.gH(vZ({seconds:O}));if(O>0){var J;(J=U.hG)==null||J.start()}}; QI4=function(U){var O;(O=U.hG)==null||O.stop();U.countdownTimer.hide()}; Iiy=function(U){if(U!==void 0&&U.trim()!==""&&(U=Math.trunc(Number(U.trim())),!(isNaN(U)||U<0)))return U}; iFm=function(U,O,M){g.r.call(this,{K:"div",OA:["ytp-info-panel-action-item"],W:[{K:"div",L:"ytp-info-panel-action-item-disclaimer",UA:"{{disclaimer}}"},{K:"a",OA:["ytp-info-panel-action-item-button","ytp-button"],N:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{K:"div",L:"ytp-info-panel-action-item-icon",UA:"{{icon}}"},{K:"div",L:"ytp-info-panel-action-item-label",UA:"{{label}}"}]}]});this.S=U;this.U=M;this.disclaimer=this.ML("ytp-info-panel-action-item-disclaimer");this.button= this.ML("ytp-info-panel-action-item-button");this.cT=!1;this.S.createServerVe(this.element,this,!0);this.listen("click",this.onClick);U="";M=g.q(O==null?void 0:O.onTap,Eh);var S=g.q(M,g.ad);this.cT=!1;S?(U=S.url||"",U.startsWith("//")&&(U="https:"+U),this.cT=!0,g.Ep(this.button,g.r1(U))):(S=g.q(M,Cwm))&&!this.U?((U=S.phoneNumbers)&&U.length>0?(U="sms:"+U[0],S.messageText&&(U+="?&body="+encodeURI(S.messageText))):U="",this.cT=!0,g.Ep(this.button,g.r1(U,[XNU]))):(M=g.q(M,uz5))&&!this.U&&(U=M.phoneNumber? "tel:"+M.phoneNumber:"",this.cT=!0,g.Ep(this.button,g.r1(U,[q0y])));var p;if(M=(p=O.disclaimerText)==null?void 0:p.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var h;this.update({label:(h=O.bodyText)==null?void 0:h.content,icon:P_(),disclaimer:M})}else{this.disclaimer.style.display="none";var J;this.update({label:(J=O.bodyText)==null?void 0:J.content,icon:P_()})}this.S.setTrackingParams(this.element,O.trackingParams||null);this.cT&&(this.V={externalLinkData:{url:U}})}; ZF7=function(U,O){var M=zz();g.ou.call(this,U,{K:"div",L:"ytp-info-panel-detail-skrim",W:[{K:"div",L:"ytp-info-panel-detail",N:{role:"dialog",id:M},W:[{K:"div",L:"ytp-info-panel-detail-header",W:[{K:"div",L:"ytp-info-panel-detail-title",UA:"{{title}}"},{K:"button",OA:["ytp-info-panel-detail-close","ytp-button"],N:{"aria-label":"Cerrar"},W:[g.YQ()]}]},{K:"div",L:"ytp-info-panel-detail-body",UA:"{{body}}"},{K:"div",L:"ytp-info-panel-detail-items"}]}]},250);this.U=O;this.items=this.ML("ytp-info-panel-detail-items"); this.B=new g.Zj(this);this.itemData=[];this.X=M;this.j(this.ML("ytp-info-panel-detail-close"),"click",this.CE);this.j(this.ML("ytp-info-panel-detail-skrim"),"click",this.CE);this.j(this.ML("ytp-info-panel-detail"),"click",function(S){S.stopPropagation()}); g.X(this,this.B);this.S.createServerVe(this.element,this,!0);this.j(U,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",U.getVideoData());this.hide()}; Kmq=function(U,O){U=g.D(U.itemData);for(var M=U.next();!M.done;M=U.next())M=M.value,M.S.logVisibility(M.element,O)}; Eti=function(U,O){g.r.call(this,{K:"div",L:"ytp-info-panel-preview",N:{"aria-live":"assertive","aria-atomic":"true","aria-owns":O.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Pn(U.J()))},W:[{K:"div",L:"ytp-info-panel-preview-text",UA:"{{text}}"},{K:"div",L:"ytp-info-panel-preview-chevron",UA:"{{chevron}}"}]});var M=this;this.S=U;this.qm=this.U=this.videoId=null;this.B=this.showControls=this.V=!1;this.j(this.element,"click",function(){U.logClick(M.element);U.yu();we(O)}); this.fade=new g.FY(this,250,!1,100);g.X(this,this.fade);this.S.createServerVe(this.element,this,!0);this.j(U,"videodatachange",this.onVideoDataChange);this.j(U,"presentingplayerstatechange",this.f4);this.j(this.S,"paidcontentoverlayvisibilitychange",this.fp);this.j(this.S,"infopaneldetailvisibilitychange",this.fp);var S=U.getVideoData()||{};rki(S)&&aiJ(this,S);this.j(U,"onShowControls",this.ue);this.j(U,"onHideControls",this.le)}; aiJ=function(U,O){if(!O.QO||!U.S.Jt()){var M=O.ZG||1E4,S=rki(O);U.U?O.videoId&&O.videoId!==U.videoId&&(g.gB(U.U),U.videoId=O.videoId,S?(LmJ(U,M,O),U.jY()):(U.CE(),U.U.dispose(),U.U=null)):S&&(O.videoId&&(U.videoId=O.videoId),LmJ(U,M,O),U.jY())}}; rki=function(U){var O,M,S,p;return!!((O=U.e5)==null?0:(M=O.title)==null?0:M.content)||!!((S=U.e5)==null?0:(p=S.bodyText)==null?0:p.content)}; LmJ=function(U,O,M){U.U&&U.U.dispose();U.U=new g.UM(U.tH0,O,U);g.X(U,U.U);var S;O=((S=M.e5)==null?void 0:S.trackingParams)||null;U.S.setTrackingParams(U.element,O);var p;var h,J;if(M==null?0:(h=M.e5)==null?0:(J=h.title)==null?0:J.content){var f;S=(p=M.e5)==null?void 0:(f=p.title)==null?void 0:f.content;var F,l;if((F=M.e5)==null?0:(l=F.bodyText)==null?0:l.content)S+=" \u2022 ";p=S}else p="";var G,T;M=((G=M.e5)==null?void 0:(T=G.bodyText)==null?void 0:T.content)||"";U.update({text:p+M,chevron:g.ta()})}; Vbe=function(U,O){U.U&&(g.a(O,8)?(U.V=!0,U.jY(),U.U.start()):(g.a(O,2)||g.a(O,64))&&U.videoId&&(U.videoId=null))}; pK=function(U){var O=null;try{O=U.toLocaleString("es-419",{style:"percent"})}catch(M){O=U.toLocaleString(void 0,{style:"percent"})}return O}; h9=function(U,O){var M=0;U=g.D(U);for(var S=U.next();!(S.done||S.value.startTime>O);S=U.next())M++;return M===0?M:M-1}; ot7=function(U,O){for(var M=0,S=g.D(U),p=S.next();!p.done;p=S.next()){p=p.value;if(O=p.timeRangeStartMillis&&O0?O[0]:null;var M=g.hN("ytp-chrome-bottom"),S=g.hN("ytp-ad-module");U.X=!(M==null||!M.contains(O));U.Y=!(S==null||!S.contains(O));U.Z=!(O==null||!O.hasAttribute("data-tooltip-target-fixed"));return O}; $Q5=function(U,O,M){if(!U.C){if(O){U.tooltipRenderer=O;O=U.tooltipRenderer.text;var S=!1,p;(O==null?0:(p=O.runs)==null?0:p.length)&&O.runs[0].text&&(U.update({title:O.runs[0].text.toString()}),S=!0);g.t6(U.title,S);O=U.tooltipRenderer.detailsText;p=!1;var h;if((O==null?0:(h=O.runs)==null?0:h.length)&&O.runs[0].text){S=O.runs[0].text.toString();h=S.indexOf("$TARGET_ICON");if(h>-1)if(U.tooltipRenderer.targetId){O=[];S=S.split("$TARGET_ICON");var J=new g.c_({K:"span",L:"ytp-promotooltip-details-icon", W:[l6w[U.tooltipRenderer.targetId]]});g.X(U,J);for(var f=[],F=g.D(S),l=F.next();!l.done;l=F.next())l=new g.c_({K:"span",L:"ytp-promotooltip-details-component",UA:l.value}),g.X(U,l),f.push(l);S.length===2?(O.push(f[0].element),O.push(J.element),O.push(f[1].element)):S.length===1&&(h===0?(O.push(J.element),O.push(f[0].element)):(O.push(f[0].element),O.push(J.element)));h=O.length?O:null}else h=null;else h=S;if(h){if(typeof h!=="string")for(g.jd(U.details),p=g.D(h),h=p.next();!h.done;h=p.next())U.details.appendChild(h.value); else U.update({details:h});p=!0}}g.t6(U.details,p);p=U.tooltipRenderer.acceptButton;h=!1;var G,T,e;((G=g.q(p,g.iY))==null?0:(T=G.text)==null?0:(e=T.runs)==null?0:e.length)&&g.q(p,g.iY).text.runs[0].text&&(U.update({acceptButtonText:g.q(p,g.iY).text.runs[0].text.toString()}),h=!0);g.t6(U.acceptButton,h);G=U.tooltipRenderer.dismissButton;T=!1;var H,z,W;((H=g.q(G,g.iY))==null?0:(z=H.text)==null?0:(W=z.runs)==null?0:W.length)&&g.q(G,g.iY).text.runs[0].text&&(U.update({dismissButtonText:g.q(G,g.iY).text.runs[0].text.toString()}), T=!0);g.t6(U.dismissButton,T)}M&&(U.B=M);U.U=Fdg(U);U.D=!1;U.S.J().T("web_player_hide_nitrate_promo_tooltip")||U.ri(!0);GV1(U);U.UQ&&!U.yP&&(U.yP=!0,U.BB.fz(0));U.V&&U.S.logVisibility(U.element,U.UQ)}}; $g=function(U){U.ri(!1);U.V&&U.S.logVisibility(U.element,U.UQ)}; T7y=function(U){var O,M,S,p=((O=g.q(U.acceptButton,g.iY))==null?void 0:(M=O.text)==null?void 0:(S=M.runs)==null?void 0:S.length)&&!!g.q(U.acceptButton,g.iY).text.runs[0].text,h,J,f;O=((h=g.q(U.dismissButton,g.iY))==null?void 0:(J=h.text)==null?void 0:(f=J.runs)==null?void 0:f.length)&&!!g.q(U.dismissButton,g.iY).text.runs[0].text;return p||O}; GV1=function(U){var O;if(!(O=!U.U)){O=U.U;var M=window.getComputedStyle(O);O=M.display==="none"||M.visibility==="hidden"||O.getAttribute("aria-hidden")==="true"}if(O||U.S.isMinimized())U.ri(!1);else if(O=g.Rl(U.U),O.width&&O.height){U.S.Sp(U.element,U.U);var S=U.S.g7().getPlayerSize().height;M=g.Rl(U.ML("ytp-promotooltip-container")).height;U.X?U.element.style.top=S-M-O.height-12+"px":U.Z||(S=U.S.Wb().height-M-O.height-12,U.element.style.top=S+"px");S=U.ML("ytp-promotooltip-pointer");var p=g.xs(U.U, U.S.getRootNode()),h=Number(U.element.style.left.replace(/[^\d\.]/g,""));U=U.S.isFullscreen()?18:12;S.style.left=p.x-h+O.width/2-U+"px";S.style.top=M+"px"}else U.ri(!1)}; Tf=function(U){g.r.call(this,{K:"button",OA:["ytp-replay-button","ytp-button"],N:{title:"Volver a reproducir"},W:[g.Qs()]});this.S=U;this.j(U,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.YZ(U.getPlayerStateObject());Ag(this.S,this.element,this)}; jI=function(U,O){O=O===void 0?240:O;g.r.call(this,{K:"button",OA:["ytp-button","ytp-search-button"],N:{title:"Buscar","data-tooltip-opaque":String(g.Pn(U.J()))},W:[{K:"div",L:"ytp-search-icon",UA:"{{icon}}"},{K:"div",L:"ytp-search-title",UA:"Buscar"}]});this.api=U;this.V=O;this.visible=!1;this.updateValue("icon",{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{K:"path",L:"ytp-svg-fill",N:{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"}}]}); U.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.U();this.j(U,"appresize",this.U);this.j(U,"videodatachange",this.U);Ag(U,this.element,this)}; g.eI=function(U,O,M,S){S=S===void 0?240:S;g.r.call(this,{K:"button",OA:["ytp-button","ytp-share-button"],N:{title:"Compartir","aria-haspopup":"true","aria-owns":M.element.id,"data-tooltip-opaque":String(g.Pn(U.J()))},W:[{K:"div",L:"ytp-share-icon",UA:"{{icon}}"},{K:"div",L:"ytp-share-title",UA:"Compartir"}]});this.api=U;this.U=O;this.B=M;this.X=S;this.V=this.visible=!1;this.tooltip=this.U.BJ();U.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.j(U,"videodatachange",this.PA); this.j(U,"videoplayerreset",this.PA);this.j(U,"appresize",this.PA);this.j(U,"presentingplayerstatechange",this.PA);this.PA();this.addOnDisposeCallback(g.mu(this.tooltip,this.element))}; j2g=function(U){var O=U.api.J(),M=U.api.getVideoData(),S=g.Pn(O)&&g.X7(U.api)&&g.a(U.api.getPlayerStateObject(),128);O=O.B||O.disableSharing&&U.api.getPresentingPlayerType()!==2||!M.showShareButton||M.qd||S||g.fd(M)||U.V;S=U.api.g7().getPlayerSize().width;return!!M.videoId&&S>=U.X&&!O}; em4=function(U,O){O.name!=="InvalidStateError"&&O.name!=="AbortError"&&(O.name==="NotAllowedError"?(U.U.yu(),we(U.B,U.element,!1)):g.K5(O))}; zmW=function(U,O){var M=zz(),S=U.J();M={K:"div",L:"ytp-share-panel",N:{id:zz(),role:"dialog","aria-labelledby":M},W:[{K:"div",L:"ytp-share-panel-inner-content",W:[{K:"div",L:"ytp-share-panel-title",N:{id:M},UA:"Compartir"},{K:"a",OA:["ytp-share-panel-link","ytp-no-contextmenu"],N:{href:"{{link}}",target:S.Z,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},UA:"{{linkText}}"},{K:"label",L:"ytp-share-panel-include-playlist",W:[{K:"input",L:"ytp-share-panel-include-playlist-checkbox", N:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{K:"div",L:"ytp-share-panel-loading-spinner",W:[eV()]},{K:"div",L:"ytp-share-panel-service-buttons",UA:"{{buttons}}"},{K:"div",L:"ytp-share-panel-error",UA:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{K:"button",OA:["ytp-share-panel-close","ytp-button"],N:{title:"Cerrar"},W:[g.YQ()]}]};g.ou.call(this,U,M,250);var p=this;this.moreButton=null;this.api=U;this.tooltip=O.BJ();this.B=[];this.C= this.ML("ytp-share-panel-inner-content");this.closeButton=this.ML("ytp-share-panel-close");this.j(this.closeButton,"click",this.CE);this.addOnDisposeCallback(g.mu(this.tooltip,this.closeButton));this.X=this.ML("ytp-share-panel-include-playlist-checkbox");this.j(this.X,"click",this.PA);this.U=this.ML("ytp-share-panel-link");this.addOnDisposeCallback(g.mu(this.tooltip,this.U));this.api.createClientVe(this.U,this,164503);this.j(this.U,"click",function(h){h.preventDefault();p.api.logClick(p.U);var J= p.api.getVideoUrl(!0,!0,!1,!1);J=Hqe(p,J);g.jV(J,p.api,h)&&p.api.ZQ("SHARE_CLICKED")}); this.listen("click",this.C4);this.j(U,"videoplayerreset",this.hide);this.j(U,"fullscreentoggled",this.onFullscreenToggled);this.j(U,"onLoopRangeChange",this.fNy);this.hide()}; DQJ=function(U,O){cL1(U);for(var M=O.links||O.shareTargets,S=0,p={},h=0;h'),(W=H.document)&&W.write&&(W.write(oc(z)),W.close()))):((H=g.kC(H,W,e,m))&&z.noopener&&(H.opener=null),H&&z.noreferrer&&(H.opener=null));H&&(H.opener||(H.opener=window),H.focus());T.preventDefault()}}}(p)); p.AK.addOnDisposeCallback(g.mu(U.tooltip,p.AK.element));f==="Facebook"?U.api.createClientVe(p.AK.element,p.AK,164504):f==="Twitter"&&U.api.createClientVe(p.AK.element,p.AK,164505);U.j(p.AK.element,"click",function(G){return function(){U.api.logClick(G.AK.element)}}(p)); U.api.logVisibility(p.AK.element,!0);U.B.push(p.AK);S++}}var F=O.more||O.moreLink,l=new g.r({K:"a",OA:["ytp-share-panel-service-button","ytp-button"],W:[{K:"span",L:"ytp-share-panel-service-button-more",W:[{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{K:"rect",N:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",N:{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"}}]}]}],N:{href:F,target:"_blank",title:"M\u00e1s"}});l.listen("click",function(G){var T=F;U.api.logClick(U.moreButton.element);T=Hqe(U,T);g.jV(T,U.api,G)&&U.api.ZQ("SHARE_CLICKED")}); l.addOnDisposeCallback(g.mu(U.tooltip,l.element));U.api.createClientVe(l.element,l,164506);U.j(l.element,"click",function(){U.api.logClick(l.element)}); U.api.logVisibility(l.element,!0);U.B.push(l);U.moreButton=l;U.updateValue("buttons",U.B)}; Hqe=function(U,O){var M={};g.Pn(U.api.J())&&(g.ce(U.api,"addEmbedsConversionTrackingParams",[M]),O=g.pj(O,M));return O}; cL1=function(U){for(var O=g.D(U.B),M=O.next();!M.done;M=O.next())M=M.value,M.detach(),g.FC(M);U.B=[]}; HO=function(U){return U===void 0||U.startSec===void 0||U.endSec===void 0?!1:!0}; dQg=function(U,O){U.startSec+=O;U.endSec+=O}; N74=function(U){B2.call(this,U);this.V=this.U=this.isContentForward=this.D=!1;WdU(this);this.j(this.S,"changeProductsInVideoVisibility",this.hxA);this.j(this.S,"videodatachange",this.onVideoDataChange)}; vTg=function(U){U.C&&U.Ca.element.removeChild(U.C.element);U.C=void 0}; xQw=function(U,O){return O.map(function(M){var S,p;if((M=(S=g.q(M,B7y))==null?void 0:(p=S.thumbnail)==null?void 0:p.thumbnails)&&M.length!==0)return M[0].url}).filter(function(M){return M!==void 0}).map(function(M){M=new g.r({K:"img", L:"ytp-suggested-action-product-thumbnail",N:{alt:"",src:M}});g.X(U,M);return M})}; bqm=function(U,O){U.isContentForward=O;g.ea(U.badge.element,"ytp-suggested-action-badge-content-forward",O)}; zf=function(U){var O=U.isContentForward&&!U.DU();g.ea(U.badge.element,"ytp-suggested-action-badge-preview-collapsed",O&&U.U);g.ea(U.badge.element,"ytp-suggested-action-badge-preview-expanded",O&&U.V)}; cO=function(U,O,M){return new g.ll(U*1E3,O*1E3,{priority:9,namespace:M})}; Rmi=function(U){U.S.Le("shopping_overlay_visible");U.S.Le("shopping_overlay_preview_collapsed");U.S.Le("shopping_overlay_preview_expanded");U.S.Le("shopping_overlay_expanded")}; WdU=function(U){U.j(U.S,g.$Y("shopping_overlay_visible"),function(){U.oK(!0)}); U.j(U.S,g.TO("shopping_overlay_visible"),function(){U.oK(!1)}); U.j(U.S,g.$Y("shopping_overlay_expanded"),function(){U.ol=!0;v2(U)}); U.j(U.S,g.TO("shopping_overlay_expanded"),function(){U.ol=!1;v2(U)}); U.j(U.S,g.$Y("shopping_overlay_preview_collapsed"),function(){U.U=!0;zf(U)}); U.j(U.S,g.TO("shopping_overlay_preview_collapsed"),function(){U.U=!1;zf(U)}); U.j(U.S,g.$Y("shopping_overlay_preview_expanded"),function(){U.V=!0;zf(U)}); U.j(U.S,g.TO("shopping_overlay_preview_expanded"),function(){U.V=!1;zf(U)})}; mQ4=function(U){g.r.call(this,{K:"div",L:"ytp-shorts-title-channel",W:[{K:"a",L:"ytp-shorts-title-channel-logo",N:{href:"{{channelLink}}",target:U.J().Z,"aria-label":"{{channelLogoLabel}}"}},{K:"div",L:"ytp-shorts-title-expanded-heading",W:[{K:"div",L:"ytp-shorts-title-expanded-title",W:[{K:"a",UA:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:U.J().Z,tabIndex:"0"}}]}]}]});var O=this;this.api=U;this.U=this.ML("ytp-shorts-title-channel-logo");this.channelName=this.ML("ytp-shorts-title-expanded-title"); this.subscribeButton=null;U.createClientVe(this.U,this,36925);this.j(this.U,"click",function(M){O.api.logClick(O.U);g.kC(window,tNi(O));M.preventDefault()}); U.createClientVe(this.channelName,this,37220);this.j(this.channelName,"click",function(M){O.api.logClick(O.channelName);g.kC(window,tNi(O));M.preventDefault()}); YWw(this);this.j(U,"videodatachange",this.PA);this.j(U,"videoplayerreset",this.PA);this.PA()}; YWw=function(U){if(!U.api.J().F9){var O=U.api.getVideoData(),M=new g.LI("Suscribirse",null,"Suscrito/a",null,!0,!1,O.b2,O.subscribed,"channel_avatar",null,U.api,!0);U.api.createServerVe(M.element,U);var S;U.api.setTrackingParams(M.element,((S=O.subscribeButtonRenderer)==null?void 0:S.trackingParams)||null);U.j(M.element,"click",function(){U.api.logClick(M.element)}); U.subscribeButton=M;g.X(U,U.subscribeButton);U.subscribeButton.AZ(U.element)}}; tNi=function(U){var O=U.api.J(),M=U.api.getVideoData();M=g.fJ(O)+M.AG;if(!g.Pn(O))return M;O={};g.ce(U.api,"addEmbedsConversionTrackingParams",[O]);return g.pj(M,O)}; DL=function(U){g.ou.call(this,U,{K:"button",OA:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{K:"div",L:"ytp-skip-intro-button-text",UA:"Omitir introducci\u00f3n"}]},100);var O=this;this.B=!1;this.U=new g.UM(function(){O.hide()},5E3); this.EF=this.cU=NaN;g.X(this,this.U);this.D=function(){O.show()}; this.C=function(){O.hide()}; this.X=function(){var M=O.S.getCurrentTime();M>O.cU/1E3&&M0?{K:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{K:"path",OA:["ytp-circle-arrow","ytp-svg-fill"],N:{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"}}, {K:"text",OA:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"7.05",y:"15.05"}}]}:{K:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{K:"path",OA:["ytp-circle-arrow","ytp-svg-fill"],N:{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"}}, {K:"text",OA:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"6.5",y:"15"}}]}]});var M=this;this.S=U;this.U=O;this.V=new g.UM(function(){M.B?(M.B=!1,M.V.start()):M.element.classList.remove("ytp-jump-spin","backwards")},250); this.B=!1;(O=O>0)?this.S.createClientVe(this.element,this,36843):this.S.createClientVe(this.element,this,36844);var S=g.v4(O?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.U).toString()});this.update({title:S,"data-title-no-tooltip":S,"aria-keyshortcuts":O?"\u2192":"\u2190"});this.X=this.element.querySelector(".ytp-jump-button-text");this.X.textContent=Math.abs(this.U).toString();this.listen("click",this.onClick,this);Ag(U,this.element,this)}; Xui=function(U,O){O?U.element.classList.add("ytp-jump-button-enabled"):U.element.classList.remove("ytp-jump-button-enabled");U.S.logVisibility(U.element,O);U.S.Mb()}; xg=function(U,O){WO.call(this,U,O,"timedMarkerCueRange","Ver momentos clave");this.j(U,g.TO("timedMarkerCueRange"),this.kZ);this.j(U,"updatemarkervisibility",this.updateVideoData)}; uvJ=function(U){var O,M=(O=U.S.getVideoData())==null?void 0:O.r7;if(M)for(U=U.X.TY,M=g.D(M),O=M.next();!O.done;O=M.next())if(O=U[O.value]){var S=void 0,p=void 0,h=void 0;if(((S=O.onTap)==null?void 0:(p=S.innertubeCommand)==null?void 0:(h=p.changeEngagementPanelVisibilityAction)==null?void 0:h.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return O}}; b$=function(U){var O=U.T("web_enable_pip_on_miniplayer");g.r.call(this,{K:"button",OA:["ytp-miniplayer-button","ytp-button"],N:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[O?{K:"svg",N:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{K:"g",N:{transform:"translate(96, -96) scale(0.8)"},W:[{K:"path",vB:!0,N:{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"}}]}]}: BqW()]});this.S=U;this.visible=!1;this.listen("click",this.onClick);this.j(U,"fullscreentoggled",this.PA);this.updateValue("title",g.Iu(U,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura"});Ag(U,this.element,this);U.createClientVe(this.element,this,62946);this.PA()}; RS=function(U,O,M){M=M===void 0?!1:M;g.r.call(this,{K:"button",OA:["ytp-mute-button","ytp-button"],N:U.J().TY?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},UA:"{{icon}}"});this.S=U;this.QP=M;this.U=null;this.X=this.Z=this.C=this.ol=NaN;this.BA=this.D=null;this.B=[];this.V=[];this.visible=!1;this.Y=null;U.T("delhi_modern_web_player")&&this.update({"data-priority":3}); M=this.S.J();this.updateValue("icon",uZ());this.tooltip=O.BJ();this.U=new g.c_({K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"defs",W:[{K:"clipPath",N:{id:"ytp-svg-volume-animation-mask"},W:[{K:"path",N:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",N:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",L:"ytp-svg-volume-animation-mover",N:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",N:{id:"ytp-svg-volume-animation-slash-mask"}, W:[{K:"path",L:"ytp-svg-volume-animation-mover",N:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",vB:!0,OA:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],N:{"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"}},{K:"path",vB:!0,OA:["ytp-svg-fill","ytp-svg-volume-animation-hider"],N:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.X(this,this.U);this.D=this.U.ML("ytp-svg-volume-animation-speaker");this.BA=this.D.getAttribute("d");this.B=g.Sd("ytp-svg-volume-animation-mover",this.U.element);this.V=g.Sd("ytp-svg-volume-animation-hider",this.U.element);this.sA=new US;g.X(this,this.sA);this.yP=new US;g.X(this,this.yP);this.listen("click",this.zsQ);this.j(U,"appresize",this.Wp);this.j(U,"onVolumeChange",this.onVolumeChange);var S=null;M.TY?this.addOnDisposeCallback(g.mu(O.BJ(), this.element)):(O="Tu navegador no permite cambiar el volumen. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/),S=new g.ou(U,{K:"span",OA:["ytp-popup","ytp-generic-popup"],N:{tabindex:"0"},W:[O[0],{K:"a",N:{href:"https://support.google.com/youtube/?p=noaudio",target:M.Z},UA:O[2]},O[4]]},100,!0),g.X(this,S),S.hide(),S.subscribe("show",function(p){U.Ii(S,p)}),g.Z0(U,S.element,4)); this.message=S;U.createClientVe(this.element,this,28662);this.Wp(U.g7().getPlayerSize());this.setVolume(U.getVolume(),U.isMuted())}; Zq4=function(U,O){U.ol=O;var M=U.BA;O&&(M+=fm5(qWm,iq7,O));U.D.setAttribute("d",M)}; Kde=function(U,O){U.Z=O;for(var M=20*O,S=0;S=3&&U.S.getPresentingPlayerType()!==2}; VNg=function(U){var O=Cd(U.S.nE());return O?U.U?O.Ny():O.Di():!1}; a6w=function(U){var O={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},M=U.playlist!=null&&U.playlist.Ny();M=g.X7(U.S)&&(!U.U||M);var S=U.U&&g.Kd(U.S),p=VNg(U),h=U.U&&U.S.getPresentingPlayerType()===5,J=g.Iu(U.S,"Siguiente","SHIFT+n"),f=g.Iu(U.S,"Anterior","SHIFT+p");if(h)O.title="Iniciar video";else if(U.B)O.title="Volver a reproducir";else if(M){var F=null;U.playlist&&(F=g.la(U.playlist,U.U?rYW(U.playlist):amW(U.playlist)));if(F){if(F.videoId){var l= U.playlist.listId;O.url=U.S.J().getVideoUrl(F.videoId,l?l.toString():void 0)}O.text=F.title;O.duration=F.lengthText?F.lengthText:F.lengthSeconds?g.AB(F.lengthSeconds):null;O.preview=F.dL("mqdefault.jpg")}U.U?(O.title=J,O["data-title-no-tooltip"]="Siguiente",O["aria-keyshortcuts"]="SHIFT+n"):(O.title=f,O["data-title-no-tooltip"]="Anterior",O["aria-keyshortcuts"]="SHIFT+p")}else if(S){if(f=(F=U.videoData)==null?void 0:g.hK(F))O.url=f.qn(),O.text=f.title,O.duration=f.lengthText?f.lengthText:f.lengthSeconds? g.AB(f.lengthSeconds):null,O.preview=f.dL("mqdefault.jpg");O.title=J;O["data-title-no-tooltip"]="Siguiente";O["aria-keyshortcuts"]="SHIFT+n"}O.disabled=!S&&!M&&!p&&!h;U.update(O);U.D=!!O.url;S||M||U.B||p||h?U.V||(U.V=g.mu(U.tooltip,U.element),U.C=U.listen("click",U.onClick,U)):U.V&&(U.V(),U.V=null,U.bH(U.C),U.C=null);U.tooltip.Mb();g.ea(U.element,"ytp-playlist-ui",U.U&&M)}; kVe=function(U,O){g.r.call(this,{K:"div",L:"ytp-fine-scrubbing",W:[{K:"div",L:"ytp-fine-scrubbing-draggable",W:[{K:"div",L:"ytp-fine-scrubbing-thumbnails",N:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{K:"div",N:{"aria-hidden":"true"},L:"ytp-fine-scrubbing-cursor"},{K:"div", L:"ytp-fine-scrubbing-seek-time",N:{"aria-hidden":"true"},UA:"{{seekTime}}"},{K:"div",L:"ytp-fine-scrubbing-play",W:[nU()],N:{title:"Reproducir desde este momento",role:"button"}},{K:"div",L:"ytp-fine-scrubbing-dismiss",W:[g.YQ()],N:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var M=this;this.api=U;this.C=this.ML("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.ML("ytp-fine-scrubbing-dismiss");this.BA=this.ML("ytp-fine-scrubbing-draggable");this.playButton=this.ML("ytp-fine-scrubbing-play"); this.thumbnails=[];this.V=[];this.Ka=this.U=0;this.Ca=void 0;this.yP=NaN;this.TY=this.Z=this.B=this.Y=0;this.X=[];this.interval=this.frameCount=0;this.D=160;this.scale=1;this.HA=0;this.isEnabled=this.QP=!1;oTi(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.mu(O,this.dismissButton));this.addOnDisposeCallback(g.mu(O,this.playButton));this.sA=new g.qw(this.BA,!0);this.sA.subscribe("dragstart",this.aQ,this);this.sA.subscribe("dragmove",this.wm,this);this.sA.subscribe("dragend",this.I8,this); this.j(U,"SEEK_COMPLETE",this.k0);U.T("web_fix_fine_scrubbing_false_play")&&this.j(U,"rootnodemousedown",function(S){M.ol=S}); this.C.addEventListener("keydown",function(){}); g.X(this,this.sA);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.C,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; oTi=function(U,O){var M=g.AB(O),S=g.v4("Saltar a: $PROGRESS",{PROGRESS:g.AB(O,!0)});U.update({ariamin:0,ariamax:Math.floor(U.api.getDuration()),arianow:Math.floor(O),arianowtext:S,seekTime:M})}; wu5=function(U){U.yP=NaN;U.Z=0;U.Y=U.B}; s5m=function(U){var O=U.api.AL();if(O){var M=90*U.scale,S=iT(O,160*U.scale);if(O=O.levels[S]){U.D=O.width;if(!U.X.length){S=[];for(var p=ZI(O,O.qa()),h=O.columns*O.rows,J=O.frameCount,f=0;f<=p;f++)for(var F=JU.X.length;)S= void 0,(S=U.thumbnails.pop())==null||S.dispose();for(;U.thumbnails.lengthM.length;)S=void 0,(S=U.V.pop())==null||S.dispose(); for(;U.V.length-M?-O/M*U.interval*.5:-(O+M/2)/M*U.interval}; gRy=function(U){return-((U.C.offsetWidth||(U.frameCount-1)*U.D*U.scale)-U.U/2)}; Urw=function(){g.r.call(this,{K:"div",L:"ytp-fine-scrubbing-thumbnail"})}; O0U=function(){g.r.call(this,{K:"div",L:"ytp-fine-scrubbing-chapter-title",W:[{K:"div",L:"ytp-fine-scrubbing-chapter-title-content",UA:"{{chapterTitle}}"}]})}; SPJ=function(U){g.r.call(this,{K:"div",L:"ytp-heat-map-chapter",W:[{K:"svg",L:"ytp-heat-map-svg",N:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{K:"defs",W:[{K:"clipPath",N:{id:"{{id}}"},W:[{K:"path",L:"ytp-heat-map-path",N:{d:"",fill:"white"}}]},{K:"linearGradient",N:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{K:"stop",N:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",N:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",L:"ytp-heat-map-graph",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",L:"ytp-heat-map-hover",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",L:"ytp-heat-map-play",N:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",L:"ytp-modern-heat-map",N:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=U;this.Y=this.ML("ytp-heat-map-svg");this.C=this.ML("ytp-heat-map-path");this.X=this.ML("ytp-heat-map-graph");this.D=this.ML("ytp-heat-map-play");this.U=this.ML("ytp-heat-map-hover");this.B=this.ML("ytp-modern-heat-map");this.cT=!1;this.V=60;U=""+g.wW(this);this.update({id:U});U="url(#"+U+")";this.X.setAttribute("clip-path",U);this.D.setAttribute("clip-path",U);this.U.setAttribute("clip-path", U)}; pQi=function(U,O){O>0&&(U.V=O,U.Y.style.height=U.V+"px")}; A9=function(){g.r.call(this,{K:"div",L:"ytp-chapter-hover-container",W:[{K:"div",L:"ytp-progress-bar-padding"},{K:"div",L:"ytp-progress-list",W:[{K:"div",OA:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",L:"ytp-progress-linear-live-buffer"},{K:"div",L:"ytp-load-progress"},{K:"div",L:"ytp-hover-progress"},{K:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.V=this.ML("ytp-progress-list");this.C=this.ML("ytp-progress-linear-live-buffer"); this.X=this.ML("ytp-ad-progress-list");this.D=this.ML("ytp-load-progress");this.Y=this.ML("ytp-play-progress");this.B=this.ML("ytp-hover-progress");this.U=this.ML("ytp-chapter-hover-container")}; IS=function(U,O){g.j3(U.U,"width",O)}; hyU=function(U,O){g.j3(U.U,"margin-right",O+"px")}; JVw=function(){this.V=this.position=this.B=this.U=this.X=this.width=NaN}; yV7=function(){g.r.call(this,{K:"div",L:"ytp-timed-marker"});this.U=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.nK=function(U,O){g.W_.call(this,{K:"div",L:"ytp-progress-bar-container",N:{"aria-disabled":"true"},W:[{K:"div",OA:["ytp-heat-map-container"],W:[{K:"div",L:"ytp-heat-map-edu"}]},{K:"div",OA:["ytp-progress-bar"],N:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{K:"div",L:"ytp-chapters-container"},{K:"div",L:"ytp-timed-markers-container"}, {K:"div",L:"ytp-clip-start-exclude"},{K:"div",L:"ytp-clip-end-exclude"},{K:"div",L:"ytp-scrubber-container",W:[{K:"div",OA:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{K:"div",L:"ytp-scrubber-pull-indicator"},{K:"img",OA:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",OA:["ytp-fine-scrubbing-container"],W:[{K:"div",L:"ytp-fine-scrubbing-edu"}]},{K:"div",L:"ytp-bound-time-left",UA:"{{boundTimeLeft}}"},{K:"div",L:"ytp-bound-time-right",UA:"{{boundTimeRight}}"},{K:"div",L:"ytp-clip-start", N:{title:"{{clipstarttitle}}"},UA:"{{clipstarticon}}"},{K:"div",L:"ytp-clip-end",N:{title:"{{clipendtitle}}"},UA:"{{clipendicon}}"}]});this.api=U;this.mD=!1;this.gK=this.jH=this.hZ=this.C=this.QO=0;this.Op=null;this.sX=!1;this.Ka={};this.HV={};this.clipEnd=Infinity;this.AG=this.ML("ytp-clip-end");this.WV=new g.qw(this.AG,!0);this.EQ=this.ML("ytp-clip-end-exclude");this.F9=this.ML("ytp-clip-start-exclude");this.clipStart=0;this.hG=this.ML("ytp-clip-start");this.Oj=new g.qw(this.hG,!0);this.Z=this.pE= 0;this.progressBar=this.ML("ytp-progress-bar");this.r7={};this.TY={};this.Yy=this.ML("ytp-chapters-container");this.FT=this.ML("ytp-timed-markers-container");this.U=[];this.D=[];this.DD={};this.e5=null;this.BA=-1;this.w7=this.sA=0;this.FI=this.Y=null;this.u$=this.ML("ytp-scrubber-button");this.Dq=this.ML("ytp-decorated-scrubber-button");this.RA=this.ML("ytp-scrubber-container");this.NL=new g.xv;this.EF=new JVw;this.B=new i9(0,0);this.bM=null;this.yP=this.q_=!1;this.WN=null;this.ol=this.ML("ytp-heat-map-container"); this.dH=this.ML("ytp-heat-map-edu");this.X=[];this.heatMarkersDecorations=[];this.Rl=this.ML("ytp-fine-scrubbing-container");this.cB=this.ML("ytp-fine-scrubbing-edu");this.V=void 0;this.QP=this.UX=this.Ca=!1;this.tooltip=O.BJ();this.addOnDisposeCallback(g.mu(this.tooltip,this.AG));g.X(this,this.WV);this.WV.subscribe("hoverstart",this.tD,this);this.WV.subscribe("hoverend",this.AD,this);this.j(this.AG,"click",this.g2);this.addOnDisposeCallback(g.mu(this.tooltip,this.hG));g.X(this,this.Oj);this.Oj.subscribe("hoverstart", this.tD,this);this.Oj.subscribe("hoverend",this.AD,this);this.j(this.hG,"click",this.g2);f$W(this);this.j(U,"resize",this.gi);this.j(U,"presentingplayerstatechange",this.lQ0);this.j(U,"videodatachange",this.Fo);this.j(U,"videoplayerreset",this.tcZ);this.j(U,"cuerangesadded",this.bfg);this.j(U,"cuerangesremoved",this.LrQ);this.j(U,"onLoopRangeChange",this.F2);this.j(U,"innertubeCommand",this.onClickCommand);this.j(U,g.$Y("timedMarkerCueRange"),this.m_Z);this.j(U,"updatemarkervisibility",this.fQ);this.j(U, "serverstitchedvideochange",this.dbd);this.updateVideoData(U.getVideoData(),!0);this.F2(U.getLoopRange());PO(this)&&!this.V&&(this.V=new kVe(this.api,this.tooltip),U=g.Bc(this.element).x||0,this.V.gi(U,this.C),this.V.AZ(this.Rl),g.X(this,this.V),this.j(this.V.dismissButton,"click",this.g0),this.j(this.V.playButton,"click",this.JC),this.j(this.V.element,"dblclick",this.JC));this.api.createClientVe(this.ol,this,139609,!0);this.api.createClientVe(this.dH,this,140127,!0);this.api.createClientVe(this.cB, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; f$W=function(U){if(U.U.length===0){var O=new A9;U.U.push(O);g.X(U,O);O.AZ(U.Yy,0)}for(;U.U.length>1;)U.U.pop().dispose();IS(U.U[0],"100%");U.U[0].startTime=0;U.U[0].title=""}; FR1=function(U){var O=O===void 0?NaN:O;var M=new SPJ(U.api);U.X.push(M);g.X(U,M);M.AZ(U.ol);O>=0&&(M.element.style.width=O+"px")}; l$m=function(U){for(;U.D.length;)U.D.pop().dispose()}; $rJ=function(U){var O,M,S,p,h;return(h=g.q((p=g.q((O=U.getWatchNextResponse())==null?void 0:(M=O.playerOverlays)==null?void 0:(S=M.playerOverlayRenderer)==null?void 0:S.decoratedPlayerBarRenderer,mU))==null?void 0:p.playerBar,GgJ))==null?void 0:h.chapters}; TNw=function(U){for(var O=U.U,M=[],S=0;S=J&&W<=G&&h.push(e)}F>0&&(U.ol.style.height=F+"px");J=U.X[S];G=h;e=p;z=F;W=S===0;W=W===void 0?!1:W;pQi(J,z);T=G;H=J.V;W=W===void 0?!1:W;var v=1E3/T.length,x=[];x.push({x:0,y:100});for(var t=0;t0&&(M=h[h.length-1])}g.Qx(U);f=[];O=g.D(O.heatMarkersDecorations||[]);for(p=O.next();!p.done;p=O.next())if(p=g.q(p.value,drJ))F=p.label,S=M=l=void 0,f.push({visibleTimeRangeStartMillis:(l=p.visibleTimeRangeStartMillis)!=null?l:-1,visibleTimeRangeEndMillis:(M=p.visibleTimeRangeEndMillis)!=null?M:-1,decorationTimeMillis:(S=p.decorationTimeMillis)!=null?S:NaN,label:F?g.B_(F):""});U.heatMarkersDecorations=f}}; H0U=function(U,O){U.D.push(O);g.X(U,O);O.AZ(U.FT,U.FT.children.length)}; zyq=function(U,O){O=g.D(O);for(var M=O.next();!M.done;M=O.next()){M=M.value;var S=CK(U,M.timeRangeStartMillis/(U.B.U*1E3),XZ(U));g.j3(M.element,"transform","translateX("+S+"px) scaleX(0.6)")}}; j51=function(U,O){var M=0,S=!1;O=g.D(O);for(var p=O.next();!p.done;p=O.next()){p=p.value;if(g.q(p,NNw)){p=g.q(p,NNw);var h={startTime:NaN,title:null,onActiveCommand:void 0},J=p.title;h.title=J?g.B_(J):"";J=p.timeRangeStartMillis;J!=null&&(h.startTime=J);h.onActiveCommand=p.onActiveCommand;p=h;M===0&&p.startTime!==0&&(U.U[M].startTime=0,U.U[M].title="",U.U[M].onActiveCommand=p.onActiveCommand,M++,S=!0);U.U.length<=M&&(h=new A9,U.U.push(h),g.X(U,h),h.AZ(U.Yy,U.Yy.children.length));U.U[M].startTime= p.startTime;U.U[M].title=p.title?p.title:"";U.U[M].onActiveCommand=p.onActiveCommand;U.U[M].index=S?M-1:M}M++}for(;M=0;S--)if(U.U[S].width>0){hyU(U.U[S],0);var p=Math.floor(U.U[S].width);U.U[S].width=p;IS(U.U[S],p+"px");break}U.U[M].width=0;IS(U.U[M],"0")}else M===U.U.length-1?(S=Math.floor(U.U[M].width+O),U.U[M].width=S,IS(U.U[M],S+"px")):(O=U.U[M].width+O,S=Math.round(O),O-=S,U.U[M].width=S,IS(U.U[M],S+"px"));M=0;if(U.X.length===U.U.length)for(O=0;O< U.X.length;O++)S=U.U[O].width,U.X[O].element.style.width=S+"px",U.X[O].element.style.left=M+"px",M+=S+qB(U);U.api.T("delhi_modern_web_player")&&(U.U.length===1?U.U[0].V.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(U.U[0].V.classList.remove("ytp-progress-bar-end"),U.U[0].V.classList.add("ytp-progress-bar-start"),U.U[U.U.length-1].V.classList.add("ytp-progress-bar-end")))}; vRw=function(U,O){var M=0,S=!1,p=U.U.length,h=U.B.U*1E3;h===0&&(h=U.api.getProgressState().seekableEnd*1E3);if(h>0&&U.C>0){for(var J=U.C-qB(U)*U.sA,f=U.w7===0?3:J*U.w7,F=g.D(U.U),l=F.next();!l.done;l=F.next())l.value.width=0;for(;M1);l=(h===0?0:F/h*J)+U.U[M].width;if(l>f)U.U[M].width=l;else{U.U[M].width=0;var G=U,T=M,e=G.U[T-1];e!==void 0&&e.width>0? e.width+=l:TU.w7&&(U.w7=F/h),S=!0)}M++}}return S}; u$=function(U){if(U.C){var O=U.api.getProgressState(),M=U.api.getVideoData();if(!(M&&M.enableServerStitchedDai&&M.O3)||isFinite(O.current)){var S;if(((S=U.api.getVideoData())==null?0:yA(S))&&O.airingStart&&O.airingEnd)var p=i$(U,O.airingStart,O.airingEnd);else if(U.api.getPresentingPlayerType()===2&&U.api.J().T("show_preskip_progress_bar_for_skippable_ads")){var h,J,f;p=(M=(p=U.api.getVideoData())==null?void 0:(h=p.getPlayerResponse())==null?void 0:(J=h.playerConfig)==null?void 0:(f=J.webPlayerConfig)== null?void 0:f.skippableAdProgressBarDuration)?i$(U,O.seekableStart,M/1E3):i$(U,O.seekableStart,O.seekableEnd)}else p=i$(U,O.seekableStart,O.seekableEnd);h=ZY(p,O.loaded,0);O=ZY(p,O.current,0);J=U.B.V!==p.V||U.B.U!==p.U;U.B=p;ZL(U,O,h);J&&BNy(U);xr7(U)}}}; i$=function(U,O,M){return b05(U)?new i9(Math.max(O,U.bM.startTimeMs/1E3),Math.min(M,U.bM.endTimeMs/1E3)):new i9(O,M)}; RyU=function(U,O){var M;if(((M=U.bM)==null?void 0:M.type)==="repeatChapter"||(O==null?void 0:O.type)==="repeatChapter")O&&(O=U.U[h9(U.U,O.startTimeMs)],g.ea(O.U,"ytp-repeating-chapter",!1)),U.bM&&(O=U.U[h9(U.U,U.bM.startTimeMs)],g.ea(O.U,"ytp-repeating-chapter",!0)),U.U.forEach(function(S){g.ea(S.U,"ytp-exp-chapter-hover-container",!U.bM)})}; r_=function(U,O){var M=U.B;M=M.V+O.V*M.getLength();if(U.U.length>1){M=KK(U,O.B,!0);for(var S=0,p=0;p0&&(S+=U.U[p].width,S+=qB(U));M=(U.U[M].startTime+(O.B-S)/U.U[M].width*((M===U.U.length-1?U.B.U*1E3:U.U[M+1].startTime)-U.U[M].startTime))/1E3||0}return M}; aS=function(U,O,M,S,p){O=O<0?0:Math.floor(Math.min(O,U.api.getDuration())*1E3);M=M<0?0:Math.floor(Math.min(M,U.api.getDuration())*1E3);U=U.progressBar.visualElement;S={seekData:{startMediaTimeMs:O,endMediaTimeMs:M,seekSource:S}};(O=g.n5())&&g.p4(ys)(void 0,O,U,p,S,void 0)}; t_e=function(U,O,M){if(M>=U.U.length)return!1;var S=U.C-qB(U)*U.sA;return Math.abs(O-U.U[M].startTime/1E3)/U.B.U*S<4}; BNy=function(U){U.u$.style.removeProperty("height");for(var O=g.D(Object.keys(U.Ka)),M=O.next();!M.done;M=O.next())YPJ(U,M.value);ED(U);ZL(U,U.Z,U.pE)}; XZ=function(U){var O=U.NL.x;O=g.Nm(O,0,U.C);U.EF.update(O,U.C);return U.EF}; Vx=function(U){return(U.yP?135:90)-LK(U)}; LK=function(U){var O=48,M=U.api.J();U.yP?O=54:g.Pn(M)&&!M.V?O=40:U.api.T("delhi_modern_web_player")&&(O=68);return O}; ZL=function(U,O,M){U.Z=O;U.pE=M;var S=XZ(U),p=U.B.U;var h=U.B;h=h.V+U.Z*h.getLength();var J=g.v4("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.AB(h,!0),DURATION:g.AB(p,!0)}),f=h9(U.U,h*1E3);f=U.U[f].title;U.update({ariamin:Math.floor(U.B.V),ariamax:Math.floor(p),arianow:Math.floor(h),arianowtext:f?f+" "+J:J});p=U.clipStart;h=U.clipEnd;U.bM&&U.api.getPresentingPlayerType()!==2&&(p=U.bM.startTimeMs/1E3,h=U.bM.endTimeMs/1E3);p=ZY(U.B,p,0);f=ZY(U.B,h,1);J=U.api.getVideoData();h=g.Nm(O,p,f);M=(J==null? 0:g.Se(J))?1:g.Nm(M,p,f);O=CK(U,O,S);g.j3(U.RA,"transform","translateX("+O+"px)");U.api.T("delhi_modern_web_player")&&mri(U,O);oS(U,S,p,h,"PLAY_PROGRESS");(J==null?0:yA(J))?(O=U.api.getProgressState().seekableEnd)&&oS(U,S,h,ZY(U.B,O),"LIVE_BUFFER"):oS(U,S,p,M,"LOAD_PROGRESS");if(U.api.T("web_player_heat_map_played_bar")){var F;(F=U.X[0])!=null&&F.D.setAttribute("width",(h*100).toFixed(2)+"%")}}; mri=function(U,O){U.api.getPresentingPlayerType()!==1?U.Yy.style.removeProperty("clip-path"):(O||(O=CK(U,U.Z,XZ(U))),U.Yy.style.clipPath='path("'+(U.sX?AVy(U,8,O,U.yP?50:36,0,6):AVy(U,4,O,U.yP?34:24,2,3))+'")')}; AVy=function(U,O,M,S,p,h){var J=M-S/2;M+=S/2;O+=p;return"M 0 "+p+" L 0 "+(O+" L ")+(J+" "+O+" C ")+(J+h+" "+O+" "+(J+h)+" "+p+" "+J+" "+p+" L 0 ")+(p+" M ")+(M+" "+p+" L ")+(U.C+" "+p+" L ")+(U.C+" "+O+" L ")+(M+" "+O+" C ")+(M-h+" "+O+" "+(M-h)+" "+p+" "+M+" "+p)}; oS=function(U,O,M,S,p){var h=U.U.length,J=O.U-U.sA*qB(U),f=M*J;M=KK(U,f);var F=S*J;J=KK(U,F);p==="HOVER_PROGRESS"&&(J=KK(U,O.U*S,!0),F=O.U*S-I$w(U,O.U*S)*qB(U));S=Math.max(f-Pt4(U,M),0);for(f=M;f=U.U.length)return U.C;for(var M=0,S=0;S0||U.EQ.clientWidth>0?(h=O.clientWidth/M,U=-1*U.F9.clientWidth/M):(h/=M,U=-1*U.U[p].element.offsetLeft/M),g.j3(O,"background-size",h+"px"),g.j3(O,"background-position-x",U+"px"))}; kg=function(U,O,M,S,p){p||U.api.J().V?O.style.width=M+"px":g.j3(O,"transform","scalex("+(S?M/S:0)+")")}; KK=function(U,O,M){var S=0;(M===void 0?0:M)&&(O-=I$w(U,O)*qB(U));M=g.D(U.U);for(var p=M.next();!p.done;p=M.next()){p=p.value;if(O>p.width)O-=p.width;else break;S++}return S===U.U.length?S-1:S}; CK=function(U,O,M){var S=O*U.B.U*1E3;for(var p=-1,h=g.D(U.U),J=h.next();!J.done;J=h.next())J=J.value,S>J.startTime&&J.width>0&&p++;S=p<0?0:p;p=M.U-qB(U)*U.sA;return O*p+qB(U)*S+M.X}; I$w=function(U,O){for(var M=U.U.length,S=0,p=g.D(U.U),h=p.next();!h.done;h=p.next())if(h=h.value,h.width!==0)if(O>h.width)O-=h.width,O-=qB(U),S++;else break;return S===M?M-1:S}; g.Cti=function(U,O,M,S){var p=U.C!==M,h=U.yP!==S;U.QO=O;U.C=M;U.yP=S;PO(U)&&(O=U.V)!=null&&(O.scale=S?1.5:1);BNy(U);U.U.length===1&&(U.U[0].width=M||0);p&&g.Qx(U);U.V&&h&&PO(U)&&(U.V.isEnabled&&(M=U.yP?135:90,S=M-LK(U),U.Rl.style.height=M+"px",g.j3(U.ol,"transform","translateY("+-S+"px)"),g.j3(U.progressBar,"transform","translateY("+-S+"px)")),s5m(U.V))}; ED=function(U){var O=!!U.bM&&U.api.getPresentingPlayerType()!==2,M=U.clipStart,S=U.clipEnd,p=!0,h=!0;O&&U.bM?(M=U.bM.startTimeMs/1E3,S=U.bM.endTimeMs/1E3):(p=M>U.B.V,h=U.B.U>0&&SU.Z);g.ea(U.u$,"ytp-scrubber-button-hover",M===S&&U.U.length>1);if(U.api.T("web_player_heat_map_played_bar")){var h;(h=U.X[0])!=null&&h.U.setAttribute("width",(O.V*100).toFixed(2)+"%")}}}; YPJ=function(U,O){var M=U.Ka[O];O=U.HV[O];var S=XZ(U),p=ZY(U.B,M.start/1E3,0),h=yai(M,U.yP)/S.width;var J=ZY(U.B,M.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(p=g.Nm(p,0,J-h));J=Math.min(J,p+h);M.color&&(O.style.background=M.color);M=p;O.style.left=Math.max(M*S.U+S.X,0)+"px";kg(U,O,g.Nm((J-M)*S.U+S.X,0,S.width),S.width,!0)}; XQ5=function(U,O){var M=O.getId();U.Ka[M]===O&&(g.Hd(U.HV[M]),delete U.Ka[M],delete U.HV[M])}; PO=function(U){var O=g.gG(U.api.J())&&(U.api.T("web_shorts_pip")||U.api.T("web_watch_pip")),M;return!((M=U.api.getVideoData())==null?0:M.isLivePlayback)&&!U.api.isMinimized()&&!U.api.isInline()&&(!U.api.PU()||!O)}; w_=function(U){U.V&&(U.V.disable(),U.hZ=0,U.ol.style.removeProperty("transform"),U.progressBar.style.removeProperty("transform"),U.Rl.style.removeProperty("height"),U.element.parentElement&&U.element.parentElement.style.removeProperty("height"))}; u8y=function(U,O){var M=O/Vx(U)*LK(U);g.j3(U.progressBar,"transform","translateY("+-O+"px)");g.j3(U.ol,"transform","translateY("+-O+"px)");g.j3(U.Rl,"transform","translateY("+M+"px)");U.Rl.style.height=O+M+"px";U.element.parentElement&&(U.element.parentElement.style.height=LK(U)-M+"px")}; qP1=function(U,O){O?U.Y||(U.element.removeAttribute("aria-disabled"),U.Y=new g.qw(U.progressBar,!0),U.Y.subscribe("hovermove",U.jWd,U),U.Y.subscribe("hoverend",U.ieL,U),U.Y.subscribe("dragstart",U.cRY,U),U.Y.subscribe("dragmove",U.RxP,U),U.Y.subscribe("dragend",U.JRQ,U),U.api&&U.api.T("delhi_modern_web_player")&&(U.FI=new g.qw(U.progressBar,!0),U.FI.subscribe("hoverstart",function(){U.sX=!0;mri(U)},U),U.FI.subscribe("hoverend",function(){U.sX=!1; mri(U)},U)),U.WN=U.listen("keydown",U.DM)):U.Y&&(U.element.setAttribute("aria-disabled","true"),U.bH(U.WN),U.Y.cancel(),U.Y.dispose(),U.Y=null)}; qB=function(U){return U.api.T("delhi_modern_web_player")?4:U.yP?3:2}; b05=function(U){var O;return!((O=U.bM)==null||!O.postId)&&U.api.getPresentingPlayerType()!==2}; UA=function(U,O){g.r.call(this,{K:"button",OA:["ytp-remote-button","ytp-button"],N:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"9"},UA:"{{icon}}"});this.S=U;this.lM=O;this.U=null;this.j(U,"onMdxReceiversChange",this.PA);this.j(U,"presentingplayerstatechange",this.PA);this.j(U,"appresize",this.PA);U.createClientVe(this.element,this,139118);this.PA();this.listen("click",this.V,this);Ag(U,this.element,this)}; OA=function(U,O){g.r.call(this,{K:"button",OA:["ytp-button","ytp-settings-button"],N:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":zz(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},W:[g.CU()]});this.S=U;this.lM=O;this.V=!0;this.listen("click",this.B);this.j(U,"onPlaybackQualityChange",this.updateBadge);this.j(U,"videodatachange",this.updateBadge);this.j(U,"webglsettingschanged",this.updateBadge);this.j(U,"appresize",this.U);Ag(U,this.element,this);this.S.createClientVe(this.element, this,28663);this.updateBadge();this.U(U.g7().getPlayerSize())}; i0y=function(U,O){U.V=!!O;U.U(U.S.g7().getPlayerSize())}; sA=function(U,O){GP.call(this,"Anotaciones",g.zP.FA);this.S=U;this.lM=O;this.U=!1;U.T("web_settings_menu_icons")&&this.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{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.j(U,"videodatachange",this.PA);this.j(U,"onApiChange",this.PA);this.subscribe("select",this.onSelect,this);this.PA()}; g6=function(U,O){g.CR.call(this,"Pista de audio",g.zP.AUDIO,U,O);this.S=U;this.tracks={};g.l3(this.element,"ytp-audio-menu-item");this.countLabel=new g.r({K:"div",W:[{K:"span",UA:"Pista de audio"},{K:"span",L:"ytp-menuitem-label-count",UA:"{{content}}"}]});U.T("web_settings_menu_icons")&&this.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.X(this,this.countLabel);g.Oc(this,this.countLabel);this.j(U,"videodatachange",this.PA);this.j(U,"onPlaybackAudioChange",this.PA);this.PA()}; Mb=function(U,O){GP.call(this,"Reproducci\u00f3n autom\u00e1tica",g.zP.pk);this.S=U;this.lM=O;this.U=!1;this.B=[];this.j(U,"presentingplayerstatechange",this.V);this.subscribe("select",this.onSelect,this);U.createClientVe(this.element,this,113682);this.V()}; Z0w=function(U,O){g.sc.call(this,g.gg({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.S=U;this.lM=O;this.j(this.element,"click",this.onClick);this.lM.q4(this)}; KRw=function(U,O){var M;g.gG(U.J())&&(M={K:"div",L:"ytp-panel-footer-content",W:[{K:"span",UA:"Ajusta la calidad de descarga en la "},{K:"a",L:"ytp-panel-footer-content-link",UA:"Configuraci\u00f3n",N:{href:"/account_downloads"}}]});g.CR.call(this,"Calidad",g.zP.yC,U,O,void 0,void 0,M);this.S=U;this.BA={};this.Z={};this.X={};this.sA=new Set;this.U=this.C=!1;this.D="unknown";this.yP="";this.ol=new g.MY;g.X(this,this.ol);this.C=this.S.T("web_player_use_new_api_for_quality_pullback");this.U=this.S.T("web_player_enable_premium_hbr_playback_cap"); U.T("web_settings_menu_icons")&&this.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.l3(this.V.element,"ytp-quality-menu");this.j(U,"videodatachange",this.w4);this.j(U,"videoplayerreset",this.w4);this.j(U,"onPlaybackQualityChange",this.ND);this.w4();U.createClientVe(this.element,this,137721)}; a$1=function(U,O,M){var S=U.BA[O],p=g.ai[O];return rVw(U,S?S.qualityLabel:p?p+"p":"Autom\u00e1tica",O,M)}; ER4=function(U,O,M,S,p){var h=(O=U.U?U.X[O]:U.Z[O])&&O.quality,J=O&&O.qualityLabel;J=J?J:"Autom\u00e1tica";S&&(J="("+J);U=rVw(U,J,h||"",p);S&&U.W.push(")");(S=(S=O&&O.paygatedQualityDetails)&&S.paygatedIndicatorText)&&M&&U.W.push({K:"div",L:"ytp-premium-label",UA:S});return U}; rVw=function(U,O,M,S){O={K:"span",OA:S,W:[O]};var p;S="ytp-swatch-color";if(U.C||U.U)S="ytp-swatch-color-white";M==="highres"?p="8K":M==="hd2880"?p="5K":M==="hd2160"?p="4K":M.indexOf("hd")===0&&M!=="hd720"&&(p="HD");p&&(O.W.push(" "),O.W.push({K:"sup",L:S,UA:p}));return O}; Si=function(U,O,M,S,p,h){h=h===void 0?!1:h;var J={K:"div",OA:["ytp-input-slider-section"],W:[{K:"input",L:"ytp-input-slider",N:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};p&&J.W.unshift(p);h&&J.OA.push("ytp-vertical-slider");g.r.call(this,J);this.C=U;this.D=O;this.Y=M;this.initialValue=S;this.header=p;this.V=this.ML("ytp-input-slider");this.U=S?S:U;this.init();this.j(this.V,"input",this.X);this.j(this.V,"keydown", this.B)}; po=function(U,O){U.U=O;U.updateValue("slidervalue",U.U);U.V.valueAsNumber=U.U;LRe(U,O)}; LRe=function(U,O){U.V.style.setProperty("--yt-slider-shape-gradient-percent",(O-U.C)/(U.D-U.C)*100+"%")}; hY=function(U){Si.call(this,U.getAvailablePlaybackRates()[0],U.getAvailablePlaybackRates()[U.getAvailablePlaybackRates().length-1],.05,U.getPlaybackRate(),{K:"div",L:"ytp-speedslider-indicator-container",W:[{K:"div",L:"ytp-speedslider-badge"},{K:"p",L:"ytp-speedslider-text"}]});this.S=U;this.yP=R4(this.ol,50,this);g.l3(this.V,"ytp-speedslider");this.Z=this.ML("ytp-speedslider-text");this.sA=this.ML("ytp-speedslider-badge");V_e(this);this.j(this.V,"change",this.BA)}; V_e=function(U){U.Z.textContent=U.U+"x";U.sA.classList.toggle("ytp-speedslider-premium-badge",U.U>2&&U.S.T("enable_web_premium_varispeed"))}; JY=function(U,O,M,S,p,h,J){g.r.call(this,{K:"div",L:"ytp-slider-section",N:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{K:"div",L:"ytp-slider",W:[{K:"div",L:"ytp-slider-handle"}]}]});this.Y=U;this.Z=O;this.V=M;this.B=S;this.yP=p;this.QP=h;this.range=this.B-this.V;this.Ca=this.ML("ytp-slider-section");this.X=this.ML("ytp-slider");this.ol=this.ML("ytp-slider-handle");this.D=new g.qw(this.X, !0);this.U=J?J:M;g.X(this,this.D);this.D.subscribe("dragmove",this.m5,this);this.j(this.element,"keydown",this.L4);this.j(this.element,"wheel",this.qH);this.init()}; y3=function(U){JY.call(this,.05,.05,U.getAvailablePlaybackRates()[0],U.getAvailablePlaybackRates()[U.getAvailablePlaybackRates().length-1],150,20,U.getPlaybackRate());this.S=U;this.C=g.GU("P");this.sA=R4(this.BA,50,this);g.l3(this.X,"ytp-speedslider");g.l3(this.C,"ytp-speedslider-text");U=this.C;var O=this.X;O.parentNode&&O.parentNode.insertBefore(U,O.nextSibling);oR7(this);this.j(this.S,"onPlaybackRateChange",this.updateValues)}; oR7=function(U){U.C.textContent=kgy(U,U.U)+"x"}; kgy=function(U,O){U=Number(g.Nm(O,U.V,U.B).toFixed(2));O=Math.floor((U+.001)*100%5+2E-15);var M=U;O!==0&&(M=U-O*.01);return Number(M.toFixed(2))}; wQW=function(U){g.W_.call(this,{K:"div",L:"ytp-speedslider-component"});U.T("web_settings_use_input_slider")?this.U=new hY(U):this.U=new y3(U);g.X(this,this.U);this.element.appendChild(this.U.element)}; UEw=function(U){var O=new wQW(U);xK.call(this,U,O,"Personalizada");g.X(this,O)}; O8J=function(U,O){var M=new UEw(U);g.CR.call(this,"Velocidad de reproducci\u00f3n",g.zP.UR,U,O,fo(U)?void 0:"Personalizada",fo(U)?void 0:function(){g.YK(O,M)}); var S=this;this.X=!1;g.X(this,M);this.D=new hY(U);g.X(this,this.D);U.T("web_settings_menu_icons")&&this.setIcon({K:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{K:"path",N:{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.S=U;this.X=!1;this.yP=null;fo(U)?(this.U=g.v4("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.S.getPlaybackRate().toString()}),this.C=this.S.getPlaybackRate()):this.C=this.U=null;this.Z=this.S.getAvailablePlaybackRates();this.j(U,"presentingplayerstatechange",this.PA);var p;((p=this.S.getVideoData())==null?0:p.Js())&&this.j(U,"serverstitchedvideochange",this.PA);this.j(this.D.V,"change",function(){S.X=!0;S.PA()}); this.PA()}; sB5=function(U,O){var M=Fx(O);U.U&&(U.X||O===U.C)?(U.VN(U.U),U.gH(O.toString())):U.VN(M)}; MYJ=function(U){U.C9(U.Z.map(Fx));U.U=null;U.C=null;var O=U.S.getPlaybackRate();fo(U.S)&&g8m(U,O);!U.Z.includes(O)||U.X?U.VN(U.U):U.VN(Fx(O))}; g8m=function(U,O){U.C=O;U.U=g.v4("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:O.toString()});O=U.Z.map(Fx);O.unshift(U.U);U.C9(O)}; Fx=function(U){return U.toString()}; fo=function(U){return U.T("web_settings_menu_surface_custom_playback")}; S81=function(U){return U.T("web_settings_menu_surface_custom_playback")&&U.T("web_settings_use_input_slider")}; hLg=function(U,O,M,S){var p=new g.bP(O,void 0,"Anulaci\u00f3n de video");g.CR.call(this,S.text||"",U,O,M,"Anulaci\u00f3n de video",function(){g.YK(M,p)}); var h=this;g.l3(this.element,"ytp-subtitles-options-menu-item");this.setting=S.option.toString();U=S.options;this.settings=g.jS(U,this.Zl,this);this.C=p;g.X(this,this.C);O=new g.sc({K:"div",L:"ytp-menuitemtitle",UA:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.X(this,O);this.C.q4(O,!0);this.X=new g.sc({K:"div",L:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},W:[{K:"div",L:"ytp-menuitem-label",UA:"S\u00ed"}]},-1);g.X(this,this.X);this.C.q4(this.X, !0);this.j(this.X.element,"click",function(){pEw(h,!0)}); this.U=new g.sc({K:"div",L:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},W:[{K:"div",L:"ytp-menuitem-label",UA:"No"}]},-2);g.X(this,this.U);this.C.q4(this.U,!0);this.j(this.U.element,"click",function(){pEw(h,!1)}); this.C9(g.mV(U,this.Zl))}; pEw=function(U,O){U.publish("settingChange",U.setting+"Override",!O);U.lM.oF()}; lF=function(U,O){g.bP.call(this,U,void 0,"Opciones");var M=this;this.jM={};for(var S=0;S=0);if(!(O<0||O===U.X)){U.X=O;O=243*U.scale;var M=141*U.scale,S=lgy(U.V,U.X,O);PD1(U.bg,S,O,M,!0);U.ol.start()}}; P_U=function(U){var O=U.U;U.type===3&&U.BA.stop();U.api.removeEventListener("appresize",U.yP);U.Y||O.setAttribute("title",U.B);U.B="";U.U=null;U.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});U.wrapper.style.width=""}; QBW=function(U){g.r.call(this,{K:"button",OA:["ytp-watch-later-button","ytp-button"],N:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Pn(U.J()))},W:[{K:"div",L:"ytp-watch-later-icon",UA:"{{icon}}"},{K:"div",L:"ytp-watch-later-title",UA:"Ver m\u00e1s tarde"}]});this.S=U;this.icon=null;this.visible=this.isRequestPending=this.U=!1;iHU(U);U.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.j(U,"videoplayerreset",this.onReset);this.j(U, "appresize",this.ys);this.j(U,"videodatachange",this.ys);this.j(U,"presentingplayerstatechange",this.ys);this.ys();U=this.S.J();var O=g.ZO("yt-player-watch-later-pending");U.X&&O?(Au4(),n8e(this)):this.PA(2);g.ea(this.element,"ytp-show-watch-later-title",g.Pn(U));Ag(this.S,this.element,this)}; C_q=function(U){var O=U.S.getPlayerSize(),M=U.S.J(),S=U.S.getVideoData(),p=g.Pn(M)&&g.X7(U.S)&&g.a(U.S.getPlayerStateObject(),128),h=M.B;return M.Op&&O.width>=240&&!S.isAd()&&S.Op&&!p&&!g.fd(S)&&!U.S.isEmbedsShortsMode()&&!h}; XEy=function(U,O){pN7(g.k0(U.S.J()),"wl_button",function(){Au4({videoId:O});window.location.reload()})}; n8e=function(U){if(!U.isRequestPending){U.isRequestPending=!0;U.PA(3);var O=U.S.getVideoData();O=U.U?O.removeFromWatchLaterCommand:O.addToWatchLaterCommand;var M=U.S.hL(),S=U.U?function(){U.U=!1;U.isRequestPending=!1;U.PA(2);U.S.J().D&&U.S.ZQ("WATCH_LATER_VIDEO_REMOVED")}:function(){U.U=!0; U.isRequestPending=!1;U.PA(1);U.S.J().V&&U.S.Tu(U.element);U.S.J().D&&U.S.ZQ("WATCH_LATER_VIDEO_ADDED")}; gM(M,O).then(S,function(){U.isRequestPending=!1;U.PA(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");U.S.J().D&&U.S.ZQ("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; uRW=function(U,O){if(O!==U.icon){switch(O){case 3:var M=eV();break;case 1:M=bZ();break;case 2:M={K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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:M={K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path", vB:!0,N:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}U.updateValue("icon",M);U.icon=O}}; g.bF=function(){g.qV.apply(this,arguments);this.Wv=(this.lI=g.Pn(this.api.J()))&&(this.api.J().V||ym()||hw());this.W9=48;this.Fw=69;this.s$=this.Lf=null;this.RY=[];this.Rb=this.kX=this.eL=this.ZE=this.PT=null;this.Fs=[];this.contextMenu=this.ev=this.overflowButton=this.Kf=this.uU=this.searchButton=this.copyLinkButton=this.shareButton=this.WC=this.Xk=this.title=this.channelAvatar=this.A5=this.tooltip=null;this.Dm=!1;this.Wd=this.Jk=this.iE=this.jQ=null;this.aq=this.Jc=this.rf=!1}; q8w=function(U){var O=U.api.J(),M=g.a(U.api.getPlayerStateObject(),128);return O.X&&M&&!U.api.isFullscreen()}; i8m=function(U){if(U.Ug()&&!U.api.isEmbedsShortsMode()&&U.Kf){var O=U.api.T("web_player_hide_overflow_button_if_empty_menu");!U.WC||O&&!C_q(U.WC)||pui(U.Kf,U.WC);!U.shareButton||O&&!j2g(U.shareButton)||pui(U.Kf,U.shareButton);!U.copyLinkButton||O&&!DUU(U.copyLinkButton)||pui(U.Kf,U.copyLinkButton)}else{if(U.Kf){O=U.Kf;for(var M=g.D(O.actionButtons),S=M.next();!S.done;S=M.next())S.value.detach();O.actionButtons=[]}U.searchButton&&!g.zU(U.Xk.element,U.searchButton.element)&&U.searchButton.AZ(U.Xk.element); U.WC&&!g.zU(U.Xk.element,U.WC.element)&&U.WC.AZ(U.Xk.element);U.shareButton&&!g.zU(U.Xk.element,U.shareButton.element)&&U.shareButton.AZ(U.Xk.element);U.copyLinkButton&&!g.zU(U.Xk.element,U.copyLinkButton.element)&&U.copyLinkButton.AZ(U.Xk.element)}}; Z8q=function(U,O,M){O=M?O.lastElementChild:O.firstElementChild;for(var S=null;O;){if(cc(O,"display")!=="none"&&O.getAttribute("aria-hidden")!=="true"){var p=void 0;O.tabIndex>=0?p=O:p=Z8q(U,O,M);p&&(S?M?p.tabIndex>S.tabIndex&&(S=p):p.tabIndexS/1E3+1)return{msg:"in-the-past"};if(h.isLivePlayback&&!isFinite(S))return{msg:"live-infinite"};(S=O.tR())&&S.isView()&&(S=S.mediaElement);if(S&&S.v1().length>12&&g.BB(p))return{msg:"played-ranges"};if(!p.B)return null;if(!J)return{msg:"no-pvd-formats"};if(!p.B.U||!J.U)return{msg:"non-dash"};S=J.videoInfos[0];var f=p.B.videoInfos[0];U.D&&FX(h)&&(S=O.uO(),f= M.uO());if(!S||!f)return{msg:"no-video-info"};if(U.B&&(s6(S)||s6(f)))return{msg:"av1"};O=U.U&&h.HU()&&Ne();if(f.containerType!==S.containerType)if(O)h.al("sgap",{ierr:"container"});else return{msg:"container"};if(U.V&&!O&&(f.zY!==S.zY||f.zY===""||S.zY===""))return{msg:"codec"};if(U.X&&f.video&&S.video&&Math.abs(f.video.width/f.video.height-S.video.width/S.video.height)>.01)return{msg:"ratio"};if(g.BB(h)&&g.BB(p))return{msg:"content-protection"};J=J.U[0];p=p.B.U[0];M=J.audio;var F=p.audio;if(M.sampleRate!== F.sampleRate&&!g.XW)if(O)h.al("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:J.itag,cr:M.sampleRate,ni:p.itag,nr:F.sampleRate};return(M.numChannels||2)!==(F.numChannels||2)?{msg:"channel-count"}:U.G&&h.HU()&&S.video.fps!==f.video.fps?{msg:"fps"}:null}; E8y=function(U,O,M){var S=U.getVideoData(),p=O.getVideoData();if(!S.J().supportsGaplessShorts())return{nq:"env"};if(M.C){if(S.RL&&!S.isAd()||p.RL&&!p.isAd())return{nq:"autoplay"}}else if(S.RL||p.RL)return{nq:"autoplay"};if(!S.Y)return{nq:"client"};if(!U.uB())return{nq:"no-empty"};U=af7(M,U,O,Infinity);return U!=null?{nq:U.msg}:null}; Yx=function(U){g.C.call(this);this.app=U;this.G=this.X=this.V=this.U=null;this.B=1;this.events=new g.Zj(this);this.events.j(this.app.md,g.TO("gaplessshortslooprange"),this.Y);g.X(this,this.events)}; Ltw=function(){this.X=this.C=this.B=this.D=this.G=this.V=this.U=!1}; VY5=function(U){var O=new Ltw;O.U=U.T("h5_gapless_support_types_diff");O.G=U.T("h5_gapless_error_on_fps_diff");O.D=U.T("html5_gapless_use_format_info_fix");O.B=U.T("html5_gapless_disable_on_av1")&&!U.T("html5_gapless_enable_on_av1");O.V=U.T("html5_gapless_check_codec_diff_strictly");O.C=U.T("html5_gapless_on_ad_autoplay");O.X=U.T("html5_gapless_disable_diff_aspect_radio");return O}; g.mG=function(U,O,M,S){S=S===void 0?!1:S;Sz.call(this);this.mediaElement=U;this.start=O;this.end=M;this.U=S}; o85=function(U,O,M,S,p,h){h=h===void 0?0:h;g.C.call(this);var J=this;this.policy=U;this.U=O;this.V=M;this.mj=p;this.G=h;this.X=this.B=null;this.currentVideoDuration=this.C=-1;this.D=!1;this.O7=new M6;this.dP=S-O.je()*1E3;this.O7.then(void 0,function(){}); this.timeout=new g.UM(function(){J.Bx("timeout")},1E4); g.X(this,this.timeout);this.Y=isFinite(S)||this.mj.J().experiments.F0("html5_pseudogapless_shorts")&&FX(O.getVideoData());this.status={status:0,error:null}}; U74=function(U){var O,M,S,p,h,J,f,F,l,G;return g.A(function(T){if(T.U==1){if(U.GY())return T.return(Promise.reject(Error(U.status.error||"disposed")));U.timeout.start();O=g.AY.y6();return g.Y(T,U.O7,2)}g.AY.Ij("gtfta",O);M=U.U.tR();if(M.isEnded())return U.Bx("ended_in_finishTransition"),T.return(Promise.reject(Error(U.status.error||"")));if(!U.X||!xf(U.X))return U.Bx("next_mse_closed"),T.return(Promise.reject(Error(U.status.error||"")));if(U.V.Ea()!==U.X)return U.Bx("next_mse_mismatch"),T.return(Promise.reject(Error(U.status.error|| "")));S=k1U(U);p=S.Un;h=S.e$;J=S.o7;U.U.Cf(!1,!0);f=wEJ(M,p,J,!U.V.getVideoData().isAd());U.V.setMediaElement(f);(F=U.U.VT())&&U.V.b_(F.uc,F.fn);U.Y&&(U.V.seekTo(U.V.getCurrentTime()+.001,{fG:!0,J7:3,uH:"gapless_pseudo"}),f.play(),qv());l=M.aT();l.cpn=U.U.getVideoData().clientPlaybackNonce;l.st=""+p;l.et=""+J;U.V.al("gapless",l);U.U.al("gaplessTo",{cpn:U.V.getVideoData().clientPlaybackNonce});G=U.U.getPlayerType()===U.V.getPlayerType();U.U.xA(h,!0,!1,G,U.V.getVideoData().clientPlaybackNonce);U.V.xA(U.V.getCurrentTime(), !0,!0,G,U.U.getVideoData().clientPlaybackNonce);g.NF(function(){!U.V.getVideoData().sA&&U.V.getPlayerState().isOrWillBePlaying()&&U.V.s4()}); Is(U,6);U.dispose();return T.return(Promise.resolve())})}; MCy=function(U){if(U.V.getVideoData().B){var O=U.mj.J().T("html5_gapless_suspend_next_loader")&&U.G===1;U.V.cG(U.X,O,Of7(U));Is(U,3);sTy(U);var M=gIe(U);O=M.vc;M=M.bX;O.subscribe("updateend",U.L$,U);M.subscribe("updateend",U.L$,U);U.L$(O);U.L$(M)}}; sTy=function(U){U.U.unsubscribe("internalvideodatachange",U.jS,U);U.V.unsubscribe("internalvideodatachange",U.jS,U);U.mj.J().T("html5_gapless_use_format_info_fix")&&(U.U.unsubscribe("internalvideoformatchange",U.jS,U),U.V.unsubscribe("internalvideoformatchange",U.jS,U));U.U.unsubscribe("mediasourceattached",U.jS,U);U.V.unsubscribe("statechange",U.wl,U)}; wEJ=function(U,O,M,S){U=U.isView()?U.mediaElement:U;return new g.mG(U,O,M,S)}; Is=function(U,O){O<=U.status.status||(U.status={status:O,error:null},O===5&&U.O7.resolve())}; Of7=function(U){return U.mj.J().T("html5_gapless_no_clear_buffer_timeline")&&U.G===1&&$u(U.U.getVideoData())}; k1U=function(U){var O=U.U.tR();O=O.isView()?O.start:0;var M=U.U.getVideoData().isLivePlayback?Infinity:U.U.rB(!0);M=Math.min(U.dP/1E3,M)+O;var S=U.Y?100:0;U=M-U.V.aO()+S;return{CR:O,Un:U,e$:M,o7:Infinity}}; gIe=function(U){return{vc:U.B.U.oW,bX:U.B.V.oW}}; Pm=function(U){g.C.call(this);var O=this;this.app=U;this.G=this.V=this.U=null;this.Y=!1;this.B=this.X=null;this.D=VY5(this.app.J());this.C=function(){g.NF(function(){SUw(O)})}}; pte=function(U,O,M,S,p){S=S===void 0?0:S;p=p===void 0?0:p;U.uB()||no(U);U.X=new M6;U.U=O;var h=M,J=p===0;J=J===void 0?!0:J;var f=U.app.jc(),F=f.getVideoData().isLivePlayback?Infinity:f.rB(!0)*1E3;h>F&&(h=F-200,U.Y=!0);J&&f.getCurrentTime()>=h/1E3?U.C():(U.V=f,J&&(J=h,h=U.V,U.app.md.addEventListener(g.$Y("vqueued"),U.C),J=isFinite(J)||J/1E3>h.getDuration()?J:0x8000000000000,U.G=new g.ll(J,0x8000000000000,{namespace:"vqueued"}),h.addCueRange(U.G)));J=S/=1E3;h=O.getVideoData().U;S&&h&&U.V&&(f=S,F=0, O.getVideoData().isLivePlayback&&(J=Math.min(M/1E3,U.V.rB(!0)),F=Math.max(0,J-U.V.getCurrentTime()),f=Math.min(S,O.rB()+F)),J=Sfi(h,f)||S,J!==S&&U.U.al("qvaln",{st:S,at:J,rm:F,ct:f}));O=J;S=U.U;S.getVideoData().FI=!0;S.getVideoData().Y=!0;S.nX(!0);h={};U.V&&(h=U.V.Sr(),J=U.V.getVideoData().clientPlaybackNonce,h={crt:(h*1E3).toFixed(),cpn:J});S.al("queued",h);O!==0&&S.seekTo(O+.01,{fG:!0,J7:3,uH:"videoqueuer_queued"});U.B=new o85(U.D,U.app.jc(),U.U,M,U.app,p);M=U.B;M.status.status!==Infinity&&(Is(M, 1),M.U.subscribe("internalvideodatachange",M.jS,M),M.V.subscribe("internalvideodatachange",M.jS,M),M.mj.J().T("html5_gapless_use_format_info_fix")&&(M.U.subscribe("internalvideoformatchange",M.jS,M),M.V.subscribe("internalvideoformatchange",M.jS,M)),M.U.subscribe("mediasourceattached",M.jS,M),M.V.subscribe("statechange",M.wl,M),M.U.subscribe("newelementrequired",M.Cp,M),M.jS());return U.X}; SUw=function(U){var O,M,S,p,h,J,f,F,l;g.A(function(G){switch(G.U){case 1:if(U.GY()||!U.X||!U.U)return G.return();U.Y&&U.app.jc().u_(!0,!1);M=U.app.J().T("html5_force_csdai_gapful_transition")&&((O=U.app.jc())==null?void 0:O.getVideoData().isDaiEnabled());S=null;if(!U.B||M){G.tZ(2);break}g.dW(G,3);return g.Y(G,U74(U.B),5);case 5:g.vg(G,2);break;case 3:S=p=g.Bg(G);case 2:if(!U.U)return G.return();g.AY.XO("vqsp",function(){U.app.vR(U.U)}); if(!U.U)return G.return();h=U.U.tR();U.app.J().T("html5_gapless_seek_on_negative_time")&&h&&h.getCurrentTime()<-.01&&U.U.seekTo(0);g.AY.XO("vqpv",function(){U.app.playVideo()}); if(S||M)U.U?(J=S?S.message:"forced",(f=U.V)==null||f.al("gapfulfbk",{r:J}),U.U.TK(J)):(F=U.V)==null||F.al("gapsp",{});l=U.X;no(U);l&&l.resolve();return G.return(Promise.resolve())}})}; no=function(U,O){O=O===void 0?!1:O;if(U.V){if(U.G){var M=U.V;U.app.md.removeEventListener(g.$Y("vqueued"),U.C);M.removeCueRange(U.G)}U.V=null;U.G=null}U.B&&(U.B.status.status!==6&&(M=U.B,M.status.status!==Infinity&&M.G!==1&&M.Bx("Canceled")),U.B=null);U.X=null;U.U&&!O&&U.U!==U.app.Va()&&U.U!==U.app.jc()&&U.U.dispose();U.U&&O&&U.U.Md();U.U=null;U.Y=!1}; h8J=function(U){var O;return((O=U.B)==null?void 0:O.currentVideoDuration)||-1}; Jlw=function(U,O,M){if(U.uB())return"qie";if(U.U==null||U.U.GY()||U.U.getVideoData()==null)return"qpd";if(O.videoId!==U.U.OF())return"vinm";if(h8J(U)<=0)return"ivd";if(M!==1)return"upt";if((M=U.B)==null)U=void 0;else if(M.getStatus().status!==5)U="niss";else if(af7(M.policy,M.U,M.V,M.dP)!=null)U="pge";else{O=gIe(M);U=O.vc;var S=O.bX;O=g.DF(M.mj.J().experiments,"html5_shorts_gapless_next_buffer_in_seconds");M=M.C+O;S=jh(S.Nm(),M);U=jh(U.Nm(),M);U=!(O>0)||S&&U?null:"neb"}return U!=null?U:null}; ylU=function(){g.H_.call(this);var U=this;this.fullscreen=0;this.X=this.B=this.pictureInPicture=this.U=this.V=this.inline=!1;this.G=function(){U.oK()}; hhy(this.G);this.C=this.getVisibilityState(this.oA(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.PU(),this.Ql(),this.CM(),this.EU())}; fk=function(U){return!(U.isMinimized()||U.isInline()||U.isBackground()||U.PU()||U.Ql()||U.CM()||U.EU())}; g.Q3=function(U){g.C.call(this);this.gG=U;this.videoData=this.playerState=null}; g.Co=function(U,O){g.C.call(this);this.B={};this.ZF=this.G=null;this.V=this.U=new g.Q3(U);this.X=O}; $71=function(U){var O=U.experiments,M=O.F0.bind(O);f3w=M("html5_use_async_stopVideo");FYw=M("html5_pause_for_async_stopVideo");l3e=M("html5_not_reset_media_source");M("html5_listen_for_audio_output_changed")&&(ABy=!0);bE=M("html5_not_reset_media_source");G0i=M("html5_not_reset_media_source");dm=M("html5_retain_source_buffer_appends_for_debugging");kfw=M("web_watch_pip");M("html5_mediastream_applies_timestamp_offset")&&(R7=!0);var S=g.DF(O,"html5_cobalt_override_quic");S&&Tu("QUIC",+(S>0));(S=g.DF(O, "html5_cobalt_audio_write_ahead_ms"))&&Tu("Media.AudioWriteDurationLocal",S);(S=M("html5_cobalt_enable_decode_to_texture"))&&Tu("Media.PlayerConfiguration.DecodeToTexturePreferred",S?1:0);(U.PV()||M("html5_log_cpu_info"))&&MBw();Error.stackTraceLimit=50;var p=g.DF(O,"html5_idle_rate_limit_ms");p&&Object.defineProperty(window,"requestIdleCallback",{value:function(h){return window.setTimeout(h,p)}}); Ili(U.G);IN=M("html5_use_ump_request_slicer");Bxm=M("html5_record_now");M("html5_disable_streaming_xhr")&&(Sf=!1);M("html5_byterate_constraints")&&(Fr=!0);M("html5_use_non_active_broadcast_for_post_live")&&(Uj=!0);M("html5_sunset_aac_high_codec_family")&&(oi["141"]="a");M("html5_enable_encrypted_av1")&&(O6=!0);RNy(g.DF(U.experiments,"html5_sticky_duration_mos"))}; TKw=function(U){return U.slice(12).replace(/_[a-z]/g,function(O){return O.toUpperCase().replace("_","")}).replace("Dot",".")}; jT4=function(U){var O={},M;for(M in U.experiments.flags)if(M.startsWith("cobalt_h5vcc")){var S=TKw(M),p=g.DF(U.experiments,M);S&&p&&(O[S]=Tu(S,p))}return O}; Xx=function(U,O,M,S,p){p=p===void 0?[]:p;g.C.call(this);this.gG=U;this.q0=O;this.X=M;this.segments=p;this.U=void 0;this.V=new Map;p.length&&(this.U=p[0])}; e8w=function(U){if(!(U.segments.length<2)){var O=U.segments.shift();if(O){var M=O.U,S=[];if(M.size){M=g.D(M.values());for(var p=M.next();!p.done;p=M.next()){p=g.D(p.value);for(var h=p.next();!h.done;h=p.next()){h=h.value;for(var J=g.D(h.segments),f=J.next();!f.done;f=J.next())(f=uF(f.value))&&S.push(f);h.removeAll()}}}(M=uF(O))&&S.push(M);S=g.D(S);for(M=S.next();!M.done;M=S.next())U.V.delete(M.value);O.dispose()}}}; qb=function(U,O,M,S){if(!U.U||O>M)return!1;O=new Xx(U.gG,O,M,U.U,S);S=g.D(S);for(M=S.next();!M.done;M=S.next()){M=M.value;var p=uF(M);p&&p!==uF(U.U)&&U.V.set(p,[M])}U=U.U;U.U.has(O.dK())?U.U.get(O.dK()).push(O):U.U.set(O.dK(),[O]);return!0}; aW=function(U,O){return U.V.get(O)}; Hf5=function(U,O,M){U.V.set(O,M)}; iF=function(U,O,M,S,p,h){return new z8e(M,M+(S||0),!S,O,U,p,h)}; z8e=function(U,O,M,S,p,h,J){g.C.call(this);this.q0=U;this.B=O;this.V=M;this.type=S;this.X=p;this.videoData=h;this.uo=J;this.U=new Map;Yu(h)}; uF=function(U){return U.videoData.clientPlaybackNonce}; cli=function(U){if(U.U.size)for(var O=g.D(U.U.values()),M=O.next();!M.done;M=O.next()){M=g.D(M.value);for(var S=M.next();!S.done;S=M.next())S.value.dispose()}U.U.clear()}; D71=function(U){this.end=this.start=U}; g.Zm=function(){this.U=new Map;this.B=new Map;this.V=new Map}; g.Ko=function(U,O,M,S){g.C.call(this);var p=this;this.api=U;this.gG=O;this.playback=M;this.app=S;this.Ka=new g.Zm;this.V=new Map;this.C=[];this.G=[];this.B=new Map;this.WV=new Map;this.D=new Map;this.Yy=null;this.EQ=NaN;this.AG=this.HV=null;this.hG=new g.UM(function(){d75(p,p.EQ,p.HV||void 0)}); this.events=new g.Zj(this);this.r7=15E3;this.QP=new g.UM(function(){p.Ca=!0;p.playback.N2(p.r7);WYe(p);if(p.playback.getVideoData().Js()){var h;p.ya({togab:(h=p.ol)==null?void 0:h.identifier})}p.sf(!1)},this.r7); this.Ca=!1;this.Y=new Map;this.pE=[];this.ol=null;this.Qa=new Set;this.TY=[];this.F9=[];this.dH=[];this.cB=[];this.U=void 0;this.sA=0;this.hZ=!0;this.Z=!1;this.HA=[];this.NL=new Set;this.UX=new Set;this.FI=new Set;this.GA=0;this.Rl=new Set;this.Dq=0;this.Ja=this.Oj=!1;this.M0=this.X="";this.BA=null;this.logger=new g.Gs("dai");this.BB={q7Y:function(){return p.V}, WBP:function(){return p.C}, P8A:function(){return p.B}, Fq:function(h){p.onCueRangeEnter(p.V.get(h))}, C8Y:function(h){p.onCueRangeExit(p.V.get(h))}, WEL:function(h,J){p.V.set(h,J)}, NzG:function(h){p.M0=h}, x_:function(){return p.x_()}, LBc:function(h){return p.D.get(h)}, hYA:function(){return p.BA}}; this.playback.getPlayerType();this.playback.SL(this);this.w7=this.gG.PV();g.X(this,this.hG);g.X(this,this.events);g.X(this,this.QP);this.events.j(this.api,g.$Y("serverstitchedcuerange"),this.onCueRangeEnter);this.events.j(this.api,g.TO("serverstitchedcuerange"),this.onCueRangeExit)}; x77=function(U,O,M,S,p,h,J,f,F){if(U.gG.T("html5_ignore_ads_after_noadresponse")&&F&&U.Qa.has(F))return r6(U,{reason:"addafternoad",cueid:F}),"";F=NK5(U,h,h+p);U.Ca&&U.ya({adaftto:1});M||U.ya({missadcon:1,enter:h,len:p,aid:f});U.yP&&!U.yP.ea&&(U.yP.ea=f);U.Ja&&U.ya({adfbk:1,enter:h,len:p,aid:f});var l=U.playback;J=J===void 0?h+p:J;h===J&&!p&&U.gG.T("html5_allow_zero_duration_ads_on_timeline")&&U.ya({attl0d:1});h>J&&r6(U,{reason:"enterTime_greater_than_return",q0:h,vT:J});var G=l.GZ()*1E3;hl&&r6(U,{reason:"parent_return_greater_than_content_duration",vT:J,TzG:l});l=null;G=g.ft(U.G,{vT:h},function(T,e){return T.vT-e.vT}); G>=0&&(l=U.G[G],l.vT>h&&vIy(U,O.video_id||"",h,J,l));if(F&&l)for(G=0;G.5&&U.ya({ttdtb:1,delta:J,cpn:p.cpn,enter:O.adCpn,exit:M.adCpn,seek:S,skip:h});U.api.T("html5_ssdai_enable_media_end_cue_range")&&U.api.S_();if(O.isAd&&M.isAd){p=!!h;if(O.adCpn&&M.adCpn){var f=U.B.get(O.adCpn);var F=U.B.get(M.adCpn)}p?U.ya({igtransskip:1,enter:O.adCpn,exit:M.adCpn,seek:S,skip:h}):V3(U,F,f,M.iU,O.iU,S,p)}else if(!O.isAd&&M.isAd){U.M0=p.cpn;U.api.publish("serverstitchedvideochange");f=EA(U,"a2c");U.ya(f); U.GA=0;if(f=M.Tk)U.sA=f.end;var l;M.adCpn&&(l=U.B.get(M.adCpn));l&&U.playback.s_(l,p,M.iU,O.iU,S,!!h)}else if(O.isAd&&!M.isAd){var G;O.adCpn&&(G=U.B.get(O.adCpn));G&&(U.sA=0,U.M0=G.cpn,Lo(U,G),l=EA(U,"c2a",G),U.ya(l),U.GA=1,U.playback.s_(p,G,M.iU,O.iU,S,!!h))}}; kx=function(U,O,M){M=M===void 0?0:M;var S=g.ft(U.G,{q0:(O+M)*1E3},function(f,F){return f.q0-F.q0}); S=S<0?(S+2)*-1:S;if(S>=0)for(var p=O*1E3,h=S;h<=S+1&&h=J.q0-M*1E3&&p<=J.vT+M*1E3)return{cD:J,Ef:O}}return{cD:void 0,Ef:O}}; R8w=function(U,O){var M="";(O=bf5(U,O))&&(M=O.getId());return M?U.B.get(M):void 0}; bf5=function(U,O){if(U.M0){var M=U.V.get(U.M0);if(M&&M.start-200<=O&&M.end+200>=O)return M}U=g.D(U.V.values());for(M=U.next();!M.done;M=U.next())if(M=M.value,M.start<=O&&M.end>=O)return M}; d75=function(U,O,M){var S=U.AG||U.app.jc().getPlayerState();w6(U,!0);U.playback.seekTo(O,M);U=U.app.jc();O=U.getPlayerState();S.isOrWillBePlaying()&&!O.isOrWillBePlaying()?U.playVideo():S.isPaused()&&!O.isPaused()&&U.pauseVideo()}; w6=function(U,O){U.EQ=NaN;U.HV=null;U.hG.stop();U.Yy&&O&&U.Yy.Tt();U.AG=null;U.Yy=null}; tCe=function(U){var O=O===void 0?-1:O;var M=M===void 0?Infinity:M;for(var S=[],p=g.D(U.G),h=p.next();!h.done;h=p.next())h=h.value,(h.q0M)&&S.push(h);U.G=S;S=g.D(U.V.values());for(p=S.next();!p.done;p=S.next())p=p.value,p.start>=O&&p.end<=M&&(U.playback.removeCueRange(p),U.V.delete(p.getId()),U.ya({rmAdCR:1}));S=kx(U,O/1E3);O=S.cD;S=S.Ef;if(O&&(S=S*1E3-O.q0,p=O.q0+S,O.durationMs=S,O.vT=p,S=U.V.get(O.cpn))){p=g.D(U.C);for(h=p.next();!h.done;h=p.next())h=h.value,h.start===S.end?h.start=O.q0+ O.durationMs:h.end===S.start&&(h.end=O.q0);S.start=O.q0;S.end=O.q0+O.durationMs}if(O=kx(U,M/1E3).cD){var J;S="playback_timelinePlaybackId_"+O.xI+"_video_id_"+((J=O.videoData)==null?void 0:J.videoId)+"_durationMs_"+O.durationMs+"_enterTimeMs_"+O.q0+"_parentReturnTimeMs_"+O.vT;U.wc("Invalid_clearEndTimeMs_"+M+"_that_falls_during_"+S+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; YUi=function(U){U.Ka.clearAll();U.V.clear();U.C=[];U.G=[];U.B.clear();U.WV.clear();U.D.clear();U.Y.clear();U.pE=[];U.ol=null;U.Qa.clear();U.TY=[];U.F9=[];U.dH=[];U.cB=[];U.HA=[];U.NL.clear();U.UX.clear();U.FI.clear();U.Rl.clear();U.Ca=!1;U.U=void 0;U.sA=0;U.hZ=!0;U.Z=!1;U.GA=0;U.Dq=0;U.Oj=!1;U.Ja=!1;U.X="";U.QP.isActive()&&as(U)}; Alg=function(U,O,M,S,p,h){if(!U.Ja)if(g.m7w(U,M))U.ya({gdu:"undec",seg:M,itag:p});else if(O=U1(U,O,M,S,h),!(U.playback.getVideoData().Js()&&(O==null?0:O.OO)))return O}; U1=function(U,O,M,S,p){var h=U.Y.get(M);if(!h){if(h=I3W(U,O))return h;O=U.YM(M-1,S!=null?S:2);if(p)return U.ya({misscue:p,sq:M,type:S,prevsstate:O==null?void 0:O.hN,prevrecord:U.Y.has(M-1)}),U.Y.get(M-1);if((O==null?void 0:O.hN)===2)return U.ya({adnf:1,sq:M,type:S,prevrecord:U.Y.has(M-1)}),U.Y.get(M-1)}return h}; I3W=function(U,O){O+=U.H7();if(U.playback.getVideoData().Js())a:{var M=1;M=M===void 0?0:M;var S=O*1E3;U=g.D(U.G);for(var p=U.next();!p.done;p=U.next()){p=p.value;var h=p.hK?p.hK*1E3:p.q0;if(S>=p.q0-M*1E3&&S<=h+p.durationMs+M*1E3){S={cD:p,Ef:O};break a}}S={cD:void 0,Ef:O}}else S=kx(U,O),((M=S)==null?0:M.cD)||(S=kx(U,O,1));var J;return(J=S)==null?void 0:J.cD}; PcW=function(U,O){O=O===void 0?"":O;var M=$0(O)||void 0;if(!O||!M){var S;U.ya({adcfg:(S=O)==null?void 0:S.length,dcfg:M==null?void 0:M.length})}return M}; nIm=function(U){if(U.HA.length)for(var O=g.D(U.HA),M=O.next();!M.done;M=O.next())U.onCueRangeExit(M.value);O=g.D(U.V.values());for(M=O.next();!M.done;M=O.next())U.playback.removeCueRange(M.value);O=g.D(U.C);for(M=O.next();!M.done;M=O.next())U.playback.removeCueRange(M.value);U.V.clear();U.C=[];U.Ka.clearAll();U.U||(U.hZ=!0)}; V3=function(U,O,M,S,p,h,J){if(O&&M){U.M0=M.cpn;Lo(U,M);var f=EA(U,"a2a",M);U.ya(f);U.GA++;U.playback.s_(O,M,S||0,p||0,!!h,!!J)}else U.ya({misspbkonadtrans:1,enter:(M==null?void 0:M.cpn)||"",exit:(O==null?void 0:O.cpn)||"",seek:h,skip:J})}; Cce=function(U,O,M,S){if(S)for(S=0;SM){var h=p.end;p.end=O;QTe(U,M,h)}else if(p.start>=O&&p.startM)p.start=M;else if(p.end>O&&p.end<=M&&p.start=O&&p.end<=M){U.playback.removeCueRange(p);if(U.HA.includes(p))U.onCueRangeExit(p);U.C.splice(S,1);continue}S++}else QTe(U,O,M)}; QTe=function(U,O,M){O=U.XM(O,M);M=!0;g.$$(U.C,O,function(J,f){return J.start-f.start}); for(var S=0;S0){var p=U.C[S],h=U.C[S-1];if(Math.round(h.end/1E3)>=Math.round(p.start/1E3)){h.end=p.end;p!==O?U.playback.removeCueRange(p):M=!1;U.C.splice(S,1);continue}}S++}if(M)for(U.playback.addCueRange(O),O=U.playback.rg("serverstitchedcuerange",36E5),O=g.D(O),M=O.next();!M.done;M=O.next())U.V.delete(M.value.getId())}; O1=function(U,O,M){if(M===void 0||!M){M=g.D(U.pE);for(var S=M.next();!S.done;S=M.next()){S=S.value;if(O>=S.start&&O<=S.end)return;if(O===S.end+1){S.end+=1;return}}U.pE.push(new D71(O))}}; g.m7w=function(U,O){U=g.D(U.pE);for(var M=U.next();!M.done;M=U.next())if(M=M.value,O>=M.start&&O<=M.end)return!0;return!1}; s1=function(U,O,M){var S;if(S=U.playback.getVideoData().Js()||U.gG.T("html5_ssdai_extent_last_unfinished_ad_cue_range"))S=(S=U.B.get(O))&&S.fm?(U=U.D.get(S==null?void 0:S.fm))&&U.slice(-1)[0].cpn===O:!1;return S&&M===2?1E3:0}; vIy=function(U,O,M,S,p){var h;O={reason:"overlapping_playbacks",OXy:O,q0:M,vT:S,KBn:p.xI,S7P:((h=p.videoData)==null?void 0:h.videoId)||"",bgL:p.durationMs,ddd:p.q0,Ogy:p.vT};r6(U,O)}; r6=function(U,O,M){U.playback.ZY(O,M)}; Xtm=function(U,O){var M=[];U=U.D.get(O);if(!U)return[];U=g.D(U);for(O=U.next();!O.done;O=U.next())O=O.value,O.cpn&&M.push(O.cpn);return M}; upe=function(U,O,M){var S=0;U=U.D.get(M);if(!U)return-1;U=g.D(U);for(M=U.next();!M.done;M=U.next()){if(M.value.cpn===O)return S;S++}return-1}; qU5=function(U,O){var M=0;U=U.D.get(O);if(!U)return 0;U=g.D(U);for(O=U.next();!O.done;O=U.next())O=O.value,O.durationMs!==0&&O.vT!==O.q0&&M++;return M}; ifw=function(U,O,M){var S=!1;if(M&&(M=U.D.get(M))){M=g.D(M);for(var p=M.next();!p.done;p=M.next())p=p.value,p.durationMs!==0&&p.vT!==p.q0&&(p=p.cpn,O===p&&(S=!0),S&&!U.UX.has(p)&&(U.ya({decoratedAd:p}),U.UX.add(p)))}}; WYe=function(U){U.w7&&U.ya({adf:"0_"+((new Date).getTime()/1E3-U.Dq)+"_isTimeout_"+U.Ca})}; NK5=function(U,O,M){if(U.TY.length)for(var S=g.D(U.TY),p=S.next(),h={};!p.done;h={lA:void 0},p=S.next()){h.lA=p.value;p=h.lA.startSecs*1E3;var J=h.lA.PJ*1E3+p;if(O>p&&Op&&M0&&S>O*1E3+U.o$c)&&(S=wty(U,M))){O=!1;M=void 0;S=g.D(S.segments);for(p=S.next();!p.done;p=S.next()){p=p.value;if(O){M=p;break}uF(p)===U.M0&&(O=!0)}S=void 0;if(M)S=uF(M);else if(O){var h;S=(h=U.timeline.U)==null?void 0:uF(h)}if(S)U.finishSegmentByCpn(U.M0,S,2,void 0);else{var J;U.api.al("ssap",{mfnc:1,mfncc:(J=U.timeline.U)== null?void 0:uF(J)})}}}}; VCe=function(U){return U.api.T("html5_force_ssap_gapful_switch")||U.api.T("html5_ssap_enable_legacy_browser_logic")&&!Ne()}; gme=function(U,O,M,S){U.s0.set(O,S);Ome(U,O,M);skw(U,M)}; iz=function(U,O){U=aW(U.timeline,O);return(U==null?0:U.length)?U[0].dK():0}; ZX=function(U,O){var M=M===void 0?!1:M;var S=U.timeline.U;if(!S)return{clipId:"",U9:0};var p=MqJ(U,O,M);if(p)return{clipId:uF(p)||"",U9:p.dK()};U.api.al("mci",{cs:uF(S),mt:O,tl:sx(U),invt:!!M});return{clipId:"",U9:0}}; BH=function(U){var O=U.timeline.U;if(!O)return 0;U=0;if(O.U.size===0)return(O.Hi()-O.dK())/1E3;O=O.U.values();O=g.D(O);for(var M=O.next();!M.done;M=O.next()){M=g.D(M.value);for(var S=M.next();!S.done;S=M.next())S=S.value,U+=(S.Hi()-S.dK())/1E3}return U}; p0y=function(U,O){return(U=SmJ(U,O*1E3))?U.dK():0}; hew=function(U,O){var M=aW(U.timeline,O);O=0;if(M==null?0:M.length)for(U=g.D(M),M=U.next();!M.done;M=U.next())M=M.value,O+=(M.Hi()-M.dK())/1E3;else return BH(U);return O}; SmJ=function(U,O){if(U=aW(U.timeline,U.M0)){U=g.D(U);for(var M=U.next();!M.done;M=U.next())if(M=M.value,M.dK()<=O&&M.Hi()>=O)return M}}; J$m=function(U){var O=U.playback.getVideoData();U.M0&&(U=U.eS.get(U.M0))&&(O=U);return O}; wty=function(U,O,M){M=M===void 0?!1:M;var S=U.timeline.U;if(S){S=S.U;var p=Array.from(S.keys());g.lH(p);O=g.ft(p,O);O=S.get(p[O<0?(O+2)*-1:O]);if(!M&&O){M=g.D(O);for(O=M.next();!O.done;O=M.next())if(O=O.value,O.dK()!==O.Hi())return O;return U.timeline}return O&&O.length>0?O[O.length-1]:void 0}}; MqJ=function(U,O,M){M=M===void 0?!1:M;var S=wty(U,O,M);if(S){if(U=S.segments,U.length){for(var p=g.D(U),h=p.next();!h.done;h=p.next())if(h=h.value,h.dK()<=O&&h.Hi()>O)return h;if(M&&S.dK()===S.Hi())return U[0]}}else U.api.al("ssap",{ctnf:1})}; EIw=function(U,O){var M;if(U.Zo)for(M=U.h1.shift();M&&M!==U.Zo;)M=U.h1.shift();else M=U.h1.shift();if(M){if(U.p9.has(M))y$i(U,M);else if(O===3||O===4)U.Rz.stop(),U.api.playVideo(1,U.api.T("html5_ssap_keep_media_on_finish_segment"));U.s0.set(U.M0,O);U.api.al("ssap",{onvftn:1});skw(U,M);return!1}U.api.al("ssap",{onvftv:1});U.Rz.stop();return!0}; y$i=function(U,O){O=aW(U.timeline,O);if(O==null?0:O.length)U.api.pauseVideo(),U.Rz.start(O[0].uo)}; skw=function(U,O){var M=U.playback.getVideoData(),S=M.clientPlaybackNonce;U.XQ&&(U.events.bH(U.XQ),U.XQ=null,U.playback.vW());var p=U.M0,h=!1;if(p==="")p=S,h=!0;else if(p===void 0){var J=U.playback.CV();J&&U.timeline.V.has(J)&&(p=J);U.api.al("ssap",{mcc:p+";"+O});U.playback.iH(new Ii("ssap.timelineerror",{e:"missing_current_cpn",pcpn:p,ccpn:O}))}if(p===O)h&&M&&fey(U,M,h);else{J=U.s0.get(p);if(!h&&(!J||J!==3&&J!==5&&J!==6&&J!==7)){var f=U.api.S_(U.M0);U.api.al("ssap",{nmec:f,cpc:U.M0,ec:O})}J&&J!== 2||U.QF();U.M0=O;U.QF();O=aW(U.timeline,U.M0);if(O==null?0:O.length){O=O[0];f=O.getType();p!==S&&(U.U8=p,M=U.eS.get(p));J?U.s0.delete(p):J=h?1:2;U.api.T("html5_ssap_pacf_qoe_ctmp")&&f===2&&!O.V&&(U.XQ=U.events.j(U.api,"onVideoProgress",U.Jll));U.api.al("ssapt",{ostro:J,pcpn:p,ccpn:U.M0});a:{var F=U.M0;if(!U.I2.has(F))for(var l=g.D(U.I2),G=l.next();!G.done;G=l.next()){var T=g.D(G.value);G=T.next().value;T=T.next().value;if(T.getId().includes(F)){F=G;break a}}}l=U.api.J().T("html5_ssap_insert_su_before_nonvideo")&& F!==U.M0;U.playback.nD(F,l);F=Math.max(0,gY(U,p));l=U.playback.getCurrentTime();l=Math.max(0,l-iz(U,U.M0)/1E3);G=O.getVideoData();T=J===3||J===5||J===6||J===7;if(U.api.T("html5_ssap_skip_illegal_seeking")){var e=U.playback.getPlayerState();e=!g.a(e,8)&&g.a(e,16);T=T||e;e&&U.api.al("ssap",{iis:1})}U.playback.FY(p,U.M0,F,l,!1,T,U.playback.getPlayerState(),!0);U.api.al("ssapt",{ostri:J,pcpn:p,ccpn:U.M0});var H;U.playback.Hh(p,U.M0,S,G,(H=U.WW.get(p))!=null?H:(0,g.nM)(),M);U.WW.delete(p);h?M=void 0:M|| U.api.al("ssap",{pvdm:p+";"+U.M0,pvdmc:U.M0===S?"1":"0"});U.api.al("ssap",{tpac:p+";"+U.M0,tpcc:S,tpv:(G==null?0:G.cT())?"1":"0"},!1,1);U.api.J().T("html5_ssap_cleanup_player_switch_ad_player")&&U.api.pj();U.api.publish("videodatachange","newdata",G,f,M,J);O.V||U.playback.getVideoData().publish("dataupdated");U.p9.delete(p);U.Zo="";G&&f===1?fey(U,G):U.playback.al("ssap",{nis:U.M0});f===2?U.GA++:U.GA=0}}}; fey=function(U,O,M){M=M===void 0?!1:M;if(O.startSeconds&&U.KD){var S=O.startSeconds;O=aW(U.timeline,O.clientPlaybackNonce);if(O==null?0:O.length)S+=O[0].dK()/1E3,U.api.T("htm5_ssap_ignore_initial_seek_if_too_big")&&S>=U.QA()||(U.playback.seekTo(S,{lf:!0}),U.KD=!1,U.playback.al("ssap",{is:U.M0,co:M?"1":"0",tse:S.toFixed()}))}}; Ome=function(U,O,M){O=aW(U.timeline,O);if(O!=null&&O.length&&(O=wty(U,O[0].dK()))){O=g.D(O.segments);for(var S=O.next();!S.done;S=O.next()){S=S.value;if(uF(S)===M)break;if(S=uF(S)){var p=U.I2.get(S);p&&U.playback.removeCueRange(p);U.I2.delete(S)}}}}; uj=function(U){return U.playback.getVideoData().clientPlaybackNonce}; Vxy=function(U,O){if(U.zE&&U.M0!==O)return!1;if(U.m7)return!0;if(O=U.I2.get(O))if(O=O.getId().split(","),O.length>1)for(var M=0;Mh)return Mh(U,"enterAfterReturn enterTimeMs="+p+" is greater than parentReturnTimeMs="+h.toFixed(3),J,f),"";var l=F.GZ()*1E3;if(pl)return F="returnAfterDuration parentReturnTimeMs="+h.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+ F.je(),Mh(U,F,J,f),"";l=null;for(var G=g.D(U.V),T=G.next();!T.done;T=G.next()){T=T.value;if(p>=T.q0&&pT.q0)return Mh(U,"overlappingReturn",J,f),"";if(h===T.q0)return Mh(U,"outOfOrder",J,f),"";p===T.vT&&(l=T)}J="cs_childplayback_"+G7m++;f={Tk:St(S,!0),dP:Infinity,target:null};var e={xI:J,playerVars:O,playerType:M,durationMs:S,q0:p,vT:h,Fj:f};U.V=U.V.concat(e).sort(function(W,v){return W.q0-v.q0}); l?$xe(U,l,{Tk:St(l.durationMs,!0),dP:l.Fj.dP,target:e}):(O={Tk:St(p,!1),dP:p,target:e},U.G.set(O.Tk,O),F.addCueRange(O.Tk));O=!0;if(U.U===U.app.jc()&&(F=F.getCurrentTime()*1E3,F>=e.q0&&FO)break;if(h>O)return{cD:S,Ef:O-p};M=h-S.vT/1E3}return{cD:null,Ef:O-M}}; F5U=function(U,O,M){M=M===void 0?{}:M;var S=U.C||U.app.jc().getPlayerState();Jn(U,!0);O=isFinite(O)?O:U.U.P7();var p=c$7(U,O);O=p.Ef;var h=(p=p.cD)&&!pw(U,p)||!p&&U.U!==U.app.jc(),J=O*1E3;J=U.B&&U.B.start<=J&&J<=U.B.end;!h&&J||hn(U);p?T$y(U,p,O,M,S):Dx4(U,O,M,S)}; Dx4=function(U,O,M,S){var p=U.U;p!==U.app.jc()&&U.app.Pu();p.seekTo(O,Object.assign({},{uH:"application_timelinemanager"},M));dx1(U,S)}; T$y=function(U,O,M,S,p){var h=pw(U,O);if(!h){O.playerVars.prefer_gapless=!0;U.gG.T("html5_enable_ssap_entity_id")&&(O.playerVars.cached_load=!0);var J=new g.oC(U.gG,O.playerVars);J.xI=O.xI;U.api.Ls(J,O.playerType)}J=U.app.jc();h||J.addCueRange(O.Fj.Tk);J.seekTo(M,Object.assign({},{uH:"application_timelinemanager"},S));dx1(U,p)}; dx1=function(U,O){U=U.app.jc();var M=U.getPlayerState();O.isOrWillBePlaying()&&!M.isOrWillBePlaying()?U.playVideo():O.isPaused()&&!M.isPaused()&&U.pauseVideo()}; Jn=function(U,O){U.yP=NaN;U.Z=null;U.Y.stop();U.X&&O&&U.X.Tt();U.C=null;U.X=null}; pw=function(U,O){U=U.app.jc();return!!U&&U.getVideoData().xI===O.xI}; W5q=function(U){var O=U.V.find(function(p){return pw(U,p)}); if(O){var M=U.app.jc();hn(U);var S=new g.fD(8);O=ze5(U,O)/1E3;Dx4(U,O,{},S);M.al("forceParentTransition",{childPlayback:1});U.U.al("forceParentTransition",{parentPlayback:1})}}; vmU=function(U,O,M){O=O===void 0?-1:O;M=M===void 0?Infinity:M;for(var S=O,p=M,h=g.D(U.G),J=h.next();!J.done;J=h.next()){var f=g.D(J.value);J=f.next().value;f=f.next().value;f.dP>=S&&f.target&&f.target.vT<=p&&(U.U.removeCueRange(J),U.G.delete(J))}S=O;p=M;h=[];J=g.D(U.V);for(f=J.next();!f.done;f=J.next())if(f=f.value,f.q0>=S&&f.vT<=p){var F=U;F.D===f&&hn(F);pw(F,f)&&F.app.Pu()}else h.push(f);U.V=h;S=c$7(U,O/1E3);O=S.cD;S=S.Ef;O&&(S*=1E3,N$w(U,O,S,O.vT===O.q0+O.durationMs?O.q0+S:O.vT));(O=c$7(U,M/1E3).cD)&& Mh(U,"Invalid clearEndTimeMs="+M+" that falls during playback={timelinePlaybackId="+(O.xI+" video_id="+O.playerVars.video_id+" durationMs="+O.durationMs+" enterTimeMs="+O.q0+" parentReturnTimeMs="+O.vT+"}.Child playbacks can only have duration updated not their start."))}; N$w=function(U,O,M,S){O.durationMs=M;O.vT=S;S={Tk:St(M,!0),dP:M,target:null};$xe(U,O,S);pw(U,O)&&U.app.jc().getCurrentTime()*1E3>M&&(O=ze5(U,O)/1E3,M=U.app.jc().getPlayerState(),Dx4(U,O,{},M))}; Mh=function(U,O,M,S){U.U.al("timelineerror",{e:O,cpn:M?M:void 0,videoId:S?S:void 0})}; xxi=function(U){U&&U!=="web"&&B$5.includes(U)}; FG=function(U,O){g.C.call(this);var M=this;this.data=[];this.B=U||NaN;this.V=O||null;this.U=new g.UM(function(){yQ(M);fw(M)}); g.X(this,this.U)}; rPe=function(U){yQ(U);return U.data.map(function(O){return O.value})}; yQ=function(U){var O=(0,g.nM)();U.data.forEach(function(M){M.expireh?{width:O.width,height:O.width/p,aspectRatio:p}:pp?U.width=U.height*M:MF;if(Ti(U)){var l=A$1(U);var G=isNaN(l)||g.Mp||FP&&g.bh||F;gI&&!g.z$(601)?l=p.aspectRatio:G=G||h.controlsType==="3";G?F?(G=h.T("place_shrunken_video_on_left_of_player")?16:U.getPlayerSize().width-O.width-16,l=Math.max((U.getPlayerSize().height-O.height)/2,0),G=new g.l4(G,l,O.width, O.height),U.Uj.style.setProperty("border-radius","12px")):G=new g.l4(0,0,O.width,O.height):(M=p.aspectRatio/l,G=new g.l4((O.width-p.width/M)/2,(O.height-p.height)/2,p.width/M,p.height),M===1&&g.bh&&(l=G.width-O.height*l,l>0&&(G.width+=l,G.height+=l)));g.ea(U.element,"ytp-fit-cover-video",Math.max(G.width-p.width,G.height-p.height)<1);if(f||U.Oo)U.Uj.style.display="";U.KA=!0}else{G=-O.height;gI?G*=window.devicePixelRatio:g.pJ&&(G-=window.screen.height);G=new g.l4(0,G,O.width,O.height);if(f||U.Oo)U.Uj.style.display= "none";U.KA=!1}GC(U.iQ,G)||(U.iQ=G,g.ik(h)?(U.Uj.style.setProperty("width",G.width+"px","important"),U.Uj.style.setProperty("height",G.height+"px","important")):g.b4(U.Uj,G.getSize()),S=new g.xv(G.left,G.top),g.N0(U.Uj,Math.round(S.x),Math.round(S.y)),S=!0);O=new g.l4((O.width-p.width)/2,(O.height-p.height)/2,p.width,p.height);GC(U.lc,O)||(U.lc=O,S=!0);g.j3(U.Uj,"transform",M===1?"":"scaleX("+M+")");J&&F!==U.Lh&&(F&&(U.Uj.addEventListener(cL,U.Qd),U.Uj.addEventListener("transitioncancel",U.Qd),U.Uj.classList.add(g.oy.VIDEO_CONTAINER_TRANSITIONING)), U.Lh=F,U.app.md.publish("playerUnderlayVisibilityChange",U.Lh?"transitioning":"hidden"));return S}; Qky=function(){this.csn=g.n5();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.U=new Set;this.V=new Set}; C7J=function(U){if(U.csn!==g.n5())if(U.csn==="UNDEFINED_CSN")U.csn=g.n5();else{var O=g.n5(),M=g.PG();if(O&&M){U.csn=O;for(var S=g.D(U.elements),p=S.next();!p.done;p=S.next())(p=p.value.visualElement)&&p.isClientVe()&&O&&M&&(g.R0("combine_ve_grafts")?Iy(mM(),p,M):g.p4(g.MH)(void 0,O,M,p))}if(O)for(U=g.D(U.U),M=U.next();!M.done;M=U.next())(M=M.value.visualElement)&&M.isClientVe()&&g.lZ(O,M)}}; g.jt=function(U,O,M,S){g.C.call(this);var p=this;this.logger=new g.Gs("App");this.Fu=this.IF=!1;this.Ju={};this.m$=[];this.iD=!1;this.UB=null;this.intentionalPlayback=!1;this.qF=!0;this.MM=!1;this.QG=this.DP=null;this.Ph=!0;this.mediaElement=this.bM=null;this.wJ=NaN;this.Lu=!1;this.EX=this.dM=this.vV=this.JR=this.screenLayer=this.playlist=null;this.Fx=[];this.HS=0;this.BB={rk:function(){return p.Ej}, ZD:function(){return p.vV}, O_:function(J){p.vV=J}, fv:function(J,f){p.vV&&p.vV.fv(J,f)}}; this.logger.debug("constructor begin");this.config=aVJ(O||{});this.webPlayerContextConfig=M;pTe();O=this.config.args||{};this.gG=new Vh(O,M,M?M.canaryState:this.config.assets.player_canary_state,S,this);g.X(this,this.gG);$71(this.gG);S=jT4(this.gG);this.gG.PV()&&this.Fx.push({key:"h5vcc",value:S});this.gG.experiments.F0("jspb_serialize_with_worker")&&u2g();this.gG.experiments.F0("gzip_gel_with_worker")&&m5i();this.gG.V&&!X07&&(window.addEventListener(Y0?"touchstart":"click",r25,{capture:!0,passive:!0}), X07=!0);this.T("html5_onesie")&&(this.O5=new fg(this.gG),g.X(this,this.O5));this.CD=lC(Qh(this.gG)&&!0,O.enablesizebutton);this.bZ=lC(!1,O.player_wide);this.visibility=new ylU;g.X(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.FN(lC(!1,O.player_wide));this.IF=lC(!1,O.external_list);this.events=new g.Zj(this);g.X(this,this.events);this.T("start_client_gcf")&&(qY(rP(),{Kn:HW,XP:sVg()}),this.vg=rP().resolve(HW),S$e(this.vg));this.uTZ=new D0;g.X(this,this.uTZ);this.tX=new Qky;S= new de;this.md=new g.Pe(this,S);g.X(this,this.md);this.template=new Ymw(this);g.X(this,this.template);this.appState=1;this.EH=uq7(this);g.X(this,S);S={};this.Cv=(S.internalvideodatachange=this.oZ0,S.playbackready=this.wBg,S.playbackstarted=this.aqy,S.statechange=this.ysg,S);this.Ml=new yR(this.md);this.yM=qmi(this);S=this.T("html5_load_wasm");O=this.T("html5_allow_asmjs");if(S&&imW||O)this.gG.RA=mhw(this.yM,O),dx(D1(this.gG.RA,function(J){p.gG.Mm=J;var f;(f=p.jc())==null||f.al("wasm",{a:J.c5})}), function(J){g.rz(J); J="message"in J&&J.message||J.toString()||"";var f;(f=p.jc())==null||f.al("wasm",{e:J})}); else if(S&&!imW){var h;(h=this.jc())==null||h.al("wasm",{e:"wasm unavailable"})}this.d7=new Xm7(this.gG,this.yM);this.md.publish("csiinitialized");h=10;g.PF(this.gG)&&(h=3);M3(this.gG)&&(h=g.DF(this.gG.experiments,"tvhtml5_unplugged_preload_cache_size"));h=new FG(h,function(J){J!==p.yr(J.getPlayerType())&&J.dispose()}); g.X(this,h);this.Ej=new g.Co(this.gG,h);h=Zme(this);this.Ej.u9(h);K5m(this);h={};this.SK=(h.airplayactivechange=this.vIY,h.airplayavailabilitychange=this.BH0,h.beginseeking=this.nIc,h.sabrCaptionsDataLoaded=this.GkL,h.endseeking=this.QWn,h.internalAbandon=this.t90,h.internalaudioformatchange=this.XTy,h.internalvideodatachange=this.mmc,h.internalvideoformatchange=this.PVA,h.liveviewshift=this.lhG,h.playbackstalledatstart=this.qXd,h.progresssync=this.SXA,h.onAbnormalityDetected=this.V9Z,h.onSnackbarMessage= this.Dml,h.onLoadProgress=this.uh0,h.SEEK_COMPLETE=this.Ihd,h.SEEK_TO=this.THQ,h.onVideoProgress=this.Hec,h.onLoadedMetadata=this.fhA,h.onAutoplayBlocked=this.M9Y,h.onPlaybackPauseAtStart=this.dm0,h.playbackready=this.OeL,h.statechange=this.Lp,h.newelementrequired=this.mQ,h.heartbeatparams=this.ARn,h.videoelementevent=this.Lic,h.drmoutputrestricted=this.sWY,h.signatureexpired=this.kkA,h.nonfatalerror=this.beG,h.reloadplayer=this.CVA,h);this.hv=new g.Zj(this);g.X(this,this.hv);this.i5=new Gi;g.X(this, this.i5);this.jb=this.j8=-1;this.BW=new g.UM(this.template.resize,16,this.template);g.X(this,this.BW);this.HB=new le4(this.md,this.gG,this.Va(),this);this.oG=new Xx(this.gG);this.Vq=new Pm(this);g.X(this,this.Vq);this.Mt=new Yx(this);g.X(this,this.Mt);xxi(this.gG.U.c);this.events.j(this.md,g.$Y("appapi"),this.x4P);this.events.j(this.md,g.TO("appapi"),this.gZG);this.events.j(this.md,g.$Y("appprogressboundary"),this.exg);this.events.j(this.md,g.TO("applooprange"),this.Q_);this.events.j(this.md,"presentingplayerstatechange", this.OH);this.events.j(this.md,"resize",this.aDc);this.template.AZ(gA(document,U));this.events.j(this.md,"offlineslatestatechange",this.wTg);this.events.j(this.md,"sabrCaptionsTrackChanged",this.n5P);this.events.j(this.md,"sabrCaptionsBufferedRangesUpdated",this.M5L);this.yM.S.J().mW&&NV(this.yM,"offline");this.gG.NL&&g.$9("ux",g.Rs);U=g.DF(this.gG.experiments,"html5_defer_fetch_att_ms");this.gS=new g.UM(this.SpP,U,this);g.X(this,this.gS);this.eY().cT()&&(g.rr()&&this.eY().BA.push("remote"),r$5(this)); this.d7.tick("fs");aee(this);this.gG.NL&&NV(this.yM,"ux",!0);g.Pn(this.yM.S.J())&&NV(this.yM,"embed");this.T("web_player_sentinel_is_uniplayer")||g.rz(new g.sT("Player experiment flags missing","web_player_sentinel_is_uniplayer"));U=this.T("web_player_sentinel_yt_experiments_sync");h=g.R0("web_player_sentinel_yt_experiments_sync");U!==h&&g.rz(new g.sT("b/195699950",{yt:U,player:h}));M||g.rz(new g.sT("b/179532961"));this.Mp=Em5(this);if(M=g.DF(this.gG.experiments,"html5_block_pip_safari_delay"))this.Fy= new g.UM(this.l0,M,this),g.X(this,this.Fy);ix=this.gG.Dq;M=g.DF(this.gG.experiments,"html5_performance_impact_profiling_timer_ms");M>0&&(this.XD=new g.un(M),g.X(this,this.XD),this.events.j(this.XD,"tick",function(){p.MV&&L54.Ij("apit",p.MV);p.MV=L54.y6()})); this.md.publish("applicationInitialized");this.logger.debug("constructor end")}; Em5=function(U){function O(M){M.stack&&M.stack.indexOf("player")!==-1&&(U.jc()||U.Va()).wT(M)} aR.subscribe("handleError",O);OI.push(O);return function(){aR.unsubscribe("handleError",O);var M=OI.indexOf(O);M!==-1&&OI.splice(M,1)}}; Zme=function(U){var O=new g.oC(U.gG,U.config.args);U.md.publish("initialvideodatacreated",O);return et(U,1,O,!1)}; K5m=function(U){var O=U.Va();O.setPlaybackRate(U.gG.X?1:VqJ(U,Number(g.ZO("yt-player-playback-rate"))||1));O.b7(U.Cv,U);O.N8()}; qmi=function(U){var O="",M=Ree(U);M.indexOf("//")===0&&(M=U.gG.protocol+":"+M);var S=M.lastIndexOf("/base.js");S!==-1&&(O=M.substring(0,S+1));if(M=Error().stack)if(M=M.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))M=M[1],M.includes(O)||g.rz(Error("Player module URL mismatch: "+(M+" vs "+O+".")));O=new TYU(U.md,O);omJ(U,O);return O}; omJ=function(U,O){var M={};M=(M.destroyed=function(){U.onApiChange()},M); O.B=M}; uq7=function(U){if(U.gG.storeUserVolume){U=g.ZO("yt-player-volume")||{};var O=U.volume;U={volume:isNaN(O)?100:g.Nm(Math.floor(O),0,100),muted:!!U.muted}}else U={volume:100,muted:U.gG.mute};return U}; Hw=function(U){U.mediaElement=U.gG.deviceIsAudioOnly?new g.V8(g.GU("AUDIO")):tY.pop()||new g.V8(g.GU("VIDEO"));g.X(U,U.mediaElement);var O=U.jc();O&&O.setMediaElement(U.mediaElement);try{U.gG.cB?(U.dM&&U.events.bH(U.dM),U.dM=U.events.j(U.mediaElement,"volumechange",U.FjP)):(U.mediaElement.jB(U.EH.muted),U.mediaElement.setVolume(U.EH.volume/100))}catch(p){U.Bx("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(p&&typeof p==="object"&&"message"in p&&typeof p.message==="string"&&p.message.replace(/[;:,]/g, "_")));return}g.CE(U.hv);k7W(U);O=U.template;var M=U.mediaElement.tG();O.Uj=M;O.Hv=!1;O.Uj.parentNode||ed(O.nj,O.Uj,0);O.iQ=new g.l4(0,0,0,0);nme(O);$p(O);M=O.Uj;g.l3(M,"video-stream");g.l3(M,g.oy.MAIN_VIDEO);var S=O.app.J();S.gs&&M.setAttribute("data-no-fullscreen","true");S.T("html5_local_playsinline")?"playsInline"in QN()&&(M.playsInline=!0):S.L9&&(M.setAttribute("webkit-playsinline",""),M.setAttribute("playsinline",""));S.NT&&O.Uj&&O.j(M,"click",M.play,M);try{U.mediaElement.activate()}catch(p){U.Bx("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(p&&typeof p==="object"&&"message"in p&&typeof p.message==="string"&&p.message.replace(/[;:,]/g,"_")))}}; Udw=function(U){if(!w0y(U)){var O=U.Va().tR();O&&(O=O.Lo(),O instanceof Promise&&O.catch(function(){})); zi(U,HI(U.getPlayerStateObject()))}}; k7W=function(U){var O=U.mediaElement;qX()?U.hv.j(O,"webkitpresentationmodechanged",U.QOg):window.document.pictureInPictureEnabled&&(U.hv.j(O,"enterpictureinpicture",function(){U.fF(!0)}),U.hv.j(O,"leavepictureinpicture",function(){U.fF(!1)})); SQ&&(U.hv.j(O,"webkitbeginfullscreen",function(){U.n0(3)}),U.hv.j(O,"webkitendfullscreen",function(){U.n0(0)}))}; OYi=function(U,O){var M=O.getPlayerType(),S=U.Ej.B[M]||null;O!==U.Va()&&O!==S&&(S==null||S.dispose(),U.Ej.B[M]=O)}; sMe=function(U,O){O=O===void 0?!0:O;U.logger.debug("start clear presenting player");var M;if(M=U.EX){M=U.EX;var S=U.mediaElement;M=!!S&&S===M.mediaElement}M&&(U.Cf(),Hw(U));if(M=U.jc())M.Cf(!O),M.i_(U.SK,U),M.getPlayerType()!==1&&M.dispose();O=U.Ej;O.V=O.U;U.logger.debug("finish clear presenting player")}; g.gzJ=function(U,O,M,S){var p=U.d7;O===2&&(p=new Xm7(U.gG));return new g.hm(U.gG,O,p,U.template,function(h,J,f){U.md.publish(h,J,f)},function(){return U.md.getVisibilityState()},U.visibility,U,M,S)}; et=function(U,O,M,S,p){U=g.gzJ(U,O,M,p);U=new g.VA(U);S&&U.N8();return U}; cw=function(U,O){return U.gD(O)?U.Va():O}; Da=function(U,O){var M=U.jc(),S=U.Va();return M&&O===S&&U.gD(O)&&U.gD(M)?M:O}; pze=function(U){U.logger.debug("start application playback");if(U.Va().getPlayerState().isError())U.logger.debug("start application playback done, player in error state");else{var O=dY(U);U.eY().isLoaded();O&&U.tB(6);MU1(U);vpi(U.yM)||S5e(U)}}; S5e=function(U){if(!dY(U)){var O=Bx(U.yM);O&&!O.created&&jj5(U.yM)&&(U.logger.debug("reload ad module"),O.create())}}; MU1=function(U){U.logger.debug("start presenter playback");var O=U.getVideoData(),M=U.yM;vpi(M)||M.VZ();!imW&&M.S.T("html5_allow_asmjs")&&Y1m(M);NV(M,"embed");NV(M,"kids");NV(M,"remote");NV(M,"miniplayer");NV(M,"offline");NV(M,"unplugged");NV(M,"ypc",!1,!0);NV(M,"ypc_clickwrap",!1,!0);NV(M,"yto",!1,!0);NV(M,"webgl",!1,!0);BY1(M)||(NV(M,"captions",!0),NV(M,"endscreen"),M.X7()||M.uJ(),NV(M,"creatorendscreen",!0));M.cn();U.md.publish("videoready",O)}; Ww=function(U){U=U.eY();U.cT();return rd(U)}; aee=function(U){U.logger.debug("start prepare initial playback");U.O2();var O=U.config.args;Hw(U);U.events.j(window,"resize",U.ylZ);var M=U.eY();U.md.Te("onVolumeChange",U.EH);if(O&&KG7(O)){var S=U3(U.gG);S&&!U.IF&&(O.fetch=0);var p=g.Pn(U.gG);p&&!U.IF&&(O.fetch=0);Nh(U,O);g.Pn(U.gG)&&U.d7.tick("ep_pr_s");if(!S||U.IF)if(p&&!U.IF)htU(U);else if(!M.cT())U.playlist.onReady(function(){vw(U)})}U.vR(U.Va(),!1,!0); g.a(U.Va().getPlayerState(),128)||(O=GQy(!U.gG.deviceIsAudioOnly),O==="fmt.noneavailable"?U.Bx("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):O==="html5.missingapi"?U.Bx(O,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):M&&M.cT()&&Ww(U)&&(U.gG.FT||U.gG.QO)?Bw(U):M.OP?U.md.mutedAutoplay({durationMode:M.mutedAutoplayDurationMode}):g.ZO("yt-player-playback-on-reload")?(g.HX("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!U.gG.BA}),g.iC("yt-player-playback-on-reload",!1), Bw(U)):JI(U.gG)||Jy1(U),g.gG(U.gG)||Mn(U.gG)==="MWEB"?(g.hx(g.yF(),function(){xp(U)}),g.hx(g.yF(),function(){TPm()})):(xp(U),TPm()),U.logger.debug("finish prepare initial playback"))}; xp=function(U){if(!U.T("use_rta_for_player"))if(U.T("fetch_att_independently"))g.OM(U.gS);else{var O=U.getVideoData().botguardData;O&&g.Z1(O,U.gG,U.getVideoData().Nd||"")}}; Jy1=function(U){U.logger.debug("start initialize to CUED mode");U.md.publish("initializingmode");U.tB(2);U.T("embeds_web_enable_defer_loading_remote_js")&&g.SZ(U.gG)?g.hx(g.yF(),function(){NV(U.yM,"remote")}):NV(U.yM,"remote"); NV(U.yM,"miniplayer");U.logger.debug("initialized to CUED mode")}; Bw=function(U){U.logger.debug("start initialize application playback");var O=U.Va();if(g.a(O.getPlayerState(),128))return!1;var M=O.getVideoData();Ww(U)&&U.gG.QO&&(tY.length&&U.Fu?(bp(U,{muted:!1,volume:U.EH.volume},!1),Rj(U,!1)):tY.length||U.EH.muted||(bp(U,{muted:!0,volume:U.EH.volume},!1),Rj(U,!0)));Ww(U)&&g.Pn(U.gG)&&M.mutedAutoplay&&(bp(U,{muted:!0,volume:U.EH.volume},!1),Rj(U,!0));M.Tx&&bp(U,{muted:!0,volume:U.EH.volume},!1);yy5(U,1,M,!1);U.md.publish("initializingmode");U.vR(U.Va());U.tB(3); var S;if(!(S=!U.gG.DO)){if(S=U.EX){S=U.EX;var p=U.mediaElement;S=!!p&&p===S.mediaElement}S=S&&U.iD}S&&(U.Cf(),Hw(U),O.setMediaElement(U.mediaElement));O.wM();if(g.a(O.getPlayerState(),128))return!1;M.b6||zi(U,3);return U.iD=!0}; dY=function(U){U=Cd(U.yM);return!!U&&U.loaded}; fym=function(U,O){if(!U.bM)return!1;var M=U.bM.startTimeMs*.001-1,S=U.bM.endTimeMs*.001;U.bM.type==="repeatChapter"&&S--;return Math.abs(O-M)<=1E-6||Math.abs(O-S)<=1E-6||O>=M&&O<=S}; lye=function(U){var O=U.jc();O&&FX(O.getVideoData())&&!O.Sk()&&(O=Fgy(U)*1E3-U.getVideoData().Du,U.T("html5_gapless_new_slr")?(U=U.Mt,tn(U.app,"gaplessshortslooprange"),O=new g.ll(0,O,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(U=U.app.jc())&&U.addCueRange(O)):U.setLoopRange({startTimeMs:0,endTimeMs:O,type:"shortsLoop"}))}; Gpy=function(U){var O=U.Va();if(!(g.a(O.getPlayerState(),64)&&U.eY().isLivePlayback&&U.bM.startTimeMs<5E3)){if(U.bM.type==="repeatChapter"){var M,S=(M=IDe(U.nE()))==null?void 0:M.Pi(),p;M=(p=U.getVideoData())==null?void 0:p.RA;S instanceof g.qV&&M&&(p=M[h9(M,U.bM.startTimeMs)],S.renderChapterSeekingAnimation(0,p.title));isNaN(Number(U.bM.loopCount))?U.bM.loopCount=0:U.bM.loopCount++;U.bM.loopCount===1&&U.md.ZQ("innertubeCommand",U.getVideoData().Id)}S={uH:"application_loopRangeStart"};if(U.bM.type=== "clips"||U.bM.type==="shortsLoop")S.seekSource=58;O.seekTo(U.bM.startTimeMs*.001,S)}}; VqJ=function(U,O){var M=U.md.getAvailablePlaybackRates();O=Number(O.toFixed(2));U=M[0];M=M[M.length-1];O<=U?O=U:O>=M?O=M:(U=Math.floor(O*100+.001)%5,O=U===0?O:Math.floor((O-U*.01)*100+.001)/100);return O}; Fgy=function(U,O){O=U.yr(O);if(!O)return U.Ej.U.rB();O=cw(U,O);return Yp(U,O.rB(),O)}; Yp=function(U,O,M){if(U.gD(M)){M=M.getVideoData();if(mI(U))M=O;else{U=U.HB;for(var S=g.D(U.V),p=S.next();!p.done;p=S.next())if(p=p.value,M.xI===p.xI){O+=p.q0/1E3;break}S=O;U=g.D(U.V);for(p=U.next();!p.done;p=U.next()){p=p.value;if(M.xI===p.xI)break;var h=p.q0/1E3;if(h1&&(p=!1);if(!U.Lu||p!==O){M=M.lock(p?"portrait":"landscape");if(M!=null)M["catch"](function(){}); U.Lu=!0}}else U.Lu&&(U.Lu=!1,M.unlock())}; Cw=function(U,O,M){U.md.publish(O,M);var S=g.PF(U.gG)||g.ik(U.gG)||g.a8(U.gG);if(M&&S){switch(O){case "cuerangemarkersupdated":var p="onCueRangeMarkersUpdated";break;case "cuerangesadded":p="onCueRangesAdded";break;case "cuerangesremoved":p="onCueRangesRemoved"}p&&U.md.ZQ(p,M.map(function(h){return{getId:function(){return this.id}, end:h.end,id:h.getId(),namespace:h.namespace==="ad"?"ad":"",start:h.start,style:h.style,visible:h.visible}}))}}; XG=function(U,O,M,S,p,h){M=M===void 0?!0:M;var J=U.yr(p);J&&(J.getPlayerType()===2&&!U.gD(J)||g.I6(J.getVideoData()))||(U.getPresentingPlayerType()===3?U.Ej.ZF.seekTo(O,{Vx:!M,gZ:S,uH:"application",seekSource:h}):(J&&J===U.Va()&&U.bM&&!fym(U,O)&&U.setLoopRange(null),U.seekTo(O,M,S,p,h)))}; tUe=function(U,O,M,S){M&&(U.Cf(),Hw(U));M=U.jc();M.zN(O);var p=U.getVideoData(),h={};h.video_id=p.videoId;h.adformat=p.adFormat;p.isLivePlayback||(h.start=M.getCurrentTime(),h.resume="1");p.isLivePlayback&&zS(p)&&g.Au(U.gG)&&(h.live_utc_start=M.hR(),h.resume="1");p.ol&&(h.vvt=p.ol);p.C&&(h.vss_credentials_token=p.C,h.vss_credentials_token_type=p.SS);p.oauthToken&&(h.oauth_token=p.oauthToken);p.DO&&(h.force_gvi=p.DO);h.autoplay=1;h.reload_count=p.F9+1;h.reload_reason=O;p.M6&&(h.unplugged_partner_opt_out= p.M6);p.jH&&(h.ypc_is_premiere_trailer=p.jH);p.playerParams&&(h.player_params=p.playerParams);U.loadVideoByPlayerVars(h,void 0,!0,void 0,void 0,S);O==="signature"&&U.JR&&S5e(U)}; Y5g=function(U,O){U.eY().autonavState=O;g.iC("yt-player-autonavstate",O);U.md.publish("autonavchange",O)}; mdw=function(U){var O=U.getVideoData().Mh,M=U.gG.w7,S=U.isInline()&&!U.getVideoData().Ad,p=U.mediaElement;O||M||S?p.Sb():(p.TM(),bp(U,U.EH))}; An=function(U){var O=Bx(U.nE());O&&O.created&&(U.logger.debug("reset ad module"),O.destroy())}; mI=function(U){return U.getVideoData().enableServerStitchedDai&&!!U.JR}; Ayg=function(U,O){O.bounds=U.getBoundingClientRect();for(var M=g.D(["display","opacity","visibility","zIndex"]),S=M.next();!S.done;S=M.next())S=S.value,O[S]=cc(U,S);O.hidden=!!U.hidden}; Ree=function(U){if(U.webPlayerContextConfig){var O=U.webPlayerContextConfig.trustedJsUrl;return O?tz(O).toString():U.webPlayerContextConfig.jsUrl}return U.config.assets&&U.config.assets.js?U.config.assets.js:""}; Iyw=function(U,O){var M=U.yr(1);if(M){if(M.getVideoData().clientPlaybackNonce===O)return M;if((U=U.Vq.U)&&U.getVideoData().clientPlaybackNonce===O)return U}return null}; Puw=function(U){return U.name==="TypeError"&&U.stack.includes("/s/player/")&&VI()<=105}; nzy=function(U){return U.isTimeout?"NO_BID":"ERR_BID"}; QMm=function(){var U=null;tuq().then(function(O){return U=O},function(O){return U=nzy(O)}); return U}; Cuw=function(){var U=ZM(1E3,"NO_BID");return g.CT(VGe([tuq(),U]).yq(nzy),function(){U.cancel()})}; up=function(U){return U.sX?g.on(g.Vm(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; qh=function(U){this.player=U;this.B=this.U=1}; q5q=function(U,O,M,S,p,h){O.client||(O.client={});U.player.J().T("h5_remove_url_for_get_ad_break")||(O.client.originalUrl=M);var J=jJ(M),f=g.UY(M)?!1:!0;(J||f)&&typeof Intl!=="undefined"&&(O.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=g.UY(M)?!1:!0;if(J||f||S!==""){var F={};M=f4(D2(S)).split("&");var l=new Map;M.forEach(function(G){G=G.split("=");G.length>1&&l.set(G[0].toString(),decodeURIComponent(G[1].toString()))}); l.has("bid")&&(F.bid=l.get("bid"));F.params=[];Xze.forEach(function(G){l.has(G)&&(G={key:G,value:l.get(G)},F.params.push(G))}); ubU(U,F);O.adSignalsInfo=F}O.client.unpluggedAppInfo||(O.client.unpluggedAppInfo={});O.client.unpluggedAppInfo.enableFilterMode=!1;M=p.U.cosver;M!=null&&M!=="cosver"&&(O.client.osVersion=M);M=p.U.cplatform;M!=null&&M!=="cplatform"&&M!==""&&(O.client.platform=M);M=p.U.cmodel;M!=null&&M!=="cmodel"&&(O.client.deviceModel=M);M=p.U.cplayer;M!=null&&M!=="cplayer"&&(O.client.playerType=M);M=p.U.cbrand;M!=null&&M!=="cbrand"&&(O.client.deviceMake=M);O.user||(O.user={});O.user.lockedSafetyMode=!1;(p.T("embeds_web_enable_iframe_api_send_full_embed_url")|| p.T("embeds_enable_autoplay_and_visibility_signals"))&&g.qn(p)&&CoU(O,h,U.player.getPlayerState(1))}; Kg5=function(U,O){var M=!1;if(O==="")return M;O.split(",").forEach(function(S){var p={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},J="ACTIVE";S[0]==="!"&&(S=S.substring(1),J="INACTIVE");S=S.split("-");S.length<3||(S[0]in iYg&&(h.clientName=iYg[S[0]]),S[1]in ZYw&&(h.platform=ZYw[S[1]]),h.applicationState=J,h.clientVersion=S.length>2?S[2]:"",p.remoteClient=h,U.remoteContexts?U.remoteContexts.push(p):U.remoteContexts=[p],M=!0)}); return M}; ayg=function(U){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in ryw))return!1;U=U.split(RegExp("[:&]"));var O=ryw.FLAG_AUTO_CAPTIONS_DEFAULT_ON,M="f"+(1+Math.floor(O/31)).toString();O=1<=2?J[1]:"";var f=Lgw.test(O),F=VU4.exec(O);F=F!=null&&F.length>=2?F[1]:"";var l=ozJ.exec(O);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var G=kp1.exec(O);G=G!=null&&G.length>=2?G[1]:"0";var T=aK(U.player.J().lU),e=U.player.getVideoData(1),H=g.pl(e.QP,!0),z="BISCOTTI_ID"in M?M.BISCOTTI_ID:"";q5q(U,H,O,z.toString(),U.player.J(), e);e={splay:!1,lactMilliseconds:M.LACT.toString(),playerHeightPixels:Math.trunc(M.P_H),playerWidthPixels:Math.trunc(M.P_W),vis:Math.trunc(M.VIS),signatureTimestamp:20179,autonavState:up(U.player.J())};S&&(S={},Kg5(S,M.YT_REMOTE)&&(e.mdxContext=S));if(S=wzW.includes(T)?void 0:g.ra("PREF")){for(var W=S.split(RegExp("[:&]")),v=0,x=W.length;v1&&t[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}e.autoCaptionsDefaultOn= ayg(S)}O=UAe.exec(O);(O=O!=null&&O.length>=2?O[1]:"")&&F&&(H.user.credentialTransferTokens=[{token:O,scope:"VIDEO"}]);O={contentPlaybackContext:e};J={adBlock:Math.trunc(M.AD_BLOCK),params:J,breakIndex:l,breakPositionMs:G,clientPlaybackNonce:M.CPN,topLevelDomain:T,isProxyAdTagRequest:f,context:H,adSignalsInfoString:f4(D2(z.toString())),overridePlaybackContext:O};p!==void 0&&(J.cueProcessedMs=Math.round(p).toString());F&&(J.videoId=F);M.LIVE_TARGETING_CONTEXT&&(J.liveTargetingParams=M.LIVE_TARGETING_CONTEXT); M.AD_BREAK_LENGTH&&(J.breakLengthMs=Math.trunc(M.AD_BREAK_LENGTH*1E3).toString());h&&(J.driftFromHeadMs=h.toString());J.currentMediaTimeMs=Math.round(U.player.getCurrentTime(1)*1E3);(U=U.player.getGetAdBreakContext())&&(J.getAdBreakContext=U);return J}; saU=function(){qh.apply(this,arguments)}; gW7=function(U,O,M,S,p){var h=M.YQ;var J=M.Tk;var f=U.player.J().WU,F=0;M.cueProcessedMs&&J&&!h&&(M=J.end-J.start,M>0&&(F=Math.floor(M/1E3)));var l={AD_BLOCK:p,AD_BREAK_LENGTH:h?h.PJ:F,AUTONAV_STATE:up(U.player.J()),CA_TYPE:"image",CPN:U.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:U.player.eU()*1E3,LACT:QJ(),LIVE_INDEX:h?U.B++:1,LIVE_TARGETING_CONTEXT:h&&h.context?h.context:"",MIDROLL_POS:J?Math.round(J.start/1E3):0,MIDROLL_POS_MS:J?Math.round(J.start):0,VIS:U.player.getVisibilityState(), P_H:U.player.g7().tL().height,P_W:U.player.g7().tL().width,YT_REMOTE:f?f.join(","):""},G=c5(zr);Object.keys(G).forEach(function(T){G[T]!=null&&(l[T.toUpperCase()]=G[T].toString())}); S!==""&&(l.BISCOTTI_ID=S);S={};H5(O)&&(S.sts="20179",(U=U.player.J().forcedExperiments)&&(S.forced_experiments=U));return Tr(g.IH(O,l),S)}; MMW=function(U,O){var M=U.player.J(),S,p=(S=U.player.getVideoData(1))==null?void 0:S.oauthToken;return g.Fy(M,p).then(function(h){if(h&&eJ()){var J=EE();Ld(J,h)}return g.Mz(U.player.hL(J),O,"/youtubei/v1/player/ad_break").then(function(f){return f})})}; SzJ=function(U){this.Il=U}; pKW=function(U){this.S=U}; hA1=function(U){this.Il=U}; y_W=function(U){g.C.call(this);this.U=U;this.eI=J_e(this)}; J_e=function(U){var O=new GNe(U.U.Zq);g.X(U,O);U=[new SzJ(U.U.Il),new pKW(U.U.S),new hA1(U.U.Il),new um(U.U.gC,U.U.KN),new im,new rb(U.U.Up,U.U.i6,U.U.Il),new qf,new XD];U=g.D(U);for(var M=U.next();!M.done;M=U.next())$Ty(O,M.value);U=g.D(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(M=U.next();!M.done;M=U.next())Z_(O,M.value,function(){}); return O}; ip=function(U){var O=U.qL,M=U.vA;U=U.rK;var S=new Rw1,p={Za:new Fng(O.get(),M),vA:M};return{DN:new y2(M,U,O,p),context:p,Z2:S}}; Za=function(U,O,M,S,p){g.C.call(this);this.V=O;this.dG=M;this.qL=S;this.YI=p;this.listeners=[];var h=new nE(this);g.X(this,h);h.j(U,"internalAbandon",this.Cb);this.addOnDisposeCallback(function(){g.CE(h)})}; Kw=function(U){this.S=U;this.adVideoId=this.U=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.V=this.B=!1;this.adFormat=null;this.X="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; fQe=function(U){U.contentCpn=null;U.adCpn=null;U.videoId=null;U.adVideoId=null;U.adFormat=null;U.X="AD_PLACEMENT_KIND_UNKNOWN";U.actionType="unknown_type";U.B=!1;U.V=!1}; Fwm=function(U,O){U=g.D(O);for(O=U.next();!O.done;O=U.next())if((O=O.value.renderer)&&(O.instreamVideoAdRenderer||O.linearAdSequenceRenderer||O.sandwichedLinearAdRenderer||O.instreamSurveyAdRenderer)){Ll("ad_i");g.Va({isMonetized:!0});break}}; lQe=function(U){var O;(O=U.S.getVideoData(1))!=null&&O.sA&&(U.V=!1,O={},U.U&&U.videoId&&(O.cttAuthInfo={token:U.U,videoId:U.videoId}),oY("video_to_ad",O))}; kA=function(U){U.V=!1;var O={};U.U&&U.videoId&&(O.cttAuthInfo={token:U.U,videoId:U.videoId});oY("ad_to_video",O);GL7(U)}; GL7=function(U){if(U.B)if(U.X==="AD_PLACEMENT_KIND_START"&&U.actionType==="video_to_ad")rT("video_to_ad");else{var O={adBreakType:bR(U.X),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:U.videoStreamType};U.actionType==="ad_to_video"?(U.contentCpn&&(O.targetCpn=U.contentCpn),U.videoId&&(O.targetVideoId=U.videoId)):(U.adCpn&&(O.targetCpn=U.adCpn),U.adVideoId&&(O.targetVideoId=U.adVideoId));U.adFormat&&(O.adType=U.adFormat);U.contentCpn&& (O.clientPlaybackNonce=U.contentCpn);U.videoId&&(O.videoId=U.videoId);U.adCpn&&(O.adClientPlaybackNonce=U.adCpn);U.adVideoId&&(O.adVideoId=U.adVideoId);g.Va(O,U.actionType)}}; rY=function(U){g.C.call(this);this.S=U;this.U=new Map;this.V=new nE(this);g.X(this,this.V);this.V.j(this.S,g.$Y("ad"),this.onCueRangeEnter,this);this.V.j(this.S,g.TO("ad"),this.onCueRangeExit,this)}; $A7=function(U,O,M,S,p){g.ll.call(this,O,M,{id:U,namespace:"ad",priority:p,visible:S})}; aj=function(U){this.S=U}; E1=function(U){this.S=U;g.DF(this.S.J().experiments,"tv_pacf_logging_sample_rate")}; YF=function(U,O){O=O===void 0?!1:O;return U.S.J().T("html5_ssap_force_ads_ctmp")?!0:(O||U.S.J().PV())&&U.S.J().T("html5_ssap_pacf_qoe_ctmp")}; Lw=function(U){var O,M;return(M=(O=U.S.getVideoData(1))==null?void 0:g.Os(O))!=null?M:!1}; gp=function(U,O){return U.S.J().T(O)}; Tuq=function(U){return U.S.J().T("substitute_ad_cpn_macro_in_ssdai")}; xX=function(U){var O,M,S;return((O=U.S.getVideoData(1).getPlayerResponse())==null?void 0:(M=O.playerConfig)==null?void 0:(S=M.daiConfig)==null?void 0:S.enableServerStitchedDai)||!1}; c3e=function(U){return U.S.J().T("html5_enable_vod_slar_with_notify_pacf")}; jaq=function(U){return U.S.J().T("html5_recognize_predict_start_cue_point")}; pH=function(U){return U.S.J().experiments.F0("enable_desktop_player_underlay")}; eAg=function(U){return U.S.J().experiments.F0("html5_load_empty_player_in_media_break_sub_lra")}; uR=function(U){return U.S.J().experiments.F0("html5_load_ads_instead_of_cue")}; q6=function(U){return U.S.J().experiments.F0("html5_preload_ads")}; HpU=function(U){return U.S.J().experiments.F0("should_ignore_cuepoints_during_lifa_preroll")}; gx=function(U){return U.S.J().experiments.F0("enable_ads_control_flow_deterministic_id_generation")}; zAe=function(U){return U.S.J().experiments.F0("enable_desktop_discovery_video_abandon_pings")||g.O3(U.S.J())}; c_g=function(U){return U.S.J().experiments.F0("enable_progres_commands_lr_feeds")}; b1=function(U){return U.S.J().experiments.F0("html5_cuepoint_identifier_logging")}; z5e=function(U){return U.S.J().experiments.F0("enable_postmessage_tunnel_for_ad_clicks")}; DAq=function(U){switch(U){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}}; dAe=function(){g.H_.call(this);var U=this;this.U={};this.addOnDisposeCallback(function(){for(var O=g.D(Object.keys(U.U)),M=O.next();!M.done;M=O.next())delete U.U[M.value]})}; VQ=function(){if(Wwq===null){Wwq=new dAe;PU(RH).V="b";var U=PU(RH),O=dj(U)=="h"||dj(U)=="b",M=!(uv(),!1);O&&M&&(U.G=!0,U.C=new tOg)}return Wwq}; Nuw=function(U,O,M){U.U[O]=M}; vWq=function(U){switch(U){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}}; oj=function(U,O,M){this.dG=U;this.S=O;this.vA=M;this.V=new Set;this.U=new Map;VQ().subscribe("adactiveviewmeasurable",this.QW,this);VQ().subscribe("adfullyviewableaudiblehalfdurationimpression",this.s5,this);VQ().subscribe("adviewableimpression",this.AY,this);VQ().subscribe("adaudioaudible",this.XS,this);VQ().subscribe("adaudiomeasurable",this.MA,this)}; wY=function(U,O,M){var S=M.mE,p=M.v8,h=M.listener,J=M.fT;M=M.A0===void 0?!1:M.A0;if(U.U.has(O))DY("Unexpected registration of layout in LidarApi");else{if(J){if(U.V.has(J))return;U.V.add(J)}U.U.set(O,h);G5(uv().Cr,"fmd",1);uTU(PU(RH),S);var f=M?O:void 0;Nuw(VQ(),O,{Xb:function(){if(!p)return{};var F=U.S.getPresentingPlayerType(!0),l;return(l=U.S.getVideoData(F))!=null&&l.isAd()?{currentTime:U.dG.get().getCurrentTimeSec(F,!1,f),duration:p,isPlaying:kp(U.dG.get(),F).isPlaying(),isVpaid:!1,isYouTube:!0, volume:U.dG.get().isMuted()?0:U.dG.get().getVolume()/100}:{}}})}}; U0=function(U,O){U.U.has(O)?(U.U.delete(O),delete VQ().U[O]):DY("Unexpected unregistration of layout in LidarApi")}; Bui=function(U,O){if(U.S.isLifaAdPlaying()){var M=U.S.Wb(!0,!0);U.J_(O,M.width*.5*1.1,M.height*.25*1.1,M.width*.5*.9,M.height*.5*.9)}}; RA4=function(U,O,M){var S={};xAU(U,S,O,M);bpJ(S);S.LACT=O0(function(){return QJ().toString()}); S.VIS=O0(function(){return U.getVisibilityState().toString()}); S.SDKV="h.3.0";S.VOL=O0(function(){return U.isMuted()?"0":Math.round(U.getVolume()).toString()}); S.VED="";return S}; tMe=function(U,O){var M={};if(O)return M;if(!U.kind)return g.K5(Error("AdPlacementConfig without kind")),M;if(U.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||U.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!U.adTimeOffset||!U.adTimeOffset.offsetStartMilliseconds)return g.K5(Error("malformed AdPlacementConfig")),M;M.MIDROLL_POS=O0(vr(Math.round($v(U.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else M.MIDROLL_POS=O0(vr("0"));return M}; O0=function(U){return{toString:function(){return U()}}}; Yz1=function(U,O,M){function S(f,F){(F=M[F])&&(h[f]=F)} function p(f,F){(F=M[F])&&(h[f]=J(F))} if(!M||g.iy(M))return U;var h=Object.assign({},U),J=O?encodeURIComponent:function(f){return f}; p("DV_VIEWABILITY","doubleVerifyViewability");p("IAS_VIEWABILITY","integralAdsViewability");p("MOAT_INIT","moatInit");p("MOAT_VIEWABILITY","moatViewability");S("GOOGLE_VIEWABILITY","googleViewability");S("VIEWABILITY","viewability");return h}; xAU=function(U,O,M,S){O.CPN=O0(function(){var p;(p=U.getVideoData(1))?p=p.clientPlaybackNonce:(g.rz(Error("Video data is null.")),p=null);return p}); O.AD_MT=O0(function(){if(S!=null)var p=S;else{var h=M;U.J().T("html5_ssap_use_cpn_to_get_time")||(h=void 0);if(U.J().T("enable_h5_shorts_ad_fill_ad_mt_macro")||U.J().T("enable_desktop_discovery_pings_ad_mt_macro")||g.O3(U.J())){var J=U.getPresentingPlayerType(!0),f;p=((f=U.getVideoData(J))==null?0:f.isAd())?mA4(U,J,h):0}else p=mA4(U,2,h)}return Math.round(Math.max(0,p*1E3)).toString()}); O.MT=O0(function(){return Math.round(Math.max(0,U.getCurrentTime(1,!1)*1E3)).toString()}); O.P_H=O0(function(){return U.g7().tL().height.toString()}); O.P_W=O0(function(){return U.g7().tL().width.toString()}); O.PV_H=O0(function(){return U.g7().getVideoContentRect().height.toString()}); O.PV_W=O0(function(){return U.g7().getVideoContentRect().width.toString()})}; bpJ=function(U){U.CONN=O0(vr("0"));U.WT=O0(function(){return Date.now().toString()})}; mA4=function(U,O,M){return M!==void 0?U.getCurrentTime(O,!1,M):U.getCurrentTime(O,!1)}; A_W=function(){}; IQq=function(U,O,M,S,p){var h,J,f,F,l,G,T,e,H,z,W,v,x;g.A(function(t){switch(t.U){case 1:h=!!O.scrubReferrer;J=g.IH(O.baseUrl,Yz1(M,h,S));f={};if(!O.headers){t.tZ(2);break}F=U.X();if(!F.U){l=F.getValue();t.tZ(3);break}return g.Y(t,F.U,4);case 4:l=t.V;case 3:G=l;T=g.D(O.headers);for(e=T.next();!e.done;e=T.next())switch(H=e.value,H.headerType){case "VISITOR_ID":g.wZ("VISITOR_DATA")&&(f["X-Goog-Visitor-Id"]=g.wZ("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.wZ("EOM_VISITOR_DATA")&&(f["X-Goog-EOM-Visitor-Id"]= g.wZ("EOM_VISITOR_DATA"));break;case "USER_AUTH":G&&(f.Authorization="Bearer "+G);break;case "PLUS_PAGE_ID":(z=U.G())&&(f["X-Goog-PageId"]=z);break;case "AUTH_USER":W=U.U();!G&&W&&(f["X-Goog-AuthUser"]=W);break;case "DATASYNC_ID":if(v=void 0,(v=U.B())==null?0:v.F0("enable_datasync_id_header_in_web_vss_pings"))x=U.V(),jJ(J)&&g.wZ("LOGGED_IN")&&x&&(f["X-YouTube-DataSync-Id"]=x)}"X-Goog-EOM-Visitor-Id"in f&&"X-Goog-Visitor-Id"in f&&delete f["X-Goog-Visitor-Id"];case 2:g.ox(J,void 0,h,Object.keys(f).length!== 0?f:void 0,"",!0,p),g.Dq(t)}})}; PO7=function(U,O,M,S,p){this.X=U;this.G=O;this.U=M;this.V=S;this.B=p}; nWe=function(U,O){this.U=U;this.vA=O}; s0=function(U,O,M,S,p,h,J){var f=f===void 0?new PO7(function(){var F=U.J(),l=U.getVideoData(1);return g.Fy(F,l?g.Es(l):"")},function(){return U.J().pageId},function(){return U.J().BA},function(){var F; return(F=U.J().datasyncId)!=null?F:""},function(){return U.J().experiments}):f; this.S=U;this.V=O;this.X9=M;this.qL=S;this.DN=p;this.vA=h;this.Z2=J;this.X=f;this.RI=null;this.U=new Map;this.B=new nWe(f,this.vA)}; COi=function(U,O,M,S,p){var h=nH(U.V.get(),M);h?(M=QV(U,Qa5(h),h,void 0,void 0,S),O.hasOwnProperty("baseUrl")?U.X.send(O,M):U.B.send(O,M,{},p)):DY("Trying to ping from an unknown layout",void 0,void 0,{layoutId:M})}; ca7=function(U,O,M,S,p,h){S=S===void 0?[]:S;var J=nH(U.V.get(),O);if(J){var f=U.X9.get().aL(O,M),F=QV(U,Qa5(J),J,p,h);S.forEach(function(l,G){l.baseUrl&&(U.B.send(l.baseUrl,F,f,l.attributionSrcMode),l.serializedAdPingMetadata&&U.DN.CI("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,J,new wPq(l,G),void 0,void 0,J.adLayoutLoggingData))})}else DY("Trying to track from an unknown layout.",void 0,void 0,{layoutId:O, trackingType:M})}; tR=function(U,O){U.S.sendVideoStatsEngageEvent(O,void 0,2)}; pn=function(U,O){g.HX("adsClientStateChange",O)}; XKe=function(U,O){U.U.has(O.jn())?DY("Trying to register an existing AdErrorInfoSupplier."):U.U.set(O.jn(),O)}; uuy=function(U,O){U.U.delete(O.jn())||DY("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; yg=function(U,O,M){typeof M==="string"?U.S.getVideoData(1).qA(O,M):U.S.getVideoData(1).al(O,M)}; Qa5=function(U){var O=$G(U.clientMetadata,"metadata_type_ad_placement_config");U=$G(U.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:O,Wh:U}}; QV=function(U,O,M,S,p,h){var J=M?qze(U):{},f=M?ipW(U,M.layoutId):{},F=Zp7(U),l,G=p!=null?p:(l=N6(U.qL.get(),2))==null?void 0:l.clientPlaybackNonce;p=void 0;if(M){var T;if((T=U.Z2.U.get(M.layoutId))==null?0:T.A0)p=M.layoutId}T={};U=Object.assign({},RA4(U.S,p,S),tMe(O.adPlacementConfig,(M==null?void 0:M.renderingContent)!==void 0),f,J,F,(T.FINAL=O0(function(){return"1"}),T.AD_CPN=O0(function(){return G||""}),T)); (M==null?void 0:M.renderingContent)!==void 0||(U.SLOT_POS=O0(function(){return(O.Wh||0).toString()})); M={};h=Object.assign({},U,h);U=g.D(Object.values(Kww));for(S=U.next();!S.done;S=U.next())S=S.value,J=h[S],J!=null&&J.toString()!=null&&(M[S]=J.toString());return M}; qze=function(U){var O={},M,S=(M=U.RI)==null?void 0:M.XE/1E3;S!=null&&(O.SURVEY_ELAPSED_MS=O0(function(){return Math.round(S*1E3).toString()})); O.SURVEY_LOCAL_TIME_EPOCH_S=O0(function(){return Math.round(Date.now()/1E3).toString()}); return O}; ipW=function(U,O){U=U.U.get(O);if(!U)return{};U=U.NB();if(!U)return{};O={};return O.YT_ERROR_CODE=U.td.toString(),O.ERRORCODE=U.ov.toString(),O.ERROR_MSG=U.errorMessage,O}; Zp7=function(U){var O={},M=U.S.getVideoData(1);O.ASR=O0(function(){var S;return(S=M==null?void 0:M.Xn)!=null?S:null}); O.EI=O0(function(){var S;return(S=M==null?void 0:M.eventId)!=null?S:null}); return O}; gX=function(U,O,M){g.C.call(this);this.S=U;this.AT=O;this.vA=M;this.listeners=[];this.LA=null;this.uF=new Map;O=new g.Zj(this);g.X(this,O);O.j(U,"videodatachange",this.iOQ);O.j(U,"serverstitchedvideochange",this.lDg);this.W$=N6(this)}; N6=function(U,O){var M=U.S.getVideoData(O);return M?U.aN(M,O||U.S.getPresentingPlayerType(!0)):null}; r_i=function(U,O,M){var S=U.aN(O,M);U.W$=S;U.listeners.forEach(function(p){p.Bl(S)})}; aQ4=function(U){switch(U){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}}; MU=function(U,O,M){g.C.call(this);this.S=U;this.qL=O;this.vA=M;this.listeners=[];this.vQ=[];this.U=function(){DY("Called 'doUnlockPreroll' before it's initialized.")}; O=new nE(this);M=new g.Zj(this);g.X(this,M);g.X(this,O);O.j(U,"progresssync",this.EIA);O.j(U,"presentingplayerstatechange",this.KiP);O.j(U,"fullscreentoggled",this.onFullscreenToggled);O.j(U,"onVolumeChange",this.onVolumeChange);O.j(U,"minimized",this.IA);O.j(U,"overlayvisibilitychange",this.RF);O.j(U,"shortsadswipe",this.YF);O.j(U,"resize",this.gi);M.j(U,g.$Y("appad"),this.ju)}; Sb=function(U){Lw(U.vA.get())||U.U()}; EWg=function(U,O){U.vQ=U.vQ.filter(function(M){return M!==O})}; pF=function(U,O,M){return U.getCurrentTimeSec(O,M)}; Lwg=function(U,O){var M;O=(M=U.qL.get().uF.get(O))!=null?M:null;if(O===null)return DY("Expected ad video start time on playback timeline"),0;U=U.S.getCurrentTime(2,!0);return U0){var h=O.end.toString();p.forEach(function(J){(J=J.config&&J.config.adPlacementConfig)&&J.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&J.adTimeOffset&&J.adTimeOffset.offsetEndMilliseconds==="-1"&&J.adTimeOffset.offsetEndMilliseconds!==h&&(J.adTimeOffset.offsetEndMilliseconds=h)}); S.map(function(J){return g.q(J,rR)}).forEach(function(J){var f; (J=J==null?void 0:(f=J.slotEntryTrigger)==null?void 0:f.mediaTimeRangeTrigger)&&J.offsetEndMilliseconds==="-1"&&(J.offsetEndMilliseconds=h)})}return{GU:p, adSlots:S,Mc:!1,ssdaiAdsConfig:U.ssdaiAdsConfig}}; Fz=function(U){g.C.call(this);this.S=U;this.listeners=[];this.U=new nE(this);g.X(this,this.U);this.U.j(this.S,"aduxclicked",this.onAdUxClicked);this.U.j(this.S,"aduxmouseover",this.Vz);this.U.j(this.S,"aduxmouseout",this.UN);this.U.j(this.S,"muteadaccepted",this.N7d)}; Ujw=function(U,O,M){O=g.mV(O,function(S){return new Phi(S,M,S.id)}); U.S.ZQ("onAdUxUpdate",O)}; lw=function(U,O){U=g.D(U.listeners);for(var M=U.next();!M.done;M=U.next())O(M.value)}; Gt=function(U,O){this.V=U;this.B=O===void 0?!1:O;this.U={}}; Oyg=function(U,O){var M=U.startSecs+U.PJ;M=M<=0?null:M;if(M===null)return null;switch(U.event){case "start":case "continue":case "stop":break;case "predictStart":if(O)break;return null;default:return null}O=Math.max(U.startSecs,0);return{fR:new tD(O,M),YAQ:new av(O,M-O,U.context,U.identifier,U.event,U.U)}}; soy=function(){this.U=[]}; eTe=function(U,O,M){var S=g.ft(U.U,O);if(S>=0)return O;O=-S-1;return O>=U.U.length||U.U[O]>M?null:U.U[O]}; $t=function(U,O,M){g.C.call(this);this.S=U;this.vA=O;this.Il=M;this.listeners=[];this.X=!1;this.Q6=[];this.U=null;this.G=new Gt(this,jaq(O.get()));this.B=new soy;this.V=null}; gNW=function(U,O){U.Q6.push(O);for(var M=!1,S=g.D(U.listeners),p=S.next();!p.done;p=S.next())M=p.value.hV(O)||M;U.X=M;b1(U.vA.get())&&yg(U.Il.get(),"onci","cpi."+O.identifier+";cpe."+O.event+";cps."+O.startSecs+";cbi."+M)}; Sr4=function(U,O){pn(U.Il.get(),{cuepointTrigger:{event:MEw(O.event),cuepointId:O.identifier,totalCueDurationMs:O.PJ*1E3,playheadTimeMs:O.U,cueStartTimeMs:O.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:U.S.getVideoData(1).clientPlaybackNonce}})}; MEw=function(U){switch(U){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 yf(U,"Unexpected cuepoint event")}}; Tt=function(U){this.S=U}; pYg=function(U,O){U.S.cueVideoByPlayerVars(O,2)}; jb=function(U){this.S=U}; eb=function(U){this.S=U}; hsw=function(U){switch(U){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:yf(U,"unknown transitionReason")}}; Jeq=function(U){this.S=U}; yeU=function(U,O,M,S,p){g.C.call(this);var h=this,J=V6(function(){return new sN(h.vA)}); g.X(this,J);var f=V6(function(){return new MG(J,h.vA)}); g.X(this,f);var F=V6(function(){return new Ir}); g.X(this,F);var l=V6(function(){return new m$(U)}); g.X(this,l);var G=V6(function(){return new SA(J,f,h.vA)}); g.X(this,G);var T=V6(function(){return new f6}); g.X(this,T);this.Vr=V6(function(){return new Fz(O)}); g.X(this,this.Vr);this.OQ=V6(function(){return new kG(p)}); g.X(this,this.OQ);this.SY=V6(function(){return new Kw(O)}); g.X(this,this.SY);this.Lr=V6(function(){return new rY(O)}); g.X(this,this.Lr);this.N4=V6(function(){return new Tt(O)}); g.X(this,this.N4);this.Zq=V6(function(){return new aj(O)}); g.X(this,this.Zq);this.vA=V6(function(){return new E1(O)}); g.X(this,this.vA);var e=V6(function(){return new fF(S)}); g.X(this,e);var H=V6(function(){return new dL(h.vA)}); g.X(this,H);this.HN=V6(function(){return new jb(O)}); g.X(this,this.HN);this.dB=V6(function(){return new O7}); g.X(this,this.dB);this.qL=V6(function(){return new gX(O,T,h.vA)}); g.X(this,this.qL);var z=ip({qL:this.qL,vA:this.vA,rK:H}),W=z.context,v=z.Z2;this.DN=z.DN;this.YI=V6(function(){return new $t(O,h.vA,h.Il)}); g.X(this,this.YI);this.XI=V6(function(){return new eb(O)}); g.X(this,this.XI);this.dG=V6(function(){return new MU(O,h.qL,h.vA)}); g.X(this,this.dG);z=V6(function(){return new WM(J,G,f,h.vA,H,"SLOT_TYPE_ABOVE_FEED",h.dG,h.kV,h.j5)}); g.X(this,z);this.RO=V6(function(){return new s7(h.vA)}); this.X9=V6(function(){return new oj(h.dG,O,h.vA)}); g.X(this,this.X9);this.Il=V6(function(){return new s0(O,F,h.X9,h.qL,h.DN,h.vA,v)}); g.X(this,this.Il);this.rO=new tP(Rr,HN,function(t,m,P,u){return ST(f.get(),t,m,P,u)},l,G,f,H,this.vA,this.qL); g.X(this,this.rO);this.uV=new YX(l,z,M,this.vA,U,this.qL,this.dG,this.SY);g.X(this,this.uV);var x=new Za(O,this.uV,this.dG,this.qL,this.YI);this.kS=V6(function(){return x}); this.tY=x;this.kV=new BM(l,G,this.kS,this.YI,this.dG,this.vA,this.Il,this.XI);g.X(this,this.kV);this.Ep=new AP(l,G,this.Lr,this.kS,W);g.X(this,this.Ep);this.OX=new Kr(this.vA,l,G,z,this.qL,this.Ep,M);g.X(this,this.OX);this.f1=V6(function(){return new Dn(e,f,H,h.vA,h.Il,h.dG,h.XI)}); g.X(this,this.f1);this.nO=V6(function(){return new dp}); g.X(this,this.nO);this.Az=new qq(U,this.Vr,this.vA);g.X(this,this.Az);this.Yp=new i1(U);g.X(this,this.Yp);this.R$=new ZD(U);g.X(this,this.R$);this.Jz=new rw(U,this.kS,W);g.X(this,this.Jz);this.WJ=new ar(U,this.Lr,this.dG,this.qL,W);g.X(this,this.WJ);this.W1=new Ee(U,this.qL);g.X(this,this.W1);this.j5=new or(U,this.YI,this.dG,this.Il,this.kS);g.X(this,this.j5);this.Al=new LH(U);g.X(this,this.Al);this.Gk=new ON(U);g.X(this,this.Gk);this.aB=new Vd(U);g.X(this,this.aB);this.wQ=new UN(U);g.X(this,this.wQ); this.Gk=new ON(U);g.X(this,this.Gk);this.vJ=V6(function(){return new Qd}); g.X(this,this.vJ);this.Ua=V6(function(){return new CH(h.dG)}); g.X(this,this.Ua);this.jP=V6(function(){return new u_7(h.Vr,h.Il,U,F,h.X9)}); g.X(this,this.jP);this.At=V6(function(){return new pP(h.OX,l,J)}); g.X(this,this.At);this.mw=V6(function(){return new yN(h.vA,h.Il,h.Al,h.X9)}); g.X(this,this.mw);this.oB=V6(function(){return new jH(U,h.Gk,h.Al,h.qL,h.XI,h.dG,h.Il,T,h.YI,h.X9,h.RO,h.N4,h.Lr,h.SY,h.Zq,h.OQ,h.HN,h.vA,F,W,v)}); g.X(this,this.oB);this.n2=V6(function(){return new Obq(h.dG,h.Il,h.OQ,h.vA,h.X9,h.qL)}); g.X(this,this.n2);this.b5=V6(function(){return new qKw(h.Vr,h.dG,h.Il,F,h.X9,h.R$,h.wQ,h.OQ,h.vA,M)}); g.X(this,this.b5);this.nQ=V6(function(){return new qX4(h.Vr,h.Il,F)}); g.X(this,this.nQ);this.sL=new yC(U,this.dB,J);g.X(this,this.sL);this.L6={BG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.OX],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.kV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ep]]),xK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_ABOVE_FEED",this.nO],["SLOT_TYPE_FORECASTING",this.nO], ["SLOT_TYPE_IN_PLAYER",this.nO],["SLOT_TYPE_PLAYER_BYTES",this.nO],["SLOT_TYPE_PLAYER_UNDERLAY",this.nO],["SLOT_TYPE_PLAYBACK_TRACKING",this.nO],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.nO]]),OC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Az],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Az],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Yp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yp],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Yp],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yp],["TRIGGER_TYPE_CLOSE_REQUESTED",this.R$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jz],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.WJ],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.WJ],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.WJ],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.WJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.WJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.WJ],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.WJ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.W1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.W1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Al],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Jz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.aB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.wQ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Gk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.j5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.j5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.j5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.j5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.j5]]),CF:new Map([["SLOT_TYPE_ABOVE_FEED",this.vJ], ["SLOT_TYPE_AD_BREAK_REQUEST",this.vJ],["SLOT_TYPE_FORECASTING",this.vJ],["SLOT_TYPE_IN_PLAYER",this.vJ],["SLOT_TYPE_PLAYER_BYTES",this.Ua],["SLOT_TYPE_PLAYER_UNDERLAY",this.vJ],["SLOT_TYPE_PLAYBACK_TRACKING",this.vJ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.vJ]]),D6:new Map([["SLOT_TYPE_ABOVE_FEED",this.jP],["SLOT_TYPE_AD_BREAK_REQUEST",this.At],["SLOT_TYPE_FORECASTING",this.mw],["SLOT_TYPE_PLAYER_BYTES",this.oB],["SLOT_TYPE_PLAYBACK_TRACKING",this.n2],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.n2],["SLOT_TYPE_IN_PLAYER",this.b5],["SLOT_TYPE_PLAYER_UNDERLAY",this.nQ]])};this.listeners=[F.get()];this.Dj={OX:this.OX,i6:this.vA.get(),EA:this.OQ.get(),QV:this.dG.get(),uV:this.uV,ud:J.get(),Ng:this.dB.get(),KN:this.Az,gC:F.get(),Up:this.qL.get()}}; fxe=function(U,O,M,S,p){g.C.call(this);var h=this,J=V6(function(){return new sN(h.vA)}); g.X(this,J);var f=V6(function(){return new MG(J,h.vA)}); g.X(this,f);var F=V6(function(){return new Ir}); g.X(this,F);var l=V6(function(){return new m$(U)}); g.X(this,l);var G=V6(function(){return new SA(J,f,h.vA)}); g.X(this,G);var T=V6(function(){return new f6}); g.X(this,T);this.Vr=V6(function(){return new Fz(O)}); g.X(this,this.Vr);this.OQ=V6(function(){return new kG(p)}); g.X(this,this.OQ);this.SY=V6(function(){return new Kw(O)}); g.X(this,this.SY);this.Lr=V6(function(){return new rY(O)}); g.X(this,this.Lr);this.N4=V6(function(){return new Tt(O)}); g.X(this,this.N4);this.Zq=V6(function(){return new aj(O)}); g.X(this,this.Zq);this.vA=V6(function(){return new E1(O)}); g.X(this,this.vA);var e=V6(function(){return new fF(S)}); g.X(this,e);var H=V6(function(){return new dL(h.vA)}); g.X(this,H);var z=V6(function(){return new WM(J,G,f,h.vA,H,null,null,h.kV,h.j5)}); g.X(this,z);this.HN=V6(function(){return new jb(O)}); g.X(this,this.HN);this.dB=V6(function(){return new O7}); g.X(this,this.dB);this.qL=V6(function(){return new gX(O,T,h.vA)}); g.X(this,this.qL);var W=ip({qL:this.qL,vA:this.vA,rK:H}),v=W.context,x=W.Z2;this.DN=W.DN;this.YI=V6(function(){return new $t(O,h.vA,h.Il)}); this.dG=V6(function(){return new MU(O,h.qL,h.vA)}); g.X(this,this.dG);this.X9=V6(function(){return new oj(h.dG,O,h.vA)}); g.X(this,this.X9);this.Il=V6(function(){return new s0(O,F,h.X9,h.qL,h.DN,h.vA,x)}); g.X(this,this.Il);this.RO=V6(function(){return new s7(h.vA)}); g.X(this,this.RO);this.rO=new tP(Rr,HN,function(m,P,u,w){return ST(f.get(),m,P,u,w)},l,G,f,H,this.vA,this.qL); g.X(this,this.rO);this.uV=new YX(l,z,M,this.vA,U,this.qL,this.dG,this.SY);g.X(this,this.uV);var t=new Za(O,this.uV,this.dG,this.qL,this.YI);this.kS=V6(function(){return t}); this.tY=t;this.kV=new BM(l,G,this.kS,this.YI,this.dG,this.vA,this.Il);g.X(this,this.kV);this.Ep=new AP(l,G,this.Lr,this.kS,v);g.X(this,this.Ep);this.OX=new Kr(this.vA,l,G,z,this.qL,this.Ep,M);g.X(this,this.OX);this.f1=V6(function(){return new Dn(e,f,H,h.vA,h.Il,h.dG)}); g.X(this,this.f1);this.nO=V6(function(){return new dp}); g.X(this,this.nO);this.Az=new qq(U,this.Vr,this.vA);g.X(this,this.Az);this.Yp=new i1(U);g.X(this,this.Yp);this.R$=new ZD(U);g.X(this,this.R$);this.Jz=new rw(U,this.kS,v);g.X(this,this.Jz);this.WJ=new ar(U,this.Lr,this.dG,this.qL,v);g.X(this,this.WJ);this.Al=new LH(U);g.X(this,this.Al);this.aB=new Vd(U);g.X(this,this.aB);this.wQ=new UN(U);g.X(this,this.wQ);this.XI=V6(function(){return new eb(O)}); g.X(this,this.XI);this.Gk=new ON(U);g.X(this,this.Gk);this.j5=new or(U,this.YI,this.dG,this.Il,this.kS);g.X(this,this.j5);this.vJ=V6(function(){return new Qd}); g.X(this,this.vJ);this.Ua=V6(function(){return new CH(h.dG)}); g.X(this,this.Ua);this.At=V6(function(){return new pP(h.OX,l,J)}); g.X(this,this.At);this.mw=V6(function(){return new yN(h.vA,h.Il,h.Al,h.X9)}); g.X(this,this.mw);this.b5=V6(function(){return new ilU(h.Vr,h.dG,h.Il,F,h.X9,h.R$,h.wQ,h.OQ,h.vA,M)}); g.X(this,this.b5);this.oB=V6(function(){return new eH(U,h.Gk,h.Al,h.Il,h.X9,h.RO,h.N4,h.qL,h.dG,h.Lr,h.SY,h.Zq,h.OQ,h.HN,h.vA,h.XI,v,x)}); g.X(this,this.oB);this.sL=new yC(U,this.dB,J);g.X(this,this.sL);this.L6={BG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.OX],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.kV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ep]]),xK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_FORECASTING",this.nO],["SLOT_TYPE_IN_PLAYER",this.nO], ["SLOT_TYPE_PLAYER_BYTES",this.nO]]),OC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Az],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yp], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yp],["TRIGGER_TYPE_CLOSE_REQUESTED",this.R$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.WJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.WJ],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.WJ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Al],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.aB],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.wQ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Gk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.j5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.j5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.j5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.j5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.j5]]),CF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vJ],["SLOT_TYPE_FORECASTING",this.vJ],["SLOT_TYPE_IN_PLAYER",this.vJ],["SLOT_TYPE_PLAYER_BYTES",this.Ua]]), D6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.At],["SLOT_TYPE_FORECASTING",this.mw],["SLOT_TYPE_IN_PLAYER",this.b5],["SLOT_TYPE_PLAYER_BYTES",this.oB]])};this.listeners=[F.get()];this.Dj={OX:this.OX,i6:this.vA.get(),EA:this.OQ.get(),QV:this.dG.get(),uV:this.uV,ud:J.get(),Ng:this.dB.get(),KN:this.Az,gC:F.get(),Up:this.qL.get()}}; FWg=function(U,O,M,S,p){g.C.call(this);var h=this,J=V6(function(){return new sN(h.vA)}); g.X(this,J);var f=V6(function(){return new MG(J,h.vA)}); g.X(this,f);var F=V6(function(){return new Ir}); g.X(this,F);var l=V6(function(){return new m$(U)}); g.X(this,l);var G=V6(function(){return new SA(J,f,h.vA)}); g.X(this,G);var T=V6(function(){return new f6}); g.X(this,T);this.Vr=V6(function(){return new Fz(O)}); g.X(this,this.Vr);this.OQ=V6(function(){return new kG(p)}); g.X(this,this.OQ);this.SY=V6(function(){return new Kw(O)}); g.X(this,this.SY);this.Lr=V6(function(){return new rY(O)}); g.X(this,this.Lr);this.N4=V6(function(){return new Tt(O)}); g.X(this,this.N4);this.Zq=V6(function(){return new aj(O)}); g.X(this,this.Zq);this.vA=V6(function(){return new E1(O)}); g.X(this,this.vA);var e=V6(function(){return new fF(S)}); g.X(this,e);var H=V6(function(){return new dL(h.vA)}); g.X(this,H);var z=V6(function(){return new WM(J,G,f,h.vA,H,null,null,null,null)}); g.X(this,z);this.HN=V6(function(){return new jb(O)}); g.X(this,this.HN);this.qL=V6(function(){return new gX(O,T,h.vA)}); g.X(this,this.qL);var W=ip({qL:this.qL,vA:this.vA,rK:H}),v=W.context,x=W.Z2;this.DN=W.DN;this.dG=V6(function(){return new MU(O,h.qL,h.vA)}); g.X(this,this.dG);this.X9=V6(function(){return new oj(h.dG,O,h.vA)}); g.X(this,this.X9);this.Il=V6(function(){return new s0(O,F,h.X9,h.qL,h.DN,h.vA,x)}); g.X(this,this.Il);this.RO=V6(function(){return new s7(h.vA)}); g.X(this,this.RO);this.rO=new tP(Rr,HN,function(m,P,u,w){return ST(f.get(),m,P,u,w)},l,G,f,H,this.vA,this.qL); g.X(this,this.rO);this.uV=new YX(l,z,M,this.vA,U,this.qL,this.dG,this.SY);g.X(this,this.uV);var t=new Za(O,this.uV,this.dG,this.qL);this.kS=V6(function(){return t}); this.tY=t;this.Ep=new AP(l,G,this.Lr,this.kS,v);g.X(this,this.Ep);this.OX=new Kr(this.vA,l,G,z,this.qL,this.Ep,M);g.X(this,this.OX);this.f1=V6(function(){return new Dn(e,f,H,h.vA,h.Il,h.dG)}); g.X(this,this.f1);this.nO=V6(function(){return new dp}); g.X(this,this.nO);this.Az=new qq(U,this.Vr,this.vA);g.X(this,this.Az);this.Yp=new i1(U);g.X(this,this.Yp);this.Jz=new rw(U,this.kS,v);g.X(this,this.Jz);this.WJ=new ar(U,this.Lr,this.dG,this.qL,v);g.X(this,this.WJ);this.Al=new LH(U);g.X(this,this.Al);this.aB=new Vd(U);g.X(this,this.aB);this.XI=V6(function(){return new eb(O)}); g.X(this,this.XI);this.Gk=new ON(U);g.X(this,this.Gk);this.vJ=V6(function(){return new Qd}); g.X(this,this.vJ);this.Ua=V6(function(){return new CH(h.dG)}); g.X(this,this.Ua);this.At=V6(function(){return new pP(h.OX,l,J)}); g.X(this,this.At);this.mw=V6(function(){return new yN(h.vA,h.Il,h.Al,h.X9)}); g.X(this,this.mw);this.BF=V6(function(){return new UcU(h.Vr,h.dG,h.Il,F,M,h.vA)}); g.X(this,this.BF);this.oB=V6(function(){return new eH(U,h.Gk,h.Al,h.Il,h.X9,h.RO,h.N4,h.qL,h.dG,h.Lr,h.SY,h.Zq,h.OQ,h.HN,h.vA,h.XI,v,x)}); g.X(this,this.oB);this.L6={BG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.OX],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ep]]),xK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_FORECASTING",this.nO],["SLOT_TYPE_IN_PLAYER",this.nO],["SLOT_TYPE_PLAYER_BYTES",this.nO]]),OC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Az],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Yp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yp],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.WJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.WJ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Al],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.aB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Gk]]),CF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vJ],["SLOT_TYPE_ABOVE_FEED",this.vJ],["SLOT_TYPE_FORECASTING",this.vJ],["SLOT_TYPE_IN_PLAYER",this.vJ],["SLOT_TYPE_PLAYER_BYTES",this.Ua]]),D6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.At],["SLOT_TYPE_FORECASTING",this.mw],["SLOT_TYPE_IN_PLAYER", this.BF],["SLOT_TYPE_PLAYER_BYTES",this.oB]])};this.listeners=[F.get()];this.Dj={OX:this.OX,i6:this.vA.get(),EA:this.OQ.get(),QV:this.dG.get(),uV:this.uV,ud:J.get(),Ng:null,KN:this.Az,gC:F.get(),Up:this.qL.get()}}; lxi=function(U,O,M,S,p){g.C.call(this);var h=this,J=V6(function(){return new sN(h.vA)}); g.X(this,J);var f=V6(function(){return new MG(J,h.vA)}); g.X(this,f);var F=V6(function(){return new Ir}); g.X(this,F);var l=V6(function(){return new m$(U)}); g.X(this,l);var G=V6(function(){return new SA(J,f,h.vA)}); g.X(this,G);var T=V6(function(){return new f6}); g.X(this,T);this.PO=V6(function(){return new Jeq(O)}); g.X(this,this.PO);this.Vr=V6(function(){return new Fz(O)}); g.X(this,this.Vr);this.OQ=V6(function(){return new kG(p)}); g.X(this,this.OQ);this.SY=V6(function(){return new Kw(O)}); g.X(this,this.SY);this.Lr=V6(function(){return new rY(O)}); g.X(this,this.Lr);this.N4=V6(function(){return new Tt(O)}); g.X(this,this.N4);this.Zq=V6(function(){return new aj(O)}); g.X(this,this.Zq);this.vA=V6(function(){return new E1(O)}); g.X(this,this.vA);var e=V6(function(){return new fF(S)}); g.X(this,e);var H=V6(function(){return new dL(h.vA)}); g.X(this,H);var z=V6(function(){return new WM(J,G,f,h.vA,H,null,null,null,null)}); g.X(this,z);this.HN=V6(function(){return new jb(O)}); g.X(this,this.HN);this.qL=V6(function(){return new gX(O,T,h.vA)}); g.X(this,this.qL);var W=ip({qL:this.qL,vA:this.vA,rK:H}),v=W.context,x=W.Z2;this.DN=W.DN;this.dG=V6(function(){return new MU(O,h.qL,h.vA)}); g.X(this,this.dG);this.X9=V6(function(){return new oj(h.dG,O,h.vA)}); g.X(this,this.X9);this.Il=V6(function(){return new s0(O,F,h.X9,h.qL,h.DN,h.vA,x)}); g.X(this,this.Il);this.RO=V6(function(){return new s7(h.vA)}); g.X(this,this.RO);this.rO=new tP(Bne,HN,function(m,P,u,w){return ErU(f.get(),m,P,u,w)},l,G,f,H,this.vA,this.qL); g.X(this,this.rO);this.uV=new YX(l,z,M,this.vA,U,this.qL,this.dG,this.SY);g.X(this,this.uV);var t=new Za(O,this.uV,this.dG,this.qL);this.kS=V6(function(){return t}); this.tY=t;this.Ep=new AP(l,G,this.Lr,this.kS,v);g.X(this,this.Ep);this.OX=new Kr(this.vA,l,G,z,this.qL,this.Ep,M);g.X(this,this.OX);this.f1=V6(function(){return new Dn(e,f,H,h.vA,h.Il,h.dG)}); g.X(this,this.f1);this.nO=V6(function(){return new dp}); g.X(this,this.nO);this.Az=new qq(U,this.Vr,this.vA);g.X(this,this.Az);this.Yp=new i1(U);g.X(this,this.Yp);this.Jz=new rw(U,this.kS,v);g.X(this,this.Jz);this.WJ=new ar(U,this.Lr,this.dG,this.qL,v);g.X(this,this.WJ);this.Al=new LH(U);g.X(this,this.Al);this.aB=new Vd(U);g.X(this,this.aB);this.XI=V6(function(){return new eb(O)}); g.X(this,this.XI);this.Gk=new ON(U);g.X(this,this.Gk);this.vJ=V6(function(){return new Qd}); g.X(this,this.vJ);this.Ua=V6(function(){return new CH(h.dG)}); g.X(this,this.Ua);this.At=V6(function(){return new pP(h.OX,l,J)}); g.X(this,this.At);this.mw=V6(function(){return new yN(h.vA,h.Il,h.Al,h.X9)}); g.X(this,this.mw);this.oB=V6(function(){return new eH(U,h.Gk,h.Al,h.Il,h.X9,h.RO,h.N4,h.qL,h.dG,h.Lr,h.SY,h.Zq,h.OQ,h.HN,h.vA,h.XI,v,x)}); g.X(this,this.oB);this.HM=V6(function(){return new KN7(h.Vr,h.dG,h.Il,F,h.PO,M,h.qL)}); g.X(this,this.HM);this.L6={BG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.OX],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ep]]),xK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_FORECASTING",this.nO],["SLOT_TYPE_IN_PLAYER",this.nO],["SLOT_TYPE_PLAYER_BYTES",this.nO]]),OC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Az],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Yp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yp],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.WJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.WJ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Al],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.aB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Gk]]),CF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vJ],["SLOT_TYPE_FORECASTING",this.vJ],["SLOT_TYPE_IN_PLAYER",this.vJ],["SLOT_TYPE_PLAYER_BYTES",this.Ua]]),D6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.At],["SLOT_TYPE_FORECASTING",this.mw],["SLOT_TYPE_IN_PLAYER",this.HM],["SLOT_TYPE_PLAYER_BYTES", this.oB]])};this.listeners=[F.get()];this.Dj={OX:this.OX,i6:this.vA.get(),EA:this.OQ.get(),QV:this.dG.get(),uV:this.uV,ud:J.get(),Ng:null,KN:this.Az,gC:F.get(),Up:this.qL.get()}}; GqJ=function(U,O,M,S,p){g.C.call(this);var h=this,J=V6(function(){return new sN(h.vA)}); g.X(this,J);var f=V6(function(){return new MG(J,h.vA)}); g.X(this,f);var F=V6(function(){return new Ir}); g.X(this,F);var l=V6(function(){return new m$(U)}); g.X(this,l);var G=V6(function(){return new SA(J,f,h.vA)}); g.X(this,G);var T=V6(function(){return new f6}); g.X(this,T);this.PO=V6(function(){return new Jeq(O)}); g.X(this,this.PO);this.Vr=V6(function(){return new Fz(O)}); g.X(this,this.Vr);this.OQ=V6(function(){return new kG(p)}); g.X(this,this.OQ);this.SY=V6(function(){return new Kw(O)}); g.X(this,this.SY);this.Lr=V6(function(){return new rY(O)}); g.X(this,this.Lr);this.N4=V6(function(){return new Tt(O)}); g.X(this,this.N4);this.Zq=V6(function(){return new aj(O)}); g.X(this,this.Zq);this.vA=V6(function(){return new E1(O)}); g.X(this,this.vA);var e=V6(function(){return new fF(S)}); g.X(this,e);var H=V6(function(){return new dL(h.vA)}); g.X(this,H);this.HN=V6(function(){return new jb(O)}); g.X(this,this.HN);this.qL=V6(function(){return new gX(O,T,h.vA)}); g.X(this,this.qL);var z=ip({qL:this.qL,vA:this.vA,rK:H}),W=z.context,v=z.Z2;this.DN=z.DN;this.YI=V6(function(){return new $t(O,h.vA,h.Il)}); g.X(this,this.YI);this.XI=V6(function(){return new eb(O)}); g.X(this,this.XI);this.dG=V6(function(){return new MU(O,h.qL,h.vA)}); g.X(this,this.dG);z=V6(function(){return new WM(J,G,f,h.vA,H,null,h.dG,h.kV,h.j5,3)}); g.X(this,z);this.RO=V6(function(){return new s7(h.vA)}); this.X9=V6(function(){return new oj(h.dG,O,h.vA)}); g.X(this,this.X9);this.Il=V6(function(){return new s0(O,F,h.X9,h.qL,h.DN,h.vA,v)}); g.X(this,this.Il);this.uV=new YX(l,z,M,this.vA,U,this.qL,this.dG,this.SY);g.X(this,this.uV);var x=new Za(O,this.uV,this.dG,this.qL,this.YI);this.kS=V6(function(){return x}); this.tY=x;this.rO=new tP(xJy,HN,function(t,m,P,u){return ErU(f.get(),t,m,P,u)},l,G,f,H,this.vA,this.qL); g.X(this,this.rO);this.kV=new BM(l,G,this.kS,this.YI,this.dG,this.vA,this.Il,this.XI);g.X(this,this.kV);this.Ep=new AP(l,G,this.Lr,this.kS,W);g.X(this,this.Ep);this.OX=new Kr(this.vA,l,G,z,this.qL,this.Ep,M);g.X(this,this.OX);this.f1=V6(function(){return new Dn(e,f,H,h.vA,h.Il,h.dG,h.XI)}); g.X(this,this.f1);this.nO=V6(function(){return new dp}); g.X(this,this.nO);this.Az=new qq(U,this.Vr,this.vA);g.X(this,this.Az);this.Yp=new i1(U);g.X(this,this.Yp);this.Jz=new rw(U,this.kS,W);g.X(this,this.Jz);this.WJ=new ar(U,this.Lr,this.dG,this.qL,W);g.X(this,this.WJ);this.W1=new Ee(U,this.qL);g.X(this,this.W1);this.j5=new or(U,this.YI,this.dG,this.Il,this.kS);g.X(this,this.j5);this.Al=new LH(U);g.X(this,this.Al);this.aB=new Vd(U);g.X(this,this.aB);this.Gk=new ON(U);g.X(this,this.Gk);this.vJ=V6(function(){return new Qd}); g.X(this,this.vJ);this.Ua=V6(function(){return new CH(h.dG)}); g.X(this,this.Ua);this.At=V6(function(){return new pP(h.OX,l,J)}); g.X(this,this.At);this.mw=V6(function(){return new yN(h.vA,h.Il,h.Al,h.X9)}); g.X(this,this.mw);this.oB=V6(function(){return new jH(U,h.Gk,h.Al,h.qL,h.XI,h.dG,h.Il,T,h.YI,h.X9,h.RO,h.N4,h.Lr,h.SY,h.Zq,h.OQ,h.HN,h.vA,F,W,v)}); g.X(this,this.oB);this.b5=V6(function(){return new rF7(h.Vr,h.dG,h.Il,F,h.PO,M,h.vA,h.qL)}); g.X(this,this.b5);this.L6={BG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.OX],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.kV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.rO],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ep]]),xK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_FORECASTING",this.nO],["SLOT_TYPE_IN_PLAYER",this.nO],["SLOT_TYPE_PLAYER_BYTES",this.nO]]),OC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Az],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yp],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yp],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yp],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yp],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yp],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jz],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.WJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.WJ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.W1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.W1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Al],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jz],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.aB],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Gk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.j5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.j5],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.j5],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.j5],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.j5]]),CF:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vJ],["SLOT_TYPE_FORECASTING",this.vJ],["SLOT_TYPE_IN_PLAYER",this.vJ],["SLOT_TYPE_PLAYER_BYTES",this.Ua]]),D6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.At],["SLOT_TYPE_FORECASTING",this.mw],["SLOT_TYPE_PLAYER_BYTES",this.oB],["SLOT_TYPE_IN_PLAYER",this.b5]])};this.listeners=[F.get()]; this.Dj={OX:this.OX,i6:this.vA.get(),EA:this.OQ.get(),QV:this.dG.get(),uV:this.uV,ud:J.get(),Ng:null,KN:this.Az,gC:F.get(),Up:this.qL.get()}}; T5i=function(U,O,M,S){function p(){return h.V} g.C.call(this);var h=this;U.J().experiments.F0("html5_dispose_of_manager_before_dependency")?(this.U=$jg(p,U,O,M,S),this.V=(new oL(this.U)).B(),g.X(this,this.V),g.X(this,this.U)):(this.U=$jg(p,U,O,M,S),g.X(this,this.U),this.V=(new oL(this.U)).B(),g.X(this,this.V))}; zt=function(U){return U.U.Dj}; $jg=function(U,O,M,S,p){try{var h=O.J();if(g.gG(h))var J=new yeU(U,O,M,S,p);else if(g.SZ(h))J=new fxe(U,O,M,S,p);else if(LL(h))J=new FWg(U,O,M,S,p);else if(g.a8(h))J=new lxi(U,O,M,S,p);else if(g.ik(h))J=new GqJ(U,O,M,S,p);else throw new TypeError("Unknown web interface");return J}catch(f){return J=O.J(),DY("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:J.U.cplatform,interface:J.U.c,gul:J.U.cver,x7a:J.U.ctheme,zYZ:J.U.cplayer,m7l:J.playerStyle}),new kLw(U,O,M,S,p)}}; joU=function(U){Un.call(this,U)}; esi=function(U,O,M,S,p){JB.call(this,U,{K:"div",L:"ytp-ad-timed-pie-countdown-container",W:[{K:"svg",L:"ytp-ad-timed-pie-countdown",N:{viewBox:"0 0 20 20"},W:[{K:"circle",L:"ytp-ad-timed-pie-countdown-background",N:{r:"10",cx:"10",cy:"10"}},{K:"circle",L:"ytp-ad-timed-pie-countdown-inner",N:{r:"5",cx:"10",cy:"10"}},{K:"circle",L:"ytp-ad-timed-pie-countdown-outer",N:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",O,M,S,p);this.X=this.ML("ytp-ad-timed-pie-countdown-container");this.B=this.ML("ytp-ad-timed-pie-countdown-inner"); this.C=this.ML("ytp-ad-timed-pie-countdown-outer");this.V=Math.ceil(2*Math.PI*5);this.hide()}; Hym=function(U,O,M,S,p,h){NH.call(this,U,{K:"div",L:"ytp-ad-action-interstitial",N:{tabindex:"0"},W:[{K:"div",L:"ytp-ad-action-interstitial-background-container"},{K:"div",L:"ytp-ad-action-interstitial-slot",W:[{K:"div",L:"ytp-ad-action-interstitial-instream-info"},{K:"div",L:"ytp-ad-action-interstitial-card",W:[{K:"div",L:"ytp-ad-action-interstitial-image-container"},{K:"div",L:"ytp-ad-action-interstitial-headline-container"},{K:"div",L:"ytp-ad-action-interstitial-description-container"},{K:"div", L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",O,M,S);this.sb=p;this.kC=h;this.navigationEndpoint=this.U=this.skipButton=this.V=this.actionButton=null;this.TY=this.ML("ytp-ad-action-interstitial-instream-info");this.Ka=this.ML("ytp-ad-action-interstitial-image-container");this.Z=new Vs(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,"ytp-ad-action-interstitial-image");g.X(this,this.Z);this.Z.AZ(this.Ka);this.QP=this.ML("ytp-ad-action-interstitial-headline-container"); this.C=new pb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,"ytp-ad-action-interstitial-headline");g.X(this,this.C);this.C.AZ(this.QP);this.ol=this.ML("ytp-ad-action-interstitial-description-container");this.B=new pb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,"ytp-ad-action-interstitial-description");g.X(this,this.B);this.B.AZ(this.ol);this.NL=this.ML("ytp-ad-action-interstitial-background-container");this.hZ=new Vs(this.api,this.layoutId,this.interactionLoggingClientData, this.EA,"ytp-ad-action-interstitial-background",!0);g.X(this,this.hZ);this.hZ.AZ(this.NL);this.Rl=this.ML("ytp-ad-action-interstitial-action-button-container");this.slot=this.ML("ytp-ad-action-interstitial-slot");this.Y5=this.ML("ytp-ad-action-interstitial-card");this.X=new nE;g.X(this,this.X);this.hide()}; zsq=function(U){var O=g.hN("html5-video-player");O&&g.ea(O,"ytp-ad-display-override",U)}; WWW=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-ad-overlay-slot",W:[{K:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",O,M,S);this.Z=[];this.NL=this.QP=this.X=this.Rl=this.TY=null;this.hZ=!1;this.C=null;this.ol=0;U=this.ML("ytp-ad-overlay-container");this.Ka=new jp(U,45E3,6E3,.3,.4);g.X(this,this.Ka);this.B=cey(this);g.X(this,this.B);this.B.AZ(U);this.V=Dje(this);g.X(this,this.V);this.V.AZ(U);this.U=djW(this);g.X(this,this.U);this.U.AZ(U);this.hide()}; cey=function(U){var O=new g.W_({K:"div",L:"ytp-ad-text-overlay",W:[{K:"div",L:"ytp-ad-overlay-ad-info-button-container"},{K:"div",L:"ytp-ad-overlay-close-container",W:[{K:"button",L:"ytp-ad-overlay-close-button",W:[qH(N5w)]}]},{K:"div",L:"ytp-ad-overlay-title",UA:"{{title}}"},{K:"div",L:"ytp-ad-overlay-desc",UA:"{{description}}"},{K:"div",OA:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],UA:"{{displayUrl}}"}]});U.j(O.ML("ytp-ad-overlay-title"),"click",function(M){cN(U,O.element,M)}); U.j(O.ML("ytp-ad-overlay-link"),"click",function(M){cN(U,O.element,M)}); U.j(O.ML("ytp-ad-overlay-close-container"),"click",U.y3);O.hide();return O}; Dje=function(U){var O=new g.W_({K:"div",OA:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{K:"div",L:"ytp-ad-overlay-ad-info-button-container"},{K:"div",L:"ytp-ad-overlay-close-container",W:[{K:"button",L:"ytp-ad-overlay-close-button",W:[qH(N5w)]}]},{K:"div",L:"ytp-ad-overlay-text-image",W:[{K:"img",N:{src:"{{imageUrl}}"}}]},{K:"div",L:"ytp-ad-overlay-title",UA:"{{title}}"},{K:"div",L:"ytp-ad-overlay-desc",UA:"{{description}}"},{K:"div",OA:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], UA:"{{displayUrl}}"}]});U.j(O.ML("ytp-ad-overlay-title"),"click",function(M){cN(U,O.element,M)}); U.j(O.ML("ytp-ad-overlay-link"),"click",function(M){cN(U,O.element,M)}); U.j(O.ML("ytp-ad-overlay-close-container"),"click",U.y3);U.j(O.ML("ytp-ad-overlay-text-image"),"click",U.D_A);O.hide();return O}; djW=function(U){var O=new g.W_({K:"div",L:"ytp-ad-image-overlay",W:[{K:"div",L:"ytp-ad-overlay-ad-info-button-container"},{K:"div",L:"ytp-ad-overlay-close-container",W:[{K:"button",L:"ytp-ad-overlay-close-button",W:[qH(N5w)]}]},{K:"div",L:"ytp-ad-overlay-image",W:[{K:"img",N:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});U.j(O.ML("ytp-ad-overlay-image"),"click",function(M){cN(U,O.element,M)}); U.j(O.ML("ytp-ad-overlay-close-container"),"click",U.y3);O.hide();return O}; vN7=function(U,O){if(O){var M=g.q(O,uY)||null;M==null?g.K5(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(O=g.hN("video-ads ytp-ad-module")||null,O==null?g.K5(Error("Could not locate the root ads container element to attach the ad info dialog.")):(U.QP=new g.W_({K:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.X(U,U.QP),U.QP.AZ(O),O=new Sp(U.api,U.layoutId,U.interactionLoggingClientData,U.EA,U.QP.element,!1),g.X(U,O),O.init(jP("ad-info-hover-text-button"),M,U.macros), U.C?(O.AZ(U.C,0),O.subscribe("f",U.Wka,U),O.subscribe("e",U.HZ,U),U.j(U.C,"click",U.FkP),U.j(g.hN("ytp-ad-button",O.element),"click",function(){var S;if(g.q((S=g.q(M.button,g.iY))==null?void 0:S.serviceEndpoint,rxe))U.hZ=U.api.getPlayerState(1)===2,U.api.pauseVideo();else U.api.onAdUxClicked("ad-info-hover-text-button",U.layoutId)}),U.NL=O):g.K5(Error("Ad info button container within overlay ad was not present."))))}else g.rz(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; xji=function(U,O){if(B54(U,Di)||U.api.isMinimized())return!1;var M=v_(O.title),S=v_(O.description);if(g.Ny(M)||g.Ny(S))return!1;U.createServerVe(U.B.element,O.trackingParams||null);U.B.updateValue("title",v_(O.title));U.B.updateValue("description",v_(O.description));U.B.updateValue("displayUrl",v_(O.displayUrl));O.navigationEndpoint&&g.SS(U.Z,O.navigationEndpoint);U.B.show();U.Ka.start();U.logVisibility(U.B.element,!0);U.j(U.B.element,"mouseover",function(){U.ol++}); return!0}; byg=function(U,O){if(B54(U,Di)||U.api.isMinimized())return!1;var M=v_(O.title),S=v_(O.description);if(g.Ny(M)||g.Ny(S))return!1;U.createServerVe(U.V.element,O.trackingParams||null);U.V.updateValue("title",v_(O.title));U.V.updateValue("description",v_(O.description));U.V.updateValue("displayUrl",v_(O.displayUrl));U.V.updateValue("imageUrl",fK1(O.image));O.navigationEndpoint&&g.SS(U.Z,O.navigationEndpoint);U.Rl=O.imageNavigationEndpoint||null;U.V.show();U.Ka.start();U.logVisibility(U.V.element,!0); U.j(U.V.element,"mouseover",function(){U.ol++}); return!0}; Rs5=function(U,O){if(U.api.isMinimized())return!1;var M=FC1(O.image),S=M;M.width0?(O=new Kb(U.api,U.U),O.AZ(U.playerOverlay), g.X(U,O)):g.K5(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(O)))}}else g.K5(Error("addCommonComponents() needs to be called before starting countdown."))}; um7=function(U){function O(M){return{toString:function(){return M()}}} U.macros.SURVEY_LOCAL_TIME_EPOCH_S=O(function(){var M=new Date;return(Math.round(M.valueOf()/1E3)+-1*M.getTimezoneOffset()*60).toString()}); U.macros.SURVEY_ELAPSED_MS=O(function(){return(Date.now()-U.B).toString()})}; qrw=function(U,O,M,S,p){vN.call(this,U,O,M,S,"survey-question-multi-select");this.ol=p;this.noneOfTheAbove=null;this.submitEndpoints=[];this.C=null;this.hide()}; iy1=function(U,O,M){U.noneOfTheAbove=new Pqe(U.api,U.layoutId,U.interactionLoggingClientData,U.EA);U.noneOfTheAbove.AZ(U.answers);U.noneOfTheAbove.init(jP("survey-none-of-the-above"),O,M)}; KWm=function(U){U.V.forEach(function(O){O.U.toggleButton(!1)}); Zy4(U,!0)}; Zy4=function(U,O){var M=U.X;U=re4(U);O=O===void 0?!1:O;M.U&&(U?M.U.hide():M.U.show(),O&&M.U instanceof x4&&!M.U.X&&OAi(M.U,!1));M.V&&(U?M.V.show():M.V.hide())}; re4=function(U){return U.V.some(function(O){return O.U.isToggled()})||U.noneOfTheAbove.button.isToggled()}; BN=function(U,O,M,S,p){vN.call(this,U,O,M,S,"survey-question-single-select",function(J){h.api.J().T("supports_multi_step_on_desktop")&&p([J])}); var h=this;this.hide()}; xt=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-ad-survey",W:[{K:"div",L:"ytp-ad-survey-questions"}]},"survey",O,M,S);this.questions=[];this.V=[];this.conditioningRules=[];this.U=0;this.C=this.ML("ytp-ad-survey-questions");this.api.J().T("fix_survey_color_contrast_on_destop")&&this.ML("ytp-ad-survey").classList.add("color-contrast-fix");this.api.J().T("web_enable_speedmaster")&&this.ML("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; LWe=function(U,O){var M=U.V[O],S;(S=U.B)==null||S.dispose();g.q(M,Cr)?axi(U,g.q(M,Cr),U.macros):g.q(M,QZ)&&EN5(U,g.q(M,QZ),U.macros);U.U=O}; axi=function(U,O,M){var S=new BN(U.api,U.layoutId,U.interactionLoggingClientData,U.EA,U.X.bind(U));S.AZ(U.C);S.init(jP("survey-question-single-select"),O,M);U.api.J().T("supports_multi_step_on_desktop")?U.B=S:U.questions.push(S);g.X(U,S)}; EN5=function(U,O,M){var S=new qrw(U.api,U.layoutId,U.interactionLoggingClientData,U.EA,U.X.bind(U));S.AZ(U.C);S.init(jP("survey-question-multi-select"),O,M);U.api.J().T("supports_multi_step_on_desktop")?U.B=S:U.questions.push(S);g.X(U,S)}; bw=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-ad-survey-interstitial",W:[{K:"div",L:"ytp-ad-survey-interstitial-contents",W:[{K:"div",L:"ytp-ad-survey-interstitial-logo",W:[{K:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",O,M,S);this.U=this.actionButton=null;this.interstitial=this.ML("ytp-ad-survey-interstitial");this.V=this.ML("ytp-ad-survey-interstitial-contents");this.text=this.ML("ytp-ad-survey-interstitial-text"); this.logoImage=this.ML("ytp-ad-survey-interstitial-logo-image");this.transition=new g.FY(this,500,!1,300);g.X(this,this.transition)}; VEe=function(U,O){O=O&&LU(O)||"";if(g.Ny(O))g.rz(Error("Found ThumbnailDetails without valid image URL"));else{var M=U.style;U=U.style.cssText;var S=document.implementation.createHTMLDocument("").createElement("DIV");S.style.cssText=U;U=nsy(S.style);M.cssText=[U,'background-image:url("'+O+'");'].join("")}}; oN1=function(U){var O=g.hN("html5-video-player");O&&g.ea(O,"ytp-ad-display-override",U)}; RI=function(U,O,M,S,p,h){h=h===void 0?0:h;JB.call(this,U,{K:"div",L:"ytp-preview-ad",W:[{K:"div",L:"ytp-preview-ad__text"}]},"preview-ad",O,M,S,p);var J=this;this.ol=h;this.V=0;this.X=-1;this.B=this.ML("ytp-preview-ad__text");switch(this.ol){case 1:this.B.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.FY(this,400,!1,100,function(){J.hide()}); g.X(this,this.transition);this.hide()}; tk=function(U,O,M,S){NH.call(this,U,{K:"img",L:"ytp-ad-avatar"},"ad-avatar",O,M,S);this.hide()}; kqJ=function(U){switch(U.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}}; Yt=function(U,O,M,S,p,h){p=p===void 0?!1:p;h=h===void 0?!1:h;NH.call(this,U,{K:"button",L:"ytp-ad-button-vm"},"ad-button",O,M,S);this.buttonText=this.buttonIcon=null;this.hide();this.U=p;this.V=h}; wYg=function(U,O,M,S,p){JB.call(this,U,{K:"div",OA:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{K:"div",L:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{K:"div",L:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",O,M,S,p);this.startMilliseconds=0;this.adAvatar=new tk(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.adAvatar);ed(this.element,this.adAvatar.element,0);this.headline=new Cb(this.api,this.layoutId, this.interactionLoggingClientData,this.EA);g.X(this,this.headline);this.headline.AZ(this.ML("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.description);this.description.AZ(this.ML("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Yt(this.api, this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.adButton);this.adButton.AZ(this.element);this.hide()}; mm=function(U,O,M,S){NH.call(this,U,{K:"button",L:"ytp-skip-ad-button",W:[{K:"div",L:"ytp-skip-ad-button__text"}]},"skip-button",O,M,S);var p=this;this.V=!1;this.X=this.ML("ytp-skip-ad-button__text");this.transition=new g.FY(this,500,!1,100,function(){p.hide()}); g.X(this,this.transition);this.U=new jp(this.element,15E3,5E3,.5,.5,!0);g.X(this,this.U);this.hide()}; U1y=function(U,O,M,S,p){JB.call(this,U,{K:"div",L:"ytp-skip-ad"},"skip-ad",O,M,S,p);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.B);this.B.AZ(this.element);this.hide()}; Ak=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-visit-advertiser-link"},"visit-advertiser-link",O,M,S);this.hide()}; II=function(U,O,M,S,p){NH.call(this,U,{K:"div",L:"ytp-ad-player-overlay-layout",W:[{K:"div",L:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",L:"ytp-ad-player-overlay-layout__ad-info-container",W:[U.J().T("delhi_modern_web_player")?{K:"div",L:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{K:"div",L:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",L:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",O,M,S);this.V= p;this.Ka=this.ML("ytp-ad-player-overlay-layout__player-card-container");this.B=this.ML("ytp-ad-player-overlay-layout__ad-info-container");this.ol=this.ML("ytp-ad-player-overlay-layout__skip-or-preview-container");this.QP=this.ML("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");U.J().T("delhi_modern_web_player")&&(this.X=this.ML("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; O7v=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-ad-grid-card-text",W:[{K:"div",L:"ytp-ad-grid-card-text__metadata",W:[{K:"div",L:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",L:"ytp-ad-grid-card-text__metadata__description",W:[{K:"div",L:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",L:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",L:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",O,M,S);this.headline=new Cb(this.api,this.layoutId,this.interactionLoggingClientData, this.EA);g.X(this,this.headline);this.headline.AZ(this.ML("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!0);g.X(this,this.moreInfoButton);this.moreInfoButton.AZ(this.ML("ytp-ad-grid-card-text__button"))}; PN=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",O,M,S);this.U=[]}; nF=function(U,O,M,S,p,h,J){JB.call(this,U,h,J,O,M,S,p);this.playerProgressOffsetMs=0;this.V=!1}; swy=function(U){var O=g.hN("html5-video-player");O&&g.ea(O,"ytp-ad-display-override",U)}; geC=function(U,O,M,S,p){nF.call(this,U,O,M,S,p,{K:"div",L:"ytp-display-underlay-text-grid-cards",W:[{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container",W:[{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {K:"div",L:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new PN(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.adGridCardCollection);this.adGridCardCollection.AZ(this.ML("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.adButton);this.adButton.AZ(this.ML("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.B=this.ML("ytp-display-underlay-text-grid-cards__content_container");this.X=this.ML("ytp-display-underlay-text-grid-cards__content_container__header")}; QC=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-ad-details-line"},"ad-details-line",O,M,S);this.U=[];this.hide()}; CF=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-image-background",W:[{K:"img",L:"ytp-image-background-image"}]},"image-background",O,M,S);this.hide()}; MmJ=function(U,O,M,S,p){JB.call(this,U,{K:"svg",L:"ytp-timed-pie-countdown",N:{viewBox:"0 0 20 20"},W:[{K:"circle",L:"ytp-timed-pie-countdown__background",N:{r:"10",cx:"10",cy:"10"}},{K:"circle",L:"ytp-timed-pie-countdown__inner",N:{r:"5",cx:"10",cy:"10"}},{K:"circle",L:"ytp-timed-pie-countdown__outer",N:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",O,M,S,p);this.B=this.ML("ytp-timed-pie-countdown__inner");this.V=Math.ceil(2*Math.PI*5);this.hide()}; Xz=function(U,O,M,S){NH.call(this,U,{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout",N:{tabindex:"0"},W:[{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",L:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",O,M,S);this.V=null;this.X=this.ML("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.B=new nE;g.X(this,this.B);this.hide()}; SwC=function(U){var O=g.hN("html5-video-player");O&&g.ea(O,"ytp-ad-display-override",U)}; pgJ=function(U){if(!U.adAvatar||!g.q(U.adAvatar,uw))return g.K5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!U.headline)return g.K5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!U.adBadge||!g.q(U.adBadge,qU))return g.K5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!U.adButton||!g.q(U.adButton,iw))return g.K5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!U.adInfoRenderer|| !g.q(U.adInfoRenderer,uY))return g.K5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;U=U.durationMilliseconds||0;return typeof U!=="number"||U<=0?(g.K5(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+U)),!1):!0}; Zi=function(U,O){O=O===void 0?2:O;g.H_.call(this);this.api=U;this.U=null;this.V7=new nE(this);g.X(this,this.V7);this.V=sxW;this.V7.j(this.api,"presentingplayerstatechange",this.qW);this.U=this.V7.j(this.api,"progresssync",this.kZ);this.Ei=O;this.Ei===1&&this.kZ()}; KF=function(U,O,M){Un.call(this,U);this.api=U;this.EA=O;this.V={};U=new g.r({K:"div",OA:["video-ads","ytp-ad-module"]});g.X(this,U);mq&&g.l3(U.element,"ytp-ads-tiny-mode");this.G=new RD(U.element);g.X(this,this.G);g.Z0(this.api,U.element,4);pH(M)&&(M=new g.r({K:"div",OA:["ytp-ad-underlay"]}),g.X(this,M),this.B=new RD(M.element),g.X(this,this.B),g.Z0(this.api,M.element,0));g.X(this,tsJ())}; hJh=function(U,O){U=g.Z9(U.V,O.id,null);U==null&&g.rz(Error("Component not found for element id: "+O.id));return U||null}; JUX=function(U){g.TT.call(this,U);var O=this;this.V=null;this.created=!1;this.B=U.J().T("h5_use_refactored_get_ad_break")?new saU(this.player):new qh(this.player);this.X=function(){if(O.V!=null)return O.V;var S=new y_W({KN:zt(O.U).KN,Up:zt(O.U).Up,S:O.player,i6:zt(O.U).i6,Il:O.U.U.Il,gC:zt(O.U).gC,Zq:O.U.U.Zq});O.V=S.eI;return O.V}; this.U=new T5i(this.player,this,this.B,this.X);g.X(this,this.U);var M=U.J();!IL(M)||g.ik(M)||LL(M)||(g.X(this,new KF(U,zt(this.U).EA,zt(this.U).i6)),g.X(this,new joU(U)))}; yUl=function(U){U.created!==U.loaded&&DY("Created and loaded are out of sync")}; lqh=function(U){g.TT.prototype.load.call(U);var O=zt(U.U).i6;try{U.player.getRootNode().classList.add("ad-created")}catch(F){DY(F instanceof Error?F:String(F))}var M=U.player.getVideoData(1),S=M&&M.videoId||"",p=M&&M.getPlayerResponse()||{},h=(!U.player.J().experiments.F0("debug_ignore_ad_placements")&&p&&p.adPlacements||[]).map(function(F){return F.adPlacementRenderer}),J=((p==null?void 0:p.adSlots)||[]).map(function(F){return g.q(F,rR)}); p=p.playerConfig&&p.playerConfig.daiConfig&&p.playerConfig.daiConfig.enableDai||!1;M&&M.KE();h=fq4(h,J,O,zt(U.U).ud);J=M&&M.clientPlaybackNonce||"";M=M&&M.v5||!1;if(YF(O,!0)&&M){var f;O={};(f=U.player.getVideoData())==null||f.al("p_cpb",(O.cc=J,O))}f=1E3*U.player.getDuration(1);F4l(U);U.U.U.tY.Jo(J,f,M,h.Kh,h.Yc,h.Kh,p,S)}; F4l=function(U){var O,M;if(M=(O=U.player.getVideoData(1))==null||!O.v5)O=U.player.J(),M=IL(O)&&!g.Au(O)&&O.playerStyle==="desktop-polymer";M&&(U=U.player.getInternalApi(),U.addEventListener("updateKevlarOrC3Companion",hYg),U.addEventListener("updateEngagementPanelAction",Jrw),U.addEventListener("changeEngagementPanelVisibility",yre),window.addEventListener("yt-navigate-start",Fse))}; rX=function(U,O){O===U.q7&&(U.q7=void 0)}; Gyh=function(U){var O=zt(U.U).uV,M=O.X().Sd("SLOT_TYPE_PLAYER_BYTES",1);O=N6(O.qL.get(),1).clientPlaybackNonce;var S=!1;M=g.D(M);for(var p=M.next();!p.done;p=M.next()){p=p.value;var h=p.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p.slotEntryTrigger instanceof Y3?p.slotEntryTrigger.h_:void 0;h&&h===O&&(S&&DY("More than 1 preroll playerBytes slot detected",p),S=!0)}S||Sb(zt(U.U).QV)}; $1J=function(U){if(Lw(zt(U.U).i6))return!0;var O="";U=g.D(zt(U.U).gC.BU.keys());for(var M=U.next();!M.done;M=U.next()){M=M.value;if(M.slotType==="SLOT_TYPE_PLAYER_BYTES"&&M.JZ==="core")return!0;O+=M.slotType+" "}Math.random()<.01&&DY("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:O});return!1}; TWE=function(U){U=g.D(zt(U.U).gC.BU.values());for(var O=U.next();!O.done;O=U.next())if(O.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; vZJ=function(U,O,M,S,p,h){M=M===void 0?[]:M;S=S===void 0?"":S;p=p===void 0?"":p;var J=zt(U.U).i6,f=U.player.getVideoData(1);f&&f.getPlayerResponse();f&&f.KE();M=fq4(O,M,J,zt(U.U).ud);RKw(zt(U.U).OX,S,M.Kh,M.Yc,O,p,h)}; fq4=function(U,O,M,S){O={Kh:[],Yc:O};U=g.D(U);for(var p=U.next();!p.done;p=U.next())if((p=p.value)&&p.renderer!=null){var h=p.renderer;if(!M.S.J().T("html5_enable_vod_lasr_with_notify_pacf")){var J=void 0,f=void 0,F=void 0,l=void 0,G=S;g.q((l=h.sandwichedLinearAdRenderer)==null?void 0:l.adVideoStart,dw)?(J=g.q((F=h.sandwichedLinearAdRenderer)==null?void 0:F.adVideoStart,dw),J=Z_w(J,G),g.oR(h.sandwichedLinearAdRenderer.adVideoStart,dw,J)):g.q((f=h.linearAdSequenceRenderer)==null?void 0:f.adStart,dw)&& (F=g.q((J=h.linearAdSequenceRenderer)==null?void 0:J.adStart,dw),J=Z_w(F,G),g.oR(h.linearAdSequenceRenderer.adStart,dw,J))}O.Kh.push(p)}return O}; g.aI=function(U){if(typeof DOMParser!="undefined")return J5(new DOMParser,mNW(U),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.E0=function(U){g.C.call(this);this.callback=U;this.U=new b3(0,0,.4,0,.2,1,1,1);this.delay=new g.wj(this.next,window,this);g.X(this,this.delay)}; g.jwD=function(U){var O=U.J();return O.FI&&!O.B&&g.Pn(O)?U.isEmbedsShortsMode()?(U=U.Wb(),Math.min(U.width,U.height)>=315):!U.Ug():!1}; g.LF=function(U){g.r.call(this,{K:"div",L:"ytp-more-videos-view",N:{tabIndex:"-1"}});var O=this;this.api=U;this.V=!0;this.B=new g.Zj(this);this.U=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.X=this.scrollPosition=0;this.title=new g.r({K:"h2",L:"ytp-related-title",UA:"{{title}}"});this.previous=new g.r({K:"button",OA:["ytp-button","ytp-previous"],N:{"aria-label":"Mostrar videos sugeridos anteriores"},W:[g.Rd()]});this.D=new g.E0(function(M){O.suggestions.element.scrollLeft= -M}); this.next=new g.r({K:"button",OA:["ytp-button","ytp-next"],N:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},W:[g.ta()]});g.X(this,this.B);this.C=U.J().X;g.X(this,this.title);this.title.AZ(this.element);this.suggestions=new g.r({K:"div",L:"ytp-suggestions"});g.X(this,this.suggestions);this.suggestions.AZ(this.element);g.X(this,this.previous);this.previous.AZ(this.element);this.previous.listen("click",this.Lk,this);g.X(this,this.D);eJC(this);g.X(this,this.next);this.next.AZ(this.element);this.next.listen("click", this.m9,this);this.B.j(this.api,"appresize",this.gi);this.B.j(this.api,"fullscreentoggled",this.lS);this.B.j(this.api,"videodatachange",this.onVideoDataChange);this.gi(this.api.g7().getPlayerSize());this.onVideoDataChange()}; eJC=function(U){for(var O={oy:0};O.oy<16;O={oy:O.oy},++O.oy){var M=new g.r({K:"a",L:"ytp-suggestion-link",N:{href:"{{link}}",target:U.api.J().Z,"aria-label":"{{aria_label}}"},W:[{K:"div",L:"ytp-suggestion-image"},{K:"div",L:"ytp-suggestion-overlay",N:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{K:"div",L:"ytp-suggestion-title",UA:"{{title}}"},{K:"div",L:"ytp-suggestion-author",UA:"{{author_and_views}}"},{K:"div",N:{"data-is-live":"{{is_live}}"},L:"ytp-suggestion-duration", UA:"{{duration}}"}]}]});g.X(U,M);var S=M.ML("ytp-suggestion-link");g.j3(S,"transitionDelay",O.oy/20+"s");U.B.j(S,"click",function(p){return function(h){var J=p.oy;if(U.V){var f=U.suggestionData[J],F=f.sessionData;U.C&&U.api.T("web_player_log_click_before_generating_ve_conversion_params")?(U.api.logClick(U.U[J].element),J=f.qn(),f={},g.u8(U.api,f),J=g.pj(J,f),g.jV(J,U.api,h)):g.TP(h,U.api,U.C,F||void 0)&&U.api.CJ(f.videoId,F,f.playlistId)}else h.preventDefault(),document.activeElement.blur()}}(O)); M.AZ(U.suggestions.element);U.U.push(M);U.api.createServerVe(M.element,M)}}; H7D=function(U){if(U.api.J().T("web_player_log_click_before_generating_ve_conversion_params"))for(var O=Math.floor(-U.scrollPosition/(U.X+8)),M=Math.min(O+U.columns,U.suggestionData.length)-1;O<=M;O++)U.api.logVisibility(U.U[O].element,!0)}; g.VC=function(U){var O=U.api.Wx()?32:16;O=U.Y/2+O;U.next.element.style.bottom=O+"px";U.previous.element.style.bottom=O+"px";O=U.scrollPosition;var M=U.containerWidth-U.suggestionData.length*(U.X+8);g.ea(U.element,"ytp-scroll-min",O>=0);g.ea(U.element,"ytp-scroll-max",O<=M)}; cUl=function(U){for(var O=U.suggestionData.length,M=0;M>>0)+"_",p=0;return O}); $e("Symbol.iterator",function(U){if(U)return U;U=Symbol("Symbol.iterator");for(var O="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),M=0;M=h}}); $e("String.prototype.endsWith",function(U){return U?U:function(O,M){var S=AU(this,O,"endsWith");O+="";M===void 0&&(M=S.length);M=Math.max(0,Math.min(M|0,S.length));for(var p=O.length;p>0&&M>0;)if(S[--M]!=O[--p])return!1;return p<=0}}); $e("Array.prototype.entries",function(U){return U?U:function(){return Pg(this,function(O,M){return[O,M]})}}); $e("Math.imul",function(U){return U?U:function(O,M){O=Number(O);M=Number(M);var S=O&65535,p=M&65535;return S*p+((O>>>16&65535)*p+S*(M>>>16&65535)<<16>>>0)|0}}); $e("Math.trunc",function(U){return U?U:function(O){O=Number(O);if(isNaN(O)||O===Infinity||O===-Infinity||O===0)return O;var M=Math.floor(Math.abs(O));return O<0?-M:M}}); $e("Math.clz32",function(U){return U?U:function(O){O=Number(O)>>>0;if(O===0)return 32;var M=0;(O&4294901760)===0&&(O<<=16,M+=16);(O&4278190080)===0&&(O<<=8,M+=8);(O&4026531840)===0&&(O<<=4,M+=4);(O&3221225472)===0&&(O<<=2,M+=2);(O&2147483648)===0&&M++;return M}}); $e("Number.isNaN",function(U){return U?U:function(O){return typeof O==="number"&&isNaN(O)}}); $e("Array.prototype.keys",function(U){return U?U:function(){return Pg(this,function(O){return O})}}); $e("Array.prototype.values",function(U){return U?U:function(){return Pg(this,function(O,M){return M})}}); $e("Array.prototype.fill",function(U){return U?U:function(O,M,S){var p=this.length||0;M<0&&(M=Math.max(0,p+M));if(S==null||S>p)S=p;S=Number(S);S<0&&(S=Math.max(0,p+S));for(M=Number(M||0);M1342177279)throw new RangeError("Invalid count value");O|=0;for(var S="";O;)if(O&1&&(S+=M),O>>>=1)M+=M;return S}}); $e("Promise.prototype.finally",function(U){return U?U:function(O){return this.then(function(M){return Promise.resolve(O()).then(function(){return M})},function(M){return Promise.resolve(O()).then(function(){throw M; })})}}); $e("String.prototype.padStart",function(U){return U?U:function(O,M){var S=AU(this,null,"padStart");O-=S.length;M=M!==void 0?String(M):" ";return(O>0&&M?M.repeat(Math.ceil(O/M.length)).substring(0,O):"")+S}}); $e("Array.prototype.findIndex",function(U){return U?U:function(O,M){return $1w(this,O,M).w_}}); $e("Math.sign",function(U){return U?U:function(O){O=Number(O);return O===0||isNaN(O)?O:O>0?1:-1}}); $e("WeakSet",function(U){function O(M){this.U=new WeakMap;if(M){M=g.D(M);for(var S;!(S=M.next()).done;)this.add(S.value)}} if(function(){if(!U||!Object.seal)return!1;try{var M=Object.seal({}),S=Object.seal({}),p=new U([M]);if(!p.has(M)||p.has(S))return!1;p.delete(M);p.add(S);return!p.has(M)&&p.has(S)}catch(h){return!1}}())return U; O.prototype.add=function(M){this.U.set(M,!0);return this}; O.prototype.has=function(M){return this.U.has(M)}; O.prototype.delete=function(M){return this.U.delete(M)}; return O}); $e("Array.prototype.copyWithin",function(U){function O(M){M=Number(M);return M===Infinity||M===-Infinity?M:M|0} return U?U:function(M,S,p){var h=this.length;M=O(M);S=O(S);p=p===void 0?h:O(p);M=M<0?Math.max(h+M,0):Math.min(M,h);S=S<0?Math.max(h+S,0):Math.min(S,h);p=p<0?Math.max(h+p,0):Math.min(p,h);if(MS;)--p in this?this[--M]=this[p]:delete this[--M];return this}}); $e("Int8Array.prototype.copyWithin",Qi);$e("Uint8Array.prototype.copyWithin",Qi);$e("Uint8ClampedArray.prototype.copyWithin",Qi);$e("Int16Array.prototype.copyWithin",Qi);$e("Uint16Array.prototype.copyWithin",Qi);$e("Int32Array.prototype.copyWithin",Qi);$e("Uint32Array.prototype.copyWithin",Qi);$e("Float32Array.prototype.copyWithin",Qi);$e("Float64Array.prototype.copyWithin",Qi);$e("Array.prototype.at",function(U){return U?U:C7}); $e("Int8Array.prototype.at",Xe);$e("Uint8Array.prototype.at",Xe);$e("Uint8ClampedArray.prototype.at",Xe);$e("Int16Array.prototype.at",Xe);$e("Uint16Array.prototype.at",Xe);$e("Int32Array.prototype.at",Xe);$e("Uint32Array.prototype.at",Xe);$e("Float32Array.prototype.at",Xe);$e("Float64Array.prototype.at",Xe);$e("String.prototype.at",function(U){return U?U:C7}); $e("Array.prototype.findLastIndex",function(U){return U?U:function(O,M){return TWe(this,O,M).w_}}); $e("Int8Array.prototype.findLastIndex",u5);$e("Uint8Array.prototype.findLastIndex",u5);$e("Uint8ClampedArray.prototype.findLastIndex",u5);$e("Int16Array.prototype.findLastIndex",u5);$e("Uint16Array.prototype.findLastIndex",u5);$e("Int32Array.prototype.findLastIndex",u5);$e("Uint32Array.prototype.findLastIndex",u5);$e("Float32Array.prototype.findLastIndex",u5);$e("Float64Array.prototype.findLastIndex",u5);$e("Number.parseInt",function(U){return U||parseInt});var lK,ow,jwi;lK=lK||{};g.q1=this||self;ow="closure_uid_"+(Math.random()*1E9>>>0);jwi=0;g.c(ph,Error);g.C.prototype.Po=!1;g.C.prototype.GY=function(){return this.Po}; g.C.prototype.dispose=function(){this.Po||(this.Po=!0,this.VP())}; g.C.prototype[Symbol.dispose]=function(){this.dispose()}; g.C.prototype.addOnDisposeCallback=function(U,O){this.Po?O!==void 0?U.call(O):U():(this.Sx||(this.Sx=[]),O&&(U=U.bind(O)),this.Sx.push(U))}; g.C.prototype.VP=function(){if(this.Sx)for(;this.Sx.length;)this.Sx.shift()()};var W4m;g.c($E,g.C);$E.prototype.share=function(){if(this.GY())throw Error("E:AD");this.X++;return this}; $E.prototype.dispose=function(){--this.X||g.C.prototype.dispose.call(this)}; W4m=Symbol.dispose;NWe.prototype.Mw=function(U,O){this.U.Mw("/client_streamz/bg/frs",U,O)}; ve1.prototype.Mw=function(U,O,M,S,p,h){this.U.Mw("/client_streamz/bg/wrl",U,O,M,S,p,h)}; BWi.prototype.HJ=function(U,O){this.U.SG("/client_streamz/bg/ec",U,O)}; x1m.prototype.Mw=function(U,O,M){this.U.Mw("/client_streamz/bg/el",U,O,M)}; b71.prototype.HJ=function(U,O){this.U.SG("/client_streamz/bg/cec",U,O)}; RJw.prototype.HJ=function(U,O){this.U.SG("/client_streamz/bg/po/csc",U,O)}; tmJ.prototype.HJ=function(U,O){this.U.SG("/client_streamz/bg/po/ctav",U,O)}; Yw1.prototype.HJ=function(U,O){this.U.SG("/client_streamz/bg/po/cwsc",U,O)};g.SD(eD,Error);eD.prototype.name="CustomError";var sXw;var Eo=void 0,aX,Rqe=typeof TextDecoder!=="undefined",ne4,P55=typeof String.prototype.isWellFormed==="function",Iqi=typeof TextEncoder!=="undefined";var bQ=String.prototype.trim?function(U){return U.trim()}:function(U){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(U)[1]},RQm=/&/g,t9e=//g,mow=/"/g,Af4=/'/g,IPe=/\x00/g,bc4=/[\x00&<>"']/;var x1D=rW(1,!0),mL=rW(610401301,!1);rW(899588437,!1);rW(725719775,!1);var b7y=rW(513659523,!1),RJJ=rW(568333945,!1);rW(651175828,!1);rW(722764542,!1);var L35=rW(1981196515,!1);rW(2147483644,!1);rW(2147483645,!1);rW(2147483646,x1D);rW(2147483647,!0);var Ap=!!g.K7("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var IJ,tmX=g.q1.navigator;IJ=tmX?tmX.userAgentData||null:null;var oe7,IA,A6;oe7=Array.prototype.indexOf?function(U,O){return Array.prototype.indexOf.call(U,O,void 0)}:function(U,O){if(typeof U==="string")return typeof O!=="string"||O.length!=1?-1:U.indexOf(O,0); for(var M=0;M=0;M--)if(M in U&&U[M]===O)return M;return-1}; g.T$=Array.prototype.forEach?function(U,O,M){Array.prototype.forEach.call(U,O,M)}:function(U,O,M){for(var S=U.length,p=typeof U==="string"?U.split(""):U,h=0;hparseFloat(neL)){P5Q=String(oI);break a}}P5Q=neL}var ypy=P5Q,hXw={};var SQ,pE;g.Ej=XC();SQ=Kh()||nh("iPod");pE=nh("iPad");g.IK=Z7m();g.XW=uQ();g.bh=iQ()&&!rJ();var FLm={},Wp=null,lvw=Hc||g.yG||typeof g.q1.btoa=="function";var dy1=typeof Uint8Array!=="undefined",eXg=!g.DU&&typeof btoa==="function",Hhw=/[-_.]/g,TJy={"-":"+",_:"/",".":"="},vp={};N2.prototype.isEmpty=function(){return this.U==null}; N2.prototype.sizeBytes=function(){var U=x$(this);return U?U.length:0}; var DyU;var NJU=void 0;var mj=typeof Symbol==="function"&&typeof Symbol()==="symbol",XgC=Y$("jas",void 0,!0),jG=Y$(void 0,"1oa"),Yj=Y$(void 0,Symbol()),ueJ=Y$(void 0,"0ub"),fT7=Y$(void 0,"0actk"),QH=Y$("m_m","ATA",!0),RXW=Y$(void 0,"mrtk"),MSJ=Y$(void 0,"vps");Math.max.apply(Math,g.N(Object.values({oTP:1,yaP:2,azl:4,xUP:8,zKY:16,RKA:32,rtc:64,TBg:128,AUy:256,QBG:512,g2P:1024,u$G:2048,wbd:4096,thn:8192,tU0:16384,BCQ:32768})));var BJ7={enZ:{value:0,configurable:!0,writable:!0,enumerable:!1}},vEe=Object.defineProperties,Ao=mj?XgC:"enZ",pX,qwh=[];Pp(qwh,55);pX=Object.freeze(qwh);var bhq=typeof QH==="symbol",xyw={},XN={},je5=Object.freeze({}),Kt={};var Api=EV(function(U){return typeof U==="number"}),myJ=EV(function(U){return typeof U==="string"}),Ive=EV(function(U){return typeof U==="boolean"}),TB=EV(function(U){return U!=null&&typeof U==="object"&&typeof U.then==="function"}),$D=EV(function(U){return!!U&&(typeof U==="object"||typeof U==="function")});var oe=typeof g.q1.BigInt==="function"&&typeof g.q1.BigInt(0)==="bigint";var Qf=EV(function(U){return oe?U>=i7J&&U<=Z7D:U[0]==="-"?PQW(U,K4p):PQW(U,rUQ)}),K4p=Number.MIN_SAFE_INTEGER.toString(),i7J=oe?BigInt(Number.MIN_SAFE_INTEGER):void 0,rUQ=Number.MAX_SAFE_INTEGER.toString(),Z7D=oe?BigInt(Number.MAX_SAFE_INTEGER):void 0;var N3w=typeof Uint8Array.prototype.slice==="function",w3=0,UB=0,Uo1;var DP=typeof BigInt==="function"?BigInt.asIntN:void 0,oEU=typeof BigInt==="function"?BigInt.asUintN:void 0,vV=Number.isSafeInteger,lU=Number.isFinite,BV=Math.trunc,uC4=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var SVq={};var PV;var uU,pp4;var Htm=k$(0);g.y=d2e.prototype;g.y.init=function(U,O,M,S){var p=S===void 0?{}:S;S=p.Fd===void 0?!1:p.Fd;p=p.F1===void 0?!1:p.F1;this.Fd=S;this.F1=p;U&&(U=Ad(U,this.F1),this.V=U.buffer,this.G=U.CG,this.X=O||0,this.B=M!==void 0?this.X+M:this.V.length,this.U=this.X)}; g.y.free=function(){this.clear();qs.length<100&&qs.push(this)}; g.y.clear=function(){this.V=null;this.G=!1;this.U=this.B=this.X=0;this.Fd=!1}; g.y.reset=function(){this.U=this.X}; g.y.AR=function(){var U=this.C;U||(U=this.V,U=this.C=new DataView(U.buffer,U.byteOffset,U.byteLength));return U}; var qs=[];id.prototype.free=function(){this.U.clear();this.V=this.X=-1;Zo.length<100&&Zo.push(this)}; id.prototype.reset=function(){this.U.reset();this.B=this.U.U;this.V=this.X=-1}; var Zo=[];V5.prototype.toJSON=function(){return XS(this)}; V5.prototype.g3=function(U){return JSON.stringify(XS(this,U))}; V5.prototype.clone=function(){var U=this;Ct(U);var O=U;Ct(O);O=O.o_;O=U=new U.constructor(nc(O,O[Ao]|0,Kc,!0,!0));Ct(O);nt(O.o_);return U}; V5.prototype.CG=function(){return uH(this)}; V5.prototype[QH]=xyw;V5.prototype.toString=function(){Ct(this);return this.o_.toString()};var m21,IT7;wH.prototype.length=function(){return this.U.length}; wH.prototype.end=function(){var U=this.U;this.U=[];return U};var h1=p3(),aqE=p3(),Eep=p3(),L4q=p3(),Vmh=p3(),oeh=p3(),kyD=p3(),wgX=p3();var Ztg=yS(function(U,O,M,S,p){if(U.V!==2)return!1;rH(U,eG(O,S,M),p);return!0},it5),Kj1=yS(function(U,O,M,S,p){if(U.V!==2)return!1; rH(U,eG(O,S,M),p);return!0},it5),z3=Symbol(),$C=Symbol(),eX=Symbol(),o$m=Symbol(),E$J=Symbol(),f3,Fs;var Uyl=d1(function(U,O,M){if(U.V!==1)return!1;Nk(O,M,Xk(U.U));return!0},vJ,kyD),OhJ=d1(function(U,O,M){if(U.V!==1)return!1; U=Xk(U.U);Nk(O,M,U===0?void 0:U);return!0},vJ,kyD),sJC=d1(function(U,O,M,S){if(U.V!==1)return!1; $y(O,M,S,Xk(U.U));return!0},vJ,kyD),gE4=d1(function(U,O,M){if(U.V!==0)return!1; Nk(O,M,Pa(U.U));return!0},BJ,Vmh),MDD=d1(function(U,O,M){if(U.V!==0)return!1; U=Pa(U.U);Nk(O,M,U===0?void 0:U);return!0},BJ,Vmh),S4J=d1(function(U,O,M,S){if(U.V!==0)return!1; $y(O,M,S,Pa(U.U));return!0},BJ,Vmh),pqh=d1(function(U,O,M){if(U.V!==0)return!1; Nk(O,M,nX(U.U));return!0},xC,L4q),hX4=d1(function(U,O,M){if(U.V!==0)return!1; U=nX(U.U);Nk(O,M,U===0?void 0:U);return!0},xC,L4q),JpD=d1(function(U,O,M,S){if(U.V!==0)return!1; $y(O,M,S,nX(U.U));return!0},xC,L4q),ypl=d1(function(U,O,M){if(U.V!==1)return!1; Nk(O,M,CX(U.U));return!0},function(U,O,M){uNy(U,M,kly(O))},oeh),fvp=WJ(function(U,O,M){if(U.V!==1&&U.V!==2)return!1; O=y5(O,O[Ao]|0,M);if(U.V==2)for(M=nX(U.U)>>>0,M=U.U.U+M;U.U.U>>0);return!0},function(U,O,M){O=e9(O); O!=null&&O!=null&&(Mk(U,M,0),Op(U.U,O))},p3()),eXq=d1(function(U,O,M){if(U.V!==0)return!1; Nk(O,M,nX(U.U));return!0},function(U,O,M){O=j9(O); O!=null&&(O=parseInt(O,10),Mk(U,M,0),n$J(U.U,O))},p3());SBe.prototype.register=function(){Hp(this)};g.c(hQ5,V5);g.c(t1,V5);var PJ=[1,2,3];var Hh4=[0,PJ,$yL,JpD,lv4];var zXC=[0,wX,[0,Uyl,gE4]];g.c(YC,V5);var Ic=[1,2,3];var cph=[0,Ic,S4J,sJC,OW,zXC];g.c(mh,V5);var Dyp=[0,wX,Hh4,cph];var dyy=[0,[1,2,3],OW,[0,kt,-1,FLD],OW,[0,kt,-1,pqh,FLD],OW,[0,kt]];g.c(A1,V5);A1.prototype.Uu=function(){var U=SG(this,3,bU,3,!0);ZT(U);return U[void 0]};A1.prototype.V=pVJ([0,kt,dyy,Glh,wX,Dyp,ypl,fvp]);g.c(yf7,V5);var Hc7=globalThis.trustedTypes,n3;C3.prototype.toString=function(){return this.U+""};qk.prototype.toString=function(){return this.U}; var Doe=new qk("about:invalid#zClosurez");var q0y=K3("tel"),XNU=K3("sms"),cfw=[K3("data"),K3("http"),K3("https"),K3("mailto"),K3("ftp"),new Zh(function(U){return/^[^:]*([/?#]|$)/.test(U)})],doy=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;L3.prototype.toString=function(){return this.U+""};UG.prototype.toString=function(){return this.U+""};Mm.prototype.toString=function(){return this.U};var p1={};g.WLJ=String.prototype.repeat?function(U,O){return U.repeat(O)}:function(U,O){return Array(O+1).join(U)};g.y=ew.prototype;g.y.isEnabled=function(){if(!g.q1.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{yb:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.y.set=function(U,O,M){var S=!1;if(typeof M==="object"){var p=M.zX0;S=M.secure||!1;var h=M.domain||void 0;var J=M.path||void 0;var f=M.yb}if(/[;=\s]/.test(U))throw Error('Invalid cookie name "'+U+'"');if(/[;\r\n]/.test(O))throw Error('Invalid cookie value "'+O+'"');f===void 0&&(f=-1);M=h?";domain="+h:"";J=J?";path="+J:"";S=S?";secure":"";f=f<0?"":f==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+f*1E3)).toUTCString();this.U.cookie=U+"="+O+M+J+f+S+(p!=null?";samesite="+ p:"")}; g.y.get=function(U,O){for(var M=U+"=",S=(this.U.cookie||"").split(";"),p=0,h;p=0;O--)this.remove(U[O])}; var Z2=new ew(typeof document=="undefined"?null:document);zx.prototype.compress=function(U){var O,M,S,p;return g.A(function(h){switch(h.U){case 1:return O=new CompressionStream("gzip"),M=(new Response(O.readable)).arrayBuffer(),S=O.writable.getWriter(),g.Y(h,S.write((new TextEncoder).encode(U)),2);case 2:return g.Y(h,S.close(),3);case 3:return p=Uint8Array,g.Y(h,M,4);case 4:return h.return(new p(h.V))}})}; zx.prototype.isSupported=function(U){return U<1024?!1:typeof CompressionStream!=="undefined"};g.c(cy,V5);D9.prototype.setInterval=function(U){this.intervalMs=U;this.e9&&this.enabled?(this.stop(),this.start()):this.e9&&this.stop()}; D9.prototype.start=function(){var U=this;this.enabled=!0;this.e9||(this.e9=setTimeout(function(){U.tick()},this.intervalMs),this.V=this.U())}; D9.prototype.stop=function(){this.enabled=!1;this.e9&&(clearTimeout(this.e9),this.e9=void 0)}; D9.prototype.tick=function(){var U=this;if(this.enabled){var O=Math.max(this.U()-this.V,0);O0?M:void 0));M=wf(M,4,TH(p>0?p:void 0));M=wf(M,5,TH(h>0?h:void 0));Ct(M);p=M.o_;h=p[Ao]|0;M=uH(M,h)?M:new M.constructor(nc(p,h,Kc,!0,!0));z4(J,Wd,10,M)}J=this.U.clone();M=Date.now().toString();J=wf(J,4,No(M));U=ca(J,m_,3,U.slice());S&&(J=new di,S=wf(J,13, TH(S)),J=new Wy,S=z4(J,di,2,S),J=new YS,S=z4(J,Wy,1,S),S=Yy(S,2,9),z4(U,YS,18,S));O&&bd(U,14,O);return U};var Adm=function(){if(!g.q1.addEventListener||!Object.defineProperty)return!1;var U=!1,O=Object.defineProperty({},"passive",{get:function(){U=!0}}); try{var M=function(){}; g.q1.addEventListener("test",M,O);g.q1.removeEventListener("test",M,O)}catch(S){}return U}();var Fm4=eZ7("AnimationEnd"),cL=eZ7("TransitionEnd");g.na.prototype.V=0;g.na.prototype.reset=function(){this.U=this.B=this.X;this.V=0}; g.na.prototype.getValue=function(){return this.B};g.c(bg,V5);var NJp=Rc(bg);g.c(M9y,V5);var g7=new SBe;g.c(u0,g.C);g.y=u0.prototype;g.y.VP=function(){XV(this);this.V.stop();this.Ca.stop();g.C.prototype.VP.call(this)}; g.y.dispatch=function(U){if(U instanceof m_)this.log(U);else try{var O=new m_,M=U.g3();var S=RX(O,8,M);this.log(S)}catch(p){qW(this,4,1)}}; g.y.log=function(U){qW(this,2,1);if(this.Ka){U=U.clone();var O=this.hZ++;U=bd(U,21,O);this.componentId&&RX(U,26,this.componentId);O=U;var M=op(O,1);var S=S===void 0?!1:S;var p=typeof M;S=M==null?M:p==="bigint"?String(DP(64,M)):GH(M)?p==="string"?cV(M):S?df(M):WV(M):void 0;S==null&&(S=Date.now(),S=Number.isFinite(S)?S.toString():"0",wf(O,1,No(S)));S=op(O,15);S!=null&&(typeof S==="bigint"?Qf(S)?S=Number(S):(S=DP(64,S),S=Qf(S)?Number(S):String(S)):S=GH(S)?typeof S==="number"?WV(S):cV(S):void 0);S!=null|| bd(O,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(S=this.experimentIds.clone(),z4(O,cy,16,S));qW(this,1,1);O=this.U.length-1E3+1;O>0&&(this.U.splice(0,O),this.X+=O,qW(this,3,O));this.U.push(U);this.bE||this.V.enabled||this.V.start()}}; g.y.flush=function(U,O){var M=this;if(this.U.length===0)U&&U();else if(this.QP&&this.yP)this.B.V=3,dsi(this);else{var S=Date.now();if(this.HA>S&&this.sA0&&(M.sA=Date.now(),M.HA=M.sA+e);var W;Ct(H);e=My(Yj);if(z=mj&&e)Ct(H),z=((W=H.o_[e])==null?void 0:W[175237375])!=null;z&&to(ueJ,3);W=g7.U?g7.V(H,g7.U,175237375,g7.B):g7.V(H,175237375,null,g7.B);if(W=W===null?void 0:W)W=fh(W,1,-1),W!==-1&&(M.G=new g.na(W<1?1:W,3E5,.1), M.V.setInterval(M.G.getValue()))}}U&&U();M.C=0},G=function(e,H){var z=hp(h,m_,3); var W=Number(zqw(h,14));g.QG(M.G);M.V.setInterval(M.G.getValue());e===401&&J&&(M.TY=J);W&&(M.X+=W);H===void 0&&(H=M.isRetryable(e));H&&(M.U=z.concat(M.U),M.bE||M.V.enabled||M.V.start());qW(M,7,1);O&&O("net-send-failed",e);++M.C},T=function(){M.network&&M.network.send(F,l,G)}; f?f.then(function(e){qW(M,5,p);F.requestHeaders["Content-Encoding"]="gzip";F.requestHeaders["Content-Type"]="application/binary";F.body=e;F.Rh=2;T()},function(){qW(M,6,p); T()}):T()}}}}; g.y.isRetryable=function(U){return 500<=U&&U<600||U===401||U===0};i0.prototype.send=function(U,O,M){var S=this,p,h,J,f,F,l,G,T,e,H;return g.A(function(z){switch(z.U){case 1:return h=(p=S.lW?new AbortController:void 0)?setTimeout(function(){p.abort()},U.timeoutMillis):void 0,g.dW(z,2,3),J=Object.assign({},{method:U.requestType, headers:Object.assign({},U.requestHeaders)},U.body&&{body:U.body},U.withCredentials&&{credentials:"include"},{signal:U.timeoutMillis&&p?p.signal:null}),g.Y(z,fetch(U.url,J),5);case 5:f=z.V;if(f.status!==200){(F=M)==null||F(f.status);z.tZ(3);break}if((l=O)==null){z.tZ(7);break}return g.Y(z,f.text(),8);case 8:l(z.V);case 7:case 3:g.xe(z);clearTimeout(h);g.Rw(z,0);break;case 2:G=g.Bg(z);switch((T=G)==null?void 0:T.name){case "AbortError":(e=M)==null||e(408);break;default:(H=M)==null||H(400)}z.tZ(3)}})}; i0.prototype.bP=function(){return 4};g.c(ZA,g.C);ZA.prototype.Nx=function(){this.G=!0;return this}; ZA.prototype.build=function(){this.network||(this.network=new i0);var U=new u0({logSource:this.logSource,w0:this.w0?this.w0:qBU,sessionIndex:this.sessionIndex,K0G:this.Eq,Cs:this.X,bE:!1,Nx:this.G,Vj:this.Vj,network:this.network});g.X(this,U);if(this.V){var O=this.V,M=Pd(U.B);RX(M,7,O)}U.D=new zx;this.componentId&&(U.componentId=this.componentId);this.Cd&&(U.Cd=this.Cd);this.pageId&&(U.pageId=this.pageId);this.U&&((M=this.U)?(U.experimentIds||(U.experimentIds=new cy),O=U.experimentIds,M=M.g3(),RX(O, 4,M)):U.experimentIds&&wf(U.experimentIds,4));this.B&&(U.QP=U.yP);jXw(U.B);this.network.d6&&this.network.d6(this.logSource);this.network.l2P&&this.network.l2P(U);return U};g.c(Ka,g.C);Ka.prototype.flush=function(U){U=U||[];if(U.length){for(var O=new yf7,M=[],S=0;S-1?(O=U[J],M||(O.vX=!1)):(O=new tG7(O,this.src,h,!!S,p),O.vX=M,U.push(O));return O}; g.y.remove=function(U,O,M,S){U=U.toString();if(!(U in this.listeners))return!1;var p=this.listeners[U];O=MF(p,O,M,S);return O>-1?(Og(p[O]),g.UV(p,O),p.length==0&&(delete this.listeners[U],this.U--),!0):!1}; g.y.removeAll=function(U){U=U&&U.toString();var O=0,M;for(M in this.listeners)if(!U||M==U){for(var S=this.listeners[M],p=0;p-1?U[p]:null}; g.y.hasListener=function(U,O){var M=U!==void 0,S=M?U.toString():"",p=O!==void 0;return g.Py(this.listeners,function(h){for(var J=0;J>>0);g.SD(g.$q,g.C);g.$q.prototype[bX7]=!0;g.y=g.$q.prototype;g.y.addEventListener=function(U,O,M,S){g.pT(this,U,O,M,S)}; g.y.removeEventListener=function(U,O,M,S){QX4(this,U,O,M,S)}; g.y.dispatchEvent=function(U){var O=this.rU;if(O){var M=[];for(var S=1;O;O=O.rU)M.push(O),++S}O=this.bW;S=U.type||U;if(typeof U==="string")U=new g.La(U,O);else if(U instanceof g.La)U.target=U.target||O;else{var p=U;U=new g.La(S,O);g.Vo(U,p)}p=!0;var h;if(M)for(h=M.length-1;!U.V&&h>=0;h--){var J=U.currentTarget=M[h];p=Tb(J,S,!0,U)&&p}U.V||(J=U.currentTarget=O,p=Tb(J,S,!0,U)&&p,U.V||(p=Tb(J,S,!1,U)&&p));if(M)for(h=0;!U.V&&h0){this.V--;var U=this.U;this.U=U.next;U.next=null}else U=this.B();return U};var Hr;cr.prototype.add=function(U,O){var M=ZXe.get();M.set(U,O);this.V?this.V.next=M:this.U=M;this.V=M}; cr.prototype.remove=function(){var U=null;this.U&&(U=this.U,this.U=this.U.next,this.U||(this.V=null),U.next=null);return U}; var ZXe=new jy(function(){return new DM},function(U){return U.reset()}); DM.prototype.set=function(U,O){this.U=U;this.scope=O;this.next=null}; DM.prototype.reset=function(){this.next=this.scope=this.U=null};var dU,Wr=!1,qoe=new cr;rdW.prototype.reset=function(){this.context=this.V=this.B=this.U=null;this.X=!1}; var aom=new jy(function(){return new rdW},function(U){U.reset()}); g.Yq.prototype.then=function(U,O,M){return sci(this,ey(typeof U==="function"?U:null),ey(typeof O==="function"?O:null),M)}; g.Yq.prototype.$goog_Thenable=!0;g.y=g.Yq.prototype;g.y.finally=function(U){var O=this;U=ey(U);return new Promise(function(M,S){oye(O,function(p){U();M(p)},function(p){U(); S(p)})})}; g.y.yq=function(U,O){return sci(this,null,ey(U),O)}; g.y.catch=g.Yq.prototype.yq;g.y.cancel=function(U){if(this.U==0){var O=new Xh(U);g.NF(function(){k4e(this,O)},this)}}; g.y.Myg=function(U){this.U=0;t7(this,2,U)}; g.y.nXl=function(U){this.U=0;t7(this,3,U)}; g.y.Um=function(){for(var U;U=wa4(this);)UkW(this,U,this.U,this.D);this.C=!1}; var pJy=Dv;g.SD(Xh,eD);Xh.prototype.name="cancel";g.SD(g.un,g.$q);g.y=g.un.prototype;g.y.enabled=!1;g.y.RT=null;g.y.setInterval=function(U){this.pm=U;this.RT&&this.enabled?(this.stop(),this.start()):this.RT&&this.stop()}; g.y.xbP=function(){if(this.enabled){var U=g.gJ()-this.AI;U>0&&U0&&(this.getStatus(),this.C=setTimeout(this.El.bind(this), this.yP)),this.getStatus(),this.Z=!0,this.U.send(U),this.Z=!1}catch(J){this.getStatus(),xme(this,J)}}; g.y.El=function(){typeof lK!="undefined"&&this.U&&(this.X="Timed out after "+this.yP+"ms, aborting",this.V=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.y.abort=function(U){this.U&&this.B&&(this.getStatus(),this.B=!1,this.G=!0,this.U.abort(),this.G=!1,this.V=U||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),F6(this))}; g.y.VP=function(){this.U&&(this.B&&(this.B=!1,this.G=!0,this.U.abort(),this.G=!1),F6(this,!0));g.fj.vN.VP.call(this)}; g.y.j1=function(){this.GY()||(this.BA||this.Z||this.G?b1y(this):this.FiP())}; g.y.FiP=function(){b1y(this)}; g.y.isActive=function(){return!!this.U}; g.y.isComplete=function(){return g.G9(this)==4}; g.y.getStatus=function(){try{return g.G9(this)>2?this.U.status:-1}catch(U){return-1}}; g.y.getResponseHeader=function(U){if(this.U&&this.isComplete())return U=this.U.getResponseHeader(U),U===null?void 0:U}; g.y.getLastError=function(){return typeof this.X==="string"?this.X:String(this.X)};Hj.prototype.send=function(U,O,M){O=O===void 0?function(){}:O; M=M===void 0?function(){}:M; vvU(U.url,function(S){S=S.target;$L(S)?O(g.T9(S)):M(S.getStatus())},U.requestType,U.body,U.requestHeaders,U.timeoutMillis,U.withCredentials)}; Hj.prototype.bP=function(){return 1};cj.prototype.done=function(){this.logger.ZC(this.event,z9()-this.startTime)}; g.c(Du,$E);g.c(Wj,Du);g.y=Wj.prototype;g.y.gj=function(){}; g.y.F4=function(){}; g.y.ZC=function(){}; g.y.wc=function(){}; g.y.zs=function(){}; g.y.zl=function(U,O,M,S){return S}; g.y.Q9=function(){}; g.y.XR=function(){}; g.y.s8=function(){}; g.y.yL=function(){}; g.c(Na,Du);g.y=Na.prototype;g.y.update=function(U){this.logger.dispose();this.logger=U}; g.y.F4=function(U){this.logger.F4(U)}; g.y.ZC=function(U,O){this.logger.ZC(U,O)}; g.y.wc=function(U){this.logger.wc(U)}; g.y.zs=function(){this.logger.zs()}; g.y.zl=function(U,O,M,S){return this.logger.zl(U,O,M,S)}; g.y.Q9=function(U){this.logger.Q9(U)}; g.y.XR=function(U){this.logger.XR(U)}; g.y.s8=function(U){this.logger.s8(U)}; g.y.yL=function(U){this.logger.yL(U)}; g.y.gj=function(U){this.logger.gj(U)}; g.c(vj,g.C);g.c(Bj,Du);g.y=Bj.prototype;g.y.gj=function(U){this.metrics.TLA.Mw(U,this.zO)}; g.y.F4=function(U){this.metrics.eventCount.HJ(U,this.zO)}; g.y.ZC=function(U,O){this.metrics.oC.Mw(O,U,this.zO)}; g.y.wc=function(U){this.metrics.errorCount.HJ(U,this.zO)}; g.y.zl=function(U,O,M,S){function p(f){if(!h.GY()){var F=z9()-J;h.metrics.qHQ.Mw(F,U,M,f,O,h.zO)}} var h=this,J=z9();S.then(function(){return void p(0)},function(f){return void p(f instanceof rU?f.code:-1)}); return S}; g.y.Q9=function(U){this.metrics.L0Z.HJ(U,this.zO)}; g.y.XR=function(U){this.metrics.ER.HJ(U,this.zO)}; g.y.s8=function(U){this.metrics.mbn.HJ(U,this.zO)}; g.c(xL,Bj);xL.prototype.yL=function(U){var O=this;this.U.dispose();this.V&&this.service.dispose();this.service=this.options.Xt("49",this.options.N7.concat(U));this.U=new vj(function(){return void O.service.mm()},this.options.MC); this.metrics=YGe(this.service);this.B=U}; xL.prototype.zs=function(){A55(this.U)};g.c(bK,V5);g.c(tH,V5);g.c(YL,V5);var Z1i=Rc(YL),Pyw=function(U){return EV(function(O){return O instanceof U&&!uH(O)})}(YL); YL.messageId="bfkj";g.c(Jp,V5);g.c(mA,V5);var nve=Rc(mA);g.c(IO,g.C);IO.prototype.snapshot=function(U){if(this.GY())throw Error("Already disposed");this.logger.F4("n");var O=this.logger.share();return this.B.then(function(M){var S=M.Hf;return new Promise(function(p){var h=new cj(O,"n");S(function(J){h.done();O.gj(J.length);O.zs();O.dispose();p(J)},[U.Nb, U.A7,U.tS,U.uf])})})}; IO.prototype.d$=function(U){var O=this;if(this.GY())throw Error("Already disposed");this.logger.F4("n");var M=dO(this.logger,function(){return O.X([U.Nb,U.A7,U.tS,U.uf])},"n"); this.logger.gj(M.length);this.logger.zs();return M}; IO.prototype.So=function(U){this.B.then(function(O){var M;(M=O.xod)==null||M(U)})}; IO.prototype.Th=function(){return this.logger.share()};g.c(Cj,V5);g.c(X6,V5);uK.prototype.PQ=function(U,O){return KZw(this,U,O,new Wj,0)}; uK.prototype.JQ=function(U){return Evw(this,U,new Wj,0)};g.c(qa,g.C);qa.prototype.snapshot=function(U){var O=this;return g.A(function(M){switch(M.U){case 1:if(O.GY())throw Error("Already disposed");if(O.V||O.D){M.tZ(2);break}return g.Y(M,O.G.promise,2);case 2:if(!O.V){M.tZ(4);break}return g.Y(M,O.V.snapshot(U),5);case 5:return M.return(M.V);case 4:throw O.D;}})}; qa.prototype.So=function(U){var O,M;(O=this.V)==null||(M=O.So)==null||M.call(O,U)}; qa.prototype.handleError=function(U){if(!this.GY()){this.D=U;this.G.resolve();var O,M;(M=(O=this.options).D4Z)==null||M.call(O,U)}}; qa.prototype.Th=function(){return this.logger.share()}; var ov7={Cba:432E5,e3:3E5,Zv:10,Xq:1E4,n3:3E4,XVQ:3E4,b6A:6E4,gt:1E3,xf:6E4,aC:6E5,yD:.25,zn:2,maxAttempts:10};var xyJ,pdw=(xyJ=Math.imul)!=null?xyJ:function(U,O){return U*O|0},aO=[196, 200,224,18];EY.prototype.g3=function(){return String(this.U)+","+this.V.join()}; EY.prototype.Y$=function(U,O){var M=void 0;if(this.V[this.U]!==U){var S=this.V.indexOf(U);S!==-1?(this.V.splice(S,1),S0;)O[M++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(U%62),U=Math.floor(U/62);return O.join("")}};var z4w;g.c(Vv,g.C);Vv.prototype.qX=function(U,O){var M=this.De(U);O==null||O(M);return dO(this.logger,function(){return g.cp(M,2)},this.B)}; z4w=Symbol.dispose;g.c(wO,Vv);wO.prototype.De=function(U,O){var M=this;this.logger.F4(this.U);++this.G>=this.C&&this.V.resolve();var S=U();U=dO(this.logger,function(){return M.X(S)},"C"); if(U===void 0)throw new ph(17,"YNJ:Undefined");if(!(U instanceof Uint8Array))throw new ph(18,"ODM:Invalid");O==null||O(U);return U}; g.c(Ub,Vv);Ub.prototype.De=function(){return this.X}; g.c(Ob,Vv);Ob.prototype.De=function(){var U=this;return dO(this.logger,function(){return d3(U.X)},"d")}; Ob.prototype.qX=function(){return this.X}; g.c(sb,Vv);sb.prototype.De=function(){if(this.X)return this.X;this.X=cNy(this,function(U){return"_"+Ha5(U)}); return cNy(this,function(U){return U})}; g.c(ML,Vv);ML.prototype.De=function(){var U=Math.floor(Date.now()/1E3),O=[Math.random()*255,Math.random()*255],M=O.concat([this.X&255,this.clientState],[U>>24&255,U>>16&255,U>>8&255,U&255]);U=new Uint8Array(2+M.length);U[0]=34;U[1]=M.length;U.set(M,2);M=U.subarray(2);for(var S=O=O.length;S150))try{this.cache=new GUq(U,this.logger)}catch(O){this.reportError(new ph(22,"GBJ:init",O))}}; SO.prototype.reportError=function(U){this.logger.wc(U.code);this.onError(U);return U}; g.c(yp,SO);yp.prototype.R5=function(){return this.X.promise}; yp.prototype.De=function(U){return px(this,Object.assign({},U),!1)}; yp.prototype.qX=function(U){return px(this,Object.assign({},U),!0)}; var ba4=function(U){return EV(function(O){if(!$D(O))return!1;for(var M=g.D(Object.entries(U)),S=M.next();!S.done;S=M.next()){var p=g.D(S.value);S=p.next().value;p=p.next().value;if(!(S in O)){if(p.axP===!0)continue;return!1}if(!p(O[S]))return!1}return!0})}({x5:function(U){return EV(function(O){return O instanceof U})}(qa)},"");g.c(FM,V5);var bhv=Rc(FM);YFm.prototype.getMetadata=function(){return this.metadata};lL.prototype.getMetadata=function(){return this.metadata}; lL.prototype.getStatus=function(){return this.status};GD.prototype.D=function(U,O){O=O===void 0?{}:O;return new YFm(U,this,O)}; GD.prototype.getName=function(){return this.name};var RXJ=new GD("/google.internal.waa.v1.Waa/Create",Cj,FM,function(U){return U.g3()},bhv);g.c($7,V5);var a9W=new GD("/google.internal.waa.v1.Waa/GenerateIT",X6,$7,function(U){return U.g3()},Rc($7));var prm=new Set(["SAPISIDHASH","APISIDHASH"]);g.c(TD,V5);TD.prototype.getValue=function(){var U=op(this,2);if(Array.isArray(U)||U instanceof V5)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return hd(this,2)};g.c(jO,V5);jO.prototype.getMessage=function(){return Ns(this,2)}; var Q9y=Rc(jO);eO.prototype.P3=function(U,O){U=="data"?this.B.push(O):U=="metadata"?this.G.push(O):U=="status"?this.C.push(O):U=="end"?this.X.push(O):U=="error"&&this.V.push(O);return this}; eO.prototype.removeListener=function(U,O){U=="data"?dD(this.B,O):U=="metadata"?dD(this.G,O):U=="status"?dD(this.C,O):U=="end"?dD(this.X,O):U=="error"&&dD(this.V,O);return this}; eO.prototype.cancel=function(){this.U.abort()}; eO.prototype.cancel=eO.prototype.cancel;eO.prototype.removeListener=eO.prototype.removeListener;eO.prototype.on=eO.prototype.P3;g.c(ANw,Error);g.SD(g.WD,eoq);g.WD.prototype.U=function(){var U=new NL(this.X,this.B);this.V&&U.setCredentialsMode(this.V);return U}; g.WD.prototype.setCredentialsMode=function(U){this.V=U}; g.SD(NL,g.$q);g.y=NL.prototype;g.y.open=function(U,O){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.yP=U;this.Z=O;this.readyState=1;vD(this)}; g.y.send=function(U){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.U=!0;var O={headers:this.Y,method:this.yP,credentials:this.G,cache:void 0};U&&(O.body=U);(this.ol||g.q1).fetch(new Request(this.Z,O)).then(this.Oaa.bind(this),this.q$.bind(this))}; g.y.abort=function(){this.response=this.responseText="";this.Y=new Headers;this.status=0;this.B&&this.B.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.U&&this.readyState!=4&&(this.U=!1,BD(this));this.readyState=0}; g.y.Oaa=function(U){if(this.U&&(this.X=U,this.V||(this.status=this.X.status,this.statusText=this.X.statusText,this.V=U.headers,this.readyState=2,vD(this)),this.U&&(this.readyState=3,vD(this),this.U)))if(this.responseType==="arraybuffer")U.arrayBuffer().then(this.bad.bind(this),this.q$.bind(this));else if(typeof g.q1.ReadableStream!=="undefined"&&"body"in U){this.B=U.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.D=new TextDecoder;C05(this)}else U.text().then(this.dLZ.bind(this),this.q$.bind(this))}; g.y.Mcl=function(U){if(this.U){if(this.C&&U.value)this.response.push(U.value);else if(!this.C){var O=U.value?U.value:new Uint8Array(0);if(O=this.D.decode(O,{stream:!U.done}))this.response=this.responseText+=O}U.done?BD(this):vD(this);this.readyState==3&&C05(this)}}; g.y.dLZ=function(U){this.U&&(this.response=this.responseText=U,BD(this))}; g.y.bad=function(U){this.U&&(this.response=U,BD(this))}; g.y.q$=function(){this.U&&BD(this)}; g.y.setRequestHeader=function(U,O){this.Y.append(U,O)}; g.y.getResponseHeader=function(U){return this.V?this.V.get(U.toLowerCase())||"":""}; g.y.getAllResponseHeaders=function(){if(!this.V)return"";for(var U=[],O=this.V.entries(),M=O.next();!M.done;)M=M.value,U.push(M[0]+": "+M[1]),M=O.next();return U.join("\r\n")}; g.y.setCredentialsMode=function(U){this.G=U}; Object.defineProperty(NL.prototype,"withCredentials",{get:function(){return this.G==="include"}, set:function(U){this.setCredentialsMode(U?"include":"same-origin")}});g.x7.prototype.toString=function(){var U=[],O=this.G;O&&U.push(It(O,tDX,!0),":");var M=this.U;if(M||O=="file")U.push("//"),(O=this.Y)&&U.push(It(O,tDX,!0),"@"),U.push(g.yo(M).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M=this.B,M!=null&&U.push(":",String(M));if(M=this.V)this.U&&M.charAt(0)!="/"&&U.push("/"),U.push(It(M,M.charAt(0)=="/"?Y4J:myX,!0));(M=this.X.toString())&&U.push("?",M);(M=this.C)&&U.push("#",It(M,ApD));return U.join("")}; g.x7.prototype.resolve=function(U){var O=this.clone(),M=!!U.G;M?g.bL(O,U.G):M=!!U.Y;M?O.Y=U.Y:M=!!U.U;M?g.Rt(O,U.U):M=U.B!=null;var S=U.V;if(M)g.tQ(O,U.B);else if(M=!!U.V){if(S.charAt(0)!="/")if(this.U&&!this.V)S="/"+S;else{var p=O.V.lastIndexOf("/");p!=-1&&(S=O.V.slice(0,p+1)+S)}p=S;if(p==".."||p==".")S="";else if(g.Bq(p,"./")||g.Bq(p,"/.")){S=Wq(p,"/");p=p.split("/");for(var h=[],J=0;J1||h.length==1&&h[0]!="")&&h.pop(), S&&J==p.length&&h.push("")):(h.push(f),S=!0)}S=h.join("/")}else S=p}M?O.V=S:M=U.X.toString()!=="";M?Y7(O,U.X.clone()):M=!!U.C;M&&(O.C=U.C);return O}; g.x7.prototype.clone=function(){return new g.x7(this)}; var tDX=/[#\/\?@]/g,myX=/[#\?:]/g,Y4J=/[#\?]/g,uVW=/[#\?@]/g,ApD=/#/g;g.y=AQ.prototype;g.y.add=function(U,O){Qp(this);this.B=null;U=Cx(this,U);var M=this.U.get(U);M||this.U.set(U,M=[]);M.push(O);this.V=this.V+1;return this}; g.y.remove=function(U){Qp(this);U=Cx(this,U);return this.U.has(U)?(this.B=null,this.V=this.V-this.U.get(U).length,this.U.delete(U)):!1}; g.y.clear=function(){this.U=this.B=null;this.V=0}; g.y.isEmpty=function(){Qp(this);return this.V==0}; g.y.forEach=function(U,O){Qp(this);this.U.forEach(function(M,S){M.forEach(function(p){U.call(O,p,S,this)},this)},this)}; g.y.ao=function(){Qp(this);for(var U=Array.from(this.U.values()),O=Array.from(this.U.keys()),M=[],S=0;S0?String(U[0]):O}; g.y.toString=function(){if(this.B)return this.B;if(!this.U)return"";for(var U=[],O=Array.from(this.U.keys()),M=0;M>>3;h.B!=1&&h.B!=2&&h.B!=15&&iL(h,J,f,"unexpected tag");h.U=1;h.V=0;h.X=0} function M(F){h.X++;h.X==5&&F&240&&iL(h,J,f,"message length too long");h.V|=(F&127)<<(h.X-1)*7;F&128||(h.U=2,h.Y=0,typeof Uint8Array!=="undefined"?h.G=new Uint8Array(h.V):h.G=Array(h.V),h.V==0&&p())} function S(F){h.G[h.Y++]=F;h.Y==h.V&&p()} function p(){if(h.B<15){var F={};F[h.B]=h.G;h.D.push(F)}h.U=0} for(var h=this,J=U instanceof Array?U:new Uint8Array(U),f=0;f0?U:null};ZN.prototype.isInputValid=function(){return this.U===null}; ZN.prototype.XT=function(){return this.U}; ZN.prototype.Rv=function(){return!1}; ZN.prototype.parse=function(U){this.U!==null&&L_1(this,U,"stream already broken");var O=null;try{var M=this.B;M.B||ESi(M,U,"stream already broken");M.U+=U;var S=Math.floor(M.U.length/4);if(S==0)var p=null;else{try{var h=$y4(M.U.slice(0,S*4))}catch(J){ESi(M,M.U,J.message)}M.V+=S*4;M.U=M.U.slice(S*4);p=h}O=p===null?null:this.X.parse(p)}catch(J){L_1(this,U,J.message)}this.V+=U.length;return O};var PQJ={INIT:0,kJ:1,V3:2,P0:3,Sg:4,KL:5,STRING:6,oQ:7,V8:8,Ky:9,SP:10,Cy:11,bz:12,dF:13,OT:14,Kl:15,Mi:16,sI:17,Q8:18,pT:19,UL:20};g.y=Vp.prototype;g.y.isInputValid=function(){return this.G!=3}; g.y.XT=function(){return this.Z}; g.y.done=function(){return this.G===2}; g.y.Rv=function(){return!1}; g.y.parse=function(U){function O(){for(;e0;)if(z=U[e++], h.Y===4?h.Y=0:h.Y++,!z)break a;if(z==='"'&&!h.D){h.U=S();break}if(z==="\\"&&!h.D&&(h.D=!0,z=U[e++],!z))break;if(h.D)if(h.D=!1,z==="u"&&(h.Y=1),z=U[e++])continue;else break;f.lastIndex=e;z=f.exec(U);if(!z){e=U.length+1;break}e=z.index+1;z=U[z.index];if(!z)break}h.B+=e-W;continue;case F.Ky:if(!z)continue;z==="r"?h.U=F.SP:ot(h,U,e);continue;case F.SP:if(!z)continue;z==="u"?h.U=F.Cy:ot(h,U,e);continue;case F.Cy:if(!z)continue;z==="e"?h.U=S():ot(h,U,e);continue;case F.bz:if(!z)continue;z==="a"?h.U=F.dF: ot(h,U,e);continue;case F.dF:if(!z)continue;z==="l"?h.U=F.OT:ot(h,U,e);continue;case F.OT:if(!z)continue;z==="s"?h.U=F.Kl:ot(h,U,e);continue;case F.Kl:if(!z)continue;z==="e"?h.U=S():ot(h,U,e);continue;case F.Mi:if(!z)continue;z==="u"?h.U=F.sI:ot(h,U,e);continue;case F.sI:if(!z)continue;z==="l"?h.U=F.Q8:ot(h,U,e);continue;case F.Q8:if(!z)continue;z==="l"?h.U=S():ot(h,U,e);continue;case F.pT:z==="."?h.U=F.UL:ot(h,U,e);continue;case F.UL:if("0123456789.eE+-".indexOf(z)!==-1)continue;else e--,h.B--,h.U= S();continue;default:ot(h,U,e)}}} function S(){var z=J.pop();return z!=null?z:F.kJ} function p(z){h.V>1||(z||(z=T===-1?h.X+U.substring(G,e):U.substring(T,e)),h.yP?h.C.push(z):h.C.push(JSON.parse(z)),T=e)} for(var h=this,J=h.ol,f=h.BA,F=PQJ,l=U.length,G=0,T=-1,e=0;e0?(H=h.C,h.C=[],H):null}return null};k7.prototype.isInputValid=function(){return this.G===null}; k7.prototype.XT=function(){return this.G}; k7.prototype.Rv=function(){return!1}; k7.prototype.parse=function(U){function O(F){h.V=6;h.G="The stream is broken @"+h.U+"/"+J+". Error: "+F+". With input:\n";throw Error(h.G);} function M(){h.B=new Vp({FGg:!0,kN:!0})} function S(F){if(F)for(var l=0;l1)&&O("extra status: "+F);h.C=!0;var l={};l[2]=F[0];h.X.push(l)}} for(var h=this,J=0;J0?(U=h.X,h.X=[],U):null};wD.prototype.Dk=function(){return this.U}; wD.prototype.getStatus=function(){return this.G}; wD.prototype.yP=function(U){U=U.target;try{if(U==this.U)a:{var O=g.G9(this.U),M=this.U.V,S=this.U.getStatus(),p=g.T9(this.U);U=[];if(g.jK(this.U)instanceof Array){var h=g.jK(this.U);h.length>0&&h[0]instanceof Uint8Array&&(this.Z=!0,U=h)}if(!(O<3||O==3&&!p&&U.length==0))if(S=S==200||S==206,O==4&&(M==8?UJ(this,7):M==7?UJ(this,8):S||UJ(this,3)),this.V||(this.V=Vd7(this.U),this.V==null&&UJ(this,5)),this.G>2)OJ(this);else{if(U.length>this.B){var J=U.length;M=[];try{if(this.V.Rv())for(var f=0;fthis.B){f=p.slice(this.B);this.B=p.length;try{var l=this.V.parse(f);l!=null&&this.X&&this.X(l)}catch(G){UJ(this,5);OJ(this);break a}}O==4?(p.length!= 0||this.Z?UJ(this,2):UJ(this,4),OJ(this)):UJ(this,1)}}}catch(G){UJ(this,6),OJ(this)}};g.y=oSe.prototype;g.y.P3=function(U,O){var M=this.V[U];M||(M=[],this.V[U]=M);M.push(O);return this}; g.y.addListener=function(U,O){this.P3(U,O);return this}; g.y.removeListener=function(U,O){var M=this.V[U];M&&g.OV(M,O);(U=this.U[U])&&g.OV(U,O);return this}; g.y.once=function(U,O){var M=this.U[U];M||(M=[],this.U[U]=M);M.push(O);return this}; g.y.brn=function(U){var O=this.V.data;O&&kUU(U,O);(O=this.U.data)&&kUU(U,O);this.U.data=[]}; g.y.ID0=function(){switch(this.B.getStatus()){case 1:sJ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:sJ(this,"error");break;case 8:sJ(this,"close");break;case 2:sJ(this,"end")}};wdq.prototype.serverStreaming=function(U,O,M,S){var p=this,h=U.substring(0,U.length-S.name.length);return UFe(function(J){var f=J.xU,F=J.getMetadata(),l=gqg(p,!1);F=My5(p,F,l,h+f.getName());var G=Sge(l,f.V,!0);J=f.U(J.ED);l.send(F,"POST",J);return G},this.X).call(this,S.D(O,M))};hg4.prototype.create=function(U,O){return r55(this.U,this.V+"/$rpc/google.internal.waa.v1.Waa/Create",U,O||{},RXJ)};g.c(gQ,SO);g.y=gQ.prototype;g.y.isReady=function(){return!!this.U}; g.y.ready=function(){var U=this;return g.A(function(O){return g.Y(O,U.B.promise,0)})}; g.y.PQ=function(U){return y7U(this,this.logger.zl("c",this.Qk,U===void 0?1:U,this.eG.PQ(nj().U,null)),new ph(10,"JVZ:Timeout"))}; g.y.prefetch=function(){this.state===1&&(this.Sz=this.PQ())}; g.y.start=function(){if(this.state===1){this.state=2;var U=new cj(this.logger,"r");this.ready().finally(function(){return void U.done()}); F0J(this)}}; g.y.De=function(U){lMm(this,U);return px(this,J71(U),!1)}; g.y.qX=function(U){lMm(this,U);return px(this,J71(U),!0)}; g.c(Sc,eD);var j4g={NONE:0,Dhg:1},Vym={Ar:0,iJl:1,cKn:2,jVQ:3},qO={Np:"a",CiY:"d",VIDEO:"v"};p2.prototype.isVisible=function(){return this.Gl?this.HT>=.3:this.HT>=.5};var jc={vVy:0,NsY:1},Eqe={NONE:0,hel:1,ayA:2};hj.prototype.getValue=function(){return this.V}; g.c(Jj,hj);Jj.prototype.B=function(U){this.V===null&&g.uy(this.X,U)&&(this.V=U)}; g.c(yj,hj);yj.prototype.B=function(U){this.V===null&&typeof U==="number"&&(this.V=U)}; g.c(f2,hj);f2.prototype.B=function(U){this.V===null&&typeof U==="string"&&(this.V=U)};FT.prototype.disable=function(){this.V=!1}; FT.prototype.enable=function(){this.V=!0}; FT.prototype.isEnabled=function(){return this.V}; FT.prototype.reset=function(){this.U={};this.V=!0;this.B={}};var Pc=document,cU=window;var k9U=!g.DU&&!iQ();ec.prototype.now=function(){return 0}; ec.prototype.V=function(){return 0}; ec.prototype.B=function(){return 0}; ec.prototype.U=function(){return 0};g.c(z5,ec);z5.prototype.now=function(){return HU()&&cU.performance.now?cU.performance.now():ec.prototype.now.call(this)}; z5.prototype.V=function(){return HU()&&cU.performance.memory?cU.performance.memory.totalJSHeapSize||0:ec.prototype.V.call(this)}; z5.prototype.B=function(){return HU()&&cU.performance.memory?cU.performance.memory.usedJSHeapSize||0:ec.prototype.B.call(this)}; z5.prototype.U=function(){return HU()&&cU.performance.memory?cU.performance.memory.jsHeapSizeLimit||0:ec.prototype.U.call(this)};var zge=xq(function(){var U=!1;try{var O=Object.defineProperty({},"passive",{get:function(){U=!0}}); g.q1.addEventListener("test",null,O)}catch(M){}return U});c7W.prototype.isVisible=function(){return WU(Pc)===1};var dFi={N3l:"allow-forms",ZfA:"allow-modals",zSy:"allow-orientation-lock",xnP:"allow-pointer-lock",gFQ:"allow-popups",pUP:"allow-popups-to-escape-sandbox",wUn:"allow-presentation",ata:"allow-same-origin",yoa:"allow-scripts",oFA:"allow-top-navigation",roG:"allow-top-navigation-by-user-activation"},BUW=xq(function(){return W0q()});var tye=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");bv.prototype.kI=function(U,O,M){U=U+"//"+O+M;var S=IMe(this)-M.length;if(S<0)return"";this.U.sort(function(l,G){return l-G}); M=null;O="";for(var p=0;p=F.length){S-=F.length;U+=F;O=this.B;break}M=M==null?h:M}}S="";M!=null&&(S=""+O+"trn="+M);return U+S};n2.prototype.setInterval=function(U,O){return cU.setInterval(U,O)}; n2.prototype.clearInterval=function(U){cU.clearInterval(U)}; n2.prototype.setTimeout=function(U,O){return cU.setTimeout(U,O)}; n2.prototype.clearTimeout=function(U){cU.clearTimeout(U)};g.c(C2,V5);C2.prototype.V=pVJ([0,OhJ,MDD,-2,hX4]);var L0U={bJP:1,Am:2,P2a:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};oqq.prototype.uL=function(U){if(typeof U==="string"&&U.length!=0){var O=this.Cr;if(O.V){U=U.split("&");for(var M=U.length-1;M>=0;M--){var S=U[M].split("="),p=decodeURIComponent(S[0]);S.length>1?(S=decodeURIComponent(S[1]),S=/^[0-9]+$/g.exec(S)?parseInt(S,10):S):S=1;(p=O.U[p])&&p.B(S)}}}};var MQ=null;var K2=g.q1.performance,nE4=!!(K2&&K2.mark&&K2.measure&&K2.clearMarks),iv=xq(function(){var U;if(U=nE4){var O=O===void 0?window:O;if(MQ===null){MQ="";try{U="";try{U=O.top.location.hash}catch(S){U=O.location.hash}if(U){var M=U.match(/\bdeid=([\d,]+)/);MQ=M?M[1]:""}}catch(S){}}O=MQ;U=!!O.indexOf&&O.indexOf("1337")>=0}return U}); ZZ.prototype.disable=function(){this.U=!1;this.events!==this.V.google_js_reporting_queue&&(iv()&&g.T$(this.events,gLg),this.events.length=0)}; ZZ.prototype.start=function(U,O){if(!this.U)return null;var M=OjU()||Uae();U=new sOJ(U,O,M);O="goog_"+U.label+"_"+U.uniqueId+"_start";K2&&iv()&&K2.mark(O);return U}; ZZ.prototype.end=function(U){if(this.U&&typeof U.value==="number"){var O=OjU()||Uae();U.duration=O-U.value;O="goog_"+U.label+"_"+U.uniqueId+"_end";K2&&iv()&&K2.mark(O);!this.U||this.events.length>2048||this.events.push(U)}};MKi.prototype.cS=function(U,O,M,S,p){p=p||this.UZ;try{var h=new bv;h.U.push(1);h.V[1]=RA("context",U);O.error&&O.meta&&O.id||(O=new L2(Vj(O)));if(O.msg){var J=O.msg.substring(0,512);h.U.push(2);h.V[2]=RA("msg",J)}var f=O.meta||{};if(this.OL)try{this.OL(f)}catch(H){}if(S)try{S(f)}catch(H){}S=[f];h.U.push(3);h.V[3]=S;var F=mFW();if(F.V){var l=F.V.url||"";h.U.push(4);h.V[4]=RA("top",l)}var G={url:F.U.url||""};if(F.U.url){var T=F.U.url.match(kq);var e=VU(T[1],null,T[3],T[4])}else e="";l=[G,{url:e}];h.U.push(5); h.V[5]=l;kb7(this.U,p,h,M)}catch(H){try{kb7(this.U,p,{context:"ecmserr",rctx:U,msg:Vj(H),url:F&&F.U.url},M)}catch(z){}}return this.t7}; g.c(L2,wr4);var aA,EJ,rQ=new ZZ;aA=new function(){var U="https:";cU&&cU.location&&cU.location.protocol==="http:"&&(U="http:");this.V=U;this.U=.01}; EJ=new MKi;cU&&cU.document&&(cU.document.readyState=="complete"?pjg():rQ.U&&dQ(cU,"load",function(){pjg()}));var yHW=Date.now(),go=-1,Oy=-1,BDi,M0=-1,sy=!1;g.y=S3.prototype;g.y.getHeight=function(){return this.bottom-this.top}; g.y.clone=function(){return new S3(this.top,this.right,this.bottom,this.left)}; g.y.contains=function(U){return this&&U?U instanceof S3?U.left>=this.left&&U.right<=this.right&&U.top>=this.top&&U.bottom<=this.bottom:U.x>=this.left&&U.x<=this.right&&U.y>=this.top&&U.y<=this.bottom:!1}; g.y.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.y.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.y.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.y.scale=function(U,O){O=typeof O==="number"?O:U;this.left*=U;this.right*=U;this.top*=O;this.bottom*=O;return this};yM.prototype.KW=function(U,O){return!!U&&(!(O===void 0?0:O)||this.volume==U.volume)&&this.B==U.B&&h6(this.U,U.U)&&!0};fC.prototype.tG=function(){return this.D}; fC.prototype.KW=function(U,O){return this.X.KW(U.X,O===void 0?!1:O)&&this.D==U.D&&h6(this.B,U.B)&&h6(this.C,U.C)&&this.U==U.U&&this.G==U.G&&this.V==U.V&&this.Y==U.Y};var QJ4={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},AS={Bf:"start",Kk:"firstquartile",ZM:"midpoint",X_:"thirdquartile",COMPLETE:"complete",ERROR:"error",NH:"metric",PAUSE:"pause",oh:"resume",rd:"skip",QC:"viewable_impression",xs:"mute",nT:"unmute",ST:"fullscreen",bv:"exitfullscreen",VR:"bufferstart",UJ:"bufferfinish",Ck:"fully_viewable_audible_half_duration_impression",Fa:"measurable_impression",Yz:"abandon",fk:"engagedview",k6:"impression",nk:"creativeview",Wm:"loaded", SCc:"progress",CLOSE:"close",yt0:"collapse",UUY:"overlay_resize",VS0:"overlay_unmeasurable_impression",vLd:"overlay_unviewable_impression",XOY:"overlay_viewable_immediate_impression",BPd:"overlay_viewable_end_of_session_impression",sJ:"custom_metric_viewable",Zs:"audio_audible",x6:"audio_measurable",zQ:"audio_impression"},QAm="start firstquartile midpoint thirdquartile resume loaded".split(" "),Cv5=["start","firstquartile","midpoint","thirdquartile"],bx4=["abandon"],UQ={UNKNOWN:-1,Bf:0,Kk:1,ZM:2, X_:3,COMPLETE:4,NH:5,PAUSE:6,oh:7,rd:8,QC:9,xs:10,nT:11,ST:12,bv:13,Ck:14,Fa:15,Yz:16,fk:17,k6:18,nk:19,Wm:20,sJ:21,VR:22,UJ:23,zQ:27,x6:28,Zs:29};var FAw={ifl:"addEventListener",o2P:"getMaxSize",rUg:"getScreenSize",UyY:"getState",VUd:"getVersion",Lca:"removeEventListener",rac:"isViewable"};g.y=g.l4.prototype;g.y.clone=function(){return new g.l4(this.left,this.top,this.width,this.height)}; g.y.contains=function(U){return U instanceof g.xv?U.x>=this.left&&U.x<=this.left+this.width&&U.y>=this.top&&U.y<=this.top+this.height:this.left<=U.left&&this.left+this.width>=U.left+U.width&&this.top<=U.top&&this.top+this.height>=U.top+U.height}; g.y.getSize=function(){return new g.R1(this.width,this.height)}; g.y.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.y.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.y.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.y.scale=function(U,O){O=typeof O==="number"?O:U;this.left*=U;this.width*=U;this.top*=O;this.height*=O;return this};var TOw={};NOe.prototype.update=function(U){U&&U.document&&(this.D=F0(!1,U,this.isMobileDevice),this.U=F0(!0,U,this.isMobileDevice),BOW(this,U),vL4(this,U))};q0.prototype.cancel=function(){Qj().clearTimeout(this.U);this.U=null}; q0.prototype.schedule=function(){var U=this,O=Qj(),M=uv().U.U;this.U=O.setTimeout(XT(M,kn(143,function(){U.V++;U.B.sample()})),fue())};g.y=i4.prototype;g.y.Ft=function(){return!1}; g.y.initialize=function(){return this.isInitialized=!0}; g.y.H_=function(){return this.U.QP}; g.y.u3=function(){return this.U.yP}; g.y.z5=function(U,O){if(!this.yP||(O===void 0?0:O))this.yP=!0,this.QP=U,this.Y=0,this.U!=this||KC(this)}; g.y.getName=function(){return this.U.TY}; g.y.yT=function(){return this.U.LV()}; g.y.LV=function(){return{}}; g.y.Xi=function(){return this.U.Y}; g.y.bY=function(){var U=Il();U.U=F0(!0,this.B,U.isMobileDevice)}; g.y.d9=function(){vL4(Il(),this.B)}; g.y.xm=function(){return this.X.U}; g.y.sample=function(){}; g.y.isActive=function(){return this.U.C}; g.y.NE=function(U){var O=this.U;this.U=U.Xi()>=this.Y?U:this;O!==this.U?(this.C=this.U.C,KC(this)):this.C!==this.U.C&&(this.C=this.U.C,KC(this))}; g.y.Av=function(U){if(U.V===this.U){var O=!this.X.KW(U,this.Z);this.X=U;O&&RcU(this)}}; g.y.AB=function(){return this.Z}; g.y.dispose=function(){this.sA=!0}; g.y.GY=function(){return this.sA};g.y=ro.prototype;g.y.observe=function(){return!0}; g.y.unobserve=function(){}; g.y.J_=function(U){this.G=U}; g.y.dispose=function(){if(!this.GY()){var U=this.V;g.OV(U.G,this);U.Z&&this.AB()&&bjW(U);this.unobserve();this.BA=!0}}; g.y.GY=function(){return this.BA}; g.y.yT=function(){return this.V.yT()}; g.y.Xi=function(){return this.V.Xi()}; g.y.H_=function(){return this.V.H_()}; g.y.u3=function(){return this.V.u3()}; g.y.NE=function(){}; g.y.Av=function(){this.hT()}; g.y.AB=function(){return this.sA};g.y=al.prototype;g.y.Xi=function(){return this.U.Xi()}; g.y.H_=function(){return this.U.H_()}; g.y.u3=function(){return this.U.u3()}; g.y.create=function(U,O,M){var S=null;this.U&&(S=this.qr(U,O,M),Zr(this.U,S));return S}; g.y.Od=function(){return this.Nc()}; g.y.Nc=function(){return!1}; g.y.init=function(U){return this.U.initialize()?(Zr(this.U,this),this.X=U,!0):!1}; g.y.NE=function(U){U.Xi()==0&&this.X(U.H_(),this)}; g.y.Av=function(){}; g.y.AB=function(){return!1}; g.y.dispose=function(){this.G=!0}; g.y.GY=function(){return this.G}; g.y.yT=function(){return{}};Ey.prototype.add=function(U,O,M){++this.B;U=new YYW(U,O,M);this.U.push(new YYW(U.V,U.U,U.B+this.B/4096));this.V=!0;return this};nLU.prototype.toString=function(){var U="//pagead2.googlesyndication.com//pagead/gen_204",O=VM(this.U);O.length>0&&(U+="?"+O);return U};ol.prototype.update=function(U,O,M){U&&(this.U+=O,this.V+=O,this.X+=O,this.B=Math.max(this.B,this.X));if(M===void 0?!U:M)this.X=0};var qY4=[1,.75,.5,.3,0];ks.prototype.update=function(U,O,M,S,p,h){h=h===void 0?!0:h;O=p?Math.min(U,O):O;for(p=0;p0&&O>=J;J=!(U>0&&U>=J)||M;this.U[p].update(h&&f,S,!h||J)}};MN.prototype.update=function(U,O,M,S){this.D=this.D!=-1?Math.min(this.D,O.HT):O.HT;this.ol=Math.max(this.ol,O.HT);this.BA=this.BA!=-1?Math.min(this.BA,O.n9):O.n9;this.QP=Math.max(this.QP,O.n9);this.pE.update(O.n9,M.n9,O.U,U,S);this.Ka+=U;O.HT===0&&(this.TY+=U);this.V.update(O.HT,M.HT,O.U,U,S);M=S||M.Gl!=O.Gl?M.isVisible()&&O.isVisible():M.isVisible();O=!O.isVisible()||O.U;this.hZ.update(M,U,O)}; MN.prototype.Ou=function(){return this.hZ.B>=this.NL};if(Pc&&Pc.URL){var CQJ=Pc.URL,XqE;if(XqE=!!CQJ){var uCL;a:{if(CQJ){var q4J=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var SN=q4J.exec(decodeURIComponent(CQJ));if(SN){uCL=SN[1]&&SN[1].length>1?SN[1].substring(1):"true";break a}}catch(U){}}uCL=""}XqE=uCL.length>0}EJ.t7=!XqE};var ihJ=new S3(0,0,0,0);var VKW=new S3(0,0,0,0);g.c(yz,g.C);g.y=yz.prototype; g.y.VP=function(){if(this.T4.U){if(this.E3.xn){var U=this.T4.U;U.removeEventListener&&U.removeEventListener("mouseover",this.E3.xn,DZ());this.E3.xn=null}this.E3.zT&&(U=this.T4.U,U.removeEventListener&&U.removeEventListener("mouseout",this.E3.zT,DZ()),this.E3.zT=null)}this.H6&&this.H6.dispose();this.iV&&this.iV.dispose();delete this.CC;delete this.iZ;delete this.Qm;delete this.T4.P2;delete this.T4.U;delete this.E3;delete this.H6;delete this.iV;delete this.Cr;g.C.prototype.VP.call(this)}; g.y.Uf=function(){return this.iV?this.iV.U:this.position}; g.y.uL=function(U){uv().uL(U)}; g.y.AB=function(){return!1}; g.y.Bv=function(){return new MN}; g.y.kF=function(){return this.CC}; g.y.cP=function(U){return ULe(this,U,1E4)}; g.y.PA=function(U,O,M,S,p,h,J){this.dk||(this.Co&&(U=this.P9(U,M,p,J),S=S&&this.bB.HT>=(this.Gl()?.3:.5),this.wF(h,U,S),this.Eh=O,U.HT>0&&-1===this.Eo&&(this.Eo=O),this.zo==-1&&this.Ou()&&(this.zo=O),this.PS==-2&&(this.PS=hS(this.Uf())?U.HT:-1),this.bB=U),this.iZ(this))}; g.y.wF=function(U,O,M){this.kF().update(U,O,this.bB,M)}; g.y.lG=function(){return new p2}; g.y.P9=function(U,O,M,S){M=this.lG();M.U=O;O=Qj().V;O=WU(Pc)===0?-1:O.isVisible()?0:1;M.V=O;M.HT=this.wf(U);M.Gl=this.Gl();M.n9=S;return M}; g.y.wf=function(U){return this.opacity===0&&$n(this.Cr,"opac")===1?0:U}; g.y.Gl=function(){return!1}; g.y.qK=function(){return this.zna||this.pVn}; g.y.U5=function(){Uy()}; g.y.WH=function(){Uy()}; g.y.IE=function(){return 0}; g.y.Ou=function(){return this.CC.Ou()}; g.y.wN=function(){var U=this.Co;U=(this.hasCompleted||this.GY())&&!U;var O=uv().V!==2||this.rLA;return this.dk||O&&U?2:this.Ou()?4:3}; g.y.Yd=function(){return 0};g.FO.prototype.next=function(){return g.pq}; g.pq={done:!0,value:void 0};g.FO.prototype.In=function(){return this};g.c(pDi,p2);var hL=JQq([void 0,1,2,3,4,8,16]),JL=JQq([void 0,4,8,16]),Zhh={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:TM("p0",JL),p1:TM("p1",JL),p2:TM("p2",JL),p3:TM("p3",JL),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:$l("mtos1",[0,2,4],!1,JL),mtos2:$l("mtos2",[0,2,4],!1,JL),mtos3:$l("mtos3",[0,2,4],!1,JL),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:TM("a0",JL),a1:TM("a1",JL),a2:TM("a2",JL),a3:TM("a3",JL),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:TM("c0",JL),c1:TM("c1",JL),c2:TM("c2",JL),c3:TM("c3",JL),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:TM("qmtos",hL),qnc:TM("qnc",hL),qmv:TM("qmv",hL),qnv:TM("qnv",hL), 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:TM("ss0",JL),ss1:TM("ss1",JL),ss2:TM("ss2",JL),ss3:TM("ss3",JL),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"},KLq=Object.assign({},Zhh,{avid:vr("audio"),avas:"avas",vs:"vs"}),rph={atos:"atos",avt:$l("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(U,O){return function(M){return M[U]===void 0&&O!==void 0?O:M[U]}}("ss",0), t:"t"};zM.prototype.getValue=function(){return this.V}; zM.prototype.update=function(U,O){U>=32||(this.U&1<=.5;m3(O.volume)&&(this.X=this.X!=-1?Math.min(this.X,O.volume):O.volume,this.C=Math.max(this.C,O.volume));h&&(this.sA+=U,this.Z+=p?U:0);this.U.update(O.HT,M.HT,O.U,U,S,p);this.B.update(!0,U);this.G.update(p,U);this.yP.update(M.fullscreen,U);this.w7.update(p&&!h,U);U=Math.floor(O.mediaTime/1E3);this.Ca.update(U,O.isVisible());this.Rl.update(U,O.HT>=1);this.Yy.update(U, GM(O))}};$Lw.prototype.V=function(U){this.B||(this.U(U)?(U=vnJ(this.Z,this.X,U),this.G|=U,U=U==0):U=!1,this.B=U)};g.c(dh,$Lw);dh.prototype.U=function(){return!0}; dh.prototype.C=function(){return!1}; dh.prototype.getId=function(){var U=this,O=qm(AS,function(M){return M==U.X}); return UQ[O].toString()}; dh.prototype.toString=function(){var U="";this.C()&&(U+="c");this.B&&(U+="s");this.G>0&&(U+=":"+this.G);return this.getId()+U};g.c(Wh,dh);Wh.prototype.V=function(U,O){O=O===void 0?null:O;O!=null&&this.D.push(O);dh.prototype.V.call(this,U)};g.c(NN,TDq);NN.prototype.V=function(){return null}; NN.prototype.B=function(){return[]};g.c(vh,ro);g.y=vh.prototype;g.y.hw=function(){if(this.element){var U=this.element,O=this.V.U.B;try{try{var M=DaW(U.getBoundingClientRect())}catch(l){M=new S3(0,0,0,0)}var S=M.right-M.left,p=M.bottom-M.top,h=HjU(U,O),J=h.x,f=h.y;var F=new S3(Math.round(f),Math.round(J+S),Math.round(f+p),Math.round(J))}catch(l){F=ihJ.clone()}this.B=F;this.U=tKJ(this,this.B)}}; g.y.Qj=function(){this.C=this.V.X.U}; g.y.FF=function(U){var O=$n(this.Cr,"od")==1;return LAg(U,this.C,this.element,O)}; g.y.Ah=function(){this.timestamp=Uy()}; g.y.hT=function(){this.Ah();this.hw();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var U=this.element;var O=new g.R1(U.videoWidth,U.videoHeight);U=this.U;var M=pC(U),S=U.getHeight(),p=O.width;O=O.height;p<=0||O<=0||M<=0||S<=0||(p/=O,O=M/S,U=U.clone(),p>O?(M/=p,S=(S-M)/2,S>0&&(S=U.top+S,U.top=Math.round(S),U.bottom=Math.round(S+M))):(S*=p,M=Math.round((M-S)/2),M>0&&(M=U.left+M,U.left=Math.round(M),U.right=Math.round(M+S))));this.U=U}this.Qj(); U=this.U;M=this.C;U=U.left<=M.right&&M.left<=U.right&&U.top<=M.bottom&&M.top<=U.bottom?new S3(Math.max(U.top,M.top),Math.min(U.right,M.right),Math.min(U.bottom,M.bottom),Math.max(U.left,M.left)):new S3(0,0,0,0);M=U.top>=U.bottom||U.left>=U.right?new S3(0,0,0,0):U;U=this.V.X;O=p=S=0;if((this.U.bottom-this.U.top)*(this.U.right-this.U.left)>0)if(this.FF(M))M=new S3(0,0,0,0);else{S=Il().X;O=new S3(0,S.height,S.width,0);var h;S=JS(M,(h=this.G)!=null?h:this.U);p=JS(M,Il().U);O=JS(M,O)}h=M.top>=M.bottom|| M.left>=M.right?new S3(0,0,0,0):J6(M,-this.U.left,-this.U.top);nC()||(p=S=0);this.Z=new fC(U,this.element,this.U,h,S,p,this.timestamp,O)}; g.y.getName=function(){return this.V.getName()};var avq=new S3(0,0,0,0);g.c(Bh,vh);g.y=Bh.prototype;g.y.observe=function(){this.X();return!0}; g.y.Av=function(){vh.prototype.hT.call(this)}; g.y.Ah=function(){}; g.y.hw=function(){}; g.y.hT=function(){this.X();vh.prototype.hT.call(this)}; g.y.NE=function(U){U=U.isActive();U!==this.Y&&(U?this.X():(Il().U=new S3(0,0,0,0),this.U=new S3(0,0,0,0),this.C=new S3(0,0,0,0),this.timestamp=-1));this.Y=U};var yY={},v7m=(yY.firstquartile=0,yY.midpoint=1,yY.thirdquartile=2,yY.complete=3,yY);g.c(bM,yz);g.y=bM.prototype;g.y.AB=function(){return!0}; g.y.t0=function(){return this.z4==2}; g.y.cP=function(U){return ULe(this,U,Math.max(1E4,this.B/3))}; g.y.PA=function(U,O,M,S,p,h,J){var f=this,F=this.D(this)||{};g.Vo(F,p);this.B=F.duration||this.B;this.Z=F.isVpaid||this.Z;this.TY=F.isYouTube||this.TY;Qj();this.pE=!1;p=ezw(this,O);jt1(this)===1&&(h=p);yz.prototype.PA.call(this,U,O,M,S,F,h,J);this.Gs&&this.Gs.B&&g.T$(this.C,function(l){l.V(f)})}; g.y.wF=function(U,O,M){yz.prototype.wF.call(this,U,O,M);Yl(this).update(U,O,this.bB,M);this.NL=GM(this.bB)&&GM(O);this.QP==-1&&this.Rl&&(this.QP=this.kF().B.U);this.ZV.B=0;U=this.Ou();O.isVisible()&&Hh(this.ZV,"vs");U&&Hh(this.ZV,"vw");m3(O.volume)&&Hh(this.ZV,"am");GM(O)?Hh(this.ZV,"a"):Hh(this.ZV,"mut");this.BH&&Hh(this.ZV,"f");O.V!=-1&&(Hh(this.ZV,"bm"),O.V==1&&(Hh(this.ZV,"b"),GM(O)&&Hh(this.ZV,"umutb")));GM(O)&&O.isVisible()&&Hh(this.ZV,"avs");this.NL&&U&&Hh(this.ZV,"avw");O.HT>0&&Hh(this.ZV, "pv");ml(this,this.kF().B.U,!0)&&Hh(this.ZV,"gdr");s2(this.kF().V,1)>=2E3&&Hh(this.ZV,"pmx");this.pE&&Hh(this.ZV,"tvoff")}; g.y.Bv=function(){return new ch}; g.y.kF=function(){return this.CC}; g.y.lG=function(){return new pDi}; g.y.P9=function(U,O,M,S){U=yz.prototype.P9.call(this,U,O,M,S===void 0?-1:S);U.fullscreen=this.BH;U.paused=this.t0();U.volume=M.volume;m3(U.volume)||(this.r7++,O=this.bB,m3(O.volume)&&(U.volume=O.volume));M=M.currentTime;U.mediaTime=M!==void 0&&M>=0?M:-1;return U}; g.y.wf=function(U){return Il(),this.BH?1:yz.prototype.wf.call(this,U)}; g.y.IE=function(){return 1}; g.y.getDuration=function(){return this.B}; g.y.wN=function(){return this.dk?2:zzU(this)?5:this.Ou()?4:3}; g.y.Yd=function(){return this.w7?this.kF().G.B>=2E3?4:3:2}; g.y.J_=function(U){this.iV&&this.iV.J_(U)};var EEq=g.gJ();n74.prototype.reset=function(){this.U=[];this.V=[]}; var Cz=PU(n74);g.c(qN,al);g.y=qN.prototype;g.y.getName=function(){return(this.V?this.V:this.U).getName()}; g.y.yT=function(){return(this.V?this.V:this.U).yT()}; g.y.Xi=function(){return(this.V?this.V:this.U).Xi()}; g.y.init=function(U){var O=!1;(0,g.T$)(this.B,function(M){M.initialize()&&(O=!0)}); O&&(this.X=U,Zr(this.U,this));return O}; g.y.dispose=function(){(0,g.T$)(this.B,function(U){U.dispose()}); al.prototype.dispose.call(this)}; g.y.Od=function(){return A6(this.B,function(U){return U.Ft()})}; g.y.Nc=function(){return A6(this.B,function(U){return U.Ft()})}; g.y.qr=function(U,O,M){return new vh(U,this.U,O,M)}; g.y.Av=function(U){this.V=U.V};var rQm={threshold:[0,.3,.5,.75,1]};g.c(iM,vh);g.y=iM.prototype;g.y.observe=function(){var U=this;this.ol||(this.ol=Uy());if(JHW(298,function(){return aNg(U)}))return!0; this.V.z5("msf");return!1}; g.y.unobserve=function(){if(this.X&&this.element)try{this.X.unobserve(this.element),this.Y?(this.Y.unobserve(this.element),this.Y=null):this.D&&(this.D.disconnect(),this.D=null)}catch(U){}}; g.y.hT=function(){var U=ZJ(this);U.length>0&&Kz(this,U);vh.prototype.hT.call(this)}; g.y.hw=function(){}; g.y.FF=function(){return!1}; g.y.Qj=function(){}; g.y.yT=function(){var U={};return Object.assign(this.V.yT(),(U.niot_obs=this.ol,U.niot_cbk=this.yP,U))}; g.y.getName=function(){return"nio"};g.c(rh,al);rh.prototype.getName=function(){return"nio"}; rh.prototype.Nc=function(){return!Il().V&&this.U.U.B.IntersectionObserver!=null}; rh.prototype.qr=function(U,O,M){return new iM(U,this.U,O,M)};g.c(aZ,i4);aZ.prototype.xm=function(){return Il().U}; aZ.prototype.Ft=function(){var U=L1y();this.Y!==U&&(this.U!=this&&U>this.U.Y&&(this.U=this,KC(this)),this.Y=U);return U==2};E2.prototype.sample=function(){oZ(this,XO(),!1)}; E2.prototype.X=function(){var U=nC(),O=Uy();U?(sy||(go=O,g.T$(Cz.U,function(M){var S=M.kF();S.HA=DJ(S,O,M.z4!=1)})),sy=!0):(this.D=UOU(this,O),sy=!1,BDi=O,g.T$(Cz.U,function(M){M.Co&&(M.kF().Y=O)})); oZ(this,XO(),!U)}; var Lz=PU(E2);var sAq=null,cS="",zd=!1;var SJg=Mcw().M9,wh=Mcw().nt;var Jje={Z1P:"visible",ItL:"audible",dTg:"time",ONc:"timetype"},yji={visible:function(U){return/^(100|[0-9]{1,2})$/.test(U)}, audible:function(U){return U=="0"||U=="1"}, timetype:function(U){return U=="mtos"||U=="tos"}, time:function(U){return/^(100|[0-9]{1,2})%$/.test(U)||/^([0-9])+ms$/.test(U)}}; hxw.prototype.setTime=function(U,O,M){O=="ms"?(this.B=U,this.X=-1):(this.B=-1,this.X=U);this.G=M===void 0?"tos":M;return this};g.c(gj,dh);gj.prototype.getId=function(){return this.D}; gj.prototype.C=function(){return!0}; gj.prototype.U=function(U){var O=U.kF(),M=U.getDuration();return A6(this.Y,function(S){if(S.U!=void 0)var p=FVm(S,O);else b:{switch(S.G){case "mtos":p=S.V?O.G.B:O.B.U;break b;case "tos":p=S.V?O.G.U:O.B.U;break b}p=0}p==0?S=!1:(S=S.B!=-1?S.B:M!==void 0&&M>0?S.X*M:-1,S=S!=-1&&p>=S);return S})};g.c(M9,fNe);M9.prototype.U=function(U){var O=new yQq;O.U=e4(U,Zhh);O.V=e4(U,rph);return O};g.c(Su,dh);Su.prototype.U=function(U){return zzU(U)};g.c(p$,TDq);g.c(h8,dh);h8.prototype.U=function(U){return U.kF().Ou()};g.c(J8,Wh);J8.prototype.U=function(U){var O=g.kE(this.D,$n(uv().Cr,"ovms"));return!U.dk&&(U.z4!=0||O)};g.c(y_,p$);y_.prototype.V=function(){return new J8(this.U)}; y_.prototype.B=function(){return[new h8("viewable_impression",this.U),new Su(this.U)]};g.c(f$,Bh);f$.prototype.X=function(){var U=g.K7("ima.admob.getViewability"),O=$n(this.Cr,"queryid");typeof U==="function"&&O&&U(O)}; f$.prototype.getName=function(){return"gsv"};g.c(Ft,al);Ft.prototype.getName=function(){return"gsv"}; Ft.prototype.Nc=function(){var U=Il();uv();return U.V&&!1}; Ft.prototype.qr=function(U,O,M){return new f$(this.U,O,M)};g.c(le,Bh);le.prototype.X=function(){var U=this,O=g.K7("ima.bridge.getNativeViewability"),M=$n(this.Cr,"queryid");typeof O==="function"&&M&&O(M,function(S){g.iy(S)&&U.D++;var p=S.opt_nativeViewVisibleBounds||{},h=S.opt_nativeViewHidden;U.U=da7(S.opt_nativeViewBounds||{});var J=U.V.X;J.U=h?avq.clone():da7(p);U.timestamp=S.opt_nativeTime||-1;Il().U=J.U;S=S.opt_nativeVolume;S!==void 0&&(J.volume=S)})}; le.prototype.getName=function(){return"nis"};g.c(Gd,al);Gd.prototype.getName=function(){return"nis"}; Gd.prototype.Nc=function(){var U=Il();uv();return U.V&&!1}; Gd.prototype.qr=function(U,O,M){return new le(this.U,O,M)};g.c($h,i4);g.y=$h.prototype;g.y.Ft=function(){return this.V.Oi!=null}; g.y.LV=function(){var U={};this.Ca&&(U.mraid=this.Ca);this.BA&&(U.mlc=1);U.mtop=this.V.CUy;this.D&&(U.mse=this.D);this.Ka&&(U.msc=1);U.mcp=this.V.compatibility;return U}; g.y.t_=function(U){var O=g.m4.apply(1,arguments);try{return this.V.Oi[U].apply(this.V.Oi,O)}catch(M){wQ(538,M,.01,function(S){S.method=U})}}; g.y.initialize=function(){var U=this;if(this.isInitialized)return!this.u3();this.isInitialized=!0;if(this.V.compatibility===2)return this.D="ng",this.z5("w"),!1;if(this.V.compatibility===1)return this.D="mm",this.z5("w"),!1;Il().Y=!0;this.B.document.readyState&&this.B.document.readyState=="complete"?TQJ(this):pz(this.B,"load",function(){Qj().setTimeout(kn(292,function(){return TQJ(U)}),100)},292); return!0}; g.y.bY=function(){var U=Il(),O=cj5(this,"getMaxSize");U.U=new S3(0,O.width,O.height,0)}; g.y.d9=function(){Il().X=cj5(this,"getScreenSize")}; g.y.dispose=function(){ex5(this);i4.prototype.dispose.call(this)};var r7e=new function(U,O){this.key=U;this.defaultValue=O===void 0?!1:O;this.valueType="boolean"}("45378663");g.y=ju.prototype;g.y.S8=function(U){fz(U,!1);uMg(U)}; g.y.dw=function(){}; g.y.aI=function(U,O,M,S){var p=this;U=new bM(cU,U,M?O:-1,7,this.MB(),this.j$());U.Uv=S;$Fe(U.Cr);G5(U.Cr,"queryid",U.Uv);U.uL("");g75(U,function(){return p.vK.apply(p,g.N(g.m4.apply(0,arguments)))},function(){return p.SAQ.apply(p,g.N(g.m4.apply(0,arguments)))}); (S=PU(uM).U)&&wjJ(U,S);this.B&&(U.J_(this.B),this.B=null);U.T4.P2&&PU(VOW);return U}; g.y.NE=function(U){switch(U.Xi()){case 0:if(U=PU(uM).U)U=U.U,g.OV(U.G,this),U.Z&&this.AB()&&bjW(U);HS();break;case 2:Vz()}}; g.y.Av=function(){}; g.y.AB=function(){return!1}; g.y.SAQ=function(U,O){U.dk=!0;switch(U.IE()){case 1:BQw(U,O);break;case 2:this.G6(U)}}; g.y.Ldg=function(U){var O=U.D(U);O&&(O=O.volume,U.w7=m3(O)&&O>0);dLU(U,0);return IZ(U,"start",nC())}; g.y.tJ=function(U,O,M){oZ(Lz,[U],!nC());return this.Tz(U,O,M)}; g.y.Tz=function(U,O,M){return IZ(U,M,nC())}; g.y.TG0=function(U){return N9(U,"firstquartile",1)}; g.y.DLY=function(U){U.Rl=!0;return N9(U,"midpoint",2)}; g.y.Pgg=function(U){return N9(U,"thirdquartile",3)}; g.y.Cga=function(U){var O=N9(U,"complete",4);RZ(U);return O}; g.y.GYQ=function(U){U.z4=3;return IZ(U,"error",nC())}; g.y.NV=function(U,O,M){O=nC();if(U.t0()&&!O){var S=U.kF(),p=Uy();S.Y=p}oZ(Lz,[U],!O);U.t0()&&(U.z4=1);return IZ(U,M,O)}; g.y.mLy=function(U,O){O=this.tJ(U,O||{},"skip");RZ(U);return O}; g.y.kYP=function(U,O){fz(U,!0);return this.tJ(U,O||{},"fullscreen")}; g.y.IQQ=function(U,O){fz(U,!1);return this.tJ(U,O||{},"exitfullscreen")}; g.y.vI=function(U,O,M){O=U.kF();var S=Uy();O.HA=DJ(O,S,U.z4!=1);oZ(Lz,[U],!nC());U.z4==1&&(U.z4=2);return IZ(U,M,nC())}; g.y.qAa=function(U){oZ(Lz,[U],!nC());return U.V()}; g.y.Jj=function(U){oZ(Lz,[U],!nC());this.jK(U);RZ(U);return U.V()}; g.y.vK=function(){}; g.y.G6=function(){}; g.y.jK=function(){}; g.y.K8=function(){}; g.y.QZ=function(){}; g.y.j$=function(){this.U||(this.U=this.QZ());return this.U==null?new NN:new y_(this.U)}; g.y.MB=function(){return new M9};g.c(vS,dh);vS.prototype.U=function(U){return U.Yd()==4};g.c(BS,Wh);BS.prototype.U=function(U){U=U.Yd();return U==3||U==4};g.c(xh,p$);xh.prototype.V=function(){return new BS(this.U)}; xh.prototype.B=function(){return[new vS(this.U)]};g.c(be,fNe);be.prototype.U=function(U){U&&(U.e===28&&(U=Object.assign({},U,{avas:3})),U.vs===4||U.vs===5)&&(U=Object.assign({},U,{vs:3}));var O=new yQq;O.U=e4(U,KLq);O.V=e4(U,rph);return O};tcU.prototype.V=function(){return g.K7(this.U)};g.c(RH,ju);g.y=RH.prototype;g.y.dw=function(U,O){var M=this,S=PU(uM);if(S.U!=null)switch(S.U.getName()){case "nis":var p=IZy(this,U,O);break;case "gsv":p=AjJ(this,U,O);break;case "exc":p=PvJ(this,U)}p||(O.opt_overlayAdElement?p=void 0:O.opt_adElement&&(p=b2U(this,U,O.opt_adElement,O.opt_osdId)));p&&p.IE()==1&&(p.D==g.Br&&(p.D=function(h){return M.K8(h)}),mO7(this,p,O)); return p}; g.y.K8=function(U){U.V=0;U.sA=0;if(U.X=="h"||U.X=="n"){uv();U.Yy&&(uv(),dj(this)!="h"&&dj(this));var O=g.K7("ima.common.getVideoMetadata");if(typeof O==="function")try{var M=O(U.Uv)}catch(p){U.V|=4}else U.V|=2}else if(U.X=="b")if(O=g.K7("ytads.bulleit.getVideoMetadata"),typeof O==="function")try{M=O(U.Uv)}catch(p){U.V|=4}else U.V|=2;else if(U.X=="ml")if(O=g.K7("ima.common.getVideoMetadata"),typeof O==="function")try{M=O(U.Uv)}catch(p){U.V|=4}else U.V|=2;else U.V|=1;U.V||(M===void 0?U.V|=8:M===null? U.V|=16:g.iy(M)?U.V|=32:M.errorCode!=null&&(U.sA=M.errorCode,U.V|=64));M==null&&(M={});O=M;U.Y=0;for(var S in QJ4)O[S]==null&&(U.Y|=QJ4[S]);Rxi(O,"currentTime");Rxi(O,"duration");m3(M.volume)&&m3()&&(M.volume*=NaN);return M}; g.y.QZ=function(){uv();dj(this)!="h"&&dj(this);var U=nnq(this);return U!=null?new tcU(U):null}; g.y.G6=function(U){!U.U&&U.dk&&WS(this,U,"overlay_unmeasurable_impression")&&(U.U=!0)}; g.y.jK=function(U){U.S3&&(U.Ou()?WS(this,U,"overlay_viewable_end_of_session_impression"):WS(this,U,"overlay_unviewable_impression"),U.S3=!1)}; g.y.vK=function(){}; g.y.aI=function(U,O,M,S){if(aMm()){var p=$n(uv().Cr,"mm"),h={};(p=(h[qO.Np]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",h[qO.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",h)[p])&&uTU(this,p);this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&wQ(1044,Error())}U=ju.prototype.aI.call(this,U,O,M,S);this.G&&(O=this.C,U.G==null&&(U.G=new MO1),O.U[U.Uv]=U.G,U.G.G=EEq);return U}; g.y.S8=function(U){U&&U.IE()==1&&this.G&&delete this.C.U[U.Uv];return ju.prototype.S8.call(this,U)}; g.y.j$=function(){this.U||(this.U=this.QZ());return this.U==null?new NN:this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new xh(this.U):new y_(this.U)}; g.y.MB=function(){return this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new be:new M9}; g.y.J_=function(U,O,M,S,p){O=new S3(M,O+S,M+p,O);(U=Qz(Cz,U))?U.J_(O):this.B=O}; var LLE=oA(193,i2e,void 0,xOU);g.Zq("Goog_AdSense_Lidar_sendVastEvent",LLE);var VDX=kn(194,function(U,O){O=O===void 0?{}:O;U=XU4(PU(RH),U,O);return qJe(U)}); g.Zq("Goog_AdSense_Lidar_getViewability",VDX);var oEp=oA(195,function(){return uhe()}); g.Zq("Goog_AdSense_Lidar_getUrlSignalsArray",oEp);var kll=kn(196,function(){return JSON.stringify(uhe())}); g.Zq("Goog_AdSense_Lidar_getUrlSignalsList",kll);var Z2w=(new Date("2024-01-01T00:00:00Z")).getTime();var aZ5=jm(["//ep2.adtrafficquality.google/sodar/",""]),Ene=jm(["//tpc.googlesyndication.com/sodar/",""]);g.c(A8,g.C);A8.prototype.R5=function(){return this.wpc.f()}; A8.prototype.vY=function(U){this.wpc.c(U)}; A8.prototype.De=function(U){return this.wpc.m(k5g(U))}; A8.prototype.qX=function(U){return this.wpc.mws(k5g(U))}; g.c(Yh,g.C);Yh.prototype.snapshot=function(U){return this.x5.s(Object.assign({},U.Nb&&{c:U.Nb},U.A7&&{s:U.A7},U.uf!==void 0&&{p:U.uf}))}; Yh.prototype.So=function(U){this.x5.e(U)}; Yh.prototype.Th=function(){return this.x5.l()};var V41=(new Date).getTime();var OCJ="://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(" "),sle=/\bocr\b/;var M35=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var eVm=Object.assign({},{attributes:{},handleError:function(U){throw U;}},{M_A:!0, sGZ:!0,QGA:b7y,t_0:RJJ,aR:!1,NbY:!1,Udl:!1,nEA:!0,XoY:!1});var n$=null,C$=!1,ToU=1,GCe=Symbol("SIGNAL"),fq={version:0,U7d:0,pI:!1,Sy:void 0,E4:void 0,U7:void 0,j2:0,Nh:void 0,Ya:void 0,mP:!1,Li:!1,kind:"unknown",Im:function(){return!1}, TW:function(){}, Pn:function(){}, rBG:function(){}};var Fv=Symbol("UNSET"),lD=Symbol("COMPUTING"),GV=Symbol("ERRORED");Object.assign({},fq,{value:Fv,pI:!0,error:null,qY:PS,kind:"computed",Im:function(U){return U.value===Fv||U.value===lD}, TW:function(U){if(U.value===lD)throw Error("Detected cycle in computations.");var O=U.value;U.value=lD;var M=hVw(U),S=!1;try{var p=U.V1();Q_(null);S=O!==Fv&&O!==GV&&p!==GV&&U.qY(O,p)}catch(h){p=GV,U.error=h}finally{J6W(U,M)}S?U.value=O:(U.value=p,U.version++)}});var lre=Object.assign({},fq,{qY:PS,value:void 0,kind:"signal"});Object.assign({},fq,{value:Fv,pI:!0,error:null,qY:PS,kind:"linkedSignal",Im:function(U){return U.value===Fv||U.value===lD}, TW:function(U){if(U.value===lD)throw Error("Detected cycle in computations.");var O=U.value;U.value=lD;var M=hVw(U);try{var S=U.source();var p=U.V1(S,O===Fv||O===GV?void 0:{source:U.DzQ,value:O});U.DzQ=S}catch(h){p=GV,U.error=h}finally{J6W(U,M)}O!==Fv&&p!==GV&&U.qY(O,p)?U.value=O:(U.value=p,U.version++)}});Object.assign({},fq,{Li:!0,mP:!1,Pn:function(U){U.schedule!==null&&U.schedule(U.cTy)}, Yu0:!1,poL:function(){}});var HCe=Symbol("updater");g.c(rj,g.$q);rj.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.ut.C1(this.G);delete rj.instance}; rj.prototype.SH=function(){return this.U}; rj.prototype.Ce=function(){var U=this;this.G=this.ut.YX(function(){var O;return g.A(function(M){if(M.U==1)return U.U?((O=window.navigator)==null?0:O.onLine)?M.tZ(3):g.Y(M,K$(U),3):g.Y(M,K$(U),3);U.Ce();g.Dq(M)})},3E4)};EQ.prototype.set=function(U,O){O=O===void 0?!0:O;0<=U&&U<52&&Number.isInteger(U)&&this.data[U]!==O&&(this.data[U]=O,this.U=-1)}; EQ.prototype.get=function(U){return!!this.data[U]};var V_;g.SD(g.wj,g.C);g.y=g.wj.prototype;g.y.start=function(){this.stop();this.X=!1;var U=d0y(this),O=W3g(this);U&&!O&&this.V.mozRequestAnimationFrame?(this.U=g.pT(this.V,"MozBeforePaint",this.B),this.V.mozRequestAnimationFrame(null),this.X=!0):this.U=U&&O?U.call(this.V,this.B):this.V.setTimeout(K8w(this.B),20)}; g.y.stop=function(){if(this.isActive()){var U=d0y(this),O=W3g(this);U&&!O&&this.V.mozRequestAnimationFrame?Fh(this.U):U&&O?O.call(this.V,this.U):this.V.clearTimeout(this.U)}this.U=null}; g.y.isActive=function(){return this.U!=null}; g.y.Ye=function(){this.X&&this.U&&Fh(this.U);this.U=null;this.C.call(this.G,g.gJ())}; g.y.VP=function(){this.stop();g.wj.vN.VP.call(this)};g.SD(g.UM,g.C);g.y=g.UM.prototype;g.y.Zd=0;g.y.VP=function(){g.UM.vN.VP.call(this);this.stop();delete this.U;delete this.V}; g.y.start=function(U){this.stop();this.Zd=g.qF(this.B,U!==void 0?U:this.pm)}; g.y.stop=function(){this.isActive()&&g.q1.clearTimeout(this.Zd);this.Zd=0}; g.y.isActive=function(){return this.Zd!=0}; g.y.S6=function(){this.Zd=0;this.U&&this.U.call(this.V)};g.c(g.M$,g.C);g.y=g.M$.prototype;g.y.mM=function(U){this.B=arguments;this.RT||this.V?this.U=!0:Sa(this)}; g.y.stop=function(){this.RT&&(g.q1.clearTimeout(this.RT),this.RT=null,this.U=!1,this.B=null)}; g.y.pause=function(){this.V++}; g.y.resume=function(){this.V--;this.V||!this.U||this.RT||(this.U=!1,Sa(this))}; g.y.VP=function(){g.C.prototype.VP.call(this);this.stop()};g.ps.prototype[Symbol.iterator]=function(){return this}; g.ps.prototype.next=function(){var U=this.U.next();return{value:U.done?void 0:this.V.call(void 0,U.value),done:U.done}};g.SD(g.HT,g.$q);g.y=g.HT.prototype;g.y.isPlaying=function(){return this.U==1}; g.y.isPaused=function(){return this.U==-1}; g.y.zx=function(){this.YL("begin")}; g.y.H3=function(){this.YL("end")}; g.y.onFinish=function(){this.YL("finish")}; g.y.onStop=function(){this.YL("stop")}; g.y.YL=function(U){this.dispatchEvent(U)};var wqQ=xq(function(){var U=g.GU("DIV"),O=g.yG?"-webkit":Hc?"-moz":null,M="transition:opacity 1s linear;";O&&(M+=O+"-transition:opacity 1s linear;");O=wVg({style:M});if(U.nodeType===1&&/^(script|style)$/i.test(U.tagName))throw Error("");U.innerHTML=oc(O);return g.zC(U.firstChild,"transition")!=""});g.SD(zn,g.HT);g.y=zn.prototype;g.y.play=function(){if(this.isPlaying())return!1;this.zx();this.YL("play");this.startTime=g.gJ();this.U=1;if(wqQ())return g.j3(this.V,this.C),this.B=g.qF(this.riY,void 0,this),!0;this.R4(!1);return!1}; g.y.riY=function(){g.Rl(this.V);Bo7(this.V,this.D);g.j3(this.V,this.X);this.B=g.qF((0,g.U4)(this.R4,this,!1),this.G*1E3)}; g.y.stop=function(){this.isPlaying()&&this.R4(!0)}; g.y.R4=function(U){g.j3(this.V,"transition","");g.q1.clearTimeout(this.B);g.j3(this.V,this.X);this.endTime=g.gJ();this.U=0;if(U)this.onStop();else this.onFinish();this.H3()}; g.y.VP=function(){this.stop();zn.vN.VP.call(this)}; g.y.pause=function(){};var bC1={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};cT("Element","attributes")||cT("Node","attributes");cT("Element","innerHTML")||cT("HTMLElement","innerHTML");cT("Node","nodeName");cT("Node","nodeType");cT("Node","parentNode");cT("Node","childNodes");cT("HTMLElement","style")||cT("Element","style");cT("HTMLStyleElement","sheet");var Iry=t3w("getPropertyValue"),P4J=t3w("setProperty");cT("Element","namespaceURI")||cT("Node","namespaceURI");var A6i={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var XcJ,zJl,C4w,Qlw,u07;XcJ=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]");zJl=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.U2y=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.dB=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]");C4w=/^http:\/\/.*/;g.Oty=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Qlw=/\s+/;u07=/[\d\u06f0-\u06f9]/;N$.prototype.In=function(){return new vT(this.V())}; N$.prototype[Symbol.iterator]=function(){return new BT(this.V())}; N$.prototype.U=function(){return new BT(this.V())}; g.c(vT,g.FO);vT.prototype.next=function(){return this.V.next()}; vT.prototype[Symbol.iterator]=function(){return new BT(this.V)}; vT.prototype.U=function(){return new BT(this.V)}; g.c(BT,N$);BT.prototype.next=function(){return this.B.next()};b3.prototype.clone=function(){return new b3(this.U,this.D,this.B,this.G,this.X,this.C,this.V,this.Y)}; b3.prototype.KW=function(U){return this.U==U.U&&this.D==U.D&&this.B==U.B&&this.G==U.G&&this.X==U.X&&this.C==U.C&&this.V==U.V&&this.Y==U.Y};tD.prototype.clone=function(){return new tD(this.start,this.end)}; tD.prototype.getLength=function(){return this.end-this.start};(function(){if(bYW){var U=/Windows NT ([0-9.]+)/;return(U=U.exec(g.YE()))?U[1]:"0"}return FP?(U=/1[0|1][_.][0-9_.]+/,(U=U.exec(g.YE()))?U[0].replace(/_/g,"."):"10"):g.Jw?(U=/Android\s+([^\);]+)(\)|;)/,(U=U.exec(g.YE()))?U[1]:""):m1D||AUE||IqD?(U=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(U=U.exec(g.YE()))?U[1].replace(/_/g,"."):""):""})();var iCW=function(){if(g.Ej)return YU(/Firefox\/([0-9.]+)/);if(g.DU||g.Mp||g.AG)return ypy;if(g.XW){if(rJ()||aJ()){var U=YU(/CriOS\/([0-9.]+)/);if(U)return U}return YU(/Chrome\/([0-9.]+)/)}if(g.bh&&!rJ())return YU(/Version\/([0-9.]+)/);if(SQ||pE){if(U=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.YE()))return U[1]+"."+U[2]}else if(g.IK)return(U=YU(/Android\s+([0-9.]+)/))?U:YU(/Version\/([0-9.]+)/);return""}();g.SD(g.AD,g.C);g.y=g.AD.prototype;g.y.subscribe=function(U,O,M){var S=this.V[U];S||(S=this.V[U]=[]);var p=this.C;this.U[p]=U;this.U[p+1]=O;this.U[p+2]=M;this.C=p+3;S.push(p);return p}; g.y.unsubscribe=function(U,O,M){if(U=this.V[U]){var S=this.U;if(U=U.find(function(p){return S[p+1]==O&&S[p+2]==M}))return this.yN(U)}return!1}; g.y.yN=function(U){var O=this.U[U];if(O){var M=this.V[O];this.X!=0?(this.B.push(U),this.U[U+1]=function(){}):(M&&g.OV(M,U),delete this.U[U],delete this.U[U+1],delete this.U[U+2])}return!!O}; g.y.publish=function(U,O){var M=this.V[U];if(M){var S=Array(arguments.length-1),p=arguments.length,h;for(h=1;h0&&this.X==0)for(;M=this.B.pop();)this.yN(M)}}return h!=0}return!1}; g.y.clear=function(U){if(U){var O=this.V[U];O&&(O.forEach(this.yN,this),delete this.V[U])}else this.U.length=0,this.V={}}; g.y.VP=function(){g.AD.vN.VP.call(this);this.clear();this.B.length=0};g.I$.prototype.set=function(U,O){O===void 0?this.U.remove(U):this.U.set(U,g.a4(O))}; g.I$.prototype.get=function(U){try{var O=this.U.get(U)}catch(M){return}if(O!==null)try{return JSON.parse(O)}catch(M){throw"Storage: Invalid value was encountered";}}; g.I$.prototype.remove=function(U){this.U.remove(U)};g.SD(PT,g.I$);PT.prototype.set=function(U,O){PT.vN.set.call(this,U,r6w(O))}; PT.prototype.V=function(U){U=PT.vN.get.call(this,U);if(U===void 0||U instanceof Object)return U;throw"Storage: Invalid value was encountered";}; PT.prototype.get=function(U){if(U=this.V(U)){if(U=U.data,U===void 0)throw"Storage: Invalid value was encountered";}else U=void 0;return U};g.SD(ns,PT);ns.prototype.set=function(U,O,M){if(O=r6w(O)){if(M){if(M=M.length)return g.pq;var p=M.key(O++);if(U)return g.lM(p);p=M.getItem(p);if(typeof p!=="string")throw"Storage mechanism: Invalid value was encountered";return g.lM(p)}; return S}; g.y.clear=function(){u3(this);this.U.clear()}; g.y.key=function(U){u3(this);return this.U.key(U)};g.SD(q$,XA);g.SD(V3i,XA);g.SD(i3,Cs);i3.prototype.set=function(U,O){this.V.set(this.U+U,O)}; i3.prototype.get=function(U){return this.V.get(this.U+U)}; i3.prototype.remove=function(U){this.V.remove(this.U+U)}; i3.prototype.In=function(U){var O=this.V[Symbol.iterator](),M=this,S=new g.FO;S.next=function(){var p=O.next();if(p.done)return p;for(p=p.value;p.slice(0,M.U.length)!=M.U;){p=O.next();if(p.done)return p;p=p.value}return g.lM(U?p.slice(M.U.length):M.V.get(p))}; return S};Ks.prototype.getValue=function(){return this.V}; Ks.prototype.clone=function(){return new Ks(this.U,this.V)};g.y=rB.prototype;g.y.Y$=function(U,O){var M=this.U;M.push(new Ks(U,O));U=M.length-1;O=this.U;for(M=O[U];U>0;){var S=U-1>>1;if(O[S].U>M.U)O[U]=O[S],U=S;else break}O[U]=M}; g.y.remove=function(){var U=this.U,O=U.length,M=U[0];if(!(O<=0)){if(O==1)U.length=0;else{U[0]=U.pop();U=0;O=this.U;for(var S=O.length,p=O[U];U>1;){var h=U*2+1,J=U*2+2;h=Jp.U)break;O[U]=O[h];U=h}O[U]=p}return M.getValue()}}; g.y.Zz=function(){for(var U=this.U,O=[],M=U.length,S=0;S>>16&65535|0;for(var h;M!==0;){h=M>2E3?2E3:M;M-=h;do p=p+O[S++]|0,U=U+p|0;while(--h);p%=65521;U%=65521}return p|U<<16|0};for(var DR={},$T,ppL=[],TV=0;TV<256;TV++){$T=TV;for(var hqC=0;hqC<8;hqC++)$T=$T&1?3988292384^$T>>>1:$T>>>1;ppL[TV]=$T}DR=function(U,O,M,S){M=S+M;for(U^=-1;S>>8^ppL[(U^O[S])&255];return U^-1};var Fd={};Fd={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 M5=[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],hz=[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],DNq=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fJm=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T6=Array(576);V$(T6);var j6=Array(60);V$(j6);var pG=Array(512);V$(pG);var gZ=Array(256);V$(gZ);var S6=Array(29);V$(S6);var Jz=Array(30);V$(Jz);var HzU,z_7,cSe,e_w=!1;var Bi;Bi=[new vi(0,0,0,0,function(U,O){var M=65535;for(M>U.BO-5&&(M=U.BO-5);;){if(U.zS<=1){dZ(U);if(U.zS===0&&O===0)return 1;if(U.zS===0)break}U.fE+=U.zS;U.zS=0;var S=U.Hb+M;if(U.fE===0||U.fE>=S)if(U.zS=U.fE-S,U.fE=S,e6(U,!1),U.RW.wK===0)return 1;if(U.fE-U.Hb>=U.Qf-262&&(e6(U,!1),U.RW.wK===0))return 1}U.Y$=0;if(O===4)return e6(U,!0),U.RW.wK===0?3:4;U.fE>U.Hb&&e6(U,!1);return 1}), new vi(4,4,8,4,Wi),new vi(4,5,16,8,Wi),new vi(4,6,32,32,Wi),new vi(4,4,16,16,N5),new vi(8,16,32,32,N5),new vi(8,16,128,128,N5),new vi(8,32,128,256,N5),new vi(32,128,258,1024,N5),new vi(32,258,258,4096,N5)];var jZi={};jZi=function(){this.input=null;this.yx=this.Km=this.Bu=0;this.output=null;this.R0=this.wK=this.Nk=0;this.msg="";this.state=null;this.df=2;this.Ke=0};var dNe=Object.prototype.toString; xk.prototype.push=function(U,O){var M=this.RW,S=this.options.chunkSize;if(this.ended)return!1;var p=O===~~O?O:O===!0?4:0;typeof U==="string"?M.input=wcw(U):dNe.call(U)==="[object ArrayBuffer]"?M.input=new Uint8Array(U):M.input=U;M.Bu=0;M.Km=M.input.length;do{M.wK===0&&(M.output=new Ls.AN(S),M.Nk=0,M.wK=S);U=ThU(M,p);if(U!==1&&U!==0)return this.H3(U),this.ended=!0,!1;if(M.wK===0||M.Km===0&&(p===4||p===2))if(this.options.Kg==="string"){var h=Ls.Q4(M.output,M.Nk);O=h;h=h.length;if(h<65537&&(O.subarray&& SVv||!O.subarray))O=String.fromCharCode.apply(null,Ls.Q4(O,h));else{for(var J="",f=0;f0||M.wK===0)&&U!==1);if(p===4)return(M=this.RW)&&M.state?(S=M.state.status,S!==42&&S!==69&&S!==73&&S!==91&&S!==103&&S!==113&&S!==666?U=ls(M,-2):(M.state=null,U=S===113?ls(M,-3):0)):U=-2,this.H3(U),this.ended=!0,U===0;p===2&&(this.H3(0),M.wK=0);return!0}; xk.prototype.H3=function(U){U===0&&(this.result=this.options.Kg==="string"?this.chunks.join(""):Ls.QE(this.chunks));this.chunks=[];this.err=U;this.msg=this.RW.msg};var RV="@@redux/INIT"+bs(),bz7="@@redux/REPLACE"+bs();var R_J=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Jov=[0,TJl,-3,sW];g.c(m9,V5);m9.prototype.getType=function(){return Ba(this,11)};var OuW=function(){var U=[0,eXq,jJq,kt,TJl,kt,-1,sW,TJl,sW,-1,eXq,sW,jJq,wX,Jov,kt,-1,sW];return function(O,M){var S={F1:!0};M&&Object.assign(S,M);O=x2w(O,void 0,void 0,S);try{var p=new m9;Ct(p);var h=p.o_;jX(U)(h,O);var J=p}finally{O.free()}return J}}();var AS5=-817087889;var rxe=new g.Az("adInfoDialogEndpoint");var jRg=new g.Az("adPingingEndpoint");var C95=new g.Az("crossDeviceProgressCommand");var hZ=new g.Az("actionCompanionAdRenderer");var e2=new g.Az("adActionInterstitialRenderer");var yoh=new g.Az("adDurationRemainingRenderer");var uY=new g.Az("adHoverTextButtonRenderer");var ZMi=new g.Az("adInfoDialogRenderer");var dw=new g.Az("adMessageRenderer");var qC=new g.Az("adPreviewRenderer");var yZ=new g.Az("adsEngagementPanelRenderer");var f75=new g.Az("dismissablePanelTextPortraitImageRenderer");var JJq=new g.Az("adsEngagementPanelSectionListViewModel");var fTh=new g.Az("flyoutCtaRenderer");var JZ=new g.Az("imageCompanionAdRenderer");var TF=new g.Az("instreamAdPlayerOverlayRenderer");var Cqe=new g.Az("instreamSurveyAdBackgroundImageRenderer");var Xf=new g.Az("instreamSurveyAdPlayerOverlayRenderer");var cl=new g.Az("instreamSurveyAdRenderer"),Cr=new g.Az("instreamSurveyAdSingleSelectQuestionRenderer"),QZ=new g.Az("instreamSurveyAdMultiSelectQuestionRenderer"),jN=new g.Az("instreamSurveyAdAnswerRenderer"),FjD=new g.Az("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Hl=new g.Az("instreamVideoAdRenderer");var lTD=new g.Az("textOverlayAdContentRenderer"),G$D=new g.Az("enhancedTextOverlayAdContentRenderer"),$2p=new g.Az("imageOverlayAdContentRenderer");var j2=new g.Az("playerOverlayLayoutRenderer");var Ho=new g.Az("videoInterstitialButtonedCenteredLayoutRenderer");var TMw=new g.Az("aboveFeedAdLayoutRenderer");var jGg=new g.Az("belowPlayerAdLayoutRenderer");var $ze=new g.Az("inPlayerAdLayoutRenderer");var Wl=new g.Az("playerBytesAdLayoutRenderer");var nr=new g.Az("playerBytesSequenceItemAdLayoutRenderer");var Pl=new g.Az("playerUnderlayAdLayoutRenderer");var zJ=new g.Az("adIntroRenderer");var j5=new g.Az("playerBytesSequentialLayoutRenderer");var EZi=new g.Az("slidingTextPlayerOverlayRenderer");var Dg=new g.Az("surveyTextInterstitialRenderer");var NC=new g.Az("videoAdTrackingRenderer");var T3C=new g.Az("simpleAdBadgeRenderer");var GR=new g.Az("skipAdRenderer"),jeQ=new g.Az("skipButtonRenderer");var rR=new g.Az("adSlotRenderer");var Bl=new g.Az("squeezebackPlayerSidePanelRenderer");var eqv=new g.Az("timedPieCountdownRenderer");var uw=new g.Az("adAvatarViewModel");var qU=new g.Az("adBadgeViewModel");var iw=new g.Az("adButtonViewModel");var HtD=new g.Az("adDetailsLineViewModel");var zq4=new g.Az("adDisclosureBannerViewModel");var coq=new g.Az("adPodIndexViewModel");var D2q=new g.Az("imageBackgroundViewModel");var d2C=new g.Az("adGridCardCollectionViewModel");var Wjq=new g.Az("adGridCardTextViewModel");var N3J=new g.Az("adPreviewViewModel");var v$C=new g.Az("playerAdAvatarLockupCardButtonedViewModel");var B3Q=new g.Az("skipAdButtonViewModel");var x24=new g.Az("skipAdViewModel");var btL=new g.Az("timedPieCountdownViewModel");var RqE=new g.Az("visitAdvertiserLinkViewModel");var fr=new g.Az("bannerImageLayoutViewModel");var Ff=new g.Az("topBannerImageTextIconButtonedLayoutViewModel");var lY=new g.Az("adsEngagementPanelLayoutViewModel");var xi=new g.Az("displayUnderlayTextGridCardsLayoutViewModel");g.mr=new g.Az("browseEndpoint");var tSE=new g.Az("confirmDialogEndpoint");var jsg=new g.Az("commandContext");var GIw=new g.Az("rawColdConfigGroup");var lOJ=new g.Az("rawHotConfigGroup");g.Bv=new g.Az("commandExecutorCommand");g.c(nlq,V5);var g3m={YiP:0,r6A:1,trl:32,OtL:61,kzZ:67,COP:103,Shc:86,A6P:42,liA:60,Vrd:62,d9a:73,fig:76,Gz0:88,IiY:90,D9A:99,sEA:98,TbL:100,btd:102,qhd:41,m9g:69,LGQ:70,POa:71,eKn:2,ETP:27,ANDROID:3,vFn:54,BcQ:14,ftA:91,XUd:55,Mul:24,nFd:20,sFn:18,Aoa:21,tuQ:104,dnd:30,SvA:29,CrY:28,gYA:101,GAd:34,bm0:36,QFA:38,IOS:5,i9g:15,Z9d:92,jBZ:40,Re0:25,eel:17,E2c:19,Yac:64,WaA:66,Fan:26,xwy:22,gTl:33,pDP:68,wDL:35,NOy:53,zeg:37,JUn:39,qig:7,mTl:57,L2n:43,HNA:59,Ptd:93,KWc:74,h7y:75,c0Y:85,iNg:65,J0l:80,R7c:8,kvn:10, E_c:58,e7Y:63,joZ:72,Omy:23,c6A:11,itg:13,p7y:12,DTy:16,QEA:56,KGa:31,jnG:77,v2l:84,u4Y:87,Xb0:89,BOG:94,GDY:95};g.c(IV,V5);IV.prototype.Ty=function(){return Ns(this,3)}; IV.prototype.hM=function(){return Ns(this,5)}; IV.prototype.o9=function(U){return RX(this,5,U)};g.c(Pi,V5);g.c(QZe,V5);g.c(nG,V5);g.y=nG.prototype;g.y.getDeviceId=function(){return Ns(this,6)}; g.y.P_=function(U){var O=SG(this,9,j9,3,!0);ZT(O,U);return O[U]}; g.y.getPlayerType=function(){return Ba(this,36)}; g.y.setHomeGroupInfo=function(U){return z4(this,QZe,81,U)}; g.y.clearLocationPlayabilityToken=function(){return wf(this,89)};g.c(QE,V5);QE.prototype.getValue=function(){return Ns(this,T4(this,fOe,2))}; var fOe=[2,3,4,5,6];g.c(CG,V5);CG.prototype.setTrackingParams=function(U){return wf(this,1,tDJ(U,!1))};g.c(Xd,V5);g.c(us,V5);us.prototype.P_=function(U){var O=SG(this,5,e9,3,!0);ZT(O,U);return O[U]};g.c(q5,V5);q5.prototype.getToken=function(){return dH(this,2)}; q5.prototype.setToken=function(U){return RX(this,2,U)};g.c(is,V5);is.prototype.setSafetyMode=function(U){return Yy(this,5,U)};g.c(ZR,V5);ZR.prototype.by=function(U){return z4(this,nG,1,U)};var Zg=new g.Az("thumbnailLandscapePortraitRenderer");g.YVL=new g.Az("changeEngagementPanelVisibilityAction");var jx4=new g.Az("continuationCommand");g.m2y=new g.Az("openPopupAction");g.eN=new g.Az("webCommandMetadata");var mC1=new g.Az("metadataBadgeRenderer");var TIe=new g.Az("signalServiceEndpoint");var Eh=new g.Az("innertubeCommand");var gae=new g.Az("loggingDirectives");var W67={H1l:"EMBEDDED_PLAYER_MODE_UNKNOWN",mhA:"EMBEDDED_PLAYER_MODE_DEFAULT",PiQ:"EMBEDDED_PLAYER_MODE_PFP",LwA:"EMBEDDED_PLAYER_MODE_PFL"};var Seq=new g.Az("channelThumbnailEndpoint");var MT5=new g.Az("embeddedPlayerErrorMessageRenderer");var UqU=new g.Az("embeddedPlayerOverlayVideoDetailsRenderer"),pM5=new g.Az("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),h0g=new g.Az("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var RrU=new g.Az("embedsInfoPanelRenderer");var Aoh=new g.Az("feedbackEndpoint");var ITh=new g.Az("callToActionButtonViewModel");var PHD=new g.Az("interactionLoggingCommandMetadata");var zRe={nYl:"WEB_DISPLAY_MODE_UNKNOWN",vYP:"WEB_DISPLAY_MODE_BROWSER",X50:"WEB_DISPLAY_MODE_MINIMAL_UI",MrL:"WEB_DISPLAY_MODE_STANDALONE",Bb0:"WEB_DISPLAY_MODE_FULLSCREEN"};g.c(KG,V5);KG.prototype.getPlayerType=function(){return Ba(this,7)}; KG.prototype.OF=function(){return Ns(this,19)}; KG.prototype.setVideoId=function(U){return RX(this,19,U)};g.c(rZ,V5);g.c(aV,V5);g.c(E$,V5); var n$X=[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];var Qey=new g.Az("loggingContext");g.c(LG,V5);g.c(VE,V5);VE.prototype.OF=function(){return dH(this,T4(this,D8,1))}; VE.prototype.setVideoId=function(U){return G4(this,1,D8,xj(U))}; VE.prototype.getPlaylistId=function(){return dH(this,T4(this,D8,2))}; var D8=[1,2];g.c(CM5,V5);var JK=new g.Az("changeKeyedMarkersVisibilityCommand");var CHC=new g.Az("changeMarkersVisibilityCommand");var Igq=new g.Az("loadMarkersCommand");var XpC=new g.Az("suggestedActionDataViewModel");var db4=new g.Az("timelyActionViewModel");var Dbi=new g.Az("timelyActionsOverlayViewModel");var B7y=new g.Az("productListItemRenderer");var uNl=new g.Az("shoppingOverlayRenderer");var OHw=new g.Az("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var qVq=new g.Az("adFeedbackEndpoint");var itQ=new g.Az("menuEndpoint");var uz5=new g.Az("phoneDialerEndpoint");var Cwm=new g.Az("sendSmsEndpoint");var wlJ=new g.Az("copyTextEndpoint");var Ztq=new g.Az("shareEndpoint"),Kjy=new g.Az("shareEntityEndpoint"),roJ=new g.Az("shareEntityServiceEndpoint"),aTE=new g.Az("webPlayerShareEntityServiceEndpoint");g.ad=new g.Az("urlEndpoint");g.pe=new g.Az("watchEndpoint");var E$X=new g.Az("watchPlaylistEndpoint");g.LjD=new g.Az("offlineOrchestrationActionCommand");var y97=new g.Az("compositeVideoOverlayRenderer");var VSC=new g.Az("miniplayerRenderer");var oi5=new g.Az("paidContentOverlayRenderer");var o$D=new g.Az("playerMutedAutoplayOverlayRenderer"),k$l=new g.Az("playerMutedAutoplayEndScreenRenderer");var Kzw=new g.Az("unserializedPlayerResponse"),wpv=new g.Az("unserializedPlayerResponse");var Uoy=new g.Az("playlistEditEndpoint");var Hu;g.iY=new g.Az("buttonRenderer");Hu=new g.Az("toggleButtonRenderer");var hKW=new g.Az("counterfactualRenderer");var Ocl=new g.Az("resolveUrlCommandMetadata");var spD=new g.Az("modifyChannelNotificationPreferenceEndpoint");var TzW=new g.Az("pingingEndpoint");var gjv=new g.Az("unsubscribeEndpoint");g.AK=new g.Az("subscribeButtonRenderer");var M9l=new g.Az("subscribeEndpoint");var dG7=new g.Az("buttonViewModel");var yJ4=new g.Az("qrCodeRenderer");var SZw={uel:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Aay:"LIVING_ROOM_APP_MODE_MAIN",Qn0:"LIVING_ROOM_APP_MODE_KIDS",tGa:"LIVING_ROOM_APP_MODE_MUSIC",lzY:"LIVING_ROOM_APP_MODE_UNPLUGGED",snl:"LIVING_ROOM_APP_MODE_GAMING"};var BR1=new g.Az("autoplaySwitchButtonRenderer");var mU,GgJ,kR4,NNw;mU=new g.Az("decoratedPlayerBarRenderer");GgJ=new g.Az("chapteredPlayerBarRenderer");kR4=new g.Az("multiMarkersPlayerBarRenderer");NNw=new g.Az("chapterRenderer");g.eyi=new g.Az("markerRenderer");var SBE=new g.Az("decoratedPlayheadRenderer");var t51=new g.Az("desktopOverlayConfigRenderer");var Fv5=new g.Az("engagementPanelSectionListRenderer");var brJ=new g.Az("gatedActionsOverlayViewModel");var Drg=new g.Az("heatMarkerRenderer");var cVW=new g.Az("heatmapRenderer");var AZg=new g.Az("watchToWatchTransitionRenderer");var sre=new g.Az("playlistPanelRenderer");var pVX=new g.Az("productUpsellSuggestedActionViewModel");var hQQ=new g.Az("suggestedActionTimeRangeTrigger"),Jfl=new g.Az("suggestedActionsRenderer"),yfh=new g.Az("suggestedActionRenderer");var drJ=new g.Az("timedMarkerDecorationRenderer");var jim=new g.Az("cipher");var rTi=new g.Az("playerVars");var fPX=new g.Az("playerVars");var zV=g.q1.window,FyC,lPJ,oV=(zV==null?void 0:(FyC=zV.yt)==null?void 0:FyC.config_)||(zV==null?void 0:(lPJ=zV.ytcfg)==null?void 0:lPJ.data_)||{};g.Zq("yt.config_",oV);var OI=[];var Lle=/^[\w.]*$/,KlU={q:!0,search_query:!0},Zz1=String(yI);var zr=new function(){var U=window.document;this.U=window;this.V=U}; g.Zq("yt.ads_.signals_.getAdSignalsString",function(U){return f4(D2(U))});g.gJ();var olw="XMLHttpRequest"in g.q1?function(){return new XMLHttpRequest}:null;var GHh="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.N(GHh);var O$1={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"},sHe="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.N(GHh)),fVJ=!1,whm=ghg,hO7=Ab;g.c(n4,eD);X2.prototype.then=function(U,O,M){return this.U?this.U.then(U,O,M):this.B===1&&U?(U=U.call(M,this.V))&&typeof U.then==="function"?U:qv(U):this.B===2&&O?(U=O.call(M,this.V))&&typeof U.then==="function"?U:ux(U):this}; X2.prototype.getValue=function(){return this.V}; X2.prototype.$goog_Thenable=!0;var ix=!1;var gI=SQ||pE;var D9w=/^([0-9\.]+):([0-9\.]+)$/;g.c(DO,eD);DO.prototype.name="BiscottiError";g.c(cA,eD);cA.prototype.name="BiscottiMissingError";var vhy={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},dr=null;var vjw=jm(["data-"]),IVw={};var $oh=0,WA=g.yG?"webkit":Hc?"moz":g.DU?"ms":g.AG?"o":"",TfJ=g.K7("ytDomDomGetNextId")||function(){return++$oh}; g.Zq("ytDomDomGetNextId",TfJ);var Cem={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};Rn.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Rn.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Rn.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var tw=g.q1.ytEventsEventsListeners||{};g.Zq("ytEventsEventsListeners",tw);var qQi=g.q1.ytEventsEventsCounter||{count:0};g.Zq("ytEventsEventsCounter",qQi);var r87=xq(function(){var U=!1;try{var O=Object.defineProperty({},"passive",{get:function(){U=!0}}); window.addEventListener("test",null,O)}catch(M){}return U}),i$4=xq(function(){var U=!1; try{var O=Object.defineProperty({},"capture",{get:function(){U=!0}}); window.addEventListener("test",null,O)}catch(M){}return U});var cu;cu=window;g.nM=cu.ytcsi&&cu.ytcsi.now?cu.ytcsi.now:cu.performance&&cu.performance.timing&&cu.performance.now&&cu.performance.timing.navigationStart?function(){return cu.performance.timing.navigationStart+cu.performance.now()}:function(){return(new Date).getTime()};g.SD(PA,g.C);PA.prototype.Z=function(U){U.U===void 0&&XSe(U);var O=U.U;U.V===void 0&&XSe(U);this.U=new g.xv(O,U.V)}; PA.prototype.Uf=function(){return this.U||new g.xv}; PA.prototype.yP=function(){if(this.U){var U=(0,g.nM)();if(this.X!=0){var O=this.C,M=this.U,S=O.x-M.x;O=O.y-M.y;S=Math.sqrt(S*S+O*O)/(U-this.X);this.V[this.B]=Math.abs((S-this.G)/this.G)>.5?1:0;for(M=O=0;M<4;M++)O+=this.V[M]||0;O>=3&&this.D();this.G=S}this.X=U;this.C=this.U;this.B=(this.B+1)%4}}; PA.prototype.VP=function(){g.xJ(this.Y);g.mX(this.ol)};g.c(nE,g.C);nE.prototype.j=function(U,O,M,S,p){M=g.p4((0,g.U4)(M,S||this.Qa));M={target:U,name:O,callback:M};var h;p&&r87()&&(h={passive:!0});U.addEventListener(O,M.callback,h);this.Y.push(M);return M}; nE.prototype.bH=function(U){for(var O=0;O=u.cO)||v.U.version>=w||v.U.objectStoreNames.contains(P)||t.push(P)}F=t;if(F.length===0){W.tZ(5);break}l=Object.keys(M.options.LI); G=f.objectStoreNames();if(M.GM.options.version+1)throw e.close(),M.B=!1,ADw(M,H);return W.return(e);case 8:throw O(), T instanceof Error&&!g.R0("ytidb_async_stack_killswitch")&&(T.stack=T.stack+"\n"+J.substring(J.indexOf("\n")+1)),RE(T,M.name,"",(z=M.options.version)!=null?z:-1);}})} function O(){M.U===S&&(M.U=void 0)} var M=this;if(!this.B)throw ADw(this);if(this.U)return this.U;var S,p={blocking:function(h){h.close()}, closed:O,NLa:O,upgrade:this.options.upgrade};return this.U=S=U()};var Uu=new kO("YtIdbMeta",{LI:{databases:{cO:1}},upgrade:function(U,O){O(1)&&g.CM(U,"databases",{keyPath:"actualName"})}});var pA,SR=new function(){}(new function(){});new g.AH;g.c(yw,kO);yw.prototype.V=function(U,O,M){M=M===void 0?{}:M;return(this.options.shared?isg:qMJ)(U,O,Object.assign({},M))}; yw.prototype.delete=function(U){U=U===void 0?{}:U;return(this.options.shared?aUJ:ZsW)(this.name,U)};var Nfp={},LTy=g.fA("ytGcfConfig",{LI:(Nfp.coldConfigStore={cO:1},Nfp.hotConfigStore={cO:1},Nfp),shared:!1,upgrade:function(U,O){O(1)&&(g.KM(g.CM(U,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.KM(g.CM(U,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.c(lB,g.C);lB.prototype.VP=function(){for(var U=g.D(this.V),O=U.next();!O.done;O=U.next()){var M=this.U;O=M.indexOf(O.value);O>=0&&M.splice(O,1)}this.V.length=0;g.C.prototype.VP.call(this)};HW.prototype.o9=function(U){this.hotHashData=U;g.Zq("yt.gcf.config.hotHashData",this.hotHashData||null)};var vj4=typeof TextEncoder!=="undefined"?new TextEncoder:null,QVe=vj4?function(U){return vj4.encode(U)}:function(U){U=g.dJ(U); for(var O=new Uint8Array(U.length),M=0;M=O?!1:!0}; g.y.MK=function(){var U=this;if(!rI(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Nz.ji("QUEUED",this.FL).then(function(O){O&&!U.UE(O,U.LY)?U.ut.YX(function(){return g.A(function(M){if(M.U==1)return O.id===void 0?M.tZ(2):g.Y(M,U.Nz.L2(O.id,U.FL),2);U.MK();g.Dq(M)})}):U.GO.SH()&&U.nL()})};var LA;var jnW={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, 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,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};var xoL={},s0W=g.fA("ServiceWorkerLogsDatabase",{LI:(xoL.SWHealthLog={cO:1},xoL),shared:!0,upgrade:function(U,O){O(1)&&g.KM(g.CM(U,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var ka={},Jb5=0;var wI;OC.prototype.requestComplete=function(U,O){O&&(this.V=!0);U=this.removeParams(U);this.U.get(U)||this.U.set(U,O)}; OC.prototype.isEndpointCFR=function(U){U=this.removeParams(U);return(U=this.U.get(U))?!1:U===!1&&this.V?!0:null}; OC.prototype.removeParams=function(U){return U.split("?")[0]}; OC.prototype.removeParams=OC.prototype.removeParams;OC.prototype.isEndpointCFR=OC.prototype.isEndpointCFR;OC.prototype.requestComplete=OC.prototype.requestComplete;OC.getInstance=sC;g.c(gP,g.$q);g.y=gP.prototype;g.y.SH=function(){return this.U.SH()}; g.y.VW=function(U){this.U.U=U}; g.y.oy0=function(){var U=window.navigator.onLine;return U===void 0?!0:U}; g.y.JW=function(){this.V=!0}; g.y.listen=function(U,O){return this.U.listen(U,O)}; g.y.l9=function(U){U=K$(this.U,U);U.then(function(O){g.R0("use_cfr_monitor")&&sC().requestComplete("generate_204",O)}); return U}; gP.prototype.sendNetworkCheckRequest=gP.prototype.l9;gP.prototype.listen=gP.prototype.listen;gP.prototype.enableErrorFlushing=gP.prototype.JW;gP.prototype.getWindowStatus=gP.prototype.oy0;gP.prototype.networkStatusHint=gP.prototype.VW;gP.prototype.isNetworkAvailable=gP.prototype.SH;gP.getInstance=Fo5;g.c(g.MY,g.$q);g.MY.prototype.SH=function(){var U=g.K7("yt.networkStatusManager.instance.isNetworkAvailable");return U?U.bind(this.V)():!0}; g.MY.prototype.VW=function(U){var O=g.K7("yt.networkStatusManager.instance.networkStatusHint").bind(this.V);O&&O(U)}; g.MY.prototype.l9=function(U){var O=this,M;return g.A(function(S){M=g.K7("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(O.V);return g.R0("skip_network_check_if_cfr")&&sC().isEndpointCFR("generate_204")?S.return(new Promise(function(p){var h;O.VW(((h=window.navigator)==null?void 0:h.onLine)||!0);p(O.SH())})):M?S.return(M(U)):S.return(!0)})};var S0;g.c(pv,ax);pv.prototype.writeThenSend=function(U,O){O||(O={});O=JE(U,O);g.MR()||(this.U=!1);ax.prototype.writeThenSend.call(this,U,O)}; pv.prototype.sendThenWrite=function(U,O,M){O||(O={});O=JE(U,O);g.MR()||(this.U=!1);ax.prototype.sendThenWrite.call(this,U,O,M)}; pv.prototype.sendAndWrite=function(U,O){O||(O={});O=JE(U,O);g.MR()||(this.U=!1);ax.prototype.sendAndWrite.call(this,U,O)}; pv.prototype.awaitInitialization=function(){return this.B.promise};var j05=g.q1.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Zq("ytNetworklessLoggingInitializationOptions",j05);g.yJ.prototype.isReady=function(){!this.config_&&lRw()&&(this.config_=g.cW());return!!this.config_};var bcL,li,$1;bcL=g.q1.ytPubsubPubsubInstance||new g.AD;li=g.q1.ytPubsubPubsubSubscribedKeys||{};$1=g.q1.ytPubsubPubsubTopicToKeys||{};g.GK=g.q1.ytPubsubPubsubIsSynchronous||{};g.AD.prototype.subscribe=g.AD.prototype.subscribe;g.AD.prototype.unsubscribeByKey=g.AD.prototype.yN;g.AD.prototype.publish=g.AD.prototype.publish;g.AD.prototype.clear=g.AD.prototype.clear;g.Zq("ytPubsubPubsubInstance",bcL);g.Zq("ytPubsubPubsubTopicToKeys",$1);g.Zq("ytPubsubPubsubIsSynchronous",g.GK); g.Zq("ytPubsubPubsubSubscribedKeys",li);var dv1={};g.c(bi,g.C);bi.prototype.append=function(U){if(!this.V)throw Error("This does not support the append operation");U=U.tG();this.tG().appendChild(U)}; g.c(RD,bi);RD.prototype.tG=function(){return this.U};g.c(tE,g.C);tE.prototype.onTouchStart=function(U){this.D=!0;this.V=U.touches.length;this.U.isActive()&&(this.U.stop(),this.G=!0);U=U.touches;this.C=vJw(this,U)||U.length!=1;var O=U.item(0);this.C||!O?this.Z=this.Y=Infinity:(this.Y=O.clientX,this.Z=O.clientY);for(O=this.B.length=0;O=0)}if(O||U&&Math.pow(U.clientX-this.Y,2)+Math.pow(U.clientY-this.Z,2)>25)this.X=!0}; tE.prototype.onTouchEnd=function(U){var O=U.changedTouches;O&&this.D&&this.V==1&&!this.X&&!this.G&&!this.C&&vJw(this,O)&&(this.yP=U,this.U.start());this.V=U.touches.length;this.V===0&&(this.X=this.D=!1,this.B.length=0);this.G=!1};var Y1=Date.now().toString();var nv={};var ii=Symbol("injectionDeps");Cv.prototype.toString=function(){return"InjectionToken("+this.name+")"}; b47.prototype.resolve=function(U){return U instanceof XH?Z5(this,U.key,[],!0):Z5(this,U,[])};var Kv;var aD=window;var oD=g.R0("web_enable_lifecycle_monitoring")&&EC()!==0,Px4=g.R0("web_enable_lifecycle_monitoring");mvi.prototype.cancel=function(){for(var U=g.D(this.U),O=U.next();!O.done;O=U.next())O=O.value,O.jobId===void 0||O.jo||this.scheduler.C1(O.jobId),O.jo=!0;this.V.resolve()};g.y=k1.prototype;g.y.install=function(U){this.plugins.push(U);return this}; g.y.uninstall=function(){var U=this;g.m4.apply(0,arguments).forEach(function(O){O=U.plugins.indexOf(O);O>-1&&U.plugins.splice(O,1)})}; g.y.transition=function(U,O){var M=this;oD&&tJ4(this.state);var S=this.transitions.find(function(h){return Array.isArray(h.from)?h.from.find(function(J){return J===M.state&&h.Kg===U}):h.from===M.state&&h.Kg===U}); if(S){this.V&&(Ab4(this.V),this.V=void 0);nJU(this,U,O);this.state=U;oD&&Lv(this.state);S=S.action.bind(this);var p=this.plugins.filter(function(h){return h[U]}).map(function(h){return h[U]}); S(I2g(this,p),O)}else throw Error("no transition specified from "+this.state+" to "+U);}; g.y.YpA=function(U){var O=g.m4.apply(1,arguments);g.yF();for(var M=g.D(U),S=M.next(),p={};!S.done;p={Zc:void 0},S=M.next())p.Zc=S.value,SM4(function(h){return function(){Uh(h.Zc.name);sh(function(){return h.Zc.callback.apply(h.Zc,g.N(O))}); Oh(h.Zc.name)}}(p))}; g.y.ESP=function(U){var O=g.m4.apply(1,arguments),M,S,p,h;return g.A(function(J){J.U==1&&(g.yF(),M=g.D(U),S=M.next(),p={});if(J.U!=3){if(S.done)return J.tZ(0);p.qZ=S.value;p.zG=void 0;h=function(f){return function(){Uh(f.qZ.name);var F=sh(function(){return f.qZ.callback.apply(f.qZ,g.N(O))}); TB(F)?f.zG=g.R0("web_lifecycle_error_handling_killswitch")?F.then(function(){Oh(f.qZ.name)}):F.then(function(){Oh(f.qZ.name)},function(l){YIq(l); Oh(f.qZ.name)}):Oh(f.qZ.name)}}(p); SM4(h);return p.zG?g.Y(J,p.zG,3):J.tZ(3)}p={qZ:void 0,zG:void 0};S=M.next();return J.tZ(2)})}; g.y.t2=function(U){var O=g.m4.apply(1,arguments),M=this,S=U.map(function(p){return{Sf:function(){Uh(p.name);sh(function(){return p.callback.apply(p,g.N(O))}); Oh(p.name)}, priority:wP(M,p)}}); S.length&&(this.V=new mvi(S))}; g.l5.Object.defineProperties(k1.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var MT;g.c(gz,k1);gz.prototype.G=function(U,O){var M=this;this.U=g.hx(0,function(){M.currentState==="application_navigating"&&M.transition("none")},5E3); U(O==null?void 0:O.event)}; gz.prototype.C=function(U,O){this.U&&(g.aH.C1(this.U),this.U=null);U(O==null?void 0:O.event)};var RR=[];g.Zq("yt.logging.transport.getScrapedGelPayloads",function(){return RR});S$.prototype.storePayload=function(U,O){U=p5(U);this.store[U]?this.store[U].push(O):(this.V={},this.store[U]=[O]);this.U++;g.R0("more_accurate_gel_parser")&&(O=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(O));return U}; S$.prototype.smartExtractMatchingEntries=function(U){if(!U.keys.length)return[];for(var O=Jt(this,U.keys.splice(0,1)[0]),M=[],S=0;S=0){S=!1;break a}}S=!0}S&&(O=VX(O))&&this.sW(O)}}; g.y.kP=function(U){return U}; g.y.onTouchStart=function(U){this.BA.onTouchStart(U)}; g.y.onTouchMove=function(U){this.BA.onTouchMove(U)}; g.y.onTouchEnd=function(U){if(this.BA)this.BA.onTouchEnd(U)}; g.y.sW=function(U){this.layoutId?this.EA.executeCommand(U,this.layoutId):g.K5(new g.sT("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.y.createServerVe=function(U,O){this.api.createServerVe(U,this);this.api.setTrackingParams(U,O)}; g.y.logVisibility=function(U,O){this.api.hasVe(U)&&this.api.logVisibility(U,O,this.interactionLoggingClientData)}; g.y.VP=function(){this.clear(null);this.bH(this.pE);for(var U=g.D(this.sA),O=U.next();!O.done;O=U.next())this.bH(O.value);g.W_.prototype.VP.call(this)};g.c(iZ,NH); iZ.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);this.U=O;if(O.text==null&&O.icon==null)g.rz(Error("ButtonRenderer did not have text or an icon set."));else{switch(O.style||null){case "STYLE_UNKNOWN":U="ytp-ad-button-link";break;default:U=null}U!=null&&g.l3(this.element,U);O.text!=null&&(U=g.B_(O.text),g.Ny(U)||(this.element.setAttribute("aria-label",U),this.B=new g.W_({K:"span",L:"ytp-ad-button-text",UA:U}),g.X(this,this.B),this.B.AZ(this.element)));O.accessibilityData&&O.accessibilityData.accessibilityData&& O.accessibilityData.accessibilityData.label&&!g.Ny(O.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",O.accessibilityData.accessibilityData.label);O.icon!=null&&(O=qH(O.icon,this.X),O!=null&&(this.V=new g.W_({K:"span",L:"ytp-ad-button-icon",W:[O]}),g.X(this,this.V)),this.C?ed(this.element,this.V.element,0):this.V.AZ(this.element))}}; iZ.prototype.clear=function(){this.hide()}; iZ.prototype.onClick=function(U){NH.prototype.onClick.call(this,U);U=g.D(R1g(this));for(var O=U.next();!O.done;O=U.next())O=O.value,this.layoutId?this.EA.executeCommand(O,this.layoutId):g.K5(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.c(ZC,g.C);ZC.prototype.VP=function(){this.V&&g.mX(this.V);this.U.clear();KU=null;g.C.prototype.VP.call(this)}; ZC.prototype.register=function(U,O){O&&this.U.set(U,O)}; var KU=null;g.c(EX,NH); EX.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);U=O.hoverText||null;O=O.button&&g.q(O.button,g.iY)||null;O==null?g.K5(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new iZ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,void 0,void 0,void 0,void 0,this.B),g.X(this,this.button),this.button.init(jP("button"),O,this.macros),U&&this.button.element.setAttribute("aria-label",g.B_(U)),this.button.AZ(this.element),this.Z&&!g.y$(this.button.element, "ytp-ad-clickable")&&g.l3(this.button.element,"ytp-ad-clickable"),this.B&&g.l3(this.button.element,"ytp-ad-hover-text-button--clean-player"),U&&(this.V=new g.W_({K:"div",L:"ytp-ad-hover-text-container"}),this.C&&(O=new g.W_({K:"div",L:"ytp-ad-hover-text-callout"}),O.AZ(this.V.element),g.X(this,O)),g.X(this,this.V),this.V.AZ(this.element),O=rk(U),ed(this.V.element,O,0)),this.show())}; EX.prototype.hide=function(){this.button&&this.button.hide();this.V&&this.V.hide();NH.prototype.hide.call(this)}; EX.prototype.show=function(){this.button&&this.button.show();NH.prototype.show.call(this)};g.c(Vs,NH); Vs.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);M=(U=O.thumbnail)&&LU(U)||"";g.Ny(M)?Math.random()<.01&&g.rz(Error("Found AdImage without valid image URL")):(this.U?g.j3(this.element,"backgroundImage","url("+M+")"):JN(this.element,{src:M}),JN(this.element,{alt:U&&U.accessibility&&U.accessibility.label||""}),O&&O.adRendererCommands&&O.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Vs.prototype.clear=function(){this.hide()};g.c(od,NH);g.y=od.prototype;g.y.hide=function(){NH.prototype.hide.call(this);this.B&&this.B.focus()}; g.y.show=function(){this.B=document.activeElement;NH.prototype.show.call(this);this.X.focus()}; g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);this.V=O;O.dialogMessages||O.title!=null?O.confirmLabel==null?g.K5(Error("ConfirmDialogRenderer.confirmLabel was not set.")):O.cancelLabel==null?g.K5(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Axm(this,O):g.K5(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.y.clear=function(){g.CE(this.U);this.hide()}; g.y.BZ=function(){this.hide()}; g.y.e0=function(){var U=this.V.cancelEndpoint;U&&(this.layoutId?this.EA.executeCommand(U,this.layoutId):g.K5(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.y.XU=function(){var U=this.V.confirmNavigationEndpoint||this.V.confirmEndpoint;U&&(this.layoutId?this.EA.executeCommand(U,this.layoutId):g.K5(Error("Missing layoutId for confirm dialog.")));this.hide()};g.c(kQ,NH);g.y=kQ.prototype; g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);this.B=O;if(O.defaultText==null&&O.defaultIcon==null)g.K5(Error("ToggleButtonRenderer must have either text or icon set."));else if(O.defaultIcon==null&&O.toggledIcon!=null)g.K5(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(O.style){switch(O.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":U="ytp-ad-toggle-button-default-style";break;default:U=null}U!=null&&g.l3(this.X,U)}U={};O.defaultText? (M=g.B_(O.defaultText),g.Ny(M)||(U.buttonText=M,this.api.J().experiments.F0("a11y_h5_associate_survey_question")||this.U.setAttribute("aria-label",M),this.api.J().experiments.F0("fix_h5_toggle_button_a11y")&&this.V.setAttribute("aria-label",M))):g.t6(this.QP,!1);O.defaultTooltip&&(U.tooltipText=O.defaultTooltip,this.U.hasAttribute("aria-label")||this.V.setAttribute("aria-label",O.defaultTooltip));O.defaultIcon?(M=qH(O.defaultIcon),this.updateValue("untoggledIconTemplateSpec",M),O.toggledIcon?(this.ol= !0,M=qH(O.toggledIcon),this.updateValue("toggledIconTemplateSpec",M)):(g.t6(this.Z,!0),g.t6(this.C,!1)),g.t6(this.U,!1)):g.t6(this.V,!1);g.iy(U)||this.update(U);O.isToggled&&(g.l3(this.X,"ytp-ad-toggle-button-toggled"),this.toggleButton(O.isToggled));wk(this);this.j(this.element,"change",this.C8);this.show()}}; g.y.onClick=function(U){this.sA.length>0&&(this.toggleButton(!this.isToggled()),this.C8());NH.prototype.onClick.call(this,U)}; g.y.C8=function(){g.ea(this.X,"ytp-ad-toggle-button-toggled",this.isToggled());for(var U=g.D(IKe(this,this.isToggled())),O=U.next();!O.done;O=U.next())O=O.value,this.layoutId?this.EA.executeCommand(O,this.layoutId):g.K5(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);wk(this)}; g.y.clear=function(){this.hide()}; g.y.toggleButton=function(U){g.ea(this.X,"ytp-ad-toggle-button-toggled",U);this.U.checked=U;wk(this)}; g.y.isToggled=function(){return this.U.checked};g.c(Un,nE);Un.prototype.C=function(U){if(Array.isArray(U)){U=g.D(U);for(var O=U.next();!O.done;O=U.next())O=O.value,O instanceof Phi&&this.X(O)}};g.c(On,NH);g.y=On.prototype;g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);O.reasons?O.confirmLabel==null?g.K5(Error("AdFeedbackRenderer.confirmLabel was not set.")):(O.cancelLabel==null&&g.rz(Error("AdFeedbackRenderer.cancelLabel was not set.")),O.title==null&&g.rz(Error("AdFeedbackRenderer.title was not set.")),XXe(this,O)):g.K5(Error("AdFeedbackRenderer.reasons were not set."))}; g.y.clear=function(){Aw(this.C);Aw(this.Z);this.X.length=0;this.hide()}; g.y.hide=function(){this.U&&this.U.hide();this.V&&this.V.hide();NH.prototype.hide.call(this);this.B&&this.B.focus()}; g.y.show=function(){this.U&&this.U.show();this.V&&this.V.show();this.B=document.activeElement;NH.prototype.show.call(this);this.C.focus()}; g.y.l1=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.y.clP=function(){this.hide()}; sn.prototype.tG=function(){return this.U.element}; sn.prototype.getCommand=function(){return this.V}; sn.prototype.isChecked=function(){return this.B.checked};g.c(g4,od);g4.prototype.BZ=function(U){od.prototype.BZ.call(this,U);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; g4.prototype.e0=function(U){od.prototype.e0.call(this,U);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; g4.prototype.XU=function(U){od.prototype.XU.call(this,U);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.c(Mc,NH);g.y=Mc.prototype; g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);this.C=O;if(O.dialogMessage==null&&O.title==null)g.K5(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{O.confirmLabel==null&&g.rz(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(U=O.closeOverlayRenderer&&g.q(O.closeOverlayRenderer,g.iY)||null)this.U=new iZ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.X(this,this.U),this.U.init(jP("button"),U,this.macros),this.U.AZ(this.element);O.title&&(U=g.B_(O.title),this.updateValue("title",U));if(O.adReasons)for(U=O.adReasons,M=0;M=this.Ka?(this.ol.hide(),this.hZ=!0,this.publish("i")):this.B&&this.B.isTemplated()&&(U=Math.max(0,Math.ceil((this.Ka-U)/1E3)),U!=this.Rl&&(hB(this.B,{TIME_REMAINING:String(U)}),this.Rl=U)))}};g.c($4,JB);g.y=$4.prototype; g.y.init=function(U,O,M){JB.prototype.init.call(this,U,O,M);if(O.image&&O.image.thumbnail)if(O.headline)if(O.description)if((U=O.actionButton&&g.q(O.actionButton,g.iY))&&U.navigationEndpoint){var S=this.api.getVideoData(2);if(S!=null)if(O.image&&O.image.thumbnail){var p=O.image.thumbnail.thumbnails;p!=null&&p.length>0&&g.Ny(g.ly(p[0].url))&&(p[0].url=S.profilePicture)}else g.rz(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.B.init(jP("ad-image"),O.image,M);this.C.init(jP("ad-text"), O.headline,M);this.X.init(jP("ad-text"),O.description,M);this.V.init(jP("button"),U,M);M=kh(this.V.element);oH(this.V.element,M+" This link opens in new tab");this.ol=U.navigationEndpoint;this.api.d_()||this.show();this.api.J().T("enable_larger_flyout_cta_on_desktop")&&(this.ML("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.ML("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.ML("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.ML("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.ML("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.ML("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.V.element.classList.add("ytp-flyout-cta-action-button-large"),this.V.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.ML("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.I1.bind(this));this.QP=O.startMs||0;yc(this)}else g.K5(Error("FlyoutCtaRenderer has no valid action button."));else g.K5(Error("FlyoutCtaRenderer has no description AdText."));else g.K5(Error("FlyoutCtaRenderer has no headline AdText."));else g.rz(Error("FlyoutCtaRenderer has no image."))}; g.y.onClick=function(U){JB.prototype.onClick.call(this,U);this.api.pauseVideo();!g.zU(this.V.element,U.target)&&this.ol&&(this.layoutId?this.EA.executeCommand(this.ol,this.layoutId):g.K5(Error("Missing layoutId for flyout cta.")))}; g.y.Xe=function(){if(this.U){var U=this.U.getProgressState();(U&&U.current||this.Ka)&&1E3*U.current>=this.QP&&(fb(this),g.$U(this.element,"ytp-flyout-cta-inactive"),this.V.element.removeAttribute("tabIndex"))}}; g.y.MU=function(){this.clear()}; g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.I1.bind(this))}; g.y.show=function(){this.V&&this.V.show();JB.prototype.show.call(this)}; g.y.hide=function(){this.V&&this.V.hide();JB.prototype.hide.call(this)}; g.y.I1=function(U){U=="hidden"?this.show():this.hide()};g.c(TQ,NH);g.y=TQ.prototype; g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);this.U=O;if(this.U.rectangle)for(U=this.U.likeButton&&g.q(this.U.likeButton,Hu),O=this.U.dislikeButton&&g.q(this.U.dislikeButton,Hu),this.B.init(jP("toggle-button"),U,M),this.V.init(jP("toggle-button"),O,M),this.j(this.element,"change",this.Tf),this.X.show(100),this.show(),M=g.D(this.U&&this.U.impressionCommands||[]),U=M.next();!U.done;U=M.next())U=U.value,this.layoutId?this.EA.executeCommand(U,this.layoutId):g.K5(Error("Missing layoutId for instream user sentiment."))}; g.y.clear=function(){this.hide()}; g.y.hide=function(){this.B.hide();this.V.hide();NH.prototype.hide.call(this)}; g.y.show=function(){this.B.show();this.V.show();NH.prototype.show.call(this)}; g.y.Tf=function(){vsi(this.element,"ytp-ad-instream-user-sentiment-selected");this.U.postMessageAction&&this.api.ZQ("onYtShowToast",this.U.postMessageAction);this.X.hide()}; g.y.onClick=function(U){this.sA.length>0&&this.Tf();NH.prototype.onClick.call(this,U)};g.c(jp,g.C);g.y=jp.prototype;g.y.VP=function(){this.reset();g.C.prototype.VP.call(this)}; g.y.reset=function(){g.CE(this.X);this.C=!1;this.U&&this.U.stop();this.G.stop();this.B&&(this.B=!1,this.D.play())}; g.y.start=function(){this.reset();this.X.j(this.V,"mouseover",this.qD,this);this.X.j(this.V,"mouseout",this.Dl,this);this.yP&&(this.X.j(this.V,"focusin",this.qD,this),this.X.j(this.V,"focusout",this.Dl,this));this.U?this.U.start():(this.C=this.B=!0,g.j3(this.V,{opacity:this.Z}))}; g.y.qD=function(){this.B&&(this.B=!1,this.D.play());this.G.stop();this.U&&this.U.stop()}; g.y.Dl=function(){this.C?this.G.start():this.U&&this.U.start()}; g.y.a6=function(){this.B||(this.B=!0,this.Y.play(),this.C=!0)};var kww=[new ep("b.f_",!1,0),new ep("j.s_",!1,2),new ep("r.s_",!1,4),new ep("e.h_",!1,6),new ep("i.s_",!0,8),new ep("s.t_",!1,10),new ep("p.h_",!1,12),new ep("s.i_",!1,14),new ep("f.i_",!1,16),new ep("a.b_",!1,18),new ep("a.o_",!1),new ep("g.o_",!1,22),new ep("p.i_",!1,24),new ep("p.m_",!1),new ep("n.k_",!0,20),new ep("i.f_",!1),new ep("a.s_",!0),new ep("m.c_",!1),new ep("n.h_",!1,26),new ep("o.p_",!1)].reduce(function(U,O){U[O.V]=O;return U},{});g.c(vv,JB);g.y=vv.prototype; g.y.init=function(U,O,M){JB.prototype.init.call(this,U,O,M);this.ol=O;(this.QP=Upg(this))&&g.rz(Error("hasAdControlInClickCommands_ is true."));if(!O||g.iy(O))g.K5(Error("SkipButtonRenderer was not specified or empty."));else if(!O.message||g.iy(O.message))g.K5(Error("SkipButtonRenderer.message was not specified or empty."));else{U=this.C?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};O=qH(U);O==null?g.K5(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+U.iconType+".")): (this.X=new g.W_({K:"button",OA:[this.C?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{K:"span",L:this.C?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[O]}]}),g.X(this,this.X),this.X.AZ(this.B.element),this.V=new pb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,"ytp-ad-skip-button-text"),this.C&&this.V.element.classList.add("ytp-ad-skip-button-text-centered"),this.V.init(jP("ad-text"),this.ol.message,M),g.X(this,this.V),ed(this.X.element,this.V.element, 0));var S=S===void 0?null:S;M=this.api.J();!(this.sA.length>0)&&M.V&&(mq?0:"ontouchstart"in document.documentElement&&(DF5()||NO()))&&(this.bH(this.pE),S&&this.bH(S),this.sA=[this.j(this.element,"touchstart",this.onTouchStart,this),this.j(this.element,"touchmove",this.onTouchMove,this),this.j(this.element,"touchend",this.onTouchEnd,this)])}}; g.y.clear=function(){this.Ka.reset();this.hide()}; g.y.hide=function(){this.B.hide();this.V&&this.V.hide();fb(this);JB.prototype.hide.call(this)}; g.y.onClick=function(U){if(this.X!=null){if(U){var O=U||window.event;O.returnValue=!1;O.preventDefault&&O.preventDefault()}var M;if(Vsw(U,{contentCpn:((M=this.api.getVideoData(1))==null?void 0:M.clientPlaybackNonce)||""})===0)this.api.ZQ("onAbnormalityDetected");else if(JB.prototype.onClick.call(this,U),this.publish("j"),this.api.ZQ("onAdSkip"),this.hZ||!this.QP)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.y.kP=function(U){if(!this.hZ)return this.QP&&DY("SkipButton click commands not pruned while ALC exist"),U;var O,M=(O=g.q(U,g.Bv))==null?void 0:O.commands;if(!M)return U;U=[];for(O=0;O=this.C&&OAi(this,!0)};g.c(b9,iZ);b9.prototype.init=function(U,O,M){iZ.prototype.init.call(this,U,O,M);U=!1;O.text!=null&&(U=g.B_(O.text),U=!g.Ny(U));U?O.navigationEndpoint==null?g.rz(Error("No visit advertiser clickthrough provided in renderer,")):O.style!=="STYLE_UNKNOWN"?g.rz(Error("Button style was not a link-style type in renderer,")):this.show():g.rz(Error("No visit advertiser text was present in the renderer."))};g.c(R8,NH); R8.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);U=O.text;g.Ny(v_(U))?g.rz(Error("SimpleAdBadgeRenderer has invalid or empty text")):(U&&U.text&&(O=U.text,this.B&&!this.V&&(O=this.api.J(),O=U.text+" "+(O&&O.V?"\u2022":"\u00b7")),O={text:O,isTemplated:U.isTemplated},U.style&&(O.style=U.style),U.targetId&&(O.targetId=U.targetId),U=new pb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),U.init(jP("simple-ad-badge"),O,M),U.AZ(this.element),g.X(this,U)),this.show())}; R8.prototype.clear=function(){this.hide()};g.c(tB,eP);g.c(Y4,g.H_);g.y=Y4.prototype;g.y.WX=function(){return this.durationMs}; g.y.stop=function(){this.U&&this.V7.bH(this.U)}; g.y.kZ=function(U){this.V={seekableStart:0,seekableEnd:this.durationMs/1E3,current:U.current};this.publish("h")}; g.y.getProgressState=function(){return this.V}; g.y.W4=function(U){g.Nc(U,2)&&this.publish("g")};g.c(mn,g.H_);g.y=mn.prototype;g.y.WX=function(){return this.durationMs}; g.y.start=function(){this.U||(this.U=!0,this.e9.start())}; g.y.stop=function(){this.U&&(this.U=!1,this.e9.stop())}; g.y.kZ=function(){this.XE+=100;var U=!1;this.XE>this.durationMs&&(this.XE=this.durationMs,this.e9.stop(),U=!0);this.V={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.XE/1E3};this.publish("h");U&&this.publish("g")}; g.y.getProgressState=function(){return this.V};g.c(Pv,JB);g.y=Pv.prototype;g.y.init=function(U,O,M){JB.prototype.init.call(this,U,O,M);var S;if(O==null?0:(S=O.templatedCountdown)==null?0:S.templatedAdText){U=O.templatedCountdown.templatedAdText;if(!U.isTemplated){g.rz(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.V=new pb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);this.V.init(jP("ad-text"),U,{});this.V.AZ(this.element);g.X(this,this.V)}this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){fb(this);JB.prototype.hide.call(this)}; g.y.MU=function(){this.hide()}; g.y.Xe=function(){if(this.U!=null){var U=this.U.getProgressState();if(U!=null&&U.current!=null&&this.V){var O=this.U instanceof Y4?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:U.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.U instanceof mn?U.seekableEnd:this.api.getDuration(2,!1);U=U.current;var M,S,p=((M=this.api.getVideoData())==null?0:(S=M.Js)==null?0:S.call(M))?Math.max(O-U,0):O-U;hB(this.V,{FORMATTED_AD_DURATION_REMAINING:String(g.AB(p)), TIME_REMAINING:String(Math.ceil(p))})}}}; g.y.show=function(){yc(this);JB.prototype.show.call(this)};g.c(nb,pb);nb.prototype.onClick=function(U){pb.prototype.onClick.call(this,U);this.api.onAdUxClicked(this.componentType)};g.c(Cb,NH);Cb.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(U=O.content){g.cd(this.element,U);var M,S;O=((M=O.interaction)==null?void 0:(S=M.accessibility)==null?void 0:S.label)||U;this.element.setAttribute("aria-label",O)}else g.K5(Error("AdSimpleAttributedString does not have text content"))}; Cb.prototype.clear=function(){this.hide()}; Cb.prototype.onClick=function(U){NH.prototype.onClick.call(this,U)};g.c(XY,NH); XY.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});(U=O.label)&&U.content&&!g.Ny(U.content)?(this.adBadgeText.init(jP("ad-simple-attributed-string"),new Qc(U)),(O=O.adPodIndex)&&O.content&&!g.Ny(O.content)&&(this.U=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),this.U.AZ(this.element),g.X(this,this.U),this.U.element.classList.add("ytp-ad-badge__pod-index"),this.U.init(jP("ad-simple-attributed-string"),new Qc(O))),this.element.classList.add(this.V?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.K5(Error("No label is returned in AdBadgeViewModel."))}; XY.prototype.show=function(){this.adBadgeText.show();var U;(U=this.U)==null||U.show();NH.prototype.show.call(this)}; XY.prototype.hide=function(){this.adBadgeText.hide();var U;(U=this.U)==null||U.hide();NH.prototype.hide.call(this)};g.c(u9,NH);u9.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});(U=O.adPodIndex)&&U.content&&!g.Ny(U.content)&&(this.U=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),this.U.AZ(this.element),g.X(this,this.U),this.U.init(jP("ad-simple-attributed-string"),new Qc(U)),O.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()}; u9.prototype.show=function(){var U;(U=this.U)==null||U.show();NH.prototype.show.call(this)}; u9.prototype.hide=function(){var U;(U=this.U)==null||U.hide();NH.prototype.hide.call(this)};g.c(qc,NH); qc.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(O!=null&&O.text){var M;if(((M=O.text)==null?0:M.content)&&!g.Ny(O.text.content)){this.U=new g.W_({K:"div",L:"ytp-ad-disclosure-banner__text",UA:O.text.content});g.X(this,this.U);this.U.AZ(this.element);var S,p;U=((S=O.interaction)==null?void 0:(p=S.accessibility)==null?void 0:p.label)||O.text.content;this.element.setAttribute("aria-label",U);var h;if((h=O.interaction)==null?0:h.onTap)this.V=new g.W_({K:"div",L:"ytp-ad-disclosure-banner__chevron",W:[g.ta()]}), g.X(this,this.V),this.V.AZ(this.element);this.show()}}else g.K5(Error("No banner text found in AdDisclosureBanner."))}; qc.prototype.clear=function(){this.hide()};i9.prototype.getLength=function(){return this.U-this.V};g.c(Kb,g.W_);Kb.prototype.kZ=function(){var U=this.V.getProgressState(),O=U.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.J().T("show_preskip_progress_bar_for_skippable_ads")&&(O=this.B?this.B/1E3:U.seekableEnd);U=ZY(new i9(U.seekableStart,O),U.current,0);this.progressBar.style.width=U*100+"%"}; Kb.prototype.onStateChange=function(){g.ik(this.api.J())||(this.api.getPresentingPlayerType()===2?this.U===-1&&(this.show(),this.U=this.V.subscribe("h",this.kZ,this),this.kZ()):this.U!==-1&&(this.hide(),this.V.yN(this.U),this.U=-1))};g.c(r4,NH); r4.prototype.init=function(U,O,M,S){NH.prototype.init.call(this,U,O,M);if(O.skipOrPreviewRenderer){if(U=g.q(O.skipOrPreviewRenderer,GR))M=new x4(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V,this.Z),M.AZ(this.TY),M.init(jP("skip-button"),U,this.macros),g.X(this,M);if(U=g.q(O.skipOrPreviewRenderer,GR))var p=U.skipOffsetMilliseconds}O.brandInteractionRenderer&&(U=O.brandInteractionRenderer.brandInteractionRenderer,M=new TQ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA), M.AZ(this.QP),M.init(jP("instream-user-sentiment"),U,this.macros),g.X(this,M));if(U=g.q(O,fTh))if(U=g.q(U,fTh))M=new $4(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V,!!O.showWithoutLinkedMediaLayout),g.X(this,M),M.AZ(this.C),M.init(jP("flyout-cta"),U,this.macros);S=S&&S.videoAdDurationSeconds;O.adBadgeRenderer&&(M=O.adBadgeRenderer,U=g.q(M,qU),U!=null?(M=new XY(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!1),g.X(this,M),M.AZ(this.U),M.init(jP("ad-badge"), U,this.macros),this.B=M.element):(U=M.simpleAdBadgeRenderer,U==null&&(U={text:{text:"Anuncio",isTemplated:!1}}),M=new R8(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!0),g.X(this,M),M.AZ(this.U),M.init(jP("simple-ad-badge"),U,this.macros)));O.adPodIndex&&(U=g.q(O.adPodIndex,coq),U!=null&&(M=new u9(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,M),M.AZ(this.U),M.init(jP("ad-pod-index"),U)));O.adDurationRemaining&&!O.showWithoutLinkedMediaLayout&&(U=O.adDurationRemaining.adDurationRemainingRenderer, U==null&&(U={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),S=new Pv(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V,S,!1),g.X(this,S),S.AZ(this.U),S.init(jP("ad-duration-remaining"),U,this.macros));O.adInfoRenderer&&(S=g.q(O.adInfoRenderer,uY))&&(U=new Sp(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.element,void 0,!1),g.X(this,U),this.B!==null?this.U.insertBefore(U.element,this.B.nextSibling):U.AZ(this.U), U.init(jP("ad-info-hover-text-button"),S,this.macros));O.visitAdvertiserRenderer&&(U=g.q(O.visitAdvertiserRenderer,g.iY))&&(M=MR7(this)&&this.X?this.X:this.U)&&(S=new b9(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,S),S.AZ(M),S.init(jP("visit-advertiser"),U,this.macros),L$(S.element),U=kh(S.element),oH(S.element,U+" This link opens in new tab"));!(S=this.api.J())||g.uk(S)||S.controlsType!="3"&&!S.disableOrganicUi||(p=new Kb(this.api,this.V,p,!1),p.AZ(this.Ka),g.X(this, p));O.adDisclosureBannerRenderer&&(O=g.q(O.adDisclosureBannerRenderer,zq4))&&(p=new qc(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),p.AZ(this.ol),p.init(jP("ad-disclosure-banner"),O),g.X(this,p));this.api.J().T("enable_updated_html5_player_focus_style")&&g.l3(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; r4.prototype.clear=function(){this.hide()};Vc.prototype.set=function(U,O,M){M=M!==void 0?Date.now()+M:void 0;this.U.set(U,O,M)}; Vc.prototype.get=function(U){return this.U.get(U)}; Vc.prototype.remove=function(U){this.U.remove(U)};var UK=null,OK=null,sK=null,fkw=null;g.Zq("yt.www.ads.eventcache.getLastCompanionData",function(){return UK}); g.Zq("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Zq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return OK}); g.Zq("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return sK}); g.Zq("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return fkw});var lke=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);gT.prototype.handleResponse=function(U,O){if(!O)throw Error("request needs to be passed into ConsistencyService");var M,S;O=((M=O.H5.context)==null?void 0:(S=M.request)==null?void 0:S.consistencyTokenJars)||[];var p;(U=(p=U.responseContext)==null?void 0:p.consistencyTokenJar)&&this.replace(O,U)}; gT.prototype.replace=function(U,O){U=g.D(U);for(var M=U.next();!M.done;M=U.next())delete this.U[M.value.encryptedTokenJarContents];$p5(this,O)};var PUp=window.location.hostname.split(".").slice(-2).join("."),Bu;S8.getInstance=function(){Bu=g.K7("yt.clientLocationService.instance");Bu||(Bu=new S8,g.Zq("yt.clientLocationService.instance",Bu));return Bu}; g.y=S8.prototype; g.y.setLocationOnInnerTubeContext=function(U){U.client||(U.client={});if(this.U)U.client.locationInfo||(U.client.locationInfo={}),U.client.locationInfo.latitudeE7=Math.floor(this.U.coords.latitude*1E7),U.client.locationInfo.longitudeE7=Math.floor(this.U.coords.longitude*1E7),U.client.locationInfo.horizontalAccuracyMeters=Math.round(this.U.coords.accuracy),U.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.B||this.locationPlayabilityToken)U.client.locationPlayabilityToken=this.B|| this.locationPlayabilityToken}; g.y.handleResponse=function(U){var O;U=(O=U.responseContext)==null?void 0:O.locationPlayabilityToken;U!==void 0&&(this.locationPlayabilityToken=U,this.U=void 0,g.wZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=MZ(this))&&this.localStorage.set("yt-location-playability-token",U,15552E3):g.K4("YT_CL",JSON.stringify({loctok:U}),15552E3,PUp,!0))}; g.y.clearLocationPlayabilityToken=function(U){U==="TVHTML5"?(this.localStorage=MZ(this))&&this.localStorage.remove("yt-location-playability-token"):g.a0("YT_CL");this.B=void 0;this.V!==-1&&(clearTimeout(this.V),this.V=-1)}; g.y.getCurrentPositionFromGeolocation=function(){var U=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var O=!1,M=1E4;g.wZ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(O=!0,M=15E3);return new Promise(function(S,p){navigator.geolocation.getCurrentPosition(function(h){U.U=h;S(h)},function(h){p(h)},{enableHighAccuracy:O, maximumAge:0,timeout:M})})}; g.y.createUnpluggedLocationInfo=function(U){var O={};U=U.coords;if(U==null?0:U.latitude)O.latitudeE7=Math.floor(U.latitude*1E7);if(U==null?0:U.longitude)O.longitudeE7=Math.floor(U.longitude*1E7);if(U==null?0:U.accuracy)O.locationRadiusMeters=Math.round(U.accuracy);return O}; g.y.createLocationInfo=function(U){var O={};U=U.coords;if(U==null?0:U.latitude)O.latitudeE7=Math.floor(U.latitude*1E7);if(U==null?0:U.longitude)O.longitudeE7=Math.floor(U.longitude*1E7);return O};g.y=zYU.prototype;g.y.contains=function(U){return Object.prototype.hasOwnProperty.call(this.U,U)}; g.y.get=function(U){if(this.contains(U))return this.U[U]}; g.y.set=function(U,O){this.U[U]=O}; g.y.ao=function(){return Object.keys(this.U)}; g.y.remove=function(U){delete this.U[U]};hF.prototype.getModuleId=function(U){return U.serviceId.getModuleId()}; hF.prototype.get=function(U){a:{var O=this.mappings.get(U.toString());switch(O.type){case "mapping":U=O.value;break a;case "factory":O=O.value();this.mappings.set(U.toString(),{type:"mapping",value:O});U=O;break a;default:U=yf(O)}}return U}; hF.prototype.registerService=function(U,O){this.mappings.set(U.toString(),{type:"mapping",value:O});return U}; new hF;var xT={},cre=(xT.WEB_UNPLUGGED="^unplugged/",xT.WEB_UNPLUGGED_ONBOARDING="^unplugged/",xT.WEB_UNPLUGGED_OPS="^unplugged/",xT.WEB_UNPLUGGED_PUBLIC="^unplugged/",xT.WEB_CREATOR="^creator/",xT.WEB_KIDS="^kids/",xT.WEB_EXPERIMENTS="^experiments/",xT.WEB_MUSIC="^music/",xT.WEB_REMIX="^music/",xT.WEB_MUSIC_EMBEDDED_PLAYER="^music/",xT.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",xT);fl.prototype.G=function(U,O,M){O=O===void 0?{}:O;M=M===void 0?dI:M;var S={context:g.pl(U.clickTrackingParams,!1,this.X)};var p=this.V(U);if(p){this.U(S,p,O);var h;O=g.ya(this.B());(p=(h=g.q(U.commandMetadata,g.eN))==null?void 0:h.apiUrl)&&(O=p);h=jHU(EI(O));U=Object.assign({},{command:U},void 0);S={input:h,A_:L4(h),H5:S,config:U};S.config.TU?S.config.TU.identity=M:S.config.TU={identity:M};return S}g.K5(new g.sT("Error: Failed to create Request from Command.",U))}; g.l5.Object.defineProperties(fl.prototype,{X:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.c(FL,fl);g.c(lr,FL);lr.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",A_:L4("/getDatasyncIdsEndpoint","GET"),H5:{}}}; lr.prototype.B=function(){return[]}; lr.prototype.V=function(){}; lr.prototype.U=function(){};var njv={},UYe=(njv.GET_DATASYNC_IDS=JF(lr),njv);var bD={},QpD=(bD["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",bD["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",bD["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",bD["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",bD["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",bD["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",bD["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", bD["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",bD["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",bD["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",bD["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",bD["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",bD["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",bD["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",bD["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", bD["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",bD["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",bD["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",bD["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",bD["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",bD["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",bD["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", bD["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",bD.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",bD["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",bD["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",bD["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",bD["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",bD["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",bD["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", bD["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",bD["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",bD["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",bD["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",bD["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",bD["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",bD["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",bD["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",bD["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",bD["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",bD.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",bD["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",bD["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",bD["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",bD["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",bD["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",bD["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",bD["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",bD["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",bD["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",bD["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",bD["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",bD["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",bD["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",bD["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",bD["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",bD["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",bD["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",bD["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",bD["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",bD["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",bD["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", bD["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",bD["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",bD["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",bD["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",bD["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",bD["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",bD["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",bD["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",bD["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", bD["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",bD["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",bD["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",bD["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",bD["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",bD["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",bD["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",bD["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", bD),R2={},xpw=(R2.auto_search="LATENCY_ACTION_AUTO_SEARCH",R2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",R2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",R2.app_startup="LATENCY_ACTION_APP_STARTUP",R2.browse="LATENCY_ACTION_BROWSE",R2.cast_splash="LATENCY_ACTION_CAST_SPLASH",R2.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",R2.channels="LATENCY_ACTION_CHANNELS",R2.chips="LATENCY_ACTION_CHIPS",R2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",R2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", R2.editor="LATENCY_ACTION_EDITOR",R2.embed="LATENCY_ACTION_EMBED",R2.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",R2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",R2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",R2.explore="LATENCY_ACTION_EXPLORE",R2.favorites="LATENCY_ACTION_FAVORITES",R2.home="LATENCY_ACTION_HOME",R2.inboarding="LATENCY_ACTION_INBOARDING",R2.landing="LATENCY_ACTION_LANDING",R2.library="LATENCY_ACTION_LIBRARY",R2.live= "LATENCY_ACTION_LIVE",R2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",R2.management="LATENCY_ACTION_MANAGEMENT",R2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",R2.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",R2.onboarding="LATENCY_ACTION_ONBOARDING",R2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",R2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",R2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",R2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", R2.prebuffer="LATENCY_ACTION_PREBUFFER",R2.prefetch="LATENCY_ACTION_PREFETCH",R2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",R2.profile_switcher="LATENCY_ACTION_LOGIN",R2.projects="LATENCY_ACTION_PROJECTS",R2.reel_watch="LATENCY_ACTION_REEL_WATCH",R2.results="LATENCY_ACTION_RESULTS",R2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",R2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",R2.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",R2.review="LATENCY_ACTION_REVIEW",R2.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",R2.search_ui="LATENCY_ACTION_SEARCH_UI",R2.search_suggest="LATENCY_ACTION_SUGGEST",R2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",R2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",R2.seek="LATENCY_ACTION_PLAYER_SEEK",R2.settings="LATENCY_ACTION_SETTINGS",R2.store="LATENCY_ACTION_STORE",R2.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",R2.tenx="LATENCY_ACTION_TENX",R2.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",R2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", R2.watch="LATENCY_ACTION_WATCH",R2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",R2["watch,watch7"]="LATENCY_ACTION_WATCH",R2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",R2["watch,watch7ad"]="LATENCY_ACTION_WATCH",R2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",R2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",R2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",R2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",R2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",R2.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",R2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",R2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",R2.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",R2);Object.assign(xpw,QpD);g.c(mN,WW);var qui=new Np("aft-recorded",mN);var CUE=g.q1.ytLoggingGelSequenceIdObj_||{};g.Zq("ytLoggingGelSequenceIdObj_",CUE);var PP=g.q1.ytLoggingLatencyUsageStats_||{};g.Zq("ytLoggingLatencyUsageStats_",PP);AF.prototype.tick=function(U,O,M,S){nl(this,"tick_"+U+"_"+O)||g.HX("latencyActionTicked",{tickName:U,clientActionNonce:O},{timestamp:M,cttAuthInfo:S})}; AF.prototype.info=function(U,O,M){var S=Object.keys(U).join("");nl(this,"info_"+S+"_"+O)||(U=Object.assign({},U),U.clientActionNonce=O,g.HX("latencyActionInfo",U,{cttAuthInfo:M}))}; AF.prototype.jspbInfo=function(U,O,M){for(var S="",p=0;p=p.length?(O.append(p),U-=p.length):U?(O.append(new Uint8Array(p.buffer,p.byteOffset,U)),M.append(new Uint8Array(p.buffer,p.byteOffset+U,p.length-U)),U=0):M.append(p);return{L7:O,Aa:M}}; g.y.isFocused=function(U){return U>=this.K1&&U=64&&(this.C.set(U.subarray(0,64-this.V),this.V),O=64-this.V,this.V=0,uHJ(this,this.C,0));for(;O+64<=M;O+=64)uHJ(this,U,O);O=this.start&&(U=2&&M.ssdaiAdsConfig&&DY("Unexpected ad placement renderers length",U.slot,null,{length:S.length});var p;((p=M.adSlots)==null?0:p.some(function(h){var J,f;return((J=g.q(h,rR))==null?void 0:(f=J.adSlotMetadata)==null?void 0:f.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||S.some(function(h){var J,f,F,l; return!!((J=h.renderer)==null?0:(f=J.linearAdSequenceRenderer)==null?0:(F=f.linearAds)==null?0:F.length)||!((l=h.renderer)==null||!l.instreamVideoAdRenderer)})||fCw(U)})}; j7.prototype.iF=function(){V$i(this.U)};e7.prototype.HQ=function(){var U=this;Lim(this.V,function(){var O=$G(U.slot.clientMetadata,"metadata_type_ad_break_request_data");return O.cueProcessedMs?U.U.get().fetch({Vt:O.getAdBreakUrl,uu:new g.ll(O.Ze,O.Fi),cueProcessedMs:O.cueProcessedMs}):U.U.get().fetch({Vt:O.getAdBreakUrl,uu:new g.ll(O.Ze,O.Fi)})})}; e7.prototype.iF=function(){V$i(this.V)};H4.prototype.HQ=function(){var U=this.slot.clientMetadata,O,M=(O=this.slot.fulfilledLayout)!=null?O:$G(U,"metadata_type_fulfilled_layout");b57(this.callback,this.slot,M)}; H4.prototype.iF=function(){xG(this.callback,this.slot,new L("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")};c4.prototype.build=function(U,O){return O.fulfilledLayout||zO(O,{Q7:["metadata_type_fulfilled_layout"]})?new H4(U,O):this.B(U,O)};g.c(Dn,c4); Dn.prototype.B=function(U,O){if(zO(O,{Q7:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new j7(U,O,this.U,this.V,this.rK,this.vA,this.Il,this.dG,this.XI);if(zO(O,{Q7:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new e7(U,O,this.U,this.V,this.rK,this.vA);throw new L("Unsupported slot with type: "+O.slotType+" and client metadata: "+Tk(O.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.c(dp,c4);dp.prototype.B=function(U,O){throw new L("Unsupported slot with type: "+O.slotType+" and client metadata: "+Tk(O.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.y=FQy.prototype;g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.init=function(){}; g.y.release=function(){}; g.y.startRendering=function(U){if(U.layoutId!==this.layout.layoutId)this.callback.aK(this.slot,U,new lo("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 O=$G(U.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.xZ(this.slot,U),xzW(this.B, this.slot,O)):DY("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,U)}}; g.y.rH=function(U,O){U.layoutId!==this.layout.layoutId?this.callback.aK(this.slot,U,new lo("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.As(this.slot,U,O),Gze(this),$H7(this))};g.c(xY,g.H_);g.y=xY.prototype;g.y.JG=function(){return this.V.slot}; g.y.cA=function(){return this.V.layout}; g.y.init=function(){this.B.get().addListener(this)}; g.y.release=function(){this.B.get().removeListener(this);this.dispose()}; g.y.hj=function(){}; g.y.Pz=function(){}; g.y.L_=function(){}; g.y.GK=function(){}; g.y.startRendering=function(U){var O=this;B4(this.V,U,function(){return void O.mT()})}; g.y.mT=function(){this.B.get().mT(this.U)}; g.y.rH=function(U,O){var M=this;B4(this.V,U,function(){var S=M.B.get();Ujw(S,M.U,3);M.U=[];M.callback.As(M.slot,U,O)})}; g.y.VP=function(){this.B.GY()||this.B.get().removeListener(this);g.H_.prototype.VP.call(this)}; g.l5.Object.defineProperties(xY.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.V.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.V.layout}}});P4.prototype.aL=function(U,O){O=O===void 0?!1:O;var M=(this.B.get(U)||[]).concat();if(O=O&&HUU(U)){var S=this.B.get(O);S&&M.push.apply(M,g.N(S))}CZ(this,U,M);this.U.add(U);O&&this.U.add(O)}; P4.prototype.R_=function(U,O){O=O===void 0?!1:O;if(!this.U.has(U)){var M=O&&HUU(U);M&&(O=!this.U.has(M));this.aL(U,O)}};g.c(DH7,eP);g.c(Zn,xY);g.y=Zn.prototype;g.y.nW=function(U,O){YY("ads-engagement-panel-layout",U,this.C.get().BU,this.Il.get(),this.X,this.G,this.JG(),this.cA(),O)}; g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),g.q(this.cA().renderingContent,lY),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(O,M,S,p,h){return new DH7(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(U,O){this.G===O.layoutId&&(this.X===null?this.X=this.Il.get().bU():DY("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)};g.c(WQq,eP);g.c(KZ,xY);g.y=KZ.prototype;g.y.nW=function(U,O){YY("banner-image",U,this.C.get().BU,this.Il.get(),this.X,this.G,this.JG(),this.cA(),O)}; g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),g.q(this.cA().renderingContent,fr),this.callback,"metadata_type_banner_image_layout_view_model",function(O,M,S,p,h){return new WQq(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(U,O){this.G===O.layoutId&&(this.X===null?this.X=this.Il.get().bU():DY("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)};g.c(rp,eP);g.c(aF,xY);g.y=aF.prototype;g.y.nW=function(U,O){YY("action-companion",U,this.C.get().BU,this.Il.get(),this.X,this.G,this.JG(),this.cA(),O)}; g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),g.q(this.cA().renderingContent,hZ),this.callback,"metadata_type_action_companion_ad_renderer",function(O,M,S,p,h){return new rp(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(U,O){O.layoutId===this.layout.layoutId?this.WA.R_("impression"):this.G===O.layoutId&&(this.X===null?this.X=this.Il.get().bU():DY("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)};g.c(Bkw,eP);g.c(E7,xY);g.y=E7.prototype;g.y.nW=function(U,O){YY("image-companion",U,this.C.get().BU,this.Il.get(),this.X,this.G,this.JG(),this.cA(),O)}; g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),g.q(this.cA().renderingContent,JZ),this.callback,"metadata_type_image_companion_ad_renderer",function(O,M,S,p,h){return new Bkw(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(U,O){O.layoutId===this.layout.layoutId?this.WA.R_("impression"):this.G===O.layoutId&&(this.X===null?this.X=this.Il.get().bU():DY("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)};g.c(bUm,eP);g.c(LZ,xY);g.y=LZ.prototype;g.y.nW=function(U,O){YY("shopping-companion",U,this.C.get().BU,this.Il.get(),this.X,this.G,this.JG(),this.cA(),O)}; g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(O,M,S,p,h){return new bUm(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(U,O){O.layoutId===this.layout.layoutId?this.WA.R_("impression"):this.G===O.layoutId&&(this.X===null?this.X=this.Il.get().bU():DY("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)};g.c(oF,xY);g.y=oF.prototype;g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(O,M,S,p,h){return new rp(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(){}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)}; g.y.nW=function(){};g.y=ICe.prototype;g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.init=function(){this.dG.get().addListener(this);this.dG.get().vQ.push(this);var U=$G(this.layout.clientMetadata,"metadata_type_video_length_seconds"),O=$G(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");mE(this.layout.BV)&&wY(this.X9.get(),this.layout.layoutId,{mE:O,v8:U,listener:this})}; g.y.release=function(){this.dG.get().removeListener(this);EWg(this.dG.get(),this);mE(this.layout.BV)&&U0(this.X9.get(),this.layout.layoutId)}; g.y.startRendering=function(U){this.callback.xZ(this.slot,U)}; g.y.rH=function(U,O){zAe(this.vA.get())&&!this.U&&(this.WA.R_("abandon"),this.U=!0);this.callback.As(this.slot,U,O)}; g.y.ju=function(U){switch(U.id){case "part2viewed":this.WA.R_("start");this.WA.R_("impression");break;case "videoplaytime25":this.WA.R_("first_quartile");break;case "videoplaytime50":this.WA.R_("midpoint");break;case "videoplaytime75":this.WA.R_("third_quartile");break;case "videoplaytime100":zAe(this.vA.get())?this.U||(this.WA.R_("complete"),this.U=!0):this.WA.R_("complete");il(this.WA)&&ul(this.WA,Infinity,!0);c_g(this.vA.get())&&VV(this.V,Infinity,!0);break;case "engagedview":il(this.WA)||this.WA.R_("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:DY("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.y.onVolumeChange=function(){}; g.y.aF=function(){}; g.y.IA=function(){}; g.y.RF=function(){}; g.y.onFullscreenToggled=function(){}; g.y.ib=function(){}; g.y.iB=function(){}; g.y.M5=function(U){c_g(this.vA.get())&&VV(this.V,U*1E3,!1);il(this.WA)&&ul(this.WA,U*1E3,!1)}; g.y.YF=function(){}; g.y.QW=function(){this.WA.R_("active_view_measurable")}; g.y.AY=function(){this.WA.R_("active_view_viewable")}; g.y.s5=function(){this.WA.R_("active_view_fully_viewable_audible_half_duration")}; g.y.MA=function(){this.WA.R_("audio_measurable")}; g.y.XS=function(){this.WA.R_("audio_audible")};g.c(kY,xY);g.y=kY.prototype;g.y.init=function(){xY.prototype.init.call(this);var U=$G(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),O={adsClientData:this.layout.kp};this.U.push(new tB(U,this.layout.layoutId,$G(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),O,!0))}; g.y.Zi=function(){this.X||this.dG.get().resumeVideo(1)}; g.y.startRendering=function(U){xY.prototype.startRendering.call(this,U);hk(this.dG.get(),"ad-showing");this.callback.xZ(this.slot,U);this.G.q7=this}; g.y.rH=function(U,O){xY.prototype.rH.call(this,U,O);Jk(this.dG.get(),"ad-showing");rX(this.G,this)}; g.y.nW=function(U){switch(U){case "ad-info-icon-button":(this.X=this.dG.get().t0(1))||this.dG.get().pauseVideo();break;case "visit-advertiser":this.dG.get().pauseVideo()}}; g.y.VP=function(){xY.prototype.VP.call(this)};g.c(wp,eP);g.c(UO,xY);g.y=UO.prototype;g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(O,M,S,p,h){return new wp(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(){}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)}; g.y.nW=function(){};g.c(OO,eP);g.c(sO,xY);sO.prototype.init=function(){xY.prototype.init.call(this);this.U.push(new OO(g.q(this.layout.renderingContent,xi),this.layout.layoutId,{adsClientData:this.layout.kp}))}; sO.prototype.nW=function(){PM(this.X.get(),this.G)&&tR(this.Il.get(),3)}; sO.prototype.startRendering=function(U){xY.prototype.startRendering.call(this,U);this.callback.xZ(this.slot,U)}; sO.prototype.VP=function(){xY.prototype.VP.call(this)};g.c(g9,eP);g.c(MX,xY);MX.prototype.init=function(){xY.prototype.init.call(this);var U=g.q(this.layout.renderingContent,e2)||$G(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),O=bl(this.WA);this.U.push(new g9(U,O,this.layout.layoutId,{adsClientData:this.layout.kp},!0,!0))}; MX.prototype.startRendering=function(U){xY.prototype.startRendering.call(this,U);this.callback.xZ(this.slot,U)}; MX.prototype.nW=function(U,O){if(O===this.layout.layoutId)switch(U){case "skip-button":var M;(U=(M=$G(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&U.DG(this.JG(),this.layout)}}; MX.prototype.VP=function(){xY.prototype.VP.call(this)};pP.prototype.build=function(U,O,M,S){if(S2(S,{Q7:["metadata_type_ad_break_response_data"],zk:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new FQy(U,M,S,this.V,this.B,this.U);throw new lo("Unsupported layout with type: "+S.layoutType+" and client metadata: "+Tk(S.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.c(Qd4,eP);g.c(hA,xY);g.y=hA.prototype;g.y.nW=function(U,O){YY("ads-engagement-panel",U,this.C.get().BU,this.Il.get(),this.X,this.G,this.JG(),this.cA(),O)}; g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),g.q(this.cA().renderingContent,yZ),this.callback,"metadata_type_ads_engagement_panel_renderer",function(O,M,S,p,h){return new Qd4(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(U,O){O.layoutId===this.layout.layoutId?this.WA.R_("impression"):this.G===O.layoutId&&(this.X===null?this.X=this.Il.get().bU():DY("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)};g.c(JA,xY);g.y=JA.prototype;g.y.nW=function(U,O){YY("top-banner-image-text-icon-buttoned",U,this.C.get().BU,this.Il.get(),this.X,this.G,this.JG(),this.cA(),O)}; g.y.startRendering=function(U){RF(this.WA,this.JG(),this.cA(),g.q(this.cA().renderingContent,Ff),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(O,M,S,p,h){return new wp(O,M,S,p,h)},this.U); xY.prototype.startRendering.call(this,U)}; g.y.xZ=function(U,O){this.G===O.layoutId&&(this.X===null?this.X=this.Il.get().bU():DY("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.VP=function(){vF(this.oT(),this);xY.prototype.VP.call(this)};u_7.prototype.build=function(U,O,M,S){if(S2(S,CZe())||g.q(S.renderingContent,yZ)!==void 0)return new hA(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);if(S2(S,vQw())||g.q(S.renderingContent,hZ)!==void 0)return new aF(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);if(S2(S,xHJ())||g.q(S.renderingContent,JZ)!==void 0)return new E7(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);if(S2(S,RCm()))return new LZ(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);if(S2(S,Aae()))return new oF(U,M,S,this.Vr,this.Il,this.oT, this.X9,this.U);if(S2(S,Nk4())||g.q(S.renderingContent,fr)!==void 0)return new KZ(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);if(S2(S,X_4())||g.q(S.renderingContent,Ff)!==void 0)return new JA(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);if(S2(S,PZe()))return new UO(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);if(S2(S,dHi())||g.q(S.renderingContent,lY)!==void 0)return new Zn(U,M,S,this.Vr,this.Il,this.oT,this.X9,this.U);throw new lo("Unsupported layout with type: "+S.layoutType+" and client metadata: "+ Tk(S.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};qX4.prototype.build=function(U,O,M,S){if(S2(S,{Q7:["metadata_type_linked_player_bytes_layout_id"],zk:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new sO(U,M,S,this.Vr,this.Il,this.U);throw new lo("Unsupported layout with type: "+S.layoutType+" and client metadata: "+Tk(S.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.y=iU7.prototype;g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.init=function(){}; g.y.release=function(){}; g.y.startRendering=function(U){U.layoutId!==this.layout.layoutId?this.callback.aK(this.slot,U,new lo("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.xZ(this.slot,U),this.WA.R_("impression"),wF(this.jy,U,"normal"))}; g.y.rH=function(U,O){U.layoutId!==this.layout.layoutId?this.callback.aK(this.slot,U,new lo("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.As(this.slot,U,O)};g.y=KQe.prototype;g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.init=function(){}; g.y.release=function(){}; g.y.startRendering=function(U){U.layoutId!==this.layout.layoutId?this.callback.aK(this.slot,U,new lo("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.xZ(this.slot,U),this.WA.R_("impression"),wF(this.jy,U,"normal"))}; g.y.rH=function(U,O){U.layoutId!==this.layout.layoutId?this.callback.aK(this.slot,U,new lo("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.As(this.slot,U,O)};yN.prototype.build=function(U,O,M,S){if(!this.vA.get().S.J().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(S2(S,ZUW()))return new iU7(U,M,S,this.Il,this.jy)}else if(S2(S,{Q7:[],zk:["LAYOUT_TYPE_FORECASTING"]}))return new KQe(U,M,S,this.Il,this.jy);throw new lo("Unsupported layout with type: "+S.layoutType+" and client metadata: "+Tk(S.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.c(EQJ,eP);g.c(fP,xY);g.y=fP.prototype;g.y.init=function(){xY.prototype.init.call(this);var U=g.q(this.layout.renderingContent,j2)||$G(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),O={adsClientData:this.layout.kp};this.U.push(new EQJ(U,$G(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,O))}; g.y.Zi=function(){this.X||this.dG.get().resumeVideo(2)}; g.y.startRendering=function(U){xY.prototype.startRendering.call(this,U);this.callback.xZ(this.slot,U);this.G.q7=this}; g.y.rH=function(U,O){xY.prototype.rH.call(this,U,O);rX(this.G,this)}; g.y.nW=function(U){if(PM(this.C.get(),this.D))switch(U){case "visit-advertiser-link":tR(this.Il.get(),3)}switch(U){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.dG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.dG.get().t0(2))||this.dG.get().pauseVideo();break;case "visit-advertiser-link":this.dG.get().pauseVideo();LQe(this).w2();break;case "skip-button":if(U=LQe(this), this.layout.renderingContent&&!y6(this.layout.clientMetadata,"metadata_type_dai")||!U.N$){var O;(U=(O=$G(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&U.DG(this.JG(),this.layout)}else DY("Requesting to skip by LegacyPlayerBytes when components enabled"),U.bS(this.JG(),this.layout)}}; g.y.VP=function(){xY.prototype.VP.call(this)};g.c(FW,xY);g.y=FW.prototype;g.y.init=function(){xY.prototype.init.call(this);var U=g.q(this.layout.renderingContent,TF)||$G(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),O={adsClientData:this.layout.kp},M;(M=!!this.layout.renderingContent)||(M=!lA(this).N$);this.U.push(new tB(U,this.layout.layoutId,$G(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),O,M))}; g.y.Zi=function(){this.X||this.dG.get().resumeVideo(2)}; g.y.startRendering=function(U){xY.prototype.startRendering.call(this,U);this.callback.xZ(this.slot,U);this.G.q7=this}; g.y.rH=function(U,O){xY.prototype.rH.call(this,U,O);rX(this.G,this)}; g.y.nW=function(U){if(PM(this.C.get(),this.D))switch(U){case "visit-advertiser":tR(this.Il.get(),3)}switch(U){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.dG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.dG.get().t0(2))||this.dG.get().pauseVideo();break;case "visit-advertiser":this.dG.get().pauseVideo();lA(this).w2();break;case "skip-button":if(U=lA(this),this.layout.renderingContent&& !y6(this.layout.clientMetadata,"metadata_type_dai")||!U.N$){var O;(U=(O=$G(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&U.DG(this.JG(),this.layout)}else DY("Requesting to skip by LegacyPlayerBytes"),U.bS(this.JG(),this.layout)}}; g.y.VP=function(){xY.prototype.VP.call(this)};g.c(oQe,eP);g.c(GF,xY);g.y=GF.prototype;g.y.startRendering=function(U){var O=this;B4(this.V,U,function(){O.U.push(new oQe($G(O.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),U.layoutId,U.kp));O.mT();O.callback.xZ(O.slot,U);g.a(kp(O.dG.get(),1),512)&&O.callback.aK(O.JG(),O.cA(),new lo("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.y.iB=function(){}; g.y.ib=function(U){if(U.state.isError()){var O;this.callback.aK(this.JG(),this.cA(),new lo("A player error happened during adNotify",{playerErrorCode:(O=U.state.p6)==null?void 0:O.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.y.onFullscreenToggled=function(){}; g.y.IA=function(){}; g.y.RF=function(){}; g.y.aF=function(){}; g.y.onVolumeChange=function(){}; g.y.ju=function(){}; g.y.YF=function(){}; g.y.nW=function(){};g.c(w_J,eP);g.c($F,xY);$F.prototype.init=function(){xY.prototype.init.call(this);var U=g.q(this.layout.renderingContent,Ho),O=bl(this.WA);this.U.push(new w_J(U,O,this.layout.layoutId,{adsClientData:this.layout.kp}))}; $F.prototype.startRendering=function(U){xY.prototype.startRendering.call(this,U);this.callback.xZ(this.slot,U)}; $F.prototype.nW=function(U,O){if(O===this.layout.layoutId)switch(U){case "skip-button":var M;(U=(M=$G(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&U.DG(this.JG(),this.layout)}}; $F.prototype.VP=function(){xY.prototype.VP.call(this)};UcU.prototype.build=function(U,O,M,S){if(U=zF(U,M,S,this.Vr,this.dG,this.Il,this.V,this.U,this.vA))return U;throw new lo("Unsupported layout with type: "+S.layoutType+" and client metadata: "+Tk(S.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.y=d9.prototype;g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.init=function(){this.dG.get().addListener(this);this.dG.get().vQ.push(this);var U=this.layout.renderingContent?N6(this.qL.get(),1).QI/1E3:$G(this.layout.clientMetadata,"metadata_type_video_length_seconds"),O=g.q(this.layout.renderingContent,NC),M=O?AR(O.pings):$G(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");O=O?eCm(O.pings):$G(this.layout.clientMetadata,"metadata_type_active_view_identifier");mE(this.layout.BV)&&wY(this.X9.get(),this.layout.layoutId,{mE:M,v8:U,listener:this, fT:O})}; g.y.release=function(){this.dG.get().removeListener(this);EWg(this.dG.get(),this);mE(this.layout.BV)&&U0(this.X9.get(),this.layout.layoutId)}; g.y.startRendering=function(U){this.callback.xZ(this.slot,U)}; g.y.rH=function(U,O){Wo(this,"abandon");this.callback.As(this.slot,U,O)}; g.y.ju=function(U){switch(U.id){case "part2viewed":this.WA.R_("start");this.WA.R_("impression");break;case "videoplaytime25":this.WA.R_("first_quartile");break;case "videoplaytime50":this.WA.R_("midpoint");break;case "videoplaytime75":this.WA.R_("third_quartile");break;case "videoplaytime100":Wo(this,"complete");il(this.WA)&&ul(this.WA,Infinity,!0);break;case "engagedview":il(this.WA)||this.WA.R_("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:DY("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.y.onVolumeChange=function(){}; g.y.aF=function(){}; g.y.IA=function(){}; g.y.RF=function(){}; g.y.onFullscreenToggled=function(){}; g.y.ib=function(U){this.U||(g.Nc(U,4)&&!g.Nc(U,2)?Xc(this.WA,"pause"):Wv(U,4)<0&&!(Wv(U,2)<0)&&Xc(this.WA,"resume"))}; g.y.iB=function(){}; g.y.M5=function(U){il(this.WA)&&ul(this.WA,U*1E3,!1)}; g.y.YF=function(){Wo(this,"swipe")}; g.y.QW=function(){this.WA.R_("active_view_measurable")}; g.y.AY=function(){this.WA.R_("active_view_viewable")}; g.y.s5=function(){this.WA.R_("active_view_fully_viewable_audible_half_duration")}; g.y.MA=function(){this.WA.R_("audio_measurable")}; g.y.XS=function(){this.WA.R_("audio_audible")};Obq.prototype.build=function(U,O,M,S){if(M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.q(S.renderingContent,NC)!==void 0)return new d9(U,M,S,this.dG,this.Il,this.vA,this.X9,this.qL);O=["metadata_type_ad_placement_config"];for(var p=g.D(nZ()),h=p.next();!h.done;h=p.next())O.push(h.value);if(S2(S,{Q7:O,zk:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new d9(U,M,S,this.dG,this.Il,this.vA,this.X9,this.qL):new ICe(U,M,S,this.dG,this.Il, this.OQ,this.vA,this.X9);throw new lo("Unsupported layout with type: "+S.layoutType+" and client metadata: "+Tk(S.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var xF={contentCpn:"",cR:new Map};Fng.prototype.ya=function(U,O){var M={};O=Object.assign({},O,(M.cc=this.Up.JU(),M));this.Up.S.al(U,O)};var gyv,Pu; gyv={Un0:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",TcZ:"AUTHENTICATION_MALFORMED",kAG:"AUTHENTICATION_MISSING",qvl:"BAD_REQUEST",imG:"CAST_SESSION_DEVICE_MISMATCHED",jFn:"CAST_SESSION_VIDEO_MISMATCHED",JoQ:"CAST_TOKEN_EXPIRED",RJl:"CAST_TOKEN_FAILED",eJ0:"CAST_TOKEN_MALFORMED",EFY:"CGI_PARAMS_MALFORMED",Yva:"CGI_PARAMS_MISSING",uKZ:"DEVICE_FALLBACK",JtP:"GENERIC_WITH_LINK_AND_CPN",RT0:"ERROR_HDCP",eT0:"LICENSE",YUP:"VIDEO_UNAVAILABLE",xyl:"FORMAT_UNAVAILABLE",yUY:"GEO_FAILURE", dyL:"HTML5_AUDIO_RENDERER_ERROR",O9P:"GENERIC_WITHOUT_LINK",Kay:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",San:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",C6c:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",GRl:"HTML5_SPS_UMP_STATUS_REJECTED",cUY:"INVALID_DRM_MESSAGE",GBY:"PURCHASE_NOT_FOUND",IOA:"PURCHASE_REFUNDED",P7A:"RENTAL_EXPIRED",JKP:"RETRYABLE_ERROR",ZJL:"SERVER_ERROR",UTA:"SIGNATURE_EXPIRED",soY:"STOPPED_BY_ANOTHER_PLAYBACK",Qon:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",A0P:"STREAMING_NOT_ALLOWED", txP:"STREAM_LICENSE_NOT_FOUND",Si0:"TOO_MANY_REQUESTS",CtP:"TOO_MANY_REQUESTS_WITH_LINK",Gvc:"TOO_MANY_STREAMS_PER_ENTITLEMENT",IKy:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",ZNc:"VIDEO_FORBIDDEN",z7c:"VIDEO_NOT_FOUND",PrZ:"BROWSER_OR_EXTENSION_ERROR"};Pu={}; g.QR=(Pu.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",Pu.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",Pu.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", Pu.LICENSE="Se produjo un error de licencia con este video.",Pu.VIDEO_UNAVAILABLE="Video no disponible",Pu.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",Pu.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",Pu.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",Pu.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",Pu.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",Pu.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",Pu.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",Pu.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", Pu.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",Pu.PURCHASE_NOT_FOUND="Este es un video pagado.",Pu.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",Pu.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",Pu.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",Pu.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", Pu.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Pu.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",Pu.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Pu.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",Pu.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",Pu.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",Pu.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",Pu.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",Pu.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", Pu.TOO_MANY_REQUESTS="Accede para mirar el video.",Pu.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",Pu.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",Pu.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",Pu.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", Pu.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",Pu.VIDEO_NOT_FOUND="No se puede encontrar este video.",Pu.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",Pu);var MGL;var SoL=g.YE(),paX=SoL.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!paX||paX.length<2)MGL=void 0;else{var hZJ=SoL.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);MGL=hZJ&&hZJ.length===6?Number(hZJ[5].replace("_",".")):0}var ia=MGL,mH=ia>=0;g.c(g.Zj,nE);g.Zj.prototype.j=function(U,O,M,S,p){return nE.prototype.j.call(this,U,O,M,S,p)};var nq={},ds=(nq.FAIRPLAY="fairplay",nq.PLAYREADY="playready",nq.WIDEVINE="widevine",nq.CLEARKEY=null,nq.FLASHACCESS=null,nq.UNKNOWN=null,nq.WIDEVINE_CLASSIC=null,nq);KP.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var QY={},xc=(QY.WIDTH={name:"width",video:!0,valid:640,BC:99999},QY.HEIGHT={name:"height",video:!0,valid:360,BC:99999},QY.FRAMERATE={name:"framerate",video:!0,valid:30,BC:9999},QY.BITRATE={name:"bitrate",video:!0,valid:3E5,BC:2E9},QY.EOTF={name:"eotf",video:!0,valid:"bt709",BC:"catavision"},QY.CHANNELS={name:"channels",video:!1,valid:2,BC:99},QY.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",BC:"invalidformat"},QY.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", BC:"nope"},QY.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",BC:"av99.0.05M.08"},QY.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",BC:"invalid"},QY);var Jdl=["h","H"],ydl=["9","("],fop=["9h","(h"],F8D=["8","*"],loD=["a","A"],G4L=["o","O"],$sJ=["m","M"],THv=["mac3","MAC3"],jXJ=["meac3","MEAC3"],Cq={},fli=(Cq.h=Jdl,Cq.H=Jdl,Cq["9"]=ydl,Cq["("]=ydl,Cq["9h"]=fop,Cq["(h"]=fop,Cq["8"]=F8D,Cq["*"]=F8D,Cq.a=loD,Cq.A=loD,Cq.o=G4L,Cq.O=G4L,Cq.m=$sJ,Cq.M=$sJ,Cq.mac3=THv,Cq.MAC3=THv,Cq.meac3=jXJ,Cq.MEAC3=jXJ,Cq),eZh=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),siW=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var V={},oi=(V["0"]="f",V["160"]="h",V["133"]="h",V["134"]="h",V["135"]="h",V["136"]="h",V["137"]="h",V["264"]="h",V["266"]="h",V["138"]="h",V["298"]="h",V["299"]="h",V["304"]="h",V["305"]="h",V["214"]="h",V["216"]="h",V["374"]="h",V["375"]="h",V["140"]="a",V["141"]="ah",V["327"]="sa",V["258"]="m",V["380"]="mac3",V["328"]="meac3",V["161"]="H",V["142"]="H",V["143"]="H",V["144"]="H",V["222"]="H",V["223"]="H",V["145"]="H",V["224"]="H",V["225"]="H",V["146"]="H",V["226"]="H",V["227"]="H",V["147"]="H", V["384"]="H",V["376"]="H",V["385"]="H",V["377"]="H",V["149"]="A",V["261"]="M",V["381"]="MAC3",V["329"]="MEAC3",V["598"]="9",V["278"]="9",V["242"]="9",V["243"]="9",V["244"]="9",V["775"]="9",V["776"]="9",V["777"]="9",V["778"]="9",V["779"]="9",V["780"]="9",V["781"]="9",V["782"]="9",V["783"]="9",V["247"]="9",V["248"]="9",V["353"]="9",V["355"]="9",V["356"]="9",V["271"]="9",V["577"]="9",V["313"]="9",V["579"]="9",V["272"]="9",V["302"]="9",V["303"]="9",V["407"]="9",V["408"]="9",V["308"]="9",V["315"]="9", V["330"]="9h",V["331"]="9h",V["332"]="9h",V["333"]="9h",V["334"]="9h",V["335"]="9h",V["336"]="9h",V["337"]="9h",V["338"]="so",V["600"]="o",V["250"]="o",V["251"]="o",V["774"]="o",V["194"]="*",V["195"]="*",V["220"]="*",V["221"]="*",V["196"]="*",V["197"]="*",V["279"]="(",V["280"]="(",V["317"]="(",V["318"]="(",V["273"]="(",V["274"]="(",V["357"]="(",V["358"]="(",V["275"]="(",V["359"]="(",V["360"]="(",V["276"]="(",V["583"]="(",V["584"]="(",V["314"]="(",V["585"]="(",V["561"]="(",V["277"]="(",V["361"]="(h", V["362"]="(h",V["363"]="(h",V["364"]="(h",V["365"]="(h",V["366"]="(h",V["591"]="(h",V["592"]="(h",V["367"]="(h",V["586"]="(h",V["587"]="(h",V["368"]="(h",V["588"]="(h",V["562"]="(h",V["409"]="(",V["410"]="(",V["411"]="(",V["412"]="(",V["557"]="(",V["558"]="(",V["394"]="1",V["395"]="1",V["396"]="1",V["397"]="1",V["398"]="1",V["399"]="1",V["720"]="1",V["721"]="1",V["400"]="1",V["401"]="1",V["571"]="1",V["402"]="1",V["694"]="1h",V["695"]="1h",V["696"]="1h",V["697"]="1h",V["698"]="1h",V["699"]="1h",V["700"]= "1h",V["701"]="1h",V["702"]="1h",V["703"]="1h",V["386"]="3",V["387"]="w",V["406"]="6",V["787"]="1",V["788"]="1",V["548"]="1e",V["549"]="1e",V["550"]="1e",V["551"]="1e",V["809"]="1e",V["810"]="1e",V["552"]="1e",V["811"]="1e",V["812"]="1e",V["553"]="1e",V["813"]="1e",V["814"]="1e",V["554"]="1e",V["815"]="1e",V["816"]="1e",V["555"]="1e",V["817"]="1e",V["818"]="1e",V["572"]="1e",V["556"]="1e",V["645"]="(",V["646"]="(",V["647"]="(",V["648"]="(",V["649"]="(",V["650"]="(",V["651"]="(",V["652"]="(",V["653"]= "(",V["654"]="(",V["655"]="(",V["656"]="(",V["657"]="(",V["658"]="(",V["659"]="(",V["660"]="(",V["661"]="(",V["662"]="(",V["663"]="(",V["664"]="(",V["665"]="(",V["666"]="(",V["667"]="(",V["668"]="(",V["669"]="(",V["670"]="(",V["671"]="(",V["672"]="(",V["673"]="(",V["674"]="(h",V["675"]="(h",V["676"]="(h",V["677"]="(h",V["678"]="(h",V["679"]="(h",V["680"]="(h",V["681"]="(h",V["682"]="(h",V["683"]="(h",V["684"]="(h",V["685"]="(h",V["686"]="(h",V["687"]="(h",V["688"]="A",V["689"]="A",V["690"]="A",V["691"]= "MEAC3",V["773"]="i",V["806"]="I",V["805"]="I",V["829"]="9",V["830"]="9",V["831"]="9",V["832"]="9",V["833"]="9",V["834"]="9",V["835"]="9",V["836"]="9",V["837"]="9",V["838"]="9",V["839"]="9",V["840"]="9",V["841"]="(",V["842"]="(",V["843"]="(",V["844"]="(",V["845"]="(",V["846"]="(",V["847"]="(",V["848"]="(",V["849"]="(",V["850"]="(",V["851"]="(",V["852"]="(",V["865"]="9",V["866"]="9",V["867"]="9",V["868"]="9",V["869"]="9",V["870"]="9",V["871"]="9",V["872"]="9",V["873"]="9",V["874"]="9",V["875"]="9", V["876"]="9",V["877"]="(",V["878"]="(",V["879"]="(",V["880"]="(",V["881"]="(",V["882"]="(",V["883"]="(",V["884"]="(",V["885"]="(",V["886"]="(",V["887"]="(",V["888"]="(",V);var Xv={},KpU=(Xv.STEREO_LAYOUT_UNKNOWN=0,Xv.STEREO_LAYOUT_LEFT_RIGHT=1,Xv.STEREO_LAYOUT_TOP_BOTTOM=2,Xv);var uD,GZ;uD={};g.ai=(uD.auto=0,uD.tiny=144,uD.light=144,uD.small=240,uD.medium=360,uD.large=480,uD.hd720=720,uD.hd1080=1080,uD.hd1440=1440,uD.hd2160=2160,uD.hd2880=2880,uD.highres=4320,uD);GZ={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var LP="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");EO.prototype.isHdr=function(){return this.U==="smpte2084"||this.U==="arib-std-b67"};kF.prototype.XL=function(){return this.containerType===2}; kF.prototype.isEncrypted=function(){return!!this.IW}; kF.prototype.xS=function(){return!!this.audio}; kF.prototype.i$=function(){return!!this.video}; var O6=!1;g.c(Dt,g.H_);g.y=Dt.prototype;g.y.appendBuffer=function(U,O,M){if(this.oW.Ri()!==this.appendWindowStart+this.start||this.oW.e8()!==this.appendWindowEnd+this.start||this.oW.je()!==this.timestampOffset+this.start)this.oW.supports(1),this.oW.Nj(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.oW.tK(this.timestampOffset+this.start);this.oW.appendBuffer(U,O,M)}; g.y.abort=function(){this.oW.abort()}; g.y.remove=function(U,O){this.oW.remove(U+this.start,O+this.start)}; g.y.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.y.clear=function(){this.oW.clear()}; g.y.Nj=function(U,O){this.appendWindowStart=U;this.appendWindowEnd=O}; g.y.Td=function(){return this.timestampOffset+this.start}; g.y.Ri=function(){return this.appendWindowStart}; g.y.e8=function(){return this.appendWindowEnd}; g.y.tK=function(U){this.timestampOffset=U}; g.y.je=function(){return this.timestampOffset}; g.y.Nm=function(U){U=this.oW.Nm(U===void 0?!1:U);return c1(U,this.start,this.end)}; g.y.W7=function(){return this.oW.W7()}; g.y.K7=function(){return this.oW.K7()}; g.y.wP=function(){return this.oW.wP()}; g.y.BS=function(){return this.oW.BS()}; g.y.aj=function(){this.oW.aj()}; g.y.P1=function(U){return this.oW.P1(U)}; g.y.aJ=function(){return this.oW.aJ()}; g.y.p7=function(){return this.oW.p7()}; g.y.wh=function(){return this.oW.wh()}; g.y.zF=function(U,O,M){this.oW.zF(U,O,M)}; g.y.xj=function(U,O,M){this.oW.xj(U,O,M)}; g.y.B6=function(U,O){return this.oW.B6(U,O)}; g.y.supports=function(U){return this.oW.supports(U)}; g.y.y0=function(){return this.oW.y0()}; g.y.isView=function(){return!0}; g.y.Xf=function(){return this.oW.Xf()?this.isActive:!1}; g.y.isLocked=function(){return this.Mr&&!this.isActive}; g.y.aT=function(U){U=this.oW.aT(U);U.vw=this.start+"-"+this.end;return U}; g.y.ww=function(){return this.oW.ww()}; g.y.c_=function(){return this.oW.c_()}; g.y.O1=function(){return this.oW.O1()}; g.y.VP=function(){this.oW.i_(this.nB);g.H_.prototype.VP.call(this)};var R7=!1;g.c(W1,g.H_);g.y=W1.prototype;g.y.appendBuffer=function(U,O,M){this.wY=!1;M&&(this.EV=M);if(U.length){var S;((S=this.I_)==null?0:S.appendBuffer)?this.I_.appendBuffer(U):this.I_?this.I_.append(U):this.mU&&this.mU.webkitSourceAppend(this.id,U)}O&&(O.isEncrypted()&&(this.TT=this.EV),O.type===3&&(this.pW=O),this.ez.push(O.Qr()),this.ez.length>4&&this.ez.shift());this.q8&&(this.q8.length>=2||U.length>1048576?delete this.q8:this.q8.push(U))}; g.y.abort=function(){try{this.I_?this.I_.abort():this.mU&&this.mU.webkitSourceAbort(this.id)}catch(U){G0i&&g.K5(new g.sT("Error while abort the source buffer: "+U.name+", "+U.message))}this.EV=this.pW=null}; g.y.remove=function(U,O,M){this.wY=!1;var S;if((S=this.I_)==null?0:S.remove)M&&M({b:$f(this.Nm()),s:U,e:O}),this.I_.remove(U,O)}; g.y.removeAll=function(){this.remove(this.Ri(),this.e8())}; g.y.clear=function(){this.wP()||(this.abort(),this.removeAll(),this.TT=this.EV=this.pW=null,this.appendWindowStart=this.timestampOffset=0,this.H9=Go([],[]),this.wY=!1,this.q8=dm?[]:void 0,this.Qp=!0)}; g.y.Ri=function(){if(R7&&this.i$)return this.appendWindowStart;var U;return((U=this.I_)==null?void 0:U.appendWindowStart)||0}; g.y.e8=function(){var U;return((U=this.I_)==null?void 0:U.appendWindowEnd)||0}; g.y.Nj=function(U,O){this.I_&&(R7&&this.i$?(this.appendWindowStart=U,this.I_.appendWindowEnd=O):U>this.Ri()?(this.I_.appendWindowEnd=O,this.I_.appendWindowStart=U):(this.I_.appendWindowStart=U,this.I_.appendWindowEnd=O))}; g.y.Td=function(){return this.timestampOffset}; g.y.tK=function(U){R7?this.timestampOffset=U:this.supports(1)&&(this.I_.timestampOffset=U)}; g.y.je=function(){return R7?this.timestampOffset:this.supports(1)?this.I_.timestampOffset:0}; g.y.Nm=function(U){if(U===void 0?0:U)return this.wY||this.W7()||(this.H9=this.Nm(!1),this.wY=!0),this.H9;try{return this.I_?this.I_.buffered:this.mU?this.mU.webkitSourceBuffered(this.id):Go([0],[Infinity])}catch(O){return Go([],[])}}; g.y.W7=function(){var U;return((U=this.I_)==null?void 0:U.updating)||!1}; g.y.wP=function(){return this.Qp}; g.y.BS=function(){return!this.Qp&&this.W7()}; g.y.aj=function(){this.Qp=!1}; g.y.P1=function(U){var O=U==null?void 0:U.zY;U=U==null?void 0:U.containerType;return!O&&!U||O===this.zY&&U===this.containerType}; g.y.aJ=function(){return this.EV}; g.y.p7=function(){return this.TT}; g.y.B6=function(U,O){return this.containerType!==U||this.zY!==O}; g.y.zF=function(U,O,M){if(this.containerType!==U||M&&this.B6(U,M))this.supports(4),Ne()&&this.I_.changeType(O),M&&(this.zY=M);this.containerType=U}; g.y.xj=function(U,O,M){this.containerType&&this.B6(U,O)&&Ne()&&this.I_.changeType(M);this.containerType=U;this.zY=O}; g.y.y0=function(){return this.pW}; g.y.isView=function(){return!1}; g.y.supports=function(U){switch(U){case 1:var O;return((O=this.I_)==null?void 0:O.timestampOffset)!==void 0;case 0:var M;return!((M=this.I_)==null||!M.appendBuffer);case 2:var S;return!((S=this.I_)==null||!S.remove);case 3:var p,h;return!!(((p=this.I_)==null?0:p.addEventListener)&&((h=this.I_)==null?0:h.removeEventListener));case 4:return!(!this.I_||!this.I_.changeType);default:return!1}}; g.y.Xf=function(){return!this.W7()}; g.y.isLocked=function(){return!1}; g.y.aT=function(U){U.to=this.je();U.up=this.W7();var O,M=((O=this.I_)==null?void 0:O.appendWindowStart)||0,S;O=((S=this.I_)==null?void 0:S.appendWindowEnd)||Infinity;U.aw=M.toFixed(3)+"-"+O.toFixed(3);return U}; g.y.K7=function(){var U;return((U=this.I_)==null?void 0:U.writeHead)||0}; g.y.ww=function(){for(var U={},O=0;O=7&&lYe(this,function(){g.Nv(function(){tpy(U,U.getCurrentTime(),0)},500)}); return O}; g.y.seekTo=function(U){this.K9()>0&&(mH&&ia<4&&(U=Math.max(.1,U)),this.setCurrentTime(U))}; g.y.Xo=function(){if(!this.V&&this.La)if(this.La.G)try{var U;Uf(this,{l:"mer",sr:(U=this.wG)==null?void 0:U.vU(),rs:sf(this.La)});this.La.clear();this.V=this.La;this.La=void 0}catch(O){U=new g.sT("Error while clearing Media Source in MediaElement: "+O.name+", "+O.message),g.K5(U),this.stopVideo()}else this.stopVideo()}; g.y.stopVideo=function(){var U=this;if(!this.V){var O;(O=this.La)==null||xcy(O);if(f3w){if(!this.B){var M=new M6;M.then(void 0,function(){}); this.B=M;FYw&&this.pause();g.Nv(function(){U.B===M&&(J0(U),M.resolve())},200)}}else J0(this)}}; g.y.Kt=function(){var U=this.wL();return H1(U)>0&&this.getDuration()?eh(U,this.getCurrentTime()):0}; g.y.r0=function(){var U=this.getDuration();return U===Infinity?1:U?this.Kt()/U:0}; g.y.aT=function(){try{var U=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:$f(this.v1(),",",3),vbu:$f(this.wL()),vbs:$f(this.Et()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.K9(),vns:""+this.V0(),vec:""+this.eH(),vemsg:this.XT(),vvol:""+this.getVolume(),vdom:""+ +this.XB(),vsrc:""+ +!!this.QN(),vw:""+U.width,vh:""+U.height}}catch(O){return{}}}; g.y.hasError=function(){return this.eH()>0}; g.y.addEventListener=function(U,O){this.X.listen(U,O,!1,this);this.qB(U)}; g.y.removeEventListener=function(U,O){this.X.bH(U,O,!1,this)}; g.y.dispatchEvent=function(U){if(this.B&&U.type==="pause")return!1;if(l3e){var O,M=((O=U.U)==null?void 0:O.timeStamp)||Infinity;O=M>performance.now()?M-Date.now()+performance.now():M;M=this.V||this.La;if((M==null?0:M.wP())||O<=((M==null?void 0:M.C)||0)){var S;Uf(this,{l:"mede",sr:(S=this.wG)==null?void 0:S.vU(),et:U.type});return!1}if(this.iP)return Uf(this,{l:"medes",et:U.type}),M&&U.type==="seeking"&&(M.C=performance.now(),this.iP=!1),!1}return this.X.dispatchEvent(U)}; g.y.TM=function(){this.C=!1}; g.y.Sb=function(){this.C=!0;this.jB(!0)}; g.y.G7=function(){this.C&&!this.Ur()&&this.jB(!0)}; g.y.KW=function(U){return!!U&&U.tG()===this.tG()}; g.y.VP=function(){this.D&&this.removeEventListener("volumechange",this.G7);f3w&&J0(this);g.C.prototype.VP.call(this)}; var f3w=!1,FYw=!1,l3e=!1,ABy=!1;g.y=g.fD.prototype;g.y.isPaused=function(){return g.a(this,4)}; g.y.isPlaying=function(){return g.a(this,8)&&!g.a(this,512)&&!g.a(this,64)&&!g.a(this,2)}; g.y.isOrWillBePlaying=function(){return g.a(this,8)&&!g.a(this,2)&&!g.a(this,1024)}; g.y.isCued=function(){return g.a(this,64)&&!g.a(this,8)&&!g.a(this,4)}; g.y.isBuffering=function(){return g.a(this,1)&&!g.a(this,2)}; g.y.isError=function(){return g.a(this,128)}; g.y.isSuspended=function(){return g.a(this,512)}; g.y.Of=function(){return g.a(this,64)&&g.a(this,4)}; g.y.toString=function(){return"PSt."+this.state.toString(16)}; var qQ={},iD=(qQ.BUFFERING="buffering-mode",qQ.CUED="cued-mode",qQ.ENDED="ended-mode",qQ.PAUSED="paused-mode",qQ.PLAYING="playing-mode",qQ.SEEKING="seeking-mode",qQ.UNSTARTED="unstarted-mode",qQ);g.c(cI,g.C);g.y=cI.prototype;g.y.pN=function(){return this.B}; g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.init=function(){var U=$G(this.layout.clientMetadata,"metadata_type_video_length_seconds"),O=$G(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");mE(this.layout.BV)&&wY(this.X9.get(),this.layout.layoutId,{mE:O,v8:U,listener:this,A0:this.l$()});XKe(this.Il.get(),this);U=this.Z2;O=this.layout.layoutId;var M={A0:this.l$()};U.U.set(O,M);this.jm()}; g.y.Mk=function(){}; g.y.release=function(){mE(this.layout.BV)&&U0(this.X9.get(),this.layout.layoutId);uuy(this.Il.get(),this);this.Z2.U.delete(this.layout.layoutId);this.Ld()}; g.y.Eu=function(){}; g.y.wz=function(){}; g.y.startRendering=function(U){tA(Dl(this));if(dF(this,U)){var O=this.U;YF(O.params.Za.vA.get(),!0)&&fYe(O,"p_sr",{});WI(this);this.z3(U);this.l$()||this.wI(!1)}}; g.y.xZ=function(U,O){if(O.layoutId===this.layout.layoutId){this.wi="rendering";this.V=this.dG.get().isMuted()||this.dG.get().getVolume()===0;this.R_("impression");this.R_("start");if(this.dG.get().isMuted()){Rz(this,"mute");var M;U=((M=zh(this))==null?void 0:M.muteCommands)||[];wL(this.OQ.get(),U,this.layout.layoutId)}if(this.dG.get().isFullscreen()){this.aL("fullscreen");var S;M=((S=zh(this))==null?void 0:S.fullscreenCommands)||[];wL(this.OQ.get(),M,this.layout.layoutId)}this.l$()||(S=this.SY.get(), S.B&&!S.V&&(S.G=!1,S.V=!0,S.actionType!=="ad_to_video"&&(Ut("pbs",void 0,S.actionType),g.R0("finalize_all_timelines")&&akW(S.actionType))));this.nJ(1);this.Iu(O);var p;O=((p=zh(this))==null?void 0:p.impressionCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}}; g.y.WE=function(U,O,M){this.D={td:3,ov:U==="load_timeout"?402:400,errorMessage:O.message};this.R_("error");var S;U=((S=zh(this))==null?void 0:S.errorCommands)||[];wL(this.OQ.get(),U,this.layout.layoutId);this.l$()||this.cC.aK(this.slot,this.layout,O,M)}; g.y.oX=function(){if(this.wi==="rendering"){Rz(this,"pause");var U,O=((U=zh(this))==null?void 0:U.pauseCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId);this.nJ(2)}}; g.y.rq=function(){if(this.wi==="rendering"){Rz(this,"resume");var U,O=((U=zh(this))==null?void 0:U.resumeCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}}; g.y.rQ=function(U,O){O=O===void 0?!1:O;if(this.wi==="rendering"){var M={currentTimeSec:U,flush:O};ma(this.U,"p_ip",M);ul(this.WA,U*1E3,O);this.V||ul(this.WA,U*1E3,O===void 0?!1:O);var S=this.iA();if(S){S/=1E3;if(U>=S*.25||O)this.R_("first_quartile"),ma(this.U,"p_fq",M);if(U>=S*.5||O)this.R_("midpoint"),ma(this.U,"p_sq",M);if(U>=S*.75||O)this.R_("third_quartile"),ma(this.U,"p_tq",M);this.vA.get().S.J().experiments.F0("enable_progress_command_flush_on_kabuki")?VV(this.X,U*1E3,O):VV(this.X,U*1E3,XvJ(this)? O:!1)}}}; g.y.JU=function(){var U;return((U=N6(this.qL.get(),1))==null?void 0:U.clientPlaybackNonce)||""}; g.y.B0=function(U,O){U.layoutId!==this.layout.layoutId?this.cC.aK(this.slot,U,new lo("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"):O()}; g.y.As=function(U,O,M){if(O.layoutId===this.layout.layoutId)switch(this.wi="not_rendering",this.layoutExitReason=void 0,this.l$()||(U=M!=="normal"||this.position+1===this.C)&&this.wI(U),this.ym(M),this.nJ(0),M){case "abandoned":if(q8(this.WA,"impression")){var S,p=((S=zh(this))==null?void 0:S.abandonCommands)||[];wL(this.OQ.get(),p,this.layout.layoutId)}break;case "normal":S=((p=zh(this))==null?void 0:p.completeCommands)||[];wL(this.OQ.get(),S,this.layout.layoutId);break;case "skipped":var h;S=((h= zh(this))==null?void 0:h.skipCommands)||[];wL(this.OQ.get(),S,this.layout.layoutId)}}; g.y.jn=function(){return this.layout.layoutId}; g.y.NB=function(){return this.D}; g.y.QW=function(){if(this.wi==="rendering"){this.WA.R_("active_view_measurable");var U,O=((U=zh(this))==null?void 0:U.activeViewMeasurableCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}}; g.y.s5=function(){if(this.wi==="rendering"){this.WA.R_("active_view_fully_viewable_audible_half_duration");var U,O=((U=zh(this))==null?void 0:U.activeViewFullyViewableAudibleHalfDurationCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}}; g.y.AY=function(){if(this.wi==="rendering"){this.WA.R_("active_view_viewable");var U,O=((U=zh(this))==null?void 0:U.activeViewViewableCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}}; g.y.XS=function(){if(this.wi==="rendering"){this.WA.R_("audio_audible");var U,O=((U=zh(this))==null?void 0:U.activeViewAudioAudibleCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}}; g.y.MA=function(){if(this.wi==="rendering"){this.WA.R_("audio_measurable");var U,O=((U=zh(this))==null?void 0:U.activeViewAudioMeasurableCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}}; g.y.wI=function(U){this.SY.get().wI($G(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,U,this.position,this.C,!1)}; g.y.onFullscreenToggled=function(U){if(this.wi==="rendering")if(U){this.aL("fullscreen");var O,M=((O=zh(this))==null?void 0:O.fullscreenCommands)||[];wL(this.OQ.get(),M,this.layout.layoutId)}else this.aL("end_fullscreen"),O=((M=zh(this))==null?void 0:M.endFullscreenCommands)||[],wL(this.OQ.get(),O,this.layout.layoutId)}; g.y.onVolumeChange=function(){if(this.wi==="rendering")if(this.dG.get().isMuted()){Rz(this,"mute");var U,O=((U=zh(this))==null?void 0:U.muteCommands)||[];wL(this.OQ.get(),O,this.layout.layoutId)}else Rz(this,"unmute"),U=((O=zh(this))==null?void 0:O.unmuteCommands)||[],wL(this.OQ.get(),U,this.layout.layoutId)}; g.y.IA=function(){}; g.y.RF=function(){}; g.y.aF=function(){}; g.y.ju=function(){}; g.y.YF=function(){}; g.y.aL=function(U){this.WA.aL(U,!this.V)}; g.y.R_=function(U){this.WA.R_(U,!this.V)}; g.y.l$=function(){var U=$G(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return U===void 0?(DY("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.vA.get().l$(U)};g.c(Iz,cI);g.y=Iz.prototype;g.y.jm=function(){}; g.y.Ld=function(){var U=this.Il.get();U.RI===this&&(U.RI=null);this.e9.stop()}; g.y.Eu=function(){this.e9.stop();cI.prototype.oX.call(this)}; g.y.wz=function(){nD(this);cI.prototype.rq.call(this)}; g.y.iA=function(){return $G(this.cA().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.y.rH=function(U,O){var M=this;this.B0(U,function(){M.wi!=="rendering_stop_requested"&&(M.wi="rendering_stop_requested",M.layoutExitReason=O,vI(M,O),M.e9.stop())})}; g.y.kZ=function(){var U=Date.now(),O=U-this.m1;this.m1=U;this.XE+=O;this.XE>=this.iA()?this.oU():(this.rQ(this.XE/1E3),PI(this,this.XE))}; g.y.ym=function(){}; g.y.iB=function(){}; g.c(QW,Iz);g.y=QW.prototype;g.y.ib=function(U){if(this.wi!=="not_rendering"){U=BI(this,U);var O=this.dG.get().getPresentingPlayerType()===2;this.wi==="rendering_start_requested"?O&&co(U)&&this.lJ():O?g.Nc(U,2)?DY("Receive player ended event during MediaBreak",this.JG(),this.cA()):xA(this,U):this.F6()}}; g.y.z3=function(){Q85(this);oWe(this.dG.get());this.Il.get().RI=this;k6("pbp")||k6("pbs")||Ut("pbp");k6("pbp","watch")||k6("pbs","watch")||Ut("pbp",void 0,"watch");this.lJ()}; g.y.Iu=function(U){this.SY.get();var O=$G(U.clientMetadata,"metadata_type_ad_placement_config").kind,M=this.position===0;U=$G(U.clientMetadata,"metadata_type_linked_in_player_layout_type");U={adBreakType:bR(O),adType:Vpw(U)};var S=void 0;M?O!=="AD_PLACEMENT_KIND_START"&&(S="video_to_ad"):S="ad_to_ad";Ll("ad_mbs",void 0,S);g.Va(U,S);nD(this)}; g.y.F6=function(){this.U$()}; g.y.oU=function(){qnU(this);this.U$()}; g.c(CD,Iz);g.y=CD.prototype;g.y.ib=function(U){this.wi!=="not_rendering"&&(U=BI(this,U),xA(this,U))}; g.y.z3=function(){DY("Not used in SSAP")}; g.y.Iu=function(){nD(this)}; g.y.F6=function(){DY("Not used in SSAP")}; g.y.oU=function(){qnU(this);this.cC.TE(this.JG(),this.cA(),"normal")}; g.c(Xw,CD);Xw.prototype.rH=function(U,O){var M=this;this.B0(U,function(){vo(M.B,O)&&(M.wi="rendering_stop_requested",M.layoutExitReason=O,vI(M,O),M.e9.stop())})}; Xw.prototype.startRendering=function(U){tA(Dl(this));dF(this,U)&&(WI(this),this.Il.get().RI=this)};g.c(iR,cI);g.y=iR.prototype;g.y.F6=function(){this.U$()}; g.y.ib=function(U){if(this.wi!=="not_rendering"){U=BI(this,U);var O=this.dG.get().getPresentingPlayerType()===2;this.wi==="rendering_start_requested"?O&&co(U)&&this.lJ():!O||g.Nc(U,2)?this.U$():xA(this,U)}}; g.y.jm=function(){$G(this.cA().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=$G(this.cA().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.y.Ld=function(){$G(this.cA().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.gg){var U=this.context.Za,O=this.gg,M=this.cA().layoutId;if(YF(U.vA.get(),!0)){var S={};U.ya("mccru",(S.cid=O,S.p_ac=M,S))}this.Lr.get().removeCueRange(this.gg)}this.gg=void 0;var p;(p=this.Iz)==null||p.dispose();this.Je&&this.Je.dispose()}; g.y.z3=function(U){var O=uR(this.vA.get()),M=q6(this.vA.get());if(O&&M&&!this.l$()){M=$G(U.clientMetadata,"metadata_type_preload_player_vars");var S=g.DF(this.vA.get().S.J().experiments,"html5_preload_wait_time_secs");M&&this.Je&&this.Je.start(S*1E3)}Kn7(this,U);Q85(this);O?(M=this.N4.get(),U=$G(U.clientMetadata,"metadata_type_player_vars"),M.S.loadVideoByPlayerVars(U,!1,2)):pYg(this.N4.get(),$G(U.clientMetadata,"metadata_type_player_vars"));var p;(p=this.Iz)==null||p.start();O||this.N4.get().S.playVideo(2)}; g.y.Iu=function(){var U;(U=this.Iz)==null||U.stop();this.gg="adcompletioncuerange:"+this.cA().layoutId;this.Lr.get().addCueRange(this.gg,0x7ffffffffffff,0x8000000000000,!1,this,2,2);U=this.context.Za;var O=this.gg,M=this.cA().layoutId;if(YF(U.vA.get(),!0)){var S={};U.ya("mccr",(S.cid=O,S.p_ac=M,S))}(this.adCpn=n47(this))||DY("Media layout confirmed started, but ad CPN not set.");this.Zq.get().U_("onAdStart",this.adCpn);this.eP=Date.now()}; g.y.iA=function(){var U;return(U=N6(this.qL.get(),2))==null?void 0:U.QI}; g.y.w2=function(){this.WA.aL("clickthrough")}; g.y.rH=function(U,O){var M=this;this.B0(U,function(){if(M.wi!=="rendering_stop_requested"){M.wi="rendering_stop_requested";M.layoutExitReason=O;vI(M,O);var S;(S=M.Iz)==null||S.stop();M.Je&&M.Je.stop();rBW(M)}})}; g.y.onCueRangeEnter=function(U){if(U!==this.gg)DY("Received CueRangeEnter signal for unknown layout.",this.JG(),this.cA(),{cueRangeId:U});else{var O=this.context.Za,M=this.cA().layoutId;if(YF(O.vA.get(),!0)){var S={};O.ya("mccre",(S.cid=U,S.p_ac=M,S))}this.Lr.get().removeCueRange(this.gg);this.gg=void 0;gp(this.context.vA.get(),"html5_ssap_flush_at_stop_rendering")&&this.l$()||(U=$G(this.cA().clientMetadata,"metadata_type_video_length_seconds"),this.rQ(U,!0),this.R_("complete"))}}; g.y.ym=function(U){U!=="abandoned"&&this.Zq.get().U_("onAdComplete");this.Zq.get().U_("onAdEnd",this.adCpn)}; g.y.onCueRangeExit=function(){}; g.y.iB=function(U){this.wi==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&U>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.dG.get().u8(!0),this.rQ(U))}; g.y.rQ=function(U,O){cI.prototype.rQ.call(this,U,O===void 0?!1:O);O=Date.now()-this.eP;var M=U*1E3,S={contentCpn:this.JU(),adCpn:n47(this)};if(U-this.Uc>=5){var p=O=2||(this.WB.rH(this.layout,O),U=gp(this.params.context.vA.get(),"html5_ssap_pass_transition_reason")&&O==="abandoned",this.Yk()&&!U&&(gp(this.params.context.vA.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(O)||DY("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:O})),this.XI.get().finishSegmentByCpn(this.layout.layoutId, N6(this.qL.get(),1).clientPlaybackNonce,YA(O,this.params.context.vA))),this.dG.get().removeListener(this),this.KF()&&Bo(this.WB.pN())&&this.tT.As(this.slot,this.layout,this.WB.pN().U))}; g.y.fu=function(U,O,M){JB7({cpn:U,Up:this.qL.get(),dg:!0});this.cA().layoutId!==U||gp(this.params.context.vA.get(),"html5_ssap_pass_transition_reason")&&M===5||(this.WB.pN().currentState<2&&(U=mB(M,this.params.context.vA),U==="error"?this.tT.aK(this.slot,this.layout,new lo("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:M},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):wF(this.Al, this.layout,U)),gp(this.params.context.vA.get(),"html5_ssap_exit_without_waiting_for_transition")||this.tT.As(this.slot,this.layout,this.WB.pN().U))};g.c(Ef,g.C);g.y=Ef.prototype;g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.Bl=function(){}; g.y.N_=function(){return this.w3[this.EP]}; g.y.jU=function(){return this.EP}; g.y.Eu=function(U,O){var M=this.N_();O.layoutId!==VW(M,U,O)?DY("pauseLayout for a PlayerBytes layout that is not currently active",U,O):M.Eu()}; g.y.wz=function(U,O){var M=this.N_();O.layoutId!==VW(M,U,O)?DY("resumeLayout for a PlayerBytes layout that is not currently active",U,O):M.wz()}; g.y.bS=function(U,O){var M=this.N_();OlJ(this,U,O);sYm(M,U,O)&&this.iJ(M.JG(),M.cA(),"skipped")}; g.y.DG=function(U,O){var M=this.N_();g6m(this);M8w(M,U,O)&&(U=SKw(this,M,U,O),U!==void 0&&(this.l$()?DY("Should not happen. Should delete"):hT4(this,M.JG(),M.cA(),U)))}; g.y.N3=function(U,O){var M=Object.assign({},LD(this),{layoutId:O.layoutId}),S=M.layoutId,p=M.dg;if(M.A0){var h={};Ri(M.Up,"wrse",(h.ec=S,h.is=p,h.ctp=bA(S),h))}ni(this.h0,U,O)}; g.y.xZ=function(U,O){var M;(M=this.N_())==null||M.xZ(U,O)}; g.y.As=function(U,O,M){O.layoutId===this.cA().layoutId&&(this.bd=!1,vF(this.oT(),this));var S;(S=this.N_())==null||S.As(U,O,M)}; g.y.iB=function(U){var O;(O=this.N_())==null||O.iB(U)}; g.y.I3=function(U,O,M){this.jU()===-1&&(this.callback.xZ(this.slot,this.layout),this.EP++);var S=this.N_();S?(S.WE(U,O,M),this.l$()&&this.callback.aK(this.slot,this.layout,O,M)):DY("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.jU()),layoutId:this.cA().layoutId})}; g.y.onFullscreenToggled=function(U){var O;(O=this.N_())==null||O.onFullscreenToggled(U)}; g.y.IA=function(U){var O;(O=this.N_())==null||O.IA(U)}; g.y.aF=function(U){var O;(O=this.N_())==null||O.aF(U)}; g.y.onVolumeChange=function(){var U;(U=this.N_())==null||U.onVolumeChange()}; g.y.a5=function(U,O,M){Q6(this.h0,U,O,M)}; g.y.S4=function(U){U.startRendering(U.cA())}; g.y.init=function(){var U=$G(this.cA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=this);if(this.w3.length<1)throw new L("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.w3.length)});if(U=$G(this.cA().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))U.current=this;U=g.D(this.w3);for(var O=U.next();!O.done;O=U.next())O=O.value,O.init(),R5i(this.h0,this.slot,O.cA()),t$y(this.h0,this.slot,O.cA()); if(this.l$())for(this.qL.get().addListener(this),s8W(UZw(this),this.qL.get()),U=UZw(this),U=g.D(U),O=U.next();!O.done;O=U.next())this.Kv(O.value)}; g.y.Kv=function(U){var O=$G(U.clientMetadata,"metadata_type_player_vars");O?(U.layoutType!=="LAYOUT_TYPE_MEDIA"&&DY("Non-video ad contains playerVars",this.slot,U),this.N4.get().addPlayerResponseForAssociation({playerVars:O})):(U=o44(U),this.N4.get().addPlayerResponseForAssociation({bJ:U}))}; g.y.release=function(){var U=$G(this.cA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=null);if(U=$G(this.cA().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))U.current=null;U=g.D(this.w3);for(var O=U.next();!O.done;O=U.next())O=O.value,Yh1(this.h0,this.slot,O.cA()),O.release();this.l$()&&(this.qL.get().removeListener(this),g4i())}; g.y.B0=function(U){return U.layoutId!==this.cA().layoutId?(this.callback.aK(this.JG(),U,new lo("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.cA().layoutId+("and LayoutType: "+this.cA().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.y.W8=function(){this.dG.get().addListener(this);NM(this.oT(),this)}; g.y.ib=function(U){if(U.state.isError()){var O,M;this.I3((O=U.state.p6)==null?void 0:O.errorCode,new lo("There was a player error during this media layout.",{playerErrorCode:(M=U.state.p6)==null?void 0:M.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(O=this.N_())&&O.ib(U)}; g.y.l$=function(){var U=$G(this.JG().clientMetadata,"metadata_type_eligible_for_ssap");return U===void 0?(DY("Expected SSAP eligibility in PlayerBytes slots",this.JG(),this.cA()),!1):this.vA.get().l$(U)}; g.y.RF=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.ju=function(){}; g.y.YF=function(){}; g.c(UZ,Ef);g.y=UZ.prototype;g.y.zc=function(U,O,M){this.iJ(U,O,M)}; g.y.ZL=function(U,O){this.iJ(U,O,"error")}; g.y.iJ=function(U,O,M){var S=this;pPi(this,U,O,M,function(){oz(S,S.jU()+1)})}; g.y.startRendering=function(U){this.B0(U)&&(this.W8(),lQe(this.SY.get()),eAg(this.vA.get())||oWe(this.dG.get()),this.jU()===-1&&oz(this,this.jU()+1))}; g.y.rH=function(U,O){var M=this;this.bd=!0;this.jU()===this.w3.length?this.callback.As(this.slot,this.layout,O):(U=this.N_(),U.rH(U.cA(),O),this.TL=function(){M.callback.As(M.slot,M.layout,O)}); this.dG.get().S.Pu();pYg(this.N4.get(),{});U=kp(this.dG.get(),1);U.isPaused()&&!g.a(U,2)&&this.dG.get().playVideo();this.dG.get().removeListener(this);this.bd&&JFg(this)}; g.y.fu=function(){}; g.y.u4=function(){}; g.y.TE=function(){}; g.c(OZ,Ef);g.y=OZ.prototype;g.y.zc=function(U,O,M){U=Object.assign({},LD(this),{layoutId:O.layoutId,layoutExitReason:M});O=U.layoutId;M=U.layoutExitReason;var S={};Ri(U.Up,"prse",(S.xc=O,S.ler=M,S.ctp=bA(O),S))}; g.y.ZL=function(){DY("onSubLayoutError in SSAP")}; g.y.iJ=function(){DY("exitSubLayoutAndPlayNext in SSAP")}; g.y.N_=function(){return this.b$}; g.y.jU=function(){var U=this;return this.w3.findIndex(function(O){var M;return O.cA().layoutId===((M=U.b$)==null?void 0:M.cA().layoutId)})}; g.y.S4=function(U){cv(this.b$===void 0,"replacing another adapter");this.b$=U;U.startRendering(U.cA())}; g.y.a5=function(U,O,M){Q6(this.h0,U,O,M);var S;cv(O.layoutId===((S=this.b$)==null?void 0:S.cA().layoutId),"currentAdapter does not match exiting layout",{slot:U?"slot: "+U.slotType:"",subLayout:zQ(O)})&&(this.b$=void 0)}; g.y.release=function(){Ef.prototype.release.call(this);cv(this.b$===void 0,"currentAdapter is still active during release");this.b$=void 0}; g.y.Yk=function(){return this.dG.get().getPresentingPlayerType()===2}; g.y.rH=function(U,O){function M(){sZ(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(O)||DY("Composite stopRendering: Unexpected layout exit reason",this.slot,U,{layoutExitReason:O}))} function S(){this.b$&&gE(this,this.b$,O);if(this.Yk()&&(!sZ(this)||O!=="abandoned")){M.call(this);var h;var J=((h=this.qL.get().S.getVideoData())==null?void 0:h.clientPlaybackNonce)||"";h=N6(this.qL.get(),1).clientPlaybackNonce;this.XI.get().finishSegmentByCpn(J,h,YA(O,this.vA))}yFg(this,O)} function p(){if(this.b$){var h=this.b$;h.pN().currentState<2&&h.rH(h.cA(),O);h=sZ(this)&&O==="abandoned";this.Yk()&&!h&&(M.call(this),this.XI.get().finishSegmentByCpn(this.b$.cA().layoutId,N6(this.qL.get(),1).clientPlaybackNonce,YA(O,this.vA)))}} cv(U.layoutId===this.cA().layoutId,"StopRendering for wrong layout")&&vo(this.jV.V,O)&&(this.KF()?S.call(this):p.call(this))}; g.y.As=function(U,O,M){Ef.prototype.As.call(this,U,O,M);O.layoutId===this.cA().layoutId&&this.dG.get().removeListener(this)}; g.y.JU=function(){return N6(this.qL.get(),1).clientPlaybackNonce}; g.y.fu=function(U,O,M){JB7(Object.assign({},LD(this),{cpn:U}));if(!sZ(this)||M!==5)if(this.KF()){if(this.b$&&this.b$.cA().layoutId!==O){var S=this.b$.cA().layoutId;S!==U&&DY("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:S,exitingCpn:U,enteringCpn:O});U=mB(M,this.vA);gE(this,this.b$,U)}else this.b$&&DY("onClipExited: active layout is entering again");O===this.JU()&&FN5(this,M)}else{if(this.b$&&this.b$.cA().layoutId===U)fzw(this,this.b$,M);else{var p;DY("Exiting cpn does not match active cpn", this.slot,(S=this.b$)==null?void 0:S.cA(),{exitingCpn:U,transitionReason:M,activeCpn:(p=this.b$)==null?void 0:p.cA().layoutId})}O===this.JU()&&(this.b$!==void 0&&(DY("active adapter is not properly exited",this.slot,this.layout,{activeLayout:zQ(this.b$.cA())}),fzw(this,this.b$,M)),FN5(this,M),yFg(this,this.jV.V.U))}}; g.y.KF=function(){return gp(this.vA.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.y.startRendering=function(U){this.B0(U)&&(U=this.jV,cv(U.U===1,"tickStartRendering: state is not initial"),U.U=2,this.W8())}; g.y.u4=function(U){hnm(Object.assign({},LD(this),{cpn:U}));var O=this.w3.find(function(M){return M.cA().layoutId===U}); O?(this.jV.U!==2&&(i_y(this.Gk,this.slot.slotId),cv(this.jV.U===2,"Expect started"),this.callback.xZ(this.slot,this.layout)),this.S4(O),ni(this.h0,this.slot,O.cA())):lzy(this,U)}; g.y.bS=function(U,O){OlJ(this,U,O);var M=this.N_();M?sYm(M,U,O)&&GA4(this,"skipped"):$ZJ(this,"onSkipRequested")}; g.y.DG=function(U,O){var M;a:{if(M=this.N_()){if(g6m(this),M8w(M,U,O)&&(U=SKw(this,M,U,O),U!==void 0)){M={uW:M,WUA:this.w3[U]};break a}}else $ZJ(this,"SkipWithAdPodSkip");M=void 0}if(U=M)M=U.uW,O=U.WUA,U=M.cA().layoutId,this.KF()?gE(this,M,"skipped"):M.rH(M.cA(),"skipped"),M=O.cA().layoutId,this.XI.get().finishSegmentByCpn(U,M,YA("skipped",this.vA))}; g.y.N3=function(){DY("Not used in html5_ssap_fix_layout_exit")}; g.y.ib=function(U){var O;(O=this.N_())==null||O.ib(U)}; g.y.I3=function(){DY("Not used in html5_ssap_fix_layout_exit")}; g.y.TE=function(U,O,M){var S;if(((S=this.N_())==null?void 0:S.cA().layoutId)!==O.layoutId)return void DY("requestToExitSubLayout: wrong layout");GA4(this,M)};g.c(Mg,g.C);g.y=Mg.prototype;g.y.JG=function(){return this.WB.JG()}; g.y.cA=function(){return this.WB.cA()}; g.y.init=function(){var U=$G(this.cA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=this);this.jm()}; g.y.jm=function(){this.WB.init()}; g.y.release=function(){var U=$G(this.cA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=null);this.Ld()}; g.y.Ld=function(){this.WB.release()}; g.y.Eu=function(){this.WB.Eu()}; g.y.wz=function(){this.WB.wz()}; g.y.bS=function(U,O){DY("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.JG(),this.cA(),{requestingSlot:U,requestingLayout:O})}; g.y.startRendering=function(U){U.layoutId!==this.cA().layoutId?this.callback.aK(this.JG(),U,new lo("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.cA().layoutId+("and LayoutType: "+this.cA().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.dG.get().addListener(this),NM(this.oT(),this),lQe(this.SY.get()),eAg(this.vA.get())||oWe(this.dG.get()),this.WB.startRendering(U))}; g.y.rH=function(U,O){this.bd=!0;this.WB.rH(U,O);this.dG.get().S.Pu();pYg(this.N4.get(),{});U=kp(this.dG.get(),1);U.isPaused()&&!g.a(U,2)&&this.dG.get().playVideo();this.dG.get().removeListener(this);this.bd&&this.WB.F6()}; g.y.xZ=function(U,O){this.WB.xZ(U,O)}; g.y.As=function(U,O,M){O.layoutId===this.cA().layoutId&&(this.bd=!1,vF(this.oT(),this));this.WB.As(U,O,M);O.layoutId===this.cA().layoutId&&kA(this.SY.get())}; g.y.iB=function(U){this.WB.iB(U)}; g.y.ib=function(U){if(U.state.isError()){var O,M;this.I3((O=U.state.p6)==null?void 0:O.errorCode,new lo("There was a player error during this media layout.",{playerErrorCode:(M=U.state.p6)==null?void 0:M.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.WB.ib(U)}; g.y.I3=function(U,O,M){this.WB.WE(U,O,M)}; g.y.onFullscreenToggled=function(U){this.WB.onFullscreenToggled(U)}; g.y.IA=function(U){this.WB.IA(U)}; g.y.aF=function(U){this.WB.aF(U)}; g.y.onVolumeChange=function(){this.WB.onVolumeChange()}; g.y.RF=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.ju=function(){}; g.y.YF=function(){};g.y=SH.prototype;g.y.JG=function(){return this.slot}; g.y.cA=function(){return this.layout}; g.y.init=function(){this.YI.get().addListener(this);this.dG.get().addListener(this);var U=$G(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var O=$G(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.X){var M=this.YI.get().Q6.slice(-1)[0];M!==void 0&&(U=M.startSecs*1E3,O=(M.startSecs+M.PJ)*1E3)}this.Mk(U,O);var S;M=(S=this.qL.get().W$)==null?void 0:S.clientPlaybackNonce;S=this.layout.kp.adClientDataEntry;pn(this.Il.get(),{daiStateTrigger:{filledAdsDurationMs:O-U,contentCpn:M, adClientData:S}});var p=this.YI.get();p=eTe(p.B,U,O);p!==null&&(pn(this.Il.get(),{daiStateTrigger:{filledAdsDurationMs:p-U,contentCpn:M,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:S}}),this.XI.get().wu(p,O))}; g.y.release=function(){this.Ld();this.YI.get().removeListener(this);this.dG.get().removeListener(this)}; g.y.startRendering=function(){this.z3();this.callback.xZ(this.slot,this.layout)}; g.y.rH=function(U,O){this.LD(O);this.driftRecoveryMs!==null&&(hT(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Hlw(this)-$G(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.dG.get().S.eU()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.As(this.slot,this.layout,O)}; g.y.hV=function(){return!1}; g.y.sN=function(U){var O=$G(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),M=$G(this.layout.clientMetadata,"metadata_type_layout_exit_ms");U*=1E3;if(O<=U&&U0&&Ci(this.U(),O)}; g.y.qz=function(U){this.G.delete(U.slotId);for(var O=[],M=g.D(this.Se.values()),S=M.next();!S.done;S=M.next()){S=S.value;var p=S.trigger;p instanceof sk&&p.triggeringSlotId===U.slotId&&O.push(S)}O.length>0&&Ci(this.U(),O)}; g.y.TO=function(U){for(var O=[],M=g.D(this.Se.values()),S=M.next();!S.done;S=M.next()){S=S.value;var p=S.trigger;p instanceof rE&&p.slotType===U.slotType&&p.U!==U.slotId&&O.push(S)}O.length>0&&Ci(this.U(),O)}; g.y.S5=function(U){this.B.add(U.slotId);for(var O=[],M=g.D(this.Se.values()),S=M.next();!S.done;S=M.next())S=S.value,S.trigger instanceof oq&&U.slotId===S.trigger.triggeringSlotId&&O.push(S);O.length>0&&Ci(this.U(),O)}; g.y.CO=function(U){this.B.delete(U.slotId);this.X.add(U.slotId);for(var O=[],M=g.D(this.Se.values()),S=M.next();!S.done;S=M.next())if(S=S.value,S.trigger instanceof k3)U.slotId===S.trigger.triggeringSlotId&&O.push(S);else if(S.trigger instanceof Iq){var p=S.trigger;U.slotId===p.slotId&&this.V.has(p.triggeringLayoutId)&&O.push(S)}O.length>0&&Ci(this.U(),O)}; g.y.k$=function(U){for(var O=[],M=g.D(this.Se.values()),S=M.next();!S.done;S=M.next())S=S.value,S.trigger instanceof wE&&U.slotId===S.trigger.triggeringSlotId&&O.push(S);O.length>0&&Ci(this.U(),O)}; g.y.D2=function(U){for(var O=[],M=g.D(this.Se.values()),S=M.next();!S.done;S=M.next())S=S.value,S.trigger instanceof Uk&&U.slotId===S.trigger.triggeringSlotId&&O.push(S);O.length>0&&Ci(this.U(),O)}; g.y.VO=function(U,O){this.C.add(O.layoutId)}; g.y.Ai=function(U,O){this.C.delete(O.layoutId)}; g.y.xZ=function(U,O){this.V.add(O.layoutId);for(var M=[],S=g.D(this.Se.values()),p=S.next();!p.done;p=S.next())if(p=p.value,p.trigger instanceof P8)O.layoutId===p.trigger.triggeringLayoutId&&M.push(p);else if(p.trigger instanceof Kn){var h=p.trigger;U.slotType===h.slotType&&O.layoutType===h.layoutType&&O.layoutId!==h.U&&M.push(p)}else p.trigger instanceof Iq&&(h=p.trigger,O.layoutId===h.triggeringLayoutId&&this.X.has(h.slotId)&&M.push(p));M.length>0&&Ci(this.U(),M)}; g.y.As=function(U,O,M){this.V.delete(O.layoutId);U=[];for(var S=g.D(this.Se.values()),p=S.next();!p.done;p=S.next())if(p=p.value,p.trigger instanceof Qg&&O.layoutId===p.trigger.triggeringLayoutId&&U.push(p),p.trigger instanceof nn){var h=p.trigger;O.layoutId===h.triggeringLayoutId&&h.U.includes(M)&&U.push(p)}U.length>0&&Ci(this.U(),U)}; g.y.cN=function(){}; g.y.Jo=function(){this.X.clear()}; g.y.UC=function(){};g.c(ZD,g.C);ZD.prototype.Bb=function(U,O,M,S){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(O instanceof mz))throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in CloseRequestedTriggerAdapter");this.Se.set(O.triggerId,new S5(U,O,M,S))}; ZD.prototype.AU=function(U){this.Se.delete(U.triggerId)};g.c(rw,g.C);rw.prototype.Bb=function(U,O,M,S){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(O instanceof Y3||O instanceof EZ))throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Se.set(O.triggerId,new S5(U,O,M,S))}; rw.prototype.AU=function(U){this.Se.delete(U.triggerId)}; rw.prototype.Jo=function(U){for(var O=[],M=O.push,S=M.apply,p=[],h=g.D(this.Se.values()),J=h.next();!J.done;J=h.next())J=J.value,J.trigger instanceof Y3&&J.trigger.h_===U&&p.push(J);S.call(M,O,g.N(p));M=O.push;S=M.apply;p=[];h=g.D(this.Se.values());for(J=h.next();!J.done;J=h.next())J=J.value,J.trigger instanceof EZ&&J.trigger.U!==U&&p.push(J);S.call(M,O,g.N(p));O.length&&Ci(this.U(),O)}; rw.prototype.UC=function(U){for(var O=[],M=O.push,S=M.apply,p=[],h=g.D(this.Se.values()),J=h.next();!J.done;J=h.next()){J=J.value;var f=J.trigger;f instanceof EZ&&f.U===U&&p.push(J)}S.call(M,O,g.N(p));O.length&&Ci(this.U(),O)};g.c(ar,g.C);g.y=ar.prototype;g.y.Bb=function(U,O,M,S){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");var p="adtriggercuerange:"+O.triggerId;if(O instanceof iW)IWq(this,U,O,M,S,p,O.U.start,O.U.end,O.h_,O.visible);else if(O instanceof AT)IWq(this,U,O,M,S,p,0x7ffffffffffff,0x8000000000000,O.h_,O.visible);else throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in CueRangeTriggerAdapter");}; g.y.AU=function(U){var O=this.Se.get(U.triggerId);O&&this.Lr.get().removeCueRange(O.cueRangeId);this.Se.delete(U.triggerId)}; g.y.onCueRangeEnter=function(U){var O=PXw(this,U);if(O&&(O=this.Se.get(O)))if(g.a(kp(this.dG.get()),32))this.U.add(O.cueRangeId);else{var M=O==null?void 0:O.gY.trigger;if(M instanceof iW||M instanceof AT){if(YF(this.context.vA.get())){var S=O.gY.slot,p=O.gY.layout,h={};this.context.Za.ya("cre",(h.ca=O.gY.category,h.tt=M.triggerType,h.st=S.slotType,h.lt=p==null?void 0:p.layoutType,h.cid=U,h))}Ci(this.V(),[O.gY])}}}; g.y.onCueRangeExit=function(U){(U=PXw(this,U))&&(U=this.Se.get(U))&&this.U.delete(U.cueRangeId)}; g.y.ib=function(U){if(Wv(U,16)<0){U=g.D(this.U);for(var O=U.next();!O.done;O=U.next())this.onCueRangeEnter(O.value,!0);this.U.clear()}}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.xZ=function(){}; g.y.As=function(){}; g.y.cN=function(){}; g.y.iB=function(){}; g.y.onFullscreenToggled=function(){}; g.y.IA=function(){}; g.y.RF=function(){}; g.y.aF=function(){}; g.y.onVolumeChange=function(){}; g.y.ju=function(){}; g.y.YF=function(){};g.c(Ee,g.C);g.y=Ee.prototype; g.y.Bb=function(U,O,M,S){if(this.V.has(O.triggerId)||this.B.has(O.triggerId))throw new L("Tried to re-register the trigger.");U=new S5(U,O,M,S);if(U.trigger instanceof qg)this.V.set(U.trigger.triggerId,U);else if(U.trigger instanceof Cn)this.B.set(U.trigger.triggerId,U);else throw new L("Incorrect TriggerType: Tried to register trigger of type "+U.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.V.has(U.trigger.triggerId)&&U.slot.slotId===this.U&&Ci(this.X(),[U])}; g.y.AU=function(U){this.V.delete(U.triggerId);this.B.delete(U.triggerId)}; g.y.Bl=function(U){U=U.slotId;if(this.U!==U){var O=[];this.U!=null&&O.push.apply(O,g.N(nrw(this.B,this.U)));U!=null&&O.push.apply(O,g.N(nrw(this.V,U)));this.U=U;O.length&&Ci(this.X(),O)}}; g.y.fu=function(){}; g.y.u4=function(){};g.c(LH,g.C);g.y=LH.prototype;g.y.Bb=function(U,O,M,S){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(O instanceof aq))throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Se.set(O.triggerId,new S5(U,O,M,S))}; g.y.AU=function(U){this.Se.delete(U.triggerId)}; g.y.xZ=function(){}; g.y.As=function(){}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){};g.c(Vd,g.C);g.y=Vd.prototype;g.y.cN=function(U,O){for(var M=[],S=g.D(this.Se.values()),p=S.next();!p.done;p=S.next()){p=p.value;var h=p.trigger;h.opportunityType===U&&(h.associatedSlotId&&h.associatedSlotId!==O||M.push(p))}M.length&&Ci(this.U(),M)}; g.y.Bb=function(U,O,M,S){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(O instanceof E_m))throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in OpportunityEventTriggerAdapter");this.Se.set(O.triggerId,new S5(U,O,M,S))}; g.y.AU=function(U){this.Se.delete(U.triggerId)}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.xZ=function(){}; g.y.As=function(){};g.c(or,g.C);g.y=or.prototype;g.y.Bb=function(U,O,M,S){U=new S5(U,O,M,S);if(O instanceof Xn||O instanceof Zc||O instanceof uW||O instanceof Ln||O instanceof azw){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");this.Se.set(O.triggerId,U)}else throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in PrefetchTriggerAdapter");}; g.y.AU=function(U){this.Se.delete(U.triggerId)}; g.y.RK=function(U){var O=U.slotFulfillmentTriggers.find(function(M){return M instanceof Xn}); O&&kX(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",O.breakDurationMs,new Set([U.slotId]),!0)}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.xZ=function(){}; g.y.As=function(){}; g.y.cN=function(){}; g.y.hV=function(U){if(!this.U)return DY("Unexpected cue break before fetch instructions are available"),!1;this.V&&this.V.stop();this.B&&g.OM(this.B);U=(U.PJ+1)*1E3;var O=void 0;for(var M=g.D(this.Se.values()),S=M.next();!S.done;S=M.next()){var p=S.value;S=p.trigger;p=p.slot;S instanceof Xn&&S.breakDurationMs<=U&&(!O||S.breakDurationMs>O.trigger.breakDurationMs)&&(O={slot:p,trigger:S})}if(!O)return!1;U=O.trigger;O=O.slot;kX(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",U.breakDurationMs, new Set,!0);kX(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",U.breakDurationMs,new Set,!1);this.X.add(O.slotId);return!0}; g.y.sN=function(){}; g.y.Jo=function(U){this.U&&this.U.contentCpn!==U?(DY("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:U,fetchInstructionsCpn:this.U.contentCpn}),ww(this)):CXe(this)}; g.y.UC=function(U){this.U&&this.U.contentCpn!==U&&DY("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:U,fetchInstructionsCpn:this.U.contentCpn},!0);ww(this)}; g.y.lC=function(U){var O=this;if(this.U)DY("Unexpected multiple fetch instructions for the current content");else{this.U=U;U=ulw(U);this.V=new g.UM(function(){CXe(O)},U?U:6E5); this.V.start();this.B=new g.UM(function(){O.U&&(O.V&&(O.V.stop(),O.V.start()),QP4(O,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},XR4(this.U)); U=this.dG.get().getCurrentTimeSec(1,!1);for(var M=g.D(this.YI.get().Q6),S=M.next();!S.done;S=M.next())S=S.value,yg(this.Il.get(),"nocache","ct."+Date.now()+";cmt."+U+";d."+S.PJ.toFixed(3)+";tw."+(S.startSecs-U)+";cid."+S.identifier+";")}}; g.y.VP=function(){g.C.prototype.VP.call(this);ww(this)};g.c(UN,g.C);g.y=UN.prototype;g.y.Bb=function(U,O,M,S){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(O instanceof MC))throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Se.set(O.triggerId,new S5(U,O,M,S));U=this.U.has(O.triggeringLayoutId)?this.U.get(O.triggeringLayoutId):new Set;U.add(O);this.U.set(O.triggeringLayoutId,U)}; g.y.AU=function(U){this.Se.delete(U.triggerId);if(!(U instanceof MC))throw new L("Incorrect TriggerType: Tried to unregister trigger of type "+U.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var O=this.V.get(U.triggerId);O&&(O.dispose(),this.V.delete(U.triggerId));if(O=this.U.get(U.triggeringLayoutId))O.delete(U),O.size===0&&this.U.delete(U.triggeringLayoutId)}; g.y.RK=function(){}; g.y.qz=function(){}; g.y.TO=function(){}; g.y.S5=function(){}; g.y.CO=function(){}; g.y.k$=function(){}; g.y.D2=function(){}; g.y.VO=function(){}; g.y.Ai=function(){}; g.y.cN=function(){}; g.y.xZ=function(U,O){var M=this;if(this.U.has(O.layoutId)){U=this.U.get(O.layoutId);U=g.D(U);var S=U.next();for(O={};!S.done;O={NK:void 0},S=U.next())O.NK=S.value,S=new g.UM(function(p){return function(){var h=M.Se.get(p.NK.triggerId);Ci(M.B(),[h])}}(O),O.NK.durationMs),S.start(),this.V.set(O.NK.triggerId,S)}}; g.y.As=function(){};g.c(ON,g.C);ON.prototype.Bb=function(U,O,M,S){if(this.Se.has(O.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(O instanceof Rq))throw new L("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in VideoTransitionTriggerAdapter.");this.Se.set(O.triggerId,new S5(U,O,M,S))}; ON.prototype.AU=function(U){this.Se.delete(U.triggerId)};SA.prototype.SM=function(U){return U.kind==="AD_PLACEMENT_KIND_START"};g.c(JW,g.C);g.y=JW.prototype;g.y.logEvent=function(U){this.CI(U)}; g.y.Qq=function(U,O,M){this.CI(U,void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,void 0,M)}; g.y.UH=function(U,O,M,S){this.CI(U,void 0,void 0,void 0,O,M?M:void 0,void 0,void 0,O.adSlotLoggingData,M?M.adLayoutLoggingData:void 0,void 0,S)}; g.y.Y4=function(U,O,M,S){gp(this.vA.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+U,"trigger:",M,"slot:",O,"layout:",S);zk(this.U.get())&&this.CI(U,void 0,void 0,void 0,O,S?S:void 0,void 0,M,O.adSlotLoggingData,S?S.adLayoutLoggingData:void 0)}; g.y.h8=function(U,O,M,S,p){this.CI(U,O,M,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,p)}; g.y.C0=function(U,O,M,S){this.CI("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,M,S,void 0,void 0,M.adSlotLoggingData,S?S.adLayoutLoggingData:void 0,{errorType:U,errorMessage:O})}; g.y.CI=function(U,O,M,S,p,h,J,f,F,l,G,T){var e=this;T=T===void 0?0:T;gp(this.vA.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+U,"slot:",p,"layout:",h,"ping:",J,"Opportunity:",{opportunityType:O,associatedSlotId:M,sYc:S,l6l:f,adSlotLoggingData:F,adLayoutLoggingData:l});try{var H=function(){if(!e.vA.get().S.J().T("html5_disable_client_tmp_logs")&&U!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){U||DY("Empty PACF event type",p,h);var z=zk(e.U.get()),W={eventType:U,eventOrder:++e.eventCount},v={}; p&&(v.slotData=HF(z,p));h&&(v.layoutData=NzW(z,h));J&&(v.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:J.U.serializedAdPingMetadata,pingIndex:J.index});f&&(v.triggerData=en(f.trigger,f.category));O&&(v.opportunityData=v_q(z,O,M,S));z={organicPlaybackContext:{contentCpn:N6(e.qL.get(),1).clientPlaybackNonce}};z.organicPlaybackContext.isLivePlayback=N6(e.qL.get(),1).KE;var x;z.organicPlaybackContext.isMdxPlayback=(x=N6(e.qL.get(),1))==null?void 0:x.isMdxPlayback; var t;if((t=N6(e.qL.get(),1))==null?0:t.daiEnabled)z.organicPlaybackContext.isDaiContent=!0;var m;if(x=(m=N6(e.qL.get(),2))==null?void 0:m.clientPlaybackNonce)z.adVideoPlaybackContext={adVideoCpn:x};z&&(v.externalContext=z);W.adClientData=v;F&&(W.serializedSlotAdServingData=F.serializedSlotAdServingDataEntry);l&&(W.serializedAdServingData=l.serializedAdServingDataEntry);G&&(W.errorInfo=G);g.HX("adsClientStateChange",{adsClientEvent:W})}}; T&&T>0?g.hx(g.yF(),function(){return H()},T):H()}catch(z){gp(this.vA.get(),"html5_log_pacf_logging_errors")&&g.hx(g.yF(),function(){DY(z instanceof Error?z:String(z),p,h,{pacf_message:"exception during pacf logging"})})}};var zZD=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.c(y2,JW);g.y=y2.prototype; g.y.Qq=function(U,O,M){JW.prototype.Qq.call(this,U,O,M);YF(this.vA.get())&&(M={},this.context.Za.ya("pacf",(M.et=U,M.st=O.slotType,M.si=O.slotId,M)))}; g.y.UH=function(U,O,M,S){var p=zZD.has(U);JW.prototype.UH.call(this,U,O,M,S);YF(this.vA.get(),p)&&(S={},this.context.Za.ya("pacf",(S.et=U,S.st=O.slotType,S.si=O.slotId,S.lt=M==null?void 0:M.layoutType,S.li=M==null?void 0:M.layoutId,S.p_ac=M==null?void 0:M.layoutId,S)))}; g.y.h8=function(U,O,M,S,p){JW.prototype.h8.call(this,U,O,M,S,p);YF(this.vA.get())&&(M={},this.context.Za.ya("pacf",(M.et=U,M.ot=O,M.ss=S==null?void 0:S.length,M)))}; g.y.Y4=function(U,O,M,S){JW.prototype.Y4.call(this,U,O,M,S);if(YF(this.vA.get())){var p={};this.context.Za.ya("pacf",(p.et=U,p.tt=M.trigger.triggerType,p.tc=M.category,p.st=O.slotType,p.si=O.slotId,p.lt=S==null?void 0:S.layoutType,p.li=S==null?void 0:S.layoutId,p.p_ac=S==null?void 0:S.layoutId,p))}}; g.y.C0=function(U,O,M,S){JW.prototype.C0.call(this,U,O,M,S);if(YF(this.vA.get(),!0)){var p={};this.context.Za.ya("perror",(p.ert=U,p.erm=O,p.st=M.slotType,p.si=M.slotId,p.lt=S==null?void 0:S.layoutType,p.li=S==null?void 0:S.layoutId,p.p_ac=S==null?void 0:S.layoutId,p))}}; g.y.CI=function(U,O,M,S,p,h,J,f,F,l,G){if(g.PF(this.vA.get().S.J())){var T=this.vA.get();T=g.DF(T.S.J().experiments,"H5_async_logging_delay_ms")}else T=void 0;JW.prototype.CI.call(this,U,O,M,S,p,h,J,f,F,l,G,T)};f6.prototype.clear=function(){this.U.clear()};GB.prototype.resolve=function(U){FF(this,U)}; GB.prototype.reject=function(U){lN(this,U)}; GB.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; GB.prototype.wait=function(){var U=this;return function M(){return lq7(M,function(S){if(S.U==1)return g.N1(S,2),g.Y(S,{bK:U},4);if(S.U!=2)return S.return(S.V);g.xe(S);return g.Rw(S,0)})}()}; var eFm=EV(function(U){return $D(U)?U instanceof GB:!1});Object.freeze({C5G:function(U){var O=SqJ(U);return D1(Mne(O,function(M){return O[M].currentState==="fail"}),function(M){return Number.isNaN(M)?O.map(function(S){return S.state().result}):O[M]})}, GrQ:function(U){var O=SqJ(U);return D1(Mne(O),function(){return O.map(function(M){return M.state()})})}});var NG=window.J6G||"es-419";bN.prototype.by=function(U){this.client=U}; bN.prototype.U=function(){this.clear();this.csn=g.n5()}; bN.prototype.clear=function(){this.B.clear();this.V.clear();this.X.clear();this.csn=null};tW.prototype.by=function(U){g.p4(Ry().by).bind(Ry())(U)}; tW.prototype.clear=function(){g.p4(Ry().clear).bind(Ry())()};g.y=YD.prototype;g.y.by=function(U){this.client=U}; g.y.Jh=function(U,O){var M=this;O=O===void 0?{}:O;g.p4(function(){var S,p,h,J=((S=g.q(U==null?void 0:U.commandMetadata,g.eN))==null?void 0:S.rootVe)||((p=g.q(U==null?void 0:U.commandMetadata,PHD))==null?void 0:(h=p.screenVisualElement)==null?void 0:h.uiType);if(J){S=g.q(U==null?void 0:U.commandMetadata,Ocl);if(S==null?0:S.parentTrackingParams){var f=g.At(S.parentTrackingParams);if(S.parentCsn)var F=S.parentCsn}else O.clickedVisualElement?f=O.clickedVisualElement:U.clickTrackingParams&&(f=g.At(U.clickTrackingParams)); a:{S=g.q(U,g.pe);p=g.q(U,E$X);if(S){if(p=hN7(S,"VIDEO")){S={token:p,videoId:S.videoId};break a}}else if(p&&(S=hN7(p,"PLAYLIST"))){S={token:S,playlistId:p.playlistId};break a}S=void 0}O=Object.assign({},{cttAuthInfo:S,parentCsn:F},O);if(g.R0("expectation_logging")){var l;O.loggingExpectations=((l=g.q(U==null?void 0:U.commandMetadata,PHD))==null?void 0:l.loggingExpectations)||void 0}AW(M,J,f,O)}else g.rz(new g.sT("Error: Trying to create a new screen without a rootVeType",U))})()}; g.y.clickCommand=function(U,O,M){U=U.clickTrackingParams;M=M===void 0?0:M;U?(M=g.n5(M===void 0?0:M))?(pXW(this.client,M,g.At(U),O),O=!0):O=!1:O=!1;return O}; g.y.stateChanged=function(U,O,M){this.visualElementStateChanged(g.At(U),O,M===void 0?0:M)}; g.y.visualElementStateChanged=function(U,O,M){M=M===void 0?0:M;M===0&&this.V.has(M)?this.Y.push([U,O]):lFi(this,U,O,M)};Q2.prototype.fetch=function(U,O,M){var S=this,p=TLw(U,O,M);return new Promise(function(h,J){function f(){if(M==null?0:M.oZ)try{var l=S.handleResponse(U,p.status,p.response,M);h(l)}catch(G){J(G)}else h(S.handleResponse(U,p.status,p.response,M))} p.onerror=f;p.onload=f;var F;p.send((F=O.body)!=null?F:null)})}; Q2.prototype.handleResponse=function(U,O,M,S){M=M.replace(")]}'","");try{var p=JSON.parse(M)}catch(h){g.rz(new g.sT("JSON parsing failed after XHR fetch",U,O,M));if((S==null?0:S.oZ)&&M)throw new g.lG(1,"JSON parsing failed after XHR fetch");p={}}O!==200&&(g.rz(new g.sT("XHR API fetch failed",U,O,M)),p=Object.assign({},p,{errorMetadata:{status:O}}));return p};C6.getInstance=function(){var U=g.K7("ytglobal.storage_");U||(U=new C6,g.Zq("ytglobal.storage_",U));return U}; C6.prototype.estimate=function(){var U,O,M;return g.A(function(S){U=navigator;return((O=U.storage)==null?0:O.estimate)?S.return(U.storage.estimate()):((M=U.webkitTemporaryStorage)==null?0:M.queryUsageAndQuota)?S.return(jLi()):S.return()})}; g.Zq("ytglobal.storageClass_",C6);js.prototype.wc=function(U){this.handleError(U)}; js.prototype.logEvent=function(U,O){switch(U){case "IDB_DATA_CORRUPTED":g.R0("idb_data_corrupted_killswitch")||this.U("idbDataCorrupted",O);break;case "IDB_UNEXPECTEDLY_CLOSED":this.U("idbUnexpectedlyClosed",O);break;case "IS_SUPPORTED_COMPLETED":g.R0("idb_is_supported_completed_killswitch")||this.U("idbIsSupportedCompleted",O);break;case "QUOTA_EXCEEDED":Hiw(this,O);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=.1&&this.U("idbTransactionEnded",O);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":U= Object.assign({},O,{hasWindowUnloaded:this.V}),this.U("idbTransactionAborted",U)}};var Z6={},shg=g.fA("yt-player-local-media",{LI:(Z6.index={cO:2},Z6.media={cO:2},Z6.captions={cO:5},Z6),shared:!1,upgrade:function(U,O){O(2)&&(g.CM(U,"index"),g.CM(U,"media"));O(5)&&g.CM(U,"captions");O(6)&&(Xo(U,"metadata"),Xo(U,"playerdata"))}, version:5});var cdQ={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},Kq;a:{var r7=g.YE();r7=r7.toLowerCase();if(g.Bq(r7,"android")){var DsD=r7.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(DsD){var dsD=parseFloat(DsD[1]);if(dsD<100){Kq=dsD;break a}}var W8J=r7.match("("+Object.keys(cdQ).join("|")+")");Kq=W8J?cdQ[W8J[0]]:0}else Kq=void 0}var XB=Kq,CL=XB>=0;var VW5=window;var zNy=xq(function(){var U,O;return(O=(U=window).matchMedia)==null?void 0:O.call(U,"(prefers-reduced-motion: reduce)").matches});var uN;g.XF=new CQ;uN=0;var qG={e2:function(U,O){U.splice(0,O)}, MN:function(U){U.reverse()}, Zr:function(U,O){var M=U[0];U[0]=U[O%U.length];U[O%U.length]=M}};var yM4=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var Sf=xMm()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Mp?!0:!1;var Uge={W0Q:"adunit",lFP:"detailpage",k4y:"editpage",qUg:"embedded",XDL:"leanback",dUG:"previewpage",Kc0:"profilepage",sR:"unplugged",ucl:"playlistoverview",n_P:"sponsorshipsoffer",aKc:"shortspage",n2A:"handlesclaiming",TOA:"immersivelivepage",nVG:"creatormusic",kRd:"immersivelivepreviewpage",jLP:"admintoolyurt",wCZ:"shortsaudiopivot",UhP:"consumption"};var bim=2592E3;var a2,NHJ,d6;a2={};g.oy=(a2.STOP_EVENT_PROPAGATION="html5-stop-propagation",a2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",a2.IV_DRAWER_OPEN="ytp-iv-drawer-open",a2.MAIN_VIDEO="html5-main-video",a2.VIDEO_CONTAINER="html5-video-container",a2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",a2.HOUSE_BRAND="house-brand",a2);NHJ={};d6=(NHJ.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",NHJ.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",NHJ);var nG4={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var ucw={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},q7y={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"},p95={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var DCe={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Jc.prototype.getLanguageInfo=function(){return this.ZN}; g.Jc.prototype.getXtags=function(){if(!this.xtags){var U=this.id.split(";");U.length>1&&(this.xtags=U[1])}return this.xtags}; g.Jc.prototype.toString=function(){return this.ZN.name}; g.Jc.prototype.getLanguageInfo=g.Jc.prototype.getLanguageInfo;yT.prototype.KW=function(U){return this.V===U.V&&this.U===U.U&&this.B===U.B&&this.reason===U.reason&&(!Fr||this.a_===U.a_)}; yT.prototype.isLocked=function(){return this.B&&!!this.V&&this.V===this.U}; yT.prototype.compose=function(U){if(U.B&&lJ(U))return VK;if(U.B||lJ(this))return U;if(this.B||lJ(U))return this;var O=this.V&&U.V?Math.max(this.V,U.V):this.V||U.V,M=this.U&&U.U?Math.min(this.U,U.U):this.U||U.U;O=Math.min(O,M);var S=0;Fr&&(S=this.a_!==0&&U.a_!==0?Math.min(this.a_,U.a_):this.a_===0?U.a_:this.a_);return Fr&&O===this.V&&M===this.U&&S===this.a_||!Fr&&O===this.V&&M===this.U?this:Fr?new yT(O,M,!1,M===this.U&&S===this.a_?this.reason:U.reason,S):new yT(O,M,!1,M===this.U?this.reason:U.reason)}; yT.prototype.X=function(U){return!U.video||Fr&&this.a_!==0&&this.a_=0}; g.y.oY=function(){var U=this.segments[this.segments.length-1];return U?U.endTime:NaN}; g.y.GZ=function(){return this.segments[0].startTime}; g.y.JH=function(){return this.segments.length}; g.y.WD=function(){return 0}; g.y.Eg=function(U){return(U=this.Gt(U))?U.Sc:-1}; g.y.An=function(U){return(U=this.ZO(U))?U.sourceURL:""}; g.y.getStartTime=function(U){return(U=this.ZO(U))?U.startTime:0}; g.y.Nf=function(U){return this.getStartTime(U)+this.getDuration(U)}; g.y.f7=M1(1);g.y.isLoaded=function(){return this.segments.length>0}; g.y.ZO=function(U){if(this.U&&this.U.Sc===U)return this.U;U=g.ft(this.segments,new nS(U,0,0,0,""),function(O,M){return O.Sc-M.Sc}); return this.U=U>=0?this.segments[U]:null}; g.y.Gt=function(U){if(this.U&&this.U.startTime<=U&&U=0?this.segments[U]:this.segments[Math.max(0,-U-2)]}; g.y.append=function(U){if(U.length)if(U=g.M2(U),this.segments.length){var O=this.segments.length?g.E4(this.segments).endTime:0,M=U[0].Sc-this.zZ();M>1&&kym(this.segments);for(M=M>0?0:-M+1;MU.Sc&&this.index.wB()<=U.Sc+1}; g.y.update=function(U,O,M){this.index.append(U);eDy(this.index,M);U=this.index;U.V=O;U.B="update"}; g.y.Sv=function(){return this.Sl()?!0:AC.prototype.Sv.call(this)}; g.y.Dx=function(U,O){var M=this.index.An(U),S=this.index.getStartTime(U),p=this.index.getDuration(U),h;O?p=h=0:h=this.info.a_>0?this.info.a_*p:1E3;return new r2([new C9(3,this,void 0,"liveCreateRequestInfoForSegment",U,S,p,0,h,!O)],M)}; g.y.tj=function(){return this.Sl()?0:this.initRange.length}; g.y.Xx=function(){return!1};w2.prototype.update=function(U){var O=void 0;this.V&&(O=this.V);var M=new w2,S=Array.from(U.getElementsByTagName("S"));if(S.length){var p=+of(U,"timescale")||1,h=(+S[0].getAttribute("t")||0)/p,J=+of(U,"startNumber")||0;M.X=h;var f=O?O.startSecs+O.PJ:0,F=Date.parse(ftg(of(U,"yt:segmentIngestTime")))/1E3;M.G=U.parentElement.tagName==="SegmentTemplate";M.G&&(M.D=of(U,"media"));U=O?J-O.Sc:1;M.C=U>0?0:-U+1;U=g.D(S);for(S=U.next();!S.done;S=U.next()){S=S.value;for(var l=+S.getAttribute("d")/p,G=(+S.getAttribute("yt:sid")|| 0)/p,T=+S.getAttribute("r")||0,e=0;e<=T;e++)if(O&&J<=O.Sc)J++;else{var H=new JOw(J,f,l,F+G,h);M.U.push(H);var z=S;var W=p,v=H.startSecs;H=z.getAttribute("yt:cuepointTimeOffset");var x=z.getAttribute("yt:cuepointDuration");if(H&&x){H=Number(H);v=-H/W+v;W=Number(x)/W;x=z.getAttribute("yt:cuepointContext")||null;var t=z.getAttribute("yt:cuepointIdentifier")||"";z=z.getAttribute("yt:cuepointEvent")||"";z=new av(v,W,x,t,BHC[z]||"unknown",H)}else z=null;z&&M.B.push(z);J++;f+=l;h+=l;F+=l+G}}M.U.length&& (M.V=g.E4(M.U))}this.C=M.C;this.V=M.V||this.V;g.SS(this.U,M.U);g.SS(this.B,M.B);this.G=M.G;this.D=M.D;this.X===-1&&(this.X=M.getStreamTimeOffset())}; w2.prototype.getStreamTimeOffset=function(){return this.X===-1?0:this.X};g.c(Oj,g.QT);g.y=Oj.prototype;g.y.nH=function(){return this.TJ}; g.y.gP=function(U,O){U=sj(this,U);return U>=0&&(O||!this.segments[U].pending)}; g.y.wB=function(){return this.i7?this.segments.length?this.Gt(this.GZ()).Sc:-1:g.QT.prototype.wB.call(this)}; g.y.GZ=function(){if(this.Dh)return 0;if(!this.i7)return g.QT.prototype.GZ.call(this);if(!this.segments.length)return 0;var U=Math.max(g.E4(this.segments).endTime-this.wg,0);return this.QM>0&&this.Gt(U).Sc0)return this.pJ/1E3;if(!this.segments.length)return g.QT.prototype.oY.call(this);var U=this.zZ();if(!this.i7||U<=this.segments[this.segments.length-1].Sc)U=this.segments[this.segments.length-1];else{var O=this.segments[this.segments.length-1];U=new nS(U,Math.max(0,O.startTime-(O.Sc-U)*this.TJ),this.TJ,0,"sq/"+U,void 0,void 0,!0)}return this.Dh?Math.min(this.wg,U.endTime):U.endTime}; g.y.JH=function(){return this.i7?this.segments.length?this.zZ()-this.wB()+1:0:g.QT.prototype.JH.call(this)}; g.y.zZ=function(){var U=Math.min(this.d3,Math.max(g.QT.prototype.zZ.call(this),this.mG)),O=this.wg*1E3;O=this.pJ>0&&this.pJ0&&this.mG>0&&!O&&(O=this.Gt(this.wg))&&(U=Math.min(O.Sc-1,U));return U}; g.y.ye=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.y.c8=function(U){var O=sj(this,U.Sc);if(O>=0)this.segments[O]=U;else if(this.segments.splice(-(O+1),0,U),this.ix&&U.Sc%(300/this.TJ)===0){var M=this.segments[0].Sc,S=Math.floor(this.ix/this.TJ);U=U.Sc-S;O=-(O+1)-S;O>0&&U>M&&(this.segments=this.segments.slice(O))}}; g.y.xk=function(){return this.mG}; g.y.hg=function(U){return Uj?!this.V&&U>=0&&this.zZ()<=U:g.QT.prototype.hg.call(this,U)}; g.y.Gt=function(U){if(!this.i7)return g.QT.prototype.Gt.call(this,U);if(!this.segments.length)return null;var O=this.segments[this.segments.length-1];if(U=O.endTime)O=O.Sc+Math.floor((U-O.endTime)/this.TJ+1);else{O=FN(this.segments,function(S){return U=S.endTime?1:0}); if(O>=0)return this.segments[O];var M=-(O+1);O=this.segments[M-1];M=this.segments[M];O=Math.floor((U-O.endTime)/((M.startTime-O.endTime)/(M.Sc-O.Sc-1))+1)+O.Sc}return this.ZO(O)}; g.y.ZO=function(U){if(!this.i7)return g.QT.prototype.ZO.call(this,U);if(!this.segments.length)return null;var O=sj(this,U);if(O>=0)return this.segments[O];var M=-(O+1);O=this.TJ;if(M===0)var S=Math.max(0,this.segments[0].startTime-(this.segments[0].Sc-U)*O);else M===this.segments.length?(S=this.segments[this.segments.length-1],S=S.endTime+(U-S.Sc-1)*O):(S=this.segments[M-1],O=this.segments[M],O=(O.startTime-S.endTime)/(O.Sc-S.Sc-1),S=S.endTime+(U-S.Sc-1)*O);return new nS(U,S,O,0,"sq/"+U,void 0,void 0, !0)}; var Uj=!1;g.c(gs,Vb);g.y=gs.prototype;g.y.Ae=function(){return!0}; g.y.Sv=function(){return!0}; g.y.TP=function(U){return this.Tl()&&U.B&&!U.G||!U.U.index.hg(U.Sc)}; g.y.UG=function(){}; g.y.v3=function(U,O){return typeof U!=="number"||isFinite(U)?Vb.prototype.v3.call(this,U,O===void 0?!1:O):new r2([new C9(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.xV,void 0,this.xV*this.info.a_)],"")}; g.y.Dx=function(U,O){var M=M===void 0?!1:M;if(this.index.gP(U))return Vb.prototype.Dx.call(this,U,O);var S=this.index.getStartTime(U),p=Math.round(this.xV*this.info.a_),h=this.xV;O&&(h=p=0);return new r2([new C9(M?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",U,S,h,void 0,p,!O)],U>=0?"sq/"+U:"")};g.c(M_,AC);g.y=M_.prototype;g.y.aV=function(){return!1}; g.y.Tl=function(){return!1}; g.y.Ae=function(){return!1}; g.y.UG=function(){return new r2([new C9(1,this,void 0,"otfInit")],this.G)}; g.y.Dr=function(){return null}; g.y.xJ=function(U){this.TP(U);return HOW(this,i6(U),!1)}; g.y.v3=function(U,O){O=O===void 0?!1:O;U=this.index.Eg(U);O&&(U=Math.min(this.index.zZ(),U+1));return HOW(this,U,!0)}; g.y.Hz=function(U){U.info.type===1&&(this.U||(this.U=mv(U.U)),U.V&&U.V.uri==="http://youtube.com/streaming/otf/durations/112015"&&z9e(this,U.V))}; g.y.TP=function(U){return U.B===0?!0:this.index.zZ()>U.Sc&&this.index.wB()<=U.Sc+1}; g.y.tj=function(){return 0}; g.y.Xx=function(){return!1};Sx.prototype.AR=function(){return this.U.AR()};g.y=g.lS.prototype;g.y.gP=function(U){return U<=this.zZ()}; g.y.WD=function(U){return this.offsets[U]}; g.y.getStartTime=function(U){return this.startTicks[U]/this.U}; g.y.Nf=function(U){return this.getStartTime(U)+this.getDuration(U)}; g.y.f7=M1(0);g.y.hR=function(){return NaN}; g.y.getDuration=function(U){U=this.IR(U);return U>=0?U/this.U:-1}; g.y.IR=function(U){return U+1=0}; g.y.oY=function(){return this.V?this.startTicks[this.count]/this.U:NaN}; g.y.GZ=function(){return 0}; g.y.JH=function(){return this.count}; g.y.An=function(){return""}; g.y.Eg=function(U){U=g.ft(this.startTicks.subarray(0,this.count),U*this.U);return U>=0?U:Math.max(0,-U-2)}; g.y.isLoaded=function(){return this.zZ()>=0}; g.y.HP=function(U,O){if(U>=this.zZ())return 0;var M=0;for(O=this.getStartTime(U)+O;Uthis.getStartTime(U);U++)M=Math.max(M,bOw(this,U)/this.getDuration(U));return M}; g.y.resize=function(U){U+=2;var O=this.offsets;this.offsets=new Float64Array(U+1);var M=this.startTicks;this.startTicks=new Float64Array(U+1);for(U=0;U0&&U&&(M=M.range.end+1,U=Math.min(U,this.info.contentLength-M),U>0&&S.push(new C9(4,this,n9(M,U),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,O)));return new r2(S)}; g.y.Hz=function(U){if(U.info.type===1){if(this.U)return;this.U=mv(U.U)}else if(U.info.type===2){if(this.G||this.index.zZ()>=0)return;if(g.Sh(this.info)){var O=this.index,M=U.AR();U=U.info.range.start;var S=g.kc(M,0,1936286840);M=RDi(S);O.U=M.timescale;var p=M.cg;O.offsets[0]=M.AM+U+S.size;O.startTicks[0]=p;O.V=!0;U=M.TF.length;for(S=0;S0&&U===h[0].tQ)for(U=0;U=O+M)break}p.length||g.K5(new g.sT("b189619593",""+U,""+O,""+M));return new r2(p)}; g.y.mJ=function(U){for(var O=this.D_(U.info),M=U.info.range.start+U.info.V,S=[],p=0;p=this.index.WD(M+1);)M++;return this.BL(M,O,U.B).xp}; g.y.TP=function(U){U.Lm();return this.Sv()?!0:U.range.end+1this.info.contentLength&&(O=new If(O.start,this.info.contentLength-1)),new r2([new C9(4,U.U,O,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,U.clipId)]);U.type===4&&(U=this.D_(U),U=U[U.length-1]);var M=0,S=U.range.start+U.V+U.B;U.type===3&&(U.Lm(),M=U.Sc,S===U.range.end+1&&(M+=1));return this.BL(M,S,O)}; g.y.xJ=function(){return null}; g.y.v3=function(U,O,M){O=O===void 0?!1:O;U=this.index.Eg(U);O&&(U=Math.min(this.index.zZ(),U+1));return this.BL(U,this.index.WD(U),0,M)}; g.y.aV=function(){return!0}; g.y.Tl=function(){return!0}; g.y.Ae=function(){return!1}; g.y.tj=function(){return this.indexRange.length+this.initRange.length}; g.y.Xx=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Lq={},rOe=(Lq.COLOR_PRIMARIES_BT709="bt709",Lq.COLOR_PRIMARIES_BT2020="bt2020",Lq.COLOR_PRIMARIES_UNKNOWN=null,Lq.COLOR_PRIMARIES_UNSPECIFIED=null,Lq),VY={},thJ=(VY.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",VY.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",VY.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",VY.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",VY.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,VY.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,VY);g.Tv.prototype.getName=function(){return this.name}; g.Tv.prototype.getId=function(){return this.id}; g.Tv.prototype.getIsDefault=function(){return this.isDefault}; g.Tv.prototype.toString=function(){return this.name}; g.Tv.prototype.getName=g.Tv.prototype.getName;g.Tv.prototype.getId=g.Tv.prototype.getId;g.Tv.prototype.getIsDefault=g.Tv.prototype.getIsDefault;var It1=/action_display_post/;var PE7,H3,zv;g.c(c3,g.H_);g.y=c3.prototype;g.y.isLoading=function(){return this.state===1}; g.y.xT=function(){return this.state===3}; g.y.FDY=function(U){var O=U.getElementsByTagName("Representation");if(U.getElementsByTagName("SegmentList").length>0||U.getElementsByTagName("SegmentTemplate").length>0){this.KE=this.V=!0;this.timeline||(this.timeline=new lty);jme(this.timeline,U);this.publish("refresh");for(U=0;U=0?G=P$(e):T=T+"?range="+e}F.call(f,new nS(l.Sc,l.startSecs,l.PJ,l.U,T,G,l.V))}S=p}M.update(S,this.isLive,this.Yy)}e97(this.timeline);return!0}this.duration=yOg(of(U,"mediaPresentationDuration")); a:{for(U=0;U0))return this.S9()-U}}U=this.U;for(var O in U){var M=U[O].index;if(M.isLoaded()&&!fO(U[O].info.mimeType))return M.GZ()}return 0}; g.y.getStreamTimeOffset=function(){return this.D}; g.y.hR=function(U){for(var O in this.U){var M=this.U[O].index;if(M.isLoaded()){var S=M.Eg(U),p=M.hR(S);if(p)return p+U-M.getStartTime(S)}}return NaN}; var Ib=null,xsC,P3=!((xsC=navigator.mediaCapabilities)==null||!xsC.decodingInfo),koW={commentary:1,alternate:2,dub:3,main:4};var FI=new Set,nu=new Map;Xg.prototype.clone=function(U){return new Xg(this.flavor,U,this.V,this.experiments)}; Xg.prototype.aT=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Xg.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 bXh={},Vt=(bXh.playready=["com.youtube.playready","com.microsoft.playready"],bXh.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],bXh),o2={},R2w=(o2.widevine="DRM_SYSTEM_WIDEVINE",o2.fairplay="DRM_SYSTEM_FAIRPLAY",o2.playready="DRM_SYSTEM_PLAYREADY",o2),kT={},RZC=(kT.widevine=1,kT.fairplay=2,kT.playready=3,kT);kb.prototype.Mw=function(U,O){O=O===void 0?1:O;this.JK+=O;this.V+=U;U/=O;for(var M=0;M0)S+="."+ob[p].toFixed(0)+"_"+M.U[p].toFixed(0);else break;M=S}M&&(U[O]=M)}this.U=new llW;return U}; g.y.toString=function(){return""};g.y=HDe.prototype;g.y.isActive=function(){return!1}; g.y.Er=function(){}; g.y.nM=function(){}; g.y.O0=function(U,O){return O}; g.y.y6=function(){}; g.y.Ij=function(){}; g.y.XO=function(U,O){return O()}; g.y.A4=function(){return{}}; g.y.toString=function(){return""};var w7,tGh,YoJ,msq,AdD,Iol,UP,Dd,FQ,L54,gv;w7=new HDe;tGh=!!+UI("html5_enable_profiler");YoJ=!!+UI("html5_onesie_enable_profiler");msq=!!+UI("html5_offline_encryption_enable_profiler");AdD=!!+UI("html5_performance_impact_profiling_timer_ms");Iol=!!+UI("html5_drm_enable_profiler");UP=tGh||YoJ||msq||AdD||Iol?new $6e:w7;g.AY=tGh?UP:w7;Dd=YoJ?UP:w7;FQ=msq?UP:w7;L54=AdD?UP:w7;gv=Iol?UP:w7;var sR;g.c(UR,g.C); UR.prototype.initialize=function(U,O){for(var M=this,S=g.D(Object.keys(U)),p=S.next();!p.done;p=S.next()){p=g.D(U[p.value]);for(var h=p.next();!h.done;h=p.next())if(h=h.value,h.IW)for(var J=g.D(Object.keys(h.IW)),f=J.next();!f.done;f=J.next()){var F=f.value;f=F;F=Vt[F];!F&&this.T("html5_enable_vp9_fairplay")&&f==="fairplay"&&(F=["com.youtube.fairplay.sbdl"]);if(F){F=g.D(F);for(var l=F.next();!l.done;l=F.next())l=l.value,this.B[l]=this.B[l]||new Xg(f,l,h.IW[f],this.X0.experiments),this.U[f]=this.U[f]|| {},this.U[f][h.mimeType]=!0}}}Od()&&(this.B["com.youtube.fairplay"]=new Xg("fairplay","com.youtube.fairplay","",this.X0.experiments),this.T("html5_enable_vp9_fairplay")||(this.U.fairplay=this.U.fairplay||{},this.U.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.U.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.V=FBm(O,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay")&&!0,this.T("html5_enable_vp9_fairplay")).filter(function(G){return!!M.B[G]})}; UR.prototype.T=function(U){return this.X0.experiments.F0(U)};var Pdq={"":"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"};vAi.prototype.T=function(U){return this.experiments.F0(U)};var sqm={RED:"red",Htc:"white"};BF7.prototype.F0=function(U){U=this.flags[U];JSON.stringify(U);return U==="true"};var RFJ=Promise.resolve(),A0i=window.queueMicrotask?window.queueMicrotask.bind(window):tz7;hG.prototype.canPlayType=function(U,O){U=U.canPlayType?U.canPlayType(O):!1;gI?U=U||ny4[O]:XB===2.2?U=U||QXL[O]:wa()&&(U=U||CdD[O]);return!!U}; hG.prototype.isTypeSupported=function(U){return this.ol?window.cast.receiver.platform.canDisplayType(U):uA(U)}; var QXL={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},CdD={"application/x-mpegURL":"maybe"},ny4={"application/x-mpegURL":"maybe"};g.c(FB,g.H_);FB.prototype.add=function(U,O){if(!this.items[U]&&(O.nZ||O.RQ||O.YC)){var M=this.items,S=O;Object.isFrozen&&!Object.isFrozen(O)&&(S=Object.create(O),Object.freeze(S));M[U]=S;this.publish("vast_info_card_add",U)}}; FB.prototype.remove=function(U){var O=this.get(U);delete this.items[U];return O}; FB.prototype.get=function(U){return this.items[U]||null}; FB.prototype.isEmpty=function(){return g.iy(this.items)};g.c(lk,g.Y5);lk.prototype.U=function(U,O){return g.Y5.prototype.U.call(this,U,O)}; lk.prototype.V=function(U,O,M){var S=this;return g.A(function(p){return p.U==1?g.Y(p,g.Y5.prototype.V.call(S,U,O,M),2):p.return(p.V)})}; g.c(G_,g.mO);G_.prototype.encrypt=function(U,O){return g.mO.prototype.encrypt.call(this,U,O)};var T_;jf.prototype.add=function(U){if(this.pos+20>this.data.length){var O=new Uint8Array(this.data.length*2);O.set(this.data);this.data=O}for(;U>31;)this.data[this.pos++]=T_[(U&31)+32],U>>=5;this.data[this.pos++]=T_[U|0]}; jf.prototype.g3=function(){return g.nN(this.data.subarray(0,this.pos))}; jf.prototype.reset=function(){this.pos=0};Hn.prototype.Wi=function(U,O){var M=Math.pow(this.alpha,U);this.U=O*(1-M)+M*this.U;this.V+=U}; Hn.prototype.aA=function(){return this.U/(1-Math.pow(this.alpha,this.V))};z_.prototype.Wi=function(U,O){for(var M=0;M<10;M++){var S=this.U[M],p=S+(M===0?U:0),h=1*Math.pow(2,M);if(p<=h)break;S=Math.min(1,(p-h*.5)/S);for(p=0;p<16;p++)h=this.values[M*16+p]*S,this.values[(M+1)*16+p]+=h,this.U[M+1]+=h,this.values[M*16+p]-=h,this.U[M]-=h}S=M=0;p=8192;O>8192&&(M=Math.ceil(Math.log(O/8192)/Math.log(2)),S=8192*Math.pow(2,M-1),p=S*2);M+2>16?this.values[15]+=U:(O=(O-S)/(p-S),this.values[M]+=U*(1-O),this.values[M+1]+=U*O);this.U[0]+=U}; z_.prototype.aA=function(){var U=U===void 0?this.V:U;var O=O===void 0?.02:O;var M=M===void 0?.98:M;for(var S=this.B,p=0;p<16;p++)S[p]=this.values[p];p=this.U[0];for(var h=1;h<11;h++){var J=this.U[h];if(J===0)break;for(var f=Math.min(1,(U-p)/J),F=0;F<16;F++)S[F]+=this.values[h*16+F]*f;p+=J*f;if(f<1)break}for(h=U=J=0;h<16;h++){f=J+S[h]/p;U+=Math.max(0,Math.min(f,M)-Math.max(J,O))*(h>0?8192*Math.pow(2,h-1):0);if(f>M)break;J=f}return U/(M-O)};cn.prototype.Wi=function(U,O){U=Math.min(this.U,Math.max(1,Math.round(U*this.resolution)));U+this.V>=this.U&&(this.B=!0);for(;U--;)this.values[this.V]=O,this.V=(this.V+1)%this.U;this.pI=!0}; cn.prototype.percentile=function(U){var O=this;if(!this.B&&this.V===0)return 0;this.pI&&(g.lH(this.G,function(M,S){return O.values[M]-O.values[S]}),this.pI=!1); return this.values[this.G[Math.round(U*((this.B?this.U:this.V)-1))]]||0}; cn.prototype.aA=function(){return this.C?(this.percentile(this.X-this.C)+this.percentile(this.X)+this.percentile(this.X+this.C))/3:this.percentile(this.X)};g.c(Db,g.C);Db.prototype.hZ=function(){var U;(U=this.TY)==null||U.start();if(RK(this)&&this.policy.Y){var O;(O=this.mj)==null||O.eM()}};al5.prototype.T=function(U){return this.experiments.F0(U)};g.c(LBm,g.C);var On7="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),h65={ltY:"caoe",uEA:"capsv",mn0:"cbrand",LWy:"cbr",Hmd:"cbrver",FWA:"cchip",w7G:"ccappver",aFY:"ccrv",zTP:"cfrmver",myn:"c",H9l:"cver",P6d:"ctheme",Lag:"cplayer",Lod:"cmodel",Wo0:"cnetwork",oLl:"cos",rKG:"cosver",sVA:"cplatform",hIg:"crqyear"};g.c(Vh,g.C);g.y=Vh.prototype;g.y.T=function(U){return this.experiments.F0(U)}; g.y.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.y.getVideoUrl=function(U,O,M,S,p,h,J){O={list:O};M&&(p?O.time_continue=M:O.t=M);M=J?"music.youtube.com":g.k0(this);p=M==="www.youtube.com";!h&&S&&p?h="https://youtu.be/"+U:g.ik(this)?(h="https://"+M+"/fire",O.v=U):(h&&p?(h=this.protocol+"://"+M+"/shorts/"+U,S&&(O.feature="share")):(h=this.protocol+"://"+M+"/watch",O.v=U),gI&&(U=Xh4())&&(O.ebc=U));return g.pj(h,O)}; g.y.getVideoEmbedCode=function(U,O,M,S){O="https://"+g.k0(this)+"/embed/"+O;S&&(O=g.pj(O,{list:S}));S=M.width;M=M.height;O=FU(O);U=FU(U!=null?U:"YouTube video player");return'')}; g.y.supportsGaplessAudio=function(){return g.XW&&!gI&&VI()>=74||g.Ej&&g.z$(68)?!0:!1}; g.y.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.HA||g.bh?!1:!0}; g.y.getPlayerType=function(){return this.U.cplayer}; g.y.PV=function(){return this.q_}; var FzW=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],p8w=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],yTe=[19];var OP={},$gw=(OP["140"]={numChannels:2},OP["141"]={numChannels:2},OP["251"]={audioSampleRate:48E3,numChannels:2},OP["774"]={audioSampleRate:48E3,numChannels:2},OP["380"]={numChannels:6},OP["328"]={numChannels:6},OP["773"]={},OP),sP={},lcW=(sP["1"]='video/mp4; codecs="av01.0.08M.08"',sP["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',sP["1e"]='video/mp4; codecs="av01.0.08M.08"',sP["9"]='video/webm; codecs="vp9"',sP["("]='video/webm; codecs="vp9"',sP["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', sP.h='video/mp4; codecs="avc1.64001e"',sP.H='video/mp4; codecs="avc1.64001e"',sP.o='audio/webm; codecs="opus"',sP.a='audio/mp4; codecs="mp4a.40.2"',sP.ah='audio/mp4; codecs="mp4a.40.2"',sP.mac3='audio/mp4; codecs="ac-3"; channels=6',sP.meac3='audio/mp4; codecs="ec-3"; channels=6',sP.i='audio/mp4; codecs="iamf.001.001.Opus"',sP),gN={},GRw=(gN["337"]={width:3840,height:2160,bitrate:3E7,fps:30},gN["336"]={width:2560,height:1440,bitrate:15E6,fps:30},gN["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, gN["702"]={width:7680,height:4320,bitrate:4E7,fps:60},gN["701"]={width:3840,height:2160,bitrate:2E7,fps:60},gN["700"]={width:2560,height:1440,bitrate:1E7,fps:60},gN["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},gN["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},gN["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},gN["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, gN["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},gN["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},gN["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},gN["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},gN["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},gN["315"]={width:3840,height:2160,bitrate:2E7,fps:60},gN["308"]={width:2560, height:1440,bitrate:1E7,fps:60},gN["303"]={width:1920,height:1080,bitrate:5E6,fps:60},gN["302"]={width:1280,height:720,bitrate:25E5,fps:60},gN["299"]={width:1920,height:1080,bitrate:75E5,fps:60},gN["298"]={width:1280,height:720,bitrate:35E5,fps:60},gN["571"]={width:7680,height:4320,bitrate:3E7,fps:60},gN["401"]={width:3840,height:2160,bitrate:15E6,fps:60},gN["400"]={width:2560,height:1440,bitrate:75E5,fps:60},gN["399"]={width:1920,height:1080,bitrate:2E6,fps:60},gN["398"]={width:1280,height:720,bitrate:1E6, fps:60},gN["397"]={width:854,height:480,bitrate:4E5,fps:30},gN["396"]={width:640,height:360,bitrate:25E4,fps:30},gN["787"]={width:1080,height:608,bitrate:2E5,fps:30},gN["788"]={width:1080,height:608,bitrate:4E5,fps:30},gN["572"]={width:7680,height:4320,bitrate:3E7,fps:60},gN["555"]={width:3840,height:2160,bitrate:15E6,fps:60},gN["554"]={width:2560,height:1440,bitrate:75E5,fps:60},gN["553"]={width:1920,height:1080,bitrate:2E6,fps:60},gN["552"]={width:1280,height:720,bitrate:1E6,fps:60},gN["551"]={width:854, height:480,bitrate:4E5,fps:30},gN["550"]={width:640,height:360,bitrate:25E4,fps:30},gN["313"]={width:3840,height:2160,bitrate:8E6,fps:30},gN["271"]={width:2560,height:1440,bitrate:4E6,fps:30},gN["248"]={width:1920,height:1080,bitrate:2E6,fps:30},gN["247"]={width:1280,height:720,bitrate:15E5,fps:30},gN["244"]={width:854,height:480,bitrate:52E4,fps:30},gN["243"]={width:640,height:360,bitrate:28E4,fps:30},gN["137"]={width:1920,height:1080,bitrate:4E6,fps:30},gN["136"]={width:1280,height:720,bitrate:3E6, fps:30},gN["135"]={width:854,height:480,bitrate:1E6,fps:30},gN["385"]={width:1920,height:1080,bitrate:6503313,fps:60},gN["376"]={width:1280,height:720,bitrate:5706960,fps:60},gN["384"]={width:1280,height:720,bitrate:3660979,fps:60},gN["225"]={width:1280,height:720,bitrate:5805E3,fps:30},gN["224"]={width:1280,height:720,bitrate:453E4,fps:30},gN["145"]={width:1280,height:720,bitrate:2682052,fps:30},gN);g.y=$M.prototype;g.y.getInfo=function(){return this.U}; g.y.g4=function(){return null}; g.y.kH=function(){var U=this.g4();return U?(U=g.Gr(U.uM),Number(U.expire)):NaN}; g.y.WI=function(){}; g.y.getHeight=function(){return this.U.video.height};HnW.prototype.build=function(){Dgw(this);var U=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],O={};a:if(this.U)var M=this.U;else{M="";for(var S=g.D(this.B),p=S.next();!p.done;p=S.next())if(p=p.value,p.ZN){if(p.ZN.getIsDefault()){M=p.ZN.getId();break a}M||(M=p.ZN.getId())}}S=g.D(this.B);for(p=S.next();!p.done;p=S.next())if(p=p.value,this.C||!p.ZN||p.ZN.getId()===M)O[p.itag]||(O[p.itag]=[]),O[p.itag].push(p);M=g.D(this.V);for(S=M.next();!S.done;S=M.next())if(S=S.value,p=O[S.U]){p=g.D(p);for(var h=p.next();!h.done;h= p.next()){var J=U,f=J.push;h=h.value;var F="#EXT-X-MEDIA:TYPE=AUDIO,",l="YES",G="audio";if(h.ZN){G=h.ZN;var T=G.getId().split(".")[0];T&&(F+='LANGUAGE="'+T+'",');(this.U?this.U===G.getId():G.getIsDefault())||(l="NO");G=G.getName()}T="";S!==null&&(T=S.itag.toString());T=jZ(this,h.url,T);F=F+('NAME="'+G+'",DEFAULT='+(l+',AUTOSELECT=YES,GROUP-ID="'))+(cTe(h,S)+'",URI="'+(T+'"'));f.call(J,F)}}M=g.D(this.G);for(S=M.next();!S.done;S=M.next())S=S.value,p=XaL,S=(J=S.ZN)?'#EXT-X-MEDIA:URI="'+jZ(this,S.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+p+'",LANGUAGE="'+J.getId()+'",NAME="'+J.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,S&&U.push(S);M=this.G.length>0?XaL:void 0;S=g.D(this.V);for(p=S.next();!p.done;p=S.next())p=p.value,f=O[p.U],J=void 0,((J=f)==null?void 0:J.length)>0&&(J=p,f=f[0],f="#EXT-X-STREAM-INF:BANDWIDTH="+(J.bitrate+f.bitrate)+',CODECS="'+(J.codecs+","+f.codecs+'",RESOLUTION=')+(J.width+"x"+J.height+',AUDIO="')+(cTe(f,J)+'",')+(M?'SUBTITLES="'+M+'",':"")+"CLOSED-CAPTIONS=NONE",J.fps>1&&(f+= ",FRAME-RATE="+J.fps),J.bq&&(f+=",VIDEO-RANGE="+J.bq),U.push(f),U.push(jZ(this,p.url,"")));return U.join("\n")}; var XaL="text";g.c(eZ,$M);eZ.prototype.kH=function(){return this.expiration}; eZ.prototype.g4=function(){if(!this.uM||this.uM.GY()){var U=this.V.build();U="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(U);this.uM=new v1(U)}return this.uM};g.c(Hb,$M);Hb.prototype.g4=function(){return new v1(this.V.kI())}; Hb.prototype.WI=function(){this.V=Iv(this.V)};g.c(z2,$M);z2.prototype.g4=function(){return new v1(this.V)};var Mr={},YZq=(Mr.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Mr.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Mr.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Mr);g.y=g.cb.prototype;g.y.getId=function(){return this.id}; g.y.getName=function(){return this.name}; g.y.isServable=function(){return this.U}; g.y.kI=function(){return this.url}; g.y.getXtags=function(){return this.xtags}; g.y.toString=function(){return this.languageCode+": "+g.DI(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.y.KW=function(U){return U?this.toString()===U.toString():!1}; g.y.cT=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var n3e={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},QqJ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},CWU=/^(\d*)_((\d*)_?(\d*))$/;var unm={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},qZ7={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var S_={},ukC=(S_.ALWAYS=1,S_.BY_REQUEST=3,S_.UNKNOWN=void 0,S_),p0={},qoE=(p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",p0);var v14; v14=function(U){for(var O=Object.keys(U),M={},S=0;SS-O?-1:U}; g.y.qa=function(){return this.V.zZ()}; g.y.Wa=function(){return this.V.wB()}; g.y.L8=function(U){this.V=U};g.c(LJ,aC);LJ.prototype.V=function(U,O){return aC.prototype.V.call(this,"$N|"+U,O)}; LJ.prototype.G=function(U,O,M){return new E3(U,O,M,this.isLive)};var viW=[],gd=new Set;g.c(g.oC,g.H_);g.y=g.oC.prototype; g.y.setData=function(U){U=U||{};var O=U.errordetail;O!=null&&(this.errorDetail=O);var M=U.errorcode;M!=null?this.errorCode=M:U.status==="fail"&&(this.errorCode="auth");var S=U.reason;S!=null&&(this.errorReason=S);var p=U.subreason;p!=null&&(this.WO=p);this.T("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=U.cpn||(this.X0.PV()?"r"+g.AE(15):g.AE(16)));this.pE=lC(this.X0.pE,U.livemonitor);Hri(this,U);var h=U.raw_player_response;if(h)this.mK=h;else{var J=U.player_response; J&&(h=JSON.parse(J))}if(this.T("html5_enable_ssap_entity_id")){var f=U.cached_load;f&&(this.v5=lC(this.v5,f));if(!this.clientPlaybackNonce){var F=U.cpn;F?(this.qA("ssei","shdc"),this.clientPlaybackNonce=F):this.clientPlaybackNonce=this.X0.PV()?"r"+g.AE(15):g.AE(16)}}h&&(this.playerResponse=h);if(this.playerResponse){var l=this.playerResponse.annotations;if(l)for(var G=g.D(l),T=G.next();!T.done;T=G.next()){var e=T.value.playerAnnotationsUrlsRenderer;if(e){e.adsOnly&&(this.MQ=!0);var H=e.loadPolicy; H&&(this.annotationsLoadPolicy=ukC[H]);var z=e.invideoUrl;z&&(this.Rl=fZ(z));break}}var W=this.playerResponse.attestation;W&&Zn1(this,W);var v=this.playerResponse.cotn;v&&(this.cotn=v);var x=this.playerResponse.heartbeatParams;if(x){Tw1(this)&&(this.lz=!0);var t=x.heartbeatToken;t&&(this.drmSessionId=x.drmSessionId||"",this.heartbeatToken=t,this.fl=Number(x.intervalMilliseconds),this.SX=Number(x.maxRetries),this.Cl=!!x.softFailOnError,this.Iw=!!x.useInnertubeHeartbeatsForDrm,this.NT=!0);this.heartbeatServerData= x.heartbeatServerData;var m;this.dO=!((m=x.heartbeatAttestationConfig)==null||!m.requiresAttestation)}var P=this.playerResponse.messages;P&&E37(this,P);var u=this.playerResponse.overlay;if(u){var w=u.playerControlsOverlayRenderer;if(w)if(VH5(this,w.controlBgHtml),w.mutedAutoplay){var E=g.q(w.mutedAutoplay,o$D);if(E&&E.endScreen){var Sm=g.q(E.endScreen,k$l);Sm&&Sm.text&&(this.lk=g.B_(Sm.text))}}else this.mutedAutoplay=!1}var JU=this.playerResponse.playabilityStatus;if(JU){var Uw=JU.backgroundability; Uw&&Uw.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Z,k;if((Z=JU.offlineability)==null?0:(k=Z.offlineabilityRenderer)==null?0:k.offlineable)this.offlineable=!0;var d=JU.contextParams;d&&(this.contextParams=d);var K=JU.pictureInPicture;K&&K.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);JU.playableInEmbed&&(this.allowEmbed=!0);var i5=JU.ypcClickwrap;if(i5){var vq=i5.playerLegacyDesktopYpcClickwrapRenderer,Hq=i5.ypcRentalActivationRenderer;if(vq)this.Ho=vq.durationMessage|| "",this.QO=!0;else if(Hq){var b5=Hq.durationMessage;this.Ho=b5?g.B_(b5):"";this.QO=!0}}var s4=JU.errorScreen;if(s4){if(s4.playerLegacyDesktopYpcTrailerRenderer){var yD=s4.playerLegacyDesktopYpcTrailerRenderer;this.xY=yD.trailerVideoId||"";var zl=s4.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var B=zl&&zl.ypcTrailerRenderer}else if(s4.playerLegacyDesktopYpcOfferRenderer)yD=s4.playerLegacyDesktopYpcOfferRenderer;else if(s4.ypcTrailerRenderer){B=s4.ypcTrailerRenderer;var b=B.fullVideoMessage;this.hB= b?g.B_(b):"";var R,I;this.xY=((R=g.q(B,wpv))==null?void 0:(I=R.videoDetails)==null?void 0:I.videoId)||""}yD&&(this.F$=yD.itemTitle||"",yD.itemUrl&&(this.f$=yD.itemUrl),yD.itemBuyUrl&&(this.tN=yD.itemBuyUrl),this.un=yD.itemThumbnail||"",this.K$=yD.offerHeadline||"",this.ZK=yD.offerDescription||"",this.L9=yD.offerId||"",this.dQ=yD.offerButtonText||"",this.il=yD.offerButtonFormattedText||null,this.zv=yD.overlayDurationMsec||NaN,this.hB=yD.fullVideoMessage||"",this.B7=!0);if(B){var n=g.q(B,wpv);if(n)this.GD= {raw_player_response:n};else{var Ow=g.q(B,fPX);this.GD=Ow?F2(Ow):null}this.B7=!0}}}var p7=this.playerResponse.playbackTracking;if(p7){var hU=U,Q=Bb(p7.googleRemarketingUrl);Q&&(this.googleRemarketingUrl=Q);var Wg=Bb(p7.youtubeRemarketingUrl);Wg&&(this.youtubeRemarketingUrl=Wg);var yi={},f7=Bb(p7.ptrackingUrl);if(f7){var Iw=xM(f7),ke=Iw.oid;ke&&(this.dl=ke);var qy=Iw.pltype;qy&&(this.OI=qy);var wJ=Iw.ptchn;wJ&&(this.bk=wJ);var Ew=Iw.ptk;Ew&&(this.jk=encodeURIComponent(Ew));var Lt=Iw.m;Lt&&(this.Kq= Lt)}var iU=Bb(p7.qoeUrl);if(iU){for(var HV=g.Gr(iU),EG=g.D(Object.keys(HV)),Tx=EG.next();!Tx.done;Tx=EG.next()){var VG=Tx.value,iH=HV[VG];HV[VG]=Array.isArray(iH)?iH.join(","):iH}this.nP=HV;var o9=HV.cat;o9&&(this.T("html5_enable_qoe_cat_list")?this.RE=this.RE.concat(o9.split(",")):this.qT=o9);var Bd=HV.live;Bd&&(this.Ta=Bd);var jw=HV.drm_product;jw&&(this.n1=jw)}var Pr=Bb(p7.videostatsPlaybackUrl);if(Pr){var zH=xM(Pr),nT=zH.adformat;if(nT){hU.adformat=nT;var rD=this.J(),at=X8e(nT,this.We,rD.X,rD.D); at&&(this.adFormat=at)}var RO=zH.aqi;RO&&(hU.ad_query_id=RO);var sB=zH.autoplay;sB&&(this.RL=sB=="1",this.LN=sB=="1",F7(this,"vss"));var kS=zH.autonav;kS&&(this.isAutonav=kS=="1");var ho=zH.delay;ho&&(this.hG=$v(ho));var q9=zH.ei;q9&&(this.eventId=q9);if(zH.adcontext||nT)this.RL=!0,F7(this,"ad");var sI=zH.feature;sI&&(this.YY=sI);var eS=zH.list;eS&&(this.playlistId=eS);var Rm=zH.of;Rm&&(this.hJ=Rm);var tO=zH.osid;tO&&(this.osid=tO);var Yf=zH.referrer;Yf&&(this.referrer=Yf);var HP=zH.sdetail;HP&&(this.gQ= HP);var TC=zH.ssrt;TC&&(this.Gw=TC=="1");var zA=zH.subscribed;zA&&(this.subscribed=zA=="1",this.D.subscribed=zA);var cP=zH.uga;cP&&(this.userGenderAge=cP);var mp=zH.upt;mp&&(this.n$=mp);var AO=zH.vm;AO&&(this.videoMetadata=AO);yi.playback=zH}var Im=Bb(p7.videostatsWatchtimeUrl);if(Im){var P1=xM(Im),nO=P1.ald;nO&&(this.v$=nO);yi.watchtime=P1}var Qr=Bb(p7.atrUrl);if(Qr){var OE=xM(Qr);yi.atr=OE}var ie=Bb(p7.engageUrl);if(ie){var sE=xM(ie);yi.engage=sE}this.Q$=yi;if(p7.promotedPlaybackTracking){var L1= p7.promotedPlaybackTracking;L1.startUrls&&(this.Ig=L1.startUrls);L1.firstQuartileUrls&&(this.XG=L1.firstQuartileUrls);L1.secondQuartileUrls&&(this.nU=L1.secondQuartileUrls);L1.thirdQuartileUrls&&(this.Qs=L1.thirdQuartileUrls);L1.completeUrls&&(this.vt=L1.completeUrls);L1.engagedViewUrls&&(L1.engagedViewUrls.length>1&&g.rz(new g.sT("There are more than one engaged_view_urls.")),this.WU=L1.engagedViewUrls[0])}}var Dz=this.playerResponse.playerCueRanges;Dz&&Dz.length>0&&(this.cueRanges=Dz);var CO=this.playerResponse.playerCueRangeSet; CO&&g.MP(this,CO);a:{var dT=this.playerResponse.adPlacements;if(dT)for(var X1=g.D(dT),WP=X1.next();!WP.done;WP=X1.next()){var uE=void 0,qe=void 0,iE=(uE=WP.value.adPlacementRenderer)==null?void 0:(qe=uE.renderer)==null?void 0:qe.videoAdTrackingRenderer;if(iE){var Zt=iE;break a}}Zt=null}var NZ=Zt;p7&&p7.promotedPlaybackTracking&&NZ&&g.rz(new g.sT("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var xa;if(!(xa=NZ))a:{for(var KO=g.D(this.playerResponse.adSlots||[]), vP=KO.next();!vP.done;vP=KO.next()){var BP=g.q(vP.value,rR);if(BP===void 0||!eKJ(BP))break;var rm=void 0,ge=(rm=BP.fulfillmentContent)==null?void 0:rm.fulfilledLayout,am=g.q(ge,nr);if(am&&vl(am)){xa=!0;break a}}xa=!1}xa&&(this.fS=!0);var E6=this.playerResponse.playerAds;if(E6)for(var Mi=U,LO=g.D(E6),bB=LO.next();!bB.done;bB=LO.next()){var Vr=bB.value;if(Vr){var om=Vr.playerLegacyDesktopWatchAdsRenderer;if(om){var ZV=om.playerAdParams;if(ZV){ZV.autoplay=="1"&&(this.LN=this.RL=!0);this.Xn=ZV.encodedAdSafetyReason|| null;ZV.showContentThumbnail!==void 0&&(this.IB=!!ZV.showContentThumbnail);Mi.enabled_engage_types=ZV.enabledEngageTypes;break}}}}var va=this.playerResponse.playerConfig;if(va){var Eb=va.manifestlessWindowedLiveConfig;if(Eb){var kf=Number(Eb.minDvrSequence),x6=Number(Eb.maxDvrSequence),Rx=Number(Eb.minDvrMediaTimeMs),tr=Number(Eb.maxDvrMediaTimeMs),br=Number(Eb.startWalltimeMs);kf&&(this.QM=kf);Rx&&(this.Ka=Rx/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&$u(this)&&(this.aG=Rx/ 1E3));x6&&(this.d3=x6);tr&&(this.EQ=tr/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&$u(this)&&(this.GR=tr/1E3));br&&(this.Oj=br/1E3);(kf||Rx)&&(x6||tr)&&(this.allowLiveDvr=this.isLivePlayback=this.Ca=!0,this.Dh=!1)}var Lx=va.daiConfig;if(Lx){if(Lx.enableDai){this.gD=!0;var Ya=Lx.enableServerStitchedDai;Ya&&(this.enableServerStitchedDai=Ya);var wm=Lx.enablePreroll;wm&&(this.O3=wm)}var pd;if(Lx.daiType==="DAI_TYPE_SS_DISABLED"||((pd=Lx.debugInfo)==null?0:pd.isDisabledUnpluggedChannel))this.Z0= !0;Lx.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.UI=!0)}var e3=va.audioConfig;if(e3){var Mv=e3.loudnessDb;Mv!=null&&(this.gs=Mv);var a0w=e3.trackAbsoluteLoudnessLkfs;a0w!=null&&(this.t8=a0w);var Eo1=e3.loudnessTargetLkfs;Eo1!=null&&(this.loudnessTargetLkfs=Eo1);e3.audioMuted&&(this.Mh=!0);e3.muteOnStart&&(this.Tx=!0);var bY=e3.loudnessNormalizationConfig;if(bY){bY.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);bY.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var Luq=bY.minimumLoudnessTargetLkfs;Luq!=null&&(this.minimumLoudnessTargetLkfs=Luq);var Vew=bY.maxStatefulTimeThresholdSec;Vew!=null&&(this.maxStatefulTimeThresholdSec=Vew)}this.T("web_player_audio_playback_from_audio_config")&&e3.playAudioOnly&&(this.FT=!0)}var vC4=va.playbackEndConfig;if(vC4){var oo5=vC4.endSeconds,kjJ=vC4.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(oo5&&(this.endSeconds=oo5),kjJ&&(this.limitedPlaybackDurationInSeconds=kjJ))}var b2=va.fairPlayConfig;if(b2){var wem= b2.certificate;wem&&(this.NL=$0(wem));var UDe=Number(b2.keyRotationPeriodMs);UDe>0&&(this.Lq=UDe);var OBJ=Number(b2.keyPrefetchMarginMs);OBJ>0&&(this.Cq=OBJ)}var GW=va.playbackStartConfig;if(GW){this.q9=Number(GW.startSeconds);var sgw=GW.liveUtcStartSeconds,g2i=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;sgw&&!g2i&&(this.liveUtcStartSeconds=Number(sgw));var B1e=GW.startPosition;if(B1e){var MVe=B1e.utcTimeMillis;MVe&&!g2i&&(this.liveUtcStartSeconds=Number(MVe)*.001);var Sc7=B1e.streamTimeMillis; Sc7&&(this.u$=Number(Sc7)*.001)}this.progressBarStartPosition=GW.progressBarStartPosition;this.progressBarEndPosition=GW.progressBarEndPosition}else{var xk7=va.skippableSegmentsConfig;if(xk7){var pLi=xk7.introSkipDurationMs;pLi&&(this.LJ=Number(pLi)/1E3);var hfw=xk7.outroSkipDurationMs;hfw&&(this.Pw=Number(hfw)/1E3)}}var b3J=va.skippableIntroConfig;if(b3J){var Jqg=Number(b3J.startMs),yqq=Number(b3J.endMs);isNaN(Jqg)||isNaN(yqq)||(this.cU=Jqg,this.EF=yqq)}var fXe=va.streamSelectionConfig;fXe&&(this.dH= Number(fXe.maxBitrate));var Fe5=va.vrConfig;Fe5&&(this.fM=Fe5.partialSpherical=="1");var Rh=va.webDrmConfig;if(Rh){Rh.skipWidevine&&(this.Ds=!0);var lXW=Rh.widevineServiceCert;lXW&&(this.ma=$0(lXW));Rh.useCobaltWidevine&&(this.useCobaltWidevine=!0);Rh.startWithNoQualityConstraint&&(this.sU=!0)}var fs=va.mediaCommonConfig;if(fs){var RW=fs.dynamicReadaheadConfig;if(RW){this.maxReadAheadMediaTimeMs=RW.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=RW.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= RW.readAheadGrowthRateMs||NaN;var GPJ,$Dq=fs==null?void 0:(GPJ=fs.mediaUstreamerRequestConfig)==null?void 0:GPJ.videoPlaybackUstreamerConfig;$Dq&&(this.Da=$0($Dq));var Ro4=fs==null?void 0:fs.sabrContextUpdates;if(Ro4&&Ro4.length>0)for(var TgU=g.D(Ro4),tXm=TgU.next();!tXm.done;tXm=TgU.next()){var W6=tXm.value;if(W6.type&&W6.value){var p54={type:W6.type,scope:W6.scope,value:$0(W6.value)||void 0,sendByDefault:W6.sendByDefault};this.sabrContextUpdates.set(W6.type,p54)}}}var jge=fs.serverPlaybackStartConfig; jge&&(this.serverPlaybackStartConfig=jge);fs.useServerDrivenAbr&&(this.v7=!0);var efU=fs.requestPipeliningConfig;efU&&(this.requestPipeliningConfig=efU)}var HBw=va.inlinePlaybackConfig;HBw&&(this.Ad=!!HBw.showAudioControls);var t4=va.embeddedPlayerConfig;if(t4){this.embeddedPlayerConfig=t4;var Ypw=t4.embeddedPlayerMode;if(Ypw){var zfU=this.J();zfU.sA=Ypw;zfU.B=Ypw==="EMBEDDED_PLAYER_MODE_PFL"}var cq5=t4.permissions;cq5&&(this.allowImaMonetization=!!cq5.allowImaMonetization)}var DDg=va.ssapConfig; DDg&&(this.lN=DDg.ssapPrerollEnabled||!1);var YV=va.webPlayerConfig;YV&&(YV.gatewayExperimentGroup&&(this.gatewayExperimentGroup=YV.gatewayExperimentGroup),YV.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var FA=this.playerResponse.streamingData;if(FA){var mke=FA.formats;if(mke){for(var tZ=[],dDy=g.D(mke),A1q=dDy.next();!A1q.done;A1q=dDy.next()){var Ih4=A1q.value;tZ.push(Ih4.itag+"/"+Ih4.width+"x"+Ih4.height)}this.Fr=tZ.join(",");tZ=[];for(var Weq=g.D(mke),Pg5=Weq.next();!Pg5.done;Pg5=Weq.next()){var Yi= Pg5.value,m7={itag:Yi.itag,type:Yi.mimeType,quality:Yi.quality},Ngw=Yi.url;Ngw&&(m7.url=Ngw);var mF=Ps(Yi),hjh=mF.yY,JbQ=mF.Lz,yb4=mF.s;mF.QJ&&(m7.url=hjh,m7.sp=JbQ,m7.s=yb4);tZ.push(g.SK(m7))}this.WN=tZ.join(",")}var nCw=FA.hlsFormats;if(nCw&&!this.T("safari_live_drm_captions_fix")){var v2w=va||null,A4={};if(v2w){var Qcy=v2w.audioPairingConfig;if(Qcy&&Qcy.pairs)for(var BgW=g.D(Qcy.pairs),Cg7=BgW.next();!Cg7.done;Cg7=BgW.next()){var xDg=Cg7.value,XJU=xDg.videoItag;A4[XJU]||(A4[XJU]=[]);A4[XJU].push(xDg.audioItag)}}for(var bB5= {},Rfw=g.D(nCw),us4=Rfw.next();!us4.done;us4=Rfw.next()){var tVJ=us4.value;bB5[tVJ.itag]=tVJ.bitrate}for(var Ycq=[],mDe=g.D(nCw),qpw=mDe.next();!qpw.done;qpw=mDe.next()){var h7=qpw.value,QM={itag:h7.itag,type:h7.mimeType,url:h7.url,bitrate:h7.bitrate,width:h7.width,height:h7.height,fps:h7.fps},IW=h7.audioTrack;if(IW){var Aqq=IW.displayName;Aqq&&(QM.name=Aqq,QM.audio_track_id=IW.id,IW.audioIsDefault&&(QM.is_default="1"))}if(h7.drmFamilies){for(var IXq=[],Pz4=g.D(h7.drmFamilies),i3g=Pz4.next();!i3g.done;i3g= Pz4.next())IXq.push(ds[i3g.value]);QM.drm_families=IXq.join(",")}var PH=A4[h7.itag];if(PH&&PH.length){QM.audio_itag=PH.join(",");var n2w=bB5[PH[0]];n2w&&(QM.bitrate+=n2w)}var Qg1=Y6e(h7);Qg1&&(QM.eotf=Qg1);h7.audioChannels&&(QM.audio_channels=h7.audioChannels);Ycq.push(g.SK(QM))}this.hlsFormats=Ycq.join(",")}var Z3U=FA.licenseInfos;if(Z3U&&Z3U.length>0){for(var Czg={},XL4=g.D(Z3U),Khe=XL4.next();!Khe.done;Khe=XL4.next()){var uam=Khe.value,qcm=uam.drmFamily,iB4=uam.url;qcm&&iB4&&(Czg[ds[qcm]]=iB4)}this.IW= Czg}var ZBi=FA.drmParams;ZBi&&(this.drmParams=ZBi);var Kew=FA.dashManifestUrl;Kew&&(this.cB=g.pj(Kew,{cpn:this.clientPlaybackNonce}));var rqg=FA.hlsManifestUrl;rqg&&(this.hlsvp=rqg);var aXw=FA.probeUrl;aXw&&(this.probeUrl=fZ(g.pj(aXw,{cpn:this.clientPlaybackNonce})));var E2m=FA.serverAbrStreamingUrl;E2m&&(this.o2=new g.bJ(E2m,!0))}var Lem=this.playerResponse.trackingParams;Lem&&(this.QP=Lem);var VH=this.playerResponse.videoDetails;if(VH){var CC=U,r1W=VH.videoId;r1W&&(this.videoId=r1W,CC.video_id|| (CC.video_id=r1W));var VVe=VH.channelId;VVe&&(this.D.uid=VVe.substring(2));var ahe=VH.title;ahe&&(this.title=ahe,CC.title||(CC.title=ahe));var EC5=VH.lengthSeconds;EC5&&(this.lengthSeconds=Number(EC5),CC.length_seconds||(CC.length_seconds=EC5));var o2i=VH.keywords;o2i&&(this.keywords=W7m(o2i));var Lh7=VH.channelId;Lh7&&(this.b2=Lh7,CC.ucid||(CC.ucid=Lh7));var kPW=VH.viewCount;kPW&&(this.rawViewCount=Number(kPW));var VXe=VH.author;VXe&&(this.author=VXe,CC.author||(CC.author=VXe));var wLm=VH.shortDescription; wLm&&(this.shortDescription=wLm);var U45=VH.isCrawlable;U45&&(this.isListed=U45);var OV5=VH.musicVideoType;OV5&&(this.musicVideoType=OV5);var oCe=VH.isLive;oCe!=null&&(this.isLivePlayback=oCe);if(oCe||VH.isUpcoming)this.isPremiere=!VH.isLiveContent;var sNg=VH.thumbnail;sNg&&(this.Z=vb(sNg));var gP5=VH.isExternallyHostedPodcast;gP5&&(this.isExternallyHostedPodcast=gP5);var k3W=VH.viewerLivestreamJoinPosition;if(k3W==null?0:k3W.utcTimeMillis)this.FV=$v(k3W.utcTimeMillis);var MF5=va||null,wJ5=U;VH.isLiveDefaultBroadcast&& (this.isLiveDefaultBroadcast=!0);VH.isUpcoming&&(this.isUpcoming=!0);if(VH.isPostLiveDvr){this.Dh=!0;var S9y=VH.latencyClass;S9y&&(this.latencyClass=qoE[S9y]||"UNKNOWN");VH.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Um5=!1;this.pE?(this.allowLiveDvr=JG()?!0:pE&&ia<5?!1:!0,this.isLivePlayback=!0):VH.isLive?(wJ5.livestream="1",this.allowLiveDvr=VH.isLiveDvrEnabled?JG()?!0:pE&&ia<5?!1:!0:!1,this.partnerId=27,Um5=!0):VH.isUpcoming&&(Um5=!0);if(VH.isLive||this.pE&&this.T("html5_parse_live_monitor_flags")){VH.isLowLatencyLiveStream&& (this.isLowLatencyLiveStream=!0);var p7e=VH.latencyClass;p7e&&(this.latencyClass=qoE[p7e]||"UNKNOWN");var hE4=VH.liveChunkReadahead;hE4&&(this.liveChunkReadahead=hE4);var $5=MF5&&MF5.livePlayerConfig;if($5){$5.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);$5.hasSubfragmentedWebm&&(this.fH=!0);$5.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var JhW=$5.liveExperimentalContentId;JhW&&(this.liveExperimentalContentId=Number(JhW));var yhU=$5.isLiveHeadPlayable;this.T("html5_live_head_playable")&& yhU!=null&&(this.isLiveHeadPlayable=yhU)}}Um5&&(this.isLivePlayback=!0,wJ5.adformat&&wJ5.adformat.split("_")[1]!=="8"||this.BA.push("heartbeat"),this.NT=!0)}var f4e=VH.isPrivate;f4e!==void 0&&(this.isPrivate=lC(this.isPrivate,f4e))}if(JU){var Fxq=VH||null,l4i=!1,TW=JU.errorScreen;l4i=TW&&(TW.playerLegacyDesktopYpcOfferRenderer||TW.playerLegacyDesktopYpcTrailerRenderer||TW.ypcTrailerRenderer)?!0:Fxq&&Fxq.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(JU.status);if(!l4i){this.errorCode= mge(JU.errorCode)||"auth";var ng=TW&&TW.playerErrorMessageRenderer;if(ng){this.playerErrorMessageRenderer=ng;var Gsm=ng.reason;Gsm&&(this.errorReason=g.B_(Gsm));var O1U=ng.subreason;O1U&&(this.WO=g.B_(O1U),this.xa=O1U)}else this.errorReason=JU.reason||null;var s1W=JU.status;if(s1W==="LOGIN_REQUIRED")this.errorDetail="1";else if(s1W==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(s1W==="AGE_CHECK_REQUIRED"){var $41=JU.errorScreen,TVe=$41&&$41.playerKavRenderer;this.errorDetail=TVe&&TVe.kavUrl? "4":"3"}else this.errorDetail=JU.isBlockedInRestrictedMode?"5":"0"}}var jNi=this.playerResponse.interstitialPods;jNi&&acw(this,jNi);this.Rl&&this.eventId&&(this.Rl=Tr(this.Rl,{ei:this.eventId}));var gvw=this.playerResponse.captions;if(gvw&&gvw.playerCaptionsTracklistRenderer)a:{var X0=gvw.playerCaptionsTracklistRenderer;this.captionTracks=[];if(X0.captionTracks)for(var eE1=g.D(X0.captionTracks),Mwe=eE1.next();!Mwe.done;Mwe=eE1.next()){var u4=Mwe.value,HV5=cZ4(u4.baseUrl);if(!HV5)break a;var SGq={is_translateable:!!u4.isTranslatable, languageCode:u4.languageCode,languageName:u4.name&&g.B_(u4.name),url:HV5,vss_id:u4.vssId,kind:u4.kind};SGq.name=u4.trackName;SGq.displayName=u4.name&&g.B_(u4.name);this.captionTracks.push(new g.cb(SGq))}this.KU=X0.audioTracks||[];this.jL=X0.defaultAudioTrackIndex||0;this.tE=[];if(X0.translationLanguages)for(var zEy=g.D(X0.translationLanguages),py7=zEy.next();!py7.done;py7=zEy.next()){var jL=py7.value,NY={};NY.languageCode=jL.languageCode;NY.languageName=g.B_(jL.languageName);if(jL.translationSourceTrackIndices){NY.translationSourceTrackIndices= [];for(var chU=g.D(jL.translationSourceTrackIndices),haw=chU.next();!haw.done;haw=chU.next())NY.translationSourceTrackIndices.push(haw.value)}if(jL.excludeAudioTrackIndices){NY.excludeAudioTrackIndices=[];for(var D4U=g.D(jL.excludeAudioTrackIndices),J5y=D4U.next();!J5y.done;J5y=D4U.next())NY.excludeAudioTrackIndices.push(J5y.value)}this.tE.push(NY)}this.CU=[];if(X0.defaultTranslationSourceTrackIndices)for(var d4e=g.D(X0.defaultTranslationSourceTrackIndices),y57=d4e.next();!y57.done;y57=d4e.next())this.CU.push(y57.value); this.AE=!!X0.contribute&&!!X0.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.q9=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Lz1(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Wxe;this.compositeLiveIngestionOffsetToken= (Wxe=this.playerResponse.playbackTracking)==null?void 0:Wxe.compositeLiveIngestionOffsetToken;var NVq;this.compositeLiveStatusToken=(NVq=this.playerResponse.playbackTracking)==null?void 0:NVq.compositeLiveStatusToken}wG(this,U);U.queue_info&&(this.queueInfo=U.queue_info);var vPi=U.hlsdvr;vPi!=null&&(this.allowLiveDvr=Number(vPi)===1?JG()?!0:pE&&ia<5?!1:!0:!1);this.adQueryId=U.ad_query_id||null;this.Xn||(this.Xn=U.encoded_ad_safety_reason||null);this.zK=U.agcid||null;this.sP=U.ad_id||null;this.ll= U.ad_sys||null;this.cL=U.encoded_ad_playback_context||null;this.Mh=lC(this.Mh,U.infringe||U.muted);this.uv=U.authkey;this.wv=U.authuser;this.mutedAutoplay=lC(this.mutedAutoplay,U&&U.playmuted);this.mutedAutoplayDurationMode=$d(this.mutedAutoplayDurationMode,U&&U.muted_autoplay_duration_mode);this.OP=lC(this.OP,U&&U.mutedautoplay);var Qe=U.length_seconds;Qe&&(this.lengthSeconds=typeof Qe==="string"?$v(Qe):Qe);if(this.isAd()||this.GB||!g.zI(g.KL(this.X0)))this.endSeconds=$d(this.endSeconds,this.Pw|| U.end||U.endSeconds);else{var f2D=g.KL(this.X0),Cg=this.lengthSeconds;switch(f2D){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Cg>30?this.limitedPlaybackDurationInSeconds=30:Cg<30&&Cg>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Cg*.2}}this.QP=TI(this.QP,U.itct);this.s6=lC(this.s6,U.noiba);this.A8=lC(this.A8,U.is_live_destination);this.isLivePlayback=lC(this.isLivePlayback,U.live_playback); this.enableServerStitchedDai=this.enableServerStitchedDai&&this.KE();U.isUpcoming&&(this.isUpcoming=lC(this.isUpcoming,U.isUpcoming));this.Dh=lC(this.Dh,U.post_live_playback);this.Ca&&(this.Dh=!1);this.isMdxPlayback=lC(this.isMdxPlayback,U.mdx);var X4=U.mdx_control_mode;X4&&(this.mdxControlMode=typeof X4==="number"?X4:$v(X4));this.isInlinePlaybackNoAd=lC(this.isInlinePlaybackNoAd,U.is_inline_playback_no_ad);this.F9=$d(this.F9,U.reload_count);this.reloadReason=TI(this.reloadReason,U.reload_reason); this.IB=lC(this.IB,U.show_content_thumbnail);this.Ga=lC(this.Ga,U.utpsa);this.cycToken=U.cyc||null;this.G$=U.tkn||null;var BVm=N3(U);Object.keys(BVm).length>0&&(this.Z=BVm);this.ol=TI(this.ol,U.vvt);this.mdxEnvironment=TI(this.mdxEnvironment,U.mdx_environment);U.source_container_playlist_id&&(this.sourceContainerPlaylistId=U.source_container_playlist_id);U.serialized_mdx_metadata&&(this.serializedMdxMetadata=U.serialized_mdx_metadata);this.OJ=U.osig;this.eventId||(this.eventId=U.eventid);this.osid|| (this.osid=U.osid);this.playlistId=TI(this.playlistId,U.list);U.index&&(this.playlistIndex=this.playlistIndex===void 0?$d(0,U.index):$d(this.playlistIndex,U.index));this.Ni=U.pyv_view_beacon_url;this.pV=U.pyv_quartile25_beacon_url;this.Me=U.pyv_quartile50_beacon_url;this.aU=U.pyv_quartile75_beacon_url;this.Fv=U.pyv_quartile100_beacon_url;var x4i=U.session_data;!this.KB&&x4i&&(this.KB=yI(x4i,"&").feature);this.isFling=$d(this.isFling?1:0,U.is_fling)===1;this.vnd=$d(this.vnd,U.vnd);this.forceAdsUrl= TI(this.forceAdsUrl,U.force_ads_url);this.Vf=TI(this.Vf,U.ctrl);this.Zt=TI(this.Zt,U.ytr);this.ej=U.ytrcc;this.pw=U.ytrexp;this.tF=U.ytrext;this.WV=TI(this.WV,U.adformat);this.We=TI(this.We,U.attrib);this.slotPosition=$d(this.slotPosition,U.slot_pos);this.breakType=U.break_type;this.Gw=lC(this.Gw,U.ssrt);this.videoId=eQ(U)||this.videoId;this.C=TI(this.C,U.vss_credentials_token);this.SS=TI(this.SS,U.vss_credentials_token_type);this.FT=lC(this.FT,U.audio_only);this.TY=lC(this.TY,U.aac_high);this.Bt= lC(this.Bt,U.prefer_low_quality_audio);this.LU=lC(this.LU,U.uncap_inline_quality);this.T("html5_enable_qoe_cat_list")?U.qoe_cat&&(this.RE=this.RE.concat(U.qoe_cat.split(","))):this.qT=TI(this.qT,U.qoe_cat);this.TB=lC(this.TB,U.download_media);var bV1=U.prefer_gapless;this.Y=bV1!=null?lC(this.Y,bV1):this.Y?this.Y:this.X0.preferGapless&&this.X0.supportsGaplessShorts();KkU(this.playerResponse)&&this.BA.push("ad");var REU=U.adaptive_fmts;REU&&(this.adaptiveFormats=REU,this.al("adpfmts",{},!0));var tF5= U.allow_embed;tF5&&(this.allowEmbed=Number(tF5)===1);var Y94=U.backgroundable;Y94&&(this.backgroundable=Number(Y94)===1);var m4g=U.autonav;m4g&&(this.isAutonav=Number(m4g)===1);var Ahi=U.autoplay;Ahi&&(this.RL=this.LN=Number(Ahi)===1,F7(this,"c"));var I44=U.iv_load_policy;I44&&(this.annotationsLoadPolicy=GI(this.annotationsLoadPolicy,I44,rv));var Pfe=U.cc_lang_pref;Pfe&&(this.captionsLanguagePreference=TI(Pfe,this.captionsLanguagePreference));var nPm=U.cc_load_policy;nPm&&(this.Hw=GI(this.Hw,nPm, rv));var QNw;this.deviceCaptionsOn=(QNw=U.device_captions_on)!=null?QNw:void 0;var Cfq;this.nK=(Cfq=U.device_captions_lang_pref)!=null?Cfq:"";var X74;this.Ht=(X74=U.viewer_selected_caption_langs)!=null?X74:[];if(!this.T("html5_enable_ssap_entity_id")){var uQe=U.cached_load;uQe&&(this.v5=lC(this.v5,uQe))}if(U.dash==="0"||U.dash===0||U.dash===!1)this.Pt=!0;var q9q=U.dashmpd;q9q&&(this.cB=g.pj(q9q,{cpn:this.clientPlaybackNonce}));var iVe=U.delay;iVe&&(this.hG=$v(iVe));var f9U=this.Pw||U.end;if(this.Dq? f9U!=null:f9U!=void 0)this.clipEnd=$d(this.clipEnd,f9U);var ZVU=U.fmt_list;ZVU&&(this.Fr=ZVU);U.heartbeat_preroll&&this.BA.push("heartbeat");this.r4=-Math.floor(Math.random()*10);this.Vs=-Math.floor(Math.random()*40);var Kxm=U.is_listed;Kxm&&(this.isListed=lC(this.isListed,Kxm));var rhJ=U.is_private;rhJ&&(this.isPrivate=lC(this.isPrivate,rhJ));var a4i=U.is_dni;a4i&&(this.cJ=lC(this.cJ,a4i));var EPw=U.dni_color;EPw&&(this.t6=TI(this.t6,EPw));var Lx1=U.pipable;Lx1&&(this.pipable=lC(this.pipable,Lx1)); this.hA=(this.pC=this.pipable&&this.X0.xY)&&!this.X0.showMiniplayerButton;var VF4=U.paid_content_overlay_duration_ms;VF4&&(this.paidContentOverlayDurationMs=$v(VF4));var oPi=U.paid_content_overlay_text;oPi&&(this.paidContentOverlayText=oPi);var ks1=U.url_encoded_fmt_stream_map;ks1&&(this.WN=ks1);var w7W=U.hls_formats;w7W&&(this.hlsFormats=w7W);var Ulw=U.hlsvp;Ulw&&(this.hlsvp=Ulw);var u2=U.live_start_walltime;u2&&(this.qc=typeof u2==="number"?u2:$v(u2));var qS=U.live_manifest_duration;qS&&(this.f9= typeof qS==="number"?qS:$v(qS));var OW7=U.player_params;OW7&&(this.playerParams=OW7);var s7W=U.partnerid;s7W&&(this.partnerId=$d(this.partnerId,s7W));var gwm=U.probe_url;gwm&&(this.probeUrl=fZ(g.pj(gwm,{cpn:this.clientPlaybackNonce})));var FZq=U.pyv_billable_url;FZq&&OUe(FZq)&&(this.WU=FZq);var l91=U.pyv_conv_url;l91&&OUe(l91)&&(this.Ki=l91);NRq(this,U);this.startSeconds>0?this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.q9||this.LJ||U.start||U.startSeconds)&&this.al("lss", {css:this.startSeconds,pcss:this.q9,iss:this.LJ,ps:U.start||void 0,pss:U.startSeconds||void 0}):this.HV=this.startSeconds=$d(this.startSeconds,this.q9||this.LJ||U.start||U.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var MkJ=U.live_utc_start;if(MkJ!=null)this.liveUtcStartSeconds=Number(MkJ);else{var Gx7=this.startSeconds;Gx7&&isFinite(Gx7)&&Gx7>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Svg=U.utc_start_millis; Svg&&(this.liveUtcStartSeconds=Number(Svg)*.001)}var pke=U.stream_time_start_millis;pke&&(this.u$=Number(pke)*.001);var $mq=this.LJ||U.start;(this.Dq?$mq==null||Number(U.resume)===1:$mq==void 0||U.resume=="1")||this.isLivePlayback||(this.clipStart=$d(this.clipStart,$mq));var hke=U.url_encoded_third_party_media;hke&&(this.qy=lx(hke));var Tie=U.ypc_offer_button_formatted_text;if(Tie){var Jsi=JSON.parse(Tie);this.il=Jsi!=null?Jsi:null;this.Ez=Tie}var ys5=U.ypc_offer_button_text;ys5&&(this.dQ=ys5);var fsw= U.ypc_offer_description;fsw&&(this.ZK=fsw);var FDy=U.ypc_offer_headline;FDy&&(this.K$=FDy);var ls7=U.ypc_full_video_message;ls7&&(this.hB=ls7);var GG5=U.ypc_offer_id;GG5&&(this.L9=GG5);var $li=U.ypc_buy_url;$li&&(this.tN=$li);var TCW=U.ypc_item_thumbnail;TCW&&(this.un=TCW);var j7i=U.ypc_item_title;j7i&&(this.F$=j7i);var ek7=U.ypc_item_url;ek7&&(this.f$=ek7);var HW7=U.ypc_vid;HW7&&(this.xY=HW7);U.ypc_overlay_timeout&&(this.zv=Number(U.ypc_overlay_timeout));var zkm=U.ypc_trailer_player_vars;zkm&&(this.GD= F2(zkm));var csW=U.ypc_original_itct;csW&&(this.Y0=csW);this.b2=TI(this.b2,U.ucid);U.baseUrl&&(this.D.baseUrl=U.baseUrl);U.uid&&(this.D.uid=U.uid);U.oeid&&(this.D.oeid=U.oeid);U.ieid&&(this.D.ieid=U.ieid);U.ppe&&(this.D.ppe=U.ppe);U.engaged&&(this.D.engaged=U.engaged);U.subscribed&&(this.D.subscribed=U.subscribed);this.D.focEnabled=lC(this.D.focEnabled,U.focEnabled);this.D.rmktEnabled=lC(this.D.rmktEnabled,U.rmktEnabled);this.Ma=U.storyboard_spec||null;this.sG=U.live_storyboard_spec||null;this.Ab= U.iv_endscreen_url||null;this.NT=lC(this.NT,U.ypc_license_checker_module);this.B7=lC(this.B7,U.ypc_module);this.QO=lC(this.QO,U.ypc_clickwrap_module);this.B7&&this.BA.push("ypc");this.QO&&this.BA.push("ypc_clickwrap");this.Ir={video_id:U.video_id,eventid:U.eventid,cbrand:U.cbrand,cbr:U.cbr,cbrver:U.cbrver,c:U.c,cver:U.cver,ctheme:U.ctheme,cplayer:U.cplayer,cmodel:U.cmodel,cnetwork:U.cnetwork,cos:U.cos,cosver:U.cosver,cplatform:U.cplatform,user_age:U.user_age,user_display_image:U.user_display_image, user_display_name:U.user_display_name,user_gender:U.user_gender,csi_page_type:U.csi_page_type,csi_service_name:U.csi_service_name,enablecsi:U.enablecsi,enabled_engage_types:U.enabled_engage_types};zre(this,U);var Dlm=U.cotn;Dlm&&(this.cotn=Dlm);if(Qhw(this))eo(this)&&(this.isLivePlayback&&this.cB&&(this.TA=!0),this.NL&&(this.wb=!0));else if(CYU(this))this.TA=!0;else{var dlg,WDw,NC7=((dlg=this.playerResponse)==null?void 0:(WDw=dlg.streamingData)==null?void 0:WDw.adaptiveFormats)||[];if(NC7.length> 0)var AZ=ni7(this,NC7);else{var vwJ=this.adaptiveFormats;if(vwJ&&!eo(this)){this.X0.G.B&&(P3=!0);var eL=NP(vwJ),j1U=this.IW,BCq=this.lengthSeconds,FoQ=this.isLivePlayback,Ih=this.Dh,HC=this.X0,l2D=at7(eL);if(FoQ||Ih){var xlJ=HC==null?void 0:HC.experiments,rO=new c3("",xlJ,!0);rO.KE=!0;rO.isManifestless=!0;rO.V=!Ih;rO.isLive=!Ih;rO.Dh=Ih;for(var bWg=g.D(eL),eam=bWg.next();!eam.done;eam=bWg.next()){var zW=eam.value,Rkg=N_(zW,j1U),v6=v3(zW.url,zW.sp,zW.s),tkq=v6.get("id");tkq&&tkq.includes("%7E")&&(rO.Z= !0);var Yv7=void 0,Grv=(Yv7=xlJ)==null?void 0:Yv7.F0("html5_max_known_end_time_rebase"),$vv=Number(zW.target_duration_sec)||5,TaQ=Number(zW.max_dvr_duration_sec)||14400,ml1=Number(v6.get("mindsq")||v6.get("min_sq")||"0"),Asm=Number(v6.get("maxdsq")||v6.get("max_sq")||"0")||Infinity;rO.QM=rO.QM||ml1;rO.d3=rO.d3||Asm;var j0Q=!fO(Rkg.mimeType);v6&&ex(rO,new gs(v6,Rkg,{xV:$vv,i7:j0Q,wg:TaQ,QM:ml1,d3:Asm,ix:300,Dh:Ih,wx:Grv}))}var IsW=rO}else{if(l2D==="FORMAT_STREAM_TYPE_OTF"){var i2=BCq;i2=i2===void 0? 0:i2;var cC=new c3("",HC==null?void 0:HC.experiments,!1);cC.duration=i2||0;for(var Pjm=g.D(eL),H1w=Pjm.next();!H1w.done;H1w=Pjm.next()){var D_=H1w.value,zaU=N_(D_,j1U,cC.duration),c5g=v3(D_.url,D_.sp,D_.s);if(c5g)if(zaU.streamType==="FORMAT_STREAM_TYPE_OTF")ex(cC,new M_(c5g,zaU,"sq/0"));else{var ej4=P$(D_.init),H4h=P$(D_.index);ex(cC,new $b(c5g,zaU,ej4,H4h))}}cC.isOtf=!0;var nwW=cC}else{var ZG=BCq;ZG=ZG===void 0?0:ZG;var Kg=new c3("",HC==null?void 0:HC.experiments,!1);Kg.duration=ZG||0;for(var Q7e= g.D(eL),Dmw=Q7e.next();!Dmw.done;Dmw=Q7e.next()){var db=Dmw.value,zjv=N_(db,j1U,Kg.duration),cbq=P$(db.init),Dvp=P$(db.index),Cje=v3(db.url,db.sp,db.s);Cje&&ex(Kg,new $b(Cje,zjv,cbq,Dvp))}nwW=Kg}IsW=nwW}var Xky=IsW;if(eL.length>0){var uPW=eL[0];if(this.J().playerStyle==="hangouts-meet"&&uPW.url){var dvy=g.Gr(uPW.url);this.Lg=this.Lg||Number(dvy.expire)}}var WoC=this.isLivePlayback&&!this.Dh&&!this.Ca&&!this.isPremiere;this.T("html5_live_head_playable")&&(!HB(this)&&WoC&&this.al("missingLiveHeadPlayable", {}),this.X0.yP==="yt"&&(Xky.hZ=!0));AZ=Xky}else AZ=null;this.al("pafmts",{isManifestFilled:!!AZ})}if(AZ){Dp(this,AZ);var qvw=!0}else qvw=!1;qvw?this.enableServerStitchedDai=this.enableServerStitchedDai&&zS(this):this.cB&&(this.X0.yP==="yt"&&this.KE()&&this.T("drm_manifestless_unplugged")&&this.T("html5_deprecate_manifestful_fallback")?this.al("deprecateMflFallback",{}):this.TA=!0)}var dme=U.adpings;dme&&(this.B$=dme?F2(dme):null);var iW4=U.feature;iW4&&(this.YY=iW4);var ZW4=U.referrer;ZW4&&(this.referrer= ZW4);this.clientScreenNonce=TI(this.clientScreenNonce,U.csn);this.nz=$d(this.nz,U.root_ve_type);this.aE=$d(this.aE,U.kids_age_up_mode);this.Dq||U.kids_app_info==void 0||(this.kidsAppInfo=U.kids_app_info);this.Dq&&U.kids_app_info!=null&&(this.kidsAppInfo=U.kids_app_info);this.sK=lC(this.sK,U.upg_content_filter_mode);this.unpluggedFilterModeType=$d(this.unpluggedFilterModeType,U.unplugged_filter_mode_type);var KDq=U.unplugged_location_info;KDq&&(this.yP=KDq);var rsw=U.unplugged_partner_opt_out;rsw&& (this.M6=TI("",rsw));this.d1=lC(this.d1,U.disable_watch_next);this.qU=TI(this.qU,U.internal_ip_override);this.QU=!!U.is_yto_interstitial;(this.interstitials.length||this.QU)&&this.BA.push("yto");var asg=U.rP;asg&&(this.rP=asg);var Ewy;this.hZ=(Ewy=U.csi_timer)!=null?Ewy:"";this.DO=!!U.force_gvi;U.watchUrl&&(this.watchUrl=U.watchUrl);var B6=U.watch_endpoint;this.T("html5_attach_watch_endpoint_ustreamer_config")&&B6&&IcU(this,B6);if(B6==null?0:B6.ustreamerConfig)this.Y_=$0(B6.ustreamerConfig);var LDg, Vkw,owi=B6==null?void 0:(LDg=B6.loggingContext)==null?void 0:(Vkw=LDg.qoeLoggingContext)==null?void 0:Vkw.serializedContextData;owi&&(this.Db=owi);g.Pn(this.X0)&&this.X0.b6&&(this.embedsRct=TI(this.embedsRct,U.rct),this.embedsRctn=TI(this.embedsRctn,U.rctn));this.b6=this.b6||!!U.pause_at_start;U.default_active_source_video_id&&(this.defaultActiveSourceVideoId=U.default_active_source_video_id)}; g.y.J=function(){return this.X0}; g.y.T=function(U){return this.X0.T(U)}; g.y.C6=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.y.hasSupportedAudio51Tracks=function(){var U;return!((U=this.mD)==null||!U.w7)}; g.y.getUserAudio51Preference=function(){var U=1;M3(this.X0)&&this.T("html5_ytv_surround_toggle_default_off")?U=0:g.O3(this.X0)&&this.isLivePlayback&&this.Fk()&&(U=0);var O;return(O=g.ZO("yt-player-audio51"))!=null?O:U}; g.y.b1=function(){this.GY()||(this.U.V||this.U.unsubscribe("refresh",this.b1,this),this.S$(-1))}; g.y.S$=function(U){if(!this.isLivePlayback||!this.G||this.G.flavor!=="fairplay"){var O=Lpi(this.U,this.Ip);if(O.length>0){for(var M=g.D(O),S=M.next();!S.done;S=M.next())S=S.value,S.startSecs=Math.max(S.startSecs,this.GZ()),this.T("html5_cuepoint_identifier_logging")&&S.event==="start"&&this.al("cuepoint",{pubCue:S.identifier,segNum:U});this.publish("cuepointupdated",O,U);this.Ip+=O.length;if(zS(this)&&this.X0.PV())for(O=g.D(O),M=O.next();!M.done;M=O.next())M=M.value,this.al("cuepoint",{segNum:U,event:M.event, startSecs:M.startSecs,id:M.identifier.slice(-16)}),M.event==="start"&&(M=M.startSecs,this.AF.start=this.Yy,this.AF.end=M+3)}}}; g.y.pn=function(){this.GY()||(this.loading=!1,this.publish("dataloaded"))}; g.y.Fk=function(){return this.QK!==void 0?this.QK:this.QK=!!this.IW||!!this.U&&Dw(this.U)}; g.y.aN=function(U){var O=this;if(this.GY())return ux();this.UX=this.w7=this.B=null;Jg(this,"html5_high_res_logging_always")&&(this.X0.q_=!0);return irm(this,U).then(void 0,function(){return K71(O,U)}).then(void 0,function(){return rZe(O)}).then(void 0,function(){return Eig(O)})}; g.y.d2=function(U){this.B=U;Zr4(this,this.B.getAvailableAudioTracks());if(this.B){U=g.D(this.B.videoInfos);for(var O=U.next();!O.done;O=U.next()){O=O.value;var M=O.containerType;M!==0&&(this.Ic[M]=O.id)}}Yu(this);if(this.G&&this.B&&this.B.videoInfos&&!(this.B.videoInfos.length<=0)&&(U=pO(this.B.videoInfos[0]),this.G.flavor==="fairplay"!==U))for(O=g.D(this.J6),M=O.next();!M.done;M=O.next())if(M=M.value,U===(M.flavor==="fairplay")){this.G=M;break}}; g.y.AL=function(){if(this.cotn)return null;var U=g.Au(this.X0)||this.T("web_l3_storyboard");if(!this.tU)if(this.playerResponse&&this.playerResponse.storyboards){var O=this.playerResponse.storyboards,M=O.playerStoryboardSpecRenderer;M&&M.spec?this.tU=new aC(M.spec,this.lengthSeconds,void 0,!1,U):(O=O.playerLiveStoryboardSpecRenderer)&&O.spec&&this.U&&(M=ZcW(this.U.U).index)&&(this.tU=new LJ(O.spec,this.U.isLive,M,U))}else this.Ma?this.tU=new aC(this.Ma,this.lengthSeconds,void 0,!1,U):this.sG&&this.U&& (O=ZcW(this.U.U).index)&&(this.tU=new LJ(this.sG,this.U.isLive,O,U));return this.tU}; g.y.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var U=this.playerResponse.storyboards;return(U=U.playerStoryboardSpecRenderer||U.playerLiveStoryboardSpecRenderer)&&U.spec||null}return this.Ma||this.sG}; g.y.S9=function(){return this.U&&!isNaN(this.U.S9())?this.U.S9():zS(this)?0:this.lengthSeconds}; g.y.GZ=function(){return this.U&&!isNaN(this.U.GZ())?this.U.GZ():0}; g.y.getPlaylistSequenceForTime=function(U){if(this.U&&this.V){var O=this.U.U[this.V.id];if(!O)return null;var M=O.index.Eg(U);O=O.index.getStartTime(M);return{sequence:M,elapsed:Math.floor((U-O)*1E3)}}return null}; g.y.cT=function(){return!this.GY()&&!(!this.videoId&&!this.qy)}; g.y.MF=function(){var U,O,M;return!!this.adaptiveFormats||!!((U=this.playerResponse)==null?0:(O=U.streamingData)==null?0:(M=O.adaptiveFormats)==null?0:M.length)}; g.y.isLoaded=function(){return kM(this)&&!this.TA&&!this.wb}; g.y.dL=function(U){U||(U="hqdefault.jpg");var O=this.Z[U];return O||this.X0.ol||U==="pop1.jpg"||U==="pop2.jpg"||U==="sddefault.jpg"||U==="hq720.jpg"||U==="maxresdefault.jpg"?O:wv(this.X0,this.videoId,U)}; g.y.KE=function(){return this.isLivePlayback||this.Dh||this.Ca||!(!this.liveUtcStartSeconds||!this.f9)}; g.y.isOtf=function(){return!!this.U&&(this.U.isOtf||!this.Dh&&!this.isLivePlayback&&this.U.V)}; g.y.getAvailableAudioTracks=function(){return this.B?this.B.getAvailableAudioTracks().length>0?this.B.getAvailableAudioTracks():this.l6||[]:[]}; g.y.getAudioTrack=function(){var U=this;if(this.X&&!pO(this.X))return g.VD(this.getAvailableAudioTracks(),function(S){return S.id===U.X.id})||this.mW; if(this.l6){if(!this.Vk)for(var O=g.D(this.l6),M=O.next();!M.done;M=O.next())if(M=M.value,M.ZN.getIsDefault()){this.Vk=M;break}return this.Vk||this.mW}return this.mW}; g.y.getPlayerResponse=function(){return this.playerResponse}; g.y.getWatchNextResponse=function(){return this.HA}; g.y.getHeartbeatResponse=function(){return this.A1}; g.y.qn=function(){return this.watchUrl?this.watchUrl:this.X0.getVideoUrl(this.videoId)}; g.y.Mv=function(){return!!this.U&&(CEJ(this.U)||X11(this.U)||u1W(this.U))}; g.y.getEmbeddedPlayerResponse=function(){return this.Lf}; g.y.HU=function(){return(this.eventLabel||this.X0.QP)==="shortspage"}; g.y.isAd=function(){return this.CL||!!this.adFormat}; g.y.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.y.Js=function(){var U,O,M;return this.isDaiEnabled()&&!!((U=this.playerResponse)==null?0:(O=U.playerConfig)==null?0:(M=O.daiConfig)==null?0:M.ssaEnabledPlayback)}; g.y.Bc=function(){return Tw1(this)?this.lz:this.NT||this.jH}; g.y.Gu=function(){return this.B7||this.jH}; g.y.Nr=function(){return Jg(this,"html5_samsung_vp9_live")}; g.y.al=function(U,O,M){this.publish("ctmp",U,O,M)}; g.y.qA=function(U,O,M){this.publish("ctmpstr",U,O,M)}; g.y.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.y.getGetAdBreakContext=function(U,O){U=U===void 0?NaN:U;O=O===void 0?NaN:O;var M={isSabr:$u(this)},S,p=(S=this.getHeartbeatResponse())==null?void 0:S.adBreakHeartbeatParams;p&&(M.adBreakHeartbeatParams=p);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.U&&!isNaN(U)&&!isNaN(O)){O=U-O;for(var h in this.U.U)if(S=this.U.U[h],S.info.i$()||S.info.xS())if(S=S.index,S.isLoaded()){h=S.Eg(O);S=S.hR(h)+O-S.getStartTime(h);this.al("gabc",{t:U.toFixed(3),mt:O.toFixed(3),sg:h,igt:S.toFixed(3)}); M.livePlaybackPosition={utcTimeMillis:""+(S*1E3).toFixed(0)};break}}return M}; g.y.isEmbedsShortsMode=function(U,O){if(!g.Pn(this.X0)||(this.X0.sA||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||O)return!1;var M,S;return!!(((M=this.embeddedPlayerConfig)==null?0:(S=M.embeddedPlayerFlags)==null?0:S.isShortsExperienceEligible)&&U.width<=U.height)}; g.y.VP=function(){g.H_.prototype.VP.call(this);this.B$=null;delete this.QR;delete this.accountLinkingConfig;delete this.U;this.B=this.A1=this.playerResponse=this.HA=null;this.WN=this.adaptiveFormats="";delete this.botguardData;this.r7=this.suggestions=this.s3=null;this.sabrContextUpdates.clear()};var dq7={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},W$i={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},cPy={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},e0w={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"},z01={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},HHy={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"},Dqw={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.c(je,g.C);g.y=je.prototype;g.y.handleExternalCall=function(U,O,M){var S=this.state.D[U],p=this.state.Y[U],h=S;if(p)if(M&&pZ(M,sX4))h=p;else if(!S)throw Error('API call from an untrusted origin: "'+M+'"');this.logApiCall(U,M);if(h){M=!1;S=g.D(O);for(p=S.next();!p.done;p=S.next())if(String(p.value).includes("javascript:")){M=!0;break}M&&g.rz(Error('Dangerous call to "'+U+'" with ['+O+"]."));return h.apply(this,O)}throw Error('Unknown API method: "'+U+'".');}; g.y.logApiCall=function(U,O,M){var S=this.app.J();S.aE&&!this.state.Z.has(U)&&(this.state.Z.add(U),g.HX("webPlayerApiCalled",{callerUrl:S.loaderUrl,methodName:U,origin:O||void 0,playerStyle:S.playerStyle||void 0,embeddedPlayerMode:S.sA,errorCode:M}))}; g.y.publish=function(U){var O=g.m4.apply(1,arguments);this.state.B.publish.apply(this.state.B,[U].concat(g.N(O)));if(U==="videodatachange"||U==="resize"||U==="cardstatechange")this.state.V.publish.apply(this.state.V,[U].concat(g.N(O))),this.state.X.publish.apply(this.state.X,[U].concat(g.N(O)))}; g.y.ZQ=function(U){var O=g.m4.apply(1,arguments);this.state.B.publish.apply(this.state.B,[U].concat(g.N(O)));this.state.V.publish.apply(this.state.V,[U].concat(g.N(O)))}; g.y.aW=function(U){var O=g.m4.apply(1,arguments);this.state.B.publish.apply(this.state.B,[U].concat(g.N(O)));this.state.V.publish.apply(this.state.V,[U].concat(g.N(O)));this.state.X.publish.apply(this.state.X,[U].concat(g.N(O)))}; g.y.Te=function(U){var O=g.m4.apply(1,arguments);this.state.B.publish.apply(this.state.B,[U].concat(g.N(O)));this.state.V.publish.apply(this.state.V,[U].concat(g.N(O)));this.state.X.publish.apply(this.state.X,[U].concat(g.N(O)));this.state.G.publish.apply(this.state.G,[U].concat(g.N(O)))}; g.y.T=function(U){return this.app.J().T(U)}; g.y.VP=function(){if(this.state.element){var U=this.state.element,O;for(O in this.state.U)this.state.U.hasOwnProperty(O)&&(U[O]=null);this.state.element=null}g.C.prototype.VP.call(this)};g.c(D0,g.AD);D0.prototype.publish=function(U){var O=g.m4.apply(1,arguments);if(this.G.has(U))return this.G.get(U).push(O),!0;var M=!1;try{for(O=[O],this.G.set(U,O);O.length;)M=g.AD.prototype.publish.call.apply(g.AD.prototype.publish,[this,U].concat(g.N(O.shift())))}finally{this.G.delete(U)}return M};g.c(de,g.C);de.prototype.VP=function(){this.G.dispose();this.X.dispose();this.V.dispose();this.B.dispose();this.Z=this.U=this.Y=this.D=this.C=void 0};var tTw=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.c(Ni,je);g.y=Ni.prototype;g.y.getApiInterface=function(){return Array.from(this.state.C)}; g.y.mx=function(U,O){this.state.G.subscribe(U,O)}; g.y.qpl=function(U,O){this.state.G.unsubscribe(U,O)}; g.y.getPlayerState=function(U){return $de(this.app,U)}; g.y.Em=function(){return $de(this.app)}; g.y.a2y=function(U,O,M){xo(this)&&(nw(this.app,!0,1),XG(this.app,U,O,M,1))}; g.y.getCurrentTime=function(U,O,M){var S=this.getPlayerState(U);if(this.app.getAppState()===2&&S===5){var p;return((p=this.app.getVideoData())==null?void 0:p.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&S===0?Fgy(this.app,U):U?this.app.getCurrentTime(U,O,M):this.app.getCurrentTime(U)}; g.y.DZ=function(){return this.app.getCurrentTime(1)}; g.y.iK=function(){var U=this.app.hR(1);return isNaN(U)?this.getCurrentTime(1):U}; g.y.Pk=function(){return this.app.getDuration(1)}; g.y.Gh=function(U,O){U=g.Nm(Math.floor(U),0,100);isFinite(U)&&bp(this.app,{volume:U,muted:this.isMuted()},O)}; g.y.f2P=function(U){this.Gh(U,!1)}; g.y.hp=function(U){bp(this.app,{muted:!0,volume:this.getVolume()},U)}; g.y.j_c=function(){this.hp(!1)}; g.y.wZ=function(U){Be(this.app)&&!this.T("embeds_enable_emc3ds_muted_autoplay")||bp(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},U)}; g.y.XiZ=function(){Be(this.app)&&this.T("embeds_enable_emc3ds_muted_autoplay")||this.wZ(!1)}; g.y.getPlayerMode=function(){var U={};this.app.getVideoData().cJ&&(U.pfp={enableIma:g.fd(this.app.getVideoData())&&this.app.eY().allowImaMonetization,autoplay:rd(this.app.eY()),mutedAutoplay:this.app.eY().mutedAutoplay});return U}; g.y.Mj=function(){var U=this.app.getPresentingPlayerType();if(U===2&&!this.app.gD()){var O=Bx(this.app.nE());if(!$1J(O)||TWE(O))return}U===3?this.app.rk().ZF.playVideo():this.app.J().T("html5_ssap_ignore_play_for_ad")&&g.Os(this.app.eY())&&U===2||this.app.playVideo(U)}; g.y.oS0=function(){nw(this.app,!0,1);this.Mj()}; g.y.pauseVideo=function(U){var O=this.app.getPresentingPlayerType();if(O!==2||this.app.gD()||$1J(Bx(this.app.nE())))O===3?this.app.rk().ZF.pauseVideo():this.app.pauseVideo(O,U)}; g.y.i60=function(){var U=this.app,O=!1;U.gG.Oj&&(U.md.publish("pageTransition"),O=!0);U.stopVideo(O)}; g.y.clearVideo=function(){}; g.y.getAvailablePlaybackRates=function(){var U=this.app.J();return U.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(U.X?U.ancestorOrigins[0]:window.location.origin)||U.y$?YBy:U.supportsVarispeedExtendedFeatures?moJ:U.T("web_remix_allow_up_to_3x_playback_rate")&&g.a8(U)?AfL:vu:[1]}; g.y.getPlaybackQuality=function(U){return(U=this.app.yr(U))?U.getPlaybackQuality():"unknown"}; g.y.sAQ=function(){}; g.y.getAvailableQualityLevels=function(U){return(U=this.app.yr(U))?(U=g.mV(U.zB(),function(O){return O.quality}),U.length&&(U[0]==="auto"&&U.shift(),U=U.concat(["auto"])),U):[]}; g.y.Gy=function(){return this.getAvailableQualityLevels(1)}; g.y.ZZ=function(){return this.pB()}; g.y.zy=function(){return 1}; g.y.getVideoLoadedFraction=function(U){return this.app.getVideoLoadedFraction(U)}; g.y.pB=function(){return this.getVideoLoadedFraction()}; g.y.pAa=function(){return 0}; g.y.getSize=function(){var U=this.app.g7().getPlayerSize();return{width:U.width,height:U.height}}; g.y.setSize=function(){this.app.g7().resize()}; g.y.loadVideoById=function(U,O,M,S){if(!U)return!1;U=We(U,O,M);return this.app.loadVideoByPlayerVars(U,S)}; g.y.Mec=function(U,O,M){U=this.loadVideoById(U,O,M,1);nw(this.app,U,1)}; g.y.cueVideoById=function(U,O,M,S){U=We(U,O,M);this.app.cueVideoByPlayerVars(U,S)}; g.y.dX=function(U,O,M){this.cueVideoById(U,O,M,1)}; g.y.loadVideoByUrl=function(U,O,M,S){U=R01(U,O,M);return this.app.loadVideoByPlayerVars(U,S)}; g.y.Q_Q=function(U,O,M){U=this.loadVideoByUrl(U,O,M,1);nw(this.app,U,1)}; g.y.cueVideoByUrl=function(U,O,M,S){U=R01(U,O,M);this.app.cueVideoByPlayerVars(U,S)}; g.y.SO=function(U,O,M){this.cueVideoByUrl(U,O,M,1)}; g.y.aQd=function(){var U=this.app.J();if(U.ol)return"";var O=this.app.eY(),M=void 0;O.isLivePlayback||(M=Math.floor(this.app.getCurrentTime(1)));return U.getVideoUrl(O.videoId,this.getPlaylistId()||void 0,M)}; g.y.L3=function(){return this.app.getDebugText()}; g.y.getVideoEmbedCode=function(){var U=this.app.J();if(U.ol)return"";var O=this.app.eY();return U.getVideoEmbedCode(O.isPrivate?"":O.title,this.app.eY().videoId,this.app.g7().getPlayerSize(),this.getPlaylistId()||void 0)}; g.y.D8=function(U,O,M){return dd4(this.app,U,O,M)}; g.y.removeCueRange=function(U){return Nle(this.app,U)}; g.y.loadPlaylist=function(U,O,M,S){this.app.loadPlaylist(U,O,M,S)}; g.y.B7Y=function(U,O,M,S){this.loadPlaylist(U,O,M,S);nw(this.app,!0,1)}; g.y.cuePlaylist=function(U,O,M,S){this.app.cuePlaylist(U,O,M,S)}; g.y.nextVideo=function(U,O){this.app.nextVideo(U,O)}; g.y.JGg=function(){this.nextVideo();nw(this.app,!0,1)}; g.y.previousVideo=function(U){this.app.previousVideo(U)}; g.y.AiG=function(){this.previousVideo();nw(this.app,!0,1)}; g.y.playVideoAt=function(U){this.app.playVideoAt(U)}; g.y.yia=function(U){this.playVideoAt(U);nw(this.app,!0,1)}; g.y.setShuffle=function(U){var O=this.app.getPlaylist();O&&O.setShuffle(U)}; g.y.setLoop=function(U){var O=this.app.getPlaylist();O&&(O.loop=U)}; g.y.Wk=function(){var U=this.app.getPlaylist();if(!U)return null;for(var O=[],M=0;M=400)if(U=this.eY(),this.S.J().T("client_respect_autoplay_switch_button_renderer"))U=!!U.autoplaySwitchButtonRenderer;else{var O,M,S,p;U=!!((O=U.getWatchNextResponse())==null?0:(M=O.contents)==null?0:(S=M.twoColumnWatchNextResults)==null?0:(p=S.autoplay)==null?0:p.autoplay)!==!1}if(U)this.U||(this.U=!0,this.ri(this.U),this.S.J().T("web_player_autonav_toggle_always_listen")||syW(this), O=this.eY(),this.Pp(O.autonavState),this.S.logVisibility(this.element,this.U));else if(this.U=!1,this.ri(this.U),!this.S.J().T("web_player_autonav_toggle_always_listen"))for(this.S.J().T("web_player_autonav_toggle_always_listen"),O=g.D(this.V),M=O.next();!M.done;M=O.next())this.bH(M.value)}; g.y.Pp=function(U){MAJ(this)?this.isChecked=U!==1:((U=U!==1)||(g.Vm(),U=g.R0("web_autonav_allow_off_by_default")&&!g.on(0,141)&&g.wZ("AUTONAV_OFF_BY_DEFAULT")?!1:!g.on(0,140)),this.isChecked=U);gD5(this)}; g.y.onClick=function(){this.isChecked=!this.isChecked;this.S.ob(this.isChecked?2:1);gD5(this);if(MAJ(this)){var U=this.eY().autoplaySwitchButtonRenderer;this.isChecked&&(U==null?0:U.onEnabledCommand)?this.S.ZQ("innertubeCommand",U.onEnabledCommand):!this.isChecked&&(U==null?0:U.onDisabledCommand)&&this.S.ZQ("innertubeCommand",U.onDisabledCommand)}this.S.logClick(this.element)}; g.y.getValue=function(){return this.isChecked}; g.y.eY=function(){return this.S.getVideoData(1)};g.c(SN5,pB);g.c(GP,g.sc);GP.prototype.onClick=function(){this.enabled&&($2(this,!this.checked),this.publish("select",this.checked))}; GP.prototype.getValue=function(){return this.checked}; GP.prototype.setEnabled=function(U){(this.enabled=U)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var hbi=["en-CA","en","es-MX","fr-CA"];g.c(DX,GP);DX.prototype.PA=function(U){U?this.U||(this.lM.q4(this),this.U=!0):this.U&&(this.lM.Px(this),this.U=!1);this.U&&$2(this,cu5())}; DX.prototype.X=function(){g.$U(this.element,"ytp-menuitem-highlight-transition-enabled")}; DX.prototype.B=function(U){var O=cu5();U!==O&&(O=g.Vm(),wr(190,U),wr(192,!0),O.save(),this.S.ZQ("cinematicSettingsToggleChange",U))}; DX.prototype.VP=function(){this.U&&this.lM.Px(this);GP.prototype.VP.call(this)};g.c(dg,pB);dg.prototype.updateCinematicSettings=function(U){this.U=U;var O;(O=this.menuItem)==null||O.PA(U);this.api.publish("onCinematicSettingsVisibilityChange",U)};g.c(f14,pB);g.c(WL,pB);WL.prototype.setCreatorEndscreenVisibility=function(U){var O;(O=tM(this.api.nE()))==null||O.ri(U)}; WL.prototype.U=function(U){function O(S){S==="creatorendscreen"&&(S=tM(M.api.nE()))&&S.MHA(M.hideButton)} var M=this;this.hideButton=U;this.events.j(this.api,"modulecreated",O);O("creatorendscreen")};g.c(ND,GP);ND.prototype.B=function(U){this.X(U?1:0)}; ND.prototype.V=function(){var U=this.hasDrcAudioTrack(),O=this.U()===1&&U;$2(this,O);this.setEnabled(U)}; ND.prototype.VP=function(){this.lM.Px(this);GP.prototype.VP.call(this)};g.c(vL,pB);vL.prototype.getDrcUserPreference=function(){return this.U}; vL.prototype.setDrcUserPreference=function(U){g.iC("yt-player-drc-pref",U,31536E3);U!==this.U&&(this.U=U,this.updateEnvironmentData(),this.V()&&this.api.Oq())}; vL.prototype.updateEnvironmentData=function(){this.api.J().e5=this.U===1}; vL.prototype.V=function(){var U,O,M=(U=this.api.getVideoData())==null?void 0:(O=U.B)==null?void 0:O.U;if(!M)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var S,p,h=(S=this.api.kM())==null?void 0:(p=S.ZN)==null?void 0:p.id;return A6(M,function(J){var f;return J.audio.U&&((f=J.ZN)==null?void 0:f.id)===h})}return A6(M,function(J){var f; return((f=J.audio)==null?void 0:f.U)===!0})};g.c(BL,pB);BL.prototype.onVideoDataChange=function(){var U=this,O=this.api.getVideoData();this.api.Le("embargo",1);var M=O==null?void 0:O.ul.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(M==null?0:M.length)?l1e(this,M.filter(function(S){return FMw(U,S)})):(O==null?0:O.cueRanges)&&l1e(this,O.cueRanges.filter(function(S){return FMw(U,S)}))}; BL.prototype.V=function(U){return U.embargo!==void 0}; BL.prototype.VP=function(){pB.prototype.VP.call(this);this.U={}};g.c(x2,pB); x2.prototype.addEmbedsConversionTrackingParams=function(U){var O=this.api.J(),M=O.widgetReferrer,S=O.Rl,p=this.U,h="",J=O.getWebPlayerContextConfig();J&&(h=J.embedsIframeOriginParam||"");M.length>0&&(U.embeds_widget_referrer=M);S.length>0&&(U.embeds_referring_euri=S);O.X&&h.length>0&&(U.embeds_referring_origin=h);J&&J.embedsFeature&&(U.feature=J.embedsFeature);p.length>0&&(O.T("embeds_web_enable_lite_experiment_control_arm_logging")?p.unshift(28572):g.zI(g.KL(O))&&p.unshift(159628),O=p.join(","),O= g.Ud()?O:g.DT(O,4),U.source_ve_path=O);this.U.length=0};g.c(GBy,pB);g.c($Gq,pB);g.c(bz,g.C);bz.prototype.VP=function(){g.C.prototype.VP.call(this);this.U=null;this.V&&this.V.disconnect()};g.c(jyy,pB);g.c(Rg,g.r);Rg.prototype.show=function(){g.r.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Rg.prototype.onVideoDataChange=function(U){var O,M,S=(O=this.api.getVideoData())==null?void 0:(M=O.getPlayerResponse())==null?void 0:M.playabilityStatus;S&&(O=ebW(S),g.a(this.api.getPlayerStateObject(),128)||U==="dataloaderror"||!O?(this.V=0,tq(this),this.hide()):(U=(O.remainingTimeSecs||0)*1E3,U>0&&(this.show(),this.updateValue("label",BZ(O.label)),zbW(this,U))))}; Rg.prototype.VP=function(){tq(this);g.r.prototype.VP.call(this)};g.c(cWi,pB);g.c(Y2,g.r);Y2.prototype.onClick=function(){this.md.logClick(this.element);this.md.ZQ("onFullerscreenEduClicked")}; Y2.prototype.PA=function(){this.md.isFullscreen()?this.U?this.fade.hide():this.fade.show():this.hide();this.md.logVisibility(this.element,this.md.isFullscreen()&&!this.U)};g.c(me,pB);me.prototype.updateFullerscreenEduButtonSubtleModeState=function(U){var O;(O=this.U)!=null&&(g.ea(O.element,"ytp-fullerscreen-edu-button-subtle",U),U&&!O.V&&(O.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),Ag(O.md,O.element,O),O.V=!0))}; me.prototype.updateFullerscreenEduButtonVisibility=function(U){var O;(O=this.U)!=null&&(O.U=U,O.PA())};g.c(DG4,g.r);g.c(Nx5,pB);g.c(Aq,pB);Aq.prototype.getSphericalProperties=function(){var U=g.qi(this.api.nE());return U?U.getSphericalProperties():{}}; Aq.prototype.setSphericalProperties=function(U){if(U){var O=g.qi(this.api.nE());O&&O.setSphericalProperties(U,!0)}};g.c(Ig,pB);g.y=Ig.prototype;g.y.createClientVe=function(U,O,M,S){this.api.createClientVe(U,O,M,S===void 0?!1:S)}; g.y.createServerVe=function(U,O,M){this.api.createServerVe(U,O,M===void 0?!1:M)}; g.y.setTrackingParams=function(U,O){this.api.setTrackingParams(U,O)}; g.y.logClick=function(U,O){this.api.logClick(U,O)}; g.y.logVisibility=function(U,O,M){this.api.logVisibility(U,O,M)}; g.y.hasVe=function(U){return this.api.hasVe(U)}; g.y.destroyVe=function(U){this.api.destroyVe(U)};var Bxm=!1;nB.prototype.setPlaybackRate=function(U){this.playbackRate=Math.max(1,U)}; nB.prototype.getPlaybackRate=function(){return this.playbackRate};qD.prototype.aP=function(U){var O=g.hO(U.info.U.info,this.DQ.KE),M=U.info.Sc+this.X,S=U.info.startTime*1E3;if(this.policy.Rl)try{S=this.policy.Rl?g.hX(U)*1E3:U.info.startTime*1E3}catch(J){Math.random()>.99&&this.logger&&(S=mv(U.U).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:U.info.Qr(),encodedDataView:g.cp(S,4)})),S=U.info.startTime*1E3}var p=U.info.clipId,h=this.policy.Rl?g.Wp5(U)*1E3:U.info.duration*1E3;this.policy.Rl&&(S<0||h<0)&&(this.logger&&(this.logger({missingSegInfo:U.info.Qr(), startTimeMs:S,durationMs:h}),this.policy.TB||(S<0&&(S=U.info.startTime*1E3),h<0&&(h=U.info.duration*1E3))),this.policy.TB&&(S<0&&(S=U.info.startTime*1E3),h<0&&(h=U.info.duration*1E3)));return{formatId:O,Sc:M,startTimeMs:S,clipId:p,hW:h}}; qD.prototype.tK=function(U){this.timestampOffset=U};KB.prototype.seek=function(U,O){U!==this.U&&(this.seekCount=0);this.U=U;var M=this.videoTrack.V,S=this.audioTrack.V,p=this.audioTrack.I_,h=KMw(this,this.videoTrack,U,this.videoTrack.I_,O);O=KMw(this,this.audioTrack,this.policy.sX?U:h,p,O);U=Math.max(U,h,O);this.G=!0;this.DQ.isManifestless&&(XZ5(this,this.videoTrack,M),XZ5(this,this.audioTrack,S));return U}; KB.prototype.isSeeking=function(){return this.G}; KB.prototype.r$=function(U){this.B=U}; var Z6i=2/24;var EDi=0;g.y=s9.prototype;g.y.oS=function(){this.Z=this.now();ZDJ(this.Kr,this.Z);this.sQ.oS()}; g.y.JX=function(U,O){var M=this.policy.V?(0,g.nM)():0;gV(this,U,O);U-this.C<10&&this.V>0||this.VK(U,O);this.sQ.JX(U,O);this.policy.V&&(U=(0,g.nM)()-M,this.AG+=U,this.pE=Math.max(U,this.pE))}; g.y.VK=function(U,O){var M=(U-this.C)/1E3,S=O-this.B;this.A6||(Bn(this.Kr,M,S),this.nF(M,S));this.C=U;this.B=O}; g.y.Gv=function(){this.sA&&LMw(this);this.sQ.Gv()}; g.y.hX=function(U){this.sA||(this.sA=this.G-this.HV+U,this.WV=this.G,this.F9=this.D)}; g.y.Be=function(U,O){U=U===void 0?this.D:U;O=O===void 0?this.G:O;this.V>0||(this.Y=U,this.V=O,this.yP=this.isActive=!0)}; g.y.o3=function(){return this.TJ||2}; g.y.HF=function(){}; g.y.Wo=function(){var U,O={rn:this.requestNumber,rt:(this.D-this.U).toFixed(),lb:this.G,stall:(1E3*this.X).toFixed(),ht:(this.Z-this.U).toFixed(),elt:(this.Y-this.U).toFixed(),elb:this.V,d:(U=this.QP)==null?void 0:U.g3()};this.url&&vDq(O,this.url);this.policy.V&&(O.mph=this.pE.toFixed(),O.tph=this.AG.toFixed());O.ulb=this.Ca;O.ult=this.ol;O.abw=this.Rl;return O}; g.y.now=function(){return(0,g.nM)()}; g.y.deactivate=function(){this.isActive&&(this.isActive=!1)};g.c(SF,s9);g.y=SF.prototype;g.y.Wo=function(){var U=s9.prototype.Wo.call(this);U.pb=this.Cj;U.pt=(1E3*this.w7).toFixed();U.se=this.EQ;return U}; g.y.lO=function(){var U=this.sQ;this.Yy||(this.Yy=U.lO?U.lO():1);return this.Yy}; g.y.fA=function(){return this.y5?this.lO()!==1:!1}; g.y.ou=function(U,O,M){if(!this.hG){this.hG=!0;if(!this.A6){gV(this,U,O);this.VK(U,O);var S=this.lO();this.EQ=M;if(!this.A6)if(S===2){S=U-this.Y0)||pV(this,S,O),this.V>0&&Nn(this.Kr, O,this.X));U=(U-this.U)/1E3||.01;this.policy.Y&&!(this.V>0)||Wn(this.Kr,U,this.B,oDy(this),this.RV)}this.deactivate()}}; g.y.zr=function(U,O,M){M&&(this.Yy=2);U<0&&this.TJ&&(U=this.TJ);O?this.hZ+=U:this.HA+=U}; g.y.o3=function(){return this.HA||this.hZ||s9.prototype.o3.call(this)}; g.y.VK=function(U,O){var M=(U-this.C)/1E3,S=O-this.B,p=this.lO();this.isActive?p===1&&((S>0||this.policy.G)&&(M>.2||S<1024)?(this.X+=M,S>0&&M>.2&&pV(this,this.rC?M:.05,S),this.r7=!0):S>0&&(pV(this,M,S),this.r7=!0)):O&&O>=this.policy.U&&this.Be(U,O);s9.prototype.VK.call(this,U,O)}; g.y.FR=function(U){if(!this.A6){gV(this,U,this.G);var O=(U-this.U)/1E3;this.lO()!==2&&this.V>0&&(this.X+=(U-this.C)/1E3,Nn(this.Kr,this.B,this.X));Wn(this.Kr,O,this.B,oDy(this),this.RV,!0);U=(U-this.C)/1E3;Bn(this.Kr,U,0);this.nF(U,0)}}; g.y.Be=function(U,O){U=U===void 0?this.D:U;O=O===void 0?this.G:O;if(!(this.V>0)&&(s9.prototype.Be.call(this,U,O),this.lO()===1)){O=(this.Z-this.U)/1E3;var M=(U-this.Z)/1E3;this.y5&&hh(this,this.now());this.Qa||this.A6||(this.TJ&&(M=Math.max(0,M-this.TJ)),U=this.Kr,U.Y.Wi(1,O),U.QP.Wi(1,M))}}; g.y.WP=function(){this.y5&&hh(this,this.now());return this.TY}; g.y.DC=function(){var U;if(U=this.B>this.wU)U=(U=this.B)?U>=this.policy.U:!1;return U}; g.y.Q0=function(){return this.NL}; g.y.Iq=function(U){U=U===void 0?this.now():U;if(this.y5){hh(this,U);if(this.Yy?this.fA():this.BA!==this.Ka){var O=this.Ka;if(U0?M+U:M+Math.max(U,O)}; g.y.Ff=function(){return this.now()-this.Y}; g.y.bG=function(){return(this.B-this.V)*1E3/this.Ff()||0}; g.y.FJ=function(){return this.Y};Jh.prototype.feed=function(U){bG(this.U,U);this.Ce()}; Jh.prototype.Ce=function(){if(this.X){if(!this.U.getLength())return;var U=this.U.split(this.B-this.V),O=U.L7;U=U.Aa;if(!this.sQ.hX(this.X,O,this.V,this.B))return;this.V+=O.getLength();this.U=U;this.V===this.B&&(this.X=this.B=this.V=void 0)}for(;;){var M=0;U=g.D(OSw(this.U,M));O=U.next().value;M=U.next().value;M=g.D(OSw(this.U,M));U=M.next().value;M=M.next().value;if(O<0||U<0)break;if(!this.U.nG(M,U)){if(!this.sQ.hX||!this.U.nG(M,1))break;M=this.U.split(M).Aa;this.sQ.hX(O,M,0,U)&&(this.X=O,this.V= M.getLength(),this.B=U,this.U=new xZ([]));break}U=this.U.split(M).Aa.split(U);M=U.Aa;this.sQ.VV(O,U.L7);this.U=M}}; Jh.prototype.dispose=function(){this.U=new xZ};g.y=yO.prototype;g.y.p_=function(){return 0}; g.y.xk=function(){return null}; g.y.mX=function(){return null}; g.y.Gr=function(){return this.state>=1}; g.y.isComplete=function(){return this.state>=3}; g.y.xT=function(){return this.state===5}; g.y.onStateChange=function(){}; g.y.YZ=function(U){var O=this.state;this.state=U;this.onStateChange(O);this.callback&&this.callback(this,O)}; g.y.Zj=function(U){U&&this.state=this.xhr.HEADERS_RECEIVED}; g.y.getResponseHeader=function(U){try{return this.xhr.getResponseHeader(U)}catch(O){return""}}; g.y.Yq=function(){return+this.getResponseHeader("content-length")}; g.y.E9=function(){return this.V}; g.y.kD=function(){return this.status>=200&&this.status<300&&!!this.V}; g.y.zR=function(){return this.U.getLength()>0}; g.y.Wu=function(){var U=this.U;this.U=new xZ;return U}; g.y.ID=function(){return this.U}; g.y.abort=function(){this.GY=!0;this.xhr.abort()}; g.y.Dw=function(){return!0}; g.y.YW=function(){return this.B}; g.y.XT=function(){return""};g.y=SH1.prototype;g.y.getResponseHeader=function(U){return U==="content-type"?this.U.get("type"):""}; g.y.abort=function(){}; g.y.tv=function(){return!0}; g.y.Yq=function(){return this.range.length}; g.y.E9=function(){return this.loaded}; g.y.kD=function(){return!!this.loaded}; g.y.zR=function(){return!!this.V.getLength()}; g.y.Wu=function(){var U=this.V;this.V=new xZ;return U}; g.y.ID=function(){return this.V}; g.y.Dw=function(){return!0}; g.y.YW=function(){return!!this.error}; g.y.XT=function(){return this.error};g.y=hSq.prototype;g.y.start=function(U){var O={credentials:"include",cache:"no-store"};Object.assign(O,this.D);this.X&&(O.signal=this.X.signal);U=new Request(U,O);fetch(U).then(this.Z,this.onError).then(void 0,es)}; g.y.onDone=function(){this.GY()||this.sQ.Gv()}; g.y.getResponseHeader=function(U){return this.responseHeaders?this.responseHeaders.get(U):null}; g.y.tv=function(){return!!this.responseHeaders}; g.y.E9=function(){return this.V}; g.y.Yq=function(){return+this.getResponseHeader("content-length")}; g.y.kD=function(){return this.status>=200&&this.status<300&&!!this.V}; g.y.zR=function(){return!!this.U.getLength()}; g.y.Wu=function(){this.zR();var U=this.U;this.U=new xZ;return U}; g.y.ID=function(){this.zR();return this.U}; g.y.GY=function(){return this.G}; g.y.abort=function(){this.B&&this.B.cancel().catch(function(){}); this.X&&this.X.abort();this.G=!0}; g.y.Dw=function(){return!0}; g.y.YW=function(){return this.C}; g.y.XT=function(){return this.errorMessage};g.y=Jcy.prototype;g.y.onDone=function(){if(!this.GY){this.status=this.xhr.status;try{this.response=this.xhr.response,this.V=this.response.byteLength}catch(U){}this.U=!0;this.sQ.Gv()}}; g.y.yV=function(){this.xhr.readyState===2&&this.sQ.oS()}; g.y.Ji=function(U){this.GY||(this.status=this.xhr.status,this.U||(this.V=U.loaded),this.sQ.JX((0,g.nM)(),U.loaded))}; g.y.tv=function(){return this.xhr.readyState>=2}; g.y.getResponseHeader=function(U){try{return this.xhr.getResponseHeader(U)}catch(O){return g.rz(Error("Could not read XHR header "+U)),""}}; g.y.Yq=function(){return+this.getResponseHeader("content-length")}; g.y.E9=function(){return this.V}; g.y.kD=function(){return this.status>=200&&this.status<300&&this.U&&!!this.V}; g.y.zR=function(){return this.U&&!!this.response&&!!this.response.byteLength}; g.y.Wu=function(){this.zR();var U=this.response;this.response=void 0;return new xZ([new Uint8Array(U)])}; g.y.ID=function(){this.zR();return new xZ([new Uint8Array(this.response)])}; g.y.abort=function(){this.GY=!0;this.xhr.abort()}; g.y.Dw=function(){return!1}; g.y.YW=function(){return!1}; g.y.XT=function(){return""};g.Gs.prototype.info=function(){}; g.Gs.prototype.debug=function(){}; g.Gs.prototype.U=function(U){$P.apply(null,[5,this.tag,U].concat(g.N(g.m4.apply(1,arguments))))}; var Fby=new Map,$IJ=new Map,lwg=new function(){var U=this;this.U=new Map;this.BB={jGA:function(){return U.U}}};g.c(Ts,g.C);Ts.prototype.s9=function(){if(!this.Jl.length)return[];var U=this.Jl;this.Jl=[];this.B=g.E4(U).info;return U}; Ts.prototype.Hd=function(){return this.Jl}; Ts.prototype.VP=function(){g.C.prototype.VP.call(this);this.U=null;this.Jl.length=0;this.xp.length=0;this.B=null};g.c(eF,g.C);g.y=eF.prototype; g.y.hXA=function(){if(!this.GY()){var U=(0,g.nM)(),O=!1;if(this.policy.dO){U=U-(this.timing.V>0?this.timing.Y:this.timing.U)-this.timing.o3()*1E3;var M=v$(H7(this),!1);U>=2E3*M?O=!0:U>=this.policy.NT*M&&(this.U=this.policy.sU)}else if(this.timing.V>0){if(this.G){this.policy.F9&&(this.U=0);return}var S=this.timing.Q0();this.timing.Iq();var p=this.timing.Q0();p-S>=this.policy.EF*.8?(this.U++,this.logger.debug(function(){return"Mispredicted by "+(p-S).toFixed(0)}),O=this.U>=5):this.U=0}else{var h=U- this.timing.WP(); this.policy.sU&&h>0&&(this.U+=1);O=v$(H7(this),!1)*this.policy.Pw;(O=h>O*1E3)&&this.logger.debug(function(){return"Elbow late by "+h.toFixed(3)})}this.U>0&&this.sQ.cz(); O?this.He():this.V.start()}}; g.y.He=function(){this.X=!0;this.sQ.H0();this.lastError="net.timeout";c7(this)}; g.y.canRetry=function(U){var O=H7(this);U=U?this.policy.Ma:this.policy.gs;return O.timedOut0&&(O=O.U.getUint8(0),U.ubyte=O,M===1&&O===0&&(U.b248180278=!0))}this.PN&&(U.rc=this.policy.GD?this.PN:this.PN.toString());this.policy.dH&&this.Nu&&(U.tr=this.Nu);U.itag=this.info.xp[0].U.info.itag;U.ml=""+ +this.info.xp[0].U.Sv();U.sq=""+this.info.xp[0].Sc;this.bV&&(U.ifi=""+ +Ac(this.info.uM.B));this.PN!==410&&this.PN!==500&&this.PN!==503||(U.fmt_unav="true");var S;(M=this.errorMessage||((S=this.xhr)==null? void 0:S.XT()))&&(U.msg=M);this.h3&&(U.smb="1");this.info.isDecorated()&&(U.sdai="1");return U}; g.y.G9=function(){return kBe(this.timing)}; g.y.XT=function(){return this.xhr.XT()||""}; g.y.DC=function(){return this.isComplete()||this.timing.DC()}; g.y.JX=function(){!this.GY()&&this.xhr&&(this.PN=this.xhr.status,this.policy.zi&&this.ub&&this.zD(!1),this.Xc()?this.Zj(2):!this.bD&&this.DC()&&(this.Zj(),this.bD=!0))}; g.y.oS=function(){if(!this.GY()&&this.xhr){if(!this.v_&&this.xhr.tv()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var U=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.v_=((0,g.nM)()-U)/1E3}this.xhr.tv()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Ib&&!IFw()&&g.iC("yt-player-headers-readable",!0,2592E3);U=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var O=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),M;(M=this.Jv)==null||M.stop();this.mG=U||this.mG; this.pJ=O||this.pJ}}; g.y.Gv=function(){var U=this.xhr;if(!this.GY()&&U){this.PN=U.status;U=this.Rk(U);if(this.policy.dH){var O;(O=this.Jv)==null||O.stop()}U===5?c7(this.TZ):this.YZ(U);this.TZ.V.stop()}}; g.y.Rk=function(U){var O=this;aw4(this);if(D4(this.TZ,this.xhr.status,this.WR?this.timing.yP||this.pK:this.xhr.kD(),!1,this.LG))return 5;var M="";dV(this.TZ,this.xhr)&&(M=ccg(this.TZ,this.xhr));if(M)return Nu(H7(this.TZ)),this.info.jh(this.bV,M),3;M=U.E9();if(this.u2){this.zD(!0);aw4(this);if(D4(this.TZ,this.xhr.status,this.timing.yP||this.pK,!1,this.LG))return 5;if(!this.XA){if(this.pK)return Nu(H7(this.TZ)),3;this.TZ.lastError="net.closed";return 5}}else{if(D4(this.TZ,this.xhr.status,this.xhr.kD(), !1,this.LG))return 5;var S=this.info.B;if(S&&S!==M||U.YW())return this.TZ.lastError="net.closed",5;this.zD(!0)}S=sve(this)?U.getResponseHeader("X-Bandwidth-Est"):0;if(U=sve(this)?U.getResponseHeader("X-Bandwidth-Est3"):0)this.VS=!0,this.policy.Ht&&(S=U);HSw(this.TZ,M,S?Number(S):0,this.info.xp[0].type===5);this.logger.debug(function(){var p=O.timing;return"Succeeded, rtpd="+(p.w7*1E3+p.U-Date.now()).toFixed(0)}); return 4}; g.y.canRetry=function(){this.GY();var U=this.info.isDecorated();return this.TZ.canRetry(U)}; g.y.onStateChange=function(){this.isComplete()&&(this.policy.Ho?this.H0():this.timing.deactivate())}; g.y.He=function(){this.TZ.He()}; g.y.cz=function(){this.callback&&this.callback(this,this.state)}; g.y.Vu=function(){return this.TZ.Vu()}; g.y.dispose=function(){yO.prototype.dispose.call(this);this.TZ.dispose();var U;(U=this.Jv)==null||U.dispose();this.policy.Ho||this.H0()}; g.y.H0=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.y.s9=function(){if(!this.Hd().length)return[];this.Yx=!0;return this.ub.s9()}; g.y.Xc=function(){if(this.state<1)return!1;if(this.ub&&this.ub.Jl.length)return!0;var U;return((U=this.xhr)==null?0:U.zR())?!0:!1}; g.y.Hd=function(){this.zD(!1);return this.ub?this.ub.Hd():[]}; g.y.zD=function(U){try{if(U||this.xhr.tv()&&this.xhr.zR()&&!dV(this.TZ,this.xhr)&&!this.XN)this.ub||(this.ub=new Ts(this.policy,this.info.xp)),this.xhr.zR()&&(this.u2?this.u2.feed(this.xhr.Wu()):jF(this.ub,this.xhr.Wu(),U&&!this.xhr.zR()))}catch(O){this.u2?ZSy(this,O):g.rz(O)}}; g.y.VV=function(U,O){switch(U){case 21:U=O.split(1).Aa;Kbw(this,U);break;case 22:this.XA=!0;jF(this.ub,new xZ([]),!0);break;case 43:if(U=aG(new uG(O),1))this.info.jh(this.bV,U),this.pK=!0;break;case 45:O=hc(new uG(O));U=O.J$;O=O.Rq;U&&O&&(this.UM=U/O);break;case 44:this.Ln=ARJ(new uG(O));var M,S,p;!this.timing.yP&&((M=this.Ln)==null?void 0:M.action)===4&&((S=this.Ln)==null?0:(p=S.pD)==null?0:p.WR)&&(this.WR=this.Ln.pD.WR);break;case 53:this.policy.dH&&(U=t74(new uG(O)).N9)&&(this.Jv||(this.N9=U,this.Jv= new g.UM(this.Ec,U,this)),this.Jv.start());break;case 60:this.k7=pS(new uG(O));break;case 58:if(U=JRq(new uG(O)))this.b8=U,U.b8===3&&(this.LG=!0)}}; g.y.hX=function(U,O,M,S){M||this.timing.hX(S);if(U!==21)return!1;if(U=this.policy.zi)if(S=O.getLength()+M===S,U*=this.info.xp[0].U.info.a_,!S&&O.getLength()0)return!1;if(!this.xhr.tv())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.u2)var U=!this.info.B;else this.xhr.Yq()?U=!1:(U=this.xhr.getResponseHeader("content-type"),U=U==="audio/mp4"||U==="video/mp4"||U==="video/webm");if(!U)return!1;if(isNaN(this.info.Og)){U=this.xhr.getResponseHeader("x-head-seqnum");var O=this.timing.policy.D?1:0;if(!U)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(U)>this.info.xp[0].Sc+O)return!1}return!0}; g.y.C_=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.y.xk=function(){this.xhr&&(this.mG=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.mG}; g.y.mX=function(){this.xhr&&(this.pJ=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.pJ}; g.y.eH=function(){return this.TZ.eH()}; g.y.Ec=function(){if(!this.GY()&&this.xhr){this.Nu="heartbeat";var U=this.TZ;U.U+=2;this.cz()}};g.c(th,s9);g.y=th.prototype;g.y.VK=function(U,O){var M=(U-this.C)/1E3,S=O-this.B;this.V>0?S>0&&(this.BA&&(M>.2||S<1024?(this.X+=M,M>.2&&EcJ(this,.05,S)):EcJ(this,M,S)),this.Ka&&(this.TY+=S,this.HA+=M)):O>this.policy.U&&this.Be(U,O);s9.prototype.VK.call(this,U,O)}; g.y.ou=function(U,O){gV(this,U,O);this.VK(U,O);this.BA&&(O=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.V>0&&Nn(this.Kr,this.TY,this.X),U=(U-this.U)/1E3||.01,this.policy.Y&&!(this.V>0)||Wn(this.Kr,U,this.B,O,!1))}; g.y.FR=function(U){gV(this,U,this.G);var O=(U-this.C)/1E3;Bn(this.Kr,O,0);this.nF(O,0);!this.BA&&this.V>0||(O=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.V>0&&(this.X+=(U-this.C)/1E3,Nn(this.Kr,this.TY,this.X)),Wn(this.Kr,((U-this.U)/1E3||.01)*this.policy.ol,this.B,O,!1,!0))}; g.y.qR=function(U){U=U.m6||2147483647;(U&2)!==2&&(this.Ka=!1);(U&1)===1&&(this.BA=!0)}; g.y.dj=function(U){U=U.m6||2147483647;(U&2)===2&&(this.Ka=!1);(U&1)===1&&(this.BA=!1)}; g.y.FJ=function(){return this.Y}; g.y.Ff=function(){var U=this.Ka?this.now()-this.C:0;return Math.max(this.HA*1E3+U,1)}; g.y.bG=function(){return this.TY*1E3/this.Ff()}; g.y.Be=function(U,O){U=U===void 0?this.D:U;O=O===void 0?this.G:O;this.V>0||(s9.prototype.Be.call(this,U,O),O=this.Kr,U=(U-this.Z)/1E3,O.Y.Wi(1,(this.Z-this.U)/1E3),O.QP.Wi(1,U))}; g.y.HF=function(U){this.hZ=U}; g.y.Wo=function(){var U=s9.prototype.Wo.call(this);U.rbw=this.bG();U.rbe=+this.Ka;U.gbe=+this.BA;U.ackt=(this.hZ-this.U).toFixed();return U}; g.y.Iq=function(){}; g.y.Q0=function(){return NaN}; g.y.WP=function(){return this.U+this.snapshot.delay*1E3};YP.prototype.VV=function(U,O){O.getLength();switch(U){case 20:U=new uG(O);U={Lt:Z7(U,1),videoId:aG(U,2),itag:Z7(U,3),lmt:Z7(U,4),xtags:aG(U,5),PG:Z7(U,6),QB:KN(U,8),m2:Z7(U,9),vE0:Z7(U,10),startMs:Z7(U,11),durationMs:Z7(U,12),yF:Z7(U,14),timeRange:Et(U,15,ru1),zA:Z7(U,16),NC:Z7(U,17),clipId:aG(U,1E3)};this.mu(U);break;case 21:this.DR(O,!1);break;case 22:this.xE(O);break;case 31:U=oG(O,d8U);this.Fl(U);break;case 52:U=oG(O,Y71);this.oa(U);break;default:this.tV(U,O)}}; YP.prototype.mu=function(){}; YP.prototype.tV=function(){};g.c(mx,YP);g.y=mx.prototype; g.y.tV=function(U,O){O.getLength();switch(U){case 35:this.gR(O);break;case 44:this.If(O);break;case 43:this.JV(O);break;case 53:this.cZ(O);break;case 55:U=new uG(O);(U={timeline:Et(U,1,Ply),Frn:Et(U,2,Clq)},U.timeline)&&U.timeline.Fp&&this.sQ.WZ(U.timeline.Fp,U.timeline.Sgy,U.Frn);break;case 56:this.Cu();break;case 57:this.fd(O);break;case 42:this.bC(O);break;case 45:this.pg(O);break;case 59:this.G0(O);break;case 51:this.kt(O);break;case 49:this.qR(O);break;case 50:this.dj(O);break;case 47:this.T0(O); break;case 58:this.aS(O);break;case 61:this.sQ.BT.HF((0,g.nM)());break;case 66:this.iI(O);break;case 46:this.Ku(O);break;case 67:this.onSnackbarMessage(O)}}; g.y.kt=function(U){U=new uG(U);U={Eua:V4(U,1,MI),efZ:V4(U,2,MI)};this.sQ.kt(U)}; g.y.G0=function(U){var O=new uG(U);U=LN(O,1);var M=LN(O,2);O=LN(O,3);this.sQ.G0(U,M,O)}; g.y.pg=function(U){U=hc(new uG(U));this.sQ.pg(U)}; g.y.T0=function(U){U=oG(U,vYi);this.sQ.T0(U)}; g.y.bC=function(U){U=new uG(U);U={videoId:aG(U,1),formatId:Et(U,2,MI),endTimeMs:Z7(U,3),uOy:Z7(U,4),mimeType:aG(U,5),cK:Et(U,6,jFJ),indexRange:Et(U,7,jFJ),YO:Et(U,8,e3W)};this.sQ.bC(U)}; g.y.fd=function(U){U=Clq(new uG(U));this.sQ.fd(U)}; g.y.Cu=function(){this.sQ.Cu()}; g.y.gR=function(U){U=WE1(new uG(U));this.sQ.gR(U)}; g.y.cZ=function(U){U=t74(new uG(U));this.sQ.cZ(U)}; g.y.If=function(U){U=ARJ(new uG(U));this.sQ.If(U)}; g.y.JV=function(U){U={redirectUrl:aG(new uG(U),1)};this.sQ.JV(U)}; g.y.DR=function(U){var O=U.getUint8(0);if(U.getLength()!==1){U=U.split(1).Aa;var M=this.V[O]||null;M&&XQ(this.sQ.wD,O,M,U)}}; g.y.xE=function(U){U=U.getUint8(0);var O=this.V[U]||null;O&&this.sQ.xE(U,O)}; g.y.oa=function(U){this.sQ.oa(U)}; g.y.mu=function(U){var O=U.Lt,M=U.QB,S=U.PG,p=U.NC,h=U.zA,J=U.m2,f=U.startMs,F=U.durationMs,l=U.timeRange,G=U.yF,T=U.clipId,e=mc(U);U=eZh.has(oi[""+U.itag]);this.V[O]=e;this.sQ.zr(e,U,{Lt:O,QB:!!M,PG:S!=null?S:-1,m2:J!=null?J:-1,startMs:f!=null?f:-1,durationMs:F!=null?F:-1,yF:G,NC:p,zA:h,clipId:T,timeRange:l})}; g.y.qR=function(U){U={m6:Z7(new uG(U),1)};this.sQ.qR(U)}; g.y.dj=function(U){U={m6:Z7(new uG(U),1)};this.sQ.dj(U)}; g.y.Fl=function(U){this.sQ.Fl(U)}; g.y.aS=function(U){U=JRq(new uG(U));this.sQ.aS(U)}; g.y.iI=function(U){U={Tg:Et(new uG(U),1,bZw)};this.sQ.iI(U)}; g.y.onSnackbarMessage=function(U){U=Z7(new uG(U),1);this.sQ.onSnackbarMessage(U)}; g.y.Ku=function(U){U={reloadPlaybackParams:Et(new uG(U),1,h3i)};this.sQ.Ku(U)};g.c(Ah,g.C);g.y=Ah.prototype;g.y.wk=function(){return Array.from(this.hs.keys())}; g.y.Xj=function(U){U=this.hs.get(U);var O=U.Jl;U.zp+=O.getLength();U.Jl=new xZ;return O}; g.y.rL=function(U){return this.hs.get(U).rL}; g.y.OG=function(U){return this.hs.get(U).OG}; g.y.zr=function(U,O,M,S){this.hs.get(U)||wsU(this,U,O);O=this.hs.get(U);if(this.DQ){U=O9i(this,U,M);if(S)for(var p=g.D(U),h=p.next();!h.done;h=p.next()){h=h.value;var J=S;h.ol=J;h.startTime+=J;h.X+=J;h.C+=J}Uue(this,M.Lt,O,U)}else M.QB?O.hq=M.yF:O.Vb.push(M),O.EY.push(M)}; g.y.Gz=function(U){var O;return((O=this.hs.get(U))==null?void 0:O.xp)||[]}; g.y.Zj=function(){for(var U=g.D(this.hs.values()),O=U.next();!O.done;O=U.next())O=O.value,O.f2&&(O.Ji&&O.Ji(),O.f2=!1)}; g.y.xE=function(U,O){this.logger.debug(function(){return"[onMediaEnd] formatId: "+O}); var M=this.hs.get(O);if(IN){if(M&&!M.rL){if(M.ir.get(U))M.ir.get(U).IJ=!0;else{var S;((S=this.wH)==null?0:S.Dq)&&M.ir.set(U,{data:new xZ,rI:0,IJ:!0})}M.OG=!0}}else M&&!M.OG&&(M.OG=!0)}; g.y.s9=function(U){if(IN){var O=this.hs.get(U);if(O)for(var M=g.D(O.ir),S=M.next();!S.done;S=M.next()){var p=g.D(S.value);S=p.next().value;p=p.next().value;var h=O.D0.get(S);if(Xi(h[0])){if(!p.IJ)continue;var J=h,f=p.data;f.getLength();h=0;var F=[];J=g.D(J);for(var l=J.next();!l.done;l=J.next()){l=l.value;var G=l.B,T=RG(f,h,G);h+=G;F.push(new Sx(l,T))}O.yW.push.apply(O.yW,g.N(F))}else if(p.data.getLength()>0||!h[0].range&&p.IJ)f=void 0,h=h[0],F=p.rI,J=p.data,h.range||(f=p.IJ),l=J.getLength(),f=new Sx(gfg(h, h.V+F,l,f),J),p.rI+=f.info.B,O.yW.push(f);O.ir.get(S).data=new xZ;p.IJ&&O.ir.delete(S)}U=this.hs.get(U);if(!U)return[];O=U.yW;U.yW=[];M=g.D(O);for(S=M.next();!S.done;S=M.next())U.zp+=S.value.info.B;return O||[]}M=(O=this.hs.get(U))==null?void 0:O.ub;if(!M)return[];this.zD(U,M);return M.s9()}; g.y.Xc=function(U){if(IN)return CV(this,U);var O,M,S;return!!((M=(O=this.hs.get(U))==null?void 0:O.ub)==null?0:(S=M.Hd())==null?0:S.length)||CV(this,U)}; g.y.zD=function(U,O){for(;CV(this,U);){var M=this.Xj(U);var S=U;S=this.hs.get(S).rL&&!QO(this,S);jF(O,M,S&&kZi(this,U))}}; g.y.VP=function(){g.C.prototype.VP.call(this);for(var U=g.D(this.hs.keys()),O=U.next();!O.done;O=U.next())P7(this,O.value);var M;if((M=this.wH)==null?0:M.f9)for(U=g.D(this.hs.values()),O=U.next();!O.done;O=U.next())O=O.value,O.ir.clear(),O.D0.clear(),O.yW.length=0,O.xp.length=0,O.EY.length=0,O.Vb.length=0;this.hs.clear()}; var IN=!1;g.c(uf,g.C);g.y=uf.prototype;g.y.JX=function(){!this.GY()&&this.xhr&&(this.zD(!1),r8(this.sQ,this))}; g.y.oS=function(){}; g.y.Gv=function(){if(!this.GY()&&this.xhr){var U=this.Rk();U===5?c7(this.TZ):this.YZ(U);this.TZ.V.stop();var O;(O=this.VX)==null||O.stop()}}; g.y.Rk=function(){var U="";dV(this.TZ,this.xhr)&&(U=ccg(this.TZ,this.xhr));if(U)return this.info.uM.jh(this.bV,U),3;this.zD(!0);if(D4(this.TZ,this.xhr.status,this.xhr.kD(),this.info.fI(),this.LG))return 5;if(this.w5)return 3;HSw(this.TZ,this.xhr.E9(),0,this.fI());this.policy.Oj&&pB5(this.sQ);return 4}; g.y.zD=function(U){var O=this.xhr;if((U||!dV(this.TZ,this.xhr))&&O.zR()){U=O.Wu();var M=U.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+M}); this.u2.feed(U)}}; g.y.VV=function(U,O){this.xhr.Dw()&&U===21&&Sie(this);this.ax.VV(U,O)}; g.y.hX=function(U,O,M,S){M||(this.BT.hX(S),this.policy.ag&&U===21&&Sie(this));if(U!==21)return!1;this.BT.yP=!0;U=O.getLength();M||(this.bu=O.getUint8(0),O=O.split(1).Aa);var p=this.policy.vt,h=this.ax.V[this.bu],J=this.DQ.B.get(h);if(p&&J&&(p*=J.info.a_,U+M!==S&&U0){this.policy.dO&&this.TZ.V.stop();U=this.BT.Ff();O=this.BT.bG();var M=p$m(this,U);if(!(O>M.qC||M.FB>0&&this.info.vz()>M.FB)){this.kB=(0,g.nM)();var S;(S=this.VX)==null||S.stop();this.policy.Oj&&(S=this.sQ,U={H$:Math.round(O*U/1E3),p$:U},S.policy.Oj&&(S.QP=U,S.s7++));this.He()}}}}; g.y.He=function(){this.TZ.He()}; g.y.If=function(U){this.sQ.If(U,this.Fe())}; g.y.JV=function(U){this.w5=!0;this.info.uM.jh(this.bV,U.redirectUrl)}; g.y.qR=function(U){this.BT instanceof th&&this.BT.qR(U)}; g.y.dj=function(U){this.BT instanceof th&&this.BT.dj(U)}; g.y.WZ=function(U,O,M){this.sQ.WZ(U,O,M,this.Fe())}; g.y.bC=function(U){var O=U.formatId,M=mc({itag:O.itag,lmt:O.lmt,xtags:O.xtags}),S,p,h=new If(((S=U.cK)==null?void 0:S.first)||0,((p=U.cK)==null?void 0:p.yG)||0),J,f;S=new If(((J=U.indexRange)==null?void 0:J.first)||0,((f=U.indexRange)==null?void 0:f.yG)||0);if(!this.DQ.B.get(M)){M=U.YO||{};if(this.policy.aG){var F,l;U=(F=U.mimeType)!=null?F:"";F=(l=O.itag)!=null?l:0;l=oi[""+F];M.mimeType=l!=="9"&&l!=="9h"?U:'video/webm; codecs="'+["vp09",l==="9h"?"02":"00","51",l==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else M.mimeType=U.mimeType;M.itag=O.itag;M.lastModified=""+(O.lmt||0);M.xtags=O.xtags;O=this.DQ;l=v3("");F=W3(M,null);ex(O,new $b(l,F,h,S))}}; g.y.pg=function(U){this.sQ.pg(U)}; g.y.onSnackbarMessage=function(U){if(this.policy.Jx)this.sQ.onSnackbarMessage(U)}; g.y.Fl=function(U){this.sE=U;this.S1=(0,g.nM)();this.sQ.Fl(U)}; g.y.G0=function(U,O,M){this.sQ.G0(U,O,M)}; g.y.fd=function(U){U.scope===2&&(this.NDd=U);this.sQ.fd(U)}; g.y.Cu=function(){this.z8=!0;this.sQ.Cu()}; g.y.kt=function(U){this.policy.Op&&this.sQ.kt(U)}; g.y.T0=function(U){this.sQ.T0(U,this.Fe())}; g.y.aS=function(U){U.b8===3&&(this.LG=!0);this.sQ.aS(U)}; g.y.iI=function(U){this.sQ.iI(U)}; g.y.Ku=function(U){this.sQ.Ku(U)}; g.y.canRetry=function(){this.GY();return this.TZ.canRetry(!1)}; g.y.dispose=function(){if(!this.GY()){g.C.prototype.dispose.call(this);this.TZ.dispose();var U;(U=this.VX)==null||U.dispose();this.YZ(-1);this.H0()}}; g.y.YZ=function(U){this.state=U;r8(this.sQ,this)}; g.y.fI=function(){return this.info.fI()}; g.y.c9=function(){return this.z8}; g.y.K_=function(){return this.NDd}; g.y.zr=function(U,O,M){M.clipId&&(this.clipId=M.clipId);this.policy.G&&!O&&(this.G5=M.m2,this.l_=M.startMs);var S=0;this.policy.RA&&this.Yl&&this.clipId&&(S=iz(this.Yl,this.clipId)/1E3);this.wD.zr(U,O,M,S);this.policy.b6&&this.sE&&this.BT instanceof SF&&(S=this.sE.b3,this.BT.zr(M.durationMs/1E3,O,S>0&&M.m2+1>=S));this.wD.hs.get(U).eR=!0}; g.y.xE=function(U,O){this.wD.xE(U,O)}; g.y.oa=function(U){this.requestIdentifier=U}; g.y.s9=function(U){return this.wD.s9(U)}; g.y.Gz=function(U){return this.wD.Gz(U)}; g.y.Xc=function(U){return this.wD.Xc(U)}; g.y.wk=function(){return this.wD.wk()}; g.y.lO=function(){return 1}; g.y.Fe=function(){return this.BT.requestNumber}; g.y.dh=function(){return this.requestIdentifier}; g.y.KV=function(){return this.clipId}; g.y.kI=function(){return this.bV.kI()}; g.y.XY=function(){this.H0()}; g.y.H0=function(){this.BT.deactivate();var U;(U=this.xhr)==null||U.abort()}; g.y.isComplete=function(){return this.state>=3}; g.y.zL=function(){return this.state===3}; g.y.xT=function(){return this.state===5}; g.y.xl=function(){return this.state===4}; g.y.E1=function(){return this.isComplete()}; g.y.Gr=function(){return this.state>=1}; g.y.Vu=function(){return this.policy.F9?this.TZ.Vu():0}; g.y.cz=function(){this.policy.F9&&r8(this.sQ,this)}; g.y.Ne=function(){return Ck5(this.info)}; g.y.eH=function(){return this.TZ.eH()}; g.y.bO=function(){var U=DIq(this.TZ);Object.assign(U,uBU(this.info));U.req="sabr";U.rn=this.Fe();var O;if((O=this.xhr)==null?0:O.status)U.rc=this.policy.GD?this.xhr.status:this.xhr.status.toString();var M;(O=(M=this.xhr)==null?void 0:M.XT())&&(U.msg=O);this.kB&&(M=p$m(this,this.kB-this.BT.FJ()),U.letm=M.opc,U.mrbps=M.qC,U.mram=M.FB);return U}; g.y.z9=function(){return{G5:this.G5,l_:this.l_,isDecorated:this.info.isDecorated()}};hU1.prototype.tick=function(U,O){this.ticks[U]=O?window.performance.timing.navigationStart+O:(0,g.nM)()};g.c(Z4,g.H_);g.y=Z4.prototype; g.y.Vd=function(U,O,M,S){if(this.policy.Gw&&this.policy.G){var p=U.LO||null;p?(Due(this,U.Sc,VO(this,U.startTime,U.Sc),{LO:p,Sc:U.Sc,zt:!!O,i$:M},this.B),S&&this.B&&this.B.pF(U.Sc,U.startTime,this.V,(O==null?void 0:O.U)||[],(O==null?void 0:O.V)||[],(O==null?void 0:O.B)||[],M,(O==null?void 0:O.hN)||0,(O==null?void 0:O.X)||void 0)):this.V===1&&rV(this,5,"noad")}else{var h=!1;this.policy.NL&&(h=M?this.sA===U.Sc:this.BA===U.Sc);if(this.B&&S&&!h){S=[];h=[];var J=[],f=void 0,F=0;O&&(S=O.U,h=O.V,J=O.B,f= O.X,F=O.hN,this.al("sdai",{sq:U.Sc,ssvicpns:S.join("."),ssvid:h.join(".")}));this.policy.NL&&(M?this.sA=U.Sc:this.BA=U.Sc);this.B.pF(U.Sc,U.startTime,this.V,S,h,J,M,F,f)}this.policy.NL?M&&(this.V===1&&rV(this,5,"noad"),U.Sc!==((p=this.U)==null?void 0:p.Sc)&&(zUe(this,U,O,M),isNaN(U.startTime)||aN(this,U.Sc,VO(this,U.startTime,U.Sc),!!O,this.B))):M&&zUe(this,U,O)}}; g.y.Lb=function(U,O,M){var S=this.videoTrack.U.index.zZ()<=O;this.U={LO:U,Sc:O,zt:M};S&&KV(this,U,O)}; g.y.Xm=function(){this.B&&this.B.Xm()}; g.y.al=function(U,O,M){(U!=="sdai"||this.policy.Lg||(M===void 0?0:M))&&this.rG.al(U,O)}; g.y.u7=function(U,O){var M=this.videoTrack.U.index.Eg(U);if(M>=0){var S;var p=((S=O.HB.YM(M,2))==null?void 0:S.NQ)||"";if(this.policy.G||p)return O.M7(U,M),E9(this.rG,U,U,M),this.al("sdai",{cmskpad:1,t:U.toFixed(3),sq:M}),!0}this.al("sdai",{cmskpad:0,t:U.toFixed(3),sq:M});return!1};g.c(Uv,g.C);Uv.prototype.Ro=function(U,O,M){M=M===void 0?{}:M;this.policy.Ov=Cu(U,M,this.X,O===void 0?!1:O)};pW.prototype.oD=function(U){var O=this;if(this.policy.mL){var M=new Set(U);M.size===this.QP.size&&[].concat(g.N(M)).every(function(S){return O.QP.has(S)})||(this.rG.al("lwnmow",{itagDenylist:[].concat(g.N(U)).join(",")}),this.rG.hY(!!M.size),this.Z=-1,this.QP=M,hs(this,this.U),this.TY=!0)}}; pW.prototype.Ro=function(U,O,M){M=M===void 0?{}:M;var S=this.policy.Ov;this.G.Ro(U,O===void 0?!1:O,M);if(S!==this.policy.Ov){hs(this,this.U);Js(this);var p,h;S>this.policy.Ov&&((p=this.B)==null?0:s6(p.info))&&((h=this.nextVideo)==null||!s6(h.info))&&(this.yP=!0)}};lj.prototype.tK=function(U){this.timestampOffset=U;this.flush()}; lj.prototype.flush=function(){if(this.U.pos>0){var U={a:this.track.xS(),u:this.U.g3(),pd:Math.round(this.X),ad:Math.round(this.B)},O=this.V;if(O){var M=O.U.info;U.itag=M.itag;M.U&&(U.xtags=M.U);U.sq=O.Sc;U.st=O.startTime;U.sd=O.duration;this.track.policy.mK&&(U.si=O.Qr());O.G&&(U.esl=O.V+O.B);O.Lm()&&(U.eos=1)}isNaN(this.timestampOffset)||(U.to=this.timestampOffset);var S;if(O=(S=this.track.I_)==null?void 0:S.aT({})){for(var p in O)this.C[p]!==O[p]&&(U["sb_"+p]=O[p]);this.C=O}this.track.al("sbu", U);this.U.reset();this.buffered=[];this.G=this.B=this.X=0;this.timestampOffset=this.V=void 0}};$w.prototype.dispose=function(){this.ol=!0}; $w.prototype.GY=function(){return this.ol}; g.c(ck,Error);var rMq=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);Wk.prototype.skip=function(U){this.offset+=U}; Wk.prototype.WD=function(){return this.offset};g.y=JX4.prototype;g.y.YH=function(){return this.V}; g.y.Tv=function(){return this.V.length?this.V[this.V.length-1]:null}; g.y.m0=function(){this.V=[];bj(this);Bk(this)}; g.y.Xj=function(U){this.HA=this.V.shift().info;U.info.KW(this.HA)}; g.y.Gz=function(){return g.mV(this.V,function(U){return U.info})}; g.y.xS=function(){return!!this.C.info.audio}; g.y.getDuration=function(){return this.C.index.oY()};g.c(rg,yO);g.y=rg.prototype;g.y.onStateChange=function(){this.GY()&&(nV(this.wD,this.formatId),this.U.dispose())}; g.y.bO=function(){var U=ocm(this.wD,this.formatId),O;var M=((O=this.wD.hs.get(this.formatId))==null?void 0:O.bytesReceived)||0;var S;O=((S=this.wD.hs.get(this.formatId))==null?void 0:S.zp)||0;return{expected:U,received:M,bytesShifted:O,sliceLength:QO(this.wD,this.formatId),isAnyMediaEndReceived:this.wD.OG(this.formatId)}}; g.y.G9=function(){return 0}; g.y.DC=function(){return!0}; g.y.s9=function(){return this.wD.s9(this.formatId)}; g.y.Hd=function(){return[]}; g.y.Xc=function(){return this.wD.Xc(this.formatId)}; g.y.eH=function(){return this.lastError}; g.y.Vu=function(){return 0};g.c(Yw,g.C);g.y=Yw.prototype;g.y.xS=function(){return!!this.U.info.audio}; g.y.Tv=function(){return this.X.Tv()}; g.y.Xj=function(U){this.X.Xj(U);var O;(O=this.D)!=null&&(O.G.add(U.info.Sc),O.U=AWe(O,O.N0,O.vO,U,O.U),O.B=U,O.C=(0,g.nM)());this.a_=Math.max(this.a_,U.info.U.info.a_||0)}; g.y.getDuration=function(){if(this.policy.V){var U=this.rG.ZD();if(U)return BH(U)}return this.U.index.oY()}; g.y.m0=function(){Ec(this);this.X.m0()}; g.y.Aj=function(){return this.X}; g.y.isRequestPending=function(U){return this.B.length?U===this.B[this.B.length-1].info.xp[0].Sc:!1}; g.y.tK=function(U){var O;(O=this.D)==null||O.tK(U);var M;(M=this.Z)==null||M.tK(U)}; g.y.al=function(U,O){this.rG.al(U,O)}; g.y.Sr=function(){return this.rG.Sr()}; g.y.dispose=function(){var U;(U=this.Z)==null||U.flush();g.C.prototype.dispose.call(this)};g.c(LW,g.C);LW.prototype.B=function(){this.V++>15||(this.U=!this.U,new JG5(this.rG,this.policy,this.Kr,this.uM,this.U),this.delay.start())}; g.y=JG5.prototype;g.y.oS=function(){}; g.y.JX=function(){}; g.y.Gv=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.E9()===this.size)this.rG.al("rqs",this.getInfo());else{var U="net.connect";this.xhr.status>200?U="net.badstatus":this.xhr.tv()&&(U="net.closed");this.onError(U)}}; g.y.onError=function(U){var O=this;this.rG.handleError(U,this.getInfo());PL("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(M){O.rG.al("pathprobe",M)},function(M){O.rG.handleError(M.errorCode,M.details)})}; g.y.getInfo=function(){var U=this.timing.Wo();U.shost=tc(this.location.base);U.pb=this.size;return U};g.c(Vy,g.C); Vy.prototype.D=function(U,O){if(U.Y){this.DQ.isLive?(U=this.DQ.QM&&this.DQ.X?U.U.Dx(this.DQ.QM,!1):U.U.v3(Infinity),U.Og=this.Og):U=U.U.Dx(0,!1);if(this.yP){var M=this.yP;U.Og===0&&(U.G=M.Y)}else U.G=this.Z;return U}M=U.V;if(!M.U.Sv())return M.U.aV()?(U=CB(this.G,U.U.info.a_,O.U.info.a_,0),U=M.U.Dr(M,U)):U=M.U.xJ(M),U;var S=M.C-this.rG.getCurrentTime(),p=!M.range||M.B===0&&M.V===0?0:M.range.length-(M.V+M.B),h=M.U;this.lZ(U,S)&&p===0&&(this.DQ.isManifestless?h=U.U:(h=M.startTime+goe,M.B&&(h+=M.duration), og(U,h),M=U.V,h=M.U));h.aV()?(p=this.B,O=CB(this.G,h.info.a_,O.U.info.a_,S,p.X.length>0&&p.Y===0&&this.rG.bI),S=ij(U),U=M.U.Dr(M,O),(O=U.B)&&U.xp.length>1&&(S||U.uM.V||U.xp[0].U!==M.U?U=M.U.Dr(M,U.xp[0].B):(S=U.xp[U.xp.length-1],h=S.B/O,!S.G&&h<.4&&(U=M.U.Dr(M,O-S.B))))):(M.Sc<0&&(O=ZS(M),O.pr=""+U.B.length,this.rG.isSeeking()&&(O.sk="1"),O.snss=M.D,this.rG.al("nosq",O)),U=h.xJ(M));if(this.policy.sA)for(M=g.D(U.xp),O=M.next();!O.done;O=M.next())O.value.type=6;return U}; Vy.prototype.lZ=function(U,O){if(!ij(U)||!U.U.Sv())return!1;var M=this.B.TY||qje(U)||O<=this.policy.LL||this.B.yP;this.logger.debug(function(){return"ready to adapt: "+M+", upgrade pending: "+qje(U)+", health: "+O}); return M}; Vy.prototype.VP=function(){g.C.prototype.VP.call(this)}; var goe=2/24;g.c(Ux,g.C);Ux.prototype.yd=function(U,O,M){var S;var p=((S=this.V)==null?void 0:S.reason)==="m"?"m":this.V&&xni(this,this.V)?this.V.reason:"a";this.rG.yd(new wV(U,p,M));kw(this.rG,O,U,!0)}; Ux.prototype.ox=function(U,O){for(var M=g.D(this.sA),S=M.next();!S.done;S=M.next())if(S=S.value,S.id===U)return this.wH.GR||(this.B=[S]),this.G=this.DQ.U[U],Ev(this.wH)&&(this.yP=!0),U=new wV(this.G,O?"t":"m"),O&&(this.Y=!0),U;this.B=[];return null}; Ux.prototype.Ro=function(U,O,M){M=M===void 0?{}:M;this.U.Ro(U,O===void 0?!1:O,M)};g8.prototype.setData=function(U,O,M,S){var p=this;S=S===void 0?{}:S;if(M==null?0:M.hG)this.AO=Mle(this,M,S),U.c$=this.uM.c$();if(this.fI())return!0;this.data=U;this.U=n05(U,O,function(h,J){var f;(f=p.sQ)==null||f.ya(h,J)},M==null?void 0:M.B); if(!this.U)return!1;this.V=g.SL(this.U,ln7);return!0}; g8.prototype.fI=function(){return this.requestType===1}; g8.prototype.vz=function(){var U;return((U=this.sQ)==null?void 0:U.vz())||0}; g8.prototype.isDecorated=function(){var U;return!((U=this.data)==null||!U.Qy)};MS.prototype.encrypt=function(U){this.Mm.exports.AES128CTRCipher_encrypt(this.cipher,U.byteOffset,U.byteLength);return U}; MS.prototype.GY=function(){return this.cipher===0}; MS.prototype.dispose=function(){this.Mm.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};SW.prototype.encrypt=function(U,O){return jA(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:O},this.key,U).catch(function(M){return Promise.reject(M.name+": "+M.message)}).then(function(M){return new Uint8Array(M)}))}; SW.prototype.GY=function(){return this.U}; SW.prototype.dispose=function(){this.U=!0}; Dd.nM(SW,{encrypt:iL5("oan2")});pg.prototype.encrypt=function(U,O){x5(this.V,O);return jA(this.V.encrypt(U))}; pg.prototype.GY=function(){return this.U}; pg.prototype.dispose=function(){this.U=!0}; Dd.nM(pg,{encrypt:iL5("oap")});h4.prototype.encrypt=function(U,O){var M=this.Mm.BQ(O),S=this.U;S.Mm.exports.AES128CTRCipher_setCounter(S.cipher,(M!=null?M:O).byteOffset);O=this.Mm.BQ(U);this.U.encrypt(O!=null?O:U);M&&this.Mm.free(M.byteOffset);return O?jA(this.Mm.gJ(O)):jA(U)}; h4.prototype.GY=function(){return this.U.GY()}; h4.prototype.dispose=function(){this.U.dispose()}; Dd.nM(h4,{encrypt:iL5("oalw")});J4.prototype.encrypt=function(U,O){var M=this,S=HZ("");U.length<=this.nS&&this.U&&!this.X&&(S=dx(S,function(){return M.U?M.U.encrypt(U,O):HZ("wasm unavailable")})); U.length<=this.jz&&(this.U&&this.X&&(S=dx(S,function(){return M.U?M.U.encrypt(U,O):HZ("wasm unavailable")})),S=dx(S,function(){return rGe(M,U,O)})); return dx(dx(S,function(){return ab4(M,U,O)}),function(){return rGe(M,U,O)})}; J4.prototype.GY=function(){return this.G}; J4.prototype.dispose=function(){this.G=!0;var U;(U=this.B)==null||D1(U,g.FC);g.FC(this.U);g.FC(this.V)};ye.prototype.encrypt=function(U){(0,g.nM)();return(new G_(this.U.U)).encrypt(U,this.iv)}; ye.prototype.decrypt=function(U,O){(0,g.nM)();return(new G_(this.U.U)).decrypt(U,O)}; ye.prototype.GY=function(){return this.B}; ye.prototype.dispose=function(){this.B=!0;g.FC(this.V)};g.c(fg,g.C);fg.prototype.B=function(U,O){if(O){O=O instanceof g.bJ?O:F4(this,O);var M;((M=this.U.get(U))==null?void 0:tc(M.location))!==tc(O)&&this.U.set(U,new gM5(O,U))}else this.U.delete(U)}; fg.prototype.load=function(){var U=this,O,M,S,p,h,J,f,F,l,G;return g.A(function(T){switch(T.U){case 1:O=U.U.get(0);g.dW(T,2);var e;if(e=O&&!U.V)e=tc(O.location),e=U.V===zs(e);if(e){T.tZ(4);break}return g.Y(T,OJe(U,U.V?2:0),5);case 5:if(M=T.V)U.B(0,M),Ac(M)&&U.B(1,Iv(M));case 4:g.vg(T,3);break;case 2:S=g.Bg(T);g.rz(S);if(!U.V){T.tZ(3);break}U.V=!1;return g.Y(T,U.load(),7);case 7:return T.return();case 3:if(!U.gG.experiments.F0("html5_onesie_probe_ec_hosts")){T.tZ(0);break}g.dW(T,9);p=U;h=p.B;J=3;return g.Y(T, OJe(U,1),11);case 11:return h.call(p,J,T.V),f=U,F=f.B,l=4,g.Y(T,OJe(U,2),12);case 12:F.call(f,l,T.V);g.vg(T,0);break;case 9:G=g.Bg(T),g.rz(G),g.Dq(T)}})}; fg.prototype.D=function(){var U=this,O,M;return g.A(function(S){g.OM(U.Y);O=g.DF(U.gG.experiments,"html5_onesie_prewarm_max_lact_ms");if(QJ()>=O)return S.return();(M=U.U.get(0))&&U37(U,M);g.Dq(S)})}; var k_U={OJy:0,FcY:1,DUZ:2,NPy:3,Atn:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};MZq.prototype.decrypt=function(U){var O=this,M,S,p,h,J,f;return g.A(function(F){switch(F.U){case 1:if(O.U.length&&!O.U[0].isEncrypted)return F.return();O.V=!0;O.Vy.Xh("omd_s");M=new Uint8Array(16);ti()?S=new lk(U):p=new G_(U);case 2:if(!O.U.length||!O.U[0].isEncrypted){F.tZ(4);break}h=O.U.shift();if(!S){J=p.decrypt(h.buffer.c7(),M);F.tZ(5);break}return g.Y(F,S.decrypt(h.buffer.c7(),M),6);case 6:J=F.V;case 5:f=J;for(var l=0;l=4)){var O=DG(this),M=this.xhr;O.rc=M.status;U&&(O.ab=!0);if(M.XT()){var S="onesie.net";O.msg=M.XT()}else M.status>=400?S="onesie.net.badstatus":M.kD()?this.fB||(S="onesie.response.noplayerresponse"):S=M.status===204?"onesie.net.nocontent":"onesie.net.connect";S?this.z5(new Ii(S,O)):(this.Xh("or_fs"),this.BT.ou((0,g.nM)(),M.E9(),0),this.YZ(4),this.xL&&this.al("rqs",O));this.xL&&this.al("ombre", "ok."+ +!S);this.Xs=!1;WH(this);D3q(this.Vy);if(!this.pS){this.mf.stop();var p;(p=this.lQ)==null||p.stop()}var h;if(U=(h=this.pM)==null?void 0:sCe(h))for(h=0;h1E3){var U;(U=this.BT)==null||U.FR((0,g.nM)());U=DG(this);if(this.gG.PV()&&this.xhr instanceof fV){var O=this.xhr;U.xrs=O.xhr.readyState;U.xpb=O.U.getLength();U.xdc=O.X}this.z5(new Ii("net.timeout",U))}}else(0,g.nM)()-this.BT.U>1E4&&((O=this.BT)==null||O.FR((0,g.nM)()),this.jd());this.isComplete()||this.EL.start()}}; g.y.jd=function(){this.logger.info("Onesie request timed out");this.Xs=!1;if(!WH(this)){var U=DG(this);U.timeout="1";this.z5(new Ii("onesie.request",U))}}; g.y.z5=function(U){var O=this;U=nP(U);this.sO?this.wG.iH(U):(this.O7.reject(U),this.sO=!0);D3q(this.Vy);this.pS||this.mf.stop();this.Xh("or_fe");var M,S;(M=this.pM)==null||(S=sCe(M))==null||S.forEach(function(p){O.al("pathprobe",p)}); this.YZ(5);this.dispose()}; g.y.isComplete=function(){return this.state>=3}; g.y.xl=function(){return this.state===4}; g.y.E1=function(U){var O,M;return this.isComplete()||!!((O=this.Qo)==null?0:(M=O.get(U))==null?0:M.U)}; g.y.zL=function(){return!1}; g.y.xT=function(){return this.state===5}; g.y.notifySubscribers=function(U){for(var O=0;O102400&&!this.Ym&&(this.Xh("or100k"),this.Ym=!0);if(U.zR()){var O=U.Wu(),M=O.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+M}); this.xL&&this.al("ombrss","len."+M);this.u2.feed(O)}if(this.Qo)for(var S=g.D(this.Qo.keys()),p=S.next();!p.done;p=S.next()){var h=p.value;U=void 0;(U=this.Qo.get(h))==null||U.Zj();this.notifySubscribers(h)}}catch(J){this.z5(J)}}; g.y.Fe=function(){return this.BT.requestNumber}; g.y.dh=function(U){return this.eK.get(U)}; g.y.z9=function(){return{G5:this.G5,l_:this.l_,isDecorated:!1}};g.c(Xbe,g.C);g.y=Xbe.prototype;g.y.pX=function(U,O){this.ol=void 0;pB5(this);guw(this,U,O)}; g.y.Qv=function(U){if(this.U.length===0)return!1;var O=this.U[0];return O instanceof d8?U===this.rG.getCurrentTime()*1E3:!(O instanceof uf&&Xnw(O.info))&&Math.abs(O.Ne()-U)<50}; g.y.gR=function(U){this.V=U;this.ol=(0,g.nM)()+(U.backoffTimeMs||0)}; g.y.If=function(U,O){if(U.action===void 0){var M=this.wG.Ve();M!==void 0&&this.rG.H2(M)}else if(U.action!==0||!this.HA)switch(U.action===0&&this.policy.fU&&(U.action=2),M={},M.reason=U.doY,M.action=U.action,M.rn=O,U.action){case 1:this.policy.G&&this.X&&this.X.du(void 0,void 0,M);break;case 0:this.HA=!0;this.videoData.Js()&&this.policy.G&&this.X&&this.X.du(void 0,void 0,M,!1);this.rG.Cc(M);break;case 2:this.rG.handleError("sabr.config",M,1);break;case 5:n9w(this.wG,!0);break;case 6:n9w(this.wG,!1); break;case 3:this.policy.hG&&((U=this.DQ.Y)!=null&&(U.Y=!0),this.rG.handleError("sabr.hostfallback",M))}}; g.y.WZ=function(U,O,M,S){if(this.policy.V){this.rG.al("ssap",{rn:S,v:O,tl:JKi(U)});var p=this.rG.ZD();U={cR:U,context:M,version:O};MoJ(this,M);p?Ssg(this,p,U):(this.rG.al("ssap",{cacheclips:1,rn:S,v:O}),this.Y=U)}}; g.y.fd=function(U){this.rG.al("ssap",{onsbrctxt:U.type,dflt:U.sendByDefault});MoJ(this,U);this.wG.fd(U)}; g.y.Cu=function(){}; g.y.pg=function(U){if(U.J$!==void 0&&U.Rq){var O=U.J$/U.Rq;this.audioTrack.Y=!1;this.videoTrack.Y=!1;if(this.policy.ol||this.policy.cU||this.policy.Q$)this.rG.zJ.V=!1;this.rG.L0(O,1);if(this.wG.getCurrentTime()!==O){var M={uH:"sabr_seek",KI:!0,lf:!0};U.seekSource&&(M.seekSource=U.seekSource);U9(this.rG,O+.1,M)}}}; g.y.onSnackbarMessage=function(U){this.wG.publish("onSnackbarMessage",U)}; g.y.Fl=function(U){U.b3&&U.x7&&mf(this.DQ,U.b3,U.x7);this.policy.n1&&(U.pp&&U.wr&&(this.DQ.aG=U.pp/U.wr),U.O8&&U.KC&&(this.DQ.GR=U.O8/U.KC));this.policy.Jp&&(this.policy.n1?U.O8&&U.KC&&this.rG.L0(U.O8,U.KC):U.x7&&this.rG.L0(U.x7,1E3));U.BE!=null&&this.wG.mA(U.BE);this.policy.qd&&U.AS&&(U=((0,g.nM)()-U.AS)/1E3,this.rG.rY.Wi(1,U))}; g.y.aS=function(U){this.rG.aS(U)}; g.y.KM=function(U){return this.R2.has(U)}; g.y.G0=function(U,O,M){this.policy.B&&this.rG.al("sabrctxtplc",{start:U?U.join("_"):"",stop:O?O.join("_"):"",discard:M?M.join("_"):""});if(U){U=g.D(U);for(var S=U.next();!S.done;S=U.next())this.R2.add(S.value)}if(O)for(O=g.D(O),U=O.next();!U.done;U=O.next())U=U.value,this.R2.has(U)&&this.R2.delete(U);if(M)for(M=g.D(M),O=M.next();!O.done;O=M.next())O=O.value,this.videoData.sabrContextUpdates.has(O)&&(this.videoData.sabrContextUpdates.delete(O),O===3&&(this.videoData.UK=""))}; g.y.kt=function(){}; g.y.lX=function(U){this.C=U}; g.y.By=function(U){this.Ka=U}; g.y.T0=function(U,O){SR7(this.policy,U,4,O)}; g.y.iI=function(U){if(U==null?0:U.Tg)if(U=U.Tg.fV){U=g.D(U);for(var O=U.next();!O.done;O=U.next())if(O=O.value,O.formatId){var M=this.DQ.B.get(mc(O.formatId));M&&M.info&&(M.info.debugInfo=O.debugInfo)}}}; g.y.Ku=function(U){(U=U==null?void 0:U.reloadPlaybackParams)&&this.wG.publish("reloadplayer",U)}; g.y.OF=function(){return this.wG.OF()||""}; g.y.vz=function(){var U=Qy(this.audioTrack,!0)*1E3,O=Qy(this.videoTrack,!0)*1E3;return Math.min(U,O)}; g.y.ya=function(U,O){this.rG.al(U,O)}; g.y.rN=function(U){tog(this.rG,P64(this.Yy,U))}; g.y.VP=function(){g.C.prototype.VP.call(this);this.V=void 0;guw(this,!0,"i");this.U=[]};fpU.prototype.Ce=function(U,O){if(this.X)return Tdi(this,O);if(O=O9(U)){var M=O.V;M&&M.B&&M.U&&(U=U.B.length?U.B[0]:null)&&U.state>=2&&!U.xT()&&U.info.Og===0&&(this.X=U,this.D=M,this.V=O.info,this.C=this.startTimeSecs=Date.now()/1E3,this.G=this.V.startTime)}return NaN}; fpU.prototype.clear=function(){this.V=this.D=this.X=null;this.U=this.G=this.C=this.startTimeSecs=NaN;this.B=!1};g.c(g.Ve,g.C);g.y=g.Ve.prototype;g.y.initialize=function(U,O,M){this.logger.debug(function(){return"Initialized, t="+U}); U=U||0;this.policy.U||(O=Qfq(this.U),AKW(this.wG,new wV(O.video,O.reason)),this.wG.uS(new wV(O.audio,O.reason)));this.DQ.isManifestless&&dn4(this.G);this.D&&lpe(this.D,this.videoTrack.U);O=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var S=!this.DQ.isManifestless;this.policy.lT&&(S=S||this.DQ.Dh);this.policy.QP||(this.currentTime=S?U:O);this.policy.ol&&this.seek(this.getCurrentTime(),{}).yq(function(){}); if(this.policy.U){var p;((p=this.yP)==null?0:CTw(p,this.OF()||""))&&cKJ(this)&&zB7(this,this.videoTrack)&&zB7(this,this.audioTrack)&&(hB4(this.V,this.yP),this.policy.C&&Hem(this))}else this.ol&&(DPq(this,this.videoTrack),DPq(this,this.audioTrack),Vg1(this.ol),delete this.ol);M?(this.policy.jH?(this.AG=M,oW(this,M)):oW(this,!1),g.OM(this.PH)):(M=this.getCurrentTime()===0,o7(this.G,this.videoTrack,this.videoTrack.U,M),o7(this.G,this.audioTrack,this.audioTrack.U,M),this.policy.U&&iJw(this.V,!0),this.policy.ol|| this.seek(this.getCurrentTime(),{}).yq(function(){}),this.timing.tick("gv")); (this.DQ.QM||this.DQ.d3||this.DQ.Ka||this.DQ.EQ||this.DQ.Oj)&&this.wG.g6(this.DQ)}; g.y.resume=function(){if(this.isSuspended||this.bI){this.logger.debug("Resumed.");this.GV=this.bI=this.isSuspended=!1;try{this.Ce()}catch(U){g.K5(U)}}}; g.y.Sk=function(){return!this.policy.UX}; g.y.bA=function(U,O){U=U===void 0?!1:U;O=O===void 0?!1:O;this.logger.debug("detaching media source");Bd7(this);this.wG.vU()&&(this.C=NaN);U?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ca&&this.al("loader",{setsmb:1}),this.policy.sA=!0,this.m0()):(this.policy.jH?oW(this,this.AG):oW(this,!1),O||this.m0())}; g.y.setAudioTrack=function(U,O,M){M=M===void 0?!1:M;if(!this.GY()){var S=!isNaN(O);M&&S&&(this.audioTrack.ol=Date.now(),this.policy.DD&&(this.Rl=!0));if(this.policy.U){var p=this.X.ox(U.id,S);this.logger.debug(function(){return"Logging new audio format: "+p.U.info.id}); this.wG.uS(p)}else{var h=ISe(this.U,U.id,S);this.logger.debug(function(){return"Logging new audio format: "+h.audio.info.id}); this.wG.uS(new wV(h.audio,h.reason))}if(S&&(M=this.audioTrack.U.index.Eg(O),this.al("setAudio",{id:U.id,cmt:O,sq:M}),M>=0)){this.policy.U&&this.pX(!0,"mosaic");ugJ(this.audioTrack,M,NaN,NaN);!this.policy.fO&&this.DQ.isLive&&Yb(this.DQ,M,!1);return}this.wG.DK()}}; g.y.setPlaybackRate=function(U){U!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(U)}; g.y.Yw=function(U){var O=this.V.C;this.V.lX(U);this.al("scfidc",{curr:mc(O),"new":mc(U)});U&&mc(U)!==mc(O)&&(this.pX(!1,"caption change"),this.Ce())}; g.y.Ex=function(U){this.V.By(U)}; g.y.yd=function(U){var O=U.U.info.xS();this.logger.debug(function(){return"New "+(O?"audio":"video")+" format from SABR: "+lE(U.U.info)}); O?this.wG.uS(U):AKW(this.wG,U)}; g.y.rN=function(U){u6(U.xp[U.xp.length-1])&&tog(this,P64(this.U,U.xp[0].U))}; g.y.Ui=function(){return this.wG.Ui()}; g.y.M$=function(){return this.wG.M$()}; g.y.aS=function(U){this.wG.J().PV()&&this.al("sps",{status:U.b8||""});if(U.b8===1)this.wG.videoData.bl=0;else if(U.b8===2||U.b8===3){var O=!1;if(U.b8===3){O=this.wG.B2();var M;this.F9=(M=U.IVA)!=null?M:Infinity;this.wG.videoData.bl=O+1;(O=DnJ(this))&&this.gV(!0)}this.wG.EN(!0,O)}}; g.y.Rj=function(){return this.wG.Rj()}; g.y.sH=function(){return this.wG.sH()}; g.y.N5=function(U){this.wG.N5(U)}; g.y.vSa=function(){var U,O=(U=this.wG.tR())==null?void 0:U.getCurrentTime();O?this.wG.al("rms",{cta:O}):g.OM(this.EQ)}; g.y.Ce=function(){RBy(this);if(this.La&&xf(this.La)&&!this.La.W7()&&(!this.policy.QP||isFinite(this.getCurrentTime()))){var U=As(this.videoTrack);U=this.policy.CL&&U&&U.Lm();this.DQ.isManifestless&&this.DQ.X&&xb(this.DQ)?(this.C=xb(this.DQ),this.La.l8(this.C)):AX(this.DQ)&&!U?isNaN(this.C)?(this.C=this.getCurrentTime()+3600,this.La.l8(this.C)):this.C<=this.getCurrentTime()+1800&&(this.C=Math.max(this.C+1800,this.getCurrentTime()+3600),this.La.l8(this.C)):this.La.isView||(U=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.C)||this.C!==U)&&U>0&&(this.La.l8(U),this.C=U))}if(!this.GY())if(B3(this.DQ)&&this.DQ.xT()){var O=this.DQ;this.handleError("manifest.net.retryexhausted",O.Rl?{rc:O.PN}:{rc:O.PN.toString()},1)}else if(this.policy.U)a:{try{UPg(this.V);this.DQ.isManifestless&&this.policy.C&&k2(this.zJ);if(vuJ(this)&&this.La&&!Of(this.La)&&this.videoTrack.Ka&&this.audioTrack.Ka){this.al("ssap",{delaysb:1,v:this.videoTrack.U.info.id,vf:this.videoTrack.U.info.zY,a:this.audioTrack.U.info.id, af:this.audioTrack.U.info.zY});var M=this.La,S=this.videoTrack.U,p=this.audioTrack.U;!Of(M)&&p&&S&&(N4e(M,S.info,p.info,this.policy.u$),xPe(this,M))}var h;((h=this.La)==null?0:Of(h))&&this.t5();iJw(this.V)}catch(f){g.rz(f);O=f;if(O.message.includes("changeType")){this.al("ssap",{exp:O.name,msg:O.message,s:O.stack});break a}this.handleError("fmt.unplayable",{exp:O.name,msg:O.message,s:O.stack},1)}kSi(this);g.OM(this.hZ)}else if(!this.DQ.V||!KfJ(this.videoTrack)&&!KfJ(this.audioTrack)||(this.videoTrack.G|| this.audioTrack.G)&&this.policy.Qa?M=!1:(this.m0(),this.wG.seekTo(Infinity,{uH:"checkLoaderTracksSync",L0:!0}),M=!0),!M){RBy(this);this.DQ.isManifestless&&(rXw(this.videoTrack),rXw(this.audioTrack),k2(this.zJ),(M=O9(this.videoTrack))&&M.V&&(M=M.V.B&&!this.policy.DF,this.al(M===this.policy.Y.nm?"strm":"strmbug",{strm:M,sfmp4:this.policy.Y.nm,dfs:this.policy.DF},!0)));if(this.La)this.t5();else if(this.policy.X){var J;M=!1;if(this.policy.Vs)for(S=g.D([this.videoTrack,this.audioTrack]),p=S.next();!p.done;p= S.next()){h=p.value;for(p=O9(h);p&&h.Tv()!==As(h);p=O9(h))h.Xj(p);M=M||!!p}else(O=O9(this.videoTrack))&&this.videoTrack.Xj(O),(J=O9(this.audioTrack))&&this.audioTrack.Xj(J);I7(this.videoTrack)&&I7(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(O||J||M)&&xV(this)}dP5(this);o7(this.G,this.videoTrack,this.videoTrack.U,!1);o7(this.G,this.audioTrack,this.audioTrack.U,!1);this.policy.d4||mPe(this,this.videoTrack,this.audioTrack);G_W(this.G,this.videoTrack,this.audioTrack); G_W(this.G,this.audioTrack,this.videoTrack);kSi(this);this.D&&(O=this.D,O.X?(J=O.C+O.policy.sK,O.B||(J=Math.min(J,O.startTimeSecs+O.policy.Dy)),O=Math.max(0,J*1E3-Date.now())):O=NaN,isNaN(O)||g.OM(this.Oj,O));g.OM(this.hZ)}}; g.y.Cc=function(U){this.wG.Cc(U)}; g.y.t5=function(){var U=this;if(this.La){var O=this.La.U,M=this.La.V;pem(this,this.audioTrack);pem(this,this.videoTrack);var S=PIw(this);if(S){if(this.policy.DS){if(!O.aJ()){var p=O9(this.audioTrack);if(p){if(!Lg(this,this.audioTrack,O,p.info))return;CIg(this,this.audioTrack,O,p)}}if(!M.aJ()&&(p=O9(this.videoTrack))){if(!Lg(this,this.videoTrack,M,p.info))return;CIg(this,this.videoTrack,M,p)}}this.Uh||(this.Uh=(0,g.nM)(),this.logger.debug(function(){return"Appends pause start "+U.Uh+" reason "+S}), this.policy.B&&this.al("apdps",{r:S}))}else if(this.Uh&&(Ipw(this,this.Uh),this.Uh=0),nuq(this),p=!1,this.policy.V&&KW(this.videoTrack)||!Zew(this,this.videoTrack,M)||(p=!0,fSq(this.timing),$ue(this.timing)),this.La&&!this.La.rL()&&(this.policy.V&&KW(this.audioTrack)||!Zew(this,this.audioTrack,O)||(p=!0,Fcy(this.timing),T2W(this.timing)),!this.GY()&&this.La)){if(!this.policy.UX&&I7(this.videoTrack)&&I7(this.audioTrack)&&xf(this.La)&&!this.La.W7()){M=!1; M=As(this.audioTrack);if(this.policy.V){var h;O=(h=this.vV)==null?void 0:ZX(h,M.X*1E3);M=!(!O||O.clipId!==M.clipId);this.al("ssap",{eos:M})}else h=M.U,M=h===this.DQ.U[h.info.id];M&&(this.logger.debug("Setting EOS"),v45(this.La),KBJ(this.schedule))}p&&!this.La.isAsync()&&xV(this)}}}; g.y.Z$=function(U){var O,M=U===((O=this.La)==null?void 0:O.U)?this.audioTrack:this.videoTrack,S;if((S=O9(M))==null?0:S.isLocked){if(this.wG.J().PV()){var p;this.al("eosl",{ounlock:(p=O9(M))==null?void 0:p.info.Qr()})}var h;Vo4(this,U===((h=this.La)==null?void 0:h.U))}var J;if(this.policy.DD&&U===((J=this.La)==null?void 0:J.U)&&this.NL){O=this.NL-this.getCurrentTime();var f;this.wG.al("asl",{l:O,xtag:(f=As(this.audioTrack))==null?void 0:f.U.info.U});this.Rl=!1;this.NL=0}U.wP()&&U.Nm().length===0&& (U.aj(),this.La&&!this.La.wP()&&(this.wG.J().PV()&&this.wG.al("rms",{ld:"seek"}),this.La.C=performance.now(),this.wG.eb(),this.wG.J().PV()&&g.OM(this.EQ)));var F;(F=M.Z)!=null&&GG(F,0);this.policy.WV?cGJ(this):this.Ce()}; g.y.pBg=function(U){if(this.La){var O=As(U===this.La.U?this.audioTrack:this.videoTrack);if(U=U.O1())for(var M=0;M5&&U.yP.shift();O=O.Sc;var S;if((S=this.wG.getVideoData())==null?0:S.enableServerStitchedDai)S=OL7(this.audioTrack,O),M=OL7(this.videoTrack,O),S!==0&&M!==0&&S!==M&&this.handleError("ssdai.avsync",{sq:O,a:S,v:M},0)}}; g.y.Lb=function(U,O,M,S){U.info.video&&this.B.Lb(O,M,S)}; g.y.oD=function(U){this.U.oD(U)}; g.y.sV=M1(20);g.y.O_=function(U){this.vV=U;var O;(O=this.audioTrack.D)!=null&&(O.HB=U);(O=this.videoTrack.D)!=null&&(O.HB=U);O=this.V;O.Y&&(O.rG.al("ssap",{addcacheclips:1,v:O.Y.version,tl:JKi(O.Y.cR)}),Ssg(O,U,O.Y),O.Y=void 0)}; g.y.ZD=function(){return this.vV}; g.y.HL=function(){return this.videoTrack.Y||this.audioTrack.Y}; g.y.seek=function(U,O){if(this.GY())return I4();if(this.HL())return I4("seeking to head");if(this.policy.ol&&!isFinite(U))return qNg(this.zJ),g.A7(Infinity);RBy(this);this.er=(0,g.nM)();this.policy.U||dP5(this,U);this.La&&this.La.U&&this.La.V&&!this.wG.getVideoData().vE&&(this.La.U.isLocked()||this.La.V.isLocked())&&this.wG.DK({reattachOnLockedBuffer:1,vsb:""+this.La.V.isLocked(),asb:""+this.La.U.isLocked()});var M=this.getCurrentTime(),S=this.zJ.seek(U,O);this.policy.QP||(this.currentTime=S);oN(this.B, U,M,this.policy.T3&&!O.KI);xV(this);return g.A7(S)}; g.y.Qv=function(U){return this.policy.U&&this.V.Qv(U)}; g.y.KM=function(U){return this.V.KM(U)}; g.y.pX=function(U,O){this.V.pX(U,O)}; g.y.getCurrentTime=function(){if(this.policy.QP){var U=this.je()||0;return this.wG.getCurrentTime()-U}return this.currentTime}; g.y.U1=function(){return this.audioTrack.U.info}; g.y.uO=function(){return this.videoTrack.U.info}; g.y.qE=function(){return this.audioTrack.U.info.zY}; g.y.mY=function(){return this.videoTrack.U.info.zY}; g.y.VP=function(){try{this.bA(),Ec(this.audioTrack),Ec(this.videoTrack),Zs(this.audioTrack),Zs(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.C.prototype.VP.call(this)}catch(U){g.K5(U)}}; g.y.handleError=function(U,O,M){M=M===void 0?0:M;var S=Po(M);U==="fmt.unplayable"&&this.DQ.isLive&&(this.policy.DS=!1,tX(this.DQ));O=new Ii(U,O,M);g.wW(this);AA(O.details);this.wG.handleError(O);U!=="html5.invalidstate"&&O.errorCode!=="fmt.unplayable"&&U!=="fmt.unparseable"&&S&&this.dispose()}; g.y.aT=function(){var U=As(this.audioTrack),O=As(this.videoTrack);U={lct:this.getCurrentTime().toFixed(3),lsk:this.zJ.isSeeking(),lmf:this.U.U.isLocked(),lbw:x0(this.schedule).toFixed(3),lhd:vn(this.schedule).toFixed(3),lst:((this.schedule.D.aA()||0)*1E9).toFixed(3),laa:U?U.Qr():"",lva:O?O.Qr():"",lar:this.audioTrack.V?this.audioTrack.V.Qr():"",lvr:this.videoTrack.V?this.videoTrack.V.Qr():"",laq:""+Pk(this.audioTrack),lvq:""+Pk(this.videoTrack)};this.La&&!this.La.rL()&&this.La.U&&this.La.V&&(U.lab= $f(this.La.U.Nm()),U.lvb=$f(this.La.V.Nm()));this.Uh&&(U.lapt=((0,g.nM)()-this.Uh).toFixed(0),U.lapr=PIw(this));this.QP&&(U.lapmabht=((0,g.nM)()-this.QP).toFixed(0),U.lapmabh=Vk(this,this.audioTrack).toFixed(0));this.Ka&&(U.lapmvbht=((0,g.nM)()-this.Ka).toFixed(0),U.lapmvbh=Vk(this,this.videoTrack).toFixed(0));this.Ca&&(U.lapsdai=((0,g.nM)()-this.Ca).toFixed(0));return U}; g.y.m0=function(){try{this.policy.U&&this.V.pX(!1,"pending"),this.audioTrack.m0(),this.videoTrack.m0()}catch(U){g.K5(U)}this.policy.X=""}; g.y.xx=function(){return Qk(this.Z)}; g.y.al=function(U,O,M){this.wG.al(U,O,M===void 0?!1:M)}; g.y.OF=function(){return this.wG.OF()}; g.y.L0=function(U,O){U/=O;isNaN(this.timestampOffset)&&h24(this,U-Math.min(U,this.policy.UP));return(U-this.timestampOffset)*O}; g.y.je=function(){return this.timestampOffset}; g.y.isSeeking=function(){return this.zJ.isSeeking()}; g.y.Xm=function(){this.B.Xm()}; g.y.Ro=function(U,O,M){O=O===void 0?!1:O;M=M===void 0?{}:M;this.policy.U?this.X.Ro(U,O,M):this.U.Ro(U,O,M)}; g.y.QX=function(U,O){if(!this.Y)return!1;var M=this.videoTrack.U.index.Eg(U);return this.Y.QX(U,O,M)}; g.y.u7=function(U,O){if(this.Y&&this.B.u7(U,this.Y))return h24(this,this.timestampOffset-O),xV(this),this.policy.G&&(tX(this.DQ),Zs(this.audioTrack),Zs(this.videoTrack),this.m0()),!0;O=this.videoTrack.U.index.Eg(U);this.handleError("ad.skipfailed",{dec:!!this.Y,t:U.toFixed(3),sq:O});return!1}; g.y.getManifest=function(){return this.DQ}; g.y.isOffline=function(){return!!this.wG.getVideoData().cotn}; g.y.pz=function(U,O){this.wG.pz(U,O)}; g.y.xu=function(U){if(this.policy.U)this.V.pX(!0,"utc"),this.Ce();else{var O=this.wG.getVideoData().Da;if(O){var M=this.G;M.Hx=U;M.Da=O;wC(this)}}}; g.y.H2=function(U){this.videoTrack.Y=!1;this.audioTrack.Y=!1;this.zJ.V=!1;this.wG.H2(U)}; g.y.r$=function(U){this.zJ.r$(U-this.je())}; g.y.oi=function(){this.wG.oi()}; g.y.gV=function(U){U!==this.policy.TA&&((this.policy.TA=U)||this.Ce())}; g.y.GE=function(U,O){var M=this.audioTrack.I_,S=this.videoTrack.I_;M&&S&&(M.remove(U,O),S.remove(U,O))}; g.y.DK=function(U){this.wG.DK(U)}; g.y.hY=function(U){this.wG.hY(U)}; g.y.B2=function(){return this.wG.B2()}; g.y.Ux=function(){tX(this.DQ);this.m0()};g.y=g.w8.prototype;g.y.Lj=function(U,O,M,S,p,h){return this.HB.Lj(U,O,M,S,p,h)}; g.y.Or=function(U,O,M,S,p,h){return this.HB.Or(U,O,M,S,p,h)}; g.y.Gd=function(U){return this.HB.Gd(U)}; g.y.C7=function(U){this.HB.C7(U)}; g.y.du=function(U,O,M,S){return this.HB.du(U,O,M,S)}; g.y.Xm=function(){this.HB.Xm()}; g.y.QX=function(U,O,M){return this.HB.QX(U,O,M)}; g.y.M7=function(U,O){this.HB.M7(U,O)}; g.y.HI=function(){this.HB.HI()}; g.y.WQ=M1(62);g.y.jh=function(U,O,M){this.HB.jh(U,O,M)}; g.y.jA=M1(65);g.y.pF=function(U,O,M,S,p,h,J,f,F){this.HB.pF(U,O,M,S,p,h,J,f,F)}; g.y.V4=function(U){this.HB.V4(U)}; g.y.W2=function(U){return this.HB.W2(U)}; g.y.I5=function(U){return this.HB.I5(U)};g.c(U_,g.H_);g.c(O_,U_);O_.prototype.C=function(U,O){if(U&&O){var M=Number(JH(U,"cpi"))*1+1;isNaN(M)||M<=0||Mthis.B&&(this.B=M,g.iy(this.U)||(this.U={},this.X.stop(),this.V.stop())),this.U[O]=U,g.OM(this.V))}}; O_.prototype.G=function(){for(var U=g.D(Object.keys(this.U)),O=U.next();!O.done;O=U.next()){var M=O.value;O=this.publish;for(var S=this.B,p=this.U[M].match(kq),h=[],J=g.D(p[6].split("&")),f=J.next();!f.done;f=J.next())f=f.value,f.indexOf("cpi=")===0?h.push("cpi="+S.toString()):f.indexOf("ek=")===0?h.push("ek="+g.yo(M)):h.push(f);p[6]="?"+h.join("&");M="skd://"+p.slice(2).join("");p=M.length*2;S=new Uint8Array(p+4);S[0]=p%256;S[1]=(p-S[0])/256;for(p=0;p0)for(var M=g.D(this.U),S=M.next();!S.done;S=M.next())if(O===S.value.info.cryptoPeriodIndex){O=!0;break a}O=!1}if(!O){O=(0,g.nM)();a:{M=U.cryptoPeriodIndex;if(!isNaN(M)){S=g.D(this.B.values());for(var p=S.next();!p.done;p=S.next())if(Math.abs(p.value.cryptoPeriodIndex-M)<=1){M=!0;break a}}M=!1}M?(M=U.U,M=Math.max(0,Math.random()*((isNaN(M)?120:M)-30))*1E3):M=0;this.publish("log_qoe",{wvagt:"delay."+M,cpi:U.cryptoPeriodIndex,reqlen:this.U.length, ignore:this.X});M<=0?l0e(this,U):this.X||(this.U.push({time:O+M,info:U}),g.OM(this.V,M))}}; s_.prototype.VP=function(){this.U=[];U_.prototype.VP.call(this)};var Tg={},e25=(Tg.DRM_TRACK_TYPE_AUDIO="AUDIO",Tg.DRM_TRACK_TYPE_SD="SD",Tg.DRM_TRACK_TYPE_HD="HD",Tg.DRM_TRACK_TYPE_UHD1="UHD1",Tg);g.c(Tey,g.C);g.c(z2J,g.H_);g.y=z2J.prototype;g.y.zz=function(U){var O=this;this.GY()||U.size<=0||(U.forEach(function(M,S){var p=iS(O.V)?S:M;S=new Uint8Array(iS(O.V)?M:S);iS(O.V)&&P8w(S);M=g.cp(S,4);P8w(S);S=g.cp(S,4);O.U[M]?O.U[M].status=p:O.U[S]?O.U[S].status=p:O.U[M]={type:"",status:p};O.Sh=[];SB(O,O.U[M].type)&&O.Sh.push(Agw(O.U[M].type))}),YEi(this,","),gy(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.y.error=function(U,O,M,S){this.GY()||(this.publish("licenseerror",U,O,M,S),U==="drm.provision"&&(U=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:U.toFixed(3)})));Po(O)&&this.dispose()}; g.y.shouldRetry=function(U,O){return!U&&this.requestNumber===O.requestNumber}; g.y.VP=function(){this.U={};g.H_.prototype.VP.call(this)}; g.y.aT=function(){var U={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.BA,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(U.keyStatuses=this.U);return U}; g.y.getInfo=function(){var U=this.X.join();if(MK(this)){var O=new Set,M;for(M in this.U)this.U[M].status!=="usable"&&O.add(this.U[M].type);U+="/UKS."+Array.from(O)}return U+="/"+this.cryptoPeriodIndex}; g.y.kI=function(){return this.url};g.c(pk,g.C);g.y=pk.prototype;g.y.z1=function(U){if(this.G){var O=U.messageType||"license-request";this.G(new Uint8Array(U.message),O)}}; g.y.zz=function(){this.D&&this.D(this.U.keyStatuses)}; g.y.onClosed=function(){this.GY()||g.kJ("xboxone")&&this.B&&this.B("closedShouldNotRetry")}; g.y.q3=function(U){this.G&&this.G(U.message,"license-request")}; g.y.DL=function(U){if(this.B){if(this.V){var O=this.V.error.code;U=this.V.error.systemCode}else O=U.errorCode,U=U.systemCode;this.B("t.prefixedKeyError;c."+O+";sc."+U,O,U)}}; g.y.kU=function(){this.C&&this.C()}; g.y.update=function(U){var O=this;if(this.U)return(gv.isActive()?gv.XO("emeupd",function(){return O.U.update(U)}):this.U.update(U)).then(null,xD(function(M){Qui(O,"t.update",M)})); this.V?this.V.update(U):this.element.addKey?this.element.addKey(this.Y.keySystem,U,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Y.keySystem,U,this.initData,this.sessionId);return qv()}; g.y.VP=function(){this.U&&(this.Z?this.U.close().catch(g.rz):this.U.close());this.element=null;g.C.prototype.VP.call(this)};g.c(hv,g.C);g.y=hv.prototype;g.y.setServerCertificate=function(){return this.V.setServerCertificate?this.U.flavor==="widevine"&&this.U.ma?this.V.setServerCertificate(this.U.ma):rs(this.U)&&this.U.NL?this.V.setServerCertificate(this.U.NL):null:null}; g.y.createSession=function(U,O){var M=U.initData;if(this.U.keySystemAccess){O&&O("createsession");var S=this.V.createSession();Ku(this.U)?M=u77(M,this.U.NL):rs(this.U)&&(M=FuJ(M)||new Uint8Array(0));O&&O("genreq");var p=gv.isActive()?gv.XO("emegen",function(){return S.generateRequest(U.contentType,M)}):S.generateRequest(U.contentType,M); var h=new pk(null,null,null,S,null,this.D);p.then(function(){O&&O("genreqsuccess")},xD(function(f){Qui(h,"t.generateRequest",f)})); return h}if(q_(this.U))return id7(this,M);if(ZE(this.U))return qE5(this,M);if((p=this.element)==null?0:p.generateKeyRequest)this.element.generateKeyRequest(this.U.keySystem,M);else{var J;(J=this.element)==null||J.webkitGenerateKeyRequest(this.U.keySystem,M)}return this.X=new pk(this.element,this.U,M,null,null,this.D)}; g.y.p4=function(U){var O=ZdW(this,U);O&&O.q3(U)}; g.y.g8=function(U){var O=ZdW(this,U);O&&O.DL(U)}; g.y.x0=function(U){var O=ZdW(this,U);O&&O.kU(U)}; g.y.getMetrics=function(){if(this.V&&this.V.getMetrics)try{var U=this.V.getMetrics()}catch(O){}return U}; g.y.VP=function(){this.B=this.V=null;var U;(U=this.X)==null||U.dispose();U=g.D(Object.values(this.C));for(var O=U.next();!O.done;O=U.next())O.value.dispose();this.C={};g.C.prototype.VP.call(this);delete this.element};g.y=Jv.prototype;g.y.get=function(U){U=this.findIndex(U);return U!==-1?this.values[U]:null}; g.y.remove=function(U){U=this.findIndex(U);U!==-1&&(this.keys.splice(U,1),this.values.splice(U,1))}; g.y.removeAll=function(){this.keys=[];this.values=[]}; g.y.set=function(U,O){var M=this.findIndex(U);M!==-1?this.values[M]=O:(this.keys.push(U),this.values.push(O))}; g.y.findIndex=function(U){return g.oJ(this.keys,function(O){return g.G$(U,O)})};g.c(kGe,g.H_);g.y=kGe.prototype;g.y.Tiy=function(U){this.lr({onecpt:1});U.initData&&Oge(this,new Uint8Array(U.initData),U.initDataType)}; g.y.gIy=function(U){this.lr({onndky:1});Oge(this,U.initData,U.contentType)}; g.y.NZ=function(U){this.lr({onneedkeyinfo:1});this.gG.T("html5_eme_loader_sync")&&(this.D.get(U.initData)||this.D.set(U.initData,U));USe(this,U)}; g.y.Wj=function(U){this.B.push(U);yn(this)}; g.y.createSession=function(U){var O=gVe(this)?gbm(U):g.cp(U.initData);this.V.get(O);this.sA=!0;U=new z2J(this.videoData,this.gG,U,this.drmSessionId);this.V.set(O,U);U.subscribe("ctmp",this.xW,this);U.subscribe("keystatuseschange",this.zz,this);U.subscribe("licenseerror",this.rT,this);U.subscribe("newlicense",this.Gc,this);U.subscribe("newsession",this.I7,this);U.subscribe("sessionready",this.YU,this);U.subscribe("fairplay_next_need_key_info",this.On,this);this.gG.T("html5_enable_vp9_fairplay")&&U.subscribe("qualitychange", this.UT,this);this.gG.T("html5_enable_sabr_drm_hd720p")&&U.subscribe("sabrlicenseconstraint",this.sOn,this);Wug(U,this.X)}; g.y.Gc=function(U){this.GY()||(this.lr({onnelcswhb:1}),U&&!this.heartbeatParams&&(this.heartbeatParams=U,this.publish("heartbeatparams",U)))}; g.y.I7=function(){this.GY()||(this.lr({newlcssn:1}),this.B.shift(),this.sA=!1,yn(this))}; g.y.YU=function(){if(q_(this.U)&&(this.lr({onsnrdy:1}),this.Ka--,this.Ka===0)){var U=this.yP,O,M;(O=U.element)==null||(M=O.msSetMediaKeys)==null||M.call(O,U.B)}}; g.y.zz=function(U){if(!this.GY()){!this.Ca&&this.videoData.T("html5_log_drm_metrics_on_key_statuses")&&(MWw(this),this.Ca=!0);this.lr({onksch:1});var O=this.UT;if(!MK(U)&&g.Mp&&U.V.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var M="large";else{M=[];var S=!0;if(MK(U))for(var p=g.D(Object.keys(U.U)),h=p.next();!h.done;h=p.next())h=h.value,U.U[h].status==="usable"&&M.push(U.U[h].type),U.U[h].status!=="unknown"&&(S=!1);if(!MK(U)||S)M=U.X;M=teg(M)}O.call(this,M);this.publish("keystatuseschange", U)}}; g.y.xW=function(U,O){this.GY()||this.publish("ctmp",U,O)}; g.y.On=function(U,O){this.GY()||this.publish("fairplay_next_need_key_info",U,O)}; g.y.rT=function(U,O,M,S){this.GY()||(this.videoData.T("html5_log_drm_metrics_on_error")&&MWw(this),this.publish("licenseerror",U,O,M,S))}; g.y.oJ=function(){return this.Y}; g.y.UT=function(U){var O=g.fS("auto",U,!1,"l");if(this.videoData.sU){if(this.Y.KW(O))return}else if(ZZW(this.Y,U))return;this.Y=O;this.publish("qualitychange");this.lr({updtlq:U})}; g.y.sOn=function(U){this.videoData.sabrLicenseConstraint=U}; g.y.VP=function(){this.U.keySystemAccess&&this.element&&(this.BA?this.element.setMediaKeys(null).catch(g.rz):this.element.setMediaKeys(null));this.element=null;this.B=[];for(var U=g.D(this.V.values()),O=U.next();!O.done;O=U.next())O=O.value,O.unsubscribe("ctmp",this.xW,this),O.unsubscribe("keystatuseschange",this.zz,this),O.unsubscribe("licenseerror",this.rT,this),O.unsubscribe("newlicense",this.Gc,this),O.unsubscribe("newsession",this.I7,this),O.unsubscribe("sessionready",this.YU,this),O.unsubscribe("fairplay_next_need_key_info", this.On,this),this.gG.T("html5_enable_vp9_fairplay")&&O.unsubscribe("qualitychange",this.UT,this),O.dispose();this.V.clear();this.C.removeAll();this.D.removeAll();this.heartbeatParams=null;g.H_.prototype.VP.call(this)}; g.y.aT=function(){for(var U={systemInfo:this.U.aT(),sessions:[]},O=g.D(this.V.values()),M=O.next();!M.done;M=O.next())U.sessions.push(M.value.aT());return U}; g.y.getInfo=function(){return this.V.size<=0?"no session":""+this.V.values().next().value.getInfo()+(this.G?"/KR":"")}; g.y.lr=function(U,O){O=O===void 0?!1:O;this.GY()||(AA(U),(this.gG.PV()||O)&&this.publish("ctmp","drmlog",U))};g.c(y4e,g.C);g.y=y4e.prototype;g.y.qf=function(){return!!this.WL}; g.y.H1=function(){return this.V}; g.y.handleError=function(U){var O=this;T8e(this,U);if((U.errorCode!=="html5.invalidstate"&&U.errorCode!=="fmt.unplayable"&&U.errorCode!=="fmt.unparseable"||!$Sw(this,U.errorCode,U.details))&&!zhU(this,U)){if(this.X0.yP!=="yt"&&eh1(this,U)&&this.videoData.Lg&&(0,g.nM)()/1E3>this.videoData.Lg&&this.X0.yP==="hm"){var M=Object.assign({e:U.errorCode},U.details);M.stalesigexp="1";M.expire=this.videoData.Lg;M.init=this.videoData.G8/1E3;M.now=(0,g.nM)()/1E3;M.systelapsed=((0,g.nM)()-this.videoData.G8)/1E3; U=new Ii(U.errorCode,M,2);this.wG.k5(U.errorCode,2,"SIGNATURE_EXPIRED",AA(U.details))}if(Po(U.severity)){var S;M=(S=this.wG.rG)==null?void 0:S.U.U;if(this.X0.T("html5_use_network_error_code_enums"))if(jW4(U)&&M&&M.isLocked())var p="FORMAT_UNAVAILABLE";else if(this.X0.C||U.errorCode!=="auth"||U.details.rc!==429)U.errorCode==="ump.spsrejectfailure"&&(p="HTML5_SPS_UMP_STATUS_REJECTED");else{p="TOO_MANY_REQUESTS";var h="6"}else jW4(U)&&M&&M.isLocked()?p="FORMAT_UNAVAILABLE":this.X0.C||U.errorCode!=="auth"|| U.details.rc!=="429"?U.errorCode==="ump.spsrejectfailure"&&(p="HTML5_SPS_UMP_STATUS_REJECTED"):(p="TOO_MANY_REQUESTS",h="6");this.wG.k5(U.errorCode,U.severity,p,AA(U.details),h)}else this.wG.publish("nonfatalerror",U),S=/^pp/.test(this.videoData.clientPlaybackNonce),this.iH(U.errorCode,U.details),S&&U.errorCode==="manifest.net.connect"&&(U="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.nM)(),PL(U,"manifest",function(J){O.C=!0;O.al("pathprobe",J)},function(J){O.iH(J.errorCode, J.details)}))}}; g.y.al=function(U,O){this.wG.cV().al(U,O)}; g.y.iH=function(U,O){O=AA(O);this.wG.cV().iH(U,O)};dS7.prototype.ZJ=function(U,O){return(O===void 0?0:O)?{nY:U?lb(this,U):VK,Tn:U?YxW(this,U):VK,I2A:U?RhJ(this,U):VK,DbP:U?QWJ(this,U.videoData):VK,Wg:U?C2q(this,U.videoData,U):VK,qgA:U?xSm(this,U):VK,PUZ:vVe(this)}:{nY:U?lb(this,U):VK}}; dS7.prototype.T=function(U){return this.gG.T(U)};g.c(Gu,g.C);Gu.prototype.onError=function(U){if(U!=="player.fatalexception"||this.provider.T("html5_exception_to_health"))U==="sabr.fallback"&&(this.encounteredSabrFallback=!0),U.match(iXL)?this.networkErrorCount++:this.nonNetworkErrorCount++}; Gu.prototype.send=function(){if(!(this.B||this.U<0)){qxe(this);var U=g.kV(this.provider)-this.U,O="PLAYER_PLAYBACK_STATE_UNKNOWN",M=this.playerState.p6;this.playerState.isError()?O=M&&M.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.a(this.playerState,2)?O="PLAYER_PLAYBACK_STATE_ENDED":g.a(this.playerState,64)?O="PLAYER_PLAYBACK_STATE_UNSTARTED":g.a(this.playerState,16)||g.a(this.playerState,32)?O="PLAYER_PLAYBACK_STATE_SEEKING":g.a(this.playerState,1)&&g.a(this.playerState, 4)?O="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.a(this.playerState,1)?O="PLAYER_PLAYBACK_STATE_BUFFERING":g.a(this.playerState,4)?O="PLAYER_PLAYBACK_STATE_PAUSED":g.a(this.playerState,8)&&(O="PLAYER_PLAYBACK_STATE_PLAYING");M=Pdq[bI(this.provider.videoData)];a:switch(this.provider.gG.playerCanaryState){case "canary":var S="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":S="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:S="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var p=ig7(this.provider), h=this.V<0?U:this.V-this.U;U=this.provider.gG.mD+36E5<(0,g.nM)();O={started:this.V>=0,stateAtSend:O,joinLatencySecs:h,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:S,playerCanaryStage:p,isAd:this.provider.videoData.isAd(),liveMode:M,hasDrm:!!g.BB(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:$u(this.provider.videoData)};U||g.HX("html5PlayerHealthEvent",O);this.B=!0;this.dispose()}}; Gu.prototype.VP=function(){this.B||this.send();window.removeEventListener("error",this.xw);window.removeEventListener("unhandledrejection",this.xw);g.C.prototype.VP.call(this)}; var iXL=/\bnet\b/;g.c(KFW,g.C);KFW.prototype.VP=function(){aGq(this);g.C.prototype.VP.call(this)};var EVy=/[?&]cpn=/;g.c($H,g.C);$H.prototype.flush=function(){var U={};this.V&&(U.pe=this.V);this.U.length>0&&(U.pt=this.U.join("."));this.U=[];return U}; $H.prototype.stop=function(){var U=this,O,M,S;return g.A(function(p){if(p.U==1)return g.dW(p,2),g.Y(p,(O=U.X)==null?void 0:O.stop(),4);if(p.U!=2)return(M=p.V)&&U.logTrace(M),g.vg(p,0);S=g.Bg(p);U.V=Okm(S.message);g.Dq(p)})}; $H.prototype.logTrace=function(U){this.encoder.reset();this.encoder.add(1);this.encoder.add(U.resources.length);for(var O=g.D(U.resources),M=O.next();!M.done;M=O.next()){M=M.value.replace("https://www.youtube.com/s/","");this.encoder.add(M.length);for(var S=0;S=0?U:g.kV(this.provider),this.sA?ZXC.has(this.qm)&&(this.U.size||(this.qm==="PL"?U>=this.V+30:U<=this.BA+30||U>=this.V+1200&&U<=this.BA+86400))&&(g.eB(this,U,"vps",[this.qm]),this.V=U):["PL","B","S"].indexOf(this.qm)>-1&&(this.U.size||U>=this.V+30)&&(g.eB(this,U,"vps",[this.qm]),this.V=U),this.U.size)){this.sequenceNumber===7E3&&g.rz(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){c9(this,U);var O=this.provider.wG.zM(); O=g.D(O);for(var M=O.next();!M.done;M=O.next())M=M.value,this.al(M.key,M.value);O=U;M=this.provider.wG.Ag();var S=M.droppedVideoFrames||0,p=M.totalVideoFrames||0,h=S-this.uc,J=p&&!this.fn;S>M.totalVideoFrames||h>5E3?$Ke(this,"html5.badframedropcount","df."+S+";tf."+M.totalVideoFrames):(h>0||J)&&g.eB(this,O,"df",[h]);this.uc=S;this.fn=p;this.Z>0&&(g.eB(this,U,"glf",[this.Z]),this.Z=0);UP.isActive()&&(U=UP.A4(),Object.keys(U).length>0&&this.al("profile",U));this.hG&&DB(this,"lwnmow");this.provider.gG.PV()&& this.provider.T("html5_record_now")&&this.al("now",{wt:(0,g.nM)()});U={};this.provider.videoData.V&&(U.fmt=this.provider.videoData.V.itag,(O=this.provider.videoData.X)&&O.itag!==U.fmt&&(U.afmt=O.itag));U.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(U.adcpn=this.adCpn);this.JN&&(U.addocid=this.JN);this.contentCpn&&(U.ccpn=this.contentCpn);this.ol&&(U.cdocid=this.ol);this.provider.videoData.cotn&&(U.cotn=this.provider.videoData.cotn);U.el=iI(this.provider.videoData);U.content_v=Ke(this.provider.videoData); U.ns=this.provider.gG.yP;U.fexp=bDw(this.provider.gG.experiments).toString();U.cl=(742482130).toString();(O=this.provider.videoData.adFormat||this.adFormat)&&(U.adformat=O);(O=bI(this.provider.videoData))&&(U.live=O);this.provider.videoData.Fk()&&(U.drm=1,this.provider.videoData.G&&(U.drm_system=RZC[this.provider.videoData.G.flavor]||0),this.provider.videoData.n1&&(U.drm_product=this.provider.videoData.n1));eJ()&&this.provider.videoData.C&&(U.ctt=this.provider.videoData.C,U.cttype=this.provider.videoData.SS, this.provider.videoData.mdxEnvironment&&(U.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(U.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.vj&&(U.dai_fallback="1")):this.provider.videoData.xI?U.dai="cs":this.provider.videoData.Z0&&(U.dai="disabled");U.seq=this.sequenceNumber++;if(this.provider.videoData.nP){if(O=this.provider.videoData.nP,U&&O)for(O.ns==="3pp"&&(U.ns="3pp"),this.UX.has(O.ns)&&DB(this,"hbps"), O.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=O.shbpslc),this.provider.gG.experiments.F0("html5_use_server_qoe_el_value")&&this.pE.delete("el"),M=g.D(Object.keys(O)),S=M.next();!S.done;S=M.next())S=S.value,this.pE.has(S)||(U[S]=O[S])}else U.event="streamingstats",U.docid=this.provider.videoData.videoId,U.ei=this.provider.videoData.eventId;this.isEmbargoed&&(U.embargoed="1");Object.assign(U,this.provider.gG.U);if(O=U.seq)O={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+O, serializedWatchEndpointLoggingContext:this.provider.videoData.Db},this.serializedHouseBrandPlayerServiceLoggingContext&&(O.serializedHouseBrandPlayerServiceLoggingContext=d3(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(O.playerResponseCpn=this.provider.videoData.playerResponseCpn),jB.length&&(O.decoderInfo=jB),this.provider.wG.ZD()&&(O.transitionStitchType=4,this.QP&&(O.timestampOffsetMsecs=this.QP)),this.remoteControlMode&&(O.remoteControlMode= this.remoteControlMode),this.remoteConnectedDevices.length&&(O.remoteConnectedDevices=this.remoteConnectedDevices),O=g.SL(O,Tpy),O=g.cp(O,4),this.U.set("qclc",[O]);U=g.pj("//"+this.provider.gG.LJ+"/api/stats/qoe",U);M=O="";S=g.D(this.U.entries());for(p=S.next();!p.done;p=S.next())h=g.D(p.value),p=h.next().value,h=h.next().value,J=void 0,(J=h)!=null&&J.join&&(p="&"+p+"="+h.join(","),p.length>100?M+=p:O+=p);fBm(this,U+O,M.replace(/ /g,"%20"))}this.U.clear()}}; g.y.hY=function(U){this.hG=U}; g.y.QS=function(){if(this.provider.videoData.G){var U=this.provider.videoData.G;DB(this,"eme-"+(U.keySystemAccess?"final":q_(U)?"ms":Ku(U)?"ytfp":ZE(U)?"safarifp":"nonfinal"))}}; g.y.V5=M1(59);g.y.Vc=function(U){this.isEmbargoed=U}; g.y.vx=M1(36);g.y.xX=M1(42);g.y.onPlaybackRateChange=function(U){var O=g.kV(this.provider);U&&U!==this.Dq&&(g.eB(this,O,"rate",[U]),this.Dq=U);this.sA||this.reportStats(O)}; g.y.yf=M1(30);g.y.getPlayerState=function(U){if(g.a(U,128))return"ER";if(g.a(U,2048))return"B";if(g.a(U,512))return"SU";if(g.a(U,16)||g.a(U,32))return"S";if(U.isOrWillBePlaying()&&g.a(U,64))return"B";var O=K84[HI(U)];g.PF(this.provider.gG)&&O==="B"&&this.provider.wG.getVisibilityState()===3&&(O="SU");O==="B"&&g.a(U,4)&&(O="PB");return O}; g.y.VP=function(){g.C.prototype.VP.call(this);g.xJ(this.C);g.xJ(this.EQ)}; g.y.F5=function(U){this.isOffline=U;g.eB(this,g.kV(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.y.al=function(U,O,M){var S=this.FI.indexOf(U)!==-1;S||this.FI.push(U);if(!M||!S){var p=typeof O!=="string"?AA(O):O;p=jQy(p);if(!M&&!/^t[.]/.test(p)){var h=g.kV(this.provider)*1E3;p="t."+h.toFixed()+";"+p}zu(this,"ctmp",U+":"+p);this.logger.debug(function(){return"ctmp "+U+" "+p}); FPg(this);return h}}; g.y.MI=function(U,O,M){this.G={Wr0:Number(this.al("glrem",{nst:U.toFixed(),rem:O.toFixed(),ca:+M})),Vh:U,TDQ:O,isAd:M}}; g.y.Bo=function(U,O,M){g.eB(this,g.kV(this.provider),"ad_playback",[U,O,M])}; g.y.XV=function(U,O){var M=g.kV(this.provider)*1E3;zu(this,"daism","t."+M.toFixed(0)+";smw."+(U*1E3).toFixed(0)+";smo."+(O*1E3).toFixed(0))}; g.y.resume=function(){var U=this;this.provider.gG.PV()&&this.al("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.C)?lBW(this):this.C=g.v5(function(){U.reportStats()},1E4)}; var j_={},K84=(j_[5]="N",j_[-1]="N",j_[3]="B",j_[0]="EN",j_[2]="PA",j_[1]="PL",j_[-1E3]="ER",j_[1E3]="N",j_),ZXC=new Set(["PL","B","S"]),jB=[];v9.prototype.QA=function(){return this.U}; v9.prototype.update=function(){if(this.D){var U=this.aO()||0,O=g.kV(this.provider);U>=this.provider.wG.getDuration()-.1&&(this.previouslyEnded=!0);if(U!==this.U||DKi(this,U,O)){var M;if(!(M=UO-this.Eh+2||DKi(this,U,O))){M=this.provider.wG.getVolume();var S=M!==this.Z,p=this.provider.wG.isMuted()?1:0;p!==this.Y?(this.Y=p,M=!0):(!S||this.X>=0||(this.Z=M,this.X=O),M=O-this.X,this.X>=0&&M>2?(this.X=-1,M=!0):M=!1)}M&&(B9(this),this.B=U);this.Eh=O;this.U=U}}}; v9.prototype.aO=function(){var U=this.provider.wG.aO();return this.provider.gG.T("html5_disable_live_dvr_shrink_for_cdm_vss")&&Le(this.provider.videoData)?U+this.provider.wG.je():U};dKy.prototype.send=function(U){var O=this;if(!this.Rl){var M=Nyq(this),S=g.pj(this.uri,M);this.gG.T("vss_through_gel_double")&&vHy(S);this.sA&&!this.gG.T("html5_simplify_pings")?tBW(this,S):WPw(this,U).then(function(p){O.sA&&(p=p||{},p.method="POST",p.postParams={atr:O.attestationResponse});kXg(S,p,{token:O.ol,j4:O.r7,mdxEnvironment:O.mdxEnvironment},O.gG,U,O.QP,O.isFinal&&O.q_||O.Ca||O.B&&O.mD)}); this.Rl=!0}}; dKy.prototype.V=function(U){U===void 0&&(U=NaN);return Number(U.toFixed(3)).toString()}; var e_={},bkU=(e_.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,e_.LIVING_ROOM_APP_MODE_MAIN=1,e_.LIVING_ROOM_APP_MODE_KIDS=2,e_.LIVING_ROOM_APP_MODE_MUSIC=3,e_.LIVING_ROOM_APP_MODE_UNPLUGGED=4,e_.LIVING_ROOM_APP_MODE_GAMING=5,e_),HQ={},xKq=(HQ.EMBEDDED_PLAYER_MODE_UNKNOWN=0,HQ.EMBEDDED_PLAYER_MODE_DEFAULT=1,HQ.EMBEDDED_PLAYER_MODE_PFP=2,HQ.EMBEDDED_PLAYER_MODE_PFL=3,HQ);g.c(bb,g.C);g.y=bb.prototype;g.y.Ji=function(){this.U.update();X9m(this)&&(Avi(this),IB1(this),this.KJ())}; g.y.VP=function(){g.C.prototype.VP.call(this);YH(this);zdm(this.U)}; g.y.aT=function(){return Nyq(RQ(this,"playback"))}; g.y.KJ=function(){this.provider.videoData.D.eventLabel=iI(this.provider.videoData);this.provider.videoData.D.playerStyle=this.provider.gG.playerStyle;this.provider.videoData.WU&&(this.provider.videoData.D.feature="pyv");this.provider.videoData.D.vid=this.provider.videoData.videoId;var U=this.provider.videoData.D;var O=this.provider.videoData;O=O.isAd()||!!O.WU;U.isAd=O}; g.y.bU=function(U){var O=RQ(this,"engage");O.BA=U;return ByU(O,rve(this.provider))};KPw.prototype.isEmpty=function(){return this.endTime===this.startTime};Av.prototype.T=function(U){return this.gG.T(U)}; Av.prototype.getCurrentTime=function(U){if(this.T("html5_ssap_current_time_for_logging_refactor")){var O=this.wG.ZD();if(O&&(U=U||O.RB()))return gY(O,U)}else if(g.Os(this.videoData)){var M=this.wG.ZD();if(M)return U=this.wG.getCurrentTime(),M=(((O=ZX(M,U*1E3))==null?void 0:O.U9)||0)/1E3,U-M}return this.wG.getCurrentTime()}; Av.prototype.aO=function(U){if(this.T("html5_ssap_current_time_for_logging_refactor")){var O=this.wG.ZD();if(O&&(U=U||O.RB()))return gY(O,U)}else if(g.Os(this.videoData)){var M=this.wG.ZD();if(M)return U=this.wG.aO(),M=(((O=ZX(M,U*1E3))==null?void 0:O.U9)||0)/1E3,U-M}return this.wG.aO()}; var aB4={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.c(g.IQ,g.C);g.y=g.IQ.prototype;g.y.Ji=function(){if(this.provider.videoData.enableServerStitchedDai&&this.x$){var U;(U=this.B.get(this.x$))==null||U.Ji()}else this.U&&this.U.Ji()}; g.y.Vc=function(U){this.qoe&&this.qoe.Vc(U)}; g.y.vx=M1(35);g.y.xX=M1(41);g.y.XV=function(U,O){this.qoe&&this.qoe.XV(U,O)}; g.y.Fn=function(){if(this.provider.videoData.enableServerStitchedDai&&this.x$){var U;(U=this.B.get(this.x$))!=null&&B9(U.U)}else this.U&&B9(this.U.U)}; g.y.iH=function(U,O){this.qoe&&$Ke(this.qoe,U,O);if(this.V)this.V.onError(U)}; g.y.onPlaybackRateChange=function(U){if(this.qoe)this.qoe.onPlaybackRateChange(U);this.U&&B9(this.U.U)}; g.y.V5=M1(58);g.y.al=function(U,O,M){this.qoe&&this.qoe.al(U,O,M)}; g.y.MI=function(U,O,M){this.qoe&&this.qoe.MI(U,O,M)}; g.y.mA=function(U){var O;(O=this.qoe)==null||O.mA(U)}; g.y.g6=function(U){var O;(O=this.qoe)==null||O.g6(U)}; g.y.hY=function(U){this.qoe&&this.qoe.hY(U)}; g.y.Bo=function(U,O,M){this.qoe&&this.qoe.Bo(U,O,M)}; g.y.yf=M1(29);g.y.xi=function(){if(this.qoe)return this.qoe.xi()}; g.y.aT=function(){if(this.provider.videoData.enableServerStitchedDai&&this.x$){var U,O;return(O=(U=this.B.get(this.x$))==null?void 0:U.aT())!=null?O:{}}return this.U?this.U.aT():{}}; g.y.VT=function(){var U;return(U=this.qoe)==null?void 0:U.VT()}; g.y.b_=function(U,O){var M;(M=this.qoe)==null||M.b_(U,O)}; g.y.bU=function(U){return this.U?this.U.bU(U):function(){}}; g.y.KJ=function(){this.U&&this.U.KJ()}; g.y.getVideoData=function(){return this.provider.videoData}; g.y.resume=function(){this.qoe&&this.qoe.resume()};g.c(nk,g.C); nk.prototype.Xy=function(U,O,M){if(this.U.has(U)){var S=this.U.get(U);if(O.videoId&&!EHe(S))this.V.al("ssap",{rlc:U}),Mv4(this,U);else return}if(!this.U.has(U)){S=new Av(O,this.gG,this.wG);var p=Math.round(g.kV(this.V.provider)*1E3);S=new g.IQ(S,p);EHe(S)||this.V.al("nqv",{vv:O.videoId});p=this.V.getVideoData();this.U.set(U,S);if(S.qoe){var h=S.qoe,J=p.videoId||"";h.contentCpn=p.clientPlaybackNonce;h.ol=J}LPg(S);M===2&&(this.gG.T("html5_log_ad_playback_docid")?(M=this.V,M.qoe&&(M=M.qoe,S=O.WV||"", p=O.breakType||0,O=O.videoId||"",h=this.gG.yP||"yt",g.eB(M,g.kV(M.provider),"ad_playback",[U,S,p,O,h]))):this.V.Bo(U,O.WV||"",O.breakType||0))}}; nk.prototype.O4=function(U,O,M,S,p,h,J,f){if(U!==O){var F=this.cV(U),l=this.cV(O),G,T=U===((G=F.getVideoData())==null?void 0:G.clientPlaybackNonce),e;G=O===((e=l.getVideoData())==null?void 0:e.clientPlaybackNonce);var H;e=T?((H=F.getVideoData())==null?void 0:H.videoId)||"":"nvd";var z;H=G?((z=l.getVideoData())==null?void 0:z.videoId)||"":"nvd";T&&(F=F.qoe)!=null&&(W9(F,4,h?4:p?2:0,O,H,M),F.reportStats());G&&(P9(l),(O=l.qoe)!=null&&(W9(O,4,h?5:p?3:1,U,e,S),O.reportStats()),ku5(l,new g.d4(J,l.qm)), VBi(l));f&&Mv4(this,U)}}; nk.prototype.cV=function(U){U=U||this.x$;return this.U.get(U)||this.V};g.c(g.Qn,g.C);g.y=g.Qn.prototype; g.y.pO=function(U,O){this.sync();O&&this.U.array.length>=2E3&&this.rg("captions",1E4);O=this.U;if(U.length>1&&U.length>O.array.length)O.array=O.array.concat(U),O.array.sort(O.U);else for(var M=g.D(U),S=M.next();!S.done;S=M.next())S=S.value,!O.array.length||O.U(S,O.array[O.array.length-1])>0?O.array.push(S):g.$$(O.array,S,O.U);U=g.D(U);for(O=U.next();!O.done;O=U.next())O=O.value,O.namespace==="ad"&&this.X("ssap",{acrsid:O.getId(),acrsst:O.start,acrset:O.end,acrscpt:O.playerType});this.B=NaN;this.sync()}; g.y.My=function(U){U.length>1E4&&g.rz(new g.sT("Over 10k cueRanges removal occurs with a sample: ",U[0]));if(!this.GY()){for(var O=g.D(U),M=O.next();!M.done;M=O.next())(M=M.value)&&M.namespace==="ad"&&this.X("ssap",{rcrid:M.getId(),rcst:M.start,rcet:M.end,rcpt:M.playerType});var S=new Set(U);this.V=this.V.filter(function(p){return!S.has(p)}); FJw(this.U,S);this.sync()}}; g.y.rg=function(U,O){var M=(isNaN(this.B)?g.a(this.wG.getPlayerState(),2)?0x8000000000000:this.wG.getCurrentTime()*1E3:this.B)-O;O=this.sH().filter(function(S){return S.namespace===U&&S.endthis.U,h=g.a(M,8)&&g.a(M,16),J=this.wG.Dt().isBackground()||M.isSuspended();E_(this,this.pE,h&&!J,p,"qoe.slowseek",function(){},"timeout"); var f=isFinite(this.U);f=h&&f&&mcW(O,this.U);var F=!S||Math.abs(S-this.U)>10,l=this.gG.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),G=S===0&&this.V&&[11,10].includes(this.V);E_(this,this.w7,f&&F&&!J&&(!l||!G),p,"qoe.slowseek",function(){O.seekTo(U.U)},"set_cmt"); F=f&&jh(O.wL(),this.U);l=this.wG.rG;f=!l||l.Sk();var T=function(){O.seekTo(U.U+.001)}; E_(this,this.HA,F&&f&&!J,p,"qoe.slowseek",T,"jiggle_cmt");f=function(){return U.wG.Mo()}; E_(this,this.Yy,F&&!J,p,"qoe.slowseek",f,"new_elem");F=ez(M);G=M.isBuffering();var e=O.wL(),H=To(e,S),z=H>=0&&e.end(H)>S+5,W=F&&G&&z,v=this.wG.getVideoData();E_(this,this.hZ,S<.002&&this.U<.002&&h&&g.PF(this.gG)&&g.Zp(v)&&!J,p,"qoe.slowseek",f,"slow_seek_shorts");E_(this,this.yP,v.HU()&&h&&!J&&!v.sA,p,"qoe.slowseek",f,"slow_seek_gapless_shorts");E_(this,this.BA,W&&!J,F&&!G,"qoe.longrebuffer",T,"jiggle_cmt");E_(this,this.sA,W&&!J,F&&!G,"qoe.longrebuffer",f,"new_elem_nnr");if(l){var x=l.getCurrentTime(); h=O.v1();h=cB1(h,x);h=!l.isSeeking()&&S===h;E_(this,this.HV,F&&G&&h&&!J,F&&!G&&!h,"qoe.longrebuffer",function(){O.seekTo(x)},"seek_to_loader")}h={}; T=To(e,Math.max(S-3.5,0));W=T>=0&&S>e.end(T)-1.1;var t=T>=0&&T+1=0&&W&&t<11;h.close2edge=W;h.gapsize=t;h.buflen=e.length;this.V&&(h.seekSour=this.V);if(H=this.wG.ZD()){T=H.RB();W=T!==ZX(H,S*1E3).clipId;t=g.DF(this.gG.experiments,"html5_ssap_skip_seeking_offset_ms");var m=(iz(H,T)+t)/1E3;E_(this,this.Ca,W&&F&&G&&!J,F&&!G,"qoe.longrebuffer",function(){O.seekTo(m)},"ssap_clip_not_match")}E_(this,this.QP,F&&G&&!J,F&&!G,"qoe.longrebuffer", function(){},"timeout",h); h=M.isSuspended();h=this.wG.nN()&&!h;E_(this,this.D,h,!h,"qoe.start15s",function(){U.wG.Vo("ad")},"ads_preroll_timeout"); H=S-this.X<.5;var P;h=!((P=this.wG.ZD())==null||!P.Zy());W=(T=v.isAd()||h&&this.gG.experiments.F0("html5_ssap_skip_slow_ad"))&&F&&!G&&H;P=function(){var u=U.wG,w=g.Os(u.videoData)&&u.vV,E=u.mj.getVideoData();(E&&u.videoData.isAd()&&E.xI===u.getVideoData().xI||!u.videoData.gD)&&!w?u.k5("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+u.videoData.videoId):Jg(u.videoData,"html5_ssap_skip_slow_ad")&&w&&u.vV.Zy()&&(u.iH(new Ii("ssap.transitionfailure",{cpn:ZX(u.vV,u.aO()).clipId,pcpn:u.vV.RB(),cmt:u.aO()})), u=u.vV,w=u.playback.aO(),(w=SmJ(u,w))&&Uxi(u,w.Hi()/1E3))}; E_(this,this.r7,W,!W,"ad.rebuftimeout",P,"skip_slow_ad");H=T&&G&&jh(O.wL(),S+5)&&H;E_(this,this.Qa,H&&!J,!H,"ad.rebuftimeout",P,"skip_slow_ad_buf");P=M.isOrWillBePlaying()&&g.a(M,64)&&!J;E_(this,this.AG,P,p,"qoe.start15s",function(){},"timeout"); P=!!l&&!l.La&&M.isOrWillBePlaying();E_(this,this.Ka,P,p,"qoe.start15s",f,"newElemMse");P=zo(e,0);H=g.a(M,16)||g.a(M,32);H=!J&&M.isOrWillBePlaying()&&G&&!H&&(g.a(M,64)||S===0)&&P>5;E_(this,this.NL,g.Zp(v)&&H,F&&!G,"qoe.longrebuffer",function(){U.wG.DK()},"reset_media_source"); E_(this,this.Rl,g.Zp(v)&&H,F&&!G,"qoe.longrebuffer",f,"reset_media_element");this.X===0&&(this.C=S);H=G&&this.U===0&&S>1&&S===this.C;E_(this,this.TY,g.Zp(v)&&H,F&&!G,"qoe.slowseek",function(){O.seekTo(0)},"reseek_after_time_jump"); J=M.isOrWillBePlaying()&&!J;z=this.wG.rB()-S<6&&!z&&this.wG.uI();E_(this,this.Y,v.HU()&&J&&G&&z,F&&!G,"qoe.longrebuffer",function(){U.wG.Mo(!1,!0)},"handoff_end_long_buffer_reload"); l=(l==null?void 0:ygw(l))||NaN;l=e.length>1||!isNaN(l)&&l-.1<=S;E_(this,this.Z,FX(v)&&J&&G&&l,F&&!G,"qoe.longrebuffer",f,"gapless_slice_append_stuck");J=FX(v)&&this.V===104&&J&&(G||g.a(M,8)&&g.a(M,16));E_(this,this.ol,J,p,"qoe.start15s",f,"gapless_slow_start");M=!!(h&&P>5&&M.isPlaying()&&S<.1);E_(this,this.hG,M,S>.5&&F,"qoe.longrebuffer",f,"ssap_stuck_in_ad_beginning");this.X=S;this.G.start()}}; aQ.prototype.iH=function(U,O,M){O=this.aT(O);O.wn=M;O.wdup=this.B[U]?"1":"0";this.wG.iH(new Ii(U,O));this.B[U]=!0}; aQ.prototype.aT=function(U){U=Object.assign(this.wG.aT(!0),U.aT());this.U&&(U.stt=this.U.toFixed(3));this.wG.getVideoData().isLivePlayback&&(U.ct=this.wG.getCurrentTime().toFixed(3),U.to=this.wG.je().toFixed(3));delete U.uga;delete U.euri;delete U.referrer;delete U.fexp;delete U.vm;return U}; Kk.prototype.reset=function(){this.U=this.V=this.B=this.startTimestamp=0;this.X=!1}; Kk.prototype.test=function(U){if(!this.G||this.V)return!1;if(!U)return this.reset(),!1;U=(0,g.nM)();if(!this.startTimestamp)this.startTimestamp=U,this.B=0;else if(this.B>=this.G)return this.V=U,!0;this.B+=1;return!1}; Kk.prototype.aT=function(){var U={},O=(0,g.nM)();this.startTimestamp&&(U.wsd=(O-this.startTimestamp).toFixed());this.V&&(U.wtd=(O-this.V).toFixed());this.U&&(U.wssd=(O-this.U).toFixed());return U};g.c(YLi,g.C);g.y=YLi.prototype;g.y.setMediaElement=function(U){(this.mediaElement=U)?(this.mediaElement&&(this.G||this.B||!this.mediaElement.qj()||this.seekTo(.01,{uH:"seektimeline_setupMediaElement"})),Lk(this)):oQ(this)}; g.y.getCurrentTime=function(){if(Vn(this.wG)){if(!isNaN(this.V))return this.V}else if(!isNaN(this.V)&&isFinite(this.V))return this.V;return this.mediaElement&&KJ5(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.B||0}; g.y.Ve=function(){return this.Rl}; g.y.aO=function(){return this.getCurrentTime()-this.je()}; g.y.P7=function(){return this.U?this.U.P7():Infinity}; g.y.isAtLiveHead=function(U){if(!this.U)return!1;U===void 0&&(U=this.getCurrentTime());return ib(this.U,U)}; g.y.jr=function(){return!!this.U&&this.U.jr()}; g.y.seekTo=function(U,O){var M=O===void 0?{}:O;O=M.Vx===void 0?!1:M.Vx;var S=M.gZ===void 0?0:M.gZ;var p=M.fG===void 0?!1:M.fG;var h=M.J7===void 0?0:M.J7;var J=M.uH===void 0?"":M.uH;var f=M.seekSource===void 0?void 0:M.seekSource;var F=M.L0===void 0?!1:M.L0;var l=M.KI===void 0?!1:M.KI;M=M.lf===void 0?!1:M.lf;F&&(U+=this.je());$u(this.videoData)&&f===29&&(this.Rl=void 0);F=U=this.S9())||!g.I6(this.videoData),G||(W={st:W,mst:this.S9()},this.U&&this.T("html5_high_res_seek_logging")&&(W.ht=this.U.P7(),W.adft=NcJ(this.U)),this.wG.al("seeknotallowed",W)),W=G));if(!W)return this.X&&(this.X=null,iRg(this)),g.A7(this.getCurrentTime());W=.005;l&&this.T("html5_sabr_seek_no_shift_tolerance")&&(W=0);if(Math.abs(U-this.V)<=W&&this.BA)return this.G;J&&(W=U,(this.gG.PV()||this.T("html5_log_seek_reasons"))&&this.wG.al("seekreason",{reason:J, tgt:W}));f&&(this.Z.V=f);this.BA&&oQ(this);this.G||(this.G=new M6);U&&!isFinite(U)&&PPq(this,!1);(J=M||F)||(J=U,J=!(this.videoData.isLivePlayback&&this.videoData.B&&!this.videoData.B.U&&!(this.mediaElement&&this.mediaElement.K9()>0&&pD(this.mediaElement)>0)||zS(this.videoData)&&this.GZ()===this.S9(!1)?0:isFinite(J)||!zS(this.videoData)));J||(U=wy(this,U,p));U&&!isFinite(U)&&PPq(this,!1);this.B=U;this.HA=h;this.V=U;this.C=0;this.U&&(p=this.U,h=U,vKy(p,h,!1),Bcq(p,h));p=this.wG;h=U;J={Vx:O,seekSource:f}; p.IT.B=h;M=p.xq;M.mediaTime=h;M.U=!0;J.Vx&&p.rM(J);J=h>p.videoData.endSeconds&&h>p.videoData.limitedPlaybackDurationInSeconds;p.aZ&&J&&isFinite(h)&&N04(p);hO.start&&N04(this.wG);return this.G}; g.y.S9=function(U){if(!this.videoData.isLivePlayback)return kTy(this.wG);var O;return yA(this.videoData)&&((O=this.mediaElement)==null?0:O.isPaused())&&this.videoData.U?(U=this.getCurrentTime(),G8e(this.hR(U)*1E3)+U):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&$u(this.videoData)&&this.videoData.U?U?this.videoData.U.ol||0:this.videoData.U.GR||0:zS(this.videoData)&&this.videoData.Ca&&this.videoData.U?this.videoData.U.S9()+this.timestampOffset:this.videoData.B&&this.videoData.B.U?!U&& this.U?this.U.P7():kTy(this.wG)+this.timestampOffset:this.mediaElement?Od()?G8e(this.mediaElement.H8().getTime()):pD(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.y.GZ=function(){if(g.Os(this.videoData)){var U=this.wG;g.Os(U.videoData);var O,M;return(M=(O=U.vV)==null?void 0:O.GZ())!=null?M:U.videoData.GZ()}if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&$u(this.videoData)){var S;return((S=this.videoData.U)==null?void 0:S.aG)||0}O=this.videoData?this.videoData.GZ()+this.timestampOffset:this.timestampOffset;return yA(this.videoData)&&this.videoData.U&&(M=Number((U=this.videoData.progressBarStartPosition)==null?void 0:U.utcTimeMillis)/1E3,U= this.getCurrentTime(),U=this.hR(U)-U,!isNaN(M)&&!isNaN(U))?Math.max(O,M-U):O}; g.y.eb=function(){this.G||this.seekTo(this.B,{uH:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.y.HL=function(){return this.BA&&!isFinite(this.V)}; g.y.VP=function(){nK1(this,null);this.Z.dispose();g.C.prototype.VP.call(this)}; g.y.aT=function(){var U={};this.rG&&Object.assign(U,this.rG.aT());this.mediaElement&&Object.assign(U,this.mediaElement.aT());return U}; g.y.FU=function(U){this.timestampOffset=U}; g.y.getStreamTimeOffset=function(){return zS(this.videoData)?0:this.videoData.U?this.videoData.U.getStreamTimeOffset():0}; g.y.je=function(){return this.timestampOffset}; g.y.hR=function(U){return this.videoData&&this.videoData.U?this.videoData.U.hR(U-this.timestampOffset):NaN}; g.y.r0=function(){if(!this.mediaElement)return 0;if(PB(this.videoData)){var U=this.mediaElement,O=U.wL();U=(H1(O)>0&&U.getDuration()?O.end(O.length-1):0)+this.timestampOffset-this.GZ();O=this.S9()-this.GZ();return Math.max(0,Math.min(1,U/O))}return this.mediaElement.r0()}; g.y.uS=function(U){this.D&&(this.D.U=U)}; g.y.xu=function(U,O){this.wG.al("requestUtcSeek",{time:U});$u(this.videoData)&&(this.Rl=U);var M;(M=this.rG)==null||M.xu(U);O&&(this.sA=O)}; g.y.H2=function(U){$u(this.videoData)&&(this.Rl=void 0);if(this.sA)this.wG.al("utcSeekingFallback",{source:"streamTime",timeSeconds:this.sA}),this.wG.seekTo(this.sA,{uH:"utcSeekingFallback_streamTime"}),this.sA=0;else{var O=this.getCurrentTime();isNaN(O)||(U=this.hR(O)-U,O-=U,this.wG.al("utcSeekingFallback",{source:"estimate",timeSeconds:O}),this.wG.seekTo(O,{uH:"utcSeekingFallback_estimate"}))}}; g.y.oi=function(){this.sA=0}; g.y.T=function(U){return this.gG&&this.gG.T(U)};g.c(UL,g.C);UL.prototype.start=function(){this.V.start()}; UL.prototype.stop=function(){this.V.stop()}; UL.prototype.clear=function(){for(var U=g.D(this.U.values()),O=U.next();!O.done;O=U.next())O.value.clear()}; UL.prototype.sample=function(){for(var U=g.D(this.B),O=U.next();!O.done;O=U.next()){var M=g.D(O.value);O=M.next().value;M=M.next().value;this.U.has(O)||this.U.set(O,new kYi(rdJ.has(O)));this.U.get(O).update(M())}this.V.start()}; var rdJ=new Set(["networkactivity"]);kYi.prototype.update=function(U){this.V?(this.buffer.add(U-this.U||0),this.U=U):this.buffer.add(U)}; kYi.prototype.clear=function(){this.buffer.clear();this.U=0};gc.prototype.Gr=function(){return this.started}; gc.prototype.start=function(){this.started=!0}; gc.prototype.reset=function(){this.finished=this.started=!1};var g9U=!1;g.c(g.hm,g.H_);g.y=g.hm.prototype;g.y.VP=function(){this.logger.debug("dispose");g.xJ(this.kW);J4W(this.oK);this.visibility.unsubscribe("visibilitystatechange",this.oK);jUm(this);fR(this);g.aH.C1(this.G3);this.Cf();this.rD=null;g.FC(this.videoData);g.FC(this.hU);g.FC(this.IQ);g.FC(this.T2);g.lQ(this.Epn);this.aZ=null;g.H_.prototype.VP.call(this)}; g.y.Bo=function(U,O,M,S,p){if(this.gG.T("html5_log_ad_playback_docid")){var h=this.cV();if(h.qoe){h=h.qoe;var J=this.gG.yP||"yt";g.eB(h,g.kV(h.provider),"ad_playback",[U,O,M,p,J])}}else this.cV().Bo(U,O,M);this.T("html5_log_media_perf_info")&&this.al("adloudness",{ld:S.toFixed(3),cpn:U})}; g.y.qE=function(){var U;return(U=this.rG)==null?void 0:U.qE()}; g.y.mY=function(){var U;return(U=this.rG)==null?void 0:U.mY()}; g.y.uO=function(){var U;return(U=this.rG)==null?void 0:U.uO()}; g.y.U1=function(){var U;return(U=this.rG)==null?void 0:U.U1()}; g.y.Fk=function(){return this.videoData.Fk()}; g.y.vU=function(){return this.T("html5_not_reset_media_source")&&!this.Fk()&&!this.videoData.isLivePlayback&&g.Zp(this.videoData)&&!this.gG.supportsGaplessShorts()}; g.y.N8=function(){if(this.videoData.Y){var U;if(!(U=this.videoData.Zw)){var O;U=(O=this.mj.jc())==null?void 0:O.qE()}this.videoData.Zw=U;if(!(U=this.videoData.zi)){var M;U=(M=this.mj.jc())==null?void 0:M.mY()}this.videoData.zi=U}if(gXm(this.videoData)||!hg(this.videoData))M=this.videoData.errorDetail,this.k5(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),M,M,this.videoData.WO||void 0);this.T("html5_generate_content_po_token")&&this.lq();this.T("html5_enable_d6de4")&&this.xG(); if(this.T("html5_ssap_cleanup_player_switch_ad_player")||this.T("html5_ssap_cleanup_ad_player_on_new_data"))if(M=this.mj.eY())this.x9=M.clientPlaybackNonce}; g.y.pH=function(){return this.LM}; g.y.Xy=function(){!this.mI||this.mI.GY();this.mI=new g.IQ(new Av(this.videoData,this.gG,this));this.LM=new nk(this.gG,this,this.mI)}; g.y.getVideoData=function(){return this.videoData}; g.y.J=function(){return this.gG}; g.y.ZJ=function(U){return this.yc.ZJ(this.rD,U===void 0?!1:U)}; g.y.cV=function(U){if(U)a:{for(var O=this.LM,M=g.D(O.U.values()),S=M.next();!S.done;S=M.next())if(S=S.value,S.getVideoData().videoId===U){U=S;break a}U=O.V}else U=this.LM.cV();return U}; g.y.Dt=function(){return this.visibility}; g.y.MZ=function(){return this.mediaElement&&this.mediaElement.U3()?this.mediaElement.tG():null}; g.y.tR=function(){return this.mediaElement}; g.y.JE=function(){if(this.T("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.J().C&&this.J().houseBrandUserStatus&&this.al("hbut",{status:this.J().houseBrandUserStatus});if(this.videoData.cT())return!0;this.k5("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.y.nX=function(U){(U=U===void 0?!1:U)||g.Os(this.videoData)||P9(this.cV());this.Ks=U;!this.JE()||this.Yr.Gr()?g.PF(this.gG)&&this.videoData.isLivePlayback&&this.Yr.Gr()&&!this.Yr.finished&&!this.Ks&&this.Y3():(this.Yr.start(),U=this.cV(),g.kV(U.provider),U.qoe&&lBW(U.qoe),this.Y3())}; g.y.Y3=function(){if(this.videoData.isLoaded()){var U=this.hU;g.DF(U.X0.experiments,"html5_player_min_build_cl")>0&&g.DF(U.X0.experiments,"html5_player_min_build_cl")>742482130&&Hgg(U,"oldplayer");cMq(this)}else this.videoData.TA||this.videoData.wb?this.Ks&&g.PF(this.gG)&&this.videoData.isLivePlayback||(this.videoData.TA?ufJ(this.videoData):(U=this.cV(),U.qoe&&(U=U.qoe,DB(U,"protected"),U.provider.videoData.G?U.QS():U.provider.videoData.subscribe("dataloaded",U.QS,U)),PYm(this.videoData))):!this.videoData.loading&& this.Ys&&eue(this)}; g.y.SL=function(U){this.HB=U;this.rG&&(Uiw(this.rG,new g.w8(U)),this.al("sdai",{sdsstm:1}))}; g.y.O_=function(U){this.vV=U;this.rG&&this.rG.O_(U)}; g.y.yB=M1(16);g.y.isFullscreen=function(){return this.visibility.isFullscreen()}; g.y.isBackground=function(){return this.visibility.isBackground()}; g.y.Oq=function(){var U=this;this.logger.debug("Updating for format change");Jm(this).then(function(){return pR(U)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.y.wM=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.nX();this.JE()&&!g.a(this.playerState,128)&&(this.W3.Gr()||(this.W3.start(),this.videoData.b6?this.M4(Gh(this.playerState,4)):this.M4(Gh(Gh(this.playerState,8),1))),HI4(this))}; g.y.PL=function(){return this.Yr.finished}; g.y.sendAbandonmentPing=function(){g.a(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.tO(!0),jUm(this),g.aH.C1(this.G3))}; g.y.u_=function(U,O){U=U===void 0?!0:U;(O===void 0||O)&&this.mediaElement&&this.mediaElement.pause();this.M4(U?new g.fD(14):new g.fD)}; g.y.SV=function(){this.cV().Fn()}; g.y.k5=function(U,O,M,S,p,h){this.logger.debug(function(){return"set player error: ec="+U+", detail="+p}); var J,f;g.uy(gyv,M)?J=M:M?f=M:J="GENERIC_WITHOUT_LINK";S=(S||"")+(";a6s."+zE());if(U==="auth"||U==="drm.auth"||U==="heartbeat.stop")M&&(S+=";r."+M.replaceAll(" ","_")),h&&(S+="sr."+h.replaceAll(" ","_"));O={errorCode:U,errorDetail:p,errorMessage:f||g.QR[J]||"",PY:J,WO:h||"",Ee:S,mV:O,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=U;y8(this,"dataloaderror");this.M4(lR(this.playerState,128,O));g.aH.C1(this.G3);fR(this);this.Xo()}; g.y.Vo=function(U){this.yk=this.yk.filter(function(O){return U!==O}); this.logger.debug(function(){return"set preroll ready for "+U}); g.Os(this.videoData)&&!this.Jt()&&this.d7.bb("pl_pr");this.W3.Gr()&&HI4(this)}; g.y.Jt=function(){var U;(U=!!this.yk.length)||(U=this.nf.U.array[0],U=!!U&&U.start<=-0x8000000000000);return U}; g.y.jr=function(){return this.IT.jr()}; g.y.isPlaying=function(){return this.playerState.isPlaying()}; g.y.Of=function(){return this.playerState.Of()&&this.videoData.b6}; g.y.getPlayerState=function(){return this.playerState}; g.y.Yw=function(U){var O;(O=this.rG)==null||O.Yw(U)}; g.y.Ex=function(U){var O;(O=this.rG)==null||O.Ex(U)}; g.y.getPlayerType=function(){return this.playerType}; g.y.getPreferredQuality=function(){if(this.rD){var U=this.rD;U=U.videoData.Qx.compose(U.videoData.Ib);U=$c(U)}else U="auto";return U}; g.y.Ct=M1(22);g.y.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.y.setMediaElement=function(U){this.logger.debug("set media element");if(this.mediaElement&&U.tG()===this.mediaElement.tG()&&(U.isView()||this.mediaElement.isView())){if(U.isView()||!this.mediaElement.isView())this.Ia(),this.mediaElement=U,this.mediaElement.wG=this,QUg(this),this.IT.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Cf();if(!this.playerState.isError()){var O=$A(this.playerState,512);g.a(O,8)&&!g.a(O,2)&&(O=Gh(O,1));U.isView()&&(O=$A(O,64));this.M4(O)}this.mediaElement= U;this.mediaElement.wG=this;!g.PF(this.gG)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);QUg(this);this.IT.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.hU.qf()&&bbg(this.mediaElement)}}; g.y.Cf=function(U,O,M){U=U===void 0?!1:U;O=O===void 0?!1:O;M=M===void 0?!1:M;this.logger.debug("remove media element");if(this.mediaElement){var S=this.getCurrentTime();S>0&&(this.IT.B=S);this.IT.setMediaElement(null);!U&&this.vU()?YSy(this):this.Md(M);this.rG&&(xV(this.rG),$K(this,O));this.Fm.stop();if(this.mediaElement&&(!this.W3.Gr()&&!this.nN()||this.playerState.isError()||g.a(this.playerState,2)||this.M4(Gh(this.playerState,512)),this.mediaElement)){this.Ia();if(U||!this.mediaElement.isView())this.d7.mN("mesv_s"), this.mediaElement.stopVideo(),TY(this);this.mediaElement=this.mediaElement.wG=null}}}; g.y.playVideo=function(U,O){U=U===void 0?!1:U;O=O===void 0?!1:O;var M=this,S,p,h,J,f,F;return g.A(function(l){if(l.U==1){M.logger.debug("start play video");var G=window.google_image_requests;G&&G.length>10&&(window.google_image_requests=G.slice(-10));if(g.a(M.playerState,128))return l.return();if(M.hU.H1())return M.publish("signatureexpired"),l.return();M.mediaElement&&P9(M.cV());M.wM();(g.a(M.playerState,64)||U)&&M.M4(Gh(M.playerState,8));return M.W3.finished&&M.mediaElement?M.rD||!M.Pd?l.tZ(2): g.Y(l,M.Pd,3):l.return()}if(l.U!=2&&g.a(M.playerState,128))return l.return();if(!M.videoData.B)return M.videoData.isLivePlayback&&!g.yh(M.gG.G,!0)?(S="html5.unsupportedlive",p=2):(S=M.videoData.Fk()?"fmt.unplayable":"fmt.noneavailable",p=1),g.rz(Error("selectableFormats")),M.k5(S,p,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(M.oA()&&M.videoData.B.U)return M.logger.debug("rebuild playbackData for airplay"),l.return(Jm(M));if(Vn(M))G=M.IT,HB(G.videoData)?!G.isAtLiveHead(G.getCurrentTime())&& G.jr()&&G.wG.seekTo(Infinity,{uH:"seektimeline_peggedToLive",seekSource:34}):g.Os(G.videoData)&&G.getCurrentTime()J;if(!f||!J){h&&f&&(S=Math.max(S,h));var F;h=B81(O,(F=p.U)==null?void 0:F.videoInfos);F=O.wG.getPlaybackRate();F>1&&h&&(F=m6w(O.gG.G,p.U.videoInfos,F),U.U!==0&& F=480;if(O.T("html5_exponential_memory_for_sticky")){l=O.gG.fO;G=1;var T=T===void 0?!1:T;Vz4(l,"sticky-lifetime");l.values["sticky-lifetime"]&&l.MX["sticky-lifetime"]||(l.values["sticky-lifetime"]=0,l.MX["sticky-lifetime"]=0);T&&tG(l,"sticky-lifetime")>.0625&&(G=l.MX["sticky-lifetime"]*2); l.values["sticky-lifetime"]+=1*Math.pow(2,l.U/G);l.MX["sticky-lifetime"]=G;l.X.start()}if(O.T("html5_perf_cap_override_sticky")){T=O.B;l=O.T("html5_perserve_av1_perf_cap");l=l===void 0?!1:l;if(l===void 0?0:l){G=ay();U=g.D(Object.keys(G));for(O=U.next();!O.done;O=U.next())O=O.value,O.indexOf("1")!==0&&delete G[O];g.iC("yt-player-performance-cap",G,2592E3)}else g.KE("yt-player-performance-cap");mMU(l);if(l){l=g.D(nu.keys());for(G=l.next();!G.done;G=l.next())G=G.value,G.startsWith("1")||nu.delete(G); l=g.D(FI.values());for(G=l.next();!G.done;G=l.next())G=G.value,G.startsWith("1")||FI.delete(G);l=g.D(T.keys());for(G=l.next();!G.done;G=l.next())G=G.value,G.startsWith("1")||T.delete(G)}else nu.clear(),FI.clear(),T.clear()}}}this.rG&&(T=this.rG,M=M||"",T.policy.U?Ml(T.X.U,M):Ml(T.U.G,M));this.Tw()}; g.y.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.U?$c(this.videoData.Qx):GZ[K6()]}; g.y.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.y.setUserAudio51Preference=function(U,O){this.getUserAudio51Preference()!==U&&(this.al("toggle51",{pref:U}),g.iC("yt-player-audio51",U,O?31536E3:2592E3),this.Oq())}; g.y.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.y.setProximaLatencyPreference=function(U){var O=this.getProximaLatencyPreference();this.al("proxima",{pref:U});g.iC("yt-player-proxima-pref",U,31536E3);O!==U&&(U=this.IT,U.NL=!0,U.wG.seekTo(Infinity,{uH:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.y.getProximaLatencyPreference=function(){var U;return(U=rx())!=null?U:0}; g.y.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.y.lq=function(){this.videoData.videoId?this.mj.lq(this.videoData):this.al("povid",{})}; g.y.xG=function(){this.videoData.videoId?this.mj.xG(this.videoData):this.al("piavid",{})}; g.y.Tw=function(){if(!this.GY()&&!g.a(this.playerState,128)&&this.videoData.B){if(this.videoData.B.U)Sv(this);else{var U=GY(this),O=this.videoData;a:{var M=this.videoData.UX;if(U.U){for(var S=g.D(M),p=S.next();!p.done;p=S.next()){p=p.value;var h=p.getInfo(),J=g.ai[h.video.quality];if((!U.B||h.video.quality!=="auto")&&J<=U.U){M=p;break a}}M=M[M.length-1]}else M=M[0]}O.w7=M;v9e(this,U.reason,u9m(this,this.videoData.w7))}if(this.T("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.IT.Y= !1,this.playVideo()}}; g.y.v0=function(U,O){if(this.GY()||g.a(this.playerState,128))return!1;var M,S=!((M=this.videoData.B)==null||!M.U);M=S&&O?this.getCurrentTime()-this.je():NaN;if(this.gG.experiments.F0("html5_record_audio_format_intent")){var p=this.cV();if(p.qoe){p=p.qoe;var h=[U.ZN.id,isNaN(M)?"m":"t"];g.eB(p,g.kV(p.provider),"afi",h)}}if(S)return O&&(S=CPw(this.IT),this.al("aswh",{id:U.id,xtags:U.xtags,bh:S.toFixed(3)})),this.rG.setAudioTrack(U,M,O),!0;if(xVU(this)){a:{O=this.mediaElement.audioTracks();for(S=0;S< O.length;++S)if(M=O[S],M.label===U.ZN.getName()){if(M.enabled){O=!1;break a}O=M.enabled=!0;break a}O=void 0}O&&this.al("hlsaudio",{id:U.id})}else{a:if(O=this.videoData,O.X&&!pO(O.X)||U===O.Vk||!O.UX||O.UX.length<=0)O=!1;else{S=g.D(O.UX);for(M=S.next();!M.done;M=S.next()){M=M.value;if(!(M instanceof eZ)){O=!1;break a}p=U.ZN.getId();M.V&&(z6w(M.V,p),M.uM=null)}O.Vk=U;O=!0}O&&pR(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.al("hlsaudio",{id:U.id}))}return!0}; g.y.getAvailableAudioTracks=function(){return g.Os(this.videoData)&&this.vV?J$m(this.vV).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.y.getAudioTrack=function(){if(xVU(this)){var U=Ru7(this);if(U)return U}return this.videoData.getAudioTrack()}; g.y.kM=function(){return this.videoData.X}; g.y.eM=function(){if(this.videoData.T("html5_trigger_loader_when_idle_network")&&!this.videoData.KE()&&$u(this.videoData)){var U;(U=this.rG)!=null&&U.Ce()}}; g.y.Yh=function(){if(FX(this.videoData)&&this.videoData.T("html5_gapless_append_early")){var U;(U=this.rG)!=null&&U.Ce()}}; g.y.bA=function(U){U=U===void 0?!1:U;if(this.rG){var O=this.rG,M=O.bA;var S=this.videoData;S=S.T("html5_ssdai_use_post_for_media")&&S.enableServerStitchedDai?!1:zS(S)&&S.gD&&!S.isAd();M.call(O,S,U)}}; g.y.Md=function(U){U=U===void 0?!1:U;this.La&&(this.logger.debug("remove media source"),xcy(this.La),this.bA(U),this.La.dispose(),this.La=null)}; g.y.Ea=function(){return this.La}; g.y.cG=function(U,O,M,S){function p(J){try{Pa5(h,J,O,M)}catch(f){g.rz(f),h.handleError(new Ii("fmt.unplayable",{msi:"1",ename:f&&typeof f==="object"&&"name"in f?String(f.name):void 0},1))}} var h=this;O=O===void 0?!1:O;M=M===void 0?!1:M;AM5(this,S===void 0?!1:S);this.La=U;this.vU()&&sf(this.La)==="open"?p(this.La):dc7(this.La,p)}; g.y.NZ=function(U){this.logger.debug("onNeedKeyInfo");this.M8.set(U.initData,U);this.Fh&&(this.Fh.NZ(U),this.T("html5_eme_loader_sync")||this.M8.remove(U.initData))}; g.y.N5=function(U){this.videoData.Y1=g.fS("auto",U,!1,"u");Sv(this)}; g.y.uS=function(U){var O=U.reason,M=U.U.info,S=U.token,p=U.videoId,h=this.cV(p),J=g.Os(this.videoData)?h.getVideoData():this.videoData;if(M!==J.X){var f=!J.X;J.X=M;O!=="m"&&O!=="t"&&(O=f?"i":"a");var F=O==="m"||O==="t";this.gG.experiments.F0("html5_refactor_sabr_audio_format_selection_logging")?this.FG=new DS1(J,M,O,"",S,p):(O=new DS1(J,M,O,"",S),h.qoe&&(h=h.qoe,M=g.kV(h.provider),Odq(h,M,O)));this.publish("internalaudioformatchange",J,!f&&F)}this.IT.uS(U.U.index)}; g.y.Ue=function(U){this.publish("localmediachange",U)}; g.y.Ro=function(U){U=U===void 0?{}:U;var O;(O=this.rG)==null||O.Ro(this.gG,GS(this.videoData),U)}; g.y.H1=function(){return this.hU.H1()}; g.y.zN=function(U){this.iH(new Ii("staleconfig",{reason:U}))}; g.y.handleError=function(U){this.hU.handleError(U)}; g.y.qf=function(){return this.hU.qf()}; g.y.H2=function(U){this.IT.H2(U)}; g.y.Mo=function(U,O,M){U=U===void 0?!1:U;O=O===void 0?!1:O;M=M===void 0?!1:M;var S=this,p,h,J;return g.A(function(f){if(f.U==1){S.rG&&S.rG.Xm();S.rG&&S.rG.GY()&&fR(S);if(S.T("html5_enable_vp9_fairplay")&&S.Fk()&&(p=S.videoData.U)!=null)for(var F in p.U)p.U.hasOwnProperty(F)&&(p.U[F].U=null,p.U[F].B=!1);S.M4(Gh(S.playerState,2048));S.T("html5_ssap_keep_media_on_finish_segment")&&g.Os(S.videoData)?S.publish("newelementrequired",M):S.publish("newelementrequired");return U?g.Y(f,Jm(S),2):f.tZ(2)}S.videoData.KE()&& ((h=S.rG)==null?0:h.BA)&&!Vn(S)&&((J=S.isAtLiveHead())&&HB(S.videoData)?S.seekTo(Infinity,{uH:"videoPlayer_getNewElement"}):S.videoData.Dh&&S.rG&&(F=S.rG,F.DQ.KE&&(F.DQ.Dh||F.DQ.X||F.DQ.isPremiere?(F.seek(0,{uH:"loader_resetSqless"}),F.videoTrack.Y=!0,F.audioTrack.Y=!0,F.videoTrack.G=!0,F.audioTrack.G=!0):AX(F.DQ)&&wC(F))));O&&S.seekTo(0,{seekSource:105});g.a(S.playerState,8)&&(S.T("html5_ssap_keep_media_on_finish_segment")&&g.Os(S.videoData)?S.playVideo(!1,M):S.playVideo());g.Dq(f)})}; g.y.B1=function(U){this.al("hgte",{ne:+U});this.videoData.Y=!1;U&&this.Mo();this.rG&&Nd4(this.rG)}; g.y.TK=function(U){this.al("newelem",{r:U});this.Mo()}; g.y.pauseVideo=function(U){U=U===void 0?!1:U;if((g.a(this.playerState,64)||g.a(this.playerState,2))&&!U)if(g.a(this.playerState,8))this.M4(Th(this.playerState,4,8));else if(this.Of())pR(this);else return;g.a(this.playerState,128)||(U?this.M4(Gh(this.playerState,256)):this.M4(Th(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.I6(this.videoData)&&this.rG&&$K(this,!1)}; g.y.stopVideo=function(){this.pauseVideo();this.rG&&($K(this,!1),this.rG.m0())}; g.y.Xo=function(U,O){U=U===void 0?!1:U;O=O===void 0?!1:O;if(this.vU()&&O){var M;(M=this.mediaElement)==null||M.Xo()}else{var S;(S=this.mediaElement)==null||S.stopVideo()}TY(this);fR(this);g.a(this.playerState,128)||(U?this.M4($A($A(Gh(this.playerState,4),8),16)):this.M4(lR(this.playerState)));this.videoData.videoId&&this.gG.Ca.remove(this.videoData.videoId)}; g.y.seekTo=function(U,O){O=O===void 0?{}:O;this.logger.debug(function(){return"SeekTo "+U+", "+JSON.stringify(O)}); g.a(this.playerState,2)&&pR(this);O.s9l&&this.M4(Gh(this.playerState,2048));O.seekSource!==58&&O.seekSource!==60||!this.T("html5_update_vss_during_gapless_seeking")||oHg(this.cV(),O.seekSource);this.IT.seekTo(U,O);this.nf.sync()}; g.y.rM=function(U){this.d7.X.V=(0,g.nM)();g.a(this.playerState,32)||(this.M4(Gh(this.playerState,32,U==null?void 0:U.seekSource)),g.a(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.kZ()}; g.y.Tt=function(U){U=U==null?void 0:U.seekSource;g.a(this.playerState,32)?(this.M4(Th(this.playerState,16,32,U)),this.publish("endseeking")):g.a(this.playerState,2)||this.M4(Gh(this.playerState,16,U));U=this.d7.X;var O=this.videoData,M=this.playerState.isPaused();if(O.clientPlaybackNonce&&!isNaN(U.U)){if(Math.random()<.01){M=M?"pbp":"pbs";var S={startTime:U.U};O.C&&(S.cttAuthInfo={token:O.C,videoId:O.videoId});oY("seek",S);g.Va({clientPlaybackNonce:O.clientPlaybackNonce},"seek");isNaN(U.V)||Ll("pl_ss", U.V,"seek");Ll(M,(0,g.nM)(),"seek")}U.reset()}}; g.y.eE=function(U){this.Tt(U)}; g.y.Ru=function(){this.publish("SEEK_COMPLETE")}; g.y.fd=function(U){var O=this.mj,M=this.videoData.clientPlaybackNonce,S=this.playerType;if(U.scope===4){var p=U.type;if(p){var h=O.Va(),J=h.getVideoData().clientPlaybackNonce;S===1&&(J=M);(O=Iyw(O,J))?(M=O.getVideoData())&&(U.writePolicy===2&&M.sabrContextUpdates.has(p)||M.sabrContextUpdates.set(p,U)):h.al("scuset",{ncpf:"1",ccpn:J,crcpn:M})}else g.rz(Error("b/380308491: contextUpdateType is undefined"))}}; g.y.yA=function(){if(this.playerType===2)return this.mj.yA("")}; g.y.getCurrentTime=function(){return this.IT.getCurrentTime()}; g.y.Ve=function(){return this.IT.Ve()}; g.y.aO=function(){return this.IT.aO()}; g.y.VA=function(U){return this.vV&&(U=U||this.vV.RB())?gY(this.vV,U):this.aO()}; g.y.P7=function(){return this.IT.P7()}; g.y.getPlaylistSequenceForTime=function(U){return this.videoData.getPlaylistSequenceForTime(U-this.je())}; g.y.Kt=function(){var U=NaN;this.mediaElement&&(U=this.mediaElement.Kt());return U>=0?U:this.getCurrentTime()}; g.y.hR=function(){var U;return((U=this.videoData.U)==null?0:U.hR)?this.videoData.U.hR(this.getCurrentTime()-this.je()):this.mediaElement&&(U=this.mediaElement.H8())&&(U=U.getTime(),!isNaN(U))?U/1E3+this.getCurrentTime():NaN}; g.y.getDuration=function(U){return g.Os(this.videoData)&&this.vV?U?hew(this.vV,U):BH(this.vV):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.je():this.S9()?this.S9():0}; g.y.Xr=function(){var U=new gK7;if(this.rG){var O=this.gG.schedule,M=this.gG.PV();M=M===void 0?!1:M;U.fX=O.BA;U.LF=O.HA;U.bandwidthEstimate=bk(O);if(M){M=(O.Y.aA()*1E3).toFixed();var S=(O.QP.aA()*1E3).toFixed(),p=vn(O).toFixed(2),h=((O.D.aA()||0)*1E9).toFixed(2),J=O.B.aA().toFixed(0),f=O.Ca.aA().toFixed(0),F=O.Z.percentile(.5).toFixed(2),l=O.Z.percentile(.92).toFixed(2),G=O.Z.percentile(.96).toFixed(2),T=O.Z.percentile(.98).toFixed(2);O.U?O.U.reset():O.U=new jf;O.U.add(O.sA);O.U.add(O.interruptions.length); for(var e=0,H=O.interruptions.length-1;H>=0;H--){var z=O.interruptions[H];O.U.add(z-e);e=z}e=0;for(H=O.X.length-1;H>=0;H--){z=O.X[H];var W=z.stamp/36E5;O.U.add(W-e);e=W;O.U.add(z.net/1E3);O.U.add(z.max)}O=O.U.g3();U.U={ttr:M,ttm:S,d:p,st:h,bw:J,abw:f,v50:F,v92:l,v96:G,v98:T,"int":O}}wB5(this.rG,U)}else this.mediaElement&&(U.P$=h0(this.mediaElement));U.fX=this.fX;U.LF=this.LF;U.B=this.isAtLiveHead()&&this.isPlaying()?$VJ(this):NaN;return U}; g.y.pz=function(U,O){this.LF+=U;this.fX+=O}; g.y.r0=function(){return this.mediaElement?g.I6(this.videoData)?1:PB(this.videoData)?this.isAtLiveHead()||this.jr()?1:this.IT.r0():this.mediaElement.r0():0}; g.y.W_=function(){var U=this.GF,O=sL(U,"bandwidth"),M=sL(U,"bufferhealth"),S=sL(U,"livelatency"),p=sL(U,"networkactivity"),h=OL(U,"bandwidth"),J=OL(U,"bufferhealth"),f=OL(U,"livelatency");U=OL(U,"networkactivity");var F=this.Ag(),l=F.droppedVideoFrames;F=F.totalVideoFrames;var G=this.getCurrentTime();if(this.Fh){var T="IT/"+(this.Fh.U.getInfo()+"/"+$c(this.oJ()));T+="/"+this.Fh.getInfo()}else T="";var e=this.isGapless(),H=this.uB(),z=this.xi(),W=g.lP(this),v=this.getPlayerState(),x=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var t=0;var m="";if(this.HB){if(this.HB.Ja){m="D,";break a}t=this.HB.rh();m=this.HB.RB().substring(0,4)}else this.vV&&(t=this.vV.rh(),m=this.vV.RB().substring(0,4));t>0?(t="AD"+t+", ",m&&(t+=m+", "),m=t):m=""}return{Bn:h,FX:J,currentTime:G,Ko:T,droppedVideoFrames:l,isGapless:e,uB:H,Gm:z,tI:O,lh:M,dn:S,Oc:p,Cw:f,yh:U,UD:W,playerState:v,bR:x,Pc:m,totalVideoFrames:F}}; g.y.aT=function(U){var O={};if(U===void 0?0:U){Object.assign(O,this.cV().aT());this.mediaElement&&(Object.assign(O,this.mediaElement.aT()),U=this.Ag(),O.dvf=U.droppedVideoFrames,O.tvf=U.totalVideoFrames);this.rG&&Object.assign(O,this.rG.aT());this.Fh&&(O.drm=JSON.stringify(this.Fh.aT()));O.state=this.playerState.state.toString(16);g.a(this.playerState,128)&&(O.debug_error=JSON.stringify(this.playerState.p6));this.Jt()&&(O.prerolls=this.yk.join(","));this.videoData.dH&&(O.ismb=this.videoData.dH);this.videoData.latencyClass!== "UNKNOWN"&&(O.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(O.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)O.is_mosaic=1;this.videoData.cotn&&(O.is_offline=1,O.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(O.playerResponseCpn=this.videoData.playerResponseCpn);this.mj.isOrchestrationLeader()&&(O.leader=1);this.videoData.isLivePlayback&&(this.videoData.U&& Rb(this.videoData.U)&&(O.segduration=Rb(this.videoData.U)),U=this.IT,O.lat=U.D?HRW(U.D.X):0,O.liveutcstart=this.videoData.liveUtcStartSeconds);O.relative_loudness=this.videoData.gs.toFixed(3);if(U=g.lP(this))O.optimal_format=U.video.qualityLabel;O.user_qual=K6();O.release_version=gW[17];g.Os(this.videoData)&&this.vV&&(O.ssap=sx(this.vV))}O.debug_videoId=this.videoData.videoId;return O}; g.y.addCueRange=function(U){this.FO([U])}; g.y.removeCueRange=function(U){this.nf.My([U])}; g.y.b4=function(){this.nf.sync()}; g.y.rg=function(U,O){return this.nf.rg(U,O)}; g.y.FO=function(U,O){this.nf.pO(U,O)}; g.y.QH=function(U){this.nf.My(U)}; g.y.Bd=function(U){var O=this.nf;U.length<=0||O.GY()||(U=O.U,U.array.sort(U.U))}; g.y.sH=function(){return this.nf.sH()||[]}; g.y.gw=function(){return this.Dc}; g.y.oA=function(){return this.visibility.oA()}; g.y.PC=function(){this.mediaElement&&this.mediaElement.PC()}; g.y.jOZ=function(){y8(this)}; g.y.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.y.Ia=function(){g.CE(this.U6)}; g.y.Hr=function(){this.kZ();this.publish("onLoadProgress",this.r0())}; g.y.pY=function(U){var O=U.target.QN();if(this.mediaElement&&this.mediaElement.QN()&&this.mediaElement.QN()===O){LHW(this,U.type);switch(U.type){case "error":var M=yW(this.mediaElement)||"",S=this.mediaElement.XT();if(M==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.al("capchg",{msg:S}),this.Mo(!0)):Jm(this);return}if(this.mediaElement.hasError()&&($Sw(this.hU,M,{msg:S})||g.Os(this.videoData)&&this.vV&&(S=this.playerState.p6,this.vV.handleError(M,S==null?void 0:S.mV))))return; if(this.isBackground()&&this.mediaElement.eH()===4){this.Xo();FE(this,"unplayable");return}break;case "durationchange":M=this.mediaElement.getDuration();isFinite(M)&&(!this.La||M>0)&&M!==1&&this.l8(M);break;case "ratechange":this.rG&&this.rG.setPlaybackRate(this.mediaElement.getPlaybackRate());lHe(this.nf);this.cV().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":o9i(this);this.publish("onLoadedMetadata");Xx7(this);M=this.hR();this.videoData.FV&&(this.videoData.FV=M);break; case "loadstart":Xx7(this);break;case "progress":case "suspend":g.DF(this.gG.experiments,"html5_progress_event_throttle_ms")>0?this.hD.mM():this.Hr();break;case "playing":this.d7.mN("plev");this.eJ&&!Vn(this)&&(this.eJ=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{uH:"videoplayer_onPlaying"})));break;case "timeupdate":M=this.mediaElement&&!this.mediaElement.getCurrentTime();S=this.mediaElement&&this.mediaElement.K9()===0;if(M&&(!this.E8||S))return; this.E8=this.E8||!!this.mediaElement.getCurrentTime();Cam(this);this.kZ();if(!this.mediaElement||this.mediaElement.QN()!==O)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.v1().length>0&&this.mediaElement.wL().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.rG)return;this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.K9()>2||!this.mediaElement.isSeeking()&& jh(this.mediaElement.wL(),this.mediaElement.getCurrentTime()))&&(M=this.mediaElement.aT(),M.bh=h0(this.mediaElement).toFixed(3),this.al("uwe",M));g.Os(this.videoData)&&this.vV&&Uxi(this.vV,this.mediaElement.getCurrentTime());break;case "resize":o9i(this);this.videoData.V&&this.videoData.V.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.rS&&g.a(this.playerState,8)&&!g.a(this.playerState,1024)&&this.getCurrentTime()===0&&g.bh){FE(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.QN()===O){LJJ(this.IT,U,this.vV||void 0);this.publish("videoelementevent",U);O=this.playerState;S=this.xq;var p=this.mediaElement,h=this.gG.experiments;M=this.videoData.clientPlaybackNonce;var J=g.Os(this.videoData)&&this.vV?BH(this.vV):void 0;if(!g.a(O,128)){var f=O.state;p=p?p:U.target;var F=p.getCurrentTime();if(!g.a(O,64)||U.type!=="ended"&&U.type!=="pause"){J=J||p.getDuration();J=p.isEnded()||F>1&&Math.abs(F-J)<1.1;var l=U.type==="pause"&&p.isEnded(); F=U.type==="ended"||U.type==="waiting"||U.type==="timeupdate"&&!g.a(O,4)&&!Ck(S,F);if(l||J&&F)p.V0()>0&&p.QN()&&(f=14);else switch(U.type){case "error":yW(p)&&(f|=128);break;case "pause":g.a(O,256)?(f^=256)||(f=64):g.a(O,32)||g.a(O,2)||g.a(O,4)||(f=4,g.a(O,1)&&g.a(O,8)&&(f|=1));break;case "playing":h=f;f=(f|8)&-1093;h&4?(f|=1,Fw(S,p,!0)):Ck(S,p.getCurrentTime())&&(f&=-2);g.a(O,1)&&Fw(S,p)&&(f|=1);break;case "seeking":f|=16;g.a(O,8)&&(f|=1);f&=-3;break;case "seeked":f&=-17;Fw(S,p,!0);break;case "waiting":g.a(O, 2)||(f|=1);Fw(S,p);break;case "timeupdate":h=g.a(O,16);F=g.a(O,4);(g.a(O,8)||h)&&!F&&Ck(S,p.getCurrentTime())&&(f=8);Fw(S,p)&&(f|=1);break;case "progress":case "suspend":h.F0("html5_track_underruns_on_progress")&&Fw(S,p)}}S=f;f=null;S&128&&(f=U.target,p=yW(f),h=1,p?(p==="capability.changed"&&(h=2),F="GENERIC_WITHOUT_LINK",J=f.aT(),J.mediaElem="1",/AUDIO_RENDERER/.test(f.XT())&&(F="HTML5_AUDIO_RENDERER_ERROR"),f={errorCode:p,errorMessage:g.QR[F]||"",PY:F,Ee:AA(J),mV:h,cpn:O.p6?O.p6.cpn:""}):f=null, f&&(f.cpn=M));O=lR(O,S,f)}!g.a(this.playerState,1)&&g.a(O,1)&&E9y(this,"evt"+U.type);this.M4(O)}}}; g.y.ZEQ=function(U){U=U.U.availability==="available";U!==this.Dc&&(this.Dc=U,this.publish("airplayavailabilitychange"))}; g.y.zzZ=function(){var U=(0,g.nM)(),O=this.mediaElement.oA();this.al("airplay",{ia:O});!O&&!isNaN(this.y9)&&U-this.y9<2E3||(this.y9=U,O!==this.oA()&&(U=this.visibility,U.U!==O&&(U.U=O,U.oK()),this.al("airplay",{rbld:O}),this.Oq()),this.publish("airplayactivechange"))}; g.y.sf=function(U){if(this.rG){var O=this.rG,M=O.B,S=O.getCurrentTime(),p=Date.now()-M.Z;M.Z=NaN;M.al("sdai",{adfetchdone:U,d:p});U&&!isNaN(M.D)&&M.V!==3&&E9(M.rG,S,M.D,M.C);M.policy.G?M.G=NaN:M.X=NaN;rV(M,4,M.V===3?"adfps":"adf");xV(O)}}; g.y.s4=function(){g.xJ(this.kW);this.Fm.stop();this.videoData.sA=!0;this.gG.wb=!0;this.gG.EQ=0;var U=this.hU;if(U.videoData.V){var O=U.X0.G,M=U.videoData.V.zY;O.V.has(M)&&(O.V.delete(M),fL(O))}U.U.stop();this.ai();g.a(this.playerState,8)&&this.M4($A(this.playerState,65));this.Ks=!1;VBi(this.cV());g.OM(this.IQ);this.publish("playbackstarted");(U=g.K7("yt.scheduler.instance.clearPriorityThreshold"))?U():Fo(0,0)}; g.y.ai=function(){var U=this.mj.eY(),O={},M={};!k6("pbs",this.d7.timerName)&&Qa.measure&&Qa.getEntriesByName&&(Qa.getEntriesByName("mark_nr")[0]?Ea7("mark_nr"):Ea7());U.videoId&&(O.videoId=U.videoId);U.clientPlaybackNonce&&!this.T("web_player_early_cpn")&&(O.clientPlaybackNonce=U.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(M.isPausedOnLoad=!0);M.itag=U.V?Number(U.V.itag):-1;U.FI&&(M.preloadType=String(this.dN?2:1));O.liveStreamMode=Pdq[bI(U)];O.playerInfo=M;this.d7.infoGel(O); if(this.rG){U=this.rG.timing;window&&window.performance&&window.performance.getEntriesByName&&(U.B&&(O=window.performance.getEntriesByName(U.B),O.length&&(O=O[0],U.tick("vri",O.fetchStart),U.tick("vdns",O.domainLookupEnd),U.tick("vreq",O.requestStart),U.tick("vrc",O.responseEnd))),U.V&&(O=window.performance.getEntriesByName(U.V),O.length&&(O=O[0],U.tick("ari",O.fetchStart),U.tick("adns",O.domainLookupEnd),U.tick("areq",O.requestStart),U.tick("arc",O.responseEnd))));U=U.ticks;for(var S in U)U.hasOwnProperty(S)&& this.d7.tick(S,U[S])}}; g.y.w6=function(U,O,M){U=(U+(this.dI===3?.3:0))/O;O=Math.floor(U*4);O>this.dI&&(this.al("vpq",{q:O,cpn:M||this.videoData.clientPlaybackNonce,ratio:U.toFixed(3)}),this.dI=O)}; g.y.vW=function(){this.dI=-1}; g.y.kZ=function(U){var O=this;U=U===void 0?!1:U;if(this.mediaElement&&this.videoData){X2W(this.IT,this.isPlaying());var M=this.getCurrentTime();!this.rG||g.a(this.playerState,4)&&g.I6(this.videoData)||g.a(this.playerState,32)&&$u(this.videoData)||Mem(this.rG,M);this.T("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.w6(M,this.videoData.lengthSeconds);M>5&&(this.IT.B=M);var S=g.fM();S?g.aH.C1(this.G3):g.B5(this.G3);var p=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!p||yA(this.videoData))&& !g.a(this.playerState,128)){var h=function(){if(O.mediaElement&&!g.a(O.playerState,128)){O.gG.PV()&&LHW(O,"pfx");var J=O.getCurrentTime();O.T("html5_buffer_underrun_transition_fix")&&(J-=O.je());var f=h0(O.mediaElement),F=g.a(O.playerState,8),l=Ck(O.xq,J),G=IYU(O.xq,J,(0,g.nM)(),f);F&&l?O.M4($A(O.playerState,1)):F&&G?(F=O.getDuration(),l=HB(O.videoData),F&&Math.abs(F-J)<1.1?(O.al("setended",{ct:J,bh:f,dur:F,live:l}),O.mediaElement.oo()?(O.logger.debug("seek to 0 because of looping"),O.seekTo(0,{uH:"videoplayer_loop", seekSource:37})):O.u_()):(O.playerState.isBuffering()||E9y(O,"progress_fix"),O.M4(Gh(O.playerState,1)))):(F&&!l&&!G&&J>0&&(F=(Date.now()-O.WL)/1E3,l=O.getDuration(),J>l-1&&O.al("misspg",{t:J.toFixed(2),d:l.toFixed(2),r:F.toFixed(2),bh:f.toFixed(2)})),O.playerState.isPaused()&&O.playerState.isBuffering()&&h0(O.mediaElement)>5&&O.M4($A(O.playerState,1)));O.kZ()}}; this.mediaElement.v1().length===0?this.G3=S?g.aH.YX(h,100):g.Nv(h,100):this.G3=S?g.aH.YX(h,500):g.Nv(h,500)}this.videoData.Yy=M;this.vV&&this.vV.QF();!U&&this.isPlaying()&&qSw(this);nVW(this.yc,this.rD,this.tR(),this.isBackground())&&Sv(this);this.publish("progresssync",U);p&&yA(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.y.VcQ=function(){this.k5("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.y.xi=function(){return this.cV().xi()}; g.y.xx=function(){return this.rG?this.rG.xx():bk(this.gG.schedule,!0)}; g.y.M4=function(U){if(!g.jz(this.playerState,U)){this.logger.debug(function(){return"Setting state "+U.toString()}); var O=new g.d4(U,this.playerState);this.playerState=U;Vj7(this);var M=!this.m4.length;this.m4.push(O);var S=this.mediaElement&&this.mediaElement.isSeeking();S=O.oldState.state===8&&!S;g.Nc(O,1)&&S&&g.a(this.playerState,8)&&!g.a(this.playerState,64)&&this.rG&&(Wre(this.rG),this.mediaElement&&h0(this.mediaElement)>=5&&IGw(this.yc,this.rD)&&Sv(this));(S=g.DF(this.gG.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.a(U,1)&&(g.a(U,8)||g.a(U,16))?this.Mq.start(S):this.Mq.stop();(Wv(O,8)<0|| g.Nc(O,1024))&&this.Fm.stop();!g.Nc(O,8)||this.videoData.sA||g.a(O.state,1024)||this.Fm.start();g.a(O.state,8)&&Wv(O,16)<0&&!g.a(O.state,32)&&!g.a(O.state,2)&&this.playVideo();g.a(O.state,2)&&PB(this.videoData)&&(this.l8(this.getCurrentTime()),this.kZ(!0));g.Nc(O,2)&&(this.tO(!0),this.gG.PV()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&$u(this.videoData)&&this.videoData.U&&(S={minst:""+this.videoData.U.aG,cminst:""+(this.videoData.U.GZ()+this.je()),maxst:""+this.videoData.U.GR, hts:""+this.videoData.U.ol,cmaxst:""+(this.videoData.U.S9()+this.je())},this.al("sabrSeekableBoundaries",S)));g.Nc(O,128)&&this.Xo();this.videoData.U&&this.videoData.isLivePlayback&&!this.Oz&&(Wv(O,8)<0?gA1(this.videoData.U):g.Nc(O,8)&&this.videoData.U.resume());Q3q(this.IT,O);ku5(this.cV(),O);if(M&&!this.GY())try{for(var p=g.D(this.m4),h=p.next();!h.done;h=p.next()){var J=h.value;GYq(this.nf,J);this.publish("statechange",J)}}finally{this.m4.length=0}}}; g.y.jE=function(){this.d7.tick("qoes")}; g.y.eb=function(){this.IT.eb()}; g.y.rT=function(U,O,M,S){a:{var p=this.hU;S=S===void 0?"LICENSE":S;M=M.substring(0,256);var h=Po(O);U==="drm.keyerror"&&this.Fh&&this.Fh.V.keys.length>1&&p.X<96&&(U="drm.sessionlimitexhausted",h=!1);var J=p.X0.experiments.F0("html5_retry_on_drm_unavailable"),f=p.X0.experiments.F0("html5_retry_on_drm_key_error"),F=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(J&&U==="drm.unavailable"||f&&U==="drm.keyerror"&&!M.match(F))p.iH("qoe.restart",{retryOnDrmError:1,e:U,detail:M}),p.wG.Mo(!0);else{if(h)if(p.videoData.V&& p.videoData.V.video.isHdr())c4m(p,U);else{if(p.wG.k5(U,O,S,M),FF1(p,{detail:M}))break a}else p.iH(U,{detail:M});U==="drm.sessionlimitexhausted"&&(p.al("retrydrm",{sessionLimitExhausted:1}),p.X++,adq(p.wG))}}}; g.y.irc=function(){var U=this,O=g.DF(this.gG.experiments,"html5_license_constraint_delay"),M=fE();O&&M?(O=new g.UM(function(){U.Tw();y8(U)},O),g.X(this,O),O.start()):(this.Tw(),y8(this))}; g.y.ON=function(U){this.publish("heartbeatparams",U)}; g.y.zz=function(U){this.al("keystatuses",miq(U));var O="auto",M=!1;this.videoData.V&&(O=this.videoData.V.video.quality,M=this.videoData.V.video.isHdr());a:{switch(O){case "highres":case "hd2880":O="UHD2";break;case "hd2160":case "hd1440":O="UHD1";break;case "hd1080":case "hd720":O="HD";break;case "large":case "medium":case "small":case "light":case "tiny":O="SD";break;default:O="";break a}M&&(O+="HDR")}O=MK(U)?SB(U,O):U.X.includes(O);this.T("html5_enable_sabr_authorized_drm_track_types")&&(this.videoData.Sh= U.Sh);if(this.T("html5_enable_vp9_fairplay")){if(M)if(U.D){var S;if((S=this.Fh)==null?0:rs(S.U))if((M=this.Fh)==null)M=0;else{for(var p=S=void 0,h=g.D(M.V.values()),J=h.next();!J.done;J=h.next())J=J.value,S||(S=I0m(J,"SD")),p||(p=I0m(J,"AUDIO"));M.lr({sd:S,audio:p});M=S==="output-restricted"||p==="output-restricted"}else M=!O;if(M){this.al("drm",{dshdr:1});c4m(this.hU);return}}else{this.videoData.hF||(this.videoData.hF=!0,this.al("drm",{dphdr:1}),this.Mo(!0));return}var f;if((f=this.Fh)==null?0:rs(f.U))return}else if(f= U.D&&O,M&&!f){c4m(this.hU);return}O||SB(U,"AUDIO")&&SB(U,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),U=miq(U),this.cI?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.k5("drm.keyerror",2,void 0,"info."+U)):(this.cI=!0,this.iH(new Ii("qoe.restart",Object.assign({},{retrydrm:1},U))),Sv(this),adq(this)))}; g.y.jTd=function(){if(!this.videoData.sA&&this.mediaElement&&!this.isBackground()){var U="0";this.mediaElement.K9()>0&&h0(this.mediaElement)>=5&&this.videoData.B&&this.videoData.B.U&&(this.M4(Gh(this.playerState,1)),E9y(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),U="1");Vj7(this);var O=this.videoData.B;U={restartmsg:U,mfmt:!fe(this.videoData),mdrm:!(!(O&&O.videoInfos&&O.videoInfos.length&&O.videoInfos[0].IW)||this.Fh),mfmtinfo:!this.videoData.V,prerolls:this.Jt()?this.yk.join(","): "0"};if(this.Fh){O=this.Fh;if(O.V.size<=0){var M="ns;";O.Z||(M+="nr;");O=M+="ql."+O.B.length}else O=miq(O.V.values().next().value),O=AA(O);U.drmp=O}var S;Object.assign(U,((S=this.rG)==null?void 0:S.aT())||{});var p;Object.assign(U,((p=this.mediaElement)==null?void 0:p.aT())||{});this.cV().iH("qoe.start15s",AA(U));this.publish("loadsofttimeout")}}; g.y.l8=function(U){this.videoData.lengthSeconds!==U&&(this.videoData.lengthSeconds=U,y8(this))}; g.y.tO=function(U,O){var M=this;U=U===void 0?!1:U;if(!this.xd)if(k6("att_s","player_att")||Ut("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var p,h,J,f;return g.A(function(F){switch(F.U){case 1:if(!(p=U)){F.tZ(2);break}return g.Y(F,g.dYJ(),3);case 3:p=!F.V;case 2:if(p)return F.return();g.dW(F,4);h=ORm(M.cV());if(!h)throw Error();J={};return g.Y(F,g.DYW((J.cpn=M.videoData.clientPlaybackNonce,J.encryptedVideoId=M.videoData.videoId||"",J),3E4),6);case 6:f=F.V;if(M.xd)throw Error(); if(!f.challenge)throw g.rz(Error("Not sending attestation ping; no attestation challenge string")),Error();M.xd=!0;var l=[f.challenge];f.error?l.push("r1c="+f.error):f.webResponse&&l.push("r1a="+f.webResponse);var G;((G=f.adblockReporting)==null?void 0:G.reportingStatus)!==void 0&&l.push("r6a="+f.adblockReporting.reportingStatus);var T;((T=f.adblockReporting)==null?void 0:T.broadSpectrumDetectionResult)!==void 0&&l.push("r6b="+f.adblockReporting.broadSpectrumDetectionResult);h(l.join("&"));Ut("att_f", void 0,"player_att");g.vg(F,0);break;case 4:g.Bg(F),Ut("att_e",void 0,"player_att"),g.Dq(F)}})})().then(function(){O==null||O()}); else{var S=new g.vGm(this.videoData);if("c1a"in S.HD&&!g.XF.isInitialized()){Ut("att_wb",void 0,"player_att");this.G2===2&&Math.random()<.01&&g.rz(Error("Botguard not available after 2 attempts"));if(U)return;if(this.G2<5){g.OM(this.T2);this.G2++;return}}(S=g.BLg(S))?(Ut("att_f",void 0,"player_att"),Uwy(this.cV(),S),this.xd=!0):Ut("att_e",void 0,"player_att")}}; g.y.rB=function(U){U=U===void 0?!1:U;if(HB(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.jr()||g.I6(this.videoData)))U=this.getCurrentTime();else if(g.Os(this.videoData)&&this.vV){U=this.vV;var O=this.getCurrentTime();U=(U=MqJ(U,O*1E3))?(U.Hi()-U.dK())/1E3:0}else U=this.S9(U);return U}; g.y.oP=function(){return g.Os(this.videoData)?this.videoData.GZ():this.GZ()}; g.y.S9=function(U){return this.IT.S9(U===void 0?!1:U)}; g.y.GZ=function(){return this.IT.GZ()}; g.y.je=function(){return this.IT?this.IT.je():0}; g.y.getStreamTimeOffset=function(){return this.IT?this.IT.getStreamTimeOffset():0}; g.y.H7=function(){var U=0;this.gG.T("web_player_ss_media_time_offset")&&(U=this.getStreamTimeOffset()===0?this.je():this.getStreamTimeOffset());return U}; g.y.setPlaybackRate=function(U){var O;this.playbackRate!==U&&B81(this.yc,(O=this.videoData.B)==null?void 0:O.videoInfos)&&(this.playbackRate=U,Sv(this));this.playbackRate=U;this.mediaElement&&this.mediaElement.setPlaybackRate(U)}; g.y.getPlaybackRate=function(){return this.playbackRate}; g.y.getPlaybackQuality=function(){var U="unknown";if(this.videoData.V&&(U=this.videoData.V.video.quality,U==="auto"&&this.mediaElement)){var O=this.MZ();O&&O.videoHeight>0&&(U=r9(O.videoWidth,O.videoHeight))}return U}; g.y.isHdr=function(){return!!(this.videoData.V&&this.videoData.V.video&&this.videoData.V.video.isHdr())}; g.y.KJ=function(){this.cV().KJ()}; g.y.sendVideoStatsEngageEvent=function(U,O){var M=this.cV();M.U?(M=RQ(M.U,"engage"),M.BA=U,M.send(O)):O&&O()}; g.y.bU=function(U){return this.cV().bU(U)}; g.y.isAtLiveHead=function(U,O){O=O===void 0?!1:O;return HB(this.videoData)&&(this.sy||O)?this.IT.isAtLiveHead(U):!1}; g.y.eU=function(){var U=this.S9(),O=this.getCurrentTime(),M;(M=!HB(this.videoData))||(M=this.IT,M=!(M.U&&M.U.B));return M||this.jr()||isNaN(U)||isNaN(O)?0:Math.max(0,U-O)}; g.y.rZ=function(U){(this.sy=U)||this.Fm.stop();this.videoData.U&&(U?this.videoData.U.resume():gA1(this.videoData.U));if(this.rG){var O=this.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&this.nN()&&this.videoData.isLivePlayback;U&&!O?this.rG.resume():$K(this,!0)}g.a(this.playerState,2)||U?g.a(this.playerState,512)&&U&&this.M4($A(this.playerState,512)):this.M4(Gh(this.playerState,512));O=this.cV();O.qoe&&(O=O.qoe,g.eB(O,g.kV(O.provider),"stream",[U?"A":"I"]))}; g.y.wT=function(U){U={n:U.name,m:U.message};this.cV().iH("player.exception",AA(U))}; g.y.yf=M1(28);g.y.V5=M1(57);g.y.Vc=function(U){this.cV().Vc(U)}; g.y.mA=function(U){this.cV().mA(U)}; g.y.hY=function(U){this.cV().hY(U)}; g.y.vx=M1(34);g.y.xX=M1(40);g.y.g6=function(U){this.cV().g6(U)}; g.y.Ap=function(){this.al("hidden",{},!0)}; g.y.Ag=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.y.Sk=function(){return this.rG?this.rG.Sk():!0}; g.y.setLoop=function(U){this.loop=U;this.mediaElement&&!g.PF(this.gG)&&this.mediaElement.setLoop(U)}; g.y.oo=function(){return this.mediaElement&&!g.PF(this.gG)?this.mediaElement.oo():this.loop}; g.y.FU=function(U){this.al("timestamp",{o:U.toString()});this.IT.FU(U)}; g.y.Xh=function(U){this.d7.tick(U)}; g.y.bb=function(U){return this.d7.bb(U)}; g.y.mN=function(U){this.d7.mN(U)}; g.y.al=function(U,O,M){M=M===void 0?!1:M;this.cV().al(U,O,M)}; g.y.qA=function(U,O,M){M=M===void 0?!1:M;this.cV().al(U,O,M)}; g.y.iH=function(U){this.cV().iH(U.errorCode,AA(U.details));U=U.errorCode;if(this.videoData.isLivePlayback&&(U==="qoe.longrebuffer"||U==="qoe.slowseek")||U==="qoe.restart"){U=this.rG?bui(this.rG.videoTrack):{};var O,M;this.al("lasoe",Object.assign(this.rG?bui(this.rG.audioTrack):{},(O=this.La)==null?void 0:(M=O.U)==null?void 0:M.ww()));var S,p;this.al("lvsoe",Object.assign(U,(S=this.La)==null?void 0:(p=S.V)==null?void 0:p.ww()))}}; g.y.MI=function(U,O,M){this.cV().MI(U,O,M)}; g.y.s_=function(U,O,M,S,p,h,J,f){var F;if((F=this.videoData.U)!=null&&F.isLive){var l=O.playerType===2?O:U,G=U.videoData.videoId,T=O.videoData.videoId;if(G&&T){F=this.cV();if(F.qoe){var e=F.qoe,H=U.cpn,z=O.cpn,W=l.videoData.WV,v=e.provider.videoData.clientPlaybackNonce,x=e.provider.videoData.videoId,t=z!==v&&T!==x;v=H!==v&&G!==x;e.reportStats();e.adCpn&&e.adCpn!==H||(e.adCpn=v?H:"",e.JN=v?G:"",e.adFormat=v?W:void 0,W9(e,2,h?4:p?2:0,z,T,S),e.reportStats(),e.adCpn=t?z:"",e.JN=t?T:"",e.adFormat=t?W: void 0,W9(e,2,h?5:p?3:1,H,G,M),e.reportStats())}M=U.cpn;if(F.B.has(M)){if(p=F.B.get(M),mP(p,!0).send(),YH(p),M!==F.provider.videoData.clientPlaybackNonce){q_e(p);var m;(m=F.U)==null||nH5(m);F.B.delete(M)}}else F.x$=F.provider.videoData.clientPlaybackNonce,F.x$&&F.U&&(F.B.set(F.x$,F.U),mP(F.U).send(),YH(F.U));m=O.cpn;l=l.videoData;S-=this.H7();if(F.B.has(m)){S=F.B.get(m);var P=S.B&&isNaN(S.G)?tv(S):NaN;S=uIe(S,!1);isNaN(P)||(S.D=P);S.send()}else S=s37(F,F.provider,l,S),F.B.set(m,S),ikg(S,new g.d4(Gh(new g.fD, 8),new g.fD)),Pbm(S),(P=F.U)==null||YH(P);F.x$=m;this.T("html5_unify_csi_server_stitched_transition_logging")?qA7(this.d7,U.cpn,O.cpn,this.videoData.clientPlaybackNonce,O.videoData,J,void 0,f):(F=this.d7,S=this.videoData.clientPlaybackNonce,P=O.videoData,U=(U.cpn===S?"video":"ad")+"_to_"+(O.cpn===S?"video":"ad"),S={},P.C&&(S.cttAuthInfo={token:P.C,videoId:P.videoId}),J&&(S.startTime=J),oY(U,S),g.Va({targetVideoId:P.videoId,targetCpn:O.cpn,isSsdai:!0},U),F.gG.T("html5_enable_ssdai_transition_with_only_enter_cuerange")? J||fI(F,f,U):fI(F,f,U))}}else this.logger.U(360717806,"SSTEvent for nonSS")}; g.y.zM=function(){var U=this.mj,O=U.Fx;U.Fx=[];return O}; g.y.Cc=function(U){this.videoData.us=!0;this.iH(new Ii("sabr.fallback",U));this.Mo(!0)}; g.y.IN=function(U,O){this.videoData.vj=!0;if(O===void 0||O)this.iH(new Ii("qoe.restart",U)),this.Mo(!0);this.videoData.Js()&&this.T("html5_reload_caption_on_ssdai_fallback")&&this.mj.Hu()}; g.y.N2=function(U){this.al("sdai",{aftimeout:U});this.iH(new Ii("ad.fetchtimeout",{timeout:U}))}; g.y.ZY=function(U,O){this.al("timelineerror",U);U=new Ii("dai.timelineerror",U);O?this.k5("dai.timelineerror",1,"RETRYABLE_ERROR",AA(U.details)):this.iH(U)}; g.y.Sr=function(){return g.kV(this.cV().provider)}; g.y.getPlayerSize=function(){return this.gM.getPlayerSize()}; g.y.tL=function(){return this.gM.tL()}; g.y.f6=function(){return this.d7}; g.y.B3=function(){return this.mj.B3()}; g.y.getVolume=function(){return this.mj.getVolume()}; g.y.h6=function(){return this.mj.h6()}; g.y.isMuted=function(){return this.mj.isMuted()}; g.y.D7=function(){return this.mj.D7()}; g.y.b9=function(){this.Oz=!0}; g.y.T=function(U){return this.gG.T(U)}; g.y.xA=function(U,O,M,S,p){this.al("xvt",{m:U,g:O?1:0,tt:M?1:0,np:S?1:0,c:p})}; g.y.X1=function(){var U;(U=this.rG)==null||U.resume()}; g.y.nN=function(){return g.kE(this.yk,"ad")}; g.y.u7=function(){var U=this.getCurrentTime(),O=U-this.je();var M=this.mediaElement?H1(this.mediaElement.wL()):0;M=Math.floor(Math.max(M-O,0))+100;var S;if(!this.T("html5_ssdai_disable_seek_to_skip")&&((S=this.rG)==null?0:S.QX(O,this.S9())))return this.al("sdai",{skipad:1,ct:O.toFixed(3),adj:0}),!0;var p;return((p=this.rG)==null?0:p.u7(O,M))?(this.al("sdai",{skipad:1,ct:O.toFixed(3),adj:M.toFixed(3)}),$u(this.videoData)&&this.rG.seek(O+M,{seekSource:89,uH:"videoplayer_skipServerStitchedAd"}),oK1(this.IT, U),!0):!1}; g.y.PV=function(){return this.gG.PV()}; g.y.Ui=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.x4||"";this.mj.ow();return this.gG.EF||""}; g.y.M$=function(){if(this.videoData.videoId)return this.videoData.DB}; g.y.OF=function(){return this.videoData.videoId}; g.y.Rj=function(){return this.mj.O5}; g.y.bx=function(){return this.Ks}; g.y.uI=function(){return this.mj.uI()}; g.y.xu=function(U,O){this.IT.xu(U,O)}; g.y.oi=function(){this.IT.oi()}; g.y.EN=function(U,O){var M=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.mj.EN(U,O,M)}; g.y.GE=function(U,O){var M;(M=this.rG)==null||M.GE(U,O)}; g.y.xM=function(){var U=this.Ea();return!!U&&U.xM()}; g.y.ZD=function(){return this.vV}; g.y.b_=function(U,O){this.cV().b_(U,O)}; g.y.VT=function(){return this.cV().VT()}; g.y.B2=function(){return this.videoData.bl}; g.y.uB=function(){return this.mj.uB()}; g.y.Ac=function(){return this.mj.Ac(this)}; g.y.EM=function(){return this.x9}; g.y.gV=function(U){var O;(O=this.rG)==null||O.gV(U)}; g.y.Ux=function(){var U;(U=this.rG)==null||U.Ux()};g.c(wxg,pB);g.c(UBy,pB);g.y=UBy.prototype;g.y.seekToChapterWithAnimation=function(U){var O=this;if(g.ve(this.api)&&!(U<0)){var M=this.api.getVideoData(),S=M.RA;if(S&&U=0)return;O=~O;g.Jo(this.items,O,0,U);ed(this.menuItems.element,U.element,O)}U.subscribe("size-change",this.PZ,this);this.menuItems.publish("size-change")}; g.y.Px=function(U){U.unsubscribe("size-change",this.PZ,this);this.GY()||(g.OV(this.items,U),this.menuItems.element.removeChild(U.element),this.menuItems.publish("size-change"))}; g.y.PZ=function(){this.menuItems.publish("size-change")}; g.y.focus=function(){for(var U=0,O=0;O1&&g.mJ(this)}; g.y.uq=function(){bKg(this);this.UQ&&(B_w(this),g.b4(this.element,this.size))}; g.y.oF=function(){var U=this.U.pop();xBe(this,U,this.U[this.U.length-1],!0)}; g.y.w8=function(U){if(!U.defaultPrevented)switch(U.keyCode){case 27:this.CE();U.preventDefault();break;case 37:this.U.length>1&&this.oF();U.preventDefault();break;case 39:U.preventDefault()}}; g.y.focus=function(){this.U.length&&this.U[this.U.length-1].focus()}; g.y.VP=function(){g.ou.prototype.VP.call(this);this.C&&this.C.dispose();this.D&&this.D.dispose()};g.c(Am,g.tm);Am.prototype.open=function(U,O){this.initialize(U.items)&&this.jY(O,!!O)}; Am.prototype.initialize=function(U){g.R3(this.UF);if(U===void 0||U.length===0)return!1;var O=U.length;U=g.D(U);for(var M=U.next();!M.done;M=U.next())this.q4(M.value,O--);return!0}; Am.prototype.q4=function(U,O){U.menuNavigationItemRenderer?YDg(this,U.menuNavigationItemRenderer,O):U.menuServiceItemRenderer&&mBy(this,U.menuServiceItemRenderer,O)};g.c(I3,B2);g.y=I3.prototype;g.y.t1=function(U){U.target!==this.dismissButton.element&&U.target!==this.overflowButton.element&&(this.wV(),this.onClickCommand&&this.S.ZQ("innertubeCommand",this.onClickCommand))}; g.y.YK=function(){this.enabled=!1;this.Z.hide()}; g.y.FS=function(){return!!this.U&&this.enabled}; g.y.onVideoDataChange=function(U,O){this.vy(O);if(this.U){this.Mu();a:if(!this.isCounterfactual){var M,S,p;this.banner.update({title:(M=this.U)==null?void 0:M.title,subtitle:(S=this.U)==null?void 0:S.subtitle,metadata:(p=this.U)==null?void 0:p.metadataText});var h;this.onClickCommand=g.q((h=this.U)==null?void 0:h.onTap,Eh);var J;if(U=g.q((J=this.U)==null?void 0:J.onOverflow,Eh))this.D=g.q(U,itQ);var f;if((f=this.U)==null?0:f.thumbnailImage){var F,l;J=((F=this.U)==null?void 0:(l=F.thumbnailImage)== null?void 0:l.sources)||[];if(J.length===0)break a;this.thumbnailImage.update({url:J[0].url})}else{var G;if((G=this.U)==null?0:G.thumbnailIconName){var T;this.thumbnailIcon.update({icon:(T=this.U)==null?void 0:T.thumbnailIconName})}}var e;this.shouldShowOverflowButton=!((e=this.U)==null||!e.shouldShowOverflowButton);var H;this.shouldHideDismissButton=!((H=this.U)==null||!H.shouldHideDismissButton)}var z;this.banner.element.setAttribute("aria-label",((z=this.U)==null?void 0:z.a11yLabel)||"");var W; this.hZ=(W=this.U)==null?void 0:W.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;IL1(this)}}; g.y.kZP=function(){this.isVisible=!0;IL1(this)}; g.y.qj0=function(){this.isVisible=!1;IL1(this)}; g.y.S2=function(){B2.prototype.S2.call(this);this.V&&this.S.logVisibility(this.banner.element,this.isVisible)}; g.y.wV=function(){B2.prototype.wV.call(this,!1);this.V&&this.S.logClick(this.banner.element)}; g.y.a8=function(U){this.C||(this.C=new Am(this.S),g.X(this,this.C));var O,M;if((O=this.D)==null?0:(M=O.menu)==null?0:M.menuRenderer)this.C.open(this.D.menu.menuRenderer,U.target),U.preventDefault()}; g.y.vy=function(){}; g.y.Mu=function(){}; g.y.VP=function(){this.S.Le("suggested_action_view_model");B2.prototype.VP.call(this)};g.c(P2,I3); P2.prototype.vy=function(U){var O,M,S;this.productUpsellSuggestedActionViewModel=g.q((O=U.getWatchNextResponse())==null?void 0:(M=O.playerOverlays)==null?void 0:(S=M.playerOverlayRenderer)==null?void 0:S.suggestedActionViewModel,pVX);var p;if((p=this.productUpsellSuggestedActionViewModel)==null?0:p.content){var h;this.U=g.q((h=this.productUpsellSuggestedActionViewModel)==null?void 0:h.content,XpC)}var J,f;if(this.V=!!((J=this.productUpsellSuggestedActionViewModel)==null?0:(f=J.loggingDirectives)==null? 0:f.trackingParams)){var F,l;this.S.setTrackingParams(this.banner.element,((F=this.productUpsellSuggestedActionViewModel)==null?void 0:(l=F.loggingDirectives)==null?void 0:l.trackingParams)||null)}var G;this.isCounterfactual=!((G=this.productUpsellSuggestedActionViewModel)==null||!G.isCounterfactualServing)}; P2.prototype.Mu=function(){var U=[],O,M=g.D(((O=this.productUpsellSuggestedActionViewModel)==null?void 0:O.ranges)||[]);for(O=M.next();!O.done;O=M.next()){var S=O.value;S&&(O=Number(S.startTimeMilliseconds),S=Number(S.endTimeMilliseconds),isNaN(O)||isNaN(S)||U.push(new g.ll(O,S,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.S.pO(U)};g.c(P$w,pB);g.c(nR,pB);nR.prototype.onVideoDataChange=function(U,O){var M=this;if(!o6(O)&&(U==="newdata"&&QS5(this),this.V&&this.B&&U==="dataloaded")){var S;D1(lT(this.api.J(),(S=this.api.getVideoData())==null?void 0:g.Es(S)),function(p){M.B=!1;K2m(M,p)})}}; nR.prototype.hL=function(){var U=this;if(g.PF(this.api.J())){var O,M=g.Fy(this.api.J(),(O=this.api.getVideoData())==null?void 0:g.Es(O));return D1(jA(M),function(S){var p=EE();Ld(p,S);return U.api.hL(p)})}return jA(this.api.hL())};g.c(g.CR,g.sc);g.y=g.CR.prototype;g.y.open=function(){g.YK(this.lM,this.V)}; g.y.VN=function(U){r94(this);var O=this.options[U];O&&(O.element.setAttribute("aria-checked","true"),this.gH(this.SU(U)),this.B=U)}; g.y.C9=function(U){g.R3(this.V);for(var O={},M=!1,S=0;S=0?this.U.playbackRate:1}catch(U){return 1}}; g.y.setPlaybackRate=function(U){this.getPlaybackRate()!==U&&(this.U.playbackRate=U);return U}; g.y.oo=function(){return this.U.loop}; g.y.setLoop=function(U){this.U.loop=U}; g.y.canPlayType=function(U,O){return this.U.canPlayType(U,O)}; g.y.isPaused=function(){return this.U.paused}; g.y.isSeeking=function(){return this.U.seeking}; g.y.isEnded=function(){return this.U.ended}; g.y.Ur=function(){return this.U.muted}; g.y.jB=function(U){iA();this.U.muted=U}; g.y.v1=function(){return this.U.played||Go([],[])}; g.y.wL=function(){try{var U=this.U.buffered}catch(O){}return U||Go([],[])}; g.y.Et=function(){return this.U.seekable||Go([],[])}; g.y.H8=function(){var U=this.U;return U.getStartDate?U.getStartDate():null}; g.y.getCurrentTime=function(){return this.U.currentTime}; g.y.setCurrentTime=function(U){this.U.currentTime=U}; g.y.getDuration=function(){return this.U.duration}; g.y.load=function(){var U=this.U.playbackRate;try{this.U.load()}catch(O){}this.U.playbackRate=U}; g.y.pause=function(){this.U.pause()}; g.y.play=function(){var U=this.U.play();if(!U||!U.then)return null;U.then(void 0,function(){}); return U}; g.y.K9=function(){return this.U.readyState}; g.y.V0=function(){return this.U.networkState}; g.y.eH=function(){return this.U.error?this.U.error.code:null}; g.y.XT=function(){return this.U.error?this.U.error.message:""}; g.y.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.U instanceof window.HTMLVideoElement&&this.U.getVideoPlaybackQuality)return this.U.getVideoPlaybackQuality();if(this.U){var U=this.U,O=U.webkitDroppedFrameCount;if(U=U.webkitDecodedFrameCount)return{droppedVideoFrames:O||0,totalVideoFrames:U}}return{}}; g.y.oA=function(){return!!this.U.webkitCurrentPlaybackTargetIsWireless}; g.y.PC=function(){return!!this.U.webkitShowPlaybackTargetPicker()}; g.y.togglePictureInPicture=function(){var U=this.U,O=window.document;window.document.pictureInPictureEnabled?this.U!==O.pictureInPictureElement?U.requestPictureInPicture():O.exitPictureInPicture():qX()&&U.webkitSetPresentationMode(U.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.y.Uf=function(){var U=this.U;return new g.xv(U.offsetLeft,U.offsetTop)}; g.y.getSize=function(){return g.Rl(this.U)}; g.y.setSize=function(U){g.b4(this.U,U)}; g.y.getVolume=function(){return this.U.volume}; g.y.setVolume=function(U){iA();this.U.volume=U}; g.y.qB=function(U){this.G[U]||(this.U.addEventListener(U,this.listener),this.G[U]=this.listener)}; g.y.setAttribute=function(U,O){this.U.setAttribute(U,O)}; g.y.removeAttribute=function(U){this.U.removeAttribute(U)}; g.y.hasAttribute=function(U){return this.U.hasAttribute(U)}; g.y.Wt=M1(67);g.y.jw=M1(69);g.y.J3=M1(71);g.y.Ut=M1(73);g.y.Lo=function(){return bC(this.U)}; g.y.LX=function(U){g.l3(this.U,U)}; g.y.Mg=function(U){return g.zC(this.U,U)}; g.y.XB=function(){return g.zU(document.body,this.U)}; g.y.audioTracks=function(){var U=this.U;if("audioTracks"in U)return U.audioTracks}; g.y.VP=function(){for(var U=g.D(Object.keys(this.G)),O=U.next();!O.done;O=U.next())O=O.value,this.U.removeEventListener(O,this.G[O]);Sz.prototype.VP.call(this)}; g.y.z6=function(U){this.U.disableRemotePlayback=U};g.c(o3,g.r);g.c(wc,g.r);wc.prototype.show=function(){g.r.prototype.show.call(this);this.PA();this.md.T("html5_enable_moving_s4n_window")&&g.PF(this.md.J())&&this.Y()}; wc.prototype.hide=function(){g.r.prototype.hide.call(this);this.delay.stop();this.X.stop()}; wc.prototype.PA=function(){var U=(0,g.nM)(),O=gx7(this.md);kK(this.U,O.bandwidth_samples);kK(this.D,O.network_activity_samples);kK(this.B,O.live_latency_samples);kK(this.V,O.buffer_health_samples);var M={};O=g.D(Object.entries(O));for(var S=O.next();!S.done;S=O.next()){var p=g.D(S.value);S=p.next().value;p=p.next().value;this.Z[S]!==p&&(M[S]=" "+String(p));this.Z[S]=p}this.update(M);U=(0,g.nM)()-U>25?5E3:500;this.delay.start(U)}; wc.prototype.Y=function(){this.C?(this.position+=1,this.position>15&&(this.C=!1)):(--this.position,this.position<=0&&(this.C=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.X.start(2E4)};g.c(pme,pB);g.c(US,g.C);US.prototype.U=function(){var U=(0,g.nM)()-this.startTime;U=Uthis.X[U])&&(this.U=U,cY1(this))}; g.y.onCueRangeExit=function(U){var O=ziw(this,U);O&&this.U===U&&this.api.ZQ("innertubeCommand",O);this.clearTimeout();this.U=void 0}; g.y.onTimeout=function(U){this.U!==void 0&&(U==null?void 0:U.cueRangeId)===this.U&&(this.G=!1,(U=ziw(this,this.U))&&this.api.ZQ("innertubeCommand",U))}; g.y.eE=function(U){this.V=U}; g.y.Ru=function(){cY1(this);this.V=void 0}; g.y.setTimeout=function(U){var O=this,M=Number(U==null?void 0:U.maxVisibleDurationMilliseconds);M&&(this.clearTimeout(),this.C=setTimeout(function(){O.onTimeout(U)},M))}; g.y.clearTimeout=function(){this.C&&clearTimeout(this.C);this.C=void 0;this.G=!1}; g.y.VP=function(){this.timelyActions=this.V=this.U=this.videoId=void 0;this.X={};this.My();this.clearTimeout();pB.prototype.VP.call(this)};g.c(WGU,pB);var cQ={},Im1=(cQ[1]="pot_ss",cQ[2]="pot_sf",cQ[3]="pot_se",cQ[4]="pot_xs",cQ[5]="pot_xf",cQ[6]="pot_xe",cQ),PFe=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.c(Sj,pB);Sj.prototype.VP=function(){this.C&&(g.xJ(this.C),this.C=void 0);pB.prototype.VP.call(this)}; Sj.prototype.ow=function(){(this.U?!this.U.isReady():this.V)&&hM(this)}; Sj.prototype.JL=function(U,O,M){var S=this;if(vx5(U)){var p=M||"",h;if((h=this.U)==null?0:h.isReady())O=JM(this,p),B6e(U,O);else{var J=new g.AH;O.push(J.promise);this.X.promise.then(function(){var f=JM(S,p);B6e(U,f);J.resolve()})}}}; Sj.prototype.lq=function(U){var O=this;if(this.U||this.V)U.x4=JM(this,U.videoId),this.U&&!this.U.isReady()&&(this.B=new M6,this.X.promise.then(function(){O.d7.bb("pot_if");U.x4=JM(O,U.videoId)}))};g.c(Qs4,pB);g.c(yR,g.C);yR.prototype.U=function(){for(var U=g.D(g.m4.apply(0,arguments)),O=U.next();!O.done;O=U.next())(O=O.value)&&this.features.push(O)}; yR.prototype.VP=function(){for(var U=this.features.length-1;U>=0;U--)this.features[U].dispose();this.features.length=0;g.C.prototype.VP.call(this)};CFg.prototype.reset=function(){this.U=this.V=NaN};g.y=Xm7.prototype;g.y.reset=function(){rT(this.timerName)}; g.y.tick=function(U,O){Ll(U,O,this.timerName)}; g.y.bb=function(U){return wT(U,this.timerName)}; g.y.mN=function(U){A0(U,void 0,this.timerName)}; g.y.infoGel=function(U){g.Va(U,this.timerName)};g.c(Zoe,g.H_);g.y=Zoe.prototype;g.y.Ny=function(U){return this.loop||!!U||this.index+1=0}; g.y.setShuffle=function(U){this.shuffle=U;U=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var O=0;O0)||Y9(this,1,!0)}; g.y.R1=function(){this.C=!0;this.U.bH(this.G);this.G=this.U.j(document,"mouseup",this.Uk)}; g.y.Uk=function(){this.C=!1;Y9(this,8,!1);this.U.bH(this.G);this.G=this.U.j(this.target,"mousedown",this.R1)}; g.y.e6=function(U){if(U=(U=U.changedTouches)&&U[0])this.BA=U.identifier,this.U.bH(this.Y),this.Y=this.U.j(this.target,"touchend",this.Vw,void 0,!0),Y9(this,1024,!0)}; g.y.Vw=function(U){if(U=U.changedTouches)for(var O=0;O1280||h>720)if(p=M.dL("maxresdefault.jpg"))break;if(S>640||h>480)if(p=M.dL("maxresdefault.jpg"))break; if(S>320||h>180)if(p=M.dL("sddefault.jpg")||M.dL("hqdefault.jpg")||M.dL("mqdefault.jpg"))break;if(p=M.dL("default.jpg"))break}g.SZ(O)&&(O=new Image,O.addEventListener("load",function(){wWi()}),O.src=p?p:"",this.api.f6().tick("ftr")); this.X.style.backgroundImage=p?"url("+p+")":""};g.c(g.Px,g.r);g.Px.prototype.resize=function(){}; g.Px.prototype.V=function(U){var O=this;this.B=!1;uGy(this);var M=U.PY,S=this.api.J();M!=="GENERIC_WITHOUT_LINK"||S.C?M==="TOO_MANY_REQUESTS"?(S=this.api.getVideoData(),this.gH(CI(this,"TOO_MANY_REQUESTS_WITH_LINK",S.qn(),void 0,void 0,void 0,!1))):M!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||S.C?this.api.J().T("html5_enable_bandaid_error_screen")&&M==="HTML5_SPS_UMP_STATUS_REJECTED"&&!S.C?(S=S.hostLanguage,U="//support.google.com/youtube?p=videoError",S&&(U=g.pj(U,{hl:S})),this.gH(CI(this,"HTML5_SPS_UMP_STATUS_REJECTED", U))):this.api.J().T("enable_adb_handling_in_sabr")&&M==="BROWSER_OR_EXTENSION_ERROR"&&!S.C?(S=S.hostLanguage,U="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",S&&(U=g.pj(U,{hl:S})),this.gH(CI(this,"BROWSER_OR_EXTENSION_ERROR",U))):this.gH(g.nI(U.errorMessage)):this.gH(CI(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(U=S.hostLanguage,M="//support.google.com/youtube/?p=player_error1",U&&(M=g.pj(M, {hl:U})),this.gH(CI(this,"GENERIC_WITH_LINK_AND_CPN",M,!0)),S.Oj&&!S.X&&Xwm(this,function(h){if(g.TP(h,O.api,!U3(O.api.J()))){h={as3:!1,html5:!0,player:!0,cpn:O.api.getVideoData().clientPlaybackNonce};var J=O.api;J.aW("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:h});J.isFullscreen()&&J.toggleFullscreen()}})); if(this.B){var p=this.ML("ytp-error-link");p&&(this.api.createClientVe(p,this,216104),this.api.logVisibility(p,!0),Xwm(this,function(){O.api.logClick(p)}))}}; var CpJ=/([^<>]+)<\/a>/;g.c(q1m,g.r);g.y=q1m.prototype;g.y.onClick=function(U){this.innertubeCommand?(this.S.ZQ("innertubeCommand",this.innertubeCommand),U.preventDefault()):g.TP(U,this.S,!0);this.S.logClick(this.element)}; g.y.onVideoDataChange=function(U,O){Zwy(this,O);this.qm&&KIq(this,this.qm)}; g.y.Bm=function(U){var O=this.S.getVideoData();this.videoId!==O.videoId&&Zwy(this,O);this.U&&KIq(this,U.state);this.qm=U.state}; g.y.jY=function(){this.fade.show();this.S.publish("paidcontentoverlayvisibilitychange",!0);this.S.logVisibility(this.element,!0)}; g.y.CE=function(){this.fade.hide();this.S.publish("paidcontentoverlayvisibilitychange",!1);this.S.logVisibility(this.element,!1)};g.c(X9,g.r);X9.prototype.hide=function(){this.U.stop();this.message.style.display="none";g.r.prototype.hide.call(this)}; X9.prototype.onStateChange=function(U){this.YZ(U.state)}; X9.prototype.YZ=function(U){(g.a(U,128)||this.api.bx()?0:g.a(U,16)||g.a(U,1))?this.U.start():this.hide()}; X9.prototype.V=function(){this.message.style.display="block"};g.c(ua,g.ou);ua.prototype.onMutedAutoplayChange=function(U){this.B&&(U?(rnw(this),this.jY()):(this.U&&this.logClick(),this.CE()))}; ua.prototype.OH=function(U){this.api.isMutedByMutedAutoplay()&&g.Nc(U,2)&&this.CE()}; ua.prototype.onClick=function(){this.api.unMute();this.logClick()}; ua.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.c(g.qV,g.Zj);g.y=g.qV.prototype;g.y.init=function(){var U=this.api,O=U.getPlayerStateObject();this.Jn=U.getPlayerSize();this.M4(O);this.kE();this.gi();this.api.publish("basechromeinitialized",this);this.Ik()&&this.api.publish("standardControlsInitialized")}; g.y.onVideoDataChange=function(U,O){var M=this.Yi!==O.videoId;if(M||U==="newdata"){U=this.api;U.isFullscreen()||(this.Jn=U.getPlayerSize());var S;((S=this.api.getVideoData(1))==null?0:g.Os(S))&&this.IG()}M&&(this.Yi=O.videoId,M=this.No,M.sA=3E3,Y9(M,512,!0),this.kE());this.api.T("web_render_jump_buttons")&&O.showSeekingControls&&(this.Go=572)}; g.y.Umg=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.y.xb=function(){var U=this.api.OU()&&this.api.V$(),O=this.api.lx();return this.rf||U||this.Fb||O}; g.y.IG=function(){var U=!this.xb();g.ea(this.api.getRootNode(),"ytp-menu-shown",!U);var O;((O=this.api.getVideoData(1))==null?0:g.Os(O))&&g.ea(this.api.getRootNode(),"ytp-hide-controls",!U)}; g.y.Mf=function(U){try{if(!g.zU(this.api.getRootNode(),U))return!1}catch(O){return!1}for(;U&&!ydy(U);)U=U===this.api.getRootNode()?null:U.parentElement||null;return!!U}; g.y.zm=function(U){var O=this.api.getRootNode();g.ea(O,"ytp-autohide",U);g.ea(O,"ytp-autohide-active",!0);this.yj.start(U?250:100);U&&(this.EE=!1,g.$U(O,"ytp-touch-mode"));this.U2=!U;this.api.fP(!U)}; g.y.vZ=function(){var U=this.api.getRootNode();g.ea(U,"ytp-autohide-active",!1)}; g.y.XJZ=function(){this.e4=!0}; g.y.BKl=function(U){if(this.api.J().T("player_doubletap_to_seek")||this.api.J().Y)this.e4=!1,this.Eb&&this.bH(this.Eb),this.Qb===0&&Zd(this,U)?(this.N1(),this.TV.start(),this.Eb=this.j(this.api.g7(),"touchmove",this.XJZ,void 0,!0)):this.TV.stop();Vt1(this)&&Zd(this,U)&&!this.api.J().Y&&EpJ(this);var O=this.F7.eh();if(!g.Pn(this.api.J())&&Y0&&opm(this,U))O&&U.preventDefault();else if(this.EE=!0,g.l3(this.api.getRootNode(),"ytp-touch-mode"),this.No.Pe(),this.api.J().T("player_doubletap_to_seek")||this.api.J().Y)if(O= this.api.getPlayerStateObject(),!(!this.api.C6()||g.a(O,2)&&g.nd(this.api)||g.a(O,64))){O=Date.now()-this.nw;this.Qb+=1;if(O<=350){this.O$=!0;O=this.api.getPlayerSize().width/3;var M=this.api.getRootNode().getBoundingClientRect(),S=U.targetTouches[0].clientX-M.left;M=U.targetTouches[0].clientY-M.top;var p=(this.Qb-1)*10;S>0&&SO*2&&S=650;this.No.resize();g.ea(O,"ytp-fullscreen",this.api.isFullscreen());g.ea(O,"ytp-large-width-mode",M);g.ea(O,"ytp-small-mode",this.Ug());g.ea(O,"ytp-tiny-mode",this.Z3());g.ea(O,"ytp-big-mode",this.Wx());this.qo&&this.qo.resize(U)}; g.y.OH=function(U){this.M4(U.state);this.kE()}; g.y.Ra=M1(5);g.y.n_=function(){var U=!!this.Yi&&!this.api.KO()&&!this.yn,O=this.api.getPresentingPlayerType()===2,M=this.api.J();if(O){if(AUE&&M.T("enable_visit_advertiser_support_on_ipad_mweb"))return!1;O=Bx(this.api.nE());U&&(O&&O.player?U=(U=O.player.getVideoData(2))?U.isListed&&!g.Au(O.player.J()):!1:(DY("showInfoBarDuringAd: this is null"),U=!1));return U}return U&&(M.IV||this.api.isFullscreen()||M.o2)}; g.y.kE=function(){var U=this.n_();this.X$!==U&&(this.X$=U,g.ea(this.api.getRootNode(),"ytp-hide-info-bar",!U))}; g.y.M4=function(U){var O=U.isCued()||this.api.Jt()&&this.api.getPresentingPlayerType()!==3;O!==this.isCued&&(this.isCued=O,this.Yg&&this.bH(this.Yg),this.Yg=this.j(this.api.g7(),"touchstart",this.BKl,void 0,O));var M=this.No,S=U.isPlaying()&&!g.a(U,32)||this.api.LH();Y9(M,128,!S);M=this.No;S=this.api.getPresentingPlayerType()===3;Y9(M,256,S);M=this.api.getRootNode();g.a(U,2)?S=[iD.ENDED]:(S=[],g.a(U,8)?S.push(iD.PLAYING):g.a(U,4)&&S.push(iD.PAUSED),g.a(U,1)&&!g.a(U,32)&&S.push(iD.BUFFERING),g.a(U, 32)&&S.push(iD.SEEKING),g.a(U,64)&&S.push(iD.UNSTARTED));g.G$(this.Xw,S)||(g.Tn(M,this.Xw),this.Xw=S,g.Gn(M,S));S=this.api.J();var p=g.a(U,2);a:{var h=this.api.J();var J=h.controlsType;switch(J){case "2":case "0":h=!1;break a}h=J==="3"&&!g.a(U,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:TWE(Bx(this.api.nE())))||this.api.lx()||g.Pn(h)&&this.api.getPresentingPlayerType()===2?!1:!0}g.ea(M,"ytp-hide-controls",!h);g.ea(M,"ytp-native-controls",S.controlsType==="3"&&!O&&!p&&!this.Fb);g.a(U, 128)&&!g.Pn(S)?(this.qo||(this.qo=new g.Px(this.api),g.X(this,this.qo),g.Z0(this.api,this.qo.element,4)),this.qo.V(U.p6),this.qo.show()):this.qo&&(this.qo.dispose(),this.qo=null)}; g.y.yu=function(){return this.api.OU()&&this.api.V$()?(this.api.h5(!1,!1),!0):this.api.KO()?(g.QA(this.api,!0),!0):!1}; g.y.onMutedAutoplayChange=function(U){this.Fb=U;this.IG()}; g.y.Wx=function(){return!1}; g.y.Ug=function(){return!this.Wx()&&(this.api.getPlayerSize().width=0&&O.left>=0&&O.bottom>O.top&&O.right>O.left?O:null;O=this.size;U=U.clone();O=O.clone();S&&(J=O,p=5,(p&65)==65&&(U.x=S.right)&&(p&=-2),(p&132)==132&&(U.y=S.bottom)&&(p&=-5),U.xS.right&&(J.width=Math.min(S.right-U.x,h+J.width-S.left),J.width=Math.max(J.width,0))),U.x+J.width>S.right&&p&1&&(U.x=Math.max(S.right-J.width,S.left)),U.yS.bottom&&(J.height=Math.min(S.bottom-U.y,h+J.height-S.top),J.height=Math.max(J.height,0))),U.y+J.height>S.bottom&&p&4&&(U.y=Math.max(S.bottom-J.height,S.top)));S=new g.l4(0,0,0,0);S.left=U.x;S.top=U.y;S.width= O.width;S.height=O.height;g.N0(this.element,new g.xv(S.left,S.top));g.CE(this.X);this.X.j(ko(this),"contextmenu",this.Sjc);this.X.j(this.S,"fullscreentoggled",this.onFullscreenToggled);this.X.j(this.S,"pageTransition",this.A9)}; g.y.Sjc=function(U){if(!U.defaultPrevented){var O=In(U);g.zU(this.element,O)||this.CE();this.S.J().disableNativeContextMenu&&U.preventDefault()}}; g.y.onFullscreenToggled=function(){this.CE();cki(this)}; g.y.A9=function(){this.CE()};g.c(w0,g.r);w0.prototype.onClick=function(){var U=this,O,M,S,p;return g.A(function(h){if(h.U==1)return O=U.api.J(),M=U.api.getVideoData(),S=U.api.getPlaylistId(),p=O.getVideoUrl(M.videoId,S,void 0,!0),g.Y(h,Wm4(U,p),2);h.V&&dUW(U);U.api.logClick(U.element);g.Dq(h)})}; w0.prototype.PA=function(){this.updateValue("icon",{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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 v\u00ednculo");this.visible=DUU(this);g.ea(this.element,"ytp-copylink-button-visible", this.visible);this.ri(this.visible);this.tooltip.Mb();this.api.logVisibility(this.element,this.visible&&this.G)}; w0.prototype.iM=function(U){g.r.prototype.iM.call(this,U);this.api.logVisibility(this.element,this.visible&&U)}; w0.prototype.VP=function(){g.r.prototype.VP.call(this);g.$U(this.element,"ytp-copylink-button-visible")};g.c(UD,g.r);UD.prototype.show=function(){g.r.prototype.show.call(this);g.OM(this.V)}; UD.prototype.hide=function(){this.X.stop();this.B=0;this.ML("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.$U(this.element,"ytp-chapter-seek");g.$U(this.element,"ytp-time-seeking");g.r.prototype.hide.call(this)}; UD.prototype.r6=function(U,O,M,S){this.B=U===this.D?this.B+S:S;this.D=U;var p=U===-1?this.Z:this.Y;p&&this.S.logClick(p);this.C?this.V.stop():g.gB(this.V);this.X.start();this.element.setAttribute("data-side",U===-1?"back":"forward");var h=3*this.S.g7().getPlayerSize().height;p=this.S.g7().getPlayerSize();p=p.width/3-3*p.height;this.U.style.width=h+"px";this.U.style.height=h+"px";U===1?(this.U.style.left="",this.U.style.right=p+"px"):U===-1&&(this.U.style.right="",this.U.style.left=p+"px");var J=h* 2.5;h=J/2;var f=this.ML("ytp-doubletap-ripple");f.style.width=J+"px";f.style.height=J+"px";U===1?(U=this.S.g7().getPlayerSize().width-O+Math.abs(p),f.style.left="",f.style.right=U-h+"px"):U===-1&&(U=Math.abs(p)+O,f.style.right="",f.style.left=U-h+"px");f.style.top="calc((33% + "+Math.round(M)+"px) - "+h+"px)";if(M=this.ML("ytp-doubletap-ripple"))M.classList.remove("ytp-doubletap-ripple"),M.classList.add("ytp-doubletap-ripple");NXe(this,this.C?this.B:S)};g.c(vtw,B2);g.y=vtw.prototype;g.y.t9=function(U){this.Ka||(this.Ka=new Am(this.S),g.X(this,this.Ka));var O,M;if((O=this.r7)==null?0:(M=O.menu)==null?0:M.menuRenderer)this.Ka.open(this.r7.menu.menuRenderer,U.target),U.preventDefault()}; g.y.FS=function(){return!!this.U}; g.y.DU=function(){return!!this.U}; g.y.t1=function(U){U.target===this.overflowButton.element?U.preventDefault():(this.F9&&this.S.ZQ("innertubeCommand",this.F9),this.wV(!1))}; g.y.YK=function(){this.wV(!0);var U,O;((U=this.U)==null?0:(O=U.bannerData)==null?0:O.dismissedStatusKey)&&this.HV.push(this.U.bannerData.dismissedStatusKey);this.yX()}; g.y.Hp=function(){this.yX();SI(this)}; g.y.Xxa=function(U){var O=this,M;if(U.id!==((M=this.U)==null?void 0:M.identifier)){this.yX();M=g.D(this.sA);for(var S=M.next();!S.done;S=M.next()){var p=S.value,h=void 0,J=void 0;if((S=(h=p)==null?void 0:(J=h.bannerData)==null?void 0:J.itemData)&&p.identifier===U.id){J=h=void 0;var f=((h=p)==null?void 0:(J=h.bannerData)==null?void 0:J.dismissedStatusKey)||"";if(this.HV.includes(f))break;this.U=p;this.banner.element.setAttribute("aria-label",S.accessibilityLabel||"");S.trackingParams&&(this.X=!0,this.S.setTrackingParams(this.badge.element, S.trackingParams));this.Z.show();v2(this);this.QP.ri(!S.stayInApp);QI4(this);xUi(this);MB(this);this.F9=g.q(S.onTapCommand,Eh);if(p=g.q(S.menuOnTap,Eh))this.r7=g.q(p,itQ);p=void 0;this.banner.update({thumbnail:(p=(S.thumbnailSources||[])[0])==null?void 0:p.url,title:S.productTitle,price:S.priceReplacementText?S.priceReplacementText:S.price,salesOriginalPrice:tbg(this),priceDropReferencePrice:Y0m(this),promotionText:RIJ(this),priceA11yText:mUw(this),affiliateDisclaimer:S.affiliateDisclaimer,vendor:AkJ(this)}); f=J=h=p=void 0;((p=S)==null?0:(h=p.hiddenProductOptions)==null?0:h.showDropCountdown)&&((J=S)==null?0:(f=J.hiddenProductOptions)==null?0:f.dropTimestampMs)&&(this.hG=new g.UM(function(){nte(O)},1E3),this.QP.hide(),this.countdownTimer.show(),nte(this)); this.S.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&BX7(this)&&(this.EQ=new g.UM(function(){bFi(O)},1E3),bFi(this))}}}}; g.y.yX=function(){this.U&&(this.U=void 0,this.f0())}; g.y.onVideoDataChange=function(U,O){var M=this;U==="dataloaded"&&SI(this);var S,p,h;U=g.q((S=O.getWatchNextResponse())==null?void 0:(p=S.playerOverlays)==null?void 0:(h=p.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer,uNl);this.overflowButton.show();this.dismissButton.hide();var J=U==null?void 0:U.featuredProductsEntityKey;this.trendingOfferEntityKey=U==null?void 0:U.trendingOfferEntityKey;this.sA.length||(Pw5(this,J),MB(this));var f;(f=this.Oj)==null||f.call(this);this.Oj=g.y7.subscribe(function(){Pw5(M, J);MB(M)})}; g.y.VP=function(){SI(this);QI4(this);xUi(this);B2.prototype.VP.call(this)};g.c(iFm,g.r);iFm.prototype.onClick=function(){this.S.logClick(this.element,this.V)};g.c(ZF7,g.ou);g.y=ZF7.prototype;g.y.show=function(){g.ou.prototype.show.call(this);this.S.publish("infopaneldetailvisibilitychange",!0);this.S.logVisibility(this.element,!0);Kmq(this,!0)}; g.y.hide=function(){g.ou.prototype.hide.call(this);this.S.publish("infopaneldetailvisibilitychange",!1);this.S.logVisibility(this.element,!1);Kmq(this,!1)}; g.y.getId=function(){return this.X}; g.y.Oh=function(){return this.itemData.length}; g.y.onVideoDataChange=function(U,O){if(O){var M,S,p,h;this.update({title:((M=O.u6)==null?void 0:(S=M.title)==null?void 0:S.content)||"",body:((p=O.u6)==null?void 0:(h=p.bodyText)==null?void 0:h.content)||""});var J;U=((J=O.u6)==null?void 0:J.trackingParams)||null;this.S.setTrackingParams(this.element,U);J=g.D(this.itemData);for(U=J.next();!U.done;U=J.next())U.value.dispose();this.itemData=[];var f;if((f=O.u6)==null?0:f.ctaButtons)for(O=g.D(O.u6.ctaButtons),f=O.next();!f.done;f=O.next())if(f=g.q(f.value, ITh))f=new iFm(this.S,f,this.U),f.cT&&(this.itemData.push(f),f.AZ(this.items))}}; g.y.VP=function(){this.hide();g.ou.prototype.VP.call(this)};g.c(Eti,g.r);g.y=Eti.prototype;g.y.onVideoDataChange=function(U,O){aiJ(this,O);this.qm&&Vbe(this,this.qm)}; g.y.f4=function(U){var O=this.S.getVideoData();this.videoId!==O.videoId&&aiJ(this,O);Vbe(this,U.state);this.qm=U.state}; g.y.fp=function(U){(this.B=U)?this.hide():this.U&&this.show()}; g.y.ue=function(){this.V||this.jY();this.showControls=!0}; g.y.le=function(){this.V||this.CE();this.showControls=!1}; g.y.jY=function(){var U;if((U=this.S)==null?0:U.T("embeds_web_enable_info_panel_sizing_fix")){var O;U=(O=this.S)==null?void 0:O.getPlayerSize();O=U.width<380;var M;U=U.height<(((M=this.S)==null?0:M.isEmbedsShortsMode())?400:280);var S,p;if((((S=this.S)==null?0:S.getPlayerStateObject().isCued())||((p=this.S)==null?0:g.a(p.getPlayerStateObject(),1024)))&&O&&U)return}this.U&&!this.B&&(this.fade.show(),this.S.publish("infopanelpreviewvisibilitychange",!0),this.S.logVisibility(this.element,!0))}; g.y.CE=function(){this.U&&!this.B&&(this.fade.hide(),this.S.publish("infopanelpreviewvisibilitychange",!1),this.S.logVisibility(this.element,!1))}; g.y.tH0=function(){this.V=!1;this.showControls||this.CE()};var VGC={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(VGC).reduce(function(U,O){U[VGC[O]]=O;return U},{}); var oyC={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(oyC).reduce(function(U,O){U[oyC[O]]=O;return U},{}); var k4E={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(k4E).reduce(function(U,O){U[k4E[O]]=O;return U},{});var waL,UkJ;waL=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];UkJ=[{option:0,text:pK(0)},{option:.25,text:pK(.25)},{option:.5,text:pK(.5)},{option:.75,text:pK(.75)},{option:1,text:pK(1)}]; g.fK=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:waL},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:pK(.5)},{option:-1,text:pK(.75)},{option:0,text:pK(1)},{option:1, text:pK(1.5)},{option:2,text:pK(2)},{option:3,text:pK(3)},{option:4,text:pK(4)}]},{option:"background",text:"Color de fondo",options:waL},{option:"backgroundOpacity",text:"Opacidad de fondo",options:UkJ},{option:"windowColor",text:"Color de la ventana",options:waL},{option:"windowOpacity",text:"Opacidad de la ventana",options:UkJ},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:pK(.25)},{option:.5,text:pK(.5)},{option:.75,text:pK(.75)},{option:1,text:pK(1)}]}];var O3X=[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.c(s2w,g.Zj);g.y=s2w.prototype; g.y.BK=function(U){U.repeat||(this.V.OV=!1);var O=!1,M=U.keyCode,S=In(U),p=!U.altKey&&!U.ctrlKey&&!U.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||O3X.includes(M)),h=!1,J=!1,f=this.api.J();U.defaultPrevented?(p=!1,J=!0):f.gK&&!this.api.isMutedByEmbedsMutedAutoplay()&&(p=!1);if(M===9)O=!0;else{if(S)switch(M){case 32:case 13:if(S.tagName==="BUTTON"||S.tagName==="A"||S.tagName==="INPUT")O=!0,p=!1;else if(p){var F=S.getAttribute("role");!F||F!=="option"&&F!=="button"&&F.indexOf("menuitem")!==0|| (O=!0,S.click(),h=!0)}break;case 37:case 39:case 36:case 35:O=S.getAttribute("role")==="slider";break;case 38:case 40:F=S.getAttribute("role"),S=M===38?S.previousSibling:S.nextSibling,F==="slider"?O=!0:p&&(F==="option"?(S&&S.getAttribute("role")==="option"&&S.focus(),h=O=!0):F&&F.indexOf("menuitem")===0&&(S&&S.hasAttribute("role")&&S.getAttribute("role").indexOf("menuitem")===0&&S.focus(),h=O=!0))}if(p&&!h)switch(M){case 38:h=Math.min(this.api.getVolume()+5,100);aU(this.PT,h,!1);this.api.setVolume(h); J=h=!0;break;case 40:h=Math.max(this.api.getVolume()-5,0);aU(this.PT,h,!0);this.api.setVolume(h);J=h=!0;break;case 36:this.api.C6()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),J=h=!0);break;case 35:this.api.C6()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),J=h=!0)}}O&&J9(this,!0);(O||J)&&this.No.Pe();(h||p&&this.handleGlobalKeyDown(M,U.shiftKey,U.ctrlKey,U.altKey,U.metaKey,U.key,U.code,U.repeat))&&U.preventDefault();f.D&&(U={keyCode:U.keyCode, altKey:U.altKey,ctrlKey:U.ctrlKey,metaKey:U.metaKey,shiftKey:U.shiftKey,handled:U.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Te("onKeyPress",U))}; g.y.XF=function(U){var O=U.keyCode;(!this.api.T("web_player_spacebar_control_bugfix")||this.api.T("web_player_spacebar_control_bugfix")&&!this.V.gW)&&this.handleGlobalKeyUp(O,U.shiftKey,U.ctrlKey,U.altKey,U.metaKey,U.key,U.code)&&U.preventDefault()}; g.y.handleGlobalKeyUp=function(U,O,M,S,p,h,J){this.api.publish("keyboardserviceglobalkeyup",{keyCode:U,shiftKey:O,ctrlKey:M,altKey:S,metaKey:p,key:h,code:J});O=!1;if(this.V.OV)return O;(p=g.qi(this.api.nE()))&&(p=p.Gi)&&p.UQ&&(p.VJ(U),O=!0);switch(U){case 9:J9(this,!0);O=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&(!this.api.T("web_player_spacebar_control_bugfix")&&!this.V.gW||this.api.T("web_player_spacebar_control_bugfix"))&&!this.api.J().gK){var f,F;U=(f=this.progressBar)== null?void 0:(F=f.V)==null?void 0:F.isEnabled;O=this.lm(U)}break;case 39:(FP?S:M)&&this.api.T("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),f=(f=this.api.getVideoData())?f.RA:[],F=ktm(f,this.api.getCurrentTime()*1E3),F!==-1&&this.U!=null&&(sD(this.U,1,f[F].title),this.api.seekTo(f[F].startTime/1E3,void 0,void 0,void 0,52),O=!0))}return O}; g.y.handleGlobalKeyDown=function(U,O,M,S,p,h,J,f){f||(this.V.OV=!1);var F=!1,l=this.api.J();if(l.gK&&!this.api.isMutedByEmbedsMutedAutoplay())return F;var G=g.qi(this.api.nE());if(G&&(G=G.Gi)&&G.UQ)switch(U){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:F=G.Uy(U)}l.C||F||(F=h||String.fromCharCode(U).toLowerCase(),this.B+=F,"awesome".indexOf(this.B)===0?(F=!0,7===this.B.length&&vsi(this.api.getRootNode(),"ytp-color-party")):(this.B=F,F="awesome".indexOf(this.B)===0));if(!F&&(!this.api.isMutedByEmbedsMutedAutoplay()|| O3X.includes(U))){var T=this.api.getVideoData(),e,H;G=(e=this.progressBar)==null?void 0:(H=e.V)==null?void 0:H.isEnabled;e=T?T.RA:[];H=FP?S:M;switch(U){case 80:O&&!l.Ka&&(r0(this.PT,xR4(),"Anterior"),this.api.previousVideo(),F=!0);break;case 78:O&&!l.Ka&&(r0(this.PT,Aa(),"Siguiente"),this.api.nextVideo(),F=!0);break;case 74:this.api.C6()&&(this.api.startSeekCsiAction(),this.U?this.api.T("enable_key_press_seek_logging")?(F=yx(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),OD(this.U, -1,10,F)):OD(this.U,-1,10):r0(this.PT,{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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),F=!0);break;case 76:this.api.C6()&&(this.api.startSeekCsiAction(),this.U?this.api.T("enable_key_press_seek_logging")?(F=yx(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),OD(this.U,1,10,F)):OD(this.U,1,10):r0(this.PT,{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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),F=!0);break;case 37:this.api.C6()&&(this.api.startSeekCsiAction(),H?(H=wNe(e,this.api.getCurrentTime()*1E3),H!==-1&&this.U!=null&&(sD(this.U,-1,e[H].title),this.api.seekTo(e[H].startTime/1E3,void 0,void 0,void 0,53),F=!0)):(this.U?this.api.T("enable_key_press_seek_logging")?(F=yx(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),OD(this.U,-1,5,F)):OD(this.U,-1,5):r0(this.PT,{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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),F=!0));break;case 39:this.api.C6()&&(this.api.startSeekCsiAction(),H?this.api.T("web_enable_keyboard_shortcut_for_timely_actions")||(H=ktm(e,this.api.getCurrentTime()*1E3),H!==-1&&this.U!=null&&(sD(this.U,1,e[H].title),this.api.seekTo(e[H].startTime/1E3,void 0,void 0,void 0,52),F=!0)):(this.U!=null?this.api.T("enable_key_press_seek_logging")?(F=yx(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),OD(this.U,1,5,F)):OD(this.U, 1,5):r0(this.PT,{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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),F=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),aU(this.PT,this.api.getVolume(),!1)):(this.api.mute(),aU(this.PT,0,!0));F=!0;break;case 32:F=this.api.T("web_speedmaster_spacebar_control")?!this.api.J().Ka:this.lm(G);break;case 75:F=this.lm(G);break;case 190:O?l.enableSpeedOptions&&MN1(this)&&(F=this.api.getPlaybackRate(),this.api.setPlaybackRate(F+.25,!0),ww4(this.PT,!1),F=!0):this.api.C6()&&(this.step(1),F=!0);break;case 188:O? l.enableSpeedOptions&&MN1(this)&&(F=this.api.getPlaybackRate(),this.api.setPlaybackRate(F-.25,!0),ww4(this.PT,!0),F=!0):this.api.C6()&&(this.step(-1),F=!0);break;case 70:pZw(this.api)&&(this.api.toggleFullscreen().catch(function(){}),F=!0); break;case 27:G?(this.progressBar.g0(),F=!0):this.G()&&(F=!0)}if(l.controlsType!=="3")switch(U){case 67:g.Wx(this.api.nE())&&(l=this.api.getOption("captions","track"),this.api.toggleSubtitles(),UUy(this.PT,!l||l&&!l.displayName),F=!0);break;case 79:FZ(this,"textOpacity");break;case 87:FZ(this,"windowOpacity");break;case 187:case 61:FZ(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:FZ(this,"fontSizeIncrement",!0,!0)}var z;O||M||S||(U>=48&&U<=57?z=U-48:U>=96&&U<=105&&(z=U-96));z!=null&&this.api.C6()&& (this.api.startSeekCsiAction(),l=this.api.getProgressState(),this.api.seekTo(z/10*(l.seekableEnd-l.seekableStart)+l.seekableStart,void 0,void 0,void 0,81),F=!0);F&&this.No.Pe()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:U,shiftKey:O,ctrlKey:M,altKey:S,metaKey:p,key:h,code:J,repeat:f},this.V);return F}; g.y.step=function(U){this.api.C6();if(this.api.getPlayerStateObject().isPaused()){var O=this.api.getVideoData().V;O&&(O=O.video)&&this.api.seekBy(U/(O.fps||30),void 0,void 0,U>0?77:78)}}; g.y.lm=function(U){if(!this.api.J().Ka){var O;var M,S=(O=this.api.getVideoData())==null?void 0:(M=O.getPlayerResponse())==null?void 0:M.playabilityStatus;if(S){var p;O=((p=g.q(S.miniplayer,VSC))==null?void 0:p.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else O=!1;O&&this.api.ZQ("onExpandMiniplayer");U?this.progressBar.JC():(U=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.PT.II(U),U?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.y.VP=function(){g.gB(this.X);g.Zj.prototype.VP.call(this)};g.c(g.l$,g.r);g.l$.prototype.Uq=M1(11); g.l$.prototype.PA=function(){var U=this.S.J(),O=U.B||this.S.T("web_player_hide_overflow_button_if_empty_menu")&&this.Kf.isEmpty();U=g.Pn(U)&&g.X7(this.S)&&g.a(this.S.getPlayerStateObject(),128);var M=this.S.getPlayerSize();this.visible=this.S.Ug()&&!U&&M.width>=240&&!g.fd(this.S.getVideoData())&&!O&&!this.U&&!this.S.isEmbedsShortsMode();g.ea(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.S.Mb();this.S.logVisibility(this.element,this.visible&&this.G)}; g.l$.prototype.iM=function(U){g.r.prototype.iM.call(this,U);this.S.logVisibility(this.element,this.visible&&U)}; g.l$.prototype.VP=function(){g.r.prototype.VP.call(this);g.$U(this.element,"ytp-overflow-button-visible")};g.c(SWe,g.ou);g.y=SWe.prototype;g.y.d8=function(U){U=In(U);g.zU(this.element,U)&&(g.zU(this.U,U)||g.zU(this.closeButton,U)||we(this))}; g.y.CE=function(){g.ou.prototype.CE.call(this);this.S.PD(this.element)}; g.y.show=function(){this.UQ&&this.S.publish("OVERFLOW_PANEL_OPENED");g.ou.prototype.show.call(this);this.element.setAttribute("aria-modal","true");hm4(this,!0)}; g.y.hide=function(){g.ou.prototype.hide.call(this);this.element.removeAttribute("aria-modal");hm4(this,!1)}; g.y.onFullscreenToggled=function(U){!U&&this.eh()&&we(this)}; g.y.isEmpty=function(){return this.actionButtons.length===0}; g.y.focus=function(){for(var U=g.D(this.actionButtons),O=U.next();!O.done;O=U.next())if(O=O.value,O.UQ){O.focus();break}};g.c(JLw,g.r);JLw.prototype.onClick=function(U){g.TP(U,this.api)&&this.api.playVideoAt(this.index)};g.c(yLq,g.ou);g.y=yLq.prototype;g.y.show=function(){g.ou.prototype.show.call(this);this.U.j(this.api,"videodatachange",this.x3);this.U.j(this.api,"onPlaylistUpdate",this.x3);this.x3()}; g.y.hide=function(){g.ou.prototype.hide.call(this);g.CE(this.U);this.updatePlaylist(null)}; g.y.x3=function(){this.updatePlaylist(this.api.getPlaylist());this.api.J().B&&(this.ML("ytp-playlist-menu-title-name").removeAttribute("href"),this.B&&(this.bH(this.B),this.B=null))}; g.y.V_=function(){var U=this.playlist,O=U.author,M=O?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",S={CURRENT_POSITION:String(U.index+1),PLAYLIST_LENGTH:String(U.getLength())};O&&(S.AUTHOR=O);this.update({title:U.title,subtitle:g.v4(M,S),playlisturl:this.api.getVideoUrl(!0)});O=U.V;if(O===this.X)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[U.index];else{M=g.D(this.playlistData);for(S=M.next();!S.done;S=M.next())S.value.dispose(); M=U.getLength();this.playlistData=[];for(S=0;S=this.V&&!U.B&&!O.isAd()&&!this.api.isEmbedsShortsMode()}else U=!1;this.visible=U;this.ri(this.visible);g.ea(this.element,"ytp-search-button-visible",this.visible);g.ea(this.element,"ytp-show-search-title",!this.api.Ug());this.api.logVisibility(this.element,this.visible&&this.G)}; jI.prototype.iM=function(U){g.r.prototype.iM.call(this,U);this.api.logVisibility(this.element,this.visible&&U)};g.c(g.eI,g.r);g.y=g.eI.prototype;g.y.VF=M1(8);g.y.onClick=function(){var U=this,O=this.api.J(),M=this.api.getVideoData(this.api.getPresentingPlayerType()),S=this.api.getPlaylistId();O=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):O.getVideoUrl(M.videoId,S,void 0,!0);if(navigator.share)try{var p=navigator.share({title:M.title,url:O});p instanceof Promise&&p.catch(function(h){em4(U,h)})}catch(h){h instanceof Error&&em4(this,h)}else this.U.yu(),we(this.B,this.element,!1); this.api.logClick(this.element)}; g.y.PA=function(){var U=this.api.J(),O=this.api.isEmbedsShortsMode();g.ea(this.element,"ytp-show-share-title",g.Pn(U)&&!O);this.U.Wx()&&O?(U=(this.api.g7().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.j3(this.element,"right",U+"px")):O&&g.j3(this.element,"right","0px");this.updateValue("icon",{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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=j2g(this);g.ea(this.element,"ytp-share-button-visible",this.visible);this.ri(this.visible);this.tooltip.Mb();this.api.logVisibility(this.element,j2g(this)&&this.G)}; g.y.iM=function(U){g.r.prototype.iM.call(this,U);this.api.logVisibility(this.element,this.visible&&U)}; g.y.VP=function(){g.r.prototype.VP.call(this);g.$U(this.element,"ytp-share-button-visible")};g.c(zmW,g.ou);g.y=zmW.prototype;g.y.C4=function(U){U=In(U);g.zU(this.C,U)||g.zU(this.closeButton,U)||we(this)}; g.y.CE=function(){g.ou.prototype.CE.call(this);this.tooltip.PD(this.element);this.api.logVisibility(this.U,!1);for(var U=g.D(this.B),O=U.next();!O.done;O=U.next())O=O.value,this.api.hasVe(O.element)&&this.api.logVisibility(O.element,!1)}; g.y.show=function(){var U=this.UQ;g.ou.prototype.show.call(this);this.PA();U||this.api.ZQ("onSharePanelOpened")}; g.y.fNy=function(){this.UQ&&this.PA()}; g.y.PA=function(){var U=this;g.l3(this.element,"ytp-share-panel-loading");g.$U(this.element,"ytp-share-panel-fail");var O=this.api.getVideoData(),M=this.api.getPlaylistId()&&this.X.checked;O.getSharePanelCommand&&gM(this.api.hL(),O.getSharePanelCommand,{includeListId:M}).then(function(S){U.GY()||(g.$U(U.element,"ytp-share-panel-loading"),DQJ(U,S))}); O=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",O);this.updateValue("linkText",O);this.updateValue("shareLinkWithUrl",g.v4("Compartir v\u00ednculo $URL",{URL:O}));HL(this.U);this.api.logVisibility(this.U,!0)}; g.y.onFullscreenToggled=function(U){!U&&this.eh()&&we(this)}; g.y.focus=function(){this.U.focus()}; g.y.VP=function(){g.ou.prototype.VP.call(this);cL1(this)};g.c(N74,B2);g.y=N74.prototype;g.y.VP=function(){Rmi(this);B2.prototype.VP.call(this)}; g.y.t1=function(U){U.target!==this.dismissButton.element&&(this.wV(!1),this.S.ZQ("innertubeCommand",this.onClickCommand))}; g.y.YK=function(){this.Yy=!0;this.wV(!0);this.f0()}; g.y.hxA=function(U){this.D=U;this.f0()}; g.y.onVideoDataChange=function(U,O){if(U=!!O.videoId&&this.videoId!==O.videoId)this.videoId=O.videoId,this.Yy=!1,this.BA=!0,this.Y=this.ol=!1,Rmi(this),bqm(this,!1),this.V=this.U=!1,zf(this),vTg(this);if(U||!O.videoId)this.yP=this.X=!1;var M,S;if(O==null?0:(M=O.getPlayerResponse())==null?0:(S=M.videoDetails)==null?0:S.isLiveContent)this.oK(!1);else{var p,h,J;O=g.q((p=O.getWatchNextResponse())==null?void 0:(h=p.playerOverlays)==null?void 0:(J=h.playerOverlayRenderer)==null?void 0:J.productsInVideoOverlayRenderer, uNl);this.D=this.enabled=!1;if(O){if(p=O==null?void 0:O.featuredProductsEntityKey){h=g.y7.getState().entities;var f;if((f=yL(h,"featuredProductsEntity",p))==null?0:f.productsData){this.oK(!1);return}}this.enabled=!0;if(!this.X){var F;f=(F=O.badgeInteractionLogging)==null?void 0:F.trackingParams;(this.X=!!f)&&this.S.setTrackingParams(this.badge.element,f||null)}if(!this.yP){var l;if(this.yP=!((l=O.dismissButton)==null||!l.trackingParams)){var G;this.S.setTrackingParams(this.dismissButton.element,((G= O.dismissButton)==null?void 0:G.trackingParams)||null)}}O.isContentForward&&(F=O.productsData,bqm(this,!0),vTg(this),F=xQw(this,F),l=[],F.length>0&&l.push(F[0]),F.length>1&&(G=new g.r({K:"div",L:"ytp-suggested-action-more-products-icon"}),g.X(this,G),l.push(G),l.push.apply(l,g.N(F.slice(1)))),this.C=new g.r({K:"div",W:l,L:"ytp-suggested-action-content-forward-container"}),g.X(this,this.C),this.Ca.element.append(this.C.element));this.text=g.B_(O.text);var T;if(F=(T=O.dismissButton)==null?void 0:T.a11yLabel)this.hZ= g.B_(F);this.onClickCommand=O.onClickCommand;this.timing=O.timing;this.pO()}N_e(this);v2(this);this.f0()}}; g.y.FS=function(){return!this.D&&this.enabled&&!this.Yy&&!this.S.Ug()&&!this.AG&&(this.Y||this.BA)}; g.y.ph=function(U){B2.prototype.ph.call(this,U);if(this.U||this.V)this.timing&&HO(this.timing.preview)&&(this.U=!1,zf(this),this.V=!1,zf(this),this.S.Le("shopping_overlay_preview_collapsed"),this.S.Le("shopping_overlay_preview_expanded"),U=cO(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),HO(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.S.Le("shopping_overlay_expanded"),U.end=this.timing.expanded.endSec*1E3),this.S.pO([U])), this.ol=!0,v2(this);zf(this)}; g.y.oK=function(U){(this.Y=U)?(Nw(this),v2(this,!1)):(Rmi(this),this.TY.start());this.f0()}; g.y.pO=function(U){var O=this.timing;U=(U===void 0?0:U)+this.S.getCurrentTime();var M=[],S=O.visible,p=O.preview;O=O.expanded;HO(S)&&(dQg(S,U),M.push(cO(S.startSec,S.endSec,"shopping_overlay_visible")));HO(p)&&(dQg(p,U),S=p.startSec+1,M.push(cO(p.startSec,S,"shopping_overlay_preview_collapsed")),M.push(cO(S,p.endSec,"shopping_overlay_preview_expanded")));HO(O)&&(dQg(O,U),M.push(cO(O.startSec,O.endSec,"shopping_overlay_expanded")));this.S.pO(M)};g.c(mQ4,g.r); mQ4.prototype.PA=function(){var U=this.api.J();this.ri(g.Pn(U)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.UQ);var O=this.api.getVideoData(),M=!1;this.api.getPresentingPlayerType()===2?M=!!O.videoId&&!!O.isListed&&!!O.author&&!!O.AG&&!!O.profilePicture:g.Pn(U)&&(M=!!O.videoId&&!!O.AG&&!!O.profilePicture&&!g.fd(O)&&!U.B&&!(U.Y&&this.api.getPlayerSize().width<200));var S=O.profilePicture;U=g.Pn(U)?O.expandedTitle:O.author;S=S===void 0? "":S;U=U===void 0?"":U;M?(this.V!==S&&(this.U.style.backgroundImage="url("+S+")",this.V=S),this.updateValue("channelLogoLabel",g.v4("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:U})),g.l3(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.$U(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.U,M&&this.G);this.api.logVisibility(this.channelName,M&&this.G);this.subscribeButton&&(this.subscribeButton.channelId=O.b2);this.updateValue("expandedTitle",O.expandedTitle)};g.c(DL,g.ou);DL.prototype.show=function(){g.ou.prototype.show.call(this);this.U.start()}; DL.prototype.hide=function(){g.ou.prototype.hide.call(this);this.U.stop()}; DL.prototype.Fo=function(U,O){U==="dataloaded"&&((this.cU=O.cU,this.EF=O.EF,isNaN(this.cU)||isNaN(this.EF))?this.B&&(this.S.Le("intro"),this.S.removeEventListener(g.$Y("intro"),this.D),this.S.removeEventListener(g.TO("intro"),this.C),this.S.removeEventListener("onShowControls",this.X),this.hide(),this.B=!1):(this.S.addEventListener(g.$Y("intro"),this.D),this.S.addEventListener(g.TO("intro"),this.C),this.S.addEventListener("onShowControls",this.X),U=new g.ll(this.cU,this.EF,{priority:9,namespace:"intro"}), this.S.pO([U]),this.B=!0))};g.c(d_,g.r);d_.prototype.onClick=function(){this.S.PC()}; d_.prototype.PA=function(){var U=!0;g.Pn(this.S.J())&&(U=U&&this.S.g7().getPlayerSize().width>=480);this.ri(U);this.updateValue("icon",this.S.oA()?{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,N:{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"}}]}: {K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.c(I6g,g.r);I6g.prototype.VP=function(){this.U=null;g.r.prototype.VP.call(this)};g.c(WO,g.r);WO.prototype.onClick=function(){this.S.ZQ("innertubeCommand",this.V)}; WO.prototype.Z=function(U){U!==this.C&&(this.update({title:U,ariaLabel:U}),this.C=U);U?this.show():this.hide()}; WO.prototype.Y=function(){this.U.disabled=this.V==null;g.ea(this.U,"ytp-chapter-container-disabled",this.U.disabled);this.kZ()};g.c(NB,WO);NB.prototype.onClickCommand=function(U){g.q(U,JK)&&this.kZ()}; NB.prototype.updateVideoData=function(U,O){var M,S,p;U=g.q((M=O.getWatchNextResponse())==null?void 0:(S=M.playerOverlays)==null?void 0:(p=S.playerOverlayRenderer)==null?void 0:p.decoratedPlayerBarRenderer,mU);M=g.q(U==null?void 0:U.playerBarActionButton,g.iY);this.S.T("web_player_updated_entrypoint")&&(this.D=BZ(M==null?void 0:M.text));this.V=M==null?void 0:M.command;WO.prototype.Y.call(this)}; NB.prototype.kZ=function(){var U=this.S.T("web_player_updated_entrypoint")?this.D:"",O=this.X.U,M,S=((M=this.S.getLoopRange())==null?void 0:M.type)==="clips";if(O.length>1&&!S){U=this.S.getProgressState().current*1E3;M=h9(O,U);U=O[M].title||"Cap\u00edtulos";if(M!==this.currentIndex||this.B)this.S.ZQ("innertubeCommand",O[M].onActiveCommand),this.currentIndex=M;this.B=!1}else this.B=!0;WO.prototype.Z.call(this,U)};g.c(vO,g.r);vO.prototype.B=function(U){g.a(U.state,32)?nTw(this,this.api.AL()):this.UQ&&(g.a(U.state,16)||g.a(U.state,1))||this.fade.hide()}; vO.prototype.Ji=function(){var U=this.api.getPlayerStateObject();(g.a(U,32)||g.a(U,16))&&Q2U(this)}; vO.prototype.X=function(){this.frameIndex=NaN;Q2U(this)}; vO.prototype.hide=function(){this.U&&nTw(this,null);g.r.prototype.hide.call(this)};g.c(CDW,g.r);g.y=CDW.prototype;g.y.onClick=function(){var U=this;if(this.S.J().hG||this.S.J().Y){this.S.logClick(this.element);try{this.S.toggleFullscreen().catch(function(O){U.l3(O)})}catch(O){this.l3(O)}}else we(this.message,this.element,!0)}; g.y.l3=function(U){String(U).includes("fullscreen error")?g.rz(U):g.K5(U);this.dJ()}; g.y.dJ=function(){this.disable();this.message.jY(this.element,!0)}; g.y.lS=function(){xd()===this.S.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; g.y.NP=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var U=window.screen.width*.9,O=window.screen.height*.9,M=Math.max(window.outerWidth,window.innerWidth),S=Math.max(window.outerHeight,window.innerHeight);if(M>S!==U>O){var p=M;M=S;S=p}U>M&&O>S&&this.dJ()}}; g.y.disable=function(){var U=this;if(!this.message){var O=(Nt(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.ou(this.S,{K:"div",OA:["ytp-popup","ytp-generic-popup"], N:{role:"alert",tabindex:"0"},W:[O[0],{K:"a",N:{href:"https://support.google.com/youtube/answer/6276924",target:this.S.J().Z},UA:O[2]},O[4]]},100,!0);this.message.hide();g.X(this,this.message);this.message.subscribe("show",function(M){U.V.Ii(U.message,M)}); g.Z0(this.S,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.U)();this.U=null}}; g.y.PA=function(){var U=pZw(this.S),O=this.S.J().Y&&this.S.getPlayerSize().width<250;this.ri(U&&!O);var M;((M=this.S.J())==null?0:M.T("embeds_use_parent_visibility_in_ve_logging"))?this.S.logVisibility(this.element,this.UQ&&this.G):this.S.logVisibility(this.element,this.UQ)}; g.y.n0=function(U){if(U){var O={K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"g",L:"ytp-fullscreen-button-corner-2",W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-3",W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-0",W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g", L:"ytp-fullscreen-button-corner-1",W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};U=g.Iu(this.S,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.S.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(M){g.rz(M)})}else O={K:"svg", N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"g",L:"ytp-fullscreen-button-corner-0",W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-1",W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-2",W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",L:"ytp-fullscreen-button-corner-3", W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},U=g.Iu(this.S,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});U=this.message?null:U;this.update({title:U,icon:O});this.V.BJ().Mb()}; g.y.VP=function(){this.message||((0,this.U)(),this.U=null);g.r.prototype.VP.call(this)}; g.y.iM=function(U){g.r.prototype.iM.call(this,U);var O;((O=this.S.J())==null?0:O.T("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.UQ&&U)};g.c(BO,g.r);BO.prototype.onClick=function(){this.S.logClick(this.element);this.S.seekBy(this.U,!0);var U=this.U>0?1:-1,O=Math.abs(this.U),M=this.S.Pi().ZE;M&&OD(M,U,O);this.V.isActive()?this.B=!0:(U=["ytp-jump-spin"],this.U<0&&U.push("backwards"),this.element.classList.add.apply(this.element.classList,g.N(U)),g.OM(this.V))};g.c(xg,WO);xg.prototype.onClickCommand=function(U){g.q(U,CHC)&&this.kZ()}; xg.prototype.updateVideoData=function(){var U,O;this.V=(U=uvJ(this))==null?void 0:(O=U.onTap)==null?void 0:O.innertubeCommand;WO.prototype.Y.call(this)}; xg.prototype.kZ=function(){var U="",O=this.X.D,M,S=(M=uvJ(this))==null?void 0:M.headerTitle;M=S?g.B_(S):"";var p;S=((p=this.S.getLoopRange())==null?void 0:p.type)==="clips";O.length>1&&!S&&(U=this.S.getProgressState().current*1E3,p=ot7(O,U),U=p!=null?O[p].title:M,p!=null&&p!==this.currentIndex&&(this.S.ZQ("innertubeCommand",O[p].onActiveCommand),this.currentIndex=p));WO.prototype.Z.call(this,U)};g.c(b$,g.r);b$.prototype.onClick=function(){this.S.ZQ("onCollapseMiniplayer");this.S.logClick(this.element)}; b$.prototype.PA=function(){this.visible=!this.S.isFullscreen();this.ri(this.visible);this.S.logVisibility(this.element,this.visible&&this.G)}; b$.prototype.iM=function(U){g.r.prototype.iM.call(this,U);this.S.logVisibility(this.element,this.visible&&U)};g.c(RS,g.r);g.y=RS.prototype;g.y.Wp=function(U){this.visible=U.width>=300||this.QP;this.ri(this.visible);this.S.logVisibility(this.element,this.visible&&this.G)}; g.y.zsQ=function(){this.S.J().TY?this.S.isMuted()?this.S.unMute():this.S.mute():we(this.message,this.element,!0);this.S.logClick(this.element)}; g.y.onVolumeChange=function(U){this.setVolume(U.volume,U.muted)}; g.y.setVolume=function(U,O){var M=this,S=O?0:U/100,p=this.S.J();U=S===0?1:U>50?1:0;if(this.C!==U){var h=this.ol;isNaN(h)?Zq4(this,U):yYq(this.sA,function(f){Zq4(M,h+(M.C-h)*f)},250); this.C=U}S=S===0?1:0;if(this.X!==S){var J=this.Z;isNaN(J)?Kde(this,S):yYq(this.yP,function(f){Kde(M,J+(M.X-J)*f)},250); this.X=S}p.TY&&(p=g.Iu(this.S,"Silenciar","m"),S=g.Iu(this.S,"Activar sonido","m"),this.updateValue("title",O?S:p),this.update({"data-title-no-tooltip":O?"Activar sonido":"Silenciar"}),this.tooltip.Mb())}; g.y.iM=function(U){g.r.prototype.iM.call(this,U);this.S.logVisibility(this.element,this.visible&&U)}; var qWm=["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"],iq7=["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.c(g.t9,g.r);g.y=g.t9.prototype;g.y.onStateChange=function(U){this.YZ(U.state);var O;((O=this.S.J())==null?0:O.T("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.UQ&&this.G)}; g.y.YZ=function(U){var O=g.I6(this.S.getVideoData()),M=!1;U.isOrWillBePlaying()?U=O?4:2:g.a(U,2)?(U=3,M=O):U=1;this.element.disabled=M;if(this.U!==U){O=null;switch(U){case 2:O=g.Iu(this.S,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:O="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:O=g.Iu(this.S,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:O="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}U=== 3?this.update({title:O,icon:rLw(U)}):(this.update({title:O}),(O=rLw(U))&&this.U&&this.U!==3?FG5(this.transition,this.element,O):this.updateValue("icon",O));this.tooltip.Mb();this.U=U}}; g.y.onVideoDataChange=function(){g.ea(this.element,"ytp-play-button-playlist",g.X7(this.S))}; g.y.lm=function(U){this.S.logClick(this.element);if(this.S.getPlayerStateObject().isOrWillBePlaying())this.S.pauseVideo();else{if(this.S.isMinimized()&&this.S.getPlayerStateObject().isCued()){var O={},M;if((M=this.S.getVideoData())==null?0:M.C)O.cttAuthInfo={token:this.S.getVideoData().C,videoId:this.S.getVideoData().videoId};oY("direct_playback",O);this.S.f6().timerName="direct_playback"}this.S.playVideo()}this.S.isMinimized()&&(U==null?void 0:U.type)==="click"&&this.element.blur()}; g.y.iM=function(U){g.r.prototype.iM.call(this,U);var O;((O=this.S.J())==null?0:O.T("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.UQ&&U)};g.c(g.Yg,g.r);g.y=g.Yg.prototype;g.y.onVideoDataChange=function(){ETi(this);this.X&&(this.bH(this.X),this.X=null);this.videoData=this.S.getVideoData(1);if(this.playlist=this.S.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.X=this.j(this.S,"progresssync",this.GC);this.B=Ld5(this);a6w(this);this.gm(this.S.g7().getPlayerSize())}; g.y.gm=function(U){U=U===void 0?this.S.g7().getPlayerSize():U;var O,M=((O=this.S.getLoopRange())==null?void 0:O.type)==="clips";U=(g.X7(this.S)||this.U&&g.Kd(this.S)&&!this.S.T("web_hide_next_button")||VNg(this))&&!M&&(this.U||U.width>=400);this.ri(U);this.S.logVisibility(this.element,U)}; g.y.onClick=function(U){this.S.logClick(this.element);var O=!0;this.D?O=g.TP(U,this.S):U.preventDefault();O&&(this.U&&this.S.getPresentingPlayerType()===5?this.S.publish("ytoprerollinternstitialnext"):this.U?(F9(this.S.f6()),this.S.publish("playlistnextbuttonclicked",this.element),this.S.nextVideo(!0)):this.B?this.S.seekTo(0):(F9(this.S.f6()),this.S.publish("playlistprevbuttonclicked",this.element),this.S.previousVideo(!0)))}; g.y.GC=function(){var U=Ld5(this);U!==this.B&&(this.B=U,a6w(this))}; g.y.VP=function(){this.V&&(this.V(),this.V=null);ETi(this);g.r.prototype.VP.call(this)};g.c(kVe,g.r);g.y=kVe.prototype;g.y.TC=function(U){this.aQ(U.pageX);this.wm(U.pageX+U.deltaX);wu5(this)}; g.y.aQ=function(U){this.yP=U-this.Ka}; g.y.wm=function(U){U-=this.Ka;!isNaN(this.yP)&&this.thumbnails.length>0&&(this.Z=U-this.yP,this.thumbnails.length>0&&this.Z!==0&&(this.B=this.Y+this.Z,U=M_w(this,this.B),this.B<=this.U/2&&this.B>=gRy(this)?(this.api.seekTo(U,!1,void 0,void 0,25),g.j3(this.BA,"transform","translateX("+(this.B-this.U/2)+"px)"),oTi(this,U)):this.B=this.Y))}; g.y.I8=function(){this.ol&&(this.ol.vH=!0);var U=(0,g.nM)()-this.HA<300;if(Math.abs(this.Z)<5&&!U){this.HA=(0,g.nM)();U=this.yP+this.Z;var O=this.U/2-U;this.aQ(U);this.wm(U+O);wu5(this);this.api.logClick(this.C)}wu5(this)}; g.y.k0=function(){m2(this,this.api.getCurrentTime())}; g.y.play=function(U){this.api.seekTo(M_w(this,this.B),void 0,void 0,void 0,26);this.api.playVideo();U&&this.api.logClick(this.playButton)}; g.y.onExit=function(U){this.api.seekTo(this.TY,void 0,void 0,void 0,63);this.api.playVideo();U&&this.api.logClick(this.dismissButton)}; g.y.gi=function(U,O){this.Ka=U;this.U=O;m2(this,this.api.getCurrentTime())}; g.y.enable=function(){this.isEnabled||(this.isEnabled=!0,this.TY=this.api.getCurrentTime(),oTi(this,this.TY),g.ea(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ca=this.j(this.element,"wheel",this.TC),this.logVisibility(this.isEnabled))}; g.y.disable=function(){this.isEnabled=!1;this.hide();g.ea(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ca&&this.bH(this.Ca);this.logVisibility(this.isEnabled)}; g.y.reset=function(){this.disable();this.X=[];this.QP=!1}; g.y.logVisibility=function(U){this.api.logVisibility(this.element,U);this.api.logVisibility(this.C,U);this.api.logVisibility(this.dismissButton,U);this.api.logVisibility(this.playButton,U)}; g.y.VP=function(){for(;this.V.length;){var U=void 0;(U=this.V.pop())==null||U.dispose()}g.r.prototype.VP.call(this)}; g.c(Urw,g.r);g.c(O0U,g.r);g.c(SPJ,g.r);g.c(A9,g.r);A9.prototype.tG=function(U){return U==="PLAY_PROGRESS"?this.Y:U==="LOAD_PROGRESS"?this.D:U==="LIVE_BUFFER"?this.C:this.B};JVw.prototype.update=function(U,O,M,S){M=M===void 0?0:M;this.width=O;this.X=M;this.U=O-M-(S===void 0?0:S);this.position=g.Nm(U,M,M+this.U);this.B=this.position-M;this.V=this.B/this.U};g.c(yV7,g.r);g.c(g.nK,g.W_);g.y=g.nK.prototype; g.y.fQ=function(){var U=!1,O=this.api.getVideoData();if(!O)return U;this.api.Le("timedMarkerCueRange");l$m(this);for(var M=g.D(O.r7),S=M.next();!S.done;S=M.next()){S=S.value;var p=void 0,h=(p=this.TY[S])==null?void 0:p.markerType;p=void 0;var J=(p=this.TY[S])==null?void 0:p.markers;if(!J)break;if(h==="MARKER_TYPE_TIMESTAMPS"){U=g.D(J);for(h=U.next();!h.done;h=U.next()){p=h.value;h=new yV7;J=void 0;h.title=((J=p.title)==null?void 0:J.simpleText)||"";h.timeRangeStartMillis=Number(p.startMillis);h.U= Number(p.durationMillis);var f=J=void 0;h.onActiveCommand=(f=(J=p.onActive)==null?void 0:J.innertubeCommand)!=null?f:void 0;H0U(this,h)}zyq(this,this.D);U=this.D;h=this.DD;p=[];J=null;for(f=0;fF&&(J.end=F);F=UQ1(F,F+G);p.push(F);J=F;h[F.id]=U[f].onActiveCommand}}this.api.pO(p);this.e5=this.TY[S];U=!0}else if(h==="MARKER_TYPE_HEATMAP"){S=this.TY[S];G=l=p=F=f=J=void 0;if(S&& S.markers){h=(p=(G=S.markersMetadata)==null?void 0:(l=G.heatmapMetadata)==null?void 0:l.minHeightDp)!=null?p:0;p=(J=(F=S.markersMetadata)==null?void 0:(f=F.heatmapMetadata)==null?void 0:f.maxHeightDp)!=null?J:60;J=this.U.length;f=null;for(F=0;F=G&&z<=T&&l.push(H)}p>0&&(this.ol.style.height= p+"px");G=this.X[F];T=l;H=h;var W=p,v=F===0;v=v===void 0?!1:v;pQi(G,W);e=T;z=G.V;v=v===void 0?!1:v;var x=1E3/e.length,t=[];t.push({x:0,y:100});for(var m=0;m0&&(f=l[l.length-1])}g.Qx(this)}p=void 0;h=[];if(S=(p=S.markersDecoration)==null?void 0:p.timedMarkerDecorations)for(S=g.D(S),p=S.next();!p.done;p=S.next())p=p.value,F=f=J=void 0,h.push({visibleTimeRangeStartMillis:(J=p.visibleTimeRangeStartMillis)!=null?J:-1,visibleTimeRangeEndMillis:(f=p.visibleTimeRangeEndMillis)!=null?f:-1,decorationTimeMillis:(F=p.decorationTimeMillis)!= null?F:NaN,label:p.label?g.B_(p.label):""});S=h;this.heatMarkersDecorations=S}}O.Pv=this.D;g.ea(this.element,"ytp-timed-markers-enabled",U);return U}; g.y.gi=function(){g.Qx(this);u$(this);zyq(this,this.D);if(this.V){var U=g.Bc(this.element).x||0;this.V.gi(U,this.C)}}; g.y.onClickCommand=function(U){if(U=g.q(U,JK)){var O=U.key;U.isVisible&&O&&WR5(this,O)}}; g.y.m_Z=function(U){this.api.ZQ("innertubeCommand",this.DD[U.id])}; g.y.kZ=function(){u$(this);var U=this.api.getCurrentTime();(Uthis.clipEnd)&&this.g2()}; g.y.DM=function(U){if(!U.defaultPrevented){var O=!1;switch(U.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);O=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);O=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);O=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);O=!0;break;case 38:this.api.T("enable_key_press_seek_logging")&&aS(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);O=!0;break;case 40:this.api.T("enable_key_press_seek_logging")&&aS(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),O=!0}O&&U.preventDefault()}}; g.y.Fo=function(U,O){this.updateVideoData(O,U==="newdata")}; g.y.tcZ=function(){this.Fo("newdata",this.api.getVideoData())}; g.y.updateVideoData=function(U,O){O=O===void 0?!1:O;var M=!!U&&U.cT();if(M&&(yA(U)||b05(this)?this.q_=!1:this.q_=U.allowLiveDvr,g.ea(this.api.getRootNode(),"ytp-enable-live-buffer",!(U==null||!yA(U))),this.api.T("enable_custom_playhead_parsing"))){var S,p,h,J=g.q((S=U.getWatchNextResponse())==null?void 0:(p=S.playerOverlays)==null?void 0:(h=p.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,mU);if(J==null?0:J.progressColor)for(S=0;S0;)this.X.pop().dispose();this.heatMarkersDecorations=[];this.r7={};var T;(T=this.V)==null||T.reset();w_(this);g.ea(this.api.getRootNode(),"ytp-fine-scrubbing-exp",PO(this))}else this.g2();this.lB()}if(U){var e;T=((e=this.bM)==null?void 0:e.type)==="clips";if(e=!U.isLivePlayback){e=this.api.getVideoData();O=g.AI(e);M=$rJ(e);var H;e=O!=null||M!=null&&M.length>0||((H=e.hk)== null?void 0:H.length)>0}if(e&&!T){H=this.api.getVideoData();T=g.AI(H);e=!1;if(T==null?0:T.markersMap){e=this.api.getVideoData();var z;e.fq=((z=T.visibleOnLoad)==null?void 0:z.key)||e.fq;z=g.D(T.markersMap);for(T=z.next();!T.done;T=z.next())T=T.value,T.key&&T.value&&(this.r7[T.key]=T.value,T.value.onChapterRepeat&&(e.Id=T.value.onChapterRepeat));e.fq!=null&&WR5(this,e.fq);e=!0}var W;if(((W=H.hk)==null?void 0:W.length)>0){W=g.y7.getState().entities;z=g.D(H.hk);for(T=z.next();!T.done;T=z.next())if(T= T.value,M=void 0,O=(M=yL(W,"macroMarkersListEntity",T))==null?void 0:M.markersList,f=M=void 0,((M=O)==null?void 0:M.markerType)==="MARKER_TYPE_TIMESTAMPS"||((f=O)==null?void 0:f.markerType)==="MARKER_TYPE_HEATMAP")this.TY[T]=O;e=this.fQ()||e}!e&&(W=$rJ(H))&&(j51(this,W),H.RA=this.U,TNw(this));RyU(this,null);U.tb&&this.X.length===0&&(U=U.tb,W=U.key,U.isVisible&&W&&WR5(this,W))}else f$W(this),l$m(this)}u$(this)}; g.y.lQ0=function(U){this.Y&&!g.a(U.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var O;((O=this.V)==null?0:O.isEnabled)&&g.a(U.state,8)&&this.api.pauseVideo();U=this.api.getPresentingPlayerType()===2||!this.api.C6()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.ea(this.u$,"ytp-hide-scrubber-button",U)}; g.y.F2=function(U){var O=!!this.bM!==!!U,M=this.bM;this.bM=U;RyU(this,M);(U==null?void 0:U.type)!=="clips"&&U||(U?(this.updateValue("clipstarticon",WCq()),this.updateValue("clipendicon",WCq()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Tqg()),this.updateValue("clipendicon",$RU()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),O&&(this.updateVideoData(this.api.getVideoData(), !0),g.Qx(this)),ED(this));ZL(this,this.Z,this.pE)}; g.y.jWd=function(U,O,M){var S=g.Bc(this.element),p=XZ(this).U,h=M?M.getAttribute("data-tooltip"):void 0,J=M?M.getAttribute("data-position"):void 0,f=M?M.getAttribute("data-offset-y"):void 0;f=f?Number(f):0;J&&(U=ZY(this.B,Number(M.getAttribute("data-position")),0)*p+g.Bc(this.progressBar).x);this.NL.x=U-S.x;this.NL.y=O-S.y;U=XZ(this);M=r_(this,U);O=0;var F;if((F=this.api.getVideoData())==null?0:yA(F))(F=this.api.getProgressState().seekableEnd)&&M>F&&(M=F,U.position=ZY(this.B,F)*XZ(this).U),O=this.B.V; b05(this)&&(O=this.B.V);F=h||g.AB(this.q_?M-this.B.U:M-O);O=U.position+this.QO;M-=this.api.je();var l;if((l=this.V)==null||!l.isEnabled)if(this.api.AL()){if(this.U.length>1){l=KK(this,this.NL.x,!0);if(!this.bM)for(S=0;S1)for(S=0;S0)for(l=this.NL.x,S=g.D(this.D),p=S.next();!p.done;p=S.next())p=p.value,J=CK(this,p.timeRangeStartMillis/ (this.B.U*1E3),XZ(this)),g.ea(p.element,"ytp-timed-marker-hover",J<=l&&J+6>=l);S=this.tooltip.scale;f=(isNaN(f)?0:f)-45*S;this.api.T("web_key_moments_markers")?this.e5?(l=ot7(this.D,M*1E3),l=l!=null?this.D[l].title:""):(l=h9(this.U,M*1E3),l=this.U[l].title):(l=h9(this.U,M*1E3),l=this.U[l].title);l||(f+=16*S);this.tooltip.scale===.6&&(g.gG(this.api.J())?(f=this.api.g7().getPlayerSize().height-225,f=l?f+110:f+110+16):f=l?110:126);S=h9(this.U,M*1E3);this.BA=t_e(this,M,S)?S:t_e(this,M,S+1)?S+1:-1;g.ea(this.api.getRootNode(), "ytp-progress-bar-snap",this.BA!==-1&&this.U.length>1);S=!1;p=g.D(this.heatMarkersDecorations);for(J=p.next();!J.done;J=p.next()){J=J.value;var G=M*1E3;G>=J.visibleTimeRangeStartMillis&&G<=J.visibleTimeRangeEndMillis&&(l=J.label,F=g.AB(J.decorationTimeMillis/1E3),S=!0)}this.UX!==S&&(this.UX=S,this.api.logVisibility(this.dH,this.UX));g.ea(this.api.getRootNode(),"ytp-progress-bar-decoration",S);S=160*this.tooltip.scale*2;p=l.length*(this.yP?8.55:5.7);p=p<=S?p:S;J=p<160*this.tooltip.scale;S=3;!J&&p/ 2>U.position&&(S=1);!J&&p/2>this.C-U.position&&(S=2);this.api.J().Y&&(f-=10);this.X.length&&this.X[0].cT&&(f-=14*(this.yP?2:1),this.Ca||(this.Ca=!0,this.api.logVisibility(this.ol,this.Ca)));var T;if(PO(this)&&(((T=this.V)==null?0:T.isEnabled)||this.hZ>0)){var e;f-=((e=this.V)==null?0:e.isEnabled)?Vx(this):this.hZ}T=void 0;PO(this)&&!this.api.T("web_player_hide_fine_scrubbing_edu")&&(T="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.QP||(this.QP=!0,this.api.logVisibility(this.cB, this.QP)));this.tooltip.LP(O,M,F,!!h,f,l,S,T)}else this.tooltip.LP(O,M,F,!!h,f);g.l3(this.api.getRootNode(),"ytp-progress-bar-hover");xr7(this)}; g.y.ieL=function(){this.lB();g.$U(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ca&&(this.Ca=!1,this.api.logVisibility(this.ol,this.Ca));this.QP&&(this.QP=!1,this.api.logVisibility(this.cB,this.QP))}; g.y.cRY=function(U,O){PO(this)&&this.V&&(this.V.QP?m2(this.V,this.api.getCurrentTime()):s5m(this.V),this.V.show(),g.ea(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.V.isEnabled));this.Op&&(this.Op.dispose(),this.Op=null);this.jH=O;this.gK=this.api.getCurrentTime();this.U.length>1&&this.BA!==-1?this.api.seekTo(this.U[this.BA].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(r_(this,XZ(this)),!1,void 0,void 0,7);g.l3(this.element,"ytp-drag");(this.mD=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.y.JRQ=function(){if(PO(this)&&this.V){var U=Vx(this);this.hZ>=U*.5?(this.V.enable(),m2(this.V,this.api.getCurrentTime()),u8y(this,U)):w_(this)}if(g.a(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var O;if((O=this.V)==null?0:O.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.U.length>1&&this.BA!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&aS(this,this.gK,this.U[this.BA].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.U[this.BA].startTime/1E3,void 0,void 0,void 0,7);else{U=r_(this,XZ(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&aS(this,this.gK,U,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(U,void 0,void 0,void 0,7);O=g.D(this.heatMarkersDecorations);for(var M=O.next();!M.done;M=O.next())M=M.value,U*1E3>=M.visibleTimeRangeStartMillis&&U*1E3<=M.visibleTimeRangeEndMillis&& this.api.logClick(this.dH)}g.$U(this.element,"ytp-drag");this.mD&&!g.a(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.y.RxP=function(U,O){U=XZ(this);U=r_(this,U);this.api.seekTo(U,!1,void 0,void 0,7);var M;PO(this)&&((M=this.V)==null?0:M.QP)&&(m2(this.V,U),this.V.isEnabled||(M=Vx(this),this.hZ=g.Nm(this.jH-O-10,0,M),u8y(this,this.hZ)))}; g.y.lB=function(){this.tooltip.Zk()}; g.y.tD=function(){this.bM||(this.updateValue("clipstarticon",Gwm()),this.updateValue("clipendicon",Gwm()),g.l3(this.element,"ytp-clip-hover"))}; g.y.AD=function(){this.bM||(this.updateValue("clipstarticon",Tqg()),this.updateValue("clipendicon",$RU()),g.$U(this.element,"ytp-clip-hover"))}; g.y.g2=function(){this.clipStart=0;this.clipEnd=Infinity;ED(this);ZL(this,this.Z,this.pE)}; g.y.bfg=function(U){U=g.D(U);for(var O=U.next();!O.done;O=U.next())if(O=O.value,O.visible){var M=O.getId();if(!this.Ka[M]){var S=g.GU("DIV");O.tooltip&&S.setAttribute("data-tooltip",O.tooltip);this.Ka[M]=O;this.HV[M]=S;g.JD(S,O.style);YPJ(this,M);this.api.J().T("disable_ad_markers_on_content_progress_bar")||this.U[0].X.appendChild(S)}}else XQ5(this,O)}; g.y.LrQ=function(U){U=g.D(U);for(var O=U.next();!O.done;O=U.next())XQ5(this,O.value)}; g.y.g0=function(U){this.V&&(this.V.onExit(U!=null),w_(this))}; g.y.JC=function(U){this.V&&(this.V.play(U!=null),w_(this))}; g.y.dbd=function(){qP1(this,this.api.C6())}; g.y.VP=function(){qP1(this,!1);g.W_.prototype.VP.call(this)};g.c(UA,g.r);UA.prototype.isActive=function(){return!!this.S.getOption("remote","casting")}; UA.prototype.PA=function(){var U=!1;this.S.getOptions().includes("remote")&&(U=this.S.getOption("remote","receivers").length>1);this.ri(U&&this.S.g7().getPlayerSize().width>=400);this.S.logVisibility(this.element,this.UQ);var O=1;U&&this.isActive()&&(O=2);if(this.U!==O){this.U=O;switch(O){case 1:this.updateValue("icon",{K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{K:"path",vB:!0,N:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.lKW())}g.ea(this.element,"ytp-remote-button-active",this.isActive())}}; UA.prototype.V=function(){if(this.S.getOption("remote","quickCast"))this.S.setOption("remote","quickCast",!0);else{var U=this.lM,O=this.element;if(U.eh())U.CE();else{U.initialize();a:{var M=g.D(U.UF.items);for(var S=M.next();!S.done;S=M.next())if(S=S.value,S.priority===1){M=S;break a}M=null}M&&(M.open(),U.jY(O));U.jY(O)}}this.S.logClick(this.element)};g.c(OA,g.r);OA.prototype.U=function(U){var O=this.S.J(),M=400;this.S.T("web_player_small_hbp_settings_menu")&&O.C?M=300:O.Y&&(M=200);U=this.V&&U.width>=M;this.ri(U);this.S.T("embeds_use_parent_visibility_in_ve_logging")?this.S.logVisibility(this.element,U&&this.G):this.S.logVisibility(this.element,U)}; OA.prototype.B=function(){if(this.lM.UQ)this.lM.CE();else{var U=g.Wx(this.S.nE());U&&!U.loaded&&(U.X8("tracklist",{includeAsr:!0}).length||U.load());this.S.logClick(this.element);this.lM.jY(this.element)}}; OA.prototype.updateBadge=function(){var U=this.S.isHdr(),O=this.S.getPresentingPlayerType(),M=O!==2&&O!==3,S=g.i8(this.S),p=M&&!!g.qi(this.S.nE());O=p&&S.displayMode===1;S=p&&S.displayMode===2;M=(p=O||S)||!M?null:this.S.getPlaybackQuality();g.ea(this.element,"ytp-hdr-quality-badge",U);g.ea(this.element,"ytp-hd-quality-badge",!U&&(M==="hd1080"||M==="hd1440"));g.ea(this.element,"ytp-4k-quality-badge",!U&&M==="hd2160");g.ea(this.element,"ytp-5k-quality-badge",!U&&M==="hd2880");g.ea(this.element,"ytp-8k-quality-badge", !U&&M==="highres");g.ea(this.element,"ytp-3d-badge-grey",!U&&p&&O);g.ea(this.element,"ytp-3d-badge",!U&&p&&S)};g.c(sA,GP);sA.prototype.isLoaded=function(){var U=g.RU(this.S.nE());return U!==void 0&&U.loaded}; sA.prototype.PA=function(){g.RU(this.S.nE())!==void 0&&this.S.getPresentingPlayerType()!==3?this.U||(this.lM.q4(this),this.U=!0):this.U&&(this.lM.Px(this),this.U=!1);$2(this,this.isLoaded())}; sA.prototype.onSelect=function(U){this.isLoaded();U?this.S.loadModule("annotations_module"):this.S.unloadModule("annotations_module");this.S.publish("annotationvisibility",U)}; sA.prototype.VP=function(){this.U&&this.lM.Px(this);GP.prototype.VP.call(this)};g.c(g6,g.CR);g6.prototype.PA=function(){var U=this.S.getAvailableAudioTracks();U.length>1?(this.C9(g.mV(U,this.U)),this.tracks=g.jS(U,this.U,this),this.countLabel.gH(U.length?" ("+U.length+")":""),this.publish("size-change"),this.VN(this.U(this.S.getAudioTrack())),this.enable(!0)):this.enable(!1)}; g6.prototype.n6=function(U){g.CR.prototype.n6.call(this,U);this.S.setAudioTrack(this.tracks[U]);this.lM.oF()}; g6.prototype.U=function(U){return U.toString()};g.c(Mb,GP); Mb.prototype.V=function(){var U=this.S.getPresentingPlayerType();if(U!==2&&U!==3&&g.Kd(this.S))this.U||(this.lM.q4(this),this.U=!0,this.B.push(this.j(this.S,"videodatachange",this.V)),this.B.push(this.j(this.S,"videoplayerreset",this.V)),this.B.push(this.j(this.S,"onPlaylistUpdate",this.V)),this.B.push(this.j(this.S,"autonavchange",this.X)),U=this.S.getVideoData(),this.X(U.autonavState),this.S.logVisibility(this.element,this.U));else if(this.U){this.lM.Px(this);this.U=!1;U=g.D(this.B);for(var O=U.next();!O.done;O= U.next())this.bH(O.value)}}; Mb.prototype.X=function(U){$2(this,U!==1)}; Mb.prototype.onSelect=function(U){this.S.ob(U?2:1);this.U&&(this.S.logVisibility(this.element,this.U),this.S.logClick(this.element))}; Mb.prototype.VP=function(){this.U&&this.lM.Px(this);GP.prototype.VP.call(this)};g.c(Z0w,g.sc);Z0w.prototype.onClick=function(U){U.preventDefault();var O,M;(O=g.ve(this.S))==null||(M=O.Nw())==null||M.CE();var S,p;(S=g.ve(this.S))==null||(p=S.Si())==null||p.jY(U.target)};g.c(KRw,g.CR);g.y=KRw.prototype; g.y.w4=function(){var U=this.S.getPresentingPlayerType();if(U!==2&&U!==3){this.BA=this.S.zB();U=this.S.getAvailableQualityLevels();if(this.U){this.X={};var O=g.ce(this.S,"getAvailableQualityData",[]);O=g.D(O);for(var M=O.next();!M.done;M=O.next())M=M.value,this.X[M.qualityLabel]=M;O=Object.keys(this.X);U[U.length-1]==="auto"&&O.push("auto");this.sA=new Set(U)}else if(this.C){M=g.ce(this.S,"getAvailableQualityData",[]);O=[];M=g.D(M);for(var S=M.next();!S.done;S=M.next())S=S.value,this.Z[S.quality]= S,S.quality&&O.push(S.quality);U[U.length-1]==="auto"&&O.push("auto")}else O=U;g.ZHy(this.S)&&this.S.MF()&&O.unshift("missing-qualities");K$i(this.S)&&O.unshift("inline-survey");this.C9(O);U=this.S.getVideoData().cotn?!0:!1;M=this.ol.SH();M=!g.gG(this.S.J())||!(U===void 0?0:U)||!(M===void 0||M);U=this.V;M=M===void 0?!1:M;U.lD&&g.ea(U.ML("ytp-panel-footer"),"ytp-panel-hide-footer",M===void 0?!1:M);if(O.length){this.ND();this.enable(!0);return}}this.enable(!1)}; g.y.ND=function(){if(this.U){var U=this.S.getPreferredQuality();this.sA.has(U)&&(this.D=this.S.getPlaybackQuality(),this.yP=this.S.getPlaybackQualityLabel(),U==="auto"?(this.VN(U),this.gH(this.SU(U))):this.VN(this.yP))}else U=this.S.getPreferredQuality(),this.options[U]&&(this.D=this.S.getPlaybackQuality(),this.VN(U),U==="auto"&&this.gH(this.SU(U)))}; g.y.n6=function(U){if(U!=="missing-qualities"){g.CR.prototype.n6.call(this,U);var O=this.U?this.X[U]:this.Z[U];var M=O==null?void 0:O.quality,S=O==null?void 0:O.formatId,p=O==null?void 0:O.paygatedQualityDetails;O=p==null?void 0:p.endpoint;if(p){var h;p=(h=this.options[U])==null?void 0:h.element;this.S.logClick(p)}if(this.U){var J,f;if((J=g.q(O,g.m2y))==null?0:(f=J.popup)==null?0:f.notificationActionRenderer)this.S.ZQ("innertubeCommand",O);else if(O){this.S.ZQ("innertubeCommand",O);return}S?this.S.setPlaybackQuality(M, S):this.S.setPlaybackQuality(M)}else{if(this.C){var F,l;if((F=g.q(O,g.m2y))==null?0:(l=F.popup)==null?0:l.notificationActionRenderer)this.S.ZQ("innertubeCommand",O);else if(O){this.S.ZQ("innertubeCommand",O);return}}this.S.setPlaybackQuality(U)}this.lM.CE();this.w4()}}; g.y.open=function(){for(var U=g.D(Object.values(this.options)),O=U.next();!O.done;O=U.next()){O=O.value;var M=void 0;this.S.hasVe((M=O)==null?void 0:M.element)&&(M=void 0,this.S.logVisibility((M=O)==null?void 0:M.element,!0))}g.CR.prototype.open.call(this);this.S.logClick(this.element)}; g.y.Na=function(U,O,M){var S=this;if(U==="missing-qualities")return new g.sc({K:"a",OA:["ytp-menuitem"],N:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.S.J().Z,tabindex:"0",role:"menuitemradio"},W:[{K:"div",OA:["ytp-menuitem-label"],UA:"{{label}}"}]},O,this.SU(U));if(U!=="inline-survey"){var p,h=(p=this.U?this.X[U]:this.Z[U])==null?void 0:p.paygatedQualityDetails;p=h==null?void 0:h.veType;h=h==null?void 0:h.trackingParams;O=g.CR.prototype.Na.call(this,U,O,M);h?(this.S.createServerVe(O.element, this,!0),this.S.setTrackingParams(O.element,h)):p&&this.S.createClientVe(O.element,this,p,!0);return O}U=[{K:"span",UA:"\u00bfSe ve bien?"}];M=g.D([!0,!1]);h=M.next();for(p={};!h.done;p={xo:void 0},h=M.next())p.xo=h.value,h=new g.r({K:"span",L:"ytp-menuitem-inline-survey-response",W:[p.xo?dRi():e1w()],N:{tabindex:"0",role:"button"}}),h.listen("click",function(J){return function(){var f=S.S.app.jc();f&&(f.al("iqsr",{tu:J.xo}),f.getVideoData().Gq=!0);S.lM.CE();S.w4()}}(p)),U.push(h); return new g.sc({K:"div",L:"ytp-menuitem",N:{"aria-disabled":"true"},W:[{K:"div",OA:["ytp-menuitem-label"],W:U}]},O)}; g.y.SU=function(U,O){O=O===void 0?!1:O;if(U==="missing-qualities")return{K:"div",UA:"\u00bfFaltan opciones?"};if(U==="inline-survey")return"";var M=this.C||this.U?[ER4(this,U,O,!1)]:[a$1(this,U)];var S=this.S.getPreferredQuality();O||S!=="auto"||U!=="auto"||(M.push(" "),this.U?M.push(ER4(this,this.yP,O,!0,["ytp-menu-label-secondary"])):this.C?M.push(ER4(this,this.D,O,!0,["ytp-menu-label-secondary"])):M.push(a$1(this,this.D,["ytp-menu-label-secondary"])));return{K:"div",W:M}};g.c(Si,g.r);Si.prototype.init=function(){this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.D);this.updateValue("stepvalue",this.Y);this.updateValue("slidervalue",this.U);LRe(this,this.U)}; Si.prototype.X=function(){po(this,Number(this.V.value));this.V.focus()}; Si.prototype.B=function(U){if(!U.defaultPrevented){switch(U.code){case "ArrowDown":U=-this.Y;break;case "ArrowUp":U=this.Y;break;default:return}po(this,Math.min(this.D,Math.max(Number((this.U+U).toFixed(2)),this.C)))}};g.c(hY,Si);hY.prototype.X=function(){Si.prototype.X.call(this);this.Z&&V_e(this)}; hY.prototype.BA=function(){this.yP()}; hY.prototype.ol=function(){this.S.setPlaybackRate(this.U,!0)}; hY.prototype.B=function(U){Si.prototype.B.call(this,U);this.yP();V_e(this);U.preventDefault()};g.c(JY,g.r);g.y=JY.prototype;g.y.init=function(){this.YD(this.U);this.updateValue("minvalue",this.V);this.updateValue("maxvalue",this.B)}; g.y.L4=function(U){if(!U.defaultPrevented){switch(U.keyCode){case 37:case 40:var O=-this.Y;break;case 39:case 38:O=this.Y;break;default:return}this.YD(this.U+O);U.preventDefault()}}; g.y.qH=function(U){var O=this.U;O+=(U.deltaX||-U.deltaY)<0?-this.Z:this.Z;this.YD(O);U.preventDefault()}; g.y.m5=function(U){U=(U-g.Bc(this.X).x)/this.yP*this.range+this.V;this.YD(U)}; g.y.YD=function(U,O){O=O===void 0?"":O;U=g.Nm(U,this.V,this.B);O===""&&(O=U.toString());this.updateValue("valuenow",U);this.updateValue("valuetext",O);this.ol.style.left=(U-this.V)/this.range*(this.yP-this.QP)+"px";this.U=U}; g.y.focus=function(){this.Ca.focus()};g.c(y3,JY);y3.prototype.BA=function(){this.S.setPlaybackRate(this.U,!0)}; y3.prototype.YD=function(U){JY.prototype.YD.call(this,U,kgy(this,U).toString());this.C&&(oR7(this),this.sA())}; y3.prototype.updateValues=function(){var U=this.S.getPlaybackRate();kgy(this,this.U)!==U&&(this.YD(U),oR7(this))};g.c(wQW,g.W_);wQW.prototype.focus=function(){this.U.focus()};g.c(UEw,xK);g.c(O8J,g.CR);g.y=O8J.prototype;g.y.SU=function(U){return U==="1"?"Normal":U.toLocaleString()}; g.y.PA=function(){var U,O=(U=this.S.getVideoData())==null?void 0:U.Js();U=this.S.getPresentingPlayerType(O);this.enable(U!==2&&U!==3);MYJ(this)}; g.y.C9=function(U){g.CR.prototype.C9.call(this,U);this.D&&this.D.V.focus()}; g.y.mZ=function(U){g.CR.prototype.mZ.call(this,U);U?(this.yP=this.j(this.S,"onPlaybackRateChange",this.onPlaybackRateChange),MYJ(this),sB5(this,this.S.getPlaybackRate())):(this.bH(this.yP),this.yP=null)}; g.y.onPlaybackRateChange=function(U){var O=this.S.getPlaybackRate();!this.X&&this.Z.includes(O)||g8m(this,O);sB5(this,U)}; g.y.Na=function(U,O,M){return U===this.U&&S81(this.S)?g.CR.prototype.Na.call(this,U,O,M,{K:"div",L:"ytp-speed-slider-menu-footer",W:[this.D]}):g.CR.prototype.Na.call(this,U,O,M)}; g.y.n6=function(U){g.CR.prototype.n6.call(this,U);U===this.U?this.S.setPlaybackRate(this.C,!0):this.S.setPlaybackRate(Number(U),!0);S81(this.S)&&U===this.U||this.lM.oF()}; g.y.FQ=function(U){var O=U===this.U;this.X=!1;O&&fo(this.S)&&!S81(this.S)?(U=new UEw(this.S),g.YK(this.lM,U)):g.CR.prototype.FQ.call(this,U)};g.c(hLg,g.CR);g.y=hLg.prototype;g.y.VN=function(U){g.CR.prototype.VN.call(this,U)}; g.y.Zl=function(U){return U.option.toString()}; g.y.getOption=function(U){return this.settings[U]}; g.y.SU=function(U){return this.getOption(U).text||""}; g.y.n6=function(U){g.CR.prototype.n6.call(this,U);this.publish("settingChange",this.setting,this.settings[U].option)};g.c(lF,g.bP);lF.prototype.T5=function(U){for(var O=g.D(Object.keys(U)),M=O.next();!M.done;M=O.next()){var S=M.value;if(M=this.jM[S]){var p=U[S].toString();S=!!U[S+"Override"];M.options[p]&&(M.VN(p),M.X.element.setAttribute("aria-checked",String(!S)),M.U.element.setAttribute("aria-checked",String(S)))}}}; lF.prototype.wO=function(U,O){this.publish("settingChange",U,O)};g.c(Gc,g.CR);Gc.prototype.U=function(U){return U.languageCode}; Gc.prototype.SU=function(U){return this.languages[U].languageName||""}; Gc.prototype.n6=function(U){this.publish("select",U);this.S.logClick(this.element);g.mJ(this.lM)};g.c(ffm,g.CR);g.y=ffm.prototype;g.y.ac=function(U){return g.iy(U)?"__off__":U.displayName}; g.y.SU=function(U){return U==="__off__"?"Desactivados":U==="__translate__"?"Traducci\u00f3n autom\u00e1tica":U==="__contribute__"?"Agregar subt\u00edtulos":U==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(U==="__off__"?{}:this.tracks[U]).displayName}; g.y.n6=function(U){if(U==="__translate__")this.U.open();else if(U==="__contribute__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var O=g.iN(this.S.J(),this.S.getVideoData());g.w4(O)}else if(U==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var M=Fte(this);$x(this,M);g.CR.prototype.n6.call(this,this.ac(M));var S,p;M=(O=this.S.getVideoData().getPlayerResponse())==null?void 0:(S=O.captions)==null?void 0:(p=S.playerCaptionsTracklistRenderer)== null?void 0:p.openTranscriptCommand;this.S.ZQ("innertubeCommand",M);this.lM.oF();this.X&&this.S.logClick(this.X)}else{if(U==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();O=Fte(this);$x(this,O);g.CR.prototype.n6.call(this,this.ac(O));var h,J;O=(M=this.S.getVideoData().getPlayerResponse())==null?void 0:(h=M.captions)==null?void 0:(J=h.playerCaptionsTracklistRenderer)==null?void 0:J.openTranscriptCommand;this.S.ZQ("innertubeCommand",O)}else this.S.logClick(this.element), $x(this,U==="__off__"?{}:this.tracks[U]),g.CR.prototype.n6.call(this,U);this.lM.oF()}}; g.y.PA=function(){var U=this.S.getOptions();U=U&&U.indexOf("captions")!==-1;var O=this.S.getVideoData(),M=O&&O.AE,S,p=!((S=this.S.getVideoData())==null||!g.Se(S));S={};if(U||M){var h;if(U){var J=this.S.getOption("captions","track");S=this.S.getOption("captions","tracklist",{includeAsr:!0});var f=p?[]:this.S.getOption("captions","translationLanguages");this.tracks=g.jS(S,this.ac,this);p=g.mV(S,this.ac);var F,l;Fte(this)&&((h=O.getPlayerResponse())==null?0:(F=h.captions)==null?0:(l=F.playerCaptionsTracklistRenderer)== null?0:l.openTranscriptCommand)&&p.push("__correction__");if(f.length&&!g.iy(J)){if((h=J.translationLanguage)&&h.languageName){var G=h.languageName;h=f.findIndex(function(T){return T.languageName===G}); S4w(f,h)}J2w(this.U,f);p.push("__translate__")}h=this.ac(J)}else this.tracks={},p=[],h="__off__";p.unshift("__off__");this.tracks.__off__={};M&&p.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=J,p.push(h));this.C9(p);this.VN(h);J&&J.translationLanguage?this.U.VN(this.U.U(J.translationLanguage)):r94(this.U);U&&this.C.T5(this.S.getSubtitlesUserSettings());this.countLabel.gH(S&&S.length?" ("+S.length+")":"");this.publish("size-change");this.S.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.y.Pm=function(U){var O=this.S.getOption("captions","track");O=g.ri(O);O.translationLanguage=this.U.languages[U];$x(this,O)}; g.y.wO=function(U,O){if(U==="reset")this.S.resetSubtitlesUserSettings();else{var M={};M[U]=O;this.S.updateSubtitlesUserSettings(M)}y2y(this,!0);this.D.start();this.C.T5(this.S.getSubtitlesUserSettings())}; g.y.fDA=function(U){U||g.gB(this.D)}; g.y.VP=function(){g.gB(this.D);g.CR.prototype.VP.call(this)}; g.y.open=function(){g.CR.prototype.open.call(this);this.options.__correction__&&!this.X&&(this.X=this.options.__correction__.element,this.S.createClientVe(this.X,this,167341),this.S.logVisibility(this.X,!0))};g.c(lfe,g.tm);g.y=lfe.prototype; g.y.initialize=function(){if(!this.isInitialized){var U=this.S.J();this.isInitialized=!0;try{this.dU=new KRw(this.S,this)}catch(M){g.rz(Error("QualityMenuItem creation failed"))}g.X(this,this.dU);var O=new ffm(this.S,this);g.X(this,O);U.B||(O=new sA(this.S,this),g.X(this,O));U.enableSpeedOptions&&(O=new O8J(this.S,this),g.X(this,O));(g.Pn(U)||U.C)&&(U.V||U.HA)&&(O=new Z0w(this.S,this),g.X(this,O));U.sX&&!U.T("web_player_move_autonav_toggle")&&(U=new Mb(this.S,this),g.X(this,U));U=new g6(this.S,this); g.X(this,U);this.S.publish("settingsMenuInitialized");i0y(this.settingsButton,this.UF.Oh())}}; g.y.q4=function(U){this.initialize();this.UF.q4(U);i0y(this.settingsButton,this.UF.Oh())}; g.y.Px=function(U){this.UQ&&this.UF.Oh()<=1&&this.hide();this.UF.Px(U);i0y(this.settingsButton,this.UF.Oh())}; g.y.jY=function(U){this.initialize();this.UF.Oh()>0&&g.tm.prototype.jY.call(this,U)}; g.y.CE=function(){this.Oe?this.Oe=!1:g.tm.prototype.CE.call(this)}; g.y.show=function(){g.tm.prototype.show.call(this);g.l3(this.S.getRootNode(),"ytp-settings-shown")}; g.y.hide=function(){g.tm.prototype.hide.call(this);g.$U(this.S.getRootNode(),"ytp-settings-shown")}; g.y.oK=function(U){this.S.logVisibility(this.element,U);this.S.publish("settingsMenuVisibilityChanged",U)};g.c($E7,g.r);g.y=$E7.prototype;g.y.onClick=function(){if(TSw(this)&&(this.S.toggleSubtitles(),this.S.logClick(this.element),!this.isEnabled())){var U=!1,O=g.on(g.Vm(),65);g.gG(this.S.J())&&O!=null&&(U=!O);U&&this.S.J().T("web_player_nitrate_promo_tooltip")&&this.S.publish("showpromotooltip",this.element)}}; g.y.P$l=function(U){var O,M;(O=g.ve(this.S))==null||(M=O.Nw())==null||M.jY(U)}; g.y.isEnabled=function(){return!!this.S.getOption("captions","track").displayName}; g.y.PA=function(){var U=TSw(this),O=300;this.S.J().Y&&(O=480);if(this.S.J().C){this.updateValue("title",g.Iu(this.S,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var M=U}else{if(U)(M=this.ML("ytp-subtitles-button-icon"))==null||M.setAttribute("fill-opacity","1"),this.updateValue("title",g.Iu(this.S,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var S;(S=this.ML("ytp-subtitles-button-icon"))==null||S.setAttribute("fill-opacity", "0.3");this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}M=!0}this.tooltip.Mb();M=M&&this.S.g7().getPlayerSize().width>=O;this.ri(M);this.S.T("embeds_use_parent_visibility_in_ve_logging")?this.S.logVisibility(this.element,M&&this.G):this.S.logVisibility(this.element,M);U?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.y.iM=function(U){g.r.prototype.iM.call(this,U);this.S.J().T("embeds_use_parent_visibility_in_ve_logging")&&this.S.logVisibility(this.element,this.UQ&&U)};g.c(g.Tc,g.r);g.y=g.Tc.prototype; g.y.kZ=function(){var U=this.api.g7().getPlayerSize().width,O=this.Z;this.api.J().Y&&(O=400);O=U>=O&&(!ji(this)||!g.a(this.api.getPlayerStateObject(),64));this.ri(O);g.ea(this.element,"ytp-time-display-allow-autohide",O&&U<400);U=this.api.getProgressState();if(O){O=this.api.getPresentingPlayerType();var M=this.api.getCurrentTime(O,!1);this.V&&(M-=U.airingStart);ei(this)&&(M-=this.bM.startTimeMs/1E3);ei(this)||ji(this)||!this.B||(M-=this.api.getDuration(O,!1));M=g.AB(M);this.X!==M&&(this.updateValue("currenttime", M),this.X=M);O=ei(this)?g.AB((this.bM.endTimeMs-this.bM.startTimeMs)/1E3):g.AB(this.api.getDuration(O,!1));this.C!==O&&(this.updateValue("duration",O),this.C=O)}jBU(this,U.isAtLiveHead);eLe(this,this.api.getLoopRange())}; g.y.onLoopRangeChange=function(U){var O=this.bM!==U;this.bM=U;O&&(this.kZ(),H8W(this))}; g.y.RWG=function(){this.api.setLoopRange(null)}; g.y.fqA=function(){this.B=!this.B;this.kZ()}; g.y.onVideoDataChange=function(U,O,M){this.updateVideoData((this.api.J().T("enable_topsoil_wta_for_halftime")||this.api.J().T("enable_topsoil_wta_for_halftime_live_infra"))&&M===2?this.api.getVideoData(1):O);this.kZ();H8W(this)}; g.y.updateVideoData=function(U){this.m3=U.isLivePlayback&&!U.pE;this.V=yA(U);this.isPremiere=U.isPremiere;g.ea(this.element,"ytp-live",ji(this))}; g.y.onClick=function(U){U.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.y.VP=function(){this.U&&this.U();g.r.prototype.VP.call(this)};g.c(c2m,g.r);g.y=c2m.prototype;g.y.lS=function(){var U=this.api.Wx();this.B!==U&&(this.B=U,zLg(this,this.api.getVolume(),this.api.isMuted()))}; g.y.zf=function(U){this.ri(U.width>=350)}; g.y.jI=function(U){if(!U.defaultPrevented){var O=U.keyCode,M=null;O===37?M=this.volume-5:O===39?M=this.volume+5:O===36?M=0:O===35&&(M=100);M!==null&&(M=g.Nm(M,0,100),M===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(M)),U.preventDefault())}}; g.y.Hm=function(U){var O=U.deltaX||-U.deltaY;U.deltaMode?this.api.setVolume(this.volume+(O<0?-10:10)):this.api.setVolume(this.volume+g.Nm(O/10,-10,10));U.preventDefault()}; g.y.SFQ=function(){Hm(this,this.U,!0,this.V,this.api.yy());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()}; g.y.h9=function(U){var O=this.B?78:52,M=this.B?18:12;U-=g.Bc(this.Y).x;this.api.setVolume(g.Nm((U-M/2)/(O-M),0,1)*100)}; g.y.KDQ=function(){Hm(this,this.U,!1,this.V,this.api.yy());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Z))}; g.y.onVolumeChange=function(U){zLg(this,U.volume,U.muted)}; g.y.Ci=function(){Hm(this,this.U,this.isDragging,this.V,this.api.yy())}; g.y.VP=function(){g.r.prototype.VP.call(this);g.$U(this.D,"ytp-volume-slider-active")};g.c(zc,Si);zc.prototype.onVolumeChange=function(U){if(this.Z)this.Z=!1;else{var O=U.volume;O===0||U.muted?po(this,0):po(this,O)}}; zc.prototype.X=function(){Si.prototype.X.call(this);this.yP(this.U)}; zc.prototype.B=function(U){Si.prototype.B.call(this,U);this.yP(this.U)}; zc.prototype.ol=function(U,O){this.Z=!0;U===0||O?this.S.mute():(this.S.isMuted()&&this.S.unMute(),this.S.setVolume(U))};g.c(DE5,g.r);g.c(cm,g.r); cm.prototype.onVideoDataChange=function(){var U=this.api.J();this.gi();this.visible=!!this.api.getVideoData().videoId&&!g.fd(this.api.getVideoData(1));this.ri(this.visible);this.api.logVisibility(this.element,this.visible&&this.G);if(this.visible){var O=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",O)}U.B&&(this.U&&(this.bH(this.U),this.U=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.l3(this.element,"no-link")); O=this.api.J();U=this.api.getVideoData();var M="";O.B||(O=g.k0(O),O.indexOf("www.")===0&&(O=O.substring(4)),M=g.l8(U)?"Mirar en YouTube Music":O==="youtube.com"?"Mirar en YouTube":g.v4("Mirar en $WEBSITE",{WEBSITE:O}));this.updateValue("title",M)}; cm.prototype.onClick=function(U){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var O=this.api.J(),M=this.api.getVideoUrl(!g.I8(U),!1,!0,!0);if(g.Pn(O)){var S={};g.Pn(O)&&g.ce(this.api,"addEmbedsConversionTrackingParams",[S]);M=g.pj(M,S)}g.jV(M,this.api,U);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; cm.prototype.gi=function(){var U={K:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{K:"path",vB:!0,L:"ytp-svg-fill",N:{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 "}}]}, O=28666,M=this.api.getVideoData();this.api.isEmbedsShortsMode()?U={K:"svg",N:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{K:"path",N:{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.l8(M)&&(U={K:"svg",N:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{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"}},{K:"path",N:{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"}}]},O=216163);g.l8(M)?g.l3(this.element,"ytp-youtube-music-button"):g.$U(this.element,"ytp-youtube-music-button");U.N=Object.assign({},U.N,{"aria-hidden":"true"});this.updateValue("logoSvg",U);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,O,!0)}; cm.prototype.iM=function(U){g.r.prototype.iM.call(this,U);this.api.logVisibility(this.element,this.visible&&U)};g.c(NSJ,g.Zj);g.y=NSJ.prototype;g.y.Ji=function(){if(this.S.T("web_player_max_seekable_on_ended")||!g.a(this.S.getPlayerStateObject(),2))this.progressBar.kZ(),this.Ca.kZ()}; g.y.zm=function(){this.rF();if(this.No.V)this.Ji();else if(this.progressBar.lB(),this.S.T("delhi_modern_web_player")){var U;(U=this.C)==null||dEe(U,!1)}}; g.y.J9=function(){this.Ji();this.Z.start()}; g.y.rF=function(){var U;if(U=!this.S.J().V){U=this.progressBar;var O=2*g.s3()*U.C;U=U.B.getLength()*1E3/U.api.getPlaybackRate()/O<300}U=U&&this.S.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;O=!U;this.No.V||(U=O=!1);O?this.BA||(this.BA=this.j(this.S,"progresssync",this.Ji)):this.BA&&(this.bH(this.BA),this.BA=null);U?this.Z.isActive()||this.Z.start():this.Z.stop()}; g.y.gi=function(){var U=this.S.Wx(),O=this.S.g7().getPlayerSize(),M=BSq(this),S=Math.max(O.width-M*2,100);if(this.w7!==O.width||this.pE!==U){this.w7=O.width;this.pE=U;var p=xEw(this);this.X.element.style.width=p+"px";this.X.element.style.left=M+"px";g.Cti(this.progressBar,M,p,U);this.S.BJ().py=p}M=this.B;S=Math.min(570*(U?1.5:1),S);U=Math.min(413*(U?1.5:1),Math.round((O.height-Wm(this))*.82));M.maxWidth=S;M.maxHeight=U;M.uq();this.rF();this.S.J().T("html5_player_dynamic_bottom_gradient")&&ALw(this.NL, O.height)}; g.y.onVideoDataChange=function(){var U=this.S.getVideoData();this.hZ.style.background=U.cJ?U.t6:"";this.ol&&Xui(this.ol,U.showSeekingControls);this.yP&&Xui(this.yP,U.showSeekingControls)}; g.y.tG=function(){return this.X.element};g.c(b8y,B2);g.y=b8y.prototype;g.y.t1=function(U){U.target!==this.dismissButton.element&&(this.onClickCommand&&this.S.ZQ("innertubeCommand",this.onClickCommand),this.YK())}; g.y.YK=function(){this.enabled=!1;this.Z.hide()}; g.y.onVideoDataChange=function(U,O){U==="dataloaded"&&RL7(this);U=[];var M,S,p,h;if(O=(h=g.q((M=O.getWatchNextResponse())==null?void 0:(S=M.playerOverlays)==null?void 0:(p=S.playerOverlayRenderer)==null?void 0:p.suggestedActionsRenderer,Jfl))==null?void 0:h.suggestedActions)for(M=g.D(O),S=M.next();!S.done;S=M.next())(S=g.q(S.value,yfh))&&g.q(S.trigger,hQQ)&&U.push(S);if(U.length!==0){M=[];U=g.D(U);for(S=U.next();!S.done;S=U.next())if(S=S.value,p=g.q(S.trigger,hQQ))h=(h=S.title)?g.B_(h):"View Chapters", O=p.timeRangeStartMillis,p=p.timeRangeEndMillis,O!=null&&p!=null&&S.tapCommand&&(M.push(new g.ll(O,p,{priority:9,namespace:"suggested_action_button_visible",id:h})),this.suggestedActions[h]=S.tapCommand);this.S.pO(M)}}; g.y.FS=function(){return this.enabled}; g.y.oK=function(){this.enabled?this.TY.start():Nw(this);this.f0()}; g.y.VP=function(){RL7(this);B2.prototype.VP.call(this)};var WQ={},vm=(WQ.CHANNEL_NAME="ytp-title-channel-name",WQ.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",WQ.LINK="ytp-title-link",WQ.SESSIONLINK="yt-uix-sessionlink",WQ.SUBTEXT="ytp-title-subtext",WQ.TEXT="ytp-title-text",WQ.TITLE="ytp-title",WQ);g.c(Bm,g.r);Bm.prototype.onClick=function(U){this.api.logClick(this.element);var O=this.api.J(),M=this.api.getVideoUrl(!g.I8(U),!1,!0);g.Pn(O)&&(O={},g.ce(this.api,"addEmbedsConversionTrackingParams",[O]),M=g.pj(M,O));g.jV(M,this.api,U)}; Bm.prototype.PA=function(){var U=this.api.getVideoData(),O=this.api.J();this.updateValue("title",U.title);var M={K:"a",L:vm.CHANNEL_NAME,N:{href:"{{channelLink}}",target:"_blank"},UA:"{{channelName}}"};this.api.J().B&&(M={K:"span",L:vm.CHANNEL_NAME,UA:"{{channelName}}",N:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",M);tYU(this);this.api.getPresentingPlayerType()===2&&(M=this.api.getVideoData(),M.videoId&&M.isListed&&M.author&&M.AG&&M.profilePicture?(this.updateValue("channelLink", M.AG),this.updateValue("channelName",M.author),this.updateValue("channelTitleFocusable","0")):tYU(this));M=O.externalFullscreen||!this.api.isFullscreen()&&O.o2;g.ea(this.link,vm.FULLERSCREEN_LINK,M);O.ol||!U.videoId||M||g.fd(U)||O.B?this.U&&(this.updateValue("url",null),this.bH(this.U),this.U=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.U||(this.U=this.j(this.link,"click",this.onClick)));O.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Pn(O)?U.expandedTitle: U.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.c(g.xx,g.r);g.y=g.xx.prototype;g.y.setEnabled=function(U){if(this.type!=null)if(U)switch(this.type){case 3:case 2:mEw(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.D=U}; g.y.LP=function(U,O,M,S,p,h,J,f){if(!this.sA||this.env.Y){this.type===3&&this.lB();this.type!==1&&(g.JD(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.D&&this.fade.show(),this.V&&this.V.dispose(),(this.V=this.api.AL())&&this.V.subscribe("l",this.Kp,this));if(f){var F=g.Rl(this.bg).height||141;this.QP.style.bottom=F+2+"px"}else this.QP.style.display="none";this.update({text:M,title:h!=null?h:"",eduText:f!=null?f:""});g.ea(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!h);this.api.isInline()&& g.l3(this.bottomText,"ytp-modern-tooltip-text");g.ea(this.element,"ytp-text-detail",!!S);M=-1;this.V&&(M=iT(this.V,243*this.scale),this.env.T("web_l3_storyboard")&&this.V.levels.length===4&&(M=this.V.levels.length-1),M=jhJ(this.V,M,O));Ifm(this,M);if(J)switch(O=g.Rl(this.element).width,J){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=O+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=O/2+"px",this.title.style.textAlign= "center"}A2W(this,!!S,U,p)}}; g.y.Zk=function(){this.type===1&&this.lB()}; g.y.Tu=function(U,O){if(this.type)if(this.type===3)this.lB();else return;Y8e(this,U,3,O)}; g.y.Mb=function(){this.U&&!this.Y&&this.U.hasAttribute("title")&&(this.B=this.U.getAttribute("title")||"",this.U.removeAttribute("title"),this.D&&mEw(this))}; g.y.Kp=function(U,O){U<=this.X&&this.X<=O&&(U=this.X,this.X=NaN,Ifm(this,U))}; g.y.vpP=function(){$CU(this.V,this.X,243*this.scale)}; g.y.lB=function(){switch(this.type){case 2:var U=this.U;U.removeEventListener("mouseout",this.Z);U.addEventListener("mouseover",this.C);U.removeEventListener("blur",this.Z);U.addEventListener("focus",this.C);P_U(this);break;case 3:P_U(this);break;case 1:this.V&&(this.V.unsubscribe("l",this.Kp,this),this.V=null),this.api.removeEventListener("videoready",this.yP),this.ol.stop()}this.type=null;this.D&&this.fade.hide()}; g.y.PD=function(){if(this.U)for(var U=0;U=0;O--)if(this.RY[O]===U){this.RY.splice(O,1);break}Y9(this.No,64,this.RY.length>0)}; g.y.xb=function(){this.api.OU()&&this.api.V$();return!!this.s$||q8w(this)||g.qV.prototype.xb.call(this)}; g.y.J5=M1(3);g.y.VF=M1(7);g.y.Uq=M1(10); g.y.IG=function(){var U=!this.xb(),O=U&&this.api.OU()&&!g.a(this.api.getPlayerStateObject(),2)&&!g.fd(this.api.getVideoData())&&!this.api.J().B&&!this.api.isEmbedsShortsMode(),M=this.lI&&g.X7(this.api)&&g.a(this.api.getPlayerStateObject(),128);U||M?(this.Rb.show(),this.eL.show()):(this.Rb.hide(),this.eL.hide(),this.api.PD(this.kX.element));O?this.uU.jY():this.uU.CE();this.ev&&v8g(this.ev,this.aq||!U);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&i8m(this);g.qV.prototype.IG.call(this)}; g.y.Sp=function(U,O,M,S,p){U.style.left="";U.style.top="";U.style.bottom="";var h=g.Rl(U),J=S||this.ev&&g.zU(this.ev.tG(),O),f=S=null;M!=null&&J||(S=g.Rl(O),f=g.xs(O,this.api.getRootNode()),M==null&&(M=f.x+S.width/2));M-=h.width/2;J?(O=this.ev,S=BSq(O),f=xEw(O),J=this.api.g7().getPlayerSize().height,M=g.Nm(M,S,S+f-h.width),h=J-Wm(O)-h.height):g.zU(this.kX.element,O)?(O=this.api.g7().getPlayerSize().width,M=g.Nm(M,12,O-h.width-12),h=this.Wx()?this.Fw:this.W9,this.api.J().playerStyle==="gvn"&&(h+=20), this.lI&&(h-=this.Wx()?26:18)):(O=this.api.g7().getPlayerSize(),M=g.Nm(M,12,O.width-h.width-12),h=f.y>(O.height-S.height)/2?f.y-h.height-12:f.y+S.height+12);U.style.top=h+(p||0)+"px";U.style.left=M+"px"}; g.y.zm=function(U){U&&(this.api.PD(this.kX.element),this.ev&&this.api.PD(this.ev.tG()));this.Wv&&(g.ea(this.contextMenu.element,"ytp-autohide",U),g.ea(this.contextMenu.element,"ytp-autohide-active",!0));g.qV.prototype.zm.call(this,U)}; g.y.vZ=function(){g.qV.prototype.vZ.call(this);this.Wv&&(g.ea(this.contextMenu.element,"ytp-autohide-active",!1),this.Wv&&(this.contextMenu.hide(),this.Kf&&this.Kf.hide()))}; g.y.Wb=function(U,O){var M=this.api.g7().getPlayerSize();M=new g.l4(0,0,M.width,M.height);if(U||this.No.V&&!this.xb()){if(this.api.J().IV||O)U=this.Wx()?this.Fw:this.W9,M.top+=U,M.height-=U;this.ev&&(M.height-=Wm(this.ev))}return M}; g.y.lS=function(U){var O=this.api.getRootNode();U?O.parentElement?(O.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.J().externalFullscreen||(O.parentElement.insertBefore(this.jQ.element,O),O.parentElement.insertBefore(this.iE.element,O.nextSibling))):g.K5(Error("Player not in DOM.")):(O.setAttribute("aria-label","Reproductor de video de YouTube"),this.jQ.detach(),this.iE.detach());this.gi();this.kE()}; g.y.Wx=function(){var U=this.api.J();return this.api.isFullscreen()&&!U.Y||!1}; g.y.showControls=function(U){this.rf=!U;this.IG()}; g.y.gi=function(){var U=this.Wx();this.tooltip.scale=U?1.5:1;this.contextMenu&&g.ea(this.contextMenu.element,"ytp-big-mode",U);this.IG();this.api.T("web_player_hide_overflow_button_if_empty_menu")||i8m(this);this.kE();var O=this.api.isEmbedsShortsMode();O&&U?(U=(this.api.g7().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.j3(this.kX.element,"padding-left",U+"px"),g.j3(this.kX.element,"padding-right",U+"px")):O&&(g.j3(this.kX.element,"padding-left",""),g.j3(this.kX.element,"padding-right", ""));g.qV.prototype.gi.call(this)}; g.y.n_=function(){if(q8w(this)&&!g.X7(this.api))return!1;var U=this.api.getVideoData();return!g.Pn(this.api.J())||this.api.getPresentingPlayerType()===2||!this.Lf||((U=this.Lf||U.Lf)?(U=U.embedPreview)?(U=U.thumbnailPreviewRenderer,U=U.videoDetails&&g.q(U.videoDetails,UqU)||null):U=null:U=null,U&&U.collapsedRenderer&&U.expandedRenderer)?g.qV.prototype.n_.call(this):!1}; g.y.kE=function(){g.qV.prototype.kE.call(this);this.api.logVisibility(this.title.element,!!this.X$);this.A5&&this.A5.iM(!!this.X$);this.channelAvatar.iM(!!this.X$);this.overflowButton&&this.overflowButton.iM(this.Ug()&&!!this.X$);this.shareButton&&this.shareButton.iM(!this.Ug()&&!!this.X$);this.WC&&this.WC.iM(!this.Ug()&&!!this.X$);this.searchButton&&this.searchButton.iM(!this.Ug()&&!!this.X$);this.copyLinkButton&&this.copyLinkButton.iM(!this.Ug()&&!!this.X$);if(!this.X$){this.api.PD(this.kX.element); for(var U=0;U5&&O.al("glrs",{cmt:M});O.seekTo(0,{seekSource:58});O.al("glrre",{cmt:M})}}; Yx.prototype.VP=function(){this.U=null;g.C.prototype.VP.call(this)};g.c(g.mG,Sz);g.y=g.mG.prototype;g.y.isView=function(){return!0}; g.y.qj=function(){var U=this.mediaElement.getCurrentTime();if(U1;jh(U.Nm(),S-.01)&&!p&&(Is(this,4),M.isActive=!1,M.Mr=M.Mr||M.isActive,(this.G===1?this.U:this.V).al("sbh",{}),O.isActive=!0,O.Mr=O.Mr||O.isActive,this.G!==0&&(this.U.getVideoData().vE=!0));U=this.X.V;if(this.X.U.isActive&&U.isActive&&(Is(this,5),this.G!==0)){U=this.V.uO();M=this.U.uO(); this.U.al("sbs",{citag:M==null?void 0:M.itag,nitag:U==null?void 0:U.itag});this.V.al("gitags",{pitag:M==null?void 0:M.itag,citag:U==null?void 0:U.itag});var h;(h=this.V)==null||h.Yh()}}}; g.y.Cp=function(){this.uI()&&this.Bx("player-reload-after-handoff")}; g.y.Bx=function(U,O){O=O===void 0?{}:O;if(!this.GY()&&this.status.status!==6){var M=this.status.status>=4&&U!=="player-reload-after-handoff";this.status={status:Infinity,error:U};if(this.U&&this.V){var S=this.V.getVideoData().clientPlaybackNonce;this.U.iH(new Ii("dai.transitionfailure",Object.assign(O,{cpn:S,transitionTimeMs:this.dP,msg:U})));this.U.B1(M)}this.O7.reject(U);this.dispose()}}; g.y.uI=function(){return this.status.status>=4&&this.status.status<6}; g.y.VP=function(){sTy(this);this.U.unsubscribe("newelementrequired",this.Cp,this);if(this.B){var U=this.B.V;this.B.U.oW.unsubscribe("updateend",this.L$,this);U.oW.unsubscribe("updateend",this.L$,this)}g.C.prototype.VP.call(this)}; g.y.wl=function(U){g.Nc(U,128)&&this.Bx("player-error-event")};g.c(Pm,g.C);Pm.prototype.clearQueue=function(U,O){U=U===void 0?!1:U;O=O===void 0?!1:O;this.X&&this.X.reject("Queue cleared");this.app.J().T("html5_gapless_fallback_on_qoe_restart_v2")||O&&this.V&&this.V.B1(!1);no(this,U)}; Pm.prototype.uB=function(){return!this.U}; Pm.prototype.uI=function(){var U;return((U=this.B)==null?void 0:U.uI())||!1}; Pm.prototype.VP=function(){no(this);g.C.prototype.VP.call(this)};g.c(ylU,g.H_);g.y=ylU.prototype;g.y.getVisibilityState=function(U,O,M,S,p,h,J,f){return U?4:Sx1()?3:O?2:M?1:S?5:p?7:h?8:J?9:f?10:0}; g.y.n0=function(U){this.fullscreen!==U&&(this.fullscreen=U,this.oK())}; g.y.setMinimized=function(U){this.V!==U&&(this.V=U,this.oK())}; g.y.setInline=function(U){this.inline!==U&&(this.inline=U,this.oK())}; g.y.fF=function(U){this.pictureInPicture!==U&&(this.pictureInPicture=U,this.oK())}; g.y.setSqueezeback=function(U){this.B!==U&&(this.B=U,this.oK())}; g.y.FN=function(U){this.X!==U&&(this.X=U,this.oK())}; g.y.oA=function(){return this.U}; g.y.h6=function(){return this.fullscreen!==0}; g.y.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.y.zH=function(){return this.fullscreen}; g.y.isMinimized=function(){return this.V}; g.y.isInline=function(){return this.inline}; g.y.isBackground=function(){return Sx1()}; g.y.PU=function(){return this.pictureInPicture}; g.y.Ql=function(){return!1}; g.y.CM=function(){return this.B}; g.y.EU=function(){return this.X}; g.y.oK=function(){this.publish("visibilitychange");var U=this.getVisibilityState(this.oA(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.PU(),this.Ql(),this.CM(),this.EU());U!==this.C&&this.publish("visibilitystatechange");this.C=U}; g.y.VP=function(){J4W(this.G);g.H_.prototype.VP.call(this)};g.c(g.Q3,g.C);g.y=g.Q3.prototype;g.y.VP=function(){this.videoData=this.playerState=null;g.C.prototype.VP.call(this)}; g.y.addCueRange=function(){}; g.y.FO=function(){}; g.y.ai=function(){}; g.y.xM=function(){return!1}; g.y.JE=function(){return!1}; g.y.Hn=function(){return!1}; g.y.s2=function(){}; g.y.Fn=function(){}; g.y.IN=function(){}; g.y.rg=function(){return[]}; g.y.Tt=function(){}; g.y.EM=function(){return""}; g.y.getAudioTrack=function(){return this.getVideoData().mW}; g.y.kM=function(){return null}; g.y.getAvailableAudioTracks=function(){return[]}; g.y.zB=function(){return[]}; g.y.aY=function(){return[]}; g.y.sH=function(){return[]}; g.y.qE=function(){}; g.y.aO=function(){return 0}; g.y.CV=function(){return""}; g.y.getCurrentTime=function(){return 0}; g.y.mY=function(){}; g.y.uO=function(){}; g.y.aT=function(){return{}}; g.y.getDuration=function(){return 0}; g.y.P7=function(){return 0}; g.y.hR=function(){return 0}; g.y.gw=function(){return!1}; g.y.eU=function(){return 0}; g.y.Kt=function(){return 0}; g.y.yB=M1(15);g.y.Sr=function(){return 0}; g.y.oo=function(){return!1}; g.y.rB=function(){return 0}; g.y.tR=function(){return null}; g.y.Ea=function(){return null}; g.y.GZ=function(){return 0}; g.y.oP=function(){return 0}; g.y.Mo=function(){return g.A(function(U){g.Dq(U)})}; g.y.Ct=M1(21);g.y.getPlaybackQuality=function(){return"auto"}; g.y.getPlaybackRate=function(){return 1}; g.y.getPlayerState=function(){this.playerState||(this.playerState=new g.fD);return this.playerState}; g.y.getPlayerType=function(){return 0}; g.y.getPlaylistSequenceForTime=function(){return null}; g.y.bU=function(){return function(){}}; g.y.Ui=function(){return""}; g.y.getPreferredQuality=function(){return"unknown"}; g.y.VT=function(){}; g.y.getProximaLatencyPreference=function(){return 0}; g.y.uP=function(){return VK}; g.y.AL=function(){return null}; g.y.getStoryboardFormat=function(){return null}; g.y.getStreamTimeOffset=function(){return 0}; g.y.H7=function(){return 0}; g.y.je=function(){return 0}; g.y.W_=function(){return{Bn:[],FX:[],currentTime:0,Ko:"",droppedVideoFrames:0,isGapless:!1,uB:!0,Gm:0,tI:0,lh:0,dn:0,Oc:0,Cw:[],yh:[],UD:null,playerState:this.getPlayerState(),bR:null,Pc:"",totalVideoFrames:0}}; g.y.getUserAudio51Preference=function(){return 0}; g.y.getUserPlaybackQualityPreference=function(){return""}; g.y.getVideoData=function(){this.videoData||(this.videoData=new g.oC(this.gG),g.X(this,this.videoData));return this.videoData}; g.y.MZ=function(){return null}; g.y.OF=function(){}; g.y.getVideoLoadedFraction=function(){return 0}; g.y.sf=function(){}; g.y.handleError=function(){}; g.y.B1=function(){}; g.y.TK=function(){}; g.y.Aq=function(){return!1}; g.y.kY=M1(46);g.y.Jt=function(){return!1}; g.y.hasSupportedAudio51Tracks=function(){return!1}; g.y.nN=function(){return!1}; g.y.oA=function(){return!1}; g.y.isAtLiveHead=function(){return!1}; g.y.Sk=function(){return!0}; g.y.isGapless=function(){return!1}; g.y.isHdr=function(){return!1}; g.y.Of=function(){return!1}; g.y.PL=function(){return!1}; g.y.bx=function(){return!1}; g.y.isProximaLatencyEligible=function(){return!1}; g.y.uB=function(){return!0}; g.y.KM=function(){return!1}; g.y.H1=function(){return!1}; g.y.Hh=function(){}; g.y.Ap=function(){}; g.y.gV=function(){}; g.y.Bd=function(){}; g.y.Yh=function(){}; g.y.eM=function(){}; g.y.s4=function(){}; g.y.b4=function(){}; g.y.wT=function(){}; g.y.V5=M1(56);g.y.yf=M1(27);g.y.Ux=function(){}; g.y.FY=function(){}; g.y.pauseVideo=function(){}; g.y.playVideo=function(){return g.A(function(U){return U.return()})}; g.y.Bo=function(){}; g.y.vx=M1(33);g.y.xX=M1(39);g.y.xA=function(){}; g.y.al=function(){}; g.y.Vc=function(){}; g.y.XV=function(){}; g.y.MI=function(){}; g.y.iH=function(){}; g.y.w6=function(){}; g.y.N2=function(){}; g.y.ZY=function(){}; g.y.s_=function(){}; g.y.hf=function(){}; g.y.zN=function(){}; g.y.Xo=function(){}; g.y.GE=function(){}; g.y.removeCueRange=function(){}; g.y.QH=function(){}; g.y.Le=function(){return[]}; g.y.Md=function(){}; g.y.Cf=function(){}; g.y.Ia=function(){}; g.y.YP=function(){}; g.y.X1=function(){}; g.y.xu=function(){}; g.y.vW=function(){}; g.y.seekTo=function(){}; g.y.sendAbandonmentPing=function(){}; g.y.sendVideoStatsEngageEvent=function(){}; g.y.nD=function(){}; g.y.u_=function(){}; g.y.setLoop=function(){}; g.y.b9=function(){}; g.y.setMediaElement=function(){}; g.y.cG=function(){}; g.y.setPlaybackRate=function(){}; g.y.k5=function(){}; g.y.b_=function(){}; g.y.Vo=function(){}; g.y.setProximaLatencyPreference=function(){}; g.y.Ex=function(){}; g.y.Yw=function(){}; g.y.O_=function(){}; g.y.N8=function(){}; g.y.SL=function(){}; g.y.setUserAudio51Preference=function(){}; g.y.Sw=function(){}; g.y.vU=function(){return!1}; g.y.PC=function(){}; g.y.u7=function(){return!1}; g.y.nX=function(){}; g.y.wM=function(){}; g.y.rM=function(){}; g.y.stopVideo=function(){}; g.y.subscribe=function(){return NaN}; g.y.b7=function(){}; g.y.togglePictureInPicture=function(){}; g.y.S_=function(){return 0}; g.y.unsubscribe=function(){return!1}; g.y.i_=function(){}; g.y.v0=function(){return!1}; g.y.KJ=function(){}; g.y.Tw=function(){}; g.y.rZ=function(){}; g.y.Oq=function(){};g.c(g.Co,g.C);g.y=g.Co.prototype;g.y.Va=function(){return this.G}; g.y.u9=function(U){this.G=U}; g.y.jc=function(){return this.V}; g.y.vR=function(U){this.V=U}; g.y.OW=M1(52);g.y.oI=M1(54);g.y.yr=function(U){return U?U===1?this.G:this.V.getVideoData().enableServerStitchedDai&&U===2?this.V.getVideoData().O3?this.B[2]||this.V:this.V:g.Os(this.V.getVideoData())&&U===2?this.B[2]||this.V:this.B[U]||null:this.V}; g.y.VP=function(){for(var U=g.D(Object.values(this.B)),O=U.next();!O.done;O=U.next())O.value.dispose();this.U.dispose();g.C.prototype.VP.call(this)};g.c(Xx,g.C);g.y=Xx.prototype;g.y.enqueue=function(U,O){if(U.X!==this)return!1;if(this.segments.length===0||(O===void 0?0:O))this.U=U;this.segments.push(U);return!0}; g.y.dK=function(){return this.q0||0}; g.y.Hi=function(){return this.X||0}; g.y.removeAll=function(){for(;this.segments.length;){var U=void 0;(U=this.segments.pop())==null||U.dispose()}this.V.clear();this.B=void 0}; g.y.VP=function(){this.removeAll();g.C.prototype.VP.call(this)}; g.c(z8e,g.C);g.y=z8e.prototype;g.y.dK=function(){return this.q0}; g.y.Hi=function(){return this.B}; g.y.getType=function(){return this.type}; g.y.getVideoData=function(){return this.videoData}; g.y.CP=function(U){Yu(U);this.videoData=U}; g.y.VP=function(){cli(this);g.C.prototype.VP.call(this)};g.Zm.prototype.YM=function(U,O){if(O===1)return this.U.get(U);if(O===2)return this.B.get(U);if(O===3)return this.V.get(U)}; g.Zm.prototype.jA=M1(64);g.Zm.prototype.pF=function(U,O,M,S){M={NQ:S,hN:M};O?this.B.set(U,M):this.U.set(U,M)}; g.Zm.prototype.clearAll=function(){this.U.clear();this.B.clear();this.V.clear()}; g.c(g.Ko,g.C);g.y=g.Ko.prototype;g.y.XM=function(U,O,M){return new g.ll(U,O,{id:M,namespace:"serverstitchedcuerange",priority:9})}; g.y.SJ=function(U){var O=U.hK?U.hK*1E3:U.q0,M=this.V.get(U.cpn);M&&this.playback.removeCueRange(M);this.V.delete(U.cpn);this.B.delete(U.cpn);M=this.G.indexOf(U);M>=0&&this.G.splice(M,1);M=[];for(var S=g.D(this.C),p=S.next();!p.done;p=S.next())p=p.value,p.end<=O?this.playback.removeCueRange(p):M.push(p);this.C=M;QTe(this,0,O+U.durationMs)}; g.y.onCueRangeEnter=function(U){this.HA.push(U);var O=U.getId();this.ya({oncueEnter:1,cpn:O,start:U.start,end:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.aO()||0).toFixed(3)});var M=O==="";this.Rl.add(U.V);var S=this.B.get(O);if(M){var p;if(this.playback.getVideoData().Js()&&((p=this.U)==null?0:p.SD)&&this.X){this.GA=0;this.U=void 0;this.BA&&(this.events.bH(this.BA),this.BA=null);this.X="";this.hZ=!0;return}}else if(this.ya({enterAdCueRange:1}),this.playback.getVideoData().Js()&& (S==null?0:S.OO))return;if(this.hZ&&!this.U)this.hZ=!1,!M&&S&&(M=this.playback.getCurrentTime(),os(this,{Tk:U,isAd:!0,iO:!0,iU:M,adCpn:O},{isAd:!1,iO:!1,iU:M}),this.M0=S.cpn,Lo(this,S),U=EA(this,"midab",S),this.ya(U),this.GA=1),this.Z=!1;else if(this.U){if(this.U.iO)this.ya({a_pair_of_same_transition_occurs_enter:1,acpn:this.U.adCpn,transitionTime:this.U.iU,cpn:O,currentTime:this.playback.getCurrentTime()}),S=this.playback.getCurrentTime(),U={Tk:U,isAd:!M,iO:!0,iU:S,adCpn:O},O={Tk:this.U.Tk,isAd:this.U.isAd, iO:!1,iU:S,adCpn:this.U.adCpn},this.U.Tk&&this.Rl.delete(this.U.Tk.V),os(this,U,O);else{if(this.U.Tk===U){this.ya({same_cue_range_pair_enter:1,acpn:this.U.adCpn,transitionTime:this.U.iU,cpn:O,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:U.start,cueRangeEndTime:U.end});this.U=void 0;return}if(this.U.adCpn===O){O&&this.ya({dchtsc:O});this.U=void 0;return}U={Tk:U,isAd:!M,iO:!0,iU:this.playback.getCurrentTime(),adCpn:O};os(this,U,this.U)}this.U=void 0;this.Z=!1}else this.U={Tk:U,isAd:!M, iO:!0,iU:this.playback.getCurrentTime(),adCpn:O}}; g.y.onCueRangeExit=function(U){var O=U.getId();this.ya({oncueExit:1,cpn:O,start:U.start,end:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.aO()||0).toFixed(3)});var M=O==="",S=this.B.get(O);if(this.playback.getVideoData().Js()&&!M&&S){if(S.OO)return;S.OO=!0;this.Y.clear();if(this.gG.T("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.xM()){var p=S.q0;this.playback.GE(p/1E3,(p+S.durationMs)/1E3)}else this.playback.al("lifa",{remove:0})}if(this.Rl.has(U.V))if(this.Rl.delete(U.V), this.HA=this.HA.filter(function(h){return h!==U}),this.hZ&&(this.Z=this.hZ=!1,this.ya({cref:1})),this.U){if(this.U.iO){if(this.U.Tk===U){this.ya({same_cue_range_pair_exit:1, acpn:this.U.adCpn,transitionTime:this.U.iU,cpn:O,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:U.start,cueRangeEndTime:U.end});this.U=void 0;return}if(this.U.adCpn===O){O&&this.ya({dchtsc:O});this.U=void 0;return}O={Tk:U,isAd:!M,iO:!1,iU:this.playback.getCurrentTime(),adCpn:O};os(this,this.U,O)}else if(this.ya({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.U.adCpn,transitionTime:this.U.iU,upcomingCpn:O,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.U.adCpn===O)return;this.U=void 0;this.Z=!1}else this.U={Tk:U,isAd:!M,iO:!1,iU:this.playback.getCurrentTime(),adCpn:O};else this.ya({ignore_single_exit:1})}; g.y.x_=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,q0:0,playerType:1,vT:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.y.Zy=function(){if(this.Ja)return!1;var U=void 0;this.M0&&(U=this.B.get(this.M0));return this.playback.getVideoData().Js()?!!U&&!U.OO:!!U}; g.y.seekTo=function(U,O,M,S){U=U===void 0?0:U;O=O===void 0?{}:O;M=M===void 0?!1:M;S=S===void 0?null:S;if(this.playback.getVideoData().Js()&&U<=this.sA/1E3)this.playback.pauseVideo(),this.sA=0,this.Z=!0,this.playback.Mo(),this.playback.seekTo(U),this.playback.playVideo();else if(this.Z=!0,M)d75(this,U,O);else{M=this.app.jc();var p=M===this.Yy?this.AG:null;w6(this,!1);this.EQ=U;this.HV=O;S!=null&&this.hG.start(S);M&&(this.AG=p||M.getPlayerState(),M.rM(O),this.Yy=M)}}; g.y.VP=function(){w6(this,!1);tCe(this);YUi(this);g.C.prototype.VP.call(this)}; g.y.V4=function(U){this.Oj=U;this.ya({swebm:U})}; g.y.jh=function(U,O,M){if(M&&O){var S=this.Y.get(U);if(S){S.locations||(S.locations=new Map);var p=Number(O.split(";")[0]);M=new g.bJ(M);this.ya({hdlredir:1,itag:O,seg:U,hostport:tc(M)});S.locations.set(p,M)}}}; g.y.Or=function(U,O,M,S,p,h){var J=S===3,f=Alg(this,U,O,S,M,h);if(!f){O1(this,O,J);var F=g.m7w(this,O)?"undec":"ncp";this.ya({gvprp:F,mt:U,seg:O,tt:S,itag:M,ce:h});return null}J||this.Y.set(O,f);h=f.fm;var l;S=((l=this.YM(O-1,S,p))==null?void 0:l.NQ)||"";S===""&&this.ya({eds:1});l=PcW(this,f.ssdaiAdsConfig);p=this.playback.getVideoData();var G;J=((G=p.V)==null?void 0:G.containerType)||0;G=p.Ic[J];f=f.fg&&O>=f.fg?f.fg:void 0;G={jW:h?Xtm(this,h):[],Fz:l,NQ:S,bf:f,qp:$v(G.split(";")[0]),mz:G.split(";")[1]|| ""};f={Qy:G};this.w7&&(U={gvprpro:"v",sq:O,mt:U.toFixed(3),itag:M,acpns:((F=G.jW)==null?void 0:F.join("_"))||"none",abid:h},this.ya(U));return f}; g.y.Gd=function(U){a:{if(!this.Ja){var O=I3W(this,U);if(!(this.playback.getVideoData().Js()&&(O==null?0:O.OO)))break a}O=void 0}var M=O;if(!M)return this.ya({gvprp:"ncp",mt:U}),null;O=M.fm;var S=PcW(this,M.ssdaiAdsConfig);M=M.fg&&M.HW&&U>=M.HW?M.fg:void 0;var p=this.playback.getVideoData(),h,J=((h=p.V)==null?void 0:h.containerType)||0;h=p.Ic[J];h={jW:O?Xtm(this,O):[],Fz:S,bf:M,qp:$v(h.split(";")[0]),mz:h.split(";")[1]||""};var f;U={gvprpro:"v",mt:U.toFixed(3),acpns:((f=h.jW)==null?void 0:f.join("_"))|| "none",abid:O};this.ya(U);return h}; g.y.Lj=function(U,O,M,S,p,h){var J=Number(M.split(";")[0]),f=S===3;U=Alg(this,U,O,S,M,h);this.ya({gdu:1,seg:O,itag:J,pb:""+!!U});if(!U)return O1(this,O,f),null;U.locations||(U.locations=new Map);if(!U.locations.has(J)){var F,l;h=(F=U.videoData.getPlayerResponse())==null?void 0:(l=F.streamingData)==null?void 0:l.adaptiveFormats;if(!h)return this.ya({gdu:"noadpfmts",seg:O,itag:J}),O1(this,O,f),null;F=h.find(function(e){return e.itag===J}); if(!F||!F.url){var G=U.videoData.videoId;U=[];var T=g.D(h);for(S=T.next();!S.done;S=T.next())U.push(S.value.itag);this.ya({gdu:"nofmt",seg:O,vid:G,itag:J,fullitag:M,itags:U.join(",")});O1(this,O,f);return null}U.locations.set(J,new g.bJ(F.url,!0))}h=U.locations.get(J);if(!h)return this.ya({gdu:"nourl",seg:O,itag:J}),O1(this,O,f),null;h=new d2(h);this.Oj&&(h.get("dvc")?this.ya({dvc:h.get("dvc")||""}):h.set("dvc","webm"));(S=(T=this.YM(O-1,S,p))==null?void 0:T.NQ)&&h.set("daistate",S);U.fg&&O>=U.fg&& h.set("skipsq",""+U.fg);(T=this.playback.getVideoData().clientPlaybackNonce)&&h.set("cpn",T);T=[];U.fm&&(T=Xtm(this,U.fm),T.length>0&&h.set("acpns",T.join(",")));f||this.Y.set(O,U);f=null;f=h.get("aids");S=h.kI();(S==null?void 0:S.length)>2048&&this.ya({urltoolong:1,sq:O,itag:J,len:S.length});this.w7&&(S&&(h=U.cpn,p=U.fm,ifw(this,h,p),p&&!this.FI.has(p)&&(h=upe(this,h,p),F=qU5(this,p),this.ya({iofa:h}),this.ya({noawnzd:F-h}),this.ya({acpns:T.join("."),aids:(G=f)==null?void 0:G.replace(/,/g,".")}), this.FI.add(p))),this.ya({gdu:"v",seg:O,itag:M,ast:U.q0.toFixed(3),alen:U.durationMs.toFixed(3),acpn:U.cpn,avid:U.videoData.videoId}));return S}; g.y.QX=function(U,O,M){var S=U1(this,U,M);return(S=S?(S.q0+S.durationMs)/1E3:0)&&O>S?(this.M7(U,M,!0),this.playback.seekTo(S),!0):!1}; g.y.M7=function(U,O,M){M=M===void 0?!1:M;var S=U1(this,U,O);if(S){var p=void 0,h=S.fm;if(h){this.ya({skipadonsq:O,sts:M,abid:h,acpn:S.cpn,avid:S.videoData.videoId});M=this.D.get(h);if(!M)return;M=g.D(M);for(h=M.next();!h.done;h=M.next())h=h.value,h.fg=O,h.HW=U,h.q0>S.q0&&(p=h)}this.X=S.cpn;nIm(this);U=this.playback.getCurrentTime();V3(this,S,p,U,U,!1,!0)}}; g.y.HI=function(){for(var U=g.D(this.G),O=U.next();!O.done;O=U.next())O=O.value,O.fg=NaN,O.HW=NaN;nIm(this);this.ya({rsac:"resetSkipAd",sac:this.X});this.X=""}; g.y.YM=function(U,O,M){return this.Ka.YM(U,O,M)}; g.y.jA=M1(63); g.y.pF=function(U,O,M,S,p,h,J,f,F){S.length>0&&this.ya({onssinfo:1,sq:U,start:O.toFixed(3),cpns:S.join(","),ds:p.join(","),isVideo:J?1:0});F&&this.Ka.pF(U,J,f,F);if(J){if(S.length&&p.length)for(this.X&&this.X===S[0]&&this.ya({skipfail:1,sq:U,acpn:this.X}),U=O+this.H7(),J=0;J0&&(this.GA=0,this.M0="",this.api.publish("serverstitchedvideochange"));this.playback.IN(M,S);return!0}; g.y.Xm=function(){this.ya({rstdaist:1});this.Ka.clearAll()}; g.y.Z6=function(U){var O;if(U!==((O=this.ol)==null?void 0:O.identifier))this.ya({ignorenoad:U});else{this.Qa.add(U);this.ya({noadrcv:U});var M;((M=this.ol)==null?void 0:M.identifier)===U&&as(this)}}; g.y.rh=function(){return this.GA}; g.y.RB=function(){return this.M0}; g.y.W2=function(U){if(this.Ja)return this.ya({dai_disabled:U.event}),!1;if(this.playback.getVideoData().Js()&&(this.gG.T("html5_lifa_no_gab_on_predict_start")&&U.event==="predictStart"||U.event==="continue"||U.event==="stop"))return this.ya({cuepoint_skipped:U.event}),!1;var O=Bx(this.api.nE());if(O=O?O.W2(U):!1)this.yP={uj:U.identifier,E6:U.startSecs};else if(this.yP&&this.yP.uj===U.identifier&&U.startSecs>this.yP.E6+1){this.ya({cueStChg:U.identifier,oldSt:this.yP.E6.toFixed(3),newSt:U.startSecs.toFixed(3), abid:this.yP.ea});if(this.yP.ea){var M=U.startSecs-this.yP.E6,S=this.D.get(this.yP.ea);if(S){S=g.D(S);for(var p=S.next();!p.done;p=S.next())p=p.value,p.q0>=0&&(p.q0+=M*1E3,this.gG.T("html5_ssdai_update_timeline_on_start_time_change")&&(p.vT+=M*1E3),this.ya({newApEt:p.q0,newApPrt:p.vT,acpn:p.cpn}))}}this.yP.E6=U.startSecs}return O}; g.y.I5=function(U){return this.Ja?!1:!!I3W(this,U)}; g.y.PW=function(U){var O=this;this.playback.pauseVideo();var M=this.playback.getCurrentTime(),S=this.gG.T("html5_lifa_reset_segment_index_on_skip"),p=S?M+this.playback.H7():M,h=this.B.get(this.M0),J=this.V.get(this.M0);if(h){this.X=this.M0;this.Z=!1;h.OO=!0;M=this.playback.getCurrentTime();this.U={Tk:J,isAd:!0,iO:!1,iU:M,adCpn:this.M0,SD:h,nKL:U};this.playback.s_(h,this.x_(),M,this.playback.getCurrentTime(),!1,!0,U,(0,g.nM)());S&&this.playback.Ux();if(J==null?0:J.start)this.sA=M*1E3-J.start;this.Y.clear(); this.playback.Mo();this.M0=this.x_().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(p,{seekSource:89,uH:"lifa_skip"});this.playback.playVideo();this.BA||(this.BA=this.events.j(this.api,"progresssync",function(){O.SJ(h)})); return!0}this.ya({skipFail:M},!0);return!1}; g.y.ya=function(U,O){((O===void 0?0:O)||this.w7||this.playback.getVideoData().Js())&&this.playback.al("sdai",U)}; var BKw=0;g.c(Zfw,g.Ko);g.y=Zfw.prototype;g.y.onCueRangeEnter=function(U){var O=U.getId();this.playback.al("sdai",{oncueEnter:1,cpn:O,start:U.start,end:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.aO()||0).toFixed(3)});U=this.B.get(O);this.playback.al("sdai",{enterAdCueRange:1});O=this.M0||this.x_().cpn;var M;O=(M=this.B.get(O))!=null?M:this.x_();U&&(M={hC:O,mp:U,Lc:this.playback.getCurrentTime()},this.O4(M))}; g.y.onCueRangeExit=function(U){var O=this.playback.getCurrentTime()*1E3;U=U.getId();for(var M=g.D(this.V.values()),S=M.next();!S.done;S=M.next())if(S=S.value,S.getId()!==U&&O>=S.start&&O<=S.end)return;if(O=this.B.get(U))O={hC:O,mp:this.x_(),Lc:this.playback.getCurrentTime()},this.O4(O)}; g.y.O4=function(U){this.X||this.Z||this.QF(this.M0);var O=U.hC,M=U.mp;if(M.cpn===this.M0)this.playback.al("sdai",{igtranssame:1,enter:M.cpn,exit:O.cpn});else{var S=this.Z,p=!!this.X;this.X="";var h=U.Lc,J=O.playerType===2?O.q0/1E3+O.videoData.Yy:this.x_().videoData.Yy;if(O.playerType===2&&M.playerType===2)p?this.playback.al("sdai",{igtransskip:1,enter:M.cpn,exit:O.cpn,seek:S,skip:this.X}):V3(this,O,M,J,h,S,p);else{this.M0=M.cpn;U=U.GOY;if(O.playerType===1&&M.playerType===2){this.sA=0;Lo(this,M);var f= EA(this,"c2a",M);this.playback.al("sdai",f);this.GA++}else if(O.playerType===2&&M.playerType===1){f=O.videoData.Yy;this.api.publish("serverstitchedvideochange");var F=EA(this,"a2c");this.playback.al("sdai",F);this.GA=0;this.sA=f*1E3;this.sX=J;a3w(this,O.fm)}this.playback.s_(O,M,J,h,S,p,U)}this.X="";this.Z=!1}}; g.y.seekTo=function(U,O,M,S){U=U===void 0?0:U;O=O===void 0?{}:O;M=M===void 0?!1:M;S=S===void 0?null:S;this.QF(this.M0);this.playback.getVideoData().Js()&&U<=this.sX?(this.playback.pauseVideo(),this.sX=this.sA=0,KY5(this,U)):g.Ko.prototype.seekTo.call(this,U,O,M,S)}; g.y.M7=function(U,O,M){M=M===void 0?!1:M;var S=U1(this,U,O);if(S){var p=void 0,h=S.fm;if(h){this.playback.al("sdai",{skipadonsq:O,sts:M,abid:h,acpn:S.cpn,avid:S.videoData.videoId});M=this.D.get(h);if(!M)return;M=g.D(M);for(h=M.next();!h.done;h=M.next())h=h.value,h.fg=O,h.HW=U,h.q0>S.q0&&(p=h)}this.QF(this.M0);this.X=S.cpn;nIm(this);U=this.playback.getCurrentTime();V3(this,S,p,U,U,!1,!0)}}; g.y.pF=function(U,O,M,S,p,h,J,f,F){S.length>0&&this.playback.al("sdai",{onssinfo:1,sq:U,start:O.toFixed(3),cpns:S.join(","),ds:p.join(","),isVideo:J?1:0});F&&this.Ka.pF(U,J,f,F);if(J){if(S.length&&p.length)for(this.X&&this.X===S[0]&&this.playback.al("sdai",{skipfail:1,sq:U,acpn:this.X}),U=O+this.H7(),M=0;M=0&&this.G.splice(U,1)}; g.y.QF=function(U){var O=U||this.M0,M=this.B.get(O);if(M){U=M.videoData;var S,p;O=M.hK||((p=(S=this.V.get(O))==null?void 0:S.start)!=null?p:0)/1E3;S=this.playback.getCurrentTime()-O;U.Yy=S>0?S:0}else this.x_().videoData.Yy=this.playback.getCurrentTime()};g.c(oI5,g.C);g.y=oI5.prototype; g.y.fv=function(U,O){O=O===void 0?"":O;if(this.timeline.B===O)return!0;var M=this.timeline.U,S=M==null?void 0:M.getVideoData();if(!M||!S)return this.api.al("ssap",{htsm:M?0:1}),!1;if(this.api.T("html5_ssap_clear_timeline_before_update")){var p=this.timeline,h;(h=p.U)==null||cli(h);p.V.clear()}p=uF(M);var J=!1;h=[];var f=new Map;M=[];var F=[],l=0,G=0,T=0,e=[];U=g.D(U);for(var H=U.next();!H.done;H=U.next())a:{var z=void 0,W=void 0,v=H.value,x=v.clipId;if(x){if(v.KX){T=v.KX.mC||0;H=v.KX.Lw||1;var t= Number(((v.KX.uR||0)/(v.KX.fY||1)*1E3).toFixed(0));T=H=t+Number((T/H*1E3).toFixed(0))}else H=t=T,this.kA.has(x)||this.p9.add(x);var m=(W=f.get(x))!=null?W:0,P=this.timeline.B;W=!1;if(P&&this.api.T("html5_ssap_clear_timeline_before_update")){if(P=this.I2.get(x))P.start=t,P.end=H,W=!0}else{if(P){var u=x;P=t;var w=H,E=m,Sm=aW(this.timeline,u);if(Sm!=null&&Sm.length){E=f){this.s0.set(U,M);Ome(this,U,O);this.WW.set(U,(0,g.nM)());if(M=this.I2.get(O))for(M=M.getId().split(","),M=g.D(M),J=M.next();!J.done;J=M.next())J=J.value,J!==O&&this.p9.has(J)&&(this.p9.delete(J),this.kA.add(J));this.QF();O=h.dK()/1E3;h=void 0;M=(h=g.DF(this.api.J().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?h:0;this.api.T("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(O+ M/1E3,{KI:!0}):this.playback.seekTo(O+M/1E3);this.zE?(this.api.al("ssap",{gpfreload:this.M0}),VCe(this)||(this.zE=!1),this.playback.Mo(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"))):S&&this.playback.Mo(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"));p&&this.api.playVideo(1,this.api.T("html5_ssap_keep_media_on_finish_segment"));return[U]}}}return[]}; g.y.QA=function(){var U=this.timeline.U;if(!U)return 0;var O=U.Hi();U=g.D(U.U.values());for(var M=U.next();!M.done;M=U.next()){M=g.D(M.value);for(var S=M.next();!S.done;S=M.next())S=S.value,S.Hi()>O&&(O=S.Hi())}return O/1E3}; g.y.GZ=function(){var U=this.playback.getCurrentTime()*1E3;var O=SmJ(this,U);if(!O){var M=aW(this.timeline,this.M0);if(M){M=g.D(M);for(var S=M.next();!S.done;S=M.next())S=S.value,S.dK()>U&&(O=S)}}return O&&O.getType()===1?O.dK()/1E3:0}; g.y.getVideoData=function(U){if(U===2&&!this.Zy()){if(this.U8&&this.eS.has(this.U8))return this.eS.get(this.U8);this.api.al("ssap",{lpanf:""+uj(this)});return null}return J$m(this)}; g.y.Zy=function(){var U=aW(this.timeline,this.M0);return(U==null?0:U.length)?U[0].getType()===2:!1}; g.y.lx=function(){var U=aW(this.timeline,this.M0);return(U==null?0:U.length)?U[0].V:!1}; g.y.seekTo=function(U,O){O=O===void 0?{}:O;var M=p0y(this,this.playback.getCurrentTime());this.playback.seekTo(U+M/1E3,O)}; g.y.XM=function(U,O,M){return new g.ll(U,O,{id:M,namespace:"ssap",priority:9})}; g.y.onCueRangeEnter=function(U){if(!this.DY.has(U.getId())){this.api.al("ssap",{oce:1,cpn:U.getId(),st:U.start,et:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.aO()||0).toFixed(3)});for(var O=U.getId().split(","),M=0;MM+1)for(S=M+1;S0?O:0}; g.y.Jll=function(U){var O=this.eS.get(this.M0);O&&this.playback.w6(U-O.sX/1E3,O.lengthSeconds,this.M0)}; g.y.VP=function(){this.api.J().PV()&&this.api.al("ssap",{di:""+this.M0,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.eS.clear();this.p9.clear();this.DY.clear();this.s0.clear();this.WW.clear();this.kA.clear();this.h1=[];LYe(this);this.Zo="";g.CE(this.events);g.C.prototype.VP.call(this)};g.c(le4,g.C);g.y=le4.prototype;g.y.onCueRangeEnter=function(U){if(this.U===this.app.jc()){var O=this.G.get(U);O?Hm4(this,O.target,O.dP,U):this.iH("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:U.toString()})}else if(O=this.V.find(function(p){return p.Fj.Tk===U})){var M=O.Fj,S=M.target; M=M.dP;S?Hm4(this,S,M,U):eew(this,O.vT,M,U)}}; g.y.onQueuedVideoLoaded=function(){var U=this.D;hn(this);if(U){if(!pw(this,U)){var O=this.app.jc();this.iH("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:O==null?void 0:O.getVideoData().clientPlaybackNonce,ccpn:""+U.playerVars.cpn})}this.app.jc().addCueRange(U.Fj.Tk)}}; g.y.seekTo=function(U,O,M,S){U=U===void 0?0:U;O=O===void 0?{}:O;S=S===void 0?null:S;if(M===void 0?0:M)F5U(this,U,O);else{M=this.app.jc()||null;var p=M===this.X?this.C:null;Jn(this,!1);this.yP=U;this.Z=O;S!=null&&this.Y.start(S);M&&(this.C=p||M.getPlayerState(),M.rM(),this.X=M)}}; g.y.OH=function(U){g.Nc(U,128)&&W5q(this)}; g.y.isManifestless=function(){return zS(this.U.getVideoData())}; g.y.VP=function(){Jn(this,!1);vmU(this);g.C.prototype.VP.call(this)}; g.y.iH=function(U,O){this.U.iH(new Ii(U,O))}; var G7m=0;var B$5="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.c(FG,g.C);g.y=FG.prototype;g.y.get=function(U){yQ(this);var O=this.data.find(function(M){return M.key===U}); return O?O.value:null}; g.y.set=function(U,O,M){this.remove(U,!0);yQ(this);U={key:U,value:O,expire:Infinity};M&&isFinite(M)&&(M*=1E3,U.expire=(0,g.nM)()+M);for(this.data.push(U);this.data.length>this.B;)(M=this.data.shift())&&lp(this,M,!0);fw(this)}; g.y.remove=function(U,O){O=O===void 0?!1:O;var M=this.data.find(function(S){return S.key===U}); M&&(lp(this,M,O),g.sV(this.data,function(S){return S.key===U}),fw(this))}; g.y.removeAll=function(U){if(U=U===void 0?!1:U)for(var O=g.D(this.data),M=O.next();!M.done;M=O.next())lp(this,M.value,U);this.data=[];fw(this)}; g.y.VP=function(){var U=this;g.C.prototype.VP.call(this);this.data.forEach(function(O){lp(U,O,!0)}); this.data=[]};g.c(Gi,g.C);Gi.prototype.Z4=function(U){if(U)return this.V.get(U)}; Gi.prototype.VP=function(){this.U.removeAll();this.V.removeAll();g.C.prototype.VP.call(this)};g.scD=xq(function(){var U=window.AudioContext||window.webkitAudioContext;try{return new U}catch(O){return O.name}});g.c(Ymw,g.r);g.y=Ymw.prototype;g.y.LX=function(){g.Gn(this.element,g.m4.apply(0,arguments))}; g.y.Cf=function(){this.Uj&&(this.Uj.removeEventListener("focus",this.fb),g.Hd(this.Uj),this.Uj=null)}; g.y.O2=function(){this.GY();var U=this.app.J();U.DO||this.LX("tag-pool-enabled");U.C&&this.LX(g.oy.HOUSE_BRAND);U.playerStyle==="gvn"&&(this.LX("ytp-gvn"),this.element.style.backgroundColor="transparent");U.Oj&&(this.yZ=g.TK("yt-dom-content-change",this.resize,this));this.j(window,"orientationchange",this.resize,this);this.j(window,"resize",this.resize,this)}; g.y.fP=function(U){g.uk(this.app.J());this.Hv=!U;$p(this)}; g.y.resize=function(){if(this.Uj){var U=this.tL();if(!U.isEmpty()){var O=!g.t5(U,this.lc.getSize()),M=nme(this);O&&(this.lc.width=U.width,this.lc.height=U.height);U=this.app.J();(M||O||U.Oj)&&this.app.md.publish("resize",this.getPlayerSize())}}}; g.y.Fo=function(U,O){this.updateVideoData(O)}; g.y.updateVideoData=function(U){if(this.Uj){var O=this.app.J();gI&&(this.Uj.setAttribute("x-webkit-airplay","allow"),U.title?this.Uj.setAttribute("title",U.title):this.Uj.removeAttribute("title"));this.Uj.setAttribute("controlslist","nodownload");O.j_&&U.videoId&&(this.Uj.poster=U.dL("default.jpg"))}O=g.R6(U,"yt:bgcolor");this.nj.style.backgroundColor=O?O:"";this.EB=jQ(g.R6(U,"yt:stretch"));this.Yo=jQ(g.R6(U,"yt:crop"),!0);g.ea(this.element,"ytp-dni",U.cJ);this.resize()}; g.y.setGlobalCrop=function(U){this.q1=jQ(U,!0);this.resize()}; g.y.setCenterCrop=function(U){this.Os=U;this.resize()}; g.y.n0=function(){}; g.y.getPlayerSize=function(){var U=this.app.J(),O=this.app.md.isFullscreen(),M=U.externalFullscreen&&g.Pn(U);if(O&&wa()&&!M)return new g.R1(window.outerWidth,window.outerHeight);M=!isNaN(this.cQ.width)&&!isNaN(this.cQ.height);var S=this.app.J().T("kevlar_player_enable_squeezeback_fullscreen_sizing");if(O&&!M&&S)return new g.R1(this.element.clientWidth,this.element.clientHeight);if(O||U.YY){if(window.matchMedia){U="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.wj&&this.wj.media=== U||(this.wj=window.matchMedia(U));var p=this.wj&&this.wj.matches}if(p)return new g.R1(window.innerWidth,window.innerHeight)}else if(M)return this.cQ.clone();return new g.R1(this.element.clientWidth,this.element.clientHeight)}; g.y.tL=function(){var U=this.app.J().T("enable_desktop_player_underlay"),O=this.getPlayerSize(),M=g.DF(this.app.J().experiments,"player_underlay_min_player_width");return U&&this.t$&&O.width>M?(U=g.DF(this.app.J().experiments,"player_underlay_video_width_fraction"),new g.R1(Math.min(O.height*this.getVideoAspectRatio(),O.width*U),Math.min(O.height,O.width*U/this.getVideoAspectRatio()))):O}; g.y.getVideoAspectRatio=function(){return isNaN(this.EB)?A$1(this):this.EB}; g.y.getVideoContentRect=function(U){var O=this.tL();U=Iew(this,O,this.getVideoAspectRatio(),U);return new g.l4((O.width-U.width)/2,(O.height-U.height)/2,U.width,U.height)}; g.y.u8=function(U){this.t$=U;this.resize()}; g.y.d_=function(){return this.Lh}; g.y.onMutedAutoplayChange=function(){$p(this)}; g.y.setInternalSize=function(U){g.t5(this.cQ,U)||(this.cQ=U,this.resize())}; g.y.VP=function(){this.yZ&&g.j0(this.yZ);this.Cf();g.r.prototype.VP.call(this)};g.y=Qky.prototype;g.y.click=function(U,O){this.elements.has(U);this.U.has(U);var M=g.n5();M&&U.visualElement&&g.Tz(M,U.visualElement,O)}; g.y.createClientVe=function(U,O,M,S){var p=this;S=S===void 0?!1:S;this.elements.has(U);this.elements.add(U);M=zve(M);U.visualElement=M;var h=g.n5(),J=g.PG();h&&J&&(g.R0("combine_ve_grafts")?Iy(mM(),M,J):g.p4(g.MH)(void 0,h,J,M));O.addOnDisposeCallback(function(){p.elements.has(U)&&p.destroyVe(U)}); S&&this.V.add(U)}; g.y.createServerVe=function(U,O,M){var S=this;M=M===void 0?!1:M;this.elements.has(U);this.elements.add(U);O.addOnDisposeCallback(function(){S.destroyVe(U)}); M&&this.V.add(U)}; g.y.destroyVe=function(U){this.elements.has(U);this.elements.delete(U);this.B.delete(U);this.U.delete(U);this.V.delete(U)}; g.y.Jh=function(U,O){this.clientPlaybackNonce!==O&&(this.clientPlaybackNonce=O,AW(mM(),U),C7J(this))}; g.y.setTrackingParams=function(U,O){this.elements.has(U);O&&(U.visualElement=g.At(O))}; g.y.ri=function(U,O,M){this.elements.has(U);O?this.U.add(U):this.U.delete(U);var S=g.n5(),p=U.visualElement;this.V.has(U)?S&&p&&(O?g.Gz(S,[p]):g.$Q(S,[p])):O&&!this.B.has(U)&&(S&&p&&g.lZ(S,p,void 0,M),this.B.add(U))}; g.y.hasVe=function(U){return this.elements.has(U)};g.c(g.jt,g.C);g.jt.create=function(U,O,M,S){try{var p=typeof U==="string"?U:"player"+g.wW(U),h=Nr[p];if(h){try{h.dispose()}catch(f){g.K5(f)}Nr[p]=null}var J=new g.jt(U,O,M,S);J.addOnDisposeCallback(function(){Nr[p]=null;J.Mp&&J.Mp()}); return Nr[p]=J}catch(f){throw g.K5(f),(f&&f instanceof Error?f:Error(String(f))).stack;}}; g.y=g.jt.prototype;g.y.Dt=function(){return this.visibility}; g.y.u9=function(U){var O=this.Va();if(U!==O){U.getVideoData().autonavState=O.getVideoData().autonavState;O.i_(this.Cv,this);var M=O.getPlaybackRate();O.dispose();this.Ej.u9(U);U.setPlaybackRate(M);U.b7(this.Cv,this);r$5(this)}}; g.y.hL=function(){this.UB||(this.UB=g.TE(EE(),$My()));return this.UB}; g.y.Cf=function(U){if(this.mediaElement){this.dM&&(this.events.bH(this.dM),this.dM=null);g.CE(this.hv);var O=this.jc();O&&O.Cf(!0,!1,U);this.template.Cf();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.pP()}catch(M){g.rz(M)}this.mediaElement=null}}; g.y.vR=function(U,O,M){M=M===void 0?!1:M;if(U!==this.jc()){this.logger.debug(function(){return"start set presenting player, type "+U.getPlayerType()+", vid "+U.getVideoData().videoId}); var S=null,p=this.jc();M||(S=p.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),vx(this.yM,3),Cw(this,"cuerangesremoved",p.sH()),this.Vq&&!U.isGapless()&&p.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),M=U.vU()&&p.vU(),this.d7.mN("iv_s"),sMe(this,M));U.getPlayerType()===1&&this.u9(U);OYi(this,U);this.Ej.vR(U);this.mediaElement&&U.setMediaElement(this.mediaElement);U.b7(this.SK,this);U.H1()?tUe(this,"setPresenting",!1):(this.Fo("newdata",U,U.getVideoData()), S&&!g.jz(S,U.getPlayerState())&&this.Lp(new g.d4(U.getPlayerState(),S)),O=O&&this.T("html5_player_preload_ad_fix")&&U.getPlayerType()===1,U.PL()&&!O&&this.Fo("dataloaded",U,U.getVideoData()),(O=(O=U.getVideoData().V)&&O.video)&&this.md.Te("onPlaybackQualityChange",O.quality),Cw(this,"cuerangesadded",U.sH()),O=U.getPlayerState(),g.a(O,2)?Udw(this):g.a(O,8)?U.playVideo():U.Of()&&U.pauseVideo(),O=this.Va(),U.getPlayerType()===2&&(U.getVideoData().CZ=O.getVideoData().clientPlaybackNonce),U.getPlayerType()!== 2||this.gD()||(S=U.getVideoData(),O.Bo(S.clientPlaybackNonce,S.WV||"",S.breakType||0,S.gs,S.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.y.Pu=function(){if(this.Va()!==this.jc()){var U=this.jc();this.logger.debug(function(){return"release presenting player, type "+(U==null?void 0:U.getPlayerType())+", vid "+(U==null?void 0:U.getVideoData().videoId)}); this.vR(this.Va())}}; g.y.rk=function(){return this.Ej}; g.y.yr=function(U){return this.Ej.yr(U)}; g.y.Va=function(){return this.Ej.Va()}; g.y.jc=function(){return this.Ej.jc()}; g.y.MY=M1(50);g.y.wBg=function(){dY(this)||(this.logger.debug("application playback ready"),this.tB(5))}; g.y.OeL=function(){if(!dY(this)){this.logger.debug("playback ready");Blq(this);var U=this.jc(),O=U.getPlayerState();U.Of()?this.pauseVideo():O.isOrWillBePlaying()&&this.playVideo()}}; g.y.canPlayType=function(U){return CP(U)}; g.y.J=function(){return this.gG}; g.y.getVideoData=function(){return this.jc().getVideoData()}; g.y.sV=M1(19);g.y.eY=function(){return this.Va().getVideoData()}; g.y.getVideoLoadedFraction=function(U){return(U=this.yr(U))?U.getVideoLoadedFraction():this.Ej.U.getVideoLoadedFraction()}; g.y.g7=function(){return this.template}; g.y.nE=function(){return this.yM}; g.y.f6=function(){return this.d7}; g.y.eB=function(U){var O=this.yr(1);O&&O.u_(U)}; g.y.B3=function(){var U=this.yM.B3();this.md.publish("videoStatsPingCreated",U);return U}; g.y.getVolume=function(){return Math.round(this.md.getVolume())}; g.y.isMuted=function(){return this.md.isMuted()}; g.y.D7=function(){if(this.Va()===this.jc()&&this.bM)return this.bM.postId}; g.y.SpP=function(){var U=this;this.T("use_rta_for_player")||(g.PF(this.gG)?g.Fy(this.gG,g.Es(this.getVideoData())).then(function(O){Ld(EE(),O);bHU(U.getVideoData(),U.gG,U.hL())}):bHU(this.getVideoData(),this.gG,this.hL()))}; g.y.lq=function(U){this.md.publish("poTokenVideoBindingChange",U)}; g.y.xG=function(U){this.md.publish("d6de4videobindingchange",U)}; g.y.ow=function(){this.dA&&this.dA.ow()}; g.y.y4=function(U){this.dA=U}; g.y.NR=function(U){if(U===1){this.d7.tick("vr");var O=this.jc();O.ai();uxw(this.d7,O.getVideoData(),vz5(this));xhy(this.yM)}O=this.gG;if(JI(O)&&O.D||g.ik(O)){var M,S;(((S=(M=this.jc())==null?void 0:M.getVideoData())==null?0:S.enableServerStitchedDai)||!this.gD())&&this.md.Te("onAdStateChange",U)}}; g.y.setLoopVideo=function(U){var O=this.jc();O===this.Va()&&O.oo()!==U&&(O.setLoop(U),this.md.ZQ("onLoopChange",U))}; g.y.getLoopVideo=function(){return this.jc().oo()}; g.y.setLoopRange=function(U){var O=!1;!!this.bM!==!!U?O=!0:this.bM&&U&&(O=this.bM.startTimeMs!==U.startTimeMs||this.bM.endTimeMs!==U.endTimeMs||this.bM.postId!==U.postId||this.bM.type!==U.type);if(O){(O=this.jc())&&FX(O.getVideoData())&&O.al("slr",{et:(U==null?void 0:U.endTimeMs)||-1});O=this.Va();O.Le("applooprange");if(U){var M=new g.ll(U.startTimeMs,U.endTimeMs,{id:"looprange",namespace:"applooprange"});O.addCueRange(M)}else{this.eY().clipConfig=void 0;var S;((M=this.bM)==null?void 0:M.type)!== "repeatChapter"||isNaN(Number((S=this.bM)==null?void 0:S.loopCount))||(M={loopCount:String(this.bM.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.HX("repeatChapterLoopEvent",M))}this.bM=U;this.md.ZQ("onLoopRangeChange",U||void 0);this.Va()===this.jc()&&(this.Q_(),O.Fn())}}; g.y.getLoopRange=function(){return this.bM}; g.y.Q_=function(){var U="",O=this.Va();this.bM?O!==this.jc()?U="pnea":fym(this,O.getCurrentTime())&&(this.bM.loopCount=0,U="ilr"):U="nlr";var M=this.jc();if(M&&FX(M.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var S,p;M.al("slrre",{rej:U,ct:O.getCurrentTime(),lst:(S=this.bM)==null?void 0:S.startTimeMs,let:(p=this.bM)==null?void 0:p.endTimeMs})}else M.al("slrre",{});U||Gpy(this)}; g.y.setPlaybackRate=function(U,O){if(!isNaN(U)){U=VqJ(this,U);var M=this.Va();M.getPlaybackRate()!==U&&(M.setPlaybackRate(U),O&&!this.gG.X&&g.iC("yt-player-playback-rate",U),this.md.Te("onPlaybackRateChange",U))}}; g.y.getCurrentTime=function(U,O,M){O=O===void 0?!0:O;if(this.getPresentingPlayerType()===3)return this.Ej.ZF.getCurrentTime();var S=U===2&&this.getVideoData().enableServerStitchedDai,p=g.Os(this.getVideoData()),h=null;S||p?h=this.jc():h=this.yr(U);if(!h)return this.Ej.U.getCurrentTime();if(p&&this.vV)return U=this.vV,h=h.getCurrentTime(),M?h=gY(U,M):(M=p0y(U,h),h-=M/1E3),h;if(O){if(S&&this.JR&&(M=this.JR.sA/1E3,M!==0))return M;h=Da(this,h);return Yp(this,h.getCurrentTime(),h)}S&&this.JR?(M=this.JR, h=h.getCurrentTime(),h=(M=bf5(M,h*1E3))?h-M.start/1E3:h):h=h.getCurrentTime();return h}; g.y.Kt=function(){var U=this.yr();if(!U)return this.Ej.U.Kt();U=Da(this,U);return Yp(this,U.Kt(),U)}; g.y.getDuration=function(U,O){O=O===void 0?!0:O;var M=this.getVideoData(),S=U===2&&M.enableServerStitchedDai,p=g.Os(M),h=null;S||p?h=this.jc():h=this.yr(U);if(!h)return this.Ej.U.getDuration();if(M.hasProgressBarBoundaries()&&!S&&!p){var J,f=Number((J=M.progressBarStartPosition)==null?void 0:J.utcTimeMillis),F;M=Number((F=M.progressBarEndPosition)==null?void 0:F.utcTimeMillis);if(!isNaN(f)&&!isNaN(M))return(M-f)/1E3}if(p&&this.vV)return O=hew(this.vV,this.vV.RB()),U===1&&O===0?h.getDuration():O;if(O)return h= cw(this,h),Yp(this,h.getDuration(),h);S&&this.JR?(U=this.JR,h=h.getCurrentTime(),h=(h=R8w(U,h*1E3))?h.durationMs/1E3:0):h=h.getDuration();return h}; g.y.hR=function(U){var O=this.yr(U);return O?this.gD(O)?(O=cw(this,O),O.hR()-O.getCurrentTime()+this.getCurrentTime(U)):O.hR():this.Ej.U.hR()}; g.y.f_=function(){return this.oG}; g.y.addPlayerResponseForAssociation=function(U){this.vV&&this.vV.addPlayerResponseForAssociation(U)}; g.y.finishSegmentByCpn=function(U,O,M){return this.vV?this.vV.finishSegmentByCpn(U,O,M):[]}; g.y.O2=function(){this.template.O2();var U=this.md;U.state.element=this.template.element;var O=U.state.element,M;for(M in U.state.U)U.state.U.hasOwnProperty(M)&&(O[M]=U.state.U[M]);(U=nhm(this.template.element))&&this.events.j(this.template,U,this.onFullscreenChange)}; g.y.getDebugText=function(U){var O=this.Va().aT(U),M=this.jc(),S=this.Va();if(M&&M!==S){M=M.aT(U);S=g.D(Object.keys(M));for(var p=S.next();!p.done;p=S.next())p=p.value,O["ad"+p]=M[p];if(U){M=O;S={};if(p=gA(document,"movie_player"))S.bounds=p.getBoundingClientRect(),S["class"]=p.className;p={};var h=g.hN("video-ads");h?(Ayg(h,p),p.html=h.outerHTML):p.missing=1;h={};var J=g.hN("videoAdUiSkipContainer"),f=g.hN("ytp-ad-skip-button-container"),F=g.hN("ytp-skip-ad-button"),l=J||f||F;l?(Ayg(l,h),h.ima=J? 1:0,h.bulleit=f?1:0,h.component=F?1:0):h.missing=1;S=JSON.stringify({player:S,videoAds:p,skipButton:h});M.ad_skipBtnDbgInfo=S}}U&&this.mediaElement&&(O["0sz"]=""+(+Yv(this.mediaElement.getSize())===0),O.op=this.mediaElement.Mg("opacity"),M=this.mediaElement.Uf().y+this.mediaElement.getSize().height,O.yof=""+(+M<=0),O.dis=this.mediaElement.Mg("display"));U&&((U=(0,g.dy)())&&(O.gpu=U),(U=this.gG.playerStyle)&&(O.ps=U),this.gG.HA&&(O.webview=1));O.debug_playbackQuality=this.md.getPlaybackQuality(1); O.debug_date=(new Date).toString();O.origin=window.origin;O.timestamp=Date.now();delete O.uga;delete O.q;return JSON.stringify(O,null,2)}; g.y.getFeedbackProductData=function(){var U={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.J().experiments.experimentIds.join(", "),player_release:gW[17]},O=this.getPlayerStateObject().p6;O&&(U.player_error_code=O.errorCode,U.player_error_details=JSON.stringify(O.errorDetail));return U}; g.y.getPresentingPlayerType=function(U){if(this.appState===1)return 1;if(dY(this))return 3;var O;if(U&&((O=this.JR)==null?0:O.Zy(this.getCurrentTime())))return 2;var M;return g.Os(this.getVideoData())&&((M=this.vV)==null?0:M.Zy())?2:this.jc().getPlayerType()}; g.y.lx=function(){return g.Os(this.getVideoData())&&this.vV?this.vV.lx():!1}; g.y.getPlayerStateObject=function(U){return this.getPresentingPlayerType()===3?this.Ej.ZF.getPlayerState():this.yr(U).getPlayerState()}; g.y.getAppState=function(){return this.appState}; g.y.Lic=function(U){switch(U.type){case "loadedmetadata":this.BW.start();U=g.D(this.m$);for(var O=U.next();!O.done;O=U.next())O=O.value,Wge(this,O.id,O.Iay,O.G50,void 0,!1);this.m$=[];break;case "loadstart":this.d7.mN("gv");break;case "progress":case "timeupdate":H1(U.target.wL())>=2&&this.d7.mN("l2s");break;case "playing":g.pJ&&this.BW.start();if(g.PF(this.gG))U=!1;else{var M=this.jc();O=g.qi(this.nE());U=this.mediaElement.Mg("display")==="none"||Yv(this.mediaElement.getSize())===0;var S=Ti(this.template), p=M.getVideoData();M=g.a8(this.gG);p=lI(p);O=!S||O||M||p||this.gG.w7;U=U&&!O}U&&(U=this.jc(),U.Ap(),this.getVideoData().F9||(this.getVideoData().F9=1,this.mQ(),U.playVideo()))}}; g.y.uh0=function(U){this.md.aW("onLoadProgress",U)}; g.y.qXd=function(){this.md.publish("playbackstalledatstart")}; g.y.GkL=function(U,O){this.md.publish("sabrCaptionsDataLoaded",U,O)}; g.y.n5P=function(U){var O;(O=this.jc())==null||O.Yw(U)}; g.y.M5L=function(U){var O;(O=this.jc())==null||O.Ex(U)}; g.y.Hec=function(U){U=Da(this,this.jc());U=Yp(this,U.getCurrentTime(),U);this.md.Te("onVideoProgress",U);this.gG.qy&&zt5(this,this.visibility.PU())&&this.pauseVideo()}; g.y.M9Y=function(){this.md.Te("onAutoplayBlocked");var U,O=(U=this.jc())==null?void 0:U.getVideoData();O&&(O.Jp=!0);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.Pn(this.gG)&&(U={autoplayBrowserPolicy:kD(),autoplayIntended:wx(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.HX("embedsAutoplayStatusChanged",U))}; g.y.SXA=function(){this.md.publish("progresssync")}; g.y.dm0=function(){this.md.aW("onPlaybackPauseAtStart")}; g.y.ysg=function(U){if(this.getPresentingPlayerType()===1){g.Nc(U,1)&&!g.a(U.state,64)&&this.eY().isLivePlayback&&this.Va().isAtLiveHead()&&this.md.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Nc(U,2)){if(this.bM&&this.bM.endTimeMs>=(this.getDuration()-1)*1E3){Gpy(this);return}Udw(this)}if(g.a(U.state,128)){var O=U.state;this.cancelPlayback(5);O=O.p6;JSON.stringify({errorData:O,debugInfo:this.getDebugText(!0)});this.md.Te("onError",u$W(O.errorCode));this.md.aW("onDetailedError",{errorCode:O.errorCode, errorDetail:O.errorDetail,message:O.errorMessage,messageKey:O.PY,cpn:O.cpn});(0,g.nM)()-this.gG.mD>6048E5&&this.md.aW("onReloadRequired")}O={};if(U.state.isPlaying()&&!U.state.isBuffering()&&!k6("pbresume","ad_to_video")&&k6("_start","ad_to_video")){var M=this.getVideoData();O.clientPlaybackNonce=M.clientPlaybackNonce;M.videoId&&(O.videoId=M.videoId);g.Va(O,"ad_to_video");Ll("pbresume",void 0,"ad_to_video");xhy(this.yM)}this.md.publish("applicationplayerstatechange",U)}}; g.y.Lp=function(U){this.getPresentingPlayerType()!==3&&this.md.publish("presentingplayerstatechange",U)}; g.y.OH=function(U){zi(this,HI(U.state));g.a(U.state,1024)&&this.md.isMutedByMutedAutoplay()&&(bp(this,{muted:!1,volume:this.EH.volume},!1),Rj(this,!1))}; g.y.oZ0=function(U,O){U==="newdata"&&r$5(this);this.md.publish("applicationvideodatachange",U,O)}; g.y.XTy=function(U,O){this.md.aW("onPlaybackAudioChange",this.md.getAudioTrack().ZN.name);this.md.publish("internalaudioformatchange",this.md.getAudioTrack().ZN.id,O)}; g.y.PVA=function(U){var O=this.jc().getVideoData();U===O&&this.md.Te("onPlaybackQualityChange",U.V.video.quality)}; g.y.pj=function(){var U=this.Ej.B[2]||null;if(U){var O=U.getVideoData();U=U.EM();var M;(M=this.jc())==null||M.al("ssdai",{cleanaply:1,acpn:O==null?void 0:O.clientPlaybackNonce,avid:O.videoId,ccpn:U,sccpn:this.eY().clientPlaybackNonce===U?1:0,isDai:this.eY().enableServerStitchedDai?1:0});delete this.Ej.B[2]}}; g.y.mmc=function(U,O){this.Fo(U,this.jc(),O)}; g.y.Fo=function(U,O,M){this.logger.debug(function(){return"on video data change "+U+", player type "+O.getPlayerType()+", vid "+M.videoId}); this.gG.PV()&&O.al("vdc",{type:U,vid:M.videoId||"",cpn:M.clientPlaybackNonce||""});O===this.Va()&&(this.gG.cU=M.oauthToken);if(O===this.Va()){this.getVideoData().enableServerStitchedDai&&!this.JR?(this.Va().al("sdai",{initSstm:1}),this.JR=this.T("html5_enable_ssdai_transition_with_only_enter_cuerange")?new Zfw(this.md,this.gG,this.Va(),this):new g.Ko(this.md,this.gG,this.Va(),this)):!this.getVideoData().enableServerStitchedDai&&this.JR&&(this.JR.dispose(),this.JR=null);var S,p;!g.Os(this.getVideoData())|| U!=="newdata"&&U!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((S=this.oG.U)==null?void 0:(p=S.getVideoData())==null?void 0:p.clientPlaybackNonce)?!g.Os(this.getVideoData())&&this.vV&&(this.vV.dispose(),this.vV=null):(e8w(this.oG),this.T("html5_ssap_cleanup_ad_player_on_new_data")&&this.pj(),S=iF(this.oG,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.oG.enqueue(S,!0),qb(this.oG,0,this.getDuration(1)*1E3,[S]),Hf5(this.oG,this.getVideoData().clientPlaybackNonce,[S]),this.vV&&(this.vV.dispose(), this.vV=null),this.vV=new oI5(this.md,this.oG,this.Va()),this.Ej.Va().O_(this.vV))}if(U==="newdata")this.logger.debug("new video data, destroy modules"),vx(this.yM,2),this.md.publish("videoplayerreset",O);else{if(!this.mediaElement)return;U==="dataloaded"&&(this.Va()===this.jc()?(ER(M.X0,M.Ir),pze(this)):MU1(this));O.getPlayerType()===1&&(this.gG.TY&&mdw(this),this.getVideoData().isLivePlayback&&!this.gG.zv&&this.Bx("html5.unsupportedlive",2,"DEVICE_FALLBACK"),M.isLoaded()&&((kJ1(M)||this.getVideoData().B$)&& this.md.publish("legacyadtrackingpingchange",this.getVideoData()),M.hasProgressBarBoundaries()&&TlU(this)));this.md.publish("videodatachange",U,M,O.getPlayerType())}this.md.Te("onVideoDataChange",{type:U,playertype:O.getPlayerType()});this.Q_();(S=M.nz)?this.tX.Jh(S,M.clientPlaybackNonce):C7J(this.tX)}; g.y.Zm=function(){Nh(this,null);this.md.aW("onPlaylistUpdate")}; g.y.exg=function(U){delete this.Ju[U.getId()];this.Va().removeCueRange(U);a:{U=this.getVideoData();var O,M,S,p,h,J,f,F,l,G,T=((O=U.HA)==null?void 0:(M=O.contents)==null?void 0:(S=M.singleColumnWatchNextResults)==null?void 0:(p=S.autoplay)==null?void 0:(h=p.autoplay)==null?void 0:h.sets)||((J=U.HA)==null?void 0:(f=J.contents)==null?void 0:(F=f.twoColumnWatchNextResults)==null?void 0:(l=F.autoplay)==null?void 0:(G=l.autoplay)==null?void 0:G.sets);if(T)for(O=g.D(T),M=O.next();!M.done;M=O.next())if(M= M.value,p=S=void 0,M=M.autoplayVideo||((S=M.autoplayVideoRenderer)==null?void 0:(p=S.autoplayEndpointRenderer)==null?void 0:p.endpoint),S=g.q(M,g.pe),h=p=void 0,M!=null&&((p=S)==null?void 0:p.videoId)===U.videoId&&((h=S)==null?0:h.continuePlayback)){U=M;break a}U=null}(O=g.q(U,g.pe))&&this.md.ZQ("onPlayVideo",{sessionData:{autonav:"1",itct:U==null?void 0:U.clickTrackingParams},videoId:O.videoId,watchEndpoint:O})}; g.y.tB=function(U){var O=this;U!==this.appState&&(this.logger.debug(function(){return"app state change "+O.appState+" -> "+U}),U===2&&this.getPresentingPlayerType()===1&&(zi(this,-1),zi(this,5)),this.appState=U,this.md.publish("appstatechange",U))}; g.y.Bx=function(U,O,M,S,p){this.Va().k5(U,O,M,S,p)}; g.y.BR=function(U,O){this.Va().handleError(new Ii(U,O))}; g.y.isAtLiveHead=function(U,O){O=O===void 0?!1:O;var M=this.yr(U);if(!M)return this.Ej.U.isAtLiveHead();U=cw(this,M);M=Da(this,M);return U!==M?U.isAtLiveHead(Yp(this,M.getCurrentTime(),M),!0):U.isAtLiveHead(void 0,O)}; g.y.eU=function(){var U=this.yr();return U?cw(this,U).eU():this.Ej.U.eU()}; g.y.seekTo=function(U,O,M,S,p){O=O!==!1;if(S=this.yr(S))this.appState===2&&Bw(this),this.gD(S)?mI(this)?this.JR.seekTo(U,{seekSource:p},O,M):this.HB.seekTo(U,{seekSource:p},O,M):g.Os(this.getVideoData())&&this.vV?this.vV.seekTo(U,{Vx:!O,gZ:M,uH:"application",seekSource:p}):S.seekTo(U,{Vx:!O,gZ:M,uH:"application",seekSource:p})}; g.y.seekBy=function(U,O,M,S){this.seekTo(this.getCurrentTime()+U,O,M,S)}; g.y.Ihd=function(){this.md.Te("SEEK_COMPLETE")}; g.y.V9Z=function(){this.md.ZQ("onAbnormalityDetected")}; g.y.Dml=function(U){this.md.ZQ("onSnackbarMessage",U)}; g.y.THQ=function(U){var O=this.jc(),M=O.getVideoData();if(this.appState===1||this.appState===2)M.startSeconds=U;this.appState===2?g.a(O.getPlayerState(),512)||Bw(this):this.md.Te("SEEK_TO",U)}; g.y.vIY=function(){this.md.publish("airplayactivechange");this.gG.T("html5_external_airplay_events")&&this.md.aW("onAirPlayActiveChange",this.md.oA())}; g.y.BH0=function(){this.md.publish("airplayavailabilitychange");this.gG.T("html5_external_airplay_events")&&this.md.aW("onAirPlayAvailabilityChange",this.md.Dc())}; g.y.showAirplayPicker=function(){var U;(U=this.jc())==null||U.PC()}; g.y.nIc=function(){this.md.publish("beginseeking")}; g.y.QWn=function(){this.md.publish("endseeking")}; g.y.getStoryboardFormat=function(U){return(U=this.yr(U))?cw(this,U).getStoryboardFormat():this.Ej.U.getStoryboardFormat()}; g.y.AL=function(U){return(U=this.yr(U))?cw(this,U).getVideoData().AL():this.Ej.U.AL()}; g.y.gD=function(U){U=U||this.jc();var O=!1;if(U){U=U.getVideoData();if(mI(this))U=U===this.JR.playback.getVideoData();else a:if(O=this.HB,U===O.U.getVideoData()&&O.V.length)U=!0;else{O=g.D(O.V);for(var M=O.next();!M.done;M=O.next())if(U.xI===M.value.xI){U=!0;break a}U=!1}O=U}return O}; g.y.YJ=function(U,O,M,S,p,h,J,f){this.logger.debug(function(){return"Adding video to timeline id="+U.video_id+"\n lengthMs="+S+" enterTimeMs="+p}); var F="",l=mI(this),G;(G=this.jc())==null||G.al("appattl",{sstm:this.JR?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});F=l?x77(this.JR,U,O,M,S,p,h,J,f):jke(this.HB,U,M,S,p,h);this.logger.debug(function(){return"Video added to timeline id="+U.video_id+" timelinePlaybackId="+F}); return F}; g.y.CH=function(U,O,M,S,p,h,J,f){if(mI(this)){var F=x77(this.JR,U,O,M,S,p,h,J,f);this.logger.debug(function(){return"Remaining video added to timeline id="+U.video_id+" timelinePlaybackId="+F})}return""}; g.y.Z6=function(U){var O;(O=this.JR)==null||O.Z6(U)}; g.y.wu=function(U,O){U=U===void 0?-1:U;O=O===void 0?Infinity:O;mI(this)||vmU(this.HB,U,O)}; g.y.gx=function(U,O,M){if(mI(this)){var S=this.JR,p=S.WV.get(U);p?(M===void 0&&(M=p.vT),p.durationMs=O,p.vT=M):S.wc("Invalid_timelinePlaybackId_"+U+"_specified")}else{S=this.HB;p=null;for(var h=g.D(S.V),J=h.next();!J.done;J=h.next())if(J=J.value,J.xI===U){p=J;break}p?(M===void 0&&(M=p.vT),N$w(S,p,O,M)):Mh(S,"InvalidTimelinePlaybackId timelinePlaybackId="+U)}}; g.y.enqueueVideoByPlayerVars=function(U,O,M,S){M=M===void 0?Infinity:M;S=S===void 0?"":S;this.gD();U=new g.oC(this.gG,U);S&&(U.xI=S);jMe(this,U,O,M)}; g.y.queueNextVideo=function(U,O,M,S,p){M=M===void 0?NaN:M;U=this.preloadVideoByPlayerVars(U,O===void 0?1:O,M,S===void 0?"":S,p===void 0?"":p);O=this.jc();U&&O&&(this.T("html5_check_queue_on_data_loaded")?this.J().supportsGaplessShorts()&&O.getVideoData().Y&&(M=this.Mt,S=this.Vq.D,M.X!==U&&(M.V=O,M.X=U,M.B=1,M.U=U.getVideoData(),M.G=S,M.U.isLoaded()?M.C():M.U.subscribe("dataloaded",M.C,M))):(M=E8y(O,U,this.Vq.D),M!=null?(O.al("sgap",M),O.getVideoData().Y&&O.B1(!1)):(U=U.getVideoData(),O=this.Mt,O.U!== U&&(O.U=U,O.B=1,U.isLoaded()?O.D():O.U.subscribe("dataloaded",O.D,O)))))}; g.y.LZ=function(U,O,M,S){var p=this;M=M===void 0?0:M;S=S===void 0?0:S;var h=this.jc();h&&cw(this,h).b9();pte(this.Vq,U,O,M,S).then(function(){p.md.aW("onQueuedVideoLoaded")},function(){})}; g.y.uB=function(){return this.Vq.uB()}; g.y.Ac=function(U){var O=this.Vq.U;return O?O.Hn(U):!1}; g.y.clearQueue=function(U,O){U=U===void 0?!1:U;O=O===void 0?!1:O;this.logger.debug("Clearing queue");this.Vq.clearQueue(U,O)}; g.y.loadVideoByPlayerVars=function(U,O,M,S,p,h){O=O===void 0?1:O;var J=this.Va();if(O===2&&this.eY().enableServerStitchedDai&&J&&!J.nN())return J.al("lvonss",{vid:(U==null?void 0:U.videoId)||"",ptype:O}),!1;var f=!1;J=new g.oC(this.gG,U);J.reloadPlaybackParams=h;g.SZ(this.gG)&&!J.RL&&F9(this.d7);var F;h=this.d7;var l=(F=J.hZ)!=null?F:"";h.timerName=l;this.d7.bb("pl_i");this.T("web_player_early_cpn")&&J.clientPlaybackNonce&&this.d7.infoGel({clientPlaybackNonce:J.clientPlaybackNonce});if(Nwi(J).supportsVp9Encoding=== !1){var G;(G=this.jc())==null||G.al("noVp9",{})}if(this.J().supportsGaplessShorts()){F=Jlw(this.Vq,J,O);if(F==null){zi(this,-1);U=this.Vq;U.app.J().T("html5_gapless_new_slr")?tn(U.app,"gaplessshortslooprange"):U.app.setLoopRange(null);U.app.getVideoData().jR=!0;var T;(T=U.U)==null||T.X1();var e;(e=U.U)==null||e.hf();M={uH:"gapless_to_next_video",seekSource:60};S=g.DF(U.app.J().experiments,"html5_gapless_seek_offset");var H;(H=U.app.jc())==null||H.seekTo(h8J(U)+S,M);if(!U.app.getPlayerStateObject(O).isPlaying()){var z; (z=U.app.jc())==null||z.playVideo(!0)}if(U.app.J().T("html5_short_gapless_unlisten_after_seek")){var W;(W=U.app.jc())==null||W.Ia()}U.C();return!0}H=this.T("html5_shorts_gapless_preload_fallback");z=this.Vq.U;H&&z&&!z.GY()&&(W=z.getVideoData(),W=this.gG.T("html5_autonav_autoplay_in_preload_key")?Ij(this,O,W):Pw(this,O,W.videoId,W.xI),this.Ej.X.set(W,z,3600));this.Vq.clearQueue(H);var v;(v=this.jc())==null||v.al("sgap",{f:F})}if(p){for(;J.rP.length&&J.rP[0].isExpired();)J.rP.shift();f=J.rP.length- 1;f=f>0&&p.V(J.rP[f])&&p.V(J.rP[f-1]);J.rP.push(p)}M||(U&&KG7(U)?(U3(this.gG)&&!this.IF&&(U.fetch=0),Nh(this,U)):this.playlist&&Nh(this,null),U&&(this.IF=lC(!1,U.external_list)));this.md.publish("loadvideo");O=this.Ls(J,O,S);f&&this.Bx("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+J.rP.join()).replace(/[;:,]/g,"_"));return O}; g.y.preloadVideoByPlayerVars=function(U,O,M,S,p){O=O===void 0?1:O;M=M===void 0?NaN:M;S=S===void 0?"":S;p=p===void 0?"":p;var h="";if(this.gG.T("html5_autonav_autoplay_in_preload_key"))h=HY5(this,O,U,p);else{var J=eQ(U);h=Pw(this,O,J,p)}if(this.Ej.X.get(h))return this.logger.debug(function(){return"already preloaded "+h}),null; U=new g.oC(this.gG,U);p&&(U.xI=p);return ete(this,U,O,M,S)}; g.y.setMinimized=function(U){this.visibility.setMinimized(U);(U=ttw(this.yM))&&(this.isMinimized()?U.load():U.unload());this.md.publish("minimized")}; g.y.setInline=function(U){this.visibility.setInline(U)}; g.y.setInlinePreview=function(U){this.visibility.setInline(U)}; g.y.fF=function(U){cyg(this,U)||this.visibility.fF(U)}; g.y.setSqueezeback=function(U){this.visibility.setSqueezeback(U)}; g.y.l0=function(){var U,O=(U=this.mediaElement)==null?void 0:U.tG();O&&(this.gG.Ho&&dx(zB(function(){return document.exitFullscreen()}),function(){}),dx(zB(function(){return bC(O)}),function(){}))}; g.y.QOg=function(){this.mediaElement.tG();this.mediaElement.tG().webkitPresentationMode==="picture-in-picture"?this.fF(!0):this.fF(!1)}; g.y.togglePictureInPicture=function(){var U=this.jc();U&&U.togglePictureInPicture()}; g.y.Ls=function(U,O,M){O=O===void 0?1:O;this.logger.debug(function(){return"start load video, id "+U.videoId+", type "+O}); k6("_start",this.d7.timerName)||g.p4(qZ)(void 0,this.d7.timerName);var S=!1,p=yy5(this,O,U,!1);p?(S=!0,U.dispose()):(p=et(this,O,U,!0,M),(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&p.JE()&&p.nX(),this.BW.stop(),O===1&&O!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,O),this.vR(p));p===this.Va()&&(this.gG.cU=U.oauthToken);if(!p.JE())return!1;if(p===this.Va())return this.tB(1),M=Bw(this),S&&this.T("html5_player_preload_ad_fix")&&p.getPlayerType()===1&& p.PL()&&this.Fo("dataloaded",p,p.getVideoData()),M;p.wM();return!0}; g.y.cueVideoByPlayerVars=function(U,O){var M=this;O=O===void 0?1:O;var S=this.Va();if(this.eY().enableServerStitchedDai&&S&&!S.nN()&&U&&Object.keys(U).length>0)S.al("qvonss",{vid:(U==null?void 0:U.videoId)||"",ptype:O});else if(U&&KG7(U))if(this.qF=!0,Nh(this,U),(U=g.la(this.playlist))&&U.cT())QQ(this,U,O);else this.playlist.onReady(function(){vw(M)}); else{O||(O=this.getPresentingPlayerType());O===1&&this.Zm();S=new g.oC(this.gG,U);var p=g.Pn(this.gG)&&!this.gG.ol&&O===1&&!S.isAd()&&!S.WV;this.md.publish("cuevideo");p?(this.jc().getVideoData().loading=!0,kce(S,U?U:{}).then(function(h){QQ(M,h,O)}),S.dispose()):QQ(this,S,O)}}; g.y.CJ=function(U,O,M,S,p,h,J){if(!U&&!M)throw Error("Playback source is invalid");if(Qh(this.gG)||g.Au(this.gG))return O=O||{},O.lact=QJ(),O.vis=this.md.getVisibilityState(),this.md.ZQ("onPlayVideo",{videoId:U,watchEndpoint:h,sessionData:O,listId:M}),!1;ioJ(this.d7);this.d7.reset();U={video_id:U};S&&(U.autoplay="1");S&&(U.autonav="1");h&&(U.player_params=h.playerParams);J&&(U.oauth_token=J);M?(U.list=M,this.loadPlaylist(U)):this.loadVideoByPlayerVars(U,1);return!0}; g.y.cuePlaylist=function(U,O,M,S){this.qF=!0;Dd4(this,U,O,M,S)}; g.y.loadPlaylist=function(U,O,M,S){this.qF=!1;Dd4(this,U,O,M,S)}; g.y.E$=function(){return this.md.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Ny())}; g.y.gk=M1(13); g.y.nextVideo=function(U,O){var M=g.hK(this.Va().getVideoData());g.Kd(this.md)&&M?this.CJ(M.videoId,O?M.DW:M.sessionData,M.playlistId,O,void 0,M.o6||void 0):this.IF?this.md.aW("onPlaylistNext"):this.getPresentingPlayerType()===3?Cd(this.yM).nextVideo():!this.playlist||U3(this.gG)&&!this.md.isFullscreen()||(this.playlist.Ny(U)&&ExU(this.playlist,rYW(this.playlist)),this.playlist.loaded?(U=O&&this.gG.T("html5_player_autonav_logging"),O&&this.md.publish("playlistautonextvideo"),this.Ls(g.la(this.playlist,void 0, O,U),1)):this.qF=!1)}; g.y.previousVideo=function(U){this.IF?this.md.aW("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Cd(this.yM).Hl():!this.playlist||U3(this.gG)&&!this.md.isFullscreen()||(this.playlist.Di(U)&&ExU(this.playlist,amW(this.playlist)),this.playlist.loaded?this.Ls(g.la(this.playlist),1):this.qF=!1)}; g.y.playVideoAt=function(U){this.IF?this.md.aW("onPlaylistIndex",U):this.playlist&&(this.playlist.loaded?this.Ls(g.la(this.playlist,U),1):this.qF=!1,ExU(this.playlist,U))}; g.y.getPlaylist=function(){return this.playlist}; g.y.UV=M1(25);g.y.x4P=function(U){this.md.Te("onCueRangeEnter",U.getId())}; g.y.gZG=function(U){this.md.Te("onCueRangeExit",U.getId())}; g.y.Hu=function(){var U=g.Wx(this.nE());U&&U.Hu()}; g.y.FO=function(U,O,M){var S=this.yr(O);if(S){var p=this.eY();if(g.Os(p)){if(this.vV)if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&S.getPlayerType()===2&&this.vV.Zy()&&(S=this.Va()),O===1)for(var h=iz(this.vV,p.clientPlaybackNonce),J=g.D(U),f=J.next();!f.done;f=J.next())f=f.value,f.start+=h,f.end+=h,f.U9=h,f.B=p.clientPlaybackNonce;else if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&O===2)for(this.getPresentingPlayerType(),p=g.D(U),h=p.next();!h.done;h=p.next())h.value.B=this.vV.RB(); p=g.D(U);for(h=p.next();!h.done;h=p.next())J=void 0,h.value.playerType=(J=O)!=null?J:1}S.FO(U,M);O&&this.getPresentingPlayerType()!==O||Cw(this,"cuerangesadded",U)}}; g.y.QH=function(U,O){var M=this.yr(O);M&&(M.QH(U),O&&this.getPresentingPlayerType()!==O||Cw(this,"cuerangesremoved",U))}; g.y.S_=function(U){var O=this.jc()||this.Va(),M=this.getPresentingPlayerType();return this.T("html5_ssap_enable_cpn_triggered_media_end")?O.S_(M,U):O.S_(M)}; g.y.aqy=function(){function U(){var S=O.screenLayer||(O.isMinimized()?3:0),p=g.n5(S);if(p&&p!=="UNDEFINED_CSN"){var h=O.gG.T("web_player_attach_player_response_ve"),J=O.gG.T("web_playback_associated_ve");S={cpn:O.getVideoData().clientPlaybackNonce,csn:p};O.getVideoData().QP&&(h||J)&&(h=g.At(O.getVideoData().QP),g.lZ(p,h),J&&(S.playbackVe=h.getAsJson()));O.getVideoData().queueInfo&&(S.queueInfo=O.getVideoData().queueInfo);p={};O.T("web_playback_associated_log_ctt")&&O.getVideoData().C&&(p.cttAuthInfo= {token:O.getVideoData().C,videoId:O.getVideoData().videoId});g.HX("playbackAssociated",S,p)}else g.rz(new g.sT("CSN Missing or undefined during playback association"))} var O=this,M=this.jc();this.getPresentingPlayerType();uxw(this.d7,M.getVideoData(),vz5(this));Ww(this)&&this.gG.X&&iI(this.eY())==="embedded"&&this.Ph&&Math.random()<.01&&g.HX("autoplayTriggered",{intentional:this.intentionalPlayback});this.Ph=!1;xhy(this.yM);this.T("web_player_defer_ad")&&S5e(this);this.md.aW("onPlaybackStartExternal");(this.gG.T("mweb_client_log_screen_associated"),LL(this.gG))||U();M={};this.getVideoData().C&&(M.cttAuthInfo={token:this.getVideoData().C,videoId:this.getVideoData().videoId}); M.sampleRate=20;oY("player_att",M);if(this.getVideoData().botguardData||this.T("fetch_att_independently"))g.gG(this.gG)||Mn(this.gG)==="MWEB"?g.hx(g.yF(),function(){xp(O)}):xp(this); this.Q_();lye(this);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.Pn(this.gG)&&(M={autoplayBrowserPolicy:kD(),autoplayIntended:wx(this.getVideoData()),autoplayStatus:QLU(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.HX("embedsAutoplayStatusChanged",M))}; g.y.t90=function(){this.md.publish("internalAbandon");An(this)}; g.y.onApiChange=function(){var U=this.jc();this.gG.D&&U?this.md.Te("onApiChange",U.getPlayerType()):this.md.Te("onApiChange")}; g.y.FjP=function(){var U=this.mediaElement;U={volume:g.Nm(Math.floor(U.getVolume()*100),0,100),muted:U.Ur()};U.muted||Rj(this,!1);this.EH=g.ri(U);this.md.Te("onVolumeChange",U)}; g.y.mutedAutoplay=function(U){var O=this.getVideoData().videoId;isNaN(this.wJ)&&(this.wJ=this.getVideoData().startSeconds);if((U==null?0:U.videoId)||O)this.loadVideoByPlayerVars({video_id:(U==null?0:U.videoId)?U==null?void 0:U.videoId:O,playmuted:!0,start:this.wJ,muted_autoplay_duration_mode:U==null?void 0:U.durationMode}),this.md.aW("onMutedAutoplayStarts")}; g.y.onFullscreenChange=function(){var U=xde(this);this.n0(U?1:0);Rte(this,!!U)}; g.y.n0=function(U){var O=!!U,M=!!this.zH()!==O;this.visibility.n0(U);this.template.n0(O);this.T("html5_media_fullscreen")&&!O&&this.mediaElement&&xde(this)===this.mediaElement.tG()&&this.mediaElement.Lo();this.template.resize();M&&this.d7.tick("fsc");M&&(this.md.publish("fullscreentoggled",O),U=this.eY(),O={fullscreen:O,videoId:U.JF||U.videoId,time:this.getCurrentTime()},this.md.getPlaylistId()&&(O.listId=this.md.getPlaylistId()),this.md.Te("onFullscreenChange",O))}; g.y.h6=function(){return this.visibility.h6()}; g.y.isFullscreen=function(){return this.visibility.isFullscreen()}; g.y.zH=function(){return this.visibility.zH()}; g.y.ylZ=function(){var U=this.zH();U!==0&&U!==1||this.n0(xde(this)?1:0);U=window.screen.width*window.screen.height;var O=window.outerHeight*window.outerWidth;this.gG.hB?(this.HS=Math.max(this.HS,U,O),U=O/this.HS0&&(F=Math.floor(l/1E3))}F=O?O.PJ:F;var G={AD_BLOCK:this.U++,AD_BREAK_LENGTH:F,AUTONAV_STATE:up(this.player.J()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.eU()*1E3,LACT:QJ(),LIVE_INDEX:O?this.B++:1,LIVE_TARGETING_CONTEXT:O&&O.context?O.context:"",MIDROLL_POS:h? Math.round(h.start/1E3):0,MIDROLL_POS_MS:h?Math.round(h.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.g7().tL().height,P_W:this.player.g7().tL().width,YT_REMOTE:p?p.join(","):""},T=c5(zr);Object.keys(T).forEach(function(H){T[H]!=null&&(G[H.toUpperCase()]=T[H].toString())}); M!==""&&(G.BISCOTTI_ID=M);M={};H5(U)&&(M.sts="20179",(O=this.player.J().forcedExperiments)&&(M.forced_experiments=O));var e=Tr(g.IH(U,G),M);return e.split("?").length!==2?I4(Error("Invalid AdBreakInfo URL")):g.Fy(this.player.J(),f==null?void 0:f.oauthToken).then(function(H){if(H&&eJ()){var z=EE();Ld(z,H)}H=S.player.hL(z);z=Op1(S,e,G,f.isMdxPlayback,J);return g.Mz(H,z,"/youtubei/v1/player/ad_break").then(function(W){return W})})}; qh.prototype.reset=function(){this.B=this.U=1};g.c(saU,qh); saU.prototype.V=function(U,O,M){O=O===void 0?{}:O;var S=O.YQ;var p=O.Tk;var h=O.cueProcessedMs;M=M===void 0?"":M;O=this.U;this.U++;var J=this.player.J().T("h5_disable_macro_substitution_in_get_ad_break")?U:gW7(this,U,{YQ:S,Tk:p,cueProcessedMs:h},M,O);if(J.split("?").length!==2)return Math.random()<.1&&g.rz(Error("Invalid AdBreakInfo URL")),I4(Error("Invalid AdBreakInfo URL"));var f=this.player.getVideoData(1).isMdxPlayback,F=M;M=EzU.exec(J);M=M!=null&&M.length>=2?M[1]:"";U=Lgw.test(J);var l=VU4.exec(J); l=l!=null&&l.length>=2?l[1]:"";var G=ozJ.exec(J);G=G!=null&&G.length>=2&&!Number.isNaN(Number(G[1]))?Number(G[1]):1;var T=kp1.exec(J);T=T!=null&&T.length>=2?T[1]:"0";var e=aK(this.player.J().lU),H=g.pl(this.player.getVideoData(1).QP,!0);q5q(this,H,J,F===""?"":F,this.player.J(),this.player.getVideoData(1));F={splay:!1,lactMilliseconds:String(QJ()),playerHeightPixels:Math.trunc(this.player.g7().tL().height),playerWidthPixels:Math.trunc(this.player.g7().tL().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20179,autonavState:up(this.player.J())};if(f){f={};var z=this.player.J().WU;Kg5(f,z?z.join(","):"")&&(F.mdxContext=f)}if(f=wzW.includes(e)?void 0:g.ra("PREF")){z=f.split(RegExp("[:&]"));for(var W=0,v=z.length;W1&&x[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}F.autoCaptionsDefaultOn=ayg(f)}J=UAe.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&l&&(H.user.credentialTransferTokens= [{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:F};F=this.player.getVideoData(1).getGetAdBreakContext();f=this.player.getVideoData(1).clientPlaybackNonce;z=h!==void 0?Math.round(h).toString():void 0;W=(S==null?0:S.context)?S.context:void 0;v=0;h&&p&&!S&&(p=p.end-p.start,p>0&&(v=Math.floor(p/1E3)));S=(S=Math.trunc((S?S.PJ:v)*1E3))?String(S):void 0;p=this.player.eU()*1E3;p=Number.isNaN(p)?0:Math.trunc(p);O={adBlock:O,params:M,breakIndex:G,breakPositionMs:T,clientPlaybackNonce:f,topLevelDomain:e, isProxyAdTagRequest:U,context:H,overridePlaybackContext:J,cueProcessedMs:z,videoId:l?l:void 0,liveTargetingParams:W,breakLengthMs:S,driftFromHeadMs:p?String(p):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:F?F:void 0};return MMW(this,O)};var MXL={HJA:"replaceUrlMacros",pOL:"onAboutThisAdPopupClosed",Fwc:"executeCommand"};SzJ.prototype.Uu=function(){return"adPingingEndpoint"}; SzJ.prototype.QT=function(U,O,M){COi(this.Il.get(),U,O,M)};pKW.prototype.Uu=function(){return"changeEngagementPanelVisibilityAction"}; pKW.prototype.QT=function(U){this.S.ZQ("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:U})};hA1.prototype.Uu=function(){return"loggingUrls"}; hA1.prototype.QT=function(U,O,M){U=g.D(U);for(var S=U.next();!S.done;S=U.next())S=S.value,COi(this.Il.get(),S.baseUrl,O,M,S.attributionSrcMode)};g.c(y_W,g.C);g.c(Za,g.C);g.y=Za.prototype;g.y.addListener=function(U){this.listeners.push(U)}; g.y.removeListener=function(U){this.listeners=this.listeners.filter(function(O){return O!==U})}; g.y.Jo=function(U,O,M,S,p,h,J,f){if(U==="")DY("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(U!==this.U||M){this.U=U;this.dG.get().Jo(U,O,M,S,p,h,J,f);this.qL.get().Jo(U,O,M,S,p,h,J,f);var F;(F=this.YI)==null||F.get().Jo(U,O,M,S,p,h,J,f);this.V.Jo(U,O,M,S,p,h,J,f);F=g.D(this.listeners);for(var l=F.next();!l.done;l=F.next())l.value.Jo(U,O,M,S,p,h,J,f)}else DY("Duplicate content video loaded signal")}; g.y.Cb=function(){this.U&&this.UC(this.U)}; g.y.UC=function(U){this.U=void 0;for(var O=g.D(this.listeners),M=O.next();!M.done;M=O.next())M.value.UC(U)};Kw.prototype.wI=function(U,O,M,S,p){fQe(this);this.G=!O&&M===0;var h=this.S.getVideoData(1),J=this.S.getVideoData(2);h&&(this.contentCpn=h.clientPlaybackNonce,this.videoId=h.videoId,this.U=h.C);J&&(this.adCpn=J.clientPlaybackNonce,this.adVideoId=J.videoId,this.adFormat=J.adFormat);this.X=U;S<=0?(fQe(this),this.G=!O&&M===0):(this.actionType=this.G?O?"unknown_type":"video_to_ad":O?"ad_to_video":"ad_to_ad",this.videoStreamType=p?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.B=!0,k6("_start",this.actionType)&&GL7(this)))}; Kw.prototype.reset=function(){return new Kw(this.S)};g.c(rY,g.C);rY.prototype.addCueRange=function(U,O,M,S,p,h,J){h=h===void 0?3:h;J=J===void 0?1:J;this.U.has(U)?DY("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:U}):(U=new $A7(U,O,M,S,h),this.U.set(U.id,{Tk:U,listener:p,Ei:J}),this.S.pO([U],J))}; rY.prototype.removeCueRange=function(U){var O=this.U.get(U);O?(this.S.My([O.Tk],O.Ei),this.U.delete(O.Tk.id)):DY("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:U})}; rY.prototype.onCueRangeEnter=function(U){if(this.U.has(U.id))this.U.get(U.id).listener.onCueRangeEnter(U.id)}; rY.prototype.onCueRangeExit=function(U){if(this.U.has(U.id))this.U.get(U.id).listener.onCueRangeExit(U.id)}; g.c($A7,g.ll);aj.prototype.NR=function(U){this.S.NR(U)}; aj.prototype.U_=function(U){var O=g.m4.apply(1,arguments);U==="onAdStart"||U==="onAdEnd"?this.S.Te.apply(this.S,[U].concat(g.N(O))):this.S.ZQ.apply(this.S,[U].concat(g.N(O)))};E1.prototype.l$=function(U){return U&&Lw(this)};var Wwq=null;g.c(dAe,g.H_);dAe.prototype.Xb=function(U){return this.U.hasOwnProperty(U)?this.U[U].Xb():{}}; g.Zq("ytads.bulleit.getVideoMetadata",function(U){return VQ().Xb(U)}); g.Zq("ytads.bulleit.triggerExternalActivityEvent",function(U,O,M){var S=VQ();M=DAq(M);M!==null&&S.publish(M,{queryId:U,viewabilityString:O})});g.y=oj.prototype;g.y.aL=function(U,O){if(!this.U.has(U))return{};if(O==="seek"){O=!1;O=O===void 0?!1:O;var M=PU(RH).dw(U,{});M?RZ(M):O&&(U=PU(RH).aI(null,Uy(),!1,U),U.z4=3,ixW([U]));return{}}O=vWq(O);if(O===null)return{};var S=this.S.MZ();if(!S)return{};var p=this.S.getPresentingPlayerType(!0);if((M=this.S.getVideoData(p))==null||!M.isAd())return{};M={opt_adElement:S,opt_fullscreen:this.dG.get().isFullscreen()};return i2e(O,U,M)}; g.y.J_=function(U,O,M,S,p){this.U.has(U)&&(S<=0||p<=0||PU(RH).J_(U,O,M,S,p))}; g.y.QW=function(U){var O;(O=this.U.get(U.queryId))==null||O.QW()}; g.y.s5=function(U){var O;(O=this.U.get(U.queryId))==null||O.s5()}; g.y.AY=function(U){var O;(O=this.U.get(U.queryId))==null||O.AY()}; g.y.XS=function(U){var O;(O=this.U.get(U.queryId))==null||O.XS()}; g.y.MA=function(U){var O;(O=this.U.get(U.queryId))==null||O.MA()};A_W.prototype.send=function(U,O,M,S){try{IQq(this,U,O,M,S===void 0?!1:S)}catch(p){}};g.c(PO7,A_W);nWe.prototype.send=function(U,O,M,S){var p=!1;try{if(S==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||S==="ATTRIBUTION_SRC_MODE_XHR_OPTION")p=!0,U=ybw(U);S=p;var h=U.match(kq);if(h[1]==="https")var J=U;else h[1]="https",J=VU("https",h[2],h[3],h[4],h[5],h[6],h[7]);var f=gs4(J);h=[];var F=ElU(J)&&this.vA.get().S.J().experiments.F0("add_auth_headers_to_remarketing_google_dot_com_ping");if(H5(J)||F)h.push({headerType:"USER_AUTH"}),h.push({headerType:"PLUS_PAGE_ID"}),h.push({headerType:"VISITOR_ID"}),h.push({headerType:"EOM_VISITOR_ID"}), h.push({headerType:"AUTH_USER"}),h.push({headerType:"DATASYNC_ID"});this.U.send({baseUrl:J,scrubReferrer:f,headers:h},O,M,S)}catch(l){}};s0.prototype.bU=function(){return this.S.bU(1)};g.c(gX,g.C);g.y=gX.prototype;g.y.JU=function(){return this.S.getVideoData(1).clientPlaybackNonce}; g.y.addListener=function(U){this.listeners.push(U)}; g.y.removeListener=function(U){this.listeners=this.listeners.filter(function(O){return O!==U})}; g.y.Jo=function(){this.uF.clear();this.LA=null;this.AT.get().clear()}; g.y.UC=function(){}; g.y.iOQ=function(U,O,M,S,p){O.videoId==="nPpU29QrbiU"&&this.S.al("ads_ssm_vdc_s",{pt:M,dvt:U});xX(this.vA.get())&&U!=="dataloaded"||r_i(this,O,M);if(Lw(this.vA.get())&&U==="newdata"&&p!==void 0){U=this.JU();var h=O.clientPlaybackNonce,J={};Ri(this,"rte",(J.ec=h,J.xc=S==null?void 0:S.clientPlaybackNonce,J.tr=p,J.pt=M,J.ia=h!==U,J.ctp=bA(h),J));O=O.clientPlaybackNonce;S=S==null?void 0:S.clientPlaybackNonce;p=aQ4(p);if(p!==1)if(S!==void 0)for(M=g.D(this.listeners),U=M.next();!U.done;U=M.next())U.value.fu(S, O,p);else DY("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:O,transitionReason:String(p)});p=g.D(this.listeners);for(S=p.next();!S.done;S=p.next())S.value.u4(O)}}; g.y.lDg=function(U,O){U!==void 0&&(this.LA=U,O===void 0?DY("Expected ad video start time on SS video changed"):this.uF.set(U,O));var M=this.S.getPresentingPlayerType(!0),S=this.S.getVideoData(M);this.S.getVideoData(1).al("ads_ssvc",{pt:M,cpn:S==null?void 0:S.clientPlaybackNonce,crtt:this.S.getCurrentTime(1,!1),atlh:this.S.isAtLiveHead(),adstt:O});S?r_i(this,S,M):DY("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.S.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:U})}; g.y.aN=function(U,O){var M=U.author,S=U.clientPlaybackNonce,p=U.isListed,h=U.xI,J=U.title,f=U.Vf,F=U.Zt,l=U.isMdxPlayback,G=U.SS,T=U.mdxEnvironment,e=U.isAutonav,H=U.LN,z=U.RL,W=U.v5,v=U.videoId||"",x=U.profilePicture||"",t=U.b2||"",m=U.HU()||!1,P=U.Js()||!1;U=U.ej||void 0;h=this.AT.get().U.get(h)||{layoutId:null,slotId:null};var u=this.S.getVideoData(1),w=u.KE();u=u.getPlayerResponse();O=1E3*this.S.getDuration(O);var E=1E3*this.S.getDuration(1),Sm,JU,Uw=(u==null?void 0:(Sm=u.playerConfig)==null? void 0:(JU=Sm.daiConfig)==null?void 0:JU.enableDai)||!1,Z,k;Sm=(u==null?void 0:(Z=u.playerConfig)==null?void 0:(k=Z.daiConfig)==null?void 0:k.enablePreroll)||!1;return Object.assign({},h,{videoId:v,author:M,clientPlaybackNonce:S,QI:O,Cm:E,daiEnabled:Uw,Es:Sm,isListed:p,KE:w,profilePicture:x,title:J,b2:t,Vf:f,Zt:F,ej:U,isMdxPlayback:l,SS:G,mdxEnvironment:T,isAutonav:e,LN:H,RL:z,v5:W,HU:m,Js:P})}; g.y.VP=function(){this.listeners.length=0;this.W$=null;g.C.prototype.VP.call(this)};g.c(MU,g.C);g.y=MU.prototype;g.y.Jo=function(){var U=this;Lw(this.vA.get())||(this.U=bn(function(){U.S.GY()||U.S.Vo("ad",1)}))}; g.y.UC=function(){}; g.y.addListener=function(U){this.listeners.push(U)}; g.y.removeListener=function(U){this.listeners=this.listeners.filter(function(O){return O!==U})}; g.y.M5=function(){}; g.y.playVideo=function(){this.S.playVideo()}; g.y.pauseVideo=function(){this.S.pauseVideo()}; g.y.resumeVideo=function(U){this.t0(U)&&this.S.playVideo()}; g.y.t0=function(U){return this.S.getPlayerState(U)===2}; g.y.getCurrentTimeSec=function(U,O,M){var S=this.qL.get().LA;if(U===2&&!O&&S!==null)return Lwg(this,S);gp(this.vA.get(),"html5_ssap_use_cpn_to_get_time")||(M=void 0);return M!==void 0?this.S.getCurrentTime(U,O,M):this.S.getCurrentTime(U,O)}; g.y.getVolume=function(){return this.S.getVolume()}; g.y.isMuted=function(){return this.S.isMuted()}; g.y.getPresentingPlayerType=function(){return this.S.getPresentingPlayerType(!0)}; g.y.getPlayerState=function(U){return this.S.getPlayerState(U)}; g.y.isFullscreen=function(){return this.S.isFullscreen()}; g.y.isAtLiveHead=function(){return this.S.isAtLiveHead()}; g.y.u8=function(U){this.S.u8(U)}; g.y.EIA=function(){var U=this.S.getPresentingPlayerType(!0),O=this.getCurrentTimeSec(U,!1);if(U===2){U=g.D(this.listeners);for(var M=U.next();!M.done;M=U.next())M.value.iB(O)}else if(U===1)for(U=g.D(this.vQ),M=U.next();!M.done;M=U.next())M.value.M5(O)}; g.y.KiP=function(U){for(var O=g.D(this.listeners),M=O.next();!M.done;M=O.next())M.value.ib(U,this.getPresentingPlayerType())}; g.y.onFullscreenToggled=function(U){for(var O=g.D(this.listeners),M=O.next();!M.done;M=O.next())M.value.onFullscreenToggled(U)}; g.y.onVolumeChange=function(){for(var U=g.D(this.listeners),O=U.next();!O.done;O=U.next())O.value.onVolumeChange()}; g.y.IA=function(){for(var U=this.S.isMinimized(),O=g.D(this.listeners),M=O.next();!M.done;M=O.next())M.value.IA(U)}; g.y.RF=function(U){for(var O=g.D(this.listeners),M=O.next();!M.done;M=O.next())M.value.RF(U)}; g.y.gi=function(){for(var U=this.S.g7().tL(),O=g.D(this.listeners),M=O.next();!M.done;M=O.next())M.value.aF(U)}; g.y.ju=function(U){for(var O=g.D(this.listeners),M=O.next();!M.done;M=O.next())M.value.ju(U)}; g.y.YF=function(){for(var U=g.D(this.listeners),O=U.next();!O.done;O=U.next())O.value.YF()};g.c(kLw,g.C);g.c(yC,g.C);yC.prototype.VP=function(){this.dB.GY()||this.dB.get().removeListener(this);g.C.prototype.VP.call(this)};fF.prototype.fetch=function(U){var O=U.uu;return this.U.fetch(U.Vt,{YQ:U.YQ===void 0?void 0:U.YQ,Tk:O,cueProcessedMs:U.cueProcessedMs===void 0?0:U.cueProcessedMs}).then(function(M){return wKi(M,O)})};g.c(Fz,g.C);g.y=Fz.prototype;g.y.addListener=function(U){this.listeners.push(U)}; g.y.removeListener=function(U){this.listeners=this.listeners.filter(function(O){return O!==U})}; g.y.mT=function(U){Ujw(this,U,1)}; g.y.onAdUxClicked=function(U,O){lw(this,function(M){M.nW(U,O)})}; g.y.Vz=function(U){lw(this,function(O){O.Pz(U)})}; g.y.UN=function(U){lw(this,function(O){O.L_(U)})}; g.y.N7d=function(U){lw(this,function(O){O.GK(U)})};Gt.prototype.reduce=function(U){switch(U.event){case "unknown":return}var O=U.identifier;var M=this.U[O];M?O=M:(M={QY:null,uh:-Infinity},O=this.U[O]=M);M=U.startSecs+U.U/1E3;if(!(M=this.U.startSecs&&M.startSecs<=this.U.startSecs+this.U.PJ)){var S=void 0;if(b1(this.vA.get())&&M.identifier!==((S=this.U)==null?void 0:S.identifier)){var p=S=void 0,h=void 0,J=void 0;yg(this.Il.get(),"ocud","ccpi."+M.identifier+";ccpe."+M.event+";ccps."+M.startSecs+";\n ccpd."+M.PJ+";pcpi."+((S=this.U)==null?void 0:S.identifier)+ ";pcpe."+((p=this.U)==null?void 0:p.event)+";\n pcps."+((h=this.U)==null?void 0:h.startSecs)+";pcpd."+((J=this.U)==null?void 0:J.PJ)+";")}S=void 0;M.identifier!==((S=this.U)==null?void 0:S.identifier)&&DY("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.U=M,gNW(this,M)}}; g.y.VP=function(){this.V!=null&&(this.V.unsubscribe("cuepointupdated",this.Qz,this),this.V=null);this.listeners.length=0;this.Q6.length=0;g.C.prototype.VP.call(this)};Tt.prototype.addPlayerResponseForAssociation=function(U){this.S.addPlayerResponseForAssociation(U)};g.y=eb.prototype;g.y.YJ=function(U,O,M,S,p,h,J){return this.S.YJ(U,O,M,S,p,h,J)}; g.y.wu=function(U,O){this.S.wu(U,O)}; g.y.gx=function(U,O,M){this.S.gx(U,O,M)}; g.y.Z6=function(U){this.S.Z6(U)}; g.y.CH=function(U,O,M,S,p,h,J){this.S.CH(U,O,M,S,p,h,J)}; g.y.u7=function(U){return this.S.u7(U)}; g.y.finishSegmentByCpn=function(U,O,M){M=hsw(M);this.S.finishSegmentByCpn(U,O,M)};g.c(yeU,g.C);g.c(fxe,g.C);g.c(FWg,g.C);g.c(lxi,g.C);g.c(GqJ,g.C);g.c(T5i,g.C);T5i.prototype.B=function(){return this.V};g.c(joU,Un); joU.prototype.X=function(U){var O=U.content;if(O.componentType==="shopping-companion")switch(U.actionType){case 1:case 2:U=this.U.getVideoData(1);this.U.ZQ("updateKevlarOrC3Companion",{contentVideoId:U&&U.videoId,shoppingCompanionCarouselRenderer:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.U,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:this.U.ZQ("updateKevlarOrC3Companion",{})}else if(O.componentType==="action-companion")switch(U.actionType){case 1:case 2:U=this.U.getVideoData(1); this.U.ZQ("updateKevlarOrC3Companion",{contentVideoId:U&&U.videoId,actionCompanionAdRenderer:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.U,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O.renderer&&(O=this.U.getVideoData(1),this.U.ZQ("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId})),this.U.ZQ("updateKevlarOrC3Companion",{})}else if(O.componentType==="image-companion")switch(U.actionType){case 1:case 2:U=this.U.getVideoData(1);this.U.ZQ("updateKevlarOrC3Companion", {contentVideoId:U&&U.videoId,imageCompanionAdRenderer:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.U,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O=this.U.getVideoData(1),this.U.ZQ("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId}),this.U.ZQ("updateKevlarOrC3Companion",{})}else if(O.componentType==="top-banner-image-text-icon-buttoned")switch(U.actionType){case 1:case 2:U=this.U.getVideoData(1);this.U.ZQ("updateKevlarOrC3Companion", {contentVideoId:U&&U.videoId,topBannerImageTextIconButtonedLayoutViewModel:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.U,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O.renderer&&(O=this.U.getVideoData(1),this.U.ZQ("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId})),this.U.ZQ("updateKevlarOrC3Companion",{})}else if(O.componentType==="banner-image")switch(U.actionType){case 1:case 2:U=this.U.getVideoData(1);this.U.ZQ("updateKevlarOrC3Companion", {contentVideoId:U&&U.videoId,bannerImageLayoutViewModel:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.U,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O=this.U.getVideoData(1),this.U.ZQ("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId}),this.U.ZQ("updateKevlarOrC3Companion",{})}else if(O.componentType==="ads-engagement-panel")switch(O=O.renderer,U.actionType){case 1:case 2:this.U.ZQ("updateEngagementPanelAction",O.addAction);this.U.ZQ("changeEngagementPanelVisibility", O.expandAction);break;case 3:this.U.ZQ("changeEngagementPanelVisibility",O.hideAction),this.U.ZQ("updateEngagementPanelAction",O.removeAction)}else if(O.componentType==="ads-engagement-panel-layout"){var M=O.renderer;switch(U.actionType){case 1:case 2:this.U.ZQ("updateEngagementPanelAction",{action:VX(M.addAction),layoutId:O.layoutId,onLayoutVisibleCallback:O.U,interactionLoggingClientData:O.interactionLoggingClientData});this.U.ZQ("changeEngagementPanelVisibility",VX(M.expandAction));break;case 3:this.U.ZQ("changeEngagementPanelVisibility", VX(M.hideAction)),this.U.ZQ("updateEngagementPanelAction",{action:VX(M.removeAction)})}}};g.c(esi,JB);g.y=esi.prototype;g.y.init=function(U,O,M){JB.prototype.init.call(this,U,O,M);g.j3(this.B,"stroke-dasharray","0 "+this.V);this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.X.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){fb(this);JB.prototype.hide.call(this)}; g.y.show=function(){yc(this);JB.prototype.show.call(this)}; g.y.MU=function(){this.hide()}; g.y.Xe=function(){if(this.U){var U=this.U.getProgressState();U!=null&&U.current!=null&&g.j3(this.B,"stroke-dasharray",U.current/U.seekableEnd*this.V+" "+this.V)}};g.c(Hym,NH);g.y=Hym.prototype; g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);if(O.image&&O.image.thumbnail)if(O.headline)if(O.description)if(O.backgroundImage&&O.backgroundImage.thumbnail)if(O.actionButton&&g.q(O.actionButton,g.iY))if(U=O.durationMilliseconds||0,typeof U!=="number"||U<=0)g.K5(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+U));else if(O.navigationEndpoint){var S=this.api.getVideoData(2);if(S!=null){var p=O.image.thumbnail.thumbnails;p!=null&& p.length>0&&g.Ny(g.ly(p[0].url))&&(p[0].url=S.profilePicture,g.Ny(g.ly(S.profilePicture))&&yce("VideoPlayer",239976093,"Expected non-empty profile picture."));p=O.backgroundImage.thumbnail.thumbnails;p!=null&&p.length>0&&g.Ny(g.ly(p[0].url))&&(p[0].url=S.dL());p=O.headline;p!=null&&g.Ny(g.ly(p.text))&&(p.text=S.author)}this.Z.init(jP("ad-image"),O.image,M);this.C.init(jP("ad-text"),O.headline,M);this.B.init(jP("ad-text"),O.description,M);this.hZ.init(jP("ad-image"),O.backgroundImage,M);S=["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.C.element.classList.add("ytp-ad-action-interstitial-headline-light");this.B.element.classList.add("ytp-ad-action-interstitial-description-light");S.push("ytp-ad-action-interstitial-action-button-dark");this.api.J().V&&(S.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),S.push("ytp-ad-action-interstitial-action-button-dark"));this.api.J().T("enable_unified_action_endcap_on_web")&& !this.api.J().V&&(S.push("ytp-ad-action-interstitial-action-button-unified"),this.Rl.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.NL.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Y5.classList.add("ytp-ad-action-interstitial-card-unified"),this.ol.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.QP.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Ka.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.TY.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new iZ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,S);g.X(this,this.actionButton);this.actionButton.AZ(this.Rl); this.actionButton.init(jP("button"),g.q(O.actionButton,g.iY),M);L$(this.actionButton.element);S=kh(this.actionButton.element);oH(this.actionButton.element,S+" This link opens in new tab");this.navigationEndpoint=O.navigationEndpoint;this.X.j(this.Ka,"click",this.HY,this);this.X.j(this.ol,"click",this.HY,this);!this.api.J().T("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.J().V||this.X.j(this.QP,"click",this.HY,this);this.U=this.sb?new Y4(this.api,U):new mn(U);g.X(this,this.U);if(O.skipButton){(U= g.q(O.skipButton,jeQ))&&this.U&&(this.skipButton=new vv(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.U,this.kC),g.X(this,this.skipButton),this.skipButton.AZ(this.element),this.skipButton.init(jP("skip-button"),U,M));if(M=O.adBadgeRenderer)if(M=g.q(M,T3C))U=new R8(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!0,!0),U.AZ(this.TY),U.init(jP("simple-ad-badge"),M,this.macros),g.X(this,U);if(M=O.adInfoRenderer)if(M=g.q(M,uY))U=new Sp(this.api,this.layoutId,this.interactionLoggingClientData, this.EA,this.element,void 0,!0),U.AZ(this.TY),U.init(jP("ad-info-hover-text-button"),M,this.macros),g.X(this,U)}else O.nonskippableOverlayRenderer&&(U=g.q(O.nonskippableOverlayRenderer,qC))&&this.U&&(this.V=new GQ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.U,!1),g.X(this,this.V),this.V.AZ(this.element),this.V.init(jP("ad-preview"),U,M));O.countdownRenderer&&(O=O.countdownRenderer,g.q(O,eqv)&&this.U&&(M=new esi(this.api,this.layoutId,this.interactionLoggingClientData,this.EA, this.U),g.X(this,M),M.AZ(this.element),M.init(jP("timed-pie-countdown"),g.q(O,eqv),this.macros)));this.show();this.element.focus()}else g.K5(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.K5(Error("AdActionInterstitialRenderer has no button."));else g.K5(Error("AdActionInterstitialRenderer has no background AdImage."));else g.K5(Error("AdActionInterstitialRenderer has no description AdText."));else g.K5(Error("AdActionInterstitialRenderer has no headline AdText."));else g.K5(Error("AdActionInterstitialRenderer has no image."))}; g.y.clear=function(){g.CE(this.X);this.hide()}; g.y.show=function(){zsq(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.V&&this.V.show();NH.prototype.show.call(this)}; g.y.hide=function(){zsq(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.V&&this.V.hide();NH.prototype.hide.call(this)}; g.y.HY=function(){this.navigationEndpoint&&(this.layoutId?this.EA.executeCommand(this.navigationEndpoint,this.layoutId):g.K5(Error("Missing layoutId for ad action interstitial.")))};var N5w={iconType:"CLOSE"},Di=new g.R1(320,63);g.c(WWW,NH);g.y=WWW.prototype; g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);this.X=O;this.Z=g.M2(this.X.onClickCommands||[]);this.TY=this.X.onErrorCommand||null;if(U=this.X.contentSupportedRenderer)U=this.X.contentSupportedRenderer,O=this.X.adInfoRenderer||null,g.q(U,lTD)?(this.C=g.hN("ytp-ad-overlay-ad-info-button-container",this.B.element),vN7(this,O),U=xji(this,g.q(U,lTD))):g.q(U,G$D)?(this.C=g.hN("ytp-ad-overlay-ad-info-button-container",this.V.element),vN7(this,O),U=byg(this,g.q(U,G$D))):g.q(U,$2p)?(this.C= g.hN("ytp-ad-overlay-ad-info-button-container",this.U.element),vN7(this,O),U=Rs5(this,g.q(U,$2p))):(g.K5(Error("InvideoOverlayAdRenderer content could not be initialized.")),U=!1);U&&(this.show(),tE5(this,!0))}; g.y.clear=function(){tE5(this,!1);this.Ka.reset();this.ol=0;this.B.hide();this.logVisibility(this.B.element,!1);this.V.hide();this.logVisibility(this.V.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.hide();this.dispose()}; g.y.D_A=function(){this.Rl&&(this.layoutId?this.EA.executeCommand(this.Rl,this.layoutId):g.K5(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.y.y3=function(){a:{if(this.X&&this.X.closeButton&&this.X.closeButton.buttonRenderer){var U=this.X.closeButton.buttonRenderer;if(U.serviceEndpoint){U=[U.serviceEndpoint];break a}}U=[]}U=g.D(U);for(var O=U.next();!O.done;O=U.next())O=O.value,this.layoutId?this.EA.executeCommand(O,this.layoutId):g.K5(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.y.Wka=function(){this.hZ||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.y.HZ=function(){this.hZ||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.HZ("invideo-overlay")}; g.y.FkP=function(U){U.target===this.C&&g.hN("ytp-ad-button",this.NL.element).click()};g.c(YrW,JB);g.y=YrW.prototype;g.y.init=function(U,O,M){JB.prototype.init.call(this,U,O,M);U=O.durationMs;this.B=U==null||U===0?0:U+this.U.getProgressState().current*1E3;if(O.text)var S=O.text.templatedAdText;else O.staticMessage&&(S=O.staticMessage);this.messageText.init(jP("ad-text"),S,M);this.messageText.AZ(this.V.element);this.X.show(100);this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){mj7(this,!1);JB.prototype.hide.call(this);this.V.hide();this.messageText.hide();fb(this)}; g.y.show=function(){mj7(this,!0);JB.prototype.show.call(this);yc(this);this.V.show();this.messageText.show()}; g.y.MU=function(){this.hide()}; g.y.Xe=function(){if(this.U!=null){var U=this.U.getProgressState();U!=null&&U.current!=null&&(U=1E3*U.current,!this.ol&&U>=this.B?(this.X.hide(),this.ol=!0):this.messageText&&this.messageText.isTemplated()&&(U=Math.max(0,Math.ceil((this.B-U)/1E3)),U!==this.C&&(hB(this.messageText,{TIME_REMAINING:String(U)}),this.C=U)))}};g.c(Ae7,NH);g.y=Ae7.prototype; g.y.init=function(U,O,M){NH.prototype.init.call(this,U,O,{});O.image&&O.image.thumbnail?O.headline?O.description?O.actionButton&&g.q(O.actionButton,g.iY)?(this.B.init(jP("ad-image"),O.image,M),this.V.init(jP("ad-text"),O.headline,M),this.X.init(jP("ad-text"),O.description,M),U=["ytp-ad-underlay-action-button"],this.api.J().T("use_blue_buttons_for_desktop_player_underlay")&&U.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new iZ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA, U),O.backgroundColor&&g.j3(this.element,"background-color",g.Lb(O.backgroundColor)),g.X(this,this.actionButton),this.actionButton.AZ(this.C),this.actionButton.init(jP("button"),g.q(O.actionButton,g.iY),M),O=g.DF(this.api.J().experiments,"player_underlay_video_width_fraction"),this.api.J().T("place_shrunken_video_on_left_of_player")?(M=this.U,g.$U(M,"ytp-ad-underlay-left-container"),g.l3(M,"ytp-ad-underlay-right-container"),g.j3(this.U,"margin-left",Math.round((O+.02)*100)+"%")):(M=this.U,g.$U(M,"ytp-ad-underlay-right-container"), g.l3(M,"ytp-ad-underlay-left-container")),g.j3(this.U,"width",Math.round((1-O-.04)*100)+"%"),this.api.d_()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.rl.bind(this)),this.api.addEventListener("resize",this.y8.bind(this))):g.K5(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.K5(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.K5(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.K5(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.y.show=function(){Ixe(!0);this.actionButton&&this.actionButton.show();NH.prototype.show.call(this)}; g.y.hide=function(){Ixe(!1);this.actionButton&&this.actionButton.hide();NH.prototype.hide.call(this)}; g.y.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.rl.bind(this));this.api.removeEventListener("resize",this.y8.bind(this));this.hide()}; g.y.onClick=function(U){NH.prototype.onClick.call(this,U);this.actionButton&&g.zU(this.actionButton.element,U.target)&&this.api.pauseVideo()}; g.y.rl=function(U){U==="transitioning"?(this.U.classList.remove("ytp-ad-underlay-clickable"),this.show()):U==="visible"?this.U.classList.add("ytp-ad-underlay-clickable"):U==="hidden"&&(this.hide(),this.U.classList.remove("ytp-ad-underlay-clickable"))}; g.y.y8=function(U){U.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):U.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.j3(this.V.element,"font-size",U.width/40+"px")};g.c(dX,NH); dX.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);O.toggledLoggingParams&&(this.toggledLoggingParams=O.toggledLoggingParams);O.answer&&g.q(O.answer,g.iY)?(U=new iZ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),U.AZ(this.answer),U.init(jP("ytp-ad-survey-answer-button"),g.q(O.answer,g.iY),M),U.show()):O.answer&&g.q(O.answer,Hu)&&(this.U=new kQ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA, ["ytp-ad-survey-answer-toggle-button"]),this.U.AZ(this.answer),g.X(this,this.U),this.U.init(jP("survey-answer-button"),g.q(O.answer,Hu),M));this.show()}; dX.prototype.sW=function(U){this.layoutId?U7(this.EA,U,this.layoutId,this.macros):g.K5(new g.sT("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; dX.prototype.onClick=function(U){NH.prototype.onClick.call(this,U);if(this.api.J().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; dX.prototype.clear=function(){this.hide()};g.c(Pqe,NH);Pqe.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);O.answer&&g.q(O.answer,Hu)&&(this.button=new kQ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.AZ(this.U),this.button.init(jP("survey-none-of-the-above-button"),g.q(O.answer,Hu),M));this.show()};g.c(WN,iZ);WN.prototype.init=function(U,O,M){iZ.prototype.init.call(this,U,O,M);U=!1;O.text&&(O=g.B_(O.text),U=!g.Ny(O));U||g.rz(Error("No submit text was present in the renderer."))}; WN.prototype.onClick=function(U){this.publish("l");iZ.prototype.onClick.call(this,U)};g.c(NU,NH); NU.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);if(U=O.skipOrPreviewRenderer)g.q(U,GR)?(U=g.q(U,GR),M=new x4(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.X,!0),M.AZ(this.skipOrPreview),M.init(jP("skip-button"),U,this.macros),g.X(this,M),this.U=M):g.q(U,qC)&&(U=g.q(U,qC),M=new GQ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.X,!1),M.AZ(this.skipOrPreview),M.init(jP("ad-preview"),U,this.macros),M.ol.show(100),M.show(),g.X(this,M), this.U=M);this.U==null&&g.K5(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(O)));O.submitButton&&(U=O.submitButton,g.q(U,g.iY)&&(U=g.q(U,g.iY),M=new WN(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),M.AZ(this.submitButton),M.init(jP("survey-submit"),U,this.macros),g.X(this,M),this.V=M));if(U=O.adBadgeRenderer)U=g.q(U,T3C),M=new R8(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!0,!0,!0),M.AZ(this.B),M.init(jP("simple-ad-badge"), U,this.macros),this.adBadge=M.element,g.X(this,M);if(U=O.adDurationRemaining)U=g.q(U,yoh),M=new Pv(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.X,void 0,!0),M.AZ(this.B),M.init(jP("ad-duration-remaining"),U,this.macros),g.X(this,M);(O=O.adInfoRenderer)&&g.q(O,uY)&&(U=new Sp(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.element,void 0,!0),g.X(this,U),this.adBadge!==void 0?this.B.insertBefore(U.element,this.adBadge.nextSibling):U.AZ(this.B),U.init(jP("ad-info-hover-text-button"), g.q(O,uY),this.macros));this.show()}; NU.prototype.clear=function(){this.hide()};g.c(vN,NH);vN.prototype.init=function(U,O,M){NH.prototype.init.call(this,U,O,M);um7(this)}; vN.prototype.show=function(){this.B=Date.now();NH.prototype.show.call(this)}; vN.prototype.iR=function(){};g.c(qrw,vN);g.y=qrw.prototype;g.y.init=function(U,O,M){var S=this;vN.prototype.init.call(this,U,O,M);O.questionText&&nNe(this,O.questionText);O.answers&&O.answers.forEach(function(p,h){g.q(p,jN)&&QoJ(S,g.q(p,jN),M,h)}); this.C=new Set(this.V.map(function(p){return p.U.U})); (U=O.noneOfTheAbove)&&(U=g.q(U,FjD))&&iy1(this,U,M);O.surveyAdQuestionCommon&&XYe(this,O.surveyAdQuestionCommon);O.submitEndpoints&&(this.submitEndpoints=O.submitEndpoints);this.j(this.element,"change",this.onChange);this.show()}; g.y.iR=function(){Zy4(this,!1);this.X.V.subscribe("l",this.TKA,this)}; g.y.onChange=function(U){U.target===this.noneOfTheAbove.button.U?KWm(this):this.C.has(U.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Zy4(this,!0))}; g.y.TKA=function(){var U=[],O=this.V.reduce(function(p,h,J){var f=h.toggledLoggingParams;h.U&&h.U.isToggled()&&f&&(p.push(f),U.push(J));return p},[]).join("&"),M=this.submitEndpoints.map(function(p){if(!p.loggingUrls)return p; p=g.a1(p);p.loggingUrls=p.loggingUrls.map(function(h){h.baseUrl&&(h.baseUrl=hH(h.baseUrl,O));return h}); return p}); if(M){M=g.D(M);for(var S=M.next();!S.done;S=M.next())S=S.value,this.layoutId?U7(this.EA,S,this.layoutId,this.macros):g.K5(Error("Missing layoutId for multi_select_question."))}this.api.J().T("supports_multi_step_on_desktop")&&this.ol(U)}; g.y.clear=function(){this.api.J().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.c(BN,vN);BN.prototype.init=function(U,O,M){var S=this;vN.prototype.init.call(this,U,O,M);O.questionText&&nNe(this,O.questionText);O.answers&&O.answers.forEach(function(p,h){g.q(p,jN)&&QoJ(S,g.q(p,jN),M,h)}); O.surveyAdQuestionCommon?XYe(this,O.surveyAdQuestionCommon):g.K5(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(O)));this.show()}; BN.prototype.clear=function(){this.api.J().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.c(xt,NH);xt.prototype.init=function(U,O,M){var S=this;NH.prototype.init.call(this,U,O,M);if(this.api.J().T("supports_multi_step_on_desktop")){var p;this.conditioningRules=(p=O.conditioningRules)!=null?p:[];var h;this.V=(h=O.questions)!=null?h:[];var J;((J=O.questions)==null?0:J.length)&&LWe(this,0)}else(O.questions||[]).forEach(function(f){g.q(f,Cr)?axi(S,g.q(f,Cr),M):g.q(f,QZ)&&EN5(S,g.q(f,QZ),M)}); this.show()}; xt.prototype.clear=function(){this.api.J().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; xt.prototype.X=function(U){var O=this;if(this.api.J().T("supports_multi_step_on_desktop")){var M;if((M=this.conditioningRules)==null?0:M.length){var S;if(U.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(p){return p.questionIndex===O.U})==null)g.K5(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(p){if(p.questionIndex===O.U)switch(p.condition){case "CONDITION_ALL_OF":var h;if((h=p.answerIndices)==null?0:h.every(function(f){return U.includes(f)}))S=p.nextQuestionIndex; break;case "CONDITION_ANY_OF":var J;if((J=p.answerIndices)==null?0:J.some(function(f){return U.includes(f)}))S=p.nextQuestionIndex; break;default:g.K5(Error("Expected specified condition in survey conditioning rules."))}}),S!=null)LWe(this,S); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.K5(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.c(bw,NH); bw.prototype.init=function(U,O,M){var S=this;NH.prototype.init.call(this,U,O,M);U=O.timeoutSeconds||0;if(typeof U!=="number"||U<0)g.K5(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+U));else if(O.timeoutCommands)if(O.text)if(O.ctaButton&&g.q(O.ctaButton,g.iY))if(O.brandImage)if(O.backgroundImage&&g.q(O.backgroundImage,Zg)&&g.q(O.backgroundImage,Zg).landscape){this.layoutId||g.K5(Error("Missing layoutId for survey interstitial."));VEe(this.interstitial,g.q(O.backgroundImage, Zg).landscape);VEe(this.logoImage,O.brandImage);g.cd(this.text,g.B_(O.text));var p=["ytp-ad-survey-interstitial-action-button"];p.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new iZ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,p);g.X(this,this.actionButton);this.actionButton.AZ(this.V);this.actionButton.init(jP("button"),g.q(O.ctaButton,g.iY),M);this.actionButton.show();this.U=new Y4(this.api,U*1E3);this.U.subscribe("g",function(){S.transition.hide()}); g.X(this,this.U);this.j(this.element,"click",function(h){var J=h.target===S.interstitial;h=S.actionButton.element.contains(h.target);if(J||h)if(S.transition.hide(),J)S.api.onAdUxClicked(S.componentType,S.layoutId)}); this.transition.show(100)}else g.K5(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.K5(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.K5(Error("SurveyTextInterstitialRenderer has no button."));else g.K5(Error("SurveyTextInterstitialRenderer has no text."));else g.K5(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; bw.prototype.clear=function(){this.hide()}; bw.prototype.show=function(){oN1(!0);NH.prototype.show.call(this)}; bw.prototype.hide=function(){oN1(!1);NH.prototype.hide.call(this)};g.c(RI,JB);g.y=RI.prototype; g.y.init=function(U,O){JB.prototype.init.call(this,U,O,{});if(O.durationMilliseconds){if(O.durationMilliseconds<0){g.K5(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+O.durationMilliseconds));return}this.V=O.durationMilliseconds}else this.V=this.U.WX();var M;if((M=O.previewText)==null||!M.text||g.Ny(O.previewText.text))g.K5(Error("No text is returned for AdPreview."));else{this.C=O.previewText;O.previewText.isTemplated||g.cd(this.B,O.previewText.text);var S; if(((S=this.api.getVideoData(1))==null?0:S.IB)&&O.previewImage){var p,h;(U=((h=PC(((p=O.previewImage)==null?void 0:p.sources)||[],52,!1))==null?void 0:h.url)||"")&&U.length?(this.previewImage=new g.W_({K:"img",L:"ytp-preview-ad__image",N:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",U),g.X(this,this.previewImage),this.previewImage.AZ(this.element)):g.K5(Error("Failed to get imageUrl in AdPreview."))}else this.B.classList.add("ytp-preview-ad__text--padding--wide")}}; g.y.clear=function(){this.hide()}; g.y.hide=function(){fb(this);JB.prototype.hide.call(this)}; g.y.show=function(){yc(this);JB.prototype.show.call(this)}; g.y.MU=function(){this.hide()}; g.y.Xe=function(){if(this.U){var U=this.U.getProgressState();if(U!=null&&U.current)if(U=1E3*U.current,U>=this.V)this.transition.hide();else{var O;if((O=this.C)==null?0:O.isTemplated)if(O=Math.max(0,Math.ceil((this.V-U)/1E3)),O!==this.X){var M,S;(U=(M=this.C)==null?void 0:(S=M.text)==null?void 0:S.replace("{TIME_REMAINING}",String(O)))&&g.cd(this.B,U);this.X=O}}}};g.c(tk,NH); tk.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});var M,S;if((U=((S=PC(((M=O.image)==null?void 0:M.sources)||[],kqJ(O),!0))==null?void 0:S.url)||"")&&U.length){M=this.ML("ytp-ad-avatar");M.src=U;var p,h;if(S=(p=O.interaction)==null?void 0:(h=p.accessibility)==null?void 0:h.label)M.alt=S;switch(O.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(O.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.K5(Error("Failed to get imageUrl in AdAvatar."))}; tk.prototype.clear=function(){this.hide()}; tk.prototype.onClick=function(U){NH.prototype.onClick.call(this,U)};g.c(Yt,NH); Yt.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});var M;U=(M=O.label)==null?void 0:M.content;if((M=U!=null&&!g.Ny(U))||O.iconImage){M&&(this.buttonText=new g.W_({K:"span",L:"ytp-ad-button-vm__text",UA:U}),g.X(this,this.buttonText),this.buttonText.AZ(this.element));var S,p,h=((S=O.interaction)==null?0:(p=S.accessibility)==null?0:p.label)||M?U:"";h&&oH(this.element,h+" This link opens in new tab");L$(this.element);if(O.iconImage){S=void 0;if(O.iconImage){a:{p=O.iconImage;if(p.sources)for(p= g.D(p.sources),U=p.next();!U.done;U=p.next())if(U=U.value,h=void 0,(h=U.clientResource)==null?0:h.imageName){p=U;break a}p=void 0}if(p){var J;S={iconType:(J=p.clientResource)==null?void 0:J.imageName}}}J=qH(S,!1,this.V);J!=null&&(this.buttonIcon=new g.W_({K:"span",L:"ytp-ad-button-vm__icon",W:[J]}),g.X(this,this.buttonIcon),O.iconLeading?(ed(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):M?(this.buttonIcon.AZ(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.AZ(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(O.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_FILLED":this.element.classList.add(this.U?"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(O.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.rz(Error("AdButton does not have label or an icon."))}; Yt.prototype.clear=function(){this.hide()}; Yt.prototype.onClick=function(U){NH.prototype.onClick.call(this,U)};g.c(wYg,JB);g.y=wYg.prototype; g.y.init=function(U,O){JB.prototype.init.call(this,U,O,{});this.api.J().T("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.ML("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),ed(this.ML("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(U=g.q(O.avatar,uw)){var M=O.headline;if(M){var S=O.description;if(S){var p=g.q(O.button,iw);p?(this.adAvatar.init(jP("ad-avatar"),U),this.headline.init(jP("ad-simple-attributed-string"),new Qc(M)),this.description.init(jP("ad-simple-attributed-string"),new Qc(S)),M.content&&M.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(jP("ad-button"),p),this.startMilliseconds=O.startMs||0,this.api.d_()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Tq.bind(this)),yc(this)):g.K5(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.K5(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.K5(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.K5(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.y.Xe=function(){if(this.U){var U=this.U.getProgressState();U&&U.current&&1E3*U.current>=this.startMilliseconds&&(fb(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.y.MU=function(){this.clear()}; g.y.onClick=function(U){this.api.pauseVideo();JB.prototype.onClick.call(this,U)}; g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Tq.bind(this))}; g.y.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();JB.prototype.show.call(this)}; g.y.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();JB.prototype.hide.call(this)}; g.y.Tq=function(U){U==="hidden"?this.show():this.hide()};g.c(mm,NH);g.y=mm.prototype; g.y.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(!O.label||g.Ny(O.label))g.K5(Error("No label is returned for SkipAdButton."));else if(g.cd(this.X,O.label),U=qH({iconType:"SKIP_NEXT_NEW"}),U==null)g.K5(Error("Unable to retrieve icon for SkipAdButton"));else if(this.B=new g.W_({K:"span",L:"ytp-skip-ad-button__icon",W:[U]}),g.X(this,this.B),this.B.AZ(this.element),this.api.J().experiments.F0("enable_skip_to_next_messaging")&&(O=g.ly(O.targetId)))this.V=!0,this.element.setAttribute("data-tooltip-target-id",O), this.element.setAttribute("data-tooltip-target-fixed","")}; g.y.onClick=function(U){U&&U.preventDefault();var O,M;Vsw(U,{contentCpn:(M=(O=this.api.getVideoData(1))==null?void 0:O.clientPlaybackNonce)!=null?M:""})===0?this.api.ZQ("onAbnormalityDetected"):(NH.prototype.onClick.call(this,U),this.api.ZQ("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.y.clear=function(){this.U.reset();this.hide()}; g.y.hide=function(){NH.prototype.hide.call(this)}; g.y.show=function(){this.U.start();NH.prototype.show.call(this);this.V&&this.api.J().experiments.F0("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.c(U1y,JB);g.y=U1y.prototype; g.y.init=function(U,O){JB.prototype.init.call(this,U,O,{});U=g.q(O.preskipState,N3J);var M;if((M=this.api.getVideoData())==null?0:M.isDaiEnabled()){if(!U){g.K5(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.V=new RI(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.U);g.X(this,this.V);this.V.AZ(this.element);var S;(S=this.V)==null||S.init(jP("preview-ad"),U);(M=this.V)!=null&&(M.transition.show(100),M.show())}(M=g.q(O.skippableState,B3Q))?(O.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=O.skipOffsetMilliseconds:(g.rz(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(jP("skip-button"),M),this.show()):g.K5(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.y.show=function(){yc(this);JB.prototype.show.call(this)}; g.y.hide=function(){!this.isSkippable&&this.V?this.V.hide():this.B&&this.B.hide();fb(this);JB.prototype.hide.call(this)}; g.y.clear=function(){var U;(U=this.V)==null||U.clear();this.B&&this.B.clear();fb(this);JB.prototype.hide.call(this)}; g.y.MU=function(){this.hide()}; g.y.Xe=function(){if(1E3*this.U.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var U;(U=this.V)!=null&&U.transition.hide();(U=this.B)!=null&&(U.transition.show(),U.show())}};g.c(Ak,NH); Ak.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(O.label){var M;((M=O.label)==null?0:M.content)&&!g.Ny(O.label.content)&&(this.linkText=new g.W_({K:"span",L:"ytp-visit-advertiser-link__text",UA:O.label.content}),g.X(this,this.linkText),this.linkText.AZ(this.element));var S,p;if((S=O.interaction)==null?0:(p=S.accessibility)==null?0:p.label)oH(this.element,O.interaction.accessibility.label+" This link opens in new tab");else{var h;((h=O.label)==null?0:h.content)&&!g.Ny(O.label.content)&&oH(this.element, O.label.content+" This link opens in new tab")}L$(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.K5(Error("No label found in VisitAdvertiserLink."))}; Ak.prototype.onClick=function(U){NH.prototype.onClick.call(this,U);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Ak.prototype.clear=function(){this.hide()};g.c(II,NH); II.prototype.init=function(U,O,M,S){NH.prototype.init.call(this,U,O,{});if(O.skipOrPreview){M=O.skipOrPreview;U=g.q(M,x24);M=g.q(M,N3J);if(U)this.M7=new U1y(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V),g.X(this,this.M7),this.M7.AZ(this.ol),this.M7.init(jP("skip-ad"),U);else{var p;M&&((p=this.api.getVideoData())==null?0:p.isDaiEnabled())&&(this.C=new RI(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V,1),g.X(this,this.C),this.C.AZ(this.ol),this.C.init(jP("ad-preview"), M),p=this.C,p.transition.show(100),p.show())}if(p=g.q(O.skipOrPreview,x24))var h=p.skipOffsetMilliseconds}O.playerAdCard&&(p=g.q(O.playerAdCard,v$C))&&(this.playerAdCard=new wYg(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V),g.X(this,this.playerAdCard),this.playerAdCard.AZ(this.Ka),this.playerAdCard.init(jP("ad-avatar-lockup-card"),p));O.adBadgeRenderer&&((p=g.q(O.adBadgeRenderer,qU))?(this.U=new XY(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!0),g.X(this, this.U),this.api.J().T("delhi_modern_web_player")?this.U.AZ(this.X):this.U.AZ(this.B),this.U.init(jP("ad-badge"),p)):g.K5(Error("AdBadgeViewModel is not found in player overlay layout.")));O.adPodIndex&&(p=g.q(O.adPodIndex,coq))&&(this.adPodIndex=new u9(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.adPodIndex),this.api.J().T("delhi_modern_web_player")?this.adPodIndex.AZ(this.X):this.adPodIndex.AZ(this.B),this.adPodIndex.init(jP("ad-pod-index"),p));O.adInfoRenderer&& ((p=g.q(O.adInfoRenderer,uY))?(this.adInfoButton=new Sp(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.element,void 0,!0),g.X(this,this.adInfoButton),U=this.api.J().T("delhi_modern_web_player")?this.X:this.B,this.U!==void 0?U.insertBefore(this.adInfoButton.element,this.U.element.nextSibling):this.adInfoButton.AZ(U),this.adInfoButton.init(jP("ad-info-hover-text-button"),p,this.macros)):g.rz(Error("AdInfoRenderer is not found in player overlay layout.")));var J;p=(J=this.api.getVideoData())== null?void 0:J.isDaiEnabled();O.adDurationRemaining&&p&&(J=g.q(O.adDurationRemaining,yoh))&&(this.adDurationRemaining=new Pv(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V,S.videoAdDurationSeconds,!0),g.X(this,this.adDurationRemaining),S=this.api.J().T("delhi_modern_web_player")?this.X:this.B,this.adPodIndex!==void 0?S.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.AZ(S),this.adDurationRemaining.init(jP("ad-duration-remaining"), J,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));O.visitAdvertiserLink&&(S=g.q(O.visitAdvertiserLink,RqE))&&(this.visitAdvertiserLink=new Ak(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.visitAdvertiserLink),this.visitAdvertiserLink.AZ(this.B),this.visitAdvertiserLink.init(jP("visit-advertiser-link"),S));O.adDisclosureBanner&&(O=g.q(O.adDisclosureBanner,zq4))&&(this.adDisclosureBanner=new qc(this.api,this.layoutId, this.interactionLoggingClientData,this.EA),g.X(this,this.adDisclosureBanner),this.adDisclosureBanner.AZ(this.QP),this.adDisclosureBanner.init(jP("ad-disclosure-banner"),O));this.Z=new Kb(this.api,this.V,h,!0);g.X(this,this.Z);g.Z0(this.api,this.Z.element,4);this.show()}; II.prototype.clear=function(){this.hide()};g.c(O7v,NH);g.y=O7v.prototype; g.y.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(O!=null&&O.title)if(U=O.title)if(this.headline.init(jP("ad-simple-attributed-string"),new Qc(U)),U=g.q(O.moreInfoButton,iw)){if(this.moreInfoButton.init(jP("ad-button"),U),O.descriptions)O.descriptions.length>0&&(U=O.descriptions[0])&&(this.U=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.U),this.U.AZ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.U.init(jP("ad-simple-attributed-string"), new Qc(U))),O.descriptions.length>1&&(O=O.descriptions[1])&&(this.V=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.V),this.V.AZ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.V.init(jP("ad-simple-attributed-string"),new Qc(O)))}else g.K5(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.K5(Error("No headline found in AdGridCardText."));else g.K5(Error("No headline found in AdGridCardText."))}; g.y.onClick=function(U){NH.prototype.onClick.call(this,U);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.y.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var U;(U=this.U)==null||U.clear();var O;(O=this.V)==null||O.clear()}; g.y.hide=function(){this.headline.hide();this.moreInfoButton.hide();var U;(U=this.U)==null||U.hide();var O;(O=this.V)==null||O.hide();NH.prototype.hide.call(this)}; g.y.show=function(){NH.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var U;(U=this.U)==null||U.show();var O;(O=this.V)==null||O.show()};g.c(PN,NH);PN.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(O!=null&&O.gridCards)if(O.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.K5(Error("Only single column style is currently supported in AdGridCardCollection."));else for(U=g.D(O.gridCards),O=U.next();!O.done;O=U.next()){if(O=g.q(O.value,Wjq)){var M=new O7v(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,M);M.AZ(this.element);M.init(jP("ad-grid-card-text"),O);this.U.push(M)}}else g.K5(Error("No grid cards found in AdGridCardCollection."))}; PN.prototype.show=function(){for(var U=g.D(this.U),O=U.next();!O.done;O=U.next())O.value.show();NH.prototype.show.call(this)}; PN.prototype.clear=function(){this.hide();for(var U=g.D(this.U),O=U.next();!O.done;O=U.next())O.value.clear()}; PN.prototype.hide=function(){for(var U=g.D(this.U),O=U.next();!O.done;O=U.next())O.value.hide();NH.prototype.hide.call(this)};g.c(nF,JB);g.y=nF.prototype;g.y.init=function(U,O,M,S,p){p=p===void 0?0:p;JB.prototype.init.call(this,U,O,M,S);this.playerProgressOffsetMs=p;yc(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.MJ.bind(this));this.api.addEventListener("resize",this.Dp.bind(this));this.api.d_()?(this.V=!0,this.api.u8(!0),this.show()):this.hide()}; g.y.Xe=function(){if(this.U){var U=this.U.getProgressState();U&&U.current&&!this.V&&1E3*U.current>=this.playerProgressOffsetMs&&(this.V=!0,this.api.u8(!0),this.show())}}; g.y.MU=function(){this.V&&this.api.u8(!1);this.hide()}; g.y.clear=function(){this.api.u8(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.MJ.bind(this));this.api.removeEventListener("resize",this.Dp.bind(this));fb(this);this.hide()}; g.y.hide=function(){swy(!1);JB.prototype.hide.call(this)}; g.y.show=function(){swy(!0);JB.prototype.show.call(this)};g.c(geC,nF);g.y=geC.prototype; g.y.init=function(U,O,M,S){if(O!=null&&O.adGridCardCollection)if(O!=null&&O.adButton){var p=Number(O.playerProgressOffsetMs||"0");isNaN(p)?nF.prototype.init.call(this,U,O,M,S):nF.prototype.init.call(this,U,O,M,S,p);U=O.headline;M=g.q(O.adAvatar,uw);U&&M?(this.headline=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.headline),this.headline.AZ(this.ML("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(jP("ad-simple-attributed-string"),new Qc(U)), this.adAvatar=new tk(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.adAvatar),this.adAvatar.AZ(this.ML("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(jP("ad-avatar"),M)):this.X.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");U=g.q(O.adGridCardCollection,d2C);this.adGridCardCollection.init(jP("ad-grid-card-collection"),U);O=g.q(O.adButton,iw);this.adButton.init(jP("ad-button"),O); this.hide()}else g.K5(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.K5(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.y.onClick=function(U){(this.adButton&&g.zU(this.adButton.element,U.target)||this.adAvatar&&g.zU(this.adAvatar.element,U.target))&&this.api.pauseVideo();nF.prototype.onClick.call(this,U);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.y.Dp=function(){}; g.y.clear=function(){this.hide();var U;(U=this.headline)==null||U.clear();var O;(O=this.adAvatar)==null||O.clear();this.adGridCardCollection.clear();this.adButton.clear();nF.prototype.clear.call(this)}; g.y.show=function(){var U;(U=this.headline)==null||U.show();var O;(O=this.adAvatar)==null||O.show();this.adGridCardCollection.show();this.adButton.show();nF.prototype.show.call(this)}; g.y.hide=function(){var U;(U=this.headline)==null||U.hide();var O;(O=this.adAvatar)==null||O.hide();this.adGridCardCollection.hide();this.adButton.hide();nF.prototype.hide.call(this)}; g.y.MJ=function(U){U==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):U==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):U==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))};g.c(QC,NH); QC.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(O.attributes===void 0)g.K5(Error("No attributes found in AdDetailsLineViewModel."));else if(O.style===void 0)g.K5(Error("No style found in AdDetailsLineViewModel."));else{U=g.D(O.attributes);for(var M=U.next();!M.done;M=U.next())if(M=M.value,M.text!==void 0){M=M.text;var S=O.style,p=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,p);p.AZ(this.element);a:switch(S){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":S="ytp-ad-details-line__text--style-responsive"; break a;default:S="ytp-ad-details-line__text--style-standard"}p.element.classList.add(S);p.init(jP("ad-simple-attributed-string"),new Qc(M));this.U.push(p)}this.show()}}; QC.prototype.show=function(){this.U.forEach(function(U){U.show()}); NH.prototype.show.call(this)}; QC.prototype.clear=function(){this.hide()}; QC.prototype.hide=function(){this.U.forEach(function(U){U.hide()}); NH.prototype.hide.call(this)};g.c(CF,NH);CF.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});var M,S;(U=((S=PC(((M=O.image)==null?void 0:M.sources)||[]))==null?void 0:S.url)||"")&&U.length?(M=this.ML("ytp-image-background-image"),g.j3(M,"backgroundImage","url("+U+")"),O.blurLevel!==void 0&&g.j3(M,"filter","blur("+O.blurLevel+"px)"),O.gradient!==void 0&&(O=new g.r({K:"div",OA:["ytp-image-background--gradient-vertical"]}),g.X(this,O),O.AZ(this.element)),this.show()):g.K5(Error("Failed to get imageUrl in ImageBackground."))}; CF.prototype.clear=function(){this.hide()};g.c(MmJ,JB);g.y=MmJ.prototype;g.y.init=function(U,O){JB.prototype.init.call(this,U,O,{});g.j3(this.B,"stroke-dasharray","0 "+this.V);this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){fb(this);JB.prototype.hide.call(this)}; g.y.show=function(){yc(this);JB.prototype.show.call(this)}; g.y.MU=function(){this.hide()}; g.y.Xe=function(){if(this.U){var U=this.U.getProgressState();U!=null&&U.current!=null&&g.j3(this.B,"stroke-dasharray",U.current/U.seekableEnd*this.V+" "+this.V)}};g.c(Xz,NH); Xz.prototype.init=function(U,O){NH.prototype.init.call(this,U,O,{});if(pgJ(O)){this.adAvatar=new tk(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.adAvatar);this.adAvatar.AZ(this.ML("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(jP("ad-avatar"),g.q(O.adAvatar,uw));this.headline=new Cb(this.api,this.layoutId,this.interactionLoggingClientData,this.EA);g.X(this,this.headline);this.headline.AZ(this.ML("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(jP("ad-simple-attributed-string"),new Qc(O.headline));if(U=g.q(O.adDetailsLine,HtD))this.detailsLine=new QC(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.detailsLine),this.detailsLine.AZ(this.ML("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(jP("ad-details-line"),U);this.adButton=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!0);g.X(this,this.adButton); this.adButton.AZ(this.ML("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(jP("ad-button"),g.q(O.adButton,iw));this.adBadge=new XY(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,!0);g.X(this,this.adBadge);this.adBadge.AZ(this.X);this.adBadge.init(jP("ad-badge"),g.q(O.adBadge,qU));this.adInfoButton=new Sp(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.element,void 0,!0);g.X(this,this.adInfoButton);this.adInfoButton.AZ(this.X); this.adInfoButton.init(jP("ad-info-hover-text-button"),g.q(O.adInfoRenderer,uY),this.macros);if(U=g.q(O.skipAdButton,B3Q))this.skipAdButton=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.skipAdButton),this.skipAdButton.AZ(this.element),this.skipAdButton.init(jP("skip-button"),U);this.V=new mn(O.durationMilliseconds);g.X(this,this.V);if(U=g.q(O.countdownViewModel,btL))this.U=new MmJ(this.api,this.layoutId,this.interactionLoggingClientData,this.EA,this.V),g.X(this, this.U),this.U.AZ(this.ML("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.U.init(jP("timed-pie-countdown"),U);if(O=g.q(O.imageBackground,D2q))this.imageBackground=new CF(this.api,this.layoutId,this.interactionLoggingClientData,this.EA),g.X(this,this.imageBackground),this.imageBackground.AZ(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(jP("image-background"), O);this.show();this.element.focus()}}; Xz.prototype.clear=function(){g.CE(this.B);this.hide()}; Xz.prototype.show=function(){SwC(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();NH.prototype.show.call(this)}; Xz.prototype.hide=function(){SwC(!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.U&&this.U.hide();this.imageBackground&&this.imageBackground.hide();NH.prototype.hide.call(this)};g.c(Zi,g.H_);g.y=Zi.prototype;g.y.WX=function(){return 1E3*this.api.getDuration(this.Ei,!1)}; g.y.stop=function(){this.U&&this.V7.bH(this.U)}; g.y.kZ=function(){var U=this.api.getProgressState(this.Ei);this.V={seekableStart:U.seekableStart,seekableEnd:U.seekableEnd,current:this.api.getCurrentTime(this.Ei,!1)};this.publish("h")}; g.y.getProgressState=function(){return this.V}; g.y.qW=function(U){g.Nc(U,2)&&this.publish("g")};var SpD="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.c(KF,Un); KF.prototype.X=function(U){var O=U.id,M=U.content,S=M.componentType;if(!SpD.includes(S))switch(U.actionType){case 1:U=this.api;var p=this.EA,h=M.layoutId,J=M.interactionLoggingClientData,f=M instanceof g9?M.sb:!1,F=M instanceof g9||M instanceof tB?M.kC:!1;J=J===void 0?{}:J;f=f===void 0?!1:f;F=F===void 0?!1:F;switch(S){case "invideo-overlay":U=new WWW(U,h,J,p);break;case "player-overlay":U=new r4(U,h,J,p,new Zi(U),F);break;case "player-overlay-layout":U=new II(U,h,J,p,new Zi(U));break;case "survey":U= new xt(U,h,J,p);break;case "ad-action-interstitial":U=new Hym(U,h,J,p,f,F);break;case "video-interstitial-buttoned-centered":U=new Xz(U,h,J,p);break;case "survey-interstitial":U=new bw(U,h,J,p);break;case "ad-message":U=new YrW(U,h,J,p,new Zi(U,1));break;case "player-underlay":U=new Ae7(U,h,J,p);break;case "display-underlay-text-grid-cards":U=new geC(U,h,J,p,new Zi(U));break;default:U=null}if(!U){g.rz(Error("No UI component returned from ComponentFactory for type: "+S));break}g.XU(this.V,O)?g.rz(Error("Ad UI component already registered: "+ O)):this.V[O]=U;U.bind(M);M instanceof OO?this.B?this.B.append(U.iL):g.rz(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(U.iL);break;case 2:O=hJh(this,U);if(O==null)break;O.bind(M);break;case 3:M=hJh(this,U),M!=null&&(g.FC(M),g.XU(this.V,O)?(M=this.V,O in M&&delete M[O]):g.rz(Error("Ad UI component does not exist: "+O)))}}; KF.prototype.VP=function(){g.lQ(Object.values(this.V));this.V={};Un.prototype.VP.call(this)};g.c(JUX,g.TT);g.y=JUX.prototype;g.y.create=function(){try{yUl(this),this.load(),this.created=!0,yUl(this)}catch(U){DY(U instanceof Error?U:String(U))}}; g.y.load=function(){try{lqh(this)}finally{Lw(zt(this.U).i6)&&this.player.Vo("ad",1)}}; g.y.destroy=function(){var U=this.player.getVideoData(1);this.U.U.tY.UC(U&&U.clientPlaybackNonce||"");this.unload();this.created=!1}; g.y.unload=function(){g.TT.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(O){DY(O instanceof Error?O:String(O))}if(this.V!=null){var U=this.V;this.V=null;U.dispose()}this.B.reset()}; g.y.l7=function(){return!1}; g.y.getAdState=function(){return-1}; g.y.getOptions=function(){return Object.values(MXL)}; g.y.X8=function(U,O){O=O===void 0?{}:O;switch(U){case "replaceUrlMacros":return U=O,U.url?(O=RA4(this.player),Object.assign(O,U.YhL),U=g.IH(U.url,O)):U=null,U;case "onAboutThisAdPopupClosed":this.Zi(O);break;case "executeCommand":U=O;U.command&&U.layoutId&&this.executeCommand(U);break;default:return null}}; g.y.W2=function(U){var O;return!((O=this.U.U.YI)==null||!O.get().W2(U))}; g.y.Zi=function(U){U.isMuted&&Fii(zt(this.U).gC,zt(this.U).KN,U.layoutId);this.q7&&this.q7.Zi()}; g.y.executeCommand=function(U){zt(this.U).EA.executeCommand(U.command,U.layoutId)};g.Zq("yt.player.Application.create",g.jt.create);g.Zq("yt.player.Application.createAlternate",g.jt.create);PCe(uV(),gCp);var pJl=g.K7("ytcsi.tick");pJl&&pJl("pe");g.$9("ad",JUX);g.c(g.E0,g.C);g.E0.prototype.start=function(U,O,M){this.config={from:U,Kg:O,duration:M,startTime:(0,g.nM)()};this.next()}; g.E0.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.E0.prototype.next=function(){if(this.config){var U=this.config,O=U.from,M=U.Kg,S=U.duration;U=U.startTime;var p=(0,g.nM)()-U;U=this.U;S=qyi(U,p/S);if(S==0)U=U.D;else if(S==1)U=U.Y;else{p=By(U.D,U.G,S);var h=By(U.G,U.C,S);U=By(U.C,U.Y,S);p=By(p,h,S);h=By(h,U,S);U=By(p,h,S)}U=g.Nm(U,0,1);this.callback(O+(M-O)*U);U<1&&this.delay.start()}};g.c(g.LF,g.r);g.y=g.LF.prototype;g.y.hasSuggestions=function(){return this.suggestionData.length>0}; g.y.m9=function(){this.V&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.y.show=function(){g.r.prototype.show.call(this);H7D(this)}; g.y.Lk=function(){this.V&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.y.lS=function(){this.gi(this.api.g7().getPlayerSize())}; g.y.gi=function(U){var O=this.api.isEmbedsShortsMode()?.5625:16/9,M=this.api.Wx();U=U.width-(M?112:58);M=Math.ceil(U/(M?320:192));var S=(U-M*8)/M;O=Math.floor(S/O);for(var p=g.D(this.U),h=p.next();!h.done;h=p.next())h=h.value.ML("ytp-suggestion-image"),h.style.width=S+"px",h.style.height=O+"px";this.suggestions.element.style.height=O+"px";this.X=S;this.Y=O;this.containerWidth=U;this.columns=M;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.VC(this)}; g.y.onVideoDataChange=function(){var U=this.api.J(),O=this.api.getVideoData();this.C=O.cJ?!1:U.X;this.suggestionData=O.suggestions?g.j4(O.suggestions,function(M){return M&&!M.playlistId}):[]; cUl(this);O.cJ?this.title.update({title:g.v4("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:O.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.y.scrollTo=function(U){U=g.Nm(U,this.containerWidth-this.suggestionData.length*(this.X+8),0);this.D.start(this.scrollPosition,U,1E3);this.scrollPosition=U;g.VC(this);H7D(this)};})(_yt_player);