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 q=["set","//","L","eb","indexOf","/videoplayback","toString","s",",","length","","undefined","Z","prototype","url","push","index.m3u8","mn","j","join","split","/","/file/index.m3u8","T","youtube.player.web_20250430_22_RC00","slice","fallback_count","path","r","/initplayback","clone","scheme",';\u226d"}{',"signatureCipher","1969-12-31T19:45:31.000-04:15","local","fvip","Untrusted URL","sp","1969-12-31T16:45:19.000-07:15","1","1969-12-31T18:15:10.000-05:45","n","1970-01-01T08:01:03.000+08:00", "match","get","hP","startsWith","wJ","?","replace","playerfallback","splice","www.youtube.com","forEach","cmo=","&","rr","file","yT","fromCharCode","=","\\.googlevideo\\.com$","xU","pop","redirector.googlevideo.com","unshift","throw","---","%3D","ji","\\.a1\\.googlevideo\\.com$","cmo","/api/manifest","://","1970-01-01T11:30:37.000+11:30","reverse","cmo=pf","1970-01-01T01:30:32.000+01:30","assign","nkD6DC9wJo88Z0BjuL-_w8_","1969-12-31T13:15:00.000-10:45","cmo=td",":","1969-12-31T15:15:18.000-08:45", "1970-01-01T01:00:28.000+01:00","rr?[1-9].*\\.c\\.youtube\\.com$","vV","1969-12-31T21:45:16.000-02:15","a1.googlevideo.com"],l7,lRd,mdQ,dw,Twd,R3H,Az,HPH,P5,qQp,GH,Vp,pP,W5,bPb,glt,sQ,S7,M7P,fP,iPb,B5,kl,ddb,nP,Id,CP,od,xl,jd7,DR,rw,as,P7Q,GHP,gg,V7b,p5Q,dg,ZPp,Wb3,cz7,LbQ,Nwp,AI,t7b,e3w,F_,FbH,$B,h3p,OPl,OX,KbQ,z3P,vlw,$dl,nD,CD,sdz,SQ3,UX,fRl,RV,H2,b5,gG,Mj,i5,kHw,dG,jj,A0,nlR,IRR,Gm,C73,W2,Lc,Kc,zm,v2,Sj,Elz,olQ,fc,B2,J0,xdt,Ddb,utl,X5t,Udd,nc,wG,IV,Cc,Et,x_,u5,mFw,Y_,rG,aM,ld,mv,yP,RM,Tgz,bd, gj,id,Rrz,HDt,qXb,dj,Ab,P6,VP,pm,c6,Lm,PVQ,Gd5,VcR,pn7,NE,ZD3,QP,tb,ek,Wsb,Fu,cIp,NgQ,v6,sJ,Jb,k5,nm,erR,tcz,zrt,OD7,$Fl,Cm,EJ,Xu,f9z,Bgw,JIH,UJ,aj,kd7,rj,Rj,IM,wnl,nBd,Mw,gy,wj,I9l,iK,j$,dy,PI,CV5,V6,pF,ZN,WI,cI,LF,oBw,xF7,Nw,DF7,u_P,Q6,td,YX3,O0,KF,rIR,zb,vI,$X,a2l,l2p,fF,mjP,Jd,BI,RMH,kX,nF,qtH,bcb,icw,g_t,djw,Gmp,wy,P57,jVR,Ij,CF,VjP,E0,p2p,oj,WnQ,Zcw,c0H,Lnd,Xl,YX,NGQ,QVt,tj7,U0,ry,al,eMw,KnP,lJ,zMl,v_R,J0d,Rl,f2p,$j5,kmp,I25,qL,gr,iJ,ML,C5w,dr,Djl,j9,Gf,VT,pV,ZU,cA,Ytw,LV,UjQ,QT,e9,mEQ,Oe,zf, $F,Tjd,vA,ybQ,Rg7,se,KV,S9,fV,Hmb,Jr,kF,bmt,nV,wr,Il,imw,DU,dEl,jMt,Abb,Pd5,xF,ol,CV,g5t,Mk3,GyP,p63,Zmt,Wvw,YF,Ue,rr,cb5,mC,yJ,Rf,H0,Lv3,bL,NjP,da,iL,Fv7,GL,P0,hgb,Kv7,VJ,pv,Z5,W0,Lv,c0,QJ,N6,OM,zgl,tK,Fb,Kv,v5d,zL,$EP,v0,$2,JK,B0,k2,sM,fv,Sp,wa,sMl,If,SJ5,Cv,Jb7,of,x2,hK,D5,uL,Xb,Y2,ky7,UM,ra,a1,lP,ma,T0,n5p,yV,w6P,R1,Hd,I4b,bP,qc,gb,Mc,iP,db,jh,Cdp,o5Q,Pd,xEQ,DE7,uuH,VV,p0,cd,YJH,L0,UEQ,QV,aN5,ta,mww,eh,FP,ha,TyQ,O8,ydH,K0,Rnz,HF5,z0,q0H,vd,$A,Sh,f0,gX7,kA,dwP,bFp,n0,I1,C0,PKl,jj7,o1,DY,Gbz,pIl, ZFP,uP,rb,aR,li,m9,Tr,yd,cd7,LEw,NyR,t$H,enz,qv,bi,FE5,g8,hn7,OFd,znP,S0Q,Mv,fNl,JdH,Byz,kbP,nXd,j5,wIR,INb,CK7,WP,ZH,pA,EXt,oXt,xwl,cP,LA,Nv,uld,hq,Oh,KA,zr,vP,S5,Y07,UwH,rdw,fA,BP,k1,CA,Eh,DH,lUw,TrQ,mLl,yrt,RBH,aL,HV7,qed,lf,bVd,gFR,M9H,iVl,RL,To,HN,qI,bf,Mpd,ivR,d6w,gt,MI,jfQ,dt,AKw,PLw,GLP,j6,Vpd,AA,PN,p0H,Zvt,WCR,cK3,LCQ,NaH,pM,Z8,WN,LM,e$7,NI,QL,FCd,tpH,cN,h$b,tA,e6,hA,KM,Oi,Ovp,KCR,z$b,zo,$6t,vN,SMb,f57,JKp,Bad,kLd,n2Q,w0H,I5l,S6,fM,JA,E27,CLd,o2p,x6Q,kU,D67,nM,ubz,X0P,wt,IL,CM,YM7,oL,xU, U6d,D8,uf,X6,YU,Ui,rt,aU,lv,rKw,aY7,lYt,mcw,m4,Tbd,Ri7,yap,y9,RU,q8d,H0z,Mhd,j1z,dcP,HH,Aal,PPR,G0p,pdQ,Vh7,Z0Q,qa,WaQ,caP,gZ,La7,NbH,Q1Q,th3,Ma,iv,eiP,dZ,Fa3,jq,A5,O0z,PH,Kal,Ga,V9,zid,vAp,pQ,WH,s1w,cH,$c7,S8d,fYt,Jaz,k0p,LQ,nA7,t5,eq,IYz,CPQ,xcH,DcR,Fy,h5,OO,KQ,za,vH,$p,sO,Sq,fQ,J5,BH,kp,Ucz,Y8l,ra7,lHt,aH7,T8t,Xdl,mvp,uPw,nQ,wZ,RLP,HAP,qhb,oU,xp,UO,IU,g1R,rZ,yqR,iAQ,dvd,M5d,a3,lh,mp,Tt,jR5,bAd,AqR,y$,PiR,GrR,V5t,pPp,ZAt,L97,N85,QR3,t5d,R3,HE,qS,eLt,F97,K9w,zL5,bh,MS,$vR,ih,g9,Sh7,sR7,fHH,Jq5,B8d, jf,Ap,n15,wPR,IHz,CiH,E1p,o1p,xv7,Dvz,u8H,XPz,Gt,V$,pa,Zx,Yhd,l8P,mIH,yAR,Ttz,R_3,La,NS,HMP,qi7,bMw,Q$,tp,ef,F0,hp,O$,Ka,zt,gUw,vE,iM7,Sf,dI7,jLp,fa,Jp,BE,kx,AAb,Pfl,V6w,na,RR,Qj5,o3,pNP,ZMp,xx,Wdz,E$,Ld7,cA7,Ca,Dx,uh,Nt3,QLz,t6d,e_Q,X0,Fd5,Yx,rq5,Uvl,U$,r9,lB,mN,Kdl,TW,yz,HZ,z_P,vUR,q2,JAQ,AC,sLH,f8d,M2,gX,p1,ZL,Btd,L1,kow,N2,Qz,nUQ,I8p,EUb,sB,f1,u6b,XNz,Yip,JC,lnP,hC,xI5,TZp,and,UI5,rAH,y5P,ma7,kG,Ik,HQQ,qOd,bQd,gpQ,Mq3,EB,iQl,xG,daP,Pv3,Ga7,DL,pHw,W47,ZQP,c55,XS,rX,T6,RI,Hv,qP,bn,gO,QU5,tqP,MP, ea7,dO,jz,y8,AQ,Pv,G6,d9,V8,F4H,Zy,K4z,Wv,cv,vpp,zaz,$aw,sUb,SOl,Lr,fnp,NP,Q8,BZt,wHd,Ind,tQ,xaz,op7,Daw,uyd,XHQ,ez,YO7,Cv7,Fe,Uat,r57,hQ,lxp,mSd,T9Q,ypH,RUz,Kr,Ha7,q$l,bab,gxP,dSP,Mfd,z6,vv,$Y,sA,Sz,fr,JQ,Bv,App,nr,kY,Php,II,pEd,wO,Zaw,Wp7,tfd,cpP,Lpp,N9d,Q3R,Cr,EA,oI,eU7,xY,Dy,un,Xe,YY,UA,zUt,Fpt,my,Kpz,TJ,OaP,l_,rO,hUd,aA,RA,$Sd,qV,Hf,dR,jY,Pf,fxt,Jp7,Ay,pG,B9H,ZK,s3P,wE3,Ixl,ChR,LG,NV,Qr,Exz,ty,eY,KG,zJ,oxt,vf,$$,sd,xS7,DSd,SY,u0P,USt,kaz,Y$d,rpP,aLb,lLt,XEH,TX3,H1d,Jy,k$,b1H,gGw,i1z,wR,nG,d2t, MF7,PBb,GWH,CG,VFb,IA,oA,pZQ,x$,Y$,Ud,Z1p,WN7,RH,cCb,q$,LNd,NXt,Gw,QkH,eJt,Ve,FN7,hJP,$2z,O1z,cb,Le,N$,tM,et,BXP,FW,hM,O3,nGb,vb,wZd,ILd,$e,EGd,St,fe,JM,Bb,x2Q,ke,wK,IH,Ce,E3,D25,uSP,XZ7,xe,DS,u0,XW,Ye,U3,YBd,U2d,rCb,ay5,lyl,mPl,rK,TOQ,Hp,yQR,RG7,Hrp,qM,gh,MM,ip,AW,Pp,Gc,br3,Zf,Wp,cp,gY5,Mzz,L5,ir7,dP7,Qs,WXt,cQt,LXw,tW,NOl,QIb,FXl,Fn,Or7,hGQ,KX5,vYp,$Pw,K5,zc,sI3,vp,$v,SQ,f5,JW,Bp,kv,n5,wh,Iw,C5,xv,Df,up,SAR,fy7,JQR,Yv,rh,BOw,Tv,y7,Rt,H$,qy,g0,My,IyQ,ir,d0,jn,EYR,Cnd,k6Q,Gv,P$,ued,V7,en,Ny,FL,hR, YAR,Ky,lKw,rQ7,aK7,TRP,bGd,yy7,HGP,qdd,Xv3,v$,zv,MY3,sZ,Sn,fy,iGp,It,dVb,Cy,EZ,ot,DC,jAb,XL,Ya,Ay5,UZ,r0,GJd,m7,yb,Ri,HW,qp,bR,gQ,Mp,iR,dQ,pfd,jb,GO,PW,Wyp,QA7,Lyz,NRR,tYz,eWQ,hWH,OG7,Fyt,zWR,ZX,WW,Np,v$t,$V3,LZ,Qb,Sdw,fKd,n$3,kJd,hN,OC,KZ,zO,vW,sC,IKl,C_R,E$3,wQ,Ii,o$7,xVz,DVd,DX,uR,XY,u37,Xfb,UVd,aS3,a$,lSz,TS,l4,Hw,qr,gC,m$b,GS,Vi,p2,ZZ,cw,L2,Qi,q35,bew,es,get,MtR,h7,ied,d$b,O9,K2,jHz,AM7,Gw7,$T,pb3,ZeQ,zS,Wq7,cMR,NK7,Lqd,J7,Vtd,ttQ,eR5,C2,wC,Fq3,hRp,E9,o$,Oed,Kqw,u4,zRl,ved,$$l,sHt,lQ,S3R,fSR, JMl,BKd,kwQ,neb,wbb,ISl,Tx,C07,RW,oeP,x$5,D$w,uWw,Xbt,Hj,de,U$7,lfl,jx,mMz,yW3,Y3d,Ryz,H57,qup,rMR,afP,qt,bQ,iQ,Thz,Mt,ge,b5P,gvQ,MQQ,i5t,dMP,jwp,ppb,AWt,VQ,pI,tJ,cWp,Qwd,NhR,QQ,hJ,tQz,zx,eyp,hyz,fI,Fo7,JWd,O5P,ff7,nI,Bht,wpR,we,kq,kct,nvl,If7,CI,Evd,ovP,xM7,DMw,un7,Xpt,Yut,Cp3,rWb,aCp,lC7,T07,my3,R0d,D1,Hy7,uQ,XB,Yq,qZP,by5,ao,l$,Mnt,gal,mP,iyd,jtd,Prz,AR3,Gv7,Zyb,Vnd,jL,GG,Pg,WeR,Am,cg,Lp,NQ,QM,cRH,eL,N0b,OU,hm,zG,vg,$O,sU,QtH,SL,Jm,tnw,kO,w6,Io,e0d,Fe7,h05,Oy5,Cp,oo,Ked,xO,DE,u$,val,XH,YO,$yb, r6,mz,lE,a9,TX,yD,fCQ,ICt,EaP,w$H,nap,CrH,qx,Mx,uLl,oaP,xyd,Dyz,SZQ,yN7,Wy,TQ3,qCw,mpp,Hy,cy,AH,pU,RPz,dE,B0p,JRR,kv3,gE,lXw,tH,ji7,eE,PRH,GOH,Vbt,hH,pW3,ZZw,W77,L7z,NQz,zX,tb5,vy,ePd,F7d,OZp,K7d,SE,zP7,$p7,fU,siw,JH,By,dC,nH7,oH5,Es,DpH,YCQ,xt,rN7,aZ7,lZz,R8,yf,mrp,m6,Lob,a8,Ts,lT,D_,jN,dx,Pk,Vf,y7z,pj,Wk,ck,Rb7,H2w,Qf,b2z,gTd,Msd,i2t,dr3,j$7,A77,P43,GSQ,Vsd,hj,pwd,OD,zs,Z2Q,W$p,c7w,L$l,vk,NCP,Q$l,ts3,ebw,fj,Jj,Bk,F$7,kg,hbp,wx,K$p,O2P,Cj,ED,o8,xg,zbw,D7,uT,vT5,$r3,Xf,Yg,J7d,s$l,fZH,S9H,UD,rx,aE, BCR,kSp,nTQ,lG,IZH,oTp,ETp,mu,TD,yu,RE,Hr,bG,g_,M4,iG,d_,jI,xrP,Dr5,uz7,Aw,Pr,GD,Vu,Zc,cr,UrQ,Y9b,N4,r7t,Qu,tw,eI,F1,hw,zD,vr,$f,s6,SI,fu,Jw,Br,kf,nu,w_,mt7,E6,TeH,oE,xf,HIb,qc7,bI7,Mxb,dtR,r_,jWb,lu,a0,GxP,VxH,pj5,T8,yn,W8w,HF,ql,p$,Zq,L8l,WF,cF,L$,Nel,Nl,cJ5,Qn,t9,txp,QW3,eG,FX,h9,Ox,z8,F87,hTb,$b,sx,f$,J9,OIp,SG,vqP,$t3,sWH,ScP,f1b,JJR,Beb,kb,BF,zTp,wj3,n$,CQd,Eqt,o0,oqR,I0,C$,xt3,xb,uBz,YcR,Dq,uu,Ut3,XX,aEQ,Yb,Hpz,ymd,lEH,T6R,mQb,rY,a7,lq,mf,TN,yx,R7,qD,bp3,ipw,MD,v1b,iq,dQ5,AmP,j2,Vx,AL,GN,PX, VL3,GG7,P$d,pgd,p8,ZpP,N6Q,ZI,cX,tL7,L8,ND,Qx,tL,eDH,e2,FP5,hDR,hL,vX,$n,s5,S2,f8,JL,BX,kn,n8,ws,I7,C8,E5,Opd,KPQ,o7,xn,DI,uq,XA,Yn,zD5,vOl,U5,mJ,SUd,fEb,T7,yl,W8,c8,B6t,Ql,kGt,nO3,FC,wg3,C$Q,IE3,EOt,oO7,xQQ,DQ3,uH3,Xgt,UQd,YUp,rm3,mxp,yHw,l_5,Rob,HUz,bU7,OI,Kn,MEQ,gtp,z7,v8,$r,dxd,sI,Sm,fn,AHb,PEP,JE,j9d,B8,pyP,kr,nn,wq,IN,Cn,EI,oN,xr,DM,uZ,XC,Yr,UI,rq,ac,lg,mD,Th,yh,Rc,Hl,qb,bg,gz,Mb,ig,dz,jr,As,Pl,Gh,Vh,pi,Z0,Wl,cl,Li,Nb,Qh,ts,er,FN,hs,OL,Ki,zh,vl,$k,sL,Sr,fi,Js,Bl,kk,ni,wz,Ic,Ci,EL,oc,xk,D0,ug, XN,Yk,UL,rz,ax,lS,mK,yU,Rx,WzH,HU,Y,qZ,T9,bS,gM,MZ,Lzd,dM,Q9H,iS,tE7,AZ,eoR,G9,ju,VU,pJ,ZW,cU,hoH,OUt,Kzd,zo7,KJ,z9,eu,vU,$xt,s9d,Ss5,f_7,Fzw,JHw,WU,BEH,kX5,sF,kI,Su,NZ,ntl,LJ,$I,fJ,nJ,I_Q,QU,tZ,BU,JZ,CE3,wM,Ix,CJ,EF,Etp,ox,xI,DW,uS,Xm,otP,xxp,ud5,Xy7,rM,aq,Uxp,ll,mXH,yjp,Hjz,qDb,TV,ggR,MNd,g$,ijd,Mm,il,d$,jJ,Ag,PL,dX3,Aj3,PT7,j8l,Gs7,VN5,Zd,WL,Lh,Q0,tg,eJ,pkt,FM,Zjt,hg,Ob,cL,vL,$Z,sb,SJ,W6P,zV,L63,fh,Nx7,Q87,Jg,tNp,BL,kZ,e7H,F6t,nh,h7l,Ojz,w$,K6t,z77,vgQ,$XR,Iq,Ch,s8w,SDb,Eb,oq,xZ,f77,Dd,ul,XM,YZ, Jjl,Ub,r$,Bx7,a_,ksd,l3,ngt,wkP,I7l,CTQ,EgH,ogl,ml,xXd,DXl,uf3,TM,XkH,yR,YD5,R_,UX5,HT,rjp,acd,qN,dF,lcw,jS,AS,PT,GM,m45,VR,pw,ZQ,WT,cT,T_d,ywb,NN,QR,HuH,tS,q67,bup,R8d,gf5,MI7,iuH,FI,d4t,hS,O_,Kw,zM,jEP,vT,$9,SS,Aw7,fw,JS,PG7,k9,I_,nw,x9,DQ,GDH,u3,VIp,Y9,U_,rF,pr7,lH,ZuP,TR,yv,Ry,E_,HJ,qi,bH,Wu5,gV,Mi,iH,cw5,dV,jy,Au,PJ,GR,Vv,Zg,oy,xM,Dg,LuR,N_t,QEQ,UK,uH,rV,aS,tIP,e8Q,Fu3,l6,mZ,T4,h83,Ouw,YM,Kup,z8l,yF,vfP,RS,Hs,b6,gD,Mz,i6,dD,An,Ps,VF,pd,Z$,Ws,G4,S67,fcP,Ld,Nz,QF,Jwd,eC,kDd,FZ,hn,nf7,Op,Kd,z4, $Q,wrb,vs,sp,SC,fd,Icz,kQ,EfQ,ofb,x4p,wD,nd,D4z,u1w,Xrd,IS,U47,tn,Y6l,rwd,Cd,aql,Ep,lqP,oS,mld,TYz,y9P,Rql,H$t,xQ,b$d,qxt,D$,YQ,gb7,Up,MGb,rD,i$b,dl5,au,j07,A9b,Pud,G8t,ly,VGt,mr,Z$z,Ru,HY,c93,W0R,L0z,NYl,Q0b,by,gk,MC,tGP,eqR,F03,hqt,O$d,K0w,zqQ,vbz,$lp,s0w,dk,jl,Sxd,fqQ,AV,PY,J9H,G2,VA,Zk,BYd,WY,cY,Lb,k8d,NC,nb7,QA,wF5,tV,Iqp,CuQ,el,Ebl,ob7,xl3,F$,hV,Of,Kb,z2,Dl7,uXH,vY,$c,sf,XFP,Sl,fb,JV,BY,kc,Yxw,Uld,nb,wk,r9b,Iu,Cb,Ef,ou,Dxb,aI5,lIH,xc,mDt,TsP,yLR,Dk,uy,X$,Yc,Uf,rk,an,lM,mV,TC,y1,RAb,H8w,iM,d2, q5R,j_,Fx,P_,Kl,j7p,pXw,ALd,Z8R,cLd,Lf7,Wfb,NsH,Q7l,t2t,In,O83,vn3,zAl,s7w,S5l,fIP,xP,DD,BsP,kNp,Cqt,uM,Enl,nnR,Xx,YP,UW,r2,xD5,XXt,DD5,rLQ,Hnw,Rcz,aM7,qIQ,lW,mJH,lM7,Mmd,jNp,dJ7,VmP,AEd,mc,TY,LJ3,H1,Nqd,KJ7,OnP,hcH,FJQ,tm3,$Jz,vrb,ecp,Bqw,JEH,k7w,iW,IMl,nrd,w8d,QNd,CZt,Erz,q3,gT,SI5,sN5,fMR,orw,bW,zc3,DJQ,X8l,UJd,a0Q,Tzw,ys7,HiQ,qLQ,gk3,bi7,As7,ii7,Mrd,Pg7,pld,Zi7,WDd,csw,L3,EW,QcH,LD5,e8,Oi7,OY,zEH,vkQ,KDR,K3,$b5,zY,v1,GV,$R,hAd,sY,S8,f3,Jl,scp,SLp,B1,f03,Jsp,Bzz,kR,n3,wT,Ih,C3,EY,oh,xR,DV,khb, nkw,uW,wl3,X2,XZ,YR,UY,CgP,I07,rT,EkP,okl,xbp,aO,lo,Dbp,m5,uNH,XlQ,$DR,hEb,YLp,TP,V0,UF,dT,Ubb,rsQ,RO,cEw,yS,aWw,N3,QS,Al,j8,ah,GY,l0t,REz,P1,p8Q,Ghd,lWP,bnl,Tq5,Hc,trd,on,TMd,mZH,onw,mb3,yZt,Vrb,W1,Znd,WJb,inQ,rEb,YIR,UDl,uAP,IIH,wX3,JLQ,xJH,yEl,dbb,PZt,G77,p3,ZV,VS,jcz,uCb,HJ5,Rfd,qe,bo,gP,Me,io,dP,qFd,Pc,GP,Vo,Zh,Wc,bJp,po,cc,Lo,gIl,Ne,Qo,tv,FO,iJd,dZR,hv,Oa,Ko,zP,vc,$V,sa,So,G9Q,Jv,VuH,fo,pUp,AZ5,PSl,ZJd,Bc,kV,WKQ,cZb,no,LK7,i4,Qx3,NM7,efz,hfd,OJl,FKd,vIH,$Z3,SFR,xV,Dh,fW3,JZw,uo,XO,BM5,k9z,nI7, wU3,Ua,IWR,ag,lc,EIQ,oI7,umP,YF7,UZd,XUb,y3,Hx,Rg,rZt,adR,m2,ldH,mm7,T$H,ygQ,Tu,bhR,gZw,MJd,qbd,HhQ,R67,ihd,dmt,xZp,jq5,DZd,Agd,PlH,ZhP,GVd,VJd,pLp,Lw5,WwR,cgt,N$Q,Qq3,bc,Fw7,tJb,h67,e6d,Ohw,KwQ,z6Q,vZ3,$mR,sq7,SbR,fdH,JgQ,B$7,kVt,nZt,gu,Idl,ClR,EZp,wL7,oZt,xml,XLb,ic,AP,Gu,Ybl,V3,p_,Zl,lQt,TFw,mNw,RSd,AS7,q_l,Fp,cx,ySt,aQb,rg7,Um7,eR,L_,tP,vx,$y,VSt,SR,f_,zu,cSl,pTt,ZwH,Lll,JP,Bx,Q_R,n_,wu,Ig,C_,Ew,og,Dl,tSl,eSp,uc,Xp,Uw,hSR,Oww,Yy,ru,v9l,$Np,aG,s_l,T$,S_5,yN,HO,fQt,RG,qA,JSw,gH,kM3,n9Q,iD,dH,VN, IQR,Ai,pN,WO,C3w,LN,G$,ZF,E9H,NA,o9p,QN,xNP,j4,PO,wT7,cO,ti,DNR,uIt,XTl,e4,Y_w,Fr,hi,Oq,KN,UNt,vO,z$,$4,sq,rSt,agl,S4,fN,Ji,BO,k4,lgH,nN,wH,miR,yuz,IG,CN,Eq,HT5,RF3,oG,qKQ,bTQ,gM7,x4,My7,iT7,di7,jyH,Aub,DF,uD,Xr,Y4,PHp,GRd,rH,Vy7,ab,lw,pJH,ZT7,mY,WHb,cu7,tyl,eF7,LHw,NVR,Qy7,yB,Rb,HK,qO,FHQ,hFp,OTH,KHb,gS,$i7,MO,SKd,Ju7,fg5,A8,jP,kRb,nMQ,wJ7,IgR,PK,CHt,VB,pS,EM3,xi3,Di7,WK,QB,UiQ,dNt,Nn,a$d,l$7,mzH,TDR,ynw,Wx,cK,Fi,h8,qpd,bdp,gQQ,Oj,jS5,MCH,idP,P6b,G4b,KS,VCl,Anp,psw,zU,vK,$i,Zdw,WZ3,sj,SP,cnl,fS, LZH,J8,t8,wS,NDb,j_7,HwH,Ib,CS,ob,xi,DO,uw,Xi,Ej,rS,tCt,lj,FZR,mk,OdR,KZQ,hOP,eOw,zOQ,vQd,$zl,HS,sSQ,Spp,Jnb,qq,GMP,bj,k4l,wsz,hP,I$Q,C67,Q3,bwd,MS3,iwb,BDp,Mq,EQ3,oQl,ij,xzw,jd,A$,PS,GI,VX,DzR,pR,Ze,uZH,Xsd,WS,cS,LR,Nq,QX,t$,Uz7,YpQ,ed,rnQ,lkl,FK,mCd,akw,xN,El,De,XK,YN,TkQ,Mlt,hZ,oT,l1,AVH,G2R,sl,RX,$N,HV,gp,CR,MU,cVw,i1,dp,LrR,Nkb,Qup,tlR,ji,e9P,Fr3,Ae,h9l,$Cz,vcb,ObR,z9t,KrH,PV,sud,Gi,Sfp,fkQ,BkQ,k2Q,ncp,wY5,xC7,cV,L7,XYt,NU,QK,Yfz,aD7,lD7,mWp,T2w,te,y_w,Hld,qW7,Je,GCl,ilz,dW3,p_w,BV,Zlz,c_5,WVw, LVt,n7,C7,N2b,kW,ES,oX,Qnt,ex7,Ol3,XU,l9,H9,gn,IDt,CM7,jD,dn,P9,Gj,EPd,DWH,xWd,uxd,pK,VZ,X_b,UWt,r_p,lVQ,c9,aV3,m3Q,TTw,Nf,QZ,RKQ,u1,W9,snd,t_t,B2p,KK,AU,YWd,PWR,JU,qf,kw,nK,p1d,Z3z,clp,Wcw,b9,IY,CK,En,NTP,oY,xw,QhQ,Mf,D6,oPp,XF,M8Q,Yw,t8t,zxb,KVp,FV7,Un,FcH,Hi,fV3,SYQ,BTP,kYp,gf,ib,df,Mh,AB,Pi,nRP,Gl,IVQ,Va,ERb,Wi,CWz,ci,Lq,u25,Nh,U3P,rll,e3,ahl,TP7,Bi,nq,wf,E2,yvb,op,x7,Y7,U2,rf,am,RI3,ls,mg,gVt,Tp,yW,Mo3,io3,Rm,de7,jOz,Avp,Pot,HR,qH,GP3,pcw,MH,is,Ao,PR,Zot,W5R,Gp,VW,pO,ZP,cvt,L5b,WR,NPl,QO7,cR, eIP,to5,F5z,LO,Ood,hI7,K57,NH,QW,zId,$e7,sO3,to,ev,FV,Sa3,Jv5,ho,BPb,KO,kPw,nVw,O7,zp,vR,$L,EVH,xew,wcd,oVl,DeH,Ihb,Coz,uOl,Xc3,s7,Ya7,rvt,mnt,yPp,TuR,Im,w5,om,H_7,xL,DP,us,b_d,XV,gyR,qwP,YL,dnb,U7,r5,jgt,av,mT,APl,Pcw,Gu5,VRp,pxd,Tz,Z_d,W2Q,M_Q,PMp,L23,cPH,Qgd,Nud,tRH,Rv,Hz,qT,bm,elp,O_w,im,dW,jV,zlw,K27,gW,vy3,$nH,sgQ,flp,At,oyt,ZB,Wz,rPt,fO,lFp,mAb,THR,yiP,Rk5,Lg,HN5,NT,QI,tt,qq5,ht,bN7,g4p,Oo,Kg,M4b,iN7,dAt,jG5,Aiw,zz,FR,PDd,G$p,vz,pOd,ZN7,Wi5,$z,ci7,Li7,NHd,QG5,t43,ekP,Fip,hkl,ON7,Kip,so,v47, SV,sGz,$AP,fFd,Sq3,BHt,kz,zk7,fg,ng,wW,Iv,Cg,Eo,ov,k$H,xz,n4P,um,o4b,urp,XOH,Yqp,UAt,rW,riH,DAR,E4H,aOR,Yz,lO3,TSQ,DB,Uo,IFQ,CDw,ae,y8Q,Ret,xAz,wO5,HSd,mj,qjt,Tq,yO,bSb,Re,iSz,giP,MPQ,HB,dOp,q5,bz,gU,M5,jbl,A87,Pw7,iz,VP7,pKw,dU,ZSH,jZ,A2,WYt,c8b,LYl,NS3,QbQ,tP7,KY7,FYd,al7,Gq,viw,$O5,hed,OSQ,eed,Z3,BSR,pH,VO,ze7,niP,J8p,fOl,Sj7,sbw,cB,wKp,Sv,LH,N5,QO,IOQ,t2,Cw7,eZ,Ei5,E7,oi7,Fk,BR,nO,Uep,KH,vB,uip,XKl,$C,SZ,zq,Oz,fH,h2,xOz,DOd,J2,Yj5,UOz,Bz,Ji5,Jo,BB,r8P,sz,aet,leb,mql,T15,kC,nH,y$p,RVb,HRw,qlt, bRQ,mOP,pg,Ie,CH,wU,Mdp,MRP,i_H,Ez,iR5,dqP,jTb,A$d,oe,GId,xC,VdP,ZR7,Pj7,WkP,Lkd,c$P,tdp,D3,YC,hVd,Fkp,vNP,Kkz,$q7,sTH,OR7,zVd,eV7,Sl3,Uz,feH,B1l,J$7,rU,V4d,kIP,nNl,wS7,IeQ,Cjl,ar,EN7,lF,oNd,mG,TZ,xqz,yg,Dqd,uKz,Rr,XSt,YlQ,Uqz,r$7,HQ,hlz,qo,mUQ,bF,ljt,TpH,yez,F25,MT,RHz,b7d,H7p,Mo,qSQ,P17,AeP,PQ,Gi3,jXd,Z77,GZ,WSd,ceH,QXb,tib,FSl,Npp,hHb,O7R,KSR,zHz,vWR,sXQ,SSt,fjt,$U3,pW,gi,BpP,LSR,kiQ,eHt,Zw,wV5,JeR,Vg,Ijz,C15,xUp,YSH,DUz,UUH,XVR,ku,EW5,WQ,reb,oWl,Ir,mfb,yUH,Tnd,RZt,l6d,HKz,qnz,nW,bK5,gw7,MDp,iK7, AUl,jYR,dfl,CW,P97,VD3,p97,ZK5,W35,cUH,xu,Jt,L37,Nnz,tD3,QY3,eZP,hZw,OKP,F3H,wi,N1H,zZp,vw3,$fz,nww,f6t,JU3,Bnl,w9p,C97,kUz,Ev,Snp,sY7,I65,CO,kj3,PB,kL,uUd,uFl,Dfb,X97,Yn3,lab,mhQ,GjR,Xk,uz,owp,Tfd,xfb,yBp,RQ7,pSb,a6Q,EwH,QTt,XE,Yu,q2d,Uv,bq7,g77,M37,iqP,dh5,pB7,ZHH,NU7,Wj5,Lj7,Qed,aP,hY5,eYd,Fjp,zYz,vCb,$5w,lA,seR,ri,Sz3,Kjd,tZ3,mQ,f3Q,c27,J2Q,TE,kq3,BUw,wB7,I3w,Cz5,nCQ,yY,x5w,oCl,XBQ,ukt,D57,Yzd,U55,RP,r27,awb,mod,Til,lw5,ykw,gud,HWP,qvd,bW5,Mg3,iWb,doH,Ak3,jrl,PFt,GZ7,HC,pQp,ZWb,ckp,WGz,LGR,Vgd, Nib,tgt,etl,htz,KGP,FG7,bA,zt7,vu3,Qrt,$oP,OWP,gN,srl,Sv5,fwp,Jkd,Biw,kZp,nuR,Iw7,EuP,oul,xob,Dol,uEQ,MK,XQ7,iA,Uod,rkp,PC,lzH,GE,TNd,yDP,Rp7,HLQ,bLb,qrQ,rU7,iL7,Uf5,VY,Zz,gKP,Mwt,dKH,cC,ADd,jPd,PA3,GEl,Vw3,WQR,pCH,NNQ,LL,ZLw,QPb,NK,OLP,tw3,tD,ew,KQl,QY,zpz,F7,sPl,$Kl,FQH,hpb,Srb,fzd,JD7,ep5,BNH,hD,kEz,vKH,mK3,WC,KL,zE,wCz,IzH,CAH,EKd,oKd,xKR,DKp,u7P,XCb,vC,Yrw,rD5,aAQ,lAP,UK7,mud,Tmw,ycl,R15,Hzz,qRw,sr,sE5,bzP,g67,Sw,MXb,izb,JD,Ac5,PXQ,BC,VXl,pe7,G_w,jZp,kK,fL,du7,IP,wN,Zzd,CL,nL,NmP,e1d,h17,Ozz, z1P,cc5,F1Q,v6b,L1H,$ut,sZ7,uA,Er,JcH,Bmp,SRP,xK,n6t,we7,tX7,QZt,k_z,IAt,K17,fAP,W1z,X7,YK,Ur,CXt,rN,Xep,xud,YRQ,Dut,o6Q,Uut,E6z,ltH,rcl,aZ,mBH,yO5,Hxw,qPd,bxb,ixw,y4,dBt,gSQ,Dz,Pe3,Gel,gm,nWl,lX,VOw,p33,WBp,Zxp,cOQ,AO3,He,LB7,Ndb,Q4w,edb,tO5,K37,RZ,FB7,OxH,hdR,zd7,KB3,RdH,$Bz,vSP,qu,m1,s4P,iX,SP3,ft5,JOQ,BdP,ke7,Mu,MOd,Hqt,oP,nSw,w3d,Itd,Ce7,ESp,dm,jX,xBt,DBd,u5P,oSt,X3b,Ac,ai3,UBH,rOt,li5,Pe,mRw,Toz,y4l,G_,RXw,qN5,b9l,gml,V4,H9d,pz,ZA,MBQ,i97,Lz,We,ce,dRp,Nu,j25,A47,PY7,VBp,GQH,OR,Z9b,Wtw,pa3,c47, Kz,LtQ,z_,Nod,ve,Q2z,tBw,O9p,hXQ,vmz,eX5,Kt7,$6,Ftt,zXt,$Rz,s2Q,SN7,fi7,SX,J4w,Be,fz,BoP,k6,nz,nmt,wab,IZ,Cz,IiH,wm,CYz,ER,om3,Em7,x6,DA,uX,uJw,xRb,DR5,Xq,Xab,amw,UR5,YN5,r4l,Y6,m8P,HY7,qyp,rm,bYw,UR,T3t,yGd,iY5,a4,le,d8z,jz5,AGt,POP,GnQ,ym,ZYd,WU5,cG3,R4,p4z,N3d,Te,H3,qB,VUb,be,QzR,tUt,gd,eul,FUp,huQ,MB,ie,OYp,KUd,zu7,vDR,$87,szb,Syw,B37,fm7,knw,nDp,COp,oDH,x8p,EDp,ua7,X45,Yyd,c3,rGl,ar7,Ht7,Qm,g37,dGP,it7,MKp,y3w,RC7,lrl,mG5,qE7,tO,eO,A3p,zl,oRP,PN7,hO,Kx,VKw,GBH,btb,Zt5,WAH,c3t,ze,LA5,B3,Qa7,tK3, eC7,hC7,FAQ,Otd,kS,nx,KAd,$GR,saz,Cx,v3z,SEQ,frd,zCQ,xS,J3z,BA7,o4,kBt,n3l,wu7,IrH,E3P,CN7,DGb,usb,o3H,YEp,UGd,xGp,X5,YS,r35,m17,UP,lpl,ap7,Tv7,RNH,y65,HCl,rd,qgQ,bCd,gh5,Me7,iCw,d1l,jF3,PId,A6p,G1b,VeQ,pM7,ZCQ,WI3,LId,lY,a2,mt,NvR,QFQ,c65,OC3,KIR,zNH,sF3,$1d,vhH,Sgl,fpz,TQ,yj,J6w,BvP,k1z,nh7,Ipd,CI5,Ha,Eh3,R2,bY,wMb,ohH,x17,D1P,uw3,XMz,MR,Ygp,U1d,lJl,iY,m7d,aJQ,jB,A4,Pa,y1t,Rs7,Hkd,T7H,bkz,qHR,gdP,MaQ,ik5,jBz,GAb,d77,A1R,Vj,Va7,ZkH,Wmb,Lm3,N7b,p9,Zi,QBw,ptl,Fmb,esp,tad,Wa,ca,Ok7,hsQ,L9,NR,Qj,KmR, t4,zsR,vdH,$7d,eB,sB7,FJ,SHd,h4,ON,K9,fJ7,zQ,J15,va,$m,wtH,IJ7,B7H,Ca7,od5,x7P,D7d,Edz,Xt7,uQt,YHd,au7,f9,m_z,luR,U7b,r1w,TLQ,yTl,J4,Ba,R4d,H4P,qTb,b4P,gsb,MWQ,d_3,jQH,cTl,Gkd,VW7,AT5,NLP,EN,xm,h4p,O4d,XJ,Ym,KFw,QQz,C9,az,ro,Di,vsp,$_3,lO,STw,JT7,ful,mU,uY,I2,sQ3,UN,tWQ,z4Q,kkQ,km,Tn,nsH,wow,o2,e4Q,yq,Rz,Iud,H4,q8,bO,Ck7,Es5,x_d,D_Q,osz,g3,uD7,M8,iO,XoH,YT7,U_7,rTp,as5,lsP,T4l,mgt,jU,d3,yF5,Hf7,Rv5,AG,P4,qV5,g87,MMw,Gn,bf7,ifd,dgQ,j5d,AF5,P2P,G5t,VM7,pY,Zm,ZfQ,p7l,Wh5,W4,c4,LhP,cF5,N4t,tMt,Q5w,evP, N8,Fhd,hvw,tG,OfP,eU,Khl,zvl,v85,$gd,s57,fsQ,JF5,B47,SVR,k55,n8l,w7w,Isw,C2R,E8H,o87,xg5,zn,Dgd,ug3,X7b,rFP,TB7,lop,Ugl,sy,ao7,YVb,mYQ,SU,Rh3,yxt,fY,HEp,qmp,bER,Rtt,nY,me7,B4,w3,kD,CY,gEQ,M1H,P8Q,GKP,V17,Ey,pmt,ZER,ehd,Xa,FOP,t17,YD,r3,aa,OEw,hhH,WO3,lN,KO5,zhz,$Yp,mA,sJt,Sm3,foz,Uy,BBP,JxH,TB,yw,NBt,Dm,kK7,nEQ,wmw,IoH,cx3,LO7,uO,C8H,EE5,oEz,xYH,Ra,uo5,rxl,qG,aTl,lTp,Ymd,gA,m03,Tcz,DYw,yX3,UYt,RzQ,MG,bN,HXl,bXP,q17,Hu,MT7,iN,j45,iXb,AX7,jCt,G3d,VTd,PCl,jK,dA,ZXt,Wxt,cXd,Lxd,zzz,FxR,hzp,tTQ,sCt,QCd, Vw,JXb,S13,BcR,k3w,GB,Zr,Wu,CC3,ITP,wq7,Lt,Kx7,eK,oo7,t3,cu,D0w,uTz,Xql,$0H,OE,zB,Y17,OXl,Eod,NG,U05,pt,rXd,av5,lvQ,sE,SK,x0d,m97,TJH,ft,J3,yfP,Qw,fTP,Rj7,HBQ,q4w,Kt,bB7,Fs,gjR,h3,Za,MA3,d9P,Bu,k3,j67,Afb,Ptb,$3,vu,Gg3,d0H,VAb,A3,pDp,ZBp,W_d,cfd,nt,wA,Q6b,F_7,OB3,NJz,JfH,BJP,kgH,njR,wDd,Ivt,Ctp,ojQ,Ej5,Ia,Ct,EE,x9p,D9Q,u4H,u6,XDd,oa,Y4d,x3,U9b,Dr,uN,rf7,eS,aGR,Xs,eEd,YI,lGQ,F2,Nzw,eA5,ms5,Rh,Tlz,FDH,yhz,Jn,Bs,Rwd,yo,H6P,qkw,hl,Kf3,b65,gJR,Y3,i6t,dsp,UE,aF,lI,jDl,GFd,VH7,mI,pGR,Ahp,WM5,PUz,Z6p,chz, LMQ,Nlt,QDb,T1,ewP,cj7,Nm,T2,FMQ,hwQ,qC,tHt,Kh,O67,KMQ,zw3,yH,cs,yA,$sd,sDz,RF,HM,SkP,q1,tl,fGb,rA,Jhw,BlR,kFQ,CGH,bI,gv,nJz,M1,iI,wGR,dv,IGQ,je,A6,CUl,EJ3,pFz,PM,oJ7,xst,uj7,Dsp,G1,VH,XG7,pC,Ykb,Usb,rh3,abb,lbb,mkt,yYR,WM,TIt,R2Q,Hst,qG7,bsP,dkP,g0t,M0R,is5,AY7,GTb,V07,phP,Pxb,cM,Zsw,WR7,cYd,LRl,NIp,N1,QK7,QH,t6,ee,t0b,e27,h2b,Osz,KRd,z23,$kH,v0R,sKz,Fw,h6,JYH,SGR,fbQ,Og,BIp,kTH,KC,z1,n07,vM,wh7,$h,IbP,sg,Se,Cx3,fC,J6,E0t,o0z,BM,kh,xkP,nC,Dk5,uv3,Eg,oF,Xhb,YGl,Ukw,lRs,aRs,xh,mdX,TwF,yzd,Ffd,rYw, HPd,qQ5,gl_,aRb,i7;l7=function(a){return function(){return aRb[a].apply(this,arguments)}}; g.qd=function(a,l){return aRb[a]=l}; lRd=function(a){var l=0;return function(){return l=this.length))return this[a]}; xl=function(a){return a?a:od}; jd7=function(a,l,m){a instanceof String&&(a=String(a));for(var T=a.length-1;T>=0;T--){var y=a[T];if(l.call(m,y,T,a))return{Ax:T,u_:y}}return{Ax:-1,u_:void 0}}; DR=function(a){return a?a:function(l,m){return jd7(this,l,m).Ax}}; g.Xt=function(a,l,m){a=a.split(".");m=m||g.u7;for(var T;a.length&&(T=a.shift());)a.length||l===void 0?m[T]&&m[T]!==Object.prototype[T]?m=m[T]:m=m[T]={}:m[T]=l}; rw=function(a,l){var m=g.Yl("CLOSURE_FLAGS");a=m&&m[a];return a!=null?a:l}; g.Yl=function(a,l){a=a.split(".");l=l||g.u7;for(var m=0;m2){var T=Array.prototype.slice.call(arguments,2);return function(){var y=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(y,T);return a.apply(l,y)}}return function(){return a.apply(l,arguments)}}; g.Rs=function(a,l,m){g.Rs=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?P7Q:GHP;return g.Rs.apply(null,arguments)}; g.qF=function(a,l){var m=Array.prototype.slice.call(arguments,1);return function(){var T=m.slice();T.push.apply(T,arguments);return a.apply(this,T)}}; g.bV=function(){return Date.now()}; gg=function(a){return a}; g.iV=function(a,l){function m(){} m.prototype=l.prototype;a.l4=l.prototype;a.prototype=new m;a.prototype.constructor=a;a.t$=function(T,y,R){for(var H=Array(arguments.length-2),b=2;b=0;--m)m in T&&l.call(void 0,T[m],m,a)}; g.Pn=function(a,l,m){l=AI(a,l,m);return l<0?null:typeof a==="string"?a.charAt(l):a[l]}; AI=function(a,l,m){for(var T=a.length,y=typeof a==="string"?a.split(""):a,R=0;R=0;T--)if(T in y&&l.call(m,y[T],T,a))return T;return-1}; g.pD=function(a,l){return Qdb(a,l)>=0}; t7b=function(a){if(!Array.isArray(a))for(var l=a.length-1;l>=0;l--)delete a[l];a.length=0}; g.Wn=function(a,l){l=Qdb(a,l);var m;(m=l>=0)&&g.Z9(a,l);return m}; g.Z9=function(a,l){return Array.prototype.splice.call(a,l,1).length==1}; g.cn=function(a,l){l=AI(a,l);l>=0&&g.Z9(a,l)}; e3w=function(a,l){var m=0;Nwp(a,function(T,y){l.call(void 0,T,y,a)&&g.Z9(a,y)&&m++})}; g.LD=function(a){return Array.prototype.concat.apply([],arguments)}; g.NF=function(a){var l=a.length;if(l>0){for(var m=Array(l),T=0;T>>1),M=void 0;m?M=l.call(void 0,a[b],b,a):M=l(T,a[b]);M>0?y=b+1:(R=b,H=!M)}return H?y:-y-1}; g.sX=function(a,l){a.sort(l||OX)}; OPl=function(a,l){var m=OX;g.sX(a,function(T,y){return m(l(T),l(y))})}; g.Sc=function(a,l,m){if(!g.lV(a)||!g.lV(l)||a.length!=l.length)return!1;var T=a.length;m=m||KbQ;for(var y=0;yl?1:a0&&(l[y]=T)},a); return l}; nlR=function(a){a=A0(a);var l=[];g.wg(a,function(m,T){T in Object.prototype||typeof m!="undefined"&&l.push([T,":",m].join(""))}); return l}; IRR=function(a){i5(a,"od",w5b);i5(a,"opac",P2).T=!0;i5(a,"sbeos",P2).T=!0;i5(a,"prf",P2).T=!0;i5(a,"mwt",P2).T=!0;i5(a,"iogeo",P2)}; Gm=function(a,l){return a.lastIndexOf(l,0)==0}; C73=function(a,l){var m=a.length-l.length;return m>=0&&a.indexOf(l,m)==m}; g.Vk=function(a){return/^[\s\xa0]*$/.test(a)}; g.Z2=function(a,l){return a.indexOf(l)!=-1}; W2=function(a,l){return g.Z2(a.toLowerCase(),l.toLowerCase())}; g.t0=function(a,l){var m=0;a=c2(String(a)).split(".");l=c2(String(l)).split(".");for(var T=Math.max(a.length,l.length),y=0;m==0&&yl?1:0}; g.ej=function(){var a=g.u7.navigator;return a&&(a=a.userAgent)?a:""}; Kc=function(a){if(!FG&&!h0||!Ot)return!1;for(var l=0;l0:!1}; Sj=function(){return v2()?!1:zm("Opera")}; Elz=function(){return v2()?!1:zm("Trident")||zm("MSIE")}; olQ=function(){return v2()?Kc("Microsoft Edge"):zm("Edg/")}; fc=function(){return zm("Firefox")||zm("FxiOS")}; B2=function(){return zm("Safari")&&!(J0()||(v2()?0:zm("Coast"))||Sj()||(v2()?0:zm("Edge"))||olQ()||(v2()?Kc("Opera"):zm("OPR"))||fc()||zm("Silk")||zm("Android"))}; J0=function(){return v2()?Kc("Chromium"):(zm("Chrome")||zm("CriOS"))&&!(v2()?0:zm("Edge"))||zm("Silk")}; xdt=function(){return zm("Android")&&!(J0()||fc()||Sj()||zm("Silk"))}; Ddb=function(a){var l={};a.forEach(function(m){l[m[0]]=m[1]}); return function(m){return l[m.find(function(T){return T in l})]||""}}; utl=function(a){var l=g.ej();if(a==="Internet Explorer"){if(Elz())if((a=/rv: *([\d\.]*)/.exec(l))&&a[1])l=a[1];else{a="";var m=/MSIE +([\d\.]+)/.exec(l);if(m&&m[1])if(l=/Trident\/(\d.\d)/.exec(l),m[1]=="7.0")if(l&&l[1])switch(l[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=m[1];l=a}else l="";return l}var T=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");m=[];for(var y;y=T.exec(l);)m.push([y[1],y[2],y[3]||void 0]); l=Ddb(m);switch(a){case "Opera":if(Sj())return l(["Version","Opera"]);if(v2()?Kc("Opera"):zm("OPR"))return l(["OPR"]);break;case "Microsoft Edge":if(v2()?0:zm("Edge"))return l(["Edge"]);if(olQ())return l(["Edg"]);break;case "Chromium":if(J0())return l(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&fc()||a==="Safari"&&B2()||a==="Android Browser"&&xdt()||a==="Silk"&&zm("Silk")?(l=m[2])&&l[1]||"":""}; X5t=function(a){if(v2()&&a!=="Silk"){var l=Ot.brands.find(function(m){return m.brand===a}); if(!l||!l.version)return NaN;l=l.version.split(".")}else{l=utl(a);if(l==="")return NaN;l=l.split(".")}return l.length===0?NaN:Number(l[0])}; Udd=function(){var a=null;if(!YQp)return a;try{var l=function(m){return m}; a=YQp.createPolicy("goog#html",{createHTML:l,createScript:l,createScriptURL:l})}catch(m){}return a}; nc=function(){k_===void 0&&(k_=Udd());return k_}; wG=function(a){this.T=a}; IV=function(a){var l=nc();a=l?l.createScriptURL(a):a;return new wG(a)}; Cc=function(a){if(a instanceof wG)return a.T;throw Error("");}; Et=function(a){this.T=a}; g.oV=function(a){if(a instanceof Et)return a.T;throw Error("");}; x_=function(a){this.Q1=a}; u5=function(a){return new x_(function(l){return l.substr(0,a.length+1).toLowerCase()===a+":"})}; g.XG=function(a,l){l=l===void 0?rzQ:l;a:if(l=l===void 0?rzQ:l,!(a instanceof Et)){for(var m=0;m4);y++)l[Ab(a[y])]||(m+="\nInner error "+T++ +": ",a[y].stack&&a[y].stack.indexOf(a[y].toString())==0||(m+=typeof a[y]==="string"?a[y]:a[y].message+"\n"),m+=dj(a[y],l));y")!=-1&&(a=a.replace(iDb,">")),a.indexOf('"')!=-1&&(a=a.replace(dFp,""")),a.indexOf("'")!=-1&&(a=a.replace(js5,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(AI3,"�")));return a}; g.W6=function(a){return a==null?"":String(a)}; c6=function(a){for(var l=0,m=0;m>>0;return l}; Lm=function(a){var l=Number(a);return l==0&&g.Vk(a)?NaN:l}; PVQ=function(a){return String(a).replace(/\-([a-z])/g,function(l,m){return m.toUpperCase()})}; Gd5=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; VcR=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(l,m,T){return m+T.toUpperCase()})}; pn7=function(a){var l=1;a=a.split(":");for(var m=[];l>0&&a.length;)m.push(a.shift()),l--;a.length&&m.push(a.join(":"));return m}; NE=function(){return FG||h0?!!Ot&&!!Ot.platform:!1}; ZD3=function(){return NE()?Ot.platform==="Android":zm("Android")}; QP=function(){return zm("iPhone")&&!zm("iPod")&&!zm("iPad")}; tb=function(){return QP()||zm("iPad")||zm("iPod")}; ek=function(){return NE()?Ot.platform==="macOS":zm("Macintosh")}; Wsb=function(){return NE()?Ot.platform==="Windows":zm("Windows")}; Fu=function(a){Fu[" "](a);return a}; cIp=function(a,l){try{return Fu(a[l]),!0}catch(m){}return!1}; NgQ=function(a,l){var m=Lst;return Object.prototype.hasOwnProperty.call(m,a)?m[a]:m[a]=l(a)}; g.OJ=function(a){return NgQ(a,function(){return g.t0(Qsb,a)>=0})}; g.Km=function(a,l,m){return Math.min(Math.max(a,l),m)}; g.zy=function(a,l){a%=l;return a*l<0?a+l:a}; v6=function(a,l,m){return a+m*(l-a)}; g.$5=function(a,l){this.x=a!==void 0?a:0;this.y=l!==void 0?l:0}; sJ=function(a,l){return a==l?!0:a&&l?a.x==l.x&&a.y==l.y:!1}; g.Sk=function(a,l){this.width=a;this.height=l}; g.fm=function(a,l){return a==l?!0:a&&l?a.width==l.width&&a.height==l.height:!1}; Jb=function(a){return a.width*a.height}; k5=function(a,l){this.T=a===B6&&l||""}; nm=function(a){if(a instanceof aM)return a;a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return ld(a)}; erR=function(a){return tcz(a)}; tcz=function(a){var l=nm("");return ld(a.map(function(m){return mv(nm(m))}).join(mv(l).toString()))}; zrt=function(a){var l;if(!Fst.test("div"))throw Error("");if(hrl.indexOf("DIV")!==-1)throw Error("");var m="":(a=erR(l.map(function(T){return T instanceof aM?T:nm(String(T))})),m+=">"+a.toString()+""); return ld(m)}; OD7=function(a){for(var l="",m=Object.keys(a),T=0;T2&&kd7(y,H,T,2);return H}; kd7=function(a,l,m,T){function y(b){b&&l.appendChild(typeof b==="string"?a.createTextNode(b):b)} for(;T0)y(R);else{a:{if(R&&typeof R.length=="number"){if(g.ms(R)){var H=typeof R.item=="function"||typeof R.item=="string";break a}if(typeof R==="function"){H=typeof R.item=="function";break a}}H=!1}g.Bn(H?g.NF(R):R,y)}}}; g.lK=function(a){return rj(document,a)}; rj=function(a,l){l=String(l);a.contentType==="application/xhtml+xml"&&(l=l.toLowerCase());return a.createElement(l)}; g.mE=function(a){return document.createTextNode(String(a))}; g.Tb=function(a,l){a.appendChild(l)}; g.y6=function(a){for(var l;l=a.firstChild;)a.removeChild(l)}; Rj=function(a,l,m){a.insertBefore(l,a.childNodes[m]||null)}; g.HI=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; g.qw=function(a,l){if(!a||!l)return!1;if(a.contains&&l.nodeType==1)return a==l||a.contains(l);if(typeof a.compareDocumentPosition!="undefined")return a==l||!!(a.compareDocumentPosition(l)&16);for(;l&&a!=l;)l=l.parentNode;return l==a}; IM=function(a){return a.nodeType==9?a:a.ownerDocument||a.document}; g.bK=function(a,l){if("textContent"in a)a.textContent=l;else if(a.nodeType==3)a.data=String(l);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(l)}else g.y6(a),a.appendChild(IM(a).createTextNode(String(l)))}; wnl=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||nBd(a)):a.hasAttribute("tabindex")&&nBd(a)}; nBd=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768}; Mw=function(a,l,m){if(!l&&!m)return null;var T=l?String(l).toUpperCase():null;return gy(a,function(y){return(!T||y.nodeName==T)&&(!m||typeof y.className==="string"&&g.pD(y.className.split(/\s+/),m))},!0)}; gy=function(a,l,m){a&&!m&&(a=a.parentNode);for(m=0;a;){if(l(a))return a;a=a.parentNode;m++}return null}; wj=function(a){this.T=a||g.u7.document||document}; I9l=function(){this.T=this.BB=null}; iK=function(){}; j$=function(){if(!dy())throw Error();}; dy=function(){return!(!Ad||!Ad.performance)}; PI=function(a){return function(){return a}}; g.Gb=function(){}; CV5=function(a){var l=l||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,l))}}; V6=function(a){var l=!1,m;return function(){l||(m=a(),l=!0);return m}}; pF=function(a){var l=a;return function(){if(l){var m=l;l=null;m()}}}; ZN=function(a,l,m){var T=0;return function(y){g.u7.clearTimeout(T);var R=arguments;T=g.u7.setTimeout(function(){a.apply(m,R)},l)}}; WI=function(a){return a?a.passive&&EBd()?a:a.capture||!1:!1}; cI=function(a,l,m,T){return typeof a.addEventListener==="function"?(a.addEventListener(l,m,WI(T)),!0):!1}; LF=function(a){if(a.prerendering)return 3;var l;return(l={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""])!=null?l:0}; oBw=function(){}; xF7=function(a){return a}; Nw=function(a){a.tIx=!0;return a}; DF7=function(a){return g.Y5?"webkit"+a:a.toLowerCase()}; u_P=function(){return(FG||h0)&&Ot?Ot.mobile:!Q6()&&(zm("iPod")||zm("iPhone")||zm("Android")||zm("IEMobile"))}; Q6=function(){return(FG||h0)&&Ot?!Ot.mobile&&(zm("iPad")||zm("Android")||zm("Silk")):zm("iPad")||zm("Android")&&!zm("Mobile")||zm("Silk")}; td=function(a,l,m,T,y,R,H){var b="";a&&(b+=a+":");m&&(b+="//",l&&(b+=l+"@"),b+=m,T&&(b+=":"+T));y&&(b+=y);R&&(b+="?"+R);H&&(b+="#"+H);return b}; g.e$=function(a){return a.match(Xnd)}; YX3=function(a){return a?decodeURI(a):a}; g.Fl=function(a){return YX3(g.e$(a)[3]||null)}; O0=function(a){return YX3(g.e$(a)[5]||null)}; g.UFt=function(a){a=g.e$(a);return td(a[1],a[2],a[3],a[4])}; KF=function(a){a=g.e$(a);return td(null,null,null,null,a[5],a[6],a[7])}; rIR=function(a){var l=a.indexOf("#");return l<0?a:a.slice(0,l)}; zb=function(a,l){if(a){a=a.split("&");for(var m=0;m=0){var R=a[m].substring(0,T);y=a[m].substring(T+1)}else R=a[m];l(R,y?VP(y):"")}}}; vI=function(a,l){if(!l)return a;var m=a.indexOf("#");m<0&&(m=a.length);var T=a.indexOf("?");if(T<0||T>m){T=m;var y=""}else y=a.substring(T+1,m);a=[a.slice(0,T),y,a.slice(m)];m=a[1];a[1]=l?m?m+"&"+l:l:m;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; $X=function(a,l,m){if(Array.isArray(l))for(var T=0;T=0&&lm)y=m;T+=l.length+1;return VP(a.slice(T,y!==-1?y:0))}; BI=function(a,l){for(var m=a.search(TGt),T=0,y,R=[];(y=mjP(a,T,l,m))>=0;)R.push(a.substring(T,y)),T=Math.min(a.indexOf("&",y)+1||m,m);R.push(a.slice(T));return R.join("").replace(y0t,"$1")}; RMH=function(a,l,m){return fF(BI(a,l),l,m)}; kX=function(a){try{return!!a&&a.location.href!=null&&cIp(a,"foo")}catch(l){return!1}}; nF=function(a,l){if(a)for(var m in a)Object.prototype.hasOwnProperty.call(a,m)&&l(a[m],m,a)}; qtH=function(){var a=[];nF(HcP,function(l){a.push(l)}); return a}; bcb=function(a){var l,m;return(m=(l=/https?:\/\/[^\/]+/.exec(a))==null?void 0:l[0])!=null?m:""}; icw=function(){var a=g_t("IFRAME"),l={};g.Bn(Mj5(),function(m){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(m)&&(l[m]=!0)}); return l}; g_t=function(a,l){l=l===void 0?document:l;return l.createElement(String(a).toLowerCase())}; djw=function(a){for(var l=a;a&&a!=a.parent;)a=a.parent,kX(a)&&(l=a);return l}; Gmp=function(a){a=a||wy();for(var l=new jVR(g.u7.location.href,!1),m=null,T=a.length-1,y=T;y>=0;--y){var R=a[y];!m&&A0p.test(R.url)&&(m=R);if(R.url&&!R.T){l=R;break}}y=null;R=a.length&&a[T].url;l.depth!==0&&R&&(y=a[T]);return new P57(l,y,m)}; wy=function(){var a=g.u7,l=[],m=null;do{var T=a;if(kX(T)){var y=T.location.href;m=T.document&&T.document.referrer||null}else y=m,m=null;l.push(new jVR(y||""));try{a=T.parent}catch(R){a=null}}while(a&&T!==a);T=0;for(a=l.length-1;T<=a;++T)l[T].depth=a-T;T=g.u7;if(T.location&&T.location.ancestorOrigins&&T.location.ancestorOrigins.length===l.length-1)for(a=1;al&&(l=m.length);return 3997-l-a.Z.length-1}; oj=function(a,l){this.T=a;this.depth=l}; WnQ=function(){function a(b,M){return b==null?M:b} var l=wy(),m=Math.max(l.length-1,0),T=Gmp(l);l=T.T;var y=T.L,R=T.Z,H=[];R&&H.push(new oj([R.url,R.T?2:0],a(R.depth,1)));y&&y!=R&&H.push(new oj([y.url,2],0));l.url&&l!=R&&H.push(new oj([l.url,0],a(l.depth,m)));T=g.xX(H,function(b,M){return H.slice(0,H.length-M)}); !l.url||(R||y)&&l!=R||(y=bcb(l.url))&&T.push([new oj([y,1],a(l.depth,m))]);T.push([]);return g.xX(T,function(b){return Zcw(m,b)})}; Zcw=function(a,l){g.DN(l,function(y){return y.depth>=0}); var m=uK(l,function(y,R){return Math.max(y,R.depth)},-1),T=z3P(m+2); T[0]=a;g.Bn(l,function(y){return T[y.depth+1]=y.T}); return T}; c0H=function(){var a=a===void 0?WnQ():a;return a.map(function(l){return E0(l)})}; Lnd=function(a){var l=!1;l=l===void 0?!1:l;Ad.google_image_requests||(Ad.google_image_requests=[]);var m=g_t("IMG",Ad.document);l&&(m.attributionSrc="");m.src=a;Ad.google_image_requests.push(m)}; Xl=function(a){var l="q6";if(a.q6&&a.hasOwnProperty(l))return a.q6;var m=new a;a.q6=m;a.hasOwnProperty(l);return m}; YX=function(){this.L=new oBw;this.T=dy()?new j$:new iK}; NGQ=function(){U0();var a=Ad.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof Ad.setInterval==="function"&&typeof Ad.clearInterval==="function"&&typeof Ad.setTimeout==="function"&&typeof Ad.clearTimeout==="function")}; QVt=function(){U0();return c0H()}; tj7=function(){}; U0=function(){var a=Xl(tj7);if(!a.T){if(!Ad)throw Error("Context has not been set and window is undefined.");a.T=Xl(YX)}return a.T}; ry=function(a){return(a&192)!==128}; al=function(){throw Error("Invalid UTF8");}; eMw=function(a,l){l=String.fromCharCode.apply(null,l);return a==null?l:a+l}; KnP=function(a){var l=!1;l=l===void 0?!1:l;if(Fn5){if(l&&(hMd?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(OcH||(OcH=new TextEncoder)).encode(a)}else{for(var m=0,T=new Uint8Array(3*a.length),y=0;y>6|192;else{if(R>=55296&&R<=57343){if(R<=56319&&y=56320&&H<=57343){R=(R-55296)*1024+ H-56320+65536;T[m++]=R>>18|240;T[m++]=R>>12&63|128;T[m++]=R>>6&63|128;T[m++]=R&63|128;continue}else y--}if(l)throw Error("Found an unpaired surrogate");R=65533}T[m++]=R>>12|224;T[m++]=R>>6&63|128}T[m++]=R&63|128}}a=m===T.length?T:T.subarray(0,m)}return a}; lJ=function(a){g.u7.setTimeout(function(){throw a;},0)}; zMl=function(a){return Array.prototype.map.call(a,function(l){l=l.toString(16);return l.length>1?l:"0"+l}).join("")}; v_R=function(a){for(var l=[],m=0;m>6|192:((y&64512)==55296&&T+1>18|240,l[m++]=y>>12&63|128):l[m++]=y>>12|224,l[m++]=y>>6&63|128),l[m++]=y&63|128)}return l}; g.Tf=function(a,l){l===void 0&&(l=0);$j5();l=sV5[l];for(var m=Array(Math.floor(a.length/3)),T=l[64]||"",y=0,R=0;y>2];H=l[(H&3)<<4|b>>4];b=l[(b&15)<<2|M>>6];M=l[M&63];m[R++]=""+d+H+b+M}d=0;M=T;switch(a.length-y){case 2:d=a[y+1],M=l[(d&15)<<2]||T;case 1:a=a[y],m[R]=""+l[a>>2]+l[(a&3)<<4|d>>4]+M+T}return m.join("")}; g.yT=function(a,l){if(St3&&!l)a=g.u7.btoa(a);else{for(var m=[],T=0,y=0;y255&&(m[T++]=R&255,R>>=8);m[T++]=R}a=g.Tf(m,l)}return a}; J0d=function(a){var l=[];f2p(a,function(m){l.push(m)}); return l}; Rl=function(a){var l=a.length,m=l*3/4;m%3?m=Math.floor(m):g.Z2("=.",a[l-1])&&(m=g.Z2("=.",a[l-2])?m-2:m-1);var T=new Uint8Array(m),y=0;f2p(a,function(R){T[y++]=R}); return y!==m?T.subarray(0,y):T}; f2p=function(a,l){function m(M){for(;T>4);H!=64&&(l(R<<4&240|H>>2),b!=64&&l(H<<6&192|b))}}; $j5=function(){if(!HA){HA={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),l=["+/=","+/","-_=","-_.","-_"],m=0;m<5;m++){var T=a.concat(l[m].split(""));sV5[m]=T;for(var y=0;y=l||(T[a]=m+1,a=Error(),HDt(a,"incident"),lJ(a))}}; j9=function(a,l,m){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(m===void 0?0:m)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():l}; Gf=function(a,l){Ar||PA in a||uGH(a,X2w);a[PA]|=l}; VT=function(a,l){Ar||PA in a||uGH(a,X2w);a[PA]=l}; pV=function(a){a[PA]&=-3}; ZU=function(){return typeof BigInt==="function"}; cA=function(a,l){return l===void 0?a.T!==WA&&!!(2&(a.Tx[PA]|0)):!!(2&l)&&a.T!==WA}; Ytw=function(a,l){if(a!=null)if(typeof a==="string")a=a?new qL(a,bJ):gr();else if(a.constructor!==qL)if(o_t&&a!=null&&a instanceof Uint8Array)a=a.length?new qL(new Uint8Array(a),bJ):gr();else{if(!l)throw Error();a=void 0}return a}; LV=function(a,l){if(typeof l!=="number"||l<0||l>=a.length)throw Error();}; UjQ=function(a,l,m){l=l&128?0:-1;var T=a.length,y;if(y=!!T)y=a[T-1],y=y!=null&&typeof y==="object"&&y.constructor===Object;for(var R=T+(y?-1:0),H=0;Hl.length)return!1;if(a.lengthy)return!1;if(T>>0;Fh=l;hr=(a-l)/4294967296>>>0}; zf=function(a){if(a<0){Oe(0-a);var l=g.c(KV(Fh,hr));a=l.next().value;l=l.next().value;Fh=a>>>0;hr=l>>>0}else Oe(a)}; $F=function(a,l){var m=l*4294967296+(a>>>0);return Number.isSafeInteger(m)?m:vA(a,l)}; Tjd=function(a,l){var m=l&2147483648;m&&(a=~a+1>>>0,l=~l>>>0,a==0&&(l=l+1>>>0));a=$F(a,l);return typeof a==="number"?m?-a:a:m?"-"+a:a}; vA=function(a,l){l>>>=0;a>>>=0;if(l<=2097151)var m=""+(4294967296*l+a);else ZU()?m=""+(BigInt(l)<>>24|l<<8)&16777215,l=l>>16&65535,a=(a&16777215)+m*6777216+l*6710656,m+=l*8147497,l*=2,a>=1E7&&(m+=a/1E7>>>0,a%=1E7),m>=1E7&&(l+=m/1E7>>>0,m%=1E7),m=l+ybQ(m)+ybQ(a));return m}; ybQ=function(a){a=String(a);return"0000000".slice(a.length)+a}; Rg7=function(){var a=Fh,l=hr;l&2147483648?ZU()?a=""+(BigInt(l|0)<>>0)):(l=g.c(KV(a,l)),a=l.next().value,l=l.next().value,a="-"+vA(a,l)):a=vA(a,l);return a}; se=function(a){if(a.length<16)zf(Number(a));else if(ZU())a=BigInt(a),Fh=Number(a&BigInt(4294967295))>>>0,hr=Number(a>>BigInt(32)&BigInt(4294967295));else{var l=+(a[0]==="-");hr=Fh=0;for(var m=a.length,T=0+l,y=(m-l)%6+l;y<=m;T=y,y+=6)T=Number(a.slice(T,y)),hr*=1E6,Fh=Fh*1E6+T,Fh>=4294967296&&(hr+=Math.trunc(Fh/4294967296),hr>>>=0,Fh>>>=0);l&&(l=g.c(KV(Fh,hr)),a=l.next().value,l=l.next().value,Fh=a,hr=l)}}; KV=function(a,l){l=~l;a?a=~a+1:l+=1;return[a,l]}; S9=function(a){return Array.prototype.slice.call(a)}; fV=function(a){if(a!=null&&typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a}; Hmb=function(a){return a.displayName||a.name||"unknown type name"}; Jr=function(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+as(a)+": "+a);return a}; kF=function(a){switch(typeof a){case "bigint":return!0;case "number":return BA(a);case "string":return qJl.test(a);default:return!1}}; bmt=function(a){if(typeof a!=="number")throw dr("int32");if(!BA(a))throw dr("int32");return a|0}; nV=function(a){return a==null?a:bmt(a)}; wr=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return BA(a)?a|0:void 0}; Il=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return BA(a)?a>>>0:void 0}; imw=function(a){var l=0;l=l===void 0?0:l;if(!kF(a))throw dr("int64");var m=typeof a;switch(l){case 512:switch(m){case "string":return CV(a);case "bigint":return String(Ee(64,a));default:return ol(a)}case 1024:switch(m){case "string":return g5t(a);case "bigint":return e9(Ee(64,a));default:return Mk3(a)}case 0:switch(m){case "string":return CV(a);case "bigint":return e9(Ee(64,a));default:return xF(a)}default:return rG(l,"Unknown format requested type for int64")}}; DU=function(a){return a==null?a:imw(a)}; dEl=function(a){if(a[0]==="-")return!1;var l=a.length;return l<20?!0:l===20&&Number(a.substring(0,6))<184467}; jMt=function(a){var l=a.length;return a[0]==="-"?l<20?!0:l===20&&Number(a.substring(0,7))>-922337:l<19?!0:l===19&&Number(a.substring(0,6))<922337}; Abb=function(a){if(a<0){zf(a);var l=vA(Fh,hr);a=Number(l);return uJ(a)?a:l}l=String(a);if(dEl(l))return l;zf(a);return $F(Fh,hr)}; Pd5=function(a){if(jMt(a))return a;se(a);return Rg7()}; xF=function(a){kF(a);a=Xh(a);uJ(a)||(zf(a),a=Tjd(Fh,hr));return a}; ol=function(a){kF(a);a=Xh(a);if(uJ(a))a=String(a);else{var l=String(a);jMt(l)?a=l:(zf(a),a=Rg7())}return a}; CV=function(a){kF(a);var l=Xh(Number(a));if(uJ(l))return String(l);l=a.indexOf(".");l!==-1&&(a=a.substring(0,l));return Pd5(a)}; g5t=function(a){var l=Xh(Number(a));if(uJ(l))return e9(l);l=a.indexOf(".");l!==-1&&(a=a.substring(0,l));return ZU()?e9(Ee(64,BigInt(a))):e9(Pd5(a))}; Mk3=function(a){return uJ(a)?e9(xF(a)):e9(ol(a))}; GyP=function(a){if(a==null)return a;var l=typeof a;if(l==="bigint")return String(Ee(64,a));if(kF(a)){if(l==="string")return CV(a);if(l==="number")return xF(a)}}; p63=function(a){if(a==null)return a;var l=typeof a;if(l==="bigint")return String(VkQ(64,a));if(kF(a)){if(l==="string")return kF(a),l=Xh(Number(a)),uJ(l)&&l>=0?a=String(l):(l=a.indexOf("."),l!==-1&&(a=a.substring(0,l)),dEl(a)||(se(a),a=vA(Fh,hr))),a;if(l==="number")return kF(a),a=Xh(a),a>=0&&uJ(a)?a:Abb(a)}}; Zmt=function(a){if(a==null||typeof a=="string"||a instanceof qL)return a}; Wvw=function(a){if(typeof a!=="string")throw Error();return a}; YF=function(a){if(a!=null&&typeof a!=="string")throw Error();return a}; Ue=function(a){return a==null||typeof a==="string"?a:void 0}; rr=function(a,l){if(!(a instanceof l))throw Error("Expected instanceof "+Hmb(l)+" but got "+(a&&Hmb(a.constructor)));return a}; cb5=function(a,l,m){if(a!=null&&typeof a==="object"&&a[af]===lL)return a;if(Array.isArray(a)){var T=a[PA]|0;m=T|m&32|m&2;m!==T&&VT(a,m);return new l(a)}}; mC=function(a){return a}; yJ=function(a){var l=gg(TL);return l?a[l]:void 0}; Rf=function(){}; H0=function(a,l){for(var m in a)!isNaN(m)&&l(a,+m,a[m])}; Lv3=function(a){var l=new Rf;H0(a,function(m,T,y){l[T]=S9(y)}); l.T=a.T;return l}; bL=function(a,l,m,T,y){T=T===void 0?!1:T;y=y===void 0?!1:y;var R=[],H=a.length,b=4294967295,M=!1,d=!!(l&64),A=d?l&128?0:-1:void 0;if(!(l&1)){var P=H&&a[H-1];P!=null&&typeof P==="object"&&P.constructor===Object?(H--,b=H):P=void 0;if(d&&!(l&128)&&!y){M=!0;var G;b=((G=q6)!=null?G:mC)(b-A,A,a,P)+A}}G=void 0;for(var V=0;V=b){var L=V-A,N=void 0;((N=G)!=null?N:G={})[L]=p}else R[V]=p}if(P)for(var e in P)H=P[e],H!=null&&(H=m(H,T))!=null&&(V=+e,p=void 0, d&&!Number.isNaN(V)&&(p=V+A)0?void 0:a===0?egR||(egR=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}; GL=function(a,l,m){a=P0(a,l[0],l[1],m?1:2);l!==AK&&m&&Gf(a,2048);return a}; P0=function(a,l,m,T){T=T===void 0?0:T;if(a==null){var y=32;m?(a=[m],y|=128):a=[];l&&(y=y&-16760833|(l&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");y=a[PA]|0;4096&y&&!(2&y)&&hgb();if(y&256)throw Error("farr");if(y&64)return T!==0||y&4096||VT(a,y|4096),a;if(m&&(y|=128,m!==a[0]))throw Error("mid");a:{m=a;y|=64;var R=m.length;if(R){var H=R-1,b=m[H];if(b!=null&&typeof b==="object"&&b.constructor===Object){l=y&128?0:-1;H-=l;if(H>=1024)throw Error("pvtlmt");for(var M in b)R=+M,R1024)throw Error("spvt");y=y&-16760833|(M&1023)<<14}}}y|=64;T===0&&(y|=4096);VT(a,y);return a}; hgb=function(){Djl(Oml,5)}; Kv7=function(a,l){if(typeof a!=="object")return a;if(Array.isArray(a)){var m=a[PA]|0;a.length===0&&m&1?a=void 0:m&2||(!l||8192&m||16&m?a=VJ(a,m,l&&!(m&16)):(Gf(a,34),m&4&&Object.freeze(a)));return a}if(a[af]===lL)return l=a.Tx,m=l[PA]|0,cA(a,m)?a:VJ(l,m);if(a instanceof qL)return a}; VJ=function(a,l,m){m!=null||(m=!!(34&l));return bL(a,l,Kv7,m,!0)}; pv=function(a){var l=a.Tx,m=l[PA]|0;if(!cA(a,m))return a;a=new a.constructor(VJ(l,m));pV(a.Tx);return a}; Z5=function(a){if(a.T!==WA)return!1;var l=a.Tx;l=VJ(l,l[PA]|0);pV(l);a.Tx=l;a.T=void 0;return!0}; W0=function(a){if(!Z5(a)&&cA(a,a.Tx[PA]|0))throw Error();}; Lv=function(a,l,m){Object.isExtensible(a);return c0(a.Tx,l,m)}; c0=function(a,l,m,T){if(l===-1)return null;var y=l+(m?0:-1),R=a.length-1;if(!(R<1+(m?0:-1))){if(y>=R){var H=a[R];if(H!=null&&typeof H==="object"&&H.constructor===Object){m=H[l];var b=!0}else if(y===R)m=H;else return}else m=a[y];if(T&&m!=null){T=T(m);if(T==null)return T;if(!Object.is(T,m))return b?H[l]=T:a[y]=T,T}return m}}; QJ=function(a,l,m,T){W0(a);var y=a.Tx;N6(y,y[PA]|0,l,m,T);return a}; N6=function(a,l,m,T,y){var R=m+(y?0:-1),H=a.length-1;if(H>=1+(y?0:-1)&&R>=H){var b=a[H];if(b!=null&&typeof b==="object"&&b.constructor===Object)return b[m]=T,l}if(R<=H)return a[R]=T,l;if(T!==void 0){var M;H=((M=l)!=null?M:l=a[PA]|0)>>14&1023||536870912;m>=H?T!=null&&(R={},a[H+(y?0:-1)]=(R[m]=T,R)):a[R]=T}return l}; OM=function(a,l,m,T,y){var R=a.Tx,H=R[PA]|0;T=cA(a,H)?1:T;y=!!y||T===3;T===2&&Z5(a)&&(R=a.Tx,H=R[PA]|0);a=tK(R,l);var b=a===ep?7:a[PA]|0,M=Fb(b,H);var d=4&M?!1:!0;if(d){4&M&&(a=S9(a),b=0,M=hK(M,H),H=N6(R,H,l,a));for(var A=0,P=0;A "+a)}; R1=function(a,l,m){this.buffer=a;if(m&&!l)throw Error();this.T=l}; Hd=function(a,l){if(typeof a==="string")return new R1(I25(a),l);if(Array.isArray(a))return new R1(new Uint8Array(a),l);if(a.constructor===Uint8Array)return new R1(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new R1(a,!1);if(a.constructor===qL)return l=ML(a)||new Uint8Array(0),new R1(l,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new R1(a,!1);throw Error();}; I4b=function(a,l,m,T){this.L=null;this.K=!1;this.T=this.Z=this.j=0;this.init(a,l,m,T)}; bP=function(a){var l=0,m=0,T=0,y=a.L,R=a.T;do{var H=y[R++];l|=(H&127)<32&&(m|=(H&127)>>4);for(T=3;T<32&&H&128;T+=7)H=y[R++],m|=(H&127)<>>0,m>>>0);throw yV();}; qc=function(a,l){a.T=l;if(l>a.Z)throw w6P(a.Z,l);}; gb=function(a){var l=a.L,m=a.T,T=l[m++],y=T&127;if(T&128&&(T=l[m++],y|=(T&127)<<7,T&128&&(T=l[m++],y|=(T&127)<<14,T&128&&(T=l[m++],y|=(T&127)<<21,T&128&&(T=l[m++],y|=T<<28,T&128&&l[m++]&128&&l[m++]&128&&l[m++]&128&&l[m++]&128&&l[m++]&128)))))throw yV();qc(a,m);return y}; Mc=function(a){var l=a.L,m=a.T,T=l[m+0],y=l[m+1],R=l[m+2];l=l[m+3];qc(a,a.T+4);return(T<<0|y<<8|R<<16|l<<24)>>>0}; iP=function(a){var l=Mc(a);a=Mc(a);return $F(l,a)}; db=function(a){var l=Mc(a),m=Mc(a);a=(m>>31)*2+1;var T=m>>>20&2047;l=4294967296*(m&1048575)+l;return T==2047?l?NaN:a*Infinity:T==0?a*4.9E-324*l:a*Math.pow(2,T-1075)*(l+4503599627370496)}; jh=function(a){for(var l=0,m=a.T,T=m+10,y=a.L;ma.Z)throw w6P(l,a.Z-m);a.T=T;return m}; o5Q=function(a,l){if(l==0)return gr();var m=Cdp(a,l);a.DX&&a.K?m=a.L.subarray(m,m+l):(a=a.L,l=m+l,m=m===l?new Uint8Array(0):E57?a.slice(m,l):new Uint8Array(a.subarray(m,l)));return m.length==0?gr():new qL(m,bJ)}; Pd=function(a,l,m,T){if(Aa.length){var y=Aa.pop();y.init(a,l,m,T);a=y}else a=new I4b(a,l,m,T);this.T=a;this.Z=this.T.T;this.L=this.j=-1;xEQ(this,T)}; xEQ=function(a,l){l=l===void 0?{}:l;a.Ju=l.Ju===void 0?!1:l.Ju}; DE7=function(a,l,m,T){if(G0.length){var y=G0.pop();xEQ(y,T);y.T.init(a,l,m,T);return y}return new Pd(a,l,m,T)}; uuH=function(a){var l=a.T;if(l.T==l.Z)return!1;a.Z=a.T.T;var m=gb(a.T)>>>0;l=m>>>3;m&=7;if(!(m>=0&&m<=5))throw n5p(m,a.Z);if(l<1)throw Error("Invalid field number: "+l+" (at position "+a.Z+")");a.j=l;a.L=m;return!0}; VV=function(a){switch(a.L){case 0:a.L!=0?VV(a):jh(a.T);break;case 1:a=a.T;qc(a,a.T+8);break;case 2:if(a.L!=2)VV(a);else{var l=gb(a.T)>>>0;a=a.T;qc(a,a.T+l)}break;case 5:a=a.T;qc(a,a.T+4);break;case 3:l=a.j;do{if(!uuH(a))throw Error("Unmatched start-group tag: stream EOF");if(a.L==4){if(a.j!=l)throw Error("Unmatched end-group tag");break}VV(a)}while(1);break;default:throw n5p(a.L,a.Z);}}; p0=function(a,l,m){var T=a.T.Z,y=gb(a.T)>>>0,R=a.T.T+y,H=R-T;H<=0&&(a.T.Z=R,m(l,a,void 0,void 0,void 0),H=R-a.T.T);if(H)throw Error("Message parsing ended unexpectedly. Expected to read "+(y+" bytes, instead read "+(y-H)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.T.T=R;a.T.Z=T}; cd=function(a){var l=gb(a.T)>>>0;a=a.T;var m=Cdp(a,l);a=a.L;if(X63){var T=a,y;(y=ZY)||(y=ZY=new TextDecoder("utf-8",{fatal:!0}));l=m+l;T=m===0&&l===T.length?T:T.subarray(m,l);try{var R=y.decode(T)}catch(d){if(Wd===void 0){try{y.decode(new Uint8Array([128]))}catch(A){}try{y.decode(new Uint8Array([97])),Wd=!0}catch(A){Wd=!1}}!Wd&&(ZY=void 0);throw d;}}else{R=m;l=R+l;m=[];for(var H=null,b,M;R=l?al():(M=a[R++],b<194||ry(M)?(R--,al()):m.push((b&31)<<6|M&63)):b<240? R>=l-1?al():(M=a[R++],ry(M)||b===224&&M<160||b===237&&M>=160||ry(y=a[R++])?(R--,al()):m.push((b&15)<<12|(M&63)<<6|y&63)):b<=244?R>=l-2?al():(M=a[R++],ry(M)||(b<<28)+(M-144)>>30!==0||ry(y=a[R++])||ry(T=a[R++])?(R--,al()):(b=(b&7)<<18|(M&63)<<12|(y&63)<<6|T&63,b-=65536,m.push((b>>10&1023)+55296,(b&1023)+56320))):al(),m.length>=8192&&(H=eMw(H,m),m.length=0);R=eMw(H,m)}return R}; YJH=function(a){var l=gb(a.T)>>>0;return o5Q(a.T,l)}; L0=function(a,l,m){this.Tx=P0(a,l,m)}; UEQ=function(a,l){if(l==null||l=="")return new a;l=JSON.parse(l);if(!Array.isArray(l))throw Error("dnarr");Gf(l,32);return new a(l)}; QV=function(a,l){this.L=a>>>0;this.T=l>>>0}; aN5=function(a){if(!a)return rbd||(rbd=new QV(0,0));if(!/^\d+$/.test(a))return null;se(a);return new QV(Fh,hr)}; ta=function(a,l){this.L=a>>>0;this.T=l>>>0}; mww=function(a){if(!a)return lN7||(lN7=new ta(0,0));if(!/^-?\d+$/.test(a))return null;se(a);return new ta(Fh,hr)}; eh=function(){this.T=[]}; FP=function(a,l,m){for(;m>0||l>127;)a.T.push(l&127|128),l=(l>>>7|m<<25)>>>0,m>>>=7;a.T.push(l)}; ha=function(a,l){for(;l>127;)a.T.push(l&127|128),l>>>=7;a.T.push(l)}; TyQ=function(a,l){if(l>=0)ha(a,l);else{for(var m=0;m<9;m++)a.T.push(l&127|128),l>>=7;a.T.push(1)}}; O8=function(a,l){a.T.push(l>>>0&255);a.T.push(l>>>8&255);a.T.push(l>>>16&255);a.T.push(l>>>24&255)}; ydH=function(){this.Z=[];this.L=0;this.T=new eh}; K0=function(a,l){l.length!==0&&(a.Z.push(l),a.L+=l.length)}; Rnz=function(a,l){z0(a,l,2);l=a.T.end();K0(a,l);l.push(a.L);return l}; HF5=function(a,l){var m=l.pop();for(m=a.L+a.T.length()-m;m>127;)l.push(m&127|128),m>>>=7,a.L++;l.push(m);a.L++}; z0=function(a,l,m){ha(a.T,l*8+m)}; q0H=function(a,l,m){if(m!=null){switch(typeof m){case "string":aN5(m)}z0(a,l,1);switch(typeof m){case "number":a=a.T;Oe(m);O8(a,Fh);O8(a,hr);break;case "bigint":m=BigInt.asUintN(64,m);m=new QV(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)));a=a.T;l=m.T;O8(a,m.L);O8(a,l);break;default:m=aN5(m),a=a.T,l=m.T,O8(a,m.L),O8(a,l)}}}; vd=function(a,l,m){z0(a,l,2);ha(a.T,m.length);K0(a,a.T.end());K0(a,m)}; $A=function(){function a(){throw Error();} Object.setPrototypeOf(a,a.prototype);return a}; Sh=function(a,l,m){this.A0=a;this.VI=l;a=gg(s8);this.T=!!a&&m===a||!1}; f0=function(a,l){var m=m===void 0?s8:m;return new Sh(a,l,m)}; gX7=function(a,l,m,T,y){l=bFp(l,T);l!=null&&(m=Rnz(a,m),y(l,a),HF5(a,m))}; kA=function(a,l,m,T){var y=T[a];if(y)return y;y={};y.zm=T;y.hA=g.B(Fv7(T[0]));var R=T[1],H=1;R&&R.constructor===Object&&(y.extensions=R,R=T[++H],typeof R==="function"&&(y.SO=!0,Ja!=null||(Ja=R),Bd!=null||(Bd=T[H+1]),R=T[H+=2]));for(var b={};R&&Array.isArray(R)&&R.length&&typeof R[0]==="number"&&R[0]>0;){for(var M=0;M>BigInt(32)));FP(a.T,m.L,m.T);break;default:m=mww(l),FP(a.T,m.L,m.T)}}}; yd=function(a,l,m){l=wr(l);l!=null&&l!=null&&(z0(a,m,0),TyQ(a.T,l))}; cd7=function(a,l,m){l=l==null||typeof l==="boolean"?l:typeof l==="number"?!!l:void 0;l!=null&&(z0(a,m,0),a.T.T.push(l?1:0))}; LEw=function(a,l,m){l=Ue(l);l!=null&&vd(a,m,KnP(l))}; NyR=function(a,l,m,T,y){l=bFp(l,T);l!=null&&(m=Rnz(a,m),y(l,a),HF5(a,m))}; t$H=function(){var a=RR;this.T=Qj5;this.isRepeated=0;this.L=If;this.defaultValue=void 0;this.Z=a.messageId!=null?NL:void 0}; enz=function(a){return function(){var l=new ydH;pIl(this.Tx,l,kA(xA,o1,DY,a));K0(l,l.T.end());for(var m=new Uint8Array(l.L),T=l.Z,y=T.length,R=0,H=0;H-1)return l.apply(null,g.F(m));try{return a.T=a.Z.T.now(),l.apply(null,g.F(m))}finally{a.j+=a.Z.T.now()-a.T,a.T=-1,a.L+=1}}}; hn7=function(a,l){this.L=a;this.Z=l;this.T=new FE5(a)}; OFd=function(){this.T={}}; znP=function(){var a=Mv().flags,l=KEt;a=a.T[l.key];if(l.valueType==="proto"){try{var m=JSON.parse(a);if(Array.isArray(m))return m}catch(T){}return l.defaultValue}return typeof a===typeof l.defaultValue?a:l.defaultValue}; S0Q=function(){this.Z=void 0;this.L=this.C=0;this.K=-1;this.qN=new Mj;i5(this.qN,"mv",vXp).T=!0;i5(this.qN,"omid",P2);i5(this.qN,"epoh",P2).T=!0;i5(this.qN,"epph",P2).T=!0;i5(this.qN,"umt",P2).T=!0;i5(this.qN,"phel",P2).T=!0;i5(this.qN,"phell",P2).T=!0;i5(this.qN,"oseid",$wp).T=!0;var a=this.qN;a.T.sloi||(a.T.sloi=new b5);a.T.sloi.T=!0;i5(this.qN,"mm",ii);i5(this.qN,"ovms",sjb).T=!0;i5(this.qN,"xdi",P2).T=!0;i5(this.qN,"amp",P2).T=!0;i5(this.qN,"prf",P2).T=!0;i5(this.qN,"gtx",P2).T=!0;i5(this.qN, "mvp_lv",P2).T=!0;i5(this.qN,"ssmol",P2).T=!0;i5(this.qN,"fmd",P2).T=!0;i5(this.qN,"gen204simple",P2);this.T=new hn7(U0(),this.qN);this.j=!1;this.flags=new OFd}; Mv=function(){return Xl(S0Q)}; fNl=function(a,l,m,T){if(Math.random()<(T||a.T))try{if(m instanceof Ij)var y=m;else y=new Ij,nF(m,function(H,b){var M=y,d=M.j++;H=CF(b,H);M.T.push(d);M.L[d]=H}); var R=y.eb(a.L,"pagead2.googlesyndication.com","/pagead/gen_204?id="+l+"&");R&&(U0(),Lnd(R))}catch(H){}}; JdH=function(a,l,m){m=m===void 0?{}:m;this.error=a;this.meta=m;this.context=l.context;this.msg=l.message||"";this.id=l.id||"jserror"}; Byz=function(){var a=a===void 0?g.u7:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.bV()}; kbP=function(){var a=a===void 0?g.u7:a;return(a=a.performance)&&a.now?a.now():null}; nXd=function(a,l,m){this.label=a;this.type=l;this.value=m;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; j5=function(){var a=window;this.events=[];this.L=a||g.u7;var l=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,l=a.google_measure_js_timing);this.T=d8()||(l!=null?l:Math.random()<1)}; wIR=function(a){a&&Aq&&d8()&&(Aq.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Aq.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; INb=function(){var a=PP;this.T=Gr;this.r8="jserror";this.xi=!0;this.xH=null;this.L=this.P0;this.pR=a===void 0?null:a}; CK7=function(a,l,m){var T=Vd;return g8(Mv().T.T,function(){try{if(T.pR&&T.pR.T){var y=T.pR.start(a.toString(),3);var R=l();T.pR.end(y)}else R=l()}catch(b){var H=T.xi;try{wIR(y),H=T.L(a,new pA(ZH(b)),void 0,m)}catch(M){T.P0(217,M)}if(!H)throw b;}return R})()}; WP=function(a,l,m,T){return g8(Mv().T.T,function(){var y=g.Jz.apply(0,arguments);return CK7(a,function(){return l.apply(m,y)},T)})}; ZH=function(a){var l=a.toString();a.name&&l.indexOf(a.name)==-1&&(l+=": "+a.name);a.message&&l.indexOf(a.message)==-1&&(l+=": "+a.message);if(a.stack)a:{a=a.stack;var m=l;try{a.indexOf(m)==-1&&(a=m+"\n"+a);for(var T;a!=T;)T=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");l=a.replace(/\n */g,"\n");break a}catch(y){l=m;break a}l=void 0}return l}; pA=function(a){JdH.call(this,Error(a),{message:a})}; EXt=function(){Ad&&typeof Ad.google_measure_js_timing!="undefined"&&(Ad.google_measure_js_timing||PP.disable())}; oXt=function(a){Vd.xH=function(l){g.Bn(a,function(m){m(l)})}}; xwl=function(a,l){return CK7(a,l)}; cP=function(a,l){return WP(a,l)}; LA=function(a,l,m,T){Vd.P0(a,l,m,T)}; Nv=function(){return Date.now()-Dw7}; uld=function(){var a=Mv().Z,l=Qd>=0?Nv()-Qd:-1,m=tq?Nv()-e5:-1,T=F8>=0?Nv()-F8:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var y=[250,500,1E3];LA(637,Error(),.001);var R=l;m!=-1&&m1500&&T<4E3?500:H}; hq=function(a,l,m,T){this.top=a;this.right=l;this.bottom=m;this.left=T}; Oh=function(a){return a.right-a.left}; KA=function(a,l){return a==l?!0:a&&l?a.top==l.top&&a.right==l.right&&a.bottom==l.bottom&&a.left==l.left:!1}; zr=function(a,l,m){l instanceof g.$5?(a.left+=l.x,a.right+=l.x,a.top+=l.y,a.bottom+=l.y):(a.left+=l,a.right+=l,typeof m==="number"&&(a.top+=m,a.bottom+=m));return a}; vP=function(a,l,m){var T=new hq(0,0,0,0);this.time=a;this.volume=null;this.Z=l;this.T=T;this.L=m}; S5=function(a,l,m,T,y,R,H,b){this.j=a;this.B=l;this.Z=m;this.C=T;this.T=y;this.K=R;this.L=H;this.J=b}; Y07=function(a){var l=a!==a.top,m=a.top===djw(a),T=-1,y=0;if(l&&m&&a.top.mraid){T=3;var R=a.top.mraid}else T=(R=a.mraid)?l?m?2:1:0:-1;R&&(R.IS_GMA_SDK||(y=2),sdz(XI5,function(H){return typeof R[H]==="function"})||(y=1)); return{It:R,compatibility:y,v0K:T}}; UwH=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"}; rdw=function(a,l,m){if(a&&l!==null&&l!=l.top){if(!l.top)return new g.Sk(-12245933,-12245933);l=l.top}try{return(m===void 0?0:m)?(new g.Sk(l.innerWidth,l.innerHeight)).round():f9z(l||window).round()}catch(T){return new g.Sk(-12245933,-12245933)}}; fA=function(a,l,m){try{if(a){if(!l.top)return new hq(-12245933,-12245933,-12245933,-12245933);l=l.top}var T=rdw(a,l,m),y=T.height,R=T.width;if(R===-12245933)return new hq(R,R,R,R);var H=Cm(l.document);var b=Bgw(H.T);var M=b.x,d=b.y;return new hq(d,M+R,d+y,M)}catch(A){return new hq(-12245933,-12245933,-12245933,-12245933)}}; g.Jq=function(a,l,m,T){this.left=a;this.top=l;this.width=m;this.height=T}; BP=function(a,l){return a==l?!0:a&&l?a.left==l.left&&a.width==l.width&&a.top==l.top&&a.height==l.height:!1}; g.nA=function(a,l,m){if(typeof l==="string")(l=k1(a,l))&&(a.style[l]=m);else for(var T in l){m=a;var y=l[T],R=k1(m,T);R&&(m.style[R]=y)}}; k1=function(a,l){var m=aU3[l];if(!m){var T=PVQ(l);m=T;a.style[T]===void 0&&(T=(g.Y5?"Webkit":w8?"Moz":null)+VcR(T),a.style[T]!==void 0&&(m=T));aU3[l]=m}return m}; g.IR=function(a,l){var m=a.style[PVQ(l)];return typeof m!=="undefined"?m:a.style[k1(a,l)]||""}; CA=function(a,l){var m=IM(a);return m.defaultView&&m.defaultView.getComputedStyle&&(a=m.defaultView.getComputedStyle(a,null))?a[l]||a.getPropertyValue(l)||"":""}; Eh=function(a,l){return CA(a,l)||(a.currentStyle?a.currentStyle[l]:null)||a.style&&a.style[l]}; g.x1=function(a,l,m){if(l instanceof g.$5){var T=l.x;l=l.y}else T=l,l=m;a.style.left=g.oR(T,!1);a.style.top=g.oR(l,!1)}; DH=function(a){try{return a.getBoundingClientRect()}catch(l){return{left:0,top:0,right:0,bottom:0}}}; lUw=function(a){var l=IM(a),m=Eh(a,"position"),T=m=="fixed"||m=="absolute";for(a=a.parentNode;a&&a!=l;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),m=Eh(a,"position"),T=T&&m=="static"&&a!=l.documentElement&&a!=l.body,!T&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||m=="fixed"||m=="absolute"||m=="relative"))return a;return null}; g.ui=function(a){var l=IM(a),m=new g.$5(0,0);if(a==(l?IM(l):document).documentElement)return m;a=DH(a);l=Cm(l);l=Bgw(l.T);m.x=a.left+l.x;m.y=a.top+l.y;return m}; TrQ=function(a,l){var m=new g.$5(0,0),T=UJ(IM(a));if(!cIp(T,"parent"))return m;do{var y=T==l?g.ui(a):mLl(a);m.x+=y.x;m.y+=y.y}while(T&&T!=l&&T!=T.parent&&(a=T.frameElement)&&(T=T.parent));return m}; g.X8=function(a,l){a=yrt(a);l=yrt(l);return new g.$5(a.x-l.x,a.y-l.y)}; mLl=function(a){a=DH(a);return new g.$5(a.left,a.top)}; yrt=function(a){if(a.nodeType==1)return mLl(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.$5(a.clientX,a.clientY)}; g.Y1=function(a,l,m){if(l instanceof g.Sk)m=l.height,l=l.width;else if(m==void 0)throw Error("missing height argument");a.style.width=g.oR(l,!0);a.style.height=g.oR(m,!0)}; g.oR=function(a,l){typeof a=="number"&&(a=(l?Math.round(a):a)+"px");return a}; g.Uh=function(a){var l=RBH;if(Eh(a,"display")!="none")return l(a);var m=a.style,T=m.display,y=m.visibility,R=m.position;m.visibility="hidden";m.position="absolute";m.display="inline";a=l(a);m.display=T;m.position=R;m.visibility=y;return a}; RBH=function(a){var l=a.offsetWidth,m=a.offsetHeight,T=g.Y5&&!l&&!m;return(l===void 0||T)&&a.getBoundingClientRect?(a=DH(a),new g.Sk(a.right-a.left,a.bottom-a.top)):new g.Sk(l,m)}; g.r8=function(a,l){a.style.display=l?"":"none"}; aL=function(a,l){l=Math.pow(10,l);return Math.floor(a*l)/l}; HV7=function(a){return new hq(a.top,a.right,a.bottom,a.left)}; qed=function(a){var l=a.top||0,m=a.left||0;return new hq(l,m+(a.width||0),l+(a.height||0),m)}; lf=function(a){return a!=null&&a>=0&&a<=1}; bVd=function(){var a=g.ej();return a?md("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(l){return W2(a,l)})||W2(a,"OMI/")&&!W2(a,"XiaoMi/")?!0:W2(a,"Presto")&&W2(a,"Linux")&&!W2(a,"X11")&&!W2(a,"Android")&&!W2(a,"Mobi"):!1}; gFR=function(){this.Z=!kX(Ad.top);this.isMobileDevice=Q6()||u_P();var a=wy();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.Fl(a[a.length-1].url)||"":"";this.T=new hq(0,0,0,0);this.j=new g.Sk(0,0);this.K=new g.Sk(0,0);this.B=new hq(0,0,0,0);this.frameOffset=new g.$5(0,0);this.C=0;this.J=!1;this.L=!(!Ad||!Y07(Ad).It);this.update(Ad)}; M9H=function(a,l){l&&l.screen&&(a.j=new g.Sk(l.screen.width,l.screen.height))}; iVl=function(a,l){a:{var m=a.T?new g.Sk(Oh(a.T),a.T.getHeight()):new g.Sk(0,0);l=l===void 0?Ad:l;l!==null&&l!=l.top&&(l=l.top);var T=0,y=0;try{var R=l.document,H=R.body,b=R.documentElement;if(R.compatMode=="CSS1Compat"&&b.scrollHeight)T=b.scrollHeight!=m.height?b.scrollHeight:b.offsetHeight,y=b.scrollWidth!=m.width?b.scrollWidth:b.offsetWidth;else{var M=b.scrollHeight,d=b.scrollWidth,A=b.offsetHeight,P=b.offsetWidth;b.clientHeight!=A&&(M=H.scrollHeight,d=H.scrollWidth,A=H.offsetHeight,P=H.offsetWidth); M>m.height?M>A?(T=M,y=d):(T=A,y=P):M0||a.J)return!0;a=U0().L.isVisible();var l=LF(yL)===0;return a||l}; To=function(){return Xl(gFR)}; HN=function(a){this.Z=a;this.L=0;this.T=null}; qI=function(a,l,m){this.Z=a;this.AM=m===void 0?"na":m;this.K=[];this.isInitialized=!1;this.j=new vP(-1,!0,this);this.T=this;this.J=l;this.Ij=this.N=!1;this.hM="uk";this.qj=!1;this.C=!0}; bf=function(a,l){g.pD(a.K,l)||(a.K.push(l),l.eY(a.T),l.vB(a.j),l.zB()&&(a.N=!0))}; Mpd=function(a){a=a.T;a.Kr();a.mj();var l=To();l.B=fA(!1,a.Z,l.isMobileDevice);iVl(To(),a.Z);a.j.T=a.R$()}; ivR=function(a){a.N=a.K.length?md(a.K,function(l){return l.zB()}):!1}; d6w=function(a){var l=g.NF(a.K);g.Bn(l,function(m){m.vB(a.j)})}; gt=function(a){var l=g.NF(a.K);g.Bn(l,function(m){m.eY(a.T)}); a.T!=a||d6w(a)}; MI=function(a,l,m,T){this.element=a;this.T=new hq(0,0,0,0);this.Z=null;this.C=new hq(0,0,0,0);this.L=l;this.qN=m;this.qj=T;this.jt=!1;this.timestamp=-1;this.N=new S5(l.j,this.element,this.T,new hq(0,0,0,0),0,0,Nv(),0);this.K=void 0}; jfQ=function(a,l){return a.K?new hq(Math.max(l.top+a.K.top,l.top),Math.min(l.left+a.K.right,l.right),Math.min(l.top+a.K.bottom,l.bottom),Math.max(l.left+a.K.left,l.left)):l.clone()}; dt=function(a){this.K=!1;this.T=a;this.j=function(){}}; AKw=function(a,l,m){this.Z=m===void 0?0:m;this.L=a;this.T=l==null?"":l}; PLw=function(a){switch(Math.trunc(a.Z)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; GLP=function(a,l){return a.Zl.Z?!1:a.Ll.L?!1:typeof a.Ttypeof l.T?!1:a.T0?T[m]-T[m-1]:T[m]})}; tA=function(){this.L=new Z8;this.AM=this.Cx=0;this.tM=new pM;this.lT=this.B=-1;this.rb=1E3;this.yg=new Z8([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.hM=this.jt=-1}; e6=function(a,l){return e$7(a.L,l===void 0?!0:l)}; hA=function(a,l,m,T){var y=y===void 0?!1:y;m=WP(T,m);cI(a,l,m,{capture:y})}; KM=function(a,l){l=Oi(l);return l===0?0:Oi(a)/l}; Oi=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)}; Ovp=function(a,l){if(!a||!l)return!1;for(var m=0;a!==null&&m++<100;){if(a===l)return!0;try{if(a=a.parentElement||a){var T=IM(a),y=T&&UJ(T),R=y&&y.frameElement;R&&(a=R)}}catch(H){break}}return!1}; KCR=function(a,l,m){if(!a||!l)return!1;l=zr(a.clone(),-l.left,-l.top);a=(l.left+l.right)/2;l=(l.top+l.bottom)/2;kX(window.top)&&window.top&&window.top.document&&(window=window.top);if(!UwH())return!1;a=window.document.elementFromPoint(a,l);if(!a)return!1;l=(l=(l=IM(m))&&l.defaultView&&l.defaultView.frameElement)&&Ovp(l,a);var T=a===m;a=!T&&a&&gy(a,function(y){return y===m}); return!(l||T||a)}; z$b=function(a,l,m,T){return To().Z?!1:Oh(a)<=0||a.getHeight()<=0?!0:m&&T?xwl(208,function(){return KCR(a,l,m)}):!1}; zo=function(a,l,m){g.k.call(this);this.position=v2d.clone();this.wi=this.W9();this.dG=-2;this.timeCreated=Date.now();this.x6=-1;this.BZ=l;this.KV=null;this.kD=!1;this.sS=null;this.opacity=-1;this.requestSource=m;this.p$t=!1;this.rG=function(){}; this.Xj=function(){}; this.Ic=new I9l;this.Ic.BB=a;this.Ic.T=a;this.Ua=!1;this.Ph={To:null,lc:null};this.G6=!0;this.tY=null;this.WC=this.VW=!1;Mv().C++;this.qw=this.FT();this.CK=-1;this.Sb=null;this.hasCompleted=this.FZ=!1;this.qN=new Mj;IRR(this.qN);$6t(this);this.requestSource==1?dG(this.qN,"od",1):dG(this.qN,"od",0)}; $6t=function(a){a=a.Ic.BB;var l;if(l=a&&a.getAttribute)l=/-[a-z]/.test("googleAvInapp")?!1:sfl&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Gd5()):!!a.getAttribute("data-"+Gd5());l&&(To().L=!0)}; vN=function(a,l){l!=a.WC&&(a.WC=l,a=To(),l?a.C++:a.C>0&&a.C--)}; SMb=function(a,l){if(a.Sb){if(l.getName()===a.Sb.getName())return;a.Sb.dispose();a.Sb=null}l=l.create(a.Ic.T,a.qN,a.zB());if(l=l!=null&&l.observe()?l:null)a.Sb=l}; f57=function(a,l,m){if(!a.KV||a.BZ==-1||l.L===-1||a.KV.L===-1)return 0;a=l.L-a.KV.L;return a>m?0:a}; JKp=function(a,l,m){if(a.Sb){a.Sb.Cd();var T=a.Sb.N,y=T.j,R=y.T;if(T.C!=null){var H=T.Z;a.sS=new g.$5(H.left-R.left,H.top-R.top)}R=a.XN()?Math.max(T.T,T.K):T.T;H={};y.volume!==null&&(H.volume=y.volume);y=a.Km(T);a.KV=T;a.k8(R,l,m,!1,H,y,T.J)}}; Bad=function(a){if(a.kD&&a.tY){var l=jj(a.qN,"od")==1,m=To().T,T=a.tY,y=a.Sb?a.Sb.getName():"ns",R=a.sS,H=new g.Sk(Oh(m),m.getHeight());m=a.XN();a={E0O:y,sS:R,sgL:H,XN:m,Ab:a.qw.Ab,vAg:l};if(l=T.L){l.Cd();y=l.N;R=y.j.T;var b=H=null;y.C!=null&&R&&(H=y.Z,H=new g.$5(H.left-R.left,H.top-R.top),b=new g.Sk(R.right-R.left,R.bottom-R.top));y=m?Math.max(y.T,y.K):y.T;m={E0O:l.getName(),sS:H,sgL:b,XN:m,vAg:!1,Ab:y}}else m=null;m&&NaH(T,a,m)}}; kLd=function(a,l,m){l&&(a.rG=l);m&&(a.Xj=m)}; g.$U=function(){}; g.si=function(a){return{value:a,done:!1}}; n2Q=function(){this.j=this.T=this.Z=this.L=this.K=0}; w0H=function(a){var l={};var m=g.bV()-a.K;l=(l.ptlt=m,l);(m=a.L)&&(l.pnk=m);(m=a.Z)&&(l.pnc=m);(m=a.j)&&(l.pnmm=m);(a=a.T)&&(l.pns=a);return l}; I5l=function(){nD.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; S6=function(a){return lf(a.volume)&&a.volume>0}; fM=function(a,l,m,T){m=m===void 0?!0:m;T=T===void 0?function(){return!0}:T; return function(y){var R=y[a];if(Array.isArray(R)&&T(y))return CLd(R,l,m)}}; JA=function(a,l){return function(m){return l(m)?m[a]:void 0}}; E27=function(a){return function(l){for(var m=0;m0?R[y-1]+1:0,T+1).reduce(function(H,b){return H+b},0)})}; o2p=function(){this.L=this.T=""}; x6Q=function(){}; kU=function(a,l){var m={};if(a!==void 0)if(l!=null)for(var T in l){var y=l[T];T in Object.prototype||y!=null&&(m[T]=typeof y==="function"?y(a):a[y])}else g.yk(m,a);return PN(AA(new j6,m))}; D67=function(){var a={};this.L=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.T={};for(var l in this.L)this.L[l][1]>0&&(this.T[l]=0);this.Z=0}; nM=function(a,l){var m=a.L[l],T=m[1];a.Z+=m[0];T>0&&a.T[l]==0&&(a.T[l]=1)}; ubz=function(a){var l=g.uV(a.L),m=0,T;for(T in a.T)g.pD(l,T)&&a.T[T]==1&&(m+=a.L[T][1],a.T[T]=2);return m}; X0P=function(a){var l=0,m;for(m in a.T){var T=a.T[m];if(T==1||T==2)l+=a.L[m][1]}return l}; wt=function(){this.T=this.L=0}; IL=function(){tA.call(this);this.Z=new pM;this.St=this.N=this.qj=0;this.J=-1;this.vF=new pM;this.K=new pM;this.T=new Z8;this.C=this.j=-1;this.Ij=new pM;this.rb=2E3;this.Kx=new wt;this.wb=new wt;this.Mj=new wt}; CM=function(a,l,m){var T=a.St;tq||m||a.J==-1||(T+=l-a.J);return T}; YM7=function(){this.Z=!1}; oL=function(a,l){this.Z=!1;this.j=a;this.N=l;this.K=0}; xU=function(a,l){oL.call(this,a,l);this.B=[]}; U6d=function(){}; D8=function(){}; uf=function(a,l,m,T){MI.call(this,a,l,m,T)}; X6=function(a,l,m){MI.call(this,null,a,l,m);this.J=a.isActive();this.B=0}; YU=function(a){return[a.top,a.left,a.bottom,a.right]}; Ui=function(a,l,m,T,y,R){R=R===void 0?new D8:R;zo.call(this,l,m,T);this.On=y;this.b9=0;this.Cu={};this.Q4=new D67;this.LL={};this.Iy="";this.Mj=null;this.ZR=!1;this.T=[];this.U$=R.L();this.C=R.Z();this.j=null;this.Z=-1;this.AM=this.N=void 0;this.lT=this.Ij=0;this.hM=-1;this.rb=this.wb=!1;this.qj=this.J=this.L=this.Bg=this.lZ=0;new Z8;this.Kx=this.St=0;this.tM=-1;this.AO=0;this.B=g.Gb;this.jt=[this.W9()];this.QO=2;this.yJ={};this.yJ.pause="p";this.yJ.resume="r";this.yJ.skip="s";this.yJ.mute="m";this.yJ.unmute= "um";this.yJ.exitfullscreen="ef";this.K=null;this.yg=this.vF=!1;this.uZ=Math.floor(Date.now()/1E3-1704067200);this.Cx=0}; rt=function(a){a.hasCompleted=!0;a.AO!=0&&(a.AO=3)}; aU=function(a){return a===void 0?a:Number(a)?aL(a,3):0}; lv=function(a,l){return a.jt[l!=null&&lMath.max(1E4,a.Z/3)?0:l);var m=a.B(a)||{};m=m.currentTime!==void 0?m.currentTime:a.Ij;var T=m-a.Ij,y=0;T>=0?(a.lT+=l,a.Kx+=Math.max(l-T,0),y=Math.min(T,a.lT)):a.St+=Math.abs(T);T!=0&&(a.lT=0);a.tM==-1&&T>0&&(a.tM=F8>=0?Nv()-F8:-1);a.Ij=m;return y}; lYt=function(a,l){md(a.C,function(m){return m.j==l.j})||a.C.push(l)}; mcw=function(a){var l=LM(a.Ch().T,1);return m4(a,l)}; m4=function(a,l,m){return l>=15E3?!0:a.wb?(m===void 0?0:m)?!0:a.Z>0?l>=a.Z/2:a.hM>0?l>=a.hM:!1:!1}; Tbd=function(a){var l=aL(a.qw.Ab,2),m=a.Q4.Z,T=a.qw,y=lv(a),R=aU(y.j),H=aU(y.C),b=aU(T.volume),M=aL(y.B,2),d=aL(y.lT,2),A=aL(T.Ab,2),P=aL(y.jt,2),G=aL(y.hM,2);T=aL(T.Qp,2);var V=a.Xh().clone().round();a=a.Sb&&a.Sb.Z?(a.Sb?a.Sb.Z:null).clone().round():null;y=e6(y,!1);return{Ll8:l,Wj:m,X8:R,pV:H,aT:b,MS:M,RF:d,Ab:A,ri:P,Y1:G,Qp:T,position:V,Dt:a,GV:y}}; Ri7=function(a,l){yap(a.T,l,function(){return{Ll8:0,Wj:void 0,X8:-1,pV:-1,aT:-1,MS:-1,RF:-1,Ab:-1,ri:-1,Y1:-1,Qp:-1,position:void 0,Dt:void 0,GV:[]}}); a.T[l]=Tbd(a)}; yap=function(a,l,m){for(var T=a.length;T0?1:0;P.atos= WN(d.T);P.ssb=WN(d.yg,!1);P.amtos=e$7(d.T,!1);P.uac=a.lZ;P.vpt=d.Z.T;A=="nio"&&(P.nio=1,P.avms="nio");P.gmm="4";P.gdr=m4(a,d.Z.T,!0)?1:0;P.efpf=a.QO;if(A=="gsv"||A=="nis")A=a.Sb,A.B>0&&(P.nnut=A.B);P.tcm=rKw(a);P.nmt=a.St;P.bt=a.Kx;P.pst=a.tM;P.vpaid=a.N;P.dur=a.Z;P.vmtime=a.Ij;P.is=a.Q4.Z;a.T.length>=1&&(P.i0=a.T[0].Wj,P.a0=[a.T[0].aT],P.c0=[a.T[0].Ab],P.ss0=[a.T[0].Qp],A=a.T[0].position,R=a.T[0].Dt,P.p0=A?YU(A):void 0,A&&R&&!KA(R,A)&&(P.cp0=YU(R)));a.T.length>=2&&(P.i1=a.T[1].Wj,P.a1=RU(a.T[1].X8, a.T[1].aT,a.T[1].pV),P.c1=RU(a.T[1].MS,a.T[1].Ab,a.T[1].RF),P.ss1=RU(a.T[1].ri,a.T[1].Qp,a.T[1].Y1),A=a.T[1].position,R=a.T[1].Dt,P.p1=A?YU(A):void 0,A&&R&&!KA(R,A)&&(P.cp1=YU(R)),P.mtos1=a.T[1].GV);a.T.length>=3&&(P.i2=a.T[2].Wj,P.a2=RU(a.T[2].X8,a.T[2].aT,a.T[2].pV),P.c2=RU(a.T[2].MS,a.T[2].Ab,a.T[2].RF),P.ss2=RU(a.T[2].ri,a.T[2].Qp,a.T[2].Y1),A=a.T[2].position,R=a.T[2].Dt,P.p2=A?YU(A):void 0,A&&R&&!KA(R,A)&&(P.cp2=YU(R)),P.mtos2=a.T[2].GV);a.T.length>=4&&(P.i3=a.T[3].Wj,P.a3=RU(a.T[3].X8,a.T[3].aT, a.T[3].pV),P.c3=RU(a.T[3].MS,a.T[3].Ab,a.T[3].RF),P.ss3=RU(a.T[3].ri,a.T[3].Qp,a.T[3].Y1),A=a.T[3].position,R=a.T[3].Dt,P.p3=A?YU(A):void 0,A&&R&&!KA(R,A)&&(P.cp3=YU(R)),P.mtos3=a.T[3].GV);P.cs=X0P(a.Q4);l&&(P.ic=ubz(a.Q4),P.dvpt=d.Z.L,P.dvs=QL(d.L,.5),P.dfvs=QL(d.L,1),P.davs=QL(d.T,.5),P.dafvs=QL(d.T,1),m&&(d.Z.L=0,FCd(d.L),FCd(d.T)),a.s$()&&(P.dtos=d.qj,P.dav=d.N,P.dtoss=a.b9+1,m&&(d.qj=0,d.N=0,a.b9++)),P.dat=d.K.L,P.dft=d.Ij.L,m&&(d.K.L=0,d.Ij.L=0));P.ps=[b.K.width,b.K.height];P.bs=[Oh(b.T),b.T.getHeight()]; P.scs=[b.j.width,b.j.height];P.dom=b.domain;a.Bg&&(P.vds=a.Bg);if(a.C.length>0||a.U$)l=g.NF(a.C),a.U$&&l.push(a.U$),P.pings=g.xX(l,function(G){return G.toString()}); l=g.xX(g.BN(a.C,function(G){return G.C()}),function(G){return G.getId()}); FbH(l);P.ces=l;a.L&&(P.vmer=a.L);a.J&&(P.vmmk=a.J);a.qj&&(P.vmiec=a.qj);P.avms=a.Sb?a.Sb.getName():"ns";a.Sb&&g.yk(P,a.Sb.HS());T?(P.c=aL(a.qw.Ab,2),P.ss=aL(a.qw.Qp,2)):P.tth=Nv()-gAd;P.mc=aL(d.lT,2);P.nc=aL(d.B,2);P.mv=aU(d.C);P.nv=aU(d.j);P.lte=aL(a.dG,2);T=lv(a,y);e6(d);P.qmtos=e6(T);P.qnc=aL(T.B,2);P.qmv=aU(T.C);P.qnv=aU(T.j);P.qas=T.j>0?1:0;P.qi=a.Iy;P.avms||(P.avms="geo");P.psm=d.Kx.T;P.psv=d.Kx.getValue();P.psfv=d.wb.getValue();P.psa=d.Mj.getValue();M=nlR(M.qN);M.length&&(P.veid=M);a.K&&g.yk(P, w0H(a.K));P.avas=a.EC();P.vs=a.wg();P.co=Mhd(a);P.tm=d.Cx;P.tu=d.AM;return P}; H0z=function(a,l){if(g.pD(i0H,l))return!0;var m=a.Cu[l];return m!==void 0?(a.Cu[l]=!0,!m):!1}; Mhd=function(a){var l=a.Cx.toString(10).padStart(2,"0");l=""+a.uZ+l;a.Cx<99&&a.Cx++;return l}; j1z=function(){this.T={};var a=UJ();HH(this,a,document);var l=dcP();try{if("1"==l){for(var m=a.parent;m!=a.top;m=m.parent)HH(this,m,m.document);HH(this,a.top,a.top.document)}}catch(T){}}; dcP=function(){var a=document.documentElement;try{if(!kX(UJ().top))return"2";var l=[],m=UJ(a.ownerDocument);for(a=m;a!=m.top;a=a.parent)if(a.frameElement)l.push(a.frameElement);else break;return l&&l.length!=0?"1":"0"}catch(T){return"2"}}; HH=function(a,l,m){hA(m,"mousedown",function(){return Aal(a)},301); hA(l,"scroll",function(){return PPR(a)},302); hA(m,"touchmove",function(){return G0p(a)},303); hA(m,"mousemove",function(){return Vh7(a)},304); hA(m,"keydown",function(){return pdQ(a)},305)}; Aal=function(a){g.wg(a.T,function(l){l.Z>1E5||++l.Z})}; PPR=function(a){g.wg(a.T,function(l){l.T>1E5||++l.T})}; G0p=function(a){g.wg(a.T,function(l){l.T>1E5||++l.T})}; pdQ=function(a){g.wg(a.T,function(l){l.L>1E5||++l.L})}; Vh7=function(a){g.wg(a.T,function(l){l.j>1E5||++l.j})}; Z0Q=function(){this.T=[];this.L=[]}; qa=function(a,l){return g.Pn(a.T,function(m){return m.Iy==l})}; WaQ=function(a,l){return l?g.Pn(a.T,function(m){return m.Ic.BB==l}):null}; caP=function(a,l){return g.Pn(a.L,function(m){return m.Ot()==2&&m.Iy==l})}; gZ=function(){var a=bv;return a.T.length==0?a.L:a.L.length==0?a.T:g.LD(a.L,a.T)}; La7=function(a,l){a=l.Ot()==1?a.T:a.L;var m=AI(a,function(T){return T==l}); return m!=-1?(a.splice(m,1),l.Sb&&l.Sb.unobserve(),l.dispose(),!0):!1}; NbH=function(a){var l=bv;if(La7(l,a)){switch(a.Ot()){case 0:var m=function(){return null}; case 2:m=function(){return caP(l,a.Iy)}; break;case 1:m=function(){return qa(l,a.Iy)}}for(var T=m();T;T=m())La7(l,T)}}; Q1Q=function(a){var l=bv;a=g.BN(a,function(m){return!WaQ(l,m.Ic.BB)}); l.T.push.apply(l.T,g.F(a))}; th3=function(a){var l=[];g.Bn(a,function(m){md(bv.T,function(T){return T.Ic.BB===m.Ic.BB&&T.Iy===m.Iy})||(bv.T.push(m),l.push(m))})}; Ma=function(){this.T=this.L=null}; iv=function(a){return a.T!=null}; eiP=function(a,l){function m(T,y){l(T,y)} if(a.L==null)return!1;a.T=g.Pn(a.L,function(T){return T!=null&&T.Fp()}); a.T&&(a.T.init(m)?Mpd(a.T.T):l(a.T.T.Zx(),a.T));return a.T!=null}; dZ=function(a){a=Fa3(a);dt.call(this,a.length?a[a.length-1]:new qI(Ad,0));this.Z=a;this.L=null}; Fa3=function(a){if(!a.length)return[];a=(0,g.BN)(a,function(m){return m!=null&&m.EY()}); for(var l=1;lm.time?l:m},a[0])}; Ga=function(a){a=a===void 0?Ad:a;dt.call(this,new qI(a,2))}; V9=function(){var a=zid();qI.call(this,Ad.top,a,"geo")}; zid=function(){Mv();var a=To();return a.Z||a.L?0:2}; vAp=function(){}; pQ=function(){this.done=!1;this.T={BU:0,fN:0,RCt:0,tJ:0,Uj:-1,Ct:0,o6:0,ek:0,hGL:0};this.K=null;this.C=!1;this.Z=null;this.B=0;this.L=new HN(this)}; WH=function(){var a=Zn;a.C||(a.C=!0,$c7(a,function(){return a.j.apply(a,g.F(g.Jz.apply(0,arguments)))}),a.j())}; s1w=function(){Xl(vAp);var a=Xl(Ma);iv(a)&&a.T.T?Mpd(a.T.T):To().update(Ad)}; cH=function(a,l,m){if(!a.done&&(a.L.cancel(),l.length!=0)){a.Z=null;try{s1w();var T=Nv();Mv().K=T;if(iv(Xl(Ma)))for(var y=0;y=0?Nv()-Qd:-1,b=Nv();y.T.Uj==-1&&(H=b);var M=To(),d=Mv(),A=A0(d.qN),P=gZ();try{if(P.length>0){var G=M.T;G&&(A.bs=[Oh(G),G.getHeight()]);var V=M.K;V&&(A.ps=[V.width,V.height]);Ad.screen&&(A.scs=[Ad.screen.width,Ad.screen.height])}else A.url=encodeURIComponent(Ad.location.href.substring(0,512)),R.referrer&&(A.referrer=encodeURIComponent(R.referrer.substring(0,512))); A.tt=H;A.pt=Qd;A.bin=d.L;Ad.google_osd_load_pub_page_exp!==void 0&&(A.olpp=Ad.google_osd_load_pub_page_exp);A.deb=[1,y.T.BU,y.T.fN,y.T.tJ,y.T.Uj,0,y.L.L,y.T.Ct,y.T.o6,y.T.ek,y.T.hGL,-1].join(";");A.tvt=fYt(y,b);M.L&&(A.inapp=1);if(Ad!==null&&Ad!=Ad.top){P.length>0&&(A.iframe_loc=encodeURIComponent(Ad.location.href.substring(0,512)));var p=M.B;A.is=[Oh(p),p.getHeight()]}}catch(L){A.error=1}Zn.Z=A}G=g.mn(Zn.Z);V=Mv().T;jj(V.Z,"prf")==1?(p=new bi,y=V.T,R=0,y.T>-1&&(R=y.Z.T.now()-y.T),p=v0(p,1,fV(y.j+ R),0),y=V.T,p=v0(p,5,nV(y.T>-1?y.L+1:y.L),0),p=v0(p,2,DU(V.L.T.Z()),"0"),p=v0(p,3,DU(V.L.T.L()),"0"),V=v0(p,4,DU(V.L.T.T()),"0"),p={},V=(p.pf=g.Tf(V.L()),p)):V={};g.yk(G,V);g.yk(l,T,m,G,a())}])}; k0p=function(){var a=Bbt||Ad;if(!a)return"";var l=[];if(!a.location||!a.location.href)return"";l.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&l.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return l.join("&")}; LQ=function(){var a="youtube.player.web_20250430_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250430_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250430_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250430_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),l;if(((l=a)==null?void 0:l.length)==2)return a[1];a="youtube.player.web_20250430_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var m;return((m=a)==null?void 0:m.length)==3?"20"+a[1]+a[2]:null}; nA7=function(){return"av.default_js".includes("ima_html5_sdk")?{Gh:"ima",yx:null}:"av.default_js".includes("ima_native_sdk")?{Gh:"nima",yx:null}:"av.default_js".includes("admob-native-video-javascript")?{Gh:"an",yx:null}:"youtube.player.web_20250430_22_RC00".includes("cast_js_sdk")?{Gh:"cast",yx:LQ()}:"youtube.player.web_20250430_22_RC00".includes("youtube.player.web")?{Gh:"yw",yx:LQ()}:"youtube.player.web_20250430_22_RC00".includes("outstream_web_client")?{Gh:"out",yx:LQ()}:"youtube.player.web_20250430_22_RC00".includes("drx_rewarded_web")? {Gh:"r",yx:LQ()}:"youtube.player.web_20250430_22_RC00".includes("gam_native_web_video")?{Gh:"n",yx:LQ()}:"youtube.player.web_20250430_22_RC00".includes("admob_interstitial_video")?{Gh:"int",yx:LQ()}:{Gh:"j",yx:null}}; t5=function(a,l){var m={sv:"966"};Na!==null&&(m.v=Na);m.cb=wdR;m.nas=bv.T.length;m.msg=a;l!==void 0&&(a=IYz(l))&&(m.e=Q9[a]);return m}; eq=function(a){return Gm(a,"custom_metric_viewable")}; IYz=function(a){var l=eq(a)?"custom_metric_viewable":a.toLowerCase();return UX(Ta,function(m){return m==l})}; CPQ=function(){this.T=void 0;this.L=!1;this.Z=0;this.j=-1;this.K="tos"}; xcH=function(a){try{var l=a.split(",");return l.length>g.uV(EAd).length?null:uK(l,function(m,T){T=T.toLowerCase().split("=");if(T.length!=2||oAP[T[0]]===void 0||!oAP[T[0]](T[1]))throw Error("Entry ("+T[0]+", "+T[1]+") is invalid.");m[T[0]]=T[1];return m},{})}catch(m){return null}}; DcR=function(a,l){if(a.T==void 0)return 0;switch(a.K){case "mtos":return a.L?NI(l.T,a.T):NI(l.L,a.T);case "tos":return a.L?LM(l.T,a.T):LM(l.L,a.T)}return 0}; Fy=function(a,l,m,T){oL.call(this,l,T);this.B=a;this.J=m}; h5=function(){}; OO=function(a){oL.call(this,"fully_viewable_audible_half_duration_impression",a)}; KQ=function(a){this.T=a}; za=function(a,l){oL.call(this,a,l)}; vH=function(a){xU.call(this,"measurable_impression",a)}; $p=function(){KQ.apply(this,arguments)}; sO=function(a,l,m){X6.call(this,a,l,m)}; Sq=function(a){a=a===void 0?Ad:a;dt.call(this,new qI(a,2))}; fQ=function(a,l,m){X6.call(this,a,l,m)}; J5=function(a){a=a===void 0?Ad:a;dt.call(this,new qI(a,2))}; BH=function(){qI.call(this,Ad,2,"mraid");this.Kx=0;this.lT=this.jt=!1;this.B=null;this.L=Y07(this.Z);this.j.T=new hq(0,0,0,0);this.Cx=!1}; kp=function(a,l,m){a.Do("addEventListener",l,m)}; Ucz=function(a){Mv().j=!!a.Do("isViewable");kp(a,"viewableChange",uPw);a.Do("getState")==="loading"?kp(a,"ready",Xdl):Y8l(a)}; Y8l=function(a){typeof a.L.It.AFMA_LIDAR==="string"?(a.jt=!0,ra7(a)):(a.L.compatibility=3,a.B="nc",a.Mw("w"))}; ra7=function(a){a.lT=!1;var l=jj(Mv().qN,"rmmt")==1,m=!!a.Do("isViewable");(l?!m:1)&&U0().setTimeout(cP(524,function(){a.lT||(aH7(a),LA(540,Error()),a.B="mt",a.Mw("w"))}),500); lHt(a);kp(a,a.L.It.AFMA_LIDAR,mvp)}; lHt=function(a){var l=jj(Mv().qN,"sneio")==1,m=a.L.It.AFMA_LIDAR_EXP_1!==void 0,T=a.L.It.AFMA_LIDAR_EXP_2!==void 0;(l=l&&T)&&(a.L.It.AFMA_LIDAR_EXP_2=!0);m&&(a.L.It.AFMA_LIDAR_EXP_1=!l)}; aH7=function(a){a.Do("removeEventListener",a.L.It.AFMA_LIDAR,mvp);a.jt=!1}; T8t=function(a,l){if(a.Do("getState")==="loading")return new g.Sk(-1,-1);l=a.Do(l);if(!l)return new g.Sk(-1,-1);a=parseInt(l.width,10);l=parseInt(l.height,10);return isNaN(a)||isNaN(l)?new g.Sk(-1,-1):new g.Sk(a,l)}; Xdl=function(){try{var a=Xl(BH);a.Do("removeEventListener","ready",Xdl);Y8l(a)}catch(l){LA(541,l)}}; mvp=function(a,l){try{var m=Xl(BH);m.lT=!0;var T=a?new hq(a.y,a.x+a.width,a.y+a.height,a.x):new hq(0,0,0,0);var y=Nv(),R=RL();var H=new vP(y,R,m);H.T=T;H.volume=l;m.vB(H)}catch(b){LA(542,b)}}; uPw=function(a){var l=Mv(),m=Xl(BH);a&&!l.j&&(l.j=!0,m.Cx=!0,m.B&&m.Mw("w",!0))}; nQ=function(){this.isInitialized=!1;this.T=this.L=null;var a={};this.B=(a.start=this.T$,a.firstquartile=this.NK,a.midpoint=this.aG,a.thirdquartile=this.Ly,a.complete=this.zr,a.error=this.Gr,a.pause=this.Un,a.resume=this.eJ,a.skip=this.IG,a.viewable_impression=this.iY,a.mute=this.Fb,a.unmute=this.Fb,a.fullscreen=this.nj,a.exitfullscreen=this.yD,a.fully_viewable_audible_half_duration_impression=this.iY,a.measurable_impression=this.iY,a.abandon=this.Un,a.engagedview=this.iY,a.impression=this.iY,a.creativeview= this.iY,a.progress=this.Fb,a.custom_metric_viewable=this.iY,a.bufferstart=this.Un,a.bufferfinish=this.eJ,a.audio_measurable=this.iY,a.audio_audible=this.iY,a);a={};this.J=(a.overlay_resize=this.vx,a.abandon=this.Gy,a.close=this.Gy,a.collapse=this.Gy,a.overlay_unmeasurable_impression=function(l){return y9(l,"overlay_unmeasurable_impression",RL())},a.overlay_viewable_immediate_impression=function(l){return y9(l,"overlay_viewable_immediate_impression",RL())},a.overlay_unviewable_impression=function(l){return y9(l, "overlay_unviewable_impression",RL())},a.overlay_viewable_end_of_session_impression=function(l){return y9(l,"overlay_viewable_end_of_session_impression",RL())},a); Mv().L=3;yqR(this);this.Z=null}; wZ=function(a,l,m,T){a=a.LP(null,T,!0,l);a.j=m;Q1Q([a]);return a}; RLP=function(a,l,m){$dl(l);var T=a.T;g.Bn(l,function(y){var R=g.xX(y.criteria,function(H){var b=xcH(H);if(b==null)H=null;else if(H=new CPQ,b.visible!=null&&(H.T=b.visible/100),b.audible!=null&&(H.L=b.audible==1),b.time!=null){var M=b.timetype=="mtos"?"mtos":"tos",d=C73(b.time,"%")?"%":"ms";b=parseInt(b.time,10);d=="%"&&(b/=100);H.setTime(b,d,M)}return H}); md(R,function(H){return H==null})||lYt(m,new Fy(y.id,y.event,R,T))})}; HAP=function(){var a=[],l=Mv();a.push(Xl(V9));jj(l.qN,"mvp_lv")&&a.push(Xl(BH));l=[new Sq,new J5];l.push(new dZ(a));l.push(new Ga(Ad));return l}; qhb=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var l=Nv(),m=Mv(),T=To();Qd=l;m.Z=79463069;a.L!=="o"&&(Bbt=djw(Ad));if(NGQ()){Zn.T.fN=0;Zn.T.Uj=Nv()-l;var y=HAP(),R=Xl(Ma);R.L=y;eiP(R,function(){IU()})?Zn.done||(S8d(),bf(R.T.T,a),WH()):T.Z?IU():WH()}else CQ=!0}catch(H){throw bv.reset(),H; }}}; oU=function(a){Zn.L.cancel();EO=a;Zn.done=!0}; xp=function(a){if(a.L)return a.L;var l=Xl(Ma).T;if(l)switch(l.getName()){case "nis":a.L="n";break;case "gsv":a.L="m"}a.L||(a.L="h");return a.L}; UO=function(a,l,m){if(a.T==null)return l.Bg|=4,!1;a=bAd(a.T,m,l);l.Bg|=a;return a==0}; IU=function(){var a=[new Ga(Ad)],l=Xl(Ma);l.L=a;eiP(l,function(){oU("i")})?Zn.done||(S8d(),WH()):oU("i")}; g1R=function(a,l){if(!a.ZR){var m=y9(a,"start",RL());m=a.On.T(m).T;var T={id:"lidarv"};T.r=l;T.sv="966";Na!==null&&(T.v=Na);zb(m,function(y,R){return T[y]=y=="mtos"||y=="tos"?R:encodeURIComponent(R)}); l=k0p();zb(l,function(y,R){return T[y]=encodeURIComponent(R)}); l="//pagead2.googlesyndication.com/pagead/gen_204?"+PN(AA(new j6,T));cK3(l);a.ZR=!0}}; rZ=function(a,l,m){cH(Zn,[a],!RL());Ri7(a,m);m!=4&&yap(a.jt,m,a.W9);return y9(a,l,RL())}; yqR=function(a){Jaz(function(){var l=M5d();a.L!=null&&(l.sdk=a.L);var m=Xl(Ma);iv(m)&&(l.avms=m.T.getName());return l})}; iAQ=function(a,l,m,T){var y=WaQ(bv,m);y!==null&&y.Iy!==l&&(a.gr(y),y=null);y||(l=a.LP(m,Nv(),!1,l),bv.L.length==0&&(Mv().Z=79463069),th3([l]),y=l,y.j=xp(a),T&&(y.Mj=T));return y}; dvd=function(a,l){var m=a[l];m!==void 0&&m>0&&(a[l]=Math.floor(m*1E3))}; M5d=function(){var a=To(),l={},m={},T={};return Object.assign({},(l.sv="966",l),Na!==null&&(m.v=Na,m),(T["if"]=a.Z?"1":"0",T.nas=String(bv.T.length),T))}; a3=function(a){oL.call(this,"audio_audible",a)}; lh=function(a){xU.call(this,"audio_measurable",a)}; mp=function(){KQ.apply(this,arguments)}; Tt=function(){}; jR5=function(a){this.T=a}; bAd=function(a,l,m){a=a.L();if(typeof a==="function"){var T={};var y={};T=Object.assign({},Na!==null&&(T.v=Na,T),(y.sv="966",y.cb=wdR,y.e=AqR(l),y));y=y9(m,l,RL());g.yk(T,y);m.LL[l]=y;T=m.Ot()==2?WCR(T).join("&"):m.On.T(T).T;try{return a(m.Iy,T,l),0}catch(R){return 2}}else return 1}; AqR=function(a){var l=eq(a)?"custom_metric_viewable":a;a=UX(Ta,function(m){return m==l}); return Q9[a]}; y$=function(){nQ.call(this);this.C=null;this.K=!1;this.j="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; PiR=function(a,l,m){m=m.opt_configurable_tracking_events;a.T!=null&&Array.isArray(m)&&RLP(a,m,l)}; GrR=function(a,l,m){var T=qa(bv,l);T||(T=m.opt_nativeTime||-1,T=wZ(a,l,xp(a),T),m.opt_osdId&&(T.Mj=m.opt_osdId));return T}; V5t=function(a,l,m){var T=qa(bv,l);T||(T=wZ(a,l,"n",m.opt_nativeTime||-1));return T}; pPp=function(a,l){var m=qa(bv,l);m||(m=wZ(a,l,"h",-1));return m}; ZAt=function(a){Mv();switch(xp(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; L97=function(a,l,m,T){m=m===void 0?{}:m;var y={};g.yk(y,{opt_adElement:void 0,opt_fullscreen:void 0},m);var R=a.d3(l,m);m=R?R.On:a.oe();if(y.opt_bounds)return m.T(t5("ol",T));if(T!==void 0)if(IYz(T)!==void 0)if(CQ)a=t5("ue",T);else if(qhb(a),EO=="i")a=t5("i",T),a["if"]=0;else if(l=a.d3(l,y)){b:{EO=="i"&&(l.Ua=!0);R=y.opt_fullscreen;R!==void 0&&vN(l,!!R);var H;if(R=!To().L)(R=W2(g.ej(),"CrKey")&&!(W2(g.ej(),"CrKey")&&W2(g.ej(),"SmartSpeaker"))||W2(g.ej(),"PlayStation")||W2(g.ej(),"Roku")||bVd()||W2(g.ej(), "Xbox"))||(R=g.ej(),R=W2(R,"AppleTV")||W2(R,"Apple TV")||W2(R,"CFNetwork")||W2(R,"tvOS")),R||(R=g.ej(),R=W2(R,"sdk_google_atv_x86")||W2(R,"Android TV")),R=!R;R&&(U0(),R=LF(yL)===0);if(H=R){switch(l.Ot()){case 1:g1R(l,"pv");break;case 2:a.fk(l)}oU("pv")}R=T.toLowerCase();if(H=!H)H=jj(Mv().qN,"ssmol")&&R==="loaded"?!1:g.pD(W95,R);if(H&&l.AO==0){EO!="i"&&(Zn.done=!1);H=y!==void 0?y.opt_nativeTime:void 0;F8=H=typeof H==="number"?H:Nv();l.kD=!0;var b=RL();l.AO=1;l.Cu={};l.Cu.start=!1;l.Cu.firstquartile= !1;l.Cu.midpoint=!1;l.Cu.thirdquartile=!1;l.Cu.complete=!1;l.Cu.resume=!1;l.Cu.pause=!1;l.Cu.skip=!1;l.Cu.mute=!1;l.Cu.unmute=!1;l.Cu.viewable_impression=!1;l.Cu.measurable_impression=!1;l.Cu.fully_viewable_audible_half_duration_impression=!1;l.Cu.fullscreen=!1;l.Cu.exitfullscreen=!1;l.b9=0;b||(l.Ch().J=H);cH(Zn,[l],!b)}(H=l.yJ[R])&&nM(l.Q4,H);jj(Mv().qN,"fmd")||g.pD(cq7,R)&&l.U$&&l.U$.L(l,null);switch(l.Ot()){case 1:var M=eq(R)?a.B.custom_metric_viewable:a.B[R];break;case 2:M=a.J[R]}if(M&&(T=M.call(a, l,y,T),jj(Mv().qN,"fmd")&&g.pD(cq7,R)&&l.U$&&l.U$.L(l,null),T!==void 0)){y=t5(void 0,R);g.yk(y,T);T=y;break b}T=void 0}l.AO==3&&a.gr(l);a=T}else a=t5("nf",T);else a=void 0;else CQ?a=t5("ue"):R?(a=t5(),g.yk(a,q8d(R,!0,!1,!1))):a=t5("nf");return typeof a==="string"?m.T():m.T(a)}; N85=function(a,l){l&&(a.j=l)}; QR3=function(a){var l={};return l.viewability=a.T,l.googleViewability=a.L,l}; t5d=function(a,l,m){m=m===void 0?{}:m;a=L97(Xl(y$),l,m,a);return QR3(a)}; R3=function(a,l){return(a=(new RegExp("[^#]*[?&]"+l+"=([^&#]*)")).exec(a))?a[1]:null}; HE=function(a){var l=g.Jz.apply(1,arguments).filter(Boolean).join("&");if(!l)return a;var m=a.match(/[?&]adurl=/);return m?a.slice(0,m.index+1)+l+"&"+a.slice(m.index+1):a+(a.indexOf("?")<0?"?":"&")+l}; qS=function(a,l){return l?"&"+a+"="+encodeURIComponent(l):""}; eLt=function(a){var l=a.url;a=a.uhO;this.T=l;this.Z=a;this.L=(new Date).getTime()-17040672E5}; F97=function(a){a=a.Z;if(!a)return"";var l=qS("uap",a.platform)+qS("uapv",a.platformVersion)+qS("uafv",a.uaFullVersion)+qS("uaa",a.architecture)+qS("uam",a.model)+qS("uab",a.bitness);a.fullVersionList&&(l+="&uafvl="+encodeURIComponent(a.fullVersionList.map(function(m){return encodeURIComponent(m.brand)+";"+encodeURIComponent(m.version)}).join("|"))); a.wow64!=null&&(l+="&uaw="+Number(a.wow64));return l.slice(1)}; K9w=function(a,l,m,T,y){var R=window;var H=H===void 0?!1:H;var b;m?b=(H===void 0?0:H)?"//ep1.adtrafficquality.google/bg/"+pm(m)+".js":"//pagead2.googlesyndication.com/bg/"+pm(m)+".js":b="";H=H===void 0?!1:H;m=R.document;var M={};l&&(M._scs_=l);M._bgu_=b;M._bgp_=T;M._li_="v_h.3.0.0.0";y&&(M._upb_=y);(l=R.GoogleTyFxhY)&&typeof l.push=="function"||(l=R.GoogleTyFxhY=[]);l.push(M);l=Cm(m).createElement("SCRIPT");l.type="text/javascript";l.async=!0;a=(H===void 0?0:H)?$Fl(hL5,pm(a)+".js"):$Fl(OAp,pm(a)+ ".js");g.ME(l,a);(R=(R.GoogleTyFxhYEET||{})[l.src])?R():m.getElementsByTagName("head")[0].appendChild(l)}; zL5=function(){try{var a,l;return!!((a=window)==null?0:(l=a.top)==null?0:l.location.href)&&!1}catch(m){return!0}}; bh=function(a,l,m){m=m===void 0?Error():m;var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.code=a;l+=":";m instanceof Error?(this.message=l+m.message,this.stack=m.stack||""):(this.message=l+String(m),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; MS=function(){var a=v1b();a=a===void 0?"bevasrsg":a;return new Promise(function(l){var m=window===window.top?window:zL5()?window:window.top,T=m[a],y;((y=T)==null?0:y.bevasrs)?l(new g9(T.bevasrs)):(T||(T={},T=(T.nqfbel=[],T),m[a]=T),T.nqfbel.push(function(R){l(new g9(R))}))})}; $vR=function(a){var l={c:a.uh,e:a.Y4,mc:a.V9,me:a.By};a.o9&&(l.co={c:a.o9.YH,a:a.o9.Mv,s:a.o9.U3});return l}; ih=function(a){g.k.call(this);this.wpc=a}; g9=function(a){g.k.call(this);var l=this;this.HY=a;this.Z="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.L=void 0;this.WQ=this.HY.p;this.j=this.HJ.bind(this);this.addOnDisposeCallback(function(){return void sR7(l)})}; Sh7=function(a){var l;return g.J(function(m){if(m.L==1){if(!a.HY.wpc)throw new bh(30,"NWA");return a.T?m.return(a.T):g.z(m,a.HY.wpc(),2)}l=m.T;a.T=new ih(l);return m.return(a.T)})}; sR7=function(a){a.L!==void 0&&(a.Z.forEach(function(l){var m;(m=a.L)==null||m.removeEventListener(l,a.j)}),a.L=void 0)}; fHH=function(a){var l=l===void 0?49:l;var m=[];Cv(a,d9,6).forEach(function(T){Xb(T,2)<=l&&m.push(Xb(T,1))}); return m}; Jq5=function(a){var l=l===void 0?49:l;var m=[];Cv(a,d9,6).forEach(function(T){Xb(T,2)>l&&m.push(Xb(T,1))}); return m}; B8d=function(a){a.then(function(){},function(){})}; jf=function(){g.k.apply(this,arguments);this.j=1;this[kr5]=this.dispose}; Ap=function(a){return{fieldType:2,fieldName:a}}; g.PE=function(a){return{fieldType:3,fieldName:a}}; n15=function(a){this.T=a;a.Fz("/client_streamz/bg/frs",g.PE("mk"))}; wPR=function(a){this.T=a;a.Fz("/client_streamz/bg/wrl",g.PE("mn"),Ap("ac"),Ap("sc"),g.PE("rk"),g.PE("mk"))}; IHz=function(a){this.T=a;a.v7("/client_streamz/bg/ec",g.PE("en"),g.PE("mk"))}; CiH=function(a){this.T=a;a.Fz("/client_streamz/bg/el",g.PE("en"),g.PE("mk"))}; E1p=function(a){this.T=a;a.v7("/client_streamz/bg/cec",Ap("ec"),g.PE("mk"))}; o1p=function(a){this.T=a;a.v7("/client_streamz/bg/po/csc",Ap("cs"),g.PE("mk"))}; xv7=function(a){this.T=a;a.v7("/client_streamz/bg/po/ctav",g.PE("av"),g.PE("mk"))}; Dvz=function(a){this.T=a;a.v7("/client_streamz/bg/po/cwsc",g.PE("su"),g.PE("mk"))}; u8H=function(a){this.Tx=P0(a)}; XPz=function(a,l){return $EP(a,l,bmt)}; Gt=function(a){this.Tx=P0(a)}; V$=function(a){this.Tx=P0(a)}; pa=function(a){this.Tx=P0(a)}; Zx=function(a){this.Tx=P0(a)}; Yhd=function(a){this.Tx=P0(a)}; g.a8l=function(a){var l=new Zx;l=lP(l,1,a.L);var m=Uvl(a);l=$EP(l,m,Wvw);m=[];for(var T=[],y=g.c(a.T.keys()),R=y.next();!R.done;R=y.next())T.push(R.value.split(","));for(y=0;y>>31)&4294967295;P=y[0];var p=y[1],L=y[2],N=y[3],e=y[4];for(V=0;V<80;V++){if(V<40)if(V<20){var t=N^p&(L^N);var v=1518500249}else t=p^L^N,v=1859775393;else V<60?(t=p&L|N&(p|L),v=2400959708):(t=p^L^N,v=3395469782);t=((P<<5|P>>>27)&4294967295)+t+e+v+G[V]&4294967295;e=N;N=L;L=(p<<30|p>>>2)&4294967295;p=P;P=t}y[0]=y[0]+P&4294967295;y[1]=y[1]+p&4294967295;y[2]= y[2]+L&4294967295;y[3]=y[3]+N&4294967295;y[4]=y[4]+e&4294967295} function m(P,G){if(typeof P==="string"){P=unescape(encodeURIComponent(P));for(var V=[],p=0,L=P.length;p=56;V--)R[V]=G&255,G>>>=8;l(R);for(V=G=0;V<5;V++)for(var p=24;p>=0;p-=8)P[G++]=y[V]>>p&255;return P} for(var y=[],R=[],H=[],b=[128],M=1;M<64;++M)b[M]=0;var d,A;a();return{reset:a,update:m,digest:T,H2:function(){for(var P=T(),G="",V=0;V1)));H=H.next)y||(R=H);y&&(m.T==0&&T==1?Yip(m,l):(R?(T=R,T.next==m.j&&(m.j=T),T.next=T.next.next):UI5(m),rAH(m,y,3,l)))}a.Z=null}else hC(a,3,l)}; JC=function(a,l){a.L||a.T!=2&&a.T!=3||and(a);a.j?a.j.next=l:a.L=l;a.j=l}; lnP=function(a,l,m,T){var y=sB(null,null,null);y.T=new g.$G(function(R,H){y.Z=l?function(b){try{var M=l.call(T,b);R(M)}catch(d){H(d)}}:R; y.L=m?function(b){try{var M=m.call(T,b);M===void 0&&b instanceof kG?H(b):R(M)}catch(d){H(d)}}:H}); y.T.Z=a;JC(a,y);return y.T}; hC=function(a,l,m){a.T==0&&(a===m&&(l=3,m=new TypeError("Promise cannot resolve to itself")),a.T=1,xI5(m,a.HaT,a.d2O,a)||(a.B=m,a.T=l,a.Z=null,and(a),l!=3||m instanceof kG||ma7(a,m)))}; xI5=function(a,l,m,T){if(a instanceof g.$G)return XNz(a,l,m,T),!0;if(a)try{var y=!!a.$goog_Thenable}catch(H){y=!1}else y=!1;if(y)return a.then(l,m,T),!0;if(g.ms(a))try{var R=a.then;if(typeof R==="function")return TZp(a,R,l,m,T),!0}catch(H){return m.call(T,H),!0}return!1}; TZp=function(a,l,m,T,y){function R(M){b||(b=!0,T.call(y,M))} function H(M){b||(b=!0,m.call(y,M))} var b=!1;try{l.call(a,H,R)}catch(M){R(M)}}; and=function(a){a.C||(a.C=!0,g.FS(a.uN,a))}; UI5=function(a){var l=null;a.L&&(l=a.L,a.L=l.next,l.next=null);a.L||(a.j=null);return l}; rAH=function(a,l,m,T){if(m==3&&l.L&&!l.j)for(;a&&a.K;a=a.Z)a.K=!1;if(l.T)l.T.Z=null,y5P(l,m,T);else try{l.j?l.Z.call(l.context):y5P(l,m,T)}catch(y){Rab.call(null,y)}Btd(oUp,l)}; y5P=function(a,l,m){l==2?a.Z.call(a.context,m):a.L&&a.L.call(a.context,m)}; ma7=function(a,l){a.K=!0;g.FS(function(){a.K&&Rab.call(null,l)})}; kG=function(a){dg.call(this,a)}; g.n1=function(a,l){g.Vz.call(this);this.rk=a||1;this.G1=l||g.u7;this.T_=(0,g.Rs)(this.BLz,this);this.Hp=g.bV()}; g.wX=function(a,l,m){if(typeof a==="function")m&&(a=(0,g.Rs)(a,m));else if(a&&typeof a.handleEvent=="function")a=(0,g.Rs)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(l)>2147483647?-1:g.u7.setTimeout(a,l||0)}; Ik=function(a,l){var m=null;return(new g.$G(function(T,y){m=g.wX(function(){T(l)},a); m==-1&&y(Error("Failed to schedule timer."))})).wd(function(T){g.u7.clearTimeout(m); throw T;})}; g.C1=function(a){g.k.call(this);this.B=a;this.j=0;this.Z=100;this.K=!1;this.L=new Map;this.C=new Set;this.flushInterval=3E4;this.T=new g.n1(this.flushInterval);this.T.listen("tick",this.Qs,!1,this);g.w(this,this.T)}; HQQ=function(a){a.T.enabled||a.T.start();a.j++;a.j>=a.Z&&a.Qs()}; qOd=function(a,l){return a.C.has(l)?void 0:a.L.get(l)}; bQd=function(a){for(var l=0;l2?a.T.statusText:""}catch(m){l=""}a.j=l+" ["+a.getStatus()+"]";ZQP(a)}}finally{XS(a)}}}; XS=function(a,l){if(a.T){a.C&&(clearTimeout(a.C),a.C=null);var m=a.T;a.T=null;l||a.dispatchEvent("ready");try{m.onreadystatechange=null}catch(T){}}}; rX=function(a){var l=a.getStatus();a:switch(l){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(l=l===0)a=g.e$(String(a.J))[1]||null,!a&&g.u7.self&&g.u7.self.location&&(a=g.u7.self.location.protocol.slice(0,-1)),l=!L45.test(a?a.toLowerCase():"");m=l}return m}; g.UB=function(a){return a.T?a.T.readyState:0}; g.aI=function(a){try{return a.T?a.T.responseText:""}catch(l){return""}}; g.ln=function(a){try{if(!a.T)return null;if("response"in a.T)return a.T.response;switch(a.qj){case "":case "text":return a.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.T)return a.T.mozResponseArrayBuffer}return null}catch(l){return null}}; g.NZz=function(a){var l={};a=(a.T&&g.UB(a)>=2?a.T.getAllResponseHeaders()||"":"").split("\r\n");for(var m=0;m>1,l),hQ(a,a.length>>1)]}; mSd=function(a){var l=g.c(lxp(a,OA));a=l.next().value;l=l.next().value;return a.toString(16)+l.toString(16)}; T9Q=function(a,l){var m=lxp(l);a=new Uint32Array(a.buffer);l=a[0];var T=g.c(m);m=T.next().value;T=T.next().value;for(var y=1;y>>8|H<<24,H+=R|0,H^=b+38293,R=R<<3|R>>>29,R^=H,M=M>>>8|M<<24,M+=b|0,M^=d+38293,b=b<<3|b>>>29,b^=M;R=[R,H];a[y]^=R[0];y+1=m?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(T.buffer,l+4)]}; Kr=function(a,l,m){m=m===void 0?[]:m;this.maxItems=a;this.T=l===void 0?0:l;this.L=m}; Ha7=function(a){var l=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!l)return new Kr(a);var m=l.split(",");if(m.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Kr(a);l=m.slice(1);l.length===1&&l[0]===""&&(l=[]);m=Number(m[0]);return isNaN(m)||m<0||m>l.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Kr(a)):new Kr(a,m,l)}; q$l=function(a,l){this.logger=l;try{var m=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(T){m=!1}m&&(this.index=Ha7(a))}; bab=function(a,l,m,T,y){var R=a.index?qP(a.logger,function(){return ypH(a.index,mSd(l),m,T,y)},"W"):"u"; a.logger.WK(R)}; gxP=function(a,l,m){var T=g.c(a.index?qP(a.logger,function(){return RUz(mSd(l),m)},"R"):["u"]),y=T.next().value; T=T.next().value;a.logger.V3(y);return T}; dSP=function(a){function l(){m-=T;m-=y;m^=y>>>13;T-=y;T-=m;T^=m<<8;y-=m;y-=T;y^=T>>>13;m-=T;m-=y;m^=y>>>12;T-=y;T-=m;T^=m<<16;y-=m;y-=T;y^=T>>>5;m-=T;m-=y;m^=y>>>3;T-=y;T-=m;T^=m<<10;y-=m;y-=T;y^=T>>>15} a=Mfd(a);for(var m=2654435769,T=2654435769,y=314159265,R=a.length,H=R,b=0;H>=12;H-=12,b+=12)m+=z6(a,b),T+=z6(a,b+4),y+=z6(a,b+8),l();y+=R;switch(H){case 11:y+=a[b+10]<<24;case 10:y+=a[b+9]<<16;case 9:y+=a[b+8]<<8;case 8:T+=a[b+7]<<24;case 7:T+=a[b+6]<<16;case 6:T+=a[b+5]<<8;case 5:T+=a[b+4];case 4:m+=a[b+3]<<24;case 3:m+=a[b+2]<<16;case 2:m+=a[b+1]<<8;case 1:m+=a[b+0]}l();return iaw.toString(y)}; Mfd=function(a){for(var l=[],m=0;m>7,a.error.code]);T.set(m,4);return T}; nr=function(a,l,m){vv.call(this,a);this.j=l;this.clientState=m;this.T="S";this.L="q"}; kY=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.mL(a)}; Php=function(a,l,m){return a instanceof Q8?wHd(a,m,l,1):a.zw(m)}; II=function(a){g.k.call(this);var l=this;this.Z=new g.pr;this.j=0;this.L=void 0;this.state=2;this.HY=a.HY;this.n8=a.n8;this.cQ=Object.assign({},Gtd,a.cQ||{});this.logger=a.HY.tD();var m;this.onError=(m=a.onError)!=null?m:function(){}; this.qy=a.qy||!1;if(Vfz(a)){var T=this.HY;this.K=function(){return xaz(T).catch(function(H){H=l.reportError(new bh(l.T?20:32,"TRG:Disposed",H));l.L=H;var b;(b=l.T)==null||b.dispose();l.T=void 0;l.Z.reject(H)})}; Daw(T,function(){return void wO(l)}); T.J===2&&wO(this)}else this.K=a.Etg,wO(this);var y=this.logger.share();y.ke("o");var R=new RI(y,"o");this.Z.promise.then(function(){R.done();y.kt();y.dispose()},function(){return void y.dispose()}); this.addOnDisposeCallback(function(){l.T?(l.T.dispose(),l.T=void 0):l.L?l.logger.kt():(l.L=l.reportError(new bh(32,"TNP:Disposed")),l.logger.kt(),l.Z.reject(l.L))}); g.w(this,this.logger)}; pEd=function(a,l){if(!(l instanceof bh))if(l instanceof EB){var m=Error(l.toString());m.stack=l.stack;l=new bh(11,"EBH:Error",m)}else l=new bh(12,"BSO:Unknown",l);return a.reportError(l)}; wO=function(a){var l,m,T,y,R,H,b,M,d,A,P,G,V,p,L;return g.J(function(N){switch(N.L){case 1:l=void 0;a.j++;m=new g.pr;a.HY instanceof tQ&&a.HY.j.push(m.promise);if(!a.qy){N.iT(2);break}T=new g.pr;setTimeout(function(){return void T.resolve()}); return g.z(N,T.promise,2);case 2:return y=a.logger.share(),g.LP(N,4,5),a.state=5,R={},H=[],g.z(N,Fe(a.HY.snapshot({uh:R,Zs:H}),a.cQ.LAz,function(){return Promise.reject(new bh(15,"MDA:Timeout"))}),7); case 7:b=N.T;if(a.FO())throw new bh(a.T?20:32,"MDA:Disposed");M=H[0];a.state=6;return g.z(N,Fe(Php(a.n8,y,b),a.cQ.xr,function(){return Promise.reject(new bh(10,"BWB:Timeout"))}),8); case 8:d=N.T;if(a.FO())throw new bh(a.T?20:32,"BWB:Disposed");a.state=7;l=qP(y,function(){var t=Zaw(a,d,m,M);t.Z.promise.then(function(){return void a.K()}); return t},"i"); case 5:g.zH(N);y.dispose();g.$l(N,6);break;case 4:A=g.OQ(N);(P=l)==null||P.dispose();if(!a.L){G=pEd(a,A);m.resolve();var e;if(e=a.HY instanceof tQ&&a.j<2)a:if(A instanceof bh)e=A.code!==32&&A.code!==20&&A.code!==10;else{if(A instanceof EB)switch(A.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return V=(1+Math.random()*.25)*(a.T?6E4:1E3),p=setTimeout(function(){return void a.K()},V),a.addOnDisposeCallback(function(){return void clearTimeout(p)}),N.return(); a.L=G}y.Ft(a.T?13:14);a.Z.reject(a.L);return N.return();case 6:a.state=8,a.j=0,(L=a.T)==null||L.dispose(),a.T=l,a.Z.resolve(),g.c5(N)}})}; Zaw=function(a,l,m,T){var y=Y2(l,2)*1E3;if(y<=0)throw new bh(31,"TTM:Invalid");if(UM(l,4))return new JQ(a.logger,UM(l,4),y);if(!Y2(l,3))return new fr(a.logger,iJ(zL(l,1)),y);if(!T)throw new bh(4,"PMD:Undefined");T=T(iJ(zL(l,1)));if(!(T instanceof Function))throw new bh(16,"APF:Failed");a.C=Math.floor((Date.now()+y)/1E3);a=new Sz(a.logger,T,Y2(l,3),y);a.addOnDisposeCallback(function(){return void m.resolve()}); return a}; Wp7=function(a,l){l=l instanceof bh?l:new bh(5,"TVD:error",l);return a.reportError(l)}; tfd=function(a,l,m){try{if(a.FO())throw new bh(21,"BNT:disposed");if(!a.T&&a.L)throw a.L;var T,y;return(y=(T=cpP(a,l,m))!=null?T:Lpp(a,l,m))!=null?y:N9d(a,l,m)}catch(R){if(!l.By)throw Wp7(a,R);return Q3R(a,m,R)}}; cpP=function(a,l,m){var T;return(T=a.T)==null?void 0:sA(T,function(){return Cr(a,l)},m,function(y){var R; if(a.T instanceof Sz&&((R=l.o9)==null?0:R.U3))try{var H;(H=a.cache)==null||bab(H,Cr(a,l),y,l.o9.YH,a.C-120)}catch(b){a.reportError(new bh(24,"ELX:write",b))}})}; Lpp=function(a,l,m){var T;if((T=l.o9)!=null&&T.Mv)try{var y,R=(y=a.cache)==null?void 0:gxP(y,Cr(a,l),l.o9.YH);return R?m?qP(a.logger,function(){return g.Tf(R,2)},"a"):R:void 0}catch(H){a.reportError(new bh(23,"RXO:read",H))}}; N9d=function(a,l,m){var T={stack:[],error:void 0,hasError:!1};try{if(!l.V9)throw new bh(29,"SDF:notready");return sA(V7b(T,new nr(a.logger,0,a.state)),function(){return Cr(a,l)},m)}catch(y){T.error=y,T.hasError=!0}finally{p5Q(T)}}; Q3R=function(a,l,m){var T={stack:[],error:void 0,hasError:!1};try{var y=Wp7(a,m);return sA(V7b(T,new Bv(a.logger,y)),function(){return[]},l)}catch(R){T.error=R,T.hasError=!0}finally{p5Q(T)}}; Cr=function(a,l){return l.Y4?l.Y4:l.uh?qP(a.logger,function(){return l.Y4=kY(l.uh)},"c"):[]}; EA=function(){var a=0,l;return function(m){l||(l=new bn);var T=new nr(l,a,1),y=sA(T,function(){return kY(m)},!0); T.dispose();a++;return y}}; oI=function(a){this.Tx=P0(a)}; eU7=function(a,l,m){this.ER=a;this.m5=l;this.metadata=m}; xY=function(a,l){l=l===void 0?{}:l;this.mAN=a;this.metadata=l;this.status=null}; Dy=function(a,l,m,T,y){this.name=a;this.methodType="unary";this.requestType=l;this.responseType=m;this.T=T;this.L=y}; un=function(a){this.Tx=P0(a)}; Xe=function(a){this.Tx=P0(a)}; YY=function(a){this.Tx=P0(a)}; UA=function(a,l){this.B=a.FNT;this.J=l;this.T=a.xhr;this.Z=[];this.K=[];this.C=[];this.j=[];this.L=[];this.B&&Fpt(this)}; zUt=function(a,l){var m=new hUd;g.bB(a.T,"complete",function(){if(rX(a.T)){var T=g.aI(a.T);if(l&&a.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");T=atob(T)}try{var y=a.J(T)}catch(b){rO(a,aA(new EB(13,"Error when deserializing response data; error: "+b+(", response: "+T)),m));return}T=gpQ(a.T.getStatus());l_(a,my(a));T==0?OaP(a,y):rO(a,aA(new EB(T,"Xhr succeeded but the status code is not 200"),m))}else{T=g.aI(a.T);y=my(a);if(T){var R=Kpz(a, T);T=R.code;var H=R.details;R=R.metadata}else T=2,H="Rpc failed due to xhr error. uri: "+String(a.T.J)+", error code: "+a.T.L+", error: "+a.T.getLastError(),R=y;l_(a,y);rO(a,aA(new EB(T,H,R),m))}})}; Fpt=function(a){a.B.E$("data",function(l){if("1"in l){var m=l["1"];try{var T=a.J(m)}catch(y){rO(a,new EB(13,"Error when deserializing response data; error: "+y+(", response: "+m)))}T&&OaP(a,T)}if("2"in l)for(l=Kpz(a,l["2"]),m=0;m-1&&a.splice(l,1)}; OaP=function(a,l){for(var m=0;m>4&15).toString(16)+(a&15).toString(16)}; Jp7=function(a){return a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; Ay=function(a,l){this.L=this.T=null;this.Z=a||null;this.j=!!l}; pG=function(a){a.T||(a.T=new Map,a.L=0,a.Z&&zb(a.Z,function(l,m){a.add(VP(l),m)}))}; B9H=function(a,l){pG(a);l=ZK(a,l);return a.T.has(l)}; g.kt7=function(a,l,m){a.remove(l);m.length>0&&(a.Z=null,a.T.set(ZK(a,l),g.NF(m)),a.L=a.L+m.length)}; ZK=function(a,l){l=String(l);a.j&&(l=l.toLowerCase());return l}; s3P=function(a,l){l&&!a.j&&(pG(a),a.Z=null,a.T.forEach(function(m,T){var y=T.toLowerCase();T!=y&&(this.remove(T),g.kt7(this,y,m))},a)); a.j=l}; g.nxd=function(a){var l="";g.wg(a,function(m,T){l+=T;l+=":";l+=m;l+="\r\n"}); return l}; g.Wf=function(a,l,m){if(g.rg(m))return a;m=g.nxd(m);if(typeof a==="string")return fF(a,g.Gy(l),m);g.GJ(a,l,m);return a}; g.cf=function(a){g.k.call(this);this.L=a;this.T={}}; wE3=function(a,l,m,T,y,R){if(Array.isArray(m))for(var H=0;H=0)return!0;try{var l=new g.b_(a)}catch(m){return g.Pn(yCt,function(T){return a.search(T)>0})!=null}return l.C.match(RJd)?!0:g.Pn(yCt,function(m){return a.match(m)!=null})!=null}; g.fG=function(a,l){return a.replace(qBz,function(m,T){try{var y=g.aV(l,T);if(y==null||y.toString()==null)return m;y=y.toString();if(y==""||!g.Vk(g.W6(y)))return encodeURIComponent(y).replace(/%2C/g,",")}catch(R){}return m})}; Jy=function(a,l){return Object.is(a,l)}; k$=function(a){var l=Bf;Bf=a;return l}; b1H=function(a){a&&(a.NS=0);return k$(a)}; gGw=function(a,l){k$(l);if(a&&a.u$!==void 0&&a.Xu!==void 0&&a.gH!==void 0){if(nG(a))for(l=a.NS;la.NS;)a.u$.pop(),a.gH.pop(),a.Xu.pop()}}; i1z=function(a,l,m){MF7(a);if(a.Kl.length===0&&a.u$!==void 0)for(var T=0;T0}; d2t=function(a){a.u$!=null||(a.u$=[]);a.Xu!=null||(a.Xu=[]);a.gH!=null||(a.gH=[])}; MF7=function(a){a.Kl!=null||(a.Kl=[]);a.tH!=null||(a.tH=[])}; PBb=function(a){function l(){if(Bf!==null){var T=Bf.NS++;d2t(Bf);T0?" "+l:l))}}; g.i0=function(a,l){if(a.classList)Array.prototype.forEach.call(l,function(y){g.M$(a,y)}); else{var m={};Array.prototype.forEach.call(q$(a),function(y){m[y]=!0}); Array.prototype.forEach.call(l,function(y){m[y]=!0}); l="";for(var T in m)l+=l.length>0?" "+T:T;g.b0(a,l)}}; g.dK=function(a,l){a.classList?a.classList.remove(l):g.gK(a,l)&&g.b0(a,Array.prototype.filter.call(q$(a),function(m){return m!=l}).join(" "))}; g.jt=function(a,l){a.classList?Array.prototype.forEach.call(l,function(m){g.dK(a,m)}):g.b0(a,Array.prototype.filter.call(q$(a),function(m){return!g.pD(l,m)}).join(" "))}; g.AM=function(a,l,m){m?g.M$(a,l):g.dK(a,l)}; LNd=function(a,l){var m=!g.gK(a,l);g.AM(a,l,m)}; g.Pb=function(){g.Vz.call(this);this.T=0;this.endTime=this.startTime=null}; NXt=function(a,l){Array.isArray(l)||(l=[l]);l=l.map(function(m){return typeof m==="string"?m:m.property+" "+m.duration+"s "+m.timing+" "+m.delay+"s"}); g.nA(a,"transition",l.join(","))}; Gw=function(a,l,m,T,y){g.Pb.call(this);this.L=a;this.K=l;this.C=m;this.j=T;this.B=Array.isArray(y)?y:[y]}; QkH=function(a,l,m,T){return new Gw(a,l,{opacity:m},{opacity:T},{property:"opacity",duration:l,timing:"ease-in",delay:0})}; eJt=function(a){a=c2(a);if(a=="")return null;var l=String(a.slice(0,4)).toLowerCase();if(("url("1||a&&a.split(")"),null;if(a.indexOf("(")>0){if(/"|'/.test(a))return null;l=/([\-\w]+)\(/g;for(var m;m=l.exec(a);)if(!(m[1].toLowerCase()in tF7))return null}return a}; Ve=function(a,l){a=g.u7[a];return a&&a.prototype?(l=Object.getOwnPropertyDescriptor(a.prototype,l))&&l.get||null:null}; FN7=function(a){var l=g.u7.CSSStyleDeclaration;return l&&l.prototype&&l.prototype[a]||null}; hJP=function(a,l,m,T){if(a)return a.apply(l,T);if(g.pe&&document.documentMode<10){if(!l[m].call)throw Error("IE Clobbering detected");}else if(typeof l[m]!="function")throw Error("Clobbering detected");return l[m].apply(l,T)}; $2z=function(a){if(!a)return"";var l=document.createElement("div").style;O1z(a).forEach(function(m){var T=g.Y5&&m in KNP?m:m.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Gm(T,"--")||Gm(T,"var")||(m=hJP(zJH,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[m])||"",m=eJt(m),m!=null&&hJP(vG7,l,l.setProperty?"setProperty":"setAttribute",[T,m]))}); return l.cssText||""}; O1z=function(a){g.lV(a)?a=g.NF(a):(a=g.uV(a),g.Wn(a,"cssText"));return a}; g.Wb=function(a){var l,m=l=0,T=!1;a=a.split(skQ);for(var y=0;y.4?-1:1;return(l==0?null:l)==-1?"rtl":"ltr"}; g.Qe=function(a){if(a instanceof cb||a instanceof Le||a instanceof N$)return a;if(typeof a.next=="function")return new cb(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new cb(function(){return a[Symbol.iterator]()}); if(typeof a.nH=="function")return new cb(function(){return a.nH()}); throw Error("Not an iterator or iterable.");}; cb=function(a){this.L=a}; Le=function(a){this.L=a}; N$=function(a){cb.call(this,function(){return a}); this.Z=a}; tM=function(a,l,m,T,y,R,H,b){this.T=a;this.B=l;this.Z=m;this.K=T;this.j=y;this.C=R;this.L=H;this.J=b}; et=function(a,l){if(l==0)return a.T;if(l==1)return a.L;var m=v6(a.T,a.Z,l),T=v6(a.Z,a.j,l);a=v6(a.j,a.L,l);m=v6(m,T,l);T=v6(T,a,l);return v6(m,T,l)}; BXP=function(a,l){var m=(l-a.T)/(a.L-a.T);if(m<=0)return 0;if(m>=1)return 1;for(var T=0,y=1,R=0,H=0;H<8;H++){R=et(a,m);var b=(et(a,m+1E-6)-R)/1E-6;if(Math.abs(R-l)<1E-6)return m;if(Math.abs(b)<1E-6)break;else R1E-6&&H<8;H++)R=0}; g.Ke=function(a){g.k.call(this);this.C=1;this.Z=[];this.j=0;this.T=[];this.L={};this.B=!!a}; nGb=function(a,l,m){g.FS(function(){a.apply(l,m)})}; g.zw=function(a){this.T=a}; vb=function(a){this.T=a}; wZd=function(a){this.data=a}; ILd=function(a){return a===void 0||a instanceof wZd?a:new wZd(a)}; $e=function(a){this.T=a}; g.CBb=function(a){var l=a.creation;a=a.expiration;return!!a&&ag.bV()}; g.s3=function(a){this.T=a}; EGd=function(){}; St=function(){}; fe=function(a){this.T=a;this.L=null}; JM=function(a){if(a.T==null)throw Error("Storage mechanism: Storage unavailable");var l;(oGQ?a.isAvailable():(l=a.L)!=null?l:a.isAvailable())||lJ(Error("Storage mechanism: Storage unavailable"))}; Bb=function(){var a=null;try{a=g.u7.localStorage||null}catch(l){}fe.call(this,a)}; x2Q=function(){var a=null;try{a=g.u7.sessionStorage||null}catch(l){}fe.call(this,a)}; ke=function(a,l){this.L=a;this.T=l+"::"}; g.ne=function(a){var l=new Bb;return l.isAvailable()?a?new ke(l,a):l:null}; wK=function(a,l){this.T=a;this.L=l}; IH=function(a){this.T=[];if(a)a:{if(a instanceof IH){var l=a.JK();a=a.hs();if(this.T.length<=0){for(var m=this.T,T=0;T>>6:(R<65536?b[m++]=224|R>>>12:(b[m++]=240|R>>>18,b[m++]=128|R>>>12&63),b[m++]=128|R>>> 6&63),b[m++]=128|R&63);return b}; xe=function(a){for(var l=a.length;--l>=0;)a[l]=0}; DS=function(a,l,m,T,y){this.Zm=a;this.ea=l;this.CF=m;this.ya=T;this.sjN=y;this.LI=a&&a.length}; u0=function(a,l){this.d8=a;this.jA=0;this.Ss=l}; XW=function(a,l){a.E0[a.pending++]=l&255;a.E0[a.pending++]=l>>>8&255}; Ye=function(a,l,m){a.xd>16-m?(a.E9|=l<>16-a.xd,a.xd+=m-16):(a.E9|=l<>>=1,m<<=1;while(--l>0);return m>>>1}; U2d=function(a,l,m){var T=Array(16),y=0,R;for(R=1;R<=15;R++)T[R]=y=y+m[R-1]<<1;for(m=0;m<=l;m++)y=a[m*2+1],y!==0&&(a[m*2]=YBd(T[y]++,y))}; rCb=function(a){var l;for(l=0;l<286;l++)a.L_[l*2]=0;for(l=0;l<30;l++)a.yB[l*2]=0;for(l=0;l<19;l++)a.H1[l*2]=0;a.L_[512]=1;a.K3=a.E4=0;a.e4=a.matches=0}; ay5=function(a){a.xd>8?XW(a,a.E9):a.xd>0&&(a.E0[a.pending++]=a.E9);a.E9=0;a.xd=0}; lyl=function(a,l,m){ay5(a);XW(a,m);XW(a,~m);oH.CU(a.E0,a.window,l,m,a.pending);a.pending+=m}; mPl=function(a,l,m,T){var y=l*2,R=m*2;return a[y]>>7)];U3(a,H,m);b=ys[H];b!==0&&(y-=Rw[H],Ye(a,y,b))}}while(T>1;H>=1;H--)rK(a,m,H);M=R;do H=a.x0[1],a.x0[1]=a.x0[a.G8--],rK(a,m,1),T=a.x0[1],a.x0[--a.F4]=H,a.x0[--a.F4]=T,m[M*2]=m[H*2]+m[T*2],a.depth[M]=(a.depth[H]>=a.depth[T]?a.depth[H]:a.depth[T])+1,m[H*2+1]=m[T*2+1]=M,a.x0[1]=M++,rK(a,m,1);while(a.G8>= 2);a.x0[--a.F4]=a.x0[1];H=l.d8;M=l.jA;T=l.Ss.Zm;y=l.Ss.LI;R=l.Ss.ea;var d=l.Ss.CF,A=l.Ss.sjN,P,G=0;for(P=0;P<=15;P++)a.bK[P]=0;H[a.x0[a.F4]*2+1]=0;for(l=a.F4+1;l<573;l++){var V=a.x0[l];P=H[H[V*2+1]*2+1]+1;P>A&&(P=A,G++);H[V*2+1]=P;if(!(V>M)){a.bK[P]++;var p=0;V>=d&&(p=R[V-d]);var L=H[V*2];a.K3+=L*(P+p);y&&(a.E4+=L*(T[V*2+1]+p))}}if(G!==0){do{for(P=A-1;a.bK[P]===0;)P--;a.bK[P]--;a.bK[P+1]+=2;a.bK[A]--;G-=2}while(G>0);for(P=A;P!==0;P--)for(V=a.bK[P];V!==0;)T=a.x0[--l],T>M||(H[T*2+1]!==P&&(a.K3+=(P- H[T*2+1])*H[T*2],H[T*2+1]=P),V--)}U2d(m,b,a.bK)}; yQR=function(a,l,m){var T,y=-1,R=l[1],H=0,b=7,M=4;R===0&&(b=138,M=3);l[(m+1)*2+1]=65535;for(T=0;T<=m;T++){var d=R;R=l[(T+1)*2+1];++H>>=1)if(l&1&&a.L_[m*2]!==0)return 0;if(a.L_[18]!==0||a.L_[20]!==0||a.L_[26]!==0)return 1;for(m=32;m<256;m++)if(a.L_[m*2]!==0)return 1;return 0}; qM=function(a,l,m){a.E0[a.F1+a.e4*2]=l>>>8&255;a.E0[a.F1+a.e4*2+1]=l&255;a.E0[a.fD+a.e4]=m&255;a.e4++;l===0?a.L_[m*2]++:(a.matches++,l--,a.L_[(aw[m]+256+1)*2]++,a.yB[(l<256?Tc[l]:Tc[256+(l>>>7)])*2]++);return a.e4===a.TO-1}; gh=function(a,l){a.msg=bp[l];return l}; MM=function(a){for(var l=a.length;--l>=0;)a[l]=0}; ip=function(a){var l=a.state,m=l.pending;m>a.XJ&&(m=a.XJ);m!==0&&(oH.CU(a.output,l.E0,l.XB,m,a.EU),a.EU+=m,l.XB+=m,a.PA+=m,a.XJ-=m,l.pending-=m,l.pending===0&&(l.XB=0))}; AW=function(a,l){var m=a.UP>=0?a.UP:-1,T=a.Eb-a.UP,y=0;if(a.level>0){a.WY.V_===2&&(a.WY.V_=Hrp(a));Hp(a,a.CV);Hp(a,a.PX);yQR(a,a.L_,a.CV.jA);yQR(a,a.yB,a.PX.jA);Hp(a,a.lF);for(y=18;y>=3&&a.H1[qAP[y]*2+1]===0;y--);a.K3+=3*(y+1)+5+5+4;var R=a.K3+3+7>>>3;var H=a.E4+3+7>>>3;H<=R&&(R=H)}else R=H=T+5;if(T+4<=R&&m!==-1)Ye(a,l?1:0,3),lyl(a,m,T);else if(a.strategy===4||H===R)Ye(a,2+(l?1:0),3),TOQ(a,dh,jQ);else{Ye(a,4+(l?1:0),3);m=a.CV.jA+1;T=a.PX.jA+1;y+=1;Ye(a,m-257,5);Ye(a,T-1,5);Ye(a,y-4,4);for(R=0;R>>8&255;a.E0[a.pending++]=l&255}; br3=function(a,l){var m=a.Oh,T=a.Eb,y=a.pH,R=a.pJ,H=a.Eb>a.j$-262?a.Eb-(a.j$-262):0,b=a.window,M=a.du,d=a.dP,A=a.Eb+258,P=b[T+y-1],G=b[T+y];a.pH>=a.tU&&(m>>=2);R>a.dW&&(R=a.dW);do{var V=l;if(b[V+y]===G&&b[V+y-1]===P&&b[V]===b[T]&&b[++V]===b[T+1]){T+=2;for(V++;b[++T]===b[++V]&&b[++T]===b[++V]&&b[++T]===b[++V]&&b[++T]===b[++V]&&b[++T]===b[++V]&&b[++T]===b[++V]&&b[++T]===b[++V]&&b[++T]===b[++V]&&Ty){a.sU=l;y=V;if(V>=R)break;P=b[T+y-1];G=b[T+y]}}}while((l=d[l&M])>H&&--m!== 0);return y<=a.dW?y:a.dW}; Zf=function(a){var l=a.j$,m;do{var T=a.UI-a.dW-a.Eb;if(a.Eb>=l+(l-262)){oH.CU(a.window,a.window,l,l,0);a.sU-=l;a.Eb-=l;a.UP-=l;var y=m=a.yL;do{var R=a.head[--y];a.head[y]=R>=l?R-l:0}while(--m);y=m=l;do R=a.dP[--y],a.dP[y]=R>=l?R-l:0;while(--m);T+=l}if(a.WY.DE===0)break;y=a.WY;m=a.window;R=a.Eb+a.dW;var H=y.DE;H>T&&(H=T);H===0?m=0:(y.DE-=H,oH.CU(m,y.input,y.vM,H,R),y.state.wrap===1?y.UG=Vs(y.UG,m,H,R):y.state.wrap===2&&(y.UG=p5(y.UG,m,H,R)),y.vM+=H,y.PM+=H,m=H);a.dW+=m;if(a.dW+a.Q2>=3)for(T=a.Eb-a.Q2, a.Yf=a.window[T],a.Yf=(a.Yf<=3&&(a.Yf=(a.Yf<=3)if(m=qM(a,a.Eb-a.sU,a.Ih-3),a.dW-=a.Ih,a.Ih<=a.M1&&a.dW>=3){a.Ih--;do a.Eb++,a.Yf=(a.Yf<=3&&(a.Yf=(a.Yf<4096)&&(a.Ih=2));if(a.pH>=3&&a.Ih<=a.pH){T=a.Eb+a.dW-3;m=qM(a,a.Eb-1-a.a5,a.pH-3);a.dW-=a.pH-1;a.pH-=2;do++a.Eb<=T&&(a.Yf=(a.Yf<=3&&a.Eb>0&&(T=a.Eb-1,m=R[T],m===R[++T]&&m===R[++T]&&m===R[++T])){for(y=a.Eb+258;m===R[++T]&&m===R[++T]&&m===R[++T]&&m===R[++T]&&m===R[++T]&&m===R[++T]&&m===R[++T]&&m===R[++T]&&Ta.dW&&(a.Ih=a.dW)}a.Ih>=3?(m=qM(a,1,a.Ih-3),a.dW-=a.Ih,a.Eb+=a.Ih,a.Ih=0):(m=qM(a,0,a.window[a.Eb]),a.dW--,a.Eb++);if(m&&(AW(a,!1),a.WY.XJ===0))return 1}a.Q2=0;return l=== 4?(AW(a,!0),a.WY.XJ===0?3:4):a.e4&&(AW(a,!1),a.WY.XJ===0)?1:2}; Mzz=function(a,l){for(var m;;){if(a.dW===0&&(Zf(a),a.dW===0)){if(l===0)return 1;break}a.Ih=0;m=qM(a,0,a.window[a.Eb]);a.dW--;a.Eb++;if(m&&(AW(a,!1),a.WY.XJ===0))return 1}a.Q2=0;return l===4?(AW(a,!0),a.WY.XJ===0?3:4):a.e4&&(AW(a,!1),a.WY.XJ===0)?1:2}; L5=function(a,l,m,T,y){this.Kj=a;this.LNj=l;this.KNx=m;this.Tbj=T;this.func=y}; ir7=function(){this.WY=null;this.status=0;this.E0=null;this.wrap=this.pending=this.XB=this.V5=0;this.L5=null;this.wU=0;this.method=8;this.cC=-1;this.du=this.D_=this.j$=0;this.window=null;this.UI=0;this.head=this.dP=null;this.pJ=this.tU=this.strategy=this.level=this.M1=this.Oh=this.pH=this.dW=this.sU=this.Eb=this.Pt=this.a5=this.Ih=this.UP=this.z8=this.Pv=this.v0=this.yL=this.Yf=0;this.L_=new oH.uK(1146);this.yB=new oH.uK(122);this.H1=new oH.uK(78);MM(this.L_);MM(this.yB);MM(this.H1);this.lF=this.PX= this.CV=null;this.bK=new oH.uK(16);this.x0=new oH.uK(573);MM(this.x0);this.F4=this.G8=0;this.depth=new oH.uK(573);MM(this.depth);this.xd=this.E9=this.Q2=this.matches=this.E4=this.K3=this.F1=this.e4=this.TO=this.fD=0}; dP7=function(a,l){if(!a||!a.state||l>5||l<0)return a?gh(a,-2):-2;var m=a.state;if(!a.output||!a.input&&a.DE!==0||m.status===666&&l!==4)return gh(a,a.XJ===0?-5:-2);m.WY=a;var T=m.cC;m.cC=l;if(m.status===42)if(m.wrap===2)a.UG=0,Pp(m,31),Pp(m,139),Pp(m,8),m.L5?(Pp(m,(m.L5.text?1:0)+(m.L5.Lv?2:0)+(m.L5.extra?4:0)+(m.L5.name?8:0)+(m.L5.comment?16:0)),Pp(m,m.L5.time&255),Pp(m,m.L5.time>>8&255),Pp(m,m.L5.time>>16&255),Pp(m,m.L5.time>>24&255),Pp(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),Pp(m,m.L5.os& 255),m.L5.extra&&m.L5.extra.length&&(Pp(m,m.L5.extra.length&255),Pp(m,m.L5.extra.length>>8&255)),m.L5.Lv&&(a.UG=p5(a.UG,m.E0,m.pending,0)),m.wU=0,m.status=69):(Pp(m,0),Pp(m,0),Pp(m,0),Pp(m,0),Pp(m,0),Pp(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),Pp(m,3),m.status=113);else{var y=8+(m.D_-8<<4)<<8;y|=(m.strategy>=2||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6;m.Eb!==0&&(y|=32);m.status=113;Gc(m,y+(31-y%31));m.Eb!==0&&(Gc(m,a.UG>>>16),Gc(m,a.UG&65535));a.UG=1}if(m.status===69)if(m.L5.extra){for(y= m.pending;m.wU<(m.L5.extra.length&65535)&&(m.pending!==m.V5||(m.L5.Lv&&m.pending>y&&(a.UG=p5(a.UG,m.E0,m.pending-y,y)),ip(a),y=m.pending,m.pending!==m.V5));)Pp(m,m.L5.extra[m.wU]&255),m.wU++;m.L5.Lv&&m.pending>y&&(a.UG=p5(a.UG,m.E0,m.pending-y,y));m.wU===m.L5.extra.length&&(m.wU=0,m.status=73)}else m.status=73;if(m.status===73)if(m.L5.name){y=m.pending;do{if(m.pending===m.V5&&(m.L5.Lv&&m.pending>y&&(a.UG=p5(a.UG,m.E0,m.pending-y,y)),ip(a),y=m.pending,m.pending===m.V5)){var R=1;break}R=m.wUy&&(a.UG=p5(a.UG,m.E0,m.pending-y,y));R===0&&(m.wU=0,m.status=91)}else m.status=91;if(m.status===91)if(m.L5.comment){y=m.pending;do{if(m.pending===m.V5&&(m.L5.Lv&&m.pending>y&&(a.UG=p5(a.UG,m.E0,m.pending-y,y)),ip(a),y=m.pending,m.pending===m.V5)){R=1;break}R=m.wUy&&(a.UG=p5(a.UG,m.E0,m.pending-y,y));R===0&&(m.status=103)}else m.status= 103;m.status===103&&(m.L5.Lv?(m.pending+2>m.V5&&ip(a),m.pending+2<=m.V5&&(Pp(m,a.UG&255),Pp(m,a.UG>>8&255),a.UG=0,m.status=113)):m.status=113);if(m.pending!==0){if(ip(a),a.XJ===0)return m.cC=-1,0}else if(a.DE===0&&(l<<1)-(l>4?9:0)<=(T<<1)-(T>4?9:0)&&l!==4)return gh(a,-5);if(m.status===666&&a.DE!==0)return gh(a,-5);if(a.DE!==0||m.dW!==0||l!==0&&m.status!==666){T=m.strategy===2?Mzz(m,l):m.strategy===3?gY5(m,l):NM[m.level].func(m,l);if(T===3||T===4)m.status=666;if(T===1||T===3)return a.XJ===0&&(m.cC= -1),0;if(T===2&&(l===1?(Ye(m,2,3),U3(m,256,dh),m.xd===16?(XW(m,m.E9),m.E9=0,m.xd=0):m.xd>=8&&(m.E0[m.pending++]=m.E9&255,m.E9>>=8,m.xd-=8)):l!==5&&(Ye(m,0,3),lyl(m,0,0),l===3&&(MM(m.head),m.dW===0&&(m.Eb=0,m.UP=0,m.Q2=0))),ip(a),a.XJ===0))return m.cC=-1,0}if(l!==4)return 0;if(m.wrap<=0)return 1;m.wrap===2?(Pp(m,a.UG&255),Pp(m,a.UG>>8&255),Pp(m,a.UG>>16&255),Pp(m,a.UG>>24&255),Pp(m,a.PM&255),Pp(m,a.PM>>8&255),Pp(m,a.PM>>16&255),Pp(m,a.PM>>24&255)):(Gc(m,a.UG>>>16),Gc(m,a.UG&65535));ip(a);m.wrap>0&& (m.wrap=-m.wrap);return m.pending!==0?0:1}; Qs=function(a){if(!(this instanceof Qs))return new Qs(a);a=this.options=oH.assign({level:-1,method:8,chunkSize:16384,Xr:15,ixb:8,strategy:0,to:""},a||{});a.raw&&a.Xr>0?a.Xr=-a.Xr:a.Fv&&a.Xr>0&&a.Xr<16&&(a.Xr+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.WY=new jIp;this.WY.XJ=0;var l=this.WY;var m=a.level,T=a.method,y=a.Xr,R=a.ixb,H=a.strategy;if(l){var b=1;m===-1&&(m=6);y<0?(b=0,y=-y):y>15&&(b=2,y-=16);if(R<1||R>9||T!==8||y<8||y>15||m<0||m>9||H<0||H>4)l=gh(l,-2);else{y===8&&(y=9); var M=new ir7;l.state=M;M.WY=l;M.wrap=b;M.L5=null;M.D_=y;M.j$=1<>=7;R<30;R++)for(Rw[R]=H<<7,y=0;y<1<=d.j$&&(l===0&&(MM(d.head),d.Eb=0,d.UP=0,d.Q2=0),m=new oH.NV(d.j$),oH.CU(m,R,H-d.j$,d.j$,0),R=m,H=d.j$);m=a.DE;T=a.vM;y=a.input;a.DE=H;a.vM=0;a.input=R;for(Zf(d);d.dW>=3;){R=d.Eb;H=d.dW-2;do d.Yf=(d.Yf<=8?((0,m[10])(m[69],(0,m[14])(),m[18]),m[27])(m[34],(0,m[82])(m[4],m[69]),(0,m[70])(m[42],m[58]),(0,m[53])(m[13],m[54]),m[50]):(((0,m[36])((0,m[35])(m[50],(0,m[60])(),m[43]),m[31],m[41],m[67]),m[53])(m[15],m[63]),(0,m[35])(m[9],(0,m[60])(),m[43]),m[31])(m[11],m[50]),m[49]>=1&&(0,m[26])(m[10],m[54]),m[62]!==8&&(m[13]<-8||((0,m[53])(m[74],m[67]),null))&&(0,m[22])(m[5],m[0]),m[1]<2&&(m[51]<10||((0,m[36])(((0,m[22])(m[30],m[72]),m[35])(m[50],(0,m[39])(),m[43]),m[22], m[61],m[new Date(q[81])/1E3]),0))&&(0,m[32])((0,m[45])(m[9]),m[36],(0,m[53])(m[23],m[54]),m[22],m[14],m[67]),m[35]>3&&((0,m[10])(m[68],m[38]),1)||(0,m[10])(m[52],m[55]),m[35]!==7?(0,m[42])((0,m[59])(m[53],m[56]),m[28],m[81],m[78]):(0,m[17])((0,m[12])(m[71],m[76]),m[16],m[31],(0,m[51])(),m[24]),(m[21]!=-10||((0,m[3])(m[1],m[40]),0))&&(0,m[50])(m[75],m[48])}catch(T){(0,m[17])(((0,m[new Date(q[88])/1E3])(m[76],(0,m[41])(),m[24]),m[16])(m[40],(0,m[47])(),m[24]),m[12],m[10],m[40]),(0,m[67])(m[76]),((0,m[17])((0,m[12])(m[63], m[31]),m[12],m[52],m[76]),m[50])(m[85],m[new Date(q[34])/1E3])}try{m[30]>9&&(m[36]!==-10||((0,m[14])(((0,m[16])(m[76],(0,m[41])(),m[24]),m[34])(m[39],m[31]),m[16],(0,m[16])(m[76],(0,m[51])(),m[24]),m[40],(0,m[47])(),m[24]),0))&&(0,m[17])((0,m[34])(m[38],m[31]),m[77],m[31],m[59])^(0,m[34])(m[30],m[76])^(0,m[66])(m[31],m[27]),m[new Date(q[78])/1E3]!=-1&&((0,m[12])(m[new Date(q[75])/1E3],m[40]),1)||(0,m[12])(m[60],m[31]),m[30]!=8?((0,m[66])(m[40],m[36]),m[50])(m[79],m[40]):(0,m[17])((0,m[12])(m[54], m[48]),m[16],m[31],(0,m[15])(),m[24]),m[75]!=-4&&(0,m[34])(m[62],m[76])}catch(T){(0,m[16])(m[40],(0,m[15])(),m[24]),(0,m[17])((0,m[17])((0,m[12])(m[73],m[76]),m[16],m[40],(0,m[51])(),m[24]),m[12],m[46],m[40])}}catch(T){return q[80]+a}return l[q[19]](q[10])}; g.Ou=function(a){this.name=a}; $Pw=function(a){this.Tx=P0(a)}; K5=function(a){this.Tx=P0(a)}; zc=function(a){this.Tx=P0(a)}; sI3=function(a){this.Tx=P0(a)}; vp=function(a){this.Tx=P0(a)}; $v=function(a){this.Tx=P0(a)}; SQ=function(a){this.Tx=P0(a)}; f5=function(a){this.Tx=P0(a)}; JW=function(a){this.Tx=P0(a)}; Bp=function(a){this.Tx=P0(a)}; kv=function(a){this.Tx=P0(a)}; n5=function(a){this.Tx=P0(a)}; wh=function(a){this.Tx=P0(a)}; Iw=function(a){this.Tx=P0(a)}; C5=function(a){this.Tx=P0(a)}; xv=function(a){this.Tx=P0(a,500)}; Df=function(a){this.Tx=P0(a)}; up=function(a){this.Tx=P0(a)}; SAR=function(a){this.Tx=P0(a)}; fy7=function(){return g.Yl("yt.ads.biscotti.lastId_")||""}; JQR=function(a){g.Xt("yt.ads.biscotti.lastId_",a)}; Yv=function(){var a=arguments,l=Xn;a.length>1?l[a[0]]=a[1]:a.length===1&&Object.assign(l,a[0])}; g.Uu=function(a,l){return a in Xn?Xn[a]:l}; rh=function(a){var l=Xn.EXPERIMENT_FLAGS;return l?l[a]:void 0}; BOw=function(a){at.forEach(function(l){return l(a)})}; g.me=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(l){g.lr(l)}}:a}; g.lr=function(a){var l=g.Yl("yt.logging.errors.log");l?l(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(l=g.Uu("ERRORS",[]),l.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Yv("ERRORS",l));BOw(a)}; Tv=function(a,l,m,T,y){var R=g.Yl("yt.logging.errors.log");R?R(a,"WARNING",l,m,T,void 0,y):(R=g.Uu("ERRORS",[]),R.push([a,"WARNING",l,m,T,void 0,y]),Yv("ERRORS",R))}; y7=function(a,l){l=a.split(l);for(var m={},T=0,y=l.length;T1?a[1]:a[0])):{}}; g0=function(a,l){return IyQ(a,l||{},!0)}; My=function(a,l){return IyQ(a,l||{},!1)}; IyQ=function(a,l,m){var T=a.split("#",2);a=T[0];T=T.length>1?"#"+T[1]:"";var y=a.split("?",2);a=y[0];y=H$(y[1]||"");for(var R in l)if(m||!g.X_(y,R))y[R]=l[R];return g.S$(a,y)+T}; ir=function(a){if(!l)var l=window.location.href;var m=g.e$(a)[1]||null,T=g.Fl(a);m&&T?(a=g.e$(a),l=g.e$(l),a=a[3]==l[3]&&a[1]==l[1]&&a[4]==l[4]):a=T?g.Fl(l)===T&&(Number(g.e$(l)[4]||null)||null)===(Number(g.e$(a)[4]||null)||null):!0;return a}; d0=function(a){a||(a=document.location.href);a=g.e$(a)[1]||null;return a!==null&&a==="https"}; jn=function(a){a=Cnd(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; EYR=function(a){a=Cnd(a);return a===null?!1:a[1]==="google"?!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1}; Cnd=function(a){a=g.Fl(a);return a!==null?a.split(".").reverse():null}; k6Q=function(a){return a&&a.match(oY3)?a:VP(a)}; Gv=function(a){var l=AR;a=a===void 0?fy7():a;var m=Object,T=m.assign,y=P$(l);var R=l.T;try{var H=R.screenX;var b=R.screenY}catch(e){}try{var M=R.outerWidth;var d=R.outerHeight}catch(e){}try{var A=R.innerWidth;var P=R.innerHeight}catch(e){}try{var G=R.screenLeft;var V=R.screenTop}catch(e){}try{A=R.innerWidth,P=R.innerHeight}catch(e){}try{var p=R.screen.availWidth;var L=R.screen.availTop}catch(e){}R=[G,V,H,b,p,L,M,d,A,P];H=rdw(!1,l.T.top);b={};var N=N===void 0?g.u7:N;M=new oA;"SVGElement"in N&&"createElementNS"in N.document&&M.set(0);d=icw();d["allow-top-navigation-by-user-activation"]&&M.set(1);d["allow-popups-to-escape-sandbox"]&&M.set(2);N.crypto&&N.crypto.subtle&&M.set(3);"TextDecoder"in N&&"TextEncoder"in N&&M.set(4);N=pZQ(M);l=(b.bc=N,b.bih=H.height,b.biw=H.width,b.brdim=R.join(),b.vis=LF(l.L),b.wgl=!!Ad.WebGLRenderingContext,b);m=T.call(m,y,l);m.ca_type="image";a&&(m.bid=a);return m}; P$=function(a){var l={};l.dt=xPl;l.flash="0";a:{try{var m=a.T.top.location.href}catch(A){a=2;break a}a=m?m===a.L.location.href?0:1:2}l=(l.frm=a,l);try{l.u_tz=-(new Date).getTimezoneOffset();var T=T===void 0?Ad:T;try{var y=T.history.length}catch(A){y=0}l.u_his=y;var R;l.u_h=(R=Ad.screen)==null?void 0:R.height;var H;l.u_w=(H=Ad.screen)==null?void 0:H.width;var b;l.u_ah=(b=Ad.screen)==null?void 0:b.availHeight;var M;l.u_aw=(M=Ad.screen)==null?void 0:M.availWidth;var d;l.u_cd=(d=Ad.screen)==null?void 0: d.colorDepth}catch(A){}return l}; ued=function(){if(!DPR)return null;var a=DPR();return"open"in a?a:null}; g.py=function(a){switch(V7(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; V7=function(a){return a&&"status"in a?a.status:-1}; g.ZC=function(a,l){typeof a==="function"&&(a=g.me(a));return window.setTimeout(a,l)}; g.W$=function(a,l){typeof a==="function"&&(a=g.me(a));return window.setInterval(a,l)}; g.c$=function(a){window.clearTimeout(a)}; g.Ly=function(a){window.clearInterval(a)}; g.Q7=function(a){a=Ny(a);return typeof a==="string"&&a==="false"?!1:!!a}; g.tR=function(a,l){a=Ny(a);return a===void 0&&l!==void 0?l:Number(a||0)}; en=function(){return g.Uu("EXPERIMENTS_TOKEN","")}; Ny=function(a){return g.Uu("EXPERIMENT_FLAGS",{})[a]}; FL=function(){for(var a=[],l=g.Uu("EXPERIMENTS_FORCED_FLAGS",{}),m=g.c(Object.keys(l)),T=m.next();!T.done;T=m.next())T=T.value,a.push({key:T,value:String(l[T])});m=g.Uu("EXPERIMENT_FLAGS",{});T=g.c(Object.keys(m));for(var y=T.next();!y.done;y=T.next())y=y.value,y.startsWith("force_")&&l[y]===void 0&&a.push({key:y,value:String(m[y])});return a}; hR=function(a,l,m,T,y,R,H,b){function M(){(d&&"readyState"in d?d.readyState:0)===4&&l&&g.me(l)(d)} m=m===void 0?"GET":m;T=T===void 0?"":T;b=b===void 0?!1:b;var d=ued();if(!d)return null;"onloadend"in d?d.addEventListener("loadend",M,!1):d.onreadystatechange=M;g.Q7("debug_forward_web_query_parameters")&&(a=Xv3(a));d.open(m,a,!0);R&&(d.responseType=R);H&&(d.withCredentials=!0);m=m==="POST"&&(window.FormData===void 0||!(T instanceof FormData));if(y=YAR(a,y))for(var A in y)d.setRequestHeader(A,y[A]),"content-type"===A.toLowerCase()&&(m=!1);m&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(b&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{d.setAttributionReporting(a)}catch(P){Tv(P)}}d.send(T);return d}; YAR=function(a,l){l=l===void 0?{}:l;var m=ir(a),T=g.Uu("INNERTUBE_CLIENT_NAME"),y=g.Q7("web_ajax_ignore_global_headers_if_set"),R;for(R in UP5){var H=g.Uu(UP5[R]),b=R==="X-Goog-AuthUser"||R==="X-Goog-PageId";R!=="X-Goog-Visitor-Id"||H||(H=g.Uu("VISITOR_DATA"));var M;if(!(M=!H)){if(!(M=m||(g.Fl(a)?!1:!0))){M=a;var d;if(d=g.Q7("add_auth_headers_to_remarketing_google_dot_com_ping")&&R==="Authorization"&&(T==="TVHTML5"||T==="TVHTML5_UNPLUGGED"||T==="TVHTML5_SIMPLY")&&EYR(M))M=O0(M)||"",M=M.split("/"), M="/"+(M.length>1?M[1]:""),d=M==="/pagead";M=d?!0:!1}M=!M}M||y&&l[R]!==void 0||T==="TVHTML5_UNPLUGGED"&&b||(l[R]=H)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];if(m||!g.Fl(a))l["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(m||!g.Fl(a)){try{var A=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(P){}A&&(l["X-YouTube-Time-Zone"]=A)}document.location.hostname.endsWith("youtubeeducation.com")||!m&&g.Fl(a)||(l["X-YouTube-Ad-Signals"]= Rt(Gv()));return l}; Ky=function(a,l){l.method="POST";l.postParams||(l.postParams={});return g.OZ(a,l)}; lKw=function(a,l){if(window.fetch&&l.format!=="XML"){var m={method:l.method||"GET",credentials:"same-origin"};l.headers&&(m.headers=l.headers);l.priority&&(m.priority=l.priority);a=rQ7(a,l);var T=aK7(a,l);T&&(m.body=T);l.withCredentials&&(m.credentials="include");var y=l.context||g.u7,R=!1,H;fetch(a,m).then(function(b){if(!R){R=!0;H&&g.c$(H);var M=b.ok,d=function(A){A=A||{};M?l.onSuccess&&l.onSuccess.call(y,A,b):l.onError&&l.onError.call(y,A,b);l.onFinish&&l.onFinish.call(y,A,b)}; (l.format||"JSON")==="JSON"&&(M||b.status>=400&&b.status<500)?b.json().then(d,function(){d(null)}):d(null)}}).catch(function(){l.onError&&l.onError.call(y,{},{})}); a=l.timeout||0;l.onFetchTimeout&&a>0&&(H=g.ZC(function(){R||(R=!0,g.c$(H),l.onFetchTimeout.call(l.context||g.u7))},a))}else g.OZ(a,l)}; g.OZ=function(a,l){var m=l.format||"JSON";a=rQ7(a,l);var T=aK7(a,l),y=!1,R=mVb(a,function(M){if(!y){y=!0;b&&g.c$(b);var d=g.py(M),A=null,P=400<=M.status&&M.status<500,G=500<=M.status&&M.status<600;if(d||P||G)A=TRP(a,m,M,l.convertToSafeHtml);d&&(d=yy7(m,M,A));A=A||{};P=l.context||g.u7;d?l.onSuccess&&l.onSuccess.call(P,M,A):l.onError&&l.onError.call(P,M,A);l.onFinish&&l.onFinish.call(P,M,A)}},l.method,T,l.headers,l.responseType,l.withCredentials); T=l.timeout||0;if(l.onTimeout&&T>0){var H=l.onTimeout;var b=g.ZC(function(){y||(y=!0,R.abort(),g.c$(b),H.call(l.context||g.u7,R))},T)}return R}; rQ7=function(a,l){l.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var m=g.Uu("XSRF_FIELD_NAME");if(l=l.urlParams)l[m]&&delete l[m],a=g0(a,l);return a}; aK7=function(a,l){var m=g.Uu("XSRF_FIELD_NAME"),T=g.Uu("XSRF_TOKEN"),y=l.postBody||"",R=l.postParams,H=g.Uu("XSRF_FIELD_NAME"),b;l.headers&&(b=l.headers["Content-Type"]);l.excludeXsrf||g.Fl(a)&&!l.withCredentials&&g.Fl(a)!==document.location.hostname||l.method!=="POST"||b&&b!=="application/x-www-form-urlencoded"||l.postParams&&l.postParams[H]||(R||(R={}),R[m]=T);(g.Q7("ajax_parse_query_data_only_when_filled")&&R&&Object.keys(R).length>0||R)&&typeof y==="string"&&(y=H$(y),g.yk(y,R),y=l.postBodyFormat&& l.postBodyFormat==="JSON"?JSON.stringify(y):g.s0(y));R=y||R&&!g.rg(R);!RWw&&R&&l.method!=="POST"&&(RWw=!0,g.lr(Error("AJAX request with postData should use POST")));return y}; TRP=function(a,l,m,T){var y=null;switch(l){case "JSON":try{var R=m.responseText}catch(H){throw T=Error("Error reading responseText"),T.params=a,Tv(T),H;}a=m.getResponseHeader("Content-Type")||"";R&&a.indexOf("json")>=0&&(R.substring(0,5)===")]}'\n"&&(R=R.substring(5)),y=JSON.parse(R));break;case "XML":if(a=(a=m.responseXML)?HGP(a):null)y={},g.Bn(a.getElementsByTagName("*"),function(H){y[H.tagName]=qdd(H)})}T&&bGd(y); return y}; bGd=function(a){if(g.ms(a))for(var l in a)l==="html_content"||C73(l,"_html")?a[l]=ld(a[l]):bGd(a[l])}; yy7=function(a,l,m){if(l&&l.status===204)return!0;switch(a){case "JSON":return!!m;case "XML":return Number(m&&m.return_code)===0;case "RAW":return!0;default:return!!m}}; HGP=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null}; qdd=function(a){var l="";g.Bn(a.childNodes,function(m){l+=m.nodeValue}); return l}; Xv3=function(a){var l=window.location.search,m=g.Fl(a);g.Q7("debug_handle_relative_url_for_query_forward_killswitch")||!m&&ir(a)&&(m=document.location.hostname);var T=O0(a);T=(m=m&&(m.endsWith("youtube.com")||m.endsWith("youtube-nocookie.com")))&&T&&T.startsWith("/api/");if(!m||T)return a;var y=H$(l),R={};g.Bn(g$b,function(H){y[H]&&(R[H]=y[H])}); return My(a,R)}; v$=function(a,l){var m=g.mn(l),T;return(new g.$G(function(y,R){m.onSuccess=function(H){g.py(H)?y(new MY3(H)):R(new zv("Request failed, status="+V7(H),"net.badstatus",H))}; m.onError=function(H){R(new zv("Unknown request error","net.unknown",H))}; m.onTimeout=function(H){R(new zv("Request timed out","net.timeout",H))}; T=g.OZ(a,m)})).wd(function(y){if(y instanceof kG){var R; (R=T)==null||R.abort()}return f1(y)})}; g.$a=function(a,l,m,T){function y(b,M,d){return b.wd(function(A){if(M<=0||V7(A.xhr)===403)return f1(new zv("Request retried too many times","net.retryexhausted",A.xhr,A));A=Math.pow(2,m-M+1)*d;var P=H>0?Math.min(H,A):A;return R(d).then(function(){return y(v$(a,l),M-1,P)})})} function R(b){return new g.$G(function(M){setTimeout(M,b)})} var H=H===void 0?-1:H;return y(v$(a,l),m-1,T)}; zv=function(a,l,m){dg.call(this,a+", errorCode="+l);this.errorCode=l;this.xhr=m;this.name="PromiseAjaxError"}; MY3=function(a){this.xhr=a}; sZ=function(a){this.T=a===void 0?null:a;this.L=0;this.Z=null}; Sn=function(a){var l=new sZ;a=a===void 0?null:a;l.L=2;l.Z=a===void 0?null:a;return l}; fy=function(a){var l=new sZ;a=a===void 0?null:a;l.L=1;l.Z=a===void 0?null:a;return l}; g.ka=function(a,l,m,T,y){JR||B$.set(""+a,l,{Uy:m,path:"/",domain:T===void 0?"youtube.com":T,secure:y===void 0?!1:y})}; g.ny=function(a,l){if(!JR)return B$.get(""+a,l)}; g.w0=function(a,l,m){JR||B$.remove(""+a,l===void 0?"/":l,m===void 0?"youtube.com":m)}; iGp=function(){if(g.Q7("embeds_web_enable_cookie_detection_fix")){if(!g.u7.navigator.cookieEnabled)return!1}else if(!B$.isEnabled())return!1;if(!B$.isEmpty())return!0;g.Q7("embeds_web_enable_cookie_detection_fix")?B$.set("TESTCOOKIESENABLED","1",{Uy:60,b$j:"none",secure:!0}):B$.set("TESTCOOKIESENABLED","1",{Uy:60});if(B$.get("TESTCOOKIESENABLED")!=="1")return!1;B$.remove("TESTCOOKIESENABLED");return!0}; g.I=function(a,l){if(a)return a[l.name]}; It=function(a){var l=g.Uu("INNERTUBE_HOST_OVERRIDE");l&&(a=String(l)+String(KF(a)));return a}; dVb=function(a){var l={};g.Q7("json_condensed_response")&&(l.prettyPrint="false");return a=My(a,l)}; Cy=function(a,l){var m=m===void 0?{}:m;a={method:l===void 0?"POST":l,mode:ir(a)?"same-origin":"cors",credentials:ir(a)?"same-origin":"include"};l={};for(var T=g.c(Object.keys(m)),y=T.next();!y.done;y=T.next())y=y.value,m[y]&&(l[y]=m[y]);Object.keys(l).length>0&&(a.headers=l);return a}; EZ=function(){var a=/Chrome\/(\d+)/.exec(g.ej());return a?parseFloat(a[1]):NaN}; ot=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.ej());if(!a)return NaN;var l=[];a=g.c(a[1].split("."));for(var m=a.next();!m.done;m=a.next())m=parseInt(m.value,10),m>=0&&l.push(m);return parseFloat(l.join("."))}; DC=function(){return g.xa("android")&&g.xa("chrome")&&!(g.xa("trident/")||g.xa("edge/"))&&!g.xa("cobalt")}; jAb=function(){return g.xa("armv7")||g.xa("aarch64")||g.xa("android")}; g.ur=function(){return g.xa("cobalt")}; XL=function(){return g.xa("cobalt")&&g.xa("appletv")}; Ya=function(){return g.xa("(ps3; leanback shell)")||g.xa("ps3")&&g.ur()}; Ay5=function(){return g.xa("(ps4; leanback shell)")||g.xa("ps4")&&g.ur()}; g.P_z=function(){return g.ur()&&(g.xa("ps4 vr")||g.xa("ps4 pro vr"))}; UZ=function(){var a=/WebKit\/([0-9]+)/.exec(g.ej());return!!(a&&parseInt(a[1],10)>=600)}; r0=function(){var a=/WebKit\/([0-9]+)/.exec(g.ej());return!!(a&&parseInt(a[1],10)>=602)}; GJd=function(){return g.xa("iemobile")||g.xa("windows phone")&&g.xa("edge")}; m7=function(){return(ai||lR)&&g.xa("applewebkit")&&!g.xa("version")&&(!g.xa("safari")||g.xa("gsa/"))}; yb=function(){return g.TO&&g.xa("version/")}; Ri=function(){return g.xa("smart-tv")&&g.xa("samsung")}; g.xa=function(a){var l=g.ej();return l?l.toLowerCase().indexOf(a)>=0:!1}; HW=function(){return HMP()||m7()||yb()?!0:g.Uu("EOM_VISITOR_DATA")?!1:!0}; qp=function(a,l){return l===void 0||l===null?a:l==="1"||l===!0||l===1||l==="True"?!0:!1}; bR=function(a,l,m){for(var T in m)if(m[T]==l)return m[T];return a}; gQ=function(a,l){return l===void 0||l===null?a:Number(l)}; Mp=function(a,l){return l===void 0||l===null?a:l.toString()}; iR=function(a,l){if(l){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(l=a.match(VY7))&&(a=Number(l[2]),l=Number(l[1]),!isNaN(a)&&!isNaN(l)&&a>0)?l/a:NaN}; dQ=function(a){var l=a.docid||a.video_id||a.videoId||a.id;if(l)return l;l=a.raw_player_response;l||(a=a.player_response)&&(l=JSON.parse(a));return l&&l.videoDetails&&l.videoDetails.videoId||null}; pfd=function(a){return jb(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.AN=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; jb=function(a,l){l=(l===void 0?0:l)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(l="EMBEDDED_PLAYER_MODE_PFL");var m=a.raw_embedded_player_response;if(!m&&(a=a.embedded_player_response))try{m=JSON.parse(a)}catch(T){return l}return m?bR(l,m.embeddedPlayerMode,ZG5):l}; GO=function(a){dg.call(this,a.message||a.description||a.name);this.isMissing=a instanceof PW;this.isTimeout=a instanceof zv&&a.errorCode=="net.timeout";this.isCanceled=a instanceof kG}; PW=function(){dg.call(this,"Biscotti ID is missing from server")}; Wyp=function(){if(g.Q7("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!HW())return Error("User has not consented - not fetching biscotti id.");var a=g.Uu("PLAYER_VARS",{});if(g.aV(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(pfd(a))return Error("Biscotti id fetching has been disabled for pfl.")}; QA7=function(){var a=Wyp();if(a!==void 0)return f1(a);Vb||(Vb=v$("//googleads.g.doubleclick.net/pagead/id",cy5).then(Lyz).wd(function(l){return NRR(2,l)})); return Vb}; Lyz=function(a){a=a.xhr.responseText;if(!Gm(a,")]}'"))throw new PW;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new PW;a=a.id;JQR(a);Vb=fy(a);tYz(18E5,2);return a}; NRR=function(a,l){l=new GO(l);JQR("");Vb=Sn(l);a>0&&tYz(12E4,a-1);throw l;}; tYz=function(a,l){g.ZC(function(){v$("//googleads.g.doubleclick.net/pagead/id",cy5).then(Lyz,function(m){return NRR(l,m)}).wd(g.Gb)},a)}; eWQ=function(){try{var a=g.Yl("yt.ads.biscotti.getId_");return a?a():QA7()}catch(l){return f1(l)}}; hWH=function(a){a&&(a.dataset?a.dataset[Fyt()]="true":Rrz(a))}; OG7=function(a){return a?a.dataset?a.dataset[Fyt()]:a.getAttribute("data-loaded"):null}; Fyt=function(){return Kyw.loaded||(Kyw.loaded="loaded".replace(/\-([a-z])/g,function(a,l){return l.toUpperCase()}))}; zWR=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var l=pZ+"VisibilityState";if(l in a)return a[l]}; ZX=function(a,l){var m;md(a,function(T){m=l[T];return!!m}); return m}; WW=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()}; Np=function(a){var l;g.cW()?LZ()==a&&(l=document):l=a;return l&&(a=ZX(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],l))?(l=a.call(l),l instanceof Promise?l:Promise.resolve()):Promise.resolve()}; v$t=function(a){return g.Pn(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(l){return"on"+l.toLowerCase()in a})}; $V3=function(){var a=document;return g.Pn(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(l){return"on"+l.toLowerCase()in a})}; g.cW=function(){return!!ZX(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; LZ=function(a){a=a===void 0?!1:a;var l=ZX(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;l&&l.shadowRoot;)l=l.shadowRoot.fullscreenElement;return l?l:null}; Qb=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var l in a)l in sAR||(this[l]=a[l]);this.scale=a.scale;this.rotation=a.rotation;var m=a.target||a.srcElement;m&&m.nodeType==3&&(m=m.parentNode);this.target=m;var T=a.relatedTarget; if(T)try{T=T.nodeName?T:null}catch(y){T=null}else this.type=="mouseover"?T=a.fromElement:this.type=="mouseout"&&(T=a.toElement);this.relatedTarget=T;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.T=a.pageX;this.L=a.pageY}}catch(y){}}; Sdw=function(a){if(document.body&&document.documentElement){var l=document.body.scrollTop+document.documentElement.scrollTop;a.T=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.L=a.clientY+l}}; fKd=function(a,l,m,T){T=T===void 0?{}:T;a.addEventListener&&(l!="mouseenter"||"onmouseenter"in document?l!="mouseleave"||"onmouseenter"in document?l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"):l="mouseout":l="mouseover");return UX(tN,function(y){var R=typeof y[4]==="boolean"&&y[4]==!!T,H=g.ms(y[4])&&g.ms(T)&&g.l5(y[4],T);return!!y.length&&y[0]==a&&y[1]==l&&y[2]==m&&(R||H)})}; g.eb=function(a,l,m,T){T=T===void 0?{}:T;if(!a||!a.addEventListener&&!a.attachEvent)return"";var y=fKd(a,l,m,T);if(y)return y;y=++Jyd.count+"";var R=!(l!="mouseenter"&&l!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var H=R?function(b){b=new Qb(b);if(!gy(b.relatedTarget,function(M){return M==a},!0))return b.currentTarget=a,b.type=l,m.call(a,b)}:function(b){b=new Qb(b); b.currentTarget=a;return m.call(a,b)}; H=g.me(H);a.addEventListener?(l=="mouseenter"&&R?l="mouseover":l=="mouseleave"&&R?l="mouseout":l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"),BRd()||typeof T==="boolean"?a.addEventListener(l,H,T):a.addEventListener(l,H,!!T.capture)):a.attachEvent("on"+l,H);tN[y]=[a,l,m,H,T];return y}; n$3=function(a){return kJd(a,function(l){return g.gK(l,"ytp-ad-has-logging-urls")})}; kJd=function(a,l){var m=document.body||document;return g.eb(m,"click",function(T){var y=gy(T.target,function(R){return R===m||l(R)},!0); y&&y!==m&&!y.disabled&&(T.currentTarget=y,a.call(y,T))})}; g.FY=function(a){a&&(typeof a=="string"&&(a=[a]),g.Bn(a,function(l){if(l in tN){var m=tN[l],T=m[0],y=m[1],R=m[3];m=m[4];T.removeEventListener?BRd()||typeof m==="boolean"?T.removeEventListener(y,R,m):T.removeEventListener(y,R,!!m.capture):T.detachEvent&&T.detachEvent("on"+y,R);delete tN[l]}}))}; hN=function(a){for(var l in tN)tN[l][0]==a&&g.FY(l)}; OC=function(a){a=a||window.event;var l;a.composedPath&&typeof a.composedPath==="function"?l=a.composedPath():l=a.path;l&&l.length?a=l[0]:(a=a||window.event,a=a.target||a.srcElement,a.nodeType==3&&(a=a.parentNode));return a}; KZ=function(a){this.B=a;this.T=null;this.j=0;this.C=null;this.K=0;this.L=[];for(a=0;a<4;a++)this.L.push(0);this.Z=0;this.lT=g.eb(window,"mousemove",(0,g.Rs)(this.N,this));this.J=g.W$((0,g.Rs)(this.Ij,this),25)}; zO=function(a){g.k.call(this);this.B=[];this.ZR=a||this}; vW=function(a,l,m,T){for(var y=0;y0?m:0;m=T?Date.now()+T*1E3:0;if((T=T?(0,g.Sb)():fZ())&&window.JSON){typeof l!=="string"&&(l=JSON.stringify(l,void 0));try{T.set(a,l,m)}catch(y){T.remove(a)}}}; g.BW=function(a){var l=fZ(),m=(0,g.Sb)();if(!l&&!m||!window.JSON)return null;try{var T=l.get(a)}catch(y){}if(typeof T!=="string")try{T=m.get(a)}catch(y){}if(typeof T!=="string")return null;try{T=JSON.parse(T,void 0)}catch(y){}return T}; C_R=function(){var a=(0,g.Sb)();if(a&&(a=a.L("yt-player-quality")))return a.creation}; g.kH=function(a){try{var l=fZ(),m=(0,g.Sb)();l&&l.remove(a);m&&m.remove(a)}catch(T){}}; g.nZ=function(){return g.BW("yt-remote-session-screen-id")}; E$3=function(a){var l=this;this.L=void 0;this.T=!1;a.addEventListener("beforeinstallprompt",function(m){m.preventDefault();l.L=m}); a.addEventListener("appinstalled",function(){l.T=!0},{once:!0})}; wQ=function(){if(!g.u7.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.u7.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.u7.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.u7.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.u7.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Ii=function(){this.hR=!0}; o$7=function(){Ii.instance||(Ii.instance=new Ii);return Ii.instance}; xVz=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; DVd=function(){this.T=g.Uu("ALT_PREF_COOKIE_NAME","PREF");this.L=g.Uu("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.ny(this.T);a&&this.parse(a)}; g.EC=function(){CZ||(CZ=new DVd);return CZ}; g.oi=function(a,l){return!!((u37("f"+(Math.floor(l/31)+1))||0)&1<0;)switch(a=A7.shift(),a.type){case "ERROR":Mr.Ft(a.payload);break;case "EVENT":Mr.logEvent(a.eventType,a.payload)}}; GS=function(a){Pw||(Mr?Mr.Ft(a):(A7.push({type:"ERROR",payload:a}),A7.length>10&&A7.shift()))}; Vi=function(a,l){Pw||(Mr?Mr.logEvent(a,l):(A7.push({type:"EVENT",eventType:a,payload:l}),A7.length>10&&A7.shift()))}; p2=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; ZZ=function(a){return a.substr(0,a.indexOf(":"))||a}; g.Ww=function(a,l,m,T,y){l=l===void 0?{}:l;m=m===void 0?TKQ[a]:m;T=T===void 0?yMb[a]:T;y=y===void 0?RRw[a]:y;g.YH.call(this,m,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},l));this.type=a;this.message=m;this.level=T;this.T=y;Object.setPrototypeOf(this,g.Ww.prototype)}; cw=function(a,l){g.Ww.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:l,foundObjectStores:a},TKQ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,cw.prototype)}; L2=function(a,l){var m=Error.call(this);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.index=a;this.objectStore=l;Object.setPrototypeOf(this,L2.prototype)}; Qi=function(a,l,m,T){l=ZZ(l);var y=a instanceof Error?a:Error("Unexpected error: "+a);if(y instanceof g.Ww)return y;a={objectStoreNames:m,dbName:l,dbVersion:T};if(y.name==="QuotaExceededError")return new g.Ww("QUOTA_EXCEEDED",a);if(g.Nr&&y.name==="UnknownError")return new g.Ww("QUOTA_MAYBE_EXCEEDED",a);if(y instanceof L2)return new g.Ww("MISSING_INDEX",Object.assign({},a,{objectStore:y.objectStore,index:y.index}));if(y.name==="InvalidStateError"&&He7.some(function(R){return y.message.includes(R)}))return new g.Ww("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(y.name==="AbortError")return new g.Ww("UNKNOWN_ABORT",a,y.message);y.args=[Object.assign({},a,{name:"IdbError",RE:y.name})];y.level="WARNING";return y}; g.t7=function(a,l,m){var T=gC();return new g.Ww("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:l,version:m,hasSucceededOnce:T==null?void 0:T.hasSucceededOnce}})}; q35=function(a){if(!a)throw Error();throw a;}; bew=function(a){return a}; es=function(a){this.T=a}; g.Fz=function(a){function l(y){if(T.state.status==="PENDING"){T.state={status:"REJECTED",reason:y};y=g.c(T.L);for(var R=y.next();!R.done;R=y.next())R=R.value,R()}} function m(y){if(T.state.status==="PENDING"){T.state={status:"FULFILLED",value:y};y=g.c(T.T);for(var R=y.next();!R.done;R=y.next())R=R.value,R()}} var T=this;this.state={status:"PENDING"};this.T=[];this.L=[];a=a.T;try{a(m,l)}catch(y){l(y)}}; get=function(a,l,m,T,y){try{if(a.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var R=m(a.state.value);R instanceof g.Fz?h7(a,l,R,T,y):T(R)}catch(H){y(H)}}; MtR=function(a,l,m,T,y){try{if(a.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var R=m(a.state.reason);R instanceof g.Fz?h7(a,l,R,T,y):T(R)}catch(H){y(H)}}; h7=function(a,l,m,T,y){l===m?y(new TypeError("Circular promise chain detected.")):m.then(function(R){R instanceof g.Fz?h7(a,l,R,T,y):T(R)},function(R){y(R)})}; ied=function(a,l,m){function T(){m(a.error);R()} function y(){l(a.result);R()} function R(){try{a.removeEventListener("success",y),a.removeEventListener("error",T)}catch(H){}} a.addEventListener("success",y);a.addEventListener("error",T)}; d$b=function(a){return new Promise(function(l,m){ied(a,l,m)})}; O9=function(a){return new g.Fz(new es(function(l,m){ied(a,l,m)}))}; K2=function(a,l){return new g.Fz(new es(function(m,T){function y(){var R=a?l(a):null;R?R.then(function(H){a=H;y()},T):m()} y()}))}; jHz=function(a,l){this.request=a;this.cursor=l}; AM7=function(a){return O9(a).then(function(l){return l?new jHz(a,l):null})}; g.P0P=function(a){a.cursor.continue(void 0);return AM7(a.request)}; Gw7=function(a,l){this.T=a;this.options=l;this.transactionCount=0;this.Z=Math.round((0,g.E)());this.L=!1}; g.vw=function(a,l,m){a=a.T.createObjectStore(l,m);return new zS(a)}; $T=function(a,l){a.T.objectStoreNames.contains(l)&&a.T.deleteObjectStore(l)}; g.f2=function(a,l,m){return g.s9(a,[l],{mode:"readwrite",xX:!0},function(T){return g.Ss(T.objectStore(l),m)})}; g.s9=function(a,l,m,T){var y,R,H,b,M,d,A,P,G,V,p,L;return g.J(function(N){switch(N.L){case 1:var e={mode:"readonly",xX:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof m==="string"?e.mode=m:Object.assign(e,m);y=e;a.transactionCount++;R=y.xX?3:1;H=0;case 2:if(b){N.iT(4);break}H++;M=Math.round((0,g.E)());g.LP(N,5);d=a.T.transaction(l,y.mode);e=new J7(d);e=Vtd(e,T);return g.z(N,e,7);case 7:return A=N.T,P=Math.round((0,g.E)()),pb3(a,M,P,H,void 0,l.join(),y),N.return(A);case 5:G=g.OQ(N);V=Math.round((0,g.E)()); p=Qi(G,a.T.name,l.join(),a.T.version);if((L=p instanceof g.Ww&&!p.T)||H>=R)pb3(a,M,V,H,p,l.join(),y),b=p;N.iT(2);break;case 4:return N.return(Promise.reject(b))}})}; pb3=function(a,l,m,T,y,R,H){l=m-l;y?(y instanceof g.Ww&&(y.type==="QUOTA_EXCEEDED"||y.type==="QUOTA_MAYBE_EXCEEDED")&&Vi("QUOTA_EXCEEDED",{dbName:ZZ(a.T.name),objectStoreNames:R,transactionCount:a.transactionCount,transactionMode:H.mode}),y instanceof g.Ww&&y.type==="UNKNOWN_ABORT"&&(m-=a.Z,m<0&&m>=2147483648&&(m=0),Vi("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:R,transactionDuration:l,transactionCount:a.transactionCount,dbDuration:m}),a.L=!0),ZeQ(a,!1,T,R,l,H.tag),GS(y)):ZeQ(a,!0,T,R,l, H.tag)}; ZeQ=function(a,l,m,T,y,R){Vi("TRANSACTION_ENDED",{objectStoreNames:T,connectionHasUnknownAbortedTransaction:a.L,duration:y,isSuccessful:l,tryCount:m,tag:R===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":R})}; zS=function(a){this.T=a}; g.Bw=function(a,l,m){a.T.createIndex(l,m,{unique:!1})}; Wq7=function(a,l){return g.kT(a,{query:l},function(m){return m.delete().then(function(){return g.n2(m)})}).then(function(){})}; cMR=function(a,l,m){var T=[];return g.kT(a,{query:l},function(y){if(!(m!==void 0&&T.length>=m))return T.push(y.getValue()),g.n2(y)}).then(function(){return T})}; NK7=function(a){return"getAllKeys"in IDBObjectStore.prototype?O9(a.T.getAllKeys(void 0,void 0)):Lqd(a)}; Lqd=function(a){var l=[];return g.QHt(a,{query:void 0},function(m){l.push(m.cursor.primaryKey);return g.P0P(m)}).then(function(){return l})}; g.Ss=function(a,l,m){return O9(a.T.put(l,m))}; g.kT=function(a,l,m){a=a.T.openCursor(l.query,l.direction);return wC(a).then(function(T){return K2(T,m)})}; g.QHt=function(a,l,m){var T=l.query;l=l.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.T.openKeyCursor(T,l):a.T.openCursor(T,l);return AM7(a).then(function(y){return K2(y,m)})}; J7=function(a){var l=this;this.T=a;this.Z=new Map;this.L=!1;this.done=new Promise(function(m,T){l.T.addEventListener("complete",function(){m()}); l.T.addEventListener("error",function(y){y.currentTarget===y.target&&T(l.T.error)}); l.T.addEventListener("abort",function(){var y=l.T.error;if(y)T(y);else if(!l.L){y=g.Ww;for(var R=l.T.objectStoreNames,H=[],b=0;b=m))return T.push(y.getValue()),g.n2(y)}).then(function(){return T})}; g.I$=function(a,l,m){a=a.T.openCursor(l.query===void 0?null:l.query,l.direction===void 0?"next":l.direction);return wC(a).then(function(T){return K2(T,m)})}; C2=function(a,l){this.request=a;this.cursor=l}; wC=function(a){return O9(a).then(function(l){return l?new C2(a,l):null})}; g.n2=function(a){a.cursor.continue(void 0);return wC(a.request)}; Fq3=function(a,l,m){return new Promise(function(T,y){function R(){G||(G=new Gw7(H.result,{closed:P}));return G} var H=l!==void 0?self.indexedDB.open(a,l):self.indexedDB.open(a);var b=m.blocked,M=m.blocking,d=m.x2L,A=m.upgrade,P=m.closed,G;H.addEventListener("upgradeneeded",function(V){try{if(V.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(H.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");V.dataLoss&&V.dataLoss!=="none"&&Vi("IDB_DATA_CORRUPTED",{reason:V.dataLossMessage||"unknown reason",dbName:ZZ(a)});var p=R(),L=new J7(H.transaction); A&&A(p,function(N){return V.oldVersion=N},L); L.done.catch(function(N){y(N)})}catch(N){y(N)}}); H.addEventListener("success",function(){var V=H.result;M&&V.addEventListener("versionchange",function(){M(R())}); V.addEventListener("close",function(){Vi("IDB_UNEXPECTEDLY_CLOSED",{dbName:ZZ(a),dbVersion:V.version});d&&d()}); T(R())}); H.addEventListener("error",function(){y(H.error)}); b&&H.addEventListener("blocked",function(){b()})})}; hRp=function(a,l,m){m=m===void 0?{}:m;return Fq3(a,l,m)}; E9=function(a,l){l=l===void 0?{}:l;var m,T,y,R;return g.J(function(H){if(H.L==1)return g.LP(H,2),m=self.indexedDB.deleteDatabase(a),T=l,(y=T.blocked)&&m.addEventListener("blocked",function(){y()}),g.z(H,d$b(m),4); if(H.L!=2)return g.e7(H,0);R=g.OQ(H);throw Qi(R,a,"",-1);})}; o$=function(a,l){this.name=a;this.options=l;this.Z=!0;this.K=this.j=0}; Oed=function(a,l){return new g.Ww("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:l})}; g.xT=function(a,l){if(!l)throw g.t7("openWithToken",ZZ(a.name));return a.open()}; Kqw=function(a,l){var m;return g.J(function(T){if(T.L==1)return g.z(T,g.xT(DZ,l),2);m=T.T;return T.return(g.s9(m,["databases"],{xX:!0,mode:"readwrite"},function(y){var R=y.objectStore("databases");return R.get(a.actualName).then(function(H){if(H?a.actualName!==H.actualName||a.publicName!==H.publicName||a.userIdentifier!==H.userIdentifier:1)return g.Ss(R,a).then(function(){})})}))})}; u4=function(a,l){var m;return g.J(function(T){if(T.L==1)return a?g.z(T,g.xT(DZ,l),2):T.return();m=T.T;return T.return(m.delete("databases",a))})}; zRl=function(a,l){var m,T;return g.J(function(y){return y.L==1?(m=[],g.z(y,g.xT(DZ,l),2)):y.L!=3?(T=y.T,g.z(y,g.s9(T,["databases"],{xX:!0,mode:"readonly"},function(R){m.length=0;return g.kT(R.objectStore("databases"),{},function(H){a(H.getValue())&&m.push(H.getValue());return g.n2(H)})}),3)):y.return(m)})}; ved=function(a,l){return zRl(function(m){return m.publicName===a&&m.userIdentifier!==void 0},l)}; $$l=function(){var a,l,m,T;return g.J(function(y){switch(y.L){case 1:a=gC();if((l=a)==null?0:l.hasSucceededOnce)return y.return(!0);if(Xz&&UZ()&&!r0()||g.U9)return y.return(!1);try{if(m=self,!(m.indexedDB&&m.IDBIndex&&m.IDBKeyRange&&m.IDBObjectStore))return y.return(!1)}catch(R){return y.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return y.return(!1);g.LP(y,2);T={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.z(y,Kqw(T,rC),4);case 4:return g.z(y,u4("yt-idb-test-do-not-use",rC),5);case 5:return y.return(!0);case 2:return g.OQ(y),y.return(!1)}})}; sHt=function(){if(aW!==void 0)return aW;Pw=!0;return aW=$$l().then(function(a){Pw=!1;var l;if((l=b4())!=null&&l.T){var m;l={hasSucceededOnce:((m=gC())==null?void 0:m.hasSucceededOnce)||a};var T;(T=b4())==null||T.set("LAST_RESULT_ENTRY_KEY",l,2592E3,!0)}return a})}; lQ=function(){return g.Yl("ytglobal.idbToken_")||void 0}; g.m8=function(){var a=lQ();return a?Promise.resolve(a):sHt().then(function(l){(l=l?rC:void 0)&&g.Xt("ytglobal.idbToken_",l);return l})}; S3R=function(a){if(!g.rQ())throw a=new g.Ww("AUTH_INVALID",{dbName:a}),GS(a),a;var l=g.UC();return{actualName:a+":"+l,publicName:a,userIdentifier:l}}; fSR=function(a,l,m,T){var y,R,H,b,M,d;return g.J(function(A){switch(A.L){case 1:return R=(y=Error().stack)!=null?y:"",g.z(A,g.m8(),2);case 2:H=A.T;if(!H)throw b=g.t7("openDbImpl",a,l),g.Q7("ytidb_async_stack_killswitch")||(b.stack=b.stack+"\n"+R.substring(R.indexOf("\n")+1)),GS(b),b;p2(a);M=m?{actualName:a,publicName:a,userIdentifier:void 0}:S3R(a);g.LP(A,3);return g.z(A,Kqw(M,H),5);case 5:return g.z(A,hRp(M.actualName,l,T),6);case 6:return A.return(A.T);case 3:return d=g.OQ(A),g.LP(A,7),g.z(A,u4(M.actualName, H),9);case 9:g.e7(A,8);break;case 7:g.OQ(A);case 8:throw d;}})}; JMl=function(a,l,m){m=m===void 0?{}:m;return fSR(a,l,!1,m)}; BKd=function(a,l,m){m=m===void 0?{}:m;return fSR(a,l,!0,m)}; kwQ=function(a,l){l=l===void 0?{}:l;var m,T;return g.J(function(y){if(y.L==1)return g.z(y,g.m8(),2);if(y.L!=3){m=y.T;if(!m)return y.return();p2(a);T=S3R(a);return g.z(y,E9(T.actualName,l),3)}return g.z(y,u4(T.actualName,m),0)})}; neb=function(a,l,m){a=a.map(function(T){return g.J(function(y){return y.L==1?g.z(y,E9(T.actualName,l),2):g.z(y,u4(T.actualName,m),0)})}); return Promise.all(a).then(function(){})}; wbb=function(a){var l=l===void 0?{}:l;var m,T;return g.J(function(y){if(y.L==1)return g.z(y,g.m8(),2);if(y.L!=3){m=y.T;if(!m)return y.return();p2(a);return g.z(y,ved(a,m),3)}T=y.T;return g.z(y,neb(T,l,m),0)})}; ISl=function(a,l){l=l===void 0?{}:l;var m;return g.J(function(T){if(T.L==1)return g.z(T,g.m8(),2);if(T.L!=3){m=T.T;if(!m)return T.return();p2(a);return g.z(T,E9(a,l),3)}return g.z(T,u4(a,m),0)})}; Tx=function(a,l){o$.call(this,a,l);this.options=l;p2(a)}; C07=function(a,l){var m;return function(){m||(m=new Tx(a,l));return m}}; g.yQ=function(a,l){return C07(a,l)}; RW=function(a){return g.xT(Eez(),a)}; oeP=function(a,l,m,T){var y,R,H;return g.J(function(b){switch(b.L){case 1:return y={config:a,hashData:l,timestamp:T!==void 0?T:(0,g.E)()},g.z(b,RW(m),2);case 2:return R=b.T,g.z(b,R.clear("hotConfigStore"),3);case 3:return g.z(b,g.f2(R,"hotConfigStore",y),4);case 4:return H=b.T,b.return(H)}})}; x$5=function(a,l,m,T,y){var R,H,b;return g.J(function(M){switch(M.L){case 1:return R={config:a,hashData:l,configData:m,timestamp:y!==void 0?y:(0,g.E)()},g.z(M,RW(T),2);case 2:return H=M.T,g.z(M,H.clear("coldConfigStore"),3);case 3:return g.z(M,g.f2(H,"coldConfigStore",R),4);case 4:return b=M.T,M.return(b)}})}; D$w=function(a){var l,m;return g.J(function(T){return T.L==1?g.z(T,RW(a),2):T.L!=3?(l=T.T,m=void 0,g.z(T,g.s9(l,["coldConfigStore"],{mode:"readwrite",xX:!0},function(y){return g.I$(y.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(R){m=R.getValue()})}),3)):T.return(m)})}; uWw=function(a){var l,m;return g.J(function(T){return T.L==1?g.z(T,RW(a),2):T.L!=3?(l=T.T,m=void 0,g.z(T,g.s9(l,["hotConfigStore"],{mode:"readwrite",xX:!0},function(y){return g.I$(y.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(R){m=R.getValue()})}),3)):T.return(m)})}; Xbt=function(){return g.J(function(a){return g.z(a,wbb("ytGcfConfig"),0)})}; Hj=function(){g.k.call(this);this.L=[];this.T=[];var a=g.Yl("yt.gcf.config.hotUpdateCallbacks");a?(this.L=[].concat(g.F(a)),this.T=a):(this.T=[],g.Xt("yt.gcf.config.hotUpdateCallbacks",this.T))}; de=function(){var a=this;this.K=!1;this.Z=this.j=0;this.C=new Hj;this.lM={Rfj:function(){a.K=!0}, WeK:function(){return a.T}, gtg:function(l){qt(a,l)}, QF:function(l){a.QF(l)}, H3j:function(l){bQ(a,l)}, tf:function(){return a.coldHashData}, Gn:function(){return a.hotHashData}, GBu:function(){return a.L}, H6x:function(){return ge()}, XZT:function(){return Mt()}, dit:function(){return g.Yl("yt.gcf.config.coldHashData")}, M7x:function(){return g.Yl("yt.gcf.config.hotHashData")}, DLu:function(){Y3d(a)}, JXN:function(){a.QF(void 0);iQ(a);delete de.instance}, MEL:function(l){a.Z=l}, Ytb:function(){return a.Z}}}; U$7=function(){if(!de.instance){var a=new de;de.instance=a}return de.instance}; lfl=function(a){var l;g.J(function(m){if(m.L==1)return g.Q7("start_client_gcf")||g.Q7("delete_gcf_config_db")?g.Q7("start_client_gcf")?g.z(m,g.m8(),3):m.iT(2):m.return();m.L!=2&&((l=m.T)&&g.rQ()&&!g.Q7("delete_gcf_config_db")?(a.K=!0,Y3d(a)):(rMR(a),afP(a)));return g.Q7("delete_gcf_config_db")?g.z(m,Xbt(),0):m.iT(0)})}; jx=function(){var a;return(a=Mt())!=null?a:g.Uu("RAW_HOT_CONFIG_GROUP")}; mMz=function(a){var l,m,T,y,R,H;return g.J(function(b){switch(b.L){case 1:if(a.L)return b.return(Mt());if(!a.K)return l=g.t7("getHotConfig IDB not initialized"),Tv(l),b.return(Promise.reject(l));m=lQ();T=g.Uu("TIME_CREATED_MS");if(!m){y=g.t7("getHotConfig token error");Tv(y);b.iT(2);break}return g.z(b,uWw(m),3);case 3:if((R=b.T)&&R.timestamp>T)return qt(a,R.config),a.QF(R.hashData),b.return(Mt());case 2:afP(a);if(!(m&&a.L&&a.hotHashData)){b.iT(4);break}return g.z(b,oeP(a.L,a.hotHashData,m,T),4);case 4:return a.L? b.return(Mt()):(H=new g.YH("Config not available in ytConfig"),Tv(H),b.return(Promise.reject(H)))}})}; yW3=function(a){var l,m,T,y,R,H;return g.J(function(b){switch(b.L){case 1:if(a.T)return b.return(ge());if(!a.K)return l=g.t7("getColdConfig IDB not initialized"),Tv(l),b.return(Promise.reject(l));m=lQ();T=g.Uu("TIME_CREATED_MS");if(!m){y=g.t7("getColdConfig");Tv(y);b.iT(2);break}return g.z(b,D$w(m),3);case 3:if((R=b.T)&&R.timestamp>T)return bQ(a,R.config),Thz(a,R.configData),iQ(a,R.hashData),b.return(ge());case 2:rMR(a);if(!(m&&a.T&&a.coldHashData&&a.configData)){b.iT(4);break}return g.z(b,x$5(a.T, a.coldHashData,a.configData,m,T),4);case 4:return a.T?b.return(ge()):(H=new g.YH("Config not available in ytConfig"),Tv(H),b.return(Promise.reject(H)))}})}; Y3d=function(a){if(!a.L||!a.T){if(!lQ()){var l=g.t7("scheduleGetConfigs");Tv(l)}a.j||(a.j=g.Ed.Q8(function(){return g.J(function(m){switch(m.L){case 1:return g.LP(m,2),g.z(m,mMz(a),4);case 4:g.e7(m,3);break;case 2:g.OQ(m);case 3:return g.LP(m,5),g.z(m,yW3(a),7);case 7:g.e7(m,6);break;case 5:g.OQ(m);case 6:a.j&&(a.j=0),g.c5(m)}})},100))}}; Ryz=function(a,l,m){var T,y,R;return g.J(function(H){switch(H.L){case 1:if(!g.Q7("start_client_gcf")){H.iT(0);break}m&&qt(a,m);a.QF(l);T=lQ();if(!T){H.iT(3);break}if(m){H.iT(4);break}return g.z(H,uWw(T),5);case 5:y=H.T,m=(R=y)==null?void 0:R.config;case 4:return g.z(H,oeP(m,l,T),3);case 3:if(m)for(var b=m,M=g.c(a.C.T),d=M.next();!d.done;d=M.next())d=d.value,d(b);g.c5(H)}})}; H57=function(a,l,m){var T,y,R,H;return g.J(function(b){if(b.L==1){if(!g.Q7("start_client_gcf"))return b.iT(0);iQ(a,l);return(T=lQ())?m?b.iT(4):g.z(b,D$w(T),5):b.iT(0)}b.L!=4&&(y=b.T,m=(R=y)==null?void 0:R.config);if(!m)return b.iT(0);H=m.configData;return g.z(b,x$5(m,l,H,T),0)})}; qup=function(){var a=U$7(),l=(0,g.E)()-a.Z;if(!(a.Z!==0&&l0&&(l.request={internalExperimentFlags:m});gvQ(a,void 0,l);MQQ(void 0,l);i5t(void 0,l);dMP(a,void 0,l);jwp(void 0,l);g.Q7("start_client_gcf")&&AWt(void 0,l);g.Uu("DELEGATED_SESSION_ID")&& !g.Q7("pageid_as_header_web")&&(l.user={onBehalfOfUser:g.Uu("DELEGATED_SESSION_ID")});!g.Q7("fill_delegate_context_in_gel_killswitch")&&(a=g.Uu("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(l.user=Object.assign({},l.user,{serializedDelegationContext:a}));a=g.Uu("INNERTUBE_CONTEXT");var T;if(g.Q7("enable_persistent_device_token")&&(a==null?0:(T=a.client)==null?0:T.rolloutToken)){var y;l.client.rolloutToken=a==null?void 0:(y=a.client)==null?void 0:y.rolloutToken}T=Object;y=T.assign;a=l.client; m={};for(var R=g.c(Object.entries(H$(g.Uu("DEVICE","")))),H=R.next();!H.done;H=R.next()){var b=g.c(H.value);H=b.next().value;b=b.next().value;H==="cbrand"?m.deviceMake=b:H==="cmodel"?m.deviceModel=b:H==="cbr"?m.browserName=b:H==="cbrver"?m.browserVersion=b:H==="cos"?m.osName=b:H==="cosver"?m.osVersion=b:H==="cplatform"&&(m.platform=b)}l.client=y.call(T,a,m);return l}; gvQ=function(a,l,m){a=a.Oj;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(l){m=If(l,zc,96)||new zc;var T=wQ();T=Object.keys(PpR).indexOf(T);T=T===-1?null:T;T!==null&&T0(m,3,T);of(l,zc,96,m)}else m&&(m.client.mainAppWebInfo=(T=m.client.mainAppWebInfo)!=null?T:{},m.client.mainAppWebInfo.webDisplayMode=wQ())}; MQQ=function(a,l){var m=g.Yl("yt.embedded_player.embed_url");m&&(a?(l=If(a,JW,7)||new JW,lP(l,4,m),of(a,JW,7,l)):l&&(l.thirdParty={embedUrl:m}))}; i5t=function(a,l){var m;if(g.Q7("web_log_memory_total_kbytes")&&((m=g.u7.navigator)==null?0:m.deviceMemory)){var T;m=(T=g.u7.navigator)==null?void 0:T.deviceMemory;a?QJ(a,95,DU(m*1E6)):l&&(l.client.memoryTotalKbytes=""+m*1E6)}}; dMP=function(a,l,m){if(a.appInstallData)if(l){var T;m=(T=If(l,K5,62))!=null?T:new K5;lP(m,6,a.appInstallData);of(l,K5,62,m)}else m&&(m.client.configInfo=m.client.configInfo||{},m.client.configInfo.appInstallData=a.appInstallData)}; jwp=function(a,l){var m=UVd();m&&(a?T0(a,61,Gcd[m]):l&&(l.client.connectionType=m));g.Q7("web_log_effective_connection_type")&&(m=aS3())&&(a?T0(a,94,VQ5[m]):l&&(l.client.effectiveConnectionType=m))}; ppb=function(a,l,m){m=m===void 0?{}:m;var T={};g.Uu("EOM_VISITOR_DATA")?T={"X-Goog-EOM-Visitor-Id":g.Uu("EOM_VISITOR_DATA")}:T={"X-Goog-Visitor-Id":m.visitorData||g.Uu("VISITOR_DATA","")};if(l&&l.includes("www.youtube-nocookie.com"))return T;l=m.gx||g.Uu("AUTHORIZATION");l||(a?l="Bearer "+g.Yl("gapi.auth.getToken")().access_token:(a=o$7().gw(Gx),g.Q7("pageid_as_header_web")||delete a["X-Goog-PageId"],T=Object.assign({},T,a)));l&&(T.Authorization=l);return T}; AWt=function(a,l){var m=qup();if(m){var T=m.coldConfigData,y=m.coldHashData;m=m.hotHashData;if(a){var R;l=(R=If(a,K5,62))!=null?R:new K5;T=lP(l,1,T);lP(T,3,y).QF(m);of(a,K5,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},T&&(l.client.configInfo.coldConfigData=T),y&&(l.client.configInfo.coldHashData=y),m&&(l.client.configInfo.hotHashData=m))}}; VQ=function(a,l){this.version=a;this.args=l}; pI=function(a,l){this.topic=a;this.T=l}; tJ=function(a,l){var m=QQ();m&&m.publish.call(m,a.toString(),a,l)}; cWp=function(a){var l=Z5d,m=QQ();if(!m)return 0;var T=m.subscribe(l.toString(),function(y,R){var H=g.Yl("ytPubsub2Pubsub2SkipSubKey");H&&H==T||(H=function(){if(ex[T])try{if(R&&l instanceof pI&&l!=y)try{var b=l.T,M=R;if(!M.args||!M.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!b.Hi){var d=new b;b.Hi=d.version}var A=b.Hi}catch(P){}if(!A||M.version!=A)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{R=Reflect.construct(b, g.NF(M.args))}catch(P){throw P.message="yt.pubsub2.Data.deserialize(): "+P.message,P;}}catch(P){throw P.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+l.toString()+": "+P.message,P;}a.call(window,R)}catch(P){g.lr(P)}},Wot[l.toString()]?g.R$()?g.Ed.Q8(H):g.ZC(H,0):H())}); ex[T]=!0;FB[l.toString()]||(FB[l.toString()]=[]);FB[l.toString()].push(T);return T}; Qwd=function(){var a=Lob,l=cWp(function(m){a.apply(void 0,arguments);NhR(l)}); return l}; NhR=function(a){var l=QQ();l&&(typeof a==="number"&&(a=[a]),g.Bn(a,function(m){l.unsubscribeByKey(m);delete ex[m]}))}; QQ=function(){return g.Yl("ytPubsub2Pubsub2Instance")}; hJ=function(a,l,m){m=m===void 0?{sampleRate:.1}:m;Math.random()Ko7||H=swd&&(Bj++,g.Q7("abandon_compression_after_N_slow_zips")?JJ===g.tR("compression_disable_point")&&Bj>Su7&&(sc=!1):sc=!1);ff7(l);T.headers||(T.headers={});T.headers["Content-Encoding"]="gzip";T.postBody=a;T.postParams=void 0;y(m,T)}; JWd=function(a){var l=l===void 0?!1:l;var m=m===void 0?!1:m;var T=(0,g.E)(),y={startTime:T,ticks:{},infos:{}},R=l?g.Yl("yt.logging.gzipForFetch",!1):!0;if(sc&&R){if(!a.body)return a;try{var H=m?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);R=H;if(!m&&typeof H==="string"){var b=O5P(H);if(b!=null&&(b>Ko7||b=swd)if(Bj++,g.Q7("abandon_compression_after_N_slow_zips")||g.Q7("abandon_compression_after_N_slow_zips_lr")){l=Bj/JJ;var d=Su7/g.tR("compression_disable_point");JJ>0&&JJ%g.tR("compression_disable_point")===0&&l>=d&&(sc=!1)}else sc=!1;ff7(y)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=R;return a}catch(A){return Tv(A),a}}else return a}; O5P=function(a){try{return(new Blob(a.split(""))).size}catch(l){return Tv(l),null}}; ff7=function(a){g.Q7("gel_compression_csi_killswitch")||!g.Q7("log_gel_compression_latency")&&!g.Q7("log_gel_compression_latency_lr")||hJ("gel_compression",a,{sampleRate:.1})}; nI=function(a){var l=this;this.Ao=this.T=!1;this.potentialEsfErrorCounter=this.L=0;this.handleError=function(){}; this.mV=function(){}; this.now=Date.now;this.VR=!1;this.lM={X5O:function(A){l.rN=A}, EBj:function(){l.eZ()}, nS:function(){l.Mp()}, Bj:function(A){return g.J(function(P){return g.z(P,l.Bj(A),0)})}, oI:function(A,P){return l.oI(A,P)}, KO:function(){l.KO()}}; var m;this.uW=(m=a.uW)!=null?m:100;var T;this.Fy=(T=a.Fy)!=null?T:1;var y;this.q8=(y=a.q8)!=null?y:2592E6;var R;this.Le=(R=a.Le)!=null?R:12E4;var H;this.Ke=(H=a.Ke)!=null?H:5E3;var b;this.rN=(b=a.rN)!=null?b:void 0;this.NB=!!a.NB;var M;this.pM=(M=a.pM)!=null?M:.1;var d;this.cJ=(d=a.cJ)!=null?d:10;a.handleError&&(this.handleError=a.handleError);a.mV&&(this.mV=a.mV);a.VR&&(this.VR=a.VR);a.Ao&&(this.Ao=a.Ao);this.XO=a.XO;this.GF=a.GF;this.tp=a.tp;this.EF=a.EF;this.sendFn=a.sendFn;this.vD=a.vD;this.Ol= a.Ol;kq(this)&&(!this.XO||this.XO("networkless_logging"))&&Bht(this)}; Bht=function(a){kq(a)&&!a.VR&&(a.T=!0,a.NB&&Math.random()<=a.pM&&a.tp.Ts(a.rN),a.KO(),a.EF.Dq()&&a.eZ(),a.EF.listen(a.vD,a.eZ.bind(a)),a.EF.listen(a.Ol,a.Mp.bind(a)))}; wpR=function(a,l){if(!kq(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var m=l.options.onError?l.options.onError:function(){}; l.options.onError=function(y,R){var H,b,M,d;return g.J(function(A){switch(A.L){case 1:H=kct(R);(b=nvl(R))&&a.XO&&a.XO("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),l.url,R);if(!(a.XO&&a.XO("nwl_consider_error_code")&&H||a.XO&&!a.XO("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.cJ)){A.iT(2);break}if(!a.EF.bj){A.iT(3);break}return g.z(A,a.EF.bj(),3);case 3:if(a.EF.Dq()){A.iT(2);break}m(y,R);if(!a.XO||!a.XO("nwl_consider_error_code")||((M=l)==null?void 0: M.id)===void 0){A.iT(6);break}return g.z(A,a.tp.XL(l.id,a.rN,!1),6);case 6:return A.return();case 2:if(a.XO&&a.XO("nwl_consider_error_code")&&!H&&a.potentialEsfErrorCounter>a.cJ)return A.return();a.potentialEsfErrorCounter++;if(((d=l)==null?void 0:d.id)===void 0){A.iT(8);break}return l.sendCount=400&&a<=599?!1:!0}; nvl=function(a){var l;a=a==null?void 0:(l=a.error)==null?void 0:l.code;return!(a!==400&&a!==415)}; If7=function(){if(IW)return IW();var a={};IW=g.yQ("LogsDatabaseV2",{Dl:(a.LogsRequestsStore={OZ:2},a),shared:!1,upgrade:function(l,m,T){m(2)&&g.vw(l,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});m(3);m(5)&&(T=T.objectStore("LogsRequestsStore"),T.T.indexNames.contains("newRequest")&&T.T.deleteIndex("newRequest"),g.Bw(T,"newRequestV2",["status","interface","timestamp"]));m(7)&&$T(l,"sapisid");m(9)&&$T(l,"SWHealthLog")}, version:9});return IW()}; CI=function(a){return g.xT(If7(),a)}; Evd=function(a,l){var m,T,y,R;return g.J(function(H){if(H.L==1)return m={startTime:(0,g.E)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(H,CI(l),2);if(H.L!=3)return T=H.T,y=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Uu("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(H,g.f2(T,"LogsRequestsStore",y),3);R=H.T;m.ticks.tc=(0,g.E)();Cp3(m);return H.return(R)})}; ovP=function(a,l){var m,T,y,R,H,b,M,d;return g.J(function(A){if(A.L==1)return m={startTime:(0,g.E)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(A,CI(l),2);if(A.L!=3)return T=A.T,y=g.Uu("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[a,y,0],H=[a,y,(0,g.E)()],b=IDBKeyRange.bound(R,H),M="prev",g.Q7("use_fifo_for_networkless")&&(M="next"),d=void 0,g.z(A,g.s9(T,["LogsRequestsStore"],{mode:"readwrite",xX:!0},function(P){return g.I$(P.objectStore("LogsRequestsStore").index("newRequestV2"), {query:b,direction:M},function(G){G.getValue()&&(d=G.getValue(),a==="NEW"&&(d.status="QUEUED",G.update(d)))})}),3); m.ticks.tc=(0,g.E)();Cp3(m);return A.return(d)})}; xM7=function(a,l){var m;return g.J(function(T){if(T.L==1)return g.z(T,CI(l),2);m=T.T;return T.return(g.s9(m,["LogsRequestsStore"],{mode:"readwrite",xX:!0},function(y){var R=y.objectStore("LogsRequestsStore");return R.get(a).then(function(H){if(H)return H.status="QUEUED",g.Ss(R,H).then(function(){return H})})}))})}; DMw=function(a,l,m,T){m=m===void 0?!0:m;var y;return g.J(function(R){if(R.L==1)return g.z(R,CI(l),2);y=R.T;return R.return(g.s9(y,["LogsRequestsStore"],{mode:"readwrite",xX:!0},function(H){var b=H.objectStore("LogsRequestsStore");return b.get(a).then(function(M){return M?(M.status="NEW",m&&(M.sendCount+=1),T!==void 0&&(M.options.compress=T),g.Ss(b,M).then(function(){return M})):g.Fz.resolve(void 0)})}))})}; un7=function(a,l){var m;return g.J(function(T){if(T.L==1)return g.z(T,CI(l),2);m=T.T;return T.return(m.delete("LogsRequestsStore",a))})}; Xpt=function(a){var l,m;return g.J(function(T){if(T.L==1)return g.z(T,CI(a),2);l=T.T;m=(0,g.E)()-2592E6;return g.z(T,g.s9(l,["LogsRequestsStore"],{mode:"readwrite",xX:!0},function(y){return g.kT(y.objectStore("LogsRequestsStore"),{},function(R){if(R.getValue().timestamp<=m)return R.delete().then(function(){return g.n2(R)})})}),0)})}; Yut=function(){g.J(function(a){return g.z(a,wbb("LogsDatabaseV2"),0)})}; Cp3=function(a){g.Q7("nwl_csi_killswitch")||hJ("networkless_performance",a,{sampleRate:1})}; rWb=function(a){return g.xT(UMQ(),a)}; aCp=function(a){var l,m;g.J(function(T){if(T.L==1)return g.z(T,rWb(a),2);l=T.T;m=(0,g.E)()-2592E6;return g.z(T,g.s9(l,["SWHealthLog"],{mode:"readwrite",xX:!0},function(y){return g.kT(y.objectStore("SWHealthLog"),{},function(R){if(R.getValue().timestamp<=m)return R.delete().then(function(){return g.n2(R)})})}),0)})}; lC7=function(a){var l;return g.J(function(m){if(m.L==1)return g.z(m,rWb(a),2);l=m.T;return g.z(m,l.clear("SWHealthLog"),0)})}; g.Ec=function(a,l,m,T,y,R,H){y=y===void 0?"":y;R=R===void 0?!1:R;H=H===void 0?!1:H;if(a)if(m&&!g.ur())Tv(new g.YH("Legacy referrer-scrubbed ping detected")),a&&my3(a,void 0,{scrubReferrer:!0});else if(y)hR(a,l,"POST",y,T);else if(g.Uu("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||T||H)hR(a,l,"GET","",T,void 0,R,H);else{b:{try{c:{var b=new eLt({url:a});if(R3(b.T,"dsh")==="1")var M=null;else{var d=R3(b.T,"ae");if(d==="1"){var A=R3(b.T,"adurl");if(A)try{M={version:3,dA:decodeURIComponent(A),Xf:HE(b.T,"act=1", "ri=1",F97(b))};break c}catch(V){}}M=d==="2"?{version:4,dA:HE(b.T,"dct=1","suid="+b.L,""),Xf:HE(b.T,"act=1","ri=1","suid="+b.L)}:null}}if(M){var P=O0(a);var G=!(!P||!P.endsWith("/aclk")||Jd(a,"ri")!=="1");break b}}catch(V){}G=!1}G?T07(a)?(l&&l(),m=!0):m=!1:m=!1;m||my3(a,l)}}; T07=function(a,l){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,l===void 0?"":l))return!0}catch(m){}return!1}; my3=function(a,l,m){m=m===void 0?{}:m;var T=new Image,y=""+yRR++;oW[y]=T;T.onload=T.onerror=function(){l&&oW[y]&&l();delete oW[y]}; m.scrubReferrer&&(T.referrerPolicy="no-referrer");T.src=a}; R0d=function(a){var l;return((l=document.featurePolicy)==null?0:l.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"}; D1=function(){xq||(xq=new qr("yt.offline"));return xq}; Hy7=function(a){if(g.Q7("offline_error_handling")){var l=D1().get("errors",!0)||{};l[a.message]={name:a.name,stack:a.stack};a.level&&(l[a.message].level=a.level);D1().set("errors",l,2592E3,!0)}}; uQ=function(){this.T=new Map;this.L=!1}; XB=function(){if(!uQ.instance){var a=g.Yl("yt.networkRequestMonitor.instance")||new uQ;g.Xt("yt.networkRequestMonitor.instance",a);uQ.instance=a}return uQ.instance}; Yq=function(){g.Vz.call(this);var a=this;this.L=!1;this.T=VFb();this.T.listen("networkstatus-online",function(){if(a.L&&g.Q7("offline_error_handling")){var l=D1().get("errors",!0);if(l){for(var m in l)if(l[m]){var T=new g.YH(m,"sent via offline_errors");T.name=l[m].name;T.stack=l[m].stack;T.level=l[m].level;g.lr(T)}D1().set("errors",{},2592E3,!0)}}})}; qZP=function(){if(!Yq.instance){var a=g.Yl("yt.networkStatusManager.instance")||new Yq;g.Xt("yt.networkStatusManager.instance",a);Yq.instance=a}return Yq.instance}; g.Uc=function(a){a=a===void 0?{}:a;g.Vz.call(this);var l=this;this.T=this.j=0;this.L=qZP();var m=g.Yl("yt.networkStatusManager.instance.listen").bind(this.L);m&&(a.rateLimit?(this.rateLimit=a.rateLimit,m("networkstatus-online",function(){by5(l,"publicytnetworkstatus-online")}),m("networkstatus-offline",function(){by5(l,"publicytnetworkstatus-offline")})):(m("networkstatus-online",function(){l.dispatchEvent("publicytnetworkstatus-online")}),m("networkstatus-offline",function(){l.dispatchEvent("publicytnetworkstatus-offline")})))}; by5=function(a,l){a.rateLimit?a.T?(g.Ed.ac(a.j),a.j=g.Ed.Q8(function(){a.Z!==l&&(a.dispatchEvent(l),a.Z=l,a.T=(0,g.E)())},a.rateLimit-((0,g.E)()-a.T))):(a.dispatchEvent(l),a.Z=l,a.T=(0,g.E)()):a.dispatchEvent(l)}; ao=function(){var a=nI.call;re||(re=new g.Uc({nuK:!0,vej:!0}));a.call(nI,this,{tp:{Ts:Xpt,YZ:un7,F$:ovP,v8z:xM7,XL:DMw,set:Evd},EF:re,handleError:function(l,m,T){var y,R=T==null?void 0:(y=T.error)==null?void 0:y.code;if(R===400||R===415){var H;l=new g.YH(l.message,m,T==null?void 0:(H=T.error)==null?void 0:H.code);Tv(l,void 0,void 0,void 0,!0)}else g.lr(l)}, mV:Tv,sendFn:gal,now:g.E,OI:Hy7,GF:g.yi(),vD:"publicytnetworkstatus-online",Ol:"publicytnetworkstatus-offline",NB:!0,pM:.1,cJ:g.tR("potential_esf_error_limit",10),XO:g.Q7,VR:!(g.rQ()&&g.Fl(document.location.toString())!=="www.youtube-nocookie.com")});this.Z=new g.pr;g.Q7("networkless_immediately_drop_all_requests")&&Yut();ISl("LogsDatabaseV2")}; l$=function(){var a=g.Yl("yt.networklessRequestController.instance");a||(a=new ao,g.Xt("yt.networklessRequestController.instance",a),g.Q7("networkless_logging")&&g.m8().then(function(l){a.rN=l;Bht(a);a.Z.resolve();a.NB&&Math.random()<=a.pM&&a.rN&&aCp(a.rN);g.Q7("networkless_immediately_drop_sw_health_store")&&Mnt(a)})); return a}; Mnt=function(a){var l;g.J(function(m){if(!a.rN)throw l=g.t7("clearSWHealthLogsDb"),l;return m.return(lC7(a.rN).catch(function(T){a.handleError(T)}))})}; gal=function(a,l,m,T){T=T===void 0?!1:T;l=g.Q7("web_fp_via_jspb")?Object.assign({},l):l;g.Q7("use_cfr_monitor")&&iyd(a,l);if(g.Q7("use_request_time_ms_header"))l.headers&&ir(a)&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.E)())));else{var y;if((y=l.postParams)==null?0:y.requestTimeMs)l.postParams.requestTimeMs=Math.round((0,g.E)())}m&&Object.keys(l).length===0?g.Ec(a):l.compress?l.postBody?(typeof l.postBody!=="string"&&(l.postBody=JSON.stringify(l.postBody)),fI(a,l.postBody, l,g.OZ,T)):fI(a,JSON.stringify(l.postParams),l,Ky,T):g.OZ(a,l)}; mP=function(a,l){g.Q7("use_event_time_ms_header")&&ir(a)&&(l.headers||(l.headers={}),l.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.E)())));return l}; iyd=function(a,l){var m=l.onError?l.onError:function(){}; l.onError=function(y,R){XB().requestComplete(a,!1);m(y,R)}; var T=l.onSuccess?l.onSuccess:function(){}; l.onSuccess=function(y,R){XB().requestComplete(a,!0);T(y,R)}}; g.TG=function(a){this.config_=null;a?this.config_=a:b5P()&&(this.config_=g.AJ())}; g.yM=function(a,l,m,T){function y(d){try{if((d===void 0?0:d)&&T.retry&&!T.networklessOptions.bypassNetworkless)R.method="POST",T.networklessOptions.writeThenSend?l$().writeThenSend(M,R):l$().sendAndWrite(M,R);else if(T.compress){var A=!T.networklessOptions.writeThenSend;if(R.postBody){var P=R.postBody;typeof P!=="string"&&(P=JSON.stringify(R.postBody));fI(M,P,R,g.OZ,A)}else fI(M,JSON.stringify(R.postParams),R,Ky,A)}else g.Q7("web_all_payloads_via_jspb")?g.OZ(M,R):Ky(M,R)}catch(G){if(G.name==="InvalidAccessError")Tv(Error("An extension is blocking network request.")); else throw G;}} !g.Uu("VISITOR_DATA")&&l!=="visitor_id"&&Math.random()<.01&&Tv(new g.YH("Missing VISITOR_DATA when sending innertube request.",l,m,T));if(!a.isReady())throw a=new g.YH("innertube xhrclient not ready",l,m,T),g.lr(a),a;var R={headers:T.headers||{},method:"POST",postParams:m,postBody:T.postBody,postBodyFormat:T.postBodyFormat||"JSON",onTimeout:function(){T.onTimeout()}, onFetchTimeout:T.onTimeout,onSuccess:function(d,A){if(T.onSuccess)T.onSuccess(A)}, onFetchSuccess:function(d){if(T.onSuccess)T.onSuccess(d)}, onError:function(d,A){if(T.onError)T.onError(A)}, onFetchError:function(d){if(T.onError)T.onError(d)}, timeout:T.timeout,withCredentials:!0,compress:T.compress};R.headers["Content-Type"]||(R.headers["Content-Type"]="application/json");m="";var H=a.config_.mD;H&&(m=H);H=a.config_.KI||!1;var b=ppb(H,m,T);Object.assign(R.headers,b);R.headers.Authorization&&!m&&H&&(R.headers["x-origin"]=window.location.origin);var M=g0(""+m+("/youtubei/"+a.config_.innertubeApiVersion+"/"+l),{alt:"json"});g.Yl("ytNetworklessLoggingInitializationOptions")&&dyd.isNwlInitialized?sHt().then(function(d){y(d)}):y(!1)}; g.g6=function(a,l,m){var T=g.Ro();if(T&&l){var y=T.subscribe(a,function(){function R(){Hg[y]&&l.apply&&typeof l.apply=="function"&&l.apply(m||window,H)} var H=arguments;try{g.qQ[a]?R():g.ZC(R,0)}catch(b){g.lr(b)}},m); Hg[y]=!0;b$[a]||(b$[a]=[]);b$[a].push(y);return y}return 0}; jtd=function(a){var l=g.g6("LOGGED_IN",function(m){a.apply(void 0,arguments);g.MQ(l)})}; g.MQ=function(a){var l=g.Ro();l&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.Bn(a,function(m){l.unsubscribeByKey(m);delete Hg[m]}))}; g.i$=function(a,l){var m=g.Ro();return m?m.publish.apply(m,arguments):!1}; Prz=function(a){var l=g.Ro();if(l)if(l.clear(a),a)AR3(a);else for(var m in b$)AR3(m)}; g.Ro=function(){return g.u7.ytPubsubPubsubInstance}; AR3=function(a){b$[a]&&(a=b$[a],g.Bn(a,function(l){Hg[l]&&delete Hg[l]}),a.length=0)}; g.d6=function(a,l,m){Gv7(a,l,m===void 0?null:m)}; Gv7=function(a,l,m){m=m===void 0?null:m;var T=Vnd(a),y=document.getElementById(T),R=y&&OG7(y),H=y&&!R;R?l&&l():(l&&(R=g.g6(T,l),l=""+g.y5(l),p$7[l]=R),H||(y=Zyb(a,T,function(){OG7(y)||(hWH(y),g.i$(T),g.ZC(function(){Prz(T)},0))},m)))}; Zyb=function(a,l,m,T){T=T===void 0?null:T;var y=g.lK("SCRIPT");y.id=l;y.onload=function(){m&&setTimeout(m,0)}; y.onreadystatechange=function(){switch(y.readyState){case "loaded":case "complete":y.onload()}}; T&&y.setAttribute("nonce",T);g.ME(y,g.hW(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(y,a.firstChild);return y}; Vnd=function(a){var l=document.createElement("a");g.Ut(l,a);a=l.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+c6(a)}; jL=function(a,l){if(a===l)a=!0;else if(Array.isArray(a)&&Array.isArray(l))a=g.Sc(a,l,jL);else if(g.ms(a)&&g.ms(l))a:if(g.uV(a).length!=g.uV(l).length)a=!1;else{for(var m in a)if(!jL(a[m],l[m])){a=!1;break a}a=!0}else a=!1;return a}; GG=function(a){var l=g.Jz.apply(1,arguments);if(!Am(a)||l.some(function(T){return!Am(T)}))throw Error("Only objects may be merged."); l=g.c(l);for(var m=l.next();!m.done;m=l.next())Pg(a,m.value)}; Pg=function(a,l){for(var m in l)if(Am(l[m])){if(m in a&&!Am(a[m]))throw Error("Cannot merge an object into a non-object.");m in a||(a[m]={});Pg(a[m],l[m])}else if(cg(l[m])){if(m in a&&!cg(a[m]))throw Error("Cannot merge an array into a non-array.");m in a||(a[m]=[]);WeR(a[m],l[m])}else a[m]=l[m];return a}; WeR=function(a,l){l=g.c(l);for(var m=l.next();!m.done;m=l.next())m=m.value,Am(m)?a.push(Pg({},m)):cg(m)?a.push(WeR([],m)):a.push(m);return a}; Am=function(a){return typeof a==="object"&&!Array.isArray(a)}; cg=function(a){return typeof a==="object"&&Array.isArray(a)}; Lp=function(a){g.k.call(this);this.L=a}; NQ=function(a){Lp.call(this,!0);this.T=a}; QM=function(a,l){g.k.call(this);var m=this;this.Z=[];this.B=!1;this.L=0;this.K=this.C=this.j=!1;this.Ij=null;var T=(0,g.Rs)(a,l);this.T=new g.aH(function(){return T(m.Ij)},300); g.w(this,this.T);this.N=this.J=Infinity}; cRH=function(a,l){if(!l)return!1;for(var m=0;m-1)throw Error("Deps cycle for: "+l);if(a.L.has(l))return a.L.get(l);if(!a.T.has(l)){if(T)return;throw Error("No provider for: "+l);}T=a.T.get(l);m.push(l);if(T.iQ!==void 0)var y=T.iQ;else if(T.aq8)y=T[fp]?tnw(a,T[fp],m):[],y=T.aq8.apply(T,g.F(y));else if(T.Ov){y=T.Ov;var R=y[fp]?tnw(a,y[fp],m):[];y=new (Function.prototype.bind.apply(y,[null].concat(g.F(R))))}else throw Error("Could not resolve providers for: "+l);m.pop();T.Lkj||a.L.set(l,y); return y}; tnw=function(a,l,m){return l?l.map(function(T){return T instanceof $O?Jm(a,T.key,m,!0):Jm(a,T,m)}):[]}; kO=function(){Bg||(Bg=new QtH);return Bg}; w6=function(){var a,l;return"h5vcc"in np&&((a=np.h5vcc.traceEvent)==null?0:a.traceBegin)&&((l=np.h5vcc.traceEvent)==null?0:l.traceEnd)?1:"performance"in np&&np.performance.mark&&np.performance.measure?2:0}; Io=function(a){var l=w6();switch(l){case 1:np.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:np.performance.mark(a+"-start");break;case 0:break;default:rG(l,"unknown trace type")}}; e0d=function(a){var l=w6();switch(l){case 1:np.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:l=a+"-start";var m=a+"-end";np.performance.mark(m);np.performance.measure(a,l,m);break;case 0:break;default:rG(l,"unknown trace type")}}; Fe7=function(a){var l,m;(m=(l=window).onerror)==null||m.call(l,a.message,"",0,0,a)}; h05=function(a){var l=this;var m=m===void 0?0:m;var T=T===void 0?g.yi():T;this.Z=m;this.scheduler=T;this.L=new g.pr;this.T=a;for(a={hH:0};a.hH=1E3?y():T>=a?jE||(jE=AH(function(){y();jE=void 0},0)):R-b>=10&&(oaP(l,m.tier),H.j=R)}; nap=function(a,l){if(a.endpoint==="log_event"){g.Q7("more_accurate_gel_parser")&&yD().storePayload({isJspb:!1},a.payload);Hy(a);var m=qx(a),T=new Map;T.set(m,[a.payload]);var y=JRR(a.payload)||"";l&&(iE=new l);return new g.$G(function(R,H){iE&&iE.isReady()?xyd(T,iE,R,H,{bypassNetworkless:!0},!0,gE(y)):R()})}}; CrH=function(a,l,m){if(l.endpoint==="log_event"){Hy(void 0,l);var T=qx(l,!0),y=new Map;y.set(T,[da(l.payload)]);m&&(iE=new m);return new g.$G(function(R){iE&&iE.isReady()?Dyz(y,iE,R,{bypassNetworkless:!0},!0,gE(a)):R()})}}; qx=function(a,l){var m="";if(a.dangerousLogToVisitorSession)m="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(l===void 0?0:l){l=a.cttAuthInfo.token;m=a.cttAuthInfo;var T=new up;m.videoId?T.setVideoId(m.videoId):m.playlistId&&JK(T,2,Py,YF(m.playlistId));GX[l]=T}else l=a.cttAuthInfo,m={},l.videoId?m.videoId=l.videoId:l.playlistId&&(m.playlistId=l.playlistId),VD[a.cttAuthInfo.token]=m;m=a.cttAuthInfo.token}return m}; Mx=function(a,l,m){a=a===void 0?{}:a;l=l===void 0?!1:l;new g.$G(function(T,y){var R=dE(l,m),H=R.Z;R.Z=!1;pU(R.L);pU(R.T);R.T=0;iE&&iE.isReady()?m===void 0&&g.Q7("enable_web_tiered_gel")?uLl(T,y,a,l,300,H):uLl(T,y,a,l,m,H):(oaP(l,m),T())})}; uLl=function(a,l,m,T,y,R){var H=iE;m=m===void 0?{}:m;T=T===void 0?!1:T;y=y===void 0?200:y;R=R===void 0?!1:R;var b=new Map,M=new Map,d={isJspb:T,cttAuthInfo:void 0,tier:y},A={isJspb:T,cttAuthInfo:void 0};if(T){l=g.c(Object.keys(bE));for(y=l.next();!y.done;y=l.next())y=y.value,M=g.Q7("enable_web_tiered_gel")?yD().smartExtractMatchingEntries({keys:[d,A],sizeLimit:1E3}):yD().extractMatchingEntries({isJspb:!0,cttAuthInfo:y}),M.length>0&&b.set(y,M),(g.Q7("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.Q7("web_fp_via_jspb_and_json"))&& delete bE[y];Dyz(b,H,a,m,!1,R)}else{b=g.c(Object.keys(bE));for(d=b.next();!d.done;d=b.next())d=d.value,A=g.Q7("enable_web_tiered_gel")?yD().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:y},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):yD().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),A.length>0&&M.set(d,A),(g.Q7("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.Q7("web_fp_via_jspb_and_json"))&&delete bE[d];xyd(M,H,a,l,m,!1,R)}}; oaP=function(a,l){function m(){Mx({writeThenSend:!0},a,l)} a=a===void 0?!1:a;l=l===void 0?200:l;var T=dE(a,l),y=T===X$l||T===YZR?5E3:UyH;g.Q7("web_gel_timeout_cap")&&!T.T&&(y=AH(function(){m()},y),T.T=y); pU(T.L);y=g.Uu("LOGGING_BATCH_TIMEOUT",g.tR("web_gel_debounce_ms",1E4));g.Q7("shorten_initial_gel_batch_timeout")&&Z_&&(y=rRz);y=AH(function(){g.tR("gel_min_batch_size")>0?yD().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:l})>=aXd&&m():m()},y); T.L=y}; xyd=function(a,l,m,T,y,R,H){y=y===void 0?{}:y;var b=Math.round((0,g.E)()),M=a.size,d=lXw(H);a=g.c(a);var A=a.next();for(H={};!A.done;H={ZH:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,cR:void 0,KC:void 0},A=a.next()){var P=g.c(A.value);A=P.next().value;P=P.next().value;H.batchRequest=g.Tm({context:g.Pj(l.config_||g.AJ())});if(!g.lV(P)&&!g.Q7("throw_err_when_logevent_malformed_killswitch")){T();break}H.batchRequest.events=P;(P=VD[A])&&mpp(H.batchRequest,A,P);delete VD[A];H.dangerousLogToVisitorSession= A==="visitorOnlyApprovedKey";TQ3(H.batchRequest,b,H.dangerousLogToVisitorSession);yN7(y);H.cR=function(G){g.Q7("start_client_gcf")&&g.Ed.Q8(function(){return g.J(function(V){return g.z(V,RPz(G),0)})}); M--;M||m()}; H.ZH=0;H.KC=function(G){return function(){G.ZH++;if(y.bypassNetworkless&&G.ZH===1)try{g.yM(l,d,G.batchRequest,Wy({writeThenSend:!0},G.dangerousLogToVisitorSession,G.cR,G.KC,R)),Z_=!1}catch(V){g.lr(V),T()}M--;M||m()}}(H); try{g.yM(l,d,H.batchRequest,Wy(y,H.dangerousLogToVisitorSession,H.cR,H.KC,R)),Z_=!1}catch(G){g.lr(G),T()}}}; Dyz=function(a,l,m,T,y,R){T=T===void 0?{}:T;var H=Math.round((0,g.E)()),b={value:a.size},M=new Map([].concat(g.F(a)));M=g.c(M);for(var d=M.next();!d.done;d=M.next()){var A=g.c(d.value).next().value,P=a.get(A);d=new SAR;var G=l.config_||g.AJ(),V=new n5,p=new vp;lP(p,1,G.q1);lP(p,2,G.iP);T0(p,16,G.eO);lP(p,17,G.innertubeContextClientVersion);if(G.sf){var L=G.sf,N=new K5;L.coldConfigData&&lP(N,1,L.coldConfigData);L.appInstallData&&lP(N,6,L.appInstallData);L.coldHashData&&lP(N,3,L.coldHashData);L.hotHashData&& N.QF(L.hotHashData);of(p,K5,62,N)}(L=g.u7.devicePixelRatio)&&L!=1&&QJ(p,65,fV(L));L=en();L!==""&&lP(p,54,L);L=FL();if(L.length>0){N=new f5;for(var e=0;e65535&&(a=1);Yv("BATCH_CLIENT_COUNTER",a);return a}; mpp=function(a,l,m){if(m.videoId)var T="VIDEO";else if(m.playlistId)T="PLAYLIST";else return;a.credentialTransferTokenTargetId=m;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:l,scope:T}]}; Hy=function(a,l){var m=g.Yl("yt.logging.transport.enableScrapingForTest"),T=Ny("il_payload_scraping");T=(T!==void 0?String(T):"")==="enable_il_payload_scraping";if(!m)if(T)Nx=[],g.Xt("yt.logging.transport.enableScrapingForTest",!0),g.Xt("yt.logging.transport.scrapedPayloadsForTesting",Nx),g.Xt("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Xt("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Xt("yt.logging.transport.scrapeClientEvent",!0);else return;m=g.Yl("yt.logging.transport.scrapedPayloadsForTesting");T=g.Yl("yt.logging.transport.payloadToScrape");l&&(l=l.payload,(l=g.Yl("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(l)())&&m.push(l));l=g.Yl("yt.logging.transport.scrapeClientEvent");if(T&&T.length>=1)for(var y=0;y0&&ePd(a,l,R)}else ePd(a,l)}; ePd=function(a,l,m){a=F7d(a);l=l?g.s0(l):"";m=m||5;HW()&&g.ka(a,l,m)}; F7d=function(a){for(var l=g.c(hPp),m=l.next();!m.done;m=l.next())a=BI(a,m.value);return"ST-"+c6(a).toString(36)}; OZp=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")}; K7d=function(){this.SI=[];this.qx=[]}; SE=function(){if(!$t){var a=$t=new K7d;a.qx.length=0;a.SI.length=0;zP7(a,vHH)}return $t}; zP7=function(a,l){l.qx&&a.qx.push.apply(a.qx,l.qx);l.SI&&a.SI.push.apply(a.SI,l.SI)}; $p7=function(a){function l(){return a.charCodeAt(T++)} var m=a.length,T=0;do{var y=fU(l);if(y===Infinity)break;var R=y>>3;switch(y&7){case 0:y=fU(l);if(R===2)return y;break;case 1:if(R===2)return;T+=8;break;case 2:y=fU(l);if(R===2)return a.substr(T,y);T+=y;break;case 5:if(R===2)return;T+=4;break;default:return}}while(T500));T++);T=y}else if(typeof a==="object")for(y in a){if(a[y]){var R=y;var H=a[y],b=l,M=m;R=typeof H!=="string"||R!=="clickTrackingParams"&&R!=="trackingParams"?0:(H=$p7(atob(H.replace(/-/g,"+").replace(/_/g,"/"))))?JH(R+".ve",H,b,M):0;T+=R;T+=JH(y,a[y],l,m);if(T>500)break}}else m[l]=By(a),T+=m[l].length;else m[l]=By(a),T+=m[l].length;return T}; JH=function(a,l,m,T){m+="."+a;a=By(l);T[m]=a;return m.length+a.length}; By=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(l){return"unable to serialize "+typeof a+" ("+l.message+")"}}; dC=function(a){g.kt(a)}; g.nU=function(a){g.kt(a,"WARNING")}; g.kt=function(a,l){var m=m===void 0?{}:m;m.name=g.Uu("INNERTUBE_CONTEXT_CLIENT_NAME",1);m.version=g.Uu("INNERTUBE_CONTEXT_CLIENT_VERSION");l=l===void 0?"ERROR":l;var T=!1;l=l===void 0?"ERROR":l;T=T===void 0?!1:T;if(a){a.hasOwnProperty("level")&&a.level&&(l=a.level);if(g.Q7("console_log_js_exceptions")){var y=[];y.push("Name: "+a.name);y.push("Message: "+a.message);a.hasOwnProperty("params")&&y.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&y.push("Error args: "+JSON.stringify(a.args)); y.push("File name: "+a.fileName);y.push("Stacktrace: "+a.stack);window.console.log(y.join("\n"),a)}if(!(SC7>=5)){y=[];for(var R=g.c(fXl),H=R.next();!H.done;H=R.next()){H=H.value;try{H()&&y.push(H())}catch(L){}}y=[].concat(g.F(JN7),g.F(y));var b=qXb(a);R=b.message||"Unknown Error";H=b.name||"UnknownError";var M=b.stack||a.L||"Not available";if(M.startsWith(H+": "+R)){var d=M.split("\n");d.shift();M=d.join("\n")}d=b.lineNumber||"Not available";b=b.fileName||"Not available";var A=0;if(a.hasOwnProperty("args")&& a.args&&a.args.length)for(var P=0;P=500);P++);else if(a.hasOwnProperty("params")&&a.params){var G=a.params;if(typeof a.params==="object")for(P in G){if(G[P]){var V="params."+P,p=By(G[P]);m[V]=p;A+=V.length+p.length;if(A>500)break}}else m.params=By(G)}if(y.length)for(P=0;P=500);P++);navigator.vendor&&!m.hasOwnProperty("vendor")&&(m["device.vendor"]=navigator.vendor);m={message:R,name:H,lineNumber:d, fileName:b,stack:M,params:m,sampleWeight:1};P=Number(a.columnNumber);isNaN(P)||(m.lineNumber=m.lineNumber+":"+P);if(a.level==="IGNORED")a=0;else a:{a=SE();P=g.c(a.qx);for(y=P.next();!y.done;y=P.next())if(y=y.value,m.message&&m.message.match(y.O$)){a=y.weight;break a}a=g.c(a.SI);for(P=a.next();!P.done;P=a.next())if(P=P.value,P.callback(m)){a=P.weight;break a}a=1}m.sampleWeight=a;a=g.c(BQQ);for(P=a.next();!P.done;P=a.next())if(P=P.value,P.dB[m.name])for(R=g.c(P.dB[m.name]),y=R.next();!y.done;y=R.next())if(H= y.value,y=m.message.match(H.fh)){m.params["params.error.original"]=y[0];R=H.groups;H={};for(d=0;d1E3&&g.nU(new g.YH("IL Attach cache exceeded limit"))}b= a8(m,l);uE.has(b)?lT(m,l):Yt.set(b,!0)}}T=T.filter(function(A){A.csn!==l?(A.csn=l,A=!0):A=!1;return A}); m={csn:l,parentVe:m.getAsJson(),childVes:g.xX(T,function(A){return A.getAsJson()})}; l==="UNDEFINED_CSN"?m6("visualElementAttached",R,m):a?tH("visualElementAttached",m,a,R):g.js("visualElementAttached",m,R)}; aZ7=function(a,l,m,T,y){Ts(m,l);T=D_({cttAuthInfo:zX(l)||void 0},l);m={csn:l,ve:m.getAsJson(),eventType:1};y&&(m.clientData=y);l==="UNDEFINED_CSN"?m6("visualElementShown",T,m):a?tH("visualElementShown",m,a,T):g.js("visualElementShown",m,T)}; lZz=function(a,l,m,T){var y=(T=T===void 0?!1:T)?16:8;T=D_({cttAuthInfo:zX(l)||void 0,endOfSequence:T},l);m={csn:l,ve:m.getAsJson(),eventType:y};l==="UNDEFINED_CSN"?m6("visualElementHidden",T,m):a?tH("visualElementHidden",m,a,T):g.js("visualElementHidden",m,T)}; R8=function(a,l,m,T,y){yf(a,l,m,void 0,T,y)}; yf=function(a,l,m,T,y){Ts(m,l);T=T||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var R=D_({cttAuthInfo:zX(l)||void 0},l);m={csn:l,ve:m.getAsJson(),gestureType:T};y&&(m.clientData=y);l==="UNDEFINED_CSN"?m6("visualElementGestured",R,m):a?tH("visualElementGestured",m,a,R):g.js("visualElementGestured",m,R)}; mrp=function(){var a=eL(16);for(var l=[],m=0;m0&&m.push(g.lK("BR"));m.push(g.mE(R))}):m.push(g.mE(T))}return m}; pj=function(a,l,m,T){if(m==="child"){g.y6(l);var y;T===void 0?y=void 0:y=!Array.isArray(T)||T&&typeof T.U==="string"?[T]:T;m=y7z(a,y);m=g.c(m);for(a=m.next();!a.done;a=m.next())l.appendChild(a.value)}else m==="style"?g.nA(l,"cssText",T?T:""):T===null||T===void 0?l.removeAttribute(m):(a=T.toString(),m==="href"&&(a=g.oV(g.XG(a))),l.setAttribute(m,a))}; g.x=function(a){g.Gs.call(this,a);this.I0=!0;this.K=!1;this.listeners=[]}; g.Z7=function(a){g.x.call(this,a);this.Mj=new g.Aj;g.w(this,this.Mj)}; Wk=function(a,l,m,T,y,R,H){H=H===void 0?null:H;g.Z7.call(this,l);this.api=a;this.macros={};this.componentType=m;this.B=this.J=null;this.vF=H;this.layoutId=T;this.interactionLoggingClientData=y;this.Y8=R;this.tM=null;this.zv=new NQ(this.element);g.w(this,this.zv);this.yg=this.W(this.element,"click",this.onClick);this.qj=[];this.jt=new QM(this.onClick,this);g.w(this,this.jt);this.lZ=!1;this.Kx=this.Ij=null}; ck=function(a,l){a=a===void 0?null:a;l=l===void 0?null:l;if(a==null)return g.nU(Error("Got null or undefined adText object")),"";var m=g.W6(a.text);if(!a.isTemplated)return m;if(l==null)return g.nU(Error("Missing required parameters for a templated message")),m;a=g.c(Object.entries(l));for(l=a.next();!l.done;l=a.next()){var T=g.c(l.value);l=T.next().value;T=T.next().value;m=m.replace("{"+l+"}",T)}return m}; Rb7=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].url!=null)?g.W6(a.thumbnails[0].url):""}; H2w=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].width!=null&&a.thumbnails[0].height!=null)?new g.Sk(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Sk(0,0)}; g.Lj=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var l=[];a=g.c(a.runs);for(var m=a.next();!m.done;m=a.next())m=m.value,m.text&&l.push(m.text);return l.join("")}return""}; g.NX=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var l=[];if(a.runs)for(var m=0;m1){for(var l=[a[0]],m=1;m0&&(this.T=new g.aH(this.zN,l,this),g.w(this,this.T));this.K=new g.aH(this.zN,m,this);g.w(this,this.K);this.J=QkH(this.L,y,1,T);g.w(this,this.J);this.B=QkH(this.L,0,T,1);g.w(this,this.B);this.j=new zO;g.w(this,this.j)}; jI=function(a,l,m){this.L=a;this.isAsync=l;this.T=m}; xrP=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:rG(a,"unknown result type")}}; Dr5=function(a,l){var m=1;a.isTrusted===!1&&(m=0);Yv("ISDSTAT",m);Aw(m,"i.s_",{triggerContext:"sk",metadata:l});return m}; uz7=function(a,l){var m=[];l?l.isTrusted===!0?m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):l.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");Aw(0,"a.s_",{metadata:a,states:m});Yv("ASDSTAT",0)}; Aw=function(a,l,m){l=Xw7[l];var T,y,R={detected:a===0,source:""+l.L+((T=m.triggerContext)!=null?T:"")+((y=m.WU)!=null?y:""),detectionStates:m.states,durationMs:m.kx};m.metadata&&(R.contentCpn=m.metadata.contentCpn,R.adCpn=m.metadata.adCpn);g.js("biscottiBasedDetection",R);l.T!==void 0&&(m=Number(g.Uu("CATSTAT",0)),l.T!==void 0?(l=l.T,a=xrP(a),a=m&~(3<0}; cr=function(a,l,m,T,y,R){yu.call(this,a,{U:"div",S:"ytp-ad-skip-button-slot"},"skip-button",l,m,T,y);var H=this;this.lT=null;this.hM=!1;this.St=R;this.C=this.api.Y().experiments.XO("enable_modern_skip_button_on_web");this.wb=!1;this.j=new g.Z7({U:"span",uT:["ytp-ad-skip-button-container"]});this.C&&this.j.element.classList.add("ytp-ad-skip-button-container-detached");g.w(this,this.j);this.j.DK(this.element);this.L=this.Z=null;this.rb=new g.q4(this.j,500,!1,100,function(){return H.hide()}); g.w(this,this.rb);this.Cx=new d_(this.j.element,15E3,5E3,.5,.5,this.C);g.w(this,this.Cx);this.hide()}; UrQ=function(a){a=a.lT&&a.lT.adRendererCommands;return(a&&a.clickCommand&&g.I(a.clickCommand,g.Lu)&&g.I(a.clickCommand,g.Lu).commands||[]).some(function(l){return l.adLifecycleCommand?Y9b(l.adLifecycleCommand):!1})}; Y9b=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"}; N4=function(a,l,m,T,y,R){yu.call(this,a,{U:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",l,m,T,y);this.lT=R;this.j=!1;this.C=0;this.Z=this.L=null;this.hide()}; r7t=function(a,l){a.j||(a.j=!0,a.L&&(l?a.L.lT.hide():a.L.hide()),l?(a=a.Z,a.rb.show(),a.show()):a.Z.show())}; Qu=function(a,l,m,T){Bk.call(this,a,l,m,T,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; tw=function(a,l,m,T,y,R,H){R=R===void 0?!1:R;H=H===void 0?!1:H;Wk.call(this,a,{U:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",l,m,T);this.Z=y;this.T=this.OL("ytp-ad-simple-ad-badge");(this.L=R)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");H&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; eI=function(a,l,m,T,y){y=y===void 0?!1:y;jN.call(this,"player-overlay",a,{},l,T);this.videoAdDurationSeconds=m;this.interactionLoggingClientData=T;this.H8=y}; F1=function(a,l){g.Aj.call(this);this.api=a;this.durationMs=l;this.T=null;this.Gq=new zO(this);g.w(this,this.Gq);this.L=a17;this.Gq.W(this.api,"presentingplayerstatechange",this.yb);this.T=this.Gq.W(this.api,"onAdPlaybackProgress",this.ex)}; hw=function(a){g.Aj.call(this);this.T=!1;this.Lh=0;this.Gq=new zO(this);g.w(this,this.Gq);this.durationMs=a;this.Jb=new g.n1(100);g.w(this,this.Jb);this.Gq.W(this.Jb,"tick",this.ex);this.L={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()}; g.O6=function(a,l){var m=Math.abs(Math.floor(a)),T=Math.floor(m/86400),y=Math.floor(m%86400/3600),R=Math.floor(m%3600/60);m=Math.floor(m%60);if(l){l="";T>0&&(l+=" "+T+" D\u00edas");if(T>0||y>0)l+=" "+y+" Horas";l+=" "+R+" Minutos";l+=" "+m+" Segundos";T=l.trim()}else{l="";T>0&&(l+=T+":",y<10&&(l+="0"));if(T>0||y>0)l+=y+":",R<10&&(l+="0");l+=R+":";m<10&&(l+="0");T=l+m}return a>=0?T:"-"+T}; g.Ku=function(a){return(!("button"in a)||typeof a.button!=="number"||a.button===0)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; zD=function(a,l,m,T,y,R,H){yu.call(this,a,{U:"span",S:H?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",l,m,T,y);this.videoAdDurationSeconds=R;this.L=null;H&&this.api.Y().L&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Xz&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; vr=function(a,l,m,T){mu.call(this,a,l,m,T,"ytp-video-ad-top-bar-title","ad-title")}; $f=function(a){this.content=a.content;if(a.commandRuns){a=g.c(a.commandRuns);for(var l=a.next();!l.done;l=a.next())l=l.value,this.loggingDirectives=g.I(l,l1l),l.onTap&&(this.interaction={onTap:l.onTap})}}; s6=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",l,m,T);this.hide()}; SI=function(a,l,m,T,y){Wk.call(this,a,{U:"span",S:y?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",l,m,T);this.L=y;this.adBadgeText=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);this.adBadgeText.DK(this.element);g.w(this,this.adBadgeText);y?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Xz&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; fu=function(a,l,m,T){Wk.call(this,a,{U:"span",S:"ytp-ad-pod-index"},"ad-pod-index",l,m,T);this.api.Y().L&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Xz&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; Jw=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",l,m,T);this.hide()}; Br=function(a,l){this.L=a;this.T=l}; kf=function(a,l,m){if(!a.getLength())return m!=null?m:Infinity;a=(l-a.L)/a.getLength();return g.Km(a,0,1)}; nu=function(a,l,m,T){T=T===void 0?!1:T;g.Z7.call(this,{U:"div",S:"ytp-ad-persistent-progress-bar-container",X:[{U:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.L=l;this.Z=m;T&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.w(this,this.L);this.progressBar=this.OL("ytp-ad-persistent-progress-bar");this.T=-1;this.W(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; w_=function(a,l,m,T,y,R){Wk.call(this,a,{U:"div",S:"ytp-ad-player-overlay",X:[{U:"div",S:"ytp-ad-player-overlay-flyout-cta"},{U:"div",S:"ytp-ad-player-overlay-instream-info"},{U:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{U:"div",S:"ytp-ad-player-overlay-progress-bar"},{U:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"},{U:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",l,m,T);this.N=R;this.C=this.OL("ytp-ad-player-overlay-flyout-cta");this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.T=this.OL("ytp-ad-player-overlay-instream-info");this.j=null;mt7(this)&&(a=aj("div"),g.M$(a,"ytp-ad-player-overlay-top-bar-gradients"),l=this.T,l.parentNode&&l.parentNode.insertBefore(a,l),(l=this.api.getVideoData(2))&&l.isListed&&l.title&&(m=new vr(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),m.DK(a),m.init(dx("ad-title"),{text:l.title},this.macros),g.w(this,m)),this.j=a);this.Z=null;this.AM=this.OL("ytp-ad-player-overlay-skip-or-preview");this.Cx=this.OL("ytp-ad-player-overlay-progress-bar"); this.hM=this.OL("ytp-ad-player-overlay-instream-user-sentiment");this.lT=this.OL("ytp-ad-player-overlay-ad-disclosure-banner");this.L=y;g.w(this,this.L);this.hide()}; mt7=function(a){a=a.api.Y();var l=g.IE(a)&&a.L;return a.V("embeds_embc3ds_atb")&&a.disableOrganicUi&&!0||l}; g.Cu=function(a){a&=16777215;var l=[(a&16711680)>>16,(a&65280)>>8,a&255];a=l[0];var m=l[1];l=l[2];a=Number(a);m=Number(m);l=Number(l);if(a!=(a&255)||m!=(m&255)||l!=(l&255))throw Error('"('+a+","+m+","+l+'") is not a valid RGB color');m=a<<16|m<<8|l;return a<16?"#"+(16777216|m).toString(16).slice(1):"#"+m.toString(16)}; E6=function(a){this.T=new $e(a)}; TeH=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(l){a=!0}return(g.Uu("INNERTUBE_CLIENT_NAME")==="WEB"||g.Uu("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a}; oE=function(){var a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Yv("LOGIN_INFO","");a&&window.sessionStorage.setItem("from_switch_account","1");a=!0;a=a===void 0?!1:a;var l,m=yJb;m||(m=document.querySelector("#persist_identity"));if(l=m){var T=l.src?(new URL(l.src)).origin:"*";if(a){var y;(y=l.contentWindow)==null||y.postMessage({action:"clear"},T)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var R=window.sessionStorage.getItem("session_logininfo");if(R){var H;(H=l.contentWindow)==null||H.postMessage({loginInfo:R},T)}}}}catch(b){}}; xf=function(a){if(a)if(a.startsWith("https://accounts.google.com/AddSession"))oE();else if(a.startsWith("https://accounts.google.com/ServiceLogin"))oE();else{var l;if(l=a.startsWith("https://myaccount.google.com"))l=g.Vr(a).L.endsWith("/youtubeoptions");l&&oE()}if(g.Uu("LOGGED_IN",!0)&&TeH()){l=g.Uu("VALID_SESSION_TEMPDATA_DOMAINS",[]);var m=g.Fl(window.location.href);m&&l.push(m);m=g.Fl(a);g.pD(l,m)||!m&&Gm(a,"/")?(l=KF(a),(l=rIR(l))?(l=F7d(l),l=(l=g.ny(l)||null)?H$(l):{}):l=null):l=null;l==null&& (l={});m=l;var T=void 0;TeH()?(T||(T=g.Uu("LOGIN_INFO")),T?(m.session_logininfo=T,m=!0):m=!1):m=!1;m&&vy(a,l)}}; g.RTt=function(a){var l=l===void 0?{}:l;var m=m===void 0?"":m;var T=T===void 0?window:T;a=g.S$(a,l);xf(a);m=g.XG(a+m);T=T.location;m=Y_(m);m!==void 0&&(T.href=m)}; g.Dc=function(a,l,m){l=l===void 0?{}:l;m=m===void 0?!1:m;var T=g.Uu("EVENT_ID");T&&(l.ei||(l.ei=T));l&&vy(a,l);m||(xf(a),g.RTt(a))}; g.uG=function(a,l,m,T,y){y=y===void 0?!1:y;m&&vy(a,m);m=g.XG(a);var R=g.oV(m);a!=R&&Tv(Error("Unsafe window.open URL: "+a));a=R;l=l||c6(a).toString(36);try{if(y)return y=a,y=R0d(y),xf(y),g.Ty(window,y,l,"attributionsrc")}catch(H){g.lr(H)}xf(a);return g.Ty(window,m,l,T)}; HIb=function(a){X1=a}; qc7=function(a){Yf=a}; bI7=function(a){U6=a}; Mxb=function(){gq5=U6=Yf=X1=null}; dtR=function(){var a=a===void 0?window.location.href:a;if(g.Q7("kevlar_disable_theme_param"))return null;var l=O0(a);if(g.Q7("enable_dark_theme_only_on_shorts")&&l!=null&&l.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var m=g.br(a).theme;return iIP.get(m)||null}catch(T){}return null}; r_=function(){this.T={};if(this.L=iGp()){var a=g.ny("CONSISTENCY");a&&jWb(this,{encryptedTokenJarContents:a})}}; jWb=function(a,l){if(l.encryptedTokenJarContents&&(a.T[l.encryptedTokenJarContents]=l,typeof l.expirationSeconds==="string")){var m=Number(l.expirationSeconds);setTimeout(function(){delete a.T[l.encryptedTokenJarContents]},m*1E3); a.L&&g.ka("CONSISTENCY",l.encryptedTokenJarContents,m,void 0,!0)}}; lu=function(){this.L=-1;var a=g.Uu("LOCATION_PLAYABILITY_TOKEN");g.Uu("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=a0(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.T=void 0)}; a0=function(a){return a.localStorage===void 0?new qr("yt-client-location"):a.localStorage}; g.m0=function(a,l,m){l=l===void 0?!1:l;m=m===void 0?!1:m;var T=g.Uu("INNERTUBE_CONTEXT");if(!T)return g.kt(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};T=g.Tm(T);g.Q7("web_no_tracking_params_in_shell_killswitch")||delete T.clickTracking;T.client||(T.client={});var y=T.client;y.clientName==="MWEB"&&y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(y.clientFormFactor=g.Uu("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");y.screenWidthPoints=window.innerWidth;y.screenHeightPoints= window.innerHeight;y.screenPixelDensity=Math.round(window.devicePixelRatio||1);y.screenDensityFloat=window.devicePixelRatio||1;y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var R=R===void 0?!1:R;g.EC();var H="USER_INTERFACE_THEME_LIGHT";g.oi(0,165)?H="USER_INTERFACE_THEME_DARK":g.oi(0,174)?H="USER_INTERFACE_THEME_LIGHT":!g.Q7("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (H="USER_INTERFACE_THEME_DARK");R=R?H:dtR()||H;y.userInterfaceTheme=R;if(!l){if(R=UVd())y.connectionType=R;g.Q7("web_log_effective_connection_type")&&(R=aS3())&&(T.client.effectiveConnectionType=R)}var b;if(g.Q7("web_log_memory_total_kbytes")&&((b=g.u7.navigator)==null?0:b.deviceMemory)){var M;b=(M=g.u7.navigator)==null?void 0:M.deviceMemory;T.client.memoryTotalKbytes=""+b*1E6}g.Q7("web_gcf_hashes_innertube")&&(R=qup())&&(M=R.coldConfigData,b=R.coldHashData,R=R.hotHashData,T.client.configInfo=T.client.configInfo|| {},M&&(T.client.configInfo.coldConfigData=M),b&&(T.client.configInfo.coldHashData=b),R&&(T.client.configInfo.hotHashData=R));M=g.br(g.u7.location.href);!g.Q7("web_populate_internal_geo_killswitch")&&M.internalcountrycode&&(y.internalGeo=M.internalcountrycode);y.clientName==="MWEB"||y.clientName==="WEB"?(y.mainAppWebInfo={graftUrl:g.u7.location.href},g.Q7("kevlar_woffle")&&E$3.instance&&(M=E$3.instance,y.mainAppWebInfo.pwaInstallabilityStatus=!M.T&&M.L?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),y.mainAppWebInfo.webDisplayMode=wQ(),y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):y.clientName==="TVHTML5"&&(!g.Q7("web_lr_app_quality_killswitch")&&(M=g.Uu("LIVING_ROOM_APP_QUALITY"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{appQuality:M})),M=g.Uu("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{certificationScope:M}));if(!g.Q7("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var d=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(S){}d=void 0}d&&(y.timeZone=d)}(d=en())?y.experimentsToken=d:delete y.experimentsToken;d=FL();r_.instance||(r_.instance=new r_);T.request=Object.assign({},T.request,{internalExperimentFlags:d,consistencyTokenJars:g.xB(r_.instance.T)});!g.Q7("web_prequest_context_killswitch")&&(d=g.Uu("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(T.request.externalPrequestContext=d);y=g.EC();d=g.oi(0,58);y=y.get("gsml","");T.user=Object.assign({}, T.user);d&&(T.user.enableSafetyMode=d);y&&(T.user.lockedSafetyMode=!0);g.Q7("warm_op_csn_cleanup")?m&&(l=g.KU())&&(T.clientScreenNonce=l):!l&&(l=g.KU())&&(T.clientScreenNonce=l);a&&(T.clickTracking={clickTrackingParams:a});if(a=g.Yl("yt.mdx.remote.remoteClient_"))T.remoteClient=a;lu.getInstance().setLocationOnInnerTubeContext(T);try{var A=Gv(),P=A.bid;delete A.bid;T.adSignalsInfo={params:[],bid:P};for(var G=g.c(Object.entries(A)),V=G.next();!V.done;V=G.next()){var p=g.c(V.value),L=p.next().value, N=p.next().value;A=L;P=N;a=void 0;(a=T.adSignalsInfo.params)==null||a.push({key:A,value:""+P})}var e,t;if(((e=T.client)==null?void 0:e.clientName)==="TVHTML5"||((t=T.client)==null?void 0:t.clientName)==="TVHTML5_UNPLUGGED"){var v=g.Uu("INNERTUBE_CONTEXT");v.adSignalsInfo&&(T.adSignalsInfo.advertisingId=v.adSignalsInfo.advertisingId,T.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",T.adSignalsInfo.limitAdTracking=v.adSignalsInfo.limitAdTracking)}}catch(S){g.kt(S)}return T}; GxP=function(a,l){if(!a)return!1;var m,T=(m=g.I(a,AJz))==null?void 0:m.signal;if(T&&l.w1)return!!l.w1[T];var y;if((m=(y=g.I(a,PQw))==null?void 0:y.request)&&l.Op)return!!l.Op[m];for(var R in a)if(l.Tw[R])return!0;return!1}; VxH=function(a){var l={"Content-Type":"application/json"};g.Uu("EOM_VISITOR_DATA")?l["X-Goog-EOM-Visitor-Id"]=g.Uu("EOM_VISITOR_DATA"):g.Uu("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.Uu("VISITOR_DATA"));l["X-Youtube-Bootstrap-Logged-In"]=g.Uu("LOGGED_IN",!1);g.Uu("DEBUG_SETTINGS_METADATA")&&(l["X-Debug-Settings-Metadata"]=g.Uu("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.Uu("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(l["X-Youtube-Client-Name"]=a),(a=g.Uu("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(l["X-Youtube-Client-Version"]= a),(a=g.Uu("CHROME_CONNECTED_HEADER"))&&(l["X-Youtube-Chrome-Connected"]=a),(a=g.Uu("DOMAIN_ADMIN_STATE"))&&(l["X-Youtube-Domain-Admin-State"]=a),g.Uu("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(a=g.Uu("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(l["X-YouTube-Lava-Device-Context"]=a));return l}; pj5=function(){this.T={}}; T8=function(){this.mappings=new pj5}; yn=function(a){return function(){return new a}}; W8w=function(a){var l=l===void 0?"UNKNOWN_INTERFACE":l;if(a.length===1)return a[0];var m=ZI5[l];if(m){m=new RegExp(m);for(var T=g.c(a),y=T.next();!y.done;y=T.next())if(y=y.value,m.exec(y))return y}var R=[];Object.entries(ZI5).forEach(function(H){var b=g.c(H);H=b.next().value;b=b.next().value;l!==H&&R.push(b)}); m=new RegExp(R.join("|"));a.sort(function(H,b){return H.length-b.length}); T=g.c(a);for(y=T.next();!y.done;y=T.next())if(y=y.value,!m.exec(y))return y;return a[0]}; g.R0=function(a){return"/youtubei/v1/"+W8w(a)}; HF=function(){}; ql=function(){}; p$=function(){}; Zq=function(a){return g.Yl("ytcsi."+(a||"")+"data_")||cJ5(a)}; L8l=function(){var a=Zq();a.info||(a.info={});return a.info}; WF=function(a){a=Zq(a);a.metadata||(a.metadata={});return a.metadata}; cF=function(a){a=Zq(a);a.tick||(a.tick={});return a.tick}; L$=function(a){a=Zq(a);if(a.gel){var l=a.gel;l.gelInfos||(l.gelInfos={});l.gelTicks||(l.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; Nel=function(a){a=L$(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; Nl=function(a){var l=Zq(a).nonce;l||(l=g.FH(16),Zq(a).nonce=l);return l}; cJ5=function(a){var l={tick:{},info:{}};g.Xt("ytcsi."+(a||"")+"data_",l);return l}; Qn=function(){var a=g.Yl("ytcsi.debug");a||(a=[],g.Xt("ytcsi.debug",a),g.Xt("ytcsi.reference",{}));return a}; t9=function(a){a=a||"";var l=QW3();if(l[a])return l[a];var m=Qn(),T={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};m.push(T);return l[a]=T}; txp=function(a){a=a||"";var l=QW3();l[a]&&delete l[a];var m=Qn(),T={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};m.push(T);l[a]=T}; QW3=function(){var a=g.Yl("ytcsi.reference");if(a)return a;Qn();return g.Yl("ytcsi.reference")}; eG=function(a){return eTt[a]||"LATENCY_ACTION_UNKNOWN"}; FX=function(a,l){VQ.call(this,1,arguments);this.Jb=l}; h9=function(){this.T=0}; Ox=function(){h9.instance||(h9.instance=new h9);return h9.instance}; z8=function(a,l){K$[l]=K$[l]||{count:0};var m=K$[l];m.count++;m.time=(0,g.E)();a.T||(a.T=g.m$(0,function(){var T=(0,g.E)(),y;for(y in K$)K$[y]&&T-K$[y].time>6E4&&delete K$[y];a&&(a.T=0)},5E3)); return m.count>5?(m.count===6&&Math.random()*1E5<1&&(m=new g.YH("CSI data exceeded logging limit with key",l.split("_")),l.indexOf("plev")>=0||g.nU(m)),!0):!1}; F87=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; hTb=function(){var a;if(g.Q7("csi_use_performance_navigation_timing")||g.Q7("csi_use_performance_navigation_timing_tvhtml5")){var l,m,T,y=vF==null?void 0:(a=vF.getEntriesByType)==null?void 0:(l=a.call(vF,"navigation"))==null?void 0:(m=l[0])==null?void 0:(T=m.toJSON)==null?void 0:T.call(m);y?(y.requestStart=$b(y.requestStart),y.responseEnd=$b(y.responseEnd),y.redirectStart=$b(y.redirectStart),y.redirectEnd=$b(y.redirectEnd),y.domainLookupEnd=$b(y.domainLookupEnd),y.connectStart=$b(y.connectStart), y.connectEnd=$b(y.connectEnd),y.responseStart=$b(y.responseStart),y.secureConnectionStart=$b(y.secureConnectionStart),y.domainLookupStart=$b(y.domainLookupStart),y.isPerformanceNavigationTiming=!0,a=y):a=vF.timing}else a=g.Q7("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(vF.timing)):vF.timing;return a}; $b=function(a){return Math.round(sx()+a)}; sx=function(){return(g.Q7("csi_use_time_origin")||g.Q7("csi_use_time_origin_tvhtml5"))&&vF.timeOrigin?Math.floor(vF.timeOrigin):vF.timing.navigationStart}; f$=function(a,l){SG("_start",a,l)}; J9=function(a,l){if(!g.Q7("web_csi_action_sampling_enabled")||!Zq(l).actionDisabled){var m=t9(l||"");GG(m.info,a);a.loadType&&(m=a.loadType,WF(l).loadType=m);GG(Nel(l),a);m=Nl(l);l=Zq(l).cttAuthInfo;Ox().info(a,m,l)}}; OIp=function(){var a,l,m,T;return((T=kO().resolve(sU(de))==null?void 0:(a=jx())==null?void 0:(l=a.loggingHotConfig)==null?void 0:(m=l.csiConfig)==null?void 0:m.debugTicks)!=null?T:[]).map(function(y){return Object.values(y)[0]})}; SG=function(a,l,m){if(!g.Q7("web_csi_action_sampling_enabled")||!Zq(m).actionDisabled){var T=Nl(m),y;if(y=g.Q7("web_csi_debug_sample_enabled")&&T){(kO().resolve(sU(de))==null?0:jx())&&!K8Q&&(K8Q=!0,SG("gcfl",(0,g.E)(),m));var R,H,b;y=(kO().resolve(sU(de))==null?void 0:(R=jx())==null?void 0:(H=R.loggingHotConfig)==null?void 0:(b=H.csiConfig)==null?void 0:b.debugSampleWeight)||0;if(R=y!==0)b:{R=OIp();if(R.length>0)for(H=0;Hm.duration?T:m},{duration:0}))&&l.startTime>0&&l.responseEnd>0&&(SG("wffs",$b(l.startTime)),SG("wffe",$b(l.responseEnd)))}; JJR=function(a,l,m){vF&&vF.measure&&(a.startsWith("measure_")||(a="measure_"+a),m?vF.measure(a,l,m):l?vF.measure(a,l):vF.measure(a))}; Beb=function(a){var l=BF("aft",a);if(l)return l;l=g.Uu((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var m=l.length,T=0;T0&&J9(l);l={isNavigation:!0,actionType:eG(g.Uu("TIMING_ACTION"))};var m=g.Uu("PREVIOUS_ACTION");m&&(l.previousAction=eG(m));if(m=g.Uu("CLIENT_PROTOCOL"))l.httpProtocol=m;if(m=g.Uu("CLIENT_TRANSPORT"))l.transportProtocol=m;(m=g.KU())&&m!=="UNDEFINED_CSN"&&(l.clientScreenNonce=m);m=$t3();if(m===1||m===-1)l.isVisible= !0;m=WF().loadType==="cold";var T=L8l();m||(m=T.yt_lt==="cold");if(m){l.loadType="cold";m=L8l();T=hTb();var y=sx(),R=g.Uu("CSI_START_TIMESTAMP_MILLIS",0);R>0&&!g.Q7("embeds_web_enable_csi_start_override_killswitch")&&(y=R);y&&(SG("srt",T.responseStart),m.prerender!==1&&f$(y));m=wj3();m>0&&SG("fpt",m);m=hTb();m.isPerformanceNavigationTiming&&J9({performanceNavigationTiming:!0},void 0);SG("nreqs",m.requestStart,void 0);SG("nress",m.responseStart,void 0);SG("nrese",m.responseEnd,void 0);m.redirectEnd- m.redirectStart>0&&(SG("nrs",m.redirectStart,void 0),SG("nre",m.redirectEnd,void 0));m.domainLookupEnd-m.domainLookupStart>0&&(SG("ndnss",m.domainLookupStart,void 0),SG("ndnse",m.domainLookupEnd,void 0));m.connectEnd-m.connectStart>0&&(SG("ntcps",m.connectStart,void 0),SG("ntcpe",m.connectEnd,void 0));m.secureConnectionStart>=sx()&&m.connectEnd-m.secureConnectionStart>0&&(SG("nstcps",m.secureConnectionStart,void 0),SG("ntcpe",m.connectEnd,void 0));vF&&"getEntriesByType"in vF&&f1b();m=[];if(document.querySelector&& vF&&vF.getEntriesByName)for(var H in wY)wY.hasOwnProperty(H)&&(T=wY[H],ScP(H,T)&&m.push(T));if(m.length>0)for(l.resourceInfo=[],H=g.c(m),m=H.next();!m.done;m=H.next())l.resourceInfo.push({resourceCache:m.value})}J9(l);l=L$();l.preLoggedGelInfos||(l.preLoggedGelInfos=[]);H=l.preLoggedGelInfos;l=Nel();m=void 0;for(T=0;T-1&&(delete Nd["@type"],D=Nd);L&&a.L.has(L)&&a.L.delete(L);((EQ=l.config)==null?0:EQ.K1t)&&C$(l.config.K1t);if(D||(ec=a.Z)==null||!ec.f5T(l.input,l.C6)){KP.iT(15);break}return g.z(KP,a.Z.G8O(l.input,l.C6),16);case 16:D=KP.T;case 15:return Hpz(a,D,l),((MF=l.config)==null?0:MF.aaT)&&C$(l.config.aaT),T(),KP.return(D|| void 0)}})}; lEH=function(a,l){a:{a=a.Q_;var m,T=(m=g.I(l,AJz))==null?void 0:m.signal;if(T&&a.w1&&(m=a.w1[T])){var y=m();break a}var R;if((m=(R=g.I(l,PQw))==null?void 0:R.request)&&a.Op&&(R=a.Op[m])){y=R();break a}for(y in l)if(a.Tw[y]&&(l=a.Tw[y])){y=l();break a}y=void 0}if(y!==void 0)return Promise.resolve(y)}; T6R=function(a,l,m){var T,y,R,H,b,M,d;return g.J(function(A){if(A.L==1){R=((T=l)==null?void 0:(y=T.Wh)==null?void 0:y.identity)||Gx;M=(H=l)==null?void 0:(b=H.Wh)==null?void 0:b.sessionIndex;var P=g.SF(a.T.gw(R,{sessionIndex:M}));return g.z(A,P,2)}d=A.T;return A.return(Promise.resolve(Object.assign({},VxH(m),d)))})}; mQb=function(a,l,m){var T,y=(l==null?void 0:(T=l.Wh)==null?void 0:T.identity)||Gx,R;l=l==null?void 0:(R=l.Wh)==null?void 0:R.sessionIndex;a=a.T.gw(y,{sessionIndex:l});return Object.assign({},VxH(m),a)}; rY=function(){}; a7=function(){}; lq=function(a){this.C=a}; mf=function(){}; TN=function(){}; yx=function(){}; R7=function(){}; g.HX=function(a,l){var m=g.Jz.apply(2,arguments);a=a===void 0?0:a;g.YH.call(this,l,m);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)}; qD=function(a,l,m,T){this.T=a;this.L=l;this.Z=m;this.j=T}; bp3=function(a,l,m){if(a.T){var T=O0(BI(l,"key"))||"/UNKNOWN_PATH";a.T.start(T)}T=m;g.Q7("wug_networking_gzip_request")&&(T=JWd(m));var y;return new ((y=a.j)!=null?y:window.Request)(l,T)}; g.gs=function(a,l){if(!bq){var m=kO();SL(m,{Qm:gOd,Ov:qD});var T={Tw:{feedbackEndpoint:yn(mf),modifyChannelNotificationPreferenceEndpoint:yn(TN),playlistEditEndpoint:yn(yx),shareEntityEndpoint:yn(lq),subscribeEndpoint:yn(rY),unsubscribeEndpoint:yn(a7),webPlayerShareEntityServiceEndpoint:yn(R7)}},y=lu.getInstance(),R={};y&&(R.client_location=y);a===void 0&&(a=o$7());l===void 0&&(l=m.resolve(gOd));aEQ(T,l,a,R);SL(m,{Qm:MLH,iQ:XX.instance});bq=m.resolve(MLH)}return bq}; ipw=function(a){var l=new G6;if(a.interpreterJavascript){var m=FXl(a.interpreterJavascript);m=bd(m).toString();var T=new AQ;lP(T,6,m);of(l,AQ,1,T,NL)}else a.interpreterUrl&&(m=Fn(a.interpreterUrl),m=Cc(m).toString(),T=new Pv,lP(T,4,m),of(l,Pv,2,T,NL));a.interpreterHash&&ma(l,3,a.interpreterHash,NL);a.program&&ma(l,4,a.program,NL);a.globalName&&ma(l,5,a.globalName,NL);a.clientExperimentsStateBlob&&ma(l,7,a.clientExperimentsStateBlob,NL);return l}; MD=function(a){var l={};a=a.split("&");a=g.c(a);for(var m=a.next();!m.done;m=a.next())m=m.value.split("="),m.length===2&&(l[m[0]]=m[1]);return l}; v1b=function(){if(g.Q7("bg_st_hr"))return"havuokmhhs-0";var a,l=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(l)}; iq=function(a){this.T=a}; dQ5=function(){return new Promise(function(a){var l=window.top;l.ntpevasrs!==void 0?a(new iq(l.ntpevasrs)):(l.ntpqfbel===void 0&&(l.ntpqfbel=[]),l.ntpqfbel.push(function(m){a(new iq(m))}))})}; AmP=function(){if(!g.Q7("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Q7("disable_biscotti_fetch_entirely_for_all_web_clients")&&HW()){var a=g.Uu("PLAYER_VARS",{});if(g.aV(a,"privembed",!1)!="1"&&!pfd(a)){var l=function(){ds=!0;"google_ad_status"in window?Yv("DCLKSTAT",1):Yv("DCLKSTAT",2)}; try{g.d6("//static.doubleclick.net/instream/ad_status.js",l)}catch(m){}joz.push(g.Ed.Q8(function(){if(!(ds||"google_ad_status"in window)){try{if(l){var m=""+g.y5(l),T=p$7[m];T&&g.MQ(T)}}catch(y){}ds=!0;Yv("DCLKSTAT",3)}},5E3))}}}; j2=function(){var a=Number(g.Uu("DCLKSTAT",0));return isNaN(a)?0:a}; Vx=function(a,l,m){var T=this;this.network=a;this.options=l;this.L=m;this.T=null;if(l.C3b){var y=new g.pr;this.T=y.promise;g.u7.ytAtRC&&l4(function(){var R,H;return g.J(function(b){if(b.L==1){if(!g.u7.ytAtRC)return b.return();R=AL(null);return g.z(b,PX(T,R),2)}H=b.T;g.u7.ytAtRC&&g.u7.ytAtRC(JSON.stringify(H));g.c5(b)})},2); dQ5().then(function(R){var H,b,M,d;return g.J(function(A){if(A.L==1)return R.bindInnertubeChallengeFetcher(function(P){return PX(T,AL(P))}),g.z(A,MS(),2); H=A.T;b=R.getLatestChallengeResponse();M=b.challenge;if(!M)throw Error("BGE_MACIL");d={challenge:M,Ll:MD(M),HY:H,bgChallenge:new G6};y.resolve(d);R.registerChallengeFetchedCallback(function(P){P=P.challenge;if(!P)throw Error("BGE_MACR");P={challenge:P,Ll:MD(P),HY:H,bgChallenge:new G6};T.T=Promise.resolve(P)}); g.c5(A)})})}else l.preload&&P$d(this,new Promise(function(R){g.m$(0,function(){R(GN(T))},0)}))}; AL=function(a){var l={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(l.interpreterHash=a);return l}; GN=function(a,l){l=l===void 0?0:l;var m,T,y,R,H,b,M,d,A,P,G,V;return g.J(function(p){switch(p.L){case 1:m=AL(cv().T);if(g.Q7("att_fet_ks"))return g.LP(p,7),g.z(p,PX(a,m),9);g.LP(p,4);return g.z(p,GG7(a,m),6);case 6:H=p.T;y=H.b5x;R=H.SGK;T=H;g.e7(p,3);break;case 4:return g.OQ(p),g.nU(Error("Failed to fetch attestation challenge after "+(l+" attempts; not retrying for 24h."))),p8(a,864E5),p.return({challenge:"",Ll:{},HY:void 0,bgChallenge:void 0});case 9:T=p.T;if(!T)throw Error("Fetching Attestation challenge returned falsy"); if(!T.challenge)throw Error("Missing Attestation challenge");y=T.challenge;R=MD(y);if("c1a"in R&&(!T.bgChallenge||!T.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.e7(p,3);break;case 7:b=g.OQ(p);g.nU(b);l++;if(l>=5)return g.nU(Error("Failed to fetch attestation challenge after "+(l+" attempts; not retrying for 24h."))),p8(a,864E5),p.return({challenge:"",Ll:{},HY:void 0,bgChallenge:void 0});M=1E3*Math.pow(2,l-1)+Math.random()*1E3;return p.return(new Promise(function(L){g.m$(0, function(){L(GN(a,l))},M)})); case 3:d=Number(R.t)||7200;p8(a,d*1E3);A=void 0;if(!("c1a"in R&&T.bgChallenge)){p.iT(10);break}P=ipw(T.bgChallenge);g.LP(p,11);return g.z(p,vpp(cv(),P),13);case 13:g.e7(p,12);break;case 11:return G=g.OQ(p),g.nU(G),p.return({challenge:y,Ll:R,HY:A,bgChallenge:P});case 12:return g.LP(p,14),A=new Zy({challenge:P,OU:{zS:"aGIf"}}),g.z(p,A.WQ,16);case 16:g.e7(p,10);break;case 14:V=g.OQ(p),g.nU(V),A=void 0;case 10:return p.return({challenge:y,Ll:R,HY:A,bgChallenge:P})}})}; PX=function(a,l){var m;return g.J(function(T){m=a.L;if(!m||m.Dq())return T.return(PX(a.network,l));uu("att_pna",void 0,"attestation_challenge_fetch");return T.return(new Promise(function(y){m.Ix("publicytnetworkstatus-online",function(){PX(a.network,l).then(y)})}))})}; VL3=function(a){if(!a)throw Error("Fetching Attestation challenge returned falsy");if(!a.challenge)throw Error("Missing Attestation challenge");var l=a.challenge,m=MD(l);if("c1a"in m&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},a,{b5x:l,SGK:m})}; GG7=function(a,l){var m,T,y,R,H;return g.J(function(b){switch(b.L){case 1:m=void 0,T=0,y={};case 2:if(!(T<5)){b.iT(4);break}if(!(T>0)){b.iT(5);break}y.va=1E3*Math.pow(2,T-1)+Math.random()*1E3;return g.z(b,new Promise(function(M){return function(d){g.m$(0,function(){d(void 0)},M.va)}}(y)),5); case 5:return g.LP(b,7),g.z(b,PX(a,l),9);case 9:return R=b.T,b.return(VL3(R));case 7:m=H=g.OQ(b),H instanceof Error&&g.nU(H);case 8:T++;y={va:void 0};b.iT(2);break;case 4:throw m;}})}; P$d=function(a,l){a.T=l}; pgd=function(a){var l,m,T;return g.J(function(y){if(y.L==1)return g.z(y,Promise.race([a.T,null]),2);l=y.T;var R=GN(a);a.T=R;(m=l)==null||(T=m.HY)==null||T.dispose();g.c5(y)})}; p8=function(a,l){function m(){var y;return g.J(function(R){y=T-Date.now();return y<1E3?g.z(R,pgd(a),0):(l4(m,0,Math.min(y,6E4)),R.iT(0))})} var T=Date.now()+l;m()}; ZpP=function(a,l){return new Promise(function(m){g.m$(0,function(){m(l())},a)})}; g.WPd=function(a,l){var m;return g.J(function(T){var y=g.Yl("yt.aba.att");return(m=y?y:Vx.instance!==void 0?Vx.instance.Z.bind(Vx.instance):null)?T.return(m("ENGAGEMENT_TYPE_PLAYBACK",a,l)):T.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.cmH=function(){var a;return(a=(a=g.Yl("yt.aba.att2"))?a:Vx.instance!==void 0?Vx.instance.j.bind(Vx.instance):null)?a():Promise.resolve(!1)}; N6Q=function(a,l){var m=g.Yl("ytDebugData.callbacks");m||(m={},g.Xt("ytDebugData.callbacks",m));if(g.Q7("web_dd_iu")||LP5.includes(a))m[a]=l}; ZI=function(){var a=Qo3;var l=l===void 0?[]:l;var m=m===void 0?[]:m;l=cQt.apply(null,[LXw.apply(null,g.F(l))].concat(g.F(m)));this.store=QIb(a,void 0,l)}; g.WX=function(a,l,m){for(var T=Object.assign({},a),y=g.c(Object.keys(l)),R=y.next();!R.done;R=y.next()){R=R.value;var H=a[R],b=l[R];if(b===void 0)delete T[R];else if(H===void 0)T[R]=b;else if(Array.isArray(b)&&Array.isArray(H))T[R]=m?[].concat(g.F(H),g.F(b)):b;else if(!Array.isArray(b)&&g.ms(b)&&!Array.isArray(H)&&g.ms(H))T[R]=g.WX(H,b,m);else if(typeof b===typeof H)T[R]=b;else return l=new g.YH("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:R,otx:H,updateValue:b}),g.kt(l), a}return T}; cX=function(a){var l=this;a=a===void 0?[]:a;this.TA=[];this.N9=this.q9=0;this.tv=void 0;this.totalLength=0;a.forEach(function(m){l.append(m)})}; tL7=function(a,l){return a.TA.length===0?!1:(a=a.TA[a.TA.length-1])&&a.buffer===l.buffer&&a.byteOffset+a.length===l.byteOffset}; L8=function(a,l){l=g.c(l.TA);for(var m=l.next();!m.done;m=l.next())a.append(m.value)}; ND=function(a,l,m){return a.split(l).Xm.split(m).N$}; Qx=function(a){a.tv=void 0;a.q9=0;a.N9=0}; tL=function(a,l,m){a.isFocused(l);return l-a.N9+m<=a.TA[a.q9].length}; eDH=function(a){if(!a.tv){var l=a.TA[a.q9];a.tv=new DataView(l.buffer,l.byteOffset,l.length)}return a.tv}; e2=function(a,l,m){a=a.e$(l===void 0?0:l,m===void 0?-1:m);l=new Uint8Array(a.length);try{l.set(a)}catch(T){for(m=0;m>10;R=56320|R&1023}O5[y++]=R}}R=String.fromCharCode.apply(String,O5); y<1024&&(R=R.substring(0,y));m.push(R)}return m.join("")}; vX=function(a,l){var m;if((m=zN)==null?0:m.encodeInto)return l=zN.encodeInto(a,l),l.read>6|192:((y&64512)===55296&&T+1>18|240,l[m++]=y>>12&63|128):l[m++]=y>>12|224,l[m++]=y>>6&63|128),l[m++]=y&63|128)}return m}; $n=function(a){if(zN)return zN.encode(a);var l=new Uint8Array(Math.ceil(a.length*1.2)),m=vX(a,l);l.lengthm&&(l=l.subarray(0,m));return l}; s5=function(a){this.T=a;this.pos=0;this.L=-1}; S2=function(a){var l=a.T.getUint8(a.pos);++a.pos;if(l<128)return l;for(var m=l&127,T=1;l>=128;)l=a.T.getUint8(a.pos),++a.pos,T*=128,m+=(l&127)*T;return m}; f8=function(a,l){var m=a.L;for(a.L=-1;a.T.iO(a.pos,1);){m<0&&(m=S2(a));var T=m>>3,y=m&7;if(T===l)return!0;if(T>l){a.L=m;break}m=-1;switch(y){case 0:S2(a);break;case 1:a.pos+=8;break;case 2:T=S2(a);a.pos+=T;break;case 5:a.pos+=4}}return!1}; JL=function(a,l){if(f8(a,l))return S2(a)}; BX=function(a,l){if(f8(a,l))return!!S2(a)}; kn=function(a,l){if(f8(a,l)){l=S2(a);var m=a.T.e$(a.pos,l);a.pos+=l;return m}}; n8=function(a,l){if(a=kn(a,l))return g.K8(a)}; ws=function(a,l,m){if(a=kn(a,l))return m(new s5(new cX([a])))}; I7=function(a,l){for(var m=[];f8(a,l);)m.push(S2(a));return m.length?m:void 0}; C8=function(a,l,m){for(var T=[],y;y=kn(a,l);)T.push(m(new s5(new cX([y]))));return T.length?T:void 0}; E5=function(a,l){a=a instanceof Uint8Array?new cX([a]):a;return l(new s5(a))}; Opd=function(a,l,m){if(l&&m&&m.buffer===l.exports.memory.buffer){var T=l.realloc(m.byteOffset,a);if(T)return new Uint8Array(l.exports.memory.buffer,T,a)}a=l?new Uint8Array(l.exports.memory.buffer,l.malloc(a),a):new Uint8Array(a);m&&a.set(m);return a}; KPQ=function(a,l){this.lm=l;this.pos=0;this.L=[];this.T=Opd(a===void 0?4096:a,l);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; o7=function(a,l){l=a.pos+l;if(!(a.T.length>=l)){for(var m=a.T.length*2;m268435455){o7(a,4);for(var m=l&1073741823,T=0;T<4;T++)a.view.setUint8(a.pos,m&127|128),m>>=7,a.pos+=1;l=Math.floor(l/268435456)}for(o7(a,4);l>127;)a.view.setUint8(a.pos,l&127|128),l>>=7,a.pos+=1;a.view.setUint8(a.pos,l);a.pos+=1}; DI=function(a,l,m){m!==void 0&&(xn(a,l*8),xn(a,m))}; uq=function(a,l,m){m!==void 0&&DI(a,l,m?1:0)}; XA=function(a,l,m){m!==void 0&&(xn(a,l*8+2),l=m.length,xn(a,l),o7(a,l),a.T.set(m,a.pos),a.pos+=l)}; Yn=function(a,l,m){m!==void 0&&(zD5(a,l,Math.ceil(Math.log2(m.length*4+2)/7)),o7(a,m.length*1.2),l=vX(m,a.T.subarray(a.pos)),a.pos+l>a.T.length&&(o7(a,l),l=vX(m,a.T.subarray(a.pos))),a.pos+=l,vOl(a))}; zD5=function(a,l,m){m=m===void 0?2:m;xn(a,l*8+2);a.L.push(a.pos);a.L.push(m);a.pos+=m}; vOl=function(a){for(var l=a.L.pop(),m=a.L.pop(),T=a.pos-m-l;l--;){var y=l?128:0;a.view.setUint8(m++,T&127|y);T>>=7}}; U5=function(a,l,m,T,y){m&&(zD5(a,l,y===void 0?3:y),T(a,m),vOl(a))}; g.rs=function(a,l,m){m=new KPQ(4096,m);l(m,a);return new Uint8Array(m.T.buffer,m.T.byteOffset,m.pos)}; g.aN=function(a){var l=new s5(new cX([Rl(decodeURIComponent(a))]));a=n8(l,2);l=JL(l,4);var m=$Q7[l];if(typeof m==="undefined")throw a=new g.YH("Failed to recognize field number",{name:"EntityKeyHelperError",EeM:l}),g.kt(a),a;return{Ui:l,entityType:m,entityId:a}}; g.lZ=function(a,l){var m=m===void 0?0:m;var T=new KPQ;XA(T,2,$n(a));a=soH[l];if(typeof a==="undefined")throw m=new g.YH("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:l}),g.kt(m),m;DI(T,4,a);DI(T,5,1);l=new Uint8Array(T.T.buffer,T.T.byteOffset,T.pos);return encodeURIComponent(g.Tf(l,m))}; mJ=function(a,l,m,T){if(T===void 0)return T=Object.assign({},a[l]||{}),m=(delete T[m],T),T={},Object.assign({},a,(T[l]=m,T));var y={},R={};return Object.assign({},a,(R[l]=Object.assign({},a[l],(y[m]=T,y)),R))}; SUd=function(a,l,m,T,y){var R=a[l];if(R==null||!R[m])return a;T=g.WX(R[m],T,y==="REPEATED_FIELDS_MERGE_OPTION_APPEND");y={};R={};return Object.assign({},a,(R[l]=Object.assign({},a[l],(y[m]=T,y)),R))}; fEb=function(a,l){a=a===void 0?{}:a;switch(l.type){case "ENTITY_LOADED":return l.payload.reduce(function(T,y){var R,H=(R=y.options)==null?void 0:R.persistenceOption;if(H&&H!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&H!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return T;if(!y.entityKey)return g.kt(Error("Missing entity key")),T;if(y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!y.payload)return y=new g.YH("REPLACE entity mutation is missing a payload",{entityKey:y.entityKey}),g.kt(y),T;var b=g.os(y.payload); return mJ(T,b,y.entityKey,y.payload[b])}if(y.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{y=y.entityKey;try{var M=g.aN(y).entityType;b=mJ(T,M,y);break a}catch(P){if(P instanceof Error){y=new g.YH("Failed to deserialize entity key",{entityKey:y,originalMessage:P.message});g.kt(y);b=T;break a}throw P;}b=void 0}return b}if(y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!y.payload)return y=new g.YH("UPDATE entity mutation is missing a payload",{entityKey:y.entityKey}),g.kt(y),T;b=g.os(y.payload);var d,A;return SUd(T, b,y.entityKey,y.payload[b],(d=y.fieldMask)==null?void 0:(A=d.mergeOptions)==null?void 0:A.repeatedFieldsMergeOption)}return T},a); case "REPLACE_ENTITY":var m=l.payload;return mJ(a,m.entityType,m.key,m.ZD);case "REPLACE_ENTITIES":return Object.keys(l.payload).reduce(function(T,y){var R=l.payload[y];return Object.keys(R).reduce(function(H,b){return mJ(H,y,b,R[b])},T)},a); case "UPDATE_ENTITY":return m=l.payload,SUd(a,m.entityType,m.key,m.ZD,m.llb);default:return a}}; T7=function(a,l,m){return a[l]?a[l][m]||null:null}; yl=function(a){return window.Int32Array?new Int32Array(a):Array(a)}; W8=function(a){g.k.call(this);this.counter=[0,0,0,0];this.L=new Uint8Array(16);this.T=16;if(!Jm7){var l,m=new Uint8Array(256),T=new Uint8Array(256);var y=1;for(l=0;l<256;l++)m[y]=l,T[l]=y,y^=y<<1^(y>>7&&283);RN=new Uint8Array(256);G7=yl(256);Vl=yl(256);pn=yl(256);ZM=yl(256);for(var R=0;R<256;R++){y=R?T[255^m[R]]:0;y^=y<<1^y<<2^y<<3^y<<4;y=y&255^y>>>8^99;RN[R]=y;l=y<<1^(y>>7&&283);var H=l^y;G7[R]=l<<24|y<<16|y<<8|H;Vl[R]=H<<24|G7[R]>>>8;pn[R]=y<<24|Vl[R]>>>8;ZM[R]=y<<24|pn[R]>>>8}Jm7=!0}y=yl(44);for(m= 0;m<4;m++)y[m]=a[4*m]<<24|a[4*m+1]<<16|a[4*m+2]<<8|a[4*m+3];for(T=1;m<44;m++)a=y[m-1],m%4||(a=(RN[a>>16&255]^T)<<24|RN[a>>8&255]<<16|RN[a&255]<<8|RN[a>>>24],T=T<<1^(T>>7&&283)),y[m]=y[m-4]^a;this.key=y}; c8=function(a,l){for(var m=0;m<4;m++)a.counter[m]=l[m*4]<<24|l[m*4+1]<<16|l[m*4+2]<<8|l[m*4+3];a.T=16}; B6t=function(a){for(var l=a.key,m=a.counter[0]^l[0],T=a.counter[1]^l[1],y=a.counter[2]^l[2],R=a.counter[3]^l[3],H=3;H>=0&&!(a.counter[H]=-~a.counter[H]);H--);for(var b,M,d=4;d<40;)H=G7[m>>>24]^Vl[T>>16&255]^pn[y>>8&255]^ZM[R&255]^l[d++],b=G7[T>>>24]^Vl[y>>16&255]^pn[R>>8&255]^ZM[m&255]^l[d++],M=G7[y>>>24]^Vl[R>>16&255]^pn[m>>8&255]^ZM[T&255]^l[d++],R=G7[R>>>24]^Vl[m>>16&255]^pn[T>>8&255]^ZM[y&255]^l[d++],m=H,T=b,y=M;a=a.L;H=l[40];a[0]=RN[m>>>24]^H>>>24;a[1]=RN[T>>16&255]^H>>16&255;a[2]=RN[y>>8&255]^ H>>8&255;a[3]=RN[R&255]^H&255;H=l[41];a[4]=RN[T>>>24]^H>>>24;a[5]=RN[y>>16&255]^H>>16&255;a[6]=RN[R>>8&255]^H>>8&255;a[7]=RN[m&255]^H&255;H=l[42];a[8]=RN[y>>>24]^H>>>24;a[9]=RN[R>>16&255]^H>>16&255;a[10]=RN[m>>8&255]^H>>8&255;a[11]=RN[T&255]^H&255;H=l[43];a[12]=RN[R>>>24]^H>>>24;a[13]=RN[m>>16&255]^H>>16&255;a[14]=RN[T>>8&255]^H>>8&255;a[15]=RN[y&255]^H&255}; Ql=function(){if(!Ln&&!g.U9){if(NJ)return NJ;var a;NJ=(a=window.crypto)==null?void 0:a.subtle;var l,m,T;if(((l=NJ)==null?0:l.importKey)&&((m=NJ)==null?0:m.sign)&&((T=NJ)==null?0:T.encrypt))return NJ;NJ=void 0}}; g.tE=function(a){this.L=a}; kGt=function(a,l,m,T){var y,R;return g.J(function(H){switch(H.L){case 1:if(a.Z){H.iT(2);break}return g.z(H,T.importKey("raw",a.L,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:a.Z=H.T;case 2:return y={name:"AES-CTR",counter:m,length:128},g.z(H,T.encrypt(y,a.Z,l),4);case 4:return R=H.T,H.return(new Uint8Array(R))}})}; nO3=function(a,l,m){a.T||(a.T=new W8(a.L));c8(a.T,m);return a.T.encrypt(l)}; g.em=function(a){this.L=a}; FC=function(a){this.K=new Uint8Array(64);this.Z=new Uint8Array(64);this.j=0;this.C=new Uint8Array(64);this.L=0;this.K.set(a);this.Z.set(a);for(a=0;a<64;a++)this.K[a]^=92,this.Z[a]^=54;this.reset()}; wg3=function(a,l,m){for(var T=a.B,y=a.T[0],R=a.T[1],H=a.T[2],b=a.T[3],M=a.T[4],d=a.T[5],A=a.T[6],P=a.T[7],G,V,p,L=0;L<64;)L<16?(T[L]=p=l[m]<<24|l[m+1]<<16|l[m+2]<<8|l[m+3],m+=4):(G=T[L-2],V=T[L-15],p=T[L-7]+T[L-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),T[L]=p),G=P+hE[L]+p+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&d^~M&A),V=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&R^y&H^R&H),P=G+V,b+=G,L++,L<16?(T[L]=p=l[m]<<24|l[m+1]<<16|l[m+2]<<8|l[m+3],m+=4):(G= T[L-2],V=T[L-15],p=T[L-7]+T[L-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),T[L]=p),G=A+hE[L]+p+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&M^~b&d),V=((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+(P&y^P&R^y&R),A=G+V,H+=G,L++,L<16?(T[L]=p=l[m]<<24|l[m+1]<<16|l[m+2]<<8|l[m+3],m+=4):(G=T[L-2],V=T[L-15],p=T[L-7]+T[L-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),T[L]=p),G=d+hE[L]+p+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&b^ ~H&M),V=((A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10))+(A&P^A&y^P&y),d=G+V,R+=G,L++,L<16?(T[L]=p=l[m]<<24|l[m+1]<<16|l[m+2]<<8|l[m+3],m+=4):(G=T[L-2],V=T[L-15],p=T[L-7]+T[L-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),T[L]=p),G=M+hE[L]+p+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&H^~R&b),V=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&A^d&P^A&P),p=P,P=b,b=p,p=A,A=H,H=p,p=d,d=R,R=p,M=y+G,y=G+V,L++;a.T[0]=y+a.T[0]|0;a.T[1]=R+a.T[1]|0;a.T[2]=H+a.T[2]|0;a.T[3]= b+a.T[3]|0;a.T[4]=M+a.T[4]|0;a.T[5]=d+a.T[5]|0;a.T[6]=A+a.T[6]|0;a.T[7]=P+a.T[7]|0}; C$Q=function(a){var l=new Uint8Array(32),m=64-a.L;a.L>55&&(m+=64);var T=new Uint8Array(m);T[0]=128;for(var y=a.j*8,R=1;R<9;R++){var H=y%256;T[m-R]=H;y=(y-H)/256}a.update(T);for(m=0;m<8;m++)l[m*4]=a.T[m]>>>24,l[m*4+1]=a.T[m]>>>16&255,l[m*4+2]=a.T[m]>>>8&255,l[m*4+3]=a.T[m]&255;IE3(a);return l}; IE3=function(a){a.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=[];a.B.length=64;a.j=0;a.L=0}; EOt=function(a){this.T=a}; oO7=function(a,l,m){a=new FC(a.T);a.update(l);a.update(m);l=C$Q(a);a.update(a.K);a.update(l);l=C$Q(a);a.reset();return l}; xQQ=function(a){this.L=a}; DQ3=function(a,l,m,T){var y,R,H;return g.J(function(b){switch(b.L){case 1:if(a.T){b.iT(2);break}return g.z(b,T.importKey("raw",a.L,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.T=b.T;case 2:return y=new Uint8Array(l.length+m.length),y.set(l),y.set(m,l.length),R={name:"HMAC",hash:"SHA-256"},g.z(b,T.sign(R,a.T,y),4);case 4:return H=b.T,b.return(new Uint8Array(H))}})}; uH3=function(a,l,m){a.Z||(a.Z=new EOt(a.L));return oO7(a.Z,l,m)}; Xgt=function(a,l,m){var T,y;return g.J(function(R){if(R.L==1){T=Ql();if(!T)return R.return(uH3(a,l,m));g.LP(R,3);return g.z(R,DQ3(a,l,m,T),5)}if(R.L!=3)return R.return(R.T);y=g.OQ(R);g.nU(y);Ln=!0;return R.return(uH3(a,l,m))})}; UQd=function(a){for(var l="",m=0;m=1?a[a.length-1]:null;for(var T=g.c(a),y=T.next();!y.done;y=T.next())if(y=y.value,y.width&&y.height&&(m&&y.width>=l||!m&&y.height>=l))return y;for(l=a.length-1;l>=0;l--)if(m&&a[l].width||!m&&a[l].height)return a[l];return a[0]}; Kn=function(){this.state=1;this.HY=null;this.Fa=void 0}; MEQ=function(a,l,m,T,y,R){var H=H===void 0?"trayride":H;m?(a.Rf(2),g.d6(m,function(){if(window[H])gtp(a,T,H,y);else{a.Rf(3);var b=Vnd(m),M=document.getElementById(b);M&&(Prz(b),M.parentNode.removeChild(M));g.nU(new g.YH("BL:ULB",""+m))}},R)):l?(R=g.lK("SCRIPT"),l instanceof RM?(R.textContent=bd(l),gj(R)):R.textContent=l,R.nonce=yP(document),document.head.appendChild(R),document.head.removeChild(R),window[H]?gtp(a,T,H,y):(a.Rf(4),g.nU(new g.YH("BL:ULBJ")))):g.nU(new g.YH("BL:ULV"))}; gtp=function(a,l,m,T){a.Rf(5);var y=!!a.Fa&&iUP.includes(g.Fl(a.Fa)||"");try{var R=new Zy({program:l,globalName:m,OU:{disable:!g.Q7("att_web_record_metrics")||!g.Q7("att_skip_metrics_for_cookieless_domains_ks")&&y,zS:"aGIf"}});R.WQ.then(function(){a.Rf(6);T&&T(l)}); a.hF(R)}catch(H){a.Rf(7),H instanceof Error&&g.nU(H)}}; z7=function(){var a=g.Yl("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(l){return l in a})?a:null}; v8=function(){Kn.apply(this,arguments)}; $r=function(){}; dxd=function(a,l,m){for(var T=!1,y=g.c(a.aR.entries()),R=y.next();!R.done;R=y.next())R=g.c(R.value).next().value,R.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R.Rj==="core"&&(T=!0);if(T){a:if(!m){a=g.c(a.aR.entries());for(m=a.next();!m.done;m=a.next())if(T=g.c(m.value),m=T.next().value,T=T.next().value,m.slotType==="SLOT_TYPE_IN_PLAYER"&&m.Rj==="core"){m=T.layoutId;break a}m=void 0}m?l.Pc(m):Vu("No triggering layout ID available when attempting to mute.")}}; sI=function(a,l){this.bu=a;this.lA=l}; Sm=function(){}; fn=function(){}; AHb=function(a){g.k.call(this);var l=this;this.tW=a;this.T=new Map;JE(this,"commandExecutorCommand",function(m,T,y){j9d(l,m.commands,T,y)}); JE(this,"clickTrackingParams",function(){})}; PEP=function(a,l){JE(a,l.wv(),function(m,T,y){l.NL(m,T,y)})}; JE=function(a,l,m){a.FO();a.T.get(l)&&g.kt(Error("Extension name "+l+" already registered"));a.T.set(l,m)}; j9d=function(a,l,m,T){l=l===void 0?[]:l;a.FO();var y=[],R=[];l=g.c(l);for(var H=l.next();!H.done;H=l.next())H=H.value,g.I(H,GX7)||g.I(H,VEl)?y.push(H):R.push(H);y=g.c(y);for(l=y.next();!l.done;l=y.next())B8(a,l.value,m,T);R=g.c(R);for(y=R.next();!y.done;y=R.next())B8(a,y.value,m,T)}; B8=function(a,l,m,T){a.FO();l.loggingUrls&&pyP(a,"loggingUrls",l.loggingUrls,m,T);l=g.c(Object.entries(l));for(var y=l.next();!y.done;y=l.next()){var R=g.c(y.value);y=R.next().value;R=R.next().value;y==="openPopupAction"?a.tW.get().Im("innertubeCommand",{openPopupAction:R}):y==="confirmDialogEndpoint"?a.tW.get().Im("innertubeCommand",{confirmDialogEndpoint:R}):ZUw.hasOwnProperty(y)||pyP(a,y,R,m,T)}}; pyP=function(a,l,m,T,y){if((a=a.T.get(l))&&typeof a==="function")try{a(m,T,y)}catch(R){g.kt(R)}else l=new g.YH("Unhandled field",l),g.nU(l)}; kr=function(a,l,m){this.v$=a;this.T=l;this.x8=m;SL(kO(),{Qm:qs7,Ov:HUz})}; nn=function(a){this.value=a}; wq=function(a){this.value=a}; IN=function(a){this.value=a}; Cn=function(a){this.value=a}; EI=function(a){this.value=a}; oN=function(a){this.value=a}; xr=function(a){this.value=a}; DM=function(){nn.apply(this,arguments)}; uZ=function(a){this.value=a}; XC=function(a){this.value=a}; Yr=function(a){this.value=a}; UI=function(a){this.value=a}; rq=function(a){this.value=a}; ac=function(a){this.value=a}; lg=function(a){this.value=a}; mD=function(a){this.value=a}; Th=function(a){this.value=a}; yh=function(a){this.value=a}; Rc=function(){nn.apply(this,arguments)}; Hl=function(a){this.value=a}; qb=function(a){this.value=a}; bg=function(a){this.value=a}; gz=function(a){this.value=a}; Mb=function(a){this.value=a}; ig=function(a){this.value=a}; dz=function(a){this.value=a}; jr=function(a){this.value=a}; As=function(a){this.value=a}; Pl=function(a){this.value=a}; Gh=function(a){this.value=a}; Vh=function(a){this.value=a}; pi=function(a){this.value=a}; Z0=function(a){this.value=a}; Wl=function(a){this.value=a}; cl=function(a){this.value=a}; Li=function(a){this.value=a}; Nb=function(a){this.value=a}; Qh=function(a){this.value=a}; ts=function(a){this.value=a}; er=function(a){this.value=a}; FN=function(a){this.value=a}; hs=function(a){this.value=a}; OL=function(a){this.value=a}; Ki=function(a){this.value=a}; zh=function(a){this.value=a}; vl=function(a){this.value=a}; $k=function(a){this.value=a}; sL=function(a){this.value=a}; Sr=function(a){this.value=a}; fi=function(a){this.value=a}; Js=function(a){this.value=a}; Bl=function(a){this.value=a}; kk=function(a){this.value=a}; ni=function(a){this.value=a}; wz=function(a){this.value=a}; Ic=function(a){this.value=a}; Ci=function(a){this.value=a}; EL=function(){nn.apply(this,arguments)}; oc=function(a){this.value=a}; xk=function(){nn.apply(this,arguments)}; D0=function(){nn.apply(this,arguments)}; ug=function(){nn.apply(this,arguments)}; XN=function(){nn.apply(this,arguments)}; Yk=function(){nn.apply(this,arguments)}; UL=function(a){this.value=a}; rz=function(a){this.value=a}; ax=function(a){this.value=a}; lS=function(a){this.value=a}; mK=function(a){this.value=a}; yU=function(a,l,m){if(m&&!m.includes(a.layoutType))return!1;l=g.c(l);for(m=l.next();!m.done;m=l.next())if(!T9(a.clientMetadata,m.value))return!1;return!0}; Rx=function(){return""}; WzH=function(a,l){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return l(a),8}}; HU=function(a,l,m,T){T=T===void 0?!1:T;dg.call(this,a);this.jC=m;this.Sn=T;this.args=[];l&&this.args.push(l)}; Y=function(a,l,m,T){T=T===void 0?!1:T;dg.call(this,a);this.jC=m;this.Sn=T;this.args=[];l&&this.args.push(l)}; qZ=function(a){var l=new Map;a.forEach(function(m){l.set(m.T(),m)}); this.T=l}; T9=function(a,l){return a.T.has(l)}; bS=function(a,l){a=a.T.get(l);if(a!==void 0)return a.get()}; gM=function(a){return Array.from(a.T.keys())}; MZ=function(a,l,m){if(m&&m!==a.slotType)return!1;l=g.c(l);for(m=l.next();!m.done;m=l.next())if(!T9(a.clientMetadata,m.value))return!1;return!0}; Lzd=function(a){var l;return((l=cHp.get(a))==null?void 0:l.HM)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; dM=function(a,l){var m={type:l.slotType,controlFlowManagerLayer:NEw.get(l.Rj)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};l.slotEntryTrigger&&(m.entryTriggerType=l.slotEntryTrigger.triggerType);l.slotPhysicalPosition!==1&&(m.slotPhysicalPosition=l.slotPhysicalPosition);if(a){m.debugData={slotId:l.slotId};if(a=l.slotEntryTrigger)m.debugData.slotEntryTriggerData=iS(a);a=l.slotFulfillmentTriggers;m.debugData.fulfillmentTriggerData=[];a=g.c(a);for(var T=a.next();!T.done;T=a.next())m.debugData.fulfillmentTriggerData.push(iS(T.value)); l=l.slotExpirationTriggers;m.debugData.expirationTriggerData=[];l=g.c(l);for(a=l.next();!a.done;a=l.next())m.debugData.expirationTriggerData.push(iS(a.value))}return m}; Q9H=function(a,l){var m={type:l.layoutType,controlFlowManagerLayer:NEw.get(l.Rj)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(m.debugData={layoutId:l.layoutId});return m}; iS=function(a,l){var m={type:a.triggerType};l!=null&&(m.category=l);a.triggeringSlotId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return m}; tE7=function(a,l,m,T){l={opportunityType:l};a&&(T||m)&&(T=g.xX(T||[],function(y){return dM(a,y)}),l.debugData=Object.assign({},m&&m.length>0?{associatedSlotId:m}:{},T.length>0?{slots:T}:{})); return l}; AZ=function(a,l){return function(m){return eoR(ju(a),l.slotId,l.slotType,l.slotPhysicalPosition,l.Rj,l.slotEntryTrigger,l.slotFulfillmentTriggers,l.slotExpirationTriggers,m.layoutId,m.layoutType,m.Rj)}}; eoR=function(a,l,m,T,y,R,H,b,M,d,A){return{adClientDataEntry:{slotData:dM(a,{slotId:l,slotType:m,slotPhysicalPosition:T,Rj:y,slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:b,clientMetadata:new qZ([])}),layoutData:Q9H(a,{layoutId:M,layoutType:d,Rj:A,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],sb:new Map,clientMetadata:new qZ([]),AN:{}})}}}; G9=function(a){this.ZK=a;a=Math.random();var l=this.ZK.get();l=g.PU(l.D.Y().experiments,"html5_debug_data_log_probability");l=Number.isFinite(l)&&l>=0&&l<=1?l:0;this.T=a1){g.nU(new g.YH("Exit already started",{current:a.currentState}));var m=!1}else m=!0;if(!m)return!1;a.currentState=2;a.T=l;return!0}; cT=function(a){if(a.currentState!==2)return!1;a.currentState=3;return!0}; T_d=function(a,l){var m=new Map;a=g.c(a);for(var T=a.next();!T.done;T=a.next()){T=T.value;if(T.layoutType==="LAYOUT_TYPE_MEDIA")var y="v";else T.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(y=bS(T.clientMetadata,"metadata_type_linked_in_player_layout_type"),y=y==="LAYOUT_TYPE_ENDCAP"||y==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":y==="LAYOUT_TYPE_SURVEY"?"s":y==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):y="u";m.set(T.layoutId,y);if(y==="u"){var R={};y=l;T=(R.c=T.layoutId,R);y.D.Tu("uct",T)}}a= l.D$();Lw={contentCpn:a,Oz:m};T={};m=(T.ct=m.size,T.c=a,T);l.D.Tu("acc",m)}; ywb=function(){Lw={contentCpn:"",Oz:new Map}}; NN=function(a){var l;return(l=Lw.Oz.get(a))!=null?l:"u"}; QR=function(a,l,m){a.D.Tu(l,m);R8d(a)}; HuH=function(a){var l=a.layoutId,m=a.L3;if(a.gU){var T={};QR(a.v$,"slso",(T.ec=l,T.is=m,T.ctp=NN(l),T))}}; tS=function(a){var l=a.layoutId,m=a.L3;if(a.gU){var T={};QR(a.v$,"slse",(T.ec=l,T.is=m,T.ctp=NN(l),T))}}; q67=function(a){var l=a.layoutId,m=a.L3,T=a.v$;a.gU&&(a={},QR(T,"sleo",(a.xc=l,a.is=m,a.ctp=NN(l),a)),R8d(T))}; bup=function(a){var l=a.cpn,m=a.v$;a=a.L3;var T=m.D$(),y={};QR(m,"ce",(y.ec=l,y.ia=l!==T,y.r=Lw.Oz.has(l),y.is=a,y.ctp=NN(l),y))}; R8d=function(a){if(a.D$()!==Lw.contentCpn){var l={};l=(l.c=Lw.contentCpn,l);a.D.Tu("ccm",l)}}; gf5=function(a){var l=a.cpn,m=a.v$;a=a.L3;var T=m.D$(),y={};QR(m,"cx",(y.xc=l,y.ia=l!==T,y.r=Lw.Oz.has(l),y.is=a,y.ctp=NN(l),y))}; MI7=function(a){this.params=a;this.T=new Set}; iuH=function(a,l,m){if(!a.T.has(l)){a.T.add(l);var T={};a.params.Xa.nx(l,Object.assign({},m,(T.p_ac=a.params.adCpn,T.p_isv=a.params.Bx&&a.params.YN,T)))}}; FI=function(a,l,m){if(eS(a.params.Xa.ZK.get(),!0)){var T=m.flush,y={};iuH(a,l,(y.cts=m.currentTimeSec,y.f=T,y))}}; d4t=function(a,l){this.v$=a;this.ZK=l}; hS=function(a){var l=[];if(a){a=g.c(Object.entries(a));for(var m=a.next();!m.done;m=a.next()){var T=g.c(m.value);m=T.next().value;T=T.next().value;T!==void 0&&(T=typeof T==="boolean"?""+ +T:(""+T).replace(/[:,=]/g,"_"),l.push(m+"."+T))}}return l.join(";")}; O_=function(a,l,m){l=l===void 0?{}:l;this.errorCode=a;this.details=l;this.severity=m===void 0?0:m}; Kw=function(a){return a===1||a===2}; zM=function(a,l){l=l===void 0?0:l;if(a instanceof O_)return a;a=a&&a instanceof Error?a:Error(""+a);Kw(l)?g.kt(a):g.nU(a);return new O_(l===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},l)}; jEP=function(a,l){function m(){var T=g.Jz.apply(0,arguments);a.removeEventListener("playing",m);l.apply(null,g.F(T))} a.addEventListener("playing",m)}; vT=function(){var a=g.Yl("yt.player.utils.videoElement_");a||(a=g.lK("VIDEO"),g.Xt("yt.player.utils.videoElement_",a));return a}; $9=function(a){var l=vT();return!!(l&&l.canPlayType&&l.canPlayType(a))}; SS=function(a){if(/opus/.test(a)&&g.s_&&!O3("38")&&!g.ur())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Ay5())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!$9(a)}; Aw7=function(a){try{var l=SS('video/mp4; codecs="avc1.42001E"')||SS('video/webm; codecs="vp9"');return(SS('audio/mp4; codecs="mp4a.40.2"')||SS('audio/webm; codecs="opus"'))&&(l||!a)||$9('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(m){return"html5.missingapi"}}; fw=function(){var a=vT();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")}; JS=function(){var a=vT();try{var l=a.muted;a.muted=!l;return a.muted!==l}catch(m){}return!1}; PG7=function(){var a;return((a=navigator.connection)==null?void 0:a.type)||""}; g.BT=function(){zO.apply(this,arguments)}; k9=function(a,l,m,T,y,R,H,b){this.sampleRate=a===void 0?0:a;this.numChannels=l===void 0?0:l;this.spatialAudioType=m===void 0?"SPATIAL_AUDIO_TYPE_NONE":m;this.T=T===void 0?!1:T;this.j=y===void 0?0:y;this.Z=R===void 0?0:R;this.audioQuality=H===void 0?"AUDIO_QUALITY_UNKNOWN":H;this.L=b===void 0?!1:b}; I_=function(a,l,m,T,y,R,H,b,M){this.width=a;this.height=l;this.quality=R||nw(a,l);this.qualityOrdinal=g.wF[this.quality];this.fps=m||0;this.stereoLayout=!y||T!=null&&T!=="UNKNOWN"&&T!=="RECTANGULAR"?0:y;this.projectionType=T?T==="EQUIRECTANGULAR"&&y===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":T:"UNKNOWN";(a=H)||(a=g.wF[this.quality],a===0?a="Autom\u00e1tica":(l=this.fps,m=this.projectionType,a=a.toString()+(m==="EQUIRECTANGULAR"||m==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||m==="MESH"?"s":"p")+(l>55?"60": l>49?"50":l>39?"48":"")));this.qualityLabel=a;this.T=b||"";this.primaries=M||""}; nw=function(a,l){var m=Math.max(a,l);a=Math.min(a,l);l=Cw[0];for(var T=0;T=Math.floor(R*16/9)*1.3||a>=R*1.3)return l;l=y}return"tiny"}; x9=function(a,l,m){m=m===void 0?{}:m;this.id=a;this.mimeType=l;m.Nj>0||(m.Nj=16E3);Object.assign(this,m);a=g.c(this.id.split(";"));this.itag=a.next().value;this.T=a.next().value;this.containerType=E_(l);this.Gu=o_[this.itag]||""}; DQ=function(a){return a.Gu==="9"||a.Gu==="("||a.Gu==="9h"||a.Gu==="(h"}; GDH=function(a){return a.Gu==="H"||a.Gu==="h"}; u3=function(a){return a.Gu==="9h"||a.Gu==="(h"}; VIp=function(a){return!!a.u0&&!!a.u0.fairplay&&(a.Gu==="("||a.Gu==="(h"||a.Gu==="A"||a.Gu==="MEAC3")||XI&&!!a.u0&&a.Gu==="1e"}; Y9=function(a){return a.Gu==="1"||a.Gu==="1h"||XI&&a.Gu==="1e"}; U_=function(a){return a.Gu==="mac3"||a.Gu==="meac3"||a.Gu==="m"||a.Gu==="i"}; rF=function(a){return a.Gu==="MAC3"||a.Gu==="MEAC3"||a.Gu==="M"||a.Gu==="I"}; g.ay=function(a){return a.containerType===1}; pr7=function(a){return a.Gu==="("||a.Gu==="(h"||a.Gu==="H"||XI&&a.Gu==="1e"}; lH=function(a){return a.mimeType==="application/x-mpegURL"}; g.mH=function(a,l){return{itag:+a.itag,lmt:l?0:a.lastModified,xtags:a.T||""}}; ZuP=function(a){var l=navigator.mediaCapabilities;if(l==null||!l.decodingInfo||a.Gu==="f")return Promise.resolve();var m={type:a.audio&&a.video?"file":"media-source"};a.video&&(m.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:a.Nj*8||1E6,framerate:a.video.fps||30});a.audio&&(m.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.Nj*8||128E3,samplerate:a.audio.sampleRate||44100});return l.decodingInfo(m).then(function(T){a.L=T})}; TR=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)}; yv=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)}; Ry=function(a){return a.includes("vtt")||a.includes("text/mp4")}; E_=function(a){return a.indexOf("/mp4")>=0?1:a.indexOf("/webm")>=0?2:a.indexOf("/x-flv")>=0?3:a.indexOf("/vtt")>=0?4:0}; HJ=function(a,l,m,T,y,R){var H=new k9;l in g.wF||(l="small");l==="light"&&(l="tiny");T&&y?(y=Number(y),T=Number(T)):(y=g.wF[l],T=Math.round(y*16/9));R=new I_(T,y,0,null,void 0,l,R);a=unescape(a.replace(/"/g,'"'));return new x9(m,a,{audio:H,video:R})}; qi=function(a){var l="id="+a.id;a.video&&(l+=", res="+a.video.qualityLabel);var m,T;return l+", byterate=("+((m=a.f8)==null?void 0:m.toFixed(0))+", "+((T=a.Nj)==null?void 0:T.toFixed(0))+")"}; bH=function(a,l){return{start:function(m){return a[m]}, end:function(m){return l[m]}, length:a.length}}; Wu5=function(a,l,m){for(var T=[],y=[],R=0;R=l)return m}catch(T){}return-1}; iH=function(a,l){return Mi(a,l)>=0}; cw5=function(a,l){if(!a)return NaN;l=Mi(a,l);return l>=0?a.start(l):NaN}; dV=function(a,l){if(!a)return NaN;l=Mi(a,l);return l>=0?a.end(l):NaN}; jy=function(a){return a&&a.length?a.end(a.length-1):NaN}; Au=function(a){return jy(a)>0}; PJ=function(a,l){a=dV(a,l);return a>=0?a-l:0}; GR=function(a,l,m){for(var T=[],y=[],R=0;Rm||(T.push(Math.max(l,a.start(R))-l),y.push(Math.min(m,a.end(R))-l));return bH(T,y)}; Vv=function(a,l,m,T){g.Aj.call(this);var y=this;this.gO=a;this.start=l;this.end=m;this.isActive=T;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.G9={error:function(){!y.FO()&&y.isActive&&y.publish("error",y)}, updateend:function(){!y.FO()&&y.isActive&&y.publish("updateend",y)}}; this.gO.H7(this.G9);this.o2=this.isActive}; Zg=function(a,l,m,T,y,R){g.Aj.call(this);var H=this;this.VO=a;this.V2=l;this.id=m;this.containerType=T;this.Gu=y;this.YN=R;this.YQ=this.zl=this.yX=null;this.Y9=!1;this.appendWindowStart=this.timestampOffset=0;this.Q7=bH([],[]);this.sz=!1;this.g9=[];this.gF=pT?[]:void 0;this.Gq=function(M){return H.publish(M.type,H)}; var b;if((b=this.VO)==null?0:b.addEventListener)this.VO.addEventListener("updateend",this.Gq),this.VO.addEventListener("error",this.Gq)}; oy=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; xM=function(a,l){this.DR=a;this.T=l===void 0?!1:l;this.L=!1}; Dg=function(a,l,m){m=m===void 0?!1:m;g.k.call(this);this.mediaElement=a;this.Wz=l;this.isView=m;this.C=0;this.j=!1;this.K=!0;this.N=0;this.callback=null;this.J=!1;this.Wz||(this.V2=g.B(this.mediaElement.hN()));this.events=new g.BT(this);g.w(this,this.events);this.Z=new xM(this.Wz?window.URL.createObjectURL(this.Wz):this.V2.webkitMediaSourceURL,!0);a=this.Wz||this.V2;vW(this.events,a,["sourceopen","webkitsourceopen"],this.suj);vW(this.events,a,["sourceclose","webkitsourceclose"],this.Lxj);this.B={updateend:this.Nl}}; LuR=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; N_t=function(a,l){uH(a)?g.FS(function(){l(a)}):a.callback=l}; QEQ=function(a,l,m){if(Xc){var T;YM(a.mediaElement,{l:"mswssb",sr:(T=a.mediaElement.vz)==null?void 0:T.TJ()},!1);l.H7(a.B,a);m.H7(a.B,a)}a.T=l;a.L=m;g.w(a,l);g.w(a,m)}; UK=function(a){return!!a.T||!!a.L}; uH=function(a){try{return rV(a)==="open"}catch(l){return!1}}; rV=function(a){if(a.Wz)return a.Wz.readyState;switch(a.V2.webkitSourceState){case a.V2.SOURCE_OPEN:return"open";case a.V2.SOURCE_ENDED:return"ended";default:return"closed"}}; aS=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; tIP=function(a){uH(a)&&(a.Wz?a.Wz.endOfStream():a.V2.webkitSourceEndOfStream(a.V2.EOS_NO_ERROR))}; e8Q=function(a,l,m,T){if(!a.T||!a.L)return null;var y=a.T.isView()?a.T.gO:a.T,R=a.L.isView()?a.L.gO:a.L,H=new Dg(a.mediaElement,a.Wz,!0);H.Z=a.Z;QEQ(H,new Vv(y,l,m,T),new Vv(R,l,m,T));uH(a)||a.T.D5(a.T.YX());return H}; Fu3=function(a){var l;(l=a.T)==null||l.Vl();var m;(m=a.L)==null||m.Vl();a.K=!1}; l6=function(){var a=this;this.kT=this.J2=Wb3;this.promise=new g.$G(function(l,m){a.J2=l;a.kT=m})}; mZ=function(){g.k.call(this);this.IF=!1;this.DR=null;this.B=this.C=!1;this.j=new g.Vz;this.vz=null;g.w(this,this.j)}; T4=function(a){a=a.Dx();return a.length<1?NaN:a.end(a.length-1)}; h83=function(a){!a.L&&LuR()&&(a.Z?a.Z.then(function(){return h83(a)}):a.Lu()||(a.L=a.o8()))}; Ouw=function(a){a.L&&(a.L.dispose(),a.L=void 0)}; YM=function(a,l,m){var T;((T=a.vz)==null?0:T.bZ())&&a.vz.Tu("rms",l,m===void 0?!1:m)}; Kup=function(a,l,m){a.isPaused()||a.getCurrentTime()>l||m>10||(a.play(),g.ZC(function(){Kup(a,a.getCurrentTime(),m+1)},500))}; z8l=function(a,l){a.DR&&a.DR.equals(l)||(a.DR&&a.DR.dispose(),a.DR=l)}; yF=function(a){return PJ(a.dL(),a.getCurrentTime())}; vfP=function(a,l){if(a.Tb()===0||a.hasError())return!1;var m=a.getCurrentTime()>0;return l>=0&&(a=a.Dx(),a.length||!m)?iH(a,l):m}; RS=function(a){a.Lu()&&(a.vz&&a.vz.Ji("rs_s"),Xz&&a.getCurrentTime()>0&&a.seekTo(0),a.hD(),a.load(),z8l(a,null));delete a.Z}; Hs=function(a){switch(a.YA()){case 2:return"progressive.net.retryexhausted";case 3:return a=a.La(),(a==null?0:a.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||$4d&&(a==null?0:a.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.qz=function(a,l,m){this.p7=l===void 0?null:l;this.seekSource=m===void 0?null:m;this.state=a||64}; b6=function(a,l,m){m=m===void 0?!1:m;return sE5(a,l.getCurrentTime(),(0,g.E)(),yF(l),m)}; gD=function(a,l,m,T){if(!(l===a.state&&m===a.p7&&T===a.seekSource||l!==void 0&&(l&128&&!m||l&2&&l&16))){var y;if(y=l)y=l||a.state,y=!!(y&16||y&32);a=new g.qz(l,m,y?T?T:a.seekSource:null)}return a}; Mz=function(a,l,m){return gD(a,a.state|l,null,m===void 0?null:m)}; i6=function(a,l){return gD(a,a.state&~l,null,null)}; dD=function(a,l,m,T){return gD(a,(a.state|l)&~m,null,T===void 0?null:T)}; g.u=function(a,l){return!!(a.state&l)}; g.jC=function(a,l){return l.state===a.state&&l.p7===a.p7}; An=function(a){return a.isPlaying()&&!g.u(a,16)&&!g.u(a,32)}; Ps=function(a){return g.u(a,128)?-1:g.u(a,2)?0:g.u(a,2048)?3:g.u(a,64)?-1:g.u(a,1)&&!g.u(a,32)?3:g.u(a,8)?1:g.u(a,4)?2:-1}; VF=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p,L,N){g.k.call(this);var e=this;this.K2=a;this.slot=l;this.layout=m;this.x8=T;this.Ub=y;this.Bz=R;this.EL=H;this.iM=b;this.mW=M;this.S4=d;this.position=P;this.C=G;this.ZK=V;this.Ea=p;this.HE=L;this.context=N;this.P$=!0;this.K=!1;this.PF="not_rendering";this.L=!1;this.Z=new VR;a=bS(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Hz=new hg(m.sb,this.x8,a,m.layoutId);var t;a=((t=G4(this))==null?void 0:t.progressCommands)||[];this.j=new $XR(M, a,m.layoutId,function(){return e.Om()}); this.T=new MI7({adCpn:this.layout.layoutId,Xa:N.Xa,Bx:this.Ea,YN:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; pd=function(a){return{layoutId:a.iq(),L3:a.Ea,v$:a.Bz.get(),gU:a.UQ()}}; Z$=function(a,l){return l.layoutId!==a.layout.layoutId?(a.K2.n$(a.slot,l,new HU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Ws=function(a){a.PF="rendering_start_requested";a.S4(-1)}; G4=function(a){return bS(a.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; S67=function(a){Vu("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)}; fcP=function(a){var l;return((l=cs(a.Bz.get(),2))==null?void 0:l.clientPlaybackNonce)||""}; Ld=function(a,l){switch(l){case "normal":a.fE("complete");break;case "skipped":a.fE("skip");break;case "abandoned":sb(a.Hz,"impression")&&a.fE("abandon")}}; Nz=function(a,l){a.K||(l=new g.pu(l.state,new g.qz),a.K=!0);return l}; QF=function(a,l){jS(l)?a.S4(1):g.Wr(l,4)&&!g.Wr(l,2)&&a.JR();Zc(l,4)<0&&!(Zc(l,2)<0)&&a.fK()}; Jwd=function(a){a.position===0&&(a.iM.get(),a=bS(a.layout.clientMetadata,"metadata_type_ad_placement_config").kind,a={adBreakType:tn(a)},C$("ad_bl"),g.Ex(a))}; eC=function(a,l){vL(a.Hz,l,!a.L)}; kDd=function(a){var l;return(((l=G4(a))==null?void 0:l.progressCommands)||[]).findIndex(function(m){return!!g.I(m==null?void 0:m.command,B_d)})!==-1}; FZ=function(a,l){var m=bS(a.clientMetadata,"metadata_type_eligible_for_ssap");return m===void 0?(Vu("Expected SSAP eligibility in PlayerBytes factory",a),!1):l.UQ(m)}; hn=function(a,l){if(!YI(l.get(),"html5_ssap_pass_transition_reason"))return 3;switch(a){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Vu("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Vu("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:a}),3;default:rG(a,"unknown layoutExitReason")}}; nf7=function(a){Vu("getExitReason: unexpected reason",void 0,void 0,{reason:a})}; Op=function(a,l){if(YI(l.get(),"html5_ssap_pass_transition_reason"))switch(a){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return nf7(a),"abandoned";case 3:case 1:return nf7(a),"error";default:rG(a,"unexpected transition reason")}else switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Vu("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:rG(a,"unexpected transition reason")}}; Kd=function(a,l,m){xb(a,m)||uu(a,l,m);xb(a,"video_to_ad")||uu(a,l,"video_to_ad");xb(a,"ad_to_video")||uu(a,l,"ad_to_video");xb(a,"ad_to_ad")||uu(a,l,"ad_to_ad")}; z4=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p,L,N,e){VF.call(this,a,l,m,T,y,R,H,b,d,A,P,G,V,p,L,N,e);var t=this;this.tW=M;this.oi=P;this.qS=!0;this.tL=this.Lh=0;this.HX=pF(function(){HuH(pd(t));t.K2.Xl(t.slot,t.layout)}); this.hv=pF(function(){q67(pd(t));t.PF!=="rendering_stop_requested"&&t.oi(t);t.layoutExitReason?t.K2.ZT(t.slot,t.layout,t.layoutExitReason):S67(t)}); this.Jb=new g.n1(200);this.Jb.listen("tick",function(){t.ex()}); g.w(this,this.Jb)}; $Q=function(a){a.tL=Date.now();vs(a,a.Lh);a.Jb.start()}; wrb=function(a){a.Lh=a.Om();a.g1(a.Lh/1E3,!0);vs(a,a.Lh)}; vs=function(a,l){l={current:l/1E3,duration:a.Om()/1E3};a.tW.get().Im("onAdPlaybackProgress",l)}; sp=function(a){z4.call(this,a.K2,a.slot,a.oY,a.x8,a.Ub,a.Bz,a.EL,a.iM,a.tW,a.mW,a.S4,a.oi,a.YF,a.NC,a.ZK,a.Ea,a.HE,a.context)}; SC=function(a){z4.call(this,a.K2,a.slot,a.oY,a.x8,a.Ub,a.Bz,a.EL,a.iM,a.tW,a.mW,a.S4,a.oi,a.YF,a.NC,a.ZK,a.Ea,a.HE,a.context)}; fd=function(){SC.apply(this,arguments)}; Icz=function(a){return FZ(a.slot,a.ZK.get())?new fd(a):new sp(a)}; kQ=function(a){VF.call(this,a.callback,a.slot,a.oY,a.x8,a.Ub,a.Bz,a.EL,a.iM,a.mW,a.S4,a.oi,a.YF,a.NC,a.ZK,a.Ea,a.HE,a.context);var l=this;this.adCpn="";this.pI=this.RS=0;this.HX=pF(function(){HuH(pd(l));l.K2.Xl(l.slot,l.layout)}); this.hv=pF(function(){q67(pd(l));l.PF!=="rendering_stop_requested"&&l.oi(l);l.layoutExitReason?l.K2.ZT(l.slot,l.layout,l.layoutExitReason):S67(l)}); this.dN=a.dN;this.Tq=a.Tq;this.VP=a.VP;this.tW=a.tW;this.V4=a.V4;this.oi=a.oi;if(!this.UQ()){YI(this.ZK.get(),"html5_disable_media_load_timeout")||(this.HK=new g.aH(function(){l.IE("load_timeout",new HU("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); a=Jn(this.ZK.get());var m=Bs(this.ZK.get());a&&m&&(this.UU=new g.aH(function(){var T=bS(l.layout.clientMetadata,"metadata_type_preload_player_vars");T&&l.Tq.get().D.preloadVideoByPlayerVars(T,2,300)}))}}; EfQ=function(a,l){var m=bS(l.clientMetadata,"metadata_type_ad_video_id"),T=bS(l.clientMetadata,"metadata_type_legacy_info_card_vast_extension");m&&T&&a.V4.get().D.Y().Cx.add(m,{fM:T});(l=bS(l.clientMetadata,"metadata_type_sodar_extension_data"))&&otP(a.dN.get(),l);CGH(a.EL.get(),!1)}; ofb=function(a){CGH(a.EL.get(),!0);var l;((l=a.shrunkenPlayerBytesConfig)==null?0:l.shouldRequestShrunkenPlayerBytes)&&a.EL.get().Ni(!1)}; x4p=function(a){return new nd(a)}; wD=function(){kQ.apply(this,arguments)}; nd=function(){wD.apply(this,arguments)}; D4z=function(a){return Icz(Object.assign({},a,{K2:a.callback,S4:function(){}}))}; u1w=function(a){return new kQ(Object.assign({},a,{S4:function(l){a.tW.get().Im("onAdIntroStateChange",l)}}))}; Xrd=function(a){function l(m){a.tW.get().yA(m)} return FZ(a.slot,a.ZK.get())?x4p(Object.assign({},a,{S4:l})):new kQ(Object.assign({},a,{S4:l}))}; IS=function(a){for(var l=a.oY,m=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],T=g.c(Ob()),y=T.next();!y.done;y=T.next())m.push(y.value);if(Ub(l,{au:m,w7:["LAYOUT_TYPE_MEDIA_BREAK"]}))return D4z(a);l=a.oY;m=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];T=g.c(Ob());for(y=T.next();!y.done;y=T.next())m.push(y.value);if(Ub(l,{au:m,w7:["LAYOUT_TYPE_MEDIA"]}))return T9(a.oY.clientMetadata,"metadata_type_ad_intro")?u1w(a):Xrd(a)}; U47=function(a){var l=g.B(bS(a.clientMetadata,"metadata_type_ad_placement_config")).kind,m=bS(a.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:Y6l(m),adBreakType:tn(l)}}; tn=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; Y6l=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; rwd=function(a){try{return new Cd(a.gp,a.slot,a.layout,a.D6,a.Za,a.Bz,a.vN,a.Tq,a.gW,a.EL,a.ucj,a)}catch(l){}}; Cd=function(a,l,m,T,y,R,H,b,M,d,A,P){g.k.call(this);this.gp=a;this.slot=l;this.layout=m;this.D6=T;this.Za=y;this.Bz=R;this.vN=H;this.Tq=b;this.gW=M;this.EL=d;this.params=P;this.P$=!0;a=IS(A);if(!a)throw Error("Invalid params for sublayout");this.Yv=a}; aql=function(){this.T=1;this.L=new VR}; Ep=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V){g.k.call(this);this.callback=a;this.Bz=l;this.vN=m;this.Tq=T;this.EL=y;this.u4=R;this.iM=H;this.C2=b;this.slot=M;this.layout=d;this.D6=A;this.fu=P;this.gW=G;this.ZK=V;this.P$=!0;this.oN=!1;this.M6=[];this.G5=-1;this.Ej=!1;this.Kd=new aql}; lqP=function(a){var l;return(l=a.layout.Q5)!=null?l:bS(a.layout.clientMetadata,"metadata_type_sub_layouts")}; oS=function(a){return{v$:a.Bz.get(),L3:!1,gU:a.UQ()}}; mld=function(a,l,m){if(a.hE()===a.M6.length-1){var T,y;Vu("Unexpected skip requested during the last sublayout",(T=a.gN())==null?void 0:T.JN(),(y=a.gN())==null?void 0:y.JM(),{requestingSlot:l,requestingLayout:m})}}; TYz=function(a,l,m){return m.layoutId!==xQ(a,l,m)?(Vu("onSkipRequested for a PlayerBytes layout that is not currently active",a.JN(),a.JM()),!1):!0}; y9P=function(a){a.hE()===a.M6.length-1&&Vu("Unexpected skip with target requested during the last sublayout")}; Rql=function(a,l,m){return m.renderingContent===void 0&&m.layoutId!==xQ(a,l,m)?(Vu("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.JN(),a.JM(),{requestingSlot:l,requestingLayout:m}),!1):!0}; H$t=function(a,l,m,T){var y=bS(l.JM().clientMetadata,"metadata_type_ad_pod_skip_target");if(y&&y>0&&y0)){Vu("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:l,layoutId:a.layout.layoutId});break a}a.G5=l;l=a.gN();if(a.hE()>0&&!a.UQ()){var m=a.iM.get();m.L=!1;var T={};m.T&&m.videoId&&(T.cttAuthInfo={token:m.T,videoId:m.videoId});o0("ad_to_ad",T)}a.WA(l)}}; YQ=function(a){Ep.call(this,a.gp,a.Bz,a.vN,a.Tq,a.EL,a.u4,a.iM,a.C2,a.slot,a.layout,a.D6,a.fu,a.gW,a.ZK)}; gb7=function(a){(a=a.gN())&&a.CG()}; Up=function(a){Ep.call(this,a.gp,a.Bz,a.vN,a.Tq,a.EL,a.u4,a.iM,a.C2,a.slot,a.layout,a.D6,a.fu,a.gW,a.ZK);this.qA=void 0}; MGb=function(a,l){a.mw()&&!cT(a.Kd.L)||a.callback.ZT(a.slot,a.layout,l)}; rD=function(a){return YI(a.ZK.get(),"html5_ssap_pass_transition_reason")}; i$b=function(a,l,m){pw(l.SX())<2&&(m=Op(m,a.ZK),l.zq(l.JM(),m));m=ZQ(l.SX());a.jp(a.slot,l.JM(),m)}; dl5=function(a,l){if(a.Kd.L.currentState<2){var m=Op(l,a.ZK);m==="error"?a.callback.n$(a.slot,a.layout,new HU("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:l},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):XZ(a.fu,a.layout,m)}}; au=function(a,l,m){pw(l.SX())>=2||(l.zq(l.JM(),m),cT(l.SX())&&(z9(a.C2,a.slot,l.JM(),m),a.qA=void 0))}; j07=function(a,l){a.Kd.T===2&&l!==a.D$()&&Vu("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:l})}; A9b=function(a,l){var m=a.gN();if(m){var T=m.JM().layoutId,y=a.hE()+1;a.mw()?au(a,m,l):m.zq(m.JM(),l);y>=0&&yy&&H.TP(A,y-T);return A}; NYl=function(a,l,m){var T=bS(l.clientMetadata,"metadata_type_sodar_extension_data");if(T)try{otP(m,T)}catch(y){Vu("Unexpected error when loading Sodar",a,l,{error:y})}}; Q0b=function(a,l,m,T,y,R,H){by(a,l,new g.pu(m,new g.qz),T,y,H,!1,R)}; by=function(a,l,m,T,y,R,H,b){H=H===void 0?!0:H;jS(m)&&AS(y,0,null)&&(!sb(a,"impression")&&b&&b(),a.fE("impression"));sb(a,"impression")&&(g.Wr(m,4)&&!g.Wr(m,2)&&a.PE("pause"),Zc(m,4)<0&&!(Zc(m,2)<0)&&a.PE("resume"),g.Wr(m,16)&&y>=.5&&a.PE("seek"),H&&g.Wr(m,2)&&gk(a,m.state,l,T,y,R))}; gk=function(a,l,m,T,y,R,H,b){sb(a,"impression")&&(R?(R=y-T,R=R>=-1&&R<=2):R=Math.abs(T-y)<=1,MC(a,l,R?T:y,m,T,H,b&&R),R&&a.fE("complete"))}; MC=function(a,l,m,T,y,R,H){$Z(a,m*1E3,H);y<=0||m<=0||(l==null?0:g.u(l,16))||(l==null?0:g.u(l,32))||(AS(m,y*.25,T)&&(R&&!sb(a,"first_quartile")&&R("first"),a.fE("first_quartile")),AS(m,y*.5,T)&&(R&&!sb(a,"midpoint")&&R("second"),a.fE("midpoint")),AS(m,y*.75,T)&&(R&&!sb(a,"third_quartile")&&R("third"),a.fE("third_quartile")))}; tGP=function(a,l){sb(a,"impression")&&a.PE(l?"fullscreen":"end_fullscreen")}; eqR=function(a){sb(a,"impression")&&a.PE("clickthrough")}; F03=function(a){a.PE("active_view_measurable")}; hqt=function(a){sb(a,"impression")&&!sb(a,"seek")&&a.PE("active_view_fully_viewable_audible_half_duration")}; O$d=function(a){sb(a,"impression")&&!sb(a,"seek")&&a.PE("active_view_viewable")}; K0w=function(a){sb(a,"impression")&&!sb(a,"seek")&&a.PE("audio_audible")}; zqQ=function(a){sb(a,"impression")&&!sb(a,"seek")&&a.PE("audio_measurable")}; vbz=function(a,l,m,T,y,R,H,b,M,d,A,P){this.callback=a;this.slot=l;this.layout=m;this.vN=T;this.Hz=y;this.EL=R;this.LY=H;this.Ub=b;this.dN=M;this.ZK=d;this.x8=A;this.Bz=P;this.qS=!0;this.XU=this.PF=null;this.adCpn=void 0;this.T=!1}; $lp=function(a,l,m){var T;qC(a.x8.get(),"ads_qua","cpn."+bS(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((T=cs(a.Bz.get(),2))==null?void 0:T.clientPlaybackNonce)+";qt."+l+";clr."+m)}; s0w=function(a,l){var m,T;qC(a.x8.get(),"ads_imp","cpn."+bS(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((m=cs(a.Bz.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+l+";skp."+!!g.I((T=bS(a.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:T.skipOrPreviewRenderer,iy))}; dk=function(a){return{enterMs:bS(a.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:bS(a.clientMetadata,"metadata_type_layout_exit_ms")}}; jl=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V){mr.call(this,a,l,m,T,y,H,b,M,d,P);this.LY=R;this.dN=A;this.Ub=G;this.ZK=V;this.XU=this.PF=null}; Sxd=function(a,l){var m;qC(a.x8.get(),"ads_imp","acpn."+((m=cs(a.Bz.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+l)}; fqQ=function(a,l,m){var T;qC(a.x8.get(),"ads_qua","cpn."+bS(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((T=cs(a.Bz.get(),2))==null?void 0:T.clientPlaybackNonce)+";qt."+l+";clr."+m)}; AV=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p,L,N,e,t,v,S,n){this.gW=a;this.D6=l;this.fu=m;this.Bz=T;this.vN=y;this.EL=R;this.u4=H;this.x8=b;this.LY=M;this.Ru=d;this.Ub=A;this.dN=P;this.Tq=G;this.VP=V;this.iM=p;this.tW=L;this.mW=N;this.V4=e;this.ZK=t;this.T=v;this.context=S;this.HE=n}; PY=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p,L,N,e,t){this.gW=a;this.D6=l;this.fu=m;this.x8=T;this.Ub=y;this.dN=R;this.Tq=H;this.Bz=b;this.EL=M;this.u4=d;this.VP=A;this.iM=P;this.tW=G;this.mW=V;this.V4=p;this.ZK=L;this.vN=N;this.context=e;this.HE=t}; J9H=function(a,l,m,T){jN.call(this,"survey-interstitial",a,l,m,T)}; G2=function(a,l,m,T,y){WL.call(this,m,a,l,T);this.x8=y;a=bS(l.clientMetadata,"metadata_type_ad_placement_config");this.Hz=new hg(l.sb,y,a,l.layoutId)}; VA=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; Zk=function(a,l,m){m=m===void 0?pb:m;m.widtha.width*a.height*.2)return{x_:3,jK:501,errorMessage:"ad("+VA(m)+") to container("+VA(a)+") ratio exceeds limit."};if(m.height>a.height/3-l)return{x_:3,jK:501,errorMessage:"ad("+VA(m)+") covers container("+VA(a)+") center."}}; BYd=function(a,l){var m=g.B(bS(a.clientMetadata,"metadata_type_ad_placement_config"));return new hg(a.sb,l,m,a.layoutId)}; WY=function(a){return g.B(bS(a.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; cY=function(a,l,m,T){jN.call(this,"invideo-overlay",a,l,m,T);this.interactionLoggingClientData=T}; Lb=function(a,l,m,T,y,R,H,b,M,d,A,P){WL.call(this,R,a,l,y);this.x8=m;this.j=H;this.EL=b;this.mW=M;this.ZK=d;this.C=A;this.K=P;this.Hz=BYd(l,m)}; k8d=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];Ob().forEach(function(l){a.push(l)}); return{au:a,w7:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; NC=function(a,l,m,T,y,R,H,b,M,d,A,P,G){WL.call(this,R,a,l,y);this.x8=m;this.j=H;this.J=b;this.EL=M;this.mW=d;this.ZK=A;this.C=P;this.K=G;this.Hz=BYd(l,m)}; nb7=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],l=g.c(Ob()),m=l.next();!m.done;m=l.next())a.push(m.value);return{au:a,w7:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; QA=function(a){this.EL=a;this.T=!1}; wF5=function(a,l,m){jN.call(this,"survey",a,{},l,m)}; tV=function(a,l,m,T,y,R,H){WL.call(this,m,a,l,T);this.j=y;this.EL=R;this.ZK=H}; Iqp=function(a,l,m,T,y,R,H,b,M,d){this.Nt=a;this.EL=l;this.x8=m;this.j=T;this.Ub=y;this.L=R;this.Z=H;this.mW=b;this.ZK=M;this.T=d}; CuQ=function(a,l,m,T,y,R,H,b,M,d){this.Nt=a;this.EL=l;this.x8=m;this.j=T;this.Ub=y;this.L=R;this.Z=H;this.mW=b;this.ZK=M;this.T=d}; el=function(a,l,m,T,y,R,H,b,M,d){yR.call(this,a,l,m,T,y,R,H,M);this.Z0=b;this.Bz=d}; Ebl=function(){var a=YD5();a.au.push("metadata_type_ad_info_ad_metadata");return a}; ob7=function(a,l,m,T,y,R,H){this.Nt=a;this.EL=l;this.x8=m;this.L=T;this.Z0=y;this.T=R;this.Bz=H}; xl3=function(a,l,m,T,y,R,H,b){this.Nt=a;this.EL=l;this.x8=m;this.L=T;this.Z0=y;this.T=R;this.ZK=H;this.Bz=b}; F$=function(a,l){this.slotId=l;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)}; hV=function(a,l){this.adPodIndex=a;this.T=l.length;this.adBreakLengthSeconds=l.reduce(function(T,y){return T+y},0); var m=0;for(a+=1;a0}; iM=function(a){return!!(a.Cy&&a.slot&&a.layout)}; d2=function(a){var l,m=(l=a.config)==null?void 0:l.adPlacementConfig;a=a.renderer;return!(!m||m.kind==null||!a)}; q5R=function(a){if(!y1(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.I(a,MN)||g.I(a,i3)||g.I(a,b3)||g.I(a,gF)?!0:!1}; j_=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0}; Fx=function(a){if(!y1(a.adLayoutMetadata))return!1;a=a.renderingContent;var l=g.I(a,A_);return l?P_(l):(l=g.I(a,GC))?j_(l):(l=g.I(a,Q1))?l.playerVars!==void 0:(l=g.I(a,MN))?l.durationMilliseconds!==void 0:g.I(a,t_)||g.I(a,e_)?!0:!1}; P_=function(a){a=(a.sequentialLayouts||[]).map(function(l){return g.I(l,h_)}); return a.length>0&&a.every(Fx)}; Kl=function(a){return y1(a.adLayoutMetadata)?(a=g.I(a.renderingContent,OW))&&a.pings?!0:!1:!1}; j7p=function(a){if(!y1(a.adLayoutMetadata))return!1;if(g.I(a.renderingContent,b8H)||g.I(a.renderingContent,gn5))return!0;var l=g.I(a.renderingContent,zC);return g.I(a.renderingContent,v_)||g.I(l==null?void 0:l.sidePanel,M2b)||g.I(l==null?void 0:l.sidePanel,i87)||g.I(l==null?void 0:l.sidePanel,dDH)?!0:!1}; pXw=function(a){var l;(l=!a)||(l=a.adSlotMetadata,l=!((l==null?void 0:l.slotId)!==void 0&&(l==null?void 0:l.slotType)!==void 0));if(l||!(ALd(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var m;a=(m=a.fulfillmentContent)==null?void 0:m.fulfilledLayout;return(m=g.I(a,h_))?Fx(m):(m=g.I(a,$P))?j7p(m):(m=g.I(a,Pqt))?q5R(m):(m=g.I(a,GNt))?RAb(m):(m=g.I(a,V27))?y1(m.adLayoutMetadata)?g.I(m.renderingContent,Rn)?!0:!1:!1:(a=g.I(a,sW))?Kl(a):!1}; ALd=function(a){var l;a=g.I((l=a.fulfillmentContent)==null?void 0:l.fulfilledLayout,$P);var m;return a&&((m=a.adLayoutMetadata)==null?void 0:m.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0}; Z8R=function(a){var l;return(a==null?void 0:(l=a.adSlotMetadata)==null?void 0:l.slotType)==="SLOT_TYPE_IN_PLAYER"}; cLd=function(a,l){var m;if((m=a.questions)==null||!m.length||!a.playbackCommands||(l===void 0||!l)&&a.questions.length!==1)return!1;a=g.c(a.questions);for(l=a.next();!l.done;l=a.next()){l=l.value;var T=m=void 0,y=((m=g.I(l,S_))==null?void 0:m.surveyAdQuestionCommon)||((T=g.I(l,fl))==null?void 0:T.surveyAdQuestionCommon);if(!Wfb(y))return!1}return!0}; Lf7=function(a){a=((a==null?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var l;if(a)if(a.playbackCommands&&a.questions&&a.questions.length===1){var m,T=((l=g.I(a.questions[0],S_))==null?void 0:l.surveyAdQuestionCommon)||((m=g.I(a.questions[0],fl))==null?void 0:m.surveyAdQuestionCommon);l=Wfb(T)}else l=!1;else l=!1;return l}; Wfb=function(a){if(!a)return!1;a=g.I(a.instreamAdPlayerOverlay,J_);var l=g.I(a==null?void 0:a.skipOrPreviewRenderer,iy),m=g.I(a==null?void 0:a.adInfoRenderer,B_);return(g.I(a==null?void 0:a.skipOrPreviewRenderer,kP)||l)&&m?!0:!1}; NsH=function(a){return a.linearAds!=null&&y1(a.adLayoutMetadata)}; Q7l=function(a){return a.linearAd!=null&&a.adVideoStart!=null}; t2t=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.I(a.ctaButton,g.nl)||!a.brandImage)return!1;var l;return a.backgroundImage&&g.I(a.backgroundImage,w2)&&((l=g.I(a.backgroundImage,w2))==null?0:l.landscape)?!0:!1}; In=function(a,l,m,T,y,R,H,b){g.k.call(this);this.ZK=a;this.T=l;this.L=T;this.Bz=y;this.j=R;this.Z=H;this.Tq=b}; O83=function(a,l,m){var T,y=((T=m.adSlots)!=null?T:[]).map(function(b){return g.I(b,Cl)}); if(m.Ci)if(bS(l.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))GV(a.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},l.slotId); else{if(eA5(a.ZK.get())){var R=m.bD.filter(function(b){var M;return((M=b.renderer)==null?void 0:M.clientForecastingAdRenderer)!=null}); R.length!==0?Ffd(a.Z,R,y,l.slotId,m.ssdaiAdsConfig):GV(a.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},l.slotId)}else GV(a.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},l.slotId); hAd(a.j,l)}else{var H;T={B5:Math.round(((R=bS(l.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:R.B5)||0),VF:(H=bS(l.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:H.VF};Ffd(a.Z,m.bD,y,l.slotId,m.ssdaiAdsConfig,T)}}; vn3=function(a,l,m,T,y,R,H){var b=cs(a.Bz.get(),1);if(Kf3(a.ZK.get())){var M=EW(a.L.get(),m,T,y,b.clientPlaybackNonce,b.dk,b.daiEnabled,b,R,H);zAl(a,M);GV(a.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return M},l)}else GV(a.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return EW(a.L.get(),m,T,y,b.clientPlaybackNonce,b.dk,b.daiEnabled,b,R,H)},l)}; zAl=function(a,l){l=g.c(l);for(var m=l.next();!m.done;m=l.next()){var T=m.value;if(T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.fulfilledLayout)if(m=void 0,T.fulfilledLayout.renderingContent)m=bS(T.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(T.fulfilledLayout.Q5){T=g.c(T.fulfilledLayout.Q5);for(var y=T.next();!y.done&&(y=y.value,!y.renderingContent||!(m=bS(y.clientMetadata,"metadata_type_player_vars")));y=T.next());}}else m=void 0;if(m){a.Tq.get().D.preloadVideoByPlayerVars(m, 2,300);break}}}; s7w=function(a,l,m,T,y,R,H){l=$DR(l,R,Number(T.prefetchMilliseconds)||0,H);a=l instanceof Y?l:on(a,T,y,l,m);return a instanceof Y?a:[a]}; S5l=function(a,l,m,T,y){var R=V0(a.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");T=[new kk({getAdBreakUrl:T.getAdBreakUrl,B5:0,VF:0}),new ax(!0)];a=l.pauseDurationMs?l.lactThresholdMs?{slotId:R,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new rk(a.T,R),slotFulfillmentTriggers:[new uXH(a.T)],slotExpirationTriggers:[new ou(a.T,y),new X$(a.T,R)],Rj:"core",clientMetadata:new qZ(T),adSlotLoggingData:m}:new Y("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Y("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return a instanceof Y?a:[a]}; fIP=function(a){var l,m;return((l=a.renderer)==null?void 0:(m=l.adBreakServiceRenderer)==null?void 0:m.getAdBreakUrl)!==void 0}; xP=function(a,l,m){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new Of(Rx,l,a.id):new Y("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var T;l=(T=a.layoutIdExitedTrigger)!=null&&T.triggeringLayoutId?new Sl(Rx,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new Y("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var y,R;((y=a.layoutExitedForReasonTrigger)==null?0:y.triggeringLayoutId)&&((R= a.layoutExitedForReasonTrigger)==null?0:R.layoutExitReason)?(l=XFP(a.layoutExitedForReasonTrigger.layoutExitReason),a=l instanceof Y?l:new sf(Rx,a.layoutExitedForReasonTrigger.triggeringLayoutId,[l],a.id)):a=new Y("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var H;l=(H=a.onLayoutSelfExitRequestedTrigger)!=null&&H.triggeringLayoutId?new Ef(Rx,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new Y("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a= a.onNewPlaybackAfterContentVideoIdTrigger?new ou(Rx,l,a.id):new Y("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var b;l=(b=a.skipRequestedTrigger)!=null&&b.triggeringLayoutId?new Dk(Rx,a.skipRequestedTrigger.triggeringLayoutId,a.id):new Y("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var M;l=(M=a.slotIdEnteredTrigger)!=null&&M.triggeringSlotId?new uy(Rx,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new Y("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var d; l=(d=a.slotIdExitedTrigger)!=null&&d.triggeringSlotId?new X$(Rx,a.slotIdExitedTrigger.triggeringSlotId,a.id):new Y("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var A;l=(A=a.surveySubmittedTrigger)!=null&&A.triggeringLayoutId?new lM(Rx,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new Y("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new Yxw(a.id):new Y("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var P; l=(P=a.closeRequestedTrigger)!=null&&P.triggeringLayoutId?new Kb(Rx,a.closeRequestedTrigger.triggeringLayoutId,a.id):new Y("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var G;l=(G=a.slotIdScheduledTrigger)!=null&&G.triggeringSlotId?new rk(Rx,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new Y("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var V;T=Number((V=a.mediaTimeRangeTrigger)==null?void 0:V.offsetStartMilliseconds);var p;H=Number((p= a.mediaTimeRangeTrigger)==null?void 0:p.offsetEndMilliseconds);isFinite(T)&&isFinite(H)?(p=H,p===-1&&(p=m),m=T>p?new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:T,offsetEndMs:p},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",p===m&&T-500<=p):new FW(T,p),a=m instanceof Y?m:new nb(Rx,l,m,!1,a.id)):a=new Y("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new z2(Rx,l,!1,a.id):new Y("Not able to create ContentVideoIdEndedTrigger"); else{if(a.layoutIdEnteredTrigger){var L;l=(L=a.layoutIdEnteredTrigger)!=null&&L.triggeringLayoutId?new $c(Rx,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new Y("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var N;l=(N=a.timeRelativeToLayoutEnterTrigger)!=null&&N.triggeringLayoutId?new mV(Rx,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new Y("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var e; l=(e=a.onDifferentLayoutIdEnteredTrigger)!=null&&e.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new Iu(Rx,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new Y("Not able to create CloseRequestedTrigger")}else{if(a.liveStreamBreakStartedTrigger)a=a.liveStreamBreakStartedTrigger&&a.id?new kc(Rx,a.id):new Y("Not able to create LiveStreamBreakStartedTrigger"); else if(a.liveStreamBreakEndedTrigger)a=a.liveStreamBreakEndedTrigger&&a.id?new fb(Rx,a.id):new Y("Not able to create LiveStreamBreakEndedTrigger");else{if(a.liveStreamBreakScheduledDurationMatchedTrigger){var t;l=(t=a.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&t.breakDurationMs?new JV(Number(a.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,a.id):new Y("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(a.liveStreamBreakScheduledDurationNotMatchedTrigger){var v; l=(v=a.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&v.breakDurationMs?new BY(Number(a.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,a.id):new Y("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(a.newSlotScheduledWithBreakDurationTrigger){var S;l=(S=a.newSlotScheduledWithBreakDurationTrigger)!=null&&S.breakDurationMs?new wk(Number(a.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,a.id):new Y("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else l= a.prefetchCacheExpiredTrigger?new xc(Rx,a.id):new Y("Not able to convert an AdsControlflowTrigger.");a=l}l=a}a=l}l=a}a=l}l=a}a=l}l=a}a=l}l=a}a=l}return a}; DD=function(a,l){l.T>=2&&(a.slot_pos=l.adPodIndex);a.autoplay="1"}; BsP=function(a,l,m,T,y,R,H,b){return l===null?new Y("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:l,ActionCompanionAdRenderer:T}):[JLQ(a,l,H,R,function(M){var d=M.slotId;M=b(M);var A=T.adLayoutLoggingData,P=new qZ([new wq(T),new ac(y)]);d=UF(m.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);var G={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Rj:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",sb:new Map, layoutExitNormalTriggers:[new ou(m.T,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:P,AN:M(G),adLayoutLoggingData:A}})]}; kNp=function(a,l,m,T,y,R,H,b){return l===null?new Y("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:l,TopBannerImageTextIconButtonedLayoutViewModel:T}):[JLQ(a,l,H,R,function(M){var d=M.slotId;M=b(M);var A=T.adLayoutLoggingData,P=new qZ([new IN(T),new ac(y)]);d=UF(m.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);var G={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Rj:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", sb:new Map,layoutExitNormalTriggers:[new ou(m.T,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:P,AN:M(G),adLayoutLoggingData:A}})]}; Cqt=function(a,l,m,T,y,R){if(!R)for(l=g.c(l),R=l.next();!R.done;R=l.next())R=R.value,uM(a,R.renderer,R.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(A){return nnR(A)}); l=[];R=g.c(a);for(var H=R.next(),b={};!H.done;b={t_:void 0},H=R.next()){b.t_=H.value;H=g.c(b.t_.ej);for(var M=H.next(),d={};!M.done;d={jX:void 0},M=H.next())d.jX=M.value,M=function(A,P){return function(G){return A.jX.u9(G,P.t_.instreamVideoAdRenderer.elementId,A.jX.Cw)}}(d,b),d.jX.isContentVideoCompanion?l.push(wX3(m,T,y,b.t_.instreamVideoAdRenderer.elementId,d.jX.associatedCompositePlayerBytesLayoutId,d.jX.adSlotLoggingData,M)):a.length>1?l.push(IIH(m,T,y,b.t_.instreamVideoAdRenderer.elementId,d.jX.adSlotLoggingData, function(A,P){return function(G){return A.jX.u9(G,P.t_.instreamVideoAdRenderer.elementId,A.jX.Cw,A.jX.associatedCompositePlayerBytesLayoutId)}}(d,b))):l.push(IIH(m,T,y,b.t_.instreamVideoAdRenderer.elementId,d.jX.adSlotLoggingData,M))}return l}; uM=function(a,l,m){if(l=Enl(l)){l=g.c(l);for(var T=l.next();!T.done;T=l.next())if((T=T.value)&&T.externalVideoId){var y=Xx(a,T.externalVideoId);y.instreamVideoAdRenderer||(y.instreamVideoAdRenderer=T,y.Jz=m)}else Vu("InstreamVideoAdRenderer without externalVideoId")}}; Enl=function(a){var l=[],m=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.I(a.sandwichedLinearAdRenderer.linearAd,GC);if(m)return l.push(m),l;if(a.instreamVideoAdRenderer)return l.push(a.instreamVideoAdRenderer),l;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.c(a.linearAdSequenceRenderer.linearAds);for(m=a.next();!m.done;m=a.next())m=m.value,g.I(m,GC)&&l.push(g.I(m,GC));return l}return null}; nnR=function(a){if(a.instreamVideoAdRenderer===void 0)return Vu("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var l=g.c(a.ej),m=l.next();!m.done;m=l.next()){m=m.value;if(m.u9===void 0)return!1;if(m.Cw===void 0)return Vu("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.Jz===void 0||m.i5===void 0||a.Jz!==m.i5&&m.i5!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return Vu("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:a.Jz,"matching APSR kind":m.i5}),!1}return!0}; Xx=function(a,l){a.has(l)||a.set(l,{instreamVideoAdRenderer:void 0,Jz:void 0,adVideoId:l,ej:[]});return g.B(a.get(l))}; YP=function(a,l,m,T,y,R,H,b,M){y?Xx(a,y).ej.push({xHj:l,i5:m,isContentVideoCompanion:T,Cw:H,associatedCompositePlayerBytesLayoutId:R,adSlotLoggingData:b,u9:M}):Vu("Companion AdPlacementSupportedRenderer without adVideoId")}; UW=function(a){var l=0;a=g.c(a.questions);for(var m=a.next();!m.done;m=a.next())if(m=m.value,m=g.I(m,S_)||g.I(m,fl)){var T=void 0;l+=((T=m.surveyAdQuestionCommon)==null?void 0:T.durationMilliseconds)||0}return l}; r2=function(a){var l,m,T,y,R=((m=g.I((l=a.questions)==null?void 0:l[0],S_))==null?void 0:m.surveyAdQuestionCommon)||((y=g.I((T=a.questions)==null?void 0:T[0],fl))==null?void 0:y.surveyAdQuestionCommon),H;l=[].concat(g.F(((H=a.playbackCommands)==null?void 0:H.instreamAdCompleteCommands)||[]),g.F((R==null?void 0:R.timeoutCommands)||[]));var b,M,d,A,P,G,V,p,L,N,e,t,v,S,n,X,D,yp,H5,ad;return{impressionCommands:(b=a.playbackCommands)==null?void 0:b.impressionCommands,errorCommands:(M=a.playbackCommands)== null?void 0:M.errorCommands,muteCommands:(d=a.playbackCommands)==null?void 0:d.muteCommands,unmuteCommands:(A=a.playbackCommands)==null?void 0:A.unmuteCommands,pauseCommands:(P=a.playbackCommands)==null?void 0:P.pauseCommands,rewindCommands:(G=a.playbackCommands)==null?void 0:G.rewindCommands,resumeCommands:(V=a.playbackCommands)==null?void 0:V.resumeCommands,skipCommands:(p=a.playbackCommands)==null?void 0:p.skipCommands,progressCommands:(L=a.playbackCommands)==null?void 0:L.progressCommands,Qtu:(N= a.playbackCommands)==null?void 0:N.clickthroughCommands,fullscreenCommands:(e=a.playbackCommands)==null?void 0:e.fullscreenCommands,activeViewViewableCommands:(t=a.playbackCommands)==null?void 0:t.activeViewViewableCommands,activeViewMeasurableCommands:(v=a.playbackCommands)==null?void 0:v.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(S=a.playbackCommands)==null?void 0:S.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(n=a.playbackCommands)== null?void 0:(X=n.activeViewTracking)==null?void 0:X.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(D=a.playbackCommands)==null?void 0:(yp=D.activeViewTracking)==null?void 0:yp.activeViewAudioMeasurableCommands,endFullscreenCommands:(H5=a.playbackCommands)==null?void 0:H5.endFullscreenCommands,abandonCommands:(ad=a.playbackCommands)==null?void 0:ad.abandonCommands,completeCommands:l}}; xD5=function(a,l,m,T,y,R,H){return function(b,M){return onw(a,M.slotId,b,R,function(d,A){var P=M.layoutId;d=H(d);return ah(l,P,A,y,d,"LAYOUT_TYPE_SURVEY",[new Gh(m),T],m.adLayoutLoggingData)})}}; XXt=function(a,l,m,T,y,R,H){if(!DD5(a))return new Y("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var b=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[uAP(R,l,m,T,function(M){var d=M.slotId;M=H(M);d=UF(y.L.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",d);var A={layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Rj:"core"},P=new Sl(y.T,T);return{layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",sb:new Map,layoutExitNormalTriggers:[P], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:new qZ([new Vh(b)]),AN:M(A)}})]}; DD5=function(a){a=g.I(a==null?void 0:a.additionalPlayerOverlay,Y55);if(!a)return!1;var l=a.slidingMessages;return a.title&&l&&l.length!==0?!0:!1}; rLQ=function(a,l,m,T,y){var R;if((R=a.playerOverlay)==null||!R.instreamSurveyAdRenderer)return function(){return[]}; if(!Lf7(a))return function(){return new Y("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})}; var H=a.playerOverlay.instreamSurveyAdRenderer,b=UW(H);return b<=0?function(){return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:H})}:function(M,d){var A=UDl(M,m,T,function(P){var G=P.slotId; P=d(P);var V=r2(H);G=UF(y.L.get(),"LAYOUT_TYPE_SURVEY",G);var p={layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",Rj:"core"},L=new Sl(y.T,T),N=new Dk(y.T,G),e=new lM(y.T,G),t=new lIH(y.T);return{layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",sb:new Map,layoutExitNormalTriggers:[L,t],layoutExitSkipTriggers:[N],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[e],BN:[],Rj:"core",clientMetadata:new qZ([new Pl(H),new ac(l),new Ic(b/1E3),new xk(V)]),AN:P(p),adLayoutLoggingData:H.adLayoutLoggingData}}); M=XXt(a,m,A.slotId,T,y,M,d);return M instanceof Y?M:[A].concat(g.F(M))}}; Hnw=function(a,l,m,T,y,R,H){H=H===void 0?!1:H;var b=[];try{var M=[];if(m.renderer.linearAdSequenceRenderer)var d=function(L){L=aM7(L.slotId,m,l,y(L),T,R,H);M=L.m2j;return L.Jc}; else if(m.renderer.instreamVideoAdRenderer)d=function(L){var N=L.slotId;L=y(L);var e=H,t=m.config.adPlacementConfig,v=lM7(t),S=v.Pa,n=v.G_;v=m.renderer.instreamVideoAdRenderer;var X;if(v==null?0:(X=v.playerOverlay)==null?0:X.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var D=lW(v,e);X=Math.min(S+D.videoLengthSeconds*1E3,n);e=new hV(0,[D.videoLengthSeconds]);n=D.videoLengthSeconds;var yp=D.playerVars,H5=D.instreamAdPlayerOverlayRenderer,ad=D.playerOverlayLayoutRenderer, Md=D.adVideoId,U=mJH(m),Nd=D.sb;D=D.OB;var hz=v==null?void 0:v.adLayoutLoggingData;v=v==null?void 0:v.sodarExtensionData;N=UF(l.L.get(),"LAYOUT_TYPE_MEDIA",N);var EQ={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",Rj:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",sb:Nd,layoutExitNormalTriggers:[new fb(l.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:new qZ([new Hl(T),new FN(n),new hs(yp),new zh(S),new vl(X),H5&&new qb(H5), ad&&new bg(ad),new ac(t),new Rc(Md),new lg(e),new Js(U),v&&new Ki(v),new Nb({current:null}),new sL({}),new XN(D)].filter(Tq5)),AN:L(EQ),adLayoutLoggingData:hz}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var A=yEl(a,T,m.adSlotLoggingData,d);b.push(A);for(var P=g.c(M),G=P.next();!G.done;G=P.next()){var V=G.value,p=V(a,y);if(p instanceof Y)return p;b.push.apply(b,g.F(p))}}catch(L){return new Y(L,{errorMessage:L.message,AdPlacementRenderer:m,numberOfSurveyRenderers:Rcz(m)})}return b}; Rcz=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return a!=null&&a.length?a.filter(function(l){var m,T;return((m=g.I(l,GC))==null?void 0:(T=m.playerOverlay)==null?void 0:T.instreamSurveyAdRenderer)!=null}).length:0}; aM7=function(a,l,m,T,y,R,H){var b=l.config.adPlacementConfig,M=lM7(b),d=M.Pa,A=M.G_;M=(l.renderer.linearAdSequenceRenderer||{}).linearAds;if(M==null||!M.length)throw new TypeError("Expected linear ads");var P=[],G={dJ:d,YF:0,o0M:P};M=M.map(function(p){return qIQ(a,p,G,m,T,b,y,A,H)}).map(function(p,L){L=new hV(L,P); return p(L)}); var V=M.map(function(p){return p.R6}); return{Jc:bnl(m,a,d,V,b,mJH(l),T,A,R),m2j:M.map(function(p){return p.eGT})}}; qIQ=function(a,l,m,T,y,R,H,b,M){var d=lW(g.I(l,GC),M),A=m.dJ,P=m.YF,G=Math.min(A+d.videoLengthSeconds*1E3,b);m.dJ=G;m.YF++;m.o0M.push(d.videoLengthSeconds);var V,p,L=(V=g.I(l,GC))==null?void 0:(p=V.playerOverlay)==null?void 0:p.instreamSurveyAdRenderer;if(d.adVideoId==="nPpU29QrbiU"&&L==null)throw new TypeError("Survey slate media has no survey overlay");return function(N){DD(d.playerVars,N);var e,t,v=d.videoLengthSeconds,S=d.playerVars,n=d.sb,X=d.OB,D=d.instreamAdPlayerOverlayRenderer,yp=d.playerOverlayLayoutRenderer, H5=d.adVideoId,ad=(e=g.I(l,GC))==null?void 0:e.adLayoutLoggingData;e=(t=g.I(l,GC))==null?void 0:t.sodarExtensionData;t=UF(T.L.get(),"LAYOUT_TYPE_MEDIA",a);var Md={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",Rj:"adapter"};N={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",sb:n,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"adapter",clientMetadata:new qZ([new Hl(H),new FN(v),new hs(S),new zh(A),new vl(G),new $k(P),new Nb({current:null}), D&&new qb(D),yp&&new bg(yp),new ac(R),new Rc(H5),new lg(N),e&&new Ki(e),L&&new ug(L),new sL({}),new XN(X)].filter(Tq5)),AN:y(Md),adLayoutLoggingData:ad};v=rLQ(g.I(l,GC),R,H,N.layoutId,T);return{R6:N,eGT:v}}}; lW=function(a,l){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var m=H$(a.playerVars),T=Number(m.length_seconds);if(isNaN(T))throw new TypeError("Expected valid length seconds in player vars");var y=Number(a.trimmedMaxNonSkippableAdDurationMs);T=isNaN(y)?T:Math.min(T,y/1E3);y=a.playerOverlay||{};y=y.instreamAdPlayerOverlayRenderer===void 0?null:y.instreamAdPlayerOverlayRenderer;var R=a.playerOverlay|| {};R=R.playerOverlayLayoutRenderer===void 0?null:R.playerOverlayLayoutRenderer;var H=m.video_id;H||(H=(H=a.externalVideoId)?H:void 0);if(!H)throw new TypeError("Expected valid video id in IVAR");if(l&&T===0){var b;l=(b=grd[H])!=null?b:T}else l=T;return{playerVars:m,videoLengthSeconds:l,instreamAdPlayerOverlayRenderer:y,playerOverlayLayoutRenderer:R,adVideoId:H,sb:a.pings?FM(a.pings):new Map,OB:eJ(a.pings)}}; mJH=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a}; lM7=function(a){var l=a.adTimeOffset||{};a=l.offsetEndMilliseconds;l=Number(l.offsetStartMilliseconds);if(isNaN(l))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{Pa:l,G_:a}}; Mmd=function(a){var l,m=(l=bS(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:l.current;if(!m)return null;l=bS(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var T=a.layoutId,y=bS(a.clientMetadata,"metadata_type_content_cpn"),R=bS(a.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),H=bS(a.clientMetadata,"metadata_type_player_underlay_renderer"),b=bS(a.clientMetadata,"metadata_type_ad_placement_config"),M=bS(a.clientMetadata,"metadata_type_video_length_seconds"); var d=T9(a.clientMetadata,"metadata_type_layout_enter_ms")&&T9(a.clientMetadata,"metadata_type_layout_exit_ms")?(bS(a.clientMetadata,"metadata_type_layout_exit_ms")-bS(a.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Zk:T,contentCpn:y,En:m,m2:l,instreamAdPlayerOverlayRenderer:R,instreamAdPlayerUnderlayRenderer:H,adPlacementConfig:b,videoLengthSeconds:M,tI:d,inPlayerLayoutId:bS(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bS(a.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; jNp=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p){T=V0(T,"SLOT_TYPE_PLAYER_BYTES");a=inQ(y,a,H,m,T,M,d);if(a instanceof Y)return a;var L;d=(L=bS(a.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:L.layoutId;if(!d)return new Y("Invalid adNotify layout");l=dJ7(d,y,R,m,b,l,M,A,P,G,V,p,H);return l instanceof Y?l:[a].concat(g.F(l))}; dJ7=function(a,l,m,T,y,R,H,b,M,d,A,P,G){m=AEd(l,m,T,R,H,b,M,d,A,P,G);if(m instanceof Y)return m;a=PZt(l,a,H,y,m);return a instanceof Y?a:[].concat(g.F(a.K$),[a.E6])}; VmP=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V){l=AEd(a,l,m,y,R,b,M,d,A,P,G,V);if(l instanceof Y)return l;a=G77(a,m,R,H,T,b.Fl,l);return a instanceof Y?a:a.K$.concat(a.E6)}; AEd=function(a,l,m,T,y,R,H,b,M,d,A,P){var G=mc(T,m,d);return G instanceof HU?new Y(G):d.D.Y().experiments.XO("html5_refactor_in_player_slot_generation")?function(V){var p=new hV(0,[G.tP]);V=p8Q(l,G.layoutId,G.Vx,m,TY(G.playerVars,G.t3,R,M,p),G.tP,y,p,H(V),b.get(G.Vx.externalVideoId),P);p=[];if(G.Vx.playerOverlay.instreamAdPlayerOverlayRenderer){var L=Mmd(V);if(!L)return Vu("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,V),{layout:V,K$:[]}; p=[Znd(a,L.contentCpn,L.Zk,function(e){return yS(l,e.slotId,"core",L,AZ(A,e))},L.inPlayerSlotId)].concat(g.F(p)); if(L.instreamAdPlayerUnderlayRenderer&&Rh(d)){var N=L.instreamAdPlayerUnderlayRenderer;p=[WJb(a,L.contentCpn,L.Zk,function(e){return cEw(l,e.slotId,N,L.adPlacementConfig,L.Zk,AZ(A,e))})].concat(g.F(p))}}return{layout:V, K$:p}}:function(V){var p=new hV(0,[G.tP]); return{layout:p8Q(l,G.layoutId,G.Vx,m,TY(G.playerVars,G.t3,R,M,p),G.tP,y,p,H(V),b.get(G.Vx.externalVideoId),P),K$:[]}}}; mc=function(a,l,m){if(!a.playerVars)return new HU("No playerVars available in InstreamVideoAdRenderer.");var T,y;if(a.elementId==null||a.playerVars==null||a.playerOverlay==null||((T=a.playerOverlay)==null?void 0:T.instreamAdPlayerOverlayRenderer)==null&&((y=a.playerOverlay)==null?void 0:y.playerOverlayLayoutRenderer)==null||a.pings==null||a.externalVideoId==null)return new HU("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});T=H$(a.playerVars);y=Number(T.length_seconds); isNaN(y)&&(y=0,Vu("Expected valid length seconds in player vars but got NaN"));if(m.UQ(l.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new HU("Expected server generated layout ID in instreamVideoAdRenderer");l=a.layoutId}else l=a.elementId;return{layoutId:l,Vx:a,playerVars:T,t3:a.playerVars,tP:y}}; TY=function(a,l,m,T,y){a.iv_load_policy=T;l=H$(l);if(l.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(l.cta_conversion_urls)}catch(R){Vu(R)}m.lS&&(a.ctrl=m.lS);m.Rc&&(a.ytr=m.Rc);m.qF&&(a.ytrcc=m.qF);m.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,m.P7&&(a.vss_credentials_token_type=m.P7),m.mdxEnvironment&&(a.mdx_environment=m.mdxEnvironment));DD(a,y);return a}; LJ3=function(a){var l=new Map;a=g.c(a);for(var m=a.next();!m.done;m=a.next())(m=m.value.renderer.remoteSlotsRenderer)&&m.hostElementId&&l.set(m.hostElementId,m);return l}; H1=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; Nqd=function(a){return a!=null}; KJ7=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V){for(var p=[],L=g.c(a),N=L.next();!N.done;N=L.next())if(N=N.value,!ALd(N)&&!Z8R(N)){var e=H1(N)&&!!N.slotEntryTrigger.beforeContentVideoIdStartedTrigger,t=M.UQ(e),v=QNd(N,d,T,m.dk,t);if(v instanceof Y)return v;var S=void 0,n={slotId:N.adSlotMetadata.slotId,slotType:N.adSlotMetadata.slotType,slotPhysicalPosition:(S=N.adSlotMetadata.slotPhysicalPosition)!=null?S:1,Rj:"core",slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers, slotExpirationTriggers:v.slotExpirationTriggers},X=g.I(N.fulfillmentContent.fulfilledLayout,h_);if(X){if(!Fx(X))return new Y("Invalid PlayerBytesAdLayoutRenderer");S=P&&!(H1(N)&&N.slotEntryTrigger.beforeContentVideoIdStartedTrigger);v=v.slotFulfillmentTriggers.some(function(D){return D instanceof JV}); t=S?tm3(n,N.adSlotMetadata.triggerEvent,X,m,T,R,d,a,t,G,v,V):ecp(n,N.adSlotMetadata.triggerEvent,X,l,m,T,y,R,H,b,M,d,a,A,t,N.adSlotMetadata.triggeringSourceLayoutId);if(t instanceof Y)return t;v=[];H1(N)&&v.push(new lS({hC:H1(N)&&!!N.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));S&&v.push(new sL({}));m.Fl&&v.push(new D0({}));v.push(new rz(e));N=Object.assign({},n,{clientMetadata:new qZ(v),fulfilledLayout:t.layout,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});p.push.apply(p,g.F(t.K$)); p.push(N)}else if(e=g.I(N.fulfillmentContent.fulfilledLayout,$P)){if(!j7p(e))return new Y("Invalid PlayerUnderlayAdLayoutRenderer");e=FJQ(e,T,m.dk,R,n,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof Y)return e;N=Object.assign({},n,{clientMetadata:new qZ([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});p.push(N)}else if(e=g.I(N.fulfillmentContent.fulfilledLayout,GNt)){if(!RAb(e))return new Y("Invalid AboveFeedAdLayoutRenderer");e= hcH(e,T,m.dk,R,n,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof Y)return e;N=Object.assign({},n,{clientMetadata:new qZ([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});p.push(N)}else if(e=g.I(N.fulfillmentContent.fulfilledLayout,V27)){if(!y1(e.adLayoutMetadata)||!g.I(e.renderingContent,Rn))return new Y("Invalid BelowPlayerAdLayoutRenderer");e=hcH(e,T,m.dk,R,n,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId); if(e instanceof Y)return e;N=Object.assign({},n,{clientMetadata:new qZ([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});p.push(N)}else if(e=g.I(N.fulfillmentContent.fulfilledLayout,sW)){if(!Kl(e))return new Y("Invalid PlayerBytesSequenceItemAdLayoutRenderer");e=OnP(e,T,m.dk,R,n,N.adSlotMetadata.triggerEvent);if(e instanceof Y)return e;N=Object.assign({},n,{clientMetadata:new qZ([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});p.push(N)}else return new Y("Unable to retrieve a client slot ["+ n.slotType+"] from a given AdSlotRenderer")}return p}; OnP=function(a,l,m,T,y,R){var H={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Rj:"core"};l=q3(a,l,m);return l instanceof Y?l:(m=g.I(a.renderingContent,OW))&&m.pings?Object.assign({},H,{renderingContent:a.renderingContent,sb:FM(m.pings)},l,{AN:AZ(T,y)(H),clientMetadata:new qZ([new ac(bW(R))]),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData}):new Y("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; hcH=function(a,l,m,T,y,R,H){var b={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Rj:"core"};l=q3(a,l,m);if(l instanceof Y)return l;m=[];m.push(new ac(bW(R)));R==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&H!==void 0&&m.push(new pi(H));return Object.assign({},b,{renderingContent:a.renderingContent,sb:new Map([["impression",zc3(a)]])},l,{AN:AZ(T,y)(b),clientMetadata:new qZ(m),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}; FJQ=function(a,l,m,T,y,R,H){if(a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(H=g.I(a.renderingContent,zC))if(H=g.I(H.sidePanel,i87)){var b={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Rj:"core"};l=q3(a,l,m);a=l instanceof Y?l:Object.assign({},b,{renderingContent:a.renderingContent,sb:new Map([["impression",H.impressionPings||[]],["resume",H.resumePings||[]]])},l,{AN:AZ(T,y)(b),clientMetadata:new qZ([new ac(bW(R))]),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}else a= new Y("DismissablePanelTextPortraitImageRenderer is missing");else a=new Y("SqueezebackPlayerSidePanelRenderer is missing");else a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.I(a.renderingContent,b8H)?(H={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Rj:"core"},l=q3(a,l,m),a=l instanceof Y?l:Object.assign({},H,{renderingContent:a.renderingContent,sb:new Map},l,{AN:AZ(T,y)(H),clientMetadata:new qZ([new ac(bW(R))]),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})): a=new Y("CounterfactualRenderer is missing"):a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?a=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?a=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.I(a.renderingContent,v_)?(R={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType, Rj:"core"},l=q3(a,l,m),a=l instanceof Y?l:H?Object.assign({},R,{renderingContent:a.renderingContent,sb:new Map},l,{AN:AZ(T,y)(R),clientMetadata:new qZ([new pi(H)]),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData}):new Y("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):a=new Y("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.I(a.renderingContent,gn5)? (R={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Rj:"core"},l=q3(a,l,m),a=l instanceof Y?l:Object.assign({},R,{renderingContent:a.renderingContent,sb:new Map([])},l,{AN:AZ(T,y)(R),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new qZ([])})):a=new Y("AdsEngagementPanelSectionListViewModel is missing"):a=new Y("LayoutType ["+a.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return a}; tm3=function(a,l,m,T,y,R,H,b,M,d,A,P){if((P==null?void 0:P.B5)===void 0||(P==null?void 0:P.VF)===void 0)return new Y("Cached ad break range from cue point is missing");var G=q3(m,y,T.dk);if(G instanceof Y)return G;G={layoutExitMuteTriggers:[],layoutExitNormalTriggers:G.layoutExitNormalTriggers,layoutExitSkipTriggers:[],BN:[],layoutExitUserInputSubmittedTriggers:[]};if(g.I(m.renderingContent,GC))return a=vrb(a,l,m,G,y,R,b,M,T.dk,H,P.B5,P.VF),a instanceof Y?a:a.kf===void 0?new Y("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:a.layout,K$:[a.kf]};var V=g.I(m.renderingContent,A_);if(V){if(!y1(m.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!P_(V))return new Y("Invalid sequential layout");V=V.sequentialLayouts.map(function(p){return p.playerBytesAdLayoutRenderer}); a=$Jz(a,l,m,G,V,y,T,R,H,M,b,d,P.B5,P.VF,A);return a instanceof Y?a:{layout:a.LA,K$:a.K$}}return new Y("Not able to convert a sequential layout")}; $Jz=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p){var L=sN5(y,G,V);if(L instanceof Y)return L;var N=[],e=[];L=g.c(L);for(var t=L.next();!t.done;t=L.next()){var v=t.value;t=a;var S=y[v.YF],n=v,X=l;v=R;var D=H,yp=b,H5=M,ad=d,Md=A,U=gT(S);if(U instanceof Y)t=U;else{var Nd={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,Rj:"adapter"};n=SI5(X,S,n,v);n instanceof Y?t=n:(t=Object.assign({},Nd,M3,{sb:U,renderingContent:S.renderingContent,clientMetadata:new qZ(n),AN:AZ(yp,t)(Nd),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData}), t=(S=iW(Md,t,v,D.dk,yp,H5,ad,void 0,!0))?S instanceof Y?S:{layout:t,kf:S}:new Y("Expecting associatedInPlayerSlot"))}if(t instanceof Y)return t;N.push(t.layout);e.push(t.kf)}y={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Rj:"core"};l=[new Js(Number(m.driftRecoveryMs)),new zh(G),new vl(V),new ac(bW(l)),new UL(P),new sL({})];p&&l.push(new mK({}));return{LA:Object.assign({},y,T,{Q5:N,sb:new Map,clientMetadata:new qZ(l),AN:AZ(b,a)(y)}),K$:e}}; vrb=function(a,l,m,T,y,R,H,b,M,d,A,P){if(!Fx(m))return new Y("Invalid PlayerBytesAdLayoutRenderer");var G=gT(m);if(G instanceof Y)return G;var V={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Rj:"core"},p=g.I(m.renderingContent,GC);if(!p)return new Y("Invalid rendering content for DAI media layout");p=lW(p,!1);A={rr:p,YF:0,dJ:A,iW:Math.min(A+p.videoLengthSeconds*1E3,P),Qx:new hV(0,[p.videoLengthSeconds])};var L;P=(L=Number(m.driftRecoveryMs))!=null?L:void 0;l=SI5(l, m,A,y,P);if(l instanceof Y)return l;a=Object.assign({},V,T,{sb:G,renderingContent:m.renderingContent,clientMetadata:new qZ(l),AN:AZ(R,a)(V),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return(y=iW(H,a,y,M,R,d,b,void 0,!0))?y instanceof Y?y:{layout:a,kf:y}:new Y("Expecting associatedInPlayerSlot")}; ecp=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p,L){var N=q3(m,R,y.dk);if(N instanceof Y)return N;if(g.I(m.renderingContent,GC)){M=fMR([m],y,M);if(M instanceof Y)return M;if(M.length!==1)return new Y("Only expected one media layout.");a=JEH(a,l,m,N,M[0],void 0,"core",T,R,H,b,d,G,V,p,y.dk,P,void 0,L);return a instanceof Y?a:{layout:a.layout,K$:a.kf?[a.kf]:[]}}var e=g.I(m.renderingContent,A_);if(e){if(!y1(m.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!P_(e))return new Y("Invalid sequential layout"); e=e.sequentialLayouts.map(function(t){return t.playerBytesAdLayoutRenderer}); a=Bqw(a,l,m.adLayoutMetadata,N,e,T,R,y,M,H,b,d,A,P,p,G,V,L);return a instanceof Y?a:{layout:a.LA,K$:a.K$}}return new Y("Not able to convert a sequential layout")}; Bqw=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V,p,L,N,e){var t=new yh({current:null}),v=fMR(y,b,M);if(v instanceof Y)return v;M=[];for(var S=[],n=void 0,X=0;X0&&(X.push(e),X.push(new Th(n.adPodSkipTarget)));(R=d.get(n.externalVideoId))&&X.push(new wz(R));R=X}else R=new Y("Invalid vod media renderer")}if(R instanceof Y)return R;a=Object.assign({},H,T,{sb:v,renderingContent:m.renderingContent,clientMetadata:new qZ(R),AN:AZ(A,a)(H),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});m=g.I(m.renderingContent,GC);if(!m||!j_(m))return new Y("Invalid meida renderer");P=Xx(P,m.externalVideoId);P.instreamVideoAdRenderer=m;P.Jz="AD_PLACEMENT_KIND_START";return V?(M=iW(G,a,M,L,A,N,p,e,!1),M instanceof Y?M:w8d(a.layoutId,G)&&M?{layout:Object.assign({},a,{clientMetadata:new qZ(R.concat(new ig(M)))})}:{layout:a,kf:M}): {layout:a}}; k7w=function(a,l,m,T,y){if(!Fx(l))return new Y("Invalid PlayerBytesAdLayoutRenderer");var R=g.I(l.renderingContent,MN);if(!R||R.durationMilliseconds===void 0)return new Y("Invalid endcap renderer");var H={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,Rj:"adapter"};T=[new Ci(R.durationMilliseconds),new xk({impressionCommands:void 0,abandonCommands:R.abandonCommands?[{commandExecutorCommand:R.abandonCommands}]:void 0,completeCommands:R.completionCommands}),new ac(T), new Wl("LAYOUT_TYPE_ENDCAP")];if(y){T.push(new mD(y.Qx.adPodIndex-1));T.push(new $k(y.Qx.adPodIndex));var b;T.push(new Th((b=y.adPodSkipTarget)!=null?b:-1))}return Object.assign({},H,M3,{renderingContent:l.renderingContent,clientMetadata:new qZ(T),sb:R.skipPings?new Map([["skip",R.skipPings]]):new Map,AN:AZ(m,a)(H),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData})}; iW=function(a,l,m,T,y,R,H,b,M){a=a.filter(function(A){return A.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&A.adSlotMetadata.triggeringSourceLayoutId===l.layoutId}); if(a.length!==0){if(a.length!==1)return new Y("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];H=QNd(a,R,m,T,H);if(H instanceof Y)return H;var d;R={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(d=a.adSlotMetadata.slotPhysicalPosition)!=null?d:1,Rj:"core",slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,slotExpirationTriggers:H.slotExpirationTriggers};d=g.I(a.fulfillmentContent.fulfilledLayout, Pqt);if(!d||!q5R(d))return new Y("Invalid InPlayerAdLayoutRenderer");H={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,Rj:"core"};m=q3(d,m,T);if(m instanceof Y)return m;T=[];M&&T.push(new sL({}));if(d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")T.push.apply(T,g.F(IMl(a.adSlotMetadata.triggerEvent,l)));else if(d.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")T.push(new ac(bW(a.adSlotMetadata.triggerEvent))),b&&T.push(b);else return new Y("Not able to parse an SDF InPlayer layout"); y=Object.assign({},H,m,{renderingContent:d.renderingContent,sb:new Map,AN:AZ(y,R)(H),clientMetadata:new qZ(T),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},R,{fulfilledLayout:y,clientMetadata:new qZ([])})}}; IMl=function(a,l){var m=[];m.push(new ac(bW(a)));m.push(new pi(l.layoutId));(a=bS(l.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&m.push(new Nb(a));(a=bS(l.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&m.push(new yh(a));(a=bS(l.clientMetadata,"metadata_type_remote_slots_data"))&&m.push(new wz(a));(a=bS(l.clientMetadata,"metadata_type_ad_next_params"))&&m.push(new oN(a));(a=bS(l.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&m.push(new xr(a));(a= bS(l.clientMetadata,"metadata_type_ad_pod_info"))&&m.push(new lg(a));(l=bS(l.clientMetadata,"metadata_type_ad_video_id"))&&m.push(new Rc(l));return m}; nrd=function(a,l,m,T,y,R){function H(d){return dT(l,d)} var b=T.IX.inPlayerSlotId,M={layoutId:T.IX.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Rj:"core"};m={slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:new $c(H,a),slotFulfillmentTriggers:[new uy(H,b)],slotExpirationTriggers:[new X$(H,b),new ou(H,m)]};a=Object.assign({},M,{layoutExitNormalTriggers:[new Sl(H,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],sb:new Map,clientMetadata:new qZ([new jr(T.IX), new ac(T.adPlacementConfig),y]),AN:AZ(R,m)(M),adLayoutLoggingData:T.IX.adLayoutLoggingData});return Object.assign({},m,{clientMetadata:new qZ([new Bl(a)])})}; w8d=function(a,l){l=g.c(l);for(var m=l.next();!m.done;m=l.next())if(m=m.value,m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var T=g.I(m.fulfillmentContent.fulfilledLayout,$P);if(T&&(T=g.I(T.renderingContent,zC))&&T.associatedPlayerBytesLayoutId===a)return m}}; QNd=function(a,l,m,T,y){var R=CZt(xP(a.slotEntryTrigger,m,T),y,a,l);if(R instanceof Y)return R;for(var H=[],b=g.c(a.slotFulfillmentTriggers),M=b.next();!M.done;M=b.next()){M=xP(M.value,m,T);if(M instanceof Y)return M;H.push(M)}H=Erz(H,y,a,l);l=[];a=g.c(a.slotExpirationTriggers);for(y=a.next();!y.done;y=a.next()){y=xP(y.value,m,T);if(y instanceof Y)return y;l.push(y)}return{slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:l}}; CZt=function(a,l,m,T){return l&&m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof Of?new F$(function(y){return dT(T,y)},m.adSlotMetadata.slotId):a}; Erz=function(a,l,m,T){return l&&m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(y){return y instanceof uy?new rk(function(R){return dT(T,R)},m.adSlotMetadata.slotId):y}):a}; q3=function(a,l,m){for(var T=[],y=g.c(a.layoutExitNormalTriggers||[]),R=y.next();!R.done;R=y.next()){R=xP(R.value,l,m);if(R instanceof Y)return R;T.push(R)}y=[];R=g.c(a.layoutExitSkipTriggers||[]);for(var H=R.next();!H.done;H=R.next()){H=xP(H.value,l,m);if(H instanceof Y)return H;y.push(H)}R=[];H=g.c(a.layoutExitMuteTriggers||[]);for(var b=H.next();!b.done;b=H.next()){b=xP(b.value,l,m);if(b instanceof Y)return b;R.push(b)}H=[];a=g.c(a.layoutExitUserInputSubmittedTriggers||[]);for(b=a.next();!b.done;b= a.next()){b=xP(b.value,l,m);if(b instanceof Y)return b;H.push(b)}return{layoutExitNormalTriggers:T,layoutExitSkipTriggers:y,layoutExitMuteTriggers:R,layoutExitUserInputSubmittedTriggers:H,BN:[]}}; gT=function(a){var l=g.I(a.renderingContent,GC);if(l==null?0:l.pings)return FM(l.pings);a=g.I(a.renderingContent,MN);return(a==null?0:a.skipPings)?new Map([["skip",a.skipPings]]):new Map}; SI5=function(a,l,m,T,y){l=g.I(l.renderingContent,GC);if(!l)return new Y("Invalid rendering content for DAI media layout");a=[new Hl(T),new FN(m.rr.videoLengthSeconds),new hs(m.rr.playerVars),new zh(m.dJ),new vl(m.iW),new $k(m.YF),new ac(bW(a)),new Rc(m.rr.adVideoId),new lg(m.Qx),l.sodarExtensionData&&new Ki(l.sodarExtensionData),new Nb({current:null}),new sL({}),new XN(eJ(l.pings))].filter(Nqd);y!==void 0&&a.push(new Js(y));return a}; sN5=function(a,l,m){a=a.map(function(M){return lW(g.I(M.renderingContent,GC),!1)}); var T=a.map(function(M){return M.videoLengthSeconds}),y=T.map(function(M,d){return new hV(d,T)}),R=l,H=m,b=[]; a.forEach(function(M,d){H=Math.min(R+M.videoLengthSeconds*1E3,m);DD(M.playerVars,y[d]);b.push({rr:M,dJ:R,iW:H,YF:d,Qx:y[d]});R=H}); return b}; fMR=function(a,l,m){for(var T=[],y=g.c(a),R=y.next();!R.done;R=y.next())if(R=g.I(R.value.renderingContent,GC)){if(!j_(R))return new Y("Invalid vod media renderer");T.push(orw(R))}y=T.map(function(P){return P.tP}); R=[];for(var H=0,b=0;b0?ad:-1;else if(Nd=g.I(U,MN)){U=Tzw(a,l,m, Nd,R,L,b,D,ad);if(U instanceof Y){V=U;break a}U=U(G);N.push(U.oY);e=[].concat(g.F(U.Z3),g.F(e));t=[].concat(g.F(U.vI),g.F(t));U.kf&&(H5=[U.kf].concat(g.F(H5)))}else if(Nd=g.I(U,t_)){if(V===void 0){V=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Nd});break a}U=HiQ(a,l,m,R,Nd,X,b,V,L,YI(A,"supports_multi_step_on_desktop"));if(U instanceof Y){V=U;break a}U=U(G);N.push(U.oY);U.kf&&H5.push(U.kf);e=[].concat(g.F(U.Z3),g.F(e));t=[].concat(g.F(U.vI), g.F(t));v=[].concat(g.F(U.Wb),g.F(v));S=[].concat(g.F(U.kZ),g.F(S));n=[X].concat(g.F(n))}else if(U=g.I(U,e_)){U=qLQ(a,l,m,R,U,X,b,L);if(U instanceof Y){V=U;break a}U=U(G);N.push(U.oY);U.kf&&H5.push(U.kf);t=[].concat(g.F(U.vI),g.F(t))}else{V=new Y("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}V={Q5:N,layoutExitSkipTriggers:e,layoutExitUserInputSubmittedTriggers:v,BN:S,layoutExitMuteTriggers:t,bI:n,K$:H5}}}else a:if(L=Pg7(T,m,A),L instanceof Y)V=L;else{N=0;e=[];t=[];v=[];S=[];n= [];X=[];D=new Qh({current:null});yp=new yh({current:null});H5=!1;Md=[];ad=-1;p=g.c(T);for(U=p.next();!U.done;U=p.next())if(U=U.value,g.I(U,Q1)){U=ys7(l,m,g.I(U,Q1),b);if(U instanceof Y){V=U;break a}U=U(G);e.push(U.oY);t=[].concat(g.F(U.Z3),g.F(t));v=[].concat(g.F(U.vI),g.F(v));U.kf&&(Md=[U.kf].concat(g.F(Md)))}else if(g.I(U,GC)){ad=mc(g.I(U,GC),m,A);if(ad instanceof HU){V=new Y(ad);break a}U=new hV(N,L);U=Ghd(l,ad.layoutId,ad.Vx,m,TY(ad.playerVars,ad.t3,H,d,U),ad.tP,R,U,b(G),yp,M.get(ad.Vx.externalVideoId), void 0,P);N++;e.push(U.oY);t=[].concat(g.F(U.Z3),g.F(t));v=[].concat(g.F(U.vI),g.F(v));H5||(X.push(yp),H5=!0);ad=(ad=ad.Vx.adPodSkipTarget)&&ad>0?ad:-1}else if(g.I(U,MN)){U=Tzw(a,l,m,g.I(U,MN),R,N,b,yp,ad);if(U instanceof Y){V=U;break a}U=U(G);e.push(U.oY);t=[].concat(g.F(U.Z3),g.F(t));v=[].concat(g.F(U.vI),g.F(v));U.kf&&(Md=[U.kf].concat(g.F(Md)))}else if(g.I(U,t_)){if(V===void 0){V=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.I(U, t_)});break a}U=HiQ(a,l,m,R,g.I(U,t_),D,b,V,N,YI(A,"supports_multi_step_on_desktop"));if(U instanceof Y){V=U;break a}U=U(G);e.push(U.oY);U.kf&&Md.push(U.kf);t=[].concat(g.F(U.Z3),g.F(t));v=[].concat(g.F(U.vI),g.F(v));S=[].concat(g.F(U.Wb),g.F(S));n=[].concat(g.F(U.kZ),g.F(n));X=[D].concat(g.F(X))}else if(g.I(U,e_)){U=qLQ(a,l,m,R,g.I(U,e_),D,b,N);if(U instanceof Y){V=U;break a}U=U(G);e.push(U.oY);U.kf&&Md.push(U.kf);v=[].concat(g.F(U.vI),g.F(v))}else{V=new Y("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}V={Q5:e,layoutExitSkipTriggers:t,layoutExitUserInputSubmittedTriggers:S,BN:n,layoutExitMuteTriggers:v,bI:X,K$:Md}}V instanceof Y?G=V:(n=G.slotId,L=V.Q5,N=V.layoutExitSkipTriggers,e=V.layoutExitMuteTriggers,t=V.layoutExitUserInputSubmittedTriggers,v=V.bI,G=b(G),S=y?y.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",n=y?y.layoutId:UF(l.L.get(),S,n),X={layoutId:n,layoutType:S,Rj:"core"},G={layout:{layoutId:n,layoutType:S,sb:new Map,layoutExitNormalTriggers:[new Ef(l.T,n)],layoutExitSkipTriggers:N, layoutExitMuteTriggers:e,layoutExitUserInputSubmittedTriggers:t,BN:[],Rj:"core",clientMetadata:new qZ([new ts(L)].concat(g.F(v))),AN:G(X)},K$:V.K$});return G}}; Pg7=function(a,l,m){var T=[];a=g.c(a);for(var y=a.next();!y.done;y=a.next())if(y=y.value,g.I(y,GC)){y=mc(g.I(y,GC),l,m);if(y instanceof HU)return new Y(y);T.push(y.tP)}return T}; pld=function(a,l,m,T,y,R,H,b){if(!cLd(m,b===void 0?!1:b))return new Y("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:m});var M=UW(m);if(M<=0)return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:m});var d=new Qh({current:null}),A=xD5(a,l,m,d,T,R,H);return Vrb(a,T,R,M,y,function(P,G){var V=P.slotId,p=r2(m);P=H(P);var L,N=(L=GY(l,T,m.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?L: UF(l.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",V);V={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rj:"core"};L=A(N,G);var e=bS(L.clientMetadata,"metadata_type_fulfilled_layout");e||Vu("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");p=[new ac(T),new Ci(M),new xk(p),d];e&&p.push(new Wl(e.layoutType));return{UjL:{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",sb:new Map,layoutExitNormalTriggers:[new Ef(l.T,N)],layoutExitSkipTriggers:[new Dk(l.T, G.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new lM(l.T,G.layoutId)],BN:[],Rj:"core",clientMetadata:new qZ(p),AN:P(V)},qb:L}})}; Zi7=function(a){if(!Q7l(a))return!1;var l=g.I(a.adVideoStart,c1);return l?g.I(a.linearAd,GC)&&iM(l)?!0:(Vu("Invalid Sandwich with notify"),!1):!1}; WDd=function(a){if(a.linearAds==null)return!1;a=g.I(a.adStart,c1);return a?iM(a)?!0:(Vu("Invalid LASR with notify"),!1):!1}; csw=function(a){if(!NsH(a))return!1;a=g.I(a.adStart,c1);return a?iM(a)?!0:(Vu("Invalid LASR with notify"),!1):!1}; L3=function(a,l,m,T,y,R,H,b,M,d){this.j=a;this.L=l;this.T=m;this.ZK=T;this.zE=y;this.Z=R;this.EL=H;this.lx=b;this.wN=M;this.loadPolicy=d===void 0?1:d}; EW=function(a,l,m,T,y,R,H,b,M,d){var A=[];if(l.length===0&&T.length===0&&m.length===0)return A;l=l.filter(d2);var P=m.filter(pXw),G=T.filter(d2),V=new Map,p=LJ3(l),L=m.some(function(hz){var EQ;return(hz==null?void 0:(EQ=hz.adSlotMetadata)==null?void 0:EQ.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),N=m.some(function(hz){var EQ; return(hz==null?void 0:(EQ=hz.adSlotMetadata)==null?void 0:EQ.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),e=m.some(function(hz){var EQ; return(hz==null?void 0:(EQ=hz.adSlotMetadata)==null?void 0:EQ.slotType)==="SLOT_TYPE_IN_PLAYER"}),t=m.some(function(hz){var EQ,ec; return(hz==null?void 0:(EQ=hz.adSlotMetadata)==null?void 0:EQ.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(hz==null?void 0:(ec=hz.adSlotMetadata)==null?void 0:ec.slotType)==="SLOT_TYPE_ABOVE_FEED"}); m=m.some(function(hz){var EQ;return(hz==null?void 0:(EQ=hz.adSlotMetadata)==null?void 0:EQ.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(L||N||e||t||m)d=KJ7(P,l,b,y,p,a.zE.get(),a.loadPolicy,V,a.ZK.get(),a.j.get(),e,H,M,d),d instanceof Y?Vu(d,void 0,void 0,{contentCpn:y}):A.push.apply(A,g.F(d));d=g.c(l);for(m=d.next();!m.done;m=d.next())m=m.value,N=LD5(a,V,m,y,R,H,L,b,p,M,P),N instanceof Y?Vu(N,void 0,void 0,{renderer:m.renderer,config:m.config.adPlacementConfig,kind:m.config.adPlacementConfig.kind,contentCpn:y,daiEnabled:H}):A.push.apply(A,g.F(N));Nzw(a.ZK.get())||(R=QcH(a,G,y,b,p,V),A.push.apply(A,g.F(R)));if(a.Z===null||H&&!b.pT){var v, S,n;a=b.Fl&&l.length===1&&((v=l[0].config)==null?void 0:(S=v.adPlacementConfig)==null?void 0:S.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((n=l[0].renderer)==null?void 0:n.adBreakServiceRenderer);if(!A.length&&!a){var X,D,yp,H5;Vu("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":l.length,contentCpn:y,"first APR kind":(X=l[0])==null?void 0:(D=X.config)==null?void 0:(yp=D.adPlacementConfig)==null?void 0:yp.kind,renderer:(H5=l[0])==null?void 0: H5.renderer})}return A}v=T.filter(d2);A.push.apply(A,g.F(Cqt(V,v,a.L.get(),a.Z,y,L)));if(!A.length){var ad,Md,U,Nd;Vu("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":l.length,contentCpn:y,daiEnabled:H.toString(),"first APR kind":(ad=l[0])==null?void 0:(Md=ad.config)==null?void 0:(U=Md.adPlacementConfig)==null?void 0:U.kind,renderer:(Nd=l[0])==null?void 0:Nd.renderer})}return A}; QcH=function(a,l,m,T,y,R){function H(G){return AZ(a.zE.get(),G)} var b=[];l=g.c(l);for(var M=l.next();!M.done;M=l.next()){M=M.value;var d=M.renderer,A=d.sandwichedLinearAdRenderer,P=d.linearAdSequenceRenderer;A&&Zi7(A)?(Vu("Found AdNotify with SandwichedLinearAdRenderer"),P=g.I(A.adVideoStart,c1),A=g.I(A.linearAd,GC),uM(R,d,M.config.adPlacementConfig.kind),d=void 0,P=dJ7((d=P)==null?void 0:d.layout.layoutId,a.L.get(),a.T.get(),M.config.adPlacementConfig,M.adSlotLoggingData,A,m,T,H,y,a.loadPolicy,a.ZK.get(),a.zE.get()),P instanceof Y?Vu(P):b.push.apply(b,g.F(P))): P&&(!P.adLayoutMetadata&&WDd(P)||P.adLayoutMetadata&&csw(P))&&(Vu("Found AdNotify with LinearAdSequenceRenderer"),uM(R,d,M.config.adPlacementConfig.kind),d=void 0,A=bi7((d=g.I(P.adStart,c1))==null?void 0:d.layout.layoutId,a.L.get(),a.T.get(),M.config.adPlacementConfig,M.adSlotLoggingData,P.linearAds,y1(P.adLayoutMetadata)?P.adLayoutMetadata:void 0,m,T,H,y,a.loadPolicy,a.ZK.get()),A instanceof Y?Vu(A):b.push.apply(b,g.F(A)))}return b}; LD5=function(a,l,m,T,y,R,H,b,M,d,A){function P(e){return AZ(a.zE.get(),e)} var G=m.renderer,V=m.config.adPlacementConfig,p=V.kind,L=m.adSlotLoggingData,N=b.pT&&p==="AD_PLACEMENT_KIND_START";N=R&&!N;if(G.adsEngagementPanelRenderer!=null)return YP(l,m.elementId,p,G.adsEngagementPanelRenderer.isContentVideoEngagementPanel,G.adsEngagementPanelRenderer.adVideoId,G.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,V,L,function(e,t,v,S){var n=a.T.get(),X=e.slotId,D=G.adsEngagementPanelRenderer;e=AZ(a.zE.get(),e);return N3(n,X,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Cn(D),t,v,D.impressionPings,e,G.adsEngagementPanelRenderer.adLayoutLoggingData,S)}),[]; if(G.adsEngagementPanelLayoutViewModel)return YP(l,m.elementId,p,G.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,G.adsEngagementPanelLayoutViewModel.adVideoId,G.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,L,function(e,t,v,S){var n=a.T.get(),X=e.slotId,D=G.adsEngagementPanelLayoutViewModel;e=AZ(a.zE.get(),e);return QS(n,X,"LAYOUT_TYPE_PANEL",new EI(D),t,v,e,G.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,S)}),[]; if(G.actionCompanionAdRenderer!=null){if(G.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return BsP(a.L.get(),a.Z,a.T.get(),G.actionCompanionAdRenderer,V,L,T,P);YP(l,m.elementId,p,G.actionCompanionAdRenderer.isContentVideoCompanion,G.actionCompanionAdRenderer.adVideoId,G.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,V,L,function(e,t,v,S){var n=a.T.get(),X=e.slotId,D=G.actionCompanionAdRenderer;e=AZ(a.zE.get(),e);return N3(n,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new wq(D),t,v,D.impressionPings,e,G.actionCompanionAdRenderer.adLayoutLoggingData,S)})}else if(G.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(G.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return kNp(a.L.get(),a.Z,a.T.get(),G.topBannerImageTextIconButtonedLayoutViewModel,V,L,T,P); YP(l,m.elementId,p,G.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,G.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,G.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,L,function(e,t,v,S){var n=a.T.get(),X=e.slotId,D=G.topBannerImageTextIconButtonedLayoutViewModel;e=AZ(a.zE.get(),e);return QS(n,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new IN(D),t,v,e,G.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,S)})}else if(G.imageCompanionAdRenderer)YP(l, m.elementId,p,G.imageCompanionAdRenderer.isContentVideoCompanion,G.imageCompanionAdRenderer.adVideoId,G.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,V,L,function(e,t,v,S){var n=a.T.get(),X=e.slotId,D=G.imageCompanionAdRenderer; e=AZ(a.zE.get(),e);return N3(n,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new uZ(D),t,v,D.impressionPings,e,G.imageCompanionAdRenderer.adLayoutLoggingData,S)}); else if(G.bannerImageLayoutViewModel)YP(l,m.elementId,p,G.bannerImageLayoutViewModel.isContentVideoCompanion,G.bannerImageLayoutViewModel.adVideoId,G.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,L,function(e,t,v,S){var n=a.T.get(),X=e.slotId,D=G.bannerImageLayoutViewModel;e=AZ(a.zE.get(),e);return QS(n,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new XC(D),t,v,e,G.bannerImageLayoutViewModel.adLayoutLoggingData,S)}); else if(G.shoppingCompanionCarouselRenderer)YP(l,m.elementId,p,G.shoppingCompanionCarouselRenderer.isContentVideoCompanion,G.shoppingCompanionCarouselRenderer.adVideoId,G.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,V,L,function(e,t,v,S){var n=a.T.get(),X=e.slotId,D=G.shoppingCompanionCarouselRenderer;e=AZ(a.zE.get(),e);return N3(n,X,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Yr(D),t,v,D.impressionPings,e,G.shoppingCompanionCarouselRenderer.adLayoutLoggingData,S)}); else if(G.adBreakServiceRenderer){if(!fIP(m))return[];if(p==="AD_PLACEMENT_KIND_PAUSE")return S5l(a.L.get(),V,L,m.renderer.adBreakServiceRenderer,T);if(p!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&p!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return s7w(a.L.get(),V,L,m.renderer.adBreakServiceRenderer,T,y,R);b.Fl||Vu("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:p,adPlacementConfig:V,daiEnabledForContentVideo:String(R),isServedFromLiveInfra:String(b.Fl),clientPlaybackNonce:b.clientPlaybackNonce}); if(p==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.EL)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!a.wN)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");a.wN.xO({adPlacementRenderer:m,contentCpn:T,dk:y});y=tl(a.EL.get());return trd(a.L.get(),m.renderer.adBreakServiceRenderer,V,y,T,L,R)}if(!a.lx)return new Y("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); a.lx.xO({adPlacementRenderer:m,contentCpn:T,dk:y})}else{if(G.clientForecastingAdRenderer)return X8l(a.L.get(),a.T.get(),V,L,G.clientForecastingAdRenderer,T,y,P);if(G.invideoOverlayAdRenderer)return a0Q(a.L.get(),a.T.get(),V,L,G.invideoOverlayAdRenderer,T,y,P);if(G.instreamAdPlayerOverlayRenderer)return UJd(a.L.get(),a.T.get(),V,L,G.instreamAdPlayerOverlayRenderer,T,P);if((G.linearAdSequenceRenderer||G.instreamVideoAdRenderer)&&N)return Hnw(a.L.get(),a.T.get(),m,T,P,d,eEd(a.ZK.get()));if(G.linearAdSequenceRenderer&& !N){if(H)return[];uM(l,G,p);if(G.linearAdSequenceRenderer.adLayoutMetadata){if(!NsH(G.linearAdSequenceRenderer))return new Y("Received invalid LinearAdSequenceRenderer.")}else if(G.linearAdSequenceRenderer.linearAds==null)return new Y("Received invalid LinearAdSequenceRenderer.");if(g.I(G.linearAdSequenceRenderer.adStart,c1)){Vu("Found AdNotify in LinearAdSequenceRenderer");m=g.I(G.linearAdSequenceRenderer.adStart,c1);if(!H8w(m))return new Y("Invalid AdMessageRenderer.");R=G.linearAdSequenceRenderer.linearAds; return gk3(a.j.get(),a.L.get(),a.T.get(),a.zE.get(),V,L,m,y1(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,R,T,y,b,P,M,a.loadPolicy,a.ZK.get())}return As7(a.L.get(),a.T.get(),V,L,G.linearAdSequenceRenderer.linearAds,y1(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,T,y,b,P,M,a.loadPolicy,a.ZK.get(),A)}if(!G.remoteSlotsRenderer||R){if(G.instreamVideoAdRenderer&&!N){if(H)return[];uM(l,G,p);return VmP(a.L.get(), a.T.get(),V,L,G.instreamVideoAdRenderer,T,y,b,P,M,a.loadPolicy,a.ZK.get(),a.zE.get(),A)}if(G.instreamSurveyAdRenderer)return pld(a.L.get(),a.T.get(),G.instreamSurveyAdRenderer,V,L,T,P,YI(a.ZK.get(),"supports_multi_step_on_desktop"));if(G.sandwichedLinearAdRenderer!=null)return Q7l(G.sandwichedLinearAdRenderer)?g.I(G.sandwichedLinearAdRenderer.adVideoStart,c1)?(Vu("Found AdNotify in SandwichedLinearAdRenderer"),m=g.I(G.sandwichedLinearAdRenderer.adVideoStart,c1),H8w(m)?(R=g.I(G.sandwichedLinearAdRenderer.linearAd, GC))?jNp(m,R,V,a.j.get(),a.L.get(),a.T.get(),a.zE.get(),L,T,y,b,P,M,a.loadPolicy,a.ZK.get()):new Y("Missing IVAR from Sandwich"):new Y("Invalid AdMessageRenderer.")):As7(a.L.get(),a.T.get(),V,L,[G.sandwichedLinearAdRenderer.adVideoStart,G.sandwichedLinearAdRenderer.linearAd],void 0,T,y,b,P,M,a.loadPolicy,a.ZK.get()):new Y("Received invalid SandwichedLinearAdRenderer.");if(G.videoAdTrackingRenderer!=null)return DJQ(a.L.get(),a.T.get(),G.videoAdTrackingRenderer,V,L,T,y,b.gk,P)}}return[]}; e8=function(a,l,m,T,y,R,H,b){g.k.call(this);var M=this;this.L=a;this.Z=l;this.Ru=T;this.EL=y;this.ZK=R;this.x8=H;this.vN=b;this.T=null;m.get().addListener(this);this.addOnDisposeCallback(function(){m.FO()||m.get().removeListener(M)}); T.get().addListener(this);this.addOnDisposeCallback(function(){T.FO()||T.get().removeListener(M)})}; Oi7=function(a,l,m){var T=tl(a.EL.get());FDH(a.ZK.get())&&qC(a.x8.get(),"sdai","onopp.1;evt."+m.event+";start."+m.startSecs.toFixed(3)+";d."+m.Da.toFixed(3));GV(a.L.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var y=a.Z.get(),R=l.adPlacementRenderer.renderer.adBreakServiceRenderer,H=l.contentCpn,b=l.adPlacementRenderer.adSlotLoggingData,M=F2(a.ZK.get()),d=a.x8;if(y.ZK.get().D.Y().experiments.XO("enable_smearing_expansion_dai")){var A=y.ZK.get();A=g.PU(A.D.Y().experiments,"max_prefetch_window_sec_for_livestream_optimization"); M=y.ZK.get();var P=g.PU(M.D.Y().experiments,"min_prefetch_offset_sec_for_livestream_optimization");M={kF:hEb(m),wF:!1,cueProcessedMs:T*1E3};var G=m.startSecs+m.Da;if(T===0)M.FM=new FW(0,G*1E3);else{P=m.startSecs-P;var V=P-T;M.FM=V<=0?new FW(P*1E3,G*1E3):new FW(Math.floor(T+Math.random()*Math.min(V,A))*1E3,G*1E3)}A=M}else A={kF:hEb(m),wF:!1},G=m.startSecs+m.Da,m.startSecs<=T?M=new FW((m.startSecs-4)*1E3,G*1E3):(P=Math.max(0,m.startSecs-T-10),M=new FW(Math.floor(T+Math.random()*(M?T===0?0:Math.min(P, 5):P))*1E3,G*1E3)),A.FM=M;R=on(y,R,H,A,b,[new er(m)]);hl(y.ZK.get())&&qC(d.get(),"abrsm","cpi."+m.identifier+";cps."+m.startSecs+";cpd."+m.Da+";cts."+T+";rbf."+A.FM.start);d.get().D.sJ(A.FM.start/1E3-T,m.startSecs-T);return[R]})}; OY=function(a){var l,m=(l=bS(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:l.current;if(!m)return null;l=bS(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var T=a.layoutId,y=bS(a.clientMetadata,"metadata_type_content_cpn"),R=bS(a.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),H=bS(a.clientMetadata,"metadata_type_player_overlay_layout_renderer"),b=bS(a.clientMetadata,"metadata_type_player_underlay_renderer"),M=bS(a.clientMetadata, "metadata_type_ad_placement_config"),d=bS(a.clientMetadata,"metadata_type_video_length_seconds");var A=T9(a.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?bS(a.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):T9(a.clientMetadata,"metadata_type_layout_enter_ms")&&T9(a.clientMetadata,"metadata_type_layout_exit_ms")?(bS(a.clientMetadata,"metadata_type_layout_exit_ms")-bS(a.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Zk:T,contentCpn:y,En:m,m2:l,instreamAdPlayerOverlayRenderer:R, playerOverlayLayoutRenderer:H,instreamAdPlayerUnderlayRenderer:b,adPlacementConfig:M,videoLengthSeconds:d,tI:A,inPlayerLayoutId:bS(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bS(a.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; zEH=function(a,l){return KDR(a,l)}; vkQ=function(a,l){l=KDR(a,l);if(!l)return null;var m;l.tI=(m=bS(a.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:m.adBreakRemainingLengthSeconds;return l}; KDR=function(a,l){var m,T=(m=bS(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:m.current;if(!T)return null;m=DXl(a,l);return{bf:xXd(a,l),adPlacementConfig:bS(a.clientMetadata,"metadata_type_ad_placement_config"),Jn:m,contentCpn:bS(a.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:bS(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bS(a.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:bS(a.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,tI:void 0,En:T,Zk:a.layoutId,videoLengthSeconds:bS(a.clientMetadata,"metadata_type_video_length_seconds")}}; K3=function(a,l,m,T,y,R,H,b,M){g.k.call(this);this.j=a;this.C=l;this.K=m;this.Z=T;this.T=y;this.L=R;this.zE=H;this.ZK=b;this.Bz=M;this.P$=!0}; $b5=function(a,l,m){return WJb(a.T.get(),l.contentCpn,l.Zk,function(T){return cEw(a.L.get(),T.slotId,m,l.adPlacementConfig,l.Zk,AZ(a.zE.get(),T))})}; zY=function(a,l,m,T,y,R,H,b){g.k.call(this);this.L=a;this.T=l;this.Z=m;this.ZK=T;this.j=y;this.Bz=R;this.EL=H;this.iM=b}; v1=function(a){g.k.call(this);this.T=a}; GV=function(a,l,m,T){a.T().B$(l,T);m=m();a=a.T();a.BF.XA("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",l,T,m);l=g.c(m);for(m=l.next();!m.done;m=l.next())a:{T=a;m=m.value;T.BF.rd("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",m);T.BF.rd("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",m);try{var y=T.T;if(g.Vk(m.slotId))throw new Y("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(NZ(y,m))throw new Y("Duplicate registration for slot.",{slotId:m.slotId,slotEntryTriggerType:m.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!y.BE.fd.has(m.slotType))throw new Y("No fulfillment adapter factory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!y.BE.Ai.has(m.slotType))throw new Y("No SlotAdapterFactory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");nJ(y,"TRIGGER_CATEGORY_SLOT_ENTRY",m.slotEntryTrigger?[m.slotEntryTrigger]:[]);nJ(y,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", m.slotFulfillmentTriggers);nJ(y,"TRIGGER_CATEGORY_SLOT_EXPIRATION",m.slotExpirationTriggers);var R=T.T,H=m.slotType+"_"+m.slotPhysicalPosition,b=Su(R,H);if(NZ(R,m))throw new Y("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");b.set(m.slotId,new kX5(m));R.T.set(H,b)}catch(yp){yp instanceof Y&&yp.jC?(T.BF.yr("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",yp.jC,m),Vu(yp,m,void 0,void 0,yp.Sn)):(T.BF.yr("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", m),Vu(yp,m));break a}g.B(NZ(T.T,m)).C=!0;try{var M=T.T,d=g.B(NZ(M,m)),A=m.slotEntryTrigger,P=M.BE.ME.get(A.triggerType);P&&(P.f_("TRIGGER_CATEGORY_SLOT_ENTRY",A,m,null),d.jt.set(A.triggerId,P));for(var G=g.c(m.slotFulfillmentTriggers),V=G.next();!V.done;V=G.next()){var p=V.value,L=M.BE.ME.get(p.triggerType);L&&(L.f_("TRIGGER_CATEGORY_SLOT_FULFILLMENT",p,m,null),d.Ij.set(p.triggerId,L))}for(var N=g.c(m.slotExpirationTriggers),e=N.next();!e.done;e=N.next()){var t=e.value,v=M.BE.ME.get(t.triggerType); v&&(v.f_("TRIGGER_CATEGORY_SLOT_EXPIRATION",t,m,null),d.N.set(t.triggerId,v))}var S=M.BE.fd.get(m.slotType).get().build(M.Z,m);d.B=S;var n=M.BE.Ai.get(m.slotType).get().build(M.K,m);n.init();d.L=n}catch(yp){yp instanceof Y&&yp.jC?(T.BF.yr("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",yp.jC,m),Vu(yp,m,void 0,void 0,yp.Sn)):(T.BF.yr("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",m),Vu(yp,m));WU(T,m,!0);break a}T.BF.rd("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",m); T.T.k0(m);for(var X=g.c(T.L),D=X.next();!D.done;D=X.next())D.value.k0(m);eu(T,m)}}; $R=function(a,l,m,T,y){g.k.call(this);var R=this;this.L=a;this.Z=l;this.VP=m;this.context=y;this.T=new Map;T.get().addListener(this);this.addOnDisposeCallback(function(){T.FO()||T.get().removeListener(R)})}; hAd=function(a,l){var m=0x8000000000000;var T=0;for(var y=g.c(l.slotFulfillmentTriggers),R=y.next();!R.done;R=y.next())R=R.value,R instanceof nb?(m=Math.min(m,R.T.start),T=Math.max(T,R.T.end)):Vu("Found unexpected fulfillment trigger for throttled slot.",l,null,{fulfillmentTrigger:R});T=new FW(m,T);m="throttledadcuerange:"+l.slotId;a.T.set(m,l);a.VP.get().addCueRange(m,T.start,T.end,!1,a);eS(a.context.ZK.get())&&(l=T.start,T=T.end,y={},a.context.Xa.nx("tcrr",(y.cid=m,y.sm=l,y.em=T,y)))}; sY=function(){g.k.apply(this,arguments);this.P$=!0;this.aR=new Map;this.T=new Map}; S8=function(a){return a.aR}; f3=function(a,l){a=g.c(a.aR.values());for(var m=a.next();!m.done;m=a.next())if(m.value.layoutId===l)return!0;return!1}; Jl=function(a,l){a=g.c(a.T.values());for(var m=a.next();!m.done;m=a.next()){m=g.c(m.value);for(var T=m.next();!T.done;T=m.next())if(T=T.value,T.layoutId===l)return T}Vu("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Vk(l)),layoutId:l})}; scp=function(){this.T=new Map}; SLp=function(a,l){this.callback=a;this.slot=l}; B1=function(){}; f03=function(a,l,m){this.callback=a;this.slot=l;this.EL=m}; Jsp=function(a,l,m){this.callback=a;this.slot=l;this.EL=m;this.L=!1;this.T=0}; Bzz=function(a,l,m){this.callback=a;this.slot=l;this.EL=m}; kR=function(a){this.EL=a}; n3=function(a){g.k.call(this);this.Nn=a;this.eW=new Map}; wT=function(a,l){for(var m=[],T=g.c(a.eW.values()),y=T.next();!y.done;y=T.next()){y=y.value;var R=y.trigger;R instanceof lM&&R.triggeringLayoutId===l&&m.push(y)}m.length?vU(a.Nn(),m):Vu("Survey is submitted but no registered triggers can be activated.")}; Ih=function(a,l,m){n3.call(this,a);var T=this;this.ZK=m;l.get().addListener(this);this.addOnDisposeCallback(function(){l.FO()||l.get().removeListener(T)})}; C3=function(a){g.k.call(this);this.T=a;this.P$=!0;this.eW=new Map;this.K=new Set;this.Z=new Set;this.j=new Set;this.C=new Set;this.L=new Set}; EY=function(a){g.k.call(this);this.T=a;this.eW=new Map}; oh=function(a,l){for(var m=[],T=g.c(a.eW.values()),y=T.next();!y.done;y=T.next())y=y.value,y.trigger.T===l.layoutId&&m.push(y);m.length&&vU(a.T(),m)}; xR=function(a,l,m){g.k.call(this);var T=this;this.T=a;this.context=m;this.eW=new Map;l.get().addListener(this);this.addOnDisposeCallback(function(){l.FO()||l.get().removeListener(T)})}; DV=function(a,l,m,T,y){g.k.call(this);var R=this;this.L=a;this.VP=l;this.EL=m;this.Bz=T;this.context=y;this.P$=!0;this.eW=new Map;this.T=new Set;m.get().addListener(this);this.addOnDisposeCallback(function(){m.FO()||m.get().removeListener(R)})}; khb=function(a,l,m,T,y,R,H,b,M,d){if(cs(a.Bz.get(),1).clientPlaybackNonce!==M)throw new Y("Cannot register CueRange-based trigger for different content CPN",{trigger:m});a.eW.set(m.triggerId,{Tc:new TC(l,m,T,y),cueRangeId:R});a.VP.get().addCueRange(R,H,b,d,a);eS(a.context.ZK.get())&&(M={},a.context.Xa.nx("crr",(M.ca=l,M.tt=m.triggerType,M.st=T.slotType,M.lt=y==null?void 0:y.layoutType,M.cid=R,M.sm=H,M.em=b,M)))}; nkw=function(a,l){a=g.c(a.eW.entries());for(var m=a.next();!m.done;m=a.next()){var T=g.c(m.value);m=T.next().value;T=T.next().value;if(l===T.cueRangeId)return m}return""}; uW=function(a,l){g.k.call(this);var m=this;this.j=a;this.L=new Map;this.Z=new Map;this.T=null;l.get().addListener(this);this.addOnDisposeCallback(function(){l.FO()||l.get().removeListener(m)}); var T;this.T=((T=yA(l.get()))==null?void 0:T.slotId)||null}; wl3=function(a,l){var m=[];a=g.c(a.values());for(var T=a.next();!T.done;T=a.next())T=T.value,T.slot.slotId===l&&m.push(T);return m}; X2=function(a){g.k.call(this);this.T=a;this.P$=!0;this.eW=new Map}; XZ=function(a,l,m){l=l.layoutId;for(var T=[],y=g.c(a.eW.values()),R=y.next();!R.done;R=y.next())if(R=R.value,R.trigger instanceof Ef){var H;if(H=R.trigger.layoutId===l){H=m;var b=vtd.get(R.category);H=b?b===H:!1}H&&T.push(R)}T.length&&vU(a.T(),T)}; YR=function(a){g.k.call(this);this.T=a;this.P$=!0;this.eW=new Map}; UY=function(a,l,m,T,y){g.k.call(this);var R=this;this.K=a;this.Ru=l;this.EL=m;this.x8=T;this.T=null;this.P$=!0;this.eW=new Map;this.Z=new Set;l.get().addListener(this);this.addOnDisposeCallback(function(){l.FO()||l.get().removeListener(R)}); y.get().addListener(this);this.addOnDisposeCallback(function(){y.FO()||y.get().removeListener(R)})}; CgP=function(a){a.T&&(a.L&&(a.L.stop(),a.L.start()),I07(a,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; I07=function(a,l){for(var m=[],T=g.c(a.eW.values()),y=T.next();!y.done;y=T.next())y=y.value,y.trigger.triggerType===l&&m.push(y);m.length>0&&vU(a.K(),m)}; rT=function(a,l,m,T,y){for(var R=[],H=g.c(a.eW.values()),b=H.next();!b.done;b=H.next()){var M=b=b.value,d=M.trigger;M=M.slot;if(d.triggerType===l){if(d instanceof JV||d instanceof BY||d instanceof wk){if(y&&d.breakDurationMs!==m)continue;if(!y&&d.breakDurationMs===m)continue;if(T.has(M.slotId))continue;if(a.Z.has(M.slotId))continue}R.push(b)}}R.length>0&&vU(a.K(),R)}; EkP=function(a,l){l=(l.Da+1)*1E3;var m=void 0;a=g.c(a.eW.values());for(var T=a.next();!T.done;T=a.next()){var y=T.value;T=y.trigger;y=y.slot;T instanceof JV&&T.breakDurationMs<=l&&(!m||T.breakDurationMs>m.trigger.breakDurationMs)&&(m={slot:y,trigger:T})}return m}; okl=function(a){a=a.adPlacementRenderer.config.adPlacementConfig;if(!a.prefetchModeConfig||!a.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;a=Number(a.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(a)||a<=0?0:Math.floor(Math.random()*a)}; xbp=function(a){a=a.adPlacementRenderer.config.adPlacementConfig;if(a.prefetchModeConfig&&a.prefetchModeConfig.cacheFetchRefreshDurationMs&&(a=Number(a.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(a)||a<=0)))return a}; aO=function(a){a.T=null;a.eW.clear();a.Z.clear();a.L&&a.L.stop();a.j&&a.j.stop()}; lo=function(a){g.k.call(this);this.Z=a;this.P$=!0;this.eW=new Map;this.T=new Map;this.L=new Map}; Dbp=function(a,l){var m=[];if(l=a.T.get(l.layoutId)){l=g.c(l);for(var T=l.next();!T.done;T=l.next())(T=a.L.get(T.value.triggerId))&&m.push(T)}return m}; m5=function(a){g.k.call(this);this.T=a;this.eW=new Map}; uNH=function(a,l){for(var m=[],T=g.c(a.eW.values()),y=T.next();!y.done;y=T.next())y=y.value,y.trigger instanceof F$&&y.trigger.slotId===l&&m.push(y);m.length>=1&&vU(a.T(),m)}; XlQ=function(a,l){var m={slotId:V0(l,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Rj:"surface",clientMetadata:new qZ([])},T=Object,y=T.assign;l=UF(l,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",m.slotId);l={layoutId:l,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",sb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"surface", clientMetadata:new qZ([]),AN:eoR(!1,m.slotId,m.slotType,m.slotPhysicalPosition,m.Rj,m.slotEntryTrigger,m.slotFulfillmentTriggers,m.slotExpirationTriggers,l,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return y.call(T,{},a,{Cy:!0,slot:m,layout:l})}; $DR=function(a,l,m,T){var y=a.kind;T=T?!1:!a.hideCueRangeMarker;switch(y){case "AD_PLACEMENT_KIND_START":return T={kF:new FW(-0x8000000000000,-0x8000000000000),wF:T},m!=null&&(T.FM=new FW(-0x8000000000000,-0x8000000000000)),T;case "AD_PLACEMENT_KIND_END":return T={kF:new FW(0x7ffffffffffff,0x8000000000000),wF:T},m!=null&&(T.FM=new FW(Math.max(0,l-m),0x8000000000000)),T;case "AD_PLACEMENT_KIND_MILLISECONDS":y=a.adTimeOffset;y.offsetStartMilliseconds||Vu("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); y.offsetEndMilliseconds||Vu("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(y.offsetStartMilliseconds);y=Number(y.offsetEndMilliseconds);y===-1&&(y=l);if(Number.isNaN(a)||Number.isNaN(y)||a>y)return new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:y},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",y===l&&a-500<=y);T={kF:new FW(a,y),wF:T};if(m!=null){a=Math.max(0,a-m);if(a===y)return T;T.FM=new FW(a,y)}return T; default:return new Y("AdPlacementKind not supported in convertToRange.",{kind:y,adPlacementConfig:a})}}; hEb=function(a){var l=a.startSecs*1E3;return new FW(l,l+a.Da*1E3)}; YLp=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var l=g.c(a.adPlacements||[]),m=l.next();!m.done;m=l.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;a=g.c(a.adSlots||[]);for(l=a.next();!l.done;l=a.next()){var T=m=void 0;if(((m=g.I(l.value,Cl))==null?void 0:(T=m.adSlotMetadata)==null?void 0:T.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; TP=function(a){this.ZK=a;this.L=new Map;this.T=new Map;this.Z=new Map}; V0=function(a,l){if(yo(a.ZK.get())){var m=a.L.get(l)||0;m++;a.L.set(l,m);return l+"_"+m}return g.FH(16)}; UF=function(a,l,m){if(yo(a.ZK.get())){var T=a.T.get(l)||0;T++;a.T.set(l,T);return m+"_"+l+"_"+T}return g.FH(16)}; dT=function(a,l){if(yo(a.ZK.get())){var m=a.Z.get(l)||0;m++;a.Z.set(l,m);return l+"_"+m}return g.FH(16)}; Ubb=function(a){var l=[new pi(a.Zk),new Li(a.En),new ac(a.adPlacementConfig),new FN(a.videoLengthSeconds),new Ic(a.tI)];a.instreamAdPlayerOverlayRenderer&&l.push(new qb(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&l.push(new bg(a.playerOverlayLayoutRenderer));a.m2&&l.push(new yh(a.m2));return l}; rsQ=function(a,l,m,T,y,R){a=m.inPlayerLayoutId?m.inPlayerLayoutId:UF(R,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var H,b,M=m.instreamAdPlayerOverlayRenderer?(H=m.instreamAdPlayerOverlayRenderer)==null?void 0:H.adLayoutLoggingData:(b=m.playerOverlayLayoutRenderer)==null?void 0:b.adLayoutLoggingData;H={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Rj:l};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",sb:new Map,layoutExitNormalTriggers:[new Sl(function(d){return dT(R, d)},m.Zk)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:l,clientMetadata:T,AN:y(H),adLayoutLoggingData:M}}; RO=function(a,l){var m=this;this.L=a;this.ZK=l;this.T=function(T){return dT(m.L.get(),T)}}; cEw=function(a,l,m,T,y,R){m=new qZ([new gz(m),new ac(T)]);l=UF(a.L.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",l);T={layoutId:l,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Rj:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",sb:new Map,layoutExitNormalTriggers:[new Sl(function(H){return dT(a.L.get(),H)},y)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:m,AN:R(T),adLayoutLoggingData:void 0}}; yS=function(a,l,m,T,y){var R=Ubb(T);return rsQ(l,m,T,new qZ(R),y,a.L.get())}; aWw=function(a,l,m,T,y){var R=Ubb(T);R.push(new UI(T.bf));R.push(new rq(T.Jn));return rsQ(l,m,T,new qZ(R),y,a.L.get())}; N3=function(a,l,m,T,y,R,H,b,M,d){l=UF(a.L.get(),m,l);var A={layoutId:l,layoutType:m,Rj:"core"},P=new Map;H&&P.set("impression",H);H=[new Iu(a.T,y,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];d&&H.push(new sf(a.T,d,["normal"]));return{layoutId:l,layoutType:m,sb:P,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:new qZ([T,new ac(R),new pi(y)]),AN:b(A),adLayoutLoggingData:M}}; QS=function(a,l,m,T,y,R,H,b,M){l=UF(a.L.get(),m,l);var d={layoutId:l,layoutType:m,Rj:"core"},A=[new Iu(a.T,y,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];M&&A.push(new sf(a.T,M,["normal"]));return{layoutId:l,layoutType:m,sb:new Map,layoutExitNormalTriggers:A,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:new qZ([T,new ac(R),new pi(y)]),AN:H(d),adLayoutLoggingData:b}}; Al=function(a,l,m){var T=[];T.push(new Cb(a.T,m));l&&T.push(l);return T}; j8=function(a,l,m,T,y,R,H){var b={layoutId:l,layoutType:m,Rj:"core"};return{layoutId:l,layoutType:m,sb:new Map,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[new Kb(a.T,l)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:new qZ([new DM(T),new ac(y)]),AN:R(b),adLayoutLoggingData:T.adLayoutLoggingData}}; ah=function(a,l,m,T,y,R,H,b){var M={layoutId:l,layoutType:R,Rj:"core"};return{layoutId:l,layoutType:R,sb:new Map,layoutExitNormalTriggers:[new Sl(a.T,m)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:new qZ([new ac(T)].concat(g.F(H))),AN:y(M),adLayoutLoggingData:b}}; GY=function(a,l,m,T){if(a.ZK.get().UQ(l.kind==="AD_PLACEMENT_KIND_START"))if(m===void 0)Vu("Expected SSAP layout ID in renderer",void 0,void 0,{caller:T});else return m}; l0t=function(a,l,m,T,y,R,H,b,M,d,A,P,G){a=P1(a,l,m,y,R,H,b,M,P,GY(a,m,T.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),G);l=a.bI;m=new Z0(a.Y$);T=a.layoutExitSkipTriggers;d>0&&(l.push(m),l.push(new Th(d)),T=[]);l.push(new mD(A));return{oY:{layoutId:a.layoutId,layoutType:a.layoutType,sb:a.sb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:a.Rj,clientMetadata:new qZ(l),AN:a.AN,adLayoutLoggingData:a.adLayoutLoggingData}, Z3:T,vI:a.layoutExitMuteTriggers,Wb:a.layoutExitUserInputSubmittedTriggers,kZ:a.BN,kf:a.kf}}; REz=function(a,l,m,T,y,R,H,b,M,d){l=P1(a,l,m,T,R,new Map,H,function(A){return b(A,M)},void 0,GY(a,m,y.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); a=new lM(a.T,l.Y$);m=new Z0(l.Y$);d=new mD(d);return{oY:{layoutId:l.layoutId,layoutType:l.layoutType,sb:l.sb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:l.Rj,clientMetadata:new qZ([].concat(g.F(l.bI),[m,d])),AN:l.AN,adLayoutLoggingData:l.adLayoutLoggingData},Z3:l.layoutExitSkipTriggers,vI:l.layoutExitMuteTriggers,Wb:[].concat(g.F(l.layoutExitUserInputSubmittedTriggers),[a]),kZ:l.BN,kf:l.kf}}; P1=function(a,l,m,T,y,R,H,b,M,d,A){l=d!=null?d:UF(a.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",l);d={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rj:"adapter"};b=b(l);var P=bS(b.clientMetadata,"metadata_type_fulfilled_layout");P||Vu("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var G=P?P.layoutId:"";m=[new ac(m),new Ci(T),new xk(y)];P&&m.push(new Wl(P.layoutType));A&&m.push(new $k(A));return{layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", sb:R,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Dk(a.T,G)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"adapter",bI:m,AN:H(d),adLayoutLoggingData:M,kf:b,Y$:G}}; p8Q=function(a,l,m,T,y,R,H,b,M,d,A){a=lWP(a,l,"core",m,T,y,R,H,b,M,d,void 0,A);return{layoutId:a.layoutId,layoutType:a.layoutType,sb:a.sb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,BN:a.BN,Rj:a.Rj,clientMetadata:new qZ(a.uF),AN:a.AN,adLayoutLoggingData:a.adLayoutLoggingData}}; Ghd=function(a,l,m,T,y,R,H,b,M,d,A,P,G){l=lWP(a,l,"adapter",m,T,y,R,H,b,M,A,P,G);T=l.layoutExitSkipTriggers;y=l.uF;m.adPodSkipTarget&&m.adPodSkipTarget>0&&(y.push(d),y.push(new Th(m.adPodSkipTarget)),T=[]);y.push(new mD(b.adPodIndex));m.isCritical&&(T=[new sf(a.T,l.layoutId,["error"])].concat(g.F(T)));return{oY:{layoutId:l.layoutId,layoutType:l.layoutType,sb:l.sb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:l.Rj,clientMetadata:new qZ(y), AN:l.AN,adLayoutLoggingData:l.adLayoutLoggingData},Z3:T,vI:l.layoutExitMuteTriggers,Wb:l.layoutExitUserInputSubmittedTriggers,kZ:l.BN}}; lWP=function(a,l,m,T,y,R,H,b,M,d,A,P,G){var V={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",Rj:m};y=[new ac(y),new lg(M),new Rc(T.externalVideoId),new Hl(b),new xk({impressionCommands:T.impressionCommands,abandonCommands:T.onAbandonCommands,completeCommands:T.completeCommands,progressCommands:T.adVideoProgressCommands}),new hs(R),new Nb({current:null}),new FN(H)];(R=T.playerOverlay.instreamAdPlayerOverlayRenderer)&&y.push(new qb(R));(H=T.playerOverlay.playerOverlayLayoutRenderer)&&y.push(new bg(H)); P&&y.push(new OL(P));(P=T.playerUnderlay)&&y.push(new gz(P));b=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER");P=(P=R?R.elementId:H==null?void 0:H.layoutId)?P:UF(a.L.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",b);y.push(new Z0(P));y.push(new cl(b));y.push(new $k(M.adPodIndex));T.adNextParams&&y.push(new oN(T.adNextParams));T.shrunkenPlayerBytesConfig&&y.push(new dz(T.shrunkenPlayerBytesConfig));T.clickthroughEndpoint&&y.push(new xr(T.clickthroughEndpoint));T.legacyInfoCardVastExtension&&y.push(new EL(T.legacyInfoCardVastExtension)); T.sodarExtensionData&&y.push(new Ki(T.sodarExtensionData));A&&y.push(new wz(A));y.push(new XN(eJ(T.pings)));M=FM(T.pings);if(G){a:{G=g.c(G);for(A=G.next();!A.done;A=G.next())if(A=A.value,A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(R=g.I(A.fulfillmentContent.fulfilledLayout,$P))&&(R=g.I(R.renderingContent,zC))&&R.associatedPlayerBytesLayoutId===l){G=A;break a}G=void 0}G&&y.push(new Mb(G))}return{layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",sb:M,layoutExitNormalTriggers:[new Ef(a.T,l)],layoutExitSkipTriggers:T.skipOffsetMilliseconds? [new Dk(a.T,P)]:[],layoutExitMuteTriggers:[new Dk(a.T,P)],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:m,uF:y,AN:d(V),adLayoutLoggingData:T.adLayoutLoggingData}}; bnl=function(a,l,m,T,y,R,H,b,M){T.every(function(A){return yU(A,[],["LAYOUT_TYPE_MEDIA"])})||Vu("Unexpect subLayout type for DAI composite layout"); l=UF(a.L.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",l);var d={layoutId:l,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Rj:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",sb:new Map,layoutExitNormalTriggers:[new fb(a.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:[],Rj:"core",clientMetadata:new qZ([new zh(m),new vl(b),new ts(T),new ac(y),new Js(R),new sL({}),new UL(M)]),AN:H(d)}}; Tq5=function(a){return a!=null}; Hc=function(a,l,m){var T=this;this.L=a;this.Z=l;this.ZK=m;this.T=function(y){return dT(T.L.get(),y)}}; trd=function(a,l,m,T,y,R,H){if(!m.prefetchModeConfig)return new Y("AdPlacementConfig for Live Prefetch is missing prefetch_config");m=m.prefetchModeConfig;T*=1E3;var b=[];if(!m.breakLengthMs)return new Y("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var M=g.c(m.breakLengthMs),d=M.next();!d.done;d=M.next())if(d=d.value,Number(d)>0){var A=T+Number(m.startTimeOffsetMs),P=A+Number(m.cacheFetchSmearingDurationMs);d={kF:new FW(P,P+Number(d)),wF:!1,FM:new FW(Math.floor(A+Math.random()* Number(m.cacheFetchSmearingDurationMs)),P),cueProcessedMs:T?T:A};A=[];A.push(new mK({}));P=[];P.push(new xc(a.T));P.push(new Dl7(a.T));H&&A.push(new sL({}));b.push(on(a,l,y,d,R,A,P))}return b}; on=function(a,l,m,T,y,R,H){R=R===void 0?[]:R;var b=V0(a.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");H||(H=[],T.FM&&T.FM.start!==T.kF.start&&H.push(new nb(a.T,m,new FW(T.FM.start,T.kF.start),!1)),H.push(new nb(a.T,m,new FW(T.kF.start,T.kF.end),T.wF)));T={getAdBreakUrl:l.getAdBreakUrl,B5:T.kF.start,VF:T.kF.end,cueProcessedMs:T.cueProcessedMs};l=new Uf(a.T,b);R=[new kk(T)].concat(g.F(R));return{slotId:b,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:H, slotExpirationTriggers:[new ou(a.T,m),new X$(a.T,b),new Yc(a.T,b)],Rj:"core",clientMetadata:new qZ(R),adSlotLoggingData:y}}; TMd=function(a,l,m){var T=[];m=g.c(m);for(var y=m.next();!y.done;y=m.next())T.push(mZH(a,l,y.value));return T}; mZH=function(a,l,m){return m.triggeringSlotId!=null&&m.triggeringSlotId===a?m.clone(l):m}; onw=function(a,l,m,T,y){return yZt(a,l,m,T,y)}; mb3=function(a,l,m,T){var y=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER");return yZt(a,y,l,m,T)}; yZt=function(a,l,m,T,y){var R=new $c(a.T,m),H=[new uy(a.T,l)];a=[new X$(a.T,l),new ou(a.T,T)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(y({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:a},m))]),adSlotLoggingData:void 0}}; Vrb=function(a,l,m,T,y,R){var H=V0(a.L.get(),"SLOT_TYPE_PLAYER_BYTES"),b=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER"),M=UF(a.L.get(),"LAYOUT_TYPE_SURVEY",b);T=qe(a,l,m,T);var d=[new uy(a.T,H)];m=[new X$(a.T,H),new ou(a.T,m),new Kb(a.T,M)];if(T instanceof Y)return T;b=R({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:T,slotFulfillmentTriggers:d,slotExpirationTriggers:m},{slotId:b,layoutId:M});R=b.UjL;b=b.qb;return[{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:p3(a,l,H,T),slotFulfillmentTriggers:ZV(a,l,H,d),slotExpirationTriggers:m,Rj:"core",clientMetadata:new qZ([new Bl(R),new rz(W1(l)),new lS({hC:a.hC(l)})]),adSlotLoggingData:y},b]}; W1=function(a){return a.kind==="AD_PLACEMENT_KIND_START"}; Znd=function(a,l,m,T,y){y=y?y:V0(a.L.get(),"SLOT_TYPE_IN_PLAYER");m=new $c(a.T,m);var R=[new uy(a.T,y)];a=[new ou(a.T,l),new X$(a.T,y)];return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:R,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(T({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:m,slotFulfillmentTriggers:R,slotExpirationTriggers:a}))])}}; WJb=function(a,l,m,T){var y=V0(a.L.get(),"SLOT_TYPE_PLAYER_UNDERLAY");m=new $c(a.T,m);var R=[new uy(a.T,y)];a=[new ou(a.T,l),new X$(a.T,y)];return{slotId:y,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:R,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(T({slotId:y,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:m,slotFulfillmentTriggers:R,slotExpirationTriggers:a}))])}}; inQ=function(a,l,m,T,y,R,H){var b=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER"),M=UF(a.L.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",b);T=Rfd(a,T,R,H,M);if(T instanceof Y)return T;H=[new uy(a.T,b)];y=[new ou(a.T,R),new uy(a.T,y),new an(a.T,y)];m=AZ(m,{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:T,slotFulfillmentTriggers:H,slotExpirationTriggers:y});a=a.Z.get();R={layoutId:M,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Rj:"core"};l={layoutId:M,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", sb:new Map,layoutExitNormalTriggers:[new mDt(a.T,M,l.durationMs)],layoutExitSkipTriggers:[new yLR(a.T,M,l.durationMs)],BN:[new TsP(a.T,M)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Rj:"core",clientMetadata:new qZ([new oc(l)]),AN:m(R)};return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:T,slotFulfillmentTriggers:H,slotExpirationTriggers:y,clientMetadata:new qZ([new Bl(l)])}}; rEb=function(a,l,m,T,y,R){l=qe(a,l,m,T);if(l instanceof Y)return l;var H=l instanceof nb?new r9b(a.T,m,l.T):null;T=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER");var b=[new uy(a.T,T)];a=[new ou(a.T,m),new X$(a.T,T)];R=R({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:l,slotFulfillmentTriggers:b,slotExpirationTriggers:a},H);return R instanceof HU?new Y(R):{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:b,slotExpirationTriggers:a, Rj:"core",clientMetadata:new qZ([new Bl(R)]),adSlotLoggingData:y}}; YIR=function(a,l,m,T){var y=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER"),R=new Of(a.T,l),H=[new rk(a.T,y)];a=[new ou(a.T,l),new X$(a.T,y)];return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(T({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:a}))]),adSlotLoggingData:m}}; UDl=function(a,l,m,T){var y=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER");m=new $c(a.T,m);var R=[new uy(a.T,y)],H=[new X$(a.T,y),new ou(a.T,l)];R={slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:m,slotFulfillmentTriggers:R,slotExpirationTriggers:H};return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:[new uy(a.T,y)],slotExpirationTriggers:[new ou(a.T,l),new X$(a.T,y)],Rj:"core",clientMetadata:new qZ([new Bl(T(R))])}}; uAP=function(a,l,m,T,y){var R=V0(a.L.get(),"SLOT_TYPE_IN_PLAYER");m=new vY(a.T,T,m);T=[new uy(a.T,R)];a=[new ou(a.T,l)];return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:T,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(y({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:m,slotFulfillmentTriggers:T,slotExpirationTriggers:a}))])}}; IIH=function(a,l,m,T,y,R){var H=V0(a.L.get(),l);return bo(a,H,l,new $c(a.T,T),[new ou(a.T,m),new X$(a.T,H),new sf(a.T,T,["error"])],y,R)}; wX3=function(a,l,m,T,y,R,H){var b=V0(a.L.get(),l);return bo(a,b,l,new sf(a.T,y,["normal"]),[new ou(a.T,m),new X$(a.T,b),new sf(a.T,T,["error"])],R,H)}; JLQ=function(a,l,m,T,y){var R=V0(a.L.get(),l);return bo(a,R,l,new Of(a.T,m),[new ou(a.T,m),new X$(a.T,R)],T,y)}; xJH=function(a,l,m,T,y){m=m?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var R=V0(a.L.get(),m);l=new Of(a.T,l);var H=[new uy(a.T,R)];a=[new X$(a.T,R)];return{slotId:R,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:H,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(y({slotId:R,slotType:m,slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:l,slotFulfillmentTriggers:H,slotExpirationTriggers:a}))]),adSlotLoggingData:T}}; yEl=function(a,l,m,T){var y=V0(a.L.get(),"SLOT_TYPE_PLAYER_BYTES"),R=new kc(a.T),H=[new rk(a.T,y)];a=[new ou(a.T,l)];return{slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(T({slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:a})),new sL({})]),adSlotLoggingData:m}}; dbb=function(a,l){return Nzw(a.ZK.get())?new sf(a.T,l,["normal","error","skipped"]):new sf(a.T,l,["normal"])}; PZt=function(a,l,m,T,y){l=dbb(a,l);a=VS(a,l,m);y=y({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Rj:a.Rj});return y instanceof Y?y:{E6:Object.assign({},a,{clientMetadata:new qZ([new Bl(y.layout)]),adSlotLoggingData:T}),K$:y.K$}}; G77=function(a,l,m,T,y,R,H){m=jcz(a,l,m,T);if(m instanceof Y)return m;H=H({slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:m.slotExpirationTriggers,Rj:m.Rj});if(H instanceof Y)return H;T=[new rz(W1(l)),new Bl(H.layout),new lS({hC:a.hC(l)})];R&&T.push(new D0({}));return{E6:{slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:p3(a, l,m.slotId,m.slotEntryTrigger),slotFulfillmentTriggers:ZV(a,l,m.slotId,m.slotFulfillmentTriggers),slotExpirationTriggers:m.slotExpirationTriggers,Rj:m.Rj,clientMetadata:new qZ(T),adSlotLoggingData:y},K$:H.K$}}; p3=function(a,l,m,T){return a.ZK.get().UQ(W1(l))?new F$(a.T,m):T}; ZV=function(a,l,m,T){return a.ZK.get().UQ(W1(l))?[new rk(a.T,m)]:T}; VS=function(a,l,m){var T=V0(a.L.get(),"SLOT_TYPE_PLAYER_BYTES"),y=[new uy(a.T,T)];a=[new X$(a.T,T),new ou(a.T,m)];return{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:y,slotExpirationTriggers:a,Rj:"core"}}; jcz=function(a,l,m,T){l=qe(a,l,m,T);return l instanceof Y?l:VS(a,l,m)}; uCb=function(a,l,m,T,y,R){var H=V0(a.L.get(),"SLOT_TYPE_FORECASTING");l=qe(a,l,m,T);if(l instanceof Y)return l;T=[new uy(a.T,H)];a=[new X$(a.T,H),new ou(a.T,m)];return{slotId:H,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:T,slotExpirationTriggers:a,Rj:"core",clientMetadata:new qZ([new Bl(R({slotId:H,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:l,slotFulfillmentTriggers:T,slotExpirationTriggers:a}))]),adSlotLoggingData:y}}; HJ5=function(a,l,m,T,y){var R=!l.hideCueRangeMarker;switch(l.kind){case "AD_PLACEMENT_KIND_START":return new Of(a.T,m);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=$DR(l,T),a instanceof Y?a:y(a.kF,R);case "AD_PLACEMENT_KIND_END":return new z2(a.T,m,R);default:return new Y("Cannot construct entry trigger",{kind:l.kind})}}; Rfd=function(a,l,m,T,y){return HJ5(a,l,m,T,function(R,H){return new Uld(a.T,m,R,H,y)})}; qe=function(a,l,m,T){return HJ5(a,l,m,T,function(y,R){return new nb(a.T,m,y,R)})}; bo=function(a,l,m,T,y,R,H){a=[new rk(a.T,l)];return{slotId:l,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:a,slotExpirationTriggers:y,Rj:"core",clientMetadata:new qZ([new Bl(H({slotId:l,slotType:m,slotPhysicalPosition:1,Rj:"core",slotEntryTrigger:T,slotFulfillmentTriggers:a,slotExpirationTriggers:y}))]),adSlotLoggingData:R}}; gP=function(a,l){g.k.call(this);this.ZK=a;this.T=l;this.eventCount=0}; Me=function(a,l,m,T){gP.call(this,a,l);this.ZK=a;this.Bz=m;this.context=T}; io=function(){this.T=new Map}; dP=function(a){this.Nd="pending";this.hB=[];this.AB=[];try{a(this.sE.bind(this),this.reject.bind(this))}catch(l){this.reject(l)}}; qFd=function(){var a,l;return{hS:new dP(function(m,T){a=m;l=T}), resolve:a,reject:l}}; Pc=function(a){return jo(a)?a:Av(a)?new dP(function(l,m){a.then(l,m)}):new dP(function(l){l(a)})}; GP=function(a){return new dP(function(l,m){m(a)})}; Vo=function(a){try{return Pc(a())}catch(l){return GP(l)}}; Zh=function(a,l,m){var T=qFd(),y=T.hS,R=T.resolve,H=T.reject;a.hB.push(function(b){if(l)try{var M=l(b);R(M)}catch(d){H(d)}else R(b)}); a.AB.push(function(b){if(m)try{var M=m(b);R(M)}catch(d){H(d)}else H(b)}); po(a);return y}; Wc=function(a,l){return Zh(a,void 0,l)}; bJp=function(a,l){Zh(a,function(m){return Zh(Pc(l()),function(){return m})},function(m){return Zh(Pc(l()),function(){return GP(m)})})}; po=function(a){if(a.Nd==="fulfilled"){var l=a.hB;a.hB=[];a.AB=[];l=g.c(l);for(var m=l.next();!m.done;m=l.next())m=m.value,m(a.result)}else if(a.Nd==="rejected")for(l=a.AB,a.hB=[],a.AB=[],l=g.c(l),m=l.next();!m.done;m=l.next())m=m.value,m(a.error)}; cc=function(a){return function(){return gIl(a.apply(this,g.Jz.apply(0,arguments)))}}; Lo=function(a){return Pc(a).wait()}; gIl=function(a){return Vo(function(){return Ne(a,a.next())})}; Ne=function(a,l){return l.done?Pc(l.value):Wc(Zh(l.value.hS,function(m){return Ne(a,a.next(m))}),function(m){return Ne(a,a.throw(m))})}; Qo=function(a,l){if(a.length===0)return Pc(NaN);var m=qFd(),T=m.hS,y=m.resolve,R=a.length;a=g.c(a.entries());var H=a.next();for(m={};!H.done;m={ZI:void 0},H=a.next()){var b=g.c(H.value);H=b.next().value;b=b.next().value;m.ZI=H;bJp(b,function(M){return function(){T.Nd==="pending"&&(Mud(l)&&l(M.ZI)&&T.Nd==="pending"?y(M.ZI):(--R,R===0&&y(NaN)))}}(m))}return T}; tv=function(a){return a.map(function(l){return Pc(l)})}; FO=function(a){var l=a.hours||0;var m=a.minutes||0,T=a.seconds||0;l=T+m*60+l*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;l<=0?l={hours:0,minutes:0,seconds:0}:(a=l,l=Math.floor(a/3600),a%=3600,m=Math.floor(a/60),T=Math.floor(a%60),l={hours:l,minutes:m,seconds:T});var y=l.hours===void 0?0:l.hours;m=l.minutes===void 0?0:l.minutes;a=l.seconds===void 0?0:l.seconds;T=y>0;l=[];if(T){y=(new Intl.NumberFormat("en-u-nu-latn")).format(y);var R=["fr"],H="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); y="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(eo)?y.replace(",","\u00a0"):R.includes(eo)?y.replace(",","\u202f"):H.includes(eo)?y.replace(",","."):y;l.push(y)}T=T===void 0?!1:T;m=(["af","be","lt"].includes(eo)||T)&&m<10?iJd().format(m):(new Intl.NumberFormat("en-u-nu-latn")).format(m);l.push(m);m=iJd().format(a);l.push(m);m=":";"da fi id si sr sr-Latn".split(" ").includes(eo)&&(m=".");return l.join(m)}; iJd=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; dZR=function(a,l){var m,T;a=((m=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(T=m.videoAuthorizationToken)==null?void 0:T.credentialTransferTokens)||[];for(m=0;ml;a=m}else a=!1;return a}; g.Co=function(a,l){return a.Fa+"timedtext_video?ref=player&v="+l.videoId}; g.KKP=function(a){var l=this;this.videoData=a;a={};this.T=(a.c1a=function(){var m=[];if(g.wP.isInitialized()){var T="";l.videoData&&l.videoData.Bv&&(T=l.videoData.Bv+("&r1b="+l.videoData.clientPlaybackNonce));var y={};T=(y.atr_challenge=T,y);uu("bg_v",void 0,"player_att");(T=OJl(T))?(uu("bg_s",void 0,"player_att"),m.push("r1a="+T)):(uu("bg_e",void 0,"player_att"),m.push("r1c=2"))}else uu("bg_e",void 0,"player_att"),window.trayride||window.botguard?m.push("r1c=1"):m.push("r1c=4");m.push("r1d="+g.wP.getState()); return m.join("&")},a.c6a=function(m){return"r6a="+(Number(m.c)^j2())},a.c6b=function(m){return"r6b="+(Number(m.c)^Number(g.Uu("CATSTAT",0)))},a); this.videoData&&this.videoData.Bv?this.Ll=H$(this.videoData.Bv):this.Ll={}}; g.zfz=function(a){if(a.videoData&&a.videoData.Bv){for(var l=[a.videoData.Bv],m=g.c(Object.keys(a.T)),T=m.next();!T.done;T=m.next())T=T.value,a.Ll[T]&&a.T[T]&&(T=a.T[T](a.Ll))&&l.push(T);return l.join("&")}return null}; g.Ea=function(a,l){hfd(a,{Z$M:g.PU(l.experiments,"bg_vm_reinit_threshold"),cspNonce:l.cspNonce,Fa:l.Fa||""})}; vIH=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3}; $Z3=function(a){a=a[q[20]](q[10]);oO[q[46]](a,9);oO[q[46]](a,15);oO[q[63]](a,1);oO[q[87]](a,14);oO[q[46]](a,1);oO[q[46]](a,32);oO[q[46]](a,50);return a[q[19]](q[10])}; SFR=function(a){sxw=2592E3*(a||1)}; xV=function(a){a=a===void 0?sxw:a;if(a>0&&!(C_R()>(0,g.E)()-a*1E3))return 0;a=g.BW("yt-player-quality");if(typeof a==="string"){if(a=g.wF[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0}; Dh=function(){var a=g.BW("yt-player-proxima-pref");return a==null?null:a}; fW3=function(){var a=g.BW("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality0&&l[0]?a.getAutoplayPolicy(l[0]):a.getAutoplayPolicy("mediaelement");if(CSp[m])return CSp[m]}}catch(T){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; lc=function(a){return a.Xe||a.dR||a.mutedAutoplay}; EIQ=function(a,l){return lc(a)?l!==1&&l!==2&&l!==0?"AUTOPLAY_STATUS_UNAVAILABLE":a.nf?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; oI7=function(a,l,m){var T=l.Y();a.thirdParty||(a.thirdParty={});T.ancestorOrigins&&(a.thirdParty.embeddedPlayerContext=Object.assign({},a.thirdParty.embeddedPlayerContext,{ancestorOrigins:T.ancestorOrigins}));T.V("embeds_enable_autoplay_and_visibility_signals")&&(T.cI!=null&&(a.thirdParty.embeddedPlayerContext=Object.assign({},a.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(T.cI)})),T.yp&&(a.thirdParty.embeddedPlayerContext=Object.assign({},a.thirdParty.embeddedPlayerContext,{visibilityFractionSource:T.yp})), a.thirdParty.embeddedPlayerContext=Object.assign({},a.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:ag(),autoplayIntended:lc(l),autoplayStatus:EIQ(l,m)}))}; umP=function(a,l){U5(a,2,l.Wv,m2,3);U5(a,3,l.hL,xZp,3);XA(a,4,l.onesieUstreamerConfig);XA(a,9,l.bA);U5(a,10,l.uJ,Tu,3);U5(a,15,l.reloadPlaybackParams,DZd,3)}; YF7=function(a,l){U5(a,1,l.formatId,y3,3);DI(a,2,l.startTimeMs);DI(a,3,l.durationMs);DI(a,4,l.wl);DI(a,5,l.H$);U5(a,9,l.b2M,XUb,3);U5(a,11,l.KQ8,Rg,1);U5(a,12,l.Ze,Rg,1)}; UZd=function(a,l){Yn(a,1,l.videoId);DI(a,2,l.lmt)}; XUb=function(a,l){if(l.pN)for(var m=0;m>31));DI(a,16,l.Yo);DI(a,17,l.detailedNetworkType);DI(a,18,l.jk);DI(a,19,l.Zb);DI(a,21,l.iab);DI(a,23,l.gm);DI(a,28,l.Ck);DI(a,29,l.S0L);DI(a,34,l.visibility);m=l.playbackRate;if(m!==void 0){var T=new ArrayBuffer(4);(new Float32Array(T))[0]=m;m=(new Uint32Array(T))[0];if(m!==void 0)for(xn(a,285),o7(a,4),T=0;T<4;)a.view.setUint8(a.pos,m&255),m>>=8,a.pos+=1,T+=1}DI(a,36,l.Gs); U5(a,38,l.mediaCapabilities,ldH,3);DI(a,39,l.baN);DI(a,40,l.fb);DI(a,44,l.playerState);uq(a,46,l.P2);DI(a,48,l.pz);DI(a,50,l.QB);DI(a,51,l.XI);DI(a,54,l.gP);if(l.nh)for(m=0;m>31));Yn(a,2,l.message)}; MJd=function(a,l){DI(a,1,l.clientState);U5(a,2,l.Z3M,bhR,1)}; qbd=function(a,l){XA(a,1,l.YG8);U5(a,2,l.Rux,gZw,3);U5(a,3,l.coldStartInfo,MJd,3)}; HhQ=function(a,l){DI(a,1,l.type);XA(a,2,l.value)}; R67=function(a,l){Yn(a,1,l.hl);Yn(a,12,l.deviceMake);Yn(a,13,l.deviceModel);DI(a,16,l.clientName);Yn(a,17,l.clientVersion);Yn(a,18,l.osName);Yn(a,19,l.osVersion)}; ihd=function(a,l){Yn(a,1,l.name);Yn(a,2,l.value)}; dmt=function(a,l){Yn(a,1,l.url);if(l.LD)for(var m=0;m1&&(this.K=a[1]==="2")}; ic=function(a,l,m,T,y){this.L=a;this.T=l;this.Z=m;this.reason=T;this.Nj=y===void 0?0:y}; g.du=function(a,l,m,T){return new ic(g.wF[a]||0,g.wF[l]||0,m,T)}; AP=function(a){if(jR&&a.Nj)return!1;var l=g.wF.auto;return a.L===l&&a.T===l}; Gu=function(a){return Px[a.T||a.L]||"auto"}; Ybl=function(a,l){l=g.wF[l];return a.L<=l&&(!a.T||a.T>=l)}; V3=function(a){return"["+a.L+"-"+a.T+", override: "+(a.Z+", reason: "+a.reason+"]")}; p_=function(a,l,m){this.videoInfos=a;this.T=l;this.audioTracks=[];if(this.T){a=new Set;m==null||m({ainfolen:this.T.length});l=g.c(this.T);for(var T=l.next();!T.done;T=l.next())if(T=T.value,!T.WF||a.has(T.WF.id)){var y=void 0,R=void 0,H=void 0;(H=m)==null||H({atkerr:!!T.WF,itag:T.itag,xtag:T.T,lang:((y=T.WF)==null?void 0:y.name)||"",langid:((R=T.WF)==null?void 0:R.id)||""})}else y=new g.Mn(T.id,T.WF),a.add(T.WF.id),this.audioTracks.push(y);m==null||m({atklen:this.audioTracks.length})}}; Zl=function(){g.k.apply(this,arguments);this.T=null}; lQt=function(a,l,m,T,y,R,H){if(a.T)return a.T;var b={},M=new Set,d={};if(Wx(T)){for(var A in T.T)T.T.hasOwnProperty(A)&&(a=T.T[A],d[a.info.Gu]=[a.info]);return d}A=Um7(l,T,b);R&&y({aftsrt:cx(A)});for(var P={},G=g.c(Object.keys(A)),V=G.next();!V.done;V=G.next()){V=V.value;for(var p=g.c(A[V]),L=p.next();!L.done;L=p.next()){L=L.value;var N=L.itag,e=void 0,t=V+"_"+(((e=L.video)==null?void 0:e.fps)||0);P.hasOwnProperty(t)?P[t]===!0?d[V].push(L):b[N]=P[t]:(e=L_(l,L,m,T.isLive,M),e!==!0?(H.add(V),b[N]=e, e==="disablevp9hfr"&&(P[t]="disablevp9hfr")):(d[V]=d[V]||[],d[V].push(L),P[t]=!0))}}R&&y({bfflt:cx(d)});for(var v in d)d.hasOwnProperty(v)&&(T=v,d[T]&&d[T][0].YN()&&(d[T]=d[T],d[T]=rg7(l,d[T],b),d[T]=aQb(d[T],b)));R&&Object.keys(b).length>0&&y({rjr:hS(b)});l=g.c(M.values());for(T=l.next();!T.done;T=l.next())(T=m.j.get(T.value))&&--T.mz;R&&y({aftflt:cx(d)});a.T=g.Is(d,function(S){return!!S.length}); return a.T}; TFw=function(a,l,m,T,y,R,H,b){b=b===void 0?!1:b;if(l.FU&&H&&H.length>1&&!(l.hV>0||l.J)){for(var M=l.L||!!y,d=M&&l.QO?R:void 0,A=Um7(l,T),P=[],G=[],V={},p=0;p0&&G&&y&&(A=[H,m],N=y.concat(G).filter(function(e){return e})); if(N.length&&!l.Ue){tP(N,A);if(M){M=[];l=g.c(N);for(T=l.next();!T.done;T=l.next())M.push(T.value.itag);R({hbdfmt:M.join(".")})}return fy(new p_(N,a,d))}N=j_7(l);N=g.Pn(N,b);if(!N){if(P[H])return R=P[H],tP(R),fy(new p_(R,a,d));M&&R({novideo:1});return Sn()}l.Ug&&(N==="1"||N==="1h")&&P[m]&&(H=eR(P[N]),A=eR(P[m]),A>H?N=m:A===H&&AS7(P[m])&&(N=m));N==="9"&&P.h&&eR(P.h)>eR(P["9"])&&(N="h");l.vF&&T.isLive&&N==="("&&P.H&&eR(P["("])<1440&&(N="H");M&&R({vfmly:Fp(N)});l=P[N];if(!l.length)return M&&R({novfmly:Fp(N)}), Sn();tP(l);return fy(new p_(l,a,d))}; RSd=function(a,l){var m=!(!a.m&&!a.M),T=!(!a.mac3&&!a.MAC3),y=!(!a.meac3&&!a.MEAC3);a=!(!a.i&&!a.I);l.EG=a;return m||T||y||a}; AS7=function(a){a=g.c(a);for(var l=a.next();!l.done;l=a.next())if(l=l.value,l.itag&&P3R.has(l.itag))return!0;return!1}; q_l=function(a){a=g.c(a);for(var l=a.next();!l.done;l=a.next())if(l.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Fp=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; cx=function(a){var l=[],m;for(m in a)if(a.hasOwnProperty(m)){var T=m;l.push(Fp(T));T=g.c(a[T]);for(var y=T.next();!y.done;y=T.next())l.push(y.value.itag)}return l.join(".")}; ySt=function(a,l,m,T,y,R){var H={},b={};g.wg(l,function(M,d){M=M.filter(function(A){var P=A.itag;if(!A.u0)return b[P]="noenc",!1;if(R.ZR&&A.Gu==="(h"&&R.yg)return b[P]="lichdr",!1;if(!a.K&&A.Gu==="1e")return b[P]="noav1enc",!1;if(A.Gu==="("||A.Gu==="(h"){if(a.Z&&m&&m.flavor==="widevine"){var G=A.mimeType+"; experimental=allowed";(G=!!A.u0[m.flavor]&&!!m.T[G])||(b[P]=A.u0[m.flavor]?"unspt":"noflv");return G}if(!hP(a,Ow.CRYPTOBLOCKFORMAT)&&!a.hM||a.jt)return b[P]=a.jt?"disvp":"vpsub",!1}return m&&A.u0[m.flavor]&& m.T[A.mimeType]?!0:(b[P]=m?A.u0[m.flavor]?"unspt":"noflv":"nosys",!1)}); M.length&&(H[d]=M)}); T&&Object.entries(b).length&&y({rjr:hS(b)});return H}; aQb=function(a,l){var m=uK(a,function(T,y){return y.video.fps>32?Math.min(T,y.video.width):T},Infinity); m32||T.video.widtha.C)return"max"+a.C;if(a.wb&&l.Gu==="h"&&l.video&&l.video.qualityOrdinal>1080)return"blkhigh264";if(l.Gu==="(h"&&!m.B)return"enchdr";if((T===void 0?0:T)&&rF(l)&&!a.Kx)return"blk51live";if((l.Gu==="MAC3"||l.Gu==="mac3")&&!a.j)return"blkac3";if((l.Gu==="MEAC3"||l.Gu==="meac3")&&!a.K)return"blkeac3";if(l.Gu==="M"||l.Gu==="m")return"blkaac51"; if((l.Gu==="so"||l.Gu==="sa")&&!a.Ij)return"blkamb";if(!a.ZR&&VIp(l)&&(!m.K||l.Gu!=="1e"))return"cbc";if(!m.K&&VIp(l)&&l.Gu==="1e")return"cbcav1";if((l.Gu==="i"||l.Gu==="I")&&!a.uZ)return"blkiamf";var R;if(a.lZ&&((R=l.audio)==null?void 0:R.L)===!0)return"blkvbcabr";var H,b;if(a.St&&(l.Gu==="1"||l.Gu==="1h"||m.K&&l.Gu==="1e")&&((H=l.video)==null?0:H.qualityOrdinal)&&((b=l.video)==null?void 0:b.qualityOrdinal)>a.St)return"av1cap";if((T=m.j.get(l.Gu))&&T.mz>0)return y.add(l.Gu),"byerr";var M;if((M=l.video)== null?0:M.fps>32){if(!m.qj&&!hP(m,Ow.FRAMERATE))return"capHfr";if(a.Mj&&l.video.qualityOrdinal>=4320)return"blk8khfr";if(DQ(l)&&a.nR&&l.u0&&l.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(a.Nj&&l.Nj>a.Nj)return"ratecap";a=GMP(m,l);return a!==!0?a:!0}; tP=function(a,l){l=l===void 0?[]:l;g.sX(a,function(m,T){var y=T.Nj-m.Nj;if(!m.YN()||!T.YN())return y;var R=T.video.height*T.video.width-m.video.height*m.video.width;!R&&l&&l.length>0&&(m=l.indexOf(m.Gu)+1,T=l.indexOf(T.Gu)+1,R=m===0||T===0?T||-1:m-T);R||(R=y);return R})}; g.K_=function(a,l){this[q[2]]=a;this[q[18]]=l===void 0?!1:l;this[q[12]]=this[q[27]]=this[q[31]]=q[10];this[q[23]]={};this[q[14]]=q[10]}; vx=function(a){zu(a);return a[q[12]]}; $y=function(a){return a[q[2]]?a[q[2]][q[47]](q[35]):a[q[31]]===q[35]}; VSt=function(a){zu(a);return g.EX(a[q[23]],function(l){return l!==null})}; SR=function(a){zu(a);var l=decodeURIComponent(a[q[45]](q[17])||q[10])[q[20]](q[8]);return a[q[27]]===q[5]&&l[q[9]]>1&&!!l[1]}; f_=function(a,l){l=l===void 0?!1:l;zu(a);if(a[q[27]]!==q[5]){var m=a[q[30]]();m[q[0]](q[51],q[40]);return m}var T=a[q[3]]();m=new g.b_(T);var y=a[q[45]](q[36]),R=decodeURIComponent(a[q[45]](q[17])||q[10])[q[20]](q[8]);if(y&&R&&R[q[9]]>1&&R[1])return T=m.T,a=T[q[50]](/^[^.]*/,q[10]),g.MV(m,(T[q[4]](q[57])===0?q[57]:q[28])+y+q[68]+R[1]+a),m=new g.K_(m[q[6]]()),m[q[0]](q[26],q[40]),m;if(l)return m=a[q[30]](),m[q[0]](q[26],q[40]),m;y=m.T[q[44]](q[71]);m.T[q[44]](q[62])?(g.MV(m,q[65]),T=m[q[6]]()):m.T[q[44]](q[86])? (g.MV(m,q[53]),T=m[q[6]]()):(m=qDb(T),ll(m)&&(T=m));m=new g.K_(T);m[q[0]](q[77],q[40]);y&&m[q[0]](q[82],q[89]);return m}; zu=function(a){if(a[q[2]]){if(!ll(a[q[2]])&&!a[q[2]][q[47]](q[35]))throw new g.YH(q[37],a[q[2]]);var l=g.Vr(a[q[2]]);a[q[31]]=l.K;a[q[12]]=l.T+(l.Z!=null?q[83]+l.Z:q[10]);var m=l.L;if(m[q[47]](q[5]))a[q[27]]=q[5],m=m[q[25]](14);else if(m[q[47]](q[29]))a[q[27]]=q[29],m=m[q[25]](13);else if(m[q[47]](q[73])){var T=m[q[4]](q[21],12),y=m[q[4]](q[21],T+1);T>0&&y>0?(a[q[27]]=m[q[25]](0,y),m=m[q[25]](y+1)):(a[q[27]]=m,m=q[10])}else a[q[27]]=m,m=q[10];T=a[q[23]];a[q[23]]=pTt(m);Object[q[79]](a[q[23]],ZwH(l.j.toString())); Object[q[79]](a[q[23]],T);a[q[23]][q[58]]===q[16]&&(delete a[q[23]][q[58]],a[q[27]]+=q[22]);a[q[2]]=q[10];a[q[14]]=q[10];a[q[18]]&&(zu(a),l=a[q[23]][q[42]]||null)&&(l=WlP[0](l),a[q[0]](q[42],l))}}; cSl=function(a){zu(a);var l=a[q[31]]+(a[q[31]]?q[74]:q[1])+a[q[12]]+a[q[27]];if(VSt(a)){var m=[];g.wg(a[q[23]],function(T,y){T!==null&&m[q[15]](y+q[61]+T)}); l+=q[49]+m[q[19]](q[56])}return l}; pTt=function(a){a=a[q[20]](q[21]);var l=0;a[0]||l++;for(var m={};l0?Lll(l,T[q[25]](0,y),T[q[25]](y+1)):T&&(l[T]=q[10])}return l}; Lll=function(a,l,m){if(l===q[72]){var T;(T=m[q[4]](q[61]))>=0?(l=q[55]+m[q[25]](0,T),m=m[q[25]](T+1)):(T=m[q[4]](q[69]))>=0&&(l=q[55]+m[q[25]](0,T),m=m[q[25]](T+3))}a[l]=m}; JP=function(a){var l=g.I(a,NF7)||a[q[33]];a={yT:!1,ji:q[10],wJ:q[10],s:q[10]};if(!l)return a;l=H$(l);a[q[59]]=!0;a[q[70]]=l[q[14]];a[q[48]]=l[q[38]];a[q[7]]=l[q[7]];return a}; Bx=function(a,l,m,T,y,R,H,b,M){this.mN=a;this.startTime=l;this.duration=m;this.ingestionTime=T;this.sourceURL=y;this.We=M;this.endTime=l+m;this.T=H||0;this.range=R||null;this.pending=b||!1;this.We=M||null}; g.ky=function(){this.segments=[];this.T=null;this.L=!0;this.Z=""}; Q_R=function(a,l){if(l>a.HN())a.segments=[];else{var m=AI(a.segments,function(T){return T.mN>=l},a); m>0&&a.segments.splice(0,m)}}; n_=function(a,l,m,T,y){y=y===void 0?!1:y;this.data=a;this.offset=l;this.size=m;this.type=T;this.T=(this.L=y)?0:8;this.dataOffset=this.offset+this.T}; wu=function(a){var l=a.data.getUint8(a.offset+a.T);a.T+=1;return l}; Ig=function(a){var l=a.data.getUint16(a.offset+a.T);a.T+=2;return l}; C_=function(a){var l=a.data.getInt32(a.offset+a.T);a.T+=4;return l}; Ew=function(a){var l=a.data.getUint32(a.offset+a.T);a.T+=4;return l}; og=function(a){var l=a.data;var m=a.offset+a.T;l=l.getUint32(m)*4294967296+l.getUint32(m+4);a.T+=8;return l}; Dl=function(a,l){l=l===void 0?NaN:l;if(isNaN(l))var m=a.size;else for(m=a.T;m1?Math.ceil(y*l):Math.floor(y*l))}a.skip(1);m=wu(a)<<16|Ig(a);if(m&256){T=m&1;y=m&4;var R=m&512,H=m&1024,b=m&2048;m=Ew(a);T&&a.skip(4);y&&a.skip(4);T=(R?4:0)+(H?4:0)+(b?4:0);for(y=0;y1?Math.ceil(H*l):Math.floor(H*l)),a.skip(T)}}}; T$=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.lD(a,0,1836476516))?g.mi(a):NaN}; S_5=function(a){var l=g.lD(a,0,1937011556);if(!l)return null;l=yN(a,l.dataOffset+8,1635148593)||yN(a,l.dataOffset+8,1635135537);if(!l)return null;var m=yN(a,l.dataOffset+78,1936995172),T=yN(a,l.dataOffset+78,1937126244);if(!T)return null;l=null;if(m)switch(m.skip(4),wu(m)){default:l=0;break;case 1:l=2;break;case 2:l=1;break;case 3:l=255}var y=m=null,R=null;if(T=yN(a,T.dataOffset,1886547818)){var H=yN(a,T.dataOffset,1886546020),b=yN(a,T.dataOffset,2037673328);if(!b&&(b=yN(a,T.dataOffset,1836279920), !b))return null;H&&(H.skip(4),m=C_(H)/65536,R=C_(H)/65536,y=C_(H)/65536);a=tSl(b);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new $Np(l,m,R,y,a)}return null}; yN=function(a,l,m){for(;RG(a,l);){var T=HO(a,l);if(T.type===m)return T;l+=T.size}return null}; g.lD=function(a,l,m){for(;RG(a,l);){var T=HO(a,l);if(T.type===m)return T;l=qA(T.type)?l+8:l+T.size}return null}; g.bD=function(a){if(a.data.getUint8(a.dataOffset)){var l=a.data;a=a.dataOffset+4;l=l.getUint32(a)*4294967296+l.getUint32(a+4)}else l=a.data.getUint32(a.dataOffset+4);return l}; HO=function(a,l){var m=a.getUint32(l),T=a.getUint32(l+4);return new n_(a,l,m,T)}; g.mi=function(a){var l=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+l)}; fQt=function(a){a=new n_(a.data,a.offset,a.size,a.type,a.L);var l=wu(a);a.skip(7);var m=Ew(a);if(l===0){l=Ew(a);var T=Ew(a)}else l=og(a),T=og(a);a.skip(2);for(var y=Ig(a),R=[],H=[],b=0;b122)return!1}return!0}; qA=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768}; JSw=function(a){a.skip(4);return{SQj:Dl(a,0),value:Dl(a,0),timescale:Ew(a),S$O:Ew(a),Let:Ew(a),id:Ew(a),oM:Dl(a),offset:a.offset}}; g.BFP=function(a){var l=yN(a,0,1701671783);if(!l)return null;var m=JSw(l),T=m.SQj;m=aG(m.oM);if(a=yN(a,l.offset+l.size,1701671783))if(a=JSw(a),a=aG(a.oM),m&&a){l=g.c(Object.keys(a));for(var y=l.next();!y.done;y=l.next())y=y.value,m[y]=a[y]}return m?new Uw(m,T):null}; gH=function(a,l){for(var m=yN(a,0,l);m;){var T=m;T.type=1936419184;T.data.setUint32(T.offset+4,1936419184);m=yN(a,m.offset+m.size,l)}}; g.MA=function(a,l){for(var m=0,T=[];RG(a,m);){var y=HO(a,m);y.type===l&&T.push(y);m=qA(y.type)?m+8:m+y.size}return T}; kM3=function(a,l){var m=g.lD(a,0,1937011556),T=g.lD(a,0,1953654136);if(!m||!T||a.getUint32(m.offset+12)>=2)return null;var y=new DataView(l.buffer,l.byteOffset,l.length),R=g.lD(y,0,1937011556);if(!R)return null;l=y.getUint32(R.dataOffset+8);T=y.getUint32(R.dataOffset+12);if(T!==1701733217&&T!==1701733238)return null;T=new eSp(a.byteLength+l);uc(T,a,0,m.offset+12);T.data.setInt32(T.offset,2);T.offset+=4;uc(T,a,m.offset+16,m.size-16);uc(T,y,y.byteOffset+R.dataOffset+8,l);uc(T,a,m.offset+m.size,a.byteLength- (m.offset+m.size));m=g.c([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(y=m.next();!y.done;y=m.next())y=g.B(g.lD(a,0,y.value)),T.data.setUint32(y.offset,y.size+l);a=g.lD(T.data,0,1953654136);T.data.setUint32(a.offset+16,2);return T.data}; n9Q=function(a){var l=g.lD(a,0,1937011556);if(!l)return null;var m=a.getUint32(l.dataOffset+12);if(m!==1701733217&&m!==1701733238)return null;l=yN(a,l.offset+24+(m===1701733217?28:78),1936289382);if(!l)return null;m=yN(a,l.offset+8,1935894637);if(!m||a.getUint32(m.offset+12)!==1667392371)return null;l=yN(a,l.offset+8,1935894633);if(!l)return null;l=yN(a,l.offset+8,1952804451);if(!l)return null;m=new Uint8Array(16);for(var T=0;T<16;T++)m[T]=a.getInt8(l.offset+16+T);return m}; iD=function(a,l){this.T=a;this.pos=0;this.start=l||0}; dH=function(a){return a.pos>=a.T.byteLength}; VN=function(a,l,m){var T=new iD(m);if(!j4(T,a))return!1;T=Ai(T);if(!PO(T,l))return!1;for(a=0;l;)l>>>=8,a++;l=T.start+T.pos;var y=G$(T,!0);T=a+(T.start+T.pos-l)+y;T=T>9?wT7(T-9,8):wT7(T-2,1);a=l-a;m.setUint8(a++,236);for(l=0;lm;y++)m=m*256+LN(a),T*=128;return l?m-T:m}; ZF=function(a){var l=G$(a,!0);a.pos+=l}; E9H=function(a){if(!PO(a,440786851,!0))return null;var l=a.pos;G$(a,!1);var m=G$(a,!0)+a.pos-l;a.pos=l+m;if(!PO(a,408125543,!1))return null;G$(a,!0);if(!PO(a,357149030,!0))return null;var T=a.pos;G$(a,!1);var y=G$(a,!0)+a.pos-T;a.pos=T+y;if(!PO(a,374648427,!0))return null;var R=a.pos;G$(a,!1);var H=G$(a,!0)+a.pos-R,b=new Uint8Array(m+12+y+H),M=new DataView(b.buffer);b.set(new Uint8Array(a.T.buffer,a.T.byteOffset+l,m));M.setUint32(m,408125543);M.setUint32(m+4,33554431);M.setUint32(m+8,4294967295); b.set(new Uint8Array(a.T.buffer,a.T.byteOffset+T,y),m+12);b.set(new Uint8Array(a.T.buffer,a.T.byteOffset+R,H),m+12+y);return b}; NA=function(a){var l=a.pos;a.pos=0;var m=1E6;j4(a,[408125543,357149030,2807729])&&(m=pN(a));a.pos=l;return m}; o9p=function(a,l){var m=a.pos;a.pos=0;if(a.T.getUint8(a.pos)!==160&&!QN(a)||!PO(a,160))return a.pos=m,NaN;G$(a,!0);var T=a.pos;if(!PO(a,161))return a.pos=m,NaN;G$(a,!0);LN(a);var y=LN(a)<<8|LN(a);a.pos=T;if(!PO(a,155))return a.pos=m,NaN;T=pN(a);a.pos=m;return(y+T)*l/1E9}; QN=function(a){if(!xNP(a)||!PO(a,524531317))return!1;G$(a,!0);return!0}; xNP=function(a){if(a.rU()){if(!PO(a,408125543))return!1;G$(a,!0)}return!0}; j4=function(a,l){for(var m=0;m0){var T=ZwH(l.substring(m+1));g.wg(T,function(y,R){this.set(R,y)},a); l=l.substring(0,m)}l=pTt(l);g.wg(l,function(y,R){this.set(R,y)},a)}; uIt=function(a){return a.t$}; XTl=function(a){var l=a.t$.eb(),m=[];g.wg(a.T,function(y,R){m.push(R+"="+y)}); if(!m.length)return l;var T=m.join("&");a=VSt(a.t$)?"&":"?";return l+a+T}; e4=function(a,l){var m=new g.K_(l);(l=m.get("req_id"))&&a.set("req_id",l);g.wg(a.T,function(T,y){m["set"](y,null)}); return m}; Y_w=function(){this.j=this.Z=this.T=this.timedOut=this.started=this.K=this.L=0}; Fr=function(a){a.K=(0,g.E)();a.started=0;a.timedOut=0;a.T=0}; hi=function(a,l){var m=a.started+a.T*4;l&&(m+=a.Z);m=Math.max(0,m-3);return Math.pow(1.6,m)}; Oq=function(a,l){a[l]||(a[l]=new Y_w);return a[l]}; KN=function(a){this.N=this.B=this.K=this.Z=0;this.J=this.C=!1;this.T=a;this.L=a.clone()}; UNt=function(a,l,m){if($y(a.T))return!1;var T=Oq(m,vx(a.T));if(T.timedOut<1&&T.T<1)return!1;T=T.timedOut+T.T;a=z$(a,l);m=Oq(m,vx(a));return m.timedOut+m.T+01?l=l.F8:(m=Oq(m,$4(a,a.H4(l,m),l)),l=Math.max(a.K,m.timedOut)+l.sW*(a.Z-a.K)+.25*a.B,l=l>3?1E3*Math.pow(1.6,l-3):0);return l===0?!0:a.N+l<(0,g.E)()}; rSt=function(a,l,m){a.T.set(l,m);a.L.set(l,m);a.j&&a.j.set(l,m)}; agl=function(a,l,m,T,y){++a.Z;l&&++a.K;vx(m.t$).startsWith("redirector.")&&(a.T=a.L.clone(),delete a.j,T.LM&&delete y[vx(a.T)])}; S4=function(a){return a?(a.itag||"")+";"+(a.lmt||0)+";"+(a.xtags||""):""}; fN=function(a,l,m,T){this.initRange=m;this.indexRange=T;this.T=null;this.Z=!1;this.C=0;this.j=this.bG=this.L=null;this.info=l;this.DR=new KN(a)}; Ji=function(a,l){this.start=a;this.end=l;this.length=l-a+1}; BO=function(a){a=a.split("-");var l=Number(a[0]),m=Number(a[1]);if(!isNaN(l)&&!isNaN(m)&&a.length===2&&(a=new Ji(l,m),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a}; k4=function(a,l){return new Ji(a,a+l-1)}; lgH=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}}; nN=function(a){if(!a)return new Ji(0,0);var l=Number(a.start);a=Number(a.end);if(!isNaN(l)&&!isNaN(a)&&(l=new Ji(l,a),l.length>0))return l}; wH=function(a,l,m,T,y,R,H,b,M,d,A,P){T=T===void 0?"":T;this.type=a;this.T=l;this.range=m;this.source=T;this.Ry=A;this.clipId=P===void 0?"":P;this.N=[];this.J="";this.mN=-1;this.Ij=this.lT=0;this.J=T;this.mN=y>=0?y:-1;this.startTime=R||0;this.duration=H||0;this.L=b||0;this.Z=M>=0?M:this.range?this.range.length:NaN;this.K=this.range?this.L+this.Z===this.range.length:d===void 0?!!this.Z:d;this.range?(this.j=this.startTime+this.duration*this.L/this.range.length,this.B=this.duration*this.Z/this.range.length, this.C=this.j+this.B):miR(this)}; miR=function(a){TVt?(a.j=a.startTime+Math.min(a.duration*a.L/a.T.info.Nj,a.duration),a.B=Math.min(a.duration,a.duration*a.Z/a.T.info.Nj),a.C=Math.min(a.j+a.B,a.startTime+a.duration)):(a.j=a.startTime,a.B=a.duration,a.C=a.j+a.B)}; yuz=function(a,l,m){var T=!(!l||l.T!==a.T||l.type!==a.type||l.mN!==a.mN);return m?T&&!!l&&(a.range&&l.range?l.range.end===a.range.end:l.range===a.range)&&l.L+l.Z===a.L+a.Z:T}; IG=function(a){return a.type===1||a.type===2}; CN=function(a){return a.type===3||a.type===6}; Eq=function(a,l){return a.T===l.T?a.range&&l.range?a.range.start+a.L+a.Z===l.range.start+l.L:a.mN===l.mN?a.L+a.Z===l.L:a.mN+1===l.mN&&l.L===0&&a.K:!1}; HT5=function(a,l){return a.mN!==l.mN&&l.mN!==a.mN+1||a.type!==l.type?!1:Eq(a,l)?!0:Math.abs(a.j-l.j)<=1E-6&&a.mN===l.mN?!1:RF3(a,l)}; RF3=function(a,l){return Eq(a,l)||Math.abs(a.C-l.j)<=1E-6||a.mN+1===l.mN&&l.L===0&&a.K?!0:!1}; oG=function(a){return a.mN+(a.K?1:0)}; qKQ=function(a){a.length===1||g.DN(a,function(m){return!!m.range}); for(var l=1;l=l.range.start+l.L&&a.range.start+a.L+a.Z<=l.range.start+l.L+l.Z:a.mN===l.mN&&a.L>=l.L&&(a.L+a.Z<=l.L+l.Z||l.K)}; Aub=function(a,l){return a.T!==l.T?!1:a.type===4&&l.type===3&&a.T.Du()?(a=a.T.rF(a),md(a,function(m){return Aub(m,l)})):a.mN===l.mN&&!!l.Z&&l.L+l.Z>a.L&&l.L+l.Z<=a.L+a.Z}; DF=function(a,l){var m=l.mN;a.J="updateWithSegmentInfo";a.mN=m;if(a.startTime!==l.startTime||a.duration!==l.duration)a.startTime=l.startTime+a.lT,a.duration=l.duration,miR(a)}; uD=function(a,l){var m=this;this.gb=a;this.j=this.T=null;this.K=this.OF=NaN;this.H4=this.requestId=null;this.lM={iYz:function(){return m.range}}; this.DR=a[0].T.DR;this.L=l||"";this.gb[0].range&&this.gb[0].Z>0&&(bTQ(a)?(this.range=qKQ(a),this.Z=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.Z=gM7(a)))}; Xr=function(a){return!IG(a.gb[a.gb.length-1])}; Y4=function(a){return a.gb[a.gb.length-1].type===4}; g.Uq=function(a,l,m){m=a.H4===null?a.DR.H4(l,m,a.gb[0].type):a.H4;if(a.T){l=m?f_(a.T,l.IH):a.T;var T=new ti(l);T.get("alr")||T.set("alr","yes");a.L&&DNR(T,a.L)}else/http[s]?:\/\//.test(a.L)?T=new ti(new g.K_(a.L)):(T=vO(a.DR,m,l),a.L&&DNR(T,a.L));(l=a.range)?T.set("range",l.toString()):a.gb[0].T.xs()&&a.gb.length===1&&a.gb[0].L&&T.set("range",a.gb[0].L+"-");a.requestId&&T.set("req_id",a.requestId);isNaN(a.OF)||T.set("headm",a.OF.toString());isNaN(a.K)||T.set("mffa",a.K+"ms");a.urlParams&&g.wg(a.urlParams, function(y,R){T.set(R,y)}); return T}; PHp=function(a){if(a.range)return a.Z;a=a.gb[0];return Math.round(a.B*a.T.info.Nj)}; GRd=function(a,l){return Math.max(0,a.gb[0].j-l)}; rH=function(a,l,m,T,y,R){R=R===void 0?0:R;fN.call(this,a,l,T,void 0);this.K=m;this.Y7=R;this.index=y||new g.ky}; Vy7=function(a,l,m,T,y){this.mN=a;this.startSecs=l;this.Da=m;this.T=T||NaN;this.L=y||NaN}; ab=function(a,l,m){for(;a;a=a.parentNode)if(a.attributes&&(!m||a.nodeName===m)){var T=a.getAttribute(l);if(T)return T}return""}; lw=function(a,l){for(;a;a=a.parentNode){var m=a.getElementsByTagName(l);if(m.length>0)return m[0]}return null}; pJH=function(a){if(!a)return 0;var l=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return l?(Number(l[2])|0)*3600+(Number(l[4])|0)*60+(Number(l[6])|0):Number(a)|0}; ZT7=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a}; mY=function(){this.T=[];this.L=null;this.C=0;this.Z=[];this.K=!1;this.B="";this.j=-1}; WHb=function(a){var l=a.Z;a.Z=[];return l}; cu7=function(){this.j=[];this.T=null;this.L={};this.Z={}}; tyl=function(a,l){var m=[];l=Array.from(l.getElementsByTagName("SegmentTimeline"));l=g.c(l);for(var T=l.next();!T.done;T=l.next()){T=T.value;var y=T.parentNode.parentNode,R=null;y.nodeName==="Period"?R=LHw(a):y.nodeName==="AdaptationSet"?(y=y.getAttribute("id")||y.getAttribute("mimetype")||"",R=NVR(a,y)):y.nodeName==="Representation"&&(y=y.getAttribute("id")||"",R=Qy7(a,y));if(R==null)return;R.update(T);g.tI(m,WHb(R))}g.tI(a.j,m);OPl(a.j,function(H){return H.startSecs*1E3+H.T})}; eF7=function(a){a.T&&(a.T.T=[]);g.wg(a.L,function(l){l.T=[]}); g.wg(a.Z,function(l){l.T=[]})}; LHw=function(a){a.T||(a.T=new mY);return a.T}; NVR=function(a,l){a.L[l]||(a.L[l]=new mY);return a.L[l]}; Qy7=function(a,l){a.Z[l]||(a.Z[l]=new mY);return a.Z[l]}; yB=function(a){var l=a===void 0?{}:a;a=l.Y7===void 0?0:l.Y7;var m=l.ih===void 0?!1:l.ih;var T=l.fY===void 0?0:l.fY;var y=l.sQ===void 0?0:l.sQ;var R=l.h$===void 0?Infinity:l.h$;var H=l.ZV===void 0?0:l.ZV;var b=l.mx===void 0?!1:l.mx;l=l.sK===void 0?!1:l.sK;g.ky.call(this);this.u1=this.uY=-1;this.Ca=a;this.fY=T;this.ih=m;this.sQ=y;this.h$=R;this.ZV=H;((this.mx=b)||isFinite(R)&&this.h$>0)&&m&&TU&&(this.L=!1,this.Z="postLive");this.sK=l}; Rb=function(a,l){return $B(a.segments,function(m){return l-m.mN})}; HK=function(a,l,m){m=m===void 0?{}:m;rH.call(this,a,l,"",void 0,void 0,m.Y7||0);this.index=new yB(m)}; qO=function(a,l,m){fN.call(this,a,l);this.K=m;a=this.index=new g.ky;a.L=!1;a.Z="d"}; FHQ=function(a,l,m){var T=a.index.RX(l),y=a.index.getStartTime(l),R=a.index.getDuration(l);m?R=m=0:m=a.info.Nj*R;return new uD([new wH(3,a,void 0,"otfCreateRequestInfoForSegment",l,y,R,0,m)],T)}; hFp=function(a,l){if(!a.index.isLoaded()){var m=[],T=l.j;l=l.K.split(",").filter(function(A){return A.length>0}); for(var y=0,R=0,H=0,b=/^(\d+)/,M=/r=(\d+)/,d=0;d0&&(y.T=Math.min(y.T+H,10),y.L=R);y.T>0?(y.T--,y=!0):y=!1;if(y)typeof T==="function"&&(T=T()),console.log("plyr."+l,T);else{var b;T=((b=syw.get(l))!=null?b:0)+1;syw.set(l,T);T%100===1&&console.warn("plyr","plyr."+l+" is chatty, dropping logs.")}}}; $i7=function(){this.T=10;this.L=Date.now()}; MO=function(a,l){this.info=a;this.T=l;this.L=null;this.j=this.Z=-1;this.timestampOffset=0;this.isLocked=this.C=!1;this.K=this.info.T.gK()&&!this.info.L}; SKd=function(a,l){a.T.getLength();l=Math.min(l,a.info.Z);var m=a.T.split(l),T=m.Xm;m=new MO(new wH(a.info.type,a.info.T,a.info.range,a.info.J,a.info.mN,a.info.startTime,a.info.duration,a.info.L,l,!1,a.info.Ry,a.info.clipId),m.N$);m.j=a.j;m.Z=a.Z;l=new MO(new wH(a.info.type,a.info.T,a.info.range,a.info.J,a.info.mN,a.info.startTime,a.info.duration,a.info.L+l,a.info.Z-l,a.info.K,a.info.Ry,a.info.clipId),T);l.j=a.j;l.Z=a.Z;return[m,l]}; g.iw=function(a,l,m,T){m=m===void 0?!1:m;T=T===void 0?0:T;if(a.isLocked||l.isLocked||!Eq(a.info,l.info)||a.info.K)return null;if(T){if(a.T.getLength()+l.T.getLength()>T)return null}else if(m&&(m=a.T,T=l.T,m=!(T.TA.length?tL7(m,T.TA[0]):1)),m)return null;m=new wH(a.info.type,a.info.T,a.info.range,a.info.J,a.info.mN,a.info.startTime,a.info.duration,a.info.L,a.info.Z,a.info.K,a.info.Ry,a.info.clipId);T=l.info;m.Z+=T.Z;m.range&&(m.B+=T.B);m.C=T.C;m.K=T.K;T=new cX;L8(T,a.T);L8(T,l.T);m=new MO(m,T);m.L!= null&&l.L!=null&&(new g.bw("dash")).T(414627957,"merged slice emsg overridden; prev: "+m.L.TD()+" next: "+l.L.TD());m.L=l.L||a.L;m.Z=a.Z!==-1?a.Z:l.Z;m.j=a.j!==-1?a.j:l.j;return m}; g.dS=function(a){g.ay(a.info.T.info)||a.info.T.info.n5();if(a.Z!==-1)return a.Z;if(a.L&&Oww(a.L))return a.Z=Oww(a.L),a.Z;if(g.ay(a.info.T.info)){var l=a.Iu();for(var m=a.info.T.T,T=NaN,y=NaN,R=0;RG(l,R);){var H=HO(l,R);H.type===1936286840?y=H.data.getUint32(H.dataOffset+8):H.type===1836476516?y=g.mi(H):H.type===1952867444&&isNaN(T)&&(T=g.bD(H));R=qA(H.type)?R+8:R+H.size}!y&&m&&(y=T$(m));l=T/y}else l=new iD(a.Iu()),m=a.K?l:new iD(new DataView(a.info.T.T.buffer)),T=NA(m),m=l.pos,l.pos=0,QN(l)?PO(l, 231)?(T=pN(l)*T/1E9,l.pos=m,l=T):(l.pos=m,l=NaN):(l.pos=m,l=NaN);a.Z=l||a.info.j;return a.Z}; Ju7=function(a,l){a.timestampOffset>0&&(l-=a.timestampOffset);var m=g.dS(a)+l;fg5(a,m);a.timestampOffset=l}; fg5=function(a,l){g.ay(a.info.T.info)||a.info.T.info.n5();a.Z=l;if(g.ay(a.info.T.info)){var m=a.Iu();a=a.info.T.T;for(var T=NaN,y=NaN,R=0;RG(m,R);){var H=HO(m,R);isNaN(T)&&(H.type===1936286840?T=H.data.getUint32(H.dataOffset+8):H.type===1836476516&&(T=g.mi(H)));if(H.type===1952867444){!T&&a&&(T=T$(a));var b=g.bD(H);isNaN(y)&&(y=Math.round(l*T)-b);var M=H;b+=y;if(M.data.getUint8(M.dataOffset)){var d=M.data;M=M.dataOffset+4;d.setUint32(M,Math.floor(b/4294967296));d.setUint32(M+4,b&4294967295)}else M.data.setUint32(M.dataOffset+ 4,b)}R=qA(H.type)?R+8:R+H.size}return!0}m=new iD(a.Iu());a=a.K?m:new iD(new DataView(a.info.T.T.buffer));T=NA(a);a=m.pos;m.pos=0;if(QN(m)&&PO(m,231))if(y=G$(m,!0),l=Math.floor(l*1E9/T),Math.ceil(Math.log(l)/Math.log(2)/8)>y)l=!1;else{for(T=y-1;T>=0;T--)m.T.setUint8(m.pos+T,l&255),l>>>=8;m.pos=a;l=!0}else l=!1;return l}; A8=function(a,l){l=l===void 0?!1:l;var m=jP(a);a=l?0:a.info.B;return m||a}; jP=function(a){g.ay(a.info.T.info)||a.info.T.info.n5();if(a.L&&a.info.type===6)return a.L.Y7;if(g.ay(a.info.T.info)){var l=a.Iu();var m=0;l=g.MA(l,1936286840);l=g.c(l);for(var T=l.next();!T.done;T=l.next())T=fQt(T.value),m+=T.RA[0]/T.timescale;m=m||NaN;if(!(m>=0))a:{m=a.Iu();l=a.info.T.T;for(var y=T=0,R=0;RG(m,T);){var H=HO(m,T);if(H.type===1836476516)y=g.mi(H);else if(H.type===1836019558){!y&&l&&(y=T$(l));if(!y){m=NaN;break a}var b=g.B(yN(H.data,H.dataOffset,1953653094)),M=b;b=y;var d=g.B(yN(M.data, M.dataOffset,1952868452));M=g.B(yN(M.data,M.dataOffset,1953658222));var A=C_(d);C_(d);A&2&&C_(d);d=A&8?C_(d):0;var P=C_(M),G=P&1;A=P&4;var V=P&256,p=P&512,L=P&1024;P&=2048;var N=Ew(M);G&&C_(M);A&&C_(M);for(var e=G=0;e2048?"":l.indexOf("https://")===0?l:""}; WK=function(a,l,m){l.match(XJz);return a(l,m).then(function(T){var y=g.ucd(T.xhr);return y?WK(a,y,m):T.xhr})}; QB=function(a,l,m){a=a===void 0?"":a;l=l===void 0?null:l;m=m===void 0?!1:m;g.Aj.call(this);var T=this;this.sourceUrl=a;this.isLivePlayback=m;this.St=this.duration=0;this.isPremiere=this.mx=this.j=this.isLiveHeadPlayable=this.isLive=this.L=!1;this.h$=this.sQ=0;this.isOtf=this.Fl=!1;this.Cx=(0,g.E)();this.Ij=Infinity;this.T={};this.Z=new Map;this.state=this.At=0;this.timeline=null;this.isManifestless=!1;this.qj=[];this.C=null;this.hM=0;this.K="";this.Kx=NaN;this.jt=this.ZR=this.timestampOffset=this.B= 0;this.Gz=this.Wd=NaN;this.QO=0;this.AM=this.N=!1;this.tM=[];this.Mj={};this.lT=NaN;this.lM={Vmx:function(b){cK(T,b)}}; var y;this.wb=(y=l)==null?void 0:y.XO("html5_use_network_error_code_enums");YKp=!!l&&l.XO("html5_modern_vp9_mime_type");var R;LS=!((R=l)==null||!R.XO("html5_enable_flush_during_seek"))&&g.ur();var H;NO=!((H=l)==null||!H.XO("html5_enable_reset_audio_decoder"))&&g.ur()}; UiQ=function(a){return g.EX(a.T,function(l){return!!l.info.video&&l.info.video.qualityOrdinal>=2160})}; dNt=function(a){return g.EX(a.T,function(l){return!!l.info.video&&l.info.video.isHdr()})}; Nn=function(a){return g.EX(a.T,function(l){return!!l.info.u0})}; g.rud=function(a){return g.EX(a.T,function(l){return Ry(l.info.mimeType)})}; a$d=function(a){return g.EX(a.T,function(l){return l.info.video?l.info.video.projectionType==="EQUIRECTANGULAR":!1})}; l$7=function(a){return g.EX(a.T,function(l){return l.info.video?l.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; mzH=function(a){return g.EX(a.T,function(l){return l.info.video?l.info.video.projectionType==="MESH":!1})}; TDR=function(a){return g.EX(a.T,function(l){return l.info.video?l.info.video.stereoLayout===1:!1})}; ynw=function(a){return sdz(a.T,function(l){return l.info.video?l.ir():!0})}; Wx=function(a){return g.EX(a.T,function(l){return $y(l.DR.T)})}; cK=function(a,l){a.T[l.info.id]=l;a.Z.set(S4(g.mH(l.info,a.Fl)),l)}; Fi=function(a,l,m){m=m===void 0?0:m;var T=a.mimeType||"",y=a.itag;var R=a.xtags;y=y?y.toString():"";R&&(y+=";"+R);R=y;if(yv(T)){var H=a.width||640;y=a.height||360;var b=a.fps,M=a.qualityLabel,d=a.colorInfo,A=a.projectionType,P;a.stereoLayout&&(P=ROR[a.stereoLayout]);var G=xi3(a)||void 0;if(d==null?0:d.primaries)var V=Hd7[d.primaries]||void 0;H=new I_(H,y,b,A,P,void 0,M,G,V);T=t8(T,H,o_[a.itag||""]);LS&&(T+="; enableflushduringseek=true");NO&&(T+="; enableresetaudiodecoder=true")}var p;if(TR(T)){var L= a.audioSampleRate;P=a.audioTrack;L=new k9(L?+L:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs,a.audioQuality||"AUDIO_QUALITY_UNKNOWN",a.isVb);P&&(V=P.displayName,y=P.id,P=P.audioIsDefault,V&&(p=new g.ZO(V,y||"",!!P)))}var N;a.captionTrack&&(M=a.captionTrack,P=M.displayName,V=M.vssId,y=M.languageCode,b=M.kind,M=M.id,P&&V&&y&&(N=new EM3(P,V,y,b,a.xtags,M)));P=Number(a.bitrate)/8;V=Number(a.contentLength);y=Number(a.lastModified);M=a.drmFamilies;b=a.type;m= m&&V?V/m:0;a=Number(a.approxDurationMs);if(l&&M){var e={};M=g.c(M);for(d=M.next();!d.done;d=M.next())(d=eP[d.value])&&(e[d]=l[d])}return new x9(R,T,{audio:L,video:H,WF:p,u0:e,Nj:P,f8:m,contentLength:V,lastModified:y,captionTrack:N,streamType:b,approxDurationMs:a})}; h8=function(a,l,m){m=m===void 0?0:m;var T=a.type;var y=a.itag;var R=a.xtags;R&&(y=a.itag+";"+R);if(yv(T)){var H=(a.size||"640x360").split("x");H=new I_(+H[0],+H[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);T=t8(T,H,o_[a.itag]);LS&&(T+="; enableflushduringseek=true");NO&&(T+="; enableresetaudiodecoder=true")}var b;if(TR(T)){var M=new k9(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(b=new g.ZO(a.name,a.audio_track_id, a.isDefault==="1"))}var d;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(d=new EM3(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));R=Number(a.bitrate)/8;var A=Number(a.clen),P=Number(a.lmt);m=m&&A?A/m:0;if(l&&a.drm_families){var G={};for(var V=g.c(a.drm_families.split(",")),p=V.next();!p.done;p=V.next())p=p.value,G[p]=l[p]}return new x9(y,T,{audio:M,video:H,WF:b,u0:G,Nj:R,f8:m,contentLength:A,lastModified:P,captionTrack:d, streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})}; qpd=function(a){return md(a,function(l){return"FORMAT_STREAM_TYPE_OTF"===l.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; bdp=function(a){return md(a,function(l){return"FORMAT_STREAM_TYPE_OTF"===l.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; gQQ=function(a,l){return a.timeline?F_(a.timeline.j,l):a.qj.length?F_(a.qj,l):[]}; Oj=function(a,l,m){l=l===void 0?"":l;m=m===void 0?"":m;a=new g.K_(a,!0);a.set("alr","yes");m&&(m=$Z3(decodeURIComponent(m)),a[q[0]](l,encodeURIComponent(m)));return a}; jS5=function(a,l){var m=ab(l,"id");m=m.replace(":",";");var T=ab(l,"mimeType"),y=ab(l,"codecs");T=y?T+'; codecs="'+y+'"':T;y=Number(ab(l,"bandwidth"))/8;var R=Number(lw(l,"BaseURL").getAttribute(a.K+":contentLength")),H=a.duration&&R?R/a.duration:0;if(yv(T)){var b=Number(ab(l,"width"));var M=Number(ab(l,"height")),d=Number(ab(l,"frameRate")),A=MCH(ab(l,a.K+":projectionType"));a:switch(ab(l,a.K+":stereoLayout")){case "layout_left_right":var P=1;break a;case "layout_top_bottom":P=2;break a;default:P= 0}b=new I_(b,M,d,A,P)}if(TR(T)){var G=Number(ab(l,"audioSamplingRate"));var V=Number(ab(l.getElementsByTagName("AudioChannelConfiguration")[0],"value"));M=idP(ab(l,a.K+":spatialAudioType"));G=new k9(G,V,M);a:{V=ab(l,"lang")||"und";if(M=lw(l,"Role"))if(A=ab(M,"value")||"",g.X_(dzz,A)){M=V+"."+dzz[A];d=A==="main";a=ab(l,a.K+":langName")||V+" - "+A;V=new g.ZO(a,M,d);break a}V=void 0}}if(l=lw(l,"ContentProtection"))if(l.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var p={};for(l= l.firstChild;l!=null;l=l.nextSibling)l instanceof Element&&/SystemURL/.test(l.nodeName)&&(a=l.getAttribute("type"),M=l.textContent,a&&M&&(p[a]=M.trim()))}else p=void 0;return new x9(m,T,{audio:G,video:b,WF:V,u0:p,Nj:y,f8:H,contentLength:R})}; MCH=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; idP=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; P6b=function(a,l){l=l===void 0?"":l;a.state=1;a.Cx=(0,g.E)();return Di7(l||a.sourceUrl).then(function(m){if(!a.FO()){a.At=m.status;m=m.responseText;var T=new DOMParser;m=P6(T,Or7(m),"text/xml").getElementsByTagName("MPD")[0];a.Ij=pJH(ab(m,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(m.attributes){T=g.c(m.attributes);for(var y=T.next();!y.done;y=T.next())if(y=y.value,y.value==="http://youtube.com/yt/2012/10/10"){T=y.name.split(":")[1];break b}}T=""}a.K=T;a.isLive=a.Ij=a.Ij}; VCl=function(a){a.C&&a.C.stop()}; Anp=function(a){var l=a.Ij;isFinite(l)&&(KS(a)?a.refresh():(l=Math.max(0,a.Cx+l-(0,g.E)()),a.C||(a.C=new g.aH(a.refresh,l,a),g.w(a,a.C)),a.C.start(l)))}; psw=function(a){a=a.T;for(var l in a){var m=a[l].index;if(m.isLoaded())return m.HN()+1}return 0}; zU=function(a){return a.ZR?a.ZR-(a.B||a.timestampOffset):0}; vK=function(a){return a.jt?a.jt-(a.B||a.timestampOffset):0}; $i=function(a){if(!isNaN(a.Kx))return a.Kx;var l=a.T,m;for(m in l){var T=l[m].index;if(T.isLoaded()&&!Ry(l[m].info.mimeType)){l=0;for(m=T.Wu();m<=T.HN();m++)l+=T.getDuration(m);l/=T.qR();l=Math.round(l/.5)*.5;T.qR()>10&&(a.Kx=l);return l}if(a.isLive&&(T=l[m],T.Y7))return T.Y7}return NaN}; Zdw=function(a,l){a=fRl(a.T,function(T){return T.index.isLoaded()}); if(!a)return NaN;a=a.index;var m=a.l$(l);return a.getStartTime(m)===l?l:m=0&&y.segments.splice(R,1)}}}; cnl=function(a){for(var l in a.T)Ry(a.T[l].info.mimeType)||Q_R(a.T[l].index,Infinity)}; fS=function(a,l,m){for(var T in a.T){var y=a.T[T].index,R=l,H=m;y.ih&&(R&&(y.uY=Math.max(y.uY,R)),H&&(y.u1=Math.max(y.u1||0,H)))}m&&(a.lT=m/1E3)}; LZH=function(a){a.jt=0;a.ZR=0;a.QO=0}; J8=function(a){return a.AM&&a.isManifestless?a.isLiveHeadPlayable:a.isLive}; t8=function(a,l,m){BK===null&&(BK=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(YKp&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return BK||m!=="9"&&m!=="("?BK||m!=="9h"&&m!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!BK&&!ki||a!=='video/webm; codecs="vp9"'&&a!=='video/webm; codecs="vp9.2"')return a; m="00";var T="08",y="01",R="01",H="01";a==='video/webm; codecs="vp9.2"'&&(m="02",T="10",l.primaries==="bt2020"&&(H=y="09"),l.T==="smpte2084"&&(R="16"),l.T==="arib-std-b67"&&(R="18"));return'video/webm; codecs="'+["vp09",m,"51",T,"01",y,R,H,"00"].join(".")+'"'}; wS=function(a,l,m){a=""+a+(l>49?"p60":l>32?"p48":"");l=uo()[a];if(l!=null&&l>0)return l;l=nS.get(a);if(l!=null&&l>0)return l;m=m==null?void 0:m.get(a);return m!=null&&m>0?m:8192}; NDb=function(a){this.UL=a;this.tN=this.Ue=this.hM=this.K=this.j=this.tM=this.AM=this.Ij=!1;this.B=this.C=0;this.wb=!1;this.lT=!0;this.Mj=!1;this.hV=0;this.EW=this.jt=!1;this.Ug=!0;this.Cx=this.Kx=!1;this.T={};this.lZ=this.wW=this.disableAv1=this.yg=this.EG=this.rb=this.vF=this.L=this.J=!1;this.wO=this.UL.V("html5_disable_aac_preference");this.SW=Infinity;this.qj=0;this.QO=this.UL.bZ();this.ZR=this.UL.experiments.XO("html5_enable_vp9_fairplay");this.p5=this.UL.V("html5_force_av1_for_testing");this.St= g.PU(this.UL.experiments,"html5_av1_ordinal_cap");this.nR=this.UL.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.FU=this.UL.V("html5_account_onesie_format_selection_during_format_filter");this.Nj=g.PU(this.UL.experiments,"html5_max_byterate");this.uZ=this.UL.V("html5_enable_iamf_audio");this.JW=this.UL.experiments.XO("html5_allow_capability_merge");this.Eg=this.UL.V("html5_enable_encrypted_av1")}; j_7=function(a){if(a.AM)return["f"];if(g.xa("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var l=["9h","9","h","8"];a.Eg&&l.push("1e");l=l.concat(["(h","(","H","*"]);a.jt&&(l.unshift("1"),l.unshift("1h"));a.Ue&&l.unshift("h");a.N&&(l=(QS7[a.N]||[a.N]).concat(l));return l}; HwH=function(a){var l=["o","a","A"];a.qj===1&&(a.j&&(l=["mac3","MAC3"].concat(l)),a.K&&(l=["meac3","MEAC3"].concat(l)),a.uZ&&(l=["i","I"].concat(l)));a.Ij&&(l=["so","sa"].concat(l));!a.tN||a.hM||a.Z||a.wO||l.unshift("a");a.Z&&(l=(QS7[a.Z]||[a.Z]).concat(l));return l}; Ib=function(a,l,m,T){l=l===void 0?{}:l;if(T===void 0?0:T)return l.disabled=1,0;if(hP(a.K,Ow.AV1_CODECS)&&hP(a.K,Ow.HEIGHT)&&hP(a.K,Ow.BITRATE))return l.isCapabilityUsable=1,8192;try{var y=wU3();if(y)return l.localPref=y}catch(b){}T=1080;y=navigator.hardwareConcurrency;y<=2&&(T=480);l.coreCount=y;if(y=g.PU(a.experiments,"html5_default_av1_threshold"))T=l["default"]=y;!a.V("html5_disable_av1_arm_check")&&jAb()&&(l.isArm=1,T=240);if(a=a.K.lT)l.mcap=a,T=Math.max(T,a);if(m){var R,H;if(a=(R=m.videoInfos.find(function(b){return Y9(b)}))== null?void 0:(H=R.L)==null?void 0:H.powerEfficient)T=8192,l.isEfficient=1; m=m.videoInfos[0].video;R=Math.min(wS("1",m.fps),wS("1",30));l.perfCap=R;T=Math.min(T,R);m.isHdr()&&!a&&(l.hdr=1,T*=.75)}else m=wS("1",30),l.perfCap30=m,T=Math.min(T,m),m=wS("1",60),l.perfCap60=m,T=Math.min(T,m);return l.av1Threshold=T}; CS=function(a,l,m,T){this.flavor=a;this.keySystem=l;this.L=m;this.experiments=T;this.T={};this.St=this.keySystemAccess=null;this.iD=this.h_=-1;this.a8=null;this.Z=!!T&&T.XO("edge_nonprefixed_eme");T&&T.XO("html5_enable_vp9_fairplay")}; ob=function(a){return a.Z?!1:!a.keySystemAccess&&!!Ej()&&a.keySystem==="com.microsoft.playready"}; xi=function(a){return a.keySystem==="com.microsoft.playready"}; DO=function(a){return!a.keySystemAccess&&!!Ej()&&a.keySystem==="com.apple.fps.1_0"}; uw=function(a){return a.keySystem==="com.youtube.fairplay"}; Xi=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"}; g.Yi=function(a){return a.flavor==="fairplay"}; Ej=function(){var a=window,l=a.MSMediaKeys;UZ()&&!l&&(l=a.WebKitMediaKeys);return l&&l.isTypeSupported?l:null}; rS=function(a){return navigator.requestMediaKeySystemAccess?g.s_&&!g.ur()?O3("45"):g.U9||g.pe?a.XO("edge_nonprefixed_eme"):g.Uj?O3("47"):g.Nr&&a.XO("html5_enable_safari_fairplay")?!1:!0:!1}; tCt=function(a,l,m,T){var y=XL(),R=(m=y||m&&UZ())?["com.youtube.fairplay"]:["com.widevine.alpha"];l&&R.unshift("com.youtube.widevine.l3");y&&T&&R.unshift("com.youtube.fairplay.sbdl");return m?R:a?[].concat(g.F(R),g.F(aT.playready)):[].concat(g.F(aT.playready),g.F(R))}; lj=function(a,l,m,T,y){T=T===void 0?!1:T;g.k.call(this);this.UL=l;this.useCobaltWidevine=T;this.Tu=y;this.L=[];this.Z={};this.T={};this.callback=null;this.K=!1;this.j=[];this.initialize(a,!m)}; FZR=function(a,l){a.callback=l;a.j=[];rS(a.UL.experiments)?mk(a):eOw(a)}; mk=function(a){if(!a.FO())if(a.L.length===0)a.callback(a.j);else{var l=a.L[0],m=a.Z[l],T=hOP(a,m);if(TI&&TI.keySystem===l&&TI.Cmj===JSON.stringify(T))a.Tu("remksa",{re:!0}),OdR(a,m,TI.keySystemAccess);else{var y,R;a.Tu("remksa",{re:!1,ok:(R=(y=TI)==null?void 0:y.keySystem)!=null?R:""});TI=void 0;navigator.requestMediaKeySystemAccess(l,T).then(Oa(function(H){OdR(a,m,H,T)}),Oa(function(){a.K=!a.K&&a.Z[a.L[0]].flavor==="widevine"; a.K||a.L.shift();mk(a)}))}}}; OdR=function(a,l,m,T){if(!a.FO()){T&&(TI={keySystem:l.keySystem,keySystemAccess:m,Cmj:JSON.stringify(T)});l.keySystemAccess=m;if(xi(l)){m=vT();T=g.c(Object.keys(a.T[l.flavor]));for(var y=T.next();!y.done;y=T.next())y=y.value,l.T[y]=!!m.canPlayType(y)}else{m=l.keySystemAccess.getConfiguration();if(m.audioCapabilities)for(T=g.c(m.audioCapabilities),y=T.next();!y.done;y=T.next())KZQ(a,l,y.value);if(m.videoCapabilities)for(m=g.c(m.videoCapabilities),T=m.next();!T.done;T=m.next())KZQ(a,l,T.value)}a.j.push(l); a.useCobaltWidevine||a.V("html5_enable_vp9_fairplay")&&Xi(l)?(a.L.shift(),mk(a)):a.callback(a.j)}}; KZQ=function(a,l,m){a.V("log_robustness_for_drm")?l.T[m.contentType]=m.robustness||!0:l.T[m.contentType]=!0}; hOP=function(a,l){var m={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.V("html5_enable_vp9_fairplay")&&uw(l))return m.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),m.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[m];xi(l)&&(m.initDataTypes=["keyids","cenc"]);for(var T=g.c(Object.keys(a.T[l.flavor])),y=T.next();!y.done;y=T.next()){y=y.value;var R=y.indexOf("audio/")===0,H=R?m.audioCapabilities:m.videoCapabilities;l.flavor!== "widevine"||a.K?H.push({contentType:y}):R?H.push({contentType:y,robustness:"SW_SECURE_CRYPTO"}):(g.s_&&g.xa("windows nt")&&!a.V("html5_drm_enable_moho")||H.push({contentType:y,robustness:"HW_SECURE_ALL"}),R=y,a.UL.K.Z&&y.includes("vp09")&&(R=y+"; experimental=allowed"),H.push({contentType:R,robustness:"SW_SECURE_DECODE"}),g.yX(a.UL)==="MWEB"&&(yb()||DC())&&(a.Tu("swcrypto",{}),H.push({contentType:y,robustness:"SW_SECURE_CRYPTO"})))}return[m]}; eOw=function(a){if(Ej()&&(g.Nr||ai))a.j.push(new CS("fairplay","com.apple.fps.1_0","",a.UL.experiments));else{var l=zOQ(),m=g.Pn(a.L,function(T){var y=a.Z[T],R=!1,H=!1,b;for(b in a.T[y.flavor])l(b,T)&&(y.T[b]=!0,R=R||b.indexOf("audio/")===0,H=H||b.indexOf("video/")===0);return R&&H}); m&&a.j.push(a.Z[m]);a.L=[]}a.callback(a.j)}; zOQ=function(){var a=Ej();if(a){var l=a.isTypeSupported;return function(T,y){return l(y,T)}}var m=vT(); return m&&(m.addKey||m.webkitAddKey)?function(T,y){return!!m.canPlayType(T,y)}:function(){return!1}}; vQd=function(a){this.experiments=a;this.T=2048;this.j=0;this.lT=(this.B=this.V("html5_streaming_resilience"))?.5:.25;var l=l===void 0?0:l;this.Z=g.PU(this.experiments,"html5_media_time_weight_prop")||l;this.Ij=g.PU(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.N=(this.K=this.experiments.XO("html5_consider_end_stall"))&&RT;this.L=this.experiments.XO("html5_measure_max_progress_handling");this.J=this.V("html5_treat_requests_pre_elbow_as_metadata");this.C=this.V("html5_media_time_weight")|| !!this.Z;this.V("html5_sabr_live_audio_early_return_fix")&&RT&&(this.T=65536)}; $zl=function(a,l){this.T=void 0;this.experimentIds=a?a.split(","):[];this.flags=y7(l||"","&");a={};l=g.c(this.experimentIds);for(var m=l.next();!m.done;m=l.next())a[m.value]=!0;this.experiments=a}; g.PU=function(a,l){a=a.flags[l];JSON.stringify(a);return Number(a)||0}; HS=function(a,l){return(a=a.flags[l])?a.toString():""}; sSQ=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]}; Spp=function(a){if(a.T)return a.T;if(a.experimentIds.length<=1)return a.T=a.experimentIds,a.T;var l=[].concat(g.F(a.experimentIds)).map(function(T){return Number(T)}); l.sort();for(var m=l.length-1;m>0;--m)l[m]-=l[m-1];a.T=l.map(function(T){return T.toString()}); a.T.unshift("v1");return a.T}; Jnb=function(a){return f$w.then(a)}; qq=function(a,l,m){this.experiments=a;this.qj=l;this.hM=m===void 0?!1:m;this.N=!!g.Yl("cast.receiver.platform.canDisplayType");this.J={};this.Ij=!1;this.j=new Map;this.B=!0;this.L=this.Z=!1;this.T=new Map;this.lT=0;this.jt=this.experiments.XO("html5_disable_vp9_encrypted");this.K=this.experiments.XO("html5_enable_encrypted_av1");a=g.Yl("cast.receiver.platform.getValue");if(l=!this.N&&a)l=a("max-video-resolution-vpx");this.C=l||null;BDp(this);this.Z=!!(XL()&&ot()>=21)}; GMP=function(a,l,m){m=m===void 0?1:m;var T=l.itag;if(T==="0")return!0;var y=l.mimeType;if(l.Gu==="1e"&&!a.K)return"dav1enc";if(Y9(l)&&a.Ij)return"dav1";if(l.video&&(l.video.isHdr()||l.video.primaries==="bt2020")&&!(hP(a,Ow.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(T==="338"&&!(g.s_?O3(53):g.Uj&&O3(64)))return"dopus";var R=m;R=R===void 0?1: R;m={};l.video&&(l.video.width&&(m[Ow.WIDTH.name]=l.video.width),l.video.height&&(m[Ow.HEIGHT.name]=l.video.height),l.video.fps&&(m[Ow.FRAMERATE.name]=l.video.fps*R),l.video.T&&(m[Ow.EOTF.name]=l.video.T),l.Nj&&(m[Ow.BITRATE.name]=l.Nj*8*R),l.Gu==="("&&(m[Ow.CRYPTOBLOCKFORMAT.name]="subsample"),l.video.projectionType==="EQUIRECTANGULAR"||l.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||l.video.projectionType==="MESH")&&(m[Ow.DECODETOTEXTURE.name]="true");l.audio&&l.audio.numChannels&& (m[Ow.CHANNELS.name]=l.audio.numChannels);a.Z&&DQ(l)&&(m[Ow.EXPERIMENTAL.name]="allowed");R=g.c(Object.keys(Ow));for(var H=R.next();!H.done;H=R.next()){H=Ow[H.value];var b;if(b=m[H.name])if(b=!(H===Ow.EOTF&&l.mimeType.indexOf("vp09.02")>0)){b=H;var M=l;b=!(a.experiments.XO("html5_ignore_h264_framerate_cap")&&b===Ow.FRAMERATE&&GDH(M))}if(b)if(hP(a,H))if(a.C){if(a.C[H.name] 1080&&l.u0&&(y+="; hdcp=2.2");return T==="227"?"hqcenc":T!=="585"&&T!=="588"&&T!=="583"&&T!=="586"&&T!=="584"&&T!=="587"&&T!=="591"&&T!=="592"||a.experiments.XO("html5_enable_new_hvc_enc")?XL()&&ot()>=21&&g.xa("appletv5")&&(T==="410"||T==="845")?!0:a.isTypeSupported(y)?!0:"tpus":"newhvc"}; bj=function(){var a=DC()&&!O3(29),l=g.xa("google tv")&&g.xa("chrome")&&!O3(30);return a||l?!1:LuR()}; k4l=function(a,l,m){var T=480;l=g.c(l);for(var y=l.next();!y.done;y=l.next()){y=y.value;var R=y.video.qualityOrdinal;R<=1080&&R>T&&GMP(a,y,m)===!0&&(T=R)}return T}; g.g1=function(a,l){l=l===void 0?!1:l;return bj()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!l&&a.canPlayType(vT(),"application/x-mpegURL")?!0:!1}; wsz=function(a){nQQ(function(){for(var l=g.c(Object.keys(Ow)),m=l.next();!m.done;m=l.next())hP(a,Ow[m.value])})}; hP=function(a,l){l.name in a.J||(a.J[l.name]=I$Q(a,l));return a.J[l.name]}; I$Q=function(a,l){if(a.C)return!!a.C[l.name];if(l===Ow.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(l===Ow.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+l.valid)&&!a.isTypeSupported("video/mp4; codecs="+l.XM);if(l.video){var m='video/webm; codecs="vp9"';a.isTypeSupported(m)||(m='video/mp4; codecs="avc1.4d401e"')}else m='audio/webm; codecs="opus"', a.isTypeSupported(m)||(m='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(m+"; "+l.name+"="+l.valid)&&!a.isTypeSupported(m+"; "+l.name+"="+l.XM)}; C67=function(a,l){var m=0;a.j.has(l)&&(m=g.B(a.j.get(l)).mO);a.j.set(l,{mO:m+1,mz:Math.pow(2,m+1)});a.L=!0}; Q3=function(a){for(var l=[],m=g.c(a.T.keys()),T=m.next();!T.done;T=m.next()){T=T.value;var y=a.T.get(T);l.push(T+"_"+y.maxWidth+"_"+y.maxHeight)}return l.join(".")}; bwd=function(a,l){for(var m=new Map,T=g.c(a.T.keys()),y=T.next();!y.done;y=T.next()){y=y.value;var R=y.split("_")[0];l.has(R)||m.set(y,a.T.get(y))}a.T=m}; MS3=function(a,l,m){var T,y=((T=m.video)==null?void 0:T.fps)||0;T=l+"_"+y;var R=!!m.audio,H={itag:m.itag,Gu:l,q2:R};if(R)H.numChannels=m.audio.numChannels;else{var b=m.video;H.maxWidth=b==null?void 0:b.width;H.maxHeight=b==null?void 0:b.height;H.maxFramerate=y;hP(a,Ow.BITRATE)&&(H.maxBitrateBps=m.Nj*8);H.Rv=b==null?void 0:b.isHdr()}b=a.T.get(T);b?R||(m=Math.max(b.maxWidth||0,b.maxHeight||0)>Math.max(H.maxWidth||0,H.maxHeight||0)?b:H,l={itag:m.itag,Gu:l,q2:R,maxWidth:Math.max(b.maxWidth||0,H.maxWidth|| 0),maxHeight:Math.max(b.maxHeight||0,H.maxHeight||0),maxFramerate:y,Rv:m.Rv},hP(a,Ow.BITRATE)&&(l.maxBitrateBps=m.maxBitrateBps),a.T.set(T,l)):a.T.set(T,H)}; iwb=function(a,l,m){var T,y=((T=m.video)==null?void 0:T.fps)||0;T=l+"_"+y;var R=!!m.audio,H=a.T.get(T);a:{var b=a.T.get(T),M=!!m.audio;if(b){if(M){var d=!1;break a}var A;if(!M&&((d=m.video)==null?0:d.height)&&b.maxHeight&&b.maxHeight>=((A=m.video)==null?void 0:A.height)){d=!1;break a}}d=!0}d&&(d=m.itag,l=H?H:{itag:d,Gu:l,q2:R},R?l.numChannels=m.audio.numChannels:(R=m.video,l.maxWidth=R==null?void 0:R.width,l.maxHeight=R==null?void 0:R.height,l.maxFramerate=y,hP(a,Ow.BITRATE)&&(l.maxBitrateBps=m.Nj* 8),l.Rv=R==null?void 0:R.isHdr()),a.T.set(T,l))}; BDp=function(a){var l;(l=navigator.mediaCapabilities)!=null&&l.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&&(a.lT=2160)})}; Mq=function(){g.Aj.call(this);this.items={}}; EQ3=function(a,l,m){this.encryptedClientKey=l;this.K=m;this.T=new Uint8Array(a.buffer,0,16);this.Z=new Uint8Array(a.buffer,16)}; oQl=function(a){a.L||(a.L=new g.tE(a.T));return a.L}; ij=function(a){try{return Rl(a)}catch(l){return null}}; xzw=function(a,l){if(!l&&a)try{l=JSON.parse(a)}catch(y){}if(l){a=l.clientKey?ij(l.clientKey):null;var m=l.encryptedClientKey?ij(l.encryptedClientKey):null,T=l.keyExpiresInSeconds?Number(l.keyExpiresInSeconds)*1E3+(0,g.E)():null;a&&m&&T&&(this.T=new EQ3(a,m,T));l.onesieUstreamerConfig&&(this.onesieUstreamerConfig=ij(l.onesieUstreamerConfig)||void 0);this.baseUrl=l.baseUrl}}; jd=function(){this.data=new Uint8Array(2048);this.pos=0;d1||(d1=$n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; A$=function(a,l){a.add(l==null||isNaN(l)?0:l+1)}; PS=function(a){this.T=this.L=0;this.alpha=Math.exp(Math.log(.5)/a)}; GI=function(a){this.L=a===void 0?15:a;this.values=new Float64Array(176);this.T=new Float64Array(11);this.Z=new Float64Array(16)}; VX=function(a,l,m,T){m=m===void 0?.5:m;T=T===void 0?0:T;this.resolution=l;this.L=0;this.Z=!1;this.G4=!0;this.T=Math.round(a*this.resolution);this.values=Array(this.T);for(a=0;a0)l=a.byterate,this.Ij=!0;else{var T; m=(((T=navigator.connection)==null?void 0:T.downlink)||0)*64*1024;m>0&&(l=m,this.Ij=!0)}this.Z.wk(this.policy.C,l);a.delay>0&&this.J.wk(1,Math.min(a.delay,2));a.stall>0&&this.B.wk(1,a.stall);a.init>0&&(this.Cx=Math.min(a.init,this.Cx));a.interruptions&&(this.j=this.j.concat(a.interruptions),this.j.length>16&&this.j.pop());this.lT=(0,g.E)();this.policy.B>0&&(this.AM=new g.aH(this.tM,this.policy.B,this),g.w(this,this.AM),this.AM.start())}; Ze=function(a,l,m,T){a.Z.wk(T===void 0?l:T,m/l);a.C=(0,g.E)()}; uZH=function(a){a.K||(a.K=(0,g.E)());a.policy.N&&(a.C=(0,g.E)())}; Xsd=function(a,l){if(a.K){var m=l-a.K;if(m<6E4){if(m>1E3){var T=a.interruptions;T.push(Math.ceil(m));T.sort(function(y,R){return R-y}); T.length>16&&T.pop()}a.qj+=m}}a.K=l}; WS=function(a,l,m,T,y,R){R=R===void 0?!1:R;a.Kx.wk(l,m/l);a.C=(0,g.E)();y||a.N.wk(1,l-T);R||(a.K=0);a.lT>-1&&(0,g.E)()-a.lT>3E4&&YpQ(a)}; cS=function(a,l,m){l=Math.max(l,a.L.T);a.B.wk(1,m/l)}; LR=function(a){a=a.J.Xc()+a.hM.Xc()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)}; Nq=function(a,l,m){isNaN(m)||(a.jt+=m);isNaN(l)||(a.St+=l)}; QX=function(a){a=a.Z.Xc();return a>0?a:1}; t$=function(a,l,m){l=l===void 0?!1:l;m=m===void 0?1048576:m;var T=QX(a);T=1/((a.B.Xc()||0)*a.policy.Ij+1/T);var y=a.Kx.Xc();y=y>0?y:1;var R=Math.max(T,y);a.policy.K>0&&y=4E3}; rnQ=function(a){this.experiments=a;this.T=17;this.Z=13E4;this.C=.5;this.j=this.L=!1;this.lT=this.V("html5_use_histogram_for_bandwidth");this.K=g.PU(this.experiments,"html5_auxiliary_estimate_weight");this.Ij=g.PU(this.experiments,"html5_stall_factor")||1;this.B=g.PU(this.experiments,"html5_check_for_idle_network_interval_ms");this.J=this.experiments.XO("html5_trigger_loader_when_idle_network");this.N=this.experiments.XO("html5_sabr_fetch_on_idle_network_preloaded_players")}; lkl=function(a,l){a=a===void 0?{}:a;l=l===void 0?{}:l;g.k.call(this);var m=this;this.values=a;this.Md=l;this.L={};this.Z=this.T=0;this.j=new g.aH(function(){akw(m)},1E4); g.w(this,this.j)}; FK=function(a,l){mCd(a,l);return a.values[l]&&a.Md[l]?a.values[l]/Math.pow(2,a.T/a.Md[l]):0}; mCd=function(a,l){a.values[l]||(l=JZw(),a.values=l.values||{},a.Md=l.halfLives||{},a.L=l.values?Object.assign({},l.values):{})}; akw=function(a){var l=JZw();if(l.values){l=l.values;for(var m={},T=g.c(Object.keys(a.values)),y=T.next();!y.done;y=T.next())y=y.value,l[y]&&a.L[y]&&(a.values[y]+=l[y]-a.L[y]),m[y]=FK(a,y);a.L=m}l=a.Md;m={};m.values=a.L;m.halfLives=l;g.JN("yt-player-memory",m,2592E3)}; xN=function(a,l,m,T,y){g.k.call(this);this.webPlayerContextConfig=l;this.n_=T;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Or=this.lZ=this.OQ=this.v1=this.userDisplayName=this.userDisplayImage=this.WE="";this.T={};this.uZ={};this.controlsType="0";this.Ug=NaN;this.wb=!1;this.Sd=(0,g.E)();this.ZR=0;this.a8=this.Wd=!1;this.IH=!0;this.preferGapless=this.Ng=this.Be=this.Z=this.VX=!1;this.mf=[];this.kN=!1;this.sZ=0;a=a?g.mn(a):{};l&&l.csiPageType&&(this.csiPageType=l.csiPageType);l&&l.csiServiceName&& (this.csiServiceName=l.csiServiceName);l&&l.preferGapless&&(this.preferGapless=l.preferGapless);this.experiments=new $zl(l?l.serializedExperimentIds:a.fexp,l?l.serializedExperimentFlags:a.fflags);this.forcedExperiments=l?l.serializedForcedExperimentIds:Mp("",a.forced_experiments)||void 0;this.cspNonce=(l==null?0:l.cspNonce)?l.cspNonce:Mp("",a.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var R=document.location.toString()}catch(yp){R=""}this.xN=R;this.ancestorOrigins=(T=window.location.ancestorOrigins)? Array.from(T):[];this.j=qp(!1,l?l.isEmbed:a.is_embed);if(l&&l.device){if(T=l.device,T.androidOsExperience&&(this.T.caoe=""+T.androidOsExperience),T.androidPlayServicesVersion&&(this.T.capsv=""+T.androidPlayServicesVersion),T.brand&&(this.T.cbrand=T.brand),T.browser&&(this.T.cbr=T.browser),T.browserVersion&&(this.T.cbrver=T.browserVersion),T.cobaltReleaseVehicle&&(this.T.ccrv=""+T.cobaltReleaseVehicle),this.T.c=T.interfaceName||"WEB",this.T.cver=T.interfaceVersion||"html5",T.interfaceTheme&&(this.T.ctheme= T.interfaceTheme),this.T.cplayer=T.interfacePlayerType||"UNIPLAYER",T.model&&(this.T.cmodel=T.model),T.network&&(this.T.cnetwork=T.network),T.os&&(this.T.cos=T.os),T.osVersion&&(this.T.cosver=T.osVersion),T.platform&&(this.T.cplatform=T.platform),R=HS(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),R==="all"||R==="once")T.chipset&&(this.uZ.cchip=T.chipset),T.cobaltAppVersion&&(this.uZ.ccappver=T.cobaltAppVersion),T.firmwareVersion&&(this.uZ.cfrmver=T.firmwareVersion),T.deviceYear&&(this.uZ.crqyear= T.deviceYear)}else this.T.c=a.c||"web",this.T.cver=a.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=l?this.j||TkQ(this)&&l.loaderUrl?l.loaderUrl||"":this.xN:this.j||TkQ(this)&&a.loaderUrl?Mp("",a.loaderUrl):this.xN;this.j&&g.Xt("yt.embedded_player.embed_url",this.loaderUrl);this.J=aq(this.loaderUrl,yVP);T=this.loaderUrl;var H=H===void 0?!1:H;this.wP=rM(aq(T,R9P),T,H,"Trusted Ad Domain URL");this.wW=qp(!1,a.privembed);this.protocol=this.xN.indexOf("http:")===0?"http":"https";this.Fa=Uxp((l? l.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Uxp(this.xN)||this.protocol+"://www.youtube.com/";H=l?l.eventLabel:a.el;T="detailpage";H==="adunit"?T=this.j?"embedded":"detailpage":H==="embedded"||this.J?T=bR(T,H,Hbb):H&&(T="embedded");this.hM=T;N0b();H=null;T=l?l.playerStyle:a.ps;R=g.pD(qfb,T);!T||R&&!this.J||(H=T);this.playerStyle=H;this.C=g.pD(qfb,this.playerStyle);this.houseBrandUserStatus=l==null?void 0:l.houseBrandUserStatus;this.lT=this.C&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.bY=!this.lT;this.AM=qp(!1,a.disableplaybackui);this.disablePaidContentOverlay=qp(!1,l==null?void 0:l.disablePaidContentOverlay);this.disableSeek=qp(!1,l==null?void 0:l.disableSeek);this.enableSpeedOptions=(l==null?void 0:l.enableSpeedOptions)||(vT().defaultPlaybackRate?h$||g.TO||Ol?g.Uj&&O3("20")||g.s_&&O3("4")||g.KR&&O3("11")||r0():!(g.KR&&!g.xa("chrome")||h$||g.xa("android")||g.xa("silk")):!1);this.f2=qp(!1,a.enable_faster_speeds);var b;this.supportsVarispeedExtendedFeatures=(b=l==null?void 0: l.supportsVarispeedExtendedFeatures)!=null?b:!1;this.L=qp(this.playerStyle==="blazer",a.is_html5_mobile_device||l&&l.isMobileDevice);this.St=m7()||yb();this.A6=this.V("mweb_allow_background_playback")?!1:this.L&&!this.C;this.Kx=JS();this.Dk=g.zI;var M;this.Z$=!!(l==null?0:(M=l.embedsHostFlags)==null?0:M.optOutApiDeprecation);var d;this.YV=!!(l==null?0:(d=l.embedsHostFlags)==null?0:d.allowPfpImaIntegration);this.Et=this.V("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var A;l?l.hideInfo!== void 0&&(A=!l.hideInfo):A=a.showinfo;this.aH=g.vS(this)&&!this.Z$||qp(!$N(this)&&!sl(this)&&!this.C,A);this.y5=l?!!l.mobileIphoneSupportsInlinePlayback:qp(!1,a.playsinline);b=this.L&&Sd&&fR!=null&&fR>0&&fR<=2.3;M=l?l.useNativeControls:a.use_native_controls;this.B=g.vS(this)&&this.L;d=this.L&&!this.B;M=g.J$(this)||!b&&qp(d,M)?"3":"1";this.disableOrganicUi=!(l==null||!l.disableOrganicUi);d=l?l.controlsType:a.controls;this.controlsType=this.disableOrganicUi||d==="0"||d===0?"0":M;this.P4=this.L;this.color= bR("red",l?l.progressBarColor:a.color,bb5);this.Nx=this.controlsType==="3";this.SW=!this.j;this.vu=(M=!this.SW&&!sl(this)&&!this.lT&&!this.C&&!$N(this))&&!this.Nx&&this.controlsType==="1";this.JW=g.BS(this)&&M&&this.controlsType==="0"&&!this.vu&&!(l==null?0:l.embedsEnableEmc3ds);this.eI=this.l3=b;this.Eg=(this.controlsType==="3"||this.L||qp(!1,a.use_media_volume))&&!this.B;this.lh=ai&&!g.OJ(601)?!1:!0;this.xe=this.j||!1;this.tN=sl(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128); this.widgetReferrer=Mp("",l?l.widgetReferrer:a.widget_referrer);var P;l?l.disableCastApi&&(P=!1):P=a.enablecastapi;P=!this.J||qp(!0,P);b=!0;l&&l.disableMdxCast&&(b=!1);this.W4=this.V("enable_cast_for_web_unplugged")&&g.kN(this)&&b||g.IE(this)&&b||P&&b&&this.controlsType==="1"&&!this.L&&(sl(this)||g.BS(this)||g.nR(this));this.CY=!!window.document.pictureInPictureEnabled||fw();P=l?!!l.supportsAutoplayOverride:qp(!1,a.autoplayoverride);this.L7=!(this.L&&!g.vS(this))&&!g.xa("nintendo wiiu")||P;this.kA= (l?!!l.enableMutedAutoplay:qp(!1,a.mutedautoplay))&&!1;P=(sl(this)||$N(this))&&this.playerStyle==="blazer";this.JV=l?!!l.disableFullscreen:!qp(!0,a.fs);b=g.AN(g.w1(this))&&g.vS(this);this.vF=!this.JV&&(P||g.cW())&&!b;this.vS=this.V("html5_picture_in_picture_logging_onresize");var G;this.I9=(G=g.PU(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?G:.33;this.Ns=this.V("html5_picture_in_picture_blocking_onresize");this.GX=this.V("html5_picture_in_picture_blocking_ontimeupdate"); this.n3=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.c7=this.V("html5_picture_in_picture_blocking_standard_api");G=DC()&&O3(58)&&!yb();P=Xz||typeof MediaSource==="undefined";this.Gz=this.V("uniplayer_block_pip")&&(G||P)||this.Ns||this.GX||this.c7;G=g.vS(this)&&!this.Z$;var V;l?l.disableRelatedVideos!==void 0&&(V=!l.disableRelatedVideos):V=a.rel;this.FU=G||qp(!this.C,V);this.oR=qp(!1,l?l.enableContentOwnerRelatedVideos:a.co_rel);this.N=yb()&&fR>0&&fR<=4.4?"_top":"_blank";this.TW= g.nR(this);this.M9=qp(this.playerStyle==="blazer",l?l.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":V="bl";break;case "gmail":V="gm";break;case "gac":V="ga";break;case "ads-preview":V="ap";break;case "books":V="gb";break;case "docs":case "flix":V="gd";break;case "duo":V="gu";break;case "google-live":V="gl";break;case "google-one":V="go";break;case "play":V="gp";break;case "chat":V="hc";break;case "hangouts-meet":V="hm";break;case "photos-edu":case "picasaweb":V="pw";break; default:V="yt"}this.Ij=V;this.jt=Mp("",l?l.authorizedUserIndex:a.authuser);this.QO=g.vS(this)&&(this.wW||!iGp()||this.St);var p;l?l.disableWatchLater!==void 0&&(p=!l.disableWatchLater):p=a.showwatchlater;this.EG=((V=!this.QO)||!!this.jt&&V)&&qp(!this.lT,this.J?p:void 0);this.im=l?l.isMobileDevice||!!l.disableKeyboardControls:qp(!1,a.disablekb);this.loop=qp(!1,a.loop);this.pageId=Mp("",l?l.initialDelegatedSessionId:a.pageid);this.Ew=qp(!0,a.canplaylive);this.rb=qp(!1,a.livemonitor);this.disableSharing= qp(this.C,l?l.disableSharing:a.ss);(p=l&&this.V("fill_video_container_size_override_from_wpcc")?l.videoContainerOverride:a.video_container_override)?(V=p.split("x"),V.length!==2?p=null:(p=Number(V[0]),V=Number(V[1]),p=isNaN(p)||isNaN(V)||p*V<=0?null:new g.Sk(p,V))):p=null;this.TF=p;this.mute=l?!!l.startMuted:qp(!1,a.mute);this.storeUserVolume=!this.mute&&qp(this.controlsType!=="0",l?l.storeUserVolume:a.store_user_volume);p=l?l.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:bR(void 0,p,IT);this.captionsLanguagePreference=l?l.captionsLanguagePreference||"":Mp("",a.cc_lang_pref);p=bR(2,l?l.captionsLanguageLoadPolicy:a.cc_load_policy,IT);this.controlsType==="3"&&p===2&&(p=3);this.zz=p;this.nR=l?l.hl||"en_US":Mp("en_US",a.hl);this.region=l?l.contentRegion||"US":Mp("US",a.cr);this.hostLanguage=l?l.hostLanguage||"en":Mp("en",a.host_language);this.JP=!this.wW&&Math.random()=480;this.schedule=new pR(P,new vQd(this.experiments),y);g.w(this,this.schedule);var L;this.enableSafetyMode=(L=l==null?void 0:l.initialEnableSafetyMode)!=null? L:qp(!1,a.enable_safety_mode);y=this.AM?!1:sl(this)&&this.playerStyle!=="blazer";var N;l?l.disableAutonav!=null&&(N=!l.disableAutonav):N=a.allow_autonav;this.p5=qp(y,!this.lT&&N);this.sendVisitorIdHeader=l?!!l.sendVisitorIdHeader:qp(!1,a.send_visitor_id_header);var e;this.playerStyle==="docs"&&(l?e=l.disableNativeContextMenu:e=a.disable_native_context_menu);this.disableNativeContextMenu=qp(!1,e);this.NH=hZ(this)&&this.V("enable_skip_intro_button");this.embedConfig=Mp("",l?l.serializedEmbedConfig: a.embed_config);this.qj=jb(a,g.vS(this));this.Z=this.qj==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(l==null||!l.embedsErrorLinks);this.ph=qp(!1,a.full_window);var t;this.Mj=!((t=this.webPlayerContextConfig)==null?0:t.chromeless);var v;this.livingRoomAppMode=bR("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(l==null?void 0:(v=l.device)==null?void 0:v.livingRoomAppMode),ib7);var S;N=gQ(NaN,l==null?void 0:(S=l.device)==null?void 0:S.deviceYear);isNaN(N)||(this.deviceYear=N);this.transparentBackground= l?!!l.transparentBackground:qp(!1,a.transparent_background);this.showMiniplayerButton=l?!!l.showMiniplayerButton:qp(!1,a.show_miniplayer_button);var n;g.vS(this)&&!(l==null?0:(n=l.embedsHostFlags)==null?0:n.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=l?!!l.externalFullscreen:qp(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=l?!!l.showMiniplayerUiWhenMinimized:qp(!1,a.use_miniplayer_ui);var X;this.IH=(X=a.show_loop_video_toggle)!=null?X:!0;this.Mi=Math.random()< 1E-4;this.Xt=a.onesie_hot_config||(l==null?0:l.onesieHotConfig)?new xzw(a.onesie_hot_config,l==null?void 0:l.onesieHotConfig):void 0;this.isTectonic=l?!!l.isTectonic:!!a.isTectonic;this.playerCanaryState=m;this.playerCanaryStage=l==null?void 0:l.canaryStage;this.Aa=new lkl;g.w(this,this.Aa);this.datasyncId=(l==null?void 0:l.datasyncId)||g.Uu("DATASYNC_ID");this.dl=g.Uu("LOGGED_IN",!1);this.Ia=(l==null?void 0:l.allowWoffleManagement)||!1;this.Mg=Infinity;this.rl=NaN;this.livingRoomPoTokenId=l==null? void 0:l.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.Be=!0:this.Be=Math.random()*100=0&&a0&&a.Mi&&(T.sort(),g.nU(new g.YH("Player client parameters changed after startup",T)));a.userAge=gQ(a.userAge,l.user_age);a.WE=Mp(a.WE,l.user_display_email);a.userDisplayImage=Mp(a.userDisplayImage,l.user_display_image);g.mw(a.userDisplayImage)||(a.userDisplayImage= "");a.userDisplayName=Mp(a.userDisplayName,l.user_display_name);a.v1=Mp(a.v1,l.user_gender);a.csiPageType=Mp(a.csiPageType,l.csi_page_type);a.csiServiceName=Mp(a.csiServiceName,l.csi_service_name);a.M9=qp(a.M9,l.enablecsi);a.pageId=Mp(a.pageId,l.pageid);if(m=l.enabled_engage_types)a.enabledEngageTypes=new Set(m.split(","));l.living_room_session_po_token&&(a.Xe=l.living_room_session_po_token.toString())}; De=function(a,l){return!a.C&&DC()&&O3(55)&&a.controlsType==="3"&&!l}; g.uj=function(a){a=CR(a.Fa);return a==="www.youtube-nocookie.com"?"www.youtube.com":a}; XK=function(a,l,m){return a.protocol+"://i1.ytimg.com/vi/"+l+"/"+(m||"hqdefault.jpg")}; YN=function(a){return sl(a)&&!g.kN(a)}; g.J$=function(a){return a.V("html5_local_playsinline")?ai&&!g.OJ(602)&&!("playsInline"in vT()):ai&&!a.y5||g.xa("nintendo wiiu")?!0:!1}; g.yX=function(a){return a.T.c}; g.OF=function(a){return/^TVHTML5/.test(g.yX(a))}; g.Ul=function(a){return g.yX(a)==="TVHTML5"}; TkQ=function(a){return g.yX(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Mlt=function(a){return a.T.cmodel==="CHROMECAST ULTRA/STEAK"||a.T.cmodel==="CHROMECAST/STEAK"}; g.r1=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; hZ=function(a){return/web/i.test(g.yX(a))}; g.aX=function(a){return g.yX(a).toUpperCase()==="WEB"}; oT=function(a){return g.yX(a)==="WEB_KIDS"}; g.kN=function(a){return g.yX(a)==="WEB_UNPLUGGED"}; l1=function(a){return g.yX(a)==="TVHTML5_UNPLUGGED"}; g.Fm=function(a){return g.kN(a)||g.yX(a)==="TV_UNPLUGGED_CAST"||l1(a)}; g.IE=function(a){return g.yX(a)==="WEB_REMIX"}; g.mS=function(a){return g.yX(a)==="WEB_EMBEDDED_PLAYER"}; g.yK=function(a){return(a.deviceIsAudioOnly||!g.s_||Xz||a.controlsType==="3"?!1:g.TO?a.j&&g.OJ(51):!0)||(a.deviceIsAudioOnly||!g.Uj||Xz||a.controlsType==="3"?!1:g.TO?a.j&&g.OJ(48):g.OJ(38))||(a.deviceIsAudioOnly||!g.KR||Xz||a.controlsType==="3"?!1:g.TO?a.j&&g.OJ(37):g.OJ(27))||!a.deviceIsAudioOnly&&g.Ti&&!GJd()&&g.OJ(11)||!a.deviceIsAudioOnly&&g.Nr&&g.OJ("604.4")}; AVH=function(a){if(g.BS(a)&&Sd)return!1;if(g.Uj){if(!g.OJ(47)||!g.OJ(52)&&g.OJ(51))return!1}else if(g.Nr)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; G2R=function(a,l){return a.enabledEngageTypes.has(l.toString())||Pyd.includes(l)}; sl=function(a){return a.hM==="detailpage"}; g.BS=function(a){return a.hM==="embedded"}; RX=function(a){return a.hM==="leanback"}; $N=function(a){return a.hM==="adunit"||a.playerStyle==="gvn"}; g.nR=function(a){return a.hM==="profilepage"}; g.vS=function(a){return a.j&&g.BS(a)&&!$N(a)&&!a.C}; HV=function(a){if(!a.userDisplayImage)return"";var l=a.userDisplayImage.split("/");if(l.length===5)return a=l[l.length-1].split("="),a[1]="s20-c",l[l.length-1]=a.join("="),l.join("/");if(l.length===8)return l.splice(7,0,"s20-c"),l.join("/");if(l.length===9)return l[7]+="-s20-c",l.join("/");g.nU(new g.YH("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; g.qU=function(a){var l=g.uj(a);Vl7.includes(l)&&(l="www.youtube.com");return a.protocol+"://"+l}; g.b1=function(a,l){l=l===void 0?"":l;if(a.n_){var m=new l6,T,y=a.n_();y.signedOut?T="":y.token?T=y.token:y.pendingResult.then(function(R){y.signedOut?m.resolve(""):m.resolve(R.token)},function(R){g.nU(new g.YH("b189348328_oauth_callback_failed",{error:R})); m.resolve(l)}); return T!==void 0?fy(T):new sZ(m)}return fy(l)}; gp=function(a,l){l=l===void 0?"":l;return a.dl?Pc(!0):Wc(Zh(Pc(g.b1(a,l)),function(m){return Pc(!!m)}),function(){return Pc(!1)})}; CR=function(a){var l=g.B(g.Fl(a));return(a=Number(g.e$(a)[4]||null)||null)?l+":"+a:l}; MU=function(a,l){l=l===void 0?!1:l;var m=o_[a],T=pY5[m],y=Zbt[a];if(!y||!T)return null;l=new I_(l?y.height:y.width,l?y.width:y.height,y.fps);T=t8(T,l,m);return new x9(a,T,{video:l,Nj:y.bitrate/8})}; cVw=function(a){var l=pY5[o_[a]],m=Wrt[a];return m&&l?new x9(a,l,{audio:new k9(m.audioSampleRate,m.numChannels)}):null}; i1=function(a){this.T=a}; dp=function(a,l,m,T){if(m)return Sn();m={};var y=vT();l=g.c(l);for(var R=l.next();!R.done;R=l.next())if(R=R.value,a.canPlayType(y,R.getInfo().mimeType)||T){var H=R.T.video.quality;if(!m[H]||m[H].getInfo().n5())m[H]=R}a=[];m.auto&&a.push(m.auto);T=g.c(Cw);for(y=T.next();!y.done;y=T.next())(y=m[y.value])&&a.push(y);return a.length?fy(a):Sn()}; LrR=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var l;this.L=((l=a.audioItag)==null?void 0:l.split(","))||[];this.bJ=a.bJ;this.u0=a.u0||"";this.WF=a.WF;this.audioChannels=a.audioChannels;this.T=""}; Nkb=function(a,l,m,T){l=l===void 0?!1:l;m=m===void 0?!0:m;T=T===void 0?{}:T;var y={};a=g.c(a);for(var R=a.next();!R.done;R=a.next()){R=R.value;if(l&&MediaSource&&MediaSource.isTypeSupported){var H=R.type;R.audio_channels&&(H=H+"; channels="+R.audio_channels);if(!MediaSource.isTypeSupported(H)){T[R.itag]="tpus";continue}}if(m||!R.drm_families||R.eotf!=="smpte2084"&&R.eotf!=="arib-std-b67"){H=void 0;var b={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},M=R.type.match(/codecs="([^"]*)"/); M=M?M[1]:"";R.audio_track_id&&(H=new g.ZO(R.name,R.audio_track_id,!!R.is_default));var d=R.eotf;R=new LrR({itag:R.itag,url:R.url,codecs:M,width:Number(R.width),height:Number(R.height),fps:Number(R.fps),bitrate:Number(R.bitrate),audioItag:R.audio_itag,bJ:d?b[d]:void 0,u0:R.drm_families,WF:H,audioChannels:Number(R.audio_channels)});y[R.itag]=y[R.itag]||[];y[R.itag].push(R)}else T[R.itag]="enchdr"}return y}; Qup=function(a,l,m,T,y){this.Z=a;this.L=l;this.K=m;this.cpn=T;this.C=y;this.j=0;this.T=""}; tlR=function(a,l){a.Z.some(function(m){var T;return((T=m.WF)==null?void 0:T.getId())===l}); a.T=l}; ji=function(a,l,m){a.cpn&&(l=g.S$(l,{cpn:a.cpn}));m&&(l=g.S$(l,{paired:m}));return l}; e9P=function(a,l){a=a.itag.toString();l!==null&&(a+=l.itag.toString());return a}; Fr3=function(a){for(var l=[],m=[],T=g.c(a.L),y=T.next();!y.done;y=T.next())y=y.value,y.bitrate<=a.j?l.push(y):m.push(y);l.sort(function(R,H){return H.bitrate-R.bitrate}); m.sort(function(R,H){return R.bitrate-H.bitrate}); a.L=l.concat(m)}; Ae=function(a,l,m){this.T=a;this.L=l;this.expiration=m;this.DR=null}; h9l=function(a,l){if(!(Xz||UZ()||XL()))return null;a=Nkb(l,a.V("html5_filter_fmp4_in_hls"));if(!a)return null;l=[];for(var m={},T=g.c(Object.keys(a)),y=T.next();!y.done;y=T.next()){y=g.c(a[y.value]);for(var R=y.next();!R.done;R=y.next()){var H=R.value;H.WF&&(R=H.WF.getId(),m[R]||(H=new g.Mn(R,H.WF),m[R]=H,l.push(H)))}}return l.length>0?l:null}; $Cz=function(a,l,m,T,y,R,H){if(!(Xz||UZ()||XL()))return Sn();var b={},M=ObR(m),d=Nkb(m,a.V("html5_filter_fmp4_in_hls"),a.K.B,b);if(!d)return H({noplst:1}),Sn();KrH(d);m={};var A=(m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m),P;m=[];var G=[],V=[],p=null,L="";T=T&&T.match(/hls_timedtext_playlist/)?new LrR({itag:"0",url:T,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,WF:new g.ZO("English","en",!1)}):null;for(var N=g.c(Object.keys(d)),e=N.next();!e.done;e=N.next())if(e=e.value,!a.V("html5_disable_drm_hfr_1080")|| e!=="383"&&e!=="373"){e=g.c(d[e]);for(var t=e.next();!t.done;t=e.next())if(t=t.value,t.width){for(var v=g.c(t.L),S=v.next();!S.done;S=v.next())if(S=S.value,d[S]){t.T=S;break}t.T||(t.T=z9t(d,t));if(v=d[t.T])if(m.push(t),t.u0==="fairplay"&&(P=A),S="",t.bJ==="PQ"?S="smpte2084":t.bJ==="HLG"&&(S="arib-std-b67"),S&&(L=S),V.push(vcb(v,[t],T,R,t.itag,t.width,t.height,t.fps,M,void 0,void 0,P,S)),!p||t.width*t.height*t.fps>p.width*p.height*p.fps)p=t}else G.push(t)}else b[e]="disdrmhfr";V.reduce(function(n, X){return X.getInfo().isEncrypted()&&n},!0)&&(P=A); y=Math.max(y,0);A=p||{};d=A.fps===void 0?0:A.fps;p=A.width===void 0?0:A.width;A=A.height===void 0?0:A.height;N=a.V("html5_native_audio_track_switching");V.push(vcb(G,m,T,R,"93",p,A,d,M,"auto",y,P,L,N));Object.entries(b).length&&H(b);return dp(a.K,V,De(a,l),!1)}; vcb=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V){for(var p=0,L="",N=g.c(a),e=N.next();!e.done;e=N.next())e=e.value,L||(L=e.itag),e.audioChannels&&e.audioChannels>p&&(p=e.audioChannels,L=e.itag);y=new x9(y,"application/x-mpegURL",{audio:new k9(0,p),video:new I_(R,H,b,null,void 0,d,void 0,G),u0:P,y3:L});a=new Qup(a,l,m?[m]:[],T,!!V);a.j=A?A:1369843;return new Ae(y,a,M)}; ObR=function(a){a=g.c(a);for(var l=a.next();!l.done;l=a.next())if(l=l.value,l.url&&(l=l.url.split("expire/"),!(l.length<=1)))return+l[1].split("/")[0];return NaN}; z9t=function(a,l){for(var m=g.c(Object.keys(a)),T=m.next();!T.done;T=m.next()){T=T.value;var y=a[T][0];if(!y.width&&y.u0===l.u0&&!y.audioChannels)return T}return""}; KrH=function(a){for(var l=new Set,m=g.c(Object.values(a)),T=m.next();!T.done;T=m.next())T=T.value,T.length&&(T=T[0],T.height&&T.codecs.startsWith("vp09")&&l.add(T.height));m=[];if(l.size){T=g.c(Object.keys(a));for(var y=T.next();!y.done;y=T.next())if(y=y.value,a[y].length){var R=a[y][0];R.height&&l.has(R.height)&&!R.codecs.startsWith("vp09")&&m.push(y)}}l=g.c(m);for(m=l.next();!m.done;m=l.next())delete a[m.value]}; PV=function(a,l){this.T=a;this.L=l}; sud=function(a,l,m,T){var y=[];m=g.c(m);for(var R=m.next();!R.done;R=m.next()){var H=R.value;if(H.url){R=new g.K_(H.url,!0);if(H.s){var b=R,M=H.sp,d=$Z3(decodeURIComponent(H.s));b[q[0]](M,encodeURIComponent(d))}b=g.c(Object.keys(T));for(M=b.next();!M.done;M=b.next())M=M.value,R.set(M,T[M]);H=HJ(H.type,H.quality,H.itag,H.width,H.height);y.push(new PV(H,R))}}return dp(a.K,y,De(a,l),!1)}; Gi=function(a,l){this.T=a;this.L=l}; Sfp=function(a,l,m){var T=[];m=g.c(m);for(var y=m.next();!y.done;y=m.next())if((y=y.value)&&y.url){var R=HJ(y.type,"medium","0");T.push(new Gi(R,y.url))}return dp(a.K,T,De(a,l),!1)}; fkQ=function(a,l){var m=[],T=HJ(l.type,"auto",l.itag);m.push(new Gi(T,l.url));return dp(a.K,m,!1,!0)}; BkQ=function(a){return a&&JVQ[a]?JVQ[a]:null}; k2Q=function(a){switch(a){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return a;default:return"sabr.config"}}; ncp=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.bA=ij(a.ustreamerConfig)||void 0)}; wY5=function(a,l){var m;if(l=l==null?void 0:(m=l.watchEndpointSupportedOnesieConfig)==null?void 0:m.html5PlaybackOnesieConfig)a.nC=new ncp(l)}; g.VK=function(a){a=a===void 0?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name===void 0?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.T=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""}; g.Zj=function(a){var l={languageCode:a.languageCode,languageName:a.languageName,displayName:g.p7(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.T,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(l.xtags=a.xtags);a.captionId&&(l.captionId=a.captionId);a.translationLanguage&&(l.translationLanguage=a.translationLanguage);return l}; g.WV=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.Ikl=function(a){var l=a.vssId;a.translationLanguage&&l&&(l="t"+l+"."+g.WV(a));return l}; g.p7=function(a){var l=[];if(a.displayName)l.push(a.displayName);else{var m=a.languageName||"";l.push(m);a.kind==="asr"&&m.indexOf("(")===-1&&l.push(" (Subt\u00edtulos autom\u00e1ticos)");a.name&&l.push(" - "+a.name)}a.translationLanguage&&l.push(" >> "+a.translationLanguage.languageName);return l.join("")}; xC7=function(a,l,m,T){a||(a=l&&Cy5.hasOwnProperty(l)&&Ec3.hasOwnProperty(l)?Ec3[l]+"_"+Cy5[l]:void 0);l=a;if(!l)return null;a=l.match(oc7);if(!a||a.length!==5)return null;if(a=l.match(oc7)){var y=Number(a[3]),R=[7,8,10,5,6];a=!(Number(a[1])===1&&y===8)&&R.indexOf(y)>=0}else a=!1;return m||T||a?l:null}; cV=function(a,l){for(var m={},T=g.c(Object.keys(DCt)),y=T.next();!y.done;y=T.next()){y=y.value;var R=l?l+y:y;R=a[R+"_webp"]||a[R];g.mw(R)&&(m[DCt[y]]=R)}return m}; L7=function(a){var l={};if(!a||!a.thumbnails)return l;a=a.thumbnails.filter(function(b){return!!b.url}); a.sort(function(b,M){return b.width-M.width||b.height-M.height}); for(var m=g.c(Object.keys(u$w)),T=m.next();!T.done;T=m.next()){var y=Number(T.value);T=u$w[y];for(var R=g.c(a),H=R.next();!H.done;H=R.next())if(H=H.value,H.width>=y){y=XYt(H.url);g.mw(y)&&(l[T]=y);break}}(a=a.pop())&&a.width>=1280&&(a=XYt(a.url),g.mw(a)&&(l["maxresdefault.jpg"]=a));return l}; XYt=function(a){return a.startsWith("//")?"https:"+a:a}; NU=function(a){return a&&a.baseUrl||""}; QK=function(a){a=g.br(a);for(var l=g.c(Object.keys(a)),m=l.next();!m.done;m=l.next()){m=m.value;var T=a[m];a[m]=Array.isArray(T)?T[0]:T}return a}; Yfz=function(a,l){a.botguardData=l.playerAttestationRenderer.botguardData;l=l.playerAttestationRenderer.challenge;l!=null&&(a.Bv=l)}; aD7=function(a,l){l=g.c(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var T=m.interstitials.map(function(H){var b=g.I(H,UCP);if(b)return{is_yto_interstitial:!0,raw_player_response:b};if(H=g.I(H,rVQ))return Object.assign({is_yto_interstitial:!0},H$(H))}); T=g.c(T);for(var y=T.next();!y.done;y=T.next())switch(y=y.value,m.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:y,Bd:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:y,Bd:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var R=Number(m.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:R,playerVars:y, Bd:R===0?5:7})}}}; lD7=function(a,l){if(l=l.find(function(m){return!(!m||!m.tooltipRenderer)}))a.tooltipRenderer=l.tooltipRenderer}; mWp=function(a,l){l.subscribeCommand&&(a.subscribeCommand=l.subscribeCommand);l.unsubscribeCommand&&(a.unsubscribeCommand=l.unsubscribeCommand);l.addToWatchLaterCommand&&(a.addToWatchLaterCommand=l.addToWatchLaterCommand);l.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=l.removeFromWatchLaterCommand);l.getSharePanelCommand&&(a.getSharePanelCommand=l.getSharePanelCommand)}; T2w=function(a,l){l!=null?(a.ai=l,a.Rh=!0):(a.ai="",a.Rh=!1)}; te=function(a,l){this.type=a||"";this.id=l||""}; g.ei=function(a){return new te(a.substring(0,2),a.substring(2))}; g.FU=function(a,l){this.UL=a;this.author="";this.RT=null;this.playlistLength=0;this.T=this.sessionData=null;this.J={};this.title="";if(l){this.author=l.author||l.playlist_author||"";this.title=l.playlist_title||"";if(a=l.session_data)this.sessionData=y7(a,"&");var m;this.T=((m=l.thumbnail_ids)==null?void 0:m.split(",")[0])||null;this.J=cV(l,"playlist_");this.videoId=l.video_id||void 0;if(m=l.list)switch(l.listType){case "user_uploads":this.playlistId=(new te("UU","PLAYER_"+m)).toString();break;default:if(a= l.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.ei(m).toString();if(l=l.video)this.videoId=(l[0]||null).video_id||void 0}else l.playlist&&(this.playlistLength=l.playlist.toString().split(",").length)}}; g.he=function(a,l){this.UL=a;this.EB=this.author="";this.RT=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.QS=this.lengthText="";this.sessionData=null;this.J={};this.title="";if(l){this.ariaLabel=l.aria_label||void 0;this.author=l.author||"";this.EB=l.EB||"";if(a=l.endscreen_autoplay_session_data)this.RT=y7(a,"&");this.Mc=l.Mc;this.isLivePlayback=l.live_playback==="1";this.isUpcoming=!!l.isUpcoming;if(a=l.length_seconds)this.lengthSeconds=typeof a==="string"?Number(a):a;this.lengthText= l.lengthText||"";this.QS=l.QS||"";this.publishedTimeText=l.publishedTimeText||void 0;if(a=l.session_data)this.sessionData=y7(a,"&");this.shortViewCount=l.short_view_count_text||void 0;this.J=cV(l);this.title=l.title||"";this.videoId=l.docid||l.video_id||l.videoId||l.id||void 0;this.watchUrl=l.watchUrl||void 0}}; y_w=function(a){var l,m,T=(l=a.getWatchNextResponse())==null?void 0:(m=l.contents)==null?void 0:m.twoColumnWatchNextResults,y,R,H,b,M;a=(y=a.getWatchNextResponse())==null?void 0:(R=y.playerOverlays)==null?void 0:(H=R.playerOverlayRenderer)==null?void 0:(b=H.endScreen)==null?void 0:(M=b.watchNextEndScreenRenderer)==null?void 0:M.results;if(!a){var d,A;a=T==null?void 0:(d=T.endScreen)==null?void 0:(A=d.endScreen)==null?void 0:A.results}return a}; g.K7=function(a){var l,m,T;a=g.I((l=a.getWatchNextResponse())==null?void 0:(m=l.playerOverlays)==null?void 0:(T=m.playerOverlayRenderer)==null?void 0:T.decoratedPlayerBarRenderer,OS);return g.I(a==null?void 0:a.playerBar,Rxp)}; Hld=function(a){this.T=a.playback_progress_0s_url;this.Z=a.playback_progress_2s_url;this.L=a.playback_progress_10s_url}; qW7=function(){if(zi===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(l){}a:{try{var a=!!self.localStorage}catch(l){a=!1}if(a&&(a=g.ne(g.UC()+"::yt-player"))){zi=new E6(a);break a}zi=void 0}}return zi}; g.vV=function(){var a=qW7();if(!a)return{};try{var l=a.get("yt-player-lv");return JSON.parse(l||"{}")}catch(m){return{}}}; g.bl5=function(a){var l=qW7();l&&(a=JSON.stringify(a),l.set("yt-player-lv",a))}; g.$W=function(a){return g.vV()[a]||0}; g.sS=function(a,l){var m=g.vV();l!==m[a]&&(l!==0?m[a]=l:delete m[a],g.bl5(m))}; g.Si=function(a){return g.J(function(l){return l.return(g.xT(gP7(),a))})}; Je=function(a,l,m,T,y,R,H,b){var M,d,A,P,G,V;return g.J(function(p){switch(p.L){case 1:return M=g.$W(a),M===4?p.return(4):g.z(p,g.m8(),2);case 2:d=p.T;if(!d)throw g.t7("wiac");if(!b||H===void 0){p.iT(3);break}return g.z(p,M_Q(b,H),4);case 4:H=p.T;case 3:return A=m.lastModified||"0",g.z(p,g.Si(d),5);case 5:return P=p.T,g.LP(p,6),f7++,g.z(p,g.s9(P,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",xX:!0},function(L){if(R!==void 0&&H!==void 0){var N=""+a+"|"+l.id+"|"+A+"|"+String(R).padStart(10, "0");N=g.Ss(L.objectStore("media"),H,N)}else N=g.Fz.resolve(void 0);var e=ilz(a,l.YN()),t=ilz(a,!l.YN()),v={fmts:dW3(T),format:m||{}};e=g.Ss(L.objectStore("index"),v,e);var S=T.downloadedEndTime===-1;v=S?L.objectStore("index").get(t):g.Fz.resolve(void 0);var n={fmts:"music",format:{}};L=S&&y&&!l.YN()?g.Ss(L.objectStore("index"),n,t):g.Fz.resolve(void 0);return g.Fz.all([L,v,N,e]).then(function(X){X=g.c(X);X.next();X=X.next().value;f7--;var D=g.$W(a);if(D!==4&&S&&y||X!==void 0&&g.jnw(X.fmts))D=1,g.sS(a, D);return D})}),8); case 8:return p.return(p.T);case 6:G=g.OQ(p);f7--;V=g.$W(a);if(V===4)return p.return(V);g.sS(a,4);throw G;}})}; g.A_w=function(a){var l,m;return g.J(function(T){if(T.L==1)return g.z(T,g.m8(),2);if(T.L!=3){l=T.T;if(!l)throw g.t7("ri");return g.z(T,g.Si(l),3)}m=T.T;return T.return(g.s9(m,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(y){var R=IDBKeyRange.bound(a+"|",a+"~");return y.objectStore("index").getAll(R).then(function(H){return H.map(function(b){return b?b.format:{}})})}))})}; GCl=function(a,l,m,T,y){var R,H,b;return g.J(function(M){if(M.L==1)return g.z(M,g.m8(),2);if(M.L!=3){R=M.T;if(!R)throw g.t7("rc");return g.z(M,g.Si(R),3)}H=M.T;b=g.s9(H,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(d){var A=""+a+"|"+l+"|"+m+"|"+String(T).padStart(10,"0");return d.objectStore("media").get(A)}); return y?M.return(b.then(function(d){if(d===void 0)throw Error("No data from indexDb");return PMp(y,d)}).catch(function(d){throw new g.YH("Error while reading chunk: "+d.name+", "+d.message); })):M.return(b)})}; g.jnw=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; ilz=function(a,l){return""+a+"|"+(l?"v":"a")}; dW3=function(a){var l={};return Rt((l.dlt=a.downloadedEndTime.toString(),l.mket=a.maxKnownEndTime.toString(),l.avbr=a.averageByteRate.toString(),l))}; p_w=function(a){var l={},m={};a=g.c(a);for(var T=a.next();!T.done;T=a.next()){var y=T.value,R=y.split("|");y.match(g.V_l)?(T=Number(R.pop()),isNaN(T)?m[y]="?":(R=R.join("|"),(y=l[R])?(R=y[y.length-1],T===R.end+1?R.end=T:y.push({start:T,end:T})):l[R]=[{start:T,end:T}])):m[y]="?"}a=g.c(Object.keys(l));for(T=a.next();!T.done;T=a.next())T=T.value,m[T]=l[T].map(function(H){return H.start+"-"+H.end}).join(","); return m}; BV=function(a){g.Aj.call(this);this.T=null;this.Z=new Ce;this.T=null;this.C=new Set;this.crossOrigin=a||""}; Zlz=function(a,l,m){for(m=kW(a,m);m>=0;){var T=a.levels[m];if(T.isLoaded(n7(T,l))&&(T=g.wp(T,l)))return T;m--}return g.wp(a.levels[0],l)}; c_5=function(a,l,m){m=kW(a,m);for(var T,y;m>=0;m--)if(T=a.levels[m],y=n7(T,l),!T.isLoaded(y)){T=a;var R=m,H=R+"-"+y;T.C.has(H)||(T.C.add(H),T.Z.enqueue(R,{zU:R,bl:y}))}WVw(a)}; WVw=function(a){if(!a.T&&!a.Z.isEmpty()){var l=g.B(a.Z.remove());a.T=LVt(a,l)}}; LVt=function(a,l){var m=document.createElement("img");a.crossOrigin&&(m.crossOrigin=a.crossOrigin);m.src=a.levels[l.zU].eb(l.bl);m.onload=function(){var T=l.zU,y=l.bl;a.T!==null&&(a.T.onload=null,a.T=null);T=a.levels[T];T.loaded.add(y);WVw(a);var R=T.columns*T.rows;y*=R;T=Math.min(y+R-1,T.m8()-1);y=[y,T];a.publish("l",y[0],y[1])}; return m}; g.IX=function(a,l,m,T){this.level=a;this.j=l;this.loaded=new Set;this.level=a;this.j=l;a=m.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.T=Math.floor(Number(a[5]));this.Z=a[6];this.signature=a[7];this.videoLength=T}; n7=function(a,l){return Math.floor(l/(a.columns*a.rows))}; g.wp=function(a,l){l>=a.aC()&&a.j1();var m=n7(a,l),T=a.columns*a.rows,y=l%T;l=y%a.columns;y=Math.floor(y/a.columns);var R=a.j1()+1-T*m;if(R1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; N2b=function(a,l,m){return(a=a.levels[l])?a.Pm(m):-1}; kW=function(a,l){var m=a.j.get(l);if(m)return m;m=a.levels.length;for(var T=0;T=l)return a.j.set(l,T),T;a.j.set(l,m-1);return m-1}; ES=function(a,l,m,T){m=m.split("#");m=[m[1],m[2],0,m[3],m[4],-1,m[0],""].join("#");g.IX.call(this,a,l,m,0);this.L=null;this.K=T?2:0}; oX=function(a,l,m,T){C7.call(this,a,0,void 0,l,!(T===void 0||!T));for(a=0;a(m!=null?m:50)&&(m=vPp.shift())&&rp.delete(m),m=y),y!==m&&a.A2("ssei","dcpn_"+y+"_"+m+"_"+a.clientPlaybackNonce),m)}; XU=function(a,l){var m=l.raw_watch_next_response;if(!m){var T=l.watch_next_response;T&&(m=JSON.parse(T))}if(m){a.hM=m;var y=a.hM.playerCueRangeSet;y&&g.aY(a,y);var R=a.hM.playerOverlays;if(R){var H=R.playerOverlayRenderer;if(H){var b=H.autonavToggle;b&&(a.autoplaySwitchButtonRenderer=g.I(b,$WR),a.V("web_player_autonav_use_server_provided_state")&&l9(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var M=H.videoDetails;if(M){var d=M.embeddedPlayerOverlayVideoDetailsRenderer;var A=M.playerOverlayVideoDetailsRenderer; A&&(A.title&&(l.title=g.Lj(A.title)),A.subtitle&&(l.subtitle=g.Lj(A.subtitle)))}g.BS(a.UL)&&(a.EG=!!H.addToMenu);snd(a,H.shareButton);H.startPosition&&H.endPosition&&(a.progressBarStartPosition=H.startPosition,a.progressBarEndPosition=H.endPosition);var P=H.gatedActionsOverlayRenderer;P&&(a.wA=g.I(P,SWt));var G,V,p,L=g.I((G=a.getWatchNextResponse())==null?void 0:(V=G.playerOverlays)==null?void 0:(p=V.playerOverlayRenderer)==null?void 0:p.infoPanel,fDQ);if(L){a.RP=Number(L==null?void 0:L.durationMs)|| NaN;if(L==null?0:L.infoPanelOverviewViewModel)a.im=L==null?void 0:L.infoPanelOverviewViewModel;if(L==null?0:L.infoPanelDetailsViewModel)a.M9=L==null?void 0:L.infoPanelDetailsViewModel}a.showSeekingControls=!!H.showSeekingControls}}var N,e,t=(N=a.getWatchNextResponse())==null?void 0:(e=N.contents)==null?void 0:e.twoColumnWatchNextResults;if(t){var v=t.desktopOverlay&&g.I(t.desktopOverlay,J_l);v&&(v.suppressShareButton&&(a.showShareButton=!1),v.suppressWatchLaterButton&&(a.EG=!1))}d&&B2p(a,l,d);var S= gQ(0,l.autoplay_count),n=g.B(a.getWatchNextResponse()),X,D=(X=n.contents)==null?void 0:X.twoColumnWatchNextResults,yp,H5,ad,Md=(yp=n.playerOverlays)==null?void 0:(H5=yp.playerOverlayRenderer)==null?void 0:(ad=H5.autoplay)==null?void 0:ad.playerOverlayAutoplayRenderer,U=y_w(a),Nd,hz=(Nd=n.contents)==null?void 0:Nd.singleColumnWatchNextResults;if(hz){var EQ;if(((EQ=hz.autoplay)==null?0:EQ.autoplay)&&!hz.playlist){var ec=hz.autoplay.autoplay.sets,MF={},KP=new g.he(a.Y()),Ft=null,Hn;if(ec){for(var Q= g.c(ec),gw=Q.next();!gw.done;gw=Q.next()){var D9=gw.value.autoplayVideoRenderer;if(D9&&D9.compactVideoRenderer){Ft=D9.compactVideoRenderer;break}}if(Hn=ec[0].autoplayVideo){var Nj=Hn.clickTrackingParams;Nj&&(MF.itct=Nj);MF.autonav="1";MF.playnext=String(S)}}else MF.feature="related-auto";var zd=g.I(Hn,g.m3);if(Ft){KP.videoId=Ft.videoId;var Gd=Ft.shortBylineText;Gd&&(KP.author=g.Lj(Gd));var ww=Ft.title;ww&&(KP.title=g.Lj(ww))}else zd!=null&&zd.videoId&&(KP.videoId=zd.videoId);KP.RT=MF;a.suggestions= [];a.CY=KP}}if(U){for(var fD=[],vn=g.c(U),h=vn.next();!h.done;h=vn.next()){var O=h.value,K=void 0,f=null;if(O.endScreenVideoRenderer){var C=O.endScreenVideoRenderer,tz=C.title;f=new g.he(a.Y());f.videoId=C.videoId;f.lengthSeconds=C.lengthInSeconds||0;var TH=C.publishedTimeText;TH&&(f.publishedTimeText=g.Lj(TH));var ZR=C.shortBylineText;ZR&&(f.author=g.Lj(ZR));var Rd=C.shortViewCountText;Rd&&(f.shortViewCount=g.Lj(Rd));if(tz){f.title=g.Lj(tz);var v5=tz.accessibility;if(v5){var UQ=v5.accessibilityData; UQ&&UQ.label&&(f.ariaLabel=UQ.label)}}var Q5=C.navigationEndpoint;if(Q5){K=Q5.clickTrackingParams;var Qk=g.I(Q5,g.m3),$_=g.I(Q5,g.I8);Qk?f.Mc=Qk:$_!=null&&(f.watchUrl=$_.url)}var XP=C.thumbnailOverlays;if(XP)for(var D2=g.c(XP),YA=D2.next();!YA.done;YA=D2.next()){var Nc=YA.value.thumbnailOverlayTimeStatusRenderer;if(Nc)if(Nc.style==="LIVE"){f.isLivePlayback=!0;break}else if(Nc.style==="UPCOMING"){f.isUpcoming=!0;break}}f.J=L7(C.thumbnail)}else if(O.endScreenPlaylistRenderer){var jp=O.endScreenPlaylistRenderer, $1=jp.navigationEndpoint;if(!$1)continue;var Z4=g.I($1,g.m3);if(!Z4)continue;var sh=Z4.videoId;f=new g.FU(a.Y());f.playlistId=jp.playlistId;f.playlistLength=Number(jp.videoCount)||0;f.T=sh||null;f.videoId=sh;var Dn=jp.title;Dn&&(f.title=g.Lj(Dn));var uv=jp.shortBylineText;uv&&(f.author=g.Lj(uv));K=$1.clickTrackingParams;f.J=L7(jp.thumbnail)}f&&(K&&(f.sessionData={itct:K}),fD.push(f))}a.suggestions=fD}if(Md){a.bQ=!!Md.preferImmediateRedirect;a.JW=a.JW||!!Md.webShowNewAutonavCountdown;a.yp=a.yp||!!Md.webShowBigThumbnailEndscreen; if(a.JW||a.yp){var F6=D||null,H6=new g.he(a.Y());H6.videoId=Md.videoId;var U8=Md.videoTitle;if(U8){H6.title=g.Lj(U8);var qj=U8.accessibility;if(qj){var F3=qj.accessibilityData;F3&&F3.label&&(H6.ariaLabel=F3.label)}}var Eu=Md.byline;Eu&&(H6.author=g.Lj(Eu));var pc=Md.publishedTimeText;pc&&(H6.publishedTimeText=g.Lj(pc));var WJ=Md.shortViewCountText;WJ&&(H6.shortViewCount=g.Lj(WJ));var cJ=Md.thumbnailOverlays;if(cJ)for(var LT=g.c(cJ),bu=LT.next();!bu.done;bu=LT.next()){var iB=bu.value.thumbnailOverlayTimeStatusRenderer; if(iB)if(iB.style==="LIVE"){H6.isLivePlayback=!0;break}else if(iB.style==="UPCOMING"){H6.isUpcoming=!0;break}else if(iB.style==="DEFAULT"&&iB.text){H6.lengthText=g.Lj(iB.text);var Ni=iB.text.accessibility;if(Ni){var gY=Ni.accessibilityData;gY&&gY.label&&(H6.QS=gY.label||"")}break}}H6.J=L7(Md.background);var Qv=Md.nextButton;if(Qv){var tu=Qv.buttonRenderer;if(tu){var ey=tu.navigationEndpoint;if(ey){var Fc=g.I(ey,g.m3);Fc&&(H6.Mc=Fc)}}}if(Md.topBadges){var hu=Md.topBadges[0];if(hu){var OK=g.I(hu,kC7); OK&&OK.style==="BADGE_STYLE_TYPE_PREMIUM"&&(H6.NNL=!0)}}var rn=Md.alternativeTitle;rn&&(H6.EB=g.Lj(rn));var hy={autonav:"1",playnext:String(S)};H6.playlistId&&(hy.autoplay="1");if(F6){var ap,EM,Ml,KT,iu=(ap=F6.autoplay)==null?void 0:(EM=ap.autoplay)==null?void 0:(Ml=EM.sets)==null?void 0:(KT=Ml[0])==null?void 0:KT.autoplayVideo;if(iu){var zR=iu.clickTrackingParams;zR&&(hy.itct=zR);var dY=g.I(iu,g.m3);dY&&(H6.cL=dY)}}else if(Md){var vJ,$M,sK,Sy=(vJ=Md.nextButton)==null?void 0:($M=vJ.buttonRenderer)== null?void 0:(sK=$M.navigationEndpoint)==null?void 0:sK.clickTrackingParams;Sy&&(hy.itct=Sy)}hy.itct||(hy.feature="related-auto");H6.RT=hy;a.suggestions||(a.suggestions=[]);a.CY=H6}Md.countDownSecs!=null&&(a.vX=Md.countDownSecs*1E3);Md.countDownSecsForFullscreen!=null&&(a.MU=Md.countDownSecsForFullscreen>=0?Md.countDownSecsForFullscreen*1E3:-1);a.V("web_autonav_color_transition")&&Md.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.I(Md.watchToWatchTransitionRenderer,nP7))}var jG= y_w(a);if(jG){var Z1,fT,A9,PF=jG==null?void 0:(Z1=jG[0])==null?void 0:(fT=Z1.endScreenVideoRenderer)==null?void 0:(A9=fT.navigationEndpoint)==null?void 0:A9.clickTrackingParams,Ju=g.Tj(a);PF&&Ju&&(Ju.sessionData={itct:PF})}a.hM.currentVideoThumbnail&&(a.J=L7(a.hM.currentVideoThumbnail));var lb,BJ,kM,mW,nT,Wj=(lb=a.hM)==null?void 0:(BJ=lb.contents)==null?void 0:(kM=BJ.twoColumnWatchNextResults)==null?void 0:(mW=kM.results)==null?void 0:(nT=mW.results)==null?void 0:nT.contents;if(Wj&&Wj[1]){var wV, Iy,Od,hd,Xy=(wV=Wj[1].videoSecondaryInfoRenderer)==null?void 0:(Iy=wV.owner)==null?void 0:(Od=Iy.videoOwnerRenderer)==null?void 0:(hd=Od.thumbnail)==null?void 0:hd.thumbnails;Xy&&Xy.length&&(a.profilePicture=Xy[Xy.length-1].url)}var CT=dQ(l),G8,cj=(G8=a.getWatchNextResponse())==null?void 0:G8.onResponseReceivedEndpoints;if(cj)for(var LI=g.c(cj),Vn=LI.next();!Vn.done;Vn=LI.next()){var Yp=Vn.value;g.I(Yp,yZ)&&(a.hh=g.I(Yp,yZ));var Nt=g.I(Yp,w_3),EK=void 0;if((EK=Nt)==null?0:EK.entityKeys)a.oW=Nt.entityKeys|| [],Nt.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Nt.visibleOnLoadKeys)}if(a.V("web_key_moments_markers")){var ya=g.RY.getState().entities,jF=g.lZ("visibility_override","markersVisibilityOverrideEntity");var ow=T7(ya,"markersVisibilityOverrideEntity",jF);a.wb=(ow==null?void 0:ow.videoId)===(a.videoId||CT)&&(ow==null?0:ow.visibilityOverrideMarkersKey)?ow.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.F(a.wb))}}}; l9=function(a){var l;return((l=a.autoplaySwitchButtonRenderer)==null?void 0:l.enabled)!==void 0}; H9=function(a){return!!(a.Z&&a.Z.videoInfos&&a.Z.videoInfos.length)}; g.i9=function(a){var l=a.B;a.V("html5_gapless_unlimit_format_selection")&&qf(a)&&(l=!1);var m=!!a.T&&a.T.Fl,T=a.UL,y=a.e8(),R=b9(a),H=a.tM,b=l,M=a.isOtf();l=a.EW();var d=a.rb,A=a.getUserAudio51Preference(),P=gn(a),G=new NDb(T);if(T.bZ()||T.V("html5_logging_format_selection"))G.L=!0;G.AM=R;G.tM=H&&T.J;G.qj=A;g.xa("windows nt 5.1")&&!g.Uj&&(G.Ue=!0);if(R=y)R=g.yK(T)?AVH(T):!1;R&&(G.Ij=!0);b&&(G.Ue=!0,G.tN=!0);M&&!T.V("html5_otf_prefer_vp9")&&(G.Ue=!0);T.playerStyle==="picasaweb"&&(M&&(G.Ue=!1),G.lT= !1);d&&(G.Ue=!0);hP(T.K,Ow.CHANNELS)&&(T.V("html5_enable_ac3")&&(G.j=!0),T.V("html5_enable_eac3")&&(G.K=!0),T.V("html5_enable_ac3_gapless")&&(G.hM=!0));T.V("html5_block_8k_hfr")&&(G.Mj=!0);G.C=g.PU(T.experiments,"html5_max_selectable_quality_ordinal");G.B=g.PU(T.experiments,"html5_min_selectable_quality_ordinal");Ol&&(G.SW=480);if(m||y)G.lT=!1;G.wb=!1;G.disableAv1=P;m=Ib(T,G.T,void 0,G.disableAv1);m>0&&m<2160&&(oy()||T.V("html5_format_hybridization"))&&(G.T.supportsChangeType=+oy(),G.hV=m);m>=2160&& (G.jt=!0);wU3()&&(G.T.serveVp9OverAv1IfHigherRes=0,G.Ug=!1);G.EW=l;G.Cx=g.U9||Ri()&&!l?!1:!0;G.J=T.V("html5_format_hybridization");G.vF=T.V("html5_disable_encrypted_vp9_live_non_2k_4k");Mf(a)&&(G.wW=a.V("html5_prefer_language_over_codec"));XL()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(G.j=!0,G.K=!0);a.B&&a.isAd()&&(a.I9&&(G.N=a.I9),a.vS&&(G.Z=a.vS));G.Kx=a.isLivePlayback&& a.wR()&&a.UL.V("html5_drm_live_audio_51");G.yg=a.Br;G.lZ=!Mf(a)&&a.V("html5_disable_voice_boost_for_cabr");return a.OQ=G}; gn=function(a){return a.UL.V("html5_disable_av1")||a.V("html5_gapless_shorts_disable_av1")&&qf(a)?!0:!1}; IDt=function(a){C$("drm_pb_s",void 0,a.N);a.St||a.T&&Nn(a.T);var l={};a.T&&(l=lQt(a.GL,g.i9(a),a.UL.K,a.T,function(m){return a.publish("ctmp","fmtflt",m)},!0,new Set)); l=new lj(l,a.UL,a.Vw,a.useCobaltWidevine?XL()?dn(a):!1:!1,function(m,T){a.Tu(m,T)}); g.w(a,l);a.aH=!1;a.loading=!0;FZR(l,function(m){C$("drm_pb_f",void 0,a.N);for(var T=g.c(m),y=T.next();!y.done;y=T.next())switch(y=y.value,y.flavor){case "fairplay":y.St=a.St;y.h_=a.h_;y.iD=a.iD;break;case "widevine":y.a8=a.a8}a.TF=m;if(a.TF.length>0&&(a.K=a.TF[0],a.UL.bZ())){m={};T=g.c(Object.entries(a.K.T));for(y=T.next();!y.done;y=T.next()){var R=g.c(y.value);y=R.next().value;R=R.next().value;var H="unk";(y=y.match(/(.*)codecs="(.*)"/))&&(H=y[2]);m[H]=R}a.Tu("drmProbe",m)}a.eA()})}; CM7=function(a,l){if(l.length===0||jD(a))return null;a.UL.K.Z&&(ki=!0);var m=a.u0;var T=a.lengthSeconds,y=a.isLivePlayback,R=a.mx,H=a.UL,b=bdp(l);if(y||R){H=H.experiments;T=new QB("",H,!0);T.L=!R;T.Fl=!0;T.isManifestless=!0;T.isLive=!R;T.mx=R;l=g.c(l);for(y=l.next();!y.done;y=l.next()){var M=y.value;y=Fi(M,m);b=JP(M);b=Oj(b.ji||M.url||"",b.wJ,b.s);var d=b.get("id");d&&d.includes("%7E")&&(T.N=!0);var A=void 0;d=(A=H)==null?void 0:A.XO("html5_max_known_end_time_rebase");A=Number(M.targetDurationSec|| 5);M=Number(M.maxDvrDurationSec||14400);var P=Number(b.get("mindsq")||b.get("min_sq")||"0"),G=Number(b.get("maxdsq")||b.get("max_sq")||"0")||Infinity;T.sQ=T.sQ||P;T.h$=T.h$||G;var V=!Ry(y.mimeType);b&&cK(T,new HK(b,y,{Y7:A,ih:V,fY:M,sQ:P,h$:G,ZV:300,mx:R,sK:d}))}m=T}else if(b==="FORMAT_STREAM_TYPE_OTF"){T=T===void 0?0:T;R=new QB("",H.experiments,!1);R.duration=T||0;H=g.c(l);for(T=H.next();!T.done;T=H.next())T=T.value,l=Fi(T,m,R.duration),y=JP(T),(y=Oj(y.ji||T.url||"",y.wJ,y.s))&&(l.streamType==="FORMAT_STREAM_TYPE_OTF"? cK(R,new qO(y,l,"sq/0")):cK(R,new pS(y,l,nN(T.initRange),nN(T.indexRange))));R.isOtf=!0;m=R}else{T=T===void 0?0:T;R=new QB("",H.experiments,!1);R.duration=T||0;H=g.c(l);for(T=H.next();!T.done;T=H.next())b=T.value,T=Fi(b,m,R.duration),l=nN(b.initRange),y=nN(b.indexRange),d=JP(b),(b=Oj(d.ji||b.url||"",d.wJ,d.s))&&cK(R,new pS(b,T,l,y));m=R}R=a.isLivePlayback&&!a.mx&&!a.Ij&&!a.isPremiere;a.V("html5_live_head_playable")&&(!AU(a)&&R&&a.Tu("missingLiveHeadPlayable",{}),a.UL.Ij==="yt"&&(m.AM=!0));return m}; jD=function(a){return XL()?!dn(a):UZ()?!(!a.St||!a.V("html5_enable_safari_fairplay")&&bj()):!1}; dn=function(a){return a.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.aY=function(a,l){l=g.c(l);for(var m=l.next();!m.done;m=l.next())if(m=m.value,m.cueRangeSetIdentifier){var T=void 0;a.FA.set(m.cueRangeSetIdentifier,(T=m.playerCueRanges)!=null?T:[])}}; P9=function(a){return!(!a.T||!a.T.isManifestless)}; Gj=function(a){return a.SW?a.isLowLatencyLiveStream&&a.T!=null&&$i(a.T)>=5:a.isLowLatencyLiveStream&&a.T!=void 0&&$i(a.T)>=5}; EPd=function(a){return XL()&&dn(a)?!1:jD(a)&&(g.Fm(a.UL)?!a.isLivePlayback:a.hlsvp)||!bj()||a.Al?!0:!1}; DWH=function(a){a.loading=!0;a.kA=!1;if(oPp(a))g.A_w(a.videoId).then(function(T){xWd(a,T)}).then(function(){a.eA()}); else{ll(a.tN)||g.nU(new g.YH("DASH MPD Origin invalid: ",a.tN));var l=a.tN,m=g.PU(a.UL.experiments,"dash_manifest_version")||4;l=g.S$(l,{mpd_version:m});a.isLowLatencyLiveStream&&a.latencyClass!=="NORMAL"||(l=g.S$(l,{pacing:0}));G4b(l,a.UL.experiments,a.isLivePlayback).then(function(T){a.FO()||(VZ(a,T,!0),C$("mrc",void 0,a.N),a.eA())},function(T){a.FO()||(a.loading=!1,a.publish("dataloaderror",new O_("manifest.net.retryexhausted",{backend:"manifest", rc:T.status},1)))}); C$("mrs",void 0,a.N)}}; xWd=function(a,l){var m=l.map(function(M){return M.itag}),T; if((T=a.playerResponse)!=null&&T.streamingData){T=[];if(a.V("html5_offline_always_use_local_formats")){m=0;for(var y=g.c(l),R=y.next();!R.done;R=y.next()){R=R.value;var H=Object.assign({},R);H.signatureCipher="";T.push(H);H=g.c(a.playerResponse.streamingData.adaptiveFormats);for(var b=H.next();!b.done;b=H.next())if(b=b.value,R.itag===b.itag&&R.xtags===b.xtags){m+=1;break}}mA&&(A=V.getInfo().audio.numChannels)}A>2&&a.Tu("hlschl",{mn:A});var N;((N=a.OQ)==null?0:N.L)&&a.Tu("hlsfmtaf",{itags:P.join(".")});var e;if(a.V("html5_enable_vp9_fairplay")&&((e=a.K)==null?0:Xi(e)))for(a.Tu("drm",{sbdlfbk:1}),A=g.c(a.TF),P=A.next();!P.done;P=A.next())if(P=P.value,uw(P)){a.K=P;break}c9(a,d)})}return Sn()}; r_p=function(a){if(a.isExternallyHostedPodcast&&a.VX){var l=W9(a.VX);if(!l[0])return Sn();a.TRx=l[0];return fkQ(a.UL,l[0]).then(function(m){c9(a,m)})}return a.n_&&a.Fd?Sfp(a.UL,a.isAd(),a.n_).then(function(m){c9(a,m)}):Sn()}; lVQ=function(a){if(a.isExternallyHostedPodcast)return Sn();var l=W9(a.VX,a.f9);if(a.hlsvp){var m=Qnt(a.hlsvp,a.clientPlaybackNonce,a.Ug);l.push(m)}return sud(a.UL,a.isAd(),l,aV3(a)).then(function(T){c9(a,T)})}; c9=function(a,l){a.FU=l;a.fO(new p_(g.xX(a.FU,function(m){return m.getInfo()})))}; aV3=function(a){var l={cpn:a.clientPlaybackNonce,c:a.UL.T.c,cver:a.UL.T.cver};a.C8&&(l.ptk=a.C8,l.oid=a.CX,l.ptchn=a.o1,l.pltype=a.eS,a.Ok&&(l.m=a.Ok));return l}; g.LK=function(a){return jD(a)&&a.St?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.L&&a.L.u0||null}; m3Q=function(a){var l=Nf(a);return l&&l.text?g.Lj(l.text):a.paidContentOverlayText}; TTw=function(a){var l=Nf(a);return l&&l.durationMs?Lm(l.durationMs):a.paidContentOverlayDurationMs}; Nf=function(a){var l,m,T;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.I((l=a.hM)==null?void 0:(m=l.playerOverlays)==null?void 0:(T=m.playerOverlayRenderer)==null?void 0:T.playerDisclosure,ylz)||null}; QZ=function(a){var l="";if(a.Pr)return a.Pr;a.isLivePlayback&&(l=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Ij?"window":"live");a.mx&&(l="post");return l}; g.tU=function(a,l){return typeof a.keywords[l]!=="string"?null:a.keywords[l]}; RKQ=function(a){return!!a.xw||!!a.NO||!!a.K8||!!a.FH||a.oF}; g.eD=function(a){return!!(a.tN||a.VX||a.n_||a.hlsvp||a.OM())}; u1=function(a){if(a.V("html5_onesie")&&a.errorCode)return!1;var l=g.pD(a.lT,"ypc");a.ypcPreview&&(l=!1);return a.Q1()&&!a.loading&&(g.eD(a)||g.pD(a.lT,"heartbeat")||l)}; W9=function(a,l){a=qy(a);var m={};if(l){l=g.c(l.split(","));for(var T=l.next();!T.done;T=l.next())(T=T.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(m[T[1]]={width:T[2],height:T[3]})}l=g.c(a);for(T=l.next();!T.done;T=l.next()){T=T.value;var y=m[T.itag];y&&(T.width=y.width,T.height=y.height)}return a}; snd=function(a,l){a.showShareButton=!!l;var m,T,y=((m=g.I(l,g.nl))==null?void 0:m.navigationEndpoint)||((T=g.I(l,g.nl))==null?void 0:T.command);y&&(a.Rt=!!g.I(y,H3d))}; t_t=function(a,l){var m=l.raw_embedded_player_response;if(!m){var T=l.embedded_player_response;T&&(m=JSON.parse(T))}m&&(a.f7=m);if(a.f7){a.embeddedPlayerConfig=a.f7.embeddedPlayerConfig||null;if(m=a.f7.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(l.user_display_name=m.userDisplayName),m.userDisplayImage&&(l.user_display_image=m.userDisplayImage);if(m=a.f7.embedPreview){m=m.thumbnailPreviewRenderer;T2w(a,m.controlBgHtml);if(T=m.defaultThumbnail)a.J= L7(T);a.V("embeds_web_enable_search_button")&&m.searchButton&&(T=g.I(m.searchButton,g.nl))&&(a.Ia8=g.I(T.navigationEndpoint,g.FF));(T=g.I(m==null?void 0:m.videoDetails,qYb))&&B2p(a,l,T);T=g.I(m==null?void 0:m.videoDetails,b33);a.EG=!!m.addToWatchLaterButton;snd(a,m.shareButton);if(T==null?0:T.musicVideoType)a.musicVideoType=T.musicVideoType;var y,R,H,b,M;if(T=g.I((y=a.getEmbeddedPlayerResponse())==null?void 0:(R=y.embedPreview)==null?void 0:(H=R.thumbnailPreviewRenderer)==null?void 0:(b=H.playButton)== null?void 0:(M=b.buttonRenderer)==null?void 0:M.navigationEndpoint,g.m3))wY5(a,T),a.videoId=T.videoId||a.videoId;m.videoDurationSeconds&&(a.lengthSeconds=Lm(m.videoDurationSeconds));m.webPlayerActionsPorting&&mWp(a,m.webPlayerActionsPorting);if(y=g.I(m==null?void 0:m.playlist,gRH)){a.GX=!0;R=[];H=Number(y.currentIndex);if(y.contents)for(b=0,M=y.contents.length;b0:a.Sd?!1:a.UL.L7||a.UL.kA||!g.vS(a.UL)?!0:!1:(a.Sd?0:a.Xe)&&g.vS(a.UL)?!0:!1;a.V("html5_log_detailpage_autoplay")&&JU(a)==="detailpage"&&a.Tu("autoplay_info",{autoplay:a.dR,autonav:a.isAutonav,wasDompaused:a.Sd,result:l});return l}; g.wn=function(a){return a.oauthToken||a.UL.Or}; Z3z=function(a){return Mf(a)&&!g.US(a)}; clp=function(a){if(a.V("html5_stateful_audio_normalization")){var l=1,m=g.PU(a.UL.experiments,"html5_default_ad_gain");m&&a.isAd()&&(l=m);var T;if(m=((T=a.j)==null?void 0:T.audio.Z)||a.n4){T=(0,g.E)();a.vu=2;var y=T-a.UL.rl<=a.maxStatefulTimeThresholdSec*1E3;a.applyStatefulNormalization&&y?a.vu=4:y||(a.UL.Mg=Infinity,a.UL.rl=NaN);y=(a.vu===4?g.Km(a.UL.Mg,a.minimumLoudnessTargetLkfs,a.loudnessTargetLkfs):a.loudnessTargetLkfs)-m;if(a.vu!==4){var R,H,b,M,d=((R=a.playerResponse)==null?void 0:(H=R.playerConfig)== null?void 0:(b=H.audioConfig)==null?void 0:(M=b.loudnessNormalizationConfig)==null?void 0:M.statelessLoudnessAdjustmentGain)||0;y+=d}y=Math.min(y,0);a.preserveStatefulLoudnessTarget&&(a.UL.Mg=m+y,a.UL.rl=T);a=Math.min(1,Math.pow(10,y/20))||l}else a=Wcw(a)}else a=Wcw(a);return a}; Wcw=function(a){var l=1,m=g.PU(a.UL.experiments,"html5_default_ad_gain");m&&a.isAd()&&(l=m);var T;if(m=((T=a.j)==null?void 0:T.audio.j)||a.Dv)a.vu=1;return Math.min(1,Math.pow(10,-m/20))||l}; b9=function(a){var l=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],m=g.yX(a.UL)==="TVHTML5_SIMPLY"&&a.UL.T.ctheme==="MUSIC";a.Be||!g.IE(a.UL)&&!m||!l.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Be=!0);if(l=g.ur())l=/Starboard\/([0-9]+)/.exec(g.ej()),l=(l?parseInt(l[1],10):NaN)<10;m=a.UL;m=(g.yX(m)==="TVHTML5_CAST"||g.yX(m)==="TVHTML5"&&(m.T.cver.startsWith("6.20130725")||m.T.cver.startsWith("6.20130726")))&&a.UL.T.ctheme==="MUSIC";var T;if(T=!a.Be)m||(m=a.UL,m= g.yX(m)==="TVHTML5"&&m.T.cver.startsWith("7")),T=m;T&&!l&&(l=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",m=(a.V("cast_prefer_audio_only_for_atv_and_uploads")||a.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",l||m||a.isExternallyHostedPodcast)&&(a.Be=!0);return a.UL.deviceIsAudioOnly||a.Be&&a.UL.J}; IY=function(a){var l,m,T;return((l=a.playerResponse)==null?void 0:(m=l.playerConfig)==null?void 0:(T=m.compositeVideoConfig)==null?void 0:T.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.LcP=function(a){return a.V("html5_enable_sabr_live_captions")&&a.Fl()&&Mf(a)||IY(a)}; CK=function(a){var l,m,T;return!!((l=a.playerResponse)==null?0:(m=l.playerConfig)==null?0:(T=m.mediaCommonConfig)==null?0:T.splitScreenEligible)}; En=function(a){var l;return!((l=a.playerResponse)==null||!l.compositePlayabilityStatus)}; NTP=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; oY=function(a){return!(!a.jn||!a.UL.J)&&a.OM()}; xw=function(a){return a.Uk&&a.enableServerStitchedDai}; QhQ=function(a){return a.JV&&!a.W4}; Mf=function(a){var l=a.V("html5_enable_sabr_on_drive")&&a.UL.Ij==="gd";if(a.Ef)return a.JV&&a.Tu("fds",{fds:!0},!0),!1;if(a.UL.Ij!=="yt"&&!l)return a.JV&&a.Tu("dsvn",{ns:a.UL.Ij},!0),!1;if(a.cotn||!a.T||a.T.isOtf||a.Nz&&!a.V("html5_enable_sabr_csdai"))return!1;if(a.V("html5_use_sabr_requests_for_debugging"))return!0;a.JV&&a.Tu("esfw",{usbc:a.JV,hsu:!!a.W4},!0);if(a.JV&&a.W4)return!0;if(a.V("html5_remove_client_sabr_determination"))return!1;var m=!a.T.Fl&&!a.wR();l=m&&RT&&a.V("html5_enable_sabr_vod_streaming_xhr"); m=m&&!RT&&a.V("html5_enable_sabr_vod_non_streaming_xhr");var T=D6(a),y=a.V("html5_enable_sabr_drm_vod_streaming_xhr")&&RT&&a.wR()&&!a.T.Fl&&(a.drmProduct==="1"?!1:!0);(l=l||m||T||y)&&!a.W4&&a.Tu("sabr",{loc:"m"},!0);return l&&!!a.W4}; D6=function(a){var l;if(!(l=RT&&a.Fl()&&a.wR()&&(a.drmProduct==="1"?!1:!0)&&a.V("html5_sabr_live_drm_streaming_xhr"))){l=a.Fl()&&!a.wR()&&RT;var m=a.Fl()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.V("html5_sabr_live_normal_latency_streaming_xhr"),T=a.isLowLatencyLiveStream&&a.V("html5_sabr_live_low_latency_streaming_xhr"),y=a.latencyClass==="ULTRALOW"&&a.V("html5_sabr_live_ultra_low_latency_streaming_xhr");l=l&&(m||T||y)}m=l;l=a.enableServerStitchedDai&&m&&a.V("html5_enable_sabr_ssdai_streaming_xhr"); m=!a.enableServerStitchedDai&&m;T=a.Fl()&&!RT&&a.V("html5_enable_sabr_live_non_streaming_xhr");a=RT&&(a.WN()||CK(a)&&a.V("html5_enable_sabr_for_lifa_eligible_streams"));return l||m||T||a}; g.US=function(a){return a.zT&&Mf(a)}; oPp=function(a){var l;if(l=!!a.cotn)l=a.videoId,l=!!l&&g.$W(l)===1;return l&&!a.jn}; g.u9=function(a){if(!a.T||!a.L||!a.j)return!1;var l=a.T.T,m=!!l[a.L.id]&&$y(l[a.L.id].DR.T);l=!!l[a.j.id]&&$y(l[a.j.id].DR.T);return(a.L.itag==="0"||m)&&l}; XF=function(a){return a.mB?["OK","LIVE_STREAM_OFFLINE"].includes(a.mB.status):!0}; M8Q=function(a){return(a=a.y5)&&a.showError?a.showError:!1}; Yw=function(a,l){return a.V(l)?!0:(a.fflags||"").includes(l+"=true")}; t8t=function(a){return a.V("html5_heartbeat_iff_heartbeat_params_filled")}; zxb=function(a,l){l.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);l.playback_progress_0s_url&&(a.FH=new Hld(l));if(l=l.video_masthead_ad_quartile_urls)a.NO=l.quartile_0_url,a.k5=l.quartile_25_url,a.TN=l.quartile_50_url,a.sD=l.quartile_75_url,a.SS=l.quartile_100_url,a.K8=l.quartile_0_urls,a.al=l.quartile_25_urls,a.nP=l.quartile_50_urls,a.eK=l.quartile_75_urls,a.md=l.quartile_100_urls}; KVp=function(a){var l={};a=g.c(a);for(var m=a.next();!m.done;m=a.next()){m=m.value;var T=m.split("=");T.length===2?l[T[0]]=T[1]:l[m]=!0}return l}; FV7=function(a){if(a){if(Hjz(a))return a;a=qDb(a);if(Hjz(a,!0))return a}return""}; g.eK3=function(a){return a.captionsLanguagePreference||a.UL.captionsLanguagePreference||g.tU(a,"yt:cc_default_lang")||a.UL.nR}; Un=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; g.Tj=function(a){var l;return a.CY||((l=a.suggestions)==null?void 0:l[0])||null}; g.Tl=function(a){return a.Rh&&(a.V("embeds_enable_pfp_always_unbranded")||a.UL.YV)}; g.Rp=function(a){var l,m;return!!((l=a.embeddedPlayerConfig)==null?0:(m=l.embeddedPlayerFlags)==null?0:m.enableMusicUx)}; FcH=function(a){return a.B||a.V("web_player_media_session_infinity")&&a.isLivePlayback}; Hi=function(a){return a.UL.j&&a.isPrivate}; g.bb=function(a){var l=a.Y(),m=g.qh(l),T=l.tN;(l.V("embeds_web_enable_iframe_api_send_full_embed_url")||l.V("embeds_web_enable_rcat_validation_in_havs")||l.V("embeds_enable_autoplay_and_visibility_signals"))&&g.BS(l)&&(T&&(m.thirdParty=Object.assign({},m.thirdParty,{embedUrl:T})),oI7(m,a));if(T=a.Cx)m.clickTracking={clickTrackingParams:T};else if(l.V("html5_log_missing_itct")){var y;T=new g.YH("Missing ITCT in InnerTubeContext",{isAd:a.isAd(),Xd8:(y=l.getWebPlayerContextConfig())==null?void 0:y.contextId}); g.kt(T)}y=m.client||{};T="EMBED";var R=JU(a);R==="leanback"?T="WATCH":l.V("gvi_channel_client_screen")&&R==="profilepage"?T="CHANNEL":a.rb?T="LIVE_MONITOR":R==="detailpage"?T="WATCH_FULL_SCREEN":R==="adunit"?T="ADUNIT":R==="sponsorshipsoffer"&&(T="UNKNOWN");y.clientScreen=T;if(l=a.kidsAppInfo)y.kidsAppInfo=JSON.parse(l);(T=a.XS)&&!l&&(y.kidsAppInfo={contentSettings:{ageUpMode:hKw[T]}});if(l=a.IP)y.unpluggedAppInfo={enableFilterMode:!0};(T=a.unpluggedFilterModeType)&&!l&&(y.unpluggedAppInfo={filterModeType:O33[T]}); if(l=a.nR)y.unpluggedLocationInfo=l;m.client=y;y=m.request||{};a.Ia&&(y.isPrefetch=!0);if(l=a.mdxEnvironment)y.mdxEnvironment=l;if(l=a.mdxControlMode)y.mdxControlMode=Kct[l];m.request=y;y=m.user||{};if(l=a.qj)y.credentialTransferTokens=[{token:l,scope:"VIDEO"}];if(l=a.Eg)y.delegatePurchases={oauthToken:l},y.kidsParent={oauthToken:l};m.user=y;if(y=a.contextParams)m.activePlayers=[{playerContextParams:y}];if(a=a.clientScreenNonce)m.clientScreenNonce=a;return m}; g.qh=function(a){var l=g.m0(),m=l.client||{};if(a.forcedExperiments){var T=a.forcedExperiments.split(","),y=[];T=g.c(T);for(var R=T.next();!R.done;R=T.next())y.push(Number(R.value));m.experimentIds=y}if(y=a.homeGroupInfo)m.homeGroupInfo=JSON.parse(y);if(y=a.getPlayerType())m.playerType=y;if(y=a.T.ctheme)m.theme=y;if(y=a.livingRoomAppMode)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomAppMode:y});y=a.deviceYear;a.V("html5_propagate_device_year")&&y&&(m.tvAppInfo=Object.assign({},m.tvAppInfo,{deviceYear:y})); if(y=a.livingRoomPoTokenId)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomPoTokenId:y});l.client=m;m=l.user||{};a.enableSafetyMode&&(m=Object.assign({},m,{enableSafetyMode:!0}));a.pageId&&(m=Object.assign({},m,{onBehalfOfUser:a.pageId}));l.user=m;m=a.tN;a.V("embeds_web_enable_iframe_api_send_full_embed_url")||a.V("embeds_web_enable_rcat_validation_in_havs")||a.V("embeds_enable_autoplay_and_visibility_signals")||!m||(l.thirdParty={embedUrl:m});return l}; fV3=function(a,l,m){var T=a.videoId,y=g.bb(a),R=a.Y(),H={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(zG()),referer:document.location.toString(),signatureTimestamp:20209};g.EC();a.isAutonav&&(H.autonav=!0);g.oi(0,141)&&(H.autonavState=g.oi(0,140)?"STATE_OFF":"STATE_ON");H.autoCaptionsDefaultOn=g.oi(0,66);p1d(a)&&(H.autoplay=!0);R.J&&a.cycToken&&(H.cycToken=a.cycToken);R.enablePrivacyFilter&&(H.enablePrivacyFilter=!0);a.isFling&&(H.fling=!0);var b=a.forceAdsUrl;if(b){var M={},d=[];b= b.split(",");b=g.c(b);for(var A=b.next();!A.done;A=b.next()){A=A.value;var P=A.split("|");P.length!==3||A.includes("=")||(P[0]="breaktype="+P[0],P[1]="offset="+P[1],P[2]="url="+P[2]);A={adtype:"video_ad"};P=g.c(P);for(var G=P.next();!G.done;G=P.next()){var V=g.c(G.value.split("="));G=V.next().value;V=R3H(V);A[G]=V.join("=")}P=A.url;G=A.presetad;V=A.viralresponseurl;var p=Number(A.campaignid);if(A.adtype==="in_display_ad")P&&(M.url=P),G&&(M.presetAd=G),V&&(M.viralAdResponseUrl=V),p&&(M.viralCampaignId= String(p));else if(A.adtype==="video_ad"){var L={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(A.offset)||0)}};if(A=zKH[A.breaktype])L.breakType=A;P&&(L.url=P);G&&(L.presetAd=G);V&&(L.viralAdResponseUrl=V);p&&(L.viralCampaignId=String(p));d.push(L)}}H.forceAdParameters={videoAds:d,inDisplayAd:M}}a.isInlinePlaybackNoAd&&(H.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(H.isLivingRoomDeeplink=!0);M=a.e2;if(M!=null){M={startWalltime:String(M)};if(d=a.Ek)M.manifestDuration=String(d||14400); H.liveContext=M}if(a.mutedAutoplay){H.mutedAutoplay=!0;M=R.getWebPlayerContextConfig();var N,e;(M==null?0:(N=M.embedsHostFlags)==null?0:N.allowMutedAutoplayDurationMode)&&(M==null?0:(e=M.embedsHostFlags)==null?0:e.allowMutedAutoplayDurationMode.includes(vRQ[a.mutedAutoplayDurationMode]))&&(H.mutedAutoplayDurationMode=vRQ[a.mutedAutoplayDurationMode])}if(a.Sd?0:a.Xe)H.splay=!0;N=a.vnd;N===5&&(H.vnd=N);N={};if(e=a.isMdxPlayback)N.triggeredByMdx=e;if(e=a.qF)N.skippableAdsSupported=e.split(",").includes("ska"); if(d=a.Rc){e=a.mp;M=[];d=g.c(xml(d));for(b=d.next();!b.done;b=d.next()){b=b.value;A=b.platform;b={applicationState:b.O7?"INACTIVE":"ACTIVE",clientFormFactor:$37[A]||"UNKNOWN_FORM_FACTOR",clientName:uM5[b.vk]||"UNKNOWN_INTERFACE",clientVersion:b.deviceVersion||"",platform:sh5[A]||"UNKNOWN_PLATFORM"};A={};if(e){P=void 0;try{P=JSON.parse(e)}catch(t){g.nU(t)}P&&(A={params:[{key:"ms",value:P.ms}]},P.advertising_id&&(A.advertisingId=P.advertising_id),P.limit_ad_tracking!==void 0&&P.limit_ad_tracking!== null&&(A.limitAdTracking=P.limit_ad_tracking),b.osName=P.os_name,b.userAgent=P.user_agent,b.windowHeightPoints=P.window_height_points,b.windowWidthPoints=P.window_width_points)}M.push({adSignalsInfo:A,remoteClient:b})}N.remoteContexts=M}e=a.sourceContainerPlaylistId;M=a.serializedMdxMetadata;if(e||M)d={},e&&(d.mdxPlaybackContainerInfo={sourceContainerPlaylistId:e}),M&&(d.serializedMdxMetadata=M),N.mdxPlaybackSourceContext=d;H.mdxContext=N;N=l.width;N>0&&(H.playerWidthPixels=Math.round(N));if(l=l.height)H.playerHeightPixels= Math.round(l);m!==0&&(H.vis=m);if(m=R.widgetReferrer)H.widgetReferrer=m.substring(0,128);g.vS(R)&&H&&(H.ancestorOrigins=R.ancestorOrigins);a.defaultActiveSourceVideoId&&(H.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});if(R=R.getWebPlayerContextConfig())H.encryptedHostFlags=R.encryptedHostFlags;T={videoId:T,context:y,playbackContext:{contentPlaybackContext:H}};a.reloadPlaybackParams&&(T.playbackContext.reloadPlaybackContext={reloadPlaybackParams:a.reloadPlaybackParams}); a.contentCheckOk&&(T.contentCheckOk=!0);if(y=a.clientPlaybackNonce)T.cpn=y;if(y=a.playerParams)T.params=y;if(y=a.playlistId)T.playlistId=y;a.racyCheckOk&&(T.racyCheckOk=!0);y=a.Y();if(H=y.embedConfig)T.serializedThirdPartyEmbedConfig=H;T.captionParams={};H=g.oi(g.EC(),65);a.deviceCaptionsOn!=null?T.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.aX(y)&&(T.captionParams.deviceCaptionsOn=H!=null?!H:!1);a.sW&&(T.captionParams.deviceCaptionsLangPref=a.sW);a.T5.length?T.captionParams.viewerSelectedCaptionLangs= a.T5:g.aX(y)&&(H=g.YV(),H==null?0:H.length)&&(T.captionParams.viewerSelectedCaptionLangs=H);H=a.fetchType==="onesie"&&a.V("html5_onesie_attach_po_token");R=a.fetchType!=="onesie"&&a.V("html5_non_onesie_attach_po_token");if(H||R)H=a.Y(),H.Xe&&(T.serviceIntegrityDimensions={},T.serviceIntegrityDimensions.poToken=H.Xe);y.V("fetch_att_independently")&&(T.attestationRequest={omitBotguardData:!0});T.playbackContext||(T.playbackContext={});T.playbackContext.devicePlaybackCapabilities=SYQ(a);T.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&a.Tu("noVp9",{});return T}; SYQ=function(a){var l=!(a==null?0:a.EW())&&(a==null?void 0:a.Fl())&&Ri(),m;if(!(m=a==null)){m=g.i9(a);a=a.Y().K;var T=MU("243");m=!(T&&L_(m,T,a,!0)===!0)}return{supportsVp9Encoding:!(m||l),supportXhr:RT}}; BTP=function(a,l){var m,T,y;return g.J(function(R){if(R.L==1)return m={context:g.qh(a.Y()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},T=g.R0(Jld),g.z(R,g.Ux(l,m,T),2);y=R.T;return R.return(y)})}; kYp=function(a,l,m){var T=g.PU(l.experiments,"bg_vm_reinit_threshold");(!IO||(0,g.E)()-IO>T)&&BTP(a,m).then(function(y){y&&(y=y.botguardData)&&g.Ea(y,l)},function(y){a.FO()||(y=zM(y),a.Tu("attf",y.details))})}; gf=function(a,l){g.k.call(this);this.app=a;this.state=l}; ib=function(a,l,m){a.state.T.hasOwnProperty(l)||Mh(a,l,m);a.state.B[l]=function(){return m.apply(a,g.Jz.apply(0,arguments))}; a.state.C.add(l)}; df=function(a,l,m){a.state.T.hasOwnProperty(l)||Mh(a,l,m);a.app.Y().J&&(a.state.J[l]=function(){return m.apply(a,g.Jz.apply(0,arguments))},a.state.C.add(l))}; Mh=function(a,l,m){a.state.T[l]=function(){return m.apply(a,g.Jz.apply(0,arguments))}}; g.j3=function(a,l,m){return a.state.T[l].apply(a.state.T,g.F(m))}; AB=function(){g.Ke.call(this);this.K=new Map}; Pi=function(){g.k.apply(this,arguments);this.element=null;this.C=new Set;this.B={};this.J={};this.T={};this.N=new Set;this.Z=new AB;this.L=new AB;this.j=new AB;this.K=new AB}; nRP=function(a,l,m){typeof a==="string"&&(a={mediaContentUrl:a,startSeconds:l,suggestedQuality:m});a:{if((l=a.mediaContentUrl)&&(l=/\/([ve]|embed)\/([^#?]+)/.exec(l))&&l[2]){l=l[2];break a}l=null}a.videoId=l;return Gl(a)}; Gl=function(a,l,m){if(typeof a==="string")return{videoId:a,startSeconds:l,suggestedQuality:m};l={};m=g.c(w1b);for(var T=m.next();!T.done;T=m.next())T=T.value,a[T]&&(l[T]=a[T]);return l}; IVQ=function(a,l,m,T){if(g.ms(a)&&!Array.isArray(a)){l="playlist list listType index startSeconds suggestedQuality".split(" ");m={};for(T=0;T32&&T.push("hfr");l.isHdr()&&T.push("hdr");l.primaries==="bt2020"&&T.push("wcg");m.video_quality_features=T}}if(a=a.getPlaylistId())m.list=a;return m}; ci=function(){Va.apply(this,arguments)}; Lq=function(a,l){var m={};if(a.app.Y().lT){a=g.c(x3H);for(var T=a.next();!T.done;T=a.next())T=T.value,l.hasOwnProperty(T)&&(m[T]=l[T]);if(l=m.qoe_cat)a="",typeof l==="string"&&l.length>0&&(a=l.split(",").filter(function(y){return D3R.includes(y)}).join(",")),m.qoe_cat=a; u25(m)}else for(a=g.c(X1d),T=a.next();!T.done;T=a.next())T=T.value,l.hasOwnProperty(T)&&(m[T]=l[T]);return m}; u25=function(a){var l=a.raw_player_response;if(!l){var m=a.player_response;m&&(l=JSON.parse(m))}delete a.player_response;delete a.raw_player_response;if(l){a.raw_player_response={streamingData:l.streamingData,playerConfig:l.playerConfig};var T;if((T=l.playbackTracking)==null?0:T.qoeUrl)a.raw_player_response=Object.assign({},a.raw_player_response,{playbackTracking:{qoeUrl:l.playbackTracking.qoeUrl}});var y;if((y=l.videoDetails)==null?0:y.videoId)a.raw_player_response=Object.assign({},a.raw_player_response, {videoDetails:{videoId:l.videoDetails.videoId}})}}; Nh=function(a,l,m){var T=a.app.V1(m);if(!T)return 0;a=T-a.app.getCurrentTime(m);return l-a}; U3P=function(a){var l=l===void 0?5:l;return a?YYw[a]||l:l}; g.Qa=function(){ci.apply(this,arguments)}; rll=function(a){Mh(a,"getInternalApiInterface",a.getInternalApiInterface);Mh(a,"addEventListener",a.RK);Mh(a,"removeEventListener",a.O$j);Mh(a,"cueVideoByPlayerVars",a.B2);Mh(a,"loadVideoByPlayerVars",a.rq);Mh(a,"preloadVideoByPlayerVars",a.gfz);Mh(a,"getAdState",a.getAdState);Mh(a,"sendAbandonmentPing",a.sendAbandonmentPing);Mh(a,"setLoopRange",a.setLoopRange);Mh(a,"getLoopRange",a.getLoopRange);Mh(a,"setAutonavState",a.setAutonavState);Mh(a,"seekTo",a.JaM);Mh(a,"seekBy",a.ktt);Mh(a,"seekToLiveHead", a.seekToLiveHead);Mh(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);Mh(a,"seekToStreamTime",a.seekToStreamTime);Mh(a,"startSeekCsiAction",a.startSeekCsiAction);Mh(a,"getStreamTimeOffset",a.getStreamTimeOffset);Mh(a,"getVideoData",a.iz);Mh(a,"setInlinePreview",a.setInlinePreview);Mh(a,"getAppState",a.getAppState);Mh(a,"updateLastActiveTime",a.updateLastActiveTime);Mh(a,"setBlackout",a.setBlackout);Mh(a,"setUserEngagement",a.setUserEngagement);Mh(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings); Mh(a,"getPresentingPlayerType",a.V6);Mh(a,"canPlayType",a.canPlayType);Mh(a,"updatePlaylist",a.updatePlaylist);Mh(a,"updateVideoData",a.updateVideoData);Mh(a,"updateEnvironmentData",a.updateEnvironmentData);Mh(a,"sendVideoStatsEngageEvent",a.YQg);Mh(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);Mh(a,"setSafetyMode",a.setSafetyMode);Mh(a,"isAtLiveHead",function(l){return a.isAtLiveHead(void 0,l)}); Mh(a,"getVideoAspectRatio",a.getVideoAspectRatio);Mh(a,"getPreferredQuality",a.getPreferredQuality);Mh(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);Mh(a,"setPlaybackQualityRange",a.Pmt);Mh(a,"onAdUxClicked",a.onAdUxClicked);Mh(a,"getFeedbackProductData",a.getFeedbackProductData);Mh(a,"getStoryboardFrame",a.getStoryboardFrame);Mh(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);Mh(a,"getStoryboardLevel",a.getStoryboardLevel);Mh(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels); Mh(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);Mh(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);Mh(a,"addCueRange",a.addCueRange);Mh(a,"addUtcCueRange",a.addUtcCueRange);Mh(a,"showAirplayPicker",a.showAirplayPicker);Mh(a,"dispatchReduxAction",a.dispatchReduxAction);Mh(a,"getPlayerResponse",a.I_);Mh(a,"getWatchNextResponse",a.o_);Mh(a,"getHeartbeatResponse",a.zn);Mh(a,"getCurrentTime",a.Ho);Mh(a,"getDuration",a.OE);Mh(a,"getPlayerState",a.getPlayerState);Mh(a,"getPlayerStateObject", a.lz);Mh(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);Mh(a,"getProgressState",a.getProgressState);Mh(a,"getVolume",a.getVolume);Mh(a,"setVolume",a.Qv);Mh(a,"isMuted",a.isMuted);Mh(a,"mute",a.cK);Mh(a,"unMute",a.U8);Mh(a,"loadModule",a.loadModule);Mh(a,"unloadModule",a.unloadModule);Mh(a,"getOption",a.AU);Mh(a,"getOptions",a.getOptions);Mh(a,"setOption",a.setOption);Mh(a,"loadVideoById",a.aM);Mh(a,"loadVideoByUrl",a.vy);Mh(a,"playVideo",a.qm);Mh(a,"loadPlaylist",a.loadPlaylist);Mh(a,"nextVideo", a.nextVideo);Mh(a,"previousVideo",a.previousVideo);Mh(a,"playVideoAt",a.playVideoAt);Mh(a,"getDebugText",a.getDebugText);Mh(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);Mh(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);Mh(a,"getVideoContentRect",a.getVideoContentRect);Mh(a,"setSqueezeback",a.setSqueezeback);Mh(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);Mh(a,"isSubtitlesOn",a.isSubtitlesOn);Mh(a,"reportPlaybackIssue",a.reportPlaybackIssue);Mh(a,"setAutonav",a.setAutonav);Mh(a, "isNotServable",a.isNotServable);Mh(a,"channelSubscribed",a.channelSubscribed);Mh(a,"channelUnsubscribed",a.channelUnsubscribed);Mh(a,"togglePictureInPicture",a.togglePictureInPicture);Mh(a,"supportsGaplessAudio",a.supportsGaplessAudio);Mh(a,"supportsGaplessShorts",a.supportsGaplessShorts);Mh(a,"enqueueVideoByPlayerVars",function(l){return void a.enqueueVideoByPlayerVars(l)}); Mh(a,"clearQueue",a.clearQueue);Mh(a,"getAudioTrack",a.Jf);Mh(a,"setAudioTrack",a.QhL);Mh(a,"getAvailableAudioTracks",a.Rz);Mh(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);Mh(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);Mh(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);Mh(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);Mh(a,"setMinimized",a.setMinimized);Mh(a,"setOverlayVisibility",a.setOverlayVisibility);Mh(a,"confirmYpcRental",a.confirmYpcRental); Mh(a,"queueNextVideo",a.queueNextVideo);Mh(a,"handleExternalCall",a.handleExternalCall);Mh(a,"logApiCall",a.logApiCall);Mh(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);Mh(a,"setScreenLayer",a.setScreenLayer);Mh(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);Mh(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);Mh(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);Mh(a,"syncVolume",a.syncVolume);Mh(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem); Mh(a,"openSettingsMenuItem",a.openSettingsMenuItem);Mh(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);Mh(a,"getVisibilityState",a.getVisibilityState);Mh(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);Mh(a,"isMutedByEmbedsMutedAutoplay",a.isMutedByEmbedsMutedAutoplay);Mh(a,"setGlobalCrop",a.setGlobalCrop);Mh(a,"setInternalSize",a.setInternalSize);Mh(a,"setFauxFullscreen",a.setFauxFullscreen);Mh(a,"setAppFullscreen",a.setAppFullscreen)}; e3=function(a,l,m){a=g.tB(a.b0(),l);return m?(m.addOnDisposeCallback(a),null):a}; g.F9=function(a,l,m){return a.app.Y().im?l:g.ph("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:l,SHORTCUT:m})}; ahl=function(a){a.b0().element.setAttribute("aria-live","polite")}; g.hB=function(a,l){g.Qa.call(this,a,l);rll(this);df(this,"addEventListener",this.Qz);df(this,"removeEventListener",this.qQg);df(this,"cueVideoByPlayerVars",this.bE);df(this,"loadVideoByPlayerVars",this.gq);df(this,"preloadVideoByPlayerVars",this.zuT);df(this,"loadVideoById",this.aM);df(this,"loadVideoByUrl",this.vy);df(this,"playVideo",this.qm);df(this,"loadPlaylist",this.loadPlaylist);df(this,"nextVideo",this.nextVideo);df(this,"previousVideo",this.previousVideo);df(this,"playVideoAt",this.playVideoAt); df(this,"getVideoData",this.Y3);df(this,"seekBy",this.W1M);df(this,"seekTo",this.pet);df(this,"showControls",this.showControls);df(this,"hideControls",this.hideControls);df(this,"cancelPlayback",this.cancelPlayback);df(this,"getProgressState",this.getProgressState);df(this,"isInline",this.isInline);df(this,"setInline",this.setInline);df(this,"setLoopVideo",this.setLoopVideo);df(this,"getLoopVideo",this.getLoopVideo);df(this,"getVideoContentRect",this.getVideoContentRect);df(this,"getVideoStats",this.Df); df(this,"getCurrentTime",this.M_);df(this,"getDuration",this.OE);df(this,"getPlayerState",this.Lj);df(this,"getVideoLoadedFraction",this.qK);df(this,"mute",this.cK);df(this,"unMute",this.U8);df(this,"setVolume",this.Qv);df(this,"loadModule",this.loadModule);df(this,"unloadModule",this.unloadModule);df(this,"getOption",this.AU);df(this,"getOptions",this.getOptions);df(this,"setOption",this.setOption);df(this,"addCueRange",this.addCueRange);df(this,"getDebugText",this.getDebugText);df(this,"getStoryboardFormat", this.getStoryboardFormat);df(this,"toggleFullscreen",this.toggleFullscreen);df(this,"isFullscreen",this.isFullscreen);df(this,"getPlayerSize",this.getPlayerSize);df(this,"toggleSubtitles",this.toggleSubtitles);this.app.Y().V("embeds_enable_move_set_center_crop_to_public")||df(this,"setCenterCrop",this.setCenterCrop);df(this,"setFauxFullscreen",this.setFauxFullscreen);df(this,"setSizeStyle",this.setSizeStyle);df(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);df(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); ERb(this)}; g.O2=function(a){a=a.iZ();var l=a.g7.get("endscreen");return l&&l.Kp()?!0:a.fP()}; g.Kq=function(a,l){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.Pz("onAutonavCancelled",l)}; g.vi=function(a){var l=zl(a.iZ());return a.app.uS&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&l&&l.AE()&&l.Dz()||!!a.getPlaylist()}; g.$7=function(a,l){g.j3(a,"addEmbedsConversionTrackingParams",[l])}; g.S3=function(a){return(a=g.s2(a.iZ()))?a.QL():{}}; g.lhw=function(a){a=(a=a.getVideoData())&&a.L;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"}; g.fq=function(a,l,m){a=a.cz().element;var T=$B(a.children,function(y){y=Number(y.getAttribute("data-layer"));return m-y||1}); T<0&&(T=-(T+1));Rj(a,l,T);l.setAttribute("data-layer",String(m))}; g.JB=function(a){var l=a.Y();if(!l.p5)return!1;var m=a.getVideoData();if(!m||a.getPresentingPlayerType()===3)return!1;var T=(!m.isLiveDefaultBroadcast||l.V("allow_poltergust_autoplay"))&&!Un(m);T=m.isLivePlayback&&(!l.V("allow_live_autoplay")||!T);var y=m.isLivePlayback&&l.V("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.AE();var R=m.hM&&m.hM.playerOverlays||null;R=!!(R&&R.playerOverlayRenderer&&R.playerOverlayRenderer.autoplay);R=m.Rh&&R;return!m.ypcPreview&&(!T||y)&&!g.pD(m.lT,"ypc")&& !a&&(!g.vS(l)||R)}; TP7=function(a,l){a=me7(a.app.CH().j);a=g.c(a);for(var m=a.next();!m.done;m=a.next()){m=m.value;var T=m.getAvailableAudioTracks(),y=null;T=g.c(T);for(var R=T.next();!R.done;R=T.next())if(R=R.value,R.getLanguageInfo().getId()===l){y=R;break}y&&m.Gd(y,!0)}}; Bi=function(){Ii.apply(this,arguments);this.requestHeaders={}}; nq=function(){k7||(k7=new Bi);return k7}; wf=function(a,l){l?a.requestHeaders.Authorization="Bearer "+l:delete a.requestHeaders.Authorization}; g.Ip=function(a){g.k.call(this);var l=this;this.vz=a;this.lM={Q6:function(){return l.vz}}}; g.Cq=function(a,l,m,T){T=T===void 0?!1:T;g.Z7.call(this,l);var y=this;this.D=a;this.jt=T;this.J=new g.BT(this);this.fade=new g.q4(this,m,!0,void 0,void 0,function(){y.I$()}); g.w(this,this.J);g.w(this,this.fade)}; E2=function(a){var l=a.D.getRootNode();return a.D.V("web_watch_pip")||a.D.V("web_shorts_pip")?IM(l):document}; yvb=function(a){a.L&&(document.activeElement&&g.qw(a.element,document.activeElement)&&a.L.focus(),a.L.setAttribute("aria-expanded","false"),a.L=void 0);g.$H(a.J);a.N=void 0}; op=function(a,l,m){a.qg()?a.KE():a.fR(l,m)}; x7=function(a,l,m,T){T=new g.x({U:"div",uT:["ytp-linked-account-popup-button"],Lx:T,G:{role:"button",tabindex:"0"}});l=new g.x({U:"div",S:"ytp-linked-account-popup",G:{role:"dialog","aria-modal":"true",tabindex:"-1"},X:[{U:"div",S:"ytp-linked-account-popup-title",Lx:l},{U:"div",S:"ytp-linked-account-popup-description",Lx:m},{U:"div",S:"ytp-linked-account-popup-buttons",X:[T]}]});g.Cq.call(this,a,{U:"div",S:"ytp-linked-account-popup-container",X:[l]},100);var y=this;this.dialog=l;g.w(this,this.dialog); T.listen("click",function(){y.KE()}); g.w(this,T);g.fq(this.D,this.element,4);this.hide()}; g.ub=function(a,l,m,T){g.Z7.call(this,a);this.priority=l;m&&g.Da(this,m);T&&this.MN(T)}; g.X9=function(a,l,m,T){a=a===void 0?{}:a;l=l===void 0?[]:l;m=m===void 0?!1:m;T=T===void 0?!1:T;l.push("ytp-menuitem");var y=a;"role"in y||(y.role="menuitem");m||(y=a,"tabindex"in y||(y.tabindex="0"));a={U:m?"a":"div",uT:l,G:a,X:[{U:"div",S:"ytp-menuitem-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-menuitem-label",Lx:"{{label}}"},{U:"div",S:"ytp-menuitem-content",Lx:"{{content}}"}]};T&&a.X.push({U:"div",S:"ytp-menuitem-secondary-icon",Lx:"{{secondaryIcon}}"});return a}; g.Da=function(a,l){a.updateValue("label",l)}; Y7=function(a){g.ub.call(this,g.X9({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var l=this;this.D=a;this.L=this.T=!1;this.Ob=a.mM();a.createServerVe(this.element,this,!0);this.W(this.D,"settingsMenuVisibilityChanged",function(m){l.kX(m)}); this.W(this.D,"videodatachange",this.j);this.listen("click",this.onClick);this.j()}; U2=function(a){return a?g.Lj(a):""}; rf=function(a){g.k.call(this);this.api=a}; am=function(a){rf.call(this,a);var l=this;Mh(a,"setAccountLinkState",function(m){l.setAccountLinkState(m)}); Mh(a,"updateAccountLinkingConfig",function(m){l.updateAccountLinkingConfig(m)}); a.addEventListener("videodatachange",function(m,T){l.onVideoDataChange(T)}); a.addEventListener("settingsMenuInitialized",function(){l.menuItem=new Y7(l.api);g.w(l,l.menuItem)})}; RI3=function(a){this.api=a;this.T={}}; ls=function(a,l,m,T){l in a.T||(m=new g.Rq(m,T,{id:l,priority:2,namespace:"appad"}),a.api.d7([m],1),a.T[l]=m)}; mg=function(a){rf.call(this,a);var l=this;this.events=new g.BT(this);g.w(this,this.events);this.T=new RI3(this.api);this.events.W(this.api,"legacyadtrackingpingreset",function(){l.T.T={}}); this.events.W(this.api,"legacyadtrackingpingchange",function(m){var T=l.T;ls(T,"part2viewed",1,0x8000000000000);ls(T,"engagedview",Math.max(1,m.vF*1E3),0x8000000000000);if(!m.isLivePlayback){var y=m.lengthSeconds*1E3;qf(m)&&T.api.V("html5_shorts_gapless_ads_duration_fix")&&(y=T.api.getProgressState().seekableEnd*1E3-m.xz);ls(T,"videoplaytime25",y*.25,y);ls(T,"videoplaytime50",y*.5,y);ls(T,"videoplaytime75",y*.75,y);ls(T,"videoplaytime100",y,0x8000000000000);ls(T,"conversionview",y,0x8000000000000); ls(T,"videoplaybackstart",1,y);ls(T,"videoplayback2s",2E3,y);ls(T,"videoplayback10s",1E4,y)}}); this.events.W(this.api,g.qm("appad"),this.L);this.events.W(this.api,g.bl("appad"),this.L)}; gVt=function(a,l,m){if(!(m in l))return!1;l=l[m];Array.isArray(l)||(l=[l]);l=g.c(l);for(m=l.next();!m.done;m=l.next()){m=m.value;var T={CPN:a.api.getVideoData().clientPlaybackNonce};m=g.fG(m,T);T=void 0;T=T===void 0?!1:T;(T=rM(aq(m,Hob),m,T,"Active View 3rd Party Integration URL"))||(T=void 0,T=T===void 0?!1:T,T=rM(aq(m,qa7),m,T,"Google/YouTube Brand Lift URL"));T||(T=void 0,T=T===void 0?!1:T,T=rM(aq(m,bot),m,T,"Nielsen OCR URL"));g.Ec(m,void 0,T)}return!0}; Tp=function(a,l){Mo3(a,l).then(function(m){g.Ec(l,void 0,void 0,m)})}; yW=function(a,l){l.forEach(function(m){Tp(a,m)})}; Mo3=function(a,l){return g.OF(a.api.Y())&&jn(l)&&d0(l)?g.b1(a.api.Y(),g.wn(a.api.getVideoData())).then(function(m){var T;m&&(T={Authorization:"Bearer "+m});return T},void 0):fy()}; io3=function(a){rf.call(this,a);this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"videoready",function(l){if(a.getPresentingPlayerType()===1){var m,T,y={playerDebugData:{pmlSignal:!!((m=l.getPlayerResponse())==null?0:(T=m.adPlacements)==null?0:T.some(function(R){var H;return R==null?void 0:(H=R.adPlacementRenderer)==null?void 0:H.renderer})), contentCpn:l.clientPlaybackNonce}};g.js("adsClientStateChange",y)}})}; Rm=function(a){g.x.call(this,{U:"button",uT:["ytp-button","ytp-autonav-toggle"],G:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},X:[{U:"div",S:"ytp-autonav-toggle-button-container",X:[{U:"div",S:"ytp-autonav-toggle-button",G:{"aria-checked":"true"}}]}]});this.D=a;this.L=[];this.T=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.W(a,"presentingplayerstatechange",this.mu);this.listen("click",this.onClick);this.D.Y().V("web_player_autonav_toggle_always_listen")&& de7(this);e3(a,this.element,this);this.mu()}; de7=function(a){a.L.push(a.W(a.D,"videodatachange",a.mu));a.L.push(a.W(a.D,"videoplayerreset",a.mu));a.L.push(a.W(a.D,"onPlaylistUpdate",a.mu));a.L.push(a.W(a.D,"autonavchange",a.wV))}; jOz=function(a){a.isChecked=a.isChecked;a.OL("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var l=a.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";a.updateValue("title",l);a.updateValue("label",l);a.D.n7()}; Avp=function(a){return a.D.Y().V("web_player_autonav_use_server_provided_state")&&l9(g.B(a.vY()))}; Pot=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"standardControlsInitialized",function(){var m=new Rm(a);g.w(l,m);a.ob(m,"RIGHT_CONTROLS_LEFT")})}; HR=function(a,l){g.ub.call(this,g.X9({role:"menuitemcheckbox","aria-checked":"false"}),l,a,{U:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; qH=function(a,l){a.checked=l;a.element.setAttribute("aria-checked",String(a.checked))}; GP3=function(a){var l=!a.Y().JV&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||l}; g.bs=function(a,l,m,T){var y=a.currentTarget;if((m===void 0||!m)&&g.Ku(a))return a.preventDefault(),!0;l.pauseVideo();a=g.B(y.getAttribute("href"));g.Dc(a,T,!0);return!1}; g.g5=function(a,l,m){if(YN(l.Y())&&l.getPresentingPlayerType()!==2){if(g.Ku(m))return l.isFullscreen()&&!l.Y().externalFullscreen&&l.toggleFullscreen(),m.preventDefault(),!0}else{var T=g.Ku(m);T&&l.pauseVideo();g.Dc(a,void 0,!0);T&&(g.uG(a),m.preventDefault())}return!1}; pcw=function(){var a=Vob.includes("es")?{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,G:{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"}}]}:{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,G:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a}; MH=function(){return{U:"div",S:"ytp-spinner-container",X:[{U:"div",S:"ytp-spinner-rotator",X:[{U:"div",S:"ytp-spinner-left",X:[{U:"div",S:"ytp-spinner-circle"}]},{U:"div",S:"ytp-spinner-right",X:[{U:"div",S:"ytp-spinner-circle"}]}]}]}}; is=function(a){if(document.createRange){var l=document.createRange();l&&(l.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(l))}}; Ao=function(a){var l=a.V("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica";HR.call(this,l,g.d5.SF);var m=this;this.D=a;this.T=!1;this.L=new g.aH(function(){g.dK(m.element,"ytp-menuitem-highlighted")},0); this.Ob=a.mM();this.setIcon({U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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.Z,this);this.listen(jv,this.j);g.w(this,this.L)}; PR=function(a){rf.call(this,a);var l=this;this.T=!1;a.addEventListener("settingsMenuInitialized",function(){Zot(l)}); a.addEventListener("highlightSettingsMenu",function(m){Zot(l);var T=l.menuItem;m==="menu_item_cinematic_lighting"&&(g.M$(T.element,"ytp-menuitem-highlighted"),g.M$(T.element,"ytp-menuitem-highlight-transition-enabled"),T.L.start())}); Mh(a,"updateCinematicSettings",function(m){l.updateCinematicSettings(m)})}; Zot=function(a){a.menuItem||(a.menuItem=new Ao(a.api),g.w(a,a.menuItem),a.menuItem.k8(a.T))}; W5R=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"applicationvideodatachange",function(m,T){T=T.clipConfig;m==="dataloaded"&&T&&T.startTimeMs!=null&&T.endTimeMs!=null&&l.api.setLoopRange({startTimeMs:Math.floor(Number(T.startTimeMs)),endTimeMs:Math.floor(Number(T.endTimeMs)),postId:T.postId,type:"clips"})})}; Gp=function(a){rf.call(this,a);this.events=new g.BT(a);g.w(this,this.events);Mh(a,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Mh(a,"setCreatorEndscreenHideButton",this.T.bind(this))}; VW=function(a,l,m,T){HR.call(this,"Volumen estable",g.d5.hn);g.M$(this.element,"ytp-drc-menu-item");this.Ob=a.mM();this.Z=l;this.T=m;this.hasDrcAudioTrack=T;a.addEventListener("videodatachange",this.L.bind(this));a.V("mta_drc_mutual_exclusion_removal")&&this.W(a,"onPlaybackAudioChange",this.L);a=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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.j,this);qH(this,a);this.Ob.mL(this)}; pO=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);a.V("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){l.menuItem||(l.menuItem=new VW(l.api,l.setDrcUserPreference.bind(l),l.getDrcUserPreference.bind(l),l.L.bind(l)),g.w(l,l.menuItem))}); Mh(this.api,"setDrcUserPreference",function(T){l.setDrcUserPreference(T)}); Mh(this.api,"getDrcUserPreference",function(){return l.getDrcUserPreference()}); Mh(this.api,"hasDrcAudioTrack",function(){return l.L()}); var m;this.T=(m=g.BW("yt-player-drc-pref"))!=null?m:1;this.updateEnvironmentData()}; ZP=function(a){rf.call(this,a);var l=this;this.T={};this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"videodatachange",function(){l.onVideoDataChange()}); this.events.W(a,g.qm("embargo"),function(m){l.api.JO(!0);var T,y=(T=l.T[m.id])!=null?T:[];T=g.c(y);for(y=T.next();!y.done;y=T.next()){var R=y.value;l.api.hideControls();l.api.jd("auth",2,"This video isn't available in your current playback area",hS({embargoed:1,id:m.id,idx:m.L,start:m.start}));y=void 0;(R=(y=R.embargo)==null?void 0:y.onTrigger)&&l.api.Pz("innertubeCommand",R)}})}; cvt=function(a,l){var m;return(m=l.onEnter)==null?void 0:m.some(a.L)}; L5b=function(a,l){l=g.c(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var T=void 0,y=Number((T=m.playbackPosition)==null?void 0:T.utcTimeMillis)/1E3,R=void 0;T=y+Number((R=m.duration)==null?void 0:R.seconds);R="embargo_"+y;a.api.addUtcCueRange(R,y,T,"embargo",!1);m.onEnter&&(a.T[R]=m.onEnter.filter(a.L))}}; WR=function(a){rf.call(this,a);var l=this;this.T=[];this.events=new g.BT(a);g.w(this,this.events);Mh(a,"addEmbedsConversionTrackingParams",function(m){l.api.Y().Et&&l.addEmbedsConversionTrackingParams(m)}); this.events.W(a,"veClickLogged",function(m){l.api.hasVe(m)&&(m=m.visualElement.getAsJspb(),m=Xb(m,2),l.T.push(m))})}; NPl=function(a){rf.call(this,a);Mh(a,"isEmbedsShortsMode",function(){return a.isEmbedsShortsMode()})}; QO7=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"initialvideodatacreated",function(m){So(sa(),16623);l.T=g.KU();var T=a.Y().L7&&!m.Sd;if(nK(m)&&T){So(sa(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(m.getWatchNextResponse()){var y,R=(y=m.getWatchNextResponse())==null?void 0:y.trackingParams;R&&Jv(R)}if(m.getPlayerResponse()){var H;(m=(H=m.getPlayerResponse())==null?void 0:H.trackingParams)&&Jv(m)}}else So(sa(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),m.getEmbeddedPlayerResponse()&&(H=(R=m.getEmbeddedPlayerResponse())==null?void 0:R.trackingParams)&&Jv(H)}); this.events.W(a,"loadvideo",function(){So(sa(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:l.T})}); this.events.W(a,"cuevideo",function(){So(sa(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:l.T})}); this.events.W(a,"largeplaybuttonclicked",function(m){So(sa(),27240,m.visualElement)}); this.events.W(a,"playlistnextbuttonclicked",function(m){So(sa(),27240,m.visualElement)}); this.events.W(a,"playlistprevbuttonclicked",function(m){So(sa(),27240,m.visualElement)}); this.events.W(a,"playlistautonextvideo",function(){So(sa(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; cR=function(a,l){g.k.call(this);var m=this;this.T=null;this.Z=l;l=[];for(var T=0;T<=100;T++)l.push(T/100);l={threshold:l,trackVisibility:!0,delay:1E3};(this.L=window.IntersectionObserver?new IntersectionObserver(function(y){y=y[y.length-1];typeof y.isVisible==="undefined"?document.visibilityState==="visible"&&y.isIntersecting&&y.intersectionRatio>0?m.T=y.intersectionRatio:document.visibilityState==="hidden"?m.T=0:m.T=null:m.T=y.isVisible?y.intersectionRatio:0;typeof m.Z==="function"&&m.Z(m.T)},l): null)&&this.L.observe(a)}; eIP=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"applicationInitialized",function(){to5(l)})}; to5=function(a){var l=a.api.getRootNode(),m,T=a.api.getWebPlayerContextConfig().embedsEnableEmc3ds?ZPp((m=l.parentElement)==null?void 0:m.parentElement)||l:l;a.T=new cR(T,function(y){y!=null&&(a.api.Y().cI=y,a.api.Y().yp="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.w(a,a.T);a.events.W(a.api,"videoStatsPingCreated",function(y){var R=a.T;R=R.T==null?null:Math.round(R.T*100)/100;y.inview=R!=null?R:void 0;R=a.api.getPlayerSize();if(R.height>0&&R.width>0){R=[Math.round(R.width),Math.round(R.height)];var H=g.r1();H>1&&R.push(H);R=R.join(":")}else R=void 0;y.size=R})}; F5z=function(a){var l;return((l=((a==null?void 0:a.messageRenderers)||[]).find(function(m){return!!m.timeCounterRenderer}))==null?void 0:l.timeCounterRenderer)||null}; LO=function(a){g.x.call(this,{U:"div",uT:["ytp-player-content","ytp-iv-player-content"],X:[{U:"div",S:"ytp-free-preview-countdown-timer",X:[{U:"span",Lx:"{{label}}"},{U:"span",S:"ytp-free-preview-countdown-timer-separator",Lx:"\u2022"},{U:"span",Lx:"{{duration}}"}]}]});this.api=a;this.T=null;this.Z=this.L=0;this.W(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Ood=function(a,l){a.T||(a.L=l,a.Z=(0,g.E)(),a.T=new g.rR(function(){hI7(a)},null),hI7(a))}; hI7=function(a){var l=Math,m=l.round,T=Math.min((0,g.E)()-a.Z,a.L);l=m.call(l,(a.L-T)/1E3);a.updateValue("duration",FO({seconds:l}));l<=0&&a.T?a.stopTimer():a.T&&a.T.start()}; K57=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"basechromeinitialized",function(){l.T=new LO(a);g.w(l,l.T);g.fq(a,l.T.element,4);l.T.hide()})}; NH=function(a){g.x.call(this,{U:"button",uT:["ytp-fullerscreen-edu-button","ytp-button"],X:[{U:"div",uT:["ytp-fullerscreen-edu-text"],Lx:"Desliza hacia abajo para ver m\u00e1s detalles"},{U:"div",uT:["ytp-fullerscreen-edu-chevron"],X:[{U:"svg",G:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{U:"path",G:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],G:{"data-priority":"2"}});this.bT=a;this.fade=new g.q4(this,250,void 0,100);this.L=this.T=!1;a.createClientVe(this.element, this,61214);g.w(this,this.fade);this.W(a,"fullscreentoggled",this.k8);this.W(a,"presentingplayerstatechange",this.k8);this.listen("click",this.onClick);this.k8()}; QW=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);Mh(this.api,"updateFullerscreenEduButtonSubtleModeState",function(T){l.updateFullerscreenEduButtonSubtleModeState(T)}); Mh(this.api,"updateFullerscreenEduButtonVisibility",function(T){l.updateFullerscreenEduButtonVisibility(T)}); var m=a.Y();a.V("external_fullscreen_with_edu")&&m.externalFullscreen&&YN(m)&&m.controlsType==="1"&&this.events.W(a,"standardControlsInitialized",function(){l.T=new NH(a);g.w(l,l.T);a.ob(l.T)})}; zId=function(a){g.x.call(this,{U:"div",S:"ytp-gated-actions-overlay",X:[{U:"div",S:"ytp-gated-actions-overlay-background",X:[{U:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{U:"button",uT:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],G:{"aria-label":"Cerrar"},X:[g.Ff()]},{U:"div",S:"ytp-gated-actions-overlay-bar",X:[{U:"div",S:"ytp-gated-actions-overlay-text-container",X:[{U:"div",S:"ytp-gated-actions-overlay-title",Lx:"{{title}}"},{U:"div",S:"ytp-gated-actions-overlay-subtitle", Lx:"{{subtitle}}"}]},{U:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var l=this;this.api=a;this.background=this.OL("ytp-gated-actions-overlay-background");this.L=this.OL("ytp-gated-actions-overlay-button-container");this.T=[];this.W(this.OL("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){l.api.Pz("onCloseMiniplayer")}); this.hide()}; $e7=function(a,l){var m=0;m=0;for(var T={};m y&&(y=b.width,R="url("+b.url+")")}m.background.style.backgroundImage=R;$e7(m,T.actionButtons||[]);m.show()}else m.hide()}); g.fq(this.api,this.T.element,4)}; to=function(a){rf.call(this,a);var l=this;df(this.api,"getSphericalProperties",function(){return l.getSphericalProperties()}); df(this.api,"setSphericalProperties",function(){l.setSphericalProperties.apply(l,g.F(g.Jz.apply(0,arguments)))}); ib(this.api,"getSphericalProperties",function(){return l.api.getPresentingPlayerType()===2?{}:l.getSphericalProperties()}); ib(this.api,"setSphericalProperties",function(){var m=g.Jz.apply(0,arguments);l.api.getPresentingPlayerType()!==2&&l.setSphericalProperties.apply(l,g.F(m))})}; ev=function(a){rf.call(this,a);Mh(a,"createClientVe",this.createClientVe.bind(this));Mh(a,"createServerVe",this.createServerVe.bind(this));Mh(a,"destroyVe",this.destroyVe.bind(this));Mh(a,"hasVe",this.hasVe.bind(this));Mh(a,"logClick",this.logClick.bind(this));Mh(a,"logVisibility",this.logVisibility.bind(this));Mh(a,"setTrackingParams",this.setTrackingParams.bind(this))}; FV=function(a,l,m,T){function y(H){var b=!(H.status!==204&&H.status!==200&&!H.response),M;H={succ:""+ +b,rc:H.status,lb:((M=H.response)==null?void 0:M.byteLength)||0,rt:((0,g.E)()-R).toFixed(),shost:g.Fl(a),trigger:l};Sa3(H,a);m&&m(H);T&&!b&&T(new O_("pathprobe.net",H))} var R=(0,g.E)();g.OZ(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:y,onTimeout:y})}; Sa3=function(a,l){var m;((m=window.performance)==null?0:m.getEntriesByName)&&(l=performance.getEntriesByName(l))&&l.length&&(l=l[0],a.pedns=(l.domainLookupEnd-l.startTime).toFixed(),a.pecon=(l.connectEnd-l.domainLookupEnd).toFixed(),a.perqs=(l.requestStart-l.connectEnd).toFixed(),fh5&&(a.perqsa=l.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Jv5=function(a){fh5=a}; ho=function(a,l){this.Og=a;this.policy=l;this.playbackRate=1}; BPb=function(a,l){var m=Math.min(2.5,LR(a.Og));a=O7(a);return l-m*a}; KO=function(a,l,m,T,y){y=y===void 0?!1:y;if(a.policy.wP)return Math.ceil(a.policy.wP*l);a.policy.GX&&(T=Math.abs(T));T/=a.playbackRate;var R=1/t$(a.Og);m=Math.max(.9*(T-3),LR(a.Og)+a.Og.L.T*R)/R*.8/(l+m);m=Math.min(m,T);a.policy.ph>0&&y&&(m=Math.max(m,a.policy.ph));return kPw(a,m,l)}; kPw=function(a,l,m){return Math.ceil(Math.max(Math.max(a.policy.M9,a.policy.xw*m),Math.min(Math.min(a.policy.AM,31*m),Math.ceil(l*m))))||a.policy.M9}; nVw=function(a,l,m){m=KO(a,l.T.info.Nj,m.T.info.Nj,0);var T=LR(a.Og)+m/t$(a.Og);return Math.max(T,T+a.policy.T5-m/l.T.info.Nj)}; O7=function(a){return t$(a.Og,!a.policy.T8,a.policy.FH)}; zp=function(a){return O7(a)/a.playbackRate}; vR=function(a,l,m){var T=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],y=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;l=g.c(l&&T.length>0?T:y);for(T=l.next();!T.done;T=l.next())T=T.value,y=T.minReadaheadMs||0,m<(T.minBandwidthBytesPerSec||0)||a>y&&(a=y);return a0&&(this.L=m.Pi)}; EVH=function(a,l,m,T,y){if(!T.info.K){if(m.length===0)m.push(T);else{var R;(a=(R=m.pop())==null?void 0:g.iw(R,T))?m.push(a):m.push(T)}return y}var H;(m=(H=m.pop())==null?void 0:g.iw(H,T))||(m=T);if(a.policy.Ug&&m.info.L)return a.logger&&a.logger({incompleteSegment:m.info.LR()}),y;T=a.LB(m);y=T.mN;T={clipId:T.clipId,formatId:T.formatId,startTimeMs:T.startTimeMs,durationMs:T.rA,wl:y,H$:y};y=wcd(l,T.startTimeMs);(m=y>=0?l[y]:null)&&Ihb(a,m,T)?T=m:(y+=1,l.splice(y,0,T));m=0;for(R=y+1;R=d+H.L?H=!0:A+H.L=0?a:-a-2}; oVl=function(a,l){if(a.VO){var m=a.VO.PY();if(m.length!==0){if(a.Z&&l){var T=a.Z,y=T.info.j;!iH(m,y)&&T.info.B>0&&(0,g.E)()-a.C<5E3&&(a.logger&&a.logger({dend:T.info.LR()}),m=Wu5(m,y,y+.01))}a.policy.a8&&a.logger&&a.logger({cbri:""+a.T});T=[];for(var R=y=0;y=H){var A=Object.assign({},a.yO[R]),P=a.Vg.Z.get(S4(a.yO[R].formatId)),G=Math.max(M,H);H=P.index.l$(G+a.L/ 1E3);M=P.index.getStartTime(H);var V=H+ +(Math.abs(M-G)>a.L/1E3);G=V+a.j;V=P.index.getStartTime(V)*1E3;R!==a.T||l?(A.wl=G,A.startTimeMs=V):(a.logger&&a.logger({pEvict:"1",og:A.startTimeMs,adj:M*1E3}),A.wl=H+a.j,A.startTimeMs=M*1E3);H=void 0;M=((H=a.Z)==null?void 0:H.info.duration)||11;R===a.T&&ba.L/1E3);H=M+a.j;P=P.index.E_(M)*1E3;A.H$=H;A.durationMs=P-A.startTimeMs;A.wl<=A.H$&&T.push(A)}da.L)return!1;if(Coz(a,l.formatId,m.formatId))return l.durationMs=Math.max(T,y)-l.startTimeMs,l.H$=Math.max(l.H$,m.H$),!0;if(Math.abs(l.startTimeMs-m.startTimeMs)<=a.L){if(l.durationMs>m.durationMs+a.L){a=l.formatId;var R=l.wl,H=l.H$;l.formatId=m.formatId;l.durationMs=m.durationMs;l.wl=m.wl;l.H$=m.H$;m.formatId=a;m.startTimeMs=y;m.durationMs=T-y;m.wl=R;m.H$=H;return!1}l.formatId=m.formatId;return!0}T> m.startTimeMs&&(l.durationMs=m.startTimeMs-l.startTimeMs,l.clipId===m.clipId&&(l.H$=m.wl-1));return!1}; Coz=function(a,l,m){return l.itag!==m.itag||l.xtags!==m.xtags?!1:a.Vg.Fl||l.lmt===m.lmt}; uOl=function(a,l,m){if(a.logger){for(var T=[],y=0;y=0&&BR(a.audioTrack,a.T)>=0&&R?((a.videoTrack.K||a.audioTrack.K)&&a.loader.Tu("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.K=!1,a.audioTrack.K=!1):T&&g.FS(function(){if(a.L||!a.policy.vF)w5(a);else{var H=l.startTime,b=l.duration;if(!a.policy.K){var M=m?a.videoTrack.K:a.audioTrack.K,d=a.videoTrack.C!==-1&&a.audioTrack.C!==-1,A=a.T>=H&&a.T432E3&&LZH(a.Vg);a.Z&&(y=a.Z,a.Z=0);g.FS(function(){a.policy.K||Im(a,y,102)}); a.loader.Tu("initManifestlessSync",{st:y,ost:y+a.loader.YX(),a:a.audioTrack.C,v:a.videoTrack.C});a.j&&(a.j.resolve(y+.1),a.j=null);a.policy.K&&Im(a,y,102)}}}; om=function(a,l){var m=this;this.qt=a;this.requestNumber=++Rlz;this.T=this.now();this.J=this.N=NaN;this.B=this.T;this.Z=this.SW=this.K=0;this.C=this.T;this.rb=this.lT=this.Kx=this.Ug=this.tN=this.qj=this.L=this.j=0;this.Ij=this.isActive=!1;this.uZ=this.yg=0;this.lM={MIT:function(){return m.EZ}}; this.Og=l.Og;this.snapshot=Uz7(this.Og);this.policy=this.Og.L;this.n2=!!l.n2;this.UJ=l.UJ;this.WV=l.WV||0;this.Ca=l.Ca||0;l.nM&&(this.hM=new jd);var T;this.EZ=(T=l.EZ)!=null?T:!1;this.n2||uZH(this.Og)}; H_7=function(a){a.Kx=Math.max(a.Kx,a.K-a.tN);a.lT=Math.max(a.lT,a.B-a.Ug);a.qj=0}; xL=function(a,l,m){Xsd(a.Og,l);a.hM&&(a.hM.add(Math.ceil(l)-Math.ceil(a.B)),a.hM.add(Math.max(0,Math.ceil(m/1024)-Math.ceil(a.K/1024))));var T=l-a.B,y=m-a.K;a.SW=y;a.rb=Math.max(a.rb,y/(T+.01)*1E3);a.B=l;a.K=m;a.qj&&m>a.qj&&H_7(a)}; DP=function(a,l){a.url=l;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; us=function(a,l){om.call(this,a,l);this.lZ=this.QO=!1;this.Cx=this.jt=Infinity;this.AM=NaN;this.ZR=!1;this.wb=NaN;this.wW=this.St=this.tM=0;this.Pb=l.Pb||1;this.IQ=l.IQ||this.Pb;this.kW=l.kW;this.mN=l.mN;this.OF=l.OF;qwP(this);this.pk(this.T);this.vF=(this.wb-this.T)/1E3}; b_d=function(a){var l=a.St||a.tM;return l?a.snapshot.delay+Math.min(a.Ca,(a.J-a.N)/1E3)+l:a.vF}; XV=function(a,l,m){if(!a.n2){l=Math.max(l,.01);var T=a.WV?Math.max(l,m/a.WV):l,y=a.Og.L.Z;y&&(T=l,a.WV&&(T=Math.max(l,m/a.WV*y)));Ze(a.Og,l,m,T)}}; gyR=function(a){return(a.C-a.T)/1E3}; qwP=function(a){a.AM=a.T+a.snapshot.delay*1E3;a.ZR=!1}; YL=function(a,l){if(a.kW&&a.mN!==void 0&&a.OF!==void 0){var m=Math,T=m.min,y=a.jt;var R=a.kW;var H=a.T;if(MRP(R,a.mN))R=l;else{var b=0;R.ZE&&(b=.2);R=H+(R.Ca+b)*1E3}a.jt=T.call(m,y,R);m=Math;T=m.min;y=a.Cx;R=a.kW;H=a.T;b=i_H(R,a.mN,a.OF);b!==2&&(l=b?l:H+R.Ca*1E3,R.ZE&&(l+=R.Ca*1E3));a.Cx=T.call(m,y,l);a.jt<=a.T?qwP(a):(a.AM=a.jt,a.ZR=!0)}}; dnb=function(a,l){if(a.iO(l,1)){var m=a.getUint8(l);m=m<128?1:m<192?2:m<224?3:m<240?4:5}else m=0;if(m<1||!a.iO(l,m))return[-1,l];if(m===1)a=a.getUint8(l++);else if(m===2)m=a.getUint8(l++),a=a.getUint8(l++),a=(m&63)+64*a;else if(m===3){m=a.getUint8(l++);var T=a.getUint8(l++);a=a.getUint8(l++);a=(m&31)+32*(T+256*a)}else if(m===4){m=a.getUint8(l++);T=a.getUint8(l++);var y=a.getUint8(l++);a=a.getUint8(l++);a=(m&15)+16*(T+256*(y+256*a))}else m=l+1,a.focus(m),tL(a,m,4)?a=eDH(a).getUint32(m-a.N9,!0):(T= a.getUint8(m+2)+256*a.getUint8(m+3),a=a.getUint8(m)+256*(a.getUint8(m+1)+256*T)),l+=5;return[a,l]}; U7=function(a){this.qt=a;this.T=new cX}; r5=function(a,l){this.info=a;this.callback=l;this.state=1;this.Bq=this.nQ=!1;this.U0=null}; jgt=function(a){return g.DN(a.info.gb,function(l){return l.type===3})}; av=function(a,l,m,T){var y=this;T=T===void 0?{}:T;this.policy=l;this.qt=m;this.status=0;this.T=new cX;this.L=0;this.FO=this.j=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(T.method||"GET",a);if(T.headers)for(a=T.headers,l=g.c(Object.keys(a)),m=l.next();!m.done;m=l.next())m=m.value,this.xhr.setRequestHeader(m,a[m]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return y.mF()}; this.xhr.onload=function(){return y.onDone()}; this.xhr.onerror=function(){return y.onError()}; this.xhr.fetch(function(R){y.T.append(R);y.L+=R.length;R=(0,g.E)();y.qt.mQ(R,y.L)},function(){},T.body||null)}; mT=function(){this.L=this.D0=0;this.T=Array.from({length:lm.length}).fill(0)}; APl=function(){}; Pcw=function(){this.startTimeMs=(0,g.E)();this.T=!1}; Gu5=function(){this.T=new APl}; VRp=function(a,l,m,T){T=T===void 0?1:T;m>=0&&(l in a.T||(a.T[l]=new mT),a.T[l].Qr(m,T))}; pxd=function(a,l,m,T,y){var R=(0,g.E)(),H=y?y(l):void 0,b;y=(b=H==null?void 0:H.D0)!=null?b:1;if(y!==0){var M;b=(M=H==null?void 0:H.profile)!=null?M:m;VRp(a,b,R-T,y)}return l}; Tz=function(a,l,m,T,y){if(l&&typeof l==="object"){var R=function(H){return pxd(a,H,m,T,y)}; if(Av(l))return l.then(R);if(jo(l))return Zh(l,R)}return pxd(a,l,m,T,y)}; Z_d=function(){}; W2Q=function(a,l){this.L=(new TextEncoder).encode(a);this.T=(new TextEncoder).encode(l)}; M_Q=function(a,l){var m,T,y;return g.J(function(R){if(R.L==1){if(!l)return R.return(l);m=yI.h7();T=new g.tE(a.L);return g.z(R,T.encrypt(l,a.T),2)}y=R.T;yI.Ga("woe",m,Math.ceil(l.byteLength/16));return R.return(y)})}; PMp=function(a,l){var m,T,y;return g.J(function(R){if(R.L==1){if(!l)return R.return(l);m=yI.h7();T=new g.tE(a.L);return g.z(R,T.decrypt(l,a.T),2)}y=R.T;yI.Ga("wod",m,Math.ceil(l.byteLength/16));return R.return(y)})}; L23=function(a,l){var m=this;this.T=a;this.qt=l;this.loaded=this.status=0;this.error="";a=BO(this.T.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.L=new cX;cPH(this).then(function(){m.qt.L2()},function(T){m.error=""+T||"unknown_err"; m.qt.L2()})}; cPH=function(a){var l,m,T,y,R,H,b,M,d,A,P,G,V,p,L;return g.J(function(N){if(N.L==1){a.status=200;l=a.T.get("docid");m=VP(a.T.get("fmtid")||"");T=a.T.get("lmt")||"0";y=+(a.T.get("csz")||0);if(!l||!m||!y)throw Error("Invalid local URL");a.T.get("ck")&&a.T.get("civ")&&(R=new W2Q(a.T.get("ck"),a.T.get("civ")));H=a.range;b=Math.floor(H.start/y);M=Math.floor(H.end/y);d=b}if(N.L!=5)return d<=M?g.z(N,GCl(l,m,T,d,R),5):N.iT(0);A=N.T;if(A===void 0)throw Error("invariant: data is undefined");P=d*y;G=(d+1)*y; V=Math.max(0,H.start-P);p=Math.min(H.end+1,G)-(V+P);L=new Uint8Array(A.buffer,V,p);a.L.append(L);a.loaded+=p;a.loaded=400?(a.lastError="net.badstatus",!0):(y===void 0?0:y)?(a.lastError="ump.spsrejectfailure",!0):m||T!==void 0&&T?!1:(a.lastError=l===204?"net.nocontent":"net.connect",!0)}; jV=function(a,l){if(a.policy.l7)return!1;var m=l.getResponseHeader("content-type"),T=l.Gc();a=!T||T<=a.policy.Ew;return(!l.kE()||!m||m.indexOf("text/plain")!==-1)&&a}; zlw=function(a,l){var m="";l=l.MQ();l.getLength()<=a.policy.Ew&&(m=K27(a,l.e$()));return m}; K27=function(a,l){var m=hL(l);return ll(m)?(a.logger.debug(function(){return"Redirecting to "+m}),m):""}; gW=function(a){return Oq(a.Z,vx(a.Z6.t$))}; vy3=function(a){var l=a.timing.Vh();l.shost=vx(a.Z6.t$);return l}; $nH=function(a,l){return(a==null?void 0:a.maxWidth)>(l==null?void 0:l.maxWidth)||(a==null?void 0:a.maxHeight)>(l==null?void 0:l.maxHeight)}; sgQ=function(a,l){for(var m=g.c(l.keys()),T=m.next();!T.done;T=m.next())if(T=l.get(T.value),T.length!==0){g.sX(T,function(b,M){return M.maxFramerate-b.maxFramerate}); for(var y=[T[0]],R=0,H=1;Ha.T||m.push(T)}return m}; At=function(a,l,m){var T=JP3[a]||[];m.V("html5_shorts_onesie_mismatched_fix")&&(T=Bup[a]||[]);l.push.apply(l,g.F(T));m.V("html5_early_media_for_drm")&&l.push.apply(l,g.F(ku7[a]||[]))}; oyt=function(a,l){var m=g.i9(a),T=a.Y(),y=T.K;T=T.V("html5_shorts_onesie_mismatched_fix");var R=a.gk();if(T){if(!y.L){if(R&&Pz)return Pz;if(Gz)return Gz}}else if(Gz&&!y.L)return Gz;var H=[],b=[],M={},d=VI.concat(nyQ);T&&(d=VI.concat(wx5));a.V("html5_early_media_for_drm")&&(d=d.concat(Ilp),a.V("allow_vp9_1080p_mq_enc")&&d.push(Cct));var A=[].concat(g.F(Eyl));a.V("html5_iamf_audio_onesie_fmt")&&A.push(["773"]);d=g.c(d);for(var P=d.next();!P.done;P=d.next()){var G=!1;P=g.c(P.value);for(var V=P.next();!V.done;V= P.next()){V=V.value;var p=MU(V,R&&T);if(p&&p.video&&!(Y9(p)&&!m.jt&&p.video.qualityOrdinal>m.hV)){var L=g.PU(a.Y().experiments,"html5_drm_byterate_soft_cap");L>0&&pr7(p)&&p.Nj>L||(G?(H.push(V),At(V,H,a)):(p=L_(m,p,y),p===!0?(G=!0,H.push(V),At(V,H,a)):M[V]=p))}}}A=g.c(A);for(d=A.next();!d.done;d=A.next())for(d=g.c(d.value),G=d.next();!G.done;G=d.next())if(G=G.value,(P=cVw(G))&&P.audio&&(a.V("html5_onesie_51_audio")||!U_(P)&&!rF(P)))if(P=L_(m,P,y),P===!0){b.push(G);At(G,b,a);break}else M[G]=P;m.L&& l("orfmts",M);if(T)return y.L&&(y.L=!1,Pz=Gz=void 0),R?Pz={video:H,audio:b}:Gz={video:H,audio:b};Gz={video:H,audio:b};y.L=!1;return Gz}; g.upl=function(a,l,m){var T=m.K,y=[],R=[],H=m.V("html5_shorts_onesie_mismatched_fix");a=a.gk();var b=VI.concat(nyQ);H&&(b=VI.concat(wx5));m.V("html5_early_media_for_drm")&&(b=b.concat(Ilp),m.V("allow_vp9_1080p_mq_enc")&&b.push(Cct));var M=[].concat(g.F(Eyl));m.V("html5_iamf_audio_onesie_fmt")&&M.push(["773"]);b=g.c(b);for(var d=b.next();!d.done;d=b.next()){d=g.c(d.value);for(var A=d.next();!A.done;A=d.next()){A=A.value;var P=MU(A,a&&H);if(P&&P.video){var G=g.PU(m.experiments,"html5_drm_byterate_soft_cap"); if(!(G>0&&pr7(P)&&P.Nj>G)&&L_(l,P,T)===!0){y.push({videoCodec:xnp[o_[A]],maxWidth:P.video.width,maxHeight:P.video.height,maxFramerate:P.video.fps});break}}}}H=g.c(M);for(a=H.next();!a.done;a=H.next())for(a=g.c(a.value),M=a.next();!M.done;M=a.next())if(M=M.value,(b=cVw(M))&&b.audio&&(m.V("html5_onesie_51_audio")||!U_(b)&&!rF(b))&&L_(l,b,T)===!0){R.push({audioCodec:Dn3[o_[M]],numChannels:b.audio.numChannels});break}return{videoFormatCapabilities:y,audioFormatCapabilities:R}}; ZB=function(a){var l={},m=a.vz,T=a.UL,y=m.getVideoData(),R=xV(0),H=m.getPlayerSize(),b=m.getVisibilityState();if(T.V("html5_enable_audio_quality_setting")){var M=g.PU(T.experiments,"html5_default_audio_quality_setting_lr"),d;l.MG=(d=XxP[M])!=null?d:0}R&&(l.Yo=R,l.lastManualDirection=fW3(),R=C_R()||0,R>0&&(R=(T.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.E)())-R,T.V("html5_use_date_now_for_local_storage")?R>0&&(l.timeSinceLastManualFormatSelectionMs=R):l.timeSinceLastManualFormatSelectionMs= R));R=T.V("html5_use_streamer_bandwidth_for_low_latency_live")&&y.isLowLatencyLiveStream;if(T.schedule.Ij&&!R){var A;R=T.V("html5_disable_bandwidth_cofactors_for_sabr_live")?!((A=a.l0)==null||!A.T8):!1;l.gm=t$(T.schedule,!R)}R=g.r1();M=g.wF.medium;d=Math.floor(M*16/9);A=y.gk()?M:d;M=y.gk()?d:M;d=H.width*R;H=H.height*R;T.V("html5_sabr_use_container_size")&&(H=m.uH(),d=H.width,H=H.height);l.jk=Math.max(d,A);l.Zb=Math.max(H,M);l.visibility=b;l.baN=zG();l.Gs=m.uu()*1E3;b=a.vz.lw(!0);var P,G,V,p,L,N;l.laN= {defaultPolicy:(b==null?void 0:(P=b.Ym)==null?void 0:P.T)||0,smooth:(b==null?void 0:(G=b.luK)==null?void 0:G.T)||0,visibility:(b==null?void 0:(V=b.Z7t)==null?void 0:V.T)||0,Tn:(b==null?void 0:(p=b.LF)==null?void 0:p.T)||0,performance:(b==null?void 0:(L=b.tq)==null?void 0:L.T)||0,speed:(b==null?void 0:(N=b.Zab)==null?void 0:N.T)||0};var e;l.iab=(b==null?void 0:(e=b.Oax)==null?void 0:e.T)||0;l.nh=a.nh&&a.nh.length>0?a.nh:[1,2];a.sabrLicenseConstraint&&(l.sabrLicenseConstraint=a.sabrLicenseConstraint); if(T.V("html5_onesie_media_capabilities")||T.V("html5_enable_server_format_filter"))l.fb=3;T.V("html5_onesie_audio_only_playback")&&b9(y)&&(l.fb=1);var t;((t=a.l0)==null?0:t.yg)&&a.m0&&(l.fb=l.fb===void 0?7:l.fb|4);P=y.OQ?y.OQ:g.i9(y);T.V("html5_onesie_media_capabilities")&&(l.mediaCapabilities=g.upl(y,P,T));var v;if((v=a.l0)==null?0:pg(v)){V=T.K;v=[];G=[];p=new Map;L=Array.from(V.T.values());L=g.c(L);for(N=L.next();!N.done;N=L.next())e=N.value,e.q2?G.push({audioCodec:Dn3[e.Gu],numChannels:e.numChannels, spatialCapabilityBitmask:Ywd[e.Gu]}):(t=xnp[e.Gu],N={videoCodec:t,maxWidth:e.maxWidth||0,maxHeight:e.maxHeight||0,maxFramerate:e.maxFramerate||0,is10BitSupported:e.Rv||!1},e.maxBitrateBps&&(N.maxBitrateBps=e.maxBitrateBps,b=MU(e.itag),H=void 0,((H=b)==null?0:H.video)&&L_(P,b,V)===!0&&(b=b.Nj*8,b>N.maxBitrateBps&&(N.maxBitrateBps=b))),e=t+"_"+e.Rv,t=p.get(e)||[],t.push(N),p.set(e,t));v=sgQ(v,p);V={};T.V("html5_ssff_denylist_opus_low")&&(V={itagDenylist:[249,350]});l.mediaCapabilities={videoFormatCapabilities:v, audioFormatCapabilities:G,hdrModeBitmask:3,perPlaybackAttributes:V}}var S;if((S=a.l0)==null?0:S.T){l.Ue=P.Ue;var n;l.hV=(n=a.l0)==null?void 0:n.hV}T.kN&&(l.P2=T.kN);l.Ck=a.Kb;l.Oy=a.Oy;l.ib=a.ib;l.pz=a.pz;if(T.V("html5_fix_time_since_last_seek_reporting")?a.Vf!==void 0:a.Vf)l.S0L=(0,g.E)()-a.Vf;a.isPrefetch&&T.V("html5_report_prefetch_requests")&&(l.isPrefetch=!0);RT||(l.E8u=!0);S=LR(T.schedule)*1E3;S>0&&(l.hc=S);var X;((X=a.l0)==null?0:X.K8)&&a.aD&&a.aD0?D:T.schedule.interruptions[0]||0);var yp;if((yp=a.l0)==null?0:yp.ZR)l.w0=a.w0;if(y.dl||T.yg)l.audioTrackId=y.dl||T.yg;if(En(y)&&!l.audioTrackId){var H5;a:{var ad,Md,U;yp=(ad=y.playerResponse)==null?void 0:(Md=ad.playerConfig)== null?void 0:(U=Md.compositeVideoConfig)==null?void 0:U.sourceConfigs;var Nd,hz;ad=(H5=y.playerResponse)==null?void 0:(Nd=H5.playerConfig)==null?void 0:(hz=Nd.compositeVideoConfig)==null?void 0:hz.defaultActiveSourceVideoId;if(yp&&ad)for(H5=g.c(yp),Nd=H5.next();!Nd.done;Nd=H5.next())if(Nd=Nd.value,Nd.videoId===ad&&Nd.audioTracks)for(Nd=g.c(Nd.audioTracks),hz=Nd.next();!hz.done;hz=Nd.next())if(hz=hz.value,hz.isDefaultForSource){H5=hz.id||"";break a}H5=""}l.audioTrackId=H5;y==null||y.Tu("misstrkchg", {"default":l.audioTrackId})}var EQ;if((EQ=a.l0)==null?0:EQ.zT)if(a=PG7())l.detailedNetworkType=Unt[a]||Unt.other;T.V("html5_enable_voice_boost")&&(l.jgO=T.sZ);return l}; Wz=function(a,l,m,T,y,R,H){var b={};l&&(b.SA=l);if(!a)return b;b.playbackCookie=m==null?void 0:m.playbackCookie;y&&(b.cw=y);b.Ki=[];b.fz=[];if(H==null?0:H.size)for(l=g.c(H.values()),m=l.next();!m.done;m=l.next())b.fz.push(m.value);if(a.sabrContextUpdates.size>0)for(l=g.c(a.sabrContextUpdates.values()),m=l.next();!m.done;m=l.next())rPt(b,m.value,T);Z3z(a)&&R&&rPt(b,R,T);a.Hg&&(b.aut=a.Hg);T=a.Y().T;b.clientInfo={clientName:aFH[T.c.toUpperCase()]||0};T.cbrand&&(b.clientInfo.deviceMake=T.cbrand);T.cmodel&& (b.clientInfo.deviceModel=T.cmodel);T.cver&&(b.clientInfo.clientVersion=T.cver);T.cos&&(b.clientInfo.osName=T.cos);T.cosver&&(b.clientInfo.osVersion=T.cosver);T=a.Y();T.V("html5_sabr_enable_server_xtag_selection")&&T.nR&&(b.clientInfo.hl=T.nR);a.bA&&(b.bA=a.bA);return b}; rPt=function(a,l,m){var T=l.type||0;(m==null?0:m.has(T))?a.fz.push(l):a.Ki.push(T)}; fO=function(a,l,m,T,y,R){var H=R===void 0?{}:R;var b=H.MM===void 0?[]:H.MM;var M=H.HQ===void 0?!1:H.HQ;var d=H.Yw===void 0?0:H.Yw;var A=H.poToken===void 0?"":H.poToken;var P=H.DC===void 0?void 0:H.DC;var G=H.vQ===void 0?"":H.vQ;var V=H.bk===void 0?0:H.bk;var p=H.Ku===void 0?new Uint8Array(0):H.Ku;var L=H.Gi===void 0?!1:H.Gi;R=H.WZ===void 0?0:H.WZ;H=H.SA===void 0?void 0:H.SA;r5.call(this,l,y);var N=this;this.policy=a;this.logger=new g.bw("dash/request");this.S1=this.At=0;this.W3=!1;this.u1=this.uY= null;this.IU=!1;this.Ku=this.bk=null;this.jh=this.wC=!1;this.BX=null;this.WZ=this.S5=0;this.bO=!1;this.lM={Rf:function(t){N.Rf(t)}, DdN:function(){return N.U0}, cXj:function(t){N.U0=t}, GC8:function(t){N.At=t}, zCL:function(t){N.CR.lastError=t}, wh:function(){return N.xhr}}; this.timing=new us(this,m);this.HQ=M;this.bk=V;this.Ku=p;this.Z6=g.Uq(this.info,this.policy,T);this.Z6.set("rn",this.j7().toString());this.Z6.set("rbuf",(d*1E3).toFixed().toString());this.HQ&&this.Z6.set("smb","1");this.policy.y5&&A&&this.Z6.set("pot",A);G&&this.Z6.set("bbs",G);this.policy.useUmp&&!$y(this.Z6.t$)&&(this.PV=new U7(this),this.Z6.set("ump","1"),this.Z6.set("srfvp","1"));if(a=this.policy.qd?this.policy.ZX&&!isNaN(this.info.OF)&&this.info.OF>this.policy.Pg?!1:!0:!1)l=null,this.policy.al&& this.policy.Tz?l=[1]:L&&(l=[]),l!=null&&(this.policy.l5&&l.push(2),this.Z6.set("defsel",l.join(",")));this.CR=new bm(this,this.policy,this.Z6,this.info.DR,this.timing,this.logger,T,P);this.MM=b||null;this.Bq=lFp(this);elp(this.CR);T=void 0;if(this.policy.mK||this.PV||this.policy.Kx)T={method:"POST"},b=(0,g.cz)([120,0]),P={},this.policy.QY&&H&&(H=Wz(void 0,H),P.uJ=H),this.policy.RW&&this.Ku&&(P.videoPlaybackUstreamerConfig=this.Ku),this.policy.Kx&&(H=this.info.j)&&Object.assign(P,H),Object.keys(P).length> 0?T.body=g.rs(P,g.qn):T.body=b;if(this.bk&&this.Ku){this.Z6.set("iwts","1");T={method:"POST"};H={pz:this.bk*1E3};var e;b=(e=this.info.j)==null?void 0:e.W7;e=g.rs({Wv:H,W7:b||void 0,videoPlaybackUstreamerConfig:this.Ku},g.qn);T.body=e}try{this.xhr=Rv(this.Z6,this.policy.B,this.timing,a,T),this.CR.L.start(),R&&(this.Yn=new g.aH(this.q5,R,this),this.Yn.start(R+(this.timing.Og.J.Xc()||0)*1E3)),this.policy.Ek&&DP(this.timing,this.eb()),this.logger.debug(function(){return"Sent, itag="+N.Z6.get("itag")+ " seg="+N.info.gb[0].mN+" range="+N.Z6.get("range")+" time="+Math.round(N.info.gb[0].j)+"-"+Math.round(g.jc(N.info.gb).C)+" rtp="+(N.timing.p4()-Date.now()).toFixed(0)}),g.FS(function(){})}catch(t){mAb(this,t,!0)}}; lFp=function(a){if(!(Y4(a.info)&&a.info.EZ()&&a.policy.Aa&&a.MM)||a.info.DR.Z>=2||xV()>0||!nI7())return!1;var l=a.Z6.get("aitags");if(!l)return!1;l=VP(l).split(",");for(var m=[],T=g.c(a.MM),y=T.next();!y.done;y=T.next())y=y.value,g.pD(l,y)&&m.push(y);if(!m.length)return!1;a.Z6.set("altitags",g.Gy(m.join(",")));return!0}; mAb=function(a,l,m){m=m===void 0?!1:m;g.kt(l);a.CR.lastError="player.exception";a.errorMessage=l.name+"_"+l.message;m?g.FS(function(){im(a.CR)}):im(a.CR)}; THR=function(a,l){a.timing.Ij=!0;a.xhr.kE()&&a.timing.Lp();if(a.policy.FU){var m;(m=a.Yn)==null||m.stop()}qT(a.U0,l,!1)}; yiP=function(a,l){a.info=l;if(a.U0){var m=a.U0;l=l.gb;(l.length!==m.gb.length||l.length0){l=g.c(l.gb);for(var m=l.next();!m.done;m=l.next()){var T=void 0;a+=((T=m.value.range)==null?void 0:T.length)||0}return a}if(l.qM.length>0)for(m=g.c(l.qM),T=m.next();!T.done;T=m.next())a+=T.value.Yt||0;return a+l.uX}; Oo=function(a,l){if(eV){var m=0;a=a.Sx.get(l);if(a==null||!a.x7)return 0;a=g.c(a.x7.values());for(l=a.next();!l.done;l=a.next())m+=l.value.data.getLength();return m}return((m=a.Sx.get(l))==null?void 0:m.He.getLength())||0}; Kg=function(a,l){a=a.Sx.get(l);if(eV){if(a==null||!a.z5)return!1;l=a.x7.size>0;return a.GG.length>0||l}return!(a==null||!a.z5)&&!(a==null||!a.He.getLength())}; M4b=function(a,l){var m=a.Sx.get(l),T=g4p(a,l),y=!T&&!!m.bytesReceived;if(eV){var R;if((R=a.Vg)==null?0:R.Fl){a=g.c(m.x7.values());for(l=a.next();!l.done;l=a.next())if(!l.value.FD)return!1;return y}}else if(R=a.C1(l),y&&a.T&&R!==void 0)return R;return(y||m.bytesReceived===T)&&m.Fq+Oo(a,l)===m.bytesReceived}; iN7=function(a,l,m){a.Sx.set(l,{He:new cX,Fq:0,bytesReceived:0,uX:0,FL:!1,gL:!1,C1:!1,q2:m,aA:[],gb:[],qM:[],z5:!1,x7:new Map,YG:new Map,GG:[]});a.logger.debug(function(){return"[initStream] formatId: "+l})}; dAt=function(a,l,m,T){m.gb.push.apply(m.gb,g.F(T));if(eV){m.YG.has(l)||m.YG.set(l,[]);var y;(y=m.YG.get(l)).push.apply(y,g.F(T))}else if(m.U0)for(a=g.c(T),l=a.next();!l.done;l=a.next())m.U0.gb.push(l.value);else{m.U0=new Hz(a.l0,[].concat(g.F(m.gb)));var R;((R=a.l0)==null?0:R.zz)&&g.w(a,m.U0)}}; jG5=function(a,l,m){var T,y=(T=a.Vg)==null?void 0:T.Z.get(l);if(!y)return[];if(m.rU){var R;return((R=y.L1(0,m.clipId))==null?void 0:R.gb)||[]}if(y.Cl()){var H=m.startMs,b=m.durationMs,M=1E3,d;if(((d=a.l0)==null?0:d.T)&&m.timeRange){var A;H=(A=m.timeRange.startTicks)!=null?A:-1;var P;b=(P=m.timeRange.Si)!=null?P:-1;var G;M=(G=m.timeRange.timescale)!=null?G:-1}if(m.cq<0||m.qH<0||b<0||H<0||m.Yt<0||M<0)return ht(a,l),[];a=k4(m.cq,m.Yt);l=m.Ls||0;return[new wH(3,y,a,"makeSliceInfosMediaBytes",m.qH-1,H/ M,b/M,l,a.length-l,void 0,m.Ry,m.clipId)]}if(m.qH<0)return ht(a,l),[];var V;return((V=a.Vg)==null?0:V.Fl)?(l=y.Y7,d=l*y.info.Nj,A=((H=a.l0)==null?0:H.Ug)?m.Ls:void 0,((M=a.l0)==null?0:M.d1)&&m.timeRange&&!A&&(b=m.timeRange.startTicks/m.timeRange.timescale),[new wH(3,y,void 0,"makeSliceInfosMediaBytes",m.qH,b,l,A,d,!0,m.Ry,m.clipId)]):[]}; Aiw=function(a,l,m){a.Vg=l;a.l0=m;l=g.c(a.Sx);for(m=l.next();!m.done;m=l.next()){var T=g.c(m.value);m=T.next().value;T=T.next().value;for(var y=g.c(T.aA),R=y.next();!R.done;R=y.next()){R=R.value;var H=jG5(a,m,R);dAt(a,R.dU,T,H)}}}; zz=function(a,l,m,T){a.logger.debug(function(){return"[addStreamData] formatId: "+m+",headerId: "+l+" bytes: "+T.getLength()}); (a=a.Sx.get(m))&&!a.gL&&(eV?(a.x7.has(l)||a.x7.set(l,{data:new cX,Vc:0,FD:!1}),L8(a.x7.get(l).data,T)):L8(a.He,T),a.bytesReceived+=T.getLength(),a.FL=!0)}; FR=function(a,l){a.logger.debug(function(){return"[closeStream] formatId: "+l}); var m=a.Sx.get(l);m&&!m.gL&&(m.gL=!0,m.Sq&&m.Sq(),PDd(a)&&a.j.Y2())}; PDd=function(a){a=g.c(a.Sx.values());for(var l=a.next();!l.done;l=a.next())if(!l.value.gL)return!1;return!0}; G$p=function(a){eV=a}; vz=function(a,l,m,T,y,R,H){g.k.call(this);this.policy=a;this.info=l;this.Vg=m;this.qt=y;this.logger=new g.bw("sabr");this.PV=new U7(this);this.VK=new QI(this);this.NA=new tt(this);this.state=1;this.Ak=!1;this.Qd=0;this.clipId="";this.w6=-1;this.hk=0;this.x4=-1;this.bO=this.X7=!1;this.y9=0;this.MJ=!1;this.policy.dI?this.NN=new Lg(this,R):this.NN=new us(this,R);this.Z6=this.policy.ZR?l.Vv:g.B(V4d(l,this.policy,T));this.Z6.set("rn",""+this.j7());this.Z6.set("alr","yes");Aiw(this.NA,m,a);this.CR=new bm(this, this.policy,this.Z6,l.DR,this.NN,this.logger,T,H,this.policy.enableServerDrivenRequestCancellation);elp(this.CR);var b;if((b=this.policy)==null?0:b.zz)g.w(this,this.NA),g.w(this,this.CR);a=l.L;l={method:"POST",body:a};a&&(this.hk=a.length);try{this.xhr=Rv(this.Z6,this.policy.B,this.NN,RT,l),this.policy.Ek&&DP(this.NN,this.eb()),this.CR.L.start()}catch(M){g.nU(M)}}; pOd=function(a){a.policy.Bh&&a.xb&&!a.MJ?a.MJ=!0:a.NN.Lp()}; ZN7=function(a,l){var m=-1,T=-1,y=-1,R;if((R=a.RQ)==null?0:R.items)for(a=g.c(a.RQ.items),R=a.next();!R.done;R=a.next())R=R.value,l=b,M=a.Vg.isManifestless&&a.policy.D9,H){var d;if(((d=a.T)==null?void 0:d.We.event)==="predictStart"&&a.T.mNa.C&&(a.C=NaN,a.B=NaN);a.T&&a.T.mN===l?Sq3(a,l,m,a.T,y):a.L===1&&fg(a,5,"noad")}; fFd=function(a,l,m,T,y){T.TD?fg(a,4,"cue"):(a.C=l,a.B=m,a.Tu("sdai",{joinad:a.L,sg:a.C,st:a.B.toFixed(3)}),a.N=Date.now(),fg(a,2,a.L===3?"staftpred":"join"),y.r3(T.We))}; Sq3=function(a,l,m,T,y){if(y&&T){var R=T.We,H=y.dc(R);R.event==="predictStart"&&(a.lT=l);a.Tu("sdai",{onqevt:R.event,sq:l,mt:m,gab:H,cst:R.startSecs,cueid:a.policy.NU&&(H||R.event==="start")?R.identifier:void 0},!0);if(H)if(R.event!=="predictStart")R.event==="start"&&a.lT===l-1&&a.Tu("sdai",{gabonstart:l}),fFd(a,l,m,T,y);else if(a.policy.Sd)fg(a,3,"predict");else{var b=l+Math.max(Math.ceil(-R.T/5E3),1);H=Math.floor(m-R.T/1E3);a.policy.Z?a.K=H:a.j=b;a.Tu("sdai",{onpred:m,estsq:b,estmt:H.toFixed(3)}); Jt(a.loader,H,H,b);a.N=Date.now();fg(a,3,"predict");y.r3(T.We)}else a.L===1?((b=a.Z)==null?0:b.fA(m))?(Jt(a.loader,m,m,l),fg(a,4,"sk2head")):fg(a,5,"nogab"):R.event==="predictStart"?a.policy.Z&&a.K>0?(m=Math.floor(m-R.T/1E3),a.K!==m&&a.Tu("sdai",{updateSt:m,old:a.K}),a.K=m):a.j>0&&(m=l+Math.max(Math.ceil(-R.T/5E3),1),a.j!==m&&(a.Tu("sdai",{updateSt:m,old:a.j}),a.j=m)):a.policy.Sd&&a.L===3&&fFd(a,l,m,T,y);var M,d;if(a.WN&&R.event==="start"&&((M=a.T)==null?void 0:M.We.event)!=="predictStart"&&((d=a.T)== null?void 0:d.mN)===l-1){var A;a.Tu("sdai",{ovlpst:(A=a.T)==null?void 0:A.We.event,sq:l})}}else a.Tu("sdai",{nulldec:1,sq:l,mt:m.toFixed(3),evt:(T==null?void 0:(R=T.We)==null?void 0:R.event)||"none"})}; BHt=function(a,l,m){if(a.policy.NH&&a.policy.Z)return!(a.L===1||a.L===2||!a.policy.Sd&&a.L===3&&m>=a.j);if(a.L===1||a.L===2)return!1;if(a.L!==0&&l===a.audioTrack){if(a.policy.Z)return Ji5(a.videoTrack,m)||Ji5(a.videoTrack,m+1);a=Bz(a.videoTrack);if(m>(a?a.mN:-1))return!1}return!0}; kz=function(a,l,m){return(m<0||m===a.C)&&!isNaN(a.B)?a.B:l}; zk7=function(a,l){if(a.T){var m=a.T.We.Da-(l.startTime+a.J-a.T.We.startSecs);m<=0||(m=new Xp(a.T.We.startSecs-(isNaN(a.J)?0:a.J),m,a.T.We.context,a.T.We.identifier,"stop",a.T.We.T+l.duration*1E3),a.Tu("cuepointdiscontinuity",{segNum:l.mN}),SV(a,m,l.mN))}}; fg=function(a,l,m){a.L!==l&&(a.Tu("sdai",{setsst:l,old:a.L,r:m}),a.L=l)}; ng=function(a,l,m,T){(T===void 0?0:T)?fg(a,1,"seek"):l>0&&Math.abs(l-m)>=5&&a.L===4&&fg(a,5,"sk2t")}; wW=function(a,l,m){this.audio=a;this.video=l;this.reason=m}; Iv=function(a,l,m){this.T=a;this.reason=l;this.token=m;this.videoId=void 0}; Cg=function(a,l,m){g.k.call(this);this.policy=a;this.j=l;this.Tu=m;this.Z=new Map;this.K=0;this.C=!1;this.T="";this.L=!1}; Eo=function(a,l,m){if(m===void 0?0:m)a.C=!0;++a.K;m=6E4*Math.pow(2,a.K);m=(0,g.E)()+m;a.Z.set(l.info.id,m)}; ov=function(a){for(var l=g.c(a.Z.entries()),m=l.next();!m.done;m=l.next()){var T=g.c(m.value);m=T.next().value;T=T.next().value;T<(0,g.E)()&&a.Z.delete(m)}return a.Z}; k$H=function(a){return a.C&&ov(a).size>0}; xz=function(a,l){a.T!==l&&(a.T=l,a.L=!0)}; n4P=function(a,l){var m;l&&(m=g.Pn(a.j.T,function(y){return y.id===l})); if(!m&&(m=g.Pn(a.j.T,function(y){var R;return!((R=y.WF)==null||!R.isDefault)}),l)){var T; a.Tu("iaf",{id:l,sid:(T=m)==null?void 0:T.id})}return m}; um=function(a,l,m,T,y,R){var H=this;R=R===void 0?[]:R;this.loader=a;this.jt=l;this.policy=m;this.Vg=T;this.C=y;this.rb=R;this.logger=new g.bw("dash/abr");this.T=xW;this.Z=this.B=null;this.N=-1;this.Cx=!1;this.nextVideo=this.L=null;this.j=[];this.St=new Set;this.Kx={};this.wb=new PS(1);this.J=0;this.tM=this.lT=this.Ij=!1;this.qj=0;this.Mj=!1;this.hM=new Set;this.AM=!1;this.lM={by:function(){DB(H)}}; this.K=new Cg(this.policy,y,function(b,M){H.loader.Tu(b,M)})}; o4b=function(a,l,m){Yz(a,l);l=n4P(a.K,m);m||l||(l=wO5(a));l=l||a.C.T[0];a.L=a.Vg.T[l.id];DB(a);a.B=a.L;IFQ(a);CDw(a);a.Z=a.nextVideo;a.B=a.L;return E4H(a)}; urp=function(a,l){if(xAz(a,l))return null;if(l.reason==="m"&&l.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+V3(l)}),Yz(a,l),a.J=a.j.length-1,DB(a),Uo(a),a.lT=a.lT||a.Z!==a.nextVideo,a.Z=a.nextVideo,new wW(a.L,a.Z,l.reason); l.reason==="r"&&(a.N=-1);Yz(a,l);Uo(a);if(l.reason==="r"&&a.nextVideo===a.Z)return new wW(a.L,a.nextVideo,l.reason);DAR(a);return null}; XOH=function(a,l,m){a.L=a.Vg.T[l];a.B=a.L;return new wW(a.B,a.Z,m?"t":"m")}; Yqp=function(a,l){if(l.info.video){if(a.Z!==l)return a.Z=l,E4H(a)}else a.tM=a.B!==l,a.B=l;return null}; UAt=function(a,l){if(l.T.info.video&&l.K){var m=(l.L+l.Z)/l.duration,T=l.T.info.Nj;m&&T&&(a.wb.wk(1,m/T),a.policy.L&&m/T>1.5&&a.loader.Tu("overshoot",{sq:l.mN,br:m,max:T}))}}; rW=function(a,l,m){Eo(a.K,l,m===void 0?!1:m);a.N=-1;Yz(a,a.T)}; riH=function(a,l){return new wW(a.B,a.Z,l||a.T.reason)}; DAR=function(a){if(a.Z&&a.nextVideo&&ae(a,a.Z.info)a.policy.hV,b=y<=a.policy.hV?Y9(T):DQ(T);if(!R||H||b)m[y]=T}return m}; Yz=function(a,l){a.T=l;var m=a.C.videoInfos;if(!a.T.isLocked()){var T=(0,g.E)();m=g.BN(m,function(b){if(b.Nj>this.policy.Nj)return!1;var M=this.Vg.T[b.id];return ov(this.K).get(b.id)>T?!1:M.DR.Z>4||M.C>4?(this.logger.debug(function(){return"Remove "+qi(b)+"; 4 load failures"}),!1):this.hM.has(+b.itag)?!1:!0},a); k$H(a.K)&&(m=g.BN(m,function(b){return b.video.width<=854&&b.video.height<=480}))}m.length||(m=a.C.videoInfos); var y=m;a.policy.Mi&&(y=lO3(a,y,l));y=g.BN(y,l.j,l);if(a.T.isLocked()&&a.K.T){var R=g.Pn(m,function(b){return b.id===a.K.T}); R?y=[R]:xz(a.K,"")}a.policy.Mi||(y=lO3(a,y,l));y.length||(y=[m[0]]);y.sort(function(b,M){return ae(a,b)-ae(a,M)}); l={};for(m=1;ml.JT.video.width?(g.Z9(y,m),m--):ae(a,l.hT)*a.policy.J>ae(a,l.JT)&&(g.Z9(y,m-1),m--);var H=y[y.length-1];a.Mj=!!a.Z&&!!a.Z.info&&a.Z.info.Gu!==H.Gu;a.logger.debug(function(){return"Constraint: "+V3(a.T)+", "+y.length+" fmts selectable, max selectable fmt: "+qi(H)}); a.j=y;a.St.clear();l=!1;for(m=0;m=1080&&(l=!0);mOP(a.policy,H,a.Vg.Fl)}; lO3=function(a,l,m){var T=m.reason==="m"||m.reason==="s";a.policy.Pr&&lz&&g.Nr&&(!T||m.T<1080)&&(l=l.filter(function(d){return d.video&&(!d.L||d.L.powerEfficient)})); if(l.length>0)if(oy()){var y=aOR(a,l);l=l.filter(function(d){return!!d&&!!d.video&&d.Gu===y[d.video.qualityOrdinal].Gu})}else{var R,H,b=(R=l[0])==null?void 0:(H=R.video)==null?void 0:H.qualityOrdinal; if(b){m=l.filter(function(d){return!!d&&!!d.video&&d.video.qualityOrdinal===b}); var M=aOR(a,m)[b].Gu;l=l.filter(function(d){return!!d&&!!d.video&&d.Gu===M})}}return l}; TSQ=function(a,l){for(var m=0;m+1T}; DB=function(a){if(!a.L||!a.policy.j&&!a.L.info.WF){var l=a.C.T;a.L&&(l=l.filter(function(T){return T.audio.T===a.L.info.audio.T}),l.length||(l=a.C.T)); a.L=a.Vg.T[l[0].id];if(l.length>1&&!a.policy.tM){if(!a.policy.Rt){var m=g.Pn(l,function(T){return T.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); m&&(a.L=a.Vg.T[m.id])}m=!1;if(m=a.policy.JW?!0:a.T.isLocked()?a.T.T<240:TSQ(a,a.L))a.L=a.Vg.T[g.jc(l).id]}}}; Uo=function(a){if(!a.nextVideo||!a.policy.j)if(a.T.isLocked())a.nextVideo=a.T.T<=360?a.Vg.T[a.j[0].id]:a.Vg.T[g.jc(a.j).id],a.logger.debug(function(){return"Select max fmt: "+qi(a.nextVideo.info)}); else{for(var l=Math.min(a.J,a.j.length-1),m=zp(a.jt),T=ae(a,a.L.info),y=m/a.policy.Ij-T;l>0&&!(ae(a,a.j[l])<=y);l--);for(var R=m/a.policy.J-T;l=R);l++);a.nextVideo=a.Vg.T[a.j[l].id];a.J!==l&&a.logger.info(function(){return"Adapt to: "+qi(a.nextVideo.info)+", bandwidth: "+m.toFixed(0)+", bandwidth to downgrade: "+y.toFixed(0)+", bandwidth to upgrade: "+R.toFixed(0)+", constraint: "+V3(a.T)}); a.J=l}}; IFQ=function(a){var l=a.policy.Ij,m=zp(a.jt),T=m/l-ae(a,a.L.info);l=g.V5(a.j,function(y){return ae(this,y)R?y=0:T[H]>a.buffered[H]&&(H===R-1?y=2:H===R-2&&T[H+1]>a.buffered[H+1]&&(y=3))}a.T.add(l<<3|(m&&4)|y);l=Math.ceil(a.track.uu()*1E3);a.T.add(l-a.K);a.K=l;if(y===1)for(a.T.add(R),H=l=0;H=2&&a.T.add(T[R- 1]-a.buffered[R-1]);m&&a.T.add(m);a.buffered=T}; yO=function(a,l,m){var T=this;this.policy=a;this.T=l;this.qj=m;this.j=this.L=0;this.yX=null;this.Ij=new Set;this.N=[];this.indexRange=this.initRange=null;this.J=new l6;this.lT=this.jt=!1;this.lM={jRz:function(){return T.Z}, kBO:function(){return T.chunkSize}, FeT:function(){return T.B}, Kej:function(){return T.C}}; (l=bSb(this))?(this.chunkSize=l.csz,this.Z=Math.floor(l.clen/l.csz),this.B=l.ck,this.C=l.civ):(this.chunkSize=a.Wr,this.Z=0,this.B=g.FH(16),this.C=g.FH(16));this.K=new Uint8Array(this.chunkSize);this.B&&this.C&&(this.crypto=new W2Q(this.B,this.C))}; bSb=function(a){if(a.policy.TW&&a.policy.RP)for(var l=g.c(a.policy.TW),m=l.next(),T={};!m.done;T={Ie:void 0,mq:void 0},m=l.next())if(m=g.br(m.value),T.Ie=+m.clen,T.mq=+m.csz,T.Ie>0&&T.mq>0&&a.policy.j===m.docid&&a.T.info.id===m.fmtid&&a.T.info.lastModified===+m.lmt)return a={},a.clen=T.Ie,a.csz=T.mq,a.ck=m.ck,a.civ=m.civ,a}; Re=function(a){return!!a.yX&&a.yX.Kh()}; iSz=function(a,l){if(!Re(a)&&!a.FO()){if(!(a.jt||(a.jt=!0,a.Z>0))){var m=HB(a);m=Je(a.policy.j,a.T.info,q5(a),m,a.policy.wb);bz(a,m)}if(l.info.type===1){if(a.yX){gU(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=k4(0,l.T.getLength())}else if(l.info.type===2)a.yX&&a.yX.type===1||gU(a,Error("Woffle: Index before init")),a.indexRange=k4(a.initRange.end+1,l.T.getLength());else if(l.info.type===3){if(!a.yX){gU(a,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(a.yX.type===3&&!Eq(a.yX,l.info)&&(a.N=[],l.info.mN!==oG(a.yX)||l.info.L!==0))return;if(l.info.K){m=g.c(a.N);for(var T=m.next();!T.done;T=m.next())giP(a,T.value);a.N=[]}else{a.N.push(l);a.yX=l.info;return}}else{gU(a,Error("Woffle: Unexpected slice type"));return}a.yX=l.info;giP(a,l);MPQ(a)}}; giP=function(a,l){var m=0,T=l.T.e$();if(a.j=T.length)return;if(m<0)throw Error("Missing data");a.j=a.Z;a.L=0}for(y={};m0){var H=T.getUint32(m+28);R+=H*16+4}var b=T.getUint32(m+R-4);try{var M=GUR(l.subarray(m+R,m+R+b));if(M!==null){var d=M;break a}}catch(A){}}m+=y}d=null;break a}catch(A){d=null;break a}d=void 0}if(d!=null)for(l=Il(Lv(d,7)),l==null||a.n5||(a.cryptoPeriodIndex=l),l=Il(Lv(d,10)),l!=null&&l>0&&!a.n5&&(a.T=l),d=OM(d, 2,v5d,void 0===f4l?2:4),d=g.c(d),T=d.next();!T.done;T=d.next())l=a.Z,m=l.push,T=iJ(T.value),T=g.Tf(T,4),m.call(l,T)}; pKw=function(a){return isNaN(a.cryptoPeriodIndex)?g.Tf(a.initData):""+a.cryptoPeriodIndex}; dU=function(a,l,m){var T=m===void 0?{}:m;m=T.videoDuration===void 0?0:T.videoDuration;var y=T.zO===void 0?void 0:T.zO;T=T.vK===void 0?!1:T.vK;this.videoId=a;this.status=l;this.videoDuration=m;this.zO=y;this.vK=T}; ZSH=function(a,l,m,T,y){this.videoId=a;this.nA=l;this.L=m;this.bytesDownloaded=T;this.T=y}; jZ=function(a){this.T=a;this.offset=0}; A2=function(a){if(a.offset>=a.T.getLength())throw Error();return a.T.getUint8(a.offset++)}; WYt=function(a,l){l=l===void 0?!1:l;var m=A2(a);if(m===1){l=-1;for(m=0;m<7;m++){var T=A2(a);l===-1&&T!==255&&(l=0);l>-1&&(l=l*256+T)}return l}T=128;for(var y=0;y<6&&T>m;y++)m=m*256+A2(a),T*=128;return l?m:m-T}; c8b=function(a){try{var l=WYt(a,!0),m=WYt(a,!1);return{id:l,size:m}}catch(T){return{id:-1,size:-1}}}; LYl=function(a){for(var l=new jZ(a),m=-1,T=0,y=0;!T||!y;){var R=c8b(l),H=R.id;R=R.size;if(H<0)return;if(H===176){if(R!==2)return;T=l.qE()}else if(H===186){if(R!==2)return;y=l.qE()}H===374648427?m=l.qE()+R:H!==408125543&&H!==174&&H!==224&&l.skip(R)}l=e2(a,0,m);m=new DataView(l.buffer);m.setUint16(T,3840);m.setUint16(y,2160);T=new cX([l]);L8(T,a);return T}; NS3=function(a,l,m){var T=this;this.loader=a;this.policy=l;this.C=m;this.logger=new g.bw("dash");this.L=[];this.T=null;this.jt=-1;this.N=0;this.hM=NaN;this.Ij=0;this.Z=NaN;this.J=this.Cx=0;this.Mj=-1;this.Kx=this.K=this.j=this.qj=null;this.wb=this.tM=NaN;this.B=this.lT=this.St=this.rb=null;this.yg=!1;this.AM=this.timestampOffset=0;this.lM={BT:function(){return T.L}}; if(this.policy.j){var y=this.C,R=this.policy.j;this.policy.wb&&a.Tu("atv",{ap:this.policy.wb});this.B=new yO(this.policy,y,function(H,b,M){PB(a,new dU(T.policy.j,2,{zO:new ZSH(R,H,y.info,b,M)}))}); this.B.J.promise.then(function(H){T.B=null;H===1?PB(a,new dU(T.policy.j,H)):T.loader.Tu("offlineerr",{status:H.toString()})},function(H){var b=(H.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); H instanceof M5&&!H.T?(T.logger.info(function(){return"Assertion failed: "+b}),T.loader.Tu("offlinenwerr",{em:b}),Gq(T),PB(a,new dU(T.policy.j,4))):(T.logger.info(function(){return"Failed to write to disk: "+b}),T.loader.Tu("dldbwerr",{em:b}),Gq(T),PB(a,new dU(T.policy.j,4,{vK:!0})))})}}; QbQ=function(a){return a.L.length?a.L[0]:null}; tP7=function(a,l){return a.L.some(function(m){return m.info.mN===l})}; KY7=function(a,l,m,T){T=T===void 0?0:T;if(a.K){var y=a.K.L+a.K.Z;if(m.info.L>0)if(m.info.mN===a.K.mN&&m.info.L=0&&a.K.mN>=0&&!Eq(a.K,m.info))throw new g.YH("improper_continuation",a.K.LR(),m.info.LR());HT5(a.K,m.info)||VO(a,"d")}else if(m.info.L>0)throw new g.YH("continuation_of_null",m.info.LR());a.K=m.info;a.C=m.info.T;if(m.info.L===0){if(a.T)if(!a.loader.isOffline()||a.policy.Mg)a.loader.Tu("slice_not_fully_processed", {buffered:a.T.info.LR(),push:m.info.LR()});else throw new g.YH("slice_not_fully_processed",a.T.info.LR(),m.info.LR());pH(a);a.Cx=T}else{if(a.Cx&&T&&a.Cx!==T)throw a=new g.YH("lmt_mismatch",m.info.mN,a.Cx,T),a.level="WARNING",a;!m.info.T.Cl()&&a.j&&(T=m.info,y=a.j.w6,T.J="updateWithEmsg",T.mN=y)}if(a.T){T=g.iw(a.T,m);if(!T)throw new g.YH("failed_to_merge",a.T.info.LR(),m.info.LR());a.T=T}else a.T=m;a:{m=g.ay(a.T.info.T.info);if(a.T.info.type!==3){if(!a.T.info.K)break a;a.T.info.type===6?eed(a,l,a.T): FYd(a,a.T);a.T=null}for(;a.T;){T=a.T.T.getLength();if(a.jt<=0&&a.N===0){var R=a.T.T,H=-1;y=-1;if(m){for(var b=0;b+80))break;if(P!==408125543)if(P===524531317)b=!0,A>=0&&(y=R.qE()+A,M=!0);else{if(b&&(P===160||P===163)&&(H<0&&(H=d),M))break;P===163&&(H=Math.max(0,H),y=R.qE()+A);if(P===160){H<0&&(y=H=R.qE()+ A);break}R.skip(A)}}H<0&&(y=-1)}if(H<0)break;a.jt=H;a.N=y-H}if(a.jt>T)break;a.jt?(T=hed(a,a.jt),T.K&&OSQ(a,T),eed(a,l,T),Z3(a,T),a.jt=0):a.N&&(T=hed(a,a.N<0?Infinity:a.N),a.N-=T.T.getLength(),Z3(a,T))}}a.T&&a.T.info.K&&(Z3(a,a.T),a.T=null)}; FYd=function(a,l){!l.info.T.Cl()&&l.info.L===0&&(g.ay(l.info.T.info)||l.info.T.info.n5())&&wJ7(l);if(l.info.type===1)try{OSQ(a,l),ze7(a,l)}catch(y){g.kt(y);var m=x4(l.info);m.hms="1";a.loader.handleError("fmt.unparseable",m||{},1)}m=l.info.T;m.MY(l);a.B&&iSz(a.B,l);if(m.Du()&&a.policy.T)a:{a=a.loader.Vg;l=l.info.clipId;m=g.mH(m.info,a.Fl);if(l){var T=S4({itag:m.itag,lmt:a.Fl?0:m.lmt||0,xtags:m.xtags});if(a.Mj[T])break a;a.Mj[T]=l}a.tM.push(m)}}; al7=function(a,l,m){if(a.L.length!==0&&(m||a.L.some(function(R){return R.info.j=cB(H)+b):l=a.getDuration()>=H.getDuration(),l=!l;l&&sbw(m)&&(l=a.qj,WB?(b=kRb(m),H=1/b,b=cB(a,b),l=cB(l)+H-b):l=l.getDuration()- a.getDuration(),l=1+l/m.info.duration,s_l(m.Iu(),l))}else{H=!1;a.j||(wJ7(m),m.L&&(a.j=m.L,H=!0,R=m.info,T=m.L.w6,R.J="updateWithEmsg",R.mN=T,R=m.L,R.Kh&&(T=a.C.index,T.L=!R.Kh,T.Z="emsg"),R=m.info.T.info,T=m.Iu(),g.ay(R)?gH(T,1701671783):R.n5()&&VN([408125543],307544935,T)));a:if((R=A8(m,a.policy.QO))&&nMQ(m))b=Sj7(a,m),a.J+=b,R-=b,a.Ij+=R,a.Z=a.policy.P4?a.Z+R:NaN;else{if(a.policy.qr){if(T=M=a.loader.hK(g.dS(m),1),a.Z>=0&&m.info.type!==6){if(a.policy.P4&&isNaN(a.tM)){g.nU(new g.YH("Missing duration while processing previous chunk", m.info.LR()));a.loader.isOffline()&&!a.policy.Mg||fOl(a,m,T);VO(a,"m");break a}var d=M-a.Z,A=d-a.J,P=m.info.mN,G=a.Kx?a.Kx.mN:-1,V=a.wb,p=a.tM,L=a.policy.l3&&d>a.policy.l3,N=Math.abs(A)>10,e=Math.abs(a.Z-T)<1E-7;if(Math.abs(A)>1E-4){a.AM+=1;var t=(y=a.j)==null?void 0:ru(y);y={audio:""+ +a.q2(),sq:P.toFixed(),sliceStart:M,lastSq:G.toFixed(),lastSliceStart:V,lastSliceDuration:p,totalDrift:(d*1E3).toFixed(),segDrift:(A*1E3).toFixed(),skipRewrite:""+ +(L||N)};if(t==null?0:t.length)y.adCpn=t[0];a.loader.handleError("qoe.avsync", y);a.Mj=P}L||N||e||(T=a.Z);y=Sj7(a,m,M);R-=y;a.J=d+y;a.policy.L&&(A&&!e||y)&&(d=(b=a.j)==null?void 0:ru(b),a.loader.Tu("discontinuityRewrite",{adCpn:(d==null?0:d.length)?d.join("."):"",itag:m.info.T.info.itag,sq:m.info.mN,originalStartTime:M,rewrittenStartTime:T,startTimeAdjustment:T-M,segDrift:(A*1E3).toFixed(),originalDuration:R+y,rewrittenDuration:R,durationAdjustment:y}))}}else T=isNaN(a.Z)?m.info.startTime:a.Z;fOl(a,m,T)&&(a.Ij+=R,a.Z=T+R,a.policy.I9&&a.AM>=a.policy.I9&&(a.AM=0,a.loader.Oe({resetForRewrites:"count"})))}a.Kx= m.info;a.tM=jP(m);m.Z>=0&&(a.wb=m.Z);if(H&&a.j){H=J8p(a,!0);DF(m.info,H);a.T&&DF(a.T.info,H);l=g.c(l);for(b=l.next();!b.done;b=l.next())b=b.value,y=void 0,a.policy.K&&b.mN!==((y=a.j)==null?void 0:y.w6)||DF(b,H);(m.info.K||a.T&&a.T.info.K)&&m.info.type!==6||(a.lT=H,a.policy.Z?(l=BSR(a.j),a.loader.e_(a.C,H,l)):(l=a.loader,l.Vg.isManifestless&&kUz(l,H,null,!!a.C.info.video)),a.policy.Xe||niP(a))}}ze7(a,m);a.timestampOffset&&Ju7(m,a.timestampOffset)}; Z3=function(a,l){if(l.info.K){a.rb=l.info;if(a.j){var m=a.j,T=J8p(a,!1);m=BSR(m);a.loader.e_(a.C,T,m);a.lT||a.policy.Xe||niP(a);a.lT=null}pH(a)}a.B&&iSz(a.B,l);if(T=a.jm())if(T=g.iw(T,l,a.policy.t7,a.policy.xN)){a.L.pop();a.L.push(T);return}a.L.push(l)}; BSR=function(a){if(a.TD()){var l=a.data["Stitched-Video-Id"]?a.data["Stitched-Video-Id"].split(",").slice(0,-1):[],m=ru(a),T=[];if(a.data["Stitched-Video-Duration-Us"])for(var y=g.c(a.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),R=y.next();!R.done;R=y.next())T.push((Number(R.value)||0)/1E6);y=[];if(a.data["Stitched-Video-Start-Frame-Index"]){R=g.c(a.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var H=R.next();!H.done;H=R.next())y.push(Number(H.value)||0)}y=[]; if(a.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(R=g.c(a.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),H=R.next();!H.done;H=R.next())y.push((Number(H.value)||0)/1E6);a=new Pw7(l,m,T,y,g.Klz(a),g.zSl(a))}else a=null;return a}; pH=function(a){a.T=null;a.jt=-1;a.N=0;a.j=null;a.hM=NaN;a.Ij=0;a.lT=null}; VO=function(a,l){l={rst4disc:l,cd:a.J.toFixed(3),sq:a.Kx?a.Kx.mN:-1};a.Z=NaN;a.J=0;a.Mj=-1;a.Kx=null;a.wb=NaN;a.tM=NaN;a.St=null;a.loader.Tu("mdstm",l)}; ze7=function(a,l){if(a.isDrm()){if(l.info.T.info.n5()){var m=new iD(l.Iu());if(j4(m,[408125543,374648427,174,28032,25152,20533,18402])){var T=G$(m,!0);m=T!==16?null:cO(m,T)}else m=null;T="webm"}else l.info.N=jbl(l.Iu()),m=A87(l.info.N),T="cenc";m&&m.length&&(m=new iz(m,T),a.policy.gD&&g.ay(l.info.T.info)&&(T=n9Q(l.Iu()))&&(m.L=T),m.n5=l.info.T.info.n5(),l.L&&l.L.cryptoPeriodIndex&&(m.cryptoPeriodIndex=l.L.cryptoPeriodIndex),l.L&&l.L.L&&(m.T=l.L.L),a.loader.O6(m))}}; niP=function(a){var l=a.j,m=hSR(l);m&&(m.startSecs+=a.hM,a.loader.QG(a.C,m,l.w6,l.TD()))}; J8p=function(a,l){var m,T=a.j;if(m=hSR(T))m.startSecs+=a.hM;return new Bx(T.w6,a.hM,l?T.Y7:a.Ij,T.ingestionTime,"sq/"+T.w6,void 0,void 0,l,m)}; fOl=function(a,l,m){if(!fg5(l,m))return l=x4(l.info),l.smst="1",a.loader.handleError("fmt.unparseable",l||{},1),!1;isNaN(a.hM)&&(a.hM=m);return!0}; Sj7=function(a,l,m){var T=0;if(l.info.T.info.n5()&&!nMQ(l))return 0;if(a.qj&&!a.q2()){var y=0;m&&g.ay(l.info.T.info)?y=m-a.Z:l.info.T.info.n5()&&(y=a.J);var R=l.info.mN;m=A8(l,a.policy.QO);var H=a.qj;var b=H.Mj;H=H.J;var M=Math.abs(H-y)>.02;if((R===b||R>b&&R>a.Mj)&&M){T=Math.max(.95,Math.min(1.05,(m-(H-y))/m));if(g.ay(l.info.T.info))s_l(l.Iu(),T);else if(l.info.T.info.n5()&&(R=y-H,!g.ay(l.info.T.info)&&(l.info.T.info.n5(),T=new iD(l.Iu()),b=l.K?T:new iD(new DataView(l.info.T.T.buffer)),A8(l,!0)))){var d= R*1E3,A=NA(b);b=T.pos;T.pos=0;if(T.T.getUint8(T.pos)===160||QN(T))if(PO(T,160))if(G$(T,!0),PO(T,155)){if(R=T.pos,M=G$(T,!0),T.pos=R,d=d*1E9/A,A=pN(T),d=A+Math.max(-A*.7,Math.min(A,d)),d=Math.sign(d)*Math.floor(Math.abs(d)),!(Math.ceil(Math.log(d)/Math.log(2)/8)>M)){T.pos=R+1;for(R=M-1;R>=0;R--)T.T.setUint8(T.pos+R,d&255),d>>>=8;T.pos=b}}else T.pos=b;else T.pos=b;else T.pos=b}T=A8(l,a.policy.QO);T=m-T}T&&l.info.T.info.n5()&&a.loader.Tu("webmDurationAdjustment",{durationAdjustment:T,videoDrift:y+T, audioDrift:H})}return T}; sbw=function(a){return a.info.T.Cl()&&a.info.mN===a.info.T.index.HN()}; cB=function(a,l){l=(l=l===void 0?0:l)?Math.round(a.timestampOffset*l)/l:a.timestampOffset;a.C.j&&l&&(l+=a.C.j.T);return l+a.getDuration()}; wKp=function(a,l){l<0||(a.L.forEach(function(m){Ju7(m,l)}),a.timestampOffset=l)}; Sv=function(a,l,m,T,y){r5.call(this,m,y);var R=this;this.policy=a;this.formatId=l;this.NA=T;this.lastError=null;this.Sq=function(){R.FO()||(R.NA.Sx.has(R.formatId)?(R.isComplete()||R.T.start(),Kg(R.NA,R.formatId)&&R.uU(2),R.NA.gL(R.formatId)&&(M4b(R.NA,R.formatId)?R.Rf(4):(R.lastError="net.closed",R.Rf(5)))):(R.lastError="player.exception",R.Rf(5)))}; this.T=new g.aH(function(){R.isComplete()||(R.lastError="net.timeout",R.Rf(5))},1E3); this.T.start();qq5(this.NA,this.formatId,this.Sq);g.FS(this.Sq)}; LH=function(a,l,m,T){g.k.call(this);var y=this;this.loader=a;this.policy=l;this.T=m;this.timing=T;this.logger=new g.bw("dash");this.Z=[];this.qj=[];this.L=this.VO=null;this.St=!1;this.Cx=this.AM=0;this.C=-1;this.jt=!1;this.hM=-1;this.Kx=null;this.lT=NaN;this.Ij=[];this.lM={m3:function(){return y.j}, sRt:function(){return y.Z}, BPN:function(){return y.J}}; this.j=new NS3(a,l,m);this.policy.T&&(this.J=new $L(this.j,this.loader.getManifest(),this.policy,function(R){y.policy.n3&&y.Tu("buftl",R)})); this.policy.uZ&&(this.N=new mj(this));this.Nj=m.info.Nj;this.B=this.policy.lT?!1:m.HC();this.isManifestless=m.HC();this.K=this.B;g.w(this,this.Kx)}; N5=function(a,l,m){m=m===void 0?!1:m;l&&WB&&wKp(a.j,l.R4());if(!m){var T;(T=a.J)==null||Xc3(T)}a.VO=l;(l=a.J)!=null&&(l.VO=a.VO)}; QO=function(a){var l=a.VO&&a.VO.VL();if(a.policy.Z$){if((a=a.J)==null)a=void 0;else{var m;a=(m=a.Z)==null?void 0:m.info}return a||null}return l}; IOQ=function(a){for(var l={},m=0;m4&&a.qj.shift()}; Cw7=function(a,l){if(l.B7()){var m=l.HV();m=g.c(m);for(var T=m.next();!T.done;T=m.next())T=T.value,a.policy.L&&l instanceof Sv&&a.Tu("omblss",{s:T.info.LR()}),eZ(a,l.info.gb,T,l.fQ())}}; eZ=function(a,l,m,T){T=T===void 0?0:T;isNaN(a.lT)||(a.Tu("aswm",{sq:l[0].mN,id:l[0].T.info.itag,xtag:l[0].T.info.T,ep:Date.now()-a.lT}),a.lT=NaN);switch(m.info.type){case 1:case 2:Ei5(a,m);break;case 4:var y=m.info.T,R=y.YM(m),H;((H=a.L)==null?0:H.type===4)&&jyH(m.info,a.L)&&(a.L=y.rF(a.L).pop());m=g.c(R);for(y=m.next();!y.done;y=m.next())eZ(a,l,y.value,T);break;case 3:m.info.T.info.video?(y=a.timing,y.qj||(y.qj=(0,g.E)(),Kd("fvb_r",y.qj,y.T))):(y=a.timing,y.C||(y.C=(0,g.E)(),Kd("fab_r",y.C,y.T))); KY7(a.j,l,m,T);a.policy.T&&oi7(a);break;case 6:KY7(a.j,l,m,T),a.L=m.info}}; Ei5=function(a,l){if(l.info.type===1)if(l.info.T.info.video){var m=a.timing;m.Kx||(m.Kx=(0,g.E)(),Kd("vis_r",m.Kx,m.T))}else m=a.timing,m.J||(m.J=(0,g.E)(),Kd("ais_r",m.J,m.T));FYd(a.j,l);a=a.loader;a.videoTrack.T.Du()&&a.audioTrack.T.Du()&&a.policy.T&&!a.Vg.Fl&&(l=a.audioTrack.getDuration(),m=a.videoTrack.getDuration(),Math.abs(l-m)>1&&a.Tu("trBug",{af:""+g.mH(a.audioTrack.T.info,!1),vf:""+g.mH(a.videoTrack.T.info,!1),a:""+l,v:""+m}))}; E7=function(a){return QbQ(a.j)}; oi7=function(a){a.Z.length?a.L=g.jc(g.jc(a.Z).info.gb):a.j.L.length?a.L=a.j.jm().info:a.L=QO(a)}; Fk=function(a,l){var m={yO:[],fH:[]},T;if((a=a.J)==null)a=void 0;else{uOl(a,a.yO,"og");oVl(a,l);uOl(a,a.yO,"trim");var y=DeH(a);l=y.yO;y=y.As;for(var R=[],H=0;H0){var G=Mi(P,M);G>=0&&(A=(P.end(G)-M+.1)*1E3)}R.push({formatId:g.mH(b.info.T.info,a.Vg.Fl), Ry:b.info.Ry,sequenceNumber:b.info.mN+a.j,q$:d,gj:b.info.Z,g8:A})}a={yO:l,fH:R}}return(T=a)!=null?T:m}; BR=function(a,l,m){m=m===void 0?!1:m;if(a.VO){var T=a.VO.PY(),y=dV(T,l),R=NaN,H=QO(a);H&&(R=dV(T,H.T.index.getStartTime(H.mN)));if(y===R&&a.L&&a.L.Z&&xOz(h2(a),0))return l}a=DOd(a,l,m);return a>=0?a:NaN}; nO=function(a,l,m){a.T.Du();var T=DOd(a,l);if(T>=0)return T;var y;(y=a.J)==null||xew(y,l,m);m=Math;T=m.min;y=a.j;if(y.B)if(y=y.B,y.yX&&y.yX.type===3)y=y.yX.startTime;else if(y.Z>0){var R=y.T.index;R=g.KD(R.offsets.subarray(0,R.count),y.Z*y.chunkSize);y=y.T.index.getStartTime(R>=0?R:Math.max(0,-R-2))}else y=0;else y=Infinity;l=T.call(m,l,y);a.L=a.policy.lT?null:a.T.rT(l).gb[0];Oz(a)&&(a.VO&&a.VO.abort(),a.policy.VB&&(m=a.J)!=null&&(m.Z=void 0));a.Cx=0;return a.L?a.L.startTime:l}; Uep=function(a){a.B=!0;a.K=!0;a.C=-1;nO(a,Infinity)}; KH=function(a){for(var l=0,m=g.c(a.Z),T=m.next();!T.done;T=m.next())l+=PHp(T.value.info);return l+=viw(a.j)}; vB=function(a,l){l=l===void 0?!1:l;var m=a.loader.getCurrentTime(),T=a.j.jm(),y=(T==null?void 0:T.info.C)||0;a.policy.tO&&(T==null?0:T.info.T.HC())&&!T.info.K&&(y=T.info.j);if(!a.VO)return a.policy.T&&l&&!isNaN(m)&&T?y-m:0;var R=QO(a);if(R&&zq(R))return R.C;var H=a.VO.PY(!0);if(l&&T)return R=0,a.policy.T&&(R=PJ(H,y+.02)),R+y-m;y=PJ(H,m);a.policy.GY&&R&&(l=Mi(H,m),H=Mi(H,R.j-.02),l===H&&(m=R.C-m,a.policy.L&&m>y+.02&&a.Tu("abh",{bh:y,bhtls:m}),y=Math.max(y,m)));return y}; uip=function(a){var l=QO(a);return l?l.C-a.loader.getCurrentTime():0}; XKl=function(a,l){if(a.Z.length){if(a.Z[0].info.gb[0].startTime<=l)return;Jo(a)}for(var m=a.j,T=m.L.length-1;T>=0;T--)m.L[T].info.startTime>l&&m.L.pop();oi7(a);a.L&&l=0;H--){var b=y.L[H];b.info.mN>=l&&(y.L.pop(),y.Z-=A8(b,y.policy.QO),R=b.info)}R&&(y.K=y.L.length>0?y.L[y.L.length-1].info:y.St,y.L.length!==0||y.K||VO(y,"r"));y.loader.Tu("mdstm",{rollbk:1,itag:R?R.T.info.itag:"",popped:R?R.mN:-1,sq:l,lastslc:y.K?y.K.mN:-1,lastfraget:y.Z.toFixed(3)});if(a.policy.T)return a.L=null,!0;T>m?nO(a,T):a.L=a.T.j5(l-1,!1).gb[0]}catch(M){return l=zM(M),l.details.reason="rollbkerr", a.loader.handleError(l.errorCode,l.details,l.severity),!1}return!0}; SZ=function(a,l){var m;for(m=0;m0?m||l.mN>=a.hM:m}; fH=function(a){var l;return Oz(a)||zq((l=a.j.jm())==null?void 0:l.info)}; h2=function(a){var l=[],m=QO(a);m&&l.push(m);l=g.LD(l,a.j.Ut());m=g.c(a.Z);for(var T=m.next();!T.done;T=m.next()){T=T.value;for(var y=g.c(T.info.gb),R=y.next(),H={};!R.done;H={hY:void 0},R=y.next())H.hY=R.value,T.nQ&&(l=g.BN(l,function(b){return function(M){return!jyH(M,b.hY)}}(H))),(CN(H.hY)||H.hY.type===4)&&l.push(H.hY)}a.L&&!yuz(a.L,g.jc(l),a.L.T.Cl())&&l.push(a.L); return l}; xOz=function(a,l){if(!a.length)return!1;for(l+=1;l=l){l=R;break a}}l=y}return l<0?NaN:xOz(a,m?l:0)?a[l].startTime:NaN}; J2=function(a){return!(!a.L||a.L.T===a.T)}; Yj5=function(a){return J2(a)&&a.T.Du()&&a.L.T.info.Njl&&a.C1080&&!a.jn&&(a.Cx=36700160,a.rb=5242880,a.AM=Math.max(4194304,a.AM),a.jn=!0);l.video.qualityOrdinal>2160&&!a.Uk&&(a.Cx=104857600,a.Nj=13107200,a.Uk=!0);g.PU(a.UL.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?l.isEncrypted()&&g.ur()&&g.xa("samsung")&&(g.xa("kant")||g.xa("muse"))&&(a.Nj=g.PU(a.UL.experiments,"html5_samsung_kant_limit_max_bitrate")):l.isEncrypted()&&g.ur()&&g.xa("kant")&&(a.Nj=1310720);a.JP!==0&&l.isEncrypted()&& (a.Nj=a.JP);a.f2!==0&&l.isEncrypted()&&m&&(a.Nj=a.f2);l.Nj&&(a.FH=Math.max(a.M9,Math.min(a.AM,5*l.Nj)))}; pg=function(a){return a.T&&a.xe}; Ie=function(a){return a.T&&a.Or&&a.playbackStartPolicy}; CH=function(a,l,m,T){a.Or&&(a.playbackStartPolicy=l,a.yV=m,a.cm=T)}; wU=function(a,l,m){m=m===void 0?0:m;return g.PU(a.UL.experiments,l)||m}; Mdp=function(a){var l=a===void 0?{}:a;a=l.Tz;var m=l.ZE;var T=l.Ca;var y=l.HN;l=l.IN;this.Tz=a;this.ZE=m;this.Ca=T;this.HN=y;this.IN=l}; MRP=function(a,l){if(l<0)return!0;var m=a.HN();return l0)return 2;if(l<0)return 1;m=a.HN();return l(0,g.E)()?0:1}; oe=function(a,l,m,T,y,R,H,b,M,d,A,P,G,V){V=V===void 0?null:V;g.k.call(this);var p=this;this.loader=a;this.policy=l;this.videoTrack=m;this.audioTrack=T;this.j=y;this.T=R;this.timing=H;this.K=b;this.schedule=M;this.Vg=d;this.Z=A;this.Ij=P;this.Gi=G;this.Ku=V;this.lT=!1;this.vQ="";this.kW=null;this.OF=NaN;this.jt=!1;this.L=null;this.bk=this.N=NaN;this.WZ=this.C=0;this.logger=new g.bw("dash");this.lM={AL:function(L,N){return p.AL(L,N)}}; this.policy.Ma>0&&(this.vQ=g.FH(this.policy.Ma));this.policy.Kn&&(this.J=new Ez(this.loader,this.policy,this.schedule),g.w(this,this.J))}; GId=function(a,l,m){var T=l.L?l.L.T.DR:l.T.DR;var y=a.j,R;(R=!a.policy.vX)||(R=vx(T.T)===vx(T.L));R?T=!1:(y=Oq(y,vx(T.L)),R=6E4*Math.pow(y.j,1.6),(0,g.E)()=y.j?(y.Tu("sdai",{haltrq:R+1,est:y.j}),T=!1):T=y.L!==2;if(!T||!sq(l.L?l.L.T.DR:l.T.DR,a.policy,a.j,a.loader.gT())||a.loader.isSuspended&&(!ed(a.schedule)||a.loader.GT))return!1;if(a.policy.j&&f7>=5)return g.l0(a.loader.Tj),!1;if(a.Vg.isManifestless){if(l.Z.length>0&&l.L&&l.L.mN===-1||l.Z.length>=a.policy.vS||!a.policy.zP&&l.Z.length>0&&!a.policy.B.ZE)return!1;if(l.B)return!a.Vg.isLive|| !isNaN(a.OF)}if(mql(l))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!l.L){if(!l.T.Du())return!1;nO(l,a.loader.getCurrentTime())}if(E7(l)&&(l.jm()!==E7(l)||a.loader.isSuspended))return!1;y=(T=a.policy.df)&&!l.Z.length&&vB(l,!0)=a.policy.Dk)return!1;T=l.L;if(!T)return!0;T.type===4&&T.T.Du()&&(l.L=g.jc(T.T.rF(T)),T= l.L);if(!T.Kh()&&!T.T.Z4(T))return!1;R=a.Vg.mx||a.Vg.j;if(a.Vg.isManifestless&&R){R=l.T.index.HN();var H=m.T.index.HN();R=Math.min(R,H);if(l.T.index.K4()>0&&R>0&&T.mN>=R)return l.hM=R,m.hM=R,!1}if(T.T.info.audio&&T.type===4||T.Kh())return!1;R=!l.K&&!m.K;if(y=!y)y=T.C,y=!!(m.L&&!zq(m.L)&&m.L.CVdP(a,l)?(VdP(a,l),!1):(a=l.VO)&&a.isLocked()?!1:!0}; VdP=function(a,l){var m=a.T;m=m.T?m.T.We:null;if(a.policy.qj&&m)return m.startSecs+m.Da+15;l=kL(a.loader,l);a.policy.lZ>0&&(m=((0,g.E)()-a.loader.Vf)/1E3,l=Math.min(l,a.policy.lZ+a.policy.Ia*m));m=a.loader.getCurrentTime()+l;return a.policy.Ok&&(l=pSb(a.loader)+a.policy.Ok,l=0||l.DR.JS("defrag")==="1"||l.DR.JS("otf")==="1"){l=null;break a}y=k4(0,4096)}y=new uD([new wH(5,T.T,y,"createProbeRequestInfo"+T.J,T.mN)],l.L);y.H4=m;y.T=l.T;l=y}l&&Pj7(a,l)}}; Pj7=function(a,l){a.loader.dg(l);var m=PHp(l),T=a.loader.f4();m={Og:a.schedule,Pb:m,IQ:BPb(a.K,m),EZ:IG(l.gb[0]),n2:$y(l.DR.T),nM:a.policy.L,UJ:function(H,b){a.loader.T1(H,b)}}; if(a.schedule.L.C){var y,R;m.WV=(((y=a.videoTrack.T)==null?void 0:y.info.Nj)||0)+(((R=a.audioTrack.T)==null?void 0:R.info.Nj)||0)}a.kW&&(m.mN=l.gb[0].mN,m.OF=l.OF,m.kW=a.kW);T={Yw:GRd(l,a.loader.getCurrentTime()),MM:a.policy.Aa&&Y4(l)&&l.gb[0].T.info.video?Ret(a.Z):void 0,HQ:a.policy.qj,poToken:a.loader.Yk(),DC:a.loader.hx(),vQ:a.vQ,bk:isNaN(a.bk)?null:a.bk,Ku:a.Ku,Gi:a.Gi,WZ:a.WZ,SA:T};return new fO(a.policy,l,m,a.j,function(H,b){try{a:{var M=H.info.gb[0].T,d=M.info.video?a.videoTrack:a.audioTrack; if(!(H.state>=2)||H.isComplete()||H.t5()||!(!a.loader.Wz||a.loader.isSuspended||vB(d)>3)){var A=jTb(H,a.policy,a.j);A===1&&(a.jt=!0);ZR7(a,H,A);if(H.isComplete()||H.FO()&&b<3){if(a.policy.L){var P=H.timing.Vh();P.rst=H.state;P.strm=H.xhr.kE();P.cncl=H.xhr&&H.CR.j?1:0;a.loader.Tu("rqs",P)}H.W3&&a.loader.Tu("sbwe3",{},!0)}if(!a.FO()&&H.state>=2){ON7(a.timing,H,M);var G=a.loader;a.bk&&H.BX&&G&&(a.bk=NaN,a.loader.qf(H.BX),a.loader.Uz(),a.loader.Tu("cabrUtcSeek",{mediaTimeSeconds:H.BX}));H.Gj&&a.bk&&H.Gj&& !H.Gj.action&&(a.loader.So(a.bk),a.bk=NaN,a.loader.Tu("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.bk}));H.IR&&a.loader.GD(H.IR);a.policy.FU&&(a.WZ=H.WZ);if(H.state===3){SZ(d,H);Y4(H.info)&&D3(a,d,M,!0);if(a.L){var V=H.info.Tf();V&&a.L.UH(H.info.gb[0].mN,M.info.id,V)}a.loader.qI()}else if(H.isComplete()&&H.info.gb[0].type===5){if(H.state!==4)H.BV()&&a.loader.handleError(H.YA(),H.lY());else{var p=(H.info.gb[0].T.info.video?a.videoTrack:a.audioTrack).Z[0]||null;p&&p instanceof fO&&p.t5()&&p.pp()}H.dispose()}else{H.BV()|| WkP(a,H);var L;((L=H.NR)==null?0:L.itagDenylist)&&a.loader.Dc(H.NR.itagDenylist);if(H.state===4)c$P(a,H),a.T&&sGz(a.T,H.info,a.L);else if(a.policy.qd&&H.B7()&&!H.isComplete()&&!c$P(a,H)&&!H.BV())break a;H.BV()&&(Lkd(a,H),isNaN(a.bk)||(a.loader.So(a.bk),a.bk=NaN));a.policy.SW&&!H.isComplete()?N1H(a.loader):a.loader.qI();var N=A$d(H,a.policy,a.j);ZR7(a,H,N)}}}}}catch(e){b=a.lT?1:0,a.lT=!0,H=Kw(b),b=zM(e,b),a.loader.handleError(b.errorCode,b.details,b.severity),H||a.loader.A$()}},T)}; WkP=function(a,l){if(l.Bq&&l.state>=2&&l.state!==3){var m=l.xhr.getResponseHeader("X-Response-Itag");if(m){a.logger.debug(function(){return"Applying streamer-selected format "+m}); var T=y8Q(a.Z,m),y=l.info.Z;y&&(y-=T.KQ(),T.Z=!0,l.info.gb[0].T.Z=!1,yiP(l,T.L1(y)),uz(a.loader,a.videoTrack,T),T15(a.videoTrack,T),a.loader.NP(T.info.video.quality),(y=l.fQ())&&T.info.lastModified&&T.info.lastModified!==+y&&SZ(a.videoTrack,l))}else l.Bq=!1}}; Lkd=function(a,l){var m=l.info.gb[0].T,T=l.YA();if($y(m.DR.T)){var y=g.yT(l.La(),3);a.loader.Tu("dldbrerr",{em:y||"none"})}y=l.info.gb[0].mN;var R=kz(a.T,l.info.gb[0].j,y);T==="net.badstatus"&&(a.C+=1);if(l.canRetry()&&QTt(a.loader)){if(!(l.info.DR.Z>=a.policy.f1&&a.L&&l.info.isDecorated()&&T==="net.badstatus"&&a.L.ws(R,y))){y=(m.info.video&&m.DR.Z>1||l.At===410||l.At===500||l.At===503)&&!(ov(a.Z.K).size>0)&&!$y(m.DR.T);R=l.lY();var H=m.info.video?a.videoTrack:a.audioTrack;y&&(R.stun="1");a.loader.handleError(T, R);a.FO()||(y&&(a.logger.debug(function(){return"Stunning format "+m.info.id}),rW(a.Z,m)),SZ(H,l),a.loader.qI())}}else H=1,a.L&&l.info.isDecorated()&&T==="net.badstatus"&&a.L.ws(R,y)&&(H=0),a.Vg.isLive&&l.YA()==="net.badstatus"&&a.C<=a.policy.W4*2?(cnl(a.Vg),a.Vg.mx||a.Vg.isPremiere?CO(a.loader,0,{hW:"badStatusWorkaround"}):a.Vg.j?CO(a.loader,a.Vg.jt,{hW:"badStatusWorkaround", hK:!0}):Xk(a.loader)):a.loader.handleError(T,l.lY(),H)}; c$P=function(a,l){if(a.policy.useUmp&&l.FO())return!1;try{var m=l.info.gb[0].T,T=m.info.video?a.videoTrack:a.audioTrack;if(a.Vg.isManifestless&&T){a.C=0;T.B&&(l.FO(),l.isComplete()||l.B7(),T.B=!1);l.ZB()&&a.loader.iG.wk(1,l.ZB());var y=l.K4(),R=l.EE();fS(a.Vg,y,R)}if(l.info.EZ()&&!Xr(l.info))for(var H=g.c(l.HV()),b=H.next();!b.done;b=H.next())Ei5(T,b.value);for(a.loader.getCurrentTime();T.Z.length&&T.Z[0].state===4;){var M=T.Z.shift();Cw7(T,M);T.AM=M.jB()}T.Z.length&&Cw7(T,T.Z[0]);var d=!!E7(T);d&& l instanceof Sv&&(m.info.q2()?Li7(a.timing):ci7(a.timing));return d}catch(A){l=l.lY();l.origin="hrhs";a:{a=a.loader;m=A;if(m instanceof Error){l.msg||(l.msg=""+m.message);l.name||(l.name=""+m.name);if(m instanceof g.YH&&m.args)for(T=g.c(Object.entries(m.args)),y=T.next();!y.done;y=T.next())R=g.c(y.value),y=R.next().value,R=R.next().value,l["arg"+y]=""+R;g.nU(m);if(m.level==="WARNING"){a.vz.Oe(l);break a}}a.handleError("fmt.unplayable",l,1)}return!1}}; tdp=function(a){var l=a.videoTrack.T.index;a.kW=new Mdp({Tz:a.policy.Tz,ZE:a.policy.B.ZE,Ca:l.us(),HN:function(){return l.HN()}, IN:function(){return l.IN()}})}; D3=function(a,l,m,T){if(!(m.Du()||m.gK()||m.Z||!sq(m.DR,a.policy,a.j,a.loader.gT())||m.info.Gu==="f"||a.policy.T)){if(T){T=a.K;var y=m.info;T=kPw(T,y.video?T.policy.J7:T.policy.NE,y.Nj)}else T=0;T=m.L1(T);a=Pj7(a,T);Xr(T)&&t2(l,a);m.Z=!0}}; YC=function(a,l,m,T,y,R,H,b){g.k.call(this);var M=this;this.loader=a;this.l0=l;this.videoTrack=m;this.audioTrack=T;this.Vg=y;this.N=R;this.isAudioOnly=H;this.C=b;this.L=xW;this.jt=!1;this.logger=new g.bw("sabr");this.J=this.lT=this.Ij=!1;this.videoInfos=this.B=this.N.videoInfos;this.Z=this.qj=this.N.T;this.T=new Cg(l,R,function(d,A){M.loader.Tu(d,A)}); this.l0.yp||eV7(this);this.isAudioOnly&&Fkp(this,this.Vg.T["0"])}; hVd=function(a,l){var m=[];l=g.c(l);for(var T=l.next();!T.done;T=l.next())m.push(g.mH(T.value,a.Vg.Fl));return m}; Fkp=function(a,l,m){l!==a.j&&(a.j&&(a.jt=!0),a.j=l,a.qQ(l,a.videoTrack,m))}; vNP=function(a,l){a.logger.debug("setConstraint: "+V3(l));pg(a.l0)&&(a.lT=l.reason==="m"||l.reason==="l"?!0:!1);l.reason==="m"?l.isLocked()&&OR7(a,l.T):Kkz(a,l)?zVd(a,l.L,l.T):a.videoInfos=a.B;a.L=l}; Kkz=function(a,l){return a.l0.wI&&l.reason==="b"||a.l0.oF&&l.reason==="l"||a.l0.In?!1:a.l0.Qt?!0:l.reason==="l"||l.reason==="b"||l.reason==="o"}; $q7=function(a,l){return l.isLocked()&&a.T.L||a.L===void 0?!1:l.equals(a.L)}; sTH=function(a,l){var m,T=(m=a.j)==null?void 0:m.info.video.qualityOrdinal;return a.jt?!0:a.j?l!==T?!0:!a.T.L||a.l0.JV&&a.T.T===a.j.info.itag?!1:!0:!1}; OR7=function(a,l){var m=a.T.T;if(m){a.videoInfos=a.B;var T=g.Pn(a.videoInfos,function(y){return y.id===m}); T&&T.video.qualityOrdinal===l?a.videoInfos=[T]:(T=a.videoInfos.map(function(y){return y.id}),a.loader.Tu("sabrpf",{pfid:""+m, vfids:""+T.join(".")}),zVd(a,l,l),xz(a.T,""))}else zVd(a,l,l)}; zVd=function(a,l,m){a.videoInfos=a.B;a.videoInfos=g.BN(a.videoInfos,function(T){return T.video.qualityOrdinal>=l&&T.video.qualityOrdinal<=m})}; eV7=function(a){var l=n4P(a.T,a.C);l&&(a.Z=[l])}; Sl3=function(a,l,m){if(a.l0.yp){if(a.C){var T=g.BN(a.Z,function(y){return y.id===a.C}); return Uz(T,m).includes(l)}T=g.BN(a.Z,function(y){var R;return!((R=y.WF)==null||!R.isDefault)}); if(T.length>0)return Uz(T,m).includes(l)}return Uz(a.Z,m).includes(l)}; Uz=function(a,l){return a.map(function(m){return S4(g.mH(m,l))})}; feH=function(a){var l;if((l=a.L)==null?0:l.isLocked())return a.videoInfos;var m=ov(a.T);l=g.BN(a.videoInfos,function(T){return T.Nj>a.l0.Nj?!1:!m.has(T.id)}); k$H(a.T)&&(l=g.BN(l,function(T){return T.video.width<=854&&T.video.height<=480})); return l}; B1l=function(a,l,m){var T=a.Vg,y=a.vz.getVideoData(),R=a.FE,H=ZB({UL:y.Y(),vz:a.vz,Kb:a.Kb,l0:a.l0,Vf:a.Vf,aD:a.aD,QB:a.QB,XI:a.XI,gP:a.gP,isPrefetch:a.isPrefetch,CT:a.CT,sabrLicenseConstraint:y.sabrLicenseConstraint,pz:a.pz,w0:a.w0,Oy:a.Oy,ib:a.ib,m0:!!R,nh:y.nh}),b=Wz(y,a.SA,a.nextRequestPolicy,a.ix,a.cw,a.wX,a.mG);m&&l&&(m=b.fz?b.fz.map(function(P){return P.type}):[],l("sabr",{stmctxt:m.join("_"), unsntctxt:b.Ki?b.Ki.join("_"):""}));l=a.KP;m=a.xG;if(m===void 0&&l===void 0){var M;m=J$7(T.Fl,(M=a.cU)==null?void 0:M.video);var d;l=J$7(T.Fl,(d=a.cU)==null?void 0:d.audio)}if(y.Ku)var A=y.Ku;y={Wv:H,fH:a.fH,KP:l,xG:m,FE:R,videoPlaybackUstreamerConfig:A,uJ:b};a.W7&&(y.W7=a.W7);y.yO=a.yO;y.pG=T.tM;return y}; J$7=function(a,l){return l?[g.mH(l.info,a)]:[]}; rU=function(a,l,m){var T=this;this.requestType=a;this.DR=l;this.qt=m;this.L=null;this.lM={Xvj:function(){var y;return(y=T.data)==null?void 0:y.isPrefetch}, cw:function(){var y;return(y=T.data)==null?void 0:y.cw}}}; V4d=function(a,l,m){l=vO(a.DR,kIP(a,l,m),l);a.Ik()&&l.set("probe","1");return l}; kIP=function(a,l,m){a.H4===void 0&&(a.H4=a.DR.H4(l,m));return a.H4}; nNl=function(a){var l,m;return((l=a.T)==null?void 0:(m=l.Wv)==null?void 0:m.Ck)||0}; wS7=function(a){var l,m;return!!((l=a.T)==null?0:(m=l.Wv)==null?0:m.pz)}; IeQ=function(a){var l={},m=[],T=[];if(!a.data)return l;for(var y=0;y0;M--)m.push(b)}m.length!==H?l.error=!0:(R=m.slice(-R),m.length=y,P17(l,m,R));break;case 1:P17(l,iF,gWP);break;case 0:Gi3(l, l.T&7);m=PQ(l,16);y=PQ(l,16);(m^y)!==65535&&(l.error=!0);l.output.set(l.data.subarray(l.L,l.L+m),l.Z);l.L+=m;l.Z+=m;break;default:l.error=!0}a.Z>a.output.length&&(a.output=new Uint8Array(a.Z*2),a.Z=0,a.L=0,a.j=!1,a.T=0,a.register=0)}a.output.length!==a.Z&&(a.output=a.output.subarray(0,a.Z));return a.error?new Uint8Array(0):a.output}; P17=function(a,l,m){l=jXd(l);m=jXd(m);for(var T=a.data,y=a.output,R=a.Z,H=a.register,b=a.T,M=a.L;;){if(b<15){if(M>T.length){a.error=!0;break}H|=(T[M+1]<<8)+T[M]<>=7;d<0;)d=l[(H&1)-d],H>>=1;else H>>=d&15;b-=d&15;d>>=4;if(d<256)y[R++]=d;else if(a.register=H,a.T=b,a.L=M,d>256){H=jg[d];H+=PQ(a,di[d]);M=AeP(a,m);b=Ak[M];b+=PQ(a,Mid[M]);if(pV3&&Hm.length&&(a.error=!0);a.register|=(m[T+1]<<8)+m[T]<=0)return Gi3(a,m&15),m>>4;for(Gi3(a,7);m<0;)m=l[PQ(a,1)-m];return m>>4}; PQ=function(a,l){for(;a.T=a.data.length)return a.error=!0,0;a.register|=a.data[a.L++]<>=l;a.T-=l;return m}; Gi3=function(a,l){a.T-=l;a.register>>=l}; jXd=function(a){for(var l=[],m=g.c(a),T=m.next();!T.done;T=m.next())T=T.value,l[T]||(l[T]=0),l[T]++;var y=l[0]=0;m=[];var R=0;T=0;for(var H=1;H7&&(R+=l[H]);for(y=1;y>M&1;b=R<<4|H;if(H<=7)for(M=1<<7-H;M--;)T[M<>=7;H--;){T[M]||(T[M]=-l,l+=2);var d=y&1;y>>=1;M=d-T[M]}T[M]=b}}return T}; Z77=function(a){var l,m,T,y,R,H,b;return g.J(function(M){switch(M.L){case 1:if(!("DecompressionStream"in window))return M.return(g.ViH(new g.i7d(a)));l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();T=l.readable.getReader();y=new cX([]);case 2:return g.z(M,T.read(),5);case 5:R=M.T;H=R.value;if(b=R.done){M.iT(4);break}y.append(H);M.iT(2);break;case 4:return M.return(y.e$())}})}; GZ=function(a,l){this.T=a;this.lm=l}; WSd=function(a){return Wc(Wc(Vo(function(){return Zh(a.lm,function(l){return a.E7(a.T,l)})}),function(){return a.D8(a.T)}),function(){return a.hg(a.T)})}; ceH=function(a,l){return WSd(new GZ(a,l))}; QXb=function(a){NT.call(this,"onesie");this.cF=a;this.T={};this.Z=!0;this.j=null;this.queue=new b7d(this);this.K={};this.C=cc(function(l,m){var T=this;return function R(){var H,b,M,d,A,P,G,V,p,L,N,e,t,v,S,n,X,D,yp,H5;return fP(R,function(ad){switch(ad.L){case 1:g.Qp(ad,2);T.cF.mS();H=function(Md){return function(U){throw{name:Md,message:U};}}; b=l.e$();g.LP(ad,4,5);if(!m){ad.iT(7);break}return W5(ad,B5(Wc(LSR(T.cF,b,T.iv),H("DecryptError")).wait()),8);case 8:M=ad.T;case 7:if(!T.cF.enableCompression){ad.iT(9);break}return W5(ad,B5(Wc(ceH((P=M)!=null?P:b,T.cF.Y().wO),H("DecompressError")).wait()),10);case 10:d=ad.T;case 9:A=E5((V=(G=d)!=null?G:M)!=null?V:b,jq5);case 5:g.zH(ad,0,2);if(L=(p=T.cF.Y())==null?void 0:p.lm)((N=M)==null?void 0:N.buffer)===L.exports.memory.buffer&&L.free(M.byteOffset),((e=d)==null?void 0:e.buffer)===L.exports.memory.buffer&& L.free(d.byteOffset);g.$l(ad,6);break;case 4:throw v=t=g.OQ(ad),new O_("onesie.response.parse",{name:(D=v.name)!=null?D:"unknown",message:(yp=v.message)!=null?yp:"unknown",wasm:((S=T.cF.Y())==null?0:S.lm)?((n=T.cF.Y())==null?0:(X=n.lm)==null?0:X.T)?"1js":"1":"0",enc:T.Z,gz:T.cF.enableCompression,webcrypto:!!Ql()});case 6:return Npp(A),H5=g.K8(A.body),ad.return(H5);case 2:g.zH(ad),g.$l(ad,0)}})}()})}; tib=function(a){var l=a.queue;l.T.length&&l.T[0].isEncrypted&&!l.L&&(l.T.length=0);l=g.c(Object.keys(a.T));for(var m=l.next();!m.done;m=l.next()){m=m.value;var T=a.T[m];if(!T.ND){var y=a.queue;y.T.push({videoId:T.videoId,formatId:m,isEncrypted:!1});y.L||Mo(y)}}}; FSl=function(a,l){var m=l.getLength(),T=!1;switch(a.j){case 0:a.cF.V("html5_future_onesie_ump_handler_on_player_response")?Wc(Zh(a.C(l,a.Z),function(y){eHt(a.cF,y)}),function(y){a.cF.Mw(y)}):a.mS(l,a.Z).then(function(y){eHt(a.cF,y)},function(y){a.cF.Mw(y)}); break;case 2:a.dO("ormk");l=l.e$();a.cF.V("html5_future_onesie_ump_handler_on_media_decryption_key")?a.queue.Z(l,a.cF.Y().wO):a.queue.decrypt(l);break;default:T=!0}a.cF.EO&&a.cF.Tu("ombup","id.11;pt."+a.j+";len."+m+(T?";ignored.1":""));a.j=null}; Npp=function(a){if(a.SL!==1)throw new O_("onesie.response.badproxystatus",{st:a.SL,webcrypto:!!Ql(),textencoder:!!g.u7.TextEncoder});if(a.httpStatus!==200)throw new O_("onesie.response.badstatus",{st:a.httpStatus});}; hHb=function(a){return new Promise(function(l){setTimeout(l,a)})}; O7R=function(a,l){var m=a.Y();m=a.Ia&&m.V("html5_onesie_preload_use_content_owner");var T=a.nC,y=HS(l.aj.experiments,"debug_bandaid_hostname");if(y)l=qo(l,y);else if((m===void 0?0:m)&&(T==null?0:T.url)&&!l.L){var R=vx(new g.K_(T.url));l=qo(l,R)}else l=(R=l.T.get(0))==null?void 0:R.location.clone();if(l&&a.videoId){R=ij(a.videoId);a=[];if(R)for(R=g.c(R),m=R.next();!m.done;m=R.next())a.push(m.value.toString(16).padStart(2,"0"));l.set("id",a.join(""));return l}}; KSR=function(a,l,m){m=m===void 0?0:m;var T,y;return g.J(function(R){if(R.L==1)return T=[],T.push(l.load()),m>0&&T.push(hHb(m)),g.z(R,Promise.race(T),2);y=O7R(a,l);return R.return(y)})}; zHz=function(a,l,m,T){T=T===void 0?!1:T;a.set("cpn",l.clientPlaybackNonce);a.set("opr","1");var y=l.Y();a.set("por","1");Ql()||a.set("onem","1");l.startSeconds>0&&a.set("osts",""+l.startSeconds);T||(y.V("html5_onesie_disable_partial_segments")&&a.set("oses","1"),l=y.V("html5_gapless_onesie_no_media_bytes")&&qf(l)&&l.Ia,m&&!l?(l=m.audio,a.set("pvi",m.video.join(",")),y.V("html5_onesie_disable_audio_bytes")||a.set("pai",l.join(",")),RT||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad", "0"),a.set("oavd","0")))}; vWR=function(a,l,m,T,y){y=y===void 0?!1:y;var R="https://youtubei.googleapis.com/youtubei/"+l.tO.innertubeApiVersion+"/player",H=[{name:"Content-Type",value:"application/json"}];T&&H.push({name:"Authorization",value:"Bearer "+T});H.push({name:"User-Agent",value:g.ej()});g.Uu("EOM_VISITOR_DATA")?H.push({name:"X-Goog-EOM-Visitor-Id",value:g.Uu("EOM_VISITOR_DATA")}):(m=m.visitorData||g.Uu("VISITOR_DATA"))&&H.push({name:"X-Goog-Visitor-Id",value:m});(m=g.Uu("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&H.push({name:"X-YouTube-Lava-Device-Context", value:m});(l=HS(l.experiments,"debug_sherlog_username"))&&H.push({name:"X-Youtube-Sherlog-Username",value:l});a=$n(JSON.stringify(a));return{url:R,LD:H,postBody:a,vNx:y,iJ:y}}; sXQ=function(a,l,m,T,y,R){var H=g.rs(a,dmt,a.iJ?void 0:m.lm),b={encryptedClientKey:l.T.encryptedClientKey,kI:!0,XC:!0,Re:$U3(m,!!a.iJ),aJ:m.experiments.XO("html5_use_jsonformatter_to_parse_player_response")};if(a.iJ)b.X$8=H;else{if(m.lm){a=XSt(l).L(H,l.iv);var M;b.v9=(M=m.lm.zV(a))!=null?M:a}else b.v9=l.encrypt(H);M=b.v9;(0,g.E)();M=oO7(new EOt(l.T.Z),M,l.iv);b.s7=M;b.iv=l.iv}l=T.getVideoData();m=ZB({UL:m,vz:T,Kb:l.startSeconds*1E3});y={hL:b,Wv:m,onesieUstreamerConfig:y,bA:R,uJ:Wz(l)};l.reloadPlaybackParams&& (y.reloadPlaybackParams=l.reloadPlaybackParams);return y}; SSt=function(a,l,m){var T,y,R;return g.J(function(H){if(H.L==1)return T=g.rs(l,dmt),g.z(H,YlQ(m,T),2);if(H.L!=3)return y=H.T,g.z(H,Uqz(m,y),3);R=H.T;return H.return({v9:y,encryptedClientKey:m.T.encryptedClientKey,iv:m.iv,s7:R,kI:!0,XC:!0,Re:$U3(a,!!l.iJ),aJ:a.experiments.XO("html5_use_jsonformatter_to_parse_player_response")})})}; fjt=function(a,l,m,T,y,R){var H,b,M,d;return g.J(function(A){if(A.L==1)return g.z(A,SSt(m,a,l),2);H=A.T;b=T.getVideoData();M=ZB({UL:m,vz:T,Kb:b.startSeconds*1E3});d={hL:H,Wv:M,onesieUstreamerConfig:y,bA:R,uJ:Wz(b)};b.reloadPlaybackParams&&(d.reloadPlaybackParams=b.reloadPlaybackParams);return A.return(d)})}; $U3=function(a,l){a=t$(a.schedule,!0);l=l||!!Ql()&&a>1572864;return"DecompressionStream"in window||!l}; pW=function(a,l){g.k.call(this);var m=this;this.vz=a;this.playerRequest=l;this.logger=new g.bw("onesie");this.xhr=null;this.state=1;this.lK=new l6;this.vp=!1;this.playerResponse="";this.PV=new U7(this);this.nu=new QXb(this);this.Ne="";this.Of=this.Ag=!1;this.aQ="";this.enableCompression=this.z2=this.QE=!1;this.XE=[];this.w6=-1;this.aj=this.vz.Y();this.videoData=this.vz.getVideoData();this.EO=this.aj.bZ();this.KA=this.aj.Xt;this.A3=new Rr(this.KA.T,this.aj.wO,Cjl(this.aj));this.Lf=this.aj.V("html5_onesie_check_timeout"); this.GZ=new g.aH(this.lE,500,this);this.wH=new g.aH(this.zy,1E4,this);this.WJ=new g.aH(function(){if(!m.isComplete()){var T=Vg(m);m.Mw(new O_("net.timeout",T))}},1E3); this.bd=new g.aH(this.Zxg,2E3,this);this.xp=this.vz.hx();this.EN=this.V("html5_onesie_wait_for_media_availability");g.w(this.videoData,this);g.w(this,this.GZ);g.w(this,this.wH);g.w(this,this.bd);g.w(this,this.A3);a=bj();RT&&a&&(this.Zu=new Map);this.Lm=new Map;this.Jw=new Map;this.DN=new Map;this.N4=new Map}; gi=function(a,l){var m;return(m=a.Zu)==null?void 0:m.get(l)}; BpP=function(a,l,m){var T;return g.J(function(y){if(y.L==1)return a.dO("oprd_s"),JeR(a)?g.z(y,r$7(a.A3,l,m),3):(T=a.A3.decrypt(l,m),y.iT(2));y.L!=2&&(T=y.T);a.dO("oprd_c");return y.return(T)})}; LSR=function(a,l,m){a.dO("oprd_s");l=XSt(a.A3).encrypt(l,m);Zh(l,function(){a.dO("oprd_c")}); return l}; kiQ=function(a){return a.V("html5_onesie_host_probing")||a.EO?RT:!1}; eHt=function(a,l){a.dO("oprr");a.playerResponse=l;a.z2||(a.EN=!1);Zw(a)}; Zw=function(a){if(!a.playerResponse)return!1;if(a.QE)return!0;var l=a.videoData.V("html5_onesie_audio_only_playback")&&b9(a.videoData);if(a.Zu&&a.EN){if(!a.Zu.has(a.Ne))return!1;var m=a.Zu.get(a.Ne),T;if(T=m){T=!1;for(var y=g.c(m.Sx.keys()),R=y.next();!R.done;R=y.next())if(R=m.Sx.get(R.value))for(var H=g.c(R.qM),b=H.next();!b.done;b=H.next())b.value.Yt>0&&(R.q2?T=!0:l=!0);T=!(l&&T)}if(T)return!1}a.dO("ofr");a.lK.resolve(a.playerResponse);if(!a.Lf){var M;(M=a.WJ)==null||M.start();a.wH.start()}return a.QE= !0}; wV5=function(a){if(a.Zu&&!a.V("html5_onesie_media_capabilities")){a.dO("ogsf_s");var l=oyt(a.vz.getVideoData(),function(T,y){a.Tu(T,y)}),m=nWl(a.vz); l.video=flp(m,l.video);a.dO("ogsf_c");if(l.video.length)return l;a.Tu("ombspf","l."+m.L+";u."+m.T+";o."+m.Z+";r."+m.reason)}}; JeR=function(a,l){return a.V("html5_onesie_sync_request_encryption")||(l==null?0:l.iJ)||g.mS(a.aj)&&a.V("html5_embed_onesie_use_sync_encryption")?!1:!!Ql()}; Vg=function(a){if(!a.NN)return{};var l=a.NN.Vh(),m;l.d=(m=a.NN.hM)==null?void 0:m.N2();l.shost=a.Vv;l.ty="o";return l}; Ijz=function(a,l){var m,T;(T=(a=(m=a.Zu)==null?void 0:m.get(l))==null)||(l=a.Z?!1:a.Z=!0,T=!l);return!T}; C15=function(a,l,m,T,y,R,H,b,M,d,A){g.k.call(this);var P=this;this.vz=a;this.loader=l;this.policy=m;this.audioTrack=T;this.videoTrack=y;this.Vg=R;this.Og=H;this.tM=b;this.Z=M;this.timing=d;this.N=A;this.T=[];this.C={};this.AM=this.St=!1;this.ix=new Set;this.j=this.Cx=this.J=this.gP=0;this.B=null;this.lT={yO:[],fH:[]};this.jt={yO:[],fH:[]};this.K=null;this.Kx=[];this.lM={hfj:function(){return P.T}, pZL:function(){return P.C}, YeM:function(){P.T.length=0}, c6z:function(){return P.ix}, r6L:function(){return P.J}, rXj:function(G){P.J=G}, yXj:function(G){P.j=G}, d2:function(G){P.K=G}}; this.videoData=this.vz.getVideoData();this.policy.Kn&&(this.hM=new Ez(this.loader,this.policy,this.Og),g.w(this,this.hM))}; xUp=function(a,l){l=l===void 0?!1:l;if(EW5(a)){a.policy.C&&a.loader.Tu("sabrcrq",{create:1});var m=new rU(0,a.Vg.J,a);a.policy.Be>0&&a.j++;l=oWl(a,m,l);a.T.push(l);var T;(T=a.hM)==null||iR5(T,a.Vg.J)}}; YSH=function(a,l){var m=DUz(a);if(a.policy.kN){var T=a.lT;var y=a.jt}else T=WQ(a,a.audioTrack),y=WQ(a,a.videoTrack);var R=[].concat(g.F(T.yO),g.F(y.yO));a.policy.yg&&a.K&&R.push.apply(R,g.F(a.Kx));var H=[].concat(g.F(T.fH),g.F(y.fH)),b=a.loader.f4(),M,d,A=a.vz,P=a.Vg,G=a.L,V=a.ix,p=a.policy,L=a.loader.Vf,N=pSb(a.loader)*1E3,e=(M=a.qj)==null?void 0:M.QB;M=(d=a.qj)==null?void 0:d.XI;var t;d=Number((t=a.Z.j)==null?void 0:t.info.itag)||0;var v;t=Number((v=a.Z.K)==null?void 0:v.info.itag)||0;l={vz:A,Vg:P, yO:R,fH:H,Kb:m,nextRequestPolicy:G,ix:V,l0:p,Vf:L,aD:N,QB:e,XI:M,gP:a.gP,isPrefetch:l||a.loader.isSuspended,QW:d,py:t,SA:b,mG:a.vz.U_()};m=a.loader.Yk();R=ij(m);m&&(l.cw=R);if(m=a.vz.sM())l.pz=m*1E3;var S;m=a.Z;R=m.Ij;if(((S=m.l0)==null?0:pg(S))&&!R)for(S=g.c(m.Z),H=S.next();!H.done;H=S.next())if(H.value.WF){R=!0;break}S=pg(m.l0)&&!R?[]:hVd(m,m.Z);l.KP=S;S=a.Z;pg(S.l0)&&!S.lT?S=[]:(m=feH(S),m.length===0&&(m=S.B),S=hVd(S,m));l.xG=S;l.FE=a.policy.yg&&a.K?[a.K]:void 0;a.policy.TT&&(l.Oy=uUd(a.loader, a.audioTrack),l.ib=uUd(a.loader,a.videoTrack));if(a.policy.Z){if(a.policy.kU){S=a.loader.getCurrentTime();var n=ku(a,T.yO,S);T=ku(a,y.yO,S);var X;y=(X=a.B)==null?void 0:X.Yg(Math.min(n,T))}else X=XVR(a,T.yO,y.yO),y=(n=a.B)==null?void 0:n.Yg(X);y&&(l.W7=y)}a.policy.N&&a.T.length>0&&a.T[0].HG()&&(l.wX=a.T[0].Wc());return l}; DUz=function(a){var l,m=a.policy.K&&((l=a.loader)==null?void 0:l.Hj());l=a.loader.getCurrentTime()||0;l=UUH(a,l);var T=a.loader.YX()||0;l+=T;T=KK(a.videoData)||g.On(a.videoData);var y=0;m?(T&&(y=Number.MAX_SAFE_INTEGER),a.videoData.Ij&&(y=Math.ceil(a.videoData.jt*1E3))):y=Math.ceil(l*1E3);return Math.min(Number.MAX_SAFE_INTEGER,y)}; UUH=function(a,l){if(a.loader.isSeeking())return l;var m=a.vz.TE();if(!m)return l;m=m.dL();if(m.length===0||iH(m,l))return l;if(!kC(a.videoTrack,l)&&!kC(a.audioTrack,l))return a.loader.Tu("sundrn",{b:0,lt:l}),l;for(var T=l,y=Infinity,R=0;Rl)){var H=l-m.end(R);H=20)?(a.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),l):T}; XVR=function(a,l,m){var T=a.loader.getCurrentTime()||0;l=ku(a,l,T);a=ku(a,m,T);return Math.min(l,a)}; ku=function(a,l,m){var T=a.loader.YX()||0;if(a.policy.kU)return reb(l,(m+T)*1E3)/1E3+m;a=g.c(l);for(l=a.next();!l.done;l=a.next()){var y=l.value;l=y.startTimeMs?y.startTimeMs/1E3-T:0;y=l+(y.durationMs?y.durationMs/1E3:0);if(l<=m&&m<=y)return y}return m}; EW5=function(a){if(a.policy.Be>0){var l=Math.floor((0,g.E)()/1E4);if(l===a.Cx){if(a.j>=a.policy.Be){if(a.j===a.policy.Be){var m={reason:"toomanyrequests"};m.limit=a.j;a.loader.handleError("player.exception",m);a.j+=1}return!1}}else a.Cx=l,a.j=0}if(a.loader.isSuspended&&a.loader.GT)return!1;if(a.Ij&&(0,g.E)()0&&(!a.policy.N||a.T.length!==1||!a.T[0].HG()))return!1;var T;if((T=a.Vg.J)==null||!sq(T,a.policy,a.C,a.loader.gT())||fH(a.audioTrack)&&fH(a.videoTrack))return!1; if(nW(a,a.audioTrack)&&nW(a,a.videoTrack))return a.policy.L&&a.loader.Tu("sabrHeap",{a:""+KH(a.audioTrack),v:""+KH(a.videoTrack)}),!1;if(l=a.policy.Z){l=!1;if(a.N.L===2)l=!0;else if(a.N.L===3){DUz(a);a.loader.YX();T=XVR(a,Fk(a.audioTrack,a.loader.isSeeking()).yO,Fk(a.videoTrack,a.loader.isSeeking()).yO);var y=a.N;T>=y.K?(y.Tu("sdai",{haltrq:T,est:y.K}),T=!0):T=!1;T&&(l=!0)}l&&a.policy.C&&a.loader.Tu("sabrcrq",{waitad:1})}if(l)return!1;a.policy.kN&&(a.lT=WQ(a,a.audioTrack),a.jt=WQ(a,a.videoTrack)); if(!a.L)return a.policy.C&&a.loader.Tu("sabrcrq",{nopolicy:1}),!0;if(a.vz.sM())return a.policy.C&&a.loader.Tu("sabrcrq",{utc:1}),!0;if(a.Z.J)return a.policy.C&&a.loader.Tu("sabrcrq",{audio:1}),!0;if(!a.L.targetAudioReadaheadMs||!a.L.targetVideoReadaheadMs)return a.policy.C&&a.loader.Tu("sabrcrq",{noreadahead:1}),!0;if(a.policy.K&&a.loader.Hj())return a.policy.C&&a.loader.Tu("sabrcrq",{seekToHead:1}),!0;l=Math.min(kL(a.loader,a.audioTrack)*1E3,a.L.targetAudioReadaheadMs);T=Math.min(kL(a.loader,a.videoTrack)* 1E3,a.L.targetVideoReadaheadMs);var R=Math.min(l,T);y=vB(a.audioTrack,!0)*1E3;var H=vB(a.videoTrack,!0)*1E3;if(a.policy.kN){var b=a.vz.getCurrentTime()*1E3;var M=reb(a.lT.yO,b);b=reb(a.jt.yO,b)}else M=y,b=H;var d=Ml||T>=0&&y.wl>T+1)break;m=Math.max(m,y.startTimeMs+y.durationMs);T=Math.max(T,y.H$)}return Math.max(0,m-l)}; oWl=function(a,l,m){var T={Og:a.Og,UJ:function(M,d){a.vz.T1(M,d)}, EZ:a.policy.Wd,nM:a.policy.L};a.Og.L.C&&(T.WV=(a.videoTrack.T.info.Nj||0)+(a.audioTrack.T.info.Nj||0));a.policy.Gz&&(T.Ca=a.audioTrack.T.index.us(),T.EZ=!1);var y=kIP(l,a.policy,a.C)?2:1;y!==a.J&&(a.J=y,l6d(a));m=YSH(a,m);if(a.policy.N&&a.policy.L&&m.ix){for(var R=y="",H=g.c(m.ix),b=H.next();!b.done;b=H.next())b=b.value,a.videoData.sabrContextUpdates.has(b)||a.policy.N&&m.wX&&m.wX.type===b?y+="_"+b:R+="_"+b;a.loader.Tu("sabrbldrqs",{ctxts:y,misctxts:R})}!l.setData(m,a.policy,a.C)&&a.policy.N&&a.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);T=new vz(a.policy,l,a.Vg,a.C,a,T,a.loader.hx());$z(a.timing);a.policy.C&&a.loader.Tu("sabrcrq",{rn:T.j7(),probe:l.Ik()});return T}; Ir=function(a,l){if(l.FO()||a.FO())a.policy.Ln||(a.policy.K?wi(a.loader):a.loader.qI());else{if(a.policy.L&&l.isComplete()&&l instanceof vz){var m=a.loader,T=m.Tu,y,R,H=Object.assign(l.NN.Vh(),{rst:l.state,strm:l.xhr.kE(),d:(y=l.NN.hM)==null?void 0:y.N2(),cncl:l.xhr&&l.CR.j?1:0,rqb:l.hk,cwt:l.y9,swt:(R=l.xb)==null?void 0:R.Ev});y=Object.assign(IeQ(l.info),H);T.call(m,"rqs",y)}if(l.isComplete()&&l.Ik()&&l instanceof vz)a.policy.wW?l.Jg()?(l.dispose(),a.T.length===0?a.loader.qI():(a=a.T[0],a instanceof vz&&a.t5()&&a.pp())):l.BV()&&a.loader.handleError(l.YA(),l.lY()):(l.dispose(),a.loader.qI());else{if(l.Wp())l instanceof vz&&ON7(a.timing,l),l6d(a),mfb(a);else if(l.BV())m=a.vz.sM(),l instanceof vz&&wS7(l.info)&&m&&a.loader.So(m),l instanceof pW?a.T.pop():(m=1,l.canRetry()&&QTt(a.loader)&&(Tnd(a,l),m=0),a.loader.handleError(l.YA(),l.lY(),m));else{if(a.loader.isSuspended&&!l.isComplete())return;mfb(a)}l.FO()||l instanceof pW||(l.isComplete()?m=A$d(l,a.policy,a.C):(m=jTb(l,a.policy,a.C),m===1&&(a.St= !0)),m!==0&&(T=new rU(1,l.info.DR),T.H4=m===2,oWl(a,T)));a.policy.SW&&!l.isComplete()?N1H(a.loader):a.loader.qI()}}}; mfb=function(a){for(;a.T.length&&a.T[0].TU(a.f$());){var l=a.T.shift();yUH(a,l)}a.T.length&&yUH(a,a.T[0])}; yUH=function(a,l){var m=new Set(l.YB(a.f$()));m=g.c(m);for(var T=m.next();!T.done;T=m.next()){var y=T.value;if(!(T=!(l instanceof pW))){T=a.Z;var R=T.Vg.Fl,H=Uz(T.videoInfos,R);R=Sl3(T,y,R);var b=H.includes(y);!T.l0.FA||R||b||T.loader.Tu("sabrcpf",{fid:""+y,vfids:""+H.join("."),said:T.C||""});T=R||H.includes(y)}if(T&&(T=l.Ut(y,a.f$()),H=a.policy.yg&&Ry(T[0].T.info.mimeType),(!(!H&&a.policy.vr&&T.length>0&&(T[0].T.info.q2()?vB(a.audioTrack):vB(a.videoTrack))>3)||l.isComplete())&&l.B7(y,a.f$())))for(y= l.HV(y,a.f$()),y=g.c(y),R=y.next();!R.done;R=y.next())if(R=R.value,a.policy.L&&l instanceof pW&&a.loader.Tu("omblss",{s:R.info.LR()}),H)b=a,b.videoData.Fl()&&b.K&&S4(b.K)===S4(g.mH(R.info.T.info,b.Vg.Fl))&&b.vz.publish("sabrCaptionsDataLoaded",R,b.R5.bind(b));else{b=R.info.T.info.q2();var M=R.info.T;if(b){var d=void 0;var A=a.Z,P=(d=l.Sz(a.f$()))==null?void 0:d.token;A.J&&M!==A.K?d=!0:(A.J=!1,M!==A.K&&(A.K=M,A.qQ(M,A.audioTrack,P)),d=!1);if(d)continue}else d=void 0,Fkp(a.Z,M,(d=l.Sz(a.f$()))==null? void 0:d.token);d=b?a.audioTrack:a.videoTrack;l instanceof pW&&(d.B=!1,l instanceof pW&&(b?Li7(a.timing):ci7(a.timing)));try{eZ(d,T,R)}catch(G){R=zM(G),a.loader.handleError(R.errorCode,R.details,R.severity),d.A$(),a.JX(!1,"pushSlice"),wi(a.loader)}}}}; Tnd=function(a,l){a.policy.N?a.T.splice(a.T.indexOf(l)).forEach(function(m){m.dispose()}):(a.T.pop(),l==null||l.dispose())}; RZt=function(a,l,m){for(var T=[],y=0;y0)for(var l=g.c(a.videoData.sabrContextUpdates.keys()),m=l.next();!m.done;m=l.next()){m=m.value;var T=void 0;((T=a.videoData.sabrContextUpdates.get(m))==null?0:T.sendByDefault)&&a.ix.add(m)}if(a.policy.N&&a.T.length)for(l=g.c(a.T),m=l.next();!m.done;m=l.next())(m=m.value.Wc())&&m.type&&m.sendByDefault&&a.ix.add(m.type)}; HKz=function(a){a.policy.tN&&(a.qj=void 0,a.gP=0)}; qnz=function(a,l){if(l.BV()||l.FO()){var m=a.loader,T=m.Tu,y=l.state;a=a.f$();var R,H;if((l=(R=l.Zu)==null?void 0:R.get(a))==null)l=void 0;else{R=0;a=l.YB();for(var b=0;b=a.policy.ew,H=!1;if(R){var b=0;!isNaN(l)&&l>a.K&&(b=l-a.K,a.K=l);b/y=a.policy.n_&&!a.Z;if(!R&&!m&&dfl(a,l))return NaN;m&&(a.Z=!0);a:{T=H;m=(0,g.E)()/1E3-(a.S1.Xc()||0)-a.B.T-a.policy.Eg;R=a.L.startTime;m=R+m;if(T){if(isNaN(l)){CW(a,NaN,"n",l);R=NaN;break a}T=l-a.policy.Ng;T=R.j&&T<=R.C){T=!0;break a}T=!1}T=!T}if(T)return a.Tu("ostmf",{ct:a.getCurrentTime(),a:l.T.info.q2()}),!1;(a=a.lT)!=null&&(a.Sx.get(m).z5=!0);return!0}; ZK5=function(a){if(!a.Vg.Fl)return!0;var l=a.vz.getVideoData();if(a.vz.Pu())return a.Tu("ombpa",{}),!1;var m,T;if(a.policy.Jl&&!!((m=a.N)==null?0:(T=m.ye)==null?0:T.Mbt)!==a.Vg.mx)return a.Tu("ombplmm",{}),!1;m=l.lZ||l.liveUtcStartSeconds||l.wO;if(a.Vg.mx&&m)return a.Tu("ombplst",{}),!1;if(a.Vg.N)return a.Tu("ombab",{}),!1;m=Date.now();return J8(a.Vg)&&!isNaN(a.jt)&&m-a.jt>a.policy.b7*1E3?(a.Tu("ombttl",{}),!1):a.Vg.sQ&&a.Vg.j||!a.policy.Nz&&a.Vg.isPremiere||!(pK(l)===0||a.policy.T&&l.V("html5_enable_onesie_media_for_sabr_proxima_optin"))|| l.V("html5_disable_onesie_media_for_mosaic")&&En(l)||l.WN()&&!l.V("html5_enable_onesie_media_for_lifa")&&l.isDaiEnabled()&&l.enableServerStitchedDai||l.V("html5_disable_onesie_media_for_lifa_eligible")&&CK(l)?!1:!0}; W35=function(a,l){var m=l.T,T=a.Vg.Fl;if(ZK5(a))if(a.lT&&a.lT.Sx.has(S4(g.mH(m.info,T)))){if(T=S4(g.mH(m.info,T)),p97(a,l)){var y=new uD(a.lT.Ut(T)),R=function(H){try{if(H.BV())a.handleError(H.YA(),H.lY()),SZ(l,H),Y4(H.info)&&D3(a.K,l,m,!0),a.qI();else if(c$P(a.K,H)){var b;(b=a.L)==null||sGz(b,H.info,a.Ij);a.qI()}}catch(M){H=zM(M),a.handleError(H.errorCode,H.details,H.severity),a.A$()}}; m.Z=!0;Xr(y)&&(t2(l,new Sv(a.policy,T,y,a.lT,R)),$z(a.timing))}}else a.Tu("ombfmt",{})}; cUH=function(a,l){l=l||a.videoTrack&&a.videoTrack.L&&a.videoTrack.L.startTime||a.getCurrentTime();var m=uz,T=a.videoTrack,y=a.T;l=y.nextVideo&&y.nextVideo.index.l$(l)||0;y.qj!==l&&(y.Kx={},y.qj=l,Yz(y,y.T));l=!y.T.isLocked()&&y.N>-1&&(0,g.E)()-y.Nl.T&&l.reason==="b";T||y||m?(a.vz.Oe({reattachOnConstraint:T?"u":y?"drm":"perf",lo:l.L,up:l.T}),a.policy.JV||(a.Z.T.L=!1)):(a.policy.JV&&(a.Z.T.L=!1),wi(a))}}else if(!xAz(a.T,l)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+l.reason+" u="+l.T}); m=a.T.T;F3H(a,urp(a.T,l));cUH(a);T=l.isLocked()&&l.reason==="m"&&a.T.lT;y=a.policy.WE&&l.reason==="l"&&J2(a.videoTrack);m=m.T>l.T&&l.reason==="b";var R=a.T.Mj&&!oy();T||y||m||R?a.vz.Oe({reattachOnConstraint:T?"u":y?"drm":R?"codec":"perf"}):wi(a)}}; OKP=function(a,l,m){if((!a.Wz||uH(a.Wz)&&!a.policy.lh)&&!a.wL.isSeeking()&&(a.policy.T||J2(l)&&l.T.Du()&&a.T.Ij)){var T=a.getCurrentTime()+nVw(a.J,l,m);a.logger.debug(function(){return"Clearing back to "+T.toFixed(3)}); XKl(l,T)}}; F3H=function(a,l){l&&(a.logger.debug(function(){return"Logging new format: "+qi(l.video.info)}),K37(a.vz,new Iv(l.video,l.reason))); if(a.T.tM){var m=riH(a.T,"a");a.vz.U6(new Iv(m.audio,m.reason))}}; wi=function(a){g.l0(a.ZR)}; N1H=function(a){a.policy.SW&&a.policy.qd&&Math.min(uip(a.videoTrack),uip(a.audioTrack))*1E3>a.policy.rD?g.l0(a.lZ):a.qI()}; zZp=function(a,l){var m=(0,g.E)()-l,T=vB(a.audioTrack,!0)*1E3,y=vB(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+m}); if(a.policy.L&&(a.Tu("apdpe",{dur:m.toFixed(),abuf:T.toFixed(),vbuf:y.toFixed()}),Ie(a.policy))){var R=zp(a.J);a.Tu("sdps",{ct:l,ah:T.toFixed(),vh:y.toFixed(),mr:vR(a.J,a.le,R),bw:R.toFixed(),js:a.isSeeking(),re:+a.le,ps:(a.policy.yV||"").toString(),rn:(a.policy.cm||"").toString()})}}; vw3=function(a){if(mql(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.St&&nH(a.videoTrack)&&nH(a.audioTrack))return"updateEnd";if(fH(a.audioTrack)||fH(a.videoTrack)&&a.videoTrack.T.info.Gu!=="f")return"";if(a.wL.isSeeking()){var l=a.J;var m=a.videoTrack;var T=a.audioTrack;if(l.policy.T){var y=l.policy.Xt;Ie(l.policy)&&(y=vR(l,!1,zp(l)));l=y;m=vB(T,!0)>=l&&vB(m,!0)>=l}else m.Z.length||T.Z.length?(y=m.T.info.Nj+T.T.info.Nj,y=10*(1-zp(l)/y),l=Math.max(y, l.policy.Xt),m=vB(T,!0)>=l&&vB(m,!0)>=l):m=!0;if(!m)return"abr";m=a.videoTrack;if(m.Z.length>0&&m.j.L.length===1&&QbQ(m.j).info.B360);T=Ie(a.policy)&&a.policy.sZ;if(!a.le||!T&&m)return"";m=a.policy.dl;Ie(a.policy)&&(m=vR(a.J,a.le,zp(a.J)));m=UOz(a.videoTrack,a.getCurrentTime(),m)||UOz(a.audioTrack,a.getCurrentTime(), m);return Ie(a.policy)?m?"mbnm":"":(a.videoTrack.Z.length>0||a.audioTrack.Z.length>0||xC(a.K,a.videoTrack,a.audioTrack)||xC(a.K,a.audioTrack,a.videoTrack))&&m?"nord":""}; $fz=function(a){if(a.B){var l=a.B.qI(a.audioTrack,jy(a.Wz.L.PY()));l&&a.vz.seekTo(l,{uO:!0,hW:"pollSubsegmentReadahead",hK:!0})}}; nww=function(a,l,m){if(a.policy.St&&nH(l))return!1;if(m.uP())return!0;if(!m.WX())return!1;var T=E7(l);if(!T||T.info.type===6)return!1;var y;if(a.policy.uD||((y=a.L)==null?0:BHt(y,l,T.info.mN)))a.Kx=0;else return a.wL.isSeeking()&&wi(a),a.Kx=a.Kx||(0,g.E)(),!1;if(!Ev(a,l,m,T.info))return!1;if(a.Vg.L&&T.info.L===0){if(y=sY7(l,m,T)){var R=QO(l);a.Tu("initchg",{it:T.info.T.info.id,sr:!!R&&R.T===T.info.T,ty:T.info.type,seg:T.info.mN})}R=g.ay(T.info.T.info);a.policy.nR&&R&&!y&&IgR(T)}R=a.B&&!!a.B.j&&l.T.info.audio; y=a.Vg.isManifestless||T.K;if(!(a.Vg.L&&T.info.L!==0||y&&!R)&&Snp(a,l,m,T))return!0;if(R)return!1;R=kL(a,l);R=a.getCurrentTime()+R;if(T.info.j>R)return a.policy.T&&f6t(a,l),a.policy.C8&&al7(l.j,R,!1),!1;JU3(a,l);var H;a.policy.OQ&&m===((H=a.Wz)==null?void 0:H.T)&&a.wb&&(m.M$()===0?(a.wb=!1,a.policy.OQ=!1):a.rb=m.M$());if(!Bnl(a,m,T,l))return!1;a.policy.St&&T.info.Kh()?(a.vz.Y().bZ()&&a.Tu("eosl",{ls:T.info.LR()}),T.isLocked=!0):(l.P5(T),UAt(a.T,T.info),a.logger.debug(function(){return"Appended "+ T.info.LR()+", buffered: "+gV(m.PY())})); y&&kj3(a,T.info.T.bG);return!0}; f6t=function(a,l){l===a.videoTrack?a.Cx=a.Cx||(0,g.E)():a.hM=a.hM||(0,g.E)()}; JU3=function(a,l){l===a.videoTrack?a.Cx=0:a.hM=0}; Bnl=function(a,l,m,T){var y=a.policy.uZ?(0,g.E)():0,R=m.K&&m.info.T.T||void 0,H=m.T;m.K&&(H=w9p(a,m,H)||H);var b=H.e$();H=a.policy.uZ?(0,g.E)():0;l=I65(a,l,b,m.info,R);(T=T.N)!=null&&(R=m.info,y=H-y,H=(0,g.E)()-H,!T.L||HT5(T.L,R)&&T.L.mN===R.mN||T.flush(),T.j+=y,T.Z+=H,y=1,!T.L&&R.L&&(y=2),Tq(T,y,l),H=Math.ceil(R.L/1024),y===2&&T.T.add(H),T.T.add(Math.ceil((R.L+R.Z)/1024)-H),T.L=R);a.qj=0;if(l===0)return a.AM&&(a.logger.debug("Retry succeed, back to normal append logic."),a.AM=!1,a.vF=!1),a.yg=0, !0;if(l===2||l===5)return C97(a,"checked",l,m.info),!1;if(l===1){if(!a.AM)return a.logger.debug("QuotaExceeded, retrying."),a.AM=!0,!1;if(!a.vF)return a.vF=!0,a.vz.seekTo(a.getCurrentTime(),{hW:"quotaExceeded",hK:!0}),!1;m.info.YN()?(y=a.policy,y.Cx=Math.floor(y.Cx*.8),y.jt=Math.floor(y.jt*.8)):(y=a.policy,y.rb=Math.floor(y.rb*.8),y.jt=Math.floor(y.jt*.8));a.policy.T?Eo(a.Z.T,m.info.T,!1):rW(a.T,m.info.T)}a.vz.Oe({reattachOnAppend:l});return!1}; w9p=function(a,l,m){var T;if(T=a.policy.JH&&a.Wz&&!a.Wz.J&&!a.vz.aX())l=l.info.T.info,T=l.n5()&&DQ(l)&&l.video&&l.video.width<3840&&l.video.width>l.video.height;if(T&&(a.Wz.J=!0,SS('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return m=LYl(m),a.policy.L&&a.Tu("sp4k",{s:!!m}),m}; C97=function(a,l,m,T){var y="fmt.unplayable",R=1;m===5||m===3?(y="fmt.unparseable",a.policy.T?!T.T.info.video||ov(a.Z.T).size>0||Eo(a.Z.T,T.T,!1):!T.T.info.video||ov(a.T.K).size>0||rW(a.T,T.T)):m===2&&(a.yg<15?(a.yg++,y="html5.invalidstate",R=0):y="fmt.unplayable");T=x4(T);var H;T.mrs=(H=a.Wz)==null?void 0:rV(H);T.origin=l;T.reason=m;a.handleError(y,T,R)}; kUz=function(a,l,m,T,y){var R=a.Vg;var H=a.policy.T,b=!1,M=-1,d;for(d in R.T){var A=Ry(R.T[d].info.mimeType)||R.T[d].info.YN();if(T===A)if(A=R.T[d].index,A.Hu(l.mN)){b=A;var P=l,G=b.xk(P.mN);G&&G.startTime!==P.startTime?(b.segments=[],b.Mq(P),b=!0):b=!1;b?M=l.mN:!l.pending&&H&&(P=A.getDuration(l.mN),P!==l.duration&&(R.publish("clienttemp","mfldurUpdate",{itag:R.T[d].info.itag,seg:l.mN,od:P,nd:l.duration},!1),A.Mq(l),b=!0))}else A.Mq(l),b=!0}M>=0&&(H={},R.publish("clienttemp","resetMflIndex",(H[T? "v":"a"]=M,H),!1));R=b;yPp(a.wL,l,T,R);a.L.e_(l,m,T,y);if(a.policy.im&&m){var V;(V=a.tN)!=null&&V.Z.set(l.mN,m)}l.mN===a.Vg.sQ&&R&&vK(a.Vg)&&l.startTime>vK(a.Vg)&&(a.Vg.jt=l.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),a.wL.isSeeking()&&a.wL.T 5)return a.qj=0,a.vz.Oe({initSegStuck:1,as:T.info.LR()}),!0}else a.qj=0,a.QO=T;a.policy.Kf&&(m.abort(),(H=l.N)!=null&&(Tq(H,4),H.flush()));y=I65(a,m,R,M,y);var d;(d=l.N)==null||qjt(d,y,M);if(y!==0)return EwH(a,y,T),!0;T.info.YN()?t43(a.timing):ekP(a.timing);a.logger.debug(function(){return"Appended init for "+T.info.T.info.id}); kj3(a,T.info.T.bG);return m.C_()}; sY7=function(a,l,m){if(l.vt()==null){a=QO(a);if(!(l=!a||a.T!==m.info.T)){a:if(a=a.N,m=m.info.N,a.length!==m.length)m=!1;else{for(l=0;l1)return 6;H.Kx=new g.aH(function(){var b=E7(H);a.FO()||b==null||!b.isLocked?a.vz.Y().bZ()&&a.Tu("eosl",{delayA:b==null?void 0:b.info.LR()}):owp(H)?(a.vz.Y().bZ()&&a.Tu("eosl",{dunlock:b==null?void 0:b.info.LR()}),xfb(a,H===a.audioTrack)):(a.Tu("nue",{ls:b.info.LR()}),b.info.Ij+=1,a.Wz&&a.J3())},1E4,a); a.vz.Y().bZ()&&a.Tu("eosl",{delayS:T.LR()});H.Kx.start()}a.policy.Wg&&(T==null?void 0:T.T)instanceof rH&&T.Kh()&&a.Tu("poseos",{itag:T.T.info.itag,seg:T.mN,lseg:T.T.index.HN(),es:T.T.index.Z});l.appendBuffer(m,T,y)}catch(b){if(b instanceof DOMException){if(b.code===11)return 2;if(b.code===12)return 5;if(b.code===22||b.message.indexOf("Not enough storage")===0)return l=Object.assign({name:"QuotaExceededError",buffered:gV(l.PY()).replace(/,/g,"_"),vheap:KH(a.videoTrack),aheap:KH(a.audioTrack),message:g.yT(b.message, 3),track:a.Wz?l===a.Wz.L?"v":"a":"u"},P97(a.policy.f9)),a.handleError("player.exception",l),1;g.kt(b)}return 4}return a.Wz.gL()?3:0}; CO=function(a,l,m){a.vz.seekTo(l,m)}; kj3=function(a,l){l&&a.vz.O6(new iz(l.key,l.type))}; PB=function(a,l){a.vz.oE(l)}; kL=function(a,l){if(a.AM&&!a.le)return 3;if(a.isSuspended)return 1;var m;if((m=a.Wz)==null?0:m.Wz&&m.Wz.streaming===!1)return 4;m=(l.T.info.audio?a.policy.rb:a.policy.Cx)/(l.Nj*a.policy.aH);if(a.policy.CY>0&&a.Wz&&uH(a.Wz)&&(l=l.T.info.video?a.Wz.L:a.Wz.T)&&!l.C_()){l=l.PY();var T=Mi(l,a.getCurrentTime());T>=0&&(l=a.getCurrentTime()-l.start(T),m+=Math.max(0,Math.min(l-a.policy.CY,a.policy.aP)))}a.policy.jt>0&&(m=Math.min(m,a.policy.jt));return m}; uUd=function(a,l){return(kL(a,l)+a.policy.GP)*l.Nj}; uFl=function(a){a.Mj&&!a.isSuspended&&ed(a.schedule)&&(Dfb(a,a.Mj),a.Mj="")}; Dfb=function(a,l){FV(l,"cms",function(m){a.policy.L&&a.Tu("pathprobe",m)},function(m){a.vz.handleError(m)})}; X97=function(a,l){if(a.Wz&&a.Wz.j&&!a.Wz.gL()&&(l.Yw=vB(a.videoTrack),l.L=vB(a.audioTrack),a.policy.L)){var m=KH(a.videoTrack),T=KH(a.audioTrack),y=gV(a.Wz.L.PY(),"_",5),R=gV(a.Wz.T.PY(),"_",5);Object.assign(l.T,{lvq:m,laq:T,lvb:y,lab:R})}l.bandwidthEstimate=O7(a.J);var H;(H=a.audioTrack.N)==null||H.flush();var b;(b=a.videoTrack.N)==null||b.flush();a.logger.debug(function(){return hS(l.T)})}; Yn3=function(a,l){a.Ij=l;a.L&&(a.L.Z=l);a.Ij.Dw(a.videoTrack.T.info.n5());a.K.L=a.Ij;a.policy.Z&&(a.j.B=a.Ij)}; lab=function(a,l){if(a.Wz&&a.Wz.L){if(a.policy.MF){var m=RVb(a.audioTrack);if(m&&m.q2()){var T=a.vz;if(T.n9&&(T.n9.T=m,m=T.R0(T.n9.videoId),m.qoe)){m=m.qoe;T=T.n9;var y=g.Dw(m.provider);Uf5(m,y,T)}}}a.policy.XV&&(m=RVb(a.videoTrack))&&m.YN()&&(T=a.vz,T.qq&&(T.qq.T=m,m=T.R0(T.qq.videoId),m.qoe&&rU7(m.qoe,T.qq)));l-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==l&&a.resume();a.wL.isSeeking()&&a.Wz&&!a.Wz.gL()&&(T=a.getCurrentTime()<=l&&l=0&&R1?b.L[0]=l&&GjR(a,T.startTime,!1)}); return m&&m.startTimea.getCurrentTime())return m.start/1E3;return Infinity}; a6Q=function(a){if(a.vz.getVideoData().isLivePlayback)return!1;var l=a.vz.TE();if(!l)return!1;l=l.getDuration();if(a.Wz&&a.Wz.T&&a.Wz.L){var m=a.getCurrentTime(),T=a.Wz.T.PY();a=a.Wz.L.PY();T=T?dV(T,m):m;m=a?dV(a,m):m;m=Math.min(T,m);l=isNaN(m)?!1:m>=l-.01}else l=!1;return l}; EwH=function(a,l,m){a.policy.rI&&qf(a.vz.getVideoData())?(a.vz.xQ()||C97(a,"sepInit",l,m.info),Hqt(a.vz,"sie")):C97(a,"sepInit",l,m.info)}; QTt=function(a){return a.vz.gT()0){var y=T.T.shift();bq7(T,y.info)}T.T.length>0&&(y=T.T[0].time-(0,g.E)(),T.L.start(Math.max(0,y)))}},0); g.w(this,this.L);l.subscribe("widevine_set_need_key_info",this.K,this)}; bq7=function(a,l){a:{var m=l.cryptoPeriodIndex;if(isNaN(m)&&a.Z.size>0)m=!0;else{for(var T=g.c(a.Z.values()),y=T.next();!y.done;y=T.next())if(y.value.cryptoPeriodIndex===m){m=!0;break a}m=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:m});m||a.publish("rotated_need_key_info_ready",l)}; g77=function(){var a={};var l=a.url;var m=a.interval;a=a.retries;this.url=l;this.interval=m;this.retries=a}; M37=function(a,l){this.statusCode=a;this.message=l;this.L=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; iqP=function(a,l,m){m=m===void 0?"":m;g.k.call(this);this.message=a;this.requestNumber=l;this.Jb=m;this.onError=this.onSuccess=null;this.T=new g.w9(5E3,2E4,.2)}; dh5=function(a,l,m){a.onSuccess=l;a.onError=m}; pB7=function(a,l,m,T){var y={timeout:3E4,onSuccess:function(R){if(!a.FO()){C$("drm_net_r",void 0,a.Jb);var H=R.status==="LICENSE_STATUS_OK"?0:9999,b=null;if(R.license)try{b=Rl(R.license)}catch(p){g.kt(p)}if(H!==0||b){b=new M37(H,b);H!==0&&R.reason&&(b.errorMessage=R.reason);if(R.authorizedFormats){H={};for(var M=[],d={},A=g.c(R.authorizedFormats),P=A.next();!P.done;P=A.next())if(P=P.value,P.trackType&&P.keyId){var G=jpz[P.trackType];if(G){G==="HD"&&R.isHd720&&(G="HD720");P.isHdr&&(G+="HDR");H[G]|| (M.push(G),H[G]=!0);var V=null;try{V=Rl(P.keyId)}catch(p){g.kt(p)}V&&(d[g.Tf(V,4)]=G)}}b.L=M;b.T=d}R.nextFairplayKeyId&&(b.nextFairplayKeyId=R.nextFairplayKeyId);R.sabrLicenseConstraint&&(b.sabrLicenseConstraint=Rl(R.sabrLicenseConstraint));R=b}else R=null;if(R)a.onSuccess(R,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}}, onError:function(R){if(!a.FO())if(R&&R.error)R=R.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+R.code+";s."+R.status,R.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}}; T&&(y.gx="Bearer "+T);g.yM(m,"player/get_drm_license",l,y)}; ZHH=function(a,l,m,T){g.Aj.call(this);this.videoData=a;this.aj=l;this.J=m;this.sessionId=T;this.K={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Ij=this.lT=!1;this.Z=null;this.jt=[];this.j=[];this.nh=[];this.B=!1;this.T={};this.status="";this.C=NaN;this.L=a.K;this.cryptoPeriodIndex=m.cryptoPeriodIndex;a={};Object.assign(a,this.aj.T);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.qj&&(a.vvt=this.videoData.qj,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment)); this.aj.jt&&(a.authuser=this.aj.jt);this.aj.pageId&&(a.pageid=this.aj.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var y=(y=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.ej()))?y[1]:"";y==="ATV"&&(a.cdt=y);this.K=a;this.K.session_id=T;this.N=!0;this.L.flavor==="widevine"&&(this.K.hdr="1");this.L.flavor==="playready"&&(l=Number(HS(l.experiments,"playready_first_play_expiration")),!isNaN(l)&&l>=0&&(this.K.mfpe=""+l),this.N=!1);l="";g.Yi(this.L)?Xi(this.L)?(T=m.L)&&(l="https://www.youtube.com/api/drm/fps?ek="+ zMl(T)):(l=m.initData.subarray(4),l=new Uint16Array(l.buffer,l.byteOffset,l.byteLength/2),l=String.fromCharCode.apply(null,l).replace("skd://","https://")):l=this.L.L;this.baseUrl=l;this.fairplayKeyId=Jd(this.baseUrl,"ek")||"";if(l=Jd(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(l);this.jt=m.n5?[g.Tf(m.initData,4)]:m.Z;ri(this,{sessioninit:m.cryptoPeriodIndex});this.status="in"}; NU7=function(a,l){ri(a,{createkeysession:1});a.status="gr";C$("drm_gk_s",void 0,a.videoData.N);a.url=Wj5(a);try{a.Z=l.createSession(a.J,function(m){ri(a,{m:m})})}catch(m){l="t.g"; m instanceof DOMException&&(l+=";c."+m.code);a.publish("licenseerror","drm.unavailable",1,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Z&&(c27(a.Z,function(m,T){Lj7(a,m,T)},function(m,T,y){if(!a.FO()){T=void 0; var R=1;g.Yi(a.L)&&g.kN(a.aj)&&a.aj.V("html5_enable_safari_fairplay")&&y===1212433232&&(T="ERROR_HDCP",R=a.aj.V("html5_safari_fairplay_ignore_hdcp")?0:R);a.error("drm.keyerror",R,m,T)}},function(){a.FO()||(ri(a,{onkyadd:1}),a.Ij||(a.publish("sessionready"),a.Ij=!0))},function(m){a.f6(m)}),g.w(a,a.Z))}; Wj5=function(a){var l=a.baseUrl;yjp(l)||a.error("drm.net",2,"t.x");if(!Jd(l,"fexp")){var m=["23898307","23914062","23916106","23883098"].filter(function(y){return a.aj.experiments.experiments[y]}); m.length>0&&(a.K.fexp=m.join())}m=g.c(Object.keys(a.K));for(var T=m.next();!T.done;T=m.next())T=T.value,l=RMH(l,T,a.K[T]);return l}; Lj7=function(a,l,m){if(!a.FO())if(l){ri(a,{onkmtyp:m});a.status="km";switch(m){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Qed(a,l);return;default:a.publish("ctmp","message_type",{t:m,l:l.byteLength})}a.lT||(C$("drm_gk_f",void 0,a.videoData.N),a.lT=!0,a.publish("newsession",a));if(xi(a.L)&&(l=tZ3(l),!l))return;l=new iqP(l,++a.requestNumber,a.videoData.N);dh5(l,function(T){eYd(a,T)},function(T,y,R){if(!a.FO()){var H=0; T.T.L>=3&&(H=1,y="drm.net.retryexhausted");ri(a,{onlcsrqerr:y,info:R});a.error(y,H,R);a.shouldRetry(Kw(H),T)&&Fjp(a,T)}}); g.w(a,l);hY5(a,l)}else a.error("drm.unavailable",1,"km.empty")}; Qed=function(a,l){ri(a,{sdpvrq:1});a.C=Date.now();if(a.L.flavor!=="widevine")a.error("drm.provision",1,"e.flavor;f."+a.L.flavor+";l."+l.byteLength);else{var m={cpn:a.videoData.clientPlaybackNonce};Object.assign(m,a.aj.T);m=g.S$("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",m);l={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, l)}),responseType:"arraybuffer"};g.$a(m,l,3,500).then(Oa(function(T){T=T.xhr;if(!a.FO()){T=new Uint8Array(T.response);var y=String.fromCharCode.apply(null,T);try{var R=JSON.parse(y)}catch(H){}R&&R.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),R=(Date.now()-a.C)/1E3,a.C=NaN,a.publish("ctmp","provs",{et:R.toFixed(3)}),a.Z&&a.Z.update(T)):(R=R&&R.error&&R.error.message,T="e.parse",R&&(T+=";m."+R),a.error("drm.provision",1,T))}}),Oa(function(T){a.FO()||a.error("drm.provision",1,"e."+T.errorCode+ ";c."+(T.xhr&&T.xhr.status))}))}}; aP=function(a){var l;if(l=a.N&&a.Z!=null)a=a.Z,l=!(!a.T||!a.T.keyStatuses);return l}; hY5=function(a,l){a.status="km";C$("drm_net_s",void 0,a.videoData.N);var m=new g.TG(a.aj.tO),T={context:g.Pj(m.config_||g.AJ())};T.drmSystem=OHQ[a.L.flavor];T.videoId=a.videoData.videoId;T.cpn=a.videoData.clientPlaybackNonce;T.sessionId=a.sessionId;T.licenseRequest=g.Tf(l.message);T.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(T.isKeyRotated=!0,T.cryptoPeriodIndex=a.cryptoPeriodIndex);var y,R,H=!!((y=a.videoData.L)==null?0:(R=y.video)==null?0:R.isHdr());T.drmVideoFeature=H?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(T.context&&T.context.client){if(y=a.aj.T)T.context.client.deviceMake=y.cbrand,T.context.client.deviceModel=y.cmodel,T.context.client.browserName=y.cbr,T.context.client.browserVersion=y.cbrver,T.context.client.osName=y.cos,T.context.client.osVersion=y.cosver;T.context.user=T.context.user||{};T.context.request=T.context.request||{};a.videoData.qj&&(T.context.user.credentialTransferTokens=[{token:a.videoData.qj,scope:"VIDEO"}]);T.context.request.mdxEnvironment=a.videoData.mdxEnvironment|| T.context.request.mdxEnvironment;a.videoData.Eg&&(T.context.user.kidsParent={oauthToken:a.videoData.Eg});g.Yi(a.L)&&(T.fairplayKeyId=g.Tf(v_R(a.fairplayKeyId)));g.b1(a.aj,g.wn(a.videoData)).then(function(b){pB7(l,T,m,b);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}; eYd=function(a,l){if(!a.FO())if(ri(a,{onlcsrsp:1}),a.status="rr",l.statusCode!==0)a.error("drm.auth",1,"t.f;c."+l.statusCode,l.errorMessage||void 0);else{C$("drm_kr_s",void 0,a.videoData.N);if(l.heartbeatParams&&l.heartbeatParams.url&&a.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var m=a.L.L.match(/(.*)youtube.com/g);m&&(l.heartbeatParams.url=m[0]+l.heartbeatParams.url)}l.heartbeatParams&&a.publish("newlicense",l.heartbeatParams);l.L&&(a.j=l.L,a.videoData.Jl||a.publish("newlicense", new g77),a.videoData.Jl=!0,a.B=md(a.j,function(T){return T.includes("HDR")})); l.T&&(a.aj.V("html5_enable_vp9_fairplay")&&Xi(a.L)?(m=g.Tf(v_R(a.fairplayKeyId),4),a.T[m]={type:l.T[m],status:"unknown"}):a.T=CD(l.T,function(T){return{type:T,status:"unknown"}})); uw(a.L)&&(l.message=hDR(g.Tf(l.message)));a.Z&&(ri(a,{updtks:1}),a.status="ku",a.Z.update(l.message).then(function(){C$("drm_kr_f",void 0,a.videoData.N);aP(a)||(ri(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(T){T="msuf.req."+a.requestNumber+";msg."+g.yT(T.message,3); a.error("drm.keyerror",1,T)})); g.Yi(a.L)&&a.publish("fairplay_next_need_key_info",a.baseUrl,l.nextFairplayKeyId);a.aj.V("html5_enable_vp9_fairplay")&&Xi(a.L)&&a.publish("qualitychange",Kjd(a.j));l.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",l.sabrLicenseConstraint)}}; Fjp=function(a,l){var m=l.T.getValue();m=new g.aH(function(){hY5(a,l)},m); g.w(a,m);m.start();g.I3(l.T);ri(a,{rtyrq:1})}; zYz=function(a,l){for(var m=[],T=g.c(Object.keys(a.T)),y=T.next();!y.done;y=T.next())y=y.value,m.push(y+"_"+a.T[y].type+"_"+a.T[y].status);return m.join(l)}; vCb=function(a){var l={};l[a.status]=aP(a)?zYz(a,"."):a.j.join(".");return l}; $5w=function(a){switch(a.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; lA=function(a,l){for(var m in a.T)if(a.T[m].status==="usable"&&a.T[m].type===l)return!0;return!1}; seR=function(a,l){for(var m in a.T)if(a.T[m].type===l)return a.T[m].status}; ri=function(a,l){var m=m===void 0?!1:m;hS(l);(m||a.aj.bZ())&&a.publish("ctmp","drmlog",l)}; Sz3=function(a){var l=a[0];a[0]=a[3];a[3]=l;l=a[1];a[1]=a[2];a[2]=l;l=a[4];a[4]=a[5];a[5]=l;l=a[6];a[6]=a[7];a[7]=l}; Kjd=function(a){return g.pD(a,"UHD2")||g.pD(a,"UHD2HDR")?"highres":g.pD(a,"UHD1")||g.pD(a,"UHD1HDR")?"hd2160":g.pD(a,"HD")||g.pD(a,"HDHDR")?"hd1080":g.pD(a,"HD720")||g.pD(a,"HD720HDR")?"hd720":"large"}; tZ3=function(a){for(var l="",m=0;m'.charCodeAt(T);a=a.Z.createSession("video/mp4",l,m);return new mQ(null,null,null,null,a)}; Cz5=function(a,l){var m=a.C[l.sessionId];!m&&a.j&&(m=a.j,a.j=null,m.sessionId=l.sessionId,a.C[l.sessionId]=m);return m}; nCQ=function(a,l){var m=a.subarray(4);m=new Uint16Array(m.buffer,m.byteOffset,m.byteLength/2);m=g.B(String.fromCharCode.apply(null,m).match(/ek=([0-9a-f]+)/))[1];for(var T="",y=0;y19.2999?(a=m.h_,m=m.iD,m>=a&&(m=a* .75),l=(a-m)*.5,m=new Yu(l,a,a-l-m,this)):m=null;break a;case "widevine":m=new Uv(l,this,a);break a;default:m=null}if(this.K=m)g.w(this,this.K),this.K.subscribe("rotated_need_key_info_ready",this.Qw,this),this.K.subscribe("log_qoe",this.O9,this);rS(this.aj.experiments);this.O9({cks:this.T.getInfo()})}; oCl=function(a){var l=kq3(a.j);l?l.then(Oa(function(){D57(a)}),Oa(function(m){if(!a.FO()){g.kt(m); var T="t.a";m instanceof DOMException&&(T+=";n."+m.name+";m."+m.message);a.publish("licenseerror","drm.unavailable",1,T,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.O9({mdkrdy:1}),a.N=!0); a.Ij&&(l=kq3(a.Ij))}; XBQ=function(a,l,m){a.AM=!0;m=new iz(l,m);a.aj.V("html5_eme_loader_sync")&&(a.C.get(l)||a.C.set(l,m));ukt(a,m)}; ukt=function(a,l){if(!a.FO()){a.O9({onInitData:1});if(a.aj.V("html5_eme_loader_sync")&&a.videoData.Z&&a.videoData.Z.T){var m=a.B.get(l.initData);l=a.C.get(l.initData);if(!m||!l)return;l=m;m=l.initData;a.C.remove(m);a.B.remove(m)}a.O9({initd:l.initData.length,ct:l.contentType});if(a.T.flavor==="widevine")if(a.hM&&!a.videoData.isLivePlayback)RP(a);else{if(!(a.aj.V("vp9_drm_live")&&a.videoData.isLivePlayback&&l.n5)){a.hM=!0;m=l.cryptoPeriodIndex;var T=l.T;VP7(l);l.n5||(T&&l.T!==T?a.publish("ctmp","cpsmm", {emsg:T,pssh:l.T}):m&&l.cryptoPeriodIndex!==m&&a.publish("ctmp","cpimm",{emsg:m,pssh:l.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",l)}}else a.Qw(l)}}; D57=function(a){if(!a.FO())if(a.aj.V("html5_drm_set_server_cert")||Xi(a.T)){var l=a.j.setServerCertificate();l?l.then(Oa(function(m){a.aj.bZ()&&a.publish("ctmp","ssc",{success:m})}),Oa(function(m){a.publish("ctmp","ssce",{n:m.name, m:m.message})})).then(Oa(function(){Yzd(a)})):Yzd(a)}else Yzd(a)}; Yzd=function(a){a.FO()||(a.N=!0,a.O9({onmdkrdy:1}),RP(a))}; U55=function(a){return a.T.flavor==="widevine"&&a.videoData.V("html5_drm_cpi_license_key")}; RP=function(a){if(a.AM&&a.N&&!a.qj){for(;a.Z.length;){var l=a.Z[0],m=U55(a)?pKw(l):g.Tf(l.initData);if(Xi(a.T)&&!l.L)a.Z.shift();else{if(a.L.get(m))if(a.T.flavor!=="fairplay"||Xi(a.T)){a.Z.shift();continue}else a.L.delete(m);VP7(l);break}}a.Z.length&&a.createSession(a.Z[0])}}; r27=function(a){var l;if(l=g.ur()){var m;l=!((m=a.j.L)==null||!m.getMetrics)}l&&(l=a.j.getMetrics())&&(l=g.K8(l),a.publish("ctmp","drm",{metrics:l}))}; awb=function(){var a=zWR();return!(!a||a==="visible")}; mod=function(a){var l=lw5();l&&document.addEventListener(l,a,!1)}; Til=function(a){var l=lw5();l&&document.removeEventListener(l,a,!1)}; lw5=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[pZ+"VisibilityState"])return"";a=pZ+"visibilitychange"}return a}; ykw=function(a){g.k.call(this);var l=this;this.vz=a;this.cj=0;this.C=this.L=this.K=!1;this.j=0;this.UL=this.vz.Y();this.videoData=this.vz.getVideoData();this.Z=g.PU(this.UL.experiments,"html5_delayed_retry_count");this.T=new g.aH(function(){l.vz.M2()},g.PU(this.UL.experiments,"html5_delayed_retry_delay_ms")); g.w(this,this.T)}; gud=function(a,l,m){var T=a.videoData.L,y=a.videoData.j;qf(a.vz.getVideoData())&&a.UL.V("html5_gapless_fallback_on_qoe_restart")&&Hqt(a.vz,"pe");if((l==="progressive.net.retryexhausted"||l==="fmt.unplayable"||l==="fmt.decode")&&!a.vz.k7.K&&T&&T.itag==="22")return a.vz.k7.K=!0,a.yP("qoe.restart",{reason:"fmt.unplayable.22"}),a.vz.Uw(),!0;var R=!1;if(a.videoData.isExternallyHostedPodcast){if(R=a.videoData.TRx)m.mimeType=R.type,a.Tu("3pp",{url:R.url});m.ns="3pp";a.vz.jd(l,1,"VIDEO_UNAVAILABLE",hS((new O_(l, m,1)).details));return!0}var H=a.cj+3E4<(0,g.E)()||a.T.isActive();if(a.UL.V("html5_empty_src")&&a.videoData.isAd()&&l==="fmt.unplayable"&&/Empty src/.test(""+m.msg))return m.origin="emptysrc",a.yP("auth",m),!0;H||Rtt(a.vz.Fm())||(m.nonfg="paused",H=!0,a.vz.pauseVideo());(l==="fmt.decode"||l==="fmt.unplayable")&&(y==null?0:U_(y)||rF(y))&&(C67(a.UL.K,y.Gu),m.acfallexp=y.Gu,R=H=!0);!H&&a.Z>0&&(a.T.start(),H=!0,m.delayed="1",--a.Z);y=a.vz.loader;!H&&((T==null?0:Y9(T))||(T==null?0:DQ(T)))&&(C67(a.UL.K, T.Gu),R=H=!0,m.cfallexp=T.Gu);if(!H)return HWP(a,m);H=!1;a.K?a.cj=(0,g.E)():H=a.K=!0;var b=a.videoData;if(b.Mj){b=b.Mj.qD();var M=Date.now()/1E3+1800;b=b6048E5&&jrl(a,"signature");return!1}; jrl=function(a,l){try{l={detail:"pr."+l},g.Ul(a.UL)&&a.UL.V("html5_reload_by_kabuki_app")?a.vz.jd("qoe.restart",1,void 0,hS(l),"7"):(a.yP("qoe.restart",l),window.location.reload())}catch(m){}}; PFt=function(a,l){var m=a.UL.K;m.B=!1;m.L=!0;a.yP("qoe.restart",{e:l===void 0?"fmt.noneavailable":l,detail:"hdr"});a.vz.M2(!0)}; GZ7=function(a,l,m,T,y,R){this.videoData=a;this.T=l;this.reason=m;this.L=T;this.token=y;this.videoId=R}; HC=function(a,l,m){this.aj=a;this.O4=l;this.vz=m;this.J=this.C=this.T=this.j=this.B=this.L=0;this.K=!1;this.N=g.PU(this.aj.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Z=new Map}; pQp=function(a,l,m){!a.aj.V("html5_tv_ignore_capable_constraint")&&g.OF(a.aj)&&(m=m.compose(Vgd(a,l)));return m}; ZWb=function(a){if(a.vz.Fm().isInline())return xW;var l;a.V("html5_exponential_memory_for_sticky")?l=FK(a.aj.Aa,"sticky-lifetime")<.5?"auto":Px[xV()]:l=Px[xV()];return g.du("auto",l,!1,"s")}; ckp=function(a,l){var m,T=WGz(a,(m=l.T)==null?void 0:m.videoInfos);m=a.vz.getPlaybackRate();return m>1&&T?(a=k4l(a.aj.K,l.T.videoInfos,m),new ic(0,a,!0,"o")):new ic(0,0,!1,"o")}; WGz=function(a,l){return l&&g.OF(a.aj)?l.some(function(m){return m.video.fps>32}):!1}; LGR=function(a,l){if(a.V("html5_disable_ustreamer_constraint_for_sabr")&&Mf(l.videoData))return xW;var m=a.vz.eU();a.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&m&&m.qZ>0&&AP(l.videoData.qr)&&(a=m.qZ,l.videoData.qr=new ic(0,a,!1,"u"));return l.videoData.qr}; Vgd=function(a,l){if(g.OF(a.aj)&&hP(a.aj.K,Ow.HEIGHT))var m=l.T.videoInfos[0].video.qualityOrdinal;else{var T=a.uH(!!l.T.T);b9(l.videoData)||oY(l.videoData);l=l.T.videoInfos;if(l.length){var y=g.PU(a.aj.experiments,"html5_override_oversend_fraction")||.85,R=l[0].video;R.projectionType!=="MESH"&&R.projectionType!=="EQUIRECTANGULAR"&&R.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Sd||(y=.45);a=g.PU(a.aj.experiments,"html5_viewport_undersend_maximum");for(R=0;R0&&(m=Math.min(m,T));if(T=g.PU(a.aj.experiments,"html5_max_vertical_resolution")){a=4320;for(y=0;yT&&(a=Math.min(a,R.video.qualityOrdinal));if(a<4320){for(y=T=0;y32){y=!0;break a}}y=!1}y&&(m=Math.min(m,T));(T=g.PU(a.aj.experiments,"html5_live_quality_cap"))&&l.videoData.isLivePlayback&&(m=Math.min(m,T));m=Qrt(a,l,m);a=g.PU(a.aj.experiments,"html5_byterate_soft_cap");return new ic(0,m===4320?0:m,!1,"d",a)}; etl=function(a){var l,m,T,y;return g.J(function(R){switch(R.L){case 1:return a.T.T&&typeof((l=navigator.mediaCapabilities)==null?void 0:l.decodingInfo)==="function"?g.z(R,Promise.resolve(),2):R.return(Promise.resolve());case 2:m=g.c(a.T.videoInfos),T=m.next();case 3:if(T.done){R.iT(0);break}y=T.value;return g.z(R,ZuP(y),4);case 4:T=m.next(),R.iT(3)}})}; htz=function(a,l){if(!l.videoData.L||a.V("html5_disable_performance_downgrade"))return!1;Date.now()-a.B>6E4&&(a.L=0);a.L++;a.B=Date.now();if(a.L!==4)return!1;FG7(a,l.videoData.L);return!0}; KGP=function(a,l,m,T){if(!l||!m||!l.videoData.L)return!1;var y=g.PU(a.aj.experiments,"html5_df_downgrade_thresh"),R=a.V("html5_log_media_perf_info");if(!((0,g.E)()-a.j<5E3?0:R||y>0))return!1;var H=((0,g.E)()-a.j)/1E3;a.j=(0,g.E)();m=m.getVideoPlaybackQuality();if(!m)return!1;var b=m.droppedVideoFrames-a.C,M=m.totalVideoFrames-a.J;a.C=m.droppedVideoFrames;a.J=m.totalVideoFrames;var d=m.displayCompositedVideoFrames===0?0:m.displayCompositedVideoFrames||-1;R&&a.aj.bZ()&&a.vz.Tu("ddf",{dr:m.droppedVideoFrames, de:m.totalVideoFrames,comp:d});if(T)return a.T=0,!1;if((M-b)/H>a.N||!y||g.OF(a.aj))return!1;a.T=(M>60?b/M:0)>y?a.T+1:0;if(a.T!==3)return!1;FG7(a,l.videoData.L);a.vz.Tu("dfd",Object.assign({dr:m.droppedVideoFrames,de:m.totalVideoFrames},OWP()));return!0}; FG7=function(a,l){var m=l.Gu,T=l.video.fps,y=l.video.qualityOrdinal-1,R=a.Z;l=""+m+(T>49?"p60":T>32?"p48":"");m=wS(m,T,R);y>0&&(m=Math.min(m,y));if(!qK.has(l)&&XO().includes(l)){var H=m;m=uo();+m[l]>0&&(H=Math.min(+m[l],H));m[l]!==H&&(m[l]=H,g.JN("yt-player-performance-cap",m,2592E3))}else if(qK.has(l)||R==null){a:{H=H===void 0?!0:H;T=XO().slice();if(H){if(T.includes(l))break a;T.push(l)}else{if(!T.includes(l))break a;T.splice(T.indexOf(l),1)}g.JN("yt-player-performance-cap-active-set",T,2592E3)}nS.set(l, m)}else qK.add(l),R==null||R.set(l,m);a.vz.AP()}; bA=function(a,l){if(!l.T.T)return a.K?new ic(0,360,!1,"b"):xW;for(var m=!1,T=!1,y=g.c(l.T.videoInfos),R=y.next();!R.done;R=y.next())Y9(R.value)?m=!0:T=!0;m=m&&T;T=0;y=g.PU(a.aj.experiments,"html5_performance_cap_floor");y=a.aj.L?240:y;l=g.c(l.T.videoInfos);for(R=l.next();!R.done;R=l.next()){var H=R.value;if(!m||!Y9(H))if(R=wS(H.Gu,H.video.fps,a.Z),H=H.video.qualityOrdinal,Math.max(R,y)>=H){T=H;break}}return new ic(0,T,!1,"b")}; zt7=function(a,l){var m=a.vz.Fm();return m.isInline()&&!l.aP?new ic(0,480,!1,"v"):Mf(l)?xW:m.isBackground()&&zG()/1E3>60&&!g.OF(a.aj)?new ic(0,360,!1,"v"):xW}; vu3=function(a,l,m){if(a.aj.experiments.XO("html5_disable_client_autonav_cap_for_onesie")&&l.fetchType==="onesie"||g.OF(a.aj)&&(xV(-1)>=1080||l.osid))return xW;var T=g.PU(a.aj.experiments,"html5_autonav_quality_cap"),y=g.PU(a.aj.experiments,"html5_autonav_cap_idle_secs");return T&&l.isAutonav&&zG()/1E3>y?(m&&(T=Qrt(a,m,T)),new ic(0,T,!1,"e")):xW}; Qrt=function(a,l,m){if(a.V("html5_optimality_defaults_chooses_next_higher")&&m)for(a=l.T.videoInfos,l=1;l=0||(a.provider.vz.getVisibilityState()===3?a.K=!0:(a.T=g.Dw(a.provider),a.delay.start()))}; Sv5=function(a){if(!(a.L<0)){var l=g.Dw(a.provider),m=l-a.j;a.j=l;a.playerState.state===8?a.playTimeSecs+=m:a.playerState.isBuffering()&&!g.u(a.playerState,16)&&(a.rebufferTimeSecs+=m)}}; fwp=function(a){var l;switch((l=a.aj.playerCanaryStage)==null?void 0:l.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"}}; Jkd=function(a){return window.PressureObserver&&new window.PressureObserver(a)}; Biw=function(a){a=a===void 0?Jkd:a;g.k.call(this);var l=this;try{this.Z=a(function(T){l.L=T.at(-1)}); var m;this.j=(m=this.Z)==null?void 0:m.observe("cpu",{sampleInterval:2E3}).catch(function(T){T instanceof DOMException&&(l.T=T)})}catch(T){T instanceof DOMException&&(this.T=T)}}; kZp=function(a){var l={},m=window.h5vcc;l.hwConcurrency=navigator.hardwareConcurrency;a.T&&(l.cpe=a.T.message);a.L&&(l.cpt=a.L.time,l.cps=a.L.state);if(m==null?0:m.cVal)l.cb2s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),l.cb5s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),l.cb30s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return l}; nuR=function(a){var l;g.J(function(m){switch(m.L){case 1:return g.LP(m,2),g.z(m,a.j,4);case 4:g.e7(m,3);break;case 2:g.OQ(m);case 3:(l=a.Z)==null||l.disconnect(),g.c5(m)}})}; Iw7=function(a,l){l?wQw.test(a):(a=g.br(a),Object.keys(a).includes("cpn"))}; EuP=function(a,l,m,T,y,R,H){var b={format:"RAW"},M={};if(ir(a)&&d0()){if(H){var d;((d=CF5.uaChPolyfill)==null?void 0:d.state.type)!==2?H=null:(H=CF5.uaChPolyfill.state.data.values,H={"Synth-Sec-CH-UA-Arch":H.architecture,"Synth-Sec-CH-UA-Model":H.model,"Synth-Sec-CH-UA-Platform":H.platform,"Synth-Sec-CH-UA-Platform-Version":H.platformVersion,"Synth-Sec-CH-UA-Full-Version":H.uaFullVersion});M=Object.assign(M,H);b.withCredentials=!0}(H=g.Uu("EOM_VISITOR_DATA"))?M["X-Goog-EOM-Visitor-Id"]=H:T?M["X-Goog-Visitor-Id"]= T:g.Uu("VISITOR_DATA")&&(M["X-Goog-Visitor-Id"]=g.Uu("VISITOR_DATA"));m&&(M["X-Goog-PageId"]=m);(T=l.jt)&&!l1(l)&&(M["X-Goog-AuthUser"]=T);y&&(M.Authorization="Bearer "+y);l.V("enable_datasync_id_header_in_web_vss_pings")&&l.dl&&l.datasyncId&&(M["X-YouTube-DataSync-Id"]=l.datasyncId);H||M["X-Goog-Visitor-Id"]||y||m||T?b.withCredentials=!0:l.V("html5_send_cpn_with_options")&&wQw.test(a)&&(b.withCredentials=!0)}Object.keys(M).length>0&&(b.headers=M);R&&(b.onFinish=R);return Object.keys(b).length>1? b:null}; oul=function(a,l,m,T,y,R,H,b){d0()&&m.token&&(a=g0(a,{ctt:m.token,cttype:m.Xn,mdx_environment:m.mdxEnvironment}));T.V("net_pings_low_priority")&&(l||(l={}),l.priority="low");R||b&&T.V("nwl_skip_retry")?(l==null?l={}:Iw7(a,T.V("html5_assert_cpn_with_regex")),H?l$().sendAndWrite(a,l):l$().sendThenWrite(a,l,b)):l?(Iw7(a,T.V("html5_assert_cpn_with_regex")),lKw(a,l)):g.Ec(a,y)}; xob=function(a){for(var l=[],m=0;m0&&m>0&&!a.L&&a.Z<1E7)try{a.j=a.K({sampleInterval:l,maxBufferSize:m});var T;(T=a.j)==null||T.addEventListener("samplebufferfull",function(){return g.J(function(y){if(y.L==1)return g.z(y,a.stop(),2);XQ7(a);g.c5(y)})})}catch(y){a.L=uEQ(y.message)}}; iA=function(a,l){var m,T;return!!((m=window.h5vcc)==null?0:(T=m.settings)==null?0:T.set(a,l))}; Uod=function(){var a,l,m,T=(a=window.h5vcc)==null?void 0:(l=a.settings)==null?void 0:(m=l.getPersistentSettingAsString)==null?void 0:m.call(l,"cpu_usage_tracker_intervals");if(T!=null){var y;a=(y=JSON.parse(T))!=null?y:[];y=a.filter(function(d){return d.type==="total"}).map(function(d){return d.seconds}); l=g.c(YvP);for(m=l.next();!m.done;m=l.next())m=m.value,y.indexOf(m)===-1&&a.push({type:"total",seconds:m});var R,H;(R=window.h5vcc)==null||(H=R.settings)==null||H.set("cpu_usage_tracker_intervals_enabled",1);var b,M;(b=window.h5vcc)==null||(M=b.settings)==null||M.set("cpu_usage_tracker_intervals",JSON.stringify(a))}}; rkp=function(){var a=window.H5vccPlatformService,l="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var m=a.send(new ArrayBuffer(0)); m&&(l=String.fromCharCode.apply(String,g.F(new Uint8Array(m))));a.close()}return l}; g.AD=function(a,l){g.k.call(this);var m=this;this.provider=a;this.logger=new g.bw("qoe");this.T=new Map;this.sequenceNumber=1;this.jt=NaN;this.K5="N";this.J=this.Ro=this.pZ=this.lT=this.L=0;this.tN=this.AM=this.C=this.tM="";this.Eg=this.St=NaN;this.Ug=0;this.JW=-1;this.FU=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ZR=this.isEmbargoed=this.Kx=this.isOffline=this.isBuffering=!1;this.wO=[];this.N=null;this.lZ=this.j=this.vF=this.B=!1;this.Z=-1;this.wb=!1;this.EG=new g.aH(this.t8,750,this);this.uI= this.adCpn=this.Ij=this.contentCpn="";this.adFormat=void 0;this.p5=0;this.yg=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.nR=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.uZ=!1;this.wW=NaN;this.Cx=0;this.QO=!1;this.hM=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.SW=!1;this.lM={ZF:function(y){m.ZF(y)}, NP8:function(){return m.K}, D$:function(){return m.contentCpn}, fzj:function(){return m.Ij}, reportStats:function(){m.reportStats()}, b6z:function(){return m.T.get("cat")||[]}, JS:function(y){return m.T.get(y)||[]}, xdO:function(){return m.T}, bYb:function(){return m.hM}, CYM:function(){return{adCpn:m.adCpn,uI:m.uI,adFormat:m.adFormat}}}; this.qj=this.provider.aj.V("html5_qoe_relaxed_reporting");var T=g.PU(this.provider.aj.experiments,"html5_qoe_proto_mock_length");T&&!dN.length&&(dN=xob(T));g.w(this,this.EG);try{navigator.getBattery().then(function(y){m.N=y})}catch(y){}g.jw(this,0,"vps",["N"]); a.aj.bZ()&&(this.Cx=(0,g.E)(),this.wW=g.W$(function(){var y=(0,g.E)(),R=y-m.Cx;R>500&&m.Tu("vmlock",{diff:R.toFixed()});m.Cx=y},250)); a.vz.z7()&&l&&(this.hM=l-Math.round(g.Dw(a)*1E3));this.provider.videoData.lS&&(this.remoteControlMode=azd[this.provider.videoData.lS]||0);this.provider.videoData.Rc&&(l=XLb(this.provider.videoData.Rc),l==null?0:l.length)&&(this.remoteConnectedDevices=l);if(a.aj.bZ()||a.V("html5_log_cpu_info"))this.rb=new Biw,g.w(this,this.rb);l=g.PU(a.aj.experiments,"html5_js_self_profiler_sample_interval_ms");a=g.PU(a.aj.experiments,"html5_js_self_profiler_max_samples");l>0&&a>0&&(this.Mj=new MK(l,a),g.w(this,this.Mj))}; PC=function(a,l,m){var T=a.T.get(l);T?T.push(m):a.T.set(l,[m])}; g.jw=function(a,l,m,T){PC(a,m,l.toFixed(3)+":"+T.join(":"))}; lzH=function(a,l){var m=a.adCpn||a.provider.videoData.clientPlaybackNonce,T=a.provider.getCurrentTime(m);g.jw(a,l,"cmt",[T.toFixed(3)]);T=a.provider.Ja(m);if(a.K&&T*1E3>a.K.fJ+100&&a.K){var y=a.K;m=y.isAd;T=T*1E3-y.fJ;a.Gf=l*1E3-y.Vdx-T-y.UAO;y=(0,g.E)()-T;l=a.Gf;T=a.provider.videoData;var R=T.isAd();if(m||R){R=(m?"ad":"video")+"_to_"+(R?"ad":"video");var H={};T.C&&(H.cttAuthInfo={token:T.C,videoId:T.videoId});H.startTime=y-l;o0(R,H);g.Ex({targetVideoId:T.videoId,targetCpn:T.clientPlaybackNonce}, R);C$("pbs",y,R)}else y=a.provider.vz.Rg(),y.C!==T.clientPlaybackNonce?(y.K=T.clientPlaybackNonce,y.L=l):T.gk()||g.nU(new g.YH("CSI timing logged before gllat",{cpn:T.clientPlaybackNonce}));a.Tu("gllat",{l:a.Gf.toFixed(),prev_ad:+m});delete a.K}}; GE=function(a,l){l=l===void 0?NaN:l;l=l>=0?l:g.Dw(a.provider);var m=a.provider.vz.Dn(),T=m.GC-(a.St||0);T>0&&g.jw(a,l,"bwm",[T,(m.fp-(a.Eg||0)).toFixed(3)]);isNaN(a.St)&&m.GC&&a.isOffline&&a.ZF(!1);a.St=m.GC;a.Eg=m.fp;isNaN(m.bandwidthEstimate)||g.jw(a,l,"bwe",[m.bandwidthEstimate.toFixed(0)]);a.provider.aj.bZ()&&Object.keys(m.T).length!==0&&a.Tu("bwinfo",m.T);if(a.provider.aj.bZ()||a.provider.aj.V("html5_log_meminfo"))T=P97(a.provider.aj.V("html5_enable_chrobalt_memory_apis")),Object.values(T).some(function(R){return R!== void 0})&&a.Tu("meminfo",T); if(a.provider.aj.bZ()||a.provider.aj.V("html5_log_cpu_info")){var y;(T=(y=a.rb)==null?void 0:kZp(y))&&Object.values(T).some(function(R){return R!=null})&&a.Tu("cpuinfo",T)}a.Mj&&a.Tu("jsprof",a.Mj.flush()); a.N&&g.jw(a,l,"bat",[a.N.level,a.N.charging?"1":"0"]);y=a.provider.vz.getVisibilityState();a.JW!==y&&(g.jw(a,l,"vis",[y]),a.JW=y);lzH(a,l);(y=mK3(a.provider))&&y!==a.Ug&&(g.jw(a,l,"conn",[y]),a.Ug=y);TNd(a,l,m)}; TNd=function(a,l,m){if(!isNaN(m.Yw)){var T=m.Yw;m.L96E3&&(new g.aH(a.reportStats,0,a)).start()}}; HLQ=function(a){a.provider.videoData.Ia&&VY(a,"prefetch");a.provider.videoData.uZ&&a.Tu("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.uZ});a.provider.videoData.rb&&VY(a,"monitor");a.provider.videoData.isLivePlayback&&VY(a,"live");RT&&VY(a,"streaming");a.provider.videoData.lS&&a.Tu("ctrl",{mode:a.provider.videoData.lS},!0);if(a.provider.videoData.Rc){var l=a.provider.videoData.Rc.replace(/,/g,"_");a.Tu("ytp",{type:l},!0)}a.provider.videoData.CN&&(l=a.provider.videoData.CN.replace(/,/g, "."),a.Tu("ytrexp",{ids:l},!0));var m=a.provider.videoData;l=a.provider.aj.V("enable_white_noise")||a.provider.aj.V("enable_webgl_noop");m=g.Z6(m)||g.zj(m)||g.v9(m)||g.$w(m);(l||m)&&(l=(0,g.pL)())&&a.T.set("gpu",[l]);oY(a.provider.videoData)&&g.jw(a,g.Dw(a.provider),"dt",["1"]);a.provider.aj.bZ()&&(l=(0,g.E)()-a.provider.aj.Sd,a.Tu("playerage",{secs:Math.pow(1.6,Math.round(Math.log(l/1E3)/Math.log(1.6))).toFixed()}));a.j=!0;a.jt=g.W$(function(){a.reportStats()},1E4)}; bLb=function(a,l,m){var T=g.Dw(a.provider);qrQ(a,T,l,0,m);GE(a,T);Rp7(a)}; qrQ=function(a,l,m,T,y){var R=a.provider.aj.T.cbrver;a.provider.aj.T.cbr==="Chrome"&&/^96[.]/.test(R)&&m==="net.badstatus"&&/rc\.500/.test(y)&&gKP(a,3);a.provider.aj.V("html5_use_ump")&&/b248180278/.test(y)&&gKP(a,4);R=a.provider.getCurrentTime(a.adCpn||a.provider.videoData.clientPlaybackNonce);T=T===1?"fatal":"";m=[m,T,R.toFixed(3)];T&&(y+=";a6s."+j2());y&&m.push(Mwt(y));g.jw(a,l,"error",m);a.j=!0}; rU7=function(a,l){var m=g.Dw(a.provider);if(!a.provider.aj.experiments.XO("html5_refactor_sabr_video_format_selection_logging")||l.T.id!==a.tM){var T=[l.T.id,l.L,a.tM,l.reason];l.token&&T.push(l.token);g.jw(a,m,"vfs",T);a.tM=l.T.id;T=a.provider.vz.getPlayerSize();if(T.width>0&&T.height>0){T=[Math.round(T.width),Math.round(T.height)];var y=g.r1();y>1&&T.push(y);g.jw(a,m,"view",T)}a.vF||(a.provider.aj.bZ()&&VY(a,"rqs2"),a.provider.videoData.T&&Wx(a.provider.videoData.T)&&a.T.set("preload",["1"]));a.vF= !0;a.j=!0}l.reason==="m"&&++a.p5===100&&gKP(a,2);g.jw(a,m,"vps",[a.K5]);a.qj||a.reportStats(m)}; iL7=function(a){a.Z>=0||(a.provider.aj.VX||a.provider.vz.getVisibilityState()!==3?a.Z=g.Dw(a.provider):a.wb=!0)}; Uf5=function(a,l,m){if(a.provider.aj.experiments.XO("html5_refactor_sabr_audio_format_selection_logging")){l=m.T;var T=[l.audio&&l.video?l.y3?l.y3:"":l.id];l.WF&&l.WF.id&&T.push(l.WF.id);l=T.join(";");l!==a.C&&(T=[l,a.C,m.reason],m.token&&T.push(m.token),g.jw(a,g.Dw(a.provider),"afs",T),a.C=l)}else m.T.id!==a.C&&(T=[m.T.id,a.C,m.reason],m.token&&T.push(m.token),g.jw(a,l,"afs",T),a.C=m.T.id)}; VY=function(a,l){PC(a,"cat",l)}; Zz=function(a,l,m,T,y,R){var H=g.Dw(a.provider);m!==1&&m!==3&&m!==5||g.jw(a,H,"vps",[a.K5]);PC(a,"xvt","t."+H.toFixed(3)+";m."+R.toFixed(3)+";g."+l+";tt."+m+";np.0;c."+T+";d."+y)}; gKP=function(a,l){a.lZ||(PC(a,"fcnz",""+l),a.lZ=!0)}; Mwt=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a}; dKH=function(a){this.provider=a;this.B=!1;this.T=0;this.j=-1;this.BZ=NaN;this.Z=0;this.segments=[];this.C=this.K=0;this.previouslyEnded=!1;this.N=this.provider.vz.getVolume();this.J=this.provider.vz.isMuted()?1:0;this.L=WC(this.provider)}; cC=function(a){a.L.startTime=a.Z;a.L.endTime=a.T;var l=!1;a.segments.length&&g.jc(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.L.previouslyEnded=!0),a.segments[a.segments.length-1]=a.L,l=!0):a.segments.length&&a.L.isEmpty()||(a.segments.push(a.L),l=!0);l?a.L.endTime===0&&(a.previouslyEnded=!1):a.L.previouslyEnded&&(a.previouslyEnded=!0);a.K+=a.T-a.Z;a.L=WC(a.provider);a.L.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.Z=a.T}; ADd=function(a){jPd(a);a.C=g.W$(function(){a.update()},100); a.BZ=g.Dw(a.provider);a.L=WC(a.provider)}; jPd=function(a){g.Ly(a.C);a.C=NaN}; PA3=function(a,l,m){m-=a.BZ;return l===a.T&&m>.5}; GEl=function(a,l,m,T){this.aj=l;this.wW=m;this.segments=[];this.experimentIds=[];this.Mj=this.SW=this.isFinal=this.delayThresholdMet=this.uZ=this.FU=this.autoplay=this.autonav=!1;this.tN="yt";this.C=[];this.B=this.N=null;this.sendVisitorIdHeader=this.wb=!1;this.J=this.pageId="";this.K=m==="watchtime";this.Z=m==="playback";this.qj=m==="atr";this.Aa=m==="engage";this.sendVisitorIdHeader=!1;this.uri=this.qj?"/api/stats/"+m:"//"+l.Ln+"/api/stats/"+m;T&&(this.SW=T.fs,T.rtn&&(this.B=T.rtn),this.K?(this.playerState= T.state,T.rti>0&&(this.N=T.rti)):(this.VX=T.mos,this.Xe=T.volume,T.at&&(this.adType=T.at)),T.autonav&&(this.autonav=T.autonav),T.inview!=null&&(this.Eg=T.inview),T.size&&(this.Ug=T.size),T.playerwidth&&(this.playerWidth=T.playerwidth),T.playerheight&&(this.playerHeight=T.playerheight));this.nR=g.mn(l.T);this.J=HS(l.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.QO=g.mn(l.uZ);this.xN=l.tN;this.experimentIds=Spp(l.experiments);this.tM=l.nR;this.tN=l.Ij;this.region= l.region;this.userAge=l.userAge;this.yg=l.v1;this.EG=zG();this.sendVisitorIdHeader=l.sendVisitorIdHeader;this.hM=l.V("vss_pings_using_networkless")||l.V("kevlar_woffle");this.Be=l.V("vss_final_ping_send_and_write");this.Kx=l.V("vss_use_send_and_write");this.pageId=l.pageId;this.Sd=l.V("vss_playback_use_send_and_write");l.livingRoomAppMode&&(this.livingRoomAppMode=l.livingRoomAppMode);this.im=l.j&&l.V("embeds_append_synth_ch_headers");g.vS(l)&&(this.AM=l.qj);g.AN(g.w1(l))&&this.C.push(1);this.accessToken= g.wn(a);a.IH[this.wW]?this.j=a.IH[this.wW]:a.IH.playback&&(this.j=a.IH.playback);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=p1d(a);this.Z&&(this.FU=a.GB&&JU(a)==="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=kw(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.uZ=a.Rh;a.C&&(this.lT=a.C,this.ZR=a.P7);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.T=a.wW;this.vF=a.vF;a.L&&(this.wO=a.L.itag,a.j&&a.j.itag!==this.wO&&(this.lZ=a.j.itag)); a.T&&Wx(a.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=JU(a);this.Mj=a.Sd?!1:a.Xe;this.p5=a.Wg;if(l=QZ(a))this.kN=l;this.OQ=a.J7;this.partnerId=a.partnerId;this.eventId=a.eventId;this.playlistId=a.b2||a.playlistId;this.A_=a.A_;this.lS=a.lS;this.Rc=a.Rc;this.f2=a.f2;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Pj=a.Pj;this.referrer=a.referrer;this.sZ=a.oS||a.sZ;this.rb=a.Qt;this.RW=a.RW;this.userGenderAge= a.userGenderAge;this.l3=a.l3;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.vS(this.aj)&&a.mutedAutoplay&&(a.mutedAutoplayDurationMode===2&&a.limitedPlaybackDurationInSeconds===0&&a.endSeconds===0?this.C.push(7):this.C.push(2));a.isEmbedsShortsMode(new g.Sk(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.C.push(3);g.Rp(a)&&this.C.push(4);this.St=a.gD;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)}; Vw3=function(a,l){var m=a.sendVisitorIdHeader?a.visitorData:void 0;return g.b1(a.aj,a.accessToken).then(function(T){return EuP(a.uri,a.aj,a.pageId,m,T,l,a.im)})}; WQR=function(a,l){return function(){a.aj.V("html5_simplify_pings")?(a.T=a.Cx,a.JW=l(),a.EG=0,a.send()):Vw3(a).then(function(m){var T=pCH(a);T.cmt=T.len;T.lact="0";var y=l().toFixed(3);T.rt=Number(y).toString();T=g.S$(a.uri,T);a.aj.V("vss_through_gel_double")&&ZLw(T);a.hM?(m==null&&(m={}),a.Kx?l$().sendAndWrite(T,m):l$().sendThenWrite(T,m)):m?g.OZ(T,m):g.Ec(T)})}}; pCH=function(a){var l={ns:a.tN,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.L(a.T),fmt:a.wO,fs:a.SW?"1":"0",rt:a.L(a.JW),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.xN,lact:a.EG,live:a.kN,cl:(753393358).toString(),mos:a.VX,state:a.playerState,volume:a.Xe};a.subscribed&&(l.subscribed="1");Object.assign(l,a.nR);a.J==="all"?Object.assign(l,a.QO):a.J==="once"&&a.Z&&Object.assign(l,a.QO);a.autoplay&&(l.autoplay="1");a.FU&&(l.sautoplay="1");a.uZ&&(l.dni="1");!a.K&&a.AM&&(l.epm=cDQ[a.AM]); a.isFinal&&(l["final"]="1");a.Mj&&(l.splay="1");a.vF&&(l.delay=a.vF);a.tM&&(l.hl=a.tM);a.region&&(l.cr=a.region);a.userGenderAge&&(l.uga=a.userGenderAge);a.userAge!==void 0&&a.yg&&(l.uga=a.yg+a.userAge);a.Cx!==void 0&&(l.len=a.L(a.Cx));!a.K&&a.experimentIds.length>0&&(l.fexp=a.experimentIds.toString());a.B!==null&&(l.rtn=a.L(a.B));a.sZ&&(l.feature=a.sZ);a.lS&&(l.ctrl=a.lS);a.Rc&&(l.ytr=a.Rc);a.lZ&&(l.afmt=a.lZ);a.offlineDownloadUserChoice&&(l.ODUC=a.offlineDownloadUserChoice);a.Ij&&(l.lio=a.L(a.Ij)); a.K?(l.idpj=a.p5,l.ldpj=a.OQ,a.delayThresholdMet&&(l.dtm="1"),a.N!=null&&(l.rti=a.L(a.N)),a.l3&&(l.ald=a.l3),a.compositeLiveIngestionOffsetToken&&(l.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(l.at=a.adType);a.Ug&&(a.Z||a.K)&&(l.size=a.Ug);a.Z&&a.C.length&&(l.pbstyle=a.C.join(","));a.Eg!=null&&(a.Z||a.K)&&(l.inview=a.L(a.Eg));a.K&&(l.volume=LL(a,g.xX(a.segments,function(T){return T.volume})),l.st=LL(a,g.xX(a.segments,function(T){return T.startTime})),l.et=LL(a,g.xX(a.segments,function(T){return T.endTime})), md(a.segments,function(T){return T.playbackRate!==1})&&(l.rate=LL(a,g.xX(a.segments,function(T){return T.playbackRate}))),md(a.segments,function(T){return T.T!=="-"})&&(l.als=g.xX(a.segments,function(T){return T.T}).join(",")),md(a.segments,function(T){return T.previouslyEnded})&&(l.pe=g.xX(a.segments,function(T){return""+ +T.previouslyEnded}).join(","))); l.muted=LL(a,g.xX(a.segments,function(T){return T.muted?1:0})); md(a.segments,function(T){return T.visibilityState!==0})&&(l.vis=LL(a,g.xX(a.segments,function(T){return T.visibilityState}))); md(a.segments,function(T){return T.connectionType!==0})&&(l.conn=LL(a,g.xX(a.segments,function(T){return T.connectionType}))); md(a.segments,function(T){return T.L!==0})&&(l.blo=LL(a,g.xX(a.segments,function(T){return T.L}))); md(a.segments,function(T){return!!T.Z})&&(l.blo=g.xX(a.segments,function(T){return T.Z}).join(",")); md(a.segments,function(T){return!!T.compositeLiveStatusToken})&&(l.cbs=g.xX(a.segments,function(T){return T.compositeLiveStatusToken}).join(",")); md(a.segments,function(T){return T.j!=="-"})&&(l.cc=g.xX(a.segments,function(T){return T.j}).join(",")); md(a.segments,function(T){return T.clipId!=="-"})&&(l.clipid=g.xX(a.segments,function(T){return T.clipId}).join(",")); if(md(a.segments,function(T){return!!T.audioId})){var m="au"; a.Z&&(m="au_d");l[m]=g.xX(a.segments,function(T){return T.audioId}).join(",")}d0()&&a.lT&&(l.ctt=a.lT,l.cttype=a.ZR,l.mdx_environment=a.mdxEnvironment); a.Aa&&(l.etype=a.jt!==void 0?a.jt:0);a.rb&&(l.uoo=a.rb);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(l.clram=LQl[a.livingRoomAppMode]||a.livingRoomAppMode);a.j?NNQ(a,l):(l.docid=a.videoId,l.referrer=a.referrer,l.ei=a.eventId,l.of=a.Pj,l.osid=a.osid,l.vm=a.videoMetadata,a.adQueryId&&(l.aqi=a.adQueryId),a.autonav&&(l.autonav="1"),a.playlistId&&(l.list=a.playlistId),a.f2&&(l.ssrt="1"),a.RW&&(l.upt=a.RW));a.Z&&(a.embedsRct&&(l.rct=a.embedsRct),a.embedsRctn&&(l.rctn= a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(l.clio=a.compositeLiveIngestionOffsetToken));a.St&&(l.host_cpn=a.St);return l}; NNQ=function(a,l){if(l&&a.j){var m=new Set(["q","feature","mos"]),T=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),y=new Set(["aqi","autonav","list","ssrt","upt"]);a.j.ns==="3pp"&&(l.ns="3pp");for(var R=g.c(Object.keys(a.j)),H=R.next();!H.done;H=R.next())H=H.value,T.has(H)||m.has(H)||y.has(H)&&!a.j[H]||(l[H]=a.j[H])}}; LL=function(a,l){return g.xX(l,a.L).join(",")}; ZLw=function(a){a.indexOf("watchtime")!==-1&&g.js("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})}; QPb=function(a,l){a.attestationResponse&&Vw3(a).then(function(m){m=m||{};m.method="POST";m.postParams={atr:a.attestationResponse};a.hM?a.Kx?l$().sendAndWrite(l,m):l$().sendThenWrite(l,m):g.OZ(l,m)})}; NK=function(a){g.k.call(this);this.provider=a;this.C="paused";this.K=NaN;this.B=[10,10,10,40];this.N=this.J=0;this.lT=this.qj=this.jt=this.Ij=this.Z=!1;this.L=this.j=NaN;this.logger=new g.bw("vss");this.T=new dKH(a)}; OLP=function(a){if(!a.Z){a.provider.videoData.ol===16623&&g.nU(Error("Playback for EmbedPage"));var l=QY(a,"playback");a.B=tw3(a);ADd(a.T);l.B=tD(a);a.L>0&&(l.T-=a.L);l.send();if(a.provider.videoData.C8){l=a.provider.aj;var m=a.provider.videoData,T={html5:"1",video_id:m.videoId,cpn:m.clientPlaybackNonce,ei:m.eventId,ptk:m.C8,oid:m.CX,ptchn:m.o1,pltype:m.eS,content_v:kw(m)};m.Ok&&Object.assign(T,{m:m.Ok});l=g.S$(l.Fa+"ptracking",T);ep5(a,l)}a.provider.videoData.vF||(FQH(a),hpb(a));a.Z=!0;a=a.T;a.T= a.Ja();a.BZ=g.Dw(a.provider);!(a.Z===0&&a.T<5)&&a.T-a.Z>2&&(a.Z=a.T);a.B=!0}}; tw3=function(a){var l=a.provider.videoData.Wg,m=a.provider.videoData.J7,T=[10+l,10,10,40+m-l,40],y,R=(y=a.provider.videoData.getPlayerResponse())==null?void 0:y.playbackTracking,H=R==null?void 0:R.videostatsScheduledFlushWalltimeSeconds;y=R==null?void 0:R.videostatsDefaultFlushIntervalSeconds;if(!(H&&H.length>0&&y))return a.logger.info("Missing valid scheduled pings config "+H+" "+y),T;l=[H[0]+l].concat(g.F(H.slice(1).map(function(b,M){return b-H[M]})),[y+m-l, y]);return l.some(function(b){return b<0})?(a.logger.T(347111855,"Neg vss scheduled pings "+H+" "+y),T):l}; tD=function(a,l){l=l===void 0?NaN:l;var m=g.Dw(a.provider);l=isNaN(l)?m:l;l=Math.ceil(l);var T=a.B[a.J];a.J+11E3;!(R.length>1)&&R[0].isEmpty()||b||(H.B=tD(a,y));H.send();a.N++}},(y-m)*1E3); return a.j=y}; ew=function(a){g.c$(a.K);a.K=NaN}; KQl=function(a){a.T.update();a=a.T;a.segments.length&&a.T===a.Z||cC(a);var l=a.segments;a.segments=[];return l}; QY=function(a,l){var m=vKH(a.provider);Object.assign(m,{state:a.C});l=new GEl(a.provider.videoData,a.provider.aj,l,m);l.T=a.provider.vz.Ja();m=a.provider.videoData.clientPlaybackNonce;l.T=a.provider.vz.qY(m);a.provider.videoData.isLivePlayback||(l.Cx=a.provider.vz.getDuration(m));a.provider.videoData.T&&(m=a.provider.videoData.T.V1(l.T))&&(l.Ij=m-l.T,a.provider.aj.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&IY(a.provider.videoData)&&(l.T+=a.provider.vz.YX(),l.Ij-=a.provider.vz.YX()));l.JW=g.Dw(a.provider); l.segments=[WC(a.provider)];return l}; zpz=function(a,l){var m=QY(a,"watchtime");$Kl(a)&&(m.delayThresholdMet=!0,a.jt=!0);if(a.L>0){for(var T=g.c(l),y=T.next();!y.done;y=T.next())y=y.value,y.startTime-=a.L,y.endTime-=a.L;m.T-=a.L}else m.T=a.T.T;m.segments=l;return m}; F7=function(a,l){var m=sPl(a,!isNaN(a.j));l&&(a.j=NaN);return m}; sPl=function(a,l){var m=zpz(a,KQl(a));!isNaN(a.j)&&l&&(m.N=a.j);return m}; $Kl=function(a){var l;if(l=a.provider.videoData.isLoaded()&&a.provider.videoData.vF&&a.Z&&!a.jt)l=a.T,l=l.K+l.Ja()-l.Z>=a.provider.videoData.vF;return!!l}; FQH=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.qj&&(ep5(a,a.provider.videoData.youtubeRemarketingUrl),a.qj=!0)}; hpb=function(a){a.provider.videoData.googleRemarketingUrl&&!a.lT&&(ep5(a,a.provider.videoData.googleRemarketingUrl),a.lT=!0)}; Srb=function(a){if(!a.FO()&&a.Z){a.C="paused";var l=F7(a);l.isFinal=!0;l.send();a.dispose()}}; fzd=function(a,l){if(!a.FO())if(g.u(l.state,2)||g.u(l.state,512)){if(a.C="paused",g.Wr(l,2)||g.Wr(l,512))g.Wr(l,2)&&(a.T.previouslyEnded=!0),a.Z&&(ew(a),F7(a).send(),a.j=NaN)}else if(g.u(l.state,8)){a.C="playing";var m=a.Z&&isNaN(a.K)?tD(a):NaN;if(!isNaN(m)&&(Zc(l,64)<0||Zc(l,512)<0)){var T=sPl(a,!1);T.B=m;T.send()}g.Wr(l,16)&&l.state.seekSource===58&&(a.T.previouslyEnded=!0)}else a.C="paused"}; JD7=function(a,l,m){if(!a.Ij){m||(m=QY(a,"atr"));m.attestationResponse=l;try{m.send()}catch(T){if(T.message!=="Unknown Error")throw T;}a.Ij=!0}}; ep5=function(a,l){var m=a.provider.aj;g.b1(a.provider.aj,g.wn(a.provider.videoData)).then(function(T){var y=a.provider.aj.pageId,R=a.provider.aj.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,H=a.provider.aj.V("vss_pings_using_networkless")||a.provider.aj.V("kevlar_woffle"),b=a.provider.aj.V("allow_skip_networkless");T=EuP(l,m,y,R,T);oul(l,T,{token:a.provider.videoData.C,Xn:a.provider.videoData.P7,mdxEnvironment:a.provider.videoData.mdxEnvironment},m,void 0,H&&!b,!1,!0)})}; BNH=function(){this.endTime=this.startTime=-1;this.j="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.L=0;this.compositeLiveStatusToken=this.Z=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; hD=function(a,l,m){this.videoData=a;this.aj=l;this.vz=m;this.T=void 0}; g.Dw=function(a){return kEz(a)()}; kEz=function(a){if(!a.T){var l=g.qF(function(T){var y=(0,g.E)();T&&y<=631152E6&&(a.vz.Tu("ytnerror",{issue:28799967,value:""+y}),y=(new Date).getTime()+2);return y},a.aj.V("html5_validate_yt_now")),m=l(); a.T=function(){return Math.round(l()-m)/1E3}; a.vz.PR()}return a.T}; vKH=function(a){var l=a.vz.Hv()||{};l.fs=a.vz.e7();l.volume=a.vz.getVolume();l.muted=a.vz.isMuted()?1:0;l.mos=l.muted;l.clipid=a.vz.vC();var m;l.playerheight=((m=a.vz.getPlayerSize())==null?void 0:m.height)||0;var T;l.playerwidth=((T=a.vz.getPlayerSize())==null?void 0:T.width)||0;a=a.videoData;m={};a.L&&(m.fmt=a.L.itag,a.j&&(a.SW?a.j.itag!==a.L.itag:a.j.itag!=a.L.itag)&&(m.afmt=a.j.itag));m.ei=a.eventId;m.list=a.playlistId;m.cpn=a.clientPlaybackNonce;a.videoId&&(m.v=a.videoId);a.Xt&&(m.infringe=1); (a.Sd?0:a.Xe)&&(m.splay=1);(T=QZ(a))&&(m.live=T);a.GB&&(m.sautoplay=1);a.dR&&(m.autoplay=1);a.A_&&(m.sdetail=a.A_);a.partnerId&&(m.partnerid=a.partnerId);a.osid&&(m.osid=a.osid);a.l7&&(m.cc=g.Ikl(a.l7));return Object.assign(l,m)}; mK3=function(a){var l=PG7();if(l)return nKd[l]||nKd.other;if(g.OF(a.aj)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0}; WC=function(a){var l=new BNH,m;l.j=((m=vKH(a).cc)==null?void 0:m.toString())||"-";l.playbackRate=a.vz.getPlaybackRate();m=a.vz.getVisibilityState();m!==0&&(l.visibilityState=m);a.aj.wb&&(l.L=1);l.Z=a.videoData.Nx;l.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;m=a.vz.getAudioTrack();m.WF&&m.WF.id&&m.WF.id!=="und"&&(l.audioId=m.WF.id);l.connectionType=mK3(a);l.volume=a.vz.getVolume();l.muted=a.vz.isMuted();l.clipId=a.vz.vC()||"-";l.T=a.videoData.rD||"-";return l}; g.Or=function(a,l){g.k.call(this);var m=this;this.provider=a;this.j=!1;this.Z=new Map;this.K5=new g.qz;this.lM={Udj:function(){return m.qoe}, Bvx:function(){return m.T}, PYt:function(){return m.L}}; this.provider.videoData.Q1()&&!this.provider.videoData.n_&&(this.T=new NK(this.provider),this.T.L=this.provider.videoData.VB/1E3,g.w(this,this.T),this.qoe=new g.AD(this.provider,l),g.w(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.B1=this.provider.videoData.clientPlaybackNonce)&&this.Z.set(this.B1,this.T));if(a.aj.playerCanaryState==="canary"||a.aj.playerCanaryState==="holdback")this.L=new gN(this.provider),g.w(this,this.L)}; KL=function(a){return g.Dw(a.provider)}; zE=function(a){a.L&&srl(a.L);a.qoe&&iL7(a.qoe)}; wCz=function(a){if(a.qoe){a=a.qoe;for(var l=a.provider.videoData,m=a.provider.aj,T=g.c(m.mf),y=T.next();!y.done;y=T.next())VY(a,y.value);if(a.provider.V("html5_enable_qoe_cat_list"))for(T=g.c(l.Ln),y=T.next();!y.done;y=T.next())VY(a,y.value);else l.mf&&VY(a,a.provider.videoData.mf);l.Fl()&&(T=l.T,P9(l)&&VY(a,"manifestless"),T&&$i(T)&&VY(a,"live-segment-"+$i(T).toFixed(1)));Mf(l)?VY(a,"sabr"):a.VJ(pK(l));if(CK(l)||l.WN())l.WN()&&VY(a,"ssa"),VY(a,"lifa");IY(l)&&VY(a,"cdm");l.gatewayExperimentGroup&& (T=l.gatewayExperimentGroup,T==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?T="spkadtrt":T==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(T="spkadctrl"),VY(a,T));m.Ij!=="yt"&&a.T.set("len",[l.lengthSeconds.toFixed(2)]);l.cotn&&!oY(l)&&a.ZF(!0);m.bZ()&&(l=rkp())&&a.Tu("cblt",{m:l});if(m.V("html5_log_screen_diagonal")){m=a.Tu;var R;l=((R=window.H5vccScreen)==null?0:R.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;m.call(a,"cbltdiag",{v:l})}}}; IzH=function(a){if(a.provider.vz.z7()){if(a.j)return;a.j=!0}a.T&&OLP(a.T);if(a.L){a=a.L;var l=g.Dw(a.provider);a.T<0&&(a.T=l,a.delay.start());a.L=l;a.j=l}}; CAH=function(a,l){a.T&&(a=a.T,l===58?a.T.update():a.Z&&(ew(a),F7(a).send(),a.j=NaN))}; EKd=function(a,l){if(g.Wr(l,1024)||g.Wr(l,512)||g.Wr(l,4)){if(a.L){var m=a.L;m.L>=0||(m.T=-1,m.delay.stop())}a.qoe&&(m=a.qoe,m.B||(m.Z=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.B1){var T;(T=a.Z.get(a.B1))==null||fzd(T,l)}else a.T&&fzd(a.T,l);if(a.qoe){T=a.qoe;m=l.state;var y=g.Dw(T.provider),R=T.getPlayerState(m),H=m.seekSource||void 0;if(R!==T.K5){T.qj||y= 10&&T.playTimeSecs<=180&&(T.T.set("qoealert",["1"]),T.ZR=!0)),R!=="B"||T.K5!=="PL"&&T.K5!=="PB"||(T.isBuffering=!0),T.L=y);T.K5==="PL"&&(R==="B"||R==="S")||T.provider.aj.bZ()?GE(T,y):(T.uZ||R!=="PL"||(T.uZ=!0,TNd(T,y,T.provider.vz.Dn())),lzH(T,y));R==="PL"&&g.l0(T.EG);var b=[R];R==="S"&&H&&b.push("ss."+H);g.jw(T,y,"vps",b);T.K5=R;T.lT=y;T.L=y;T.j=!0}R=m.p7;g.u(m,128)&&R&&(R.lj=R.lj||"",qrQ(T,y,R.errorCode,R.ZL,R.lj));(g.u(m,2)||g.u(m,128))&&T.reportStats(y);m.isPlaying()&&!T.B&&(T.Z>=0&&T.T.set("user_intent", [T.Z.toString()]),T.B=!0);Rp7(T)}a.L&&(T=a.L,Sv5(T),T.playerState=l.state,T.L>=0&&g.Wr(l,16)&&T.seekCount++,l.state.isError()&&T.send());a.provider.vz.z7()&&(a.K5=l.state)}; oKd=function(a){a.L&&a.L.send();if(a.qoe){var l=a.qoe;if(l.j){l.K5==="PL"&&(l.K5="N");var m=g.Dw(l.provider);g.jw(l,m,"vps",[l.K5]);l.B||(l.Z>=0&&l.T.set("user_intent",[l.Z.toString()]),l.B=!0);l.provider.aj.bZ()&&l.Tu("finalized",{});l.Kx=!0;l.reportStats(m)}}if(a.provider.videoData.enableServerStitchedDai)for(l=g.c(a.Z.values()),m=l.next();!m.done;m=l.next())Srb(m.value);else a.T&&Srb(a.T);a.dispose()}; xKR=function(a,l){a.T&&JD7(a.T,l)}; DKp=function(a){if(!a.T)return null;var l=QY(a.T,"atr");return function(m){a.T&&JD7(a.T,m,l)}}; u7P=function(a,l,m,T){m.adFormat=m.Aa;var y=l.vz;l=new NK(new hD(m,l.aj,{getDuration:function(){return m.lengthSeconds}, getCurrentTime:function(){return y.getCurrentTime()}, Ja:function(){return y.Ja()}, qY:function(){return y.qY()}, z7:function(){return y.z7()}, Dn:function(){return y.Dn()}, getPlayerSize:function(){return y.getPlayerSize()}, getAudioTrack:function(){return m.getAudioTrack()}, getPlaybackRate:function(){return y.getPlaybackRate()}, eM:function(){return y.eM()}, getVisibilityState:function(){return y.getVisibilityState()}, Rg:function(){return y.Rg()}, Hv:function(){return y.Hv()}, getVolume:function(){return y.getVolume()}, isMuted:function(){return y.isMuted()}, e7:function(){return y.e7()}, vC:function(){return y.vC()}, getProximaLatencyPreference:function(){return y.getProximaLatencyPreference()}, PR:function(){y.PR()}, Tu:function(R,H){y.Tu(R,H)}, Ty:function(){return y.Ty()}, YX:function(){return y.YX()}})); l.L=T;g.w(a,l);return l}; XCb=function(){this.Yw=0;this.Z=this.fp=this.GC=this.L=NaN;this.T={};this.bandwidthEstimate=NaN}; vC=function(a,l,m){g.k.call(this);var T=this;this.aj=a;this.vz=l;this.L=m;this.T=new Map;this.B1="";this.lM={JK:function(){return Array.from(T.T.keys())}}}; Yrw=function(){this.T=g.HL;this.array=[]}; rD5=function(a,l,m){var T=[];for(l=UK7(a,l);lm)break}return T}; aAQ=function(a,l){var m=[];a=g.c(a.array);for(var T=a.next();!T.done&&!(T=T.value,T.contains(l)&&m.push(T),T.start>l);T=a.next());return m}; lAP=function(a){return a.array.slice(UK7(a,0x7ffffffffffff),a.array.length)}; UK7=function(a,l){a=$B(a.array,function(m){return l-m.start||1}); return a<0?-(a+1):a}; mud=function(a,l){var m=NaN;a=g.c(a.array);for(var T=a.next();!T.done;T=a.next())if(T=T.value,T.contains(l)&&(isNaN(m)||T.endl&&(isNaN(m)||T.starta.mediaTime+a.K&&l1)a.j=!0;if((y===void 0?0:y)||isNaN(a.L))a.L=l;if(a.T)l!==a.mediaTime&&(a.T=!1);else if(l>0&&a.mediaTime===l){y=1500;if(a.aj.V("html5_buffer_underrun_transition_fix")){y=g.PU(a.aj.experiments,"html5_min_playback_advance_for_steady_state_secs");var R=g.PU(a.aj.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");y=y>0&&R>0&&Math.abs(l-a.L)(T||!a.j?y:400)}a.mediaTime=l;a.Z=m;return!1}; bzP=function(a,l){this.videoData=a;this.T=l}; g67=function(a,l,m){return l.FR(m).then(function(){return fy(new bzP(l,l.Z))},function(T){T instanceof Error&&g.nU(T); var y=$9('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),R=SS('audio/mp4; codecs="mp4a.40.2"'),H=y||R,b=l.isLivePlayback&&!g.g1(a.K,!0);T="fmt.noneavailable";b?T="html5.unsupportedlive":H||(T="html5.missingapi");H=b||!H?2:1;y={buildRej:"1",a:l.OM(),d:!!l.tN,drm:l.wR(),f18:l.VX.indexOf("itag=18")>=0,c18:y};l.T&&(l.wR()?(y.f142=!!l.T.T["142"],y.f149=!!l.T.T["149"],y.f279=!!l.T.T["279"]):(y.f133=!!l.T.T["133"],y.f140=!!l.T.T["140"],y.f242=!!l.T.T["242"]),y.cAAC=R,y.cAVC=SS('video/mp4; codecs="avc1.42001E"'), y.cVP9=SS('video/webm; codecs="vp9"'));l.K&&(y.drmsys=l.K.keySystem,R=0,l.K.T&&(R=Object.keys(l.K.T).length),y.drmst=R);return new O_(T,y,H)})}; Sw=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.L=this.T=a-1}; MXb=function(a){return a.data[a.T]||0}; izb=function(a){this.K=a;this.Z=this.L=0;this.j=new Sw(50)}; JD=function(a,l,m){g.Aj.call(this);this.videoData=a;this.experiments=l;this.K=m;this.L=[];this.mT=0;this.Z=!0;this.j=!1;this.C=0;m=new du7;a.latencyClass==="ULTRALOW"&&(m.C=!1);a.rb?m.Z=3:g.On(a)&&(m.Z=2);a.latencyClass==="NORMAL"&&(m.K=!0);m.Ij=l.XO("html5_refactor_decouple_liveness");g.PU(l,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.PU(l,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||a.latencyClass!=="LOW"&&a.latencyClass!=="ULTRALOW"||(m.K=!0);var T=g.PU(l, "html5_liveness_drift_proxima_override");if(pK(a)!==0&&T){m.T=T;var y;((y=a.T)==null?0:UiQ(y))&&m.T--}Mf(a)&&l.XO("html5_sabr_parse_live_metadata_playback_boundaries")&&(m.lT=!0);if(g.xa("trident/")||g.xa("edge/"))y=g.PU(l,"html5_platform_minimum_readahead_seconds")||3,m.j=Math.max(m.j,y);g.PU(l,"html5_minimum_readahead_seconds")&&(m.j=g.PU(l,"html5_minimum_readahead_seconds"));g.PU(l,"html5_maximum_readahead_seconds")&&(m.N=g.PU(l,"html5_maximum_readahead_seconds"));l.XO("html5_force_adaptive_readahead")&& (m.C=!0);if(y=g.PU(l,"html5_liveness_drift_chunk_override"))m.T=y;Gj(a)&&(m.T=(m.T+1)/5,a.latencyClass==="LOW"&&(m.T*=2));if(a.latencyClass==="ULTRALOW"||a.latencyClass==="LOW")m.J=g.PU(l,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,m.B=g.PU(l,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=m;this.B=this.policy.Z!==1;this.T=fL(this,jZp(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))}; Ac5=function(a,l){if(l)return l=a.videoData,l=jZp(a,isNaN(l.liveChunkReadahead)?3:l.liveChunkReadahead,l),fL(a,l);if(a.L.length){if(Math.min.apply(null,a.L)>1)return fL(a,a.T-1);if(a.policy.C)return fL(a,a.T+1)}return a.T}; PXQ=function(a,l){if(!a.L.length)return!1;var m=a.T;a.T=Ac5(a,l===void 0?!1:l);if(l=m!==a.T)a.L=[],a.mT=0;return l}; BC=function(a,l){return l>=a.oy()-G_w(a)}; VXl=function(a,l,m){l=BC(a,l);m||l?l&&(a.Z=!0):a.Z=!1;a.B=a.policy.Z===2||a.policy.Z===3&&a.Z}; pe7=function(a,l){l=BC(a,l);a.j!==l&&a.publish("livestatusshift",l);a.j=l}; G_w=function(a){var l=a.policy.T;a.j||(l=Math.max(l-1,0));return l*kK(a)}; jZp=function(a,l,m){m.rb&&l--;Gj(m)&&(l=1);if(pK(m)!==0&&(a=g.PU(a.experiments,"html5_live_chunk_readahead_proxima_override"))){l=a;var T;((T=m.T)==null?0:UiQ(T))&&l++}return l}; kK=function(a){return a.videoData.T?$i(a.videoData.T)||5:5}; fL=function(a,l){l=Math.max(Math.max(1,Math.ceil(a.policy.j/kK(a))),l);return Math.min(Math.min(8,Math.floor(a.policy.N/kK(a))),l)}; du7=function(){this.j=0;this.N=Infinity;this.C=!0;this.L=this.T=2;this.Z=1;this.K=!1;this.B=10;this.lT=!1;this.J=1;this.Ij=!1}; IP=function(a){g.k.call(this);this.vz=a;this.T=0;this.L=null;this.C=this.j=0;this.Z={};this.aj=this.vz.Y();this.K=new g.aH(this.qI,1E3,this);this.wb=new nL({delayMs:g.PU(this.aj.experiments,"html5_seek_timeout_delay_ms")});this.qj=new nL({delayMs:g.PU(this.aj.experiments,"html5_long_rebuffer_threshold_ms")});this.rb=wN(this,"html5_seek_set_cmt");this.Cx=wN(this,"html5_seek_jiggle_cmt");this.St=wN(this,"html5_seek_new_elem");this.ZR=wN(this,"html5_unreported_seek_reseek");this.lT=wN(this,"html5_long_rebuffer_jiggle_cmt"); this.jt=new nL({delayMs:2E4});this.AM=wN(this,"html5_seek_new_elem_shorts");this.Mj=wN(this,"html5_seek_new_media_source_shorts_reuse");this.tM=wN(this,"html5_seek_new_media_element_shorts_reuse");this.Kx=wN(this,"html5_reseek_after_time_jump");this.J=wN(this,"html5_gapless_handoff_close_end_long_rebuffer");this.N=wN(this,"html5_gapless_slow_seek");this.Ij=wN(this,"html5_gapless_slow_start");this.B=wN(this,"html5_ads_preroll_lock_timeout");this.yg=new nL({delayMs:g.PU(this.aj.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,pU:!this.aj.V("html5_report_slow_ads_as_error")});this.vF=new nL({delayMs:g.PU(this.aj.experiments,"html5_skip_slow_ad_delay_ms")||5E3,pU:!this.aj.V("html5_skip_slow_buffering_ad")});this.lZ=new nL({delayMs:g.PU(this.aj.experiments,"html5_slow_start_timeout_delay_ms")});this.hM=wN(this,"html5_slow_start_no_media_source");g.w(this,this.K)}; wN=function(a,l){var m=g.PU(a.aj.experiments,l+"_delay_ms");a=a.aj.V(l+"_cfl");return new nL({delayMs:m,pU:a})}; Zzd=function(a,l){a.T=l}; CL=function(a,l,m,T,y,R,H,b){l.test(m)?(a.yP(y,l,H),l.pU||R()):(l.Eu&&l.L&&!l.j?(m=(0,g.E)(),T?l.T||(l.T=m):l.T=0,R=!T&&m-l.L>l.Eu,m=l.T&&m-l.T>l.J9||R?l.j=!0:!1):m=!1,m&&(b=Object.assign({},a.rW(l),b),b.wn=H,b.we=y,b.wsuc=T,a.vz.Tu("workaroundReport",b),T&&(l.reset(),a.Z[y]=!1)))}; nL=function(a){var l=a===void 0?{}:a;a=l.delayMs===void 0?0:l.delayMs;var m=l.J9===void 0?1E3:l.J9;var T=l.Eu===void 0?3E4:l.Eu;l=l.pU===void 0?!1:l.pU;this.T=this.L=this.Z=this.startTimestamp=0;this.j=!1;this.K=Math.ceil(a/1E3);this.J9=m;this.Eu=T;this.pU=l}; NmP=function(a){g.k.call(this);var l=this;this.vz=a;this.B=this.T=this.loader=this.mediaElement=this.playbackData=null;this.Z=0;this.K=this.Ij=this.j=null;this.lT=!1;this.lZ=0;this.N=!1;this.timestampOffset=0;this.jt=!0;this.St=0;this.Mj=this.uZ=!1;this.C=0;this.rb=!1;this.qj=0;this.aj=this.vz.Y();this.videoData=this.vz.getVideoData();this.policy=new W1z;this.J=new IP(this.vz);this.yg=this.AM=this.Cx=this.L=NaN;this.Kx=new g.aH(function(){cc5(l,!1)},2E3); this.ZR=new g.aH(function(){Er(l)}); this.tM=new g.aH(function(){l.lT=!0;L1H(l,{})}); this.vF=NaN;this.hM=new g.aH(function(){var m=l.aj.Aa;m.T+=1E4/36E5;m.T-m.Z>1/6&&(akw(m),m.Z=m.T);l.hM.start()},1E4); g.w(this,this.J);g.w(this,this.Kx);g.w(this,this.tM);g.w(this,this.ZR);g.w(this,this.hM)}; e1d=function(a,l){a.playbackData=l;a.videoData.isLivePlayback&&(a.B=new izb(function(){a:{if(a.playbackData&&a.playbackData.T.T){if(P9(a.videoData)&&a.loader){var m=a.loader.iG.Xc()||0;break a}if(a.videoData.T){m=a.videoData.T.hM;break a}}m=0}return m}),a.T=new JD(a.videoData,a.aj.experiments,function(){return a.OG(!0)})); oP(a.vz)?(l=QZt(a),l.E8?(Mf(a.videoData)&&a.W5(l.E8,l.startSeconds),a.Z=l.startSeconds):l.startSeconds>0&&a.seekTo(l.startSeconds,{hW:"seektimeline_startPlayback",seekSource:15}),a.jt=!1):tX7(a)||(a.Z=a.Z||(g.US(a.videoData)?0:a.videoData.startSeconds)||0)}; h17=function(a,l){(a.loader=l)?F1Q(a,!0):xK(a)}; Ozz=function(a,l){g.l0(a.J.K);a.V("html5_exponential_memory_for_sticky")&&(l.state.isPlaying()?g.l0(a.hM):a.hM.stop());if(a.mediaElement)if(l.oldState.state===8&&An(l.state)&&l.state.isBuffering()){l=a.mediaElement.getCurrentTime();var m=a.mediaElement.dL();var T=a.V("manifestless_post_live_ufph")||a.V("manifestless_post_live")?Mi(m,Math.max(l-3.5,0)):Mi(m,l-3.5);T>=0&&l>m.end(T)-1.1&&T+10?(Dz(a.vz,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Mj=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(Dz(a.vz,a.getCurrentTime()+a.videoData.endSeconds),a.Mj=!0))}; z1P=function(a,l){var m=a.getCurrentTime(),T=a.isAtLiveHead(m);if(a.B&&T){var y=a.B;if(y.T&&!(m>=y.L&&m50&&y.L.shift())),y=a.T,VXl(y,m,l===void 0?!0:l),pe7(y,m),l&&cc5(a,!0));T!==a.uZ&&(l=a.getCurrentTime()-a.yg<=500,m=a.lZ>=1E3,l||m||(l=a.vz.R0(),l.qoe&&(l=l.qoe,m=g.Dw(l.provider), g.jw(l,m,"lh",[T?"1":"0"])),a.uZ=T,a.lZ++,a.yg=a.getCurrentTime()))}; cc5=function(a,l){if(a.T){var m=a.T;var T=a.getCurrentTime(),y=m.oy();var R=m.policy.L;m.j||(R=Math.max(R-1,0));R*=kK(m);T>=y-R||!m.Fu()?m=T0&&T4(a.mediaElement)>0&&(a.L=uA(a,a.L,!1)),!a.mediaElement||!JcH(a))a.ZR.start(750);else if(!isNaN(a.L)&&isFinite(a.L)){var l=a.AM-(a.L-a.timestampOffset);if(!(l===0||Math.abs(l)<.005))if(l=a.mediaElement.getCurrentTime()-a.L,Math.abs(l)<=a.St||Math.abs(l)<.005)Bmp(a);else{if(a.videoData.S0)a.videoData.S0=!1;else if(!AU(a.videoData)&&a.L>=a.OG()-.1){a.L=a.OG();a.j.resolve(a.OG()); a.vz.EJ();return}try{var m=a.L-a.timestampOffset;a.mediaElement.seekTo(m);a.J.T=m;a.AM=m;a.Z=a.L;a.N=!1}catch(T){}}}}; JcH=function(a){if(!a.mediaElement||a.mediaElement.Tb()===0||a.mediaElement.hasError())return!1;var l=a.mediaElement.getCurrentTime()>0;if(!(a.videoData.Z&&a.videoData.Z.T||a.videoData.isLivePlayback)&&a.videoData.wR())return l;if(a.L>=0){var m=a.mediaElement.Dx();if(m.length||!l)return iH(m,a.L-a.timestampOffset)}return l}; Bmp=function(a){a.j&&(a.j.resolve(a.mediaElement.getCurrentTime()),a.J.L=null)}; SRP=function(a,l){a.K&&(a.K.resolve(l),a.vz.gY(),a.aj.bZ()||fAP(a))&&(l=a.rW(),l["native"]=""+ +a.N,l.otgt=""+(a.L+a.timestampOffset),a.vz.Tu("seekEnd",l));xK(a)}; xK=function(a){a.L=NaN;a.AM=NaN;a.j=null;a.Ij=null;a.K=null;a.lT=!1;a.N=!1;a.St=0;a.Kx.stop();a.tM.stop()}; n6t=function(a,l){var m=a.mediaElement,T=l.type;switch(T){case "seeking":var y=m.getCurrentTime()+a.timestampOffset;if(!a.j||a.N&&y!==a.L){a.j=new l6;a.j.then(function(H){SRP(a,H)},function(){xK(a)}); if(a.videoData.isAd()){var R;uz7({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(R=a.videoData.gD)!=null?R:""},l.T)}a.AM=y;Zzd(a.J,m.getCurrentTime());a.seekTo(y,{seekSource:104,hW:"seektimeline_mediaElementEvent"});a.N=!0}break;case "seeked":Bmp(a);break;case "loadedmetadata":oP(a.vz)||k_z(a);Er(a);break;case "progress":Er(a);break;case "pause":a.C=a.getCurrentTime()}a.C&&((T==="play"||T==="playing"||T==="timeupdate"||T==="progress")&&a.getCurrentTime()-a.C>10&&(a.V("html5_enable_new_media_element_puase_jump")? (a.vz.yP(new O_("qoe.restart",{reason:"pauseJump"})),a.vz.M2(),a.seekTo(a.C,{hW:"pauseJumpNewElement"})):a.seekTo(a.C,{hW:"pauseJump"})),T!=="pause"&&T!=="play"&&T!=="playing"&&T!=="progress"&&(a.C=0))}; we7=function(a){return(KK(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||tX7(a))&&!!a.videoData.T}; tX7=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9}; QZt=function(a){var l=0,m=NaN,T="";if(!a.jt)return{startSeconds:l,E8:m,source:T};a.videoData.Ij?l=a.videoData.jt:AU(a.videoData)&&(l=Infinity);if(g.On(a.videoData))return{startSeconds:l,E8:m,source:T};a.videoData.startSeconds?(T="ss",l=a.videoData.startSeconds):a.videoData.wO&&(T="stss",l=a.videoData.wO);a.videoData.liveUtcStartSeconds&&(m=a.videoData.liveUtcStartSeconds);if(isFinite(l)&&(l>a.OG()||l a.OG()||m0?(T.onesie="0",a.handleError(new O_("html5.missingapi",T)),!1):!0}; YRQ=function(a){var l=nq();wf(l,a);return g.gs(l,WKQ())}; Dut=function(a,l){var m,T,y,R,H,b,M,d,A,P,G,V,p,L,N,e,t,v,S,n,X,D,yp,H5,ad,Md;return g.J(function(U){if(U.L==1)return l.fetchType="onesie",m=fV3(l,a.getPlayerSize(),a.getVisibilityState()),T=new pW(a,m),g.z(U,T.fetch(),2);y=U.T;R={player_response:y};l.loading=!1;H=a.xv.JC;if(T.Zu){b=g.c(T.Zu.entries());for(M=b.next();!M.done;M=b.next())d=M.value,A=g.c(d),P=A.next().value,G=A.next().value,V=P,p=G,H.T.set(V,p,180),V===l.videoId&&(L=p.YB(),l.MF=L);H.n8=T}N=g.c(T.Lm.entries());for(e=N.next();!e.done;e= N.next())t=e.value,v=g.c(t),S=v.next().value,n=v.next().value,X=S,D=n,H.L.set(X,D,180);g.YW(l,R,!0);if(l.loading||u1(l))return U.return(Promise.resolve());H.T.removeAll();H.L.removeAll();l.MF=[];yp={};H5="onesie.response";ad=0;l.errorCode?(H5="auth",yp.ec=l.errorCode,yp.ed=l.errorDetail,yp.es=l.m_||"",ad=2):(yp.successButUnplayable="1",yp.disposed=""+ +l.FO(),yp.afmts=""+ +/adaptiveFormats/.test(y),yp.cpn=l.clientPlaybackNonce);Md=new O_(H5,yp,ad);return U.return(Promise.reject(Md))})}; o6Q=function(a,l){var m,T,y,R,H,b,M,d,A,P,G;return g.J(function(V){switch(V.L){case 1:m=l.isAd(),T=!m,y=m?1:3,R=0;case 2:if(!(R0)){V.iT(5);break}return g.z(V,Ik(5E3),6);case 6:H=new g.YH("Retrying OnePlatform request",{attempt:R}),g.nU(H);case 5:return g.LP(V,7),g.z(V,Uut(a,l),9);case 9:return V.return();case 7:b=g.OQ(V);M=zM(b);d=M.errorCode;A=a.Y();P=A.V("html5_use_network_error_code_enums")?401:"401";T&&d==="manifest.net.badstatus"&&M.details.rc===P&&(T=!1,R===y-1&&(y+= 1));if(R===y-1)return G=rcl(m,M.details),G.details.backend="op",G.details.originec=d,V.return(Promise.reject(G));if(d==="auth"||d==="manifest.net.retryexhausted")return V.return(Promise.reject(M));a.handleError(M);if(Kw(M.severity)){V.iT(4);break}case 3:R++;V.iT(2);break;case 4:return V.return(Promise.reject(rcl(m,{backend:"op"})))}})}; Uut=function(a,l){function m(H5){H5.readyState===2&&a.dO("ps_c")} var T,y,R,H,b,M,d,A,P,G,V,p,L,N,e,t,v,S,n,X,D,yp;return g.J(function(H5){switch(H5.L){case 1:l.fetchType="gp";T=a.Y();y=g.b1(T,g.wn(l));if(!y.T){R=y.getValue();H5.iT(2);break}return g.z(H5,y.T,3);case 3:R=H5.T;case 2:return H=R,b=YRQ(H),M=fV3(l,a.getPlayerSize(),a.getVisibilityState()),d=g.R0(atP),A=g.wn(l),P=(0,g.E)(),G=!1,V="empty",p=0,a.dO("psns"),L={mF:m},g.z(H5,g.Ux(b,M,d,void 0,L),4);case 4:N=H5.T;a.dO("psnr");if(l.FO())return H5.return();N?"error"in N&&N.error?(G=!0,V="esf:"+N.error.message, p=N.error.code):N.errorMetadata&&(G=!0,V="its",p=N.errorMetadata.status):G=!0;if(G)return e=0,t=((0,g.E)()-P).toFixed(),v={},v=T.V("html5_use_network_error_code_enums")?{backend:"op",rc:p,rt:t,reason:V,has_kpt:l.Eg?"1":"0",has_mdx_env:l.mdxEnvironment?"1":"0",has_omit_key_flag:g.Uu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:T.pageId?"1":"0",has_token:A?"1":"0",has_vvt:l.qj?"1":"0",is_mdx:l.isMdxPlayback?"1":"0",mdx_ctrl:l.lS||"",token_eq:A===g.wn(l)?"1":"0"}:{backend:"op", rc:""+p,rt:t,reason:V,has_kpt:l.Eg?"1":"0",has_mdx_env:l.mdxEnvironment?"1":"0",has_omit_key_flag:g.Uu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:T.pageId?"1":"0",has_token:A?"1":"0",has_vvt:l.qj?"1":"0",is_mdx:l.isMdxPlayback?"1":"0",mdx_ctrl:l.lS||"",token_eq:A===g.wn(l)?"1":"0"},S="manifest.net.connect",p===429?(S="auth",e=2):p>200&&(S="manifest.net.badstatus",p===400&&(e=2)),H5.return(Promise.reject(new O_(S,v,e)));l.loading=!1;g.YW(l,{raw_player_response:N},!0); n=N;g.BS(l.Y())&&n&&n.trackingParams&&Jv(n.trackingParams);if(l.errorCode)return X={ec:l.errorCode,ed:l.errorDetail,es:l.m_||""},H5.return(Promise.reject(new O_("auth",X,2)));if(!l.loading&&!u1(l))return D=l.isAd()?"auth":"manifest.net.retryexhausted",yp=l.isAd()?2:1,H5.return(Promise.reject(new O_(D,{successButUnplayable:"1",hasMedia:g.eD(l)?"1":"0"},yp)));g.c5(H5)}})}; E6z=function(a,l,m){function T(p){p=zM(p);if(Kw(p.severity))return Promise.reject(p);a.handleError(p);return!1} function y(){return!0} var R,H,b,M,d,A,P,G,V;return g.J(function(p){switch(p.L){case 1:var L=a.Y();a.getPlayerSize();a.getVisibilityState();a.isFullscreen();if(l.partnerId===38&&L.playerStyle==="books")L=l.videoId.indexOf(":"),L=g.S$("//play.google.com/books/volumes/"+l.videoId.slice(0,L)+"/content/media",{aid:l.videoId.slice(L+1),sig:l.sT});else if(l.partnerId===30&&L.playerStyle==="docs")L=g.S$("https://docs.google.com/get_video_info",{docid:l.videoId,authuser:l.a6,authkey:l.Af,eurl:L.tN});else if(l.partnerId===33&&L.playerStyle=== "google-live")L=g.S$("//google-liveplayer.appspot.com/get_video_info",{key:l.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+L.Ij);R=L;b=(H=l.isAd())?1:3;M=0;case 2:if(!(M0)){p.iT(5);break}return g.z(p,Ik(5E3),6);case 6:A={playerretry:M,playerretrysrc:m},H||(A.recover="embedded"),d=My(R,A);case 5:return g.z(p,ltH(l,d).then(y,T),7);case 7:if(P=p.T)return p.return();M++;p.iT(2);break;case 4:G=H?"auth":"manifest.net.retryexhausted";V=H?2:1;if(!H&&Math.random()< 1E-4)try{g.nU(new g.YH("b/152131571",btoa(R)))}catch(N){}return p.return(Promise.reject(new O_(G,{backend:"gvi"},V)))}})}; ltH=function(a,l){function m(N){return T(N.xhr)} function T(N){if(!a.FO()){N=N?N.status:-1;var e=0,t=((0,g.E)()-A).toFixed();t=y.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:N,rt:t}:{backend:"gvi",rc:""+N,rt:t};var v="manifest.net.connect";N===429?(v="auth",e=2):N>200&&(v="manifest.net.badstatus",N===400&&(e=2));return Promise.reject(new O_(v,t,e))}} var y,R,H,b,M,d,A,P,G,V,p,L;return g.J(function(N){if(N.L==1){a.fetchType="gvi";y=a.Y();var e={};a.mp&&(e.ytrext=a.mp);(b=g.rg(e)?void 0:e)?(R={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:b},H=My(l,{action_display_post:1})):(R={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},H=l);M={};y.sendVisitorIdHeader&&a.visitorData&&(M["X-Goog-Visitor-Id"]=a.visitorData);(d=HS(y.experiments,"debug_sherlog_username"))&&(M["X-Youtube-Sherlog-Username"]=d);Object.keys(M).length> 0&&(R.headers=M);A=(0,g.E)();return g.z(N,WK(v$,H,R).then(void 0,m),2)}P=N.T;if(!P||!P.responseText)return N.return(T(P));a.loading=!1;G=H$(P.responseText);g.YW(a,G,!0);if(a.errorCode)return V={ec:a.errorCode,ed:a.errorDetail,es:a.m_||""},N.return(Promise.reject(new O_("auth",V,2)));if(!a.loading&&!u1(a))return p=a.isAd()?"auth":"manifest.net.retryexhausted",L=a.isAd()?2:1,N.return(Promise.reject(new O_(p,{successButUnplayable:"1"},L)));g.c5(N)})}; rcl=function(a,l){return new O_(a?"auth":"manifest.net.retryexhausted",l,a?2:1)}; aZ=function(a,l,m){m=m===void 0?!1:m;var T,y,R,H;g.J(function(b){if(b.L==1){T=a.Y();if(m&&(!g.mS(T)||JU(l)!=="embedded")||l.kR||JU(l)!=="adunit"&&(g.OF(T)||oT(T)||g.IE(T)||g.kN(T)||g.yX(T)==="WEB_CREATOR"))return b.return();y=g.b1(T,g.wn(l));return y.T?g.z(b,y.T,3):(R=y.getValue(),b.iT(2))}b.L!=2&&(R=b.T);H=R;return b.return(mBH(a,l,H))})}; mBH=function(a,l,m){var T,y,R,H,b;return g.J(function(M){if(M.L==1){g.LP(M,2);T=YRQ(m);var d=l.Y();g.EC();var A={context:g.bb(l),videoId:l.videoId,racyCheckOk:l.racyCheckOk,contentCheckOk:l.contentCheckOk,autonavState:"STATE_NONE"};JU(l)==="adunit"&&(A.isAdPlayback=!0);d.embedConfig&&(A.serializedThirdPartyEmbedConfig=d.embedConfig);d.oR&&(A.showContentOwnerOnly=!0);l.A1&&(A.showShortsOnly=!0);g.oi(0,141)&&(A.autonavState=g.oi(0,140)?"STATE_OFF":"STATE_ON");if(g.aX(d)){var P=g.oi(0,65);P=P!=null? !P:!1;var G=!!g.BW("yt-player-sticky-caption");A.captionsRequested=P&&G}var V;if(d=(V=d.getWebPlayerContextConfig())==null?void 0:V.encryptedHostFlags)A.playbackContext={encryptedHostFlags:d};y=A;R=g.R0(Tdp);a.dO("wn_s");return g.z(M,g.Ux(T,y,R),4)}if(M.L!=2)return H=M.T,a.dO("wn_r"),!H||"error"in H&&H.error||(b=H,g.BS(l.Y())&&b.trackingParams&&Jv(b.trackingParams),g.YW(l,{raw_watch_next_response:H},!1)),g.e7(M,0);g.OQ(M);g.c5(M)})}; yO5=function(a){a.dO("vir");a.dO("ps_s");uu("vir",void 0,"video_to_ad");var l=Xep(a);l.then(function(){a.dO("virc");uu("virc",void 0,"video_to_ad");a.dO("ps_r");uu("ps_r",void 0,"video_to_ad")},function(){a.dO("virc"); uu("virc",void 0,"video_to_ad")}); return l}; g.T_=function(a,l,m,T,y,R,H,b,M,d){M=M===void 0?new g.Dj(a):M;d=d===void 0?!0:d;g.Aj.call(this);var A=this;this.aj=a;this.playerType=l;this.CE=m;this.O4=T;this.getVisibilityState=R;this.visibility=H;this.xv=b;this.videoData=M;this.NG=d;this.logger=new g.bw("VideoPlayer");this.MI=null;this.bU=new yY;this.pY=null;this.cT=!0;this.Wz=this.loader=null;this.t6=[];this.xt=new rN;this.QX=this.Hw=null;this.AX=new rN;this.PJ=null;this.lX=this.qe=!1;this.rB=NaN;this.dS=!1;this.playerState=new g.qz;this.z0=[]; this.UK=new g.BT;this.OP=new ykw(this);this.mediaElement=null;this.d4=new g.aH(this.mtT,15E3,this);this.nk=this.aE=!1;this.Cz=NaN;this.er=!1;this.bV=0;this.pB=!1;this.mP=NaN;this.JF=new X7(new Map([["bufferhealth",function(){return K17(A.KR)}], ["bandwidth",function(){return A.LQ()}], ["networkactivity",function(){return A.aj.schedule.jt}], ["livelatency",function(){return A.isAtLiveHead()&&A.isPlaying()?RdH(A):NaN}], ["rawlivelatency",function(){return RdH(A)}]])); this.cj=0;this.loop=!1;this.playbackRate=1;this.RU=0;this.KR=new NmP(this);this.yw=!1;this.gB=[];this.Rd=this.XW=0;this.gX=this.zK=!1;this.fp=this.GC=0;this.uV=new g.aH(this.A8,0,this);this.QP=null;this.xjg=[this.UK,this.uV,this.d4,this.JF];this.qq=this.n9=null;this.aY=function(){var P=A.R0();P.provider.aj.VX||P.provider.vz.getVisibilityState()===3||(P.provider.aj.VX=!0);P.g0();if(P.L){var G=P.L;G.K&&G.T<0&&G.provider.vz.getVisibilityState()!==3&&srl(G)}P.qoe&&(P=P.qoe,P.wb&&P.Z<0&&P.provider.aj.VX&& iL7(P),P.j&&GE(P));A.loader&&lX(A);A.aj.A6&&!A.videoData.backgroundable&&A.mediaElement&&!A.rL()&&(A.isBackground()&&A.mediaElement.Hm()?(A.Tu("bgmobile",{suspend:1}),A.p_(!0,!0)):A.isBackground()||m1(A)&&A.Tu("bgmobile",{resume:1}))}; this.lM={f6:function(P){A.f6(P)}, Pej:function(P){A.MI=P}, akb:function(){return A.Io}, yM:function(){return A.lU}, o8:function(){return A.Wz}, xij:function(){return A.Sj}, A6g:function(){return A.kH}, hCT:function(){}, Y:function(){return A.aj}, TE:function(){return A.mediaElement}, DxN:function(P){A.Bl(P)}, mdL:function(){return A.O4}}; this.logger.debug(function(){return"creating, type "+l}); this.lG=new qRw(this.aj);this.k7=new HC(this.aj,this.O4,this);this.V8=new g.$K(this,function(P,G){P!==g.qm("endcr")||g.u(A.playerState,32)||A.EJ();y(P,G,A.playerType)},function(P,G){g.US(A.videoData)&&A.Tu(P,G)}); g.w(this,this.V8);g.w(this,this.KR);Hxw(this,M);this.videoData.subscribe("dataupdated",this.eu8,this);this.videoData.subscribe("dataloaded",this.cG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Tu,this);this.videoData.subscribe("ctmpstr",this.A2,this);this.bF();mod(this.aY);this.visibility.subscribe("visibilitystatechange",this.aY);this.Sj=new g.aH(this.B8,g.PU(this.aj.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.kH= new g.aH(this.B8,g.PU(this.aj.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.qo=new g.ye(this.Oc,g.PU(this.aj.experiments,"html5_progress_event_throttle_ms")||350,this);g.w(this,this.qo)}; Hxw=function(a,l){if(a.playerType===2||a.aj.wP)l.Fd=!0;var m=xC7(l.Aa,l.JH,a.aj.j,a.aj.J);m&&(l.adFormat=m);a.playerType===2&&(l.dR=!0);if(a.isFullscreen()||a.aj.j)m=g.BW("yt-player-autonavstate"),l.autonavState=m||(a.aj.j?2:a.videoData.autonavState);l.endSeconds&&l.endSeconds>l.startSeconds&&Dz(a,l.endSeconds)}; qPd=function(a){oKd(a.Io);g.Go(a.Io);for(var l=a.lU,m=g.c(l.T.values()),T=m.next();!T.done;T=m.next())oKd(T.value);l.T.clear();g.Go(a.lU)}; bxb=function(a){var l=a.videoData;yO5(a).then(void 0,function(m){a.videoData!==l||l.FO()||(m=zM(m),m.errorCode==="auth"&&a.videoData.errorDetail?a.jd(m.errorCode,2,unescape(a.videoData.errorReason),hS(m.details),a.videoData.errorDetail,a.videoData.m_||void 0):a.handleError(m))})}; ixw=function(a){if(!g.u(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.t6=g.NF(a.videoData.lT),g.eD(a.videoData)){a.CE.tick("bpd_s");y4(a).then(function(){a.CE.tick("bpd_c");if(!a.FO()){a.qe&&(a.If(Mz(Mz(a.playerState,512),1)),m1(a));var T=a.videoData;T.endSeconds&&T.endSeconds>T.startSeconds&&Dz(a,T.endSeconds);a.xt.finished=!0;RZ(a,"dataloaded");a.AX.Dg()&&gSQ(a);$oP(a.k7,a.QX)}}); a.V("html5_log_media_perf_info")&&a.Tu("loudness",{v:a.videoData.Dv.toFixed(3)},!0);var l,m=(l=a.mediaElement)==null?void 0:l.hN();if(m&&"disablePictureInPicture"in m&&a.aj.c7)try{m.disablePictureInPicture=a.aj.Gz&&!a.videoData.backgroundable}catch(T){g.nU(T)}MOd(a)}else RZ(a,"dataloaded")}; y4=function(a){He(a);a.QX=null;var l=g67(a.aj,a.videoData,a.rL());a.Hw=l;a.Hw.then(function(m){dBt(a,m)},function(m){a.FO()||(m=zM(m),a.visibility.isBackground()?(qu(a,"vp_none_avail"),a.Hw=null,a.xt.reset()):(a.xt.finished=!0,a.jd(m.errorCode,m.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",hS(m.details))))}); return l}; dBt=function(a,l){if(!a.FO()&&!l.videoData.FO()){a.logger.debug("finished building playback data");a.QX=l;e1d(a.KR,a.QX);if(a.videoData.isLivePlayback){var m=j45(a.xv.JC,a.videoData.videoId)||a.loader&&!isNaN(a.loader.jt);m=a.V("html5_onesie_live")&&m;oP(a)||a.videoData.lZ>0&&!P9(a.videoData)||m||a.seekTo(a.OG(),{hW:"videoplayer_playbackData",seekSource:18})}if(a.videoData.Z.T){if(QhQ(a.videoData)){a.V("html5_sabr_report_missing_url_as_error_terminal")?a.jd("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", hS({missabrurl:1})):a.handleError(new O_("fmt.missing",{missabrurl:"1"},2));return}a.loader?g.nU(Error("Duplicated Loader")):(m=g.PU(a.aj.experiments,"html5_onesie_defer_content_loader_ms"))&&a.Pu()&&j45(a.xv.JC,a.videoData.bv)?g.ZC(function(){a.FO()||a.loader||AO3(a)},m):AO3(a)}else!a.videoData.Z.T&&oY(a.videoData)&&a.oE(new dU(a.videoData.videoId||"",4)); a.Ow();etl(l).then(function(){var T={};a.AP(T);a.aj.bZ()&&a.V("html5_log_media_perf_info")&&a.Tu("av1Info",T);lX(a)})}}; gSQ=function(a){a.FO();a.logger.debug("try finish readying playback");if(a.AX.finished)a.logger.debug("already finished readying");else if(a.xt.finished)if(g.u(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.t6.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.t6}); else if(a.V8.started||ycl(a.V8),a.OH())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.loader&&(a.lX=Kip(a.loader.timing));a.AX.finished||(a.AX.finished=!0);var l=a.V("html5_onesie_live")&&a.loader&&!isNaN(a.loader.jt);!a.videoData.isLivePlayback||a.videoData.lZ>0&&!P9(a.videoData)||l||oP(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{hW:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.nk=!0));wCz(a.R0());a.logger.debug("finished readying playback"); a.publish("playbackready");xb("pl_c",a.CE.timerName)||(a.CE.tick("pl_c"),uu("pl_c",void 0,"video_to_ad"));xb("pbr",a.CE.timerName)||(a.CE.tick("pbr"),uu("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")}; Dz=function(a,l){a.pY&&Pe3(a);a.pY=new g.Rq(l*1E3,0x7ffffffffffff);a.pY.namespace="endcr";a.addCueRange(a.pY)}; Pe3=function(a){a.removeCueRange(a.pY);a.pY=null}; Gel=function(a,l,m,T,y){var R=a.R0(y),H=g.US(a.videoData)?R.getVideoData():a.videoData;H.L=m;var b=g.bX(a);m=new GZ7(H,m,l,b?b.itag:"",T);a.aj.experiments.XO("html5_refactor_sabr_video_format_selection_logging")?(m.videoId=y,a.qq=m):R.qoe&&rU7(R.qoe,m);y=a.k7;y.L=0;y.T=0;a.publish("internalvideoformatchange",H,l==="m")}; g.bX=function(a){var l=gm(a);return AP(l)||!a.QX?null:g.Pn(a.QX.T.videoInfos,function(m){return l.j(m)})}; gm=function(a){if(a.QX){var l=a.k7;var m=a.QX;a=a.lO();var T=ZWb(l);if(AP(T)){if(T=Vgd(l,m).compose(Nib(l,m)).compose(tgt(l,m)).compose(zt7(l,m.videoData)).compose(vu3(l,m.videoData,m)).compose(bA(l,m)).compose(ckp(l,m)),AP(a)||l.V("html5_apply_pbr_cap_for_drm"))T=T.compose(LGR(l,m))}else l.V("html5_perf_cap_override_sticky")&&(T=T.compose(bA(l,m))),l.V("html5_ustreamer_cap_override_sticky")&&(T=T.compose(LGR(l,m)));T=T.compose(ckp(l,m));l=m.videoData.Nu.compose(T).compose(m.videoData.l5).compose(a)}else l= xW;return l}; nWl=function(a){var l=a.k7;a=a.videoData;var m=zt7(l,a);l.V("html5_disable_client_autonav_cap_for_onesie")||m.compose(vu3(l,a));return m}; lX=function(a){if(a.videoData.Z&&a.videoData.Z.T){var l=gm(a);a.loader&&hZw(a.loader,l)}}; VOw=function(a){var l;return!!(a.V("html5_native_audio_track_switching")&&g.Nr&&((l=a.videoData.L)==null?0:lH(l)))}; p33=function(a){if(!VOw(a))return!1;var l;a=(l=a.mediaElement)==null?void 0:l.audioTracks();return!!(a&&a.length>1)}; WBp=function(a){var l=Zxp(a);if(l)return xF7(a.videoData.getAvailableAudioTracks().find(function(m){return m.WF.getName()===l}))}; Zxp=function(a){var l;if(a=(l=a.mediaElement)==null?void 0:l.audioTracks())for(l=0;l0&&(l.TW=T.n3));l.WE=T.Mg;l.hV=Ib(m,{},T.Z||void 0,gn(T));l.wb=b9(T)&&g.IE(m);Mf(T)&&(l.wO=!0,m.V("html5_sabr_report_partial_segment_estimated_duration")&& (l.mB=!0),l.T=!0,l.Et=m.V("html5_sabr_enable_live_clock_offset"),l.sZ=m.V("html5_disable_client_resume_policy_for_sabr"),l.zG=m.V("html5_trigger_loader_when_idle_network"),l.zL=m.V("html5_sabr_parse_live_metadata_playback_boundaries"),l.GL=m.V("html5_enable_platform_backpressure_with_sabr"),l.TF=m.V("html5_consume_onesie_next_request_policy_for_sabr"),l.K8=m.V("html5_sabr_report_next_ad_break_time"),l.n3=m.V("html5_log_high_res_buffer_timeline")&&m.bZ(),l.C8=m.V("html5_remove_stuck_slices_beyond_max_buffer_limits"), l.Z$=m.V("html5_gapless_sabr_btl_last_slice")&&qf(T),l.VB=m.V("html5_reset_last_appended_slice_on_seek")&&qf(T),P9(T)?(l.oW=!0,l.M7=m.V("html5_estimate_partial_segment_duration"),l.Wd=m.V("html5_disable_variability_tracker_for_live"),l.Mj=m.V("html5_sabr_use_accurate_slice_info_params"),m.V("html5_simplified_backup_timeout_sabr_live")&&(l.cI=!0,l.VX=l.Nx)):l.wW=m.V("html5_probe_request_on_sabr_request_progress"),l.iD=m.V("html5_serve_start_seconds_seek_for_post_live_sabr"),l.p5=m.V("html5_flush_index_on_updated_timestamp_offset"), l.N=Z3z(T),l.tO=m.V("html5_ignore_partial_segment_from_live_readahead"),l.zd=m.V("html5_use_buffer_health_for_readahead"),l.Wg=m.V("html5_use_non_active_broadcast_for_post_live"),l.hM=m.V("html5_use_centralized_player_time"),l.v1=m.V("html5_consume_onesie_sabr_seek"),l.lT=m.V("html5_enable_sabr_seek_loader_refactor"),l.d1=m.V("html5_update_segment_start_time_from_media_header"),T.enableServerStitchedDai&&(l.Z=!0,l.Nu=m.V("html5_reset_server_stitch_state_for_non_sabr_seek"),l.uD=m.V("html5_remove_ssdai_append_pause")&& !T.WN(),l.im=m.V("html5_ssdai_log_ssevt_in_loader")),l.A6=m.bZ()||T.WN());l.K=l.T&&m.V("html5_sabr_live");l.yg=g.LcP(T);hP(m.K,Ow.BITRATE)&&(l.Nj=NaN);if(b=g.PU(m.experiments,"html5_request_size_max_kb"))l.AM=b*1024;m.K.Z?l.Dv="; "+Ow.EXPERIMENTAL.name+"=allowed":m.V("html5_enable_cobalt_tunnel_mode")&&(l.Dv="; tunnelmode=true");b=T.serverPlaybackStartConfig;(b==null?0:b.enable)&&(b==null?0:b.playbackStartPolicy)&&(l.Or=!0,CH(l,b.playbackStartPolicy,2));b=cOQ(a);a.bU.removeAll();a:{m=a.xv.JC;if(T= a.videoData.videoId)if(y=m.T.get(T)){m.T.remove(T);m=y;break a}m=void 0}a.loader=new g.or(a,a.aj.schedule,l,a.videoData.T,a.videoData.Z,gm(a),b,a.videoData.enableServerStitchedDai,m,a.videoData.N);l=a.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&a.videoData.isLivePlayback&&a.Pu()?!0:a.qe&&g.OF(a.aj)&&a.videoData.isLivePlayback;a.loader.initialize(a.getCurrentTime(),gm(a),l);a.videoData.probeUrl&&(a.loader.Mj=a.videoData.probeUrl);if(a.t6.length||a.qe)a.videoData.cotn||Mu(a,!1);h17(a.KR, a.loader);a.QP&&(Yn3(a.loader,new g.uF(a.QP)),a.Tu("sdai",{sdl:1}));g.u9(a.videoData)&&(a=a.loader,a.policy.W4=a.policy.VY)}; He=function(a){a.loader&&(a.loader.dispose(),a.loader=null,h17(a.KR,null));a.TJ()?LB7(a):a.PZ()}; LB7=function(a){if(a.Wz)if(a.logger.debug("release media source"),a.Ql(),a.Wz.K)try{a.aj.bZ()&&a.Tu("rms",{l:"vprms",sr:a.TJ(),rs:rV(a.Wz)});a.Wz.clear();var l;(l=a.mediaElement)!=null&&(l.L=a.Wz);a.Wz=null}catch(m){l=new g.YH("Error while clearing Media Source in VideoPlayer: "+m.name+", "+m.message),l=zM(l),a.handleError(l),a.PZ()}else a.PZ()}; Ndb=function(a,l){l=l===void 0?!1:l;if(a.Wz)return a.Wz.Z;a.logger.debug("update media source");a:{l=l===void 0?!1:l;try{g.ur()&&a.videoData.e8()&&Ouw(a.mediaElement);var m=a.mediaElement.o8(a.Ii(),a.O_())}catch(y){if(gud(a.OP,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",y);a.jd("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}a.nZ(m,!1,!1,l)}var T;return((T=a.o8())==null?void 0:T.Z)||null}; Q4w=function(a,l){l=l===void 0?!1:l;if(a.loader){a.videoData.enableServerStitchedDai&&RQ7(a.loader);var m=a.getCurrentTime()-a.YX();a.loader.seek(m,{Cv:l}).wd(function(){})}else AO3(a)}; edb=function(a,l,m,T){m=m===void 0?!1:m;T=T===void 0?!1:T;if(a.Wz&&(!l||a.Wz===l)){a.logger.debug("media source opened");var y=a.getDuration();!y&&P9(a.videoData)&&(y=25200);if(a.Wz.isView){var R=y;a.logger.debug(function(){return"Set media source duration to "+R+", video duration "+y}); R>a.Wz.getDuration()&&tO5(a,R)}else tO5(a,y);tD3(a.loader,a.Wz,m,T);a.publish("mediasourceattached")}}; tO5=function(a,l){if(a.Wz){a.Wz.yf(l);var m;(m=a.loader)!=null&&m.policy.hM&&(m.C=l)}}; K37=function(a,l){Gel(a,l.reason,l.T.info,l.token,l.videoId)}; RZ=function(a,l){a.publish("internalvideodatachange",l===void 0?"dataupdated":l,a.videoData)}; FB7=function(a){var l="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");a.V("html5_remove_progress_event_listener")||(l.push("progress"),l.push("suspend"));l=g.c(l);for(var m=l.next();!m.done;m=l.next())a.UK.W(a.mediaElement,m.value,a.Bl,a);a.aj.NE&&a.mediaElement.L8()&&(a.UK.W(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.SLg,a),a.UK.W(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.kuT, a))}; OxH=function(a){g.Ly(a.rB);hdR(a)||(a.rB=g.W$(function(){return hdR(a)},100))}; hdR=function(a){var l=a.mediaElement;l&&a.aE&&!a.videoData.Kx&&!xb("vfp",a.CE.timerName)&&l.Tb()>=2&&!l.isEnded()&&Au(l.dL())&&a.CE.tick("vfp");return(l=a.mediaElement)&&!a.videoData.Kx&&l.getDuration()>0&&(l.isPaused()&&l.Tb()>=2&&Au(l.dL())&&(xb("pbp",a.CE.timerName)||a.CE.tick("pbp"),!a.videoData.P4||a.dS||l.isSeeking()||(a.dS=!0,a.publish("onPlaybackPauseAtStart"))),l=l.getCurrentTime(),sr(a.lG,l))?(a.Cc(),!0):!1}; zd7=function(a){a.R0().Sq();if(AU(a.videoData)&&Date.now()>a.RU+6283){if(!(!a.isAtLiveHead()||a.videoData.T&&KS(a.videoData.T))){var l=a.R0();if(l.qoe){l=l.qoe;var m=l.provider.vz.Dn(),T=g.Dw(l.provider);TNd(l,T,m);m=m.Z;isNaN(m)||g.jw(l,T,"e2el",[m.toFixed(3)])}}a.V("html5_alc_live_log_rawlat")?(l=a.videoData,l=g.Fm(l.Y())?!0:g.Ul(l.Y())?l.drmProduct==="6":!1):l=g.Fm(a.aj);l&&a.Tu("rawlat",{l:Ur(a.JF,"rawlivelatency").toFixed(3)});a.RU=Date.now()}a.videoData.L&&lH(a.videoData.L)&&(l=a.cS())&&l.videoHeight!== a.Rd&&(a.Rd=l.videoHeight,Gel(a,"a",KB3(a,a.videoData.Mj)))}; KB3=function(a,l){if(l.T.video.quality==="auto"&&lH(l.getInfo())&&a.videoData.FU)for(var m=g.c(a.videoData.FU),T=m.next();!T.done;T=m.next())if(T=T.value,T.getHeight()===a.Rd&&T.T.video.quality!=="auto")return T.getInfo();return l.getInfo()}; RdH=function(a){if(!AU(a.videoData))return NaN;var l=0;a.loader&&a.videoData.T&&(l=P9(a.videoData)?a.loader.iG.Xc()||0:a.videoData.T.hM);return(0,g.E)()/1E3-a.V1()-l}; $Bz=function(a){a.mediaElement&&a.mediaElement.rL()&&(a.mP=(0,g.E)());a.aj.Dk?g.ZC(function(){vSP(a)},0):vSP(a)}; vSP=function(a){var l;if((l=a.Wz)==null||!l.oV()){if(a.mediaElement)try{a.PJ=a.mediaElement.playVideo()}catch(T){qu(a,"err."+T)}if(a.PJ){var m=a.PJ;m.then(void 0,function(T){a.logger.debug(function(){return"playMediaElement failed: "+T}); if(!g.u(a.playerState,4)&&!g.u(a.playerState,256)&&a.PJ===m)if(T&&T.name==="AbortError"&&T.message&&T.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+T.message}); else{var y="promise";T&&T.name&&(y+=";m."+T.name);qu(a,y);a.yw=!0;a.videoData.Sd=!0}})}}}; qu=function(a,l){g.u(a.playerState,128)||(a.If(dD(a.playerState,1028,9)),a.Tu("dompaused",{r:l}),a.publish("onAutoplayBlocked"))}; m1=function(a,l){l=l===void 0?!1:l;if(!a.mediaElement||!a.videoData.Z)return!1;var m=l;m=m===void 0?!1:m;var T=null;var y;if((y=a.videoData.Z)==null?0:y.T){T=Ndb(a,m);var R;(R=a.loader)==null||R.resume()}else He(a),a.videoData.Mj&&(T=a.videoData.Mj.e0());y=a.mediaElement.Hm();m=!1;y&&y.equals(T)||(s4P(a,T),m=!0);g.u(a.playerState,2)||(T=a.KR,l=l===void 0?!1:l,T.K||!(T.Z>0)||T.mediaElement&&T.mediaElement.getCurrentTime()>0||(l={hW:"seektimeline_resumeTime",Cv:l},T.videoData.Kx||(l.seekSource=15), T.seekTo(T.Z,l)));a:{l=m;if(Mf(a.videoData)){if(!a.videoData.wR())break a}else if(!g.LK(a.videoData))break a;if(a.mediaElement)if((T=a.videoData.K)&&a.mediaElement.L8()){y=g.B(a.mediaElement.hN());if(a.MI)if(y!==a.MI.element)iX(a);else if(l&&T.flavor==="fairplay"&&!XL())iX(a);else break a;if(a.V("html5_report_error_for_unsupported_tvos_widevine")&&XL()&&T.flavor==="widevine")a.jd("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.MI=new x5w(y,a.videoData,a.aj); a.MI.subscribe("licenseerror",a.ES,a);a.MI.subscribe("qualitychange",a.e4L,a);a.MI.subscribe("heartbeatparams",a.kO,a);a.MI.subscribe("keystatuseschange",a.f6,a);a.MI.subscribe("ctmp",a.Tu,a);l=g.c(a.bU.keys);for(T=l.next();!T.done;T=l.next())T=a.bU.get(T.value),a.MI.O6(T);a.V("html5_eme_loader_sync")||a.bU.removeAll()}}else a.jd("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return m}; s4P=function(a,l){a.CE.tick("vta");uu("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&v6b(a.KR,a.getCurrentTime());a.mediaElement.activate(l);a.Wz&&Hw(4);!a.videoData.Kx&&a.playerState.isOrWillBePlaying()&&a.d4.start();if(VOw(a)){var m;if(l=(m=a.mediaElement)==null?void 0:m.audioTracks())l.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}}; iX=function(a){a.MI&&(a.MI.dispose(),a.MI=null)}; SP3=function(a){var l=l===void 0?!1:l;a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Wz?(iX(a),a.PZ(),Ndb(a,l)):(a.videoData.Mj&&a.videoData.Mj.IA(),a.mediaElement.stopVideo()),a.playVideo())}; ft5=function(a,l){a.aj.V("html5_log_rebuffer_reason")&&(l={r:l,lact:zG()},a.mediaElement&&(l.bh=yF(a.mediaElement)),a.Tu("bufreason",l))}; JOQ=function(a,l){if(a.aj.bZ()&&a.mediaElement){var m=a.mediaElement.rW();m.omt=(a.mediaElement.getCurrentTime()+a.YX()).toFixed(3);m.ps=a.playerState.state.toString(16);m.rt=(KL(a.R0())*1E3).toFixed();m.e=l;a.gB[a.XW++%5]=m}try{if(l==="timeupdate"||l==="progress")return}catch(T){}a.logger.debug(function(){return"video element event "+l})}; BdP=function(a){if(a.aj.bZ()){a.gB.sort(function(T,y){return+T.rt-+y.rt}); for(var l=g.c(a.gB),m=l.next();!m.done;m=l.next())m=m.value,a.Tu("vpe",Object.assign({t:m.rt},m));a.gB=[];a.XW=0}}; ke7=function(a){if(g.xa("cobalt")&&g.xa("nintendo switch")){var l=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Tu("nxdock",{d:l})}}; Mu=function(a,l){var m;(m=a.loader)==null||xu(m,l)}; MOd=function(a){Yw(a.videoData,"html5_set_debugging_opt_in")&&(a=g.EC(),g.oi(0,183)||(DX(183,!0),a.save()))}; Hqt=function(a,l){a.xv.i$()||(a.Tu("sgap",{f:l}),a.xv.clearQueue(!1,l==="pe"))}; oP=function(a){return a.V("html5_disable_video_player_initiated_seeks")&&Mf(a.videoData)}; nSw=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);Mh(this.api,"isLifaAdPlaying",function(){return l.api.isLifaAdPlaying()}); this.events.W(a,"serverstitchedvideochange",function(){var m;(m=l.api.getVideoData())!=null&&m.WN()&&(l.api.isLifaAdPlaying()?(l.playbackRate=l.api.getPlaybackRate(),l.api.setPlaybackRate(1)):l.api.setPlaybackRate(l.playbackRate))}); this.playbackRate=1}; w3d=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);Mh(this.api,"seekToChapterWithAnimation",function(m){l.seekToChapterWithAnimation(m)}); Mh(this.api,"seekToTimeWithAnimation",function(m,T){l.seekToTimeWithAnimation(m,T)}); Mh(this.api,"renderChapterSeekingAnimation",function(m,T,y){l.api.renderChapterSeekingAnimation(m,T,y)}); Mh(this.api,"setMacroMarkers",function(m){l.setMacroMarkers(a,m)}); Mh(this.api,"changeMarkerVisibility",function(m,T,y){l.changeMarkerVisibility(m,T,y)}); Mh(this.api,"isSameMarkerTypeVisible",function(m){return l.isSameMarkerTypeVisible(m)})}; Itd=function(a,l,m){var T=a.api.getCurrentTime()*1E30&&y>0&&(m.width+=y,g.nA(l.element,"width",m.width+"px")));a.size=m}}; g.Fq=function(a,l){var m=a.T[a.T.length-1];m!==l&&(a.T.push(l),PY7(a,m,l))}; g.hc=function(a){if(!(a.T.length<=1)){var l=a.T.pop(),m=a.T[0];a.T=[m];PY7(a,l,m,!0)}}; PY7=function(a,l,m,T){GQH(a);l&&(l.unsubscribe("size-change",a.Vt,a),l.unsubscribe("back",a.v4,a));m.subscribe("size-change",a.Vt,a);m.subscribe("back",a.v4,a);if(a.I0){g.M$(m.element,T?"ytp-panel-animate-back":"ytp-panel-animate-forward");m.DK(a.element);m.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var y=a.size;A47(a);g.Y1(a.element,y);a.C=new g.aH(function(){VBp(a,l,m,T)},20,a); a.C.start()}else m.DK(a.element),l&&l.detach()}; VBp=function(a,l,m,T){a.C.dispose();a.C=null;g.M$(a.element,"ytp-popup-animating");T?(g.M$(l.element,"ytp-panel-animate-forward"),g.dK(m.element,"ytp-panel-animate-back")):(g.M$(l.element,"ytp-panel-animate-back"),g.dK(m.element,"ytp-panel-animate-forward"));g.Y1(a.element,a.size);a.B=new g.aH(function(){g.dK(a.element,"ytp-popup-animating");l.detach();g.jt(l.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.B.dispose();a.B=null},250,a); a.B.start()}; GQH=function(a){a.C&&g.mq(a.C);a.B&&g.mq(a.B)}; OR=function(a){g.eX.call(this,a,"ytp-shopping-product-menu");this.GE=new g.Q4(this.D);g.w(this,this.GE);this.hide();g.Fq(this,this.GE);g.fq(this.D,this.element,4)}; Z9b=function(a,l,m){var T,y=l==null?void 0:(T=l.text)==null?void 0:T.simpleText;y&&(m=pa3(a,m,y,l==null?void 0:l.icon,l==null?void 0:l.secondaryIcon),l.navigationEndpoint&&m.listen("click",function(){a.D.Pz("innertubeCommand",l.navigationEndpoint);a.hide()},a))}; Wtw=function(a,l,m){var T,y=l==null?void 0:(T=l.text)==null?void 0:T.simpleText;y&&pa3(a,m,y,l==null?void 0:l.icon).listen("click",function(){var R;(l==null?void 0:(R=l.icon)==null?void 0:R.iconType)==="HIDE"?a.D.publish("featuredproductdismissed"):l.serviceEndpoint&&a.D.Pz("innertubeCommand",l.serviceEndpoint);a.hide()},a)}; pa3=function(a,l,m,T,y){l=new g.ub(g.X9({},[],!1,!!y),l,m);y&&l.updateValue("secondaryIcon",c47(y));l.setIcon(c47(T));g.w(a,l);a.GE.mL(l,!0);return l}; c47=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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{U:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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 A77();case "HIDE":return{U:"svg",G:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"g",X:[{U:"path",G:{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 zs()}}; Kz=function(a){Lz.call(this,a,!1,!0);this.isCounterfactual=this.L=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.J=!0;this.overflowButton=new g.x({U:"button",uT:["ytp-featured-product-overflow-icon","ytp-button"],G:{"aria-haspopup":"true"}});this.overflowButton.hide();g.w(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.x({U:"img",S:"ytp-suggested-action-badge-img",G:{src:"{{url}}"}}); this.thumbnailImage.hide();g.w(this,this.thumbnailImage);this.thumbnailIcon=new g.x({U:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.w(this,this.thumbnailIcon);this.banner=new g.x({U:"a",S:"ytp-suggested-action-container",X:[this.thumbnailImage,this.thumbnailIcon,{U:"div",S:"ytp-suggested-action-details",X:[{U:"text",S:"ytp-suggested-action-title",Lx:"{{title}}"},{U:"text",S:"ytp-suggested-action-subtitle",Lx:"{{subtitle}}"},{U:"text",S:"ytp-suggested-action-metadata-text", Lx:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.w(this,this.banner);this.banner.DK(this.Z.element);this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.D,g.qm("suggested_action_view_model"),this.Utj);this.W(this.D,g.bl("suggested_action_view_model"),this.iEj);this.W(this.overflowButton.element,"click",this.s1);this.W(a,"featuredproductdismissed",this.HB);this.D.createServerVe(this.banner.element,this.banner,!0)}; LtQ=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.lT=a.isVisible,ce(a),a.tV(),a.thumbnailImage.zx(a.isVisible),a.shouldHideDismissButton||a.dismissButton.zx(a.isVisible),a.shouldShowOverflowButton&&a.overflowButton.zx(a.isVisible))}; z_=function(){Kz.apply(this,arguments)}; Nod=function(a){rf.call(this,a);this.T=new z_(this.api);g.w(this,this.T);g.fq(this.api,this.T.element,4)}; ve=function(a){rf.call(this,a);var l=this;this.T="";this.Z=!0;this.L=this.api.V("html5_enable_audio_track_stickiness_phase_two");var m=new g.BT(a);g.w(this,m);m.W(a,"internalaudioformatchange",function(T,y){Q2z(l,T,y)}); m.W(a,"videoplayerreset",function(){tBw(l)}); m.W(a,"videodatachange",function(T,y){l.onVideoDataChange(T,y)})}; Q2z=function(a,l,m){if(m){var T="";if(eX5(a,l)){T=l;a.L||(a.T=l);if(m=a.api.getVideoData(void 0,!0))m.dl=l;a.api.Y().yg=l}if(a.L&&T&&Ftt(a,T)){TP7(a.api,a.T||T);var y;Zh(gp(a.api.Y(),(y=a.api.getVideoData())==null?void 0:g.wn(y)),function(R){hXQ(a,T,R)})}}}; tBw=function(a){if(a.T)O9p(a);else{var l;if(a.L&&((l=Ua())==null?0:l.size)){var m;Zh(gp(a.api.Y(),(m=a.api.getVideoData())==null?void 0:g.wn(m)),function(T){if((T=Kt7(T))&&Ftt(a,T)){var y=a.api.getVideoData(void 0,!0);y&&(y.dl=T);a.api.Y().yg=T}})}}}; O9p=function(a){var l=a.api.getVideoData(void 0,!0);l&&(l.dl=a.T)}; hXQ=function(a,l,m){Kt7(m)!==l&&(zXt([{settingItemId:$6(m),settingOptionValue:{stringValue:l}}]),Zh(a.kd(),function(T){yHw(T,$6(m),{stringValue:l})}))}; vmz=function(a,l){Wc(Zh(Zh(a.kd(),function(m){return mxp(m,[$6(l)])}),function(m){if(m){m=g.c(m); for(var T=m.next();!T.done;T=m.next()){var y=T.value;T=y.key;y=y.value;T&&y&&(zXt([{settingItemId:T,settingOptionValue:y}]),tBw(a))}}}),function(){a.Z=!0})}; eX5=function(a,l){a=a.api.getAvailableAudioTracks();a=g.c(a);for(var m=a.next();!m.done;m=a.next())if(m=m.value,m.getLanguageInfo().getId()===l)return m;return null}; Kt7=function(a){a=$6(a);var l=Ua();a=l?l.get(a):void 0;return a&&a.stringValue?a.stringValue:""}; $6=function(a){var l=(484).toString();a&&(l=(483).toString());return l}; Ftt=function(a,l){var m;return l.split(".")[0]!==""&&((m=a.api.getVideoData())==null?void 0:!En(m))}; zXt=function(a){var l=Ua();l||(l=new Map);a=g.c(a);for(var m=a.next();!m.done;m=a.next())m=m.value,l.set(m.settingItemId,m.settingOptionValue);l=JSON.stringify(Object.fromEntries(l));g.JN("yt-player-user-settings",l,2592E3)}; g.sR=function(a,l,m,T,y,R,H){g.ub.call(this,g.X9({"aria-haspopup":"true"}),l,a);this.Ob=T;this.J=!1;this.Z=null;this.options={};this.L=new g.Q4(m,void 0,a,y,R,H);g.w(this,this.L);this.listen("keydown",this.Z1);this.listen("click",this.open)}; $Rz=function(a){if(a.Z){var l=a.options[a.Z];l.element.getAttribute("aria-checked");l.element.setAttribute("aria-checked","false");a.Z=null}}; s2Q=function(a,l){g.sR.call(this,"Temporizador de suspensi\u00f3n",g.d5.SLEEP_TIMER,a,l);this.D=a;this.N={};this.C=this.jY("Off");this.B=this.T="";a.V("web_settings_menu_icons")&&this.setIcon({U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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.j=new g.x({U:"div",uT:["ytp-menuitem-label-wrapper"],X:[{U:"div",Lx:"Final del v\u00eddeo"},{U:"div",uT:["ytp-menuitem-sublabel"],Lx:"{{content}}"}]});g.w(this,this.j);this.listen("click",this.onClick);this.W(a,"videodatachange",this.onVideoDataChange);this.W(a,"presentingplayerstatechange",this.k8);this.W(a,"settingsMenuVisibilityChanged",this.a6L);a.createClientVe(this.element,this,218889);this.k8();this.D.Pz("onSleepTimerFeatureAvailable")}; SN7=function(a){var l="Off 10 15 20 30 45 60".split(" "),m;((m=a.D.getVideoData())==null?0:m.isLivePlayback)||l.push("End of video");m=a.D.getPlaylist();var T;m&&((T=m.listId)==null?void 0:T.type)!=="RD"&&l.push("End of playlist");a.sP(g.xX(l,a.jY));a.N=g.kB(l,a.jY,a);l=a.jY("End of video");a.options[l]&&g.Da(a.options[l],a.j)}; fi7=function(a,l){var m=a.N[l],T=m==="End of video"||m==="End of playlist";m==="Off"&&(a.T="");a.D.getPlayerState()!==0&&a.D.getPlayerState()!==5||!T?(a.C=l,g.sR.prototype.lk.call(a,l),a.cE(l),a.D.Pz("onSleepTimerSettingsChanged",m)):a.D.Pz("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}; SX=function(a){rf.call(this,a);var l=this;a.addEventListener("settingsMenuInitialized",function(){l.menuItem||(l.menuItem=new s2Q(l.api,l.api.mM()),g.w(l,l.menuItem))}); a.addEventListener("openSettingsMenuItem",function(m){if(m==="menu_item_sleep_timer"){if(!l.menuItem){var T;(T=l.api.mM())==null||T.fR()}l.menuItem.open()}}); Mh(a,"resetSleepTimerMenuSettings",function(){l.resetSleepTimerMenuSettings()}); Mh(a,"setSleepTimerTimeLeft",function(m){l.setSleepTimerTimeLeft(m)}); Mh(a,"setVideoTimeLeft",function(m){l.setVideoTimeLeft(m)})}; J4w=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"onSnackbarMessage",function(m){switch(m){case 1:m=l.api.getPlayerStateObject(),m.isBuffering()&&g.u(m,8)&&g.u(m,16)&&l.api.Pz("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl v\u00eddeo se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Saber por qu\u00e9"}]},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.Jc=function(a,l,m,T,y){l=l===void 0?!1:l;T=T===void 0?!1:T;y=y===void 0?!1:y;g.Aj.call(this);this.N=y;this.B=!1;this.j=new zO(this);this.K=this.C=null;this.Z=this.L=!1;g.w(this,this.j);this.target=a;this.T=l;this.J=m||a;this.B=T;l&&(g.Y5&&this.target.setAttribute("draggable","true"),y||(this.target.style.touchAction="none"));fz(this)}; Be=function(a){g.$H(a.j,!a.T)}; fz=function(a){a.K=null;a.C=null;a.W(k6("over"),a.Nr);a.W("touchstart",a.lV);a.T&&a.W(k6("down"),a.o8T)}; BoP=function(a,l){for(var m=0;my.start&&m>=5;L+=e}G=L.substr(0,4)+" "+L.substr(4,4)+" "+L.substr(8,4)+" "+(L.substr(12,4)+" "+L.substr(16,4))}else G="";H={video_id_and_cpn:String(l.videoId)+" / "+G,codecs:"", dims_and_frames:"",bandwidth_kbps:H.toFixed(0)+" Kbps",buffer_health_seconds:M.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:d?"":"display:none",drm:d,debug_info:m,extra_debug_info:"",bandwidth_style:P,network_activity_style:P,network_activity_bytes:b.toFixed(0)+" KB",shader_info:A,shader_info_style:A?"":"display:none",playback_categories:""};b=T.clientWidth+"x"+T.clientHeight+(y>1?"*"+y.toFixed(2):"");M="-";R.totalVideoFrames&&(M=(R.droppedVideoFrames||0)+" dropped of "+R.totalVideoFrames); H.dims_and_frames=b+" / "+M;a=a.getVolume();b=clp(l);var v;if((v=l.j)==null?0:v.audio.L)v="VB";else{var S;v=((S=l.j)==null?0:S.audio.T)?"DRC":Math.round(a*b)+"%"}S=Math.round(a)+"% / "+v;v=l.Dv.toFixed(1);isFinite(Number(v))&&(S+=" (content loudness "+v+"dB)");H.volume=S;H.resolution=T.videoWidth+"x"+T.videoHeight;if(T=l.L){if(S=T.video)v=S.fps,v>1&&(H.resolution+="@"+v),(v=R.Jq)&&v.video&&(H.resolution+=" / "+v.video.width+"x"+v.video.height,v.video.fps>1&&(H.resolution+="@"+v.video.fps)),H.codecs= Em7(T),!l.j||T.audio&&T.video?T.y3&&(H.codecs+=" / "+T.y3+"A"):H.codecs+=" / "+Em7(l.j),S.T||S.primaries?(v=S.T||"unknown",v==="smpte2084"?v+=" (PQ)":v==="arib-std-b67"&&(v+=" (HLG)"),H.color=v+" / "+(S.primaries||"unknown"),H.color_style=""):H.color_style="display:none";if(T.debugInfo)for(H.fmt_debug_info="",T=g.c(T.debugInfo),S=T.next();!S.done;S=T.next())S=S.value,H.fmt_debug_info+=S.label+":"+S.text+" ";H.fmt_debug_info_style=H.fmt_debug_info&&H.fmt_debug_info.length>0?"":"display:none"}T=l.isLivePlayback; S=l.mx;H.live_mode_style=T||S?"":"display:none";H.live_latency_style=T?"":"display:none";if(S)H.live_mode="Post-Live"+(P9(l)?" Manifestless":"");else if(T){S=R.Pp;H.live_latency_secs=S.toFixed(2)+"s";T=P9(l)?"Manifestless, ":"";l.Ij&&(T+="Windowed, ");v="Uncertain";if(S>=0&&S<120)if(l.latencyClass&&l.latencyClass!=="UNKNOWN")switch(l.latencyClass){case "NORMAL":v="Optimized for Normal Latency";break;case "LOW":v="Optimized for Low Latency";break;case "ULTRALOW":v="Optimized for Ultra Low Latency"; break;default:v="Unknown Latency Setting"}else v=l.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";T+=v;(S=R.Pl)&&(T+=", seq "+S.sequence);H.live_mode=T}!R.isGapless||qf(l)&&R.i$||(H.playback_categories+="Gapless ");H.playback_categories_style=H.playback_categories?"":"display:none";H.bandwidth_samples=R.Is;H.network_activity_samples=R.Sl;H.live_latency_samples=R.GU;H.buffer_health_samples=R.mT;R=g.u9(l);if(l.cotn||R)H.cotn_and_local_media=(l.cotn?l.cotn:"null")+ " / "+R;H.cotn_and_local_media_style=H.cotn_and_local_media?"":"display:none";Yw(l,"web_player_release_debug")?(H.release_name=q[24],H.release_style=""):H.release_style="display:none";H.debug_info&&V.length>0&&H.debug_info.length+V.length<=60?H.debug_info+=" "+V:H.extra_debug_info=V;H.extra_debug_info_style=H.extra_debug_info&&H.extra_debug_info.length>0?"":"display:none";return H}; Em7=function(a){var l=/codecs="([^"]*)"/.exec(a.mimeType);return l&&l[1]?l[1]+" ("+a.itag+")":a.itag}; x6=function(a,l,m,T,y){g.x.call(this,{U:"div",S:"ytp-horizonchart"});this.B=l;this.sampleCount=m;this.j=T;this.C=y;this.index=0;this.heightPx=-1;this.Z=this.L=null;this.T=Math.round(a/m);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.B+"em"}; DA=function(a,l){if(a.heightPx===-1){var m=null;try{m=g.B(g.lK("CANVAS")),a.L=m.getContext("2d")}catch(b){}if(a.L){var T=a.T*a.sampleCount;a.Z=m;a.Z.width=T;a.Z.style.width=T+"px";a.element.appendChild(a.Z)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.T*=4,m=0;m1?2:1,a.Z.height=a.heightPx*m, a.Z.style.height=a.heightPx+"px",a.L.scale(1,m)));l=g.c(l);for(T=l.next();!T.done;T=l.next()){m=a;var y=a.index,R=T.value;for(T=0;T+20&&g.y6(l.Z.element);T.classList.add("ytp-timely-actions-overlay");l.Z.element.appendChild(T)}); g.w(this,this.Z);g.fq(this.api,this.Z.element,4)}; qyp=function(a){a.timelyActions&&(a.j=a.timelyActions.reduce(function(l,m){if(m.cueRangeId===void 0)return l;l[m.cueRangeId]=0;return l},{}))}; rm=function(a,l){if(a.timelyActions){a=g.c(a.timelyActions);for(var m=a.next();!m.done;m=a.next())if(m=m.value,m.cueRangeId===l)return m}}; bYw=function(a,l){if((a=rm(a,l))&&a.onCueRangeExit)return Es(a.onCueRangeExit)}; UR=function(a){if(a.T!==void 0){var l=(l=rm(a,a.T))&&l.onCueRangeEnter?Es(l.onCueRangeEnter):void 0;var m=rm(a,a.T);a:if(m&&m.additionalTrigger){var T=g.c(m.additionalTrigger);for(var y=T.next();!y.done;y=T.next())if(y=y.value,y.type){var R=void 0,H=void 0;if((R=a.lT[y.type])==null?0:R((H=y.args)!=null?H:{})){T=!0;break a}}T=!1}else T=!0;l&&T&&(a.api.Pz("innertubeCommand",l),a.setTimeout(m),a.j[a.T]!==void 0&&a.j[a.T]++,a.J=!0)}}; T3t=function(a,l){return a.L===void 0?!1:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(l.seekLengthMilliseconds)===5E3?a.L===72:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(l.seekLengthMilliseconds)===1E4?a.L===74:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(l.seekLengthMilliseconds)===5E3?a.L===71:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(l.seekLengthMilliseconds)===1E4?a.L===73:!1}; yGd=function(a){if(a=a.getWatchNextResponse()){var l,m;a=(l=a.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.timelyActionsOverlayViewModel;l=g.I(a,gD7);if(l!=null&&l.timelyActions)return l==null?void 0:l.timelyActions.map(function(T){return g.I(T,MUd)}).filter(function(T){return!!T})}}; iY5=function(a){rf.call(this,a);var l=this;ib(this.api,"getPlaybackRate",function(){return l.api.getPlaybackRate()}); ib(this.api,"setPlaybackRate",function(m){typeof m==="number"&&l.api.setPlaybackRate(m)})}; a4=function(a,l,m,T){HR.call(this,"VOICE_BOOST",g.d5.KS);this.T=!1;this.D=a;this.Ob=a.mM();this.j=l;this.Z=m;this.hasVoiceBoostAudioTrack=T;this.W(a,"videodatachange",this.L);this.setIcon(c7w());this.subscribe("select",this.C,this);this.L()}; le=function(a){rf.call(this,a);var l=this;this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"settingsMenuInitialized",function(){d8z(l)}); Mh(this.api,"getVoiceBoostUserPreference",function(){return l.getVoiceBoostUserPreference()}); Mh(this.api,"setVoiceBoostUserPreference",function(T){l.setVoiceBoostUserPreference(T)}); Mh(this.api,"hasVoiceBoostAudioTrack",function(){return l.hasVoiceBoostAudioTrack()}); var m;this.T=(m=IWR())!=null?m:0;this.updateEnvironmentData()}; d8z=function(a){a.menuItem||(a.menuItem=new a4(a.api,function(l){a.setVoiceBoostUserPreference(l)},function(){return a.getVoiceBoostUserPreference()},function(){return a.hasVoiceBoostAudioTrack()}),g.w(a,a.menuItem))}; jz5=function(a){a=a.eb();if(!a)return!1;a=g.br(a).exp||"";return a.includes("xpv")||a.includes("xpe")}; AGt=function(a){a=g.c(g.mB(a,!0));for(var l=a.next();!l.done;l=a.next())if(jz5(l.value))return!0;return!1}; POP=function(a,l){a=g.c(g.mB(a,!0));for(var m=a.next();!m.done;m=a.next())if(m=m.value,jz5(m)){var T={potc:"1",pot:l};m.url&&(m.url=g0(m.url,T))}}; GnQ=function(a){return g.J(function(l){if(l.L==1)return g.LP(l,2),g.z(l,a,4);if(l.L!=2)return g.e7(l,0);g.OQ(l);g.c5(l)})}; ym=function(a){rf.call(this,a);var l=this;this.useLivingRoomPoToken=!1;this.K=new g.pr;this.T=!1;this.CE=null;this.J=!1;this.j=null;this.C=!1;var m=a.Y().getWebPlayerContextConfig();this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"spsumpreject",function(T,y,R){l.C=y;T&&l.J&&!l.j&&(l.V("html5_generate_content_po_token")&&R?l.A7(R):l.V("html5_generate_session_po_token")&&VUb(l));l.j||l.api.Tu("stp",{s:+l.J,b:+l.C})}); this.events.W(a,"poTokenVideoBindingChange",function(T){l.A7(T)}); this.useLivingRoomPoToken=!(m==null||!m.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){l.CE=a.Rg();var T=(l.V("html5_generate_session_po_token")||l.V("html5_generate_content_po_token"))&&!l.useLivingRoomPoToken;try{if(l.V("html5_use_shared_owl_instance"))p4z(l);else if(T){l.CE.eq("pot_isc");var y=g.PU(l.api.Y().experiments,"html5_webpo_kaios_defer_timeout_ms");y?(l.Z=EA(),g.ZC(function(){Te(l)},y)):l.V("html5_webpo_idle_priority_job")?(l.Z=EA(),g.m$(g.yi(),function(){Te(l)})): Te(l)}}catch(R){R instanceof Error&&g.nU(R)}}); a.addEventListener("trackListLoaded",this.pu.bind(this));a.Ox(this)}; ZYd=function(a){var l=HS(a.experiments,"html5_web_po_request_key");return l?l:g.OF(a)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; WU5=function(a){var l=new TX3,m={},T=(m["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",m);return new Q8(l,a,function(){return T})}; cG3=function(a){return new tQ(a)}; R4=function(a,l){a.V("html5_webpo_bge_ctmp")&&a.api.Tu(l,{hwpo:!!a.L,hwpor:a.T})}; p4z=function(a){var l,m;g.J(function(T){if(T.L==1)return R4(a,"swpo_i"),a.Z=EA(),H3(a),g.z(T,MS(),2);if(T.L!=3)return l=T.T,R4(a,"swpo_co"),g.z(T,Sh7(l),3);m=T.T;a.V("html5_web_po_token_disable_caching")||m.Ep(150);a.L=m;R4(a,"swpo_cc");GnQ(m.cP()).then(function(){a.T=!0;a.K.resolve();R4(a,"swpo_re")}); g.ZC(function(){Te(a);R4(a,"swpo_si")},0); g.c5(T)})}; N3d=function(a){var l=a.api.Y(),m=WU5(ZYd(l)),T=m.zw.bind(m);m.zw=function(b){var M;return g.J(function(d){if(d.L==1)return g.z(d,T(b),2);M=d.T;a.api.Tu("itr",{});return d.return(M)})}; try{var y=cG3({n8:m,cQ:{maxAttempts:5},OU:{zS:"CLEn",disable:l.experiments.XO("html5_web_po_disable_remote_logging")||LUw.includes(g.Fl(l.Fa)||""),oz:sSQ(l.experiments),Dj8:a.V("wpo_dis_lfdms")?0:1E3},OEb:g.nU});var R=new II({HY:y,n8:m,onError:g.nU});GnQ(R.cP()).then(function(){a.T=!0;a.K.resolve()}); a.V("html5_web_po_token_disable_caching")||R.Ep(150);g.w(a,y);g.w(a,R);a.L=R}catch(b){g.nU(b);var H;(H=y)==null||H.dispose()}}; Te=function(a){var l=a.api.Y();a.CE.eq("pot_ist");a.L||N3d(a);a.V("html5_bandaid_attach_content_po_token")||(a.V("html5_generate_session_po_token")&&(H3(a),VUb(a)),l=g.PU(l.experiments,"html5_session_po_token_interval_time_ms")||0,l>0&&(a.B=g.W$(function(){H3(a)},l)),a.J=!0)}; H3=function(a){var l,m,T,y;g.J(function(R){if(!a.V("html5_generate_session_po_token")||a.useLivingRoomPoToken)return R.return();l=a.api.Y();m=g.Uu("EOM_VISITOR_DATA")||g.Uu("VISITOR_DATA");T=l.dl?l.datasyncId:m;y=HS(l.experiments,"html5_mock_content_binding_for_session_token")||l.livingRoomPoTokenId||T;l.Xe=qB(a,y);g.c5(R)})}; qB=function(a,l){if(!a.L){if(a.Z)try{return a.Z(l)}catch(R){g.nU(R)}return""}try{a.CE.eq(a.T?"pot_cms":"pot_csms");var m={V9:!0,By:!0,uh:l};a.V("html5_web_po_token_disable_caching")||(m.o9={YH:l,Mv:!0,U3:!0});var T=a.L.DM(m);a.CE.eq(a.T?"pot_cmf":"pot_csmf");if(a.T){var y;(y=a.j)==null||y.resolve();a.j=null;a.C&&(a.C=!1,a.api.app.Qg().r4(!1))}return T}catch(R){return g.nU(R),""}}; VUb=function(a){a.L&&(a.j=new l6,a.K.promise.then(function(){a.CE.eq("pot_if");H3(a)}))}; be=function(a){rf.call(this,a);var l=this,m=new g.BT(a);g.w(this,m);m.W(a,"fullscreentoggled",function(T){QzR(l,T)}); Mh(this.api,"setFullscreenQuickActions",function(T){l.setFullscreenQuickActions(T)}); Mh(this.api,"setPlayerOverlayVideoDetailsRenderer",function(T){l.setPlayerOverlayVideoDetailsRenderer(T)})}; QzR=function(a,l){a.T&&g.r8(a.T,l);a.playerOverlayVideoDetailsRenderer&&g.r8(a.playerOverlayVideoDetailsRenderer,l)}; tUt=function(a){rf.call(this,a);var l=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.BT(a);g.w(this,this.events);this.events.W(a,"heartbeatRequest",function(m){if(l.freePreviewUsageDetails.length||l.freePreviewWatchedDuration!==null)m.heartbeatRequestParams||(m.heartbeatRequestParams={}),m.heartbeatRequestParams.unpluggedParams||(m.heartbeatRequestParams.unpluggedParams={}),l.freePreviewUsageDetails.length>0?m.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= l.freePreviewUsageDetails:m.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+l.freePreviewWatchedDuration}}); Mh(a,"setFreePreviewWatchedDuration",function(m){l.freePreviewWatchedDuration=m}); Mh(a,"setFreePreviewUsageDetails",function(m){l.freePreviewUsageDetails=m})}; gd=function(a){g.k.call(this);this.features=[];var l=this.T,m=new ev(a),T=new am(a),y=new Pe(a),R=new ym(a);var H=g.Fm(a.Y())?void 0:new ZP(a);var b=new Ac(a),M=new uJw(a),d=new iY5(a),A=new to(a);var P=g.Fm(a.Y())?new tUt(a):void 0;var G=a.V("html5_enable_ssap")?new CYz(a):void 0;var V=a.V("web_cinematic_watch_settings")&&(V=a.Y().getWebPlayerContextConfig())!=null&&V.cinematicSettingsAvailable?new PR(a):void 0;var p=new QW(a);var L=a.V("enable_courses_player_overlay_purchase")?new sO3(a):void 0; var N=g.aX(a.Y())?new K57(a):void 0;var e=new WR(a);var t=a.Y().j?new QO7(a):void 0;var v=g.vS(a.Y())?new NPl(a):void 0;var S=a.V("web_player_move_autonav_toggle")&&a.Y().p5?new Pot(a):void 0;var n=g.aX(a.Y())?new w3d(a):void 0;var X=a.V("web_enable_speedmaster")&&g.aX(a.Y())?new IZ(a):void 0;var D=a.Y().ph?void 0:new m8P(a);var yp=a.V("report_pml_debug_signal")?new io3(a):void 0;var H5=new li5(a),ad=new ZA(a);var Md=g.IE(a.Y())?new i97(a):void 0;var U=navigator.mediaSession&&window.MediaMetadata&& a.Y().Rt?new dm(a):void 0;var Nd=a.V("html5_enable_drc")&&!a.Y().C?new pO(a):void 0;var hz=new mg(a);var EQ=g.aX(a.Y())?new Nod(a):void 0;var ec=a.V("html5_enable_d6de4")?new G_(a):void 0;var MF=g.aX(a.Y())&&a.V("web_sleep_timer")?new SX(a):void 0;var KP=g.vS(a.Y())?new eIP(a):void 0;var Ft=new ve(a),Hn=new W5R(a),Q=new nSw(a);var gw=a.V("enable_sabr_snackbar_message")?new J4w(a):void 0;var D9=a.V("web_enable_timely_actions")?new HY7(a):void 0;var Nj=new Gp(a);var zd=g.aX(a.Y())?new be(a):void 0; a=a.V("html5_enable_voice_boost")?new le(a):void 0;l.call(this,m,T,y,R,H,b,M,d,A,P,G,V,p,L,N,e,t,v,S,n,X,D,yp,H5,ad,Md,void 0,U,Nd,hz,void 0,EQ,ec,MF,KP,void 0,Ft,Hn,Q,void 0,gw,D9,Nj,zd,a)}; eul=function(){this.L=this.T=NaN}; FUp=function(a,l){this.aj=a;this.timerName="";this.Z=!1;this.L=NaN;this.j=new eul;this.T=l||null;this.Z=!1}; huQ=function(a,l,m){var T=g.BS(l.UL)&&!l.UL.C;if(l.UL.M9&&(sl(l.UL)||l.UL.hM==="shortspage"||RX(l.UL)||T)&&!a.Z){a.Z=!0;a.C=l.clientPlaybackNonce;g.Uu("TIMING_ACTION")||Yv("TIMING_ACTION",a.aj.csiPageType);a.aj.csiServiceName&&Yv("CSI_SERVICE_NAME",a.aj.csiServiceName);if(a.T){T=a.T.Rg();for(var y=g.c(Object.keys(T)),R=y.next();!R.done;R=y.next())R=R.value,C$(R,T[R],a.timerName);T=g.me(sWH)(a.T.MB);g.Ex(T,a.timerName);T=a.T;T.L={};T.MB={}}g.Ex({playerInfo:{visibilityState:g.me($t3)()},playerType:"LATENCY_PLAYER_HTML5"}, a.timerName);a.K!==l.clientPlaybackNonce||Number.isNaN(a.L)||(xb("_start",a.timerName)?m=g.me(BF)("_start",a.timerName)+a.L:g.nU(new g.YH("attempted to log gapless pbs before CSI timeline started",{cpn:l.clientPlaybackNonce})));m&&!xb("pbs",a.timerName)&&MB(a,m)}}; MB=function(a,l,m){C$("pbs",l!=null?l:(0,g.E)(),m!=null?m:a.timerName)}; ie=function(a){Eqt();CQd();a.timerName=""}; OYp=function(a){if(a.T){var l=a.T;l.L={};l.MB={}}a.Z=!1;a.K=void 0;a.L=NaN}; KUd=function(a,l){g.Aj.call(this);this.UL=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.J={};this.L=0;if(a=l.session_data)this.sessionData=y7(a,"&");this.index=Math.max(0,Number(l.index)||0);this.loop=!!l.loop;this.startSeconds=Number(l.startSeconds)||0;this.title=l.playlist_title||"";this.description=l.playlist_description||"";this.author= l.author||l.playlist_author||"";l.video_id&&(this.items[this.index]=l);if(a=l.api)typeof a==="string"&&a.length===16?l.list="PL"+a:l.playlist=a;if(a=l.list)switch(l.listType){case "user_uploads":this.listId=new te("UU","PLAYER_"+a);break;default:var m=l.playlist_length;m&&(this.length=Number(m)||0);this.listId=g.ei(a);if(a=l.video)this.items=a.slice(0),this.loaded=!0}else if(l.playlist){a=l.playlist.toString().split(",");this.index>0&&(this.items=[]);a=g.c(a);for(m=a.next();!m.done;m=a.next())(m= m.value)&&this.items.push({video_id:m});this.length=this.items.length;if(a=l.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!l.shuffle);if(a=l.suggestedQuality)this.quality=a;this.J=cV(l,"playlist_");this.Z=(l=l.thumbnail_ids)?l.split(","):[]}; zu7=function(a){return!!(a.playlist||a.list||a.api)}; vDR=function(a){var l=a.index+1;return l>=a.length?0:l}; $87=function(a){var l=a.index-1;return l<0?a.length-1:l}; g.dd=function(a,l,m,T){l=l!==void 0?l:a.index;l=a.items&&l in a.items?a.items[a.order[l]]:null;var y=null;l&&(m&&(l.autoplay="1"),T&&(l.autonav="1"),y=new g.Dj(a.UL,l),g.w(a,y),y.GX=!0,y.startSeconds=a.startSeconds||y.clipStart||0,a.listId&&(y.playlistId=a.listId.toString()));return y}; szb=function(a,l){a.index=g.Km(l,0,a.length-1);a.startSeconds=0}; Syw=function(a,l){if(l.video&&l.video.length){a.title=l.title||"";a.description=l.description;a.views=l.views;a.likes=l.likes;a.dislikes=l.dislikes;a.author=l.author||"";var m=l.loop;m&&(a.loop=m);m=g.dd(a);a.items=[];for(var T=g.c(l.video),y=T.next();!y.done;y=T.next())if(y=y.value)y.video_id=y.encrypted_id,a.items.push(y);a.length=a.items.length;(l=l.index)?a.index=l:a.findIndex(m);a.setShuffle(!1);a.loaded=!0;a.L++;a.T&&a.T()}}; B37=function(a,l){var m,T,y,R,H,b,M;return g.J(function(d){if(d.L==1){m=g.gs();var A=a.Y(),P={context:g.bb(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:A.ancestorOrigins}}},G=A.getWebPlayerContextConfig();if(G==null?0:G.encryptedHostFlags)P.playbackContext.contentPlaybackContext.encryptedHostFlags=G.encryptedHostFlags;if(G==null?0:G.hideInfo)P.playerParams={showinfo:!1};A=A.embedConfig;G=l.docid||l.video_id||l.videoId||l.id;if(!G){G=l.raw_embedded_player_response;if(!G){var V=l.embedded_player_response; V&&(G=JSON.parse(V))}if(G){var p,L,N,e,t,v;G=((v=g.I((p=G)==null?void 0:(L=p.embedPreview)==null?void 0:(N=L.thumbnailPreviewRenderer)==null?void 0:(e=N.playButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.navigationEndpoint,g.m3))==null?void 0:v.videoId)||null}else G=null}p=(p=G)?p:void 0;L=a.playlistId?a.playlistId:l.list;N=l.listType;if(L){var S;N==="user_uploads"?S={username:L}:S={playlistId:L};fm7(A,p,l,S);P.playlistRequest=S}else l.playlist?(S={templistVideoIds:l.playlist.toString().split(",")}, fm7(A,p,l,S),P.playlistRequest=S):p&&(S={videoId:p},A&&(S.serializedThirdPartyEmbedConfig=A),P.singleVideoRequest=S);T=P;y=g.R0(JG7);g.LP(d,2);return g.z(d,g.Ux(m,T,y),4)}if(d.L!=2)return R=d.T,H=a.Y(),l.raw_embedded_player_response=R,H.qj=jb(l,g.vS(H)),H.Z=H.qj==="EMBEDDED_PLAYER_MODE_PFL",R&&(b=R,b.trackingParams&&Jv(b.trackingParams)),d.return(new g.Dj(H,l));M=g.OQ(d);M instanceof Error||(M=Error("b259802748"));g.kt(M);return d.return(a)})}; fm7=function(a,l,m,T){m.index&&(T.playlistIndex=String(Number(m.index)+1));T.videoId=l?l:"";a&&(T.serializedThirdPartyEmbedConfig=a)}; g.AO=function(a,l){jO.get(a);jO.set(a,l)}; g.P3=function(a){g.Aj.call(this);this.loaded=!1;this.player=a}; knw=function(){this.L=[];this.T=[]}; g.mB=function(a,l){return l?a.T.concat(a.L):a.T}; g.Ge=function(a,l){switch(l.kind){case "asr":nDp(l,a.L);break;default:nDp(l,a.T)}}; nDp=function(a,l){g.Pn(l,function(m){return a.equals(m)})||l.push(a)}; g.Vm=function(a){g.k.call(this);this.bT=a;this.L=new knw;this.j=null;this.K=[];this.J=[]}; g.px=function(a,l,m){g.Vm.call(this,a);this.videoData=l;this.audioTrack=m;this.T=null;this.Z=!1;this.K=l.Pi;this.J=l.GY;this.Z=g.B9(l)}; g.w4w=function(a,l){var m;return a.Y().V("safari_live_drm_captions_fix")&&((m=a.getVideoData())==null?0:m.wR())?!1:g.Fm(a.Y())&&!l.isManifestless}; g.Zt=function(a,l){return Ry(a.info.mimeType)?l?a.info.itag===l:!0:!1}; g.Imd=function(a,l){if(a.T!=null&&g.w4w(l,a.T)&&a.T.T.rawcc!=null)return!0;if(!a.Fl())return!1;l=!!a.T&&a.T.isManifestless&&Object.values(a.T.T).some(function(m){return g.Zt(m,"386")}); a=!!a.T&&!a.T.isManifestless&&g.rud(a.T);return l||a}; g.W3=function(a,l,m,T,y,R){g.Vm.call(this,a);this.videoId=m;this.iX=y;this.eventId=R;this.C={};this.T=null;a=T||g.br(l).hl||"";a=a.split("_").join("-");this.Z=g0(l,{hl:a})}; COp=function(a,l){return l?{lm:a.lm&&l.lm,sync:a.sync&&l.sync,streaming:a.streaming&&l.streaming}:a}; oDH=function(a,l,m){return Zh(EDp(l,m),cc(function(T){return function R(){return fP(R,function(H){if(H.L==1){g.Qp(H,2);try{return H.return(new WebAssembly.Instance(T,a))}catch(b){g.nU(b)}return W5(H,Lo(WebAssembly.instantiate(T,a)),4)}if(H.L!=2)return H.return(H.T);g.zH(H);return g.$l(H,0)})}()}))}; x8p=function(a,l){if(!a.T)return l=fetch(l),a.T=Zh(Pc(l),function(m){return m.arrayBuffer()}),Wc(a.T,function(m){a.T=void 0; m="wasm module fetch failure: "+m;g.nU(Error(m));throw m;}),l}; EDp=function(a,l){var m=D8l;if(m.L)return m.L;var T=COp(m.capabilities,l);m.L=Vo(function(){return m.Z(a,T)}); return m.L}; ua7=function(){}; X45=function(){var a=this;this.proc_exit=function(){}; this.fd_write=function(l,m,T){if(!a.exports)return 1;l=new Uint32Array(a.exports.memory.buffer,m,T*2);m=[];for(var y=0;y=11;a=a.api.Y().B&&v3;return!(!l&&!a)}; Cx=function(a,l){return!a.api.isInline()&&!$GR(a,OC(l))&&g.Ku(l)}; v3z=function(a){a.mA.c5();if(a.l_&&a.q4)a.q4=!1;else if(!a.api.Y().AM&&!a.RR()){var l=a.api.getPlayerStateObject();g.u(l,2)&&g.O2(a.api)||a.pP(l);!a.api.Y().vF||l.isCued()||g.u(l,1024)?a.zC():a.nO.isActive()?(a.lP(),a.nO.stop()):a.nO.start()}}; SEQ=function(a,l){var m;if((m=a.api.getVideoData())==null?0:m.mutedAutoplay){var T,y;if((T=l.target)==null?0:(y=T.className)==null?0:y.includes("ytp-info-panel"))return!1}return g.Ku(l)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),l=a.api.getPlayerStateObject(),!g.u(l,4)||g.u(l,8)||g.u(l,2)||a.zC(),!0):!1}; frd=function(a,l,m){a.api.isFullscreen()?m<1-l&&a.api.toggleFullscreen():m>1+l&&a.api.toggleFullscreen()}; zCQ=function(a){var l=DC()&&EZ()>=67&&!a.api.Y().B;a=a.api.Y().disableOrganicUi;return!g.xa("tizen")&&!Ol&&!l&&!a}; g.EP=function(a){g.x.call(this,{U:"div",X:[{U:"div",S:"ytp-bezel-text-wrapper",X:[{U:"div",S:"ytp-bezel-text",Lx:"{{title}}"}]},{U:"div",S:"ytp-bezel",G:{role:"status","aria-label":"{{label}}"},X:[{U:"div",S:"ytp-bezel-icon",Lx:"{{icon}}"}]}]});this.D=a;this.L=new g.aH(this.show,10,this);a=this.D.V("delhi_modern_web_player")?1E3:500;this.T=new g.aH(this.hide,a,this);g.w(this,this.L);g.w(this,this.T);this.hide()}; xS=function(a,l,m){if(l<=0){m=fj();l="silenciado";var T=0}else m=m?{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,G:{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"}}]}:{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,G:{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"}}]},T=Math.floor(l),l=T+"volumen";o4(a,m,l,T+"%")}; J3z=function(a,l){l=l?{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{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"}}]}:j$7();var m=a.D.getPlaybackRate(),T=g.ph("Velocidad: $RATE",{RATE:String(m)});o4(a,l,T,m+"x")}; BA7=function(a,l){l=l?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";o4(a,pcw(),l)}; o4=function(a,l,m,T){T=T===void 0?"":T;a.updateValue("label",m===void 0?"":m);a.updateValue("icon",l);g.Tw(a.T);a.L.start();a.updateValue("title",T);g.AM(a.element,"ytp-bezel-text-hide",!T)}; kBt=function(a,l){g.x.call(this,{U:"button",uT:["ytp-button","ytp-cards-button"],G:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.vS(a.Y()))},X:[{U:"span",S:"ytp-cards-button-icon-default",X:[{U:"div",S:"ytp-cards-button-icon",X:[a.Y().V("player_new_info_card_format")?GSQ():{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{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"}}]}]}, {U:"div",S:"ytp-cards-button-title",Lx:"Informaci\u00f3n"}]},{U:"span",S:"ytp-cards-button-icon-shopping",X:[{U:"div",S:"ytp-cards-button-icon",X:[{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",S:"ytp-svg-shadow",G:{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"}},{U:"path",S:"ytp-svg-fill",G:{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"}},{U:"path",S:"ytp-svg-shadow-fill",G:{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"}}]}]},{U:"div", S:"ytp-cards-button-title",Lx:"Shopping"}]}]});this.D=a;this.L=l;this.T=null;this.fade=new g.q4(this,250,!0,100);g.w(this,this.fade);g.AM(this.L,"ytp-show-cards-title",g.vS(a.Y()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Sv(!0)}; n3l=function(a,l){g.x.call(this,{U:"div",S:"ytp-cards-teaser",X:[{U:"div",S:"ytp-cards-teaser-box"},{U:"div",S:"ytp-cards-teaser-text",X:a.Y().V("player_new_info_card_format")?[{U:"button",S:"ytp-cards-teaser-info-icon",G:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},X:[GSQ()]},{U:"span",S:"ytp-cards-teaser-label",Lx:"{{text}}"},{U:"button",S:"ytp-cards-teaser-close-button",G:{"aria-label":"Cerrar"},X:[g.Ff()]}]:[{U:"span",S:"ytp-cards-teaser-label",Lx:"{{text}}"}]}]});var m=this;this.D= a;this.Zq=l;this.fade=new g.q4(this,250,!1,250);this.T=null;this.B=new g.aH(this.kxO,300,this);this.C=new g.aH(this.SbK,2E3,this);this.j=[];this.L=null;this.J=new g.aH(function(){m.element.style.margin="0"},250); this.onClickCommand=this.Z=null;g.w(this,this.fade);g.w(this,this.B);g.w(this,this.C);g.w(this,this.J);a.Y().V("player_new_info_card_format")?(g.M$(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.W(this.OL("ytp-cards-teaser-close-button"),"click",this.D1),this.W(this.OL("ytp-cards-teaser-info-icon"),"click",this.Yi),this.W(this.OL("ytp-cards-teaser-label"),"click",this.Yi)):this.listen("click",this.Yi);this.W(l.element,"mouseover",this.gV);this.W(l.element,"mouseout",this.rV);this.W(a,"cardsteasershow", this.UIz);this.W(a,"cardsteaserhide",this.KE);this.W(a,"cardstatechange",this.Pk);this.W(a,"presentingplayerstatechange",this.Pk);this.W(a,"appresize",this.TZ);this.W(a,"onShowControls",this.TZ);this.W(a,"onHideControls",this.sV);this.listen("mouseenter",this.E1)}; wu7=function(a){g.x.call(this,{U:"button",uT:[Dt.BUTTON,Dt.TITLE_NOTIFICATIONS],G:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},X:[{U:"div",S:Dt.TITLE_NOTIFICATIONS_ON,G:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},X:[g.Kj()]},{U:"div",S:Dt.TITLE_NOTIFICATIONS_OFF,G:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"}, X:[{U:"svg",G:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{U:"path",G:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.T=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo")}; IrH=function(a,l){a.T=l;a.element.classList.toggle(Dt.NOTIFICATIONS_ENABLED,a.T);var m=a.api.getVideoData();m?(l=l?m.cg:m.zY)?(a=a.api.kd())?Yb(a,l):g.kt(Error("No innertube service available when updating notification preferences.")):g.kt(Error("No update preferences command available.")):g.kt(Error("No video data when updating notification preferences."))}; E3P=function(a,l,m){var T=T===void 0?800:T;var y=y===void 0?600:y;var R=document.location.protocol;a=l2p(R+"//"+a+"/signin?context=popup","feature",l,"next",R+"//"+location.hostname+"/post_login");CN7(a,m,T,y)}; CN7=function(a,l,m,T){m=m===void 0?800:m;T=T===void 0?600:T;if(a=g.Ty(window,a,"loginPopup","width="+m+",height="+T+",resizable=yes,scrollbars=yes"))jtd(function(){l()}),a.moveTo((screen.width-m)/2,(screen.height-T)/2)}; g.ue=function(a,l,m,T,y,R,H,b,M,d,A,P){a=a.charAt(0)+a.substring(1).toLowerCase();m=m.charAt(0)+m.substring(1).toLowerCase();if(l==="0"||l==="-1")l=null;if(T==="0"||T==="-1")T=null;var G=A.Y(),V=G.userDisplayName&&g.BS(G);g.x.call(this,{U:"div",uT:["ytp-button","ytp-sb"],X:[{U:"div",S:"ytp-sb-subscribe",G:V?{title:g.ph("Suscribirse como $USER_NAME",{USER_NAME:G.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":HV(G),"data-tooltip-opaque":String(g.vS(G)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},X:[{U:"div",S:"ytp-sb-text",X:[{U:"div",S:"ytp-sb-icon"},a]},l?{U:"div",S:"ytp-sb-count",Lx:l}:""]},{U:"div",S:"ytp-sb-unsubscribe",G:V?{title:g.ph("Te has suscrito como $USER_NAME",{USER_NAME:G.userDisplayName}),"aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":HV(G),"data-tooltip-opaque":String(g.vS(G)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},X:[{U:"div",S:"ytp-sb-text",X:[{U:"div",S:"ytp-sb-icon"},m]}, T?{U:"div",S:"ytp-sb-count",Lx:T}:""]}],G:{"aria-live":"polite"}});var p=this;this.channelId=H;this.D=A;this.Z=P;var L=this.OL("ytp-sb-subscribe"),N=this.OL("ytp-sb-unsubscribe");R&&g.M$(this.element,"ytp-sb-classic");if(y){b?this.T():this.L();var e=function(){if(G.jt){var v=p.channelId;if(M||d){var S={c:v};var n;g.wP.isInitialized()&&(n=OJl(S));S=n||"";if(n=A.getVideoData())if(n=n.subscribeCommand){var X=A.kd();X?(Yb(X,n,{botguardResponse:S,feature:M}),A.Pz("SUBSCRIBE",v)):g.kt(Error("No innertube service available when updating subscriptions."))}else g.kt(Error("No subscribe command in videoData.")); else g.kt(Error("No video data available when updating subscription."))}N.focus();N.removeAttribute("aria-hidden");L.setAttribute("aria-hidden","true")}else E3P(g.uj(p.D.Y()),"sb_button",p.j)},t=function(){var v=p.channelId; if(M||d){var S=g.B(A.getVideoData());Yb(g.B(A.kd()),S.unsubscribeCommand,{feature:M});A.Pz("UNSUBSCRIBE",v)}L.focus();L.removeAttribute("aria-hidden");N.setAttribute("aria-hidden","true")}; this.W(L,"click",e);this.W(N,"click",t);this.W(L,"keypress",function(v){v.keyCode===13&&e(v)}); this.W(N,"keypress",function(v){v.keyCode===13&&t(v)}); this.W(A,"SUBSCRIBE",this.T);this.W(A,"UNSUBSCRIBE",this.L);this.Z&&V&&(ahl(A),e3(A,L,this),e3(A,N,this))}else g.M$(L,"ytp-sb-disabled"),g.M$(N,"ytp-sb-disabled")}; DGb=function(a){g.x.call(this,{U:"div",S:"ytp-title-channel",X:[{U:"div",S:"ytp-title-beacon"},{U:"a",S:"ytp-title-channel-logo",G:{href:"{{channelLink}}",target:a.Y().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{U:"div",S:"ytp-title-expanded-overlay",G:{"aria-hidden":"{{flyoutUnfocusable}}"},X:[{U:"div",S:"ytp-title-expanded-heading",X:[{U:"div",S:"ytp-title-expanded-title",X:[{U:"a",Lx:"{{expandedTitle}}",G:{href:"{{channelTitleLink}}",target:a.Y().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{U:"div",S:"ytp-title-expanded-subtitle",Lx:"{{expandedSubtitle}}",G:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var l=this;this.api=a;this.channel=this.OL("ytp-title-channel");this.L=this.OL("ytp-title-channel-logo");this.channelName=this.OL("ytp-title-expanded-title");this.C=this.OL("ytp-title-expanded-overlay");this.Z=this.T=this.subscribeButton=null;this.j=!1;a.createClientVe(this.L,this,36925);a.createClientVe(this.channelName,this, 37220);g.vS(this.api.Y())&&o3H(this);this.W(a,"videodatachange",this.k8);this.W(a,"videoplayerreset",this.k8);this.W(this.channelName,"click",function(m){l.api.logClick(l.channelName);g.Ty(window,xGp(l));m.preventDefault()}); this.W(this.L,"click",this.g8t);this.k8()}; usb=function(a){if(!a.api.Y().QO){var l=g.B(a.api.getVideoData()),m=new g.ue("Suscribirme",null,"Suscrito",null,!0,!1,l.r6,l.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(m.element,a);var T;a.api.setTrackingParams(m.element,((T=l.subscribeButtonRenderer)==null?void 0:T.trackingParams)||null);a.W(m.element,"click",function(){a.api.logClick(m.element)}); a.subscribeButton=m;g.w(a,a.subscribeButton);a.subscribeButton.DK(a.C);a.subscribeButton.hide();var y=new wu7(a.api);a.T=y;g.w(a,y);y.DK(a.C);y.hide();a.W(a.api,"SUBSCRIBE",function(){l.Ng&&(y.show(),a.api.logVisibility(y.element,!0))}); a.W(a.api,"UNSUBSCRIBE",function(){l.Ng&&(y.hide(),a.api.logVisibility(y.element,!1),IrH(y,!1))})}}; o3H=function(a){var l=a.api.Y();usb(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");l.L||l.St||(a.W(a.channel,"mouseenter",a.rQ),a.W(a.channel,"mouseleave",a.l9),a.W(a.channel,"focusin",a.rQ),a.W(a.channel,"focusout",function(m){a.channel.contains(m.relatedTarget)||a.l9()})); a.Z=new g.aH(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.T&&(a.T.hide(),a.api.logVisibility(a.T.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.w(a,a.Z);a.W(a.channel,Xup,function(){YEp(a)}); a.W(a.api,"onHideControls",a.dX);a.W(a.api,"appresize",a.dX);a.W(a.api,"fullscreentoggled",a.dX)}; YEp=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; UGd=function(a){var l=a.api.getPlayerSize();return g.vS(a.api.Y())&&l.width>=524}; xGp=function(a){var l=a.api.Y(),m=g.B(a.api.getVideoData()),T=g.qU(l)+m.yg;g.Rp(m)&&(T="https://music.youtube.com"+m.yg);if(!g.vS(l))return T;l={};g.j3(a.api,"addEmbedsConversionTrackingParams",[l]);return g.S$(T,l)}; X5=function(a){var l=g.X9({"aria-haspopup":"true"});g.ub.call(this,l,a);this.listen("keydown",this.T)}; YS=function(a,l){a.element.setAttribute("aria-haspopup",String(l))}; r35=function(a,l){g.x.call(this,{U:"div",S:"ytp-user-info-panel",G:{"aria-label":"Informaci\u00f3n del usuario"},X:a.Y().jt&&!a.V("embeds_web_always_enable_signed_out_state")?[{U:"div",S:"ytp-user-info-panel-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-user-info-panel-content",X:[{U:"div",S:"ytp-user-info-panel-info",G:{tabIndex:"{{userInfoFocusable}}",role:"text"},Lx:"{{watchingAsUsername}}"},{U:"div",S:"ytp-user-info-panel-info",G:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Lx:"{{watchingAsEmail}}"}]}]: [{U:"div",S:"ytp-user-info-panel-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-user-info-panel-content",X:[{U:"div",X:[{U:"text",G:{tabIndex:"{{userInfoFocusable}}"},Lx:"Sesi\u00f3n cerrada"}]},{U:"div",S:"ytp-user-info-panel-login",X:[{U:"a",G:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Lx:a.Y().QO?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.bT=a;this.T=l;a.Y().jt||a.Y().QO||this.W(this.OL("ytp-user-info-panel-login"),"click",this.oB);this.closeButton=new g.x({U:"button",uT:["ytp-collapse","ytp-button"], G:{title:"Cerrar"},X:[g.SN()]});this.closeButton.DK(this.element);g.w(this,this.closeButton);this.W(window,"blur",this.hide);this.W(document,"click",this.uL);this.k8()}; m17=function(a,l,m){g.Q4.call(this,a);this.Ob=l;this.xf=m;this.getVideoUrl=new X5(6);this.QQ=new X5(5);this.Bu=new X5(4);this.rW=new X5(3);this.ON=new g.ub(g.X9({href:"{{href}}",target:this.D.Y().N},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.ub(g.X9(),1,"Estad\u00edsticas para nerds");this.fU=new g.Z7({U:"div",uT:["ytp-copytext","ytp-no-contextmenu"],G:{draggable:"false",tabindex:"1"},Lx:"{{text}}"});this.Vn=new Nu(this.D,this.fU);this.ZS=this.Zg=null;g.vS(this.D.Y())&& (this.closeButton=new g.x({U:"button",uT:["ytp-collapse","ytp-button"],G:{title:"Cerrar"},X:[g.SN()]}),g.w(this,this.closeButton),this.closeButton.DK(this.element),this.closeButton.listen("click",this.UV,this));g.vS(this.D.Y())&&(this.d6=new g.ub(g.X9(),8,"Cuenta"),g.w(this,this.d6),this.mL(this.d6,!0),this.d6.listen("click",this.vfx,this),a.createClientVe(this.d6.element,this.d6,137682));this.D.Y().IH&&(this.SC=new HR("Bucle",7),g.w(this,this.SC),this.mL(this.SC,!0),this.SC.listen("click",this.FWz, this),a.createClientVe(this.SC.element,this.SC,28661));g.w(this,this.getVideoUrl);this.mL(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.EXO,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.w(this,this.QQ);this.mL(this.QQ,!0);this.QQ.listen("click",this.ulj,this);a.createClientVe(this.QQ.element,this.QQ,28660);g.w(this,this.Bu);this.mL(this.Bu,!0);this.Bu.listen("click",this.Dtj,this);a.createClientVe(this.Bu.element,this.Bu,28658);g.w(this,this.rW);this.mL(this.rW, !0);this.rW.listen("click",this.h4g,this);g.w(this,this.ON);this.mL(this.ON,!0);this.ON.listen("click",this.pNx,this);g.w(this,this.showVideoInfo);this.mL(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.I6z,this);g.w(this,this.fU);this.fU.listen("click",this.Nbu,this);g.w(this,this.Vn);l=document.queryCommandSupported&&document.queryCommandSupported("copy");X5t("Chromium")>=43&&(l=!0);X5t("Firefox")<=40&&(l=!1);l&&(this.Zg=new g.x({U:"textarea",S:"ytp-html5-clipboard",G:{readonly:"", tabindex:"-1"}}),g.w(this,this.Zg),this.Zg.DK(this.element));var T;(T=this.d6)==null||T.setIcon(W$p());var y;(y=this.SC)==null||y.setIcon({U:"svg",G:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.rW.setIcon({U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{"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.ON.setIcon(A77());this.showVideoInfo.setIcon(P43());this.W(a,"onLoopChange",this.onLoopChange);this.W(a,"videodatachange",this.onVideoDataChange);ap7(this);lpl(this,g.B(this.D.getVideoData()))}; UP=function(a,l){var m=!1;if(a.Zg){var T=a.Zg.element;T.value=l;T.select();try{m=document.execCommand("copy")}catch(y){}}m?a.Ob.KE():(a.fU.MN(l,"text"),g.Fq(a.Ob,a.Vn),is(a.fU.element),a.Zg&&(a.Zg=null,ap7(a)));return m}; lpl=function(a,l){var m=a.D.Y(),T=a.D.getPresentingPlayerType()===2,y=!T||l.isListed;y=!m.lT&&!!l.videoId&&y;m.playerStyle!=="play"?m="https://support.google.com/youtube/?p=report_playback":(m={contact_type:"playbackissue",html5:1,ei:l.eventId,v:l.videoId,p:"movies_playback"},l.L&&(m.fmt=l.L.itag),l.clientPlaybackNonce&&(m.cpn=l.clientPlaybackNonce),l.partnerId&&(m.partnerid=l.partnerId),m=g.S$("//support.google.com/googleplay/",m));a.Bu.zx(y&&l.allowEmbed);a.getVideoUrl.zx(y);a.QQ.zx(y&&!l.isLivePlayback); a.ON.MN(m,"href");var R;(R=a.SC)==null||R.zx(!l.isLivePlayback&&!T);var H;(H=a.d6)==null||H.zx(!T)}; ap7=function(a){var l=!!a.Zg;g.Da(a.rW,l?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");YS(a.rW,!l);g.Da(a.Bu,l?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");YS(a.Bu,!l);g.Da(a.getVideoUrl,l?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");YS(a.getVideoUrl,!l);g.Da(a.QQ,l?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");YS(a.QQ,!l);a.Bu.setIcon(l?i2t():null); a.getVideoUrl.setIcon(l?hj():null);a.QQ.setIcon(l?hj():null)}; Tv7=function(a){return g.vS(a.D.Y())?a.d6:a.SC}; RNH=function(a,l){g.eX.call(this,a);this.xf=l;this.j=new g.BT(this);this.Ij=new g.aH(this.EfL,1E3,this);this.lT=this.Z=null;g.w(this,this.j);g.w(this,this.Ij);l=this.D.Y();a.createClientVe(this.element,this,28656);g.M$(this.element,"ytp-contextmenu");this.D.Y().experiments.XO("delhi_modern_web_player")&&g.aX(l)&&g.M$(this.element,"ytp-delhi-modern-contextmenu");y65(this);this.hide()}; y65=function(a){g.$H(a.j);var l=a.D.Y();l.playerStyle==="gvn"||l.L||l.St||(l=a.D.cz(),a.j.W(l,"contextmenu",a.cMK),a.j.W(l,"touchstart",a.onTouchStart,null,!0),a.j.W(l,"touchmove",a.Aq,null,!0),a.j.W(l,"touchend",a.Aq,null,!0))}; HCl=function(a){a.D.isFullscreen()?g.fq(a.D,a.element,10):a.DK(E2(a).body)}; rd=function(a,l,m){m=m===void 0?240:m;g.x.call(this,{U:"button",uT:["ytp-button","ytp-copylink-button"],G:{title:"{{title-attr}}","data-tooltip-opaque":String(g.vS(a.Y()))},X:[{U:"div",S:"ytp-copylink-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-copylink-title",Lx:"Copiar enlace",G:{"aria-hidden":"true"}}]});this.api=a;this.T=l;this.L=m;this.visible=!1;this.tooltip=this.T.b0();l=a.Y();this.tooltip.element.setAttribute("aria-live","polite");g.AM(this.element,"ytp-show-copylink-title",g.vS(l));a.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.W(a,"videodatachange",this.k8);this.W(a,"videoplayerreset",this.k8);this.W(a,"appresize",this.k8);this.k8();this.addOnDisposeCallback(g.tB(this.tooltip,this.element))}; qgQ=function(a){var l=a.api.Y(),m=g.B(a.api.getVideoData()),T=a.api.cz().getPlayerSize().width;l=l.Z;return!!m.videoId&&T>=a.L&&m.Rt&&!g.Tl(m)&&!a.api.isEmbedsShortsMode()&&!l}; bCd=function(a){a.updateValue("icon",Qf());if(a.api.Y().L)a.tooltip.Rl(a.element,"Se ha copiado el enlace en el portapapeles.");else{a.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");a.tooltip.n7();a.tooltip.Rl(a.element);var l=a.listen("mouseleave",function(){a.DT(l);a.k8();a.tooltip.TX()})}}; gh5=function(a,l){return g.J(function(m){if(m.L==1)return g.LP(m,2),g.z(m,navigator.clipboard.writeText(l),4);if(m.L!=2)return m.return(!0);g.OQ(m);var T=m.return,y=!1,R=g.lK("TEXTAREA");R.value=l;R.setAttribute("readonly","");var H=a.api.getRootNode();H.appendChild(R);if(Xz){var b=window.getSelection();b.removeAllRanges();var M=g.B(document.createRange());M.selectNodeContents(R);b.addRange(M);R.setSelectionRange(0,l.length)}else R.select();try{y=document.execCommand("copy")}catch(d){}H.removeChild(R); return T.call(m,y)})}; Me7=function(a){g.x.call(this,{U:"div",S:"ytp-doubletap-ui-legacy",X:[{U:"div",S:"ytp-doubletap-fast-forward-ve"},{U:"div",S:"ytp-doubletap-rewind-ve"},{U:"div",S:"ytp-doubletap-static-circle",X:[{U:"div",S:"ytp-doubletap-ripple"}]},{U:"div",S:"ytp-doubletap-overlay-a11y"},{U:"div",S:"ytp-doubletap-seek-info-container",X:[{U:"div",S:"ytp-doubletap-arrows-container",X:[{U:"span",S:"ytp-doubletap-base-arrow"},{U:"span",S:"ytp-doubletap-base-arrow"},{U:"span",S:"ytp-doubletap-base-arrow"}]},{U:"div", S:"ytp-doubletap-tooltip",X:[{U:"div",S:"ytp-seek-icon-text-container",X:[{U:"div",S:"ytp-seek-icon",Lx:"{{seekIcon}}"},{U:"div",S:"ytp-chapter-seek-text-legacy",Lx:"{{seekText}}"}]},{U:"div",S:"ytp-doubletap-tooltip-label",Lx:"{{seekTime}}"}]}]}]});this.D=a;this.j=new g.aH(this.show,10,this);this.L=new g.aH(this.hide,700,this);this.B=this.Z=0;this.Ij=this.C=!1;this.T=this.OL("ytp-doubletap-static-circle");g.w(this,this.j);g.w(this,this.L);this.hide();this.J=this.OL("ytp-doubletap-fast-forward-ve"); this.N=this.OL("ytp-doubletap-rewind-ve");this.D.createClientVe(this.J,this,28240);this.D.createClientVe(this.N,this,28239);this.D.logVisibility(this.J,!0);this.D.logVisibility(this.N,!0);this.C=a.V("web_show_cumulative_seek_time");this.Ij=a.V("web_center_static_circles")}; iCw=function(a,l){l=g.ph("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:l.toString()});a.updateValue("seekTime",l)}; d1l=function(a){Lz.call(this,a,!1,!0);this.qj=[];this.SW=[];this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.hM=new g.x({U:"div",S:"ytp-featured-product-open-in-new"});g.w(this,this.hM);this.countdownTimer=new g.x({U:"text",S:"ytp-featured-product-countdown",Lx:"{{content}}"});this.countdownTimer.hide();g.w(this,this.countdownTimer);this.L=new g.x({U:"div",S:"ytp-featured-product-trending",X:[{U:"div",S:"ytp-featured-product-trending-icon"},{U:"text",S:"ytp-featured-product-trending-text", Lx:"{{trendingOffer}}"}]});this.L.hide();g.w(this,this.L);this.overflowButton=new g.x({U:"button",uT:["ytp-featured-product-overflow-icon","ytp-button"],G:{"aria-haspopup":"true"}});this.overflowButton.hide();g.w(this,this.overflowButton);this.B=new g.x({U:"text",S:"ytp-featured-product-exclusive-countdown",Lx:"{{content}}",G:{id:"exclusiveCountdown","aria-hidden":"true"}});this.B.hide();g.w(this,this.B);this.C=new g.x({U:"div",S:"ytp-featured-product-exclusive-container",G:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, X:[{U:"div",S:"ytp-featured-product-exclusive-badge-container",X:[{U:"div",S:"ytp-featured-product-exclusive-badge",X:[{U:"text",S:"ytp-featured-product-exclusive-badge-text",Lx:"{{exclusive}}",G:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.B]});this.C.hide();g.w(this,this.C);this.banner=new g.x({U:"a",S:"ytp-featured-product-container",X:[{U:"div",S:"ytp-featured-product-thumbnail",X:[{U:"img",G:{src:"{{thumbnail}}"}},this.hM]},{U:"div",S:"ytp-featured-product-details",X:[{U:"text",S:"ytp-featured-product-title", Lx:"{{title}}"},this.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",S:"ytp-featured-product-price-container",G:{"aria-label":"{{priceA11yText}}"},X:[{U:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",Lx:"{{price}}",G:{"aria-hidden":"true"}},{U:"text",S:"ytp-featured-product-promotion-text",Lx:"{{promotionText}}",G:{"aria-hidden":"true"}}]}:{U:"div",G:{"aria-label":"{{priceA11yText}}"},X:[{U:"text",S:"ytp-featured-product-price",Lx:"{{price}}", G:{"aria-hidden":"true"}},{U:"text",S:"ytp-featured-product-sales-original-price",Lx:"{{salesOriginalPrice}}",G:{"aria-hidden":"true"}},{U:"text",S:"ytp-featured-product-price-drop-reference-price",Lx:"{{priceDropReferencePrice}}",G:{"aria-hidden":"true"}}]},this.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",S:"ytp-featured-product-when-promotion-text-enabled",X:[{U:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Lx:"{{affiliateDisclaimer}}"}, this.L,{U:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",Lx:"{{vendor}}"}]}:{U:"div",X:[{U:"text",S:"ytp-featured-product-affiliate-disclaimer",Lx:"{{affiliateDisclaimer}}"},this.D.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.C:null,this.L,{U:"text",S:"ytp-featured-product-vendor",Lx:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.w(this,this.banner);this.banner.DK(this.Z.element);this.W(this.D,g.qm("featured_product"),this.H$O);this.W(this.D, g.bl("featured_product"),this.sN);this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.overflowButton.element,"click",this.m$);this.W(a,"featuredproductdismissed",this.HB)}; jF3=function(a){var l,m;a=(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:m.itemData;var T,y,R;return(a==null||!a.affiliateDisclaimer)&&(a==null?0:(T=a.exclusivesData)==null?0:T.exclusiveOfferLabelText)&&(a==null?0:(y=a.exclusivesData)==null?0:y.expirationTimestampMs)&&(a==null?0:(R=a.exclusivesData)==null?0:R.exclusiveOfferCountdownText)?!0:!1}; PId=function(a){var l,m,T,y,R=(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:(T=m.itemData)==null?void 0:(y=T.exclusivesData)==null?void 0:y.expirationTimestampMs;l=(Number(R)-Date.now())/1E3;if(l>0){if(l<604800){var H,b,M,d;m=(H=a.T)==null?void 0:(b=H.bannerData)==null?void 0:(M=b.itemData)==null?void 0:(d=M.exclusivesData)==null?void 0:d.exclusiveOfferCountdownText;if(m!==void 0)for(H=Date.now(),b=g.c(m),M=b.next();!M.done;M=b.next())if(M=M.value,M!==void 0&&M.text!==void 0&&(d=Number(M.textDisplayStartTimestampMs), !isNaN(d)&&H>=d)){M.insertCountdown?(l=M.text.replace(/\$0/,String(FO({seconds:l}))),a.B.MN(l)):a.B.MN(M.text);a.B.show();break}}var A,P,G,V;a.C.update({exclusive:(A=a.T)==null?void 0:(P=A.bannerData)==null?void 0:(G=P.itemData)==null?void 0:(V=G.exclusivesData)==null?void 0:V.exclusiveOfferLabelText});a.C.show();a2(a);var p;(p=a.wW)==null||p.start()}else A6p(a)}; A6p=function(a){var l;(l=a.wW)==null||l.stop();a.B.hide();a.C.hide();lY(a)}; G1b=function(a){var l,m,T=(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:m.itemData;return a.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(T==null||!T.priceReplacementText)&&(T==null?0:T.promotionText)?T==null?void 0:T.promotionText.content:null}; VeQ=function(a){var l,m,T=(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:m.itemData,y,R;if(!(T!=null&&T.priceReplacementText||a.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(T==null?0:(y=T.dealsData)==null?0:(R=y.sales)==null?0:R.originalPrice)){var H,b;return T==null?void 0:(H=T.dealsData)==null?void 0:(b=H.sales)==null?void 0:b.originalPrice}return null}; pM7=function(a){var l,m,T=(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:m.itemData,y,R,H,b;if(!((T==null?0:T.priceReplacementText)||a.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(T==null?0:(y=T.dealsData)==null?0:(R=y.sales)==null?0:R.originalPrice))&&(T==null?0:(H=T.dealsData)==null?0:(b=H.priceDrop)==null?0:b.referencePrice)){var M,d;return T==null?void 0:(M=T.dealsData)==null?void 0:(d=M.priceDrop)==null?void 0:d.referencePrice}return null}; ZCQ=function(a){var l,m,T=(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:m.itemData;if(T==null?0:T.priceReplacementText)return T==null?void 0:T.priceReplacementText;if((T==null?0:T.promotionText)&&a.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var y;return(T==null?void 0:T.price)+" "+(T==null?void 0:(y=T.promotionText)==null?void 0:y.content)}var R,H;if(T==null?0:(R=T.dealsData)==null?0:(H=R.sales)==null?0:H.originalPrice){var b,M;return T==null?void 0:(b=T.dealsData)== null?void 0:(M=b.sales)==null?void 0:M.salesPriceAccessibilityLabel}var d,A;if(T==null?0:(d=T.dealsData)==null?0:(A=d.priceDrop)==null?0:A.referencePrice){var P,G;return(T==null?void 0:T.price)+" "+(T==null?void 0:(P=T.dealsData)==null?void 0:(G=P.priceDrop)==null?void 0:G.referencePrice)}return T==null?void 0:T.price}; WI3=function(a){if(a.D.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var l,m,T;return a.L.I0?null:(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:(T=m.itemData)==null?void 0:T.vendorName}var y,R,H,b,M,d;return a.L.I0||a.C.I0||((y=a.T)==null?0:(R=y.bannerData)==null?0:(H=R.itemData)==null?0:H.affiliateDisclaimer)?null:(b=a.T)==null?void 0:(M=b.bannerData)==null?void 0:(d=M.itemData)==null?void 0:d.vendorName}; LId=function(a,l){mt(a);if(l){var m=g.RY.getState().entities;m=T7(m,"featuredProductsEntity",l);if(m!=null&&m.productsData){l=[];m=g.c(m.productsData);for(var T=m.next();!T.done;T=m.next()){T=T.value;var y=void 0;if((y=T)!=null&&y.identifier&&T.featuredSegments){a.qj.push(T);var R=void 0;y=g.c((R=T)==null?void 0:R.featuredSegments);for(R=y.next();!R.done;R=y.next()){var H=R.value;R=c65(H.startTimeSec);R!==void 0&&(H=c65(H.endTimeSec),l.push(new g.Rq(R*1E3,H===void 0?0x7ffffffffffff:H*1E3,{id:T.identifier, namespace:"featured_product"})))}}}a.D.d7(l)}}}; lY=function(a){if(a.trendingOfferEntityKey){var l=g.RY.getState().entities;if(l=T7(l,"trendingOfferEntity",a.trendingOfferEntityKey)){var m,T,y;l.encodedSkuId!==((m=a.T)==null?void 0:(T=m.bannerData)==null?void 0:(y=T.itemData)==null?void 0:y.encodedOfferSkuId)?a2(a):(a.L.update({trendingOffer:l.shortLabel+" \u2022 "+l.countLabel}),a.L.show(),a.banner.update({vendor:WI3(a)}))}else a2(a)}else a2(a)}; a2=function(a){a.L.hide();a.banner.update({vendor:WI3(a)})}; mt=function(a){a.qj=[];a.sN();a.D.FJ("featured_product")}; NvR=function(a){var l,m,T,y,R=(l=a.T)==null?void 0:(m=l.bannerData)==null?void 0:(T=m.itemData)==null?void 0:(y=T.hiddenProductOptions)==null?void 0:y.dropTimestampMs;l=(Number(R)-Date.now())/1E3;a.countdownTimer.MN(FO({seconds:l}));if(l>0){var H;(H=a.uZ)==null||H.start()}}; QFQ=function(a){var l;(l=a.uZ)==null||l.stop();a.countdownTimer.hide()}; c65=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a}; OC3=function(a,l,m){g.x.call(this,{U:"div",uT:["ytp-info-panel-action-item"],X:[{U:"div",S:"ytp-info-panel-action-item-disclaimer",Lx:"{{disclaimer}}"},{U:"a",uT:["ytp-info-panel-action-item-button","ytp-button"],G:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},X:[{U:"div",S:"ytp-info-panel-action-item-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-info-panel-action-item-label",Lx:"{{label}}"}]}]});this.D=a;this.T=m;this.disclaimer=this.OL("ytp-info-panel-action-item-disclaimer");this.button= this.OL("ytp-info-panel-action-item-button");this.Q1=!1;this.D.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";m=g.I(l==null?void 0:l.onTap,I9);var T=g.I(m,g.I8);this.Q1=!1;T?(a=T.url||"",a.startsWith("//")&&(a="https:"+a),this.Q1=!0,g.Ut(this.button,g.XG(a))):(T=g.I(m,te5))&&!this.T?((a=T.phoneNumbers)&&a.length>0?(a="sms:"+a[0],T.messageText&&(a+="?&body="+encodeURI(T.messageText))):a="",this.Q1=!0,g.Ut(this.button,g.XG(a,[eNP]))):(m=g.I(m,FIR))&&!this.T&&(a=m.phoneNumber? "tel:"+m.phoneNumber:"",this.Q1=!0,g.Ut(this.button,g.XG(a,[hNP])));var y;if(m=(y=l.disclaimerText)==null?void 0:y.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var R;this.update({label:(R=l.bodyText)==null?void 0:R.content,icon:zs(),disclaimer:m})}else{this.disclaimer.style.display="none";var H;this.update({label:(H=l.bodyText)==null?void 0:H.content,icon:zs()})}this.D.setTrackingParams(this.element,l.trackingParams||null);this.Q1&&(this.L={externalLinkData:{url:a}})}; KIR=function(a,l){var m=Pk();g.Cq.call(this,a,{U:"div",S:"ytp-info-panel-detail-skrim",X:[{U:"div",S:"ytp-info-panel-detail",G:{role:"dialog",id:m},X:[{U:"div",S:"ytp-info-panel-detail-header",X:[{U:"div",S:"ytp-info-panel-detail-title",Lx:"{{title}}"},{U:"button",uT:["ytp-info-panel-detail-close","ytp-button"],G:{"aria-label":"Cerrar"},X:[g.Ff()]}]},{U:"div",S:"ytp-info-panel-detail-body",Lx:"{{body}}"},{U:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.T=l;this.items=this.OL("ytp-info-panel-detail-items"); this.Z=new g.BT(this);this.itemData=[];this.j=m;this.W(this.OL("ytp-info-panel-detail-close"),"click",this.KE);this.W(this.OL("ytp-info-panel-detail-skrim"),"click",this.KE);this.W(this.OL("ytp-info-panel-detail"),"click",function(T){T.stopPropagation()}); g.w(this,this.Z);this.D.createServerVe(this.element,this,!0);this.W(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()}; zNH=function(a,l){a=g.c(a.itemData);for(var m=a.next();!m.done;m=a.next())m=m.value,m.D.logVisibility(m.element,l)}; sF3=function(a,l){g.x.call(this,{U:"div",S:"ytp-info-panel-preview",G:{"aria-live":"assertive","aria-atomic":"true","aria-owns":l.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.vS(a.Y()))},X:[{U:"div",S:"ytp-info-panel-preview-text",Lx:"{{text}}"},{U:"div",S:"ytp-info-panel-preview-chevron",Lx:"{{chevron}}"}]});var m=this;this.D=a;this.K5=this.T=this.videoId=null;this.Z=this.showControls=this.L=!1;this.W(this.element,"click",function(){a.logClick(m.element);a.RR();op(l)}); this.fade=new g.q4(this,250,!1,100);g.w(this,this.fade);this.D.createServerVe(this.element,this,!0);this.W(a,"videodatachange",this.onVideoDataChange);this.W(a,"presentingplayerstatechange",this.xl);this.W(this.D,"paidcontentoverlayvisibilitychange",this.r5);this.W(this.D,"infopaneldetailvisibilitychange",this.r5);var T=a.getVideoData()||{};vhH(T)&&$1d(this,T);this.W(a,"onShowControls",this.FY);this.W(a,"onHideControls",this.Kg)}; $1d=function(a,l){if(!l.kN||!a.D.OH()){var m=l.RP||1E4,T=vhH(l);a.T?l.videoId&&l.videoId!==a.videoId&&(g.Tw(a.T),a.videoId=l.videoId,T?(Sgl(a,m,l),a.fR()):(a.KE(),a.T.dispose(),a.T=null)):T&&(l.videoId&&(a.videoId=l.videoId),Sgl(a,m,l),a.fR())}}; vhH=function(a){var l,m,T,y;return!!((l=a.im)==null?0:(m=l.title)==null?0:m.content)||!!((T=a.im)==null?0:(y=T.bodyText)==null?0:y.content)}; Sgl=function(a,l,m){a.T&&a.T.dispose();a.T=new g.aH(a.gNb,l,a);g.w(a,a.T);var T;l=((T=m.im)==null?void 0:T.trackingParams)||null;a.D.setTrackingParams(a.element,l);var y;var R,H;if(m==null?0:(R=m.im)==null?0:(H=R.title)==null?0:H.content){var b;T=(y=m.im)==null?void 0:(b=y.title)==null?void 0:b.content;var M,d;if((M=m.im)==null?0:(d=M.bodyText)==null?0:d.content)T+=" \u2022 ";y=T}else y="";var A,P;m=((A=m.im)==null?void 0:(P=A.bodyText)==null?void 0:P.content)||"";a.update({text:y+m,chevron:g.eN()})}; fpz=function(a,l){a.T&&(g.u(l,8)?(a.L=!0,a.fR(),a.T.start()):(g.u(l,2)||g.u(l,64))&&a.videoId&&(a.videoId=null))}; TQ=function(a){var l=null;try{l=a.toLocaleString("es",{style:"percent"})}catch(m){l=a.toLocaleString(void 0,{style:"percent"})}return l}; yj=function(a,l){var m=0;a=g.c(a);for(var T=a.next();!(T.done||T.value.startTime>l);T=a.next())m++;return m===0?m:m-1}; J6w=function(a,l){for(var m=0,T=g.c(a),y=T.next();!y.done;y=T.next()){y=y.value;if(l=y.timeRangeStartMillis&&l0?l[0]:null;var m=g.ud("ytp-chrome-bottom"),T=g.ud("ytp-ad-module");a.j=!(m==null||!m.contains(l));a.J=!(T==null||!T.contains(l));a.N=!(l==null||!l.hasAttribute("data-tooltip-target-fixed"));return l}; lJl=function(a,l,m){if(!a.C){if(l){a.tooltipRenderer=l;l=a.tooltipRenderer.text;var T=!1,y;(l==null?0:(y=l.runs)==null?0:y.length)&&l.runs[0].text&&(a.update({title:l.runs[0].text.toString()}),T=!0);g.r8(a.title,T);l=a.tooltipRenderer.detailsText;y=!1;var R;if((l==null?0:(R=l.runs)==null?0:R.length)&&l.runs[0].text){T=l.runs[0].text.toString();R=T.indexOf("$TARGET_ICON");if(R>-1)if(a.tooltipRenderer.targetId){l=[];T=T.split("$TARGET_ICON");var H=new g.Gs({U:"span",S:"ytp-promotooltip-details-icon", X:[r6Q[a.tooltipRenderer.targetId]]});g.w(a,H);for(var b=[],M=g.c(T),d=M.next();!d.done;d=M.next())d=new g.Gs({U:"span",S:"ytp-promotooltip-details-component",Lx:d.value}),g.w(a,d),b.push(d);T.length===2?(l.push(b[0].element),l.push(H.element),l.push(b[1].element)):T.length===1&&(R===0?(l.push(H.element),l.push(b[0].element)):(l.push(b[0].element),l.push(H.element)));R=l.length?l:null}else R=null;else R=T;if(R){if(typeof R!=="string")for(g.y6(a.details),y=g.c(R),R=y.next();!R.done;R=y.next())a.details.appendChild(R.value); else a.update({details:R});y=!0}}g.r8(a.details,y);y=a.tooltipRenderer.acceptButton;R=!1;var A,P,G;((A=g.I(y,g.nl))==null?0:(P=A.text)==null?0:(G=P.runs)==null?0:G.length)&&g.I(y,g.nl).text.runs[0].text&&(a.update({acceptButtonText:g.I(y,g.nl).text.runs[0].text.toString()}),R=!0);g.r8(a.acceptButton,R);A=a.tooltipRenderer.dismissButton;P=!1;var V,p,L;((V=g.I(A,g.nl))==null?0:(p=V.text)==null?0:(L=p.runs)==null?0:L.length)&&g.I(A,g.nl).text.runs[0].text&&(a.update({dismissButtonText:g.I(A,g.nl).text.runs[0].text.toString()}), P=!0);g.r8(a.dismissButton,P)}m&&(a.Z=m);a.T=U1d(a);a.B=!1;a.D.Y().V("web_player_hide_nitrate_promo_tooltip")||a.zx(!0);aJQ(a);a.I0&&!a.Ij&&(a.Ij=!0,a.lM.AY(0));a.L&&a.D.logVisibility(a.element,a.I0)}}; iY=function(a){a.zx(!1);a.L&&a.D.logVisibility(a.element,a.I0)}; m7d=function(a){var l,m,T,y=((l=g.I(a.acceptButton,g.nl))==null?void 0:(m=l.text)==null?void 0:(T=m.runs)==null?void 0:T.length)&&!!g.I(a.acceptButton,g.nl).text.runs[0].text,R,H,b;l=((R=g.I(a.dismissButton,g.nl))==null?void 0:(H=R.text)==null?void 0:(b=H.runs)==null?void 0:b.length)&&!!g.I(a.dismissButton,g.nl).text.runs[0].text;return y||l}; aJQ=function(a){var l;if(!(l=!a.T)){l=a.T;var m=window.getComputedStyle(l);l=m.display==="none"||m.visibility==="hidden"||l.getAttribute("aria-hidden")==="true"}if(l||a.D.isMinimized())a.zx(!1);else if(l=g.Uh(a.T),l.width&&l.height){a.D.uC(a.element,a.T);var T=a.D.cz().getPlayerSize().height;m=g.Uh(a.OL("ytp-promotooltip-container")).height;a.j?a.element.style.top=T-m-l.height-12+"px":a.N||(T=a.D.KH().height-m-l.height-12,a.element.style.top=T+"px");T=a.OL("ytp-promotooltip-pointer");var y=g.X8(a.T, a.D.getRootNode()),R=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.D.isFullscreen()?18:12;T.style.left=y.x-R+l.width/2-a+"px";T.style.top=m+"px"}else a.zx(!1)}; jB=function(a){g.x.call(this,{U:"button",uT:["ytp-replay-button","ytp-button"],G:{title:"Ver de nuevo"},X:[g.$g()]});this.D=a;this.W(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Rf(a.getPlayerStateObject());e3(this.D,this.element,this)}; A4=function(a,l){l=l===void 0?240:l;g.x.call(this,{U:"button",uT:["ytp-button","ytp-search-button"],G:{title:"Buscar","data-tooltip-opaque":String(g.vS(a.Y()))},X:[{U:"div",S:"ytp-search-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-search-title",Lx:"Buscar"}]});this.api=a;this.L=l;this.visible=!1;this.updateValue("icon",{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{U:"path",S:"ytp-svg-fill",G:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.W(a,"appresize",this.T);this.W(a,"videodatachange",this.T);e3(a,this.element,this)}; Pa=function(a){g.x.call(this,{U:"div",S:"ytp-seek-overlay",X:[{U:"div",uT:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],X:[{U:"div",uT:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],X:[{U:"svg",G:{viewBox:"0 0 22 32",width:"22",height:"32"},X:[{U:"path",G:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{U:"div",S:"ytp-seek-overlay-duration",Lx:"{{durationBack}}"}]},{U:"div",uT:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], X:[{U:"div",S:"ytp-seek-overlay-duration",Lx:"{{durationForward}}"},{U:"div",uT:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],X:[{U:"svg",G:{viewBox:"0 0 22 32",width:"22",height:"32"},X:[{U:"path",G:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{U:"div",S:"ytp-seek-overlay-message",X:[{U:"div",S:"ytp-seek-overlay-message-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-seek-overlay-message-text",Lx:"{{text}}"}]}]});var l=this;this.D=a;this.B=0;this.T="hidden"; this.Ij=0;this.J=this.OL("ytp-seek-overlay-animation-back");this.N=this.OL("ytp-seek-overlay-animation-forward");this.lT=this.OL("ytp-seek-overlay-message");this.C=new g.aH(function(){T7H(l)},g.PU(this.D.Y().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.w(this,this.C);this.D.createClientVe(this.N,this,28240);this.D.createClientVe(this.J,this,28239);this.D.logVisibility(this.N,!0);this.D.logVisibility(this.J,!0);this.hide()}; y1t=function(a,l){a.L=a.Z.animate([{offset:0,opacity:l,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});a.L.addEventListener("finish",function(){a.L=void 0;a.C.start();a.T="lingering"})}; Rs7=function(a,l,m){m=m===void 0?!1:m;var T=[],y={offset:0,transform:"translateX("+(a.j===-1?30:-30)+"px)"};m&&(y.opacity="0");T.push(y);m&&T.push({offset:.5,opacity:"1"});T.push({offset:1,transform:"translateX(0)"});m=l.animate(T,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});l.querySelector("path").animate([{offset:0,d:a.j===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:a.j===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return m}; Hkd=function(a){if((0,g.E)()-a.Ij>=(g.PU(a.D.Y().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var l=a.Z.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);l.classList.add("ytp-seek-overlay-arrow-additional");l.classList.remove("ytp-seek-overlay-arrow-persistent");a.Z.appendChild(l);Rs7(a,l,!0).addEventListener("finish",function(){l.remove()})}}; T7H=function(a,l,m){m=m===void 0?!0:m;a.L=a.Z.animate([{offset:0,opacity:l===void 0?1:l},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});m&&(a.L.addEventListener("finish",function(){a.L=void 0;qHR(a);a.hide()}),a.T="fading-out")}; bkz=function(a){var l=Number(getComputedStyle(a.Z).opacity);a.L.cancel();a.L=void 0;return l}; qHR=function(a){a.B=0;a.T="hidden";a.j=void 0;a.Z=void 0;a.Ij=0;a.C.stop();a.L=void 0}; gdP=function(a,l,m){a.updateValue("text",l);if(m){a:{switch(m){case "PREMIUM_STANDALONE":l=NCP();break a;case "PREMIUM_STANDALONE_CAIRO":l=Q$l();break a}l=void 0}a.updateValue("icon",l)}l=g.c(a.lT.getAnimations());for(m=l.next();!m.done;m=l.next())m.value.cancel();a.lT.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){a.updateValue("text","");a.updateValue("icon","")})}; g.GQ=function(a,l,m,T){T=T===void 0?240:T;g.x.call(this,{U:"button",uT:["ytp-button","ytp-share-button"],G:{title:"Compartir","aria-haspopup":"true","aria-owns":m.element.id,"data-tooltip-opaque":String(g.vS(a.Y()))},X:[{U:"div",S:"ytp-share-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-share-title",Lx:"Compartir"}]});this.api=a;this.T=l;this.Z=m;this.j=T;this.L=this.visible=!1;this.tooltip=this.T.b0();a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.W(a,"videodatachange",this.k8); this.W(a,"videoplayerreset",this.k8);this.W(a,"appresize",this.k8);this.W(a,"presentingplayerstatechange",this.k8);this.k8();this.addOnDisposeCallback(g.tB(this.tooltip,this.element))}; MaQ=function(a){var l=a.api.Y(),m=g.B(a.api.getVideoData()),T=g.vS(l)&&g.vi(a.api)&&g.u(a.api.getPlayerStateObject(),128);l=l.Z||l.disableSharing&&a.api.getPresentingPlayerType()!==2||!m.showShareButton||m.Rt||T||g.Tl(m)||a.L;T=a.api.cz().getPlayerSize().width;return!!m.videoId&&T>=a.j&&!l}; ik5=function(a,l){l.name!=="InvalidStateError"&&l.name!=="AbortError"&&(l.name==="NotAllowedError"?(a.T.RR(),op(a.Z,a.element,!1)):g.kt(l))}; jBz=function(a,l){var m=Pk(),T=a.Y();m={U:"div",S:"ytp-share-panel",G:{id:Pk(),role:"dialog","aria-labelledby":m},X:[{U:"div",S:"ytp-share-panel-inner-content",X:[{U:"div",S:"ytp-share-panel-title",G:{id:m},Lx:"Compartir"},{U:"a",uT:["ytp-share-panel-link","ytp-no-contextmenu"],G:{href:"{{link}}",target:T.N,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},Lx:"{{linkText}}"},{U:"label",S:"ytp-share-panel-include-playlist",X:[{U:"input",S:"ytp-share-panel-include-playlist-checkbox", G:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{U:"div",S:"ytp-share-panel-loading-spinner",X:[MH()]},{U:"div",S:"ytp-share-panel-service-buttons",Lx:"{{buttons}}"},{U:"div",S:"ytp-share-panel-error",Lx:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{U:"button",uT:["ytp-share-panel-close","ytp-button"],G:{title:"Cerrar"},X:[g.Ff()]}]};g.Cq.call(this,a,m,250);var y=this;this.moreButton=null;this.api= a;this.tooltip=l.b0();this.Z=[];this.C=this.OL("ytp-share-panel-inner-content");this.closeButton=this.OL("ytp-share-panel-close");this.W(this.closeButton,"click",this.KE);this.addOnDisposeCallback(g.tB(this.tooltip,this.closeButton));this.j=this.OL("ytp-share-panel-include-playlist-checkbox");this.W(this.j,"click",this.k8);this.T=this.OL("ytp-share-panel-link");this.addOnDisposeCallback(g.tB(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.W(this.T,"click",function(R){R.preventDefault(); y.api.logClick(y.T);var H=y.api.getVideoUrl(!0,!0,!1,!1);H=d77(y,H);g.g5(H,y.api,R)&&y.api.Pz("SHARE_CLICKED")}); this.listen("click",this.Se);this.W(a,"videoplayerreset",this.hide);this.W(a,"fullscreentoggled",this.onFullscreenToggled);this.W(a,"onLoopRangeChange",this.aKt);this.hide()}; GAb=function(a,l){A1R(a);for(var m=l.links||l.shareTargets,T=0,y={},R=0;R0&&!X&&!S?(v.length===2&&(v=["noreferrer"]),g.Ty(V,L,G,v[0]),V=uSP()):(N=t.join(","),tb()&&V.navigator&&V.navigator.standalone&&G&&G!="_self"?(N=g.lK("A"),g.Ut(N,L),N.target=G,e&&(N.rel="noreferrer"),((p=p.attributionsrc)||p==="")&&N.setAttribute("attributionsrc",p),p=document.createEvent("MouseEvent"), p.initMouseEvent("click",!0,!0,V,1),N.dispatchEvent(p),V=uSP()):e?(V=g.Ty(V,"",G,N),p=g.oV(L),V&&(V.opener=null,p===""&&(p="javascript:''"),p='',p=ld(p),(L=V.document)&&L.write&&(L.write(mv(p)),L.close()))):((V=g.Ty(V,L,G,N))&&p.noopener&&(V.opener=null),V&&p.noreferrer&&(V.opener=null)));V&&(V.opener||(V.opener=window),V.focus());P.preventDefault()}}}(y)); y.Js.addOnDisposeCallback(g.tB(a.tooltip,y.Js.element));b==="Facebook"?a.api.createClientVe(y.Js.element,y.Js,164504):b==="Twitter"&&a.api.createClientVe(y.Js.element,y.Js,164505);a.W(y.Js.element,"click",function(A){return function(){a.api.logClick(A.Js.element)}}(y)); a.api.logVisibility(y.Js.element,!0);a.Z.push(y.Js);T++}}var M=l.more||l.moreLink,d=new g.x({U:"a",uT:["ytp-share-panel-service-button","ytp-button"],X:[{U:"span",S:"ytp-share-panel-service-button-more",X:[{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{U:"rect",G:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{U:"path",G:{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"}}]}]}],G:{href:M,target:"_blank",title:"M\u00e1s"}});d.listen("click",function(A){var P=M;a.api.logClick(a.moreButton.element);P=d77(a,P);g.g5(P,a.api,A)&&a.api.Pz("SHARE_CLICKED")}); d.addOnDisposeCallback(g.tB(a.tooltip,d.element));a.api.createClientVe(d.element,d,164506);a.W(d.element,"click",function(){a.api.logClick(d.element)}); a.api.logVisibility(d.element,!0);a.Z.push(d);a.moreButton=d;a.updateValue("buttons",a.Z)}; d77=function(a,l){var m={};g.vS(a.api.Y())&&(g.j3(a.api,"addEmbedsConversionTrackingParams",[m]),l=g.S$(l,m));return l}; A1R=function(a){for(var l=g.c(a.Z),m=l.next();!m.done;m=l.next())m=m.value,m.detach(),g.Go(m);a.Z=[]}; Vj=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0}; Va7=function(a,l){a.startSec+=l;a.endSec+=l}; ZkH=function(a){Lz.call(this,a);this.L=this.T=this.isContentForward=this.B=!1;ptl(this);this.W(this.D,"changeProductsInVideoVisibility",this.uUj);this.W(this.D,"videodatachange",this.onVideoDataChange)}; Wmb=function(a){a.C&&a.Kx.element.removeChild(a.C.element);a.C=void 0}; Lm3=function(a,l){return l.map(function(m){var T,y;if((m=(T=g.I(m,c1d))==null?void 0:(y=T.thumbnail)==null?void 0:y.thumbnails)&&m.length!==0)return m[0].url}).filter(function(m){return m!==void 0}).map(function(m){m=new g.x({U:"img", S:"ytp-suggested-action-product-thumbnail",G:{alt:"",src:m}});g.w(a,m);return m})}; N7b=function(a,l){a.isContentForward=l;g.AM(a.badge.element,"ytp-suggested-action-badge-content-forward",l)}; p9=function(a){var l=a.isContentForward&&!a.dZ();g.AM(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",l&&a.T);g.AM(a.badge.element,"ytp-suggested-action-badge-preview-expanded",l&&a.L)}; Zi=function(a,l,m){return new g.Rq(a*1E3,l*1E3,{priority:9,namespace:m})}; QBw=function(a){a.D.FJ("shopping_overlay_visible");a.D.FJ("shopping_overlay_preview_collapsed");a.D.FJ("shopping_overlay_preview_expanded");a.D.FJ("shopping_overlay_expanded")}; ptl=function(a){a.W(a.D,g.qm("shopping_overlay_visible"),function(){a.aY(!0)}); a.W(a.D,g.bl("shopping_overlay_visible"),function(){a.aY(!1)}); a.W(a.D,g.qm("shopping_overlay_expanded"),function(){a.lT=!0;ce(a)}); a.W(a.D,g.bl("shopping_overlay_expanded"),function(){a.lT=!1;ce(a)}); a.W(a.D,g.qm("shopping_overlay_preview_collapsed"),function(){a.T=!0;p9(a)}); a.W(a.D,g.bl("shopping_overlay_preview_collapsed"),function(){a.T=!1;p9(a)}); a.W(a.D,g.qm("shopping_overlay_preview_expanded"),function(){a.L=!0;p9(a)}); a.W(a.D,g.bl("shopping_overlay_preview_expanded"),function(){a.L=!1;p9(a)})}; Fmb=function(a){g.x.call(this,{U:"div",S:"ytp-shorts-title-channel",X:[{U:"a",S:"ytp-shorts-title-channel-logo",G:{href:"{{channelLink}}",target:a.Y().N,"aria-label":"{{channelLogoLabel}}"}},{U:"div",S:"ytp-shorts-title-expanded-heading",X:[{U:"div",S:"ytp-shorts-title-expanded-title",X:[{U:"a",Lx:"{{expandedTitle}}",G:{href:"{{channelTitleLink}}",target:a.Y().N,tabIndex:"0"}}]}]}]});var l=this;this.api=a;this.T=this.OL("ytp-shorts-title-channel-logo");this.channelName=this.OL("ytp-shorts-title-expanded-title"); this.subscribeButton=null;a.createClientVe(this.T,this,36925);this.W(this.T,"click",function(m){l.api.logClick(l.T);g.Ty(window,tad(l));m.preventDefault()}); a.createClientVe(this.channelName,this,37220);this.W(this.channelName,"click",function(m){l.api.logClick(l.channelName);g.Ty(window,tad(l));m.preventDefault()}); esp(this);this.W(a,"videodatachange",this.k8);this.W(a,"videoplayerreset",this.k8);this.k8()}; esp=function(a){if(!a.api.Y().QO){var l=g.B(a.api.getVideoData()),m=new g.ue("Suscribirme",null,"Suscrito",null,!0,!1,l.r6,l.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(m.element,a);var T;a.api.setTrackingParams(m.element,((T=l.subscribeButtonRenderer)==null?void 0:T.trackingParams)||null);a.W(m.element,"click",function(){a.api.logClick(m.element)}); a.subscribeButton=m;g.w(a,a.subscribeButton);a.subscribeButton.DK(a.element)}}; tad=function(a){var l=a.api.Y(),m=g.B(a.api.getVideoData());m=g.qU(l)+m.yg;if(!g.vS(l))return m;l={};g.j3(a.api,"addEmbedsConversionTrackingParams",[l]);return g.S$(m,l)}; Wa=function(a){g.Cq.call(this,a,{U:"button",uT:["ytp-skip-intro-button","ytp-popup","ytp-button"],X:[{U:"div",S:"ytp-skip-intro-button-text",Lx:"Saltar introducci\u00f3n"}]},100);var l=this;this.Z=!1;this.T=new g.aH(function(){l.hide()},5E3); this.xN=this.v1=NaN;g.w(this,this.T);this.B=function(){l.show()}; this.C=function(){l.hide()}; this.j=function(){var m=l.D.getCurrentTime();m>l.v1/1E3&&m0?{U:"svg",G:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{U:"path",uT:["ytp-circle-arrow","ytp-svg-fill"],G:{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"}}, {U:"text",uT:["ytp-jump-button-text","ytp-svg-fill"],G:{x:"7.05",y:"15.05"}}]}:{U:"svg",G:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{U:"path",uT:["ytp-circle-arrow","ytp-svg-fill"],G:{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"}}, {U:"text",uT:["ytp-jump-button-text","ytp-svg-fill"],G:{x:"6.5",y:"15"}}]}]});var m=this;this.D=a;this.T=l;this.L=new g.aH(function(){m.Z?(m.Z=!1,m.L.start()):m.element.classList.remove("ytp-jump-spin","backwards")},250); this.Z=!1;(l=l>0)?this.D.createClientVe(this.element,this,36843):this.D.createClientVe(this.element,this,36844);var T=g.ph(l?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.update({title:T,"data-title-no-tooltip":T,"aria-keyshortcuts":l?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text");this.j.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);e3(a,this.element,this)}; sB7=function(a,l){l?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.D.logVisibility(a.element,l);a.D.n7()}; FJ=function(a,l){L9.call(this,a,l,"timedMarkerCueRange","Ver momentos clave");this.W(a,g.bl("timedMarkerCueRange"),this.ex);this.W(a,"updatemarkervisibility",this.updateVideoData)}; SHd=function(a){var l,m=(l=a.D.getVideoData())==null?void 0:l.wb;if(m)for(a=a.j.tM,m=g.c(m),l=m.next();!l.done;l=m.next())if(l=a[l.value]){var T=void 0,y=void 0,R=void 0;if(((T=l.onTap)==null?void 0:(y=T.innertubeCommand)==null?void 0:(R=y.changeEngagementPanelVisibilityAction)==null?void 0:R.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return l}}; h4=function(a){var l=a.V("web_enable_pip_on_miniplayer");g.x.call(this,{U:"button",uT:["ytp-miniplayer-button","ytp-button"],G:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},X:[l?{U:"svg",G:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},X:[{U:"g",G:{transform:"translate(96, -96) scale(0.8)"},X:[{U:"path",nE:!0,G:{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"}}]}]}: L$l()]});this.D=a;this.visible=!1;this.listen("click",this.onClick);this.W(a,"fullscreentoggled",this.k8);this.updateValue("title",g.F9(a,"Minirreproductor","i"));this.update({"data-title-no-tooltip":"Minirreproductor"});e3(a,this.element,this);a.createClientVe(this.element,this,62946);this.k8()}; ON=function(a,l,m,T,y,R){R=R===void 0?!1:R;var H={U:"div",uT:["ytp-input-slider-section"],X:[{U:"input",S:"ytp-input-slider",G:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};y&&H.X.unshift(y);R&&H.uT.push("ytp-vertical-slider");g.x.call(this,H);this.C=a;this.B=l;this.J=m;this.initialValue=T;this.header=y;this.L=this.OL("ytp-input-slider");this.T=T?T:a;this.init();this.W(this.L,"input",this.j);this.W(this.L,"keydown", this.Z)}; K9=function(a,l){a.T=l;a.updateValue("slidervalue",a.T);a.L.valueAsNumber=a.T;fJ7(a,l)}; fJ7=function(a,l){a.L.style.setProperty("--yt-slider-shape-gradient-percent",(l-a.C)/(a.B-a.C)*100+"%")}; zQ=function(a){var l=a.isMuted()?0:a.getVolume();ON.call(this,0,100,1,l,void 0,!0);this.D=a;this.Ij=ZN(this.lT,10,this);this.N=!1;this.W(a,"onVolumeChange",this.onVolumeChange);this.W(this.element,"keydown",this.Z)}; J15=function(a,l){g.x.call(this,{U:"div",G:{tabindex:"0",title:"Volumen"},uT:["ytp-volume-popover"]});var m=this;this.isVisible=!1;this.tooltip=l.b0();this.L=new zQ(a);g.w(this,this.L);this.L.DK(this.element);this.T=new g.aH(function(){va(m,!1)},300); this.listen("mouseenter",function(){m.T.stop()}); this.listen("mouseleave",function(){m.T.start()}); this.listen("focus",function(){m.T.stop()}); this.W(this.L.element,"focus",function(){m.T.stop()}); this.listen("blur",function(){m.T.start()}); this.addOnDisposeCallback(g.tB(l.b0(),this.element,-120));g.w(this,this.T)}; va=function(a,l){a.element.classList.toggle("ytp-volume-popover-hovering",l);a.isVisible=l}; $m=function(a,l,m){m=m===void 0?!1:m;g.x.call(this,{U:"button",uT:["ytp-mute-button","ytp-button"],G:a.Y().Kx?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},X:[{U:"div",S:"ytp-volume-icon",Lx:"{{icon}}"}]});var T=this;this.D=a;this.Cx=m;this.L=null;this.B=this.lT=this.J=this.qj=NaN;this.hM=this.N=null;this.C=[];this.j=[];this.visible=!1;this.Z=this.T=this.Ij=null;a.V("delhi_modern_web_player")&& this.update({"data-priority":4});m=this.D.Y();this.updateValue("icon",fj());this.tooltip=l.b0();this.Z=g.ud("ytp-volume-icon",this.element);this.L=new g.Gs({U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"defs",X:[{U:"clipPath",G:{id:"ytp-svg-volume-animation-mask"},X:[{U:"path",G:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{U:"path",G:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{U:"path",S:"ytp-svg-volume-animation-mover",G:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]}, {U:"clipPath",G:{id:"ytp-svg-volume-animation-slash-mask"},X:[{U:"path",S:"ytp-svg-volume-animation-mover",G:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{U:"path",nE:!0,uT:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],G:{"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"}},{U:"path",nE:!0,uT:["ytp-svg-fill","ytp-svg-volume-animation-hider"], G:{"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.w(this,this.L);this.N=this.L.OL("ytp-svg-volume-animation-speaker");this.hM=g.B(this.N.getAttribute("d"));this.C=g.x5("ytp-svg-volume-animation-mover",this.L.element);this.j=g.x5("ytp-svg-volume-animation-hider",this.L.element);this.Kx=new Xq;g.w(this,this.Kx);this.jt=new Xq;g.w(this,this.jt);this.W(a,"appresize",this.zg);this.W(a,"onVolumeChange",this.onVolumeChange);a.V("delhi_modern_web_player")? this.listen("click",this.mIu):this.listen("click",this.HR);m.Kx?a.V("delhi_modern_web_player")?(this.T=new J15(a,l),this.T.DK(this.element),g.w(this,this.T),this.W(this.Z,"mouseover",function(){if(!T.D.EH()){var y;(y=T.T)!=null&&va(y,!0);var R;(R=T.T)!=null&&R.T.stop()}}),this.W(this.Z,"mouseout",function(){var y; (y=T.T)!=null&&y.T.start()}),this.addOnDisposeCallback(g.tB(l.b0(),this.element,-120))):this.addOnDisposeCallback(g.tB(l.b0(),this.element)):B7H(this); this.message=null;a.createClientVe(this.element,this,28662);this.zg(a.cz().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())}; wtH=function(a,l){a.qj=l;var m=a.hM;l&&(m+=r4l(kAw,nd3,l));a.N.setAttribute("d",m)}; IJ7=function(a,l){a.lT=l;for(var m=20*l,T=0;T=3&&a.D.getPresentingPlayerType()!==2}; D7d=function(a){var l=zl(a.D.iZ());return l?a.T?l.AE():l.Dz():!1}; Edz=function(a){var l={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},m=a.playlist!=null&&a.playlist.AE();m=g.vi(a.D)&&(!a.T||m);var T=a.T&&g.JB(a.D),y=D7d(a),R=a.T&&a.D.getPresentingPlayerType()===5,H=g.F9(a.D,"Siguiente","SHIFT+n"),b=g.F9(a.D,"Anterior","SHIFT+p");if(R)l.title="Iniciar v\u00eddeo";else if(a.Z)l.title="Ver de nuevo";else if(m){var M=null;a.playlist&&(M=g.dd(a.playlist,a.T?vDR(a.playlist):$87(a.playlist)));if(M){if(M.videoId){var d= a.playlist.listId;l.url=a.D.Y().getVideoUrl(M.videoId,d?d.toString():void 0)}l.text=M.title;l.duration=M.lengthText?M.lengthText:M.lengthSeconds?g.O6(M.lengthSeconds):null;l.preview=M.UF("mqdefault.jpg")}a.T?(l.title=H,l["data-title-no-tooltip"]="Siguiente",l["aria-keyshortcuts"]="SHIFT+n"):(l.title=b,l["data-title-no-tooltip"]="Anterior",l["aria-keyshortcuts"]="SHIFT+p")}else if(T){if(b=(M=a.videoData)==null?void 0:g.Tj(M))l.url=b.mm(),l.text=b.title,l.duration=b.lengthText?b.lengthText:b.lengthSeconds? g.O6(b.lengthSeconds):null,l.preview=b.UF("mqdefault.jpg");l.title=H;l["data-title-no-tooltip"]="Siguiente";l["aria-keyshortcuts"]="SHIFT+n"}l.disabled=!T&&!m&&!y&&!R;a.update(l);a.B=!!l.url;T||m||a.Z||y||R?a.L||(a.L=g.tB(a.tooltip,a.element),a.C=a.listen("click",a.onClick,a)):a.L&&(a.L(),a.L=null,a.DT(a.C),a.C=null);a.tooltip.n7();g.AM(a.element,"ytp-playlist-ui",a.T&&(m||a.D.V("web_hide_next_button")))}; Xt7=function(a,l){g.x.call(this,{U:"div",S:"ytp-fine-scrubbing",X:[{U:"div",S:"ytp-fine-scrubbing-draggable",X:[{U:"div",S:"ytp-fine-scrubbing-thumbnails",G:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{U:"div",G:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{U:"div",S:"ytp-fine-scrubbing-seek-time", G:{"aria-hidden":"true"},Lx:"{{seekTime}}"},{U:"div",S:"ytp-fine-scrubbing-play",X:[vk()],G:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{U:"div",S:"ytp-fine-scrubbing-dismiss",X:[g.Ff()],G:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var m=this;this.api=a;this.C=this.OL("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.OL("ytp-fine-scrubbing-dismiss");this.jt=this.OL("ytp-fine-scrubbing-draggable");this.playButton=this.OL("ytp-fine-scrubbing-play");this.thumbnails= [];this.L=[];this.Cx=this.T=0;this.Kx=void 0;this.Ij=NaN;this.AM=this.N=this.Z=this.J=0;this.j=[];this.interval=this.frameCount=0;this.B=160;this.scale=1;this.St=0;this.isEnabled=this.hM=!1;uQt(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.tB(l,this.dismissButton));this.addOnDisposeCallback(g.tB(l,this.playButton));this.qj=new g.Jc(this.jt,!0);this.qj.subscribe("dragstart",this.jj,this);this.qj.subscribe("dragmove",this.Zy,this);this.qj.subscribe("dragend",this.Jr,this);this.W(a,"SEEK_COMPLETE", this.pg);a.V("web_fix_fine_scrubbing_false_play")&&this.W(a,"rootnodemousedown",function(T){m.lT=T}); this.C.addEventListener("keydown",function(){}); g.w(this,this.qj);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)}; uQt=function(a,l){var m=g.O6(l),T=g.ph("Ir al momento $PROGRESS",{PROGRESS:g.O6(l,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(l),arianowtext:T,seekTime:m})}; YHd=function(a){a.Ij=NaN;a.N=0;a.J=a.Z}; au7=function(a){var l=a.api.Zv();if(l){var m=90*a.scale,T=kW(l,160*a.scale);if(l=l.levels[T]){a.B=l.width;if(!a.j.length){T=[];for(var y=n7(l,l.j1()),R=l.columns*l.rows,H=l.frameCount,b=0;b<=y;b++)for(var M=Ha.j.length;)T= void 0,(T=a.thumbnails.pop())==null||T.dispose();for(;a.thumbnails.lengthm.length;)T=void 0,(T=a.L.pop())==null||T.dispose(); for(;a.L.length-m?-l/m*a.interval*.5:-(l+m/2)/m*a.interval}; luR=function(a){return-((a.C.offsetWidth||(a.frameCount-1)*a.B*a.scale)-a.T/2)}; U7b=function(){g.x.call(this,{U:"div",S:"ytp-fine-scrubbing-thumbnail"})}; r1w=function(){g.x.call(this,{U:"div",S:"ytp-fine-scrubbing-chapter-title",X:[{U:"div",S:"ytp-fine-scrubbing-chapter-title-content",Lx:"{{chapterTitle}}"}]})}; TLQ=function(a){g.x.call(this,{U:"div",S:"ytp-heat-map-chapter",X:[{U:"svg",S:"ytp-heat-map-svg",G:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},X:[{U:"defs",X:[{U:"clipPath",G:{id:"{{id}}"},X:[{U:"path",S:"ytp-heat-map-path",G:{d:"",fill:"white"}}]},{U:"linearGradient",G:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},X:[{U:"stop",G:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{U:"stop",G:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{U:"rect",S:"ytp-heat-map-graph",G:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{U:"rect",S:"ytp-heat-map-hover",G:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{U:"rect",S:"ytp-heat-map-play",G:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{U:"path",S:"ytp-modern-heat-map",G:{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=a;this.J=this.OL("ytp-heat-map-svg");this.C=this.OL("ytp-heat-map-path");this.j=this.OL("ytp-heat-map-graph");this.B=this.OL("ytp-heat-map-play");this.T=this.OL("ytp-heat-map-hover");this.Z=this.OL("ytp-modern-heat-map");this.Q1=!1;this.L=60;a=""+g.y5(this);this.update({id:a});a="url(#"+a+")";this.j.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.T.setAttribute("clip-path", a)}; yTl=function(a,l){l>0&&(a.L=l,a.J.style.height=a.L+"px")}; J4=function(){g.x.call(this,{U:"div",S:"ytp-chapter-hover-container",X:[{U:"div",S:"ytp-progress-bar-padding"},{U:"div",S:"ytp-progress-list",X:[{U:"div",uT:["ytp-play-progress","ytp-swatch-background-color"]},{U:"div",S:"ytp-progress-linear-live-buffer"},{U:"div",S:"ytp-load-progress"},{U:"div",S:"ytp-hover-progress"},{U:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.L=this.OL("ytp-progress-list");this.C=this.OL("ytp-progress-linear-live-buffer"); this.j=this.OL("ytp-ad-progress-list");this.B=this.OL("ytp-load-progress");this.J=this.OL("ytp-play-progress");this.Z=this.OL("ytp-hover-progress");this.T=this.OL("ytp-chapter-hover-container")}; Ba=function(a,l){g.nA(a.T,"width",l)}; R4d=function(a,l){g.nA(a.T,"margin-right",l+"px")}; H4P=function(){this.L=this.position=this.Z=this.T=this.j=this.width=NaN}; qTb=function(){g.x.call(this,{U:"div",S:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.n9=function(a,l){g.Z7.call(this,{U:"div",S:"ytp-progress-bar-container",G:{"aria-disabled":"true"},X:[{U:"div",uT:["ytp-heat-map-container"],X:[{U:"div",S:"ytp-heat-map-edu"}]},{U:"div",uT:["ytp-progress-bar"],G:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},X:[{U:"div",S:"ytp-chapters-container"},{U:"div",S:"ytp-timed-markers-container"},{U:"div",S:"ytp-clip-start-exclude"}, {U:"div",S:"ytp-clip-end-exclude"},{U:"div",S:"ytp-scrubber-container",X:[{U:"div",uT:["ytp-scrubber-button","ytp-swatch-background-color"],X:[{U:"div",S:"ytp-scrubber-pull-indicator"},{U:"img",uT:["ytp-decorated-scrubber-button"]}]}]}]},{U:"div",uT:["ytp-fine-scrubbing-container"],X:[{U:"div",S:"ytp-fine-scrubbing-edu"}]},{U:"div",S:"ytp-bound-time-left",Lx:"{{boundTimeLeft}}"},{U:"div",S:"ytp-bound-time-right",Lx:"{{boundTimeRight}}"},{U:"div",S:"ytp-clip-start",G:{title:"{{clipstarttitle}}"},Lx:"{{clipstarticon}}"}, {U:"div",S:"ytp-clip-end",G:{title:"{{clipendtitle}}"},Lx:"{{clipendicon}}"}]});this.api=a;this.L7=!1;this.VX=this.mf=this.wb=this.C=this.Or=0;this.Be=null;this.Aa=!1;this.St={};this.tN={};this.clipEnd=Infinity;this.SW=this.OL("ytp-clip-end");this.EG=new g.Jc(this.SW,!0);this.JW=this.OL("ytp-clip-end-exclude");this.wO=this.OL("ytp-clip-start-exclude");this.clipStart=0;this.wW=this.OL("ytp-clip-start");this.nR=new g.Jc(this.wW,!0);this.Ij=this.lZ=0;this.progressBar=this.OL("ytp-progress-bar");this.uZ= {};this.tM={};this.rb=this.OL("ytp-chapters-container");this.Ia=this.OL("ytp-timed-markers-container");this.T=[];this.B=[];this.Xe={};this.kA=null;this.hM=-1;this.ZR=this.Kx=0;this.im=this.J=null;this.Sd=this.OL("ytp-scrubber-button");this.jt=this.OL("ytp-decorated-scrubber-button");this.Dv=this.OL("ytp-scrubber-container");this.vF=new g.$5;this.FU=0;this.WE=new H4P;this.Z=new Br(0,0);this.o0=null;this.N=this.TW=!1;this.v1=null;this.lT=this.OL("ytp-heat-map-container");this.OQ=this.OL("ytp-heat-map-edu"); this.j=[];this.heatMarkersDecorations=[];this.yg=this.OL("ytp-fine-scrubbing-container");this.p5=this.OL("ytp-fine-scrubbing-edu");this.L=void 0;this.Cx=this.xN=this.AM=!1;this.tooltip=l.b0();this.addOnDisposeCallback(g.tB(this.tooltip,this.SW));g.w(this,this.EG);this.EG.subscribe("hoverstart",this.Xk,this);this.EG.subscribe("hoverend",this.d5,this);this.W(this.SW,"click",this.qz);this.addOnDisposeCallback(g.tB(this.tooltip,this.wW));g.w(this,this.nR);this.nR.subscribe("hoverstart",this.Xk,this); this.nR.subscribe("hoverend",this.d5,this);this.W(this.wW,"click",this.qz);b4P(this);this.W(a,"resize",this.Mt);this.W(a,"presentingplayerstatechange",this.Yc);this.W(a,"videodatachange",this.xW);this.W(a,"videoplayerreset",this.R_);this.W(a,"cuerangesadded",this.ctz);this.W(a,"cuerangesremoved",this.h6T);this.W(a,"onLoopRangeChange",this.Gg);this.W(a,"innertubeCommand",this.onClickCommand);this.W(a,g.qm("timedMarkerCueRange"),this.qGt);this.W(a,"updatemarkervisibility",this.gC);this.W(a,"serverstitchedvideochange", this.ytO);this.updateVideoData(a.getVideoData(),!0);this.Gg(a.getLoopRange());km(this)&&!this.L&&(this.L=new Xt7(this.api,this.tooltip),a=g.ui(this.element).x||0,this.L.Mt(a,this.C),this.L.DK(this.yg),g.w(this,this.L),this.W(this.L.dismissButton,"click",this.aN),this.W(this.L.playButton,"click",this.Gw),this.W(this.L.element,"dblclick",this.Gw));this.api.createClientVe(this.lT,this,139609,!0);this.api.createClientVe(this.OQ,this,140127,!0);this.api.createClientVe(this.p5,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; b4P=function(a){if(a.T.length===0){var l=new J4;a.T.push(l);g.w(a,l);l.DK(a.rb,0)}for(;a.T.length>1;)a.T.pop().dispose();Ba(a.T[0],"100%");a.T[0].startTime=0;a.T[0].title=""}; gsb=function(a){var l=l===void 0?NaN:l;var m=new TLQ(a.api);a.j.push(m);g.w(a,m);m.DK(a.lT);l>=0&&(m.element.style.width=l+"px")}; MWQ=function(a){for(;a.B.length;)a.B.pop().dispose()}; d_3=function(a){var l,m,T,y,R;return(R=g.I((y=g.I((l=a.getWatchNextResponse())==null?void 0:(m=l.playerOverlays)==null?void 0:(T=m.playerOverlayRenderer)==null?void 0:T.decoratedPlayerBarRenderer,OS))==null?void 0:y.playerBar,i47))==null?void 0:R.chapters}; jQH=function(a){for(var l=a.T,m=[],T=0;T=H&&L<=A&&R.push(G)}M>0&&(a.lT.style.height=M+"px");H=a.j[T];A=R;G=y;p=M;L=T===0;L=L===void 0?!1:L;yTl(H,p);P=A;V=H.L;L=L===void 0?!1:L;var N=1E3/P.length,e=[];e.push({x:0,y:100});for(var t=0;t0&&(m=R[R.length-1])}g.wo(a);b=[];l=g.c(l.heatMarkersDecorations||[]);for(y=l.next();!y.done;y=l.next())if(y=g.I(y.value,WFb))M=y.label,T=m=d=void 0,b.push({visibleTimeRangeStartMillis:(d=y.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(m=y.visibleTimeRangeEndMillis)!=null?m:-1,decorationTimeMillis:(T=y.decorationTimeMillis)!=null?T:NaN,label:M?g.Lj(M):""});a.heatMarkersDecorations=b}}; Gkd=function(a,l){a.B.push(l);g.w(a,l);l.DK(a.Ia,a.Ia.children.length)}; VW7=function(a,l){l=g.c(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var T=I2(a,m.timeRangeStartMillis/(a.Z.T*1E3),C9(a));g.nA(m.element,"transform","translateX("+T+"px) scaleX(0.6)")}}; AT5=function(a,l){var m=0,T=!1;l=g.c(l);for(var y=l.next();!y.done;y=l.next()){y=y.value;if(g.I(y,LFd)){y=g.I(y,LFd);var R={startTime:NaN,title:null,onActiveCommand:void 0},H=y.title;R.title=H?g.Lj(H):"";H=y.timeRangeStartMillis;H!=null&&(R.startTime=H);R.onActiveCommand=y.onActiveCommand;y=R;m===0&&y.startTime!==0&&(a.T[m].startTime=0,a.T[m].title="",a.T[m].onActiveCommand=y.onActiveCommand,m++,T=!0);a.T.length<=m&&(R=new J4,a.T.push(R),g.w(a,R),R.DK(a.rb,a.rb.children.length));a.T[m].startTime= y.startTime;a.T[m].title=y.title?y.title:"";a.T[m].onActiveCommand=y.onActiveCommand;a.T[m].index=T?m-1:m}m++}for(;m=0;T--)if(a.T[T].width>0){R4d(a.T[T],0);var y=Math.floor(a.T[T].width);a.T[T].width=y;Ba(a.T[T],y+"px");break}a.T[m].width=0;Ba(a.T[m],"0")}else m===a.T.length-1?(T=Math.floor(a.T[m].width+l),a.T[m].width=T,Ba(a.T[m],T+"px")):(l=a.T[m].width+l,T=Math.round(l),l-=T,a.T[m].width=T,Ba(a.T[m],T+"px"));m=0;if(a.j.length===a.T.length)for(l=0;l< a.j.length;l++)T=a.T[l].width,a.j[l].element.style.width=T+"px",a.j[l].element.style.left=m+"px",m+=T+o2(a);a.api.V("delhi_modern_web_player")&&(a.T.length===1?a.T[0].L.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(a.T[0].L.classList.remove("ytp-progress-bar-end"),a.T[0].L.classList.add("ytp-progress-bar-start"),a.T[a.T.length-1].L.classList.add("ytp-progress-bar-end")))}; NLP=function(a,l){var m=0,T=!1,y=a.T.length,R=a.Z.T*1E3;R===0&&(R=a.api.getProgressState().seekableEnd*1E3);if(R>0&&a.C>0){for(var H=a.C-o2(a)*a.Kx,b=a.ZR===0?3:H*a.ZR,M=g.c(a.T),d=M.next();!d.done;d=M.next())d.value.width=0;for(;m1);d=(R===0?0:M/R*H)+a.T[m].width;if(d>b)a.T[m].width=d;else{a.T[m].width=0;var A=a,P=m,G=A.T[P-1];G!==void 0&&G.width>0? G.width+=d:Pa.ZR&&(a.ZR=M/R),T=!0)}m++}}return T}; EN=function(a){if(a.C){var l=a.api.getProgressState(),m=a.api.getVideoData();if(!(m&&m.enableServerStitchedDai&&m.Uk)||isFinite(l.current)){var T;if(((T=a.api.getVideoData())==null?0:Un(T))&&l.airingStart&&l.airingEnd)var y=xm(a,l.airingStart,l.airingEnd);else if(a.api.getPresentingPlayerType()===2){var R,H,b;y=(m=(y=a.api.getVideoData())==null?void 0:(R=y.getPlayerResponse())==null?void 0:(H=R.playerConfig)==null?void 0:(b=H.webPlayerConfig)==null?void 0:b.skippableAdProgressBarDuration)?xm(a,l.seekableStart, m/1E3):xm(a,l.seekableStart,l.seekableEnd)}else y=xm(a,l.seekableStart,l.seekableEnd);R=kf(y,l.loaded,0);l=kf(y,l.current,0);H=a.Z.L!==y.L||a.Z.T!==y.T;a.Z=y;Di(a,l,R);H&&QQz(a);tWQ(a)}}}; xm=function(a,l,m){return e4Q(a)?new Br(Math.max(l,a.o0.startTimeMs/1E3),Math.min(m,a.o0.endTimeMs/1E3)):new Br(l,m)}; h4p=function(a,l){var m,T,y;l=g.I((m=l.getWatchNextResponse())==null?void 0:(T=m.playerOverlays)==null?void 0:(y=T.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,OS);if(l==null?0:l.progressColor)for(m=0;m1){m=uY(a,l.Z,!0);for(var T=0,y=0;y0&&(T+=a.T[y].width,T+=o2(a));m=(a.T[m].startTime+(l.Z-T)/a.T[m].width*((m===a.T.length-1?a.Z.T*1E3:a.T[m+1].startTime)-a.T[m].startTime))/1E3||0}return m}; Ym=function(a,l,m,T,y){l=l<0?0:Math.floor(Math.min(l,a.api.getDuration())*1E3);m=m<0?0:Math.floor(Math.min(m,a.api.getDuration())*1E3);a=a.progressBar.visualElement;T={seekData:{startMediaTimeMs:l,endMediaTimeMs:m,seekSource:T}};(l=g.KU())&&g.me(yf)(void 0,l,a,y,T,void 0)}; KFw=function(a,l,m){if(m>=a.T.length)return!1;var T=a.C-o2(a)*a.Kx;return Math.abs(l-a.T[m].startTime/1E3)/a.Z.T*T<4}; QQz=function(a){a.Sd.style.removeProperty("height");for(var l=g.c(Object.keys(a.St)),m=l.next();!m.done;m=l.next())z4Q(a,m.value);UN(a);Di(a,a.Ij,a.lZ)}; C9=function(a){var l=a.vF.x;l=g.Km(l,0,a.C);a.WE.update(l,a.C);return a.WE}; az=function(a){return(a.N?135:90)-ro(a)}; ro=function(a){var l=48,m=a.api.Y();a.api.V("delhi_modern_web_player")?l=a.N?96:68:a.N?l=54:g.vS(m)&&!m.L&&(l=40);return l}; Di=function(a,l,m){a.Ij=l;a.lZ=m;var T=C9(a),y=a.Z.T;var R=a.Z;R=R.L+a.Ij*R.getLength();var H=g.ph("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.O6(R,!0),DURATION:g.O6(y,!0)}),b=yj(a.T,R*1E3);b=a.T[b].title;a.update({ariamin:Math.floor(a.Z.L),ariamax:Math.floor(y),arianow:Math.floor(R),arianowtext:b?b+" "+H:H});y=a.clipStart;R=a.clipEnd;a.o0&&a.api.getPresentingPlayerType()!==2&&(y=a.o0.startTimeMs/1E3,R=a.o0.endTimeMs/1E3);y=kf(a.Z,y,0);b=kf(a.Z,R,1);H=a.api.getVideoData();R=g.Km(l,y,b);m=(H==null? 0:g.u9(H))?1:g.Km(m,y,b);l=I2(a,l,T);g.nA(a.Dv,"transform","translateX("+l+"px)");a.api.V("delhi_modern_web_player")&&a.api.V("delhi_modern_web_player_cutout")&&vsp(a,l);lO(a,T,y,R,"PLAY_PROGRESS");(H==null?0:Un(H))?(l=a.api.getProgressState().seekableEnd)&&lO(a,T,R,kf(a.Z,l),"LIVE_BUFFER"):lO(a,T,y,m,"LOAD_PROGRESS");if(a.api.V("web_player_heat_map_played_bar")){var M;(M=a.j[0])!=null&&M.B.setAttribute("width",(R*100).toFixed(2)+"%")}}; vsp=function(a,l){a.api.getPresentingPlayerType()!==1?a.rb.style.removeProperty("clip-path"):(l||(l=I2(a,a.Ij,C9(a))),a.rb.style.clipPath='path("'+(a.Aa?$_3(a,8,l,a.N?50:36,0,6):$_3(a,4,l,a.N?34:24,2,3))+'")')}; $_3=function(a,l,m,T,y,R){var H=m-T/2;m+=T/2;l+=y;return"M 0 "+y+" L 0 "+(l+" L ")+(H+" "+l+" C ")+(H+R+" "+l+" "+(H+R)+" "+y+" "+H+" "+y+" L 0 ")+(y+" M ")+(m+" "+y+" L ")+(a.C+" "+y+" L ")+(a.C+" "+l+" L ")+(m+" "+l+" C ")+(m-R+" "+l+" "+(m-R)+" "+y+" "+m+" "+y)}; lO=function(a,l,m,T,y){var R=a.T.length,H=l.T-a.Kx*o2(a),b=m*H;m=uY(a,b);var M=T*H;H=uY(a,M);y==="HOVER_PROGRESS"&&(H=uY(a,l.T*T,!0),M=l.T*T-sQ3(a,l.T*T)*o2(a));T=Math.max(b-STw(a,m),0);for(b=m;b=a.T.length)return a.C;for(var m=0,T=0;T0||a.JW.clientWidth>0?(R=l.clientWidth/m,a=-1*a.wO.clientWidth/m):(R/=m,a=-1*a.T[y].element.offsetLeft/m),g.nA(l,"background-size",R+"px"),g.nA(l,"background-position-x",a+"px"))}; mU=function(a,l,m,T,y){y||a.api.Y().L?l.style.width=m+"px":g.nA(l,"transform","scalex("+(T?m/T:0)+")")}; uY=function(a,l,m){var T=0;(m===void 0?0:m)&&(l-=sQ3(a,l)*o2(a));m=g.c(a.T);for(var y=m.next();!y.done;y=m.next()){y=y.value;if(l>y.width)l-=y.width;else break;T++}return T===a.T.length?T-1:T}; I2=function(a,l,m){var T=l*a.Z.T*1E3;for(var y=-1,R=g.c(a.T),H=R.next();!H.done;H=R.next())H=H.value,T>H.startTime&&H.width>0&&y++;T=y<0?0:y;y=m.T-o2(a)*a.Kx;return l*y+o2(a)*T+m.j}; sQ3=function(a,l){for(var m=a.T.length,T=0,y=g.c(a.T),R=y.next();!R.done;R=y.next())if(R=R.value,R.width!==0)if(l>R.width)l-=R.width,l-=o2(a),T++;else break;return T===m?m-1:T}; g.BL5=function(a,l,m,T){var y=a.C!==m,R=a.N!==T;a.Or=l;a.C=m;a.N=T;km(a)&&(l=a.L)!=null&&(l.scale=T?1.5:1);QQz(a);a.T.length===1&&(a.T[0].width=m||0);y&&g.wo(a);a.L&&R&&km(a)&&(a.L.isEnabled&&(m=a.N?135:90,T=m-ro(a),a.yg.style.height=m+"px",g.nA(a.lT,"transform","translateY("+-T+"px)"),g.nA(a.progressBar,"transform","translateY("+-T+"px)")),au7(a.L))}; UN=function(a){var l=!!a.o0&&a.api.getPresentingPlayerType()!==2,m=a.clipStart,T=a.clipEnd,y=!0,R=!0;l&&a.o0?(m=a.o0.startTimeMs/1E3,T=a.o0.endTimeMs/1E3):(y=m>a.Z.L,R=a.Z.T>0&&Ta.Ij);g.AM(a.Sd,"ytp-scrubber-button-hover",m===T&&a.T.length>1);if(a.api.V("web_player_heat_map_played_bar")){var R;(R=a.j[0])!=null&&R.T.setAttribute("width",(l.L*100).toFixed(2)+"%")}}}; z4Q=function(a,l){var m=a.St[l];l=a.tN[l];var T=C9(a),y=kf(a.Z,m.start/1E3,0),R=MNd(m,a.N)/T.width;var H=kf(a.Z,m.end/1E3,1);R!==Number.POSITIVE_INFINITY&&(y=g.Km(y,0,H-R));H=Math.min(H,y+R);m.color&&(l.style.background=m.color);m=y;l.style.left=Math.max(m*T.T+T.j,0)+"px";mU(a,l,g.Km((H-m)*T.T+T.j,0,T.width),T.width,!0)}; kkQ=function(a,l){var m=l.getId();a.St[m]===l&&(g.HI(a.tN[m]),delete a.St[m],delete a.tN[m])}; km=function(a){var l=g.aX(a.api.Y())&&(a.api.V("web_shorts_pip")||a.api.V("web_watch_pip")),m;return!((m=a.api.getVideoData())==null?0:m.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()&&(!a.api.FX()||!l)}; Tn=function(a){a.L&&(a.L.disable(),a.wb=0,a.lT.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.yg.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))}; nsH=function(a,l){var m=l/az(a)*ro(a);g.nA(a.progressBar,"transform","translateY("+-l+"px)");g.nA(a.lT,"transform","translateY("+-l+"px)");g.nA(a.yg,"transform","translateY("+m+"px)");a.yg.style.height=l+m+"px";a.element.parentElement&&(a.element.parentElement.style.height=ro(a)-m+"px")}; wow=function(a,l){l?a.J||(a.element.removeAttribute("aria-disabled"),a.J=new g.Jc(a.progressBar,!0),a.J.subscribe("hovermove",a.eAz,a),a.J.subscribe("hoverend",a.CMT,a),a.J.subscribe("dragstart",a.ovx,a),a.J.subscribe("dragmove",a.KLz,a),a.J.subscribe("dragend",a.mNb,a),a.api&&a.api.V("delhi_modern_web_player")&&a.api.V("delhi_modern_web_player_cutout")&&(a.im=new g.Jc(a.progressBar,!0),a.im.subscribe("hoverstart",function(){a.Aa=!0;vsp(a)},a),a.im.subscribe("hoverend",function(){a.Aa=!1; vsp(a)},a)),a.v1=a.listen("keydown",a.RB)):a.J&&(a.element.setAttribute("aria-disabled","true"),a.DT(a.v1),a.J.cancel(),a.J.dispose(),a.J=null)}; o2=function(a){return a.api.V("delhi_modern_web_player")?4:a.N?3:2}; e4Q=function(a){var l;return!((l=a.o0)==null||!l.postId)&&a.api.getPresentingPlayerType()!==2}; yq=function(a,l){g.x.call(this,{U:"button",uT:["ytp-remote-button","ytp-button"],G:{title:"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},Lx:"{{icon}}"});this.D=a;this.Ob=l;this.T=null;this.W(a,"onMdxReceiversChange",this.k8);this.W(a,"presentingplayerstatechange",this.k8);this.W(a,"appresize",this.k8);a.createClientVe(this.element,this,139118);this.k8();this.listen("click",this.L,this);e3(a,this.element,this)}; Rz=function(a,l){g.x.call(this,{U:"button",uT:["ytp-button","ytp-settings-button"],G:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Pk(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},X:[g.sD()]});this.D=a;this.Ob=l;this.L=!0;this.listen("click",this.Z);this.W(a,"onPlaybackQualityChange",this.updateBadge);this.W(a,"videodatachange",this.updateBadge);this.W(a,"webglsettingschanged",this.updateBadge);this.W(a,"appresize",this.T);e3(a,this.element,this);this.D.createClientVe(this.element, this,28663);this.updateBadge();this.T(a.cz().getPlayerSize())}; Iud=function(a,l){a.L=!!l;a.T(a.D.cz().getPlayerSize())}; H4=function(a,l){HR.call(this,"Anotaciones",g.d5.oJ);this.D=a;this.Ob=l;this.T=!1;a.V("web_settings_menu_icons")&&this.setIcon({U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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.W(a,"videodatachange",this.k8);this.W(a,"onApiChange",this.k8);this.subscribe("select",this.onSelect,this);this.k8()}; q8=function(a,l){g.sR.call(this,"Pista de audio",g.d5.AUDIO,a,l);this.D=a;this.tracks={};g.M$(this.element,"ytp-audio-menu-item");this.countLabel=new g.x({U:"div",X:[{U:"span",Lx:"Pista de audio"},{U:"span",S:"ytp-menuitem-label-count",Lx:"{{content}}"}]});a.V("web_settings_menu_icons")&&this.setIcon(c7w());g.w(this,this.countLabel);g.Da(this,this.countLabel);this.W(a,"videodatachange",this.k8);this.W(a,"onPlaybackAudioChange",this.k8);this.k8()}; bO=function(a,l){HR.call(this,"Reproducci\u00f3n autom\u00e1tica",g.d5.xC);this.D=a;this.Ob=l;this.T=!1;this.Z=[];this.W(a,"presentingplayerstatechange",this.L);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.L()}; Ck7=function(a,l){g.ub.call(this,g.X9({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.D=a;this.Ob=l;this.W(this.element,"click",this.onClick);this.Ob.mL(this)}; Es5=function(a,l){var m;g.aX(a.Y())&&(m={U:"div",S:"ytp-panel-footer-content",X:[{U:"span",Lx:"Ajusta la calidad de descarga desde tu "},{U:"a",S:"ytp-panel-footer-content-link",Lx:"Configuraci\u00f3n",G:{href:"/account_downloads"}}]});g.sR.call(this,"Calidad",g.d5.jN,a,l,void 0,void 0,m);this.D=a;this.jt={};this.N={};this.j={};this.qj=new Set;this.T=this.C=!1;this.B="unknown";this.Ij="";this.lT=new g.Uc;g.w(this,this.lT);this.C=this.D.V("web_player_use_new_api_for_quality_pullback");this.T=this.D.V("web_player_enable_premium_hbr_playback_cap"); a.V("web_settings_menu_icons")&&this.setIcon({U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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.M$(this.L.element,"ytp-quality-menu");this.W(a,"videodatachange",this.K9);this.W(a,"videoplayerreset",this.K9);this.W(a,"onPlaybackQualityChange",this.cO);this.K9();a.createClientVe(this.element,this,137721)}; x_d=function(a,l,m){var T=a.jt[l],y=g.wF[l];return osz(a,T?T.qualityLabel:y?y+"p":"Autom\u00e1tica",l,m)}; D_Q=function(a,l,m,T,y){var R=(l=a.T?a.j[l]:a.N[l])&&l.quality,H=l&&l.qualityLabel;H=H?H:"Autom\u00e1tica";T&&(H="("+H);a=osz(a,H,R||"",y);T&&a.X.push(")");(T=(T=l&&l.paygatedQualityDetails)&&T.paygatedIndicatorText)&&m&&a.X.push({U:"div",S:"ytp-premium-label",Lx:T});return a}; osz=function(a,l,m,T){l={U:"span",uT:T,X:[l]};var y;T="ytp-swatch-color";if(a.C||a.T)T="ytp-swatch-color-white";m==="highres"?y="8K":m==="hd2880"?y="5K":m==="hd2160"?y="4K":m.indexOf("hd")===0&&m!=="hd720"&&(y="HD");y&&(l.X.push(" "),l.X.push({U:"sup",S:T,Lx:y}));return l}; g3=function(a){ON.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate(),{U:"div",S:"ytp-speedslider-indicator-container",X:[{U:"div",S:"ytp-speedslider-badge"},{U:"p",S:"ytp-speedslider-text"}]});this.D=a;this.Ij=ZN(this.lT,50,this);g.M$(this.L,"ytp-speedslider");this.N=this.OL("ytp-speedslider-text");this.qj=this.OL("ytp-speedslider-badge");uD7(this);this.W(this.L,"change",this.jt)}; uD7=function(a){a.N.textContent=a.T+"x";a.qj.classList.toggle("ytp-speedslider-premium-badge",a.T>2&&a.D.V("enable_web_premium_varispeed"))}; M8=function(a,l,m,T,y,R,H){g.x.call(this,{U:"div",S:"ytp-slider-section",G:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{U:"div",S:"ytp-slider",X:[{U:"div",S:"ytp-slider-handle"}]}]});this.J=a;this.N=l;this.L=m;this.Z=T;this.Ij=y;this.hM=R;this.range=this.Z-this.L;this.Kx=this.OL("ytp-slider-section");this.j=this.OL("ytp-slider");this.lT=this.OL("ytp-slider-handle");this.B=new g.Jc(this.j, !0);this.T=H?H:m;g.w(this,this.B);this.B.subscribe("dragmove",this.Qi,this);this.W(this.element,"keydown",this.w$);this.W(this.element,"wheel",this.Yl);this.init()}; iO=function(a){M8.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.D=a;this.C=g.lK("P");this.qj=ZN(this.jt,50,this);g.M$(this.j,"ytp-speedslider");g.M$(this.C,"ytp-speedslider-text");a=this.C;var l=this.j;l.parentNode&&l.parentNode.insertBefore(a,l.nextSibling);XoH(this);this.W(this.D,"onPlaybackRateChange",this.updateValues)}; XoH=function(a){a.C.textContent=YT7(a,a.T)+"x"}; YT7=function(a,l){a=Number(g.Km(l,a.L,a.Z).toFixed(2));l=Math.floor((a+.001)*100%5+2E-15);var m=a;l!==0&&(m=a-l*.01);return Number(m.toFixed(2))}; U_7=function(a){g.Z7.call(this,{U:"div",S:"ytp-speedslider-component"});a.V("web_settings_use_input_slider")?this.T=new g3(a):this.T=new iO(a);g.w(this,this.T);this.element.appendChild(this.T.element)}; rTp=function(a){var l=new U_7(a);Nu.call(this,a,l,"Personalizada");g.w(this,l)}; as5=function(a,l){var m=new rTp(a);g.sR.call(this,"Velocidad de reproducci\u00f3n",g.d5.qG,a,l,d3(a)?void 0:"Personalizada",d3(a)?void 0:function(){g.Fq(l,m)}); var T=this;this.j=!1;g.w(this,m);this.B=new g3(a);g.w(this,this.B);a.V("web_settings_menu_icons")&&this.setIcon({U:"svg",G:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{U:"path",G:{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.D=a;this.j=!1;this.Ij=null;d3(a)?(this.T=g.ph("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.D.getPlaybackRate().toString()}),this.C=this.D.getPlaybackRate()):this.C=this.T=null;this.N=this.D.getAvailablePlaybackRates();this.W(a,"presentingplayerstatechange",this.k8);var y;((y=this.D.getVideoData())==null?0:y.WN())&&this.W(a,"serverstitchedvideochange",this.k8);this.W(this.B.L,"change",function(){T.j=!0;T.k8()}); this.k8()}; lsP=function(a,l){var m=jU(l);a.T&&(a.j||l===a.C)?(a.cE(a.T),a.MN(l.toString())):a.cE(m)}; T4l=function(a){a.sP(a.N.map(jU));a.T=null;a.C=null;var l=a.D.getPlaybackRate();d3(a.D)&&mgt(a,l);!a.N.includes(l)||a.j?a.cE(a.T):a.cE(jU(l))}; mgt=function(a,l){a.C=l;a.T=g.ph("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:l.toString()});l=a.N.map(jU);l.unshift(a.T);a.sP(l)}; jU=function(a){return a.toString()}; d3=function(a){return a.V("web_settings_menu_surface_custom_playback")}; yF5=function(a){return a.V("web_settings_menu_surface_custom_playback")&&a.V("web_settings_use_input_slider")}; Hf7=function(a,l,m,T){var y=new g.Q4(l,void 0,"Anulaci\u00f3n de v\u00eddeo");g.sR.call(this,T.text||"",a,l,m,"Anulaci\u00f3n de v\u00eddeo",function(){g.Fq(m,y)}); var R=this;g.M$(this.element,"ytp-subtitles-options-menu-item");this.setting=T.option.toString();a=T.options;this.settings=g.kB(a,this.y0,this);this.C=y;g.w(this,this.C);l=new g.ub({U:"div",S:"ytp-menuitemtitle",Lx:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.w(this,l);this.C.mL(l,!0);this.j=new g.ub({U:"div",S:"ytp-menuitem",G:{role:"menuitemradio",tabindex:"0"},X:[{U:"div",S:"ytp-menuitem-label",Lx:"Activado"}]},-1);g.w(this,this.j);this.C.mL(this.j, !0);this.W(this.j.element,"click",function(){Rv5(R,!0)}); this.T=new g.ub({U:"div",S:"ytp-menuitem",G:{role:"menuitemradio",tabindex:"0"},X:[{U:"div",S:"ytp-menuitem-label",Lx:"No"}]},-2);g.w(this,this.T);this.C.mL(this.T,!0);this.W(this.T.element,"click",function(){Rv5(R,!1)}); this.sP(g.xX(a,this.y0))}; Rv5=function(a,l){a.publish("settingChange",a.setting+"Override",!l);a.Ob.v4()}; AG=function(a,l){g.Q4.call(this,a,void 0,"Opciones");var m=this;this.fv={};for(var T=0;T=0);if(!(l<0||l===a.j)){a.j=l;l=243*a.scale;var m=141*a.scale,T=Zlz(a.L,a.j,l);KmR(a.bg,T,l,m,!0);a.Ij.start()}}; s57=function(a){var l=a.T;a.type===3&&a.lT.stop();a.api.removeEventListener("appresize",a.N);a.B||l.setAttribute("title",a.Z);a.Z="";a.T=null;a.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});a.wrapper.style.width=""}; fsQ=function(a){g.x.call(this,{U:"button",uT:["ytp-watch-later-button","ytp-button"],G:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.vS(a.Y()))},X:[{U:"div",S:"ytp-watch-later-icon",Lx:"{{icon}}"},{U:"div",S:"ytp-watch-later-title",Lx:"Ver m\u00e1s tarde"}]});this.D=a;this.icon=null;this.visible=this.isRequestPending=this.T=!1;ahl(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.W(a,"videoplayerreset",this.onReset);this.W(a, "appresize",this.xR);this.W(a,"videodatachange",this.xR);this.W(a,"presentingplayerstatechange",this.xR);this.xR();a=this.D.Y();var l=g.BW("yt-player-watch-later-pending");a.j&&l?(k9z(),SVR(this)):this.k8(2);g.AM(this.element,"ytp-show-watch-later-title",g.vS(a));e3(this.D,this.element,this)}; JF5=function(a){var l=a.D.getPlayerSize(),m=a.D.Y(),T=g.B(a.D.getVideoData()),y=g.vS(m)&&g.vi(a.D)&&g.u(a.D.getPlayerStateObject(),128),R=m.Z;return m.EG&&l.width>=240&&!T.isAd()&&T.EG&&!y&&!g.Tl(T)&&!a.D.isEmbedsShortsMode()&&!R}; B47=function(a,l){E3P(g.uj(a.D.Y()),"wl_button",function(){k9z({videoId:l});window.location.reload()})}; SVR=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.k8(3);var l=g.B(a.D.getVideoData());l=a.T?l.removeFromWatchLaterCommand:l.addToWatchLaterCommand;var m=g.B(a.D.kd()),T=a.T?function(){a.T=!1;a.isRequestPending=!1;a.k8(2);a.D.Y().J&&a.D.Pz("WATCH_LATER_VIDEO_REMOVED")}:function(){a.T=!0; a.isRequestPending=!1;a.k8(1);a.D.Y().L&&a.D.Rl(a.element);a.D.Y().J&&a.D.Pz("WATCH_LATER_VIDEO_ADDED")}; Yb(m,l).then(T,function(){a.isRequestPending=!1;a.k8(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");a.D.Y().J&&a.D.Pz("WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; k55=function(a,l){if(l!==a.icon){switch(l){case 3:var m=MH();break;case 1:m=Qf();break;case 2:m={U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{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={U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path", nE:!0,G:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",m);a.icon=l}}; g.hG=function(){g.wd.apply(this,arguments);this.Uf=(this.nY=g.vS(this.api.Y()))&&(this.api.Y().L||yb()||m7());this.y7=48;this.Np=69;this.Cb=this.f7=null;this.QN=[];this.aZ=this.mH=this.IZ=this.BS=this.xf=null;this.ys=[];this.contextMenu=this.Jt=this.overflowButton=this.Er=this.Zq=this.searchButton=this.copyLinkButton=this.shareButton=this.Sm=this.vE=this.title=this.channelAvatar=this.Wq=this.tooltip=null;this.WG=!1;this.GO=this.RN=this.dw=this.X1=null;this.lr=this.G2=this.i9=!1}; n8l=function(a){var l=a.api.Y(),m=g.u(a.api.getPlayerStateObject(),128);return l.j&&m&&!a.api.isFullscreen()}; w7w=function(a){if(a.GA()&&!a.api.isEmbedsShortsMode()&&a.Er){var l=a.api.V("web_player_hide_overflow_button_if_empty_menu");!a.Sm||l&&!JF5(a.Sm)||x17(a.Er,a.Sm);!a.shareButton||l&&!MaQ(a.shareButton)||x17(a.Er,a.shareButton);!a.copyLinkButton||l&&!qgQ(a.copyLinkButton)||x17(a.Er,a.copyLinkButton)}else{l=a.api.Y().getWebPlayerContextConfig();if(a.Er){for(var m=a.Er,T=g.c(m.actionButtons),y=T.next();!y.done;y=T.next())y.value.detach();m.actionButtons=[]}a.searchButton&&!g.qw(a.vE.element,a.searchButton.element)&& a.searchButton.DK(a.vE.element);!a.Sm||(l==null?0:l.hideTopWatchNextButton)||g.qw(a.vE.element,a.Sm.element)||a.Sm.DK(a.vE.element);!a.shareButton||(l==null?0:l.hideTopShareButton)||g.qw(a.vE.element,a.shareButton.element)||a.shareButton.DK(a.vE.element);a.copyLinkButton&&!g.qw(a.vE.element,a.copyLinkButton.element)&&a.copyLinkButton.DK(a.vE.element)}}; Isw=function(a,l,m){l=m?l.lastElementChild:l.firstElementChild;for(var T=null;l;){if(CA(l,"display")!=="none"&&l.getAttribute("aria-hidden")!=="true"){var y=void 0;l.tabIndex>=0?y=l:y=Isw(a,l,m);y&&(T?m?y.tabIndex>T.tabIndex&&(T=y):y.tabIndexT/1E3+1)return{msg:"in-the-past"};if(R.isLivePlayback&&!isFinite(T))return{msg:"live-infinite"};(T=l.TE())&&T.isView()&&(T=T.mediaElement);if(T&&T.ZP().length>12&&g.LK(y))return{msg:"played-ranges"};if(!y.Z)return null;if(!H)return{msg:"no-pvd-formats"};if(!y.Z.T||!H.T)return{msg:"non-dash"};T=H.videoInfos[0];var b=y.Z.videoInfos[0];a.N&&qf(R)&&(T=l.Ii(),b= m.Ii());if(!T||!b)return{msg:"no-video-info"};if(a.j&&(Y9(T)||Y9(b)))return{msg:"av1"};l=a.L&&R.gk()&&oy();if(b.containerType!==T.containerType)if(l)R.Tu("sgap",{ierr:"container"});else return{msg:"container"};if(a.Z&&!l&&(b.Gu!==T.Gu||b.Gu===""||T.Gu===""))return{msg:"codec"};if(a.K&&b.video&&T.video&&Math.abs(b.video.width/b.video.height-T.video.width/T.video.height)>.01)return{msg:"ratio"};if(g.LK(R)&&g.LK(y))return{msg:"content-protection"};H=H.T[0];y=y.Z.T[0];m=H.audio;var M=y.audio;if(m.sampleRate!== M.sampleRate&&!g.s_)if(l)R.Tu("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:H.itag,cr:m.sampleRate,ni:y.itag,nr:M.sampleRate};return(m.numChannels||2)!==(M.numChannels||2)?{msg:"channel-count"}:a.B&&R.gk()&&T.video.fps!==b.video.fps?{msg:"fps"}:null}; xg5=function(a,l,m){var T=a.getVideoData(),y=l.getVideoData();if(!T.Y().supportsGaplessShorts())return{nq:"env"};if(m.J?T.dR&&!T.isAd()||y.dR&&!y.isAd():m.T?T.dR&&!T.isAd()||y.dR:T.dR||y.dR)return{nq:"autoplay"};if(m.C&&T.endSeconds>0)return{nq:"endcr"};if(!T.B)return{nq:"client"};if(!a.i$())return{nq:"no-empty"};a=o87(m,a,l,Infinity);return a!=null?{nq:a.msg}:null}; zn=function(a){g.k.call(this);this.app=a;this.K=this.j=this.L=this.T=null;this.Z=1;this.events=new g.BT(this);this.events.W(this.app.bT,g.bl("gaplessshortslooprange"),this.J);g.w(this,this.events)}; Dgd=function(){this.C=this.K=this.T=this.J=this.j=this.N=this.B=this.Z=this.L=!1}; ug3=function(a){var l=new Dgd;l.L=a.V("h5_gapless_support_types_diff");l.B=a.V("h5_gapless_error_on_fps_diff");l.N=a.V("html5_gapless_use_format_info_fix");l.j=a.V("html5_gapless_disable_on_av1")&&!a.V("html5_gapless_enable_on_av1");l.Z=a.V("html5_gapless_check_codec_diff_strictly");l.J=a.V("html5_gapless_on_ad_autoplay");l.K=a.V("html5_gapless_disable_diff_aspect_radio");l.C=a.V("html5_gapless_disable_on_end_cue_range");l.T=a.V("html5_gapless_ad_autoplay_on_ad_to_video_only");return l}; g.v4=function(a,l,m,T){T=T===void 0?!1:T;mZ.call(this);this.mediaElement=a;this.start=l;this.end=m;this.T=T}; X7b=function(a,l,m,T,y,R){R=R===void 0?0:R;g.k.call(this);var H=this;this.policy=a;this.T=l;this.L=m;this.xv=y;this.K=R;this.j=this.Z=null;this.currentVideoDuration=this.C=-1;this.B=!1;this.lK=new l6;this.Xx=T-l.YX()*1E3;this.lK.then(void 0,function(){}); this.timeout=new g.aH(function(){H.ag("timeout")},1E4); g.w(this,this.timeout);this.J=isFinite(T)||this.xv.Y().experiments.XO("html5_pseudogapless_shorts")&&qf(l.getVideoData());this.status={status:0,error:null}}; rFP=function(a){var l,m,T,y,R,H,b,M,d,A;return g.J(function(P){if(P.L==1){if(a.FO())return P.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();l=g.$D.h7();return g.z(P,a.lK,2)}g.$D.Ga("gtfta",l);m=a.T.TE();if(m.isEnded())return a.ag("ended_in_finishTransition"),P.return(Promise.reject(Error(a.status.error||"")));if(!a.j||!uH(a.j))return a.ag("next_mse_closed"),P.return(Promise.reject(Error(a.status.error||"")));if(a.L.o8()!==a.j)return a.ag("next_mse_mismatch"),P.return(Promise.reject(Error(a.status.error|| "")));T=YVb(a);y=T.jP;R=T.fT;H=T.Wy;a.T.oa(!1,!0);b=Ugl(m,y,H,!a.L.getVideoData().isAd());a.L.setMediaElement(b);(M=a.T.ML())&&a.L.Cp(M.pZ,M.Ro);a.J&&(a.L.seekTo(a.L.getCurrentTime()+.001,{uO:!0,Mf:3,hW:"gapless_pseudo"}),b.play(),fy());d=m.rW();d.cpn=a.T.getVideoData().clientPlaybackNonce;d.st=""+y;d.et=""+H;a.L.Tu("gapless",d);a.T.Tu("gaplessTo",{cpn:a.L.getVideoData().clientPlaybackNonce});A=a.T.getPlayerType()===a.L.getPlayerType();a.T.Il(R,!0,!1,A,a.L.getVideoData().clientPlaybackNonce);a.L.Il(a.L.getCurrentTime(), !0,!0,A,a.T.getVideoData().clientPlaybackNonce);g.FS(function(){!a.L.getVideoData().Kx&&a.L.getPlayerState().isOrWillBePlaying()&&a.L.Cc()}); sy(a,6);a.dispose();return P.return(Promise.resolve())})}; TB7=function(a){if(a.L.getVideoData().Z){var l=a.xv.Y().V("html5_gapless_suspend_next_loader")&&a.K===1;a.L.nZ(a.j,l,ao7(a));sy(a,3);lop(a);var m=mYQ(a);l=m.Ex;m=m.P3;l.subscribe("updateend",a.OA,a);m.subscribe("updateend",a.OA,a);a.OA(l);a.OA(m)}}; lop=function(a){a.T.unsubscribe("internalvideodatachange",a.qh,a);a.L.unsubscribe("internalvideodatachange",a.qh,a);a.xv.Y().V("html5_gapless_use_format_info_fix")&&(a.T.unsubscribe("internalvideoformatchange",a.qh,a),a.L.unsubscribe("internalvideoformatchange",a.qh,a));a.T.unsubscribe("mediasourceattached",a.qh,a);a.L.unsubscribe("statechange",a.vL,a)}; Ugl=function(a,l,m,T){a=a.isView()?a.mediaElement:a;return new g.v4(a,l,m,T)}; sy=function(a,l){l<=a.status.status||(a.status={status:l,error:null},l===5&&a.lK.resolve())}; ao7=function(a){return a.xv.Y().V("html5_gapless_no_clear_buffer_timeline")&&a.K===1&&Mf(a.T.getVideoData())}; YVb=function(a){var l=a.T.TE();l=l.isView()?l.start:0;var m=a.T.getVideoData().isLivePlayback?Infinity:a.T.RH(!0);m=Math.min(a.Xx/1E3,m)+l;var T=a.J?100:0;a=m-a.L.Ja()+T;return{W2:l,jP:a,fT:m,Wy:Infinity}}; mYQ=function(a){return{Ex:a.Z.T.gO,P3:a.Z.L.gO}}; SU=function(a){g.k.call(this);var l=this;this.app=a;this.K=this.L=this.T=null;this.J=!1;this.Z=this.j=null;this.B=ug3(this.app.Y());this.C=function(){g.FS(function(){yxt(l)})}}; Rh3=function(a,l,m,T,y){T=T===void 0?0:T;y=y===void 0?0:y;a.i$()||fY(a);a.j=new l6;a.T=l;var R=m,H=y===0;H=H===void 0?!0:H;var b=a.app.Qg(),M=b.getVideoData().isLivePlayback?Infinity:b.RH(!0)*1E3;R>M&&(R=M-200,a.J=!0);H&&b.getCurrentTime()>=R/1E3?a.C():(a.L=b,H&&(H=R,R=a.L,a.app.bT.addEventListener(g.qm("vqueued"),a.C),H=isFinite(H)||H/1E3>R.getDuration()?H:0x8000000000000,a.K=new g.Rq(H,0x8000000000000,{namespace:"vqueued"}),R.addCueRange(a.K)));H=T/=1E3;R=l.getVideoData().T;T&&R&&a.L&&(b=T,M=0, l.getVideoData().isLivePlayback&&(H=Math.min(m/1E3,a.L.RH(!0)),M=Math.max(0,H-a.L.getCurrentTime()),b=Math.min(T,l.RH()+M)),H=Zdw(R,b)||T,H!==T&&a.T.Tu("qvaln",{st:T,at:H,rm:M,ct:b}));l=H;T=a.T;T.getVideoData().Ia=!0;T.getVideoData().B=!0;T.rp(!0);R={};a.L&&(R=a.L.uu(),H=a.L.getVideoData().clientPlaybackNonce,R={crt:(R*1E3).toFixed(),cpn:H});T.Tu("queued",R);l!==0&&T.seekTo(l+.01,{uO:!0,Mf:3,hW:"videoqueuer_queued"});a.Z=new X7b(a.B,a.app.Qg(),a.T,m,a.app,y);m=a.Z;m.status.status!==Infinity&&(sy(m, 1),m.T.subscribe("internalvideodatachange",m.qh,m),m.L.subscribe("internalvideodatachange",m.qh,m),m.xv.Y().V("html5_gapless_use_format_info_fix")&&(m.T.subscribe("internalvideoformatchange",m.qh,m),m.L.subscribe("internalvideoformatchange",m.qh,m)),m.T.subscribe("mediasourceattached",m.qh,m),m.L.subscribe("statechange",m.vL,m),m.T.subscribe("newelementrequired",m.N5,m),m.qh());return a.j}; yxt=function(a){var l,m,T,y,R,H,b,M,d;g.J(function(A){switch(A.L){case 1:if(a.FO()||!a.j||!a.T)return A.return();a.J&&a.app.Qg().EJ(!0,!1);m=a.app.Y().V("html5_force_csdai_gapful_transition")&&((l=a.app.Qg())==null?void 0:l.getVideoData().isDaiEnabled());T=null;if(!a.Z||m){A.iT(2);break}g.LP(A,3);return g.z(A,rFP(a.Z),5);case 5:g.e7(A,2);break;case 3:T=y=g.OQ(A);case 2:if(!a.T)return A.return();g.$D.BD("vqsp",function(){a.app.X9(a.T)}); if(!a.T)return A.return();R=a.T.TE();a.app.Y().V("html5_gapless_seek_on_negative_time")&&R&&R.getCurrentTime()<-.01&&a.T.seekTo(0);g.$D.BD("vqpv",function(){a.app.playVideo()}); if(T||m)a.T?(H=T?T.message:"forced",(b=a.L)==null||b.Tu("gapfulfbk",{r:H}),a.T.GM(H)):(M=a.L)==null||M.Tu("gapsp",{});d=a.j;fY(a);d&&d.resolve();return A.return(Promise.resolve())}})}; fY=function(a,l){l=l===void 0?!1:l;if(a.L){if(a.K){var m=a.L;a.app.bT.removeEventListener(g.qm("vqueued"),a.C);m.removeCueRange(a.K)}a.L=null;a.K=null}a.Z&&(a.Z.status.status!==6&&(m=a.Z,m.status.status!==Infinity&&m.K!==1&&m.ag("Canceled")),a.Z=null);a.j=null;a.T&&!l&&a.T!==a.app.jW()&&a.T!==a.app.Qg()&&a.T.dispose();a.T&&l&&a.T.PZ();a.T=null;a.J=!1}; HEp=function(a){var l;return((l=a.Z)==null?void 0:l.currentVideoDuration)||-1}; qmp=function(a,l,m){if(a.i$())return"qie";if(a.T==null||a.T.FO()||a.T.getVideoData()==null)return"qpd";if(l.videoId!==a.T.f$())return"vinm";if(HEp(a)<=0)return"ivd";if(m!==1)return"upt";if((m=a.Z)==null)a=void 0;else if(m.getStatus().status!==5)a="niss";else if(o87(m.policy,m.T,m.L,m.Xx)!=null)a="pge";else{l=mYQ(m);a=l.Ex;var T=l.P3;l=g.PU(m.xv.Y().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var y=m.C+l;m.xv.Y().experiments.XO("html5_pseudogapless_shorts")&&(y=YVb(m).jP+l);m=iH(T.PY(), y);a=iH(a.PY(),y);a=!(l>0)||m&&a?null:"neb"}return a!=null?a:null}; bER=function(){g.Aj.call(this);var a=this;this.fullscreen=0;this.j=this.Z=this.pictureInPicture=this.T=this.L=this.inline=!1;this.K=function(){a.aY()}; mod(this.K);this.C=this.getVisibilityState(this.rL(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.FX(),this.wK(),this.zf(),this.hO())}; Rtt=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.FX()||a.wK()||a.zf()||a.hO())}; g.JG=function(a){g.k.call(this);this.aj=a;this.videoData=this.playerState=null}; nY=function(a,l){g.k.call(this);var m=this;this.data=[];this.Z=a||NaN;this.L=l||null;this.T=new g.aH(function(){B4(m);kD(m)}); g.w(this,this.T)}; me7=function(a){B4(a);return a.data.map(function(l){return l.value})}; B4=function(a){var l=(0,g.E)();a.data.forEach(function(m){m.expire0));(T=g.PU(l, "html5_cobalt_audio_write_ahead_ms"))&&iA("Media.AudioWriteDurationLocal",T);(T=m("html5_cobalt_enable_decode_to_texture"))&&iA("Media.PlayerConfiguration.DecodeToTexturePreferred",T?1:0);(a.bZ()||m("html5_log_cpu_info"))&&Uod();Error.stackTraceLimit=50;var y=g.PU(l,"html5_idle_rate_limit_ms");y&&Object.defineProperty(window,"requestIdleCallback",{value:function(R){return window.setTimeout(R,y)}}); wsz(a.K);G$p(m("html5_use_ump_request_slicer"));Jv5(m("html5_record_now"));m("html5_disable_streaming_xhr")&&(RT=!1);m("html5_byterate_constraints")&&(jR=!0);m("html5_use_non_active_broadcast_for_post_live")&&(TU=!0);m("html5_enable_encrypted_av1")&&(XI=!0);SFR(g.PU(a.experiments,"html5_sticky_duration_mos"));a.V("html5_estimate_live_partial_slice_duration")&&(TVt=!0)}; GKP=function(a,l){return a.slice(l.length).replace(/_[a-z]/g,function(m){return m.toUpperCase().replace("_","")}).replace("Dot",".")}; V17=function(a){for(var l={},m=g.c(Object.keys(a.experiments.flags)),T=m.next();!T.done;T=m.next())if(T=T.value,T.startsWith("cobalt_h5vcc"))if(T.startsWith("cobalt_h5vcc_string")){var y=GKP(T,"cobalt_h5vcc_string");T=HS(a.experiments,T);y&&T&&(l[y]=iA(y,T))}else T.startsWith("cobalt_h5vcc")&&(y=GKP(T,"cobalt_h5vcc"),T=g.PU(a.experiments,T),y&&T&&(l[y]=iA(y,T)));return l}; Ey=function(a,l,m,T,y){y=y===void 0?[]:y;g.k.call(this);this.aj=a;this.HF=l;this.segments=y;this.T=new Map}; pmt=function(a,l,m){g.Ip.call(this,m.Q6());this.QP=a;this.videoData=l}; ZER=function(a){this.end=this.start=a}; g.oz=function(){this.T=new Map;this.Z=new Map;this.L=new Map}; g.xD=function(a,l,m,T){g.k.call(this);var y=this;this.api=a;this.aj=l;this.playback=m;this.app=T;this.Kx=new g.oz;this.L=new Map;this.C=[];this.K=[];this.Z=new Map;this.wW=new Map;this.B=new Map;this.tM=null;this.SW=NaN;this.ZR=this.QO=null;this.uZ=new g.aH(function(){WO3(y,y.SW,y.QO||void 0)}); this.events=new g.BT(this);this.vF=15E3;this.qj=new g.aH(function(){y.hM=!0;y.playback.j9(y.vF);cx3(y);if(y.playback.getVideoData().WN()){var R;y.nx({togab:(R=y.jt)==null?void 0:R.identifier})}y.yu(!1)},this.vF); this.hM=!1;this.N=new Map;this.rb=[];this.jt=null;this.lZ=new Set;this.Cx=[];this.tN=[];this.JW=[];this.FU=[];this.T=void 0;this.HZ=0;this.St=!0;this.J=!1;this.AM=[];this.wb=new Set;this.wO=new Set;this.EG=new Set;this.Cn=0;this.Mj=new Set;this.Eg=0;this.j4=this.Ug=!1;this.C5=this.j="";this.lT=null;this.logger=new g.bw("dai");this.lM={oex:function(){return y.L}, J6b:function(){return y.C}, miK:function(){return y.Z}, Fgu:function(){return y.j}, TPt:function(R){y.onCueRangeEnter(y.L.get(R))}, i6O:function(R){y.onCueRangeExit(y.L.get(R))}, tET:function(R,H){y.L.set(R,H)}, dxj:function(R){y.C5=R}, VQ:function(){return y.VQ()}, eoK:function(R){return y.B.get(R)}, KgT:function(){return y.lT}}; this.playback.getPlayerType();this.playback.Yb(this);this.yg=this.aj.bZ();g.w(this,this.uZ);g.w(this,this.events);g.w(this,this.qj);this.events.W(this.api,g.qm("serverstitchedcuerange"),this.onCueRangeEnter);this.events.W(this.api,g.bl("serverstitchedcuerange"),this.onCueRangeExit);M1H(this.app.CH(),this.playback,!1)}; ehd=function(a,l,m,T,y,R,H,b,M){if(a.aj.V("html5_ignore_ads_after_noadresponse")&&M&&a.lZ.has(M))return Dm(a,{reason:"addafternoad",cueid:M}),"";M=LO7(a,R,R+y);a.hM&&a.nx({adaftto:1});m||a.nx({missadcon:1,enter:R,len:y,aid:b});a.Ij&&!a.Ij.UW&&(a.Ij.UW=b);a.j4&&a.nx({adfbk:1,enter:R,len:y,aid:b});var d=a.playback;H=H===void 0?R+y:H;R===H&&!y&&a.aj.V("html5_allow_zero_duration_ads_on_timeline")&&a.nx({attl0d:1});R>H&&Dm(a,{reason:"enterTime_greater_than_return",HF:R,cN:H});var A=d.bM()*1E3;Rd&&Dm(a,{reason:"parent_return_greater_than_content_duration",cN:H,Cet:d});d=null;A=g.KD(a.K,{cN:R},function(P,G){return P.cN-G.cN}); A>=0&&(d=a.K[A],d.cN>R&&NBt(a,l.video_id||"",R,H,d));if(M&&d)for(A=0;A.5&&a.nx({ttdtb:1,delta:H,cpn:y.cpn,enter:l.adCpn,exit:m.adCpn,seek:T,skip:R});a.api.V("html5_ssdai_enable_media_end_cue_range")&&(!T&&!R&&m.isAd&&m.adCpn?a.api.yF(m.adCpn):(T||R)&&a.nx({mecr:0,seek:T,skip:R}));if(l.isAd&&m.isAd){y=!!R;if(l.adCpn&&m.adCpn){var b=a.Z.get(l.adCpn);var M=a.Z.get(m.adCpn)}y?a.nx({igtransskip:1,enter:l.adCpn,exit:m.adCpn,seek:T,skip:R}):Uy(a,M,b,m.Su,l.Su,T,y)}else if(!l.isAd&&m.isAd){a.C5= y.cpn;a.tK(y.cpn);a.api.publish("serverstitchedvideochange");b=Xa(a,"a2c");a.nx(b);a.Cn=0;if(b=m.ou)a.HZ=b.end;var d;m.adCpn&&(d=a.Z.get(m.adCpn));d&&a.playback.OJ(d,y,m.Su,l.Su,T,!!R)}else if(l.isAd&&!m.isAd){var A;l.adCpn&&(A=a.Z.get(l.adCpn));A&&(a.HZ=0,a.C5=A.cpn,a.tK(A.cpn),YD(a,A),d=Xa(a,"c2a",A),a.nx(d),a.Cn=1,a.playback.OJ(y,A,m.Su,l.Su,T,!!R))}}; aa=function(a,l,m){m=m===void 0?0:m;var T=g.KD(a.K,{HF:(l+m)*1E3},function(b,M){return b.HF-M.HF}); T=T<0?(T+2)*-1:T;if(T>=0)for(var y=l*1E3,R=T;R<=T+1&&R=H.HF-m*1E3&&y<=H.cN+m*1E3)return{sO:H,tC:l}}return{sO:void 0,tC:l}}; OEw=function(a,l){var m="";(l=hhH(a,l))&&(m=l.getId());return m?a.Z.get(m):void 0}; hhH=function(a,l){if(a.C5){var m=a.L.get(a.C5);if(m&&m.start-200<=l&&m.end+200>=l)return m}a=g.c(a.L.values());for(m=a.next();!m.done;m=a.next())if(m=m.value,m.start<=l&&m.end>=l)return m}; WO3=function(a,l,m){var T=a.ZR||a.app.Qg().getPlayerState();lN(a,!0);a.playback.seekTo(l,m);a=a.app.Qg();l=a.getPlayerState();T.isOrWillBePlaying()&&!l.isOrWillBePlaying()?a.playVideo():T.isPaused()&&!l.isPaused()&&a.pauseVideo()}; lN=function(a,l){a.SW=NaN;a.QO=null;a.uZ.stop();a.tM&&l&&a.tM.yl();a.ZR=null;a.tM=null}; KO5=function(a){var l=l===void 0?-1:l;var m=m===void 0?Infinity:m;for(var T=[],y=g.c(a.K),R=y.next();!R.done;R=y.next())R=R.value,(R.HFm)&&T.push(R);a.K=T;T=g.c(a.L.values());for(y=T.next();!y.done;y=T.next())y=y.value,y.start>=l&&y.end<=m&&(a.playback.removeCueRange(y),a.L.delete(y.getId()),a.nx({rmAdCR:1}));T=aa(a,l/1E3);l=T.sO;T=T.tC;if(l&&(T=T*1E3-l.HF,y=l.HF+T,l.durationMs=T,l.cN=y,T=a.L.get(l.cpn))){y=g.c(a.C);for(R=y.next();!R.done;R=y.next())R=R.value,R.start===T.end?R.start=l.HF+ l.durationMs:R.end===T.start&&(R.end=l.HF);T.start=l.HF;T.end=l.HF+l.durationMs}if(l=aa(a,m/1E3).sO){var H;T="playback_timelinePlaybackId_"+l.XU+"_video_id_"+((H=l.videoData)==null?void 0:H.videoId)+"_durationMs_"+l.durationMs+"_enterTimeMs_"+l.HF+"_parentReturnTimeMs_"+l.cN;a.Ft("Invalid_clearEndTimeMs_"+m+"_that_falls_during_"+T+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; zhz=function(a){a.Kx.clearAll();a.L.clear();a.C=[];a.K=[];a.Z.clear();a.wW.clear();a.B.clear();a.N.clear();a.rb=[];a.jt=null;a.lZ.clear();a.Cx=[];a.tN=[];a.JW=[];a.FU=[];a.AM=[];a.wb.clear();a.wO.clear();a.EG.clear();a.Mj.clear();a.hM=!1;a.T=void 0;a.HZ=0;a.St=!0;a.J=!1;a.Cn=0;a.Eg=0;a.Ug=!1;a.j4=!1;a.j="";a.qj.isActive()&&uO(a)}; $Yp=function(a,l,m,T,y,R){if(!a.j4)if(g.vEt(a,m))a.nx({gdu:"undec",seg:m,itag:y});else if(l=mA(a,l,m,T,R),!(a.playback.getVideoData().WN()&&(l==null?0:l.PC)))return l}; mA=function(a,l,m,T,y){var R=a.N.get(m);if(!R){if(R=sJt(a,l))return R;l=a.Em(m-1,T!=null?T:2);if(y)return a.nx({misscue:y,sq:m,type:T,prevsstate:l==null?void 0:l.DU,prevrecord:a.N.has(m-1)}),a.N.get(m-1);if((l==null?void 0:l.DU)===2)return a.nx({adnf:1,sq:m,type:T,prevrecord:a.N.has(m-1)}),a.N.get(m-1)}return R}; sJt=function(a,l){l+=a.jc();if(a.playback.getVideoData().WN())a:{var m=1;m=m===void 0?0:m;var T=l*1E3;a=g.c(a.K);for(var y=a.next();!y.done;y=a.next()){y=y.value;var R=y.UZ?y.UZ*1E3:y.HF;if(T>=y.HF-m*1E3&&T<=R+y.durationMs+m*1E3){T={sO:y,tC:l};break a}}T={sO:void 0,tC:l}}else T=aa(a,l),((m=T)==null?0:m.sO)||(T=aa(a,l,1));var H;return(H=T)==null?void 0:H.sO}; Sm3=function(a,l){l=l===void 0?"":l;var m=ij(l)||void 0;if(!l||!m){var T;a.nx({adcfg:(T=l)==null?void 0:T.length,dcfg:m==null?void 0:m.length})}return m}; foz=function(a){if(a.AM.length)for(var l=g.c(a.AM),m=l.next();!m.done;m=l.next())a.onCueRangeExit(m.value);l=g.c(a.L.values());for(m=l.next();!m.done;m=l.next())a.playback.removeCueRange(m.value);l=g.c(a.C);for(m=l.next();!m.done;m=l.next())a.playback.removeCueRange(m.value);a.L.clear();a.C=[];a.Kx.clearAll();a.T||(a.St=!0)}; Uy=function(a,l,m,T,y,R,H){if(l&&m){a.C5=m.cpn;a.tK(m.cpn);YD(a,m);var b=Xa(a,"a2a",m);a.nx(b);a.Cn++;a.playback.OJ(l,m,T||0,y||0,!!R,!!H)}else a.nx({misspbkonadtrans:1,enter:(m==null?void 0:m.cpn)||"",exit:(l==null?void 0:l.cpn)||"",seek:R,skip:H})}; BBP=function(a,l,m,T){if(T)for(T=0;Tm){var R=y.end;y.end=l;JxH(a,m,R)}else if(y.start>=l&&y.startm)y.start=m;else if(y.end>l&&y.end<=m&&y.start=l&&y.end<=m){a.playback.removeCueRange(y);if(a.AM.includes(y))a.onCueRangeExit(y);a.C.splice(T,1);continue}T++}else JxH(a,l,m)}; JxH=function(a,l,m){l=FOP(l,m);m=!0;g.JI(a.C,l,function(H,b){return H.start-b.start}); for(var T=0;T0){var y=a.C[T],R=a.C[T-1];if(Math.round(R.end/1E3)>=Math.round(y.start/1E3)){R.end=y.end;y!==l?a.playback.removeCueRange(y):m=!1;a.C.splice(T,1);continue}}T++}if(m)for(a.playback.addCueRange(l),l=a.playback.Qh("serverstitchedcuerange",36E5),l=g.c(l),m=l.next();!m.done;m=l.next())a.L.delete(m.value.getId())}; TB=function(a,l,m){if(m===void 0||!m){m=g.c(a.rb);for(var T=m.next();!T.done;T=m.next()){T=T.value;if(l>=T.start&&l<=T.end)return;if(l===T.end+1){T.end+=1;return}}a.rb.push(new ZER(l))}}; g.vEt=function(a,l){a=g.c(a.rb);for(var m=a.next();!m.done;m=a.next())if(m=m.value,l>=m.start&&l<=m.end)return!0;return!1}; yw=function(a,l,m){var T;if(T=a.playback.getVideoData().WN()||a.aj.V("html5_ssdai_extent_last_unfinished_ad_cue_range"))T=(T=a.Z.get(l))&&T.iS?(a=a.B.get(T==null?void 0:T.iS))&&a.slice(-1)[0].cpn===l:!1;return T&&m===2?1E3:0}; NBt=function(a,l,m,T,y){var R;l={reason:"overlapping_playbacks",i3z:l,HF:m,cN:T,UiL:y.XU,O6T:((R=y.videoData)==null?void 0:R.videoId)||"",sib:y.durationMs,Z6g:y.HF,jit:y.cN};Dm(a,l)}; Dm=function(a,l,m){a.playback.Uu(l,m)}; kK7=function(a,l){var m=[];a=a.B.get(l);if(!a)return[];a=g.c(a);for(l=a.next();!l.done;l=a.next())l=l.value,l.cpn&&m.push(l.cpn);return m}; nEQ=function(a,l,m){var T=0;a=a.B.get(m);if(!a)return-1;a=g.c(a);for(m=a.next();!m.done;m=a.next()){if(m.value.cpn===l)return T;T++}return-1}; wmw=function(a,l){var m=0;a=a.B.get(l);if(!a)return 0;a=g.c(a);for(l=a.next();!l.done;l=a.next())l=l.value,l.durationMs!==0&&l.cN!==l.HF&&m++;return m}; IoH=function(a,l,m){var T=!1;if(m&&(m=a.B.get(m))){m=g.c(m);for(var y=m.next();!y.done;y=m.next())y=y.value,y.durationMs!==0&&y.cN!==y.HF&&(y=y.cpn,l===y&&(T=!0),T&&!a.wO.has(y)&&(a.nx({decoratedAd:y}),a.wO.add(y)))}}; cx3=function(a){a.yg&&a.nx({adf:"0_"+((new Date).getTime()/1E3-a.Eg)+"_isTimeout_"+a.hM})}; LO7=function(a,l,m){if(a.Cx.length)for(var T=g.c(a.Cx),y=T.next(),R={};!y.done;R={Rb:void 0},y=T.next()){R.Rb=y.value;y=R.Rb.startSecs*1E3;var H=R.Rb.Da*1E3+y;if(l>y&&ly&&m0?a:0}else a.VQ().videoData.wW=a.playback.getCurrentTime()}; uo5=function(a,l,m,T){g.k.call(this);var y=this;this.api=a;this.aj=l;this.T=m;this.app=T;this.K=new Map;this.L=[];this.Z=this.B=null;this.Ij=NaN;this.C=this.j=this.N=null;this.J=new g.aH(function(){DYw(y,y.Ij,y.N||void 0)}); this.lT=[];this.jt=new g.aH(function(){var R=y.lT.pop();if(R){var H=R.XU,b=R.playerVars;R=R.playerType;b&&(b.prefer_gapless=!0,y.api.preloadVideoByPlayerVars(b,R,NaN,"",H),y.lT.length&&g.l0(y.jt,4500))}}); this.events=new g.BT(this);this.lM={Stj:function(){return y.L}}; this.T.getPlayerType();g.w(this,this.J);g.w(this,this.jt);g.w(this,this.events);this.events.W(this.api,g.qm("childplayback"),this.onCueRangeEnter);this.events.W(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.W(this.api,"presentingplayerstatechange",this.Nw)}; rxl=function(a,l,m,T,y,R){var H=l.cpn,b=l.docid||l.video_id||l.videoId||l.id,M=a.T;R=R===void 0?y+T:R;if(y>R)return Hu(a,"enterAfterReturn enterTimeMs="+y+" is greater than parentReturnTimeMs="+R.toFixed(3),H,b),"";var d=M.bM()*1E3;if(yd)return M="returnAfterDuration parentReturnTimeMs="+R.toFixed(3)+" is greater than parentDurationMs="+d+". And timestampOffset in seconds is "+ M.YX(),Hu(a,M,H,b),"";d=null;for(var A=g.c(a.L),P=A.next();!P.done;P=A.next()){P=P.value;if(y>=P.HF&&yP.HF)return Hu(a,"overlappingReturn",H,b),"";if(R===P.HF)return Hu(a,"outOfOrder",H,b),"";y===P.cN&&(d=P)}H="cs_childplayback_"+XmP++;b={ou:qG(T,!0),Xx:Infinity,target:null};var G={XU:H,playerVars:l,playerType:m,durationMs:T,HF:y,cN:R,kB:b};a.L=a.L.concat(G).sort(function(L,N){return L.HF-N.HF}); d?Ymd(a,d,{ou:qG(d.durationMs,!0),Xx:d.kB.Xx,target:G}):(l={ou:qG(y,!1),Xx:y,target:G},a.K.set(l.ou,l),M.addCueRange(l.ou));l=!0;if(a.T===a.app.Qg()&&(M=M.getCurrentTime()*1E3,M>=G.HF&&Ml)break;if(R>l)return{sO:T,tC:l-y};m=R-T.cN/1E3}return{sO:null,tC:l-m}}; DYw=function(a,l,m){m=m===void 0?{}:m;var T=a.C||a.app.Qg().getPlayerState();MG(a,!0);l=isFinite(l)?l:a.T.oy();var y=Tcz(a,l);l=y.tC;var R=(y=y.sO)&&!bN(a,y)||!y&&a.T!==a.app.Qg(),H=l*1E3;H=a.Z&&a.Z.start<=H&&H<=a.Z.end;!R&&H||gA(a);y?UYt(a,y,l,m,T):yX3(a,l,m,T)}; yX3=function(a,l,m,T){var y=a.T;y!==a.app.Qg()&&a.app.Hq();y.seekTo(l,Object.assign({},{hW:"application_timelinemanager"},m));RzQ(a,T)}; UYt=function(a,l,m,T,y){var R=bN(a,l);if(!R){l.playerVars.prefer_gapless=!0;a.aj.V("html5_enable_ssap_entity_id")&&(l.playerVars.cached_load=!0);var H=new g.Dj(a.aj,l.playerVars);H.XU=l.XU;a.api.VN(H,l.playerType)}H=a.app.Qg();R||H.addCueRange(l.kB.ou);H.seekTo(m,Object.assign({},{hW:"application_timelinemanager"},T));RzQ(a,y)}; RzQ=function(a,l){a=a.app.Qg();var m=a.getPlayerState();l.isOrWillBePlaying()&&!m.isOrWillBePlaying()?a.playVideo():l.isPaused()&&!m.isPaused()&&a.pauseVideo()}; MG=function(a,l){a.Ij=NaN;a.N=null;a.J.stop();a.j&&l&&a.j.yl();a.C=null;a.j=null}; bN=function(a,l){a=a.app.Qg();return!!a&&a.getVideoData().XU===l.XU}; HXl=function(a){var l=a.L.find(function(y){return bN(a,y)}); if(l){var m=a.app.Qg();gA(a);var T=new g.qz(8);l=m03(a,l)/1E3;yX3(a,l,{},T);m.Tu("forceParentTransition",{childPlayback:1});a.T.Tu("forceParentTransition",{parentPlayback:1})}}; bXP=function(a,l,m){l=l===void 0?-1:l;m=m===void 0?Infinity:m;for(var T=l,y=m,R=g.c(a.K),H=R.next();!H.done;H=R.next()){var b=g.c(H.value);H=b.next().value;b=b.next().value;b.Xx>=T&&b.target&&b.target.cN<=y&&(a.T.removeCueRange(H),a.K.delete(H))}T=l;y=m;R=[];H=g.c(a.L);for(b=H.next();!b.done;b=H.next())if(b=b.value,b.HF>=T&&b.cN<=y){var M=a;M.B===b&&gA(M);bN(M,b)&&M.app.Hq()}else R.push(b);a.L=R;T=Tcz(a,l/1E3);l=T.sO;T=T.tC;l&&(T*=1E3,q17(a,l,T,l.cN===l.HF+l.durationMs?l.HF+T:l.cN));(l=Tcz(a,m/1E3).sO)&& Hu(a,"Invalid clearEndTimeMs="+m+" that falls during playback={timelinePlaybackId="+(l.XU+" video_id="+l.playerVars.video_id+" durationMs="+l.durationMs+" enterTimeMs="+l.HF+" parentReturnTimeMs="+l.cN+"}.Child playbacks can only have duration updated not their start."))}; q17=function(a,l,m,T){l.durationMs=m;l.cN=T;T={ou:qG(m,!0),Xx:m,target:null};Ymd(a,l,T);bN(a,l)&&a.app.Qg().getCurrentTime()*1E3>m&&(l=m03(a,l)/1E3,m=a.app.Qg().getPlayerState(),yX3(a,l,{},m))}; Hu=function(a,l,m,T){a.T.Tu("timelineerror",{e:l,cpn:m?m:void 0,videoId:T?T:void 0})}; MT7=function(a){a&&a!=="web"&&got.includes(a)}; iN=function(){g.k.call(this);this.T=new nY(5,null);g.w(this,this.T);this.L=new nY(15,null);g.w(this,this.L)}; j45=function(a,l){return l?!!a.T.get(l):!1}; iXb=function(a,l){a.dataset.version=l}; AX7=function(a){g.x.call(this,{U:"div",uT:["html5-video-player"],G:{tabindex:a.Y().disableOrganicUi?"":"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},X:[{U:"div",S:g.rP.VIDEO_CONTAINER,G:{"data-layer":"0"}}]});var l=this;this.app=a;this.Mu=this.OL(g.rP.VIDEO_CONTAINER);this.fZ=new g.Jq(0,0,0,0);this.Gx=null;this.NQ=new g.Jq(0,0,0,0);this.tG=this.nD=this.N1=NaN;this.aF=this.G0=this.e3=this.qJ=!1;this.Up=NaN;this.W0=!1;this.jG=null;this.VG=function(){l.element.focus({preventScroll:!0})}; this.S_=function(){l.app.bT.publish("playerUnderlayVisibilityChange","visible");l.Gx.classList.remove(g.rP.VIDEO_CONTAINER_TRANSITIONING);l.Gx.removeEventListener(jv,l.S_);l.Gx.removeEventListener("transitioncancel",l.S_)}; this.PD=this.iA=!1;var m=this.element.addEventListener,T=this.element.removeEventListener;this.addEventListener=function(R,H,b){m.apply(l.element,[R,H,b])}; this.removeEventListener=function(R,H,b){T.apply(l.element,[R,H,b])}; var y=a.Y();y.transparentBackground&&this.qL("ytp-transparent");y.controlsType==="0"&&this.qL("ytp-hide-controls");g.M$(this.element,"ytp-exp-bottom-control-flexbox");g.M$(this.element,"ytp-modern-caption");y.V("enable_new_paid_product_placement")&&!g.mS(y)&&g.M$(this.element,"ytp-exp-ppp-update");y.V("html5_enable_ssap")&&g.M$(this.element,"ytp-ssap");g.M$(this.element,"ytp-livebadge-color");if(y.V("delhi_modern_web_player"))switch(g.M$(this.element,"ytp-delhi-modern"),HS(y.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.M$(this.element, "ytp-delhi-modern-with-luminosity");break;case "difference":g.M$(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.M$(this.element,"ytp-delhi-modern-with-exclusion")}iXb(this.element,d0H(a));this.z6=!1;this.H6=new g.Sk(NaN,NaN);jCt(this);this.W(a.bT,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; jCt=function(a){function l(){a.Gx&&dA(a);jK(a)!==a.W0&&a.resize()} function m(H,b){a.xW(H,b)} function T(H){H.getVideoData()&&a.updateVideoData(H.getVideoData())} function y(){a.NQ=new g.Jq(0,0,0,0);a.fZ=new g.Jq(0,0,0,0)} var R=a.app.bT;R.addEventListener("initializingmode",y);R.addEventListener("videoplayerreset",T);R.addEventListener("videodatachange",m);R.addEventListener("presentingplayerstatechange",l);a.addOnDisposeCallback(function(){R.removeEventListener("initializingmode",y);R.removeEventListener("videoplayerreset",T);R.removeEventListener("videodatachange",m);R.removeEventListener("presentingplayerstatechange",l)})}; G3d=function(a){var l=a.app.Qg(),m=l=l?l.getVideoData():null;if(l==null?0:g.US(l))m=a.app.bT.getVideoData();if(m){if(g.zj(m)||g.v9(m)||g.$w(m))return 16/9;if(H9(m)&&m.Z.T)return a=m.Z.videoInfos[0].video,PCl(a.width,a.height)}return(a=a.Gx)?PCl(a.videoWidth,a.videoHeight):16/9}; VTd=function(a,l,m,T){var y=m,R=PCl(l.width,l.height);a.qJ?y=mR?{width:l.width,height:l.width/y,aspectRatio:y}:yy?a.width=a.height*m:mM;if(jK(a)){var d=G3d(a);var A=isNaN(d)||g.U9||lz&&g.Nr||M;Xz&&!g.OJ(601)?d=y.aspectRatio:A=A||R.controlsType==="3";A?M?(A=R.V("place_shrunken_video_on_left_of_player")?16:a.getPlayerSize().width-l.width-16,d=Math.max((a.getPlayerSize().height-l.height)/2,0),A=new g.Jq(A,d,l.width, l.height),a.Gx.style.setProperty("border-radius","12px")):A=new g.Jq(0,0,l.width,l.height):(m=y.aspectRatio/d,A=new g.Jq((l.width-y.width/m)/2,(l.height-y.height)/2,y.width/m,y.height),m===1&&g.Nr&&(d=A.width-l.height*d,d>0&&(A.width+=d,A.height+=d)));g.AM(a.element,"ytp-fit-cover-video",Math.max(A.width-y.width,A.height-y.height)<1);if(b||a.z6)a.Gx.style.display="";a.W0=!0}else{A=-l.height;Xz?A*=window.devicePixelRatio:g.Ti&&(A-=window.screen.height);A=new g.Jq(0,A,l.width,l.height);if(b||a.z6)a.Gx.style.display= "none";a.W0=!1}BP(a.NQ,A)||(a.NQ=A,g.kN(R)?(a.Gx.style.setProperty("width",A.width+"px","important"),a.Gx.style.setProperty("height",A.height+"px","important")):g.Y1(a.Gx,A.getSize()),T=new g.$5(A.left,A.top),g.x1(a.Gx,Math.round(T.x),Math.round(T.y)),T=!0);l=new g.Jq((l.width-y.width)/2,(l.height-y.height)/2,y.width,y.height);BP(a.fZ,l)||(a.fZ=l,T=!0);g.nA(a.Gx,"transform",m===1?"":"scaleX("+m+")");H&&M!==a.G0&&(M&&(a.Gx.addEventListener(jv,a.S_),a.Gx.addEventListener("transitioncancel",a.S_),a.Gx.classList.add(g.rP.VIDEO_CONTAINER_TRANSITIONING)), a.G0=M,a.app.bT.publish("playerUnderlayVisibilityChange",a.G0?"transitioning":"hidden"));return T}; Wxt=function(a){a.iA=!a.iA;a.PD=!0;a.element.classList.toggle("ytp-retro-player",a.iA);a.resize();a.PD=!1;a.app.bT.Pz("onRetroModeChanged",a.iA)}; cXd=function(){this.csn=g.KU();this.clientPlaybackNonce=null;this.elements=new Set;this.Z=new Set;this.T=new Set;this.L=new Set}; Lxd=function(a){if(a.csn!==g.KU())if(a.csn==="UNDEFINED_CSN")a.csn=g.KU();else{var l=g.KU(),m=g.Os();if(l&&m){a.csn=l;for(var T=g.c(a.elements),y=T.next();!y.done;y=T.next())(y=y.value.visualElement)&&y.isClientVe()&&l&&m&&(g.Q7("combine_ve_grafts")?fo(sa(),y,m):g.me(g.rE)(void 0,l,m,y))}if(l)for(a=g.c(a.T),m=a.next();!m.done;m=a.next())(m=m.value.visualElement)&&m.isClientVe()&&g.bT(l,m)}}; g.Pu=function(a,l,m,T){g.k.call(this);var y=this;this.logger=new g.bw("App");this.h3=this.uS=!1;this.v8={};this.zj=[];this.CI=!1;this.DI=null;this.intentionalPlayback=!1;this.Bt=!0;this.Co=!1;this.yj=this.wj=this.QH=null;this.IM=!0;this.mediaElement=this.o0=null;this.LC=NaN;this.tA=!1;this.f5=this.SZ=this.tb=this.screenLayer=this.playlist=null;this.lR=[];this.X2=0;this.lM={CH:function(){return y.uM}, efM:function(){return y.tb}, AP8:function(){}}; this.logger.debug("constructor begin");this.config=IKl(l||{});this.webPlayerContextConfig=m;m$b();l=this.config.args||{};this.aj=new xN(l,m,m?m.canaryState:this.config.assets.player_canary_state,T,this);g.w(this,this.aj);P8Q(this.aj);T=V17(this.aj);this.aj.bZ()&&A3(this,"h5vcc",T);this.aj.experiments.XO("jspb_serialize_with_worker")&&fCQ();this.aj.experiments.XO("gzip_gel_with_worker")&&hyz();this.aj.L&&!Nc3&&(window.addEventListener(h$?"touchstart":"click",E8H,{capture:!0,passive:!0}),Nc3=!0);this.V("html5_onesie")&& (this.DC=new HQ(this.aj),g.w(this,this.DC));this.yK=qp(sl(this.aj)&&!0,l.enablesizebutton);this.S8=qp(!1,l.player_wide);this.visibility=new bER;g.w(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.Z2(qp(!1,l.player_wide));this.uS=qp(!1,l.external_list);this.events=new g.BT(this);g.w(this,this.events);this.V("start_client_gcf")&&(SL(kO(),{Qm:de,iQ:U$7()}),this.qk=kO().resolve(de),lfl(this.qk));this.nfT=new AB;g.w(this,this.nfT);this.yh=new cXd;T=new Pi;this.bT=new g.hB(this,T); g.w(this,this.bT);this.template=new AX7(this);g.w(this,this.template);this.appState=1;this.Yd=QCd(this);g.w(this,T);T={};this.BG=(T.internalvideodatachange=this.Qjz,T.playbackready=this.pzO,T.playbackstarted=this.Rjt,T.statechange=this.YLg,T);this.KF=new gd(this.bT);this.r7=tTQ(this);T=this.V("html5_load_wasm");l=this.V("html5_allow_asmjs");T&&ezQ||l?(this.aj.wO=VKw(this.r7,l),Wc(Zh(this.aj.wO,function(R){y.aj.lm=R;A3(y,"wasm",{a:R.T})}),function(R){g.nU(R); A3(y,"wasm",{e:"message"in R&&R.message||R.toString()||""})})):T&&!ezQ&&A3(this,"wasm",{e:"unavailable"}); this.CE=new FUp(this.aj,this.r7);this.bT.publish("csiinitialized");T=10;g.OF(this.aj)&&(T=3);l1(this.aj)&&(T=g.PU(this.aj.experiments,"tvhtml5_unplugged_preload_cache_size"));this.uM=new g.Iz(this.bT,T);T=FxR(this);this.uM.S9(T);hzp(this);T={};this.GI=(T.airplayactivechange=this.dtK,T.airplayavailabilitychange=this.XFx,T.beginseeking=this.rNT,T.sabrCaptionsDataLoaded=this.sf8,T.endseeking=this.z4L,T.internalAbandon=this.cNu,T.internalaudioformatchange=this.MWL,T.internalvideodatachange=this.qgL,T.internalvideoformatchange= this.DNK,T.liveviewshift=this.yNt,T.playbackstalledatstart=this.iRz,T.progresssync=this.TOL,T.onAbnormalityDetected=this.HEg,T.onSnackbarMessage=this.ORt,T.onLoadProgress=this.NWO,T.SEEK_COMPLETE=this.ZRT,T.SEEK_TO=this.jfL,T.onVideoProgress=this.Evj,T.onLoadedMetadata=this.nXj,T.onAutoplayBlocked=this.PZO,T.onPlaybackPauseAtStart=this.vvM,T.playbackready=this.ITx,T.statechange=this.jL,T.newelementrequired=this.ZZ,T.heartbeatparams=this.Gxx,T.videoelementevent=this.hAj,T.drmoutputrestricted=this.gXt, T.signatureexpired=this.UNO,T.nonfatalerror=this.aT8,T.reloadplayer=this.LL8,T);this.WB=new g.BT(this);g.w(this,this.WB);this.JC=new iN;g.w(this,this.JC);this.gQ=this.iH=-1;this.e9=new g.aH(this.template.resize,16,this.template);g.w(this,this.e9);this.QP=new uo5(this.bT,this.aj,this.jW(),this);this.h9=new Ey(this.aj);this.XX=new SU(this);g.w(this,this.XX);this.eh=new zn(this);g.w(this,this.eh);MT7(this.aj.T.c);this.events.W(this.bT,g.qm("appapi"),this.WNt);this.events.W(this.bT,g.bl("appapi"),this.JM8); this.events.W(this.bT,g.qm("appprogressboundary"),this.FLt);this.events.W(this.bT,g.bl("applooprange"),this.AD);this.events.W(this.bT,"presentingplayerstatechange",this.Nw);this.events.W(this.bT,"resize",this.RAN);this.template.DK(g.B(EJ(document,a)));this.events.W(this.bT,"offlineslatestatechange",this.pFM);this.events.W(this.bT,"sabrCaptionsTrackChanged",this.rWN);this.events.W(this.bT,"sabrCaptionsBufferedRangesUpdated",this.PMg);this.r7.D.Y().Ia&&Qm(this.r7,"offline");this.aj.Mj&&g.AO("ux",g.Oy); a=g.PU(this.aj.experiments,"html5_defer_fetch_att_ms");this.PL=new g.aH(this.L1u,a,this);g.w(this,this.PL);this.vY().Q1()&&(g.nZ()&&this.vY().lT.push("remote"),OXl(this));this.CE.tick("fs");Kx7(this);this.aj.Mj&&Qm(this.r7,"ux",!0);g.vS(this.r7.D.Y())&&Qm(this.r7,"embed");this.V("web_player_sentinel_is_uniplayer")||g.nU(new g.YH("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.V("web_player_sentinel_yt_experiments_sync");T=g.Q7("web_player_sentinel_yt_experiments_sync"); a!==T&&g.nU(new g.YH("b/195699950",{yt:a,player:T}));m||g.nU(new g.YH("b/179532961"));this.tR=zzz(this);if(m=g.PU(this.aj.experiments,"html5_block_pip_safari_delay"))this.vc=new g.aH(this.jg,m,this),g.w(this,this.vc);JR=this.aj.wW;m=g.PU(this.aj.experiments,"html5_performance_impact_profiling_timer_ms");m>0&&(this.Qo=new g.n1(m),g.w(this,this.Qo),this.events.W(this.Qo,"tick",function(){y.wS&&vop.Ga("apit",y.wS);y.wS=vop.h7()})); this.bT.publish("applicationInitialized");this.logger.debug("constructor end")}; zzz=function(a){function l(m){m.stack&&m.stack.indexOf("player")!==-1&&a.Qg().OS(m)} wE.subscribe("handleError",l);at.push(l);return function(){wE.unsubscribe("handleError",l);var m=at.indexOf(l);m!==-1&&at.splice(m,1)}}; FxR=function(a){var l=new g.Dj(a.aj,a.config.args);a.bT.publish("initialvideodatacreated",l);return GB(a,1,l,!1)}; hzp=function(a){var l=a.jW(),m=l.setPlaybackRate;if(a.aj.j)var T=1;else T=Number(g.BW("yt-player-playback-rate"))||1,T=$0H(a,T);m.call(l,T);l.H7(a.BG,a);l.jZ()}; tTQ=function(a){var l="",m=d0H(a);m.indexOf("//")===0&&(m=a.aj.protocol+":"+m);var T=m.lastIndexOf("/base.js");T!==-1&&(l=m.substring(0,T+1));if(m=Error().stack)if(m=m.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))m=m[1],m.includes(l)||g.nU(Error("Player module URL mismatch: "+(m+" vs "+l+".")));l=new ar7(a.bT,l);sCt(a,l);return l}; sCt=function(a,l){var m={};m=(m.destroyed=function(){a.onApiChange()},m); l.Z=m}; QCd=function(a){if(a.aj.storeUserVolume){a=g.BW("yt-player-volume")||{};var l=a.volume;a={volume:isNaN(l)?100:g.Km(Math.floor(l),0,100),muted:!!a.muted}}else a={volume:100,muted:a.aj.mute};return a}; Vw=function(a){a.mediaElement=a.aj.deviceIsAudioOnly?new g.oZ(g.lK("AUDIO")):KY.pop()||new g.oZ(g.lK("VIDEO"));g.w(a,a.mediaElement);a.Qg().setMediaElement(a.mediaElement);try{a.aj.Eg?(a.SZ&&a.events.DT(a.SZ),a.SZ=a.events.W(a.mediaElement,"volumechange",a.bEK)):(a.mediaElement.a7(a.Yd.muted),a.mediaElement.setVolume(a.Yd.volume/100))}catch(y){a.ag("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(y&&typeof y==="object"&&"message"in y&&typeof y.message==="string"&&y.message.replace(/[;:,]/g, "_")));return}g.$H(a.WB);S13(a);var l=a.template,m=a.mediaElement.hN();l.Gx=m;l.aF=!1;l.Gx.parentNode||Rj(l.Mu,l.Gx,0);l.NQ=new g.Jq(0,0,0,0);ZXt(l);dA(l);m=l.Gx;g.M$(m,"video-stream");g.M$(m,g.rP.MAIN_VIDEO);var T=l.app.Y();T.JV&&m.setAttribute("data-no-fullscreen","true");T.V("html5_local_playsinline")?"playsInline"in vT()&&(m.playsInline=!0):T.y5&&(m.setAttribute("webkit-playsinline",""),m.setAttribute("playsinline",""));T.l3&&l.Gx&&l.W(m,"click",m.play,m);try{a.mediaElement.activate()}catch(y){a.ag("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(y&&typeof y==="object"&&"message"in y&&typeof y.message==="string"&&y.message.replace(/[;:,]/g,"_")))}}; JXb=function(a){if(!fTP(a)){var l=a.jW().TE();l&&(l=l.YD(),l instanceof Promise&&l.catch(function(){})); pt(a,Ps(a.getPlayerStateObject()))}}; S13=function(a){var l=a.mediaElement;fw()?a.WB.W(l,"webkitpresentationmodechanged",a.zA8):window.document.pictureInPictureEnabled&&(a.WB.W(l,"enterpictureinpicture",function(){a.uo(!0)}),a.WB.W(l,"leavepictureinpicture",function(){a.uo(!1)})); ai&&(a.WB.W(l,"webkitbeginfullscreen",function(){a.tE(3)}),a.WB.W(l,"webkitendfullscreen",function(){a.tE(0)}))}; BcR=function(a,l){var m=l.getPlayerType(),T=a.uM.Z[m]||null;l!==a.jW()&&l!==T&&(T==null||T.dispose(),a.uM.Z[m]=l)}; k3w=function(a,l){l=l===void 0?!0:l;a.logger.debug("start clear presenting player");var m;if(m=a.f5){m=a.f5;var T=a.mediaElement;m=!!T&&T===m.mediaElement}m&&(a.oa(),Vw(a));m=a.Qg();m.oa(!l);m.YE(a.GI,a);m.getPlayerType()!==1&&m.dispose();l=a.uM;l.L=l.T;CY(l);a.logger.debug("finish clear presenting player")}; g.now=function(a,l,m,T){var y=a.CE;l===2&&(y=new FUp(a.aj));return new g.T_(a.aj,l,y,a.template,function(R,H,b){a.bT.publish(R,H,b)},function(){return a.bT.getVisibilityState()},a.visibility,a,m,T)}; GB=function(a,l,m,T,y){a=g.now(a,l,m,y);a=new g.Ip(a);T&&a.jZ();return a}; Zr=function(a,l){return a.Gt(l)?a.jW():l}; Wu=function(a,l){var m=a.Qg();return l===a.jW()&&a.Gt(l)&&a.Gt(m)?m:l}; CC3=function(a){a.logger.debug("start application playback");if(a.jW().getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var l=cu(a);a.vY().isLoaded();l&&a.cZ(6);wq7(a);MKp(a.r7)||ITP(a)}}; ITP=function(a){if(!cu(a)){var l=eO(a.r7);l&&!l.created&&lrl(a.r7)&&(a.logger.debug("reload ad module"),l.create())}}; wq7=function(a){a.logger.debug("start presenter playback");var l=a.getVideoData(),m=a.r7;MKp(m)||m.Dr();!ezQ&&m.D.V("html5_allow_asmjs")&&GBH(m);Qm(m,"embed");Qm(m,"kids");Qm(m,"remote");Qm(m,"miniplayer");Qm(m,"offline");Qm(m,"unplugged");Qm(m,"ypc",!1,!0);Qm(m,"ypc_clickwrap",!1,!0);Qm(m,"yto",!1,!0);Qm(m,"webgl",!1,!0);it7(m)||(Qm(m,"captions",!0),Qm(m,"endscreen"),m.oA()||m.XR(),Qm(m,"creatorendscreen",!0));m.Ba();a.bT.publish("videoready",l)}; Lt=function(a){a=a.vY();a.Q1();return nK(a)}; Kx7=function(a){a.logger.debug("start prepare initial playback");a.BP();var l=a.config.args;Vw(a);a.events.W(window,"resize",a.Ygg);var m=a.vY();a.bT.Fe("onVolumeChange",a.Yd);if(l&&zu7(l)){var T=YN(a.aj);T&&!a.uS&&(l.fetch=0);var y=g.vS(a.aj);y&&!a.uS&&(l.fetch=0);NG(a,l);g.vS(a.aj)&&a.CE.tick("ep_pr_s");if(!T||a.uS)if(y&&!a.uS)Eod(a);else if(!m.Q1())a.playlist.onReady(function(){Qw(a)})}a.X9(a.jW(),!1,!0); g.u(a.jW().getPlayerState(),128)||(l=Aw7(!a.aj.deviceIsAudioOnly),l==="fmt.noneavailable"?a.ag("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):l==="html5.missingapi"?a.ag(l,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):m&&m.Q1()&&Lt(a)&&(a.aj.L7||a.aj.kA)?t3(a):m.Xb?a.bT.mutedAutoplay({durationMode:m.mutedAutoplayDurationMode}):g.BW("yt-player-playback-on-reload")?(g.js("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.aj.jt}),g.JN("yt-player-playback-on-reload",!1), t3(a)):RX(a.aj)||oo7(a),g.aX(a.aj)||g.yX(a.aj)==="MWEB"?(g.m$(g.yi(),function(){eK(a)}),g.m$(g.yi(),function(){AmP()})):(eK(a),AmP()),a.logger.debug("finish prepare initial playback"))}; eK=function(a){if(!a.V("use_rta_for_player"))if(a.V("fetch_att_independently"))g.l0(a.PL);else{var l=a.getVideoData().botguardData;l&&g.Ea(l,a.aj,a.getVideoData().Bv||"")}}; oo7=function(a){a.logger.debug("start initialize to CUED mode");a.bT.publish("initializingmode");a.cZ(2);a.V("embeds_web_enable_defer_loading_remote_js")&&g.mS(a.aj)?g.m$(g.yi(),function(){Qm(a.r7,"remote")}):Qm(a.r7,"remote"); Qm(a.r7,"miniplayer");a.logger.debug("initialized to CUED mode")}; t3=function(a){a.logger.debug("start initialize application playback");var l=a.jW();if(g.u(l.getPlayerState(),128))return!1;var m=l.getVideoData();Lt(a)&&a.aj.kA&&(KY.length&&a.h3?(Fs(a,{muted:!1,volume:a.Yd.volume},!1),h3(a,!1)):KY.length||a.Yd.muted||(Fs(a,{muted:!0,volume:a.Yd.volume},!1),h3(a,!0)));Lt(a)&&g.vS(a.aj)&&m.mutedAutoplay&&(Fs(a,{muted:!0,volume:a.Yd.volume},!1),h3(a,!0));m.Nq&&Fs(a,{muted:!0,volume:a.Yd.volume},!1);x0d(a,1,m,!1);a.bT.publish("initializingmode");a.X9(a.jW());a.cZ(3); var T;if(!(T=!a.aj.lh)){if(T=a.f5){T=a.f5;var y=a.mediaElement;T=!!y&&y===T.mediaElement}T=T&&a.CI}T&&(a.oa(),Vw(a),l.setMediaElement(a.mediaElement));l.qU();if(g.u(l.getPlayerState(),128))return!1;m.P4||pt(a,3);return a.CI=!0}; cu=function(a){a=zl(a.r7);return!!a&&a.loaded}; D0w=function(a,l){if(!a.o0)return!1;var m=a.o0.startTimeMs*.001-1,T=a.o0.endTimeMs*.001;a.o0.type==="repeatChapter"&&T--;return Math.abs(l-m)<=1E-6||Math.abs(l-T)<=1E-6||l>=m&&l<=T}; uTz=function(a){var l=a.Qg();qf(l.getVideoData())&&!l.m7()&&(l=OE(a)*1E3-a.getVideoData().xz,a.V("html5_gapless_new_slr")?(a=a.eh,Kt(a.app,"gaplessshortslooprange"),l=new g.Rq(0,l,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Qg())&&a.addCueRange(l)):a.setLoopRange({startTimeMs:0,endTimeMs:l,type:"shortsLoop"}))}; Xql=function(a){var l=a.jW();if(!(g.u(l.getPlayerState(),64)&&a.vY().isLivePlayback&&a.o0.startTimeMs<5E3)){if(a.o0.type==="repeatChapter"){var m,T=(m=oRP(a.iZ()))==null?void 0:m.b$(),y;m=(y=a.getVideoData())==null?void 0:y.L7;T instanceof g.wd&&m&&(y=m[yj(m,a.o0.startTimeMs)],T.renderChapterSeekingAnimation(0,y.title));isNaN(Number(a.o0.loopCount))?a.o0.loopCount=0:a.o0.loopCount++;a.o0.loopCount===1&&a.bT.Pz("innertubeCommand",a.getVideoData().pYz)}T={hW:"application_loopRangeStart"};if(a.o0.type=== "clips"||a.o0.type==="shortsLoop")T.seekSource=58;l.seekTo(a.o0.startTimeMs*.001,T)}}; $0H=function(a,l){var m=a.bT.getAvailablePlaybackRates();l=Number(l.toFixed(2));a=m[0];m=m[m.length-1];l<=a?l=a:l>=m?l=m:(a=Math.floor(l*100+.001)%5,l=a===0?l:Math.floor((l-a*.01)*100+.001)/100);return l}; OE=function(a,l){l=a.BY({playerType:l});if(!l)return a.uM.T.RH();l=Zr(a,l);return zB(a,l.RH(),l)}; zB=function(a,l,m){if(a.Gt(m)&&(m=m.getVideoData(),!vu(a))){a=a.QP;for(var T=g.c(a.L),y=T.next();!y.done;y=T.next())if(y=y.value,m.XU===y.XU){l+=y.HF/1E3;break}T=l;a=g.c(a.L);for(y=a.next();!y.done;y=a.next()){y=y.value;if(m.XU===y.XU)break;var R=y.HF/1E3;if(R1&&(y=!1);if(!a.tA||y!==l){m=m.lock(y?"portrait":"landscape");if(m!=null)m["catch"](function(){}); a.tA=!0}}else a.tA&&(a.tA=!1,m.unlock())}; Bu=function(a,l,m){a.bT.publish(l,m);var T=g.OF(a.aj)||g.kN(a.aj)||g.IE(a.aj);if(m&&T){switch(l){case "cuerangemarkersupdated":var y="onCueRangeMarkersUpdated";break;case "cuerangesadded":y="onCueRangesAdded";break;case "cuerangesremoved":y="onCueRangesRemoved"}y&&a.bT.Pz(y,m.map(function(R){return{getId:function(){return this.id}, end:R.end,id:R.getId(),namespace:R.namespace==="ad"?"ad":"",start:R.start,style:R.style,visible:R.visible}}))}}; k3=function(a,l,m,T,y,R){m=m===void 0?!0:m;var H=a.BY({playerType:y});if(!H||(H.getPlayerType()!==2||a.Gt(H))&&!g.On(H.getVideoData())){var b=a.uM.W1;b?b.seekTo(l,{mR:!m,cA:T,hW:"application",seekSource:R}):(H&&H===a.jW()&&a.o0&&!D0w(a,l)&&a.setLoopRange(null),a.seekTo(l,m,T,y,R))}}; j67=function(a,l,m,T){m&&(a.oa(),Vw(a));m=a.Qg();m.Ou(l);var y=a.getVideoData(),R={};R.video_id=y.videoId;R.adformat=y.adFormat;y.isLivePlayback||(R.start=m.getCurrentTime(),R.resume="1");y.isLivePlayback&&P9(y)&&g.Fm(a.aj)&&(R.live_utc_start=m.V1(),R.resume="1");y.qj&&(R.vvt=y.qj);y.C&&(R.vss_credentials_token=y.C,R.vss_credentials_token_type=y.P7);y.oauthToken&&(R.oauth_token=y.oauthToken);R.autoplay=1;R.reload_count=y.uZ+1;R.reload_reason=l;y.Qt&&(R.unplugged_partner_opt_out=y.Qt);y.TW&&(R.ypc_is_premiere_trailer= y.TW);y.playerParams&&(R.player_params=y.playerParams);a.loadVideoByPlayerVars(R,void 0,!0,void 0,void 0,T);l==="signature"&&a.tb&&ITP(a)}; Afb=function(a,l){a.vY().autonavState=l;g.JN("yt-player-autonavstate",l);a.bT.publish("autonavchange",l)}; Ptb=function(a){var l=a.getVideoData().Xt,m=a.aj.wb,T=a.isInline()&&!a.getVideoData().m6,y=a.mediaElement;l||m||T?y.Sp():(y.pA(),Fs(a,a.Yd))}; $3=function(a){var l=eO(a.iZ());l&&l.created&&(a.logger.debug("reset ad module"),l.destroy())}; vu=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.tb}; Gg3=function(a,l){l.bounds=a.getBoundingClientRect();for(var m=g.c(["display","opacity","visibility","zIndex"]),T=m.next();!T.done;T=m.next())T=T.value,l[T]=CA(a,T);l.hidden=!!a.hidden}; d0H=function(a){if(a.webPlayerContextConfig){var l=a.webPlayerContextConfig.trustedJsUrl;return l?Fn(l).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""}; VAb=function(a,l){var m=a.BY({playerType:1});if(m){if(m.getVideoData().clientPlaybackNonce===l)return m;if((a=a.XX.T)&&a.getVideoData().clientPlaybackNonce===l)return a}return null}; A3=function(a,l,m){a.lR.push({key:l,value:m})}; pDp=function(a){return a.name==="TypeError"&&a.stack.includes("/s/player/")&&EZ()<=105}; ZBp=function(a){return a.isTimeout?"NO_BID":"ERR_BID"}; W_d=function(){var a=null;eWQ().then(function(l){return a=l},function(l){return a=ZBp(l)}); return a}; cfd=function(){var a=Ik(1E3,"NO_BID");return g.BZ(u6b([eWQ(),a]).wd(ZBp),function(){a.cancel()})}; nt=function(a){return a.p5?g.oi(g.EC(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; wA=function(a){this.player=a;this.Z=this.T=1}; Q6b=function(a,l,m,T,y,R){l.client||(l.client={});a.player.Y().V("h5_remove_url_for_get_ad_break")||(l.client.originalUrl=m);var H=ir(m),b=g.Fl(m)?!1:!0;(H||b)&&typeof Intl!=="undefined"&&(l.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);b=g.Fl(m)?!1:!0;if(H||b||T!==""){var M={};m=Rt(Gv(T)).split("&");var d=new Map;m.forEach(function(A){A=A.split("=");A.length>1&&d.set(A[0].toString(),decodeURIComponent(A[1].toString()))}); d.has("bid")&&(M.bid=d.get("bid"));M.params=[];L_d.forEach(function(A){d.has(A)&&(A={key:A,value:d.get(A)},M.params.push(A))}); NJz(a,M);l.adSignalsInfo=M}l.client.unpluggedAppInfo||(l.client.unpluggedAppInfo={});l.client.unpluggedAppInfo.enableFilterMode=!1;m=y.T.cosver;m!=null&&m!=="cosver"&&(l.client.osVersion=m);m=y.T.cplatform;m!=null&&m!=="cplatform"&&m!==""&&(l.client.platform=m);m=y.T.cmodel;m!=null&&m!=="cmodel"&&(l.client.deviceModel=m);m=y.T.cplayer;m!=null&&m!=="cplayer"&&(l.client.playerType=m);m=y.T.cbrand;m!=null&&m!=="cbrand"&&(l.client.deviceMake=m);l.user||(l.user={});l.user.lockedSafetyMode=!1;(y.V("embeds_web_enable_iframe_api_send_full_embed_url")|| y.V("embeds_enable_autoplay_and_visibility_signals"))&&g.BS(y)&&oI7(l,R,a.player.getPlayerState(1))}; F_7=function(a,l){var m=!1;if(l==="")return m;l.split(",").forEach(function(T){var y={},R={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},H="ACTIVE";T[0]==="!"&&(T=T.substring(1),H="INACTIVE");T=T.split("-");T.length<3||(T[0]in tAd&&(R.clientName=tAd[T[0]]),T[1]in ejQ&&(R.platform=ejQ[T[1]]),R.applicationState=H,R.clientVersion=T.length>2?T[2]:"",y.remoteClient=R,a.remoteContexts?a.remoteContexts.push(y):a.remoteContexts=[y],m=!0)}); return m}; OB3=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in hjP))return!1;a=a.split(RegExp("[:&]"));var l=hjP.FLAG_AUTO_CAPTIONS_DEFAULT_ON,m="f"+(1+Math.floor(l/31)).toString();l=1<=2?H[1]:"";var b=zjR.test(l),M=vjQ.exec(l);M=M!=null&&M.length>=2?M[1]:"";var d=$9p.exec(l);d=d!=null&&d.length>=2&&!Number.isNaN(Number(d[1]))?Number(d[1]):1;var A=s6l.exec(l);A=A!=null&&A.length>=2?A[1]:"0";var P=CR(a.player.Y().Fa),G=a.player.getVideoData(1),V=g.m0(G.Cx,!0),p="BISCOTTI_ID"in m?m.BISCOTTI_ID:"";Q6b(a,V,l,p.toString(),a.player.Y(), G);G={splay:!1,lactMilliseconds:m.LACT.toString(),playerHeightPixels:Math.trunc(m.P_H),playerWidthPixels:Math.trunc(m.P_W),vis:Math.trunc(m.VIS),signatureTimestamp:20209,autonavState:nt(a.player.Y())};T&&(T={},F_7(T,m.YT_REMOTE)&&(G.mdxContext=T));if(T=S4d.includes(P)?void 0:g.ny("PREF")){for(var L=T.split(RegExp("[:&]")),N=0,e=L.length;N1&&t[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}G.autoCaptionsDefaultOn= OB3(T)}l=fvz.exec(l);(l=l!=null&&l.length>=2?l[1]:"")&&M&&(V.user.credentialTransferTokens=[{token:l,scope:"VIDEO"}]);l={contentPlaybackContext:G};H={adBlock:Math.trunc(m.AD_BLOCK),params:H,breakIndex:d,breakPositionMs:A,clientPlaybackNonce:m.CPN,topLevelDomain:P,isProxyAdTagRequest:b,context:V,adSignalsInfoString:Rt(Gv(p.toString())),overridePlaybackContext:l};y!==void 0&&(H.cueProcessedMs=Math.round(y).toString());M&&(H.videoId=M);m.LIVE_TARGETING_CONTEXT&&(H.liveTargetingParams=m.LIVE_TARGETING_CONTEXT); m.AD_BREAK_LENGTH&&(H.breakLengthMs=Math.trunc(m.AD_BREAK_LENGTH*1E3).toString());R&&(H.driftFromHeadMs=R.toString());H.currentMediaTimeMs=Math.round(a.player.getCurrentTime(1)*1E3);(a=a.player.getGetAdBreakContext())&&(H.getAdBreakContext=a);return H}; BJP=function(){wA.apply(this,arguments)}; kgH=function(a,l,m,T,y){var R=m.r0;var H=m.ou;var b=a.player.Y().Dv,M=0;m.cueProcessedMs&&H&&!R&&(m=H.end-H.start,m>0&&(M=Math.floor(m/1E3)));var d={AD_BLOCK:y,AD_BREAK_LENGTH:R?R.Da:M,AUTONAV_STATE:nt(a.player.Y()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.EP()*1E3,LACT:zG(),LIVE_INDEX:R?a.Z++:1,LIVE_TARGETING_CONTEXT:R&&R.context?R.context:"",MIDROLL_POS:H?Math.round(H.start/1E3):0,MIDROLL_POS_MS:H?Math.round(H.start):0,VIS:a.player.getVisibilityState(), P_H:a.player.cz().jH().height,P_W:a.player.cz().jH().width,YT_REMOTE:b?b.join(","):""},A=P$(AR);Object.keys(A).forEach(function(P){A[P]!=null&&(d[P.toUpperCase()]=A[P].toString())}); T!==""&&(d.BISCOTTI_ID=T);T={};jn(l)&&(T.sts="20209",(a=a.player.Y().forcedExperiments)&&(T.forced_experiments=a));return My(g.fG(l,d),T)}; njR=function(a,l){var m=a.player.Y(),T,y=(T=a.player.getVideoData(1))==null?void 0:T.oauthToken;return g.b1(m,y).then(function(R){if(R&&d0()){var H=nq();wf(H,R)}return g.Ux(g.B(a.player.kd(H)),l,"/youtubei/v1/player/ad_break").then(function(b){return b})})}; wDd=function(a){this.x8=a}; Ivt=function(a){this.D=a}; Ctp=function(a){this.x8=a}; ojQ=function(a){g.k.call(this);this.T=a;this.r$=Ej5(this)}; Ej5=function(a){var l=new AHb(a.T.tW);g.w(a,l);a=[new wDd(a.T.x8),new Ivt(a.T.D),new Ctp(a.T.x8),new sI(a.T.bu,a.T.lA),new fn,new kr(a.T.v$,a.T.qs,a.T.x8),new Sm,new $r];a=g.c(a);for(var m=a.next();!m.done;m=a.next())PEP(l,m.value);a=g.c(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(m=a.next();!m.done;m=a.next())JE(l,m.value,function(){}); return l}; Ia=function(a){var l=a.Bz,m=a.ZK;a=a.zE;var T=new scp,y={Xa:new d4t(l.get(),m),ZK:m};return{BF:new Me(m,a,l,y),context:y,HE:T}}; Ct=function(a,l,m,T,y){g.k.call(this);this.L=l;this.EL=m;this.Bz=T;this.Ru=y;this.listeners=[];var R=new zO(this);g.w(this,R);R.W(a,"internalAbandon",this.oXO);this.addOnDisposeCallback(function(){g.$H(R)})}; EE=function(a){this.D=a;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.K=!0;this.L=this.Z=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; x9p=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.j="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.Z=!1;a.L=!1}; D9Q=function(a,l){a=g.c(l);for(l=a.next();!l.done;l=a.next())if((l=l.value.renderer)&&(l.instreamVideoAdRenderer||l.linearAdSequenceRenderer||l.sandwichedLinearAdRenderer||l.instreamSurveyAdRenderer)){C$("ad_i");g.Ex({isMonetized:!0});break}}; u4H=function(a){var l;(l=a.D.getVideoData(1))!=null&&l.Kx&&(a.L=!1,l={},a.T&&a.videoId&&(l.cttAuthInfo={token:a.T,videoId:a.videoId}),o0("video_to_ad",l))}; u6=function(a){a.L=!1;var l={};a.T&&a.videoId&&(l.cttAuthInfo={token:a.T,videoId:a.videoId});o0("ad_to_video",l);XDd(a)}; XDd=function(a){if(a.Z)if(a.j==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")n$("video_to_ad");else{var l={adBreakType:tn(a.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType};a.actionType==="ad_to_video"?(a.contentCpn&&(l.targetCpn=a.contentCpn),a.videoId&&(l.targetVideoId=a.videoId)):(a.adCpn&&(l.targetCpn=a.adCpn),a.adVideoId&&(l.targetVideoId=a.adVideoId));a.adFormat&&(l.adType=a.adFormat);a.contentCpn&& (l.clientPlaybackNonce=a.contentCpn);a.videoId&&(l.videoId=a.videoId);a.adCpn&&(l.adClientPlaybackNonce=a.adCpn);a.adVideoId&&(l.adVideoId=a.adVideoId);g.Ex(l,a.actionType);a.D.Y().experiments.XO("html5_ads_csi_qoes")&&(l=a.D.uu(a.actionType==="ad_to_video"?1:2),l=(0,g.E)()-1E3*l,Dq("qoes",l,a.actionType))}}; oa=function(a){g.k.call(this);this.D=a;this.T=new Map;this.L=new zO(this);g.w(this,this.L);this.L.W(this.D,g.qm("ad"),this.onCueRangeEnter,this);this.L.W(this.D,g.bl("ad"),this.onCueRangeExit,this)}; Y4d=function(a,l,m,T,y){g.Rq.call(this,l,m,{id:a,namespace:"ad",priority:y,visible:T})}; x3=function(a){this.D=a}; U9b=function(a,l){a.D.cueVideoByPlayerVars(l,2)}; Dr=function(a){this.D=a}; uN=function(a){this.D=a;g.PU(this.D.Y().experiments,"tv_pacf_logging_sample_rate")}; rf7=function(a){return YI(a,"html5_ssap_play_cached_preroll")}; eS=function(a,l){l=l===void 0?!1:l;return a.D.Y().V("html5_ssap_force_ads_ctmp")?!0:(l||a.D.Y().bZ())&&a.D.Y().V("html5_ssap_pacf_qoe_ctmp")}; aGR=function(a){return a.D.Y().V("dai_layout_log_skip_exit_reason")}; Xs=function(a){var l,m;return(m=(l=a.D.getVideoData(1))==null?void 0:g.US(l))!=null?m:!1}; eEd=function(a){return!a.D.Y().V("html5_override_ad_video_length_killswitch")}; YI=function(a,l){return a.D.Y().V(l)}; lGQ=function(a){return a.D.Y().V("substitute_ad_cpn_macro_in_ssdai")}; F2=function(a){var l,m,T;return((l=a.D.getVideoData(1).getPlayerResponse())==null?void 0:(m=l.playerConfig)==null?void 0:(T=m.daiConfig)==null?void 0:T.enableServerStitchedDai)||!1}; Nzw=function(a){return a.D.Y().V("html5_enable_vod_slar_with_notify_pacf")}; eA5=function(a){return a.D.Y().V("h5_check_forecasting_renderer_for_throttled_midroll")}; ms5=function(a){return a.D.Y().V("html5_recognize_predict_start_cue_point")}; Rh=function(a){return a.D.Y().experiments.XO("enable_desktop_player_underlay")}; Tlz=function(a){return a.D.Y().experiments.XO("html5_disable_sodar_for_tvhtml5")}; FDH=function(a){return a.D.Y().bZ()}; yhz=function(a){return a.D.Y().experiments.XO("html5_load_empty_player_in_media_break_sub_lra")}; Jn=function(a){return a.D.Y().experiments.XO("html5_load_ads_instead_of_cue")}; Bs=function(a){return a.D.Y().experiments.XO("html5_preload_ads")}; Rwd=function(a){return a.D.Y().experiments.XO("should_ignore_cuepoints_during_lifa_preroll")}; yo=function(a){return a.D.Y().experiments.XO("enable_ads_control_flow_deterministic_id_generation")}; H6P=function(a){return a.D.Y().experiments.XO("enable_desktop_discovery_video_abandon_pings")||g.Ul(a.D.Y())}; qkw=function(a){return a.D.Y().experiments.XO("enable_progres_commands_lr_feeds")}; hl=function(a){return a.D.Y().experiments.XO("html5_cuepoint_identifier_logging")}; Kf3=function(a){a=a.D.getVideoData(1);return!!a&&a.V("html5_preload_first_vod_video_ad")&&!a.isDaiEnabled()}; b65=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; gJR=function(){g.Aj.call(this);var a=this;this.T={};this.addOnDisposeCallback(function(){for(var l=g.c(Object.keys(a.T)),m=l.next();!m.done;m=l.next())delete a.T[m.value]})}; Y3=function(){if(MH5===null){MH5=new gJR;Xl(y$).L="b";var a=Xl(y$),l=xp(a)=="h"||xp(a)=="b",m=!(Mv(),!1);l&&m&&(a.K=!0,a.C=new j1z)}return MH5}; i6t=function(a,l,m){a.T[l]=m}; dsp=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; UE=function(a,l,m){this.EL=a;this.D=l;this.ZK=m;this.L=new Set;this.T=new Map;Y3().subscribe("adactiveviewmeasurable",this.Lz,this);Y3().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Td,this);Y3().subscribe("adviewableimpression",this.s6,this);Y3().subscribe("adaudioaudible",this.ID,this);Y3().subscribe("adaudiomeasurable",this.lC,this)}; aF=function(a,l,m){var T=m.OB,y=m.hm,R=m.listener,H=m.An;m=m.gU===void 0?!1:m.gU;if(a.T.has(l))Vu("Unexpected registration of layout in LidarApi");else{if(H){if(a.L.has(H))return;a.L.add(H)}a.T.set(l,R);dG(Mv().qN,"fmd",1);N85(Xl(y$),T);var b=m?l:void 0;i6t(Y3(),l,{uw:function(){if(!y)return{};var M=a.D.getPresentingPlayerType(!0),d;return(d=a.D.getVideoData(M))!=null&&d.isAd()?{currentTime:a.EL.get().getCurrentTimeSec(M,!1,b),duration:y,isPlaying:rA(a.EL.get(),M).isPlaying(),isVpaid:!1,isYouTube:!0, volume:a.EL.get().isMuted()?0:a.EL.get().getVolume()/100}:{}}})}}; lI=function(a,l){a.T.has(l)?(a.T.delete(l),delete Y3().T[l]):Vu("Unexpected unregistration of layout in LidarApi")}; jDl=function(a,l){if(a.D.isLifaAdPlaying()){var m=a.D.KH(!0,!0);a.wu(l,m.width*.5*1.1,m.height*.25*1.1,m.width*.5*.9,m.height*.5*.9)}}; GFd=function(a,l,m){var T={};Ahp(a,T,l,m);PUz(T);T.LACT=mI(function(){return zG().toString()}); T.VIS=mI(function(){return a.getVisibilityState().toString()}); T.SDKV="h.3.0";T.VOL=mI(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()}); T.VED="";return T}; VH7=function(a,l){var m={};if(l)return m;if(!a.kind)return g.kt(Error("AdPlacementConfig without kind")),m;if(a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||a.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.kt(Error("malformed AdPlacementConfig")),m;m.MIDROLL_POS=mI(PI(Math.round(Lm(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else m.MIDROLL_POS=mI(PI("0"));return m}; mI=function(a){return{toString:function(){return a()}}}; pGR=function(a,l,m){function T(b,M){(M=m[M])&&(R[b]=M)} function y(b,M){(M=m[M])&&(R[b]=H(M))} if(!m||g.rg(m))return a;var R=Object.assign({},a),H=l?encodeURIComponent:function(b){return b}; y("DV_VIEWABILITY","doubleVerifyViewability");y("IAS_VIEWABILITY","integralAdsViewability");y("MOAT_INIT","moatInit");y("MOAT_VIEWABILITY","moatViewability");T("GOOGLE_VIEWABILITY","googleViewability");T("VIEWABILITY","viewability");return R}; Ahp=function(a,l,m,T){l.CPN=mI(function(){var y;(y=a.getVideoData(1))?y=y.clientPlaybackNonce:(g.nU(Error("Video data is null.")),y=null);return y}); l.AD_MT=mI(function(){if(T!=null)var y=T;else{var R=m;a.Y().V("html5_ssap_use_cpn_to_get_time")||(R=void 0);if(a.Y().V("enable_h5_shorts_ad_fill_ad_mt_macro")||a.Y().V("enable_desktop_discovery_pings_ad_mt_macro")||g.Ul(a.Y())){var H=a.getPresentingPlayerType(!0),b;y=((b=a.getVideoData(H))==null?0:b.isAd())?Z6p(a,H,R):0}else y=Z6p(a,2,R)}return WM5(y)}); l.MT=mI(function(){return WM5(a.getCurrentTime(1,!1))}); l.P_H=mI(function(){return a.cz().jH().height.toString()}); l.P_W=mI(function(){return a.cz().jH().width.toString()}); l.PV_H=mI(function(){return a.cz().getVideoContentRect().height.toString()}); l.PV_W=mI(function(){return a.cz().getVideoContentRect().width.toString()})}; WM5=function(a){return Math.round(Math.max(0,a*1E3)).toString()}; PUz=function(a){a.CONN=mI(PI("0"));a.WT=mI(function(){return Date.now().toString()})}; Z6p=function(a,l,m){return m!==void 0?a.getCurrentTime(l,!1,m):a.getCurrentTime(l,!1)}; chz=function(){}; LMQ=function(a,l,m,T,y){var R,H,b,M,d,A,P,G,V,p,L,N,e;g.J(function(t){switch(t.L){case 1:R=!!l.scrubReferrer;H=g.fG(l.baseUrl,pGR(m,R,T));b={};if(!l.headers){t.iT(2);break}M=a.j();if(!M.T){d=M.getValue();t.iT(3);break}return g.z(t,M.T,4);case 4:d=t.T;case 3:A=d;P=g.c(l.headers);for(G=P.next();!G.done;G=P.next())switch(V=G.value,V.headerType){case "VISITOR_ID":g.Uu("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.Uu("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Uu("EOM_VISITOR_DATA")&&(b["X-Goog-EOM-Visitor-Id"]= g.Uu("EOM_VISITOR_DATA"));break;case "USER_AUTH":A&&(b.Authorization="Bearer "+A);break;case "PLUS_PAGE_ID":(p=a.K())&&(b["X-Goog-PageId"]=p);break;case "AUTH_USER":L=a.T();!A&&L&&(b["X-Goog-AuthUser"]=L);break;case "DATASYNC_ID":if(N=void 0,(N=a.Z())==null?0:N.XO("enable_datasync_id_header_in_web_vss_pings"))e=a.L(),ir(H)&&g.Uu("LOGGED_IN")&&e&&(b["X-YouTube-DataSync-Id"]=e)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];case 2:g.Ec(H,void 0,R,Object.keys(b).length!== 0?b:void 0,"",!0,y),g.c5(t)}})}; Nlt=function(a,l,m,T,y){this.j=a;this.K=l;this.T=m;this.L=T;this.Z=y}; QDb=function(a,l){this.T=a;this.ZK=l}; T1=function(a,l,m,T,y,R,H){var b=b===void 0?new Nlt(function(){var M=a.Y(),d=a.getVideoData(1);return g.b1(M,d?g.wn(d):"")},function(){return a.Y().pageId},function(){return a.Y().jt},function(){var M; return(M=a.Y().datasyncId)!=null?M:""},function(){return a.Y().experiments}):b; this.D=a;this.L=l;this.Ub=m;this.Bz=T;this.BF=y;this.ZK=R;this.HE=H;this.j=b;this.rJ=null;this.T=new Map;this.Z=new QDb(b,this.ZK)}; ewP=function(a,l,m,T,y){var R=Jl(a.L.get(),m);R?(m=Kh(a,tHt(R),R,void 0,void 0,T),l.hasOwnProperty("baseUrl")?a.j.send(l,m):a.Z.send(l,m,{},y)):Vu("Trying to ping from an unknown layout",void 0,void 0,{layoutId:m})}; cj7=function(a,l,m,T,y,R){T=T===void 0?[]:T;var H=Jl(a.L.get(),l);if(H){var b=a.Ub.get().PE(l,m),M=Kh(a,tHt(H),H,y,R);T.forEach(function(d,A){d.baseUrl&&(a.Z.send(d.baseUrl,M,b,d.attributionSrcMode),d.serializedAdPingMetadata&&a.BF.jE("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,H,new aI5(d,A),void 0,void 0,H.adLayoutLoggingData))})}else Vu("Trying to track from an unknown layout.",void 0,void 0,{layoutId:l, trackingType:m})}; Nm=function(a,l){a.D.sendVideoStatsEngageEvent(l,void 0,2)}; T2=function(a,l){g.js("adsClientStateChange",l)}; FMQ=function(a,l){a.T.has(l.iq())?Vu("Trying to register an existing AdErrorInfoSupplier."):a.T.set(l.iq(),l)}; hwQ=function(a,l){a.T.delete(l.iq())||Vu("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; qC=function(a,l,m){typeof m==="string"?a.D.getVideoData(1).A2(l,m):a.D.getVideoData(1).Tu(l,m)}; tHt=function(a){var l=g.B(bS(a.clientMetadata,"metadata_type_ad_placement_config"));a=bS(a.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:l,hw:a}}; Kh=function(a,l,m,T,y,R){var H=m?O67(a):{},b=m?KMQ(a,m.layoutId):{},M=zw3(a),d,A=y!=null?y:(d=cs(a.Bz.get(),2))==null?void 0:d.clientPlaybackNonce;y=void 0;if(m){var P;if((P=a.HE.T.get(m.layoutId))==null?0:P.gU)y=m.layoutId}P={};a=Object.assign({},GFd(a.D,y,T),VH7(l.adPlacementConfig,(m==null?void 0:m.renderingContent)!==void 0),b,H,M,(P.FINAL=mI(function(){return"1"}),P.AD_CPN=mI(function(){return A||""}),P)); (m==null?void 0:m.renderingContent)!==void 0||(a.SLOT_POS=mI(function(){return(l.hw||0).toString()})); m={};R=Object.assign({},a,R);a=g.c(Object.values(vJd));for(T=a.next();!T.done;T=a.next())T=T.value,H=R[T],H!=null&&H.toString()!=null&&(m[T]=H.toString());return m}; O67=function(a){var l={},m,T=(m=a.rJ)==null?void 0:m.Lh/1E3;T!=null&&(l.SURVEY_ELAPSED_MS=mI(function(){return Math.round(T*1E3).toString()})); l.SURVEY_LOCAL_TIME_EPOCH_S=mI(function(){return Math.round(Date.now()/1E3).toString()}); return l}; KMQ=function(a,l){a=a.T.get(l);if(!a)return{};a=a.I4();if(!a)return{};l={};return l.YT_ERROR_CODE=a.x_.toString(),l.ERRORCODE=a.jK.toString(),l.ERROR_MSG=a.errorMessage,l}; zw3=function(a){var l={},m=a.D.getVideoData(1);l.ASR=mI(function(){var T;return(T=m==null?void 0:m.Ew)!=null?T:null}); l.EI=mI(function(){var T;return(T=m==null?void 0:m.eventId)!=null?T:null}); return l}; yH=function(a,l,m){g.k.call(this);this.D=a;this.LY=l;this.ZK=m;this.listeners=[];this.H0=null;this.Kw=new Map;l=new g.BT(this);g.w(this,l);l.W(a,"videodatachange",this.C0T);l.W(a,"serverstitchedvideochange",this.yWj);this.Au=cs(this)}; cs=function(a,l){var m=a.D.getVideoData(l);return m?a.FR(m,l||a.D.getPresentingPlayerType(!0)):null}; yA=function(a){return a.Au}; $sd=function(a,l,m){var T=a.FR(l,m);a.Au=T;a.listeners.forEach(function(y){y.Ks(T)})}; sDz=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; RF=function(a,l,m){g.k.call(this);this.D=a;this.Bz=l;this.ZK=m;this.listeners=[];this.Ez=[];this.T=function(){Vu("Called 'doUnlockPreroll' before it's initialized.")}; l=new zO(this);m=new g.BT(this);g.w(this,m);g.w(this,l);l.W(a,"progresssync",this.xNx);l.W(a,"presentingplayerstatechange",this.lTg);l.W(a,"fullscreentoggled",this.onFullscreenToggled);l.W(a,"onVolumeChange",this.onVolumeChange);l.W(a,"minimized",this.C7);l.W(a,"overlayvisibilitychange",this.B4);l.W(a,"shortsadswipe",this.S$);l.W(a,"resize",this.Mt);m.W(a,g.qm("appad"),this.AV)}; HM=function(a){Xs(a.ZK.get())||a.T()}; SkP=function(a,l){a.Ez=a.Ez.filter(function(m){return m!==l})}; q1=function(a,l,m){return a.getCurrentTimeSec(l,m)}; tl=function(a){return a.getCurrentTimeSec(1,!1)}; fGb=function(a,l){var m;l=(m=a.Bz.get().Kw.get(l))!=null?m:null;if(l===null)return Vu("Expected ad video start time on playback timeline"),0;a=a.D.getCurrentTime(2,!0);return a0){var R=l.end.toString();y.forEach(function(H){(H=H.config&&H.config.adPlacementConfig)&&H.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&H.adTimeOffset&&H.adTimeOffset.offsetEndMilliseconds==="-1"&&H.adTimeOffset.offsetEndMilliseconds!==R&&(H.adTimeOffset.offsetEndMilliseconds=R)}); T.map(function(H){return g.I(H,Cl)}).forEach(function(H){var b; (H=H==null?void 0:(b=H.slotEntryTrigger)==null?void 0:b.mediaTimeRangeTrigger)&&H.offsetEndMilliseconds==="-1"&&(H.offsetEndMilliseconds=R)})}return{bD:y, adSlots:T,Ci:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}}; dv=function(a){g.k.call(this);this.D=a;this.listeners=[];this.T=new zO(this);g.w(this,this.T);this.T.W(this.D,"aduxclicked",this.onAdUxClicked);this.T.W(this.D,"aduxmouseover",this.h4);this.T.W(this.D,"aduxmouseout",this.qP);this.T.W(this.D,"muteadaccepted",this.bxN)}; IGQ=function(a,l,m){l=g.xX(l,function(T){return new $r3(T,m,T.id)}); a.D.Pz("onAdUxUpdate",l)}; je=function(a,l){a=g.c(a.listeners);for(var m=a.next();!m.done;m=a.next())l(m.value)}; A6=function(a,l){this.L=a;this.Z=l===void 0?!1:l;this.T={}}; CUl=function(a,l){var m=a.startSecs+a.Da;m=m<=0?null:m;if(m===null)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(l)break;return null;default:return null}l=Math.max(a.startSecs,0);return{xm:new FW(l,m),oG:new Xp(l,m-l,a.context,a.identifier,a.event,a.T)}}; EJ3=function(){this.T=[]}; pFz=function(a,l,m){var T=g.KD(a.T,l);if(T>=0)return l;l=-T-1;return l>=a.T.length||a.T[l]>m?null:a.T[l]}; PM=function(a,l,m){g.k.call(this);this.D=a;this.ZK=l;this.x8=m;this.listeners=[];this.K=!1;this.j=[];this.T=null;this.C=new A6(this,ms5(l.get()));this.Z=new EJ3;this.L=null}; oJ7=function(a){return a.j}; xst=function(a,l){a.j.push(l);for(var m=!1,T=g.c(a.listeners),y=T.next();!y.done;y=T.next())m=y.value.dY(l)||m;a.K=m;hl(a.ZK.get())&&qC(a.x8.get(),"onci","cpi."+l.identifier+";cpe."+l.event+";cps."+l.startSecs+";cbi."+m)}; uj7=function(a,l){T2(a.x8.get(),{cuepointTrigger:{event:Dsp(l.event),cuepointId:l.identifier,totalCueDurationMs:l.Da*1E3,playheadTimeMs:l.T,cueStartTimeMs:l.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.D.getVideoData(1).clientPlaybackNonce}})}; Dsp=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return rG(a,"Unexpected cuepoint event")}}; G1=function(a){this.D=a}; VH=function(a){this.D=a}; XG7=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:rG(a,"unknown transitionReason")}}; pC=function(){g.k.apply(this,arguments)}; Ykb=function(a){this.D=a}; Usb=function(a,l,m,T,y){g.k.call(this);var R=this,H=CJ(function(){return new TP(R.ZK)}); g.w(this,H);var b=CJ(function(){return new RO(H,R.ZK)}); g.w(this,b);var M=CJ(function(){return new sY}); g.w(this,M);var d=CJ(function(){return new v1(a)}); g.w(this,d);var A=CJ(function(){return new Hc(H,b,R.ZK)}); g.w(this,A);var P=CJ(function(){return new io}); g.w(this,P);this.Nt=CJ(function(){return new dv(l)}); g.w(this,this.Nt);this.mW=CJ(function(){return new ox(y)}); g.w(this,this.mW);this.iM=CJ(function(){return new EE(l)}); g.w(this,this.iM);this.VP=CJ(function(){return new oa(l)}); g.w(this,this.VP);this.Tq=CJ(function(){return new x3(l)}); g.w(this,this.Tq);this.tW=CJ(function(){return new Dr(l)}); g.w(this,this.tW);this.ZK=CJ(function(){return new uN(l)}); g.w(this,this.ZK);var G=CJ(function(){return new iI(T)}); g.w(this,G);var V=CJ(function(){return new G9(R.ZK)}); g.w(this,V);this.V4=CJ(function(){return new G1(l)}); g.w(this,this.V4);this.Nh=CJ(function(){return new uS}); g.w(this,this.Nh);this.Bz=CJ(function(){return new yH(l,P,R.ZK)}); g.w(this,this.Bz);var p=Ia({Bz:this.Bz,ZK:this.ZK,zE:V}),L=p.context,N=p.HE;this.BF=p.BF;this.Ru=CJ(function(){return new PM(l,R.ZK,R.x8)}); g.w(this,this.Ru);this.vN=CJ(function(){return new VH(l)}); g.w(this,this.vN);this.EL=CJ(function(){return new RF(l,R.Bz,R.ZK)}); g.w(this,this.EL);this.u4=CJ(function(){return new pC}); g.w(this,this.u4);p=CJ(function(){return new L3(H,A,b,R.ZK,V,"SLOT_TYPE_ABOVE_FEED",R.EL,R.lx,R.wN)}); g.w(this,p);this.dN=CJ(function(){return new Xm(R.ZK)}); this.Ub=CJ(function(){return new UE(R.EL,l,R.ZK)}); g.w(this,this.Ub);this.x8=CJ(function(){return new T1(l,M,R.Ub,R.Bz,R.BF,R.ZK,N)}); g.w(this,this.x8);this.kh=new K3(OY,Zp,function(t,v,S,n){return yS(b.get(),t,v,S,n)},d,A,b,V,this.ZK,this.Bz); g.w(this,this.kh);this.sG=new zY(d,p,m,this.ZK,a,this.Bz,this.EL,this.iM);g.w(this,this.sG);var e=new Ct(l,this.sG,this.EL,this.Bz,this.Ru);this.Ka=CJ(function(){return e}); this.ZC=e;this.lx=new e8(d,A,this.Ka,this.Ru,this.EL,this.ZK,this.x8,this.vN);g.w(this,this.lx);this.RY=new $R(d,A,this.VP,this.Ka,L);g.w(this,this.RY);this.jb=new In(this.ZK,d,A,p,this.Bz,this.RY,m,this.Tq);g.w(this,this.jb);this.GJ=CJ(function(){return new Ag(G,b,V,R.ZK,R.x8,R.EL,R.vN)}); g.w(this,this.GJ);this.Tt=CJ(function(){return new PL}); g.w(this,this.Tt);this.sF=new Ih(a,this.Nt,this.ZK);g.w(this,this.sF);this.pE=new C3(a);g.w(this,this.pE);this.XH=new EY(a);g.w(this,this.XH);this.Jp=new xR(a,this.Ka,L);g.w(this,this.Jp);this.Pe=new DV(a,this.VP,this.EL,this.Bz,L);g.w(this,this.Pe);this.Ht=new uW(a,this.Bz);g.w(this,this.Ht);this.wN=new UY(a,this.Ru,this.EL,this.x8,this.Ka);g.w(this,this.wN);this.Za=new X2(a);g.w(this,this.Za);this.D6=new m5(a);g.w(this,this.D6);this.bx=new YR(a);g.w(this,this.bx);this.MV=new lo(a);g.w(this,this.MV); this.D6=new m5(a);g.w(this,this.D6);this.NI=CJ(function(){return new B1}); g.w(this,this.NI);this.WI=CJ(function(){return new kR(R.EL)}); g.w(this,this.WI);this.J1=CJ(function(){return new wkP(R.Nt,R.x8,a,M,R.Ub)}); g.w(this,this.J1);this.zJ=CJ(function(){return new r$(R.jb,d,H)}); g.w(this,this.zJ);this.sH=CJ(function(){return new ml(R.ZK,R.x8,R.Za,R.Ub)}); g.w(this,this.sH);this.Sc=CJ(function(){return new AV(a,R.D6,R.Za,R.Bz,R.vN,R.EL,R.u4,R.x8,P,R.Ru,R.Ub,R.dN,R.Tq,R.VP,R.iM,R.tW,R.mW,R.V4,R.ZK,M,L,N)}); g.w(this,this.Sc);this.De=CJ(function(){return new m45(R.EL,R.x8,R.mW,R.ZK,R.Ub,R.Bz)}); g.w(this,this.De);this.jo=CJ(function(){return new Iqp(R.Nt,R.EL,R.x8,M,R.Ub,R.XH,R.MV,R.mW,R.ZK,m)}); g.w(this,this.jo);this.Hk=CJ(function(){return new I7l(R.Nt,R.x8,M)}); g.w(this,this.Hk);this.oC=new M1(a,this.Nh,H);g.w(this,this.oC);this.BE={Vm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.sG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.RY]]),fd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GJ],["SLOT_TYPE_ABOVE_FEED",this.Tt],["SLOT_TYPE_FORECASTING",this.Tt], ["SLOT_TYPE_IN_PLAYER",this.Tt],["SLOT_TYPE_PLAYER_BYTES",this.Tt],["SLOT_TYPE_PLAYER_UNDERLAY",this.Tt],["SLOT_TYPE_PLAYBACK_TRACKING",this.Tt],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Tt]]),ME:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.sF],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.sF],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pE],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pE],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.pE],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pE],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.pE],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pE],["TRIGGER_TYPE_CLOSE_REQUESTED",this.XH],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jp],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Pe],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Pe],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Pe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pe],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Pe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Pe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ht],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ht],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Za],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Jp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.bx],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.MV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.D6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.wN],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wN],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wN],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wN]]),Ai:new Map([["SLOT_TYPE_ABOVE_FEED",this.NI], ["SLOT_TYPE_AD_BREAK_REQUEST",this.NI],["SLOT_TYPE_FORECASTING",this.NI],["SLOT_TYPE_IN_PLAYER",this.NI],["SLOT_TYPE_PLAYER_BYTES",this.WI],["SLOT_TYPE_PLAYER_UNDERLAY",this.NI],["SLOT_TYPE_PLAYBACK_TRACKING",this.NI],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.NI]]),xn:new Map([["SLOT_TYPE_ABOVE_FEED",this.J1],["SLOT_TYPE_AD_BREAK_REQUEST",this.zJ],["SLOT_TYPE_FORECASTING",this.sH],["SLOT_TYPE_PLAYER_BYTES",this.Sc],["SLOT_TYPE_PLAYBACK_TRACKING",this.De],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.De],["SLOT_TYPE_IN_PLAYER",this.jo],["SLOT_TYPE_PLAYER_UNDERLAY",this.Hk]])};this.listeners=[M.get()];this.nG={jb:this.jb,qs:this.ZK.get(),Y8:this.mW.get(),kS:this.EL.get(),sG:this.sG,EM:H.get(),nB:this.Nh.get(),lA:this.sF,bu:M.get(),v$:this.Bz.get()}}; rh3=function(a,l,m,T,y){g.k.call(this);var R=this,H=CJ(function(){return new TP(R.ZK)}); g.w(this,H);var b=CJ(function(){return new RO(H,R.ZK)}); g.w(this,b);var M=CJ(function(){return new sY}); g.w(this,M);var d=CJ(function(){return new v1(a)}); g.w(this,d);var A=CJ(function(){return new Hc(H,b,R.ZK)}); g.w(this,A);var P=CJ(function(){return new io}); g.w(this,P);this.Nt=CJ(function(){return new dv(l)}); g.w(this,this.Nt);this.mW=CJ(function(){return new ox(y)}); g.w(this,this.mW);this.iM=CJ(function(){return new EE(l)}); g.w(this,this.iM);this.VP=CJ(function(){return new oa(l)}); g.w(this,this.VP);this.Tq=CJ(function(){return new x3(l)}); g.w(this,this.Tq);this.tW=CJ(function(){return new Dr(l)}); g.w(this,this.tW);this.ZK=CJ(function(){return new uN(l)}); g.w(this,this.ZK);var G=CJ(function(){return new iI(T)}); g.w(this,G);var V=CJ(function(){return new G9(R.ZK)}); g.w(this,V);var p=CJ(function(){return new L3(H,A,b,R.ZK,V,null,null,R.lx,R.wN)}); g.w(this,p);this.V4=CJ(function(){return new G1(l)}); g.w(this,this.V4);this.Nh=CJ(function(){return new uS}); g.w(this,this.Nh);this.Bz=CJ(function(){return new yH(l,P,R.ZK)}); g.w(this,this.Bz);var L=Ia({Bz:this.Bz,ZK:this.ZK,zE:V}),N=L.context,e=L.HE;this.BF=L.BF;this.Ru=CJ(function(){return new PM(l,R.ZK,R.x8)}); this.EL=CJ(function(){return new RF(l,R.Bz,R.ZK)}); g.w(this,this.EL);this.u4=CJ(function(){return new pC}); g.w(this,this.u4);this.Ub=CJ(function(){return new UE(R.EL,l,R.ZK)}); g.w(this,this.Ub);this.x8=CJ(function(){return new T1(l,M,R.Ub,R.Bz,R.BF,R.ZK,e)}); g.w(this,this.x8);this.dN=CJ(function(){return new Xm(R.ZK)}); g.w(this,this.dN);this.kh=new K3(OY,Zp,function(v,S,n,X){return yS(b.get(),v,S,n,X)},d,A,b,V,this.ZK,this.Bz); g.w(this,this.kh);this.sG=new zY(d,p,m,this.ZK,a,this.Bz,this.EL,this.iM);g.w(this,this.sG);var t=new Ct(l,this.sG,this.EL,this.Bz,this.Ru);this.Ka=CJ(function(){return t}); this.ZC=t;this.lx=new e8(d,A,this.Ka,this.Ru,this.EL,this.ZK,this.x8);g.w(this,this.lx);this.RY=new $R(d,A,this.VP,this.Ka,N);g.w(this,this.RY);this.jb=new In(this.ZK,d,A,p,this.Bz,this.RY,m,this.Tq);g.w(this,this.jb);this.GJ=CJ(function(){return new Ag(G,b,V,R.ZK,R.x8,R.EL)}); g.w(this,this.GJ);this.Tt=CJ(function(){return new PL}); g.w(this,this.Tt);this.sF=new Ih(a,this.Nt,this.ZK);g.w(this,this.sF);this.pE=new C3(a);g.w(this,this.pE);this.XH=new EY(a);g.w(this,this.XH);this.Jp=new xR(a,this.Ka,N);g.w(this,this.Jp);this.Pe=new DV(a,this.VP,this.EL,this.Bz,N);g.w(this,this.Pe);this.Za=new X2(a);g.w(this,this.Za);this.bx=new YR(a);g.w(this,this.bx);this.MV=new lo(a);g.w(this,this.MV);this.vN=CJ(function(){return new VH(l)}); g.w(this,this.vN);this.D6=new m5(a);g.w(this,this.D6);this.wN=new UY(a,this.Ru,this.EL,this.x8,this.Ka);g.w(this,this.wN);this.NI=CJ(function(){return new B1}); g.w(this,this.NI);this.WI=CJ(function(){return new kR(R.EL)}); g.w(this,this.WI);this.zJ=CJ(function(){return new r$(R.jb,d,H)}); g.w(this,this.zJ);this.sH=CJ(function(){return new ml(R.ZK,R.x8,R.Za,R.Ub)}); g.w(this,this.sH);this.jo=CJ(function(){return new CuQ(R.Nt,R.EL,R.x8,M,R.Ub,R.XH,R.MV,R.mW,R.ZK,m)}); g.w(this,this.jo);this.Sc=CJ(function(){return new PY(a,R.D6,R.Za,R.x8,R.Ub,R.dN,R.Tq,R.Bz,R.EL,R.u4,R.VP,R.iM,R.tW,R.mW,R.V4,R.ZK,R.vN,N,e)}); g.w(this,this.Sc);this.oC=new M1(a,this.Nh,H);g.w(this,this.oC);this.BE={Vm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.sG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.RY]]),fd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GJ],["SLOT_TYPE_FORECASTING",this.Tt],["SLOT_TYPE_IN_PLAYER",this.Tt], ["SLOT_TYPE_PLAYER_BYTES",this.Tt]]),ME:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.sF],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pE],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pE],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pE], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pE],["TRIGGER_TYPE_CLOSE_REQUESTED",this.XH],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Pe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Za],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.bx],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.MV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.D6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.wN],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wN],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wN],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wN]]),Ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.NI],["SLOT_TYPE_FORECASTING",this.NI],["SLOT_TYPE_IN_PLAYER",this.NI],["SLOT_TYPE_PLAYER_BYTES",this.WI]]), xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zJ],["SLOT_TYPE_FORECASTING",this.sH],["SLOT_TYPE_IN_PLAYER",this.jo],["SLOT_TYPE_PLAYER_BYTES",this.Sc]])};this.listeners=[M.get()];this.nG={jb:this.jb,qs:this.ZK.get(),Y8:this.mW.get(),kS:this.EL.get(),sG:this.sG,EM:H.get(),nB:this.Nh.get(),lA:this.sF,bu:M.get(),v$:this.Bz.get()}}; abb=function(a,l,m,T,y){g.k.call(this);var R=this,H=CJ(function(){return new TP(R.ZK)}); g.w(this,H);var b=CJ(function(){return new RO(H,R.ZK)}); g.w(this,b);var M=CJ(function(){return new sY}); g.w(this,M);var d=CJ(function(){return new v1(a)}); g.w(this,d);var A=CJ(function(){return new Hc(H,b,R.ZK)}); g.w(this,A);var P=CJ(function(){return new io}); g.w(this,P);this.Nt=CJ(function(){return new dv(l)}); g.w(this,this.Nt);this.mW=CJ(function(){return new ox(y)}); g.w(this,this.mW);this.iM=CJ(function(){return new EE(l)}); g.w(this,this.iM);this.VP=CJ(function(){return new oa(l)}); g.w(this,this.VP);this.Tq=CJ(function(){return new x3(l)}); g.w(this,this.Tq);this.tW=CJ(function(){return new Dr(l)}); g.w(this,this.tW);this.ZK=CJ(function(){return new uN(l)}); g.w(this,this.ZK);var G=CJ(function(){return new iI(T)}); g.w(this,G);var V=CJ(function(){return new G9(R.ZK)}); g.w(this,V);var p=CJ(function(){return new L3(H,A,b,R.ZK,V,null,null,null,null)}); g.w(this,p);this.V4=CJ(function(){return new G1(l)}); g.w(this,this.V4);this.Bz=CJ(function(){return new yH(l,P,R.ZK)}); g.w(this,this.Bz);var L=Ia({Bz:this.Bz,ZK:this.ZK,zE:V}),N=L.context,e=L.HE;this.BF=L.BF;this.EL=CJ(function(){return new RF(l,R.Bz,R.ZK)}); g.w(this,this.EL);this.u4=CJ(function(){return new pC}); g.w(this,this.u4);this.Ub=CJ(function(){return new UE(R.EL,l,R.ZK)}); g.w(this,this.Ub);this.x8=CJ(function(){return new T1(l,M,R.Ub,R.Bz,R.BF,R.ZK,e)}); g.w(this,this.x8);this.dN=CJ(function(){return new Xm(R.ZK)}); g.w(this,this.dN);this.kh=new K3(OY,Zp,function(v,S,n,X){return yS(b.get(),v,S,n,X)},d,A,b,V,this.ZK,this.Bz); g.w(this,this.kh);this.sG=new zY(d,p,m,this.ZK,a,this.Bz,this.EL,this.iM);g.w(this,this.sG);var t=new Ct(l,this.sG,this.EL,this.Bz);this.Ka=CJ(function(){return t}); this.ZC=t;this.RY=new $R(d,A,this.VP,this.Ka,N);g.w(this,this.RY);this.jb=new In(this.ZK,d,A,p,this.Bz,this.RY,m,this.Tq);g.w(this,this.jb);this.GJ=CJ(function(){return new Ag(G,b,V,R.ZK,R.x8,R.EL)}); g.w(this,this.GJ);this.Tt=CJ(function(){return new PL}); g.w(this,this.Tt);this.sF=new Ih(a,this.Nt,this.ZK);g.w(this,this.sF);this.pE=new C3(a);g.w(this,this.pE);this.Jp=new xR(a,this.Ka,N);g.w(this,this.Jp);this.Pe=new DV(a,this.VP,this.EL,this.Bz,N);g.w(this,this.Pe);this.Za=new X2(a);g.w(this,this.Za);this.bx=new YR(a);g.w(this,this.bx);this.vN=CJ(function(){return new VH(l)}); g.w(this,this.vN);this.D6=new m5(a);g.w(this,this.D6);this.NI=CJ(function(){return new B1}); g.w(this,this.NI);this.WI=CJ(function(){return new kR(R.EL)}); g.w(this,this.WI);this.zJ=CJ(function(){return new r$(R.jb,d,H)}); g.w(this,this.zJ);this.sH=CJ(function(){return new ml(R.ZK,R.x8,R.Za,R.Ub)}); g.w(this,this.sH);this.Ya=CJ(function(){return new lcw(R.Nt,R.EL,R.x8,M,m,R.ZK)}); g.w(this,this.Ya);this.Sc=CJ(function(){return new PY(a,R.D6,R.Za,R.x8,R.Ub,R.dN,R.Tq,R.Bz,R.EL,R.u4,R.VP,R.iM,R.tW,R.mW,R.V4,R.ZK,R.vN,N,e)}); g.w(this,this.Sc);this.BE={Vm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.sG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.RY]]),fd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GJ],["SLOT_TYPE_FORECASTING",this.Tt],["SLOT_TYPE_IN_PLAYER",this.Tt],["SLOT_TYPE_PLAYER_BYTES",this.Tt]]),ME:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.sF],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pE],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pE],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pE],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pE],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pe],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Pe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Za],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.bx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.D6]]),Ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.NI],["SLOT_TYPE_ABOVE_FEED",this.NI],["SLOT_TYPE_FORECASTING",this.NI],["SLOT_TYPE_IN_PLAYER",this.NI],["SLOT_TYPE_PLAYER_BYTES",this.WI]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zJ],["SLOT_TYPE_FORECASTING",this.sH],["SLOT_TYPE_IN_PLAYER", this.Ya],["SLOT_TYPE_PLAYER_BYTES",this.Sc]])};this.listeners=[M.get()];this.nG={jb:this.jb,qs:this.ZK.get(),Y8:this.mW.get(),kS:this.EL.get(),sG:this.sG,EM:H.get(),nB:null,lA:this.sF,bu:M.get(),v$:this.Bz.get()}}; lbb=function(a,l,m,T,y){g.k.call(this);var R=this,H=CJ(function(){return new TP(R.ZK)}); g.w(this,H);var b=CJ(function(){return new RO(H,R.ZK)}); g.w(this,b);var M=CJ(function(){return new sY}); g.w(this,M);var d=CJ(function(){return new v1(a)}); g.w(this,d);var A=CJ(function(){return new Hc(H,b,R.ZK)}); g.w(this,A);var P=CJ(function(){return new io}); g.w(this,P);this.Z0=CJ(function(){return new Ykb(l)}); g.w(this,this.Z0);this.Nt=CJ(function(){return new dv(l)}); g.w(this,this.Nt);this.mW=CJ(function(){return new ox(y)}); g.w(this,this.mW);this.iM=CJ(function(){return new EE(l)}); g.w(this,this.iM);this.VP=CJ(function(){return new oa(l)}); g.w(this,this.VP);this.Tq=CJ(function(){return new x3(l)}); g.w(this,this.Tq);this.tW=CJ(function(){return new Dr(l)}); g.w(this,this.tW);this.ZK=CJ(function(){return new uN(l)}); g.w(this,this.ZK);var G=CJ(function(){return new iI(T)}); g.w(this,G);var V=CJ(function(){return new G9(R.ZK)}); g.w(this,V);var p=CJ(function(){return new L3(H,A,b,R.ZK,V,null,null,null,null)}); g.w(this,p);this.V4=CJ(function(){return new G1(l)}); g.w(this,this.V4);this.Bz=CJ(function(){return new yH(l,P,R.ZK)}); g.w(this,this.Bz);var L=Ia({Bz:this.Bz,ZK:this.ZK,zE:V}),N=L.context,e=L.HE;this.BF=L.BF;this.EL=CJ(function(){return new RF(l,R.Bz,R.ZK)}); g.w(this,this.EL);this.u4=CJ(function(){return new pC}); g.w(this,this.u4);this.Ub=CJ(function(){return new UE(R.EL,l,R.ZK)}); g.w(this,this.Ub);this.x8=CJ(function(){return new T1(l,M,R.Ub,R.Bz,R.BF,R.ZK,e)}); g.w(this,this.x8);this.dN=CJ(function(){return new Xm(R.ZK)}); g.w(this,this.dN);this.kh=new K3(zEH,Zp,function(v,S,n,X){return aWw(b.get(),v,S,n,X)},d,A,b,V,this.ZK,this.Bz); g.w(this,this.kh);this.sG=new zY(d,p,m,this.ZK,a,this.Bz,this.EL,this.iM);g.w(this,this.sG);var t=new Ct(l,this.sG,this.EL,this.Bz);this.Ka=CJ(function(){return t}); this.ZC=t;this.RY=new $R(d,A,this.VP,this.Ka,N);g.w(this,this.RY);this.jb=new In(this.ZK,d,A,p,this.Bz,this.RY,m,this.Tq);g.w(this,this.jb);this.GJ=CJ(function(){return new Ag(G,b,V,R.ZK,R.x8,R.EL)}); g.w(this,this.GJ);this.Tt=CJ(function(){return new PL}); g.w(this,this.Tt);this.sF=new Ih(a,this.Nt,this.ZK);g.w(this,this.sF);this.pE=new C3(a);g.w(this,this.pE);this.Jp=new xR(a,this.Ka,N);g.w(this,this.Jp);this.Pe=new DV(a,this.VP,this.EL,this.Bz,N);g.w(this,this.Pe);this.Za=new X2(a);g.w(this,this.Za);this.bx=new YR(a);g.w(this,this.bx);this.vN=CJ(function(){return new VH(l)}); g.w(this,this.vN);this.D6=new m5(a);g.w(this,this.D6);this.NI=CJ(function(){return new B1}); g.w(this,this.NI);this.WI=CJ(function(){return new kR(R.EL)}); g.w(this,this.WI);this.zJ=CJ(function(){return new r$(R.jb,d,H)}); g.w(this,this.zJ);this.sH=CJ(function(){return new ml(R.ZK,R.x8,R.Za,R.Ub)}); g.w(this,this.sH);this.Sc=CJ(function(){return new PY(a,R.D6,R.Za,R.x8,R.Ub,R.dN,R.Tq,R.Bz,R.EL,R.u4,R.VP,R.iM,R.tW,R.mW,R.V4,R.ZK,R.vN,N,e)}); g.w(this,this.Sc);this.jF=CJ(function(){return new ob7(R.Nt,R.EL,R.x8,M,R.Z0,m,R.Bz)}); g.w(this,this.jF);this.BE={Vm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.sG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.RY]]),fd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GJ],["SLOT_TYPE_FORECASTING",this.Tt],["SLOT_TYPE_IN_PLAYER",this.Tt],["SLOT_TYPE_PLAYER_BYTES",this.Tt]]),ME:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.sF],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pE],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pE],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pE],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pE],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pe],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Pe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Za],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.bx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.D6]]),Ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.NI],["SLOT_TYPE_FORECASTING",this.NI],["SLOT_TYPE_IN_PLAYER",this.NI],["SLOT_TYPE_PLAYER_BYTES",this.WI]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zJ],["SLOT_TYPE_FORECASTING",this.sH],["SLOT_TYPE_IN_PLAYER",this.jF],["SLOT_TYPE_PLAYER_BYTES", this.Sc]])};this.listeners=[M.get()];this.nG={jb:this.jb,qs:this.ZK.get(),Y8:this.mW.get(),kS:this.EL.get(),sG:this.sG,EM:H.get(),nB:null,lA:this.sF,bu:M.get(),v$:this.Bz.get()}}; mkt=function(a,l,m,T,y){g.k.call(this);var R=this,H=CJ(function(){return new TP(R.ZK)}); g.w(this,H);var b=CJ(function(){return new RO(H,R.ZK)}); g.w(this,b);var M=CJ(function(){return new sY}); g.w(this,M);var d=CJ(function(){return new v1(a)}); g.w(this,d);var A=CJ(function(){return new Hc(H,b,R.ZK)}); g.w(this,A);var P=CJ(function(){return new io}); g.w(this,P);this.Z0=CJ(function(){return new Ykb(l)}); g.w(this,this.Z0);this.Nt=CJ(function(){return new dv(l)}); g.w(this,this.Nt);this.mW=CJ(function(){return new ox(y)}); g.w(this,this.mW);this.iM=CJ(function(){return new EE(l)}); g.w(this,this.iM);this.VP=CJ(function(){return new oa(l)}); g.w(this,this.VP);this.Tq=CJ(function(){return new x3(l)}); g.w(this,this.Tq);this.tW=CJ(function(){return new Dr(l)}); g.w(this,this.tW);this.ZK=CJ(function(){return new uN(l)}); g.w(this,this.ZK);var G=CJ(function(){return new iI(T)}); g.w(this,G);var V=CJ(function(){return new G9(R.ZK)}); g.w(this,V);this.V4=CJ(function(){return new G1(l)}); g.w(this,this.V4);this.Bz=CJ(function(){return new yH(l,P,R.ZK)}); g.w(this,this.Bz);var p=Ia({Bz:this.Bz,ZK:this.ZK,zE:V}),L=p.context,N=p.HE;this.BF=p.BF;this.Ru=CJ(function(){return new PM(l,R.ZK,R.x8)}); g.w(this,this.Ru);this.vN=CJ(function(){return new VH(l)}); g.w(this,this.vN);this.EL=CJ(function(){return new RF(l,R.Bz,R.ZK)}); g.w(this,this.EL);this.u4=CJ(function(){return new pC}); g.w(this,this.u4);p=CJ(function(){return new L3(H,A,b,R.ZK,V,null,R.EL,R.lx,R.wN,3)}); g.w(this,p);this.dN=CJ(function(){return new Xm(R.ZK)}); this.Ub=CJ(function(){return new UE(R.EL,l,R.ZK)}); g.w(this,this.Ub);this.x8=CJ(function(){return new T1(l,M,R.Ub,R.Bz,R.BF,R.ZK,N)}); g.w(this,this.x8);this.sG=new zY(d,p,m,this.ZK,a,this.Bz,this.EL,this.iM);g.w(this,this.sG);var e=new Ct(l,this.sG,this.EL,this.Bz,this.Ru);this.Ka=CJ(function(){return e}); this.ZC=e;this.kh=new K3(vkQ,Zp,function(t,v,S,n){return aWw(b.get(),t,v,S,n)},d,A,b,V,this.ZK,this.Bz); g.w(this,this.kh);this.lx=new e8(d,A,this.Ka,this.Ru,this.EL,this.ZK,this.x8,this.vN);g.w(this,this.lx);this.RY=new $R(d,A,this.VP,this.Ka,L);g.w(this,this.RY);this.jb=new In(this.ZK,d,A,p,this.Bz,this.RY,m,this.Tq);g.w(this,this.jb);this.GJ=CJ(function(){return new Ag(G,b,V,R.ZK,R.x8,R.EL,R.vN)}); g.w(this,this.GJ);this.Tt=CJ(function(){return new PL}); g.w(this,this.Tt);this.sF=new Ih(a,this.Nt,this.ZK);g.w(this,this.sF);this.pE=new C3(a);g.w(this,this.pE);this.Jp=new xR(a,this.Ka,L);g.w(this,this.Jp);this.Pe=new DV(a,this.VP,this.EL,this.Bz,L);g.w(this,this.Pe);this.Ht=new uW(a,this.Bz);g.w(this,this.Ht);this.wN=new UY(a,this.Ru,this.EL,this.x8,this.Ka);g.w(this,this.wN);this.Za=new X2(a);g.w(this,this.Za);this.bx=new YR(a);g.w(this,this.bx);this.D6=new m5(a);g.w(this,this.D6);this.NI=CJ(function(){return new B1}); g.w(this,this.NI);this.WI=CJ(function(){return new kR(R.EL)}); g.w(this,this.WI);this.zJ=CJ(function(){return new r$(R.jb,d,H)}); g.w(this,this.zJ);this.sH=CJ(function(){return new ml(R.ZK,R.x8,R.Za,R.Ub)}); g.w(this,this.sH);this.Sc=CJ(function(){return new AV(a,R.D6,R.Za,R.Bz,R.vN,R.EL,R.u4,R.x8,P,R.Ru,R.Ub,R.dN,R.Tq,R.VP,R.iM,R.tW,R.mW,R.V4,R.ZK,M,L,N)}); g.w(this,this.Sc);this.jo=CJ(function(){return new xl3(R.Nt,R.EL,R.x8,M,R.Z0,m,R.ZK,R.Bz)}); g.w(this,this.jo);this.BE={Vm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.kh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.sG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.RY]]),fd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.GJ],["SLOT_TYPE_FORECASTING",this.Tt],["SLOT_TYPE_IN_PLAYER",this.Tt],["SLOT_TYPE_PLAYER_BYTES",this.Tt]]),ME:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.sF],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pE],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pE],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pE],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pE],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pE],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Jp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Pe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ht],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ht],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Za],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Jp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.bx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.D6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.wN],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wN],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wN],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wN]]),Ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.NI],["SLOT_TYPE_FORECASTING",this.NI],["SLOT_TYPE_IN_PLAYER",this.NI],["SLOT_TYPE_PLAYER_BYTES",this.WI]]),xn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zJ],["SLOT_TYPE_FORECASTING",this.sH],["SLOT_TYPE_PLAYER_BYTES",this.Sc],["SLOT_TYPE_IN_PLAYER",this.jo]])};this.listeners=[M.get()]; this.nG={jb:this.jb,qs:this.ZK.get(),Y8:this.mW.get(),kS:this.EL.get(),sG:this.sG,EM:H.get(),nB:null,lA:this.sF,bu:M.get(),v$:this.Bz.get()}}; yYR=function(a,l,m,T){function y(){return R.L} g.k.call(this);var R=this;a.Y().experiments.XO("html5_dispose_of_manager_before_dependency")?(this.T=TIt(y,a,l,m,T),this.L=(new EF(this.T)).Z(),g.w(this,this.L),g.w(this,this.T)):(this.T=TIt(y,a,l,m,T),g.w(this,this.T),this.L=(new EF(this.T)).Z(),g.w(this,this.L))}; WM=function(a){return a.T.nG}; TIt=function(a,l,m,T,y){try{var R=l.Y();if(g.aX(R))var H=new Usb(a,l,m,T,y);else if(g.mS(R))H=new rh3(a,l,m,T,y);else if(oT(R))H=new abb(a,l,m,T,y);else if(g.IE(R))H=new lbb(a,l,m,T,y);else if(g.kN(R))H=new mkt(a,l,m,T,y);else throw new TypeError("Unknown web interface");return H}catch(b){return H=l.Y(),Vu("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:H.T.cplatform,interface:H.T.c,wvO:H.T.cver,QRj:H.T.ctheme,Ywj:H.T.cplayer,VE8:H.playerStyle}),new nJz(a,l,m,T,y)}}; R2Q=function(a){Xf.call(this,a)}; Hst=function(a,l,m,T,y){yu.call(this,a,{U:"div",S:"ytp-ad-timed-pie-countdown-container",X:[{U:"svg",S:"ytp-ad-timed-pie-countdown",G:{viewBox:"0 0 20 20"},X:[{U:"circle",S:"ytp-ad-timed-pie-countdown-background",G:{r:"10",cx:"10",cy:"10"}},{U:"circle",S:"ytp-ad-timed-pie-countdown-inner",G:{r:"5",cx:"10",cy:"10"}},{U:"circle",S:"ytp-ad-timed-pie-countdown-outer",G:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",l,m,T,y);this.j=this.OL("ytp-ad-timed-pie-countdown-container");this.Z=this.OL("ytp-ad-timed-pie-countdown-inner"); this.C=this.OL("ytp-ad-timed-pie-countdown-outer");this.L=Math.ceil(2*Math.PI*5);this.hide()}; qG7=function(a,l,m,T,y,R){Wk.call(this,a,{U:"div",S:"ytp-ad-action-interstitial",G:{tabindex:"0"},X:[{U:"div",S:"ytp-ad-action-interstitial-background-container"},{U:"div",S:"ytp-ad-action-interstitial-slot",X:[{U:"div",S:"ytp-ad-action-interstitial-instream-info"},{U:"div",S:"ytp-ad-action-interstitial-card",X:[{U:"div",S:"ytp-ad-action-interstitial-image-container"},{U:"div",S:"ytp-ad-action-interstitial-headline-container"},{U:"div",S:"ytp-ad-action-interstitial-description-container"},{U:"div", S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",l,m,T);this.mU=y;this.H8=R;this.navigationEndpoint=this.T=this.skipButton=this.L=this.actionButton=null;this.AM=this.OL("ytp-ad-action-interstitial-instream-info");this.Cx=this.OL("ytp-ad-action-interstitial-image-container");this.N=new o8(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,"ytp-ad-action-interstitial-image");g.w(this,this.N);this.N.DK(this.Cx);this.hM=this.OL("ytp-ad-action-interstitial-headline-container"); this.C=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,"ytp-ad-action-interstitial-headline");g.w(this,this.C);this.C.DK(this.hM);this.lT=this.OL("ytp-ad-action-interstitial-description-container");this.Z=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,"ytp-ad-action-interstitial-description");g.w(this,this.Z);this.Z.DK(this.lT);this.rb=this.OL("ytp-ad-action-interstitial-background-container");this.St=new o8(this.api,this.layoutId,this.interactionLoggingClientData, this.Y8,"ytp-ad-action-interstitial-background",!0);g.w(this,this.St);this.St.DK(this.rb);this.wb=this.OL("ytp-ad-action-interstitial-action-button-container");this.slot=this.OL("ytp-ad-action-interstitial-slot");this.MA=this.OL("ytp-ad-action-interstitial-card");this.j=new zO;g.w(this,this.j);this.hide()}; bsP=function(a){var l=g.ud("html5-video-player");l&&g.AM(l,"ytp-ad-display-override",a)}; dkP=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-ad-overlay-slot",X:[{U:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",l,m,T);this.N=[];this.rb=this.hM=this.j=this.wb=this.AM=null;this.St=!1;this.C=null;this.lT=0;a=this.OL("ytp-ad-overlay-container");this.Cx=new d_(a,45E3,6E3,.3,.4);g.w(this,this.Cx);this.Z=g0t(this);g.w(this,this.Z);this.Z.DK(a);this.L=M0R(this);g.w(this,this.L);this.L.DK(a);this.T=is5(this);g.w(this,this.T);this.T.DK(a);this.hide()}; g0t=function(a){var l=new g.Z7({U:"div",S:"ytp-ad-text-overlay",X:[{U:"div",S:"ytp-ad-overlay-ad-info-button-container"},{U:"div",S:"ytp-ad-overlay-close-container",X:[{U:"button",S:"ytp-ad-overlay-close-button",X:[Jj(jKR)]}]},{U:"div",S:"ytp-ad-overlay-title",Lx:"{{title}}"},{U:"div",S:"ytp-ad-overlay-desc",Lx:"{{description}}"},{U:"div",uT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Lx:"{{displayUrl}}"}]});a.W(l.OL("ytp-ad-overlay-title"),"click",function(m){cM(a,l.element,m)}); a.W(l.OL("ytp-ad-overlay-link"),"click",function(m){cM(a,l.element,m)}); a.W(l.OL("ytp-ad-overlay-close-container"),"click",a.UX);l.hide();return l}; M0R=function(a){var l=new g.Z7({U:"div",uT:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],X:[{U:"div",S:"ytp-ad-overlay-ad-info-button-container"},{U:"div",S:"ytp-ad-overlay-close-container",X:[{U:"button",S:"ytp-ad-overlay-close-button",X:[Jj(jKR)]}]},{U:"div",S:"ytp-ad-overlay-text-image",X:[{U:"img",G:{src:"{{imageUrl}}"}}]},{U:"div",S:"ytp-ad-overlay-title",Lx:"{{title}}"},{U:"div",S:"ytp-ad-overlay-desc",Lx:"{{description}}"},{U:"div",uT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Lx:"{{displayUrl}}"}]});a.W(l.OL("ytp-ad-overlay-title"),"click",function(m){cM(a,l.element,m)}); a.W(l.OL("ytp-ad-overlay-link"),"click",function(m){cM(a,l.element,m)}); a.W(l.OL("ytp-ad-overlay-close-container"),"click",a.UX);a.W(l.OL("ytp-ad-overlay-text-image"),"click",a.O5x);l.hide();return l}; is5=function(a){var l=new g.Z7({U:"div",S:"ytp-ad-image-overlay",X:[{U:"div",S:"ytp-ad-overlay-ad-info-button-container"},{U:"div",S:"ytp-ad-overlay-close-container",X:[{U:"button",S:"ytp-ad-overlay-close-button",X:[Jj(jKR)]}]},{U:"div",S:"ytp-ad-overlay-image",X:[{U:"img",G:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.W(l.OL("ytp-ad-overlay-image"),"click",function(m){cM(a,l.element,m)}); a.W(l.OL("ytp-ad-overlay-close-container"),"click",a.UX);l.hide();return l}; AY7=function(a,l){if(l){var m=g.I(l,B_)||null;m==null?g.kt(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(l=g.ud("video-ads ytp-ad-module")||null,l==null?g.kt(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.hM=new g.Z7({U:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.w(a,a.hM),a.hM.DK(l),l=new lG(a.api,a.layoutId,a.interactionLoggingClientData,a.Y8,a.hM.element,!1),g.w(a,l),l.init(dx("ad-info-hover-text-button"),m,a.macros), a.C?(l.DK(a.C,0),l.subscribe("f",a.Vtj,a),l.subscribe("e",a.t4,a),a.W(a.C,"click",a.BbO),a.W(g.ud("ytp-ad-button",l.element),"click",function(){var T;if(g.I((T=g.I(m.button,g.nl))==null?void 0:T.serviceEndpoint,C4Q))a.St=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}),a.rb=l):g.kt(Error("Ad info button container within overlay ad was not present."))))}else g.nU(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; GTb=function(a,l){if(Pxb(a,LC)||a.api.isMinimized())return!1;var m=ck(l.title),T=ck(l.description);if(g.Vk(m)||g.Vk(T))return!1;a.createServerVe(a.Z.element,l.trackingParams||null);a.Z.updateValue("title",ck(l.title));a.Z.updateValue("description",ck(l.description));a.Z.updateValue("displayUrl",ck(l.displayUrl));l.navigationEndpoint&&g.tI(a.N,l.navigationEndpoint);a.Z.show();a.Cx.start();a.logVisibility(a.Z.element,!0);a.W(a.Z.element,"mouseover",function(){a.lT++}); return!0}; V07=function(a,l){if(Pxb(a,LC)||a.api.isMinimized())return!1;var m=ck(l.title),T=ck(l.description);if(g.Vk(m)||g.Vk(T))return!1;a.createServerVe(a.L.element,l.trackingParams||null);a.L.updateValue("title",ck(l.title));a.L.updateValue("description",ck(l.description));a.L.updateValue("displayUrl",ck(l.displayUrl));a.L.updateValue("imageUrl",Rb7(l.image));l.navigationEndpoint&&g.tI(a.N,l.navigationEndpoint);a.wb=l.imageNavigationEndpoint||null;a.L.show();a.Cx.start();a.logVisibility(a.L.element,!0); a.W(a.L.element,"mouseover",function(){a.lT++}); return!0}; phP=function(a,l){if(a.api.isMinimized())return!1;var m=H2w(l.image),T=m;m.width0?(l=new nu(a.api,a.T), l.DK(a.playerOverlay),g.w(a,l)):(a=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(l)),g.kt(a))}}else g.kt(Error("addCommonComponents() needs to be called before starting countdown."))}; Osz=function(a){function l(m){return{toString:function(){return m()}}} a.macros.SURVEY_LOCAL_TIME_EPOCH_S=l(function(){var m=new Date;return(Math.round(m.valueOf()/1E3)+-1*m.getTimezoneOffset()*60).toString()}); a.macros.SURVEY_ELAPSED_MS=l(function(){return(Date.now()-a.Z).toString()})}; KRd=function(a,l,m,T,y){ee.call(this,a,l,m,T,"survey-question-multi-select");this.lT=y;this.noneOfTheAbove=null;this.submitEndpoints=[];this.C=null;this.hide()}; z23=function(a,l,m){a.noneOfTheAbove=new QK7(a.api,a.layoutId,a.interactionLoggingClientData,a.Y8);a.noneOfTheAbove.DK(a.answers);a.noneOfTheAbove.init(dx("survey-none-of-the-above"),l,m)}; $kH=function(a){a.L.forEach(function(l){l.T.toggleButton(!1)}); v0R(a,!0)}; v0R=function(a,l){var m=a.j;a=sKz(a);l=l===void 0?!1:l;m.T&&(a?m.T.hide():m.T.show(),l&&m.T instanceof N4&&!m.T.j&&r7t(m.T,!1));m.L&&(a?m.L.show():m.L.hide())}; sKz=function(a){return a.L.some(function(l){return l.T.isToggled()})||a.noneOfTheAbove.button.isToggled()}; Fw=function(a,l,m,T,y){ee.call(this,a,l,m,T,"survey-question-single-select",function(H){R.api.Y().V("supports_multi_step_on_desktop")&&y([H])}); var R=this;this.hide()}; h6=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-ad-survey",X:[{U:"div",S:"ytp-ad-survey-questions"}]},"survey",l,m,T);this.questions=[];this.L=[];this.conditioningRules=[];this.T=0;this.C=this.OL("ytp-ad-survey-questions");this.api.Y().V("fix_survey_color_contrast_on_destop")&&this.OL("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Y().V("web_enable_speedmaster")&&this.OL("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; JYH=function(a,l){var m=a.L[l],T;(T=a.Z)==null||T.dispose();g.I(m,fl)?SGR(a,g.I(m,fl),a.macros):g.I(m,S_)&&fbQ(a,g.I(m,S_),a.macros);a.T=l}; SGR=function(a,l,m){var T=new Fw(a.api,a.layoutId,a.interactionLoggingClientData,a.Y8,a.j.bind(a));T.DK(a.C);T.init(dx("survey-question-single-select"),l,m);a.api.Y().V("supports_multi_step_on_desktop")?a.Z=T:a.questions.push(T);g.w(a,T)}; fbQ=function(a,l,m){var T=new KRd(a.api,a.layoutId,a.interactionLoggingClientData,a.Y8,a.j.bind(a));T.DK(a.C);T.init(dx("survey-question-multi-select"),l,m);a.api.Y().V("supports_multi_step_on_desktop")?a.Z=T:a.questions.push(T);g.w(a,T)}; Og=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-ad-survey-interstitial",X:[{U:"div",S:"ytp-ad-survey-interstitial-contents",X:[{U:"div",S:"ytp-ad-survey-interstitial-logo",X:[{U:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{U:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",l,m,T);this.T=this.actionButton=null;this.interstitial=this.OL("ytp-ad-survey-interstitial");this.L=this.OL("ytp-ad-survey-interstitial-contents");this.text=this.OL("ytp-ad-survey-interstitial-text"); this.logoImage=this.OL("ytp-ad-survey-interstitial-logo-image");this.transition=new g.q4(this,500,!1,300);g.w(this,this.transition)}; BIp=function(a,l){l=l&&ED(l)||"";if(g.Vk(l))g.nU(Error("Found ThumbnailDetails without valid image URL"));else{var m=a.style;a=a.style.cssText;var T=document.implementation.createHTMLDocument("").createElement("DIV");T.style.cssText=a;a=$2z(T.style);m.cssText=[a,'background-image:url("'+l+'");'].join("")}}; kTH=function(a){var l=g.ud("html5-video-player");l&&g.AM(l,"ytp-ad-display-override",a)}; KC=function(a,l,m,T,y,R){R=R===void 0?0:R;yu.call(this,a,{U:"div",S:"ytp-preview-ad",X:[{U:"div",S:"ytp-preview-ad__text"}]},"preview-ad",l,m,T,y);var H=this;this.lT=R;this.L=0;this.j=-1;this.Z=this.OL("ytp-preview-ad__text");switch(this.lT){case 1:this.Z.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.q4(this,400,!1,100,function(){H.hide()}); g.w(this,this.transition);this.hide()}; z1=function(a,l,m,T){Wk.call(this,a,{U:"img",S:"ytp-ad-avatar"},"ad-avatar",l,m,T);this.hide()}; n07=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; vM=function(a,l,m,T,y,R){y=y===void 0?!1:y;R=R===void 0?!1:R;Wk.call(this,a,{U:"button",S:"ytp-ad-button-vm"},"ad-button",l,m,T);this.buttonText=this.buttonIcon=null;this.hide();this.T=y;this.L=R}; wh7=function(a,l,m,T,y){yu.call(this,a,{U:"div",uT:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],X:[{U:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",X:[{U:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",l,m,T,y);this.startMilliseconds=0;this.adAvatar=new z1(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.adAvatar);Rj(this.element,this.adAvatar.element,0);this.headline=new s6(this.api,this.layoutId, this.interactionLoggingClientData,this.Y8);g.w(this,this.headline);this.headline.DK(this.OL("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.description);this.description.DK(this.OL("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new vM(this.api, this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.adButton);this.adButton.DK(this.element);this.hide()}; $h=function(a,l,m,T){Wk.call(this,a,{U:"button",S:"ytp-skip-ad-button",X:[{U:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",l,m,T);var y=this;this.L=!1;this.j=this.OL("ytp-skip-ad-button__text");this.transition=new g.q4(this,500,!1,100,function(){y.hide()}); g.w(this,this.transition);this.T=new d_(this.element,15E3,5E3,.5,.5,!0);g.w(this,this.T);this.hide()}; IbP=function(a,l,m,T,y){yu.call(this,a,{U:"div",S:"ytp-skip-ad"},"skip-ad",l,m,T,y);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Z=new $h(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.Z);this.Z.DK(this.element);this.hide()}; sg=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",l,m,T);this.hide()}; Se=function(a,l,m,T,y){Wk.call(this,a,{U:"div",S:"ytp-ad-player-overlay-layout",X:[{U:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{U:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{U:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{U:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",l,m,T);this.L=y;this.hM=this.OL("ytp-ad-player-overlay-layout__player-card-container");this.T=this.OL("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.OL("ytp-ad-player-overlay-layout__skip-or-preview-container");this.lT=this.OL("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Cx3=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-ad-grid-card-text",X:[{U:"div",S:"ytp-ad-grid-card-text__metadata",X:[{U:"div",S:"ytp-ad-grid-card-text__metadata__headline"},{U:"div",S:"ytp-ad-grid-card-text__metadata__description",X:[{U:"div",S:"ytp-ad-grid-card-text__metadata__description__line"},{U:"div",S:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{U:"div",S:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",l,m,T);this.headline=new s6(this.api,this.layoutId,this.interactionLoggingClientData, this.Y8);g.w(this,this.headline);this.headline.DK(this.OL("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!0);g.w(this,this.moreInfoButton);this.moreInfoButton.DK(this.OL("ytp-ad-grid-card-text__button"))}; fC=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",l,m,T);this.T=[]}; J6=function(a,l,m,T,y,R,H){yu.call(this,a,R,H,l,m,T,y);this.playerProgressOffsetMs=0;this.L=!1}; E0t=function(a){var l=g.ud("html5-video-player");l&&g.AM(l,"ytp-ad-display-override",a)}; o0z=function(a,l,m,T,y){J6.call(this,a,l,m,T,y,{U:"div",S:"ytp-display-underlay-text-grid-cards",X:[{U:"div",S:"ytp-display-underlay-text-grid-cards__content_container",X:[{U:"div",S:"ytp-display-underlay-text-grid-cards__content_container__header",X:[{U:"div",S:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{U:"div",S:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{U:"div",S:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {U:"div",S:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new fC(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.adGridCardCollection);this.adGridCardCollection.DK(this.OL("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.adButton);this.adButton.DK(this.OL("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Z=this.OL("ytp-display-underlay-text-grid-cards__content_container");this.j=this.OL("ytp-display-underlay-text-grid-cards__content_container__header")}; BM=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-ad-details-line"},"ad-details-line",l,m,T);this.T=[];this.hide()}; kh=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-image-background",X:[{U:"img",S:"ytp-image-background-image"}]},"image-background",l,m,T);this.hide()}; xkP=function(a,l,m,T,y){yu.call(this,a,{U:"svg",S:"ytp-timed-pie-countdown",G:{viewBox:"0 0 20 20"},X:[{U:"circle",S:"ytp-timed-pie-countdown__background",G:{r:"10",cx:"10",cy:"10"}},{U:"circle",S:"ytp-timed-pie-countdown__inner",G:{r:"5",cx:"10",cy:"10"}},{U:"circle",S:"ytp-timed-pie-countdown__outer",G:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",l,m,T,y);this.Z=this.OL("ytp-timed-pie-countdown__inner");this.L=Math.ceil(2*Math.PI*5);this.hide()}; nC=function(a,l,m,T){Wk.call(this,a,{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout",G:{tabindex:"0"},X:[{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content",X:[{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",X:[{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{U:"div",S:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",l,m,T);this.L=null;this.j=this.OL("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Z=new zO;g.w(this,this.Z);this.hide()}; Dk5=function(a){var l=g.ud("html5-video-player");l&&g.AM(l,"ytp-ad-display-override",a)}; uv3=function(a){if(!a.adAvatar||!g.I(a.adAvatar,wv))return g.kt(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!a.headline)return g.kt(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!a.adBadge||!g.I(a.adBadge,IF))return g.kt(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!a.adButton||!g.I(a.adButton,CC))return g.kt(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!a.adInfoRenderer|| !g.I(a.adInfoRenderer,B_))return g.kt(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;a=a.durationMilliseconds||0;return typeof a!=="number"||a<=0?(g.kt(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+a)),!1):!0}; Eg=function(a,l){l=l===void 0?2:l;g.Aj.call(this);this.api=a;this.T=null;this.Gq=new zO(this);g.w(this,this.Gq);this.L=a17;this.Gq.W(this.api,"presentingplayerstatechange",this.HW);this.T=this.Gq.W(this.api,"progresssync",this.ex);this.Bd=l;this.Bd===1&&this.ex()}; oF=function(a,l,m){Xf.call(this,a);this.api=a;this.Y8=l;this.L={};a=new g.x({U:"div",uT:["video-ads","ytp-ad-module"]});g.w(this,a);Ol&&g.M$(a.element,"ytp-ads-tiny-mode");this.K=new NQ(a.element);g.w(this,this.K);g.fq(this.api,a.element,4);Rh(m)&&(m=new g.x({U:"div",uT:["ytp-ad-underlay"]}),g.w(this,m),this.Z=new NQ(m.element),g.w(this,this.Z),g.fq(this.api,m.element,0));g.w(this,hbp())}; Xhb=function(a,l){a=g.aV(a.L,l.id,null);a==null&&g.nU(Error("Component not found for element id: "+l.id));return a||null}; YGl=function(a){g.P3.call(this,a);var l=this;this.L=null;this.created=!1;this.Z=a.Y().V("h5_use_refactored_get_ad_break")?new BJP(this.player):new wA(this.player);this.j=function(){if(l.L!=null)return l.L;var T=new ojQ({lA:WM(l.T).lA,v$:WM(l.T).v$,D:l.player,qs:WM(l.T).qs,x8:l.T.T.x8,bu:WM(l.T).bu,tW:l.T.T.tW});l.L=T.r$;return l.L}; this.T=new yYR(this.player,this,this.Z,this.j);g.w(this,this.T);var m=a.Y();!hZ(m)||g.kN(m)||oT(m)||(g.w(this,new oF(a,WM(this.T).Y8,WM(this.T).qs)),g.w(this,new R2Q(a)))}; Ukw=function(a){a.created!==a.loaded&&Vu("Created and loaded are out of sync")}; lRs=function(a){g.P3.prototype.load.call(a);var l=WM(a.T).qs;try{a.player.getRootNode().classList.add("ad-created")}catch(M){Vu(M instanceof Error?M:String(M))}var m=a.player.getVideoData(1),T=m&&m.videoId||"",y=m&&m.getPlayerResponse()||{},R=(!a.player.Y().experiments.XO("debug_ignore_ad_placements")&&y&&y.adPlacements||[]).map(function(M){return M.adPlacementRenderer}),H=((y==null?void 0:y.adSlots)||[]).map(function(M){return g.I(M,Cl)}); y=y.playerConfig&&y.playerConfig.daiConfig&&y.playerConfig.daiConfig.enableDai||!1;m&&m.Fl();R=rYw(R,H,l,WM(a.T).EM);H=m&&m.clientPlaybackNonce||"";m=m&&m.MH||!1;if(eS(l,!0)&&m){var b;l={};(b=a.player.getVideoData())==null||b.Tu("p_cpb",(l.cc=H,l))}b=1E3*a.player.getDuration(1);aRs(a);a.T.T.ZC.Vy(H,b,m,R.tB,R.Yz,R.tB,y,T)}; aRs=function(a){var l,m;if(m=(l=a.player.getVideoData(1))==null||!l.MH)l=a.player.Y(),m=hZ(l)&&!g.Fm(l)&&l.playerStyle==="desktop-polymer";m&&(a=a.player.getInternalApi(),a.addEventListener("updateKevlarOrC3Companion",HIb),a.addEventListener("updateEngagementPanelAction",qc7),a.addEventListener("changeEngagementPanelVisibility",bI7),window.addEventListener("yt-navigate-start",Mxb))}; xh=function(a,l){l===a.UB&&(a.UB=void 0)}; mdX=function(a){var l=WM(a.T).sG,m=l.j().JG("SLOT_TYPE_PLAYER_BYTES",1);l=cs(l.Bz.get(),1).clientPlaybackNonce;var T=!1;m=g.c(m);for(var y=m.next();!y.done;y=m.next()){y=y.value;var R=y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.slotEntryTrigger instanceof Of?y.slotEntryTrigger.Rm:void 0;R&&R===l&&(T&&Vu("More than 1 preroll playerBytes slot detected",y),T=!0)}T||HM(WM(a.T).kS)}; TwF=function(a){if(Xs(WM(a.T).qs))return!0;var l="";a=g.c(WM(a.T).bu.aR.keys());for(var m=a.next();!m.done;m=a.next()){m=m.value;if(m.slotType==="SLOT_TYPE_PLAYER_BYTES"&&m.Rj==="core")return!0;l+=m.slotType+" "}Math.random()<.01&&Vu("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:l});return!1}; yzd=function(a){a=g.c(WM(a.T).bu.aR.values());for(var l=a.next();!l.done;l=a.next())if(l.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Ffd=function(a,l,m,T,y,R){m=m===void 0?[]:m;T=T===void 0?"":T;y=y===void 0?"":y;var H=WM(a.T).qs,b=a.player.getVideoData(1);b&&b.getPlayerResponse();b&&b.Fl();m=rYw(l,m,H,WM(a.T).EM);vn3(WM(a.T).jb,T,m.tB,m.Yz,l,y,R)}; rYw=function(a,l,m,T){l={tB:[],Yz:l};a=g.c(a);for(var y=a.next();!y.done;y=a.next())if((y=y.value)&&y.renderer!=null){var R=y.renderer;if(!m.D.Y().V("html5_enable_vod_lasr_with_notify_pacf")){var H=void 0,b=void 0,M=void 0,d=void 0,A=T;g.I((d=R.sandwichedLinearAdRenderer)==null?void 0:d.adVideoStart,c1)?(H=g.I((M=R.sandwichedLinearAdRenderer)==null?void 0:M.adVideoStart,c1),H=XlQ(H,A),g.o9(R.sandwichedLinearAdRenderer.adVideoStart,c1,H)):g.I((b=R.linearAdSequenceRenderer)==null?void 0:b.adStart,c1)&& (M=g.I((H=R.linearAdSequenceRenderer)==null?void 0:H.adStart,c1),H=XlQ(M,A),g.o9(R.linearAdSequenceRenderer.adStart,c1,H))}l.tB.push(y)}return l}; g.Dp=function(a){if(typeof DOMParser!="undefined")return P6(new DOMParser,Or7(a),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.uI=function(a){g.k.call(this);this.callback=a;this.T=new tM(0,0,.4,0,.2,1,1,1);this.delay=new g.rR(this.next,window,this);g.w(this,this.delay)}; g.R3d=function(a){var l=a.Y();return l.FU&&!l.Z&&g.vS(l)?a.isEmbedsShortsMode()?(a=a.KH(),Math.min(a.width,a.height)>=315):!a.GA():!1}; g.Xw=function(a){g.x.call(this,{U:"div",S:"ytp-more-videos-view",G:{tabIndex:"-1"}});var l=this;this.api=a;this.L=!0;this.Z=new g.BT(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.j=this.scrollPosition=0;this.title=new g.x({U:"h2",S:"ytp-related-title",Lx:"{{title}}"});this.previous=new g.x({U:"button",uT:["ytp-button","ytp-previous"],G:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},X:[g.tj()]});this.B=new g.uI(function(m){l.suggestions.element.scrollLeft= -m}); this.next=new g.x({U:"button",uT:["ytp-button","ytp-next"],G:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},X:[g.eN()]});g.w(this,this.Z);this.C=a.Y().j;g.w(this,this.title);this.title.DK(this.element);this.suggestions=new g.x({U:"div",S:"ytp-suggestions"});g.w(this,this.suggestions);this.suggestions.DK(this.element);g.w(this,this.previous);this.previous.DK(this.element);this.previous.listen("click",this.XG,this);g.w(this,this.B);HPd(this);g.w(this,this.next);this.next.DK(this.element);this.next.listen("click", this.dM,this);this.Z.W(this.api,"appresize",this.Mt);this.Z.W(this.api,"fullscreentoggled",this.jw);this.Z.W(this.api,"videodatachange",this.onVideoDataChange);this.Mt(this.api.cz().getPlayerSize());this.onVideoDataChange()}; HPd=function(a){for(var l={BC:0};l.BC<16;l={BC:l.BC},++l.BC){var m=new g.x({U:"a",S:"ytp-suggestion-link",G:{href:"{{link}}",target:a.api.Y().N,"aria-label":"{{aria_label}}"},X:[{U:"div",S:"ytp-suggestion-image"},{U:"div",S:"ytp-suggestion-overlay",G:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},X:[{U:"div",S:"ytp-suggestion-title",Lx:"{{title}}"},{U:"div",S:"ytp-suggestion-author",Lx:"{{author_and_views}}"},{U:"div",G:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", Lx:"{{duration}}"}]}]});g.w(a,m);var T=m.OL("ytp-suggestion-link");g.nA(T,"transitionDelay",l.BC/20+"s");a.Z.W(T,"click",function(y){return function(R){var H=y.BC;if(a.L){var b=a.suggestionData[H],M=b.sessionData;a.C&&a.api.V("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.T[H].element),H=b.mm(),b={},g.$7(a.api,b),H=g.S$(H,b),g.g5(H,a.api,R)):g.bs(R,a.api,a.C,M||void 0)&&a.api.zX(b.videoId,M,b.playlistId)}else R.preventDefault(),document.activeElement.blur()}}(l)); m.DK(a.suggestions.element);a.T.push(m);a.api.createServerVe(m.element,m)}}; qQ5=function(a){if(a.api.Y().V("web_player_log_click_before_generating_ve_conversion_params"))for(var l=Math.floor(-a.scrollPosition/(a.j+8)),m=Math.min(l+a.columns,a.suggestionData.length)-1;l<=m;l++)a.api.logVisibility(a.T[l].element,!0)}; g.Yh=function(a){var l=a.api.hp()?32:16;l=a.J/2+l;a.next.element.style.bottom=l+"px";a.previous.element.style.bottom=l+"px";l=a.scrollPosition;var m=a.containerWidth-a.suggestionData.length*(a.j+8);g.AM(a.element,"ytp-scroll-min",l>=0);g.AM(a.element,"ytp-scroll-max",l<=m)}; gl_=function(a){for(var l=a.suggestionData.length,m=0;m>>0)+"_",y=0;return l}); dw("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m0&&m>0;)if(T[--m]!=l[--y])return!1;return y<=0}}); dw("Array.prototype.find",function(a){return a?a:function(l,m){return ddb(this,l,m).u_}}); dw("Array.prototype.entries",function(a){return a?a:function(){return nP(this,function(l,m){return[l,m]})}}); dw("Array.prototype.keys",function(a){return a?a:function(){return nP(this,function(l){return l})}}); dw("String.prototype.startsWith",function(a){return a?a:function(l,m){var T=kl(this,l,"startsWith");l+="";var y=T.length,R=l.length;m=Math.max(0,Math.min(m|0,T.length));for(var H=0;H=R}}); dw("Number.isFinite",function(a){return a?a:function(l){return typeof l!=="number"?!1:!isNaN(l)&&l!==Infinity&&l!==-Infinity}}); dw("String.prototype.repeat",function(a){return a?a:function(l){var m=kl(this,null,"repeat");if(l<0||l>1342177279)throw new RangeError("Invalid count value");l|=0;for(var T="";l;)if(l&1&&(T+=m),l>>>=1)m+=m;return T}}); dw("Object.entries",function(a){return a?a:function(l){var m=[],T;for(T in l)P5(l,T)&&m.push([T,l[T]]);return m}}); dw("Array.from",function(a){return a?a:function(l,m,T){m=m!=null?m:function(b){return b}; var y=[],R=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(typeof R=="function"){l=R.call(l);for(var H=0;!(R=l.next()).done;)y.push(m.call(T,R.value,H++))}else for(R=l.length,H=0;H>>16&65535)*y+T*(m>>>16&65535)<<16>>>0)|0}}); dw("Math.trunc",function(a){return a?a:function(l){l=Number(l);if(isNaN(l)||l===Infinity||l===-Infinity||l===0)return l;var m=Math.floor(Math.abs(l));return l<0?-m:m}}); dw("Math.clz32",function(a){return a?a:function(l){l=Number(l)>>>0;if(l===0)return 32;var m=0;(l&4294901760)===0&&(l<<=16,m+=16);(l&4278190080)===0&&(l<<=8,m+=8);(l&4026531840)===0&&(l<<=4,m+=4);(l&3221225472)===0&&(l<<=2,m+=2);(l&2147483648)===0&&m++;return m}}); dw("Number.isNaN",function(a){return a?a:function(l){return typeof l==="number"&&isNaN(l)}}); dw("Array.prototype.values",function(a){return a?a:function(){return nP(this,function(l,m){return m})}}); dw("Array.prototype.fill",function(a){return a?a:function(l,m,T){var y=this.length||0;m<0&&(m=Math.max(0,y+m));if(T==null||T>y)T=y;T=Number(T);T<0&&(T=Math.max(0,y+T));for(m=Number(m||0);m0&&m?m.repeat(Math.ceil(l/m.length)).substring(0,l):"")+T}}); dw("Array.prototype.findIndex",function(a){return a?a:function(l,m){return ddb(this,l,m).Ax}}); dw("Promise.prototype.finally",function(a){return a?a:function(l){return this.then(function(m){return Promise.resolve(l()).then(function(){return m})},function(m){return Promise.resolve(l()).then(function(){throw m; })})}}); dw("Math.sign",function(a){return a?a:function(l){l=Number(l);return l===0||isNaN(l)?l:l>0?1:-1}}); dw("WeakSet",function(a){function l(m){this.T=new WeakMap;if(m){m=g.c(m);for(var T;!(T=m.next()).done;)this.add(T.value)}} if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),T=Object.seal({}),y=new a([m]);if(!y.has(m)||y.has(T))return!1;y.delete(m);y.add(T);return!y.has(m)&&y.has(T)}catch(R){return!1}}())return a; l.prototype.add=function(m){this.T.set(m,!0);return this}; l.prototype.has=function(m){return this.T.has(m)}; l.prototype.delete=function(m){return this.T.delete(m)}; return l}); dw("AggregateError",function(a){function l(m,T){T=Error(T);"stack"in T&&(this.stack=T.stack);this.errors=m;this.message=T.message} if(a)return a;g.W(l,Error);l.prototype.name="AggregateError";return l}); dw("Array.prototype.copyWithin",function(a){function l(m){m=Number(m);return m===Infinity||m===-Infinity?m:m|0} return a?a:function(m,T,y){var R=this.length;m=l(m);T=l(T);y=y===void 0?R:l(y);m=m<0?Math.max(R+m,0):Math.min(m,R);T=T<0?Math.max(R+T,0):Math.min(T,R);y=y<0?Math.max(R+y,0):Math.min(y,R);if(mT;)--y in this?this[--m]=this[y]:delete this[--m];return this}}); dw("Int8Array.prototype.copyWithin",CP);dw("Uint8Array.prototype.copyWithin",CP);dw("Uint8ClampedArray.prototype.copyWithin",CP);dw("Int16Array.prototype.copyWithin",CP);dw("Uint16Array.prototype.copyWithin",CP);dw("Int32Array.prototype.copyWithin",CP);dw("Uint32Array.prototype.copyWithin",CP);dw("Float32Array.prototype.copyWithin",CP);dw("Float64Array.prototype.copyWithin",CP);dw("Array.prototype.at",function(a){return a?a:od}); dw("Int8Array.prototype.at",xl);dw("Uint8Array.prototype.at",xl);dw("Uint8ClampedArray.prototype.at",xl);dw("Int16Array.prototype.at",xl);dw("Uint16Array.prototype.at",xl);dw("Int32Array.prototype.at",xl);dw("Uint32Array.prototype.at",xl);dw("Float32Array.prototype.at",xl);dw("Float64Array.prototype.at",xl);dw("String.prototype.at",function(a){return a?a:od}); dw("Array.prototype.findLastIndex",function(a){return a?a:function(l,m){return jd7(this,l,m).Ax}}); dw("Int8Array.prototype.findLastIndex",DR);dw("Uint8Array.prototype.findLastIndex",DR);dw("Uint8ClampedArray.prototype.findLastIndex",DR);dw("Int16Array.prototype.findLastIndex",DR);dw("Uint16Array.prototype.findLastIndex",DR);dw("Int32Array.prototype.findLastIndex",DR);dw("Uint32Array.prototype.findLastIndex",DR);dw("Float32Array.prototype.findLastIndex",DR);dw("Float64Array.prototype.findLastIndex",DR);dw("Number.parseInt",function(a){return a||parseInt});var YG,Td,Azb;YG=YG||{};g.u7=this||self;Td="closure_uid_"+(Math.random()*1E9>>>0);Azb=0;g.iV(dg,Error);dg.prototype.name="CustomError";var ssd;var Qdb,uK,md;Qdb=Array.prototype.indexOf?function(a,l){return Array.prototype.indexOf.call(a,l,void 0)}:function(a,l){if(typeof a==="string")return typeof l!=="string"||l.length!=1?-1:a.indexOf(l,0); for(var m=0;m=0;m--)if(m in a&&a[m]===l)return m;return-1}; g.Bn=Array.prototype.forEach?function(a,l,m){Array.prototype.forEach.call(a,l,m)}:function(a,l,m){for(var T=a.length,y=typeof a==="string"?a.split(""):a,R=0;R=.3:this.Ab>=.5};var P2={r$T:0,JVL:1},vXp={NONE:0,Cxj:1,t$u:2};var Bwd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");RV.prototype.getValue=function(){return this.L}; g.W(H2,RV);H2.prototype.Z=function(a){this.L===null&&g.YB(this.j,a)&&(this.L=a)}; g.W(b5,RV);b5.prototype.Z=function(a){this.L===null&&typeof a==="number"&&(this.L=a)}; g.W(gG,RV);gG.prototype.Z=function(a){this.L===null&&typeof a==="string"&&(this.L=a)};Mj.prototype.disable=function(){this.L=!1}; Mj.prototype.enable=function(){this.L=!0}; Mj.prototype.isEnabled=function(){return this.L}; Mj.prototype.reset=function(){this.T={};this.L=!0;this.Z={}};var yL=document,Ad=window;var V7s=rw(1,!0),FG=rw(610401301,!1);rw(899588437,!1);rw(725719775,!1);var p5X=rw(513659523,!1),ZP5=rw(568333945,!1),Pa7=rw(1331761403,!1);rw(651175828,!1);rw(722764542,!1);rw(748402145,!1);var oGQ=rw(1981196515,!1);rw(2147483644,!1);rw(2147483645,!1);rw(2147483646,V7s);rw(2147483647,!0);var h0=!!g.Yl("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var c2=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},gBw=/&/g,Mcd=//g,dFp=/"/g,js5=/'/g,AI3=/\x00/g,bDd=/[\x00&<>"']/;var Ot,Wbr=g.u7.navigator;Ot=Wbr?Wbr.userAgentData||null:null;var YQp=globalThis.trustedTypes,k_;wG.prototype.toString=function(){return this.T+""};Et.prototype.toString=function(){return this.T}; var a9w=new Et("about:invalid#zClosurez");var hNP=u5("tel"),eNP=u5("sms"),rzQ=[u5("data"),u5("http"),u5("https"),u5("mailto"),u5("ftp"),new x_(function(a){return/^[^:]*([/?#]|$)/.test(a)})],l9d=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;aM.prototype.toString=function(){return this.T+""};RM.prototype.toString=function(){return this.T+""};id.prototype.toString=function(){return this.T};var jk={};g.czV=String.prototype.repeat?function(a,l){return a.repeat(l)}:function(a,l){return Array(l+1).join(a)};Fu[" "]=function(){};var w8,lz,iBb,LbX,Nw5,Qds,h$,Ol,t7s;g.KR=Sj();g.pe=Elz();g.U9=zm("Edge");g.Ti=g.U9||g.pe;w8=zm("Gecko")&&!(W2(g.ej(),"WebKit")&&!zm("Edge"))&&!(zm("Trident")||zm("MSIE"))&&!zm("Edge");g.Y5=W2(g.ej(),"WebKit")&&!zm("Edge");lz=ek();iBb=Wsb();g.TO=ZD3();LbX=QP();Nw5=zm("iPad");Qds=zm("iPod");h$=tb();Ol=W2(g.ej(),"KaiOS"); a:{var e3g="",Fbd=function(){var a=g.ej();if(w8)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.U9)return/Edge\/([\d\.]+)/.exec(a);if(g.pe)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Y5)return/WebKit\/(\S+)/.exec(a);if(g.KR)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); Fbd&&(e3g=Fbd?Fbd[1]:"");if(g.pe){var Ug,h35=g.u7.document;Ug=h35?h35.documentMode:void 0;if(Ug!=null&&Ug>parseFloat(e3g)){t7s=String(Ug);break a}}t7s=e3g}var Qsb=t7s,Lst={};var ai,lR;g.Uj=fc();ai=QP()||zm("iPod");lR=zm("iPad");g.zI=xdt();g.s_=J0();g.Nr=B2()&&!tb();var sfl=!g.pe&&!B2();g.Z=g.$5.prototype;g.Z.clone=function(){return new g.$5(this.x,this.y)}; g.Z.equals=function(a){return a instanceof g.$5&&sJ(this,a)}; g.Z.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.Z.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.Z.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.Z.scale=function(a,l){this.x*=a;this.y*=typeof l==="number"?l:a;return this};g.Z=g.Sk.prototype;g.Z.clone=function(){return new g.Sk(this.width,this.height)}; g.Z.aspectRatio=function(){return this.width/this.height}; g.Z.isEmpty=function(){return!Jb(this)}; g.Z.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.Z.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.Z.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.Z.scale=function(a,l){this.width*=a;this.height*=typeof l==="number"?l:a;return this};k5.prototype.toString=function(){return this.T}; var B6={};new k5(B6,"");var Fst=/^[a-z][a-z\d-]*$/i,hrl="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),KsH="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),vBl=["action","formaction","href"];var SXQ={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.Z=wj.prototype;g.Z.hN=function(a){return EJ(this.T,a)}; g.Z.getElementsByTagName=function(a,l){return(l||this.T).getElementsByTagName(String(a))}; g.Z.OL=function(a){return g.ud(a,this.T)}; g.Z.setProperties=Xu;g.Z.createElement=function(a){return rj(this.T,a)}; g.Z.appendChild=g.Tb;g.Z.append=function(a,l){kd7(IM(a),a,arguments,1)}; g.Z.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.Z.removeNode=g.HI;g.Z.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(l){return l.nodeType==1})}; g.Z.contains=g.qw;iK.prototype.now=function(){return 0}; iK.prototype.L=function(){return 0}; iK.prototype.Z=function(){return 0}; iK.prototype.T=function(){return 0};g.W(j$,iK);j$.prototype.now=function(){return dy()&&Ad.performance.now?Ad.performance.now():iK.prototype.now.call(this)}; j$.prototype.L=function(){return dy()&&Ad.performance.memory?Ad.performance.memory.totalJSHeapSize||0:iK.prototype.L.call(this)}; j$.prototype.Z=function(){return dy()&&Ad.performance.memory?Ad.performance.memory.usedJSHeapSize||0:iK.prototype.Z.call(this)}; j$.prototype.T=function(){return dy()&&Ad.performance.memory?Ad.performance.memory.jsHeapSizeLimit||0:iK.prototype.T.call(this)};var EBd=V6(function(){var a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.u7.addEventListener("test",null,l)}catch(m){}return a});oBw.prototype.isVisible=function(){return LF(yL)===1};var a4p=Nw(function(a){return typeof a==="number"}),r0l=Nw(function(a){return typeof a==="string"}),l4p=Nw(function(a){return typeof a==="boolean"}),Av=Nw(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"}),Mud=Nw(function(a){return typeof a==="function"}),OPB=Nw(function(a){return!!a&&(typeof a==="object"||typeof a==="function")});var $I3=function(){if(!g.u7.addEventListener||!Object.defineProperty)return!1;var a=!1,l=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{var m=function(){}; g.u7.addEventListener("test",m,l);g.u7.removeEventListener("test",m,l)}catch(T){}return a}();var Xup=DF7("AnimationEnd"),jv=DF7("TransitionEnd");var Xnd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),TGt=/#|$/,y0t=/[?&]($|#)/;var HcP={b7j:"allow-forms",SFK:"allow-modals",kWK:"allow-orientation-lock",Wlx:"allow-pointer-lock",Jpt:"allow-popups",fqL:"allow-popups-to-escape-sandbox",pEj:"allow-presentation",ROK:"allow-same-origin",YFt:"allow-scripts",Qgj:"allow-top-navigation",wEj:"allow-top-navigation-by-user-activation"},Mj5=V6(function(){return qtH()});var A0p=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Ij.prototype.eb=function(a,l,m){a=a+"//"+l+m;var T=p2p(this)-m.length;if(T<0)return"";this.T.sort(function(d,A){return d-A}); m=null;l="";for(var y=0;y=M.length){T-=M.length;a+=M;l=this.Z;break}m=m==null?R:m}}T="";m!=null&&(T=""+l+"trn="+m);return a+T};YX.prototype.setInterval=function(a,l){return Ad.setInterval(a,l)}; YX.prototype.clearInterval=function(a){Ad.clearInterval(a)}; YX.prototype.setTimeout=function(a,l){return Ad.setTimeout(a,l)}; YX.prototype.clearTimeout=function(a){Ad.clearTimeout(a)};var Wd=void 0,ZY,X63=typeof TextDecoder!=="undefined",OcH,hMd=typeof String.prototype.isWellFormed==="function",Fn5=typeof TextEncoder!=="undefined";var sV5={},HA=null,St3=w8||g.Y5||typeof g.u7.btoa=="function";var o_t=typeof Uint8Array!=="undefined",n_p=!g.pe&&typeof btoa==="function",w2l=/[-_.]/g,BG3={"-":"+",_:"/",".":"="},bJ={};qL.prototype.isEmpty=function(){return this.T==null}; qL.prototype.sizeBytes=function(){var a=ML(this);return a?a.length:0}; var E_7;var xjp=void 0;var Ar=typeof Symbol==="function"&&typeof Symbol()==="symbol",KbX=j9("jas",void 0,!0),nv=j9(void 0,"1oa"),TL=j9(void 0,Symbol()),z3D=j9(void 0,"0ub"),Oml=j9(void 0,"0actk"),af=j9("m_m","Tpu",!0),QM7=j9(void 0,"vps");Math.max.apply(Math,g.F(Object.values({tcM:1,wIK:2,Qcu:4,JEu:8,AKb:16,xsO:32,X1j:64,NdN:128,Y9N:256,nFN:512,w4b:1024,aEL:2048,n7N:4096,AEj:8192})));var X2w={ET:{value:0,configurable:!0,writable:!0,enumerable:!1}},uGH=Object.defineProperties,PA=Ar?KbX:"ET",ep,vlg=[];VT(vlg,7);ep=Object.freeze(vlg);var lL={},WA={},f4l=Object.freeze({}),NL={};var tr=typeof g.u7.BigInt==="function"&&typeof g.u7.BigInt(0)==="bigint";var M6=Nw(function(a){return tr?a>=$dB&&a<=sdI:a[0]==="-"?mEQ(a,SQr):mEQ(a,fRB)}),SQr=Number.MIN_SAFE_INTEGER.toString(),$dB=tr?BigInt(Number.MIN_SAFE_INTEGER):void 0,fRB=Number.MAX_SAFE_INTEGER.toString(),sdI=tr?BigInt(Number.MAX_SAFE_INTEGER):void 0;var E57=typeof Uint8Array.prototype.slice==="function",Fh=0,hr=0,WEd;var Ee=typeof BigInt==="function"?BigInt.asIntN:void 0,VkQ=typeof BigInt==="function"?BigInt.asUintN:void 0,uJ=Number.isSafeInteger,BA=Number.isFinite,Xh=Math.trunc,qJl=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var tkR={};var q6;var AK,egR;var Bj7=e9(0);g.Z=I4b.prototype;g.Z.init=function(a,l,m,T){var y=T===void 0?{}:T;T=y.DX===void 0?!1:y.DX;y=y.TR===void 0?!1:y.TR;this.DX=T;this.TR=y;a&&(a=Hd(a,this.TR),this.L=a.buffer,this.K=a.T,this.j=l||0,this.Z=m!==void 0?this.j+m:this.L.length,this.T=this.j)}; g.Z.free=function(){this.clear();Aa.length<100&&Aa.push(this)}; g.Z.clear=function(){this.L=null;this.K=!1;this.T=this.Z=this.j=0;this.DX=!1}; g.Z.reset=function(){this.T=this.j}; g.Z.Iu=function(){var a=this.C;a||(a=this.L,a=this.C=new DataView(a.buffer,a.byteOffset,a.byteLength));return a}; var Aa=[];Pd.prototype.free=function(){this.T.clear();this.L=this.j=-1;G0.length<100&&G0.push(this)}; Pd.prototype.reset=function(){this.T.reset();this.Z=this.T.T;this.L=this.j=-1}; var G0=[];L0.prototype.toJSON=function(){return da(this)}; L0.prototype.N2=function(a){return JSON.stringify(da(this,a))}; L0.prototype.clone=function(){var a=this,l=a.Tx;a=new a.constructor(VJ(l,l[PA]|0));pV(a.Tx);return a}; L0.prototype[af]=lL;L0.prototype.toString=function(){return this.Tx.toString()};var rbd,lN7;eh.prototype.length=function(){return this.T.length}; eh.prototype.end=function(){var a=this.T;this.T=[];return a};var s8=$A(),Jzs=$A(),Bws=$A(),kHg=$A(),nl9=$A(),w5s=$A(),IR9=$A(),C7r=$A();var M$5=f0(function(a,l,m,T,y){if(a.L!==2)return!1;p0(a,wa(l,T,m),y);return!0},gX7),iF7=f0(function(a,l,m,T,y){if(a.L!==2)return!1; p0(a,wa(l,T,m),y);return!0},gX7),xA=Symbol(),wb=Symbol(),E8=Symbol(),V$p=Symbol(),Ad7=Symbol(),Ja,Bd;var ElI=rb(function(a,l,m){if(a.L!==1)return!1;li(l,m,db(a.T));return!0},m9,IR9),olX=rb(function(a,l,m){if(a.L!==1)return!1; a=db(a.T);li(l,m,a===0?void 0:a);return!0},m9,IR9),xd_=rb(function(a,l,m,T){if(a.L!==1)return!1; B0(l,m,T,db(a.T));return!0},m9,IR9),Dds=rb(function(a,l,m){if(a.L!==0)return!1; li(l,m,bP(a.T));return!0},Tr,nl9),utB=rb(function(a,l,m){if(a.L!==0)return!1; a=bP(a.T);li(l,m,a===0?void 0:a);return!0},Tr,nl9),X5_=rb(function(a,l,m,T){if(a.L!==0)return!1; B0(l,m,T,bP(a.T));return!0},Tr,nl9),YQ5=rb(function(a,l,m){if(a.L!==0)return!1; li(l,m,gb(a.T));return!0},yd,kHg),Uds=rb(function(a,l,m){if(a.L!==0)return!1; a=gb(a.T);li(l,m,a===0?void 0:a);return!0},yd,kHg),rzX=rb(function(a,l,m,T){if(a.L!==0)return!1; B0(l,m,T,gb(a.T));return!0},yd,kHg),a9g=rb(function(a,l,m){if(a.L!==1)return!1; li(l,m,iP(a.T));return!0},function(a,l,m){q0H(a,m,p63(l))},w5s),l9F=aR(function(a,l,m){if(a.L!==1&&a.L!==2)return!1; l=$2(l,l[PA]|0,m);if(a.L==2)for(m=gb(a.T)>>>0,m=a.T.T+m;a.T.T>>0);return!0},function(a,l,m){l=Il(l); l!=null&&l!=null&&(z0(a,m,0),ha(a.T,l))},$A()),bDs=rb(function(a,l,m){if(a.L!==0)return!1; li(l,m,gb(a.T));return!0},function(a,l,m){l=wr(l); l!=null&&(l=parseInt(l,10),z0(a,m,0),TyQ(a.T,l))},$A());t$H.prototype.register=function(){Fu(this)};g.W(bi,L0);bi.prototype.L=enz([0,olX,utB,-2,Uds]);var $wp={nW8:1,mC:2,umx:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};S0Q.prototype.Kk=function(a){if(typeof a==="string"&&a.length!=0){var l=this.qN;if(l.L){a=a.split("&");for(var m=a.length-1;m>=0;m--){var T=a[m].split("="),y=decodeURIComponent(T[0]);T.length>1?(T=decodeURIComponent(T[1]),T=/^[0-9]+$/g.exec(T)?parseInt(T,10):T):T=1;(y=l.T[y])&&y.Z(T)}}}};var yc=null;var Aq=g.u7.performance,gBg=!!(Aq&&Aq.mark&&Aq.measure&&Aq.clearMarks),d8=V6(function(){var a;if(a=gBg){var l=l===void 0?window:l;if(yc===null){yc="";try{a="";try{a=l.top.location.hash}catch(T){a=l.location.hash}if(a){var m=a.match(/\bdeid=([\d,]+)/);yc=m?m[1]:""}}catch(T){}}l=yc;a=!!l.indexOf&&l.indexOf("1337")>=0}return a}); j5.prototype.disable=function(){this.T=!1;this.events!==this.L.google_js_reporting_queue&&(d8()&&g.Bn(this.events,wIR),this.events.length=0)}; j5.prototype.start=function(a,l){if(!this.T)return null;var m=kbP()||Byz();a=new nXd(a,l,m);l="goog_"+a.label+"_"+a.uniqueId+"_start";Aq&&d8()&&Aq.mark(l);return a}; j5.prototype.end=function(a){if(this.T&&typeof a.value==="number"){var l=kbP()||Byz();a.duration=l-a.value;l="goog_"+a.label+"_"+a.uniqueId+"_end";Aq&&d8()&&Aq.mark(l);!this.T||this.events.length>2048||this.events.push(a)}};INb.prototype.P0=function(a,l,m,T,y){y=y||this.r8;try{var R=new Ij;R.T.push(1);R.L[1]=CF("context",a);l.error&&l.meta&&l.id||(l=new pA(ZH(l)));if(l.msg){var H=l.msg.substring(0,512);R.T.push(2);R.L[2]=CF("msg",H)}var b=l.meta||{};if(this.xH)try{this.xH(b)}catch(V){}if(T)try{T(b)}catch(V){}T=[b];R.T.push(3);R.L[3]=T;var M=Gmp();if(M.L){var d=M.L.url||"";R.T.push(4);R.L[4]=CF("top",d)}var A={url:M.T.url||""};if(M.T.url){var P=g.e$(M.T.url);var G=td(P[1],null,P[3],P[4])}else G="";d=[A,{url:G}];R.T.push(5); R.L[5]=d;fNl(this.T,y,R,m)}catch(V){try{fNl(this.T,y,{context:"ecmserr",rctx:a,msg:ZH(V),url:M&&M.T.url},m)}catch(p){}}return this.xi}; g.W(pA,JdH);var Gr,Vd,PP=new j5;Gr=new function(){var a="https:";Ad&&Ad.location&&Ad.location.protocol==="http:"&&(a="http:");this.L=a;this.T=.01}; Vd=new INb;Ad&&Ad.document&&(Ad.document.readyState=="complete"?EXt():PP.T&&cI(Ad,"load",function(){EXt()}));var Dw7=Date.now(),e5=-1,Qd=-1,gAd,F8=-1,tq=!1;g.Z=hq.prototype;g.Z.getHeight=function(){return this.bottom-this.top}; g.Z.clone=function(){return new hq(this.top,this.right,this.bottom,this.left)}; g.Z.contains=function(a){return this&&a?a instanceof hq?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.Z.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.Z.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.Z.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.Z.scale=function(a,l){l=typeof l==="number"?l:a;this.left*=a;this.right*=a;this.top*=l;this.bottom*=l;return this};vP.prototype.equals=function(a,l){return!!a&&(!(l===void 0?0:l)||this.volume==a.volume)&&this.Z==a.Z&&KA(this.T,a.T)&&!0};S5.prototype.hN=function(){return this.B}; S5.prototype.equals=function(a,l){return this.j.equals(a.j,l===void 0?!1:l)&&this.B==a.B&&KA(this.Z,a.Z)&&KA(this.C,a.C)&&this.T==a.T&&this.K==a.K&&this.L==a.L&&this.J==a.J};var Mcs={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Ta={Dh:"start",RJ:"firstquartile",c_:"midpoint",Es:"thirdquartile",COMPLETE:"complete",ERROR:"error",Ge:"metric",PAUSE:"pause",Us:"resume",Os:"skip",eN:"viewable_impression",vU:"mute",oK:"unmute",YC:"fullscreen",pL:"exitfullscreen",BW:"bufferstart",Vk:"bufferfinish",Qk:"fully_viewable_audible_half_duration_impression",ze:"measurable_impression",Ds:"abandon",fL:"engagedview",wM:"impression",kC:"creativeview",g$:"loaded", l38:"progress",CLOSE:"close",Huu:"collapse",wVz:"overlay_resize",tCO:"overlay_unmeasurable_impression",HHu:"overlay_unviewable_impression",XVK:"overlay_viewable_immediate_impression",dsg:"overlay_viewable_end_of_session_impression",WW:"custom_metric_viewable",eF:"audio_audible",FG:"audio_measurable",KL:"audio_impression"},W95="start firstquartile midpoint thirdquartile resume loaded".split(" "),cq7=["start","firstquartile","midpoint","thirdquartile"],i0H=["abandon"],Q9={UNKNOWN:-1,Dh:0,RJ:1,c_:2, Es:3,COMPLETE:4,Ge:5,PAUSE:6,Us:7,Os:8,eN:9,vU:10,oK:11,YC:12,pL:13,Qk:14,ze:15,Ds:16,fL:17,wM:18,kC:19,g$:20,WW:21,BW:22,Vk:23,KL:27,FG:28,eF:29};var XI5={CkT:"addEventListener",d9x:"getMaxSize",X4z:"getScreenSize",M$z:"getState",PS8:"getVersion",qOj:"removeEventListener",H_t:"isViewable"};g.Z=g.Jq.prototype;g.Z.clone=function(){return new g.Jq(this.left,this.top,this.width,this.height)}; g.Z.contains=function(a){return a instanceof g.$5?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; g.Z.getSize=function(){return new g.Sk(this.width,this.height)}; g.Z.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.Z.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.Z.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.Z.scale=function(a,l){l=typeof l==="number"?l:a;this.left*=a;this.width*=a;this.top*=l;this.height*=l;return this};var aU3={};gFR.prototype.update=function(a){a&&a.document&&(this.B=fA(!1,a,this.isMobileDevice),this.T=fA(!0,a,this.isMobileDevice),iVl(this,a),M9H(this,a))};HN.prototype.cancel=function(){U0().clearTimeout(this.T);this.T=null}; HN.prototype.schedule=function(){var a=this,l=U0(),m=Mv().T.T;this.T=l.setTimeout(g8(m,cP(143,function(){a.L++;a.Z.sample()})),uld())};g.Z=qI.prototype;g.Z.EY=function(){return!1}; g.Z.initialize=function(){return this.isInitialized=!0}; g.Z.Zx=function(){return this.T.hM}; g.Z.KB=function(){return this.T.Ij}; g.Z.Mw=function(a,l){if(!this.Ij||(l===void 0?0:l))this.Ij=!0,this.hM=a,this.J=0,this.T!=this||gt(this)}; g.Z.getName=function(){return this.T.AM}; g.Z.HS=function(){return this.T.o$()}; g.Z.o$=function(){return{}}; g.Z.Xs=function(){return this.T.J}; g.Z.mj=function(){var a=To();a.T=fA(!0,this.Z,a.isMobileDevice)}; g.Z.Kr=function(){M9H(To(),this.Z)}; g.Z.R$=function(){return this.j.T}; g.Z.sample=function(){}; g.Z.isActive=function(){return this.T.C}; g.Z.eY=function(a){var l=this.T;this.T=a.Xs()>=this.J?a:this;l!==this.T?(this.C=this.T.C,gt(this)):this.C!==this.T.C&&(this.C=this.T.C,gt(this))}; g.Z.vB=function(a){if(a.L===this.T){var l=!this.j.equals(a,this.N);this.j=a;l&&d6w(this)}}; g.Z.zB=function(){return this.N}; g.Z.dispose=function(){this.qj=!0}; g.Z.FO=function(){return this.qj};g.Z=MI.prototype;g.Z.observe=function(){return!0}; g.Z.unobserve=function(){}; g.Z.wu=function(a){this.K=a}; g.Z.dispose=function(){if(!this.FO()){var a=this.L;g.Wn(a.K,this);a.N&&this.zB()&&ivR(a);this.unobserve();this.jt=!0}}; g.Z.FO=function(){return this.jt}; g.Z.HS=function(){return this.L.HS()}; g.Z.Xs=function(){return this.L.Xs()}; g.Z.Zx=function(){return this.L.Zx()}; g.Z.KB=function(){return this.L.KB()}; g.Z.eY=function(){}; g.Z.vB=function(){this.Cd()}; g.Z.zB=function(){return this.qj};g.Z=dt.prototype;g.Z.Xs=function(){return this.T.Xs()}; g.Z.Zx=function(){return this.T.Zx()}; g.Z.KB=function(){return this.T.KB()}; g.Z.create=function(a,l,m){var T=null;this.T&&(T=this.YL(a,l,m),bf(this.T,T));return T}; g.Z.Fp=function(){return this.u7()}; g.Z.u7=function(){return!1}; g.Z.init=function(a){return this.T.initialize()?(bf(this.T,this),this.j=a,!0):!1}; g.Z.eY=function(a){a.Xs()==0&&this.j(a.Zx(),this)}; g.Z.vB=function(){}; g.Z.zB=function(){return!1}; g.Z.dispose=function(){this.K=!0}; g.Z.FO=function(){return this.K}; g.Z.HS=function(){return{}};j6.prototype.add=function(a,l,m){++this.Z;a=new AKw(a,l,m);this.T.push(new AKw(a.L,a.T,a.Z+this.Z/4096));this.L=!0;return this};Zvt.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",l=PN(this.T);l.length>0&&(a+="?"+l);return a};g.k.prototype.T8=!1;g.k.prototype.FO=function(){return this.T8}; g.k.prototype.dispose=function(){this.T8||(this.T8=!0,this.sL())}; g.k.prototype[Symbol.dispose]=function(){this.dispose()}; g.k.prototype.addOnDisposeCallback=function(a,l){this.T8?l!==void 0?a.call(l):a():(this.Kn||(this.Kn=[]),l&&(a=a.bind(l)),this.Kn.push(a))}; g.k.prototype.sL=function(){if(this.Kn)for(;this.Kn.length;)this.Kn.shift()()};pM.prototype.update=function(a,l,m){a&&(this.T+=l,this.L+=l,this.j+=l,this.Z=Math.max(this.Z,this.j));if(m===void 0?!a:m)this.j=0};var QfR=[1,.75,.5,.3,0];Z8.prototype.update=function(a,l,m,T,y,R){R=R===void 0?!0:R;l=y?Math.min(a,l):l;for(y=0;y0&&l>=H;H=!(a>0&&a>=H)||m;this.T[y].update(R&&b,T,!R||H)}};tA.prototype.update=function(a,l,m,T){this.B=this.B!=-1?Math.min(this.B,l.Ab):l.Ab;this.lT=Math.max(this.lT,l.Ab);this.jt=this.jt!=-1?Math.min(this.jt,l.Qp):l.Qp;this.hM=Math.max(this.hM,l.Qp);this.yg.update(l.Qp,m.Qp,l.T,a,T);this.Cx+=a;l.Ab===0&&(this.AM+=a);this.L.update(l.Ab,m.Ab,l.T,a,T);m=T||m.K1!=l.K1?m.isVisible()&&l.isVisible():m.isVisible();l=!l.isVisible()||l.T;this.tM.update(m,a,l)}; tA.prototype.s$=function(){return this.tM.Z>=this.rb};if(yL&&yL.URL){var iDs=yL.URL,dF5;if(dF5=!!iDs){var jsn;a:{if(iDs){var AIr=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var RB=AIr.exec(decodeURIComponent(iDs));if(RB){jsn=RB[1]&&RB[1].length>1?RB[1].substring(1):"true";break a}}catch(a){}}jsn=""}dF5=jsn.length>0}Vd.xi=!dF5};var PVX=new hq(0,0,0,0);var v2d=new hq(0,0,0,0);g.W(zo,g.k);g.Z=zo.prototype; g.Z.sL=function(){if(this.Ic.T){if(this.Ph.To){var a=this.Ic.T;typeof a.removeEventListener==="function"&&a.removeEventListener("mouseover",this.Ph.To,WI());this.Ph.To=null}this.Ph.lc&&(a=this.Ic.T,typeof a.removeEventListener==="function"&&a.removeEventListener("mouseout",this.Ph.lc,WI()),this.Ph.lc=null)}this.tY&&this.tY.dispose();this.Sb&&this.Sb.dispose();delete this.wi;delete this.rG;delete this.Xj;delete this.Ic.BB;delete this.Ic.T;delete this.Ph;delete this.tY;delete this.Sb;delete this.qN; g.k.prototype.sL.call(this)}; g.Z.Xh=function(){return this.Sb?this.Sb.T:this.position}; g.Z.Kk=function(a){Mv().Kk(a)}; g.Z.zB=function(){return!1}; g.Z.W9=function(){return new tA}; g.Z.Ch=function(){return this.wi}; g.Z.Km=function(a){return f57(this,a,1E4)}; g.Z.k8=function(a,l,m,T,y,R,H){this.Ua||(this.kD&&(a=this.RC(a,m,y,H),T=T&&this.qw.Ab>=(this.K1()?.3:.5),this.TQ(R,a,T),this.BZ=l,a.Ab>0&&-1===this.CK&&(this.CK=l),this.x6==-1&&this.s$()&&(this.x6=l),this.dG==-2&&(this.dG=Oi(this.Xh())?a.Ab:-1),this.qw=a),this.rG(this))}; g.Z.TQ=function(a,l,m){this.Ch().update(a,l,this.qw,m)}; g.Z.FT=function(){return new nD}; g.Z.RC=function(a,l,m,T){m=this.FT();m.T=l;l=U0().L;l=LF(yL)===0?-1:l.isVisible()?0:1;m.L=l;m.Ab=this.Zr(a);m.K1=this.K1();m.Qp=T;return m}; g.Z.Zr=function(a){return this.opacity===0&&jj(this.qN,"opac")===1?0:a}; g.Z.K1=function(){return!1}; g.Z.XN=function(){return this.FZ||this.VW}; g.Z.Nr=function(){Nv()}; g.Z.q3=function(){Nv()}; g.Z.Ot=function(){return 0}; g.Z.s$=function(){return this.wi.s$()}; g.Z.wg=function(){var a=this.kD;a=(this.hasCompleted||this.FO())&&!a;var l=Mv().L!==2||this.p$t;return this.Ua||l&&a?2:this.s$()?4:3}; g.Z.EC=function(){return 0};g.$U.prototype.next=function(){return g.Ht}; g.Ht={done:!0,value:void 0};g.$U.prototype.nH=function(){return this};g.W(I5l,nD);var q7=E27([void 0,1,2,3,4,8,16]),ba=E27([void 0,4,8,16]),Gdn={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:JA("p0",ba),p1:JA("p1",ba),p2:JA("p2",ba),p3:JA("p3",ba),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:fM("mtos1",[0,2,4],!1,ba),mtos2:fM("mtos2",[0,2,4],!1,ba),mtos3:fM("mtos3",[0,2,4],!1,ba),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:JA("a0",ba),a1:JA("a1",ba),a2:JA("a2",ba),a3:JA("a3",ba),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:JA("c0",ba),c1:JA("c1",ba),c2:JA("c2",ba),c3:JA("c3",ba),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:JA("qmtos",q7),qnc:JA("qnc",q7),qmv:JA("qmv",q7),qnv:JA("qnv",q7), 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:JA("ss0",ba),ss1:JA("ss1",ba),ss2:JA("ss2",ba),ss3:JA("ss3",ba),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"},Vc9=Object.assign({},Gdn,{avid:PI("audio"),avas:"avas",vs:"vs"}),pnV={atos:"atos",avt:fM("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,l){return function(m){return m[a]===void 0&&l!==void 0?l:m[a]}}("ss",0), t:"t"};wt.prototype.getValue=function(){return this.L}; wt.prototype.update=function(a,l){a>=32||(this.T&1<=.5;lf(l.volume)&&(this.j=this.j!=-1?Math.min(this.j,l.volume):l.volume,this.C=Math.max(this.C,l.volume));R&&(this.qj+=a,this.N+=y?a:0);this.T.update(l.Ab,m.Ab,l.T,a,T,y);this.Z.update(!0,a);this.K.update(y,a);this.Ij.update(m.fullscreen,a);this.vF.update(y&&!R,a);a=Math.floor(l.mediaTime/1E3);this.Kx.update(a,l.isVisible());this.wb.update(a,l.Ab>=1);this.Mj.update(a, S6(l))}};YM7.prototype.L=function(a){this.Z||(this.T(a)?(a=bAd(this.N,this.j,a),this.K|=a,a=a==0):a=!1,this.Z=a)};g.W(oL,YM7);oL.prototype.T=function(){return!0}; oL.prototype.C=function(){return!1}; oL.prototype.getId=function(){var a=this,l=UX(Ta,function(m){return m==a.j}); return Q9[l].toString()}; oL.prototype.toString=function(){var a="";this.C()&&(a+="c");this.Z&&(a+="s");this.K>0&&(a+=":"+this.K);return this.getId()+a};g.W(xU,oL);xU.prototype.L=function(a,l){l=l===void 0?null:l;l!=null&&this.B.push(l);oL.prototype.L.call(this,a)};g.W(D8,U6d);D8.prototype.L=function(){return null}; D8.prototype.Z=function(){return[]};g.W(uf,MI);g.Z=uf.prototype;g.Z.tT=function(){if(this.element){var a=this.element,l=this.L.T.Z;try{try{var m=HV7(a.getBoundingClientRect())}catch(d){m=new hq(0,0,0,0)}var T=m.right-m.left,y=m.bottom-m.top,R=TrQ(a,l),H=R.x,b=R.y;var M=new hq(Math.round(b),Math.round(H+T),Math.round(b+y),Math.round(H))}catch(d){M=PVX.clone()}this.Z=M;this.T=jfQ(this,this.Z)}}; g.Z.LT=function(){this.C=this.L.j.T}; g.Z.Bp=function(a){var l=jj(this.qN,"od")==1;return z$b(a,this.C,this.element,l)}; g.Z.Zd=function(){this.timestamp=Nv()}; g.Z.Cd=function(){this.Zd();this.tT();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var l=new g.Sk(a.videoWidth,a.videoHeight);a=this.T;var m=Oh(a),T=a.getHeight(),y=l.width;l=l.height;y<=0||l<=0||m<=0||T<=0||(y/=l,l=m/T,a=a.clone(),y>l?(m/=y,T=(T-m)/2,T>0&&(T=a.top+T,a.top=Math.round(T),a.bottom=Math.round(T+m))):(T*=y,m=Math.round((m-T)/2),m>0&&(m=a.left+m,a.left=Math.round(m),a.right=Math.round(m+T))));this.T=a}this.LT(); a=this.T;m=this.C;a=a.left<=m.right&&m.left<=a.right&&a.top<=m.bottom&&m.top<=a.bottom?new hq(Math.max(a.top,m.top),Math.min(a.right,m.right),Math.min(a.bottom,m.bottom),Math.max(a.left,m.left)):new hq(0,0,0,0);m=a.top>=a.bottom||a.left>=a.right?new hq(0,0,0,0):a;a=this.L.j;l=y=T=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.Bp(m))m=new hq(0,0,0,0);else{T=To().j;l=new hq(0,T.height,T.width,0);var R;T=KM(m,(R=this.K)!=null?R:this.T);y=KM(m,To().T);l=KM(m,l)}R=m.top>=m.bottom|| m.left>=m.right?new hq(0,0,0,0):zr(m,-this.T.left,-this.T.top);RL()||(y=T=0);this.N=new S5(a,this.element,this.T,R,T,y,this.timestamp,l)}; g.Z.getName=function(){return this.L.getName()};var ZDr=new hq(0,0,0,0);g.W(X6,uf);g.Z=X6.prototype;g.Z.observe=function(){this.j();return!0}; g.Z.vB=function(){uf.prototype.Cd.call(this)}; g.Z.Zd=function(){}; g.Z.tT=function(){}; g.Z.Cd=function(){this.j();uf.prototype.Cd.call(this)}; g.Z.eY=function(a){a=a.isActive();a!==this.J&&(a?this.j():(To().T=new hq(0,0,0,0),this.T=new hq(0,0,0,0),this.C=new hq(0,0,0,0),this.timestamp=-1));this.J=a};var g7={},b07=(g7.firstquartile=0,g7.midpoint=1,g7.thirdquartile=2,g7.complete=3,g7);g.W(Ui,zo);g.Z=Ui.prototype;g.Z.zB=function(){return!0}; g.Z.zF=function(){return this.AO==2}; g.Z.Km=function(a){return f57(this,a,Math.max(1E4,this.Z/3))}; g.Z.k8=function(a,l,m,T,y,R,H){var b=this,M=this.B(this)||{};g.yk(M,y);this.Z=M.duration||this.Z;this.N=M.isVpaid||this.N;this.AM=M.isYouTube||this.AM;U0();this.yg=!1;y=aY7(this,l);rKw(this)===1&&(R=y);zo.prototype.k8.call(this,a,l,m,T,M,R,H);this.U$&&this.U$.Z&&g.Bn(this.C,function(d){d.L(b)})}; g.Z.TQ=function(a,l,m){zo.prototype.TQ.call(this,a,l,m);lv(this).update(a,l,this.qw,m);this.rb=S6(this.qw)&&S6(l);this.hM==-1&&this.wb&&(this.hM=this.Ch().Z.T);this.Q4.Z=0;a=this.s$();l.isVisible()&&nM(this.Q4,"vs");a&&nM(this.Q4,"vw");lf(l.volume)&&nM(this.Q4,"am");S6(l)?nM(this.Q4,"a"):nM(this.Q4,"mut");this.WC&&nM(this.Q4,"f");l.L!=-1&&(nM(this.Q4,"bm"),l.L==1&&(nM(this.Q4,"b"),S6(l)&&nM(this.Q4,"umutb")));S6(l)&&l.isVisible()&&nM(this.Q4,"avs");this.rb&&a&&nM(this.Q4,"avw");l.Ab>0&&nM(this.Q4, "pv");m4(this,this.Ch().Z.T,!0)&&nM(this.Q4,"gdr");NI(this.Ch().L,1)>=2E3&&nM(this.Q4,"pmx");this.yg&&nM(this.Q4,"tvoff")}; g.Z.W9=function(){return new IL}; g.Z.Ch=function(){return this.wi}; g.Z.FT=function(){return new I5l}; g.Z.RC=function(a,l,m,T){a=zo.prototype.RC.call(this,a,l,m,T===void 0?-1:T);a.fullscreen=this.WC;a.paused=this.zF();a.volume=m.volume;lf(a.volume)||(this.lZ++,l=this.qw,lf(l.volume)&&(a.volume=l.volume));m=m.currentTime;a.mediaTime=m!==void 0&&m>=0?m:-1;return a}; g.Z.Zr=function(a){return To(),this.WC?1:zo.prototype.Zr.call(this,a)}; g.Z.Ot=function(){return 1}; g.Z.getDuration=function(){return this.Z}; g.Z.wg=function(){return this.Ua?2:mcw(this)?5:this.s$()?4:3}; g.Z.EC=function(){return this.vF?this.Ch().K.Z>=2E3?4:3:2}; g.Z.wu=function(a){this.Sb&&this.Sb.wu(a)};var Wss=g.bV();Z0Q.prototype.reset=function(){this.T=[];this.L=[]}; var bv=Xl(Z0Q);g.W(dZ,dt);g.Z=dZ.prototype;g.Z.getName=function(){return(this.L?this.L:this.T).getName()}; g.Z.HS=function(){return(this.L?this.L:this.T).HS()}; g.Z.Xs=function(){return(this.L?this.L:this.T).Xs()}; g.Z.init=function(a){var l=!1;(0,g.Bn)(this.Z,function(m){m.initialize()&&(l=!0)}); l&&(this.j=a,bf(this.T,this));return l}; g.Z.dispose=function(){(0,g.Bn)(this.Z,function(a){a.dispose()}); dt.prototype.dispose.call(this)}; g.Z.Fp=function(){return md(this.Z,function(a){return a.EY()})}; g.Z.u7=function(){return md(this.Z,function(a){return a.EY()})}; g.Z.YL=function(a,l,m){return new uf(a,this.T,l,m)}; g.Z.vB=function(a){this.L=a.L};var hiw={threshold:[0,.3,.5,.75,1]};g.W(jq,uf);g.Z=jq.prototype;g.Z.observe=function(){var a=this;this.lT||(this.lT=Nv());if(xwl(298,function(){return O0z(a)}))return!0; this.L.Mw("msf");return!1}; g.Z.unobserve=function(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.B&&(this.B.disconnect(),this.B=null)}catch(a){}}; g.Z.Cd=function(){var a=A5(this);a.length>0&&PH(this,a);uf.prototype.Cd.call(this)}; g.Z.tT=function(){}; g.Z.Bp=function(){return!1}; g.Z.LT=function(){}; g.Z.HS=function(){var a={};return Object.assign(this.L.HS(),(a.niot_obs=this.lT,a.niot_cbk=this.Ij,a))}; g.Z.getName=function(){return"nio"};g.W(Ga,dt);Ga.prototype.getName=function(){return"nio"}; Ga.prototype.u7=function(){return!To().L&&this.T.T.Z.IntersectionObserver!=null}; Ga.prototype.YL=function(a,l,m){return new jq(a,this.T,l,m)};g.W(V9,qI);V9.prototype.R$=function(){return To().T}; V9.prototype.EY=function(){var a=zid();this.J!==a&&(this.T!=this&&a>this.T.J&&(this.T=this,gt(this)),this.J=a);return a==2};pQ.prototype.sample=function(){cH(this,gZ(),!1)}; pQ.prototype.j=function(){var a=RL(),l=Nv();a?(tq||(e5=l,g.Bn(bv.T,function(m){var T=m.Ch();T.St=CM(T,l,m.AO!=1)})),tq=!0):(this.B=fYt(this,l),tq=!1,gAd=l,g.Bn(bv.T,function(m){m.kD&&(m.Ch().J=l)})); cH(this,gZ(),!a)}; var Zn=Xl(pQ);var Bbt=null,EO="",CQ=!1;var wdR=nA7().Gh,Na=nA7().yx;var EAd={fEN:"visible",Zux:"audible",I0t:"time",l0O:"timetype"},oAP={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return a=="0"||a=="1"}, timetype:function(a){return a=="mtos"||a=="tos"}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}}; CPQ.prototype.setTime=function(a,l,m){l=="ms"?(this.Z=a,this.j=-1):(this.Z=-1,this.j=a);this.K=m===void 0?"tos":m;return this};g.W(Fy,oL);Fy.prototype.getId=function(){return this.B}; Fy.prototype.C=function(){return!0}; Fy.prototype.T=function(a){var l=a.Ch(),m=a.getDuration();return md(this.J,function(T){if(T.T!=void 0)var y=DcR(T,l);else b:{switch(T.K){case "mtos":y=T.L?l.K.Z:l.Z.T;break b;case "tos":y=T.L?l.K.T:l.Z.T;break b}y=0}y==0?T=!1:(T=T.Z!=-1?T.Z:m!==void 0&&m>0?T.j*m:-1,T=T!=-1&&y>=T);return T})};g.W(h5,x6Q);h5.prototype.T=function(a){var l=new o2p;l.T=kU(a,Gdn);l.L=kU(a,pnV);return l};g.W(OO,oL);OO.prototype.T=function(a){return mcw(a)};g.W(KQ,U6d);g.W(za,oL);za.prototype.T=function(a){return a.Ch().s$()};g.W(vH,xU);vH.prototype.T=function(a){var l=g.pD(this.B,jj(Mv().qN,"ovms"));return!a.Ua&&(a.AO!=0||l)};g.W($p,KQ);$p.prototype.L=function(){return new vH(this.T)}; $p.prototype.Z=function(){return[new za("viewable_impression",this.T),new OO(this.T)]};g.W(sO,X6);sO.prototype.j=function(){var a=g.Yl("ima.admob.getViewability"),l=jj(this.qN,"queryid");typeof a==="function"&&l&&a(l)}; sO.prototype.getName=function(){return"gsv"};g.W(Sq,dt);Sq.prototype.getName=function(){return"gsv"}; Sq.prototype.u7=function(){var a=To();Mv();return a.L&&!1}; Sq.prototype.YL=function(a,l,m){return new sO(this.T,l,m)};g.W(fQ,X6);fQ.prototype.j=function(){var a=this,l=g.Yl("ima.bridge.getNativeViewability"),m=jj(this.qN,"queryid");typeof l==="function"&&m&&l(m,function(T){g.rg(T)&&a.B++;var y=T.opt_nativeViewVisibleBounds||{},R=T.opt_nativeViewHidden;a.T=qed(T.opt_nativeViewBounds||{});var H=a.L.j;H.T=R?ZDr.clone():qed(y);a.timestamp=T.opt_nativeTime||-1;To().T=H.T;T=T.opt_nativeVolume;T!==void 0&&(H.volume=T)})}; fQ.prototype.getName=function(){return"nis"};g.W(J5,dt);J5.prototype.getName=function(){return"nis"}; J5.prototype.u7=function(){var a=To();Mv();return a.L&&!1}; J5.prototype.YL=function(a,l,m){return new fQ(this.T,l,m)};g.W(BH,qI);g.Z=BH.prototype;g.Z.EY=function(){return this.L.It!=null}; g.Z.o$=function(){var a={};this.Kx&&(a.mraid=this.Kx);this.jt&&(a.mlc=1);a.mtop=this.L.v0K;this.B&&(a.mse=this.B);this.Cx&&(a.msc=1);a.mcp=this.L.compatibility;return a}; g.Z.Do=function(a){var l=g.Jz.apply(1,arguments);try{return this.L.It[a].apply(this.L.It,l)}catch(m){LA(538,m,.01,function(T){T.method=a})}}; g.Z.initialize=function(){var a=this;if(this.isInitialized)return!this.KB();this.isInitialized=!0;if(this.L.compatibility===2)return this.B="ng",this.Mw("w"),!1;if(this.L.compatibility===1)return this.B="mm",this.Mw("w"),!1;To().J=!0;this.Z.document.readyState&&this.Z.document.readyState=="complete"?Ucz(this):hA(this.Z,"load",function(){U0().setTimeout(cP(292,function(){return Ucz(a)}),100)},292); return!0}; g.Z.mj=function(){var a=To(),l=T8t(this,"getMaxSize");a.T=new hq(0,l.width,l.height,0)}; g.Z.Kr=function(){To().j=T8t(this,"getScreenSize")}; g.Z.dispose=function(){aH7(this);qI.prototype.dispose.call(this)};var KEt=new function(a,l){this.key=a;this.defaultValue=l===void 0?!1:l;this.valueType="boolean"}("45378663");g.Z=nQ.prototype;g.Z.gr=function(a){vN(a,!1);NbH(a)}; g.Z.d3=function(){}; g.Z.LP=function(a,l,m,T){var y=this;a=new Ui(Ad,a,m?l:-1,7,this.oe(),this.Sg());a.Iy=T;kHw(a.qN);dG(a.qN,"queryid",a.Iy);a.Kk("");kLd(a,function(){return y.PT.apply(y,g.F(g.Jz.apply(0,arguments)))},function(){return y.Ps.apply(y,g.F(g.Jz.apply(0,arguments)))}); (T=Xl(Ma).T)&&SMb(a,T);this.Z&&(a.wu(this.Z),this.Z=null);a.Ic.BB&&Xl(vAp);return a}; g.Z.eY=function(a){switch(a.Xs()){case 0:if(a=Xl(Ma).T)a=a.T,g.Wn(a.K,this),a.N&&this.zB()&&ivR(a);IU();break;case 2:WH()}}; g.Z.vB=function(){}; g.Z.zB=function(){return!1}; g.Z.Ps=function(a,l){a.Ua=!0;switch(a.Ot()){case 1:g1R(a,l);break;case 2:this.fk(a)}}; g.Z.T$=function(a){var l=a.B(a);l&&(l=l.volume,a.vF=lf(l)&&l>0);Ri7(a,0);return y9(a,"start",RL())}; g.Z.Fb=function(a,l,m){cH(Zn,[a],!RL());return this.iY(a,l,m)}; g.Z.iY=function(a,l,m){return y9(a,m,RL())}; g.Z.NK=function(a){return rZ(a,"firstquartile",1)}; g.Z.aG=function(a){a.wb=!0;return rZ(a,"midpoint",2)}; g.Z.Ly=function(a){return rZ(a,"thirdquartile",3)}; g.Z.zr=function(a){var l=rZ(a,"complete",4);rt(a);return l}; g.Z.Gr=function(a){a.AO=3;return y9(a,"error",RL())}; g.Z.eJ=function(a,l,m){l=RL();if(a.zF()&&!l){var T=a.Ch(),y=Nv();T.J=y}cH(Zn,[a],!l);a.zF()&&(a.AO=1);return y9(a,m,l)}; g.Z.IG=function(a,l){l=this.Fb(a,l||{},"skip");rt(a);return l}; g.Z.nj=function(a,l){vN(a,!0);return this.Fb(a,l||{},"fullscreen")}; g.Z.yD=function(a,l){vN(a,!1);return this.Fb(a,l||{},"exitfullscreen")}; g.Z.Un=function(a,l,m){l=a.Ch();var T=Nv();l.St=CM(l,T,a.AO!=1);cH(Zn,[a],!RL());a.AO==1&&(a.AO=2);return y9(a,m,RL())}; g.Z.vx=function(a){cH(Zn,[a],!RL());return a.L()}; g.Z.Gy=function(a){cH(Zn,[a],!RL());this.iy(a);rt(a);return a.L()}; g.Z.PT=function(){}; g.Z.fk=function(){}; g.Z.iy=function(){}; g.Z.xM=function(){}; g.Z.CA=function(){}; g.Z.Sg=function(){this.T||(this.T=this.CA());return this.T==null?new D8:new $p(this.T)}; g.Z.oe=function(){return new h5};g.W(a3,oL);a3.prototype.T=function(a){return a.EC()==4};g.W(lh,xU);lh.prototype.T=function(a){a=a.EC();return a==3||a==4};g.W(mp,KQ);mp.prototype.L=function(){return new lh(this.T)}; mp.prototype.Z=function(){return[new a3(this.T)]};g.W(Tt,x6Q);Tt.prototype.T=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var l=new o2p;l.T=kU(a,Vc9);l.L=kU(a,pnV);return l};jR5.prototype.L=function(){return g.Yl(this.T)};g.W(y$,nQ);g.Z=y$.prototype;g.Z.d3=function(a,l){var m=this,T=Xl(Ma);if(iv(T))switch(T.T.getName()){case "nis":var y=V5t(this,a,l);break;case "gsv":y=GrR(this,a,l);break;case "exc":y=pPp(this,a)}y||(l.opt_overlayAdElement?y=void 0:l.opt_adElement&&(y=iAQ(this,a,l.opt_adElement,l.opt_osdId)));y&&y.Ot()==1&&(y.B==g.Gb&&(y.B=function(R){return m.xM(R)}),PiR(this,y,l)); return y}; g.Z.xM=function(a){a.L=0;a.qj=0;if(a.j=="h"||a.j=="n"){Mv();a.Mj&&(Mv(),xp(this)!="h"&&xp(this));var l=g.Yl("ima.common.getVideoMetadata");if(typeof l==="function")try{var m=l(a.Iy)}catch(y){a.L|=4}else a.L|=2}else if(a.j=="b")if(l=g.Yl("ytads.bulleit.getVideoMetadata"),typeof l==="function")try{m=l(a.Iy)}catch(y){a.L|=4}else a.L|=2;else if(a.j=="ml")if(l=g.Yl("ima.common.getVideoMetadata"),typeof l==="function")try{m=l(a.Iy)}catch(y){a.L|=4}else a.L|=2;else a.L|=1;a.L||(m===void 0?a.L|=8:m===null? a.L|=16:g.rg(m)?a.L|=32:m.errorCode!=null&&(a.qj=m.errorCode,a.L|=64));m==null&&(m={});l=m;a.J=0;for(var T in Mcs)l[T]==null&&(a.J|=Mcs[T]);dvd(l,"currentTime");dvd(l,"duration");lf(m.volume)&&lf()&&(m.volume*=NaN);return m}; g.Z.CA=function(){Mv();xp(this)!="h"&&xp(this);var a=ZAt(this);return a!=null?new jR5(a):null}; g.Z.fk=function(a){!a.T&&a.Ua&&UO(this,a,"overlay_unmeasurable_impression")&&(a.T=!0)}; g.Z.iy=function(a){a.G6&&(a.s$()?UO(this,a,"overlay_viewable_end_of_session_impression"):UO(this,a,"overlay_unviewable_impression"),a.G6=!1)}; g.Z.PT=function(){}; g.Z.LP=function(a,l,m,T){if(znP()){var y=jj(Mv().qN,"mm"),R={};(y=(R[ii.CL]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",R[ii.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",R)[y])&&N85(this,y);this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&LA(1044,Error())}a=nQ.prototype.LP.call(this,a,l,m,T);this.K&&(l=this.C,a.K==null&&(a.K=new n2Q),l.T[a.Iy]=a.K,a.K.K=Wss);return a}; g.Z.gr=function(a){a&&a.Ot()==1&&this.K&&delete this.C.T[a.Iy];return nQ.prototype.gr.call(this,a)}; g.Z.Sg=function(){this.T||(this.T=this.CA());return this.T==null?new D8:this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new mp(this.T):new $p(this.T)}; g.Z.oe=function(){return this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Tt:new h5}; g.Z.wu=function(a,l,m,T,y){l=new hq(m,l+T,m+y,l);(a=qa(bv,a))?a.wu(l):this.Z=l}; var cI5=WP(193,t5d,void 0,M5d);g.Xt("Goog_AdSense_Lidar_sendVastEvent",cI5);var Ls_=cP(194,function(a,l){l=l===void 0?{}:l;a=L97(Xl(y$),a,l);return QR3(a)}); g.Xt("Goog_AdSense_Lidar_getViewability",Ls_);var NgX=WP(195,function(){return QVt()}); g.Xt("Goog_AdSense_Lidar_getUrlSignalsArray",NgX);var Qss=cP(196,function(){return JSON.stringify(QVt())}); g.Xt("Goog_AdSense_Lidar_getUrlSignalsList",Qss);var hL5=Az(["//ep2.adtrafficquality.google/sodar/",""]),OAp=Az(["//tpc.googlesyndication.com/sodar/",""]);g.W(bh,Error);g.W(ih,g.k);ih.prototype.cP=function(){return this.wpc.f()}; ih.prototype.Ep=function(a){this.wpc.c(a)}; ih.prototype.Rr=function(a){return this.wpc.m($vR(a))}; ih.prototype.DM=function(a){return this.wpc.mws($vR(a))}; g.W(g9,g.k);g9.prototype.snapshot=function(a){return this.HY.s(Object.assign({},a.uh&&{c:a.uh},a.Fn&&{s:a.Fn},a.AF!==void 0&&{p:a.AF}))}; g9.prototype.HJ=function(a){this.HY.e(a)}; g9.prototype.tD=function(){return this.HY.l()};var kr5;g.W(jf,g.k);jf.prototype.share=function(){if(this.FO())throw Error("E:AD");this.j++;return this}; jf.prototype.dispose=function(){--this.j||g.k.prototype.dispose.call(this)}; kr5=Symbol.dispose;n15.prototype.Qr=function(a,l){this.T.Qr("/client_streamz/bg/frs",a,l)}; wPR.prototype.Qr=function(a,l,m,T,y,R){this.T.Qr("/client_streamz/bg/wrl",a,l,m,T,y,R)}; IHz.prototype.p$=function(a,l){this.T.cV("/client_streamz/bg/ec",a,l)}; CiH.prototype.Qr=function(a,l,m){this.T.Qr("/client_streamz/bg/el",a,l,m)}; E1p.prototype.p$=function(a,l){this.T.cV("/client_streamz/bg/cec",a,l)}; o1p.prototype.p$=function(a,l){this.T.cV("/client_streamz/bg/po/csc",a,l)}; xv7.prototype.p$=function(a,l){this.T.cV("/client_streamz/bg/po/ctav",a,l)}; Dvz.prototype.p$=function(a,l){this.T.cV("/client_streamz/bg/po/cwsc",a,l)};g.W(u8H,L0);g.W(Gt,L0);var cE=[1,2,3];var tcI=[0,cE,RrI,rzX,TgI];var er9=[0,aB,[0,ElI,Dds]];g.W(V$,L0);var WE=[1,2,3];var Fs_=[0,WE,X5_,xd_,mm,er9];g.W(pa,L0);var hrB=[0,aB,tcI,Fs_];var ODV=[0,[1,2,3],mm,[0,rv,-1,mFg],mm,[0,rv,-1,YQ5,mFg],mm,[0,rv]];g.W(Zx,L0);Zx.prototype.wv=function(){var a=OM(this,3,Ue,3,!0);LV(a);return a[void 0]};Zx.prototype.L=enz([0,rv,ODV,yIg,aB,hrB,a9g,l9F]);g.W(Yhd,L0);g.Z=La.prototype;g.Z.isEnabled=function(){if(!g.u7.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Uy:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.Z.set=function(a,l,m){var T=!1;if(typeof m==="object"){var y=m.b$j;T=m.secure||!1;var R=m.domain||void 0;var H=m.path||void 0;var b=m.Uy}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(l))throw Error('Invalid cookie value "'+l+'"');b===void 0&&(b=-1);m=R?";domain="+R:"";H=H?";path="+H:"";T=T?";secure":"";b=b<0?"":b==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+b*1E3)).toUTCString();this.T.cookie=a+"="+l+m+H+b+T+(y!=null?";samesite="+ y:"")}; g.Z.get=function(a,l){for(var m=a+"=",T=(this.T.cookie||"").split(";"),y=0,R;y=0;l--)this.remove(a[l])}; var B$=new La(typeof document=="undefined"?null:document);Q$.prototype.compress=function(a){var l,m,T,y;return g.J(function(R){switch(R.L){case 1:return l=new CompressionStream("gzip"),m=(new Response(l.readable)).arrayBuffer(),T=l.writable.getWriter(),g.z(R,T.write((new TextEncoder).encode(a)),2);case 2:return g.z(R,T.close(),3);case 3:return y=Uint8Array,g.z(R,m,4);case 4:return R.return(new y(R.T))}})}; Q$.prototype.isSupported=function(a){return a<1024?!1:typeof CompressionStream!=="undefined"};g.W(tp,L0);ef.prototype.setInterval=function(a){this.intervalMs=a;this.Jb&&this.enabled?(this.stop(),this.start()):this.Jb&&this.stop()}; ef.prototype.start=function(){var a=this;this.enabled=!0;this.Jb||(this.Jb=setTimeout(function(){a.tick()},this.intervalMs),this.L=this.T())}; ef.prototype.stop=function(){this.enabled=!1;this.Jb&&(clearTimeout(this.Jb),this.Jb=void 0)}; ef.prototype.tick=function(){var a=this;if(this.enabled){var l=Math.max(this.T()-this.L,0);l0?m:void 0));m=QJ(m,4,nV(y>0?y:void 0));m=QJ(m,5,nV(R>0?R:void 0));y=m.Tx;R=y[PA]|0;m=cA(m,R)?m:new m.constructor(VJ(y,R));of(H,O$,10,m)}H=this.T.clone();m=Date.now().toString();H=QJ(H,4,DU(m));a=x2(H,Jp,3,a.slice());T&&(H=new F0,T=QJ(H,13,nV(T)),H=new hp,T=of(H,F0,2,T),H= new fa,T=of(H,hp,1,T),T=T0(T,2,9),of(a,fa,18,T));l&&a1(a,14,l);return a};g.w9.prototype.L=0;g.w9.prototype.reset=function(){this.T=this.Z=this.j;this.L=0}; g.w9.prototype.getValue=function(){return this.Z};g.W(RR,L0);var Ksd=qv(RR);g.W(Qj5,L0);var M7=new t$H;g.W(o3,g.k);g.Z=o3.prototype;g.Z.sL=function(){E$(this);this.L.stop();this.Kx.stop();g.k.prototype.sL.call(this)}; g.Z.dispatch=function(a){if(a instanceof Jp)this.log(a);else try{var l=new Jp,m=a.N2();var T=lP(l,8,m);this.log(T)}catch(y){xx(this,4,1)}}; g.Z.log=function(a){xx(this,2,1);if(this.Cx){a=a.clone();var l=this.tM++;a=a1(a,21,l);this.componentId&&lP(a,26,this.componentId);l=a;var m=Lv(l,1);var T=T===void 0?!1:T;var y=typeof m;T=m==null?m:y==="bigint"?String(Ee(64,m)):kF(m)?y==="string"?CV(m):T?ol(m):xF(m):void 0;T==null&&(T=Date.now(),T=Number.isFinite(T)?T.toString():"0",QJ(l,1,DU(T)));T=Lv(l,15);T!=null&&(typeof T==="bigint"?M6(T)?T=Number(T):(T=Ee(64,T),T=M6(T)?Number(T):String(T)):T=kF(T)?typeof T==="number"?xF(T):CV(T):void 0);T!=null|| a1(l,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(T=this.experimentIds.clone(),of(l,tp,16,T));xx(this,1,1);l=this.T.length-1E3+1;l>0&&(this.T.splice(0,l),this.j+=l,xx(this,3,l));this.T.push(a);this.Av||this.L.enabled||this.L.start()}}; g.Z.flush=function(a,l){var m=this;if(this.T.length===0)a&&a();else if(this.hM&&this.Ij)this.Z.L=3,Ld7(this);else{var T=Date.now();if(this.St>T&&this.qj0&&(m.qj=Date.now(),m.St=m.qj+G);var L;G=gg(TL);Ar&&G&&((L=V.Tx[G])==null?void 0:L[175237375])!=null&&Djl(z3D,3);L=M7.T?M7.L(V,M7.T,175237375,M7.Z):M7.L(V,175237375,null,M7.Z);if(L=L===null?void 0:L)L=Xb(L,1,-1),L!==-1&&(m.K=new g.w9(L<1?1:L,3E5,.1),m.L.setInterval(m.K.getValue()))}}a&& a();m.C=0},A=function(G,V){var p=Cv(R,Jp,3); var L=Number(ky7(R,14));g.I3(m.K);m.L.setInterval(m.K.getValue());G===401&&H&&(m.AM=H);L&&(m.j+=L);V===void 0&&(V=m.isRetryable(G));V&&(m.T=p.concat(m.T),m.Av||m.L.enabled||m.L.start());xx(m,7,1);l&&l("net-send-failed",G);++m.C},P=function(){m.network&&m.network.send(M,d,A)}; b?b.then(function(G){xx(m,5,y);M.requestHeaders["Content-Encoding"]="gzip";M.requestHeaders["Content-Type"]="application/binary";M.body=G;M.Gm=2;P()},function(){xx(m,6,y); P()}):P()}}}}; g.Z.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};Dx.prototype.send=function(a,l,m){var T=this,y,R,H,b,M,d,A,P,G,V;return g.J(function(p){switch(p.L){case 1:return R=(y=T.Ff?new AbortController:void 0)?setTimeout(function(){y.abort()},a.timeoutMillis):void 0,g.LP(p,2,3),H=Object.assign({},{method:a.requestType, headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&y?y.signal:null}),g.z(p,fetch(a.url,H),5);case 5:b=p.T;if(b.status!==200){(M=m)==null||M(b.status);p.iT(3);break}if((d=l)==null){p.iT(7);break}return g.z(p,b.text(),8);case 8:d(p.T);case 7:case 3:g.zH(p);clearTimeout(R);g.$l(p,0);break;case 2:A=g.OQ(p);switch((P=A)==null?void 0:P.name){case "AbortError":(G=m)==null||G(408);break;default:(V=m)==null||V(400)}p.iT(3)}})}; Dx.prototype.H9=function(){return 4};g.W(uh,g.k);uh.prototype.Yq=function(){this.K=!0;return this}; uh.prototype.build=function(){this.network||(this.network=new Dx);var a=new o3({logSource:this.logSource,nU:this.nU?this.nU:bMw,sessionIndex:this.sessionIndex,n0T:this.Vu,TC:this.j,Av:!1,Yq:this.K,nN:this.nN,network:this.network});g.w(this,a);if(this.L){var l=this.L,m=na(a.Z);lP(m,7,l)}a.B=new Q$;this.componentId&&(a.componentId=this.componentId);this.oD&&(a.oD=this.oD);this.pageId&&(a.pageId=this.pageId);this.T&&((m=this.T)?(a.experimentIds||(a.experimentIds=new tp),l=a.experimentIds,m=m.N2(),lP(l, 4,m)):a.experimentIds&&QJ(a.experimentIds,4));this.Z&&(a.hM=a.Ij);V6w(a.Z);this.network.BQ&&this.network.BQ(this.logSource);this.network.z6L&&this.network.z6L(a);return a};g.W(X0,g.k);X0.prototype.flush=function(a){a=a||[];if(a.length){for(var l=new Yhd,m=[],T=0;T-1?(l=a[H],m||(l.Sr=!1)):(l=new Kdl(l,this.src,R,!!T,y),l.Sr=m,a.push(l));return l}; g.Z.remove=function(a,l,m,T){a=a.toString();if(!(a in this.listeners))return!1;var y=this.listeners[a];l=HZ(y,l,m,T);return l>-1?(TW(y[l]),g.Z9(y,l),y.length==0&&(delete this.listeners[a],this.T--),!0):!1}; g.Z.removeAll=function(a){a=a&&a.toString();var l=0,m;for(m in this.listeners)if(!a||m==a){for(var T=this.listeners[m],y=0;y-1?a[y]:null}; g.Z.hasListener=function(a,l){var m=a!==void 0,T=m?a.toString():"",y=l!==void 0;return g.EX(this.listeners,function(R){for(var H=0;H>>0);g.iV(g.Vz,g.k);g.Vz.prototype[h_7]=!0;g.Z=g.Vz.prototype;g.Z.addEventListener=function(a,l,m,T){g.bB(this,a,l,m,T)}; g.Z.removeEventListener=function(a,l,m,T){JAQ(this,a,l,m,T)}; g.Z.dispatchEvent=function(a){var l=this.Lk;if(l){var m=[];for(var T=1;l;l=l.Lk)m.push(l),++T}l=this.Vz;T=a.type||a;if(typeof a==="string")a=new g.ak(a,l);else if(a instanceof g.ak)a.target=a.target||l;else{var y=a;a=new g.ak(T,l);g.yk(a,y)}y=!0;var R;if(m)for(R=m.length-1;!a.L&&R>=0;R--){var H=a.currentTarget=m[R];y=p1(H,T,!0,a)&&y}a.L||(H=a.currentTarget=l,y=p1(H,T,!0,a)&&y,a.L||(y=p1(H,T,!1,a)&&y));if(m)for(R=0;!a.L&&R0){this.L--;var a=this.T;this.T=a.next;a.next=null}else a=this.Z();return a};var cZ;N2.prototype.add=function(a,l){var m=CfR.get();m.set(a,l);this.L?this.L.next=m:this.T=m;this.L=m}; N2.prototype.remove=function(){var a=null;this.T&&(a=this.T,this.T=this.T.next,this.T||(this.L=null),a.next=null);return a}; var CfR=new ZL(function(){return new Qz},function(a){return a.reset()}); Qz.prototype.set=function(a,l){this.T=a;this.scope=l;this.next=null}; Qz.prototype.reset=function(){this.next=this.scope=this.T=null};var tC,eF=!1,wNl=new N2;EUb.prototype.reset=function(){this.context=this.L=this.Z=this.T=null;this.j=!1}; var oUp=new ZL(function(){return new EUb},function(a){a.reset()}); g.$G.prototype.then=function(a,l,m){return lnP(this,WZ(typeof a==="function"?a:null),WZ(typeof l==="function"?l:null),m)}; g.$G.prototype.$goog_Thenable=!0;g.Z=g.$G.prototype;g.Z.finally=function(a){var l=this;a=WZ(a);return new Promise(function(m,T){XNz(l,function(y){a();m(y)},function(y){a(); T(y)})})}; g.Z.wd=function(a,l){return lnP(this,null,WZ(a),l)}; g.Z.catch=g.$G.prototype.wd;g.Z.cancel=function(a){if(this.T==0){var l=new kG(a);g.FS(function(){Yip(this,l)},this)}}; g.Z.HaT=function(a){this.T=0;hC(this,2,a)}; g.Z.d2O=function(a){this.T=0;hC(this,3,a)}; g.Z.uN=function(){for(var a;a=UI5(this);)rAH(this,a,this.T,this.B);this.C=!1}; var Rab=lJ;g.iV(kG,dg);kG.prototype.name="cancel";g.iV(g.n1,g.Vz);g.Z=g.n1.prototype;g.Z.enabled=!1;g.Z.pR=null;g.Z.setInterval=function(a){this.rk=a;this.pR&&this.enabled?(this.stop(),this.start()):this.pR&&this.stop()}; g.Z.BLz=function(){if(this.enabled){var a=g.bV()-this.Hp;a>0&&a0&&(this.getStatus(),this.C=setTimeout(this.GH.bind(this), this.Ij)),this.getStatus(),this.N=!0,this.T.send(a),this.N=!1}catch(H){this.getStatus(),W47(this,H)}}; g.Z.GH=function(){typeof YG!="undefined"&&this.T&&(this.j="Timed out after "+this.Ij+"ms, aborting",this.L=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.Z.abort=function(a){this.T&&this.Z&&(this.getStatus(),this.Z=!1,this.K=!0,this.T.abort(),this.K=!1,this.L=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),XS(this))}; g.Z.sL=function(){this.T&&(this.Z&&(this.Z=!1,this.K=!0,this.T.abort(),this.K=!1),XS(this,!0));g.uB.l4.sL.call(this)}; g.Z.hq=function(){this.FO()||(this.jt||this.N||this.K?c55(this):this.BOb())}; g.Z.BOb=function(){c55(this)}; g.Z.isActive=function(){return!!this.T}; g.Z.isComplete=function(){return g.UB(this)==4}; g.Z.getStatus=function(){try{return g.UB(this)>2?this.T.status:-1}catch(a){return-1}}; g.Z.getResponseHeader=function(a){if(this.T&&this.isComplete())return a=this.T.getResponseHeader(a),a===null?void 0:a}; g.Z.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};T6.prototype.send=function(a,l,m){l=l===void 0?function(){}:l; m=m===void 0?function(){}:m; pHw(a.url,function(T){T=T.target;rX(T)?l(g.aI(T)):m(T.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)}; T6.prototype.H9=function(){return 1};RI.prototype.done=function(){this.logger.Mr(this.event,y8()-this.startTime)}; g.W(Hv,jf);g.W(bn,Hv);g.Z=bn.prototype;g.Z.Lc=function(){}; g.Z.ke=function(){}; g.Z.Mr=function(){}; g.Z.Ft=function(){}; g.Z.kt=function(){}; g.Z.sy=function(a,l,m,T){return T}; g.Z.JI=function(){}; g.Z.V3=function(){}; g.Z.WK=function(){}; g.Z.i_=function(){}; g.W(gO,Hv);g.Z=gO.prototype;g.Z.update=function(a){this.logger.dispose();this.logger=a}; g.Z.ke=function(a){this.logger.ke(a)}; g.Z.Mr=function(a,l){this.logger.Mr(a,l)}; g.Z.Ft=function(a){this.logger.Ft(a)}; g.Z.kt=function(){this.logger.kt()}; g.Z.sy=function(a,l,m,T){return this.logger.sy(a,l,m,T)}; g.Z.JI=function(a){this.logger.JI(a)}; g.Z.V3=function(a){this.logger.V3(a)}; g.Z.WK=function(a){this.logger.WK(a)}; g.Z.i_=function(a){this.logger.i_(a)}; g.Z.Lc=function(a){this.logger.Lc(a)}; g.W(MP,g.k);g.W(dO,Hv);g.Z=dO.prototype;g.Z.Lc=function(a){this.metrics.TLL.Qr(a,this.zS)}; g.Z.ke=function(a){this.metrics.eventCount.p$(a,this.zS)}; g.Z.Mr=function(a,l){this.metrics.Ei.Qr(l,a,this.zS)}; g.Z.Ft=function(a){this.metrics.errorCount.p$(a,this.zS)}; g.Z.sy=function(a,l,m,T){function y(b){if(!R.FO()){var M=y8()-H;R.metrics.U6j.Qr(M,a,m,b,l,R.zS)}} var R=this,H=y8();T.then(function(){return void y(0)},function(b){return void y(b instanceof EB?b.code:-1)}); return T}; g.Z.JI=function(a){this.metrics.i7j.p$(a,this.zS)}; g.Z.V3=function(a){this.metrics.yz.p$(a,this.zS)}; g.Z.WK=function(a){this.metrics.O7K.p$(a,this.zS)}; g.W(jz,dO);jz.prototype.i_=function(a){var l=this;this.T.dispose();this.L&&this.service.dispose();this.service=this.options.o7("49",this.options.QR.concat(a));this.T=new MP(function(){return void l.service.Qs()},this.options.BK); this.metrics=QU5(this.service);this.Z=a}; jz.prototype.kt=function(){ea7(this.T)};g.W(AQ,L0);g.W(Pv,L0);g.W(G6,L0);var J5H=qv(G6),haQ=function(a){return Nw(function(l){return l instanceof a&&!cA(l)})}(G6); G6.messageId="bfkj";g.W(d9,L0);g.W(V8,L0);var OQd=qv(V8);g.W(Zy,g.k);Zy.prototype.snapshot=function(a){if(this.FO())throw Error("Already disposed");this.logger.ke("n");var l=this.logger.share();return this.Z.then(function(m){var T=m.HU;return new Promise(function(y){var R=new RI(l,"n");T(function(H){R.done();l.Lc(H.length);l.kt();l.dispose();y(H)},[a.uh, a.Fn,a.Zs,a.AF])})})}; Zy.prototype.BA=function(a){var l=this;if(this.FO())throw Error("Already disposed");this.logger.ke("n");var m=qP(this.logger,function(){return l.j([a.uh,a.Fn,a.Zs,a.AF])},"n"); this.logger.Lc(m.length);this.logger.kt();return m}; Zy.prototype.HJ=function(a){this.Z.then(function(l){var m;(m=l.WxO)==null||m(a)})}; Zy.prototype.tD=function(){return this.logger.share()};g.W(Lr,L0);g.W(NP,L0);Q8.prototype.zw=function(a){return wHd(this,a,new bn,0)};g.W(tQ,g.k);tQ.prototype.snapshot=function(a){var l=this;return g.J(function(m){switch(m.L){case 1:if(l.FO())throw Error("Already disposed");if(l.L||l.B){m.iT(2);break}return g.z(m,l.K.promise,2);case 2:if(!l.L){m.iT(4);break}return g.z(m,l.L.snapshot(a),5);case 5:return m.return(m.T);case 4:throw l.B;}})}; tQ.prototype.HJ=function(a){var l,m;(l=this.L)==null||(m=l.HJ)==null||m.call(l,a)}; tQ.prototype.handleError=function(a){if(!this.FO()){this.B=a;this.K.resolve();var l,m;(m=(l=this.options).OEb)==null||m.call(l,a)}}; tQ.prototype.tD=function(){return this.logger.share()}; var Ep3={shz:432E5,oO:3E5,Fj:10,uE:1E4,FF:3E4,Mb:3E4,yag:6E4,q_:1E3,iN:6E4,hf:6E5,DD:.25,Oi:2,maxAttempts:10};var $FB,axp=($FB=Math.imul)!=null?$FB:function(a,l){return a*l|0},OA=[196, 200,224,18];Kr.prototype.N2=function(){return String(this.T)+","+this.L.join()}; Kr.prototype.Q2=function(a,l){var m=void 0;if(this.L[this.T]!==a){var T=this.L.indexOf(a);T!==-1?(this.L.splice(T,1),T0;)l[m++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return l.join("")}};var j3w;g.W(vv,g.k);vv.prototype.DM=function(a,l){var m=this.Rr(a);l==null||l(m);return qP(this.logger,function(){return g.Tf(m,2)},this.L)}; j3w=Symbol.dispose;g.W(Sz,vv);Sz.prototype.Rr=function(a,l){var m=this;this.logger.ke(this.T);++this.K>=this.C&&this.Z.resolve();var T=a();a=qP(this.logger,function(){return m.j(T)},"C"); if(a===void 0)throw new bh(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new bh(18,"ODM:Invalid");l==null||l(a);return a}; g.W(fr,vv);fr.prototype.Rr=function(){return this.j}; g.W(JQ,vv);JQ.prototype.Rr=function(){var a=this;return qP(this.logger,function(){return Rl(a.j)},"d")}; JQ.prototype.DM=function(){return this.j}; g.W(Bv,vv);Bv.prototype.Rr=function(){if(this.j)return this.j;this.j=App(this,function(a){return"_"+dSP(a)}); return App(this,function(a){return a})}; g.W(nr,vv);nr.prototype.Rr=function(){var a=Math.floor(Date.now()/1E3),l=[Math.random()*255,Math.random()*255],m=l.concat([this.j&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+m.length);a[0]=34;a[1]=m.length;a.set(m,2);m=a.subarray(2);for(var T=l=l.length;T150))try{this.cache=new q$l(a,this.logger)}catch(l){this.reportError(new bh(22,"GBJ:init",l))}}; g.Z.reportError=function(a){this.logger.Ft(a.code);this.onError(a);return a}; var Vfz=function(a){return Nw(function(l){if(!OPB(l))return!1;for(var m=g.c(Object.entries(a)),T=m.next();!T.done;T=m.next()){var y=g.c(T.value);T=y.next().value;y=y.next().value;if(!(T in l)){if(y.ddN===!0)continue;return!1}if(!y(l[T]))return!1}return!0})}({HY:function(a){return Nw(function(l){return l instanceof a})}(tQ)},"");var xPl=(new Date).getTime();g.W(oI,L0);var sss=qv(oI);eU7.prototype.getMetadata=function(){return this.metadata};xY.prototype.getMetadata=function(){return this.metadata}; xY.prototype.getStatus=function(){return this.status};Dy.prototype.B=function(a,l){l=l===void 0?{}:l;return new eU7(a,this,l)}; Dy.prototype.getName=function(){return this.name};var SXX=new Dy("/google.internal.waa.v1.Waa/Create",Lr,oI,function(a){return a.N2()},sss);g.W(un,L0);var npl=new Dy("/google.internal.waa.v1.Waa/GenerateIT",NP,un,function(a){return a.N2()},qv(un));var m2d=new Set(["SAPISIDHASH","APISIDHASH"]);g.W(Xe,L0);Xe.prototype.getValue=function(){var a=Lv(this,2);if(Array.isArray(a)||a instanceof L0)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return zL(this,2)};g.W(YY,L0);YY.prototype.getMessage=function(){return UM(this,2)}; var vx7=qv(YY);UA.prototype.E$=function(a,l){a=="data"?this.Z.push(l):a=="metadata"?this.K.push(l):a=="status"?this.C.push(l):a=="end"?this.j.push(l):a=="error"&&this.L.push(l);return this}; UA.prototype.removeListener=function(a,l){a=="data"?TJ(this.Z,l):a=="metadata"?TJ(this.K,l):a=="status"?TJ(this.C,l):a=="end"?TJ(this.j,l):a=="error"&&TJ(this.L,l);return this}; UA.prototype.cancel=function(){this.T.abort()}; UA.prototype.cancel=UA.prototype.cancel;UA.prototype.removeListener=UA.prototype.removeListener;UA.prototype.on=UA.prototype.E$;g.W(hUd,Error);g.iV(g.yr,Ga7);g.yr.prototype.T=function(){var a=new RA(this.j,this.Z);this.L&&a.setCredentialsMode(this.L);return a}; g.yr.prototype.setCredentialsMode=function(a){this.L=a}; g.iV(RA,g.Vz);g.Z=RA.prototype;g.Z.open=function(a,l){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ij=a;this.N=l;this.readyState=1;Hf(this)}; g.Z.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.T=!0;var l={headers:this.J,method:this.Ij,credentials:this.K,cache:void 0};a&&(l.body=a);(this.lT||g.u7).fetch(new Request(this.N,l)).then(this.Xv.bind(this),this.c9.bind(this))}; g.Z.abort=function(){this.response=this.responseText="";this.J=new Headers;this.status=0;this.Z&&this.Z.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,qV(this));this.readyState=0}; g.Z.Xv=function(a){if(this.T&&(this.j=a,this.L||(this.status=this.j.status,this.statusText=this.j.statusText,this.L=a.headers,this.readyState=2,Hf(this)),this.T&&(this.readyState=3,Hf(this),this.T)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.Hs.bind(this),this.c9.bind(this));else if(typeof g.u7.ReadableStream!=="undefined"&&"body"in a){this.Z=a.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.B=new TextDecoder;$Sd(this)}else a.text().then(this.dn.bind(this),this.c9.bind(this))}; g.Z.S2=function(a){if(this.T){if(this.C&&a.value)this.response.push(a.value);else if(!this.C){var l=a.value?a.value:new Uint8Array(0);if(l=this.B.decode(l,{stream:!a.done}))this.response=this.responseText+=l}a.done?qV(this):Hf(this);this.readyState==3&&$Sd(this)}}; g.Z.dn=function(a){this.T&&(this.response=this.responseText=a,qV(this))}; g.Z.Hs=function(a){this.T&&(this.response=a,qV(this))}; g.Z.c9=function(){this.T&&qV(this)}; g.Z.setRequestHeader=function(a,l){this.J.append(a,l)}; g.Z.getResponseHeader=function(a){return this.L?this.L.get(a.toLowerCase())||"":""}; g.Z.getAllResponseHeaders=function(){if(!this.L)return"";for(var a=[],l=this.L.entries(),m=l.next();!m.done;)m=m.value,a.push(m[0]+": "+m[1]),m=l.next();return a.join("\r\n")}; g.Z.setCredentialsMode=function(a){this.K=a}; Object.defineProperty(RA.prototype,"withCredentials",{get:function(){return this.K==="include"}, set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.b_.prototype.toString=function(){var a=[],l=this.K;l&&a.push(Pf(l,f9I,!0),":");var m=this.T;if(m||l=="file")a.push("//"),(l=this.J)&&a.push(Pf(l,f9I,!0),"@"),a.push(Jp7(g.Gy(m))),m=this.Z,m!=null&&a.push(":",String(m));if(m=this.L)this.T&&m.charAt(0)!="/"&&a.push("/"),a.push(Pf(m,m.charAt(0)=="/"?JId:Bgg,!0));(m=this.j.toString())&&a.push("?",m);(m=this.C)&&a.push("#",Pf(m,kdc));return a.join("")}; g.b_.prototype.resolve=function(a){var l=this.clone(),m=!!a.K;m?g.gR(l,a.K):m=!!a.J;m?l.J=a.J:m=!!a.T;m?g.MV(l,a.T):m=a.Z!=null;var T=a.L;if(m)g.i_(l,a.Z);else if(m=!!a.L){if(T.charAt(0)!="/")if(this.T&&!this.L)T="/"+T;else{var y=l.L.lastIndexOf("/");y!=-1&&(T=l.L.slice(0,y+1)+T)}y=T;if(y==".."||y==".")T="";else if(g.Z2(y,"./")||g.Z2(y,"/.")){T=Gm(y,"/");y=y.split("/");for(var R=[],H=0;H1||R.length==1&&R[0]!="")&&R.pop(), T&&H==y.length&&R.push("")):(R.push(b),T=!0)}T=R.join("/")}else T=y}m?l.L=T:m=a.j.toString()!=="";m?dR(l,a.j.clone()):m=!!a.C;m&&(l.C=a.C);return l}; g.b_.prototype.clone=function(){return new g.b_(this)}; var f9I=/[#\/\?@]/g,Bgg=/[#\?:]/g,JId=/[#\?]/g,S$t=/[#\?@]/g,kdc=/#/g;g.Z=Ay.prototype;g.Z.add=function(a,l){pG(this);this.Z=null;a=ZK(this,a);var m=this.T.get(a);m||this.T.set(a,m=[]);m.push(l);this.L=this.L+1;return this}; g.Z.remove=function(a){pG(this);a=ZK(this,a);return this.T.has(a)?(this.Z=null,this.L=this.L-this.T.get(a).length,this.T.delete(a)):!1}; g.Z.clear=function(){this.T=this.Z=null;this.L=0}; g.Z.isEmpty=function(){pG(this);return this.L==0}; g.Z.forEach=function(a,l){pG(this);this.T.forEach(function(m,T){m.forEach(function(y){a.call(l,y,T,this)},this)},this)}; g.Z.JK=function(){pG(this);for(var a=Array.from(this.T.values()),l=Array.from(this.T.keys()),m=[],T=0;T0?String(a[0]):l}; g.Z.toString=function(){if(this.Z)return this.Z;if(!this.T)return"";for(var a=[],l=Array.from(this.T.keys()),m=0;m>>3;R.Z!=1&&R.Z!=2&&R.Z!=15&&NV(R,H,b,"unexpected tag");R.T=1;R.L=0;R.j=0} function m(M){R.j++;R.j==5&&M&240&&NV(R,H,b,"message length too long");R.L|=(M&127)<<(R.j-1)*7;M&128||(R.T=2,R.J=0,typeof Uint8Array!=="undefined"?R.K=new Uint8Array(R.L):R.K=Array(R.L),R.L==0&&y())} function T(M){R.K[R.J++]=M;R.J==R.L&&y()} function y(){if(R.Z<15){var M={};M[R.Z]=R.K;R.B.push(M)}R.T=0} for(var R=this,H=a instanceof Array?a:new Uint8Array(a),b=0;b0?a:null};Qr.prototype.isInputValid=function(){return this.T===null}; Qr.prototype.La=function(){return this.T}; Qr.prototype.jr=function(){return!1}; Qr.prototype.parse=function(a){this.T!==null&&Exz(this,a,"stream already broken");var l=null;try{var m=this.Z;m.Z||ChR(m,a,"stream already broken");m.T+=a;var T=Math.floor(m.T.length/4);if(T==0)var y=null;else{try{var R=J0d(m.T.slice(0,T*4))}catch(H){ChR(m,m.T,H.message)}m.L+=T*4;m.T=m.T.slice(T*4);y=R}l=y===null?null:this.j.parse(y)}catch(H){Exz(this,a,H.message)}this.L+=a.length;return l};var wnB={INIT:0,Hr:1,qp:2,iI:3,YU:4,R7:5,STRING:6,OX:7,LN:8,eQ:9,m9:10,KN:11,Fo:12,x5:13,AZ:14,V$:15,UD:16,OD:17,qv:18,Tm:19,iV:20};g.Z=eY.prototype;g.Z.isInputValid=function(){return this.K!=3}; g.Z.La=function(){return this.N}; g.Z.done=function(){return this.K===2}; g.Z.jr=function(){return!1}; g.Z.parse=function(a){function l(){for(;G0;)if(p=a[G++], R.J===4?R.J=0:R.J++,!p)break a;if(p==='"'&&!R.B){R.T=T();break}if(p==="\\"&&!R.B&&(R.B=!0,p=a[G++],!p))break;if(R.B)if(R.B=!1,p==="u"&&(R.J=1),p=a[G++])continue;else break;b.lastIndex=G;p=b.exec(a);if(!p){G=a.length+1;break}G=p.index+1;p=a[p.index];if(!p)break}R.Z+=G-L;continue;case M.eQ:if(!p)continue;p==="r"?R.T=M.m9:KG(R,a,G);continue;case M.m9:if(!p)continue;p==="u"?R.T=M.KN:KG(R,a,G);continue;case M.KN:if(!p)continue;p==="e"?R.T=T():KG(R,a,G);continue;case M.Fo:if(!p)continue;p==="a"?R.T=M.x5: KG(R,a,G);continue;case M.x5:if(!p)continue;p==="l"?R.T=M.AZ:KG(R,a,G);continue;case M.AZ:if(!p)continue;p==="s"?R.T=M.V$:KG(R,a,G);continue;case M.V$:if(!p)continue;p==="e"?R.T=T():KG(R,a,G);continue;case M.UD:if(!p)continue;p==="u"?R.T=M.OD:KG(R,a,G);continue;case M.OD:if(!p)continue;p==="l"?R.T=M.qv:KG(R,a,G);continue;case M.qv:if(!p)continue;p==="l"?R.T=T():KG(R,a,G);continue;case M.Tm:p==="."?R.T=M.iV:KG(R,a,G);continue;case M.iV:if("0123456789.eE+-".indexOf(p)!==-1)continue;else G--,R.Z--,R.T= T();continue;default:KG(R,a,G)}}} function T(){var p=H.pop();return p!=null?p:M.Hr} function y(p){if(!(R.L>1)){p||(p=P===-1?R.j+a.substring(A,G):a.substring(P,G));if(R.Ij)R.C.push(p);else{var L=R.C,N=L.push;p=JSON.parse(p);N.call(L,p)}P=G}} for(var R=this,H=R.lT,b=R.jt,M=wnB,d=a.length,A=0,P=-1,G=0;G0?(V=R.C,R.C=[],V):null}return null};zJ.prototype.isInputValid=function(){return this.K===null}; zJ.prototype.La=function(){return this.K}; zJ.prototype.jr=function(){return!1}; zJ.prototype.parse=function(a){function l(M){R.L=6;R.K="The stream is broken @"+R.T+"/"+H+". Error: "+M+". With input:\n";throw Error(R.K);} function m(){R.Z=new eY({SeK:!0,Qa:!0})} function T(M){if(M)for(var d=0;d1)&&l("extra status: "+M);R.C=!0;var d={};d[2]=M[0];R.j.push(d)}} for(var R=this,H=0;H0?(a=R.j,R.j=[],a):null};vf.prototype.wh=function(){return this.T}; vf.prototype.getStatus=function(){return this.K}; vf.prototype.Ij=function(a){a=a.target;try{if(a==this.T)a:{var l=g.UB(this.T),m=this.T.L,T=this.T.getStatus(),y=g.aI(this.T);a=[];if(g.ln(this.T)instanceof Array){var R=g.ln(this.T);R.length>0&&R[0]instanceof Uint8Array&&(this.N=!0,a=R)}if(!(l<3||l==3&&!y&&a.length==0))if(T=T==200||T==206,l==4&&(m==8?$$(this,7):m==7?$$(this,8):T||$$(this,3)),this.L||(this.L=oxt(this.T),this.L==null&&$$(this,5)),this.K>2)sd(this);else{if(a.length>this.Z){var H=a.length;m=[];try{if(this.L.jr())for(var b=0;bthis.Z){b=y.slice(this.Z);this.Z=y.length;try{var d=this.L.parse(b);d!=null&&this.j&&this.j(d)}catch(A){$$(this,5);sd(this);break a}}l==4?(y.length!= 0||this.N?$$(this,2):$$(this,4),sd(this)):$$(this,1)}}}catch(A){$$(this,6),sd(this)}};g.Z=xS7.prototype;g.Z.E$=function(a,l){var m=this.L[a];m||(m=[],this.L[a]=m);m.push(l);return this}; g.Z.addListener=function(a,l){this.E$(a,l);return this}; g.Z.removeListener=function(a,l){var m=this.L[a];m&&g.Wn(m,l);(a=this.T[a])&&g.Wn(a,l);return this}; g.Z.once=function(a,l){var m=this.T[a];m||(m=[],this.T[a]=m);m.push(l);return this}; g.Z.aRN=function(a){var l=this.L.data;l&&DSd(a,l);(l=this.T.data)&&DSd(a,l);this.T.data=[]}; g.Z.Z5j=function(){switch(this.Z.getStatus()){case 1:SY(this,"readable");break;case 5:case 6:case 4:case 7:case 3:SY(this,"error");break;case 8:SY(this,"close");break;case 2:SY(this,"end")}};u0P.prototype.serverStreaming=function(a,l,m,T){var y=this,R=a.substring(0,a.length-T.name.length);return XEH(function(H){var b=H.m5,M=H.getMetadata(),d=rpP(y,!1);M=aLb(y,M,d,R+b.getName());var A=lLt(d,b.L,!0);H=b.T(H.ER);d.send(M,"POST",H);return A},this.j).call(this,T.B(l,m))};TX3.prototype.create=function(a,l){return kaz(this.T,this.L+"/$rpc/google.internal.waa.v1.Waa/Create",a,l||{},SXX)};var yCt="://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(" "),RJd=/\bocr\b/;var qBz=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(a){throw a;}},{Ghj:!0, yPg:!0,Ntj:p5X,nVb:ZP5,azj:!1,khN:!1,cPu:!0,zdt:!1});var Bf=null,AC7=Symbol("SIGNAL"),ia={version:0,r5T:0,G4:!1,u$:void 0,gH:void 0,Xu:void 0,NS:0,Kl:void 0,tH:void 0,Db:!1,xq:!1,kind:"unknown",v3:function(){return!1}, I5:function(){}, EV:function(){}, dHg:function(){}};var d7=Symbol("UNSET"),A1=Symbol("COMPUTING"),Pt=Symbol("ERRORED");Object.assign({},ia,{value:d7,G4:!0,error:null,sC:Jy,kind:"computed",v3:function(a){return a.value===d7||a.value===A1}, I5:function(a){if(a.value===A1)throw Error("Detected cycle in computations.");var l=a.value;a.value=A1;var m=b1H(a),T=!1;try{var y=a.iE();k$(null);T=l!==d7&&l!==Pt&&y!==Pt&&a.sC(l,y)}catch(R){y=Pt,a.error=R}finally{gGw(a,m)}T?a.value=l:(a.value=y,a.version++)}});var jkt=Object.assign({},ia,{sC:Jy,value:void 0,kind:"signal"});Object.assign({},ia,{value:d7,G4:!0,error:null,sC:Jy,kind:"linkedSignal",v3:function(a){return a.value===d7||a.value===A1}, I5:function(a){if(a.value===A1)throw Error("Detected cycle in computations.");var l=a.value;a.value=A1;var m=b1H(a);try{var T=a.source();var y=a.iE(T,l===d7||l===Pt?void 0:{source:a.sYt,value:l});a.sYt=T}catch(R){y=Pt,a.error=R}finally{gGw(a,m)}l!==d7&&y!==Pt&&a.sC(l,y)?a.value=l:(a.value=y,a.version++)}});Object.assign({},ia,{xq:!0,Db:!1,EV:function(a){a.schedule!==null&&a.schedule(a.WQK)}, k8j:!1,Rdu:function(){}});g.W(CG,g.Vz);CG.prototype.dispose=function(){window.removeEventListener("offline",this.Z);window.removeEventListener("online",this.Z);this.GF.ac(this.K);delete CG.instance}; CG.prototype.Dq=function(){return this.T}; CG.prototype.qI=function(){var a=this;this.K=this.GF.Q8(function(){var l;return g.J(function(m){if(m.L==1)return a.T?((l=window.navigator)==null?0:l.onLine)?m.iT(3):g.z(m,IA(a),3):g.z(m,IA(a),3);a.qI();g.c5(m)})},3E4)};oA.prototype.set=function(a,l){l=l===void 0?!0:l;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==l&&(this.data[a]=l,this.T=-1)}; oA.prototype.get=function(a){return!!this.data[a]};var X3;g.iV(g.rR,g.k);g.Z=g.rR.prototype;g.Z.start=function(){this.stop();this.j=!1;var a=Z1p(this),l=WN7(this);a&&!l&&this.L.mozRequestAnimationFrame?(this.T=g.bB(this.L,"MozBeforePaint",this.Z),this.L.mozRequestAnimationFrame(null),this.j=!0):this.T=a&&l?a.call(this.L,this.Z):this.L.setTimeout(CV5(this.Z),20)}; g.Z.stop=function(){if(this.isActive()){var a=Z1p(this),l=WN7(this);a&&!l&&this.L.mozRequestAnimationFrame?AC(this.T):a&&l?l.call(this.L,this.T):this.L.clearTimeout(this.T)}this.T=null}; g.Z.isActive=function(){return this.T!=null}; g.Z.cn=function(){this.j&&this.T&&AC(this.T);this.T=null;this.C.call(this.K,g.bV())}; g.Z.sL=function(){this.stop();g.rR.l4.sL.call(this)};g.iV(g.aH,g.k);g.Z=g.aH.prototype;g.Z.oP=0;g.Z.sL=function(){g.aH.l4.sL.call(this);this.stop();delete this.T;delete this.L}; g.Z.start=function(a){this.stop();this.oP=g.wX(this.Z,a!==void 0?a:this.rk)}; g.Z.stop=function(){this.isActive()&&g.u7.clearTimeout(this.oP);this.oP=0}; g.Z.isActive=function(){return this.oP!=0}; g.Z.V0=function(){this.oP=0;this.T&&this.T.call(this.L)};g.W(g.ye,g.k);g.Z=g.ye.prototype;g.Z.QV=function(a){this.Z=arguments;this.pR||this.L?this.T=!0:RH(this)}; g.Z.stop=function(){this.pR&&(g.u7.clearTimeout(this.pR),this.pR=null,this.T=!1,this.Z=null)}; g.Z.pause=function(){this.L++}; g.Z.resume=function(){this.L--;this.L||!this.T||this.pR||(this.T=!1,RH(this))}; g.Z.sL=function(){g.k.prototype.sL.call(this);this.stop()};g.Hb.prototype[Symbol.iterator]=function(){return this}; g.Hb.prototype.next=function(){var a=this.T.next();return{value:a.done?void 0:this.L.call(void 0,a.value),done:a.done}};g.iV(g.Pb,g.Vz);g.Z=g.Pb.prototype;g.Z.isPlaying=function(){return this.T==1}; g.Z.isPaused=function(){return this.T==-1}; g.Z.Zc=function(){this.eX("begin")}; g.Z.ue=function(){this.eX("end")}; g.Z.onFinish=function(){this.eX("finish")}; g.Z.onStop=function(){this.eX("stop")}; g.Z.eX=function(a){this.dispatchEvent(a)};var I9B=V6(function(){var a=g.lK("DIV"),l=g.Y5?"-webkit":w8?"-moz":null,m="transition:opacity 1s linear;";l&&(m+=l+"-transition:opacity 1s linear;");l=zrt({style:m});if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("");a.innerHTML=mv(l);return g.IR(a.firstChild,"transition")!=""});g.iV(Gw,g.Pb);g.Z=Gw.prototype;g.Z.play=function(){if(this.isPlaying())return!1;this.Zc();this.eX("play");this.startTime=g.bV();this.T=1;if(I9B())return g.nA(this.L,this.C),this.Z=g.wX(this.tbz,void 0,this),!0;this.GR(!1);return!1}; g.Z.tbz=function(){g.Uh(this.L);NXt(this.L,this.B);g.nA(this.L,this.j);this.Z=g.wX((0,g.Rs)(this.GR,this,!1),this.K*1E3)}; g.Z.stop=function(){this.isPlaying()&&this.GR(!0)}; g.Z.GR=function(a){g.nA(this.L,"transition","");g.u7.clearTimeout(this.Z);g.nA(this.L,this.j);this.endTime=g.bV();this.T=0;if(a)this.onStop();else this.onFinish();this.ue()}; g.Z.sL=function(){this.stop();Gw.l4.sL.call(this)}; g.Z.pause=function(){};var tF7={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};Ve("Element","attributes")||Ve("Node","attributes");Ve("Element","innerHTML")||Ve("HTMLElement","innerHTML");Ve("Node","nodeName");Ve("Node","nodeType");Ve("Node","parentNode");Ve("Node","childNodes");Ve("HTMLElement","style")||Ve("Element","style");Ve("HTMLStyleElement","sheet");var zJH=FN7("getPropertyValue"),vG7=FN7("setProperty");Ve("Element","namespaceURI")||Ve("Node","namespaceURI");var KNP={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var fL3,bPs,SBl,skQ,JCt;fL3=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]");bPs=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.CVn=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.ZS=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]");SBl=/^http:\/\/.*/;g.EBs=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");skQ=/\s+/;JCt=/[\d\u06f0-\u06f9]/;cb.prototype.nH=function(){return new Le(this.L())}; cb.prototype[Symbol.iterator]=function(){return new N$(this.L())}; cb.prototype.T=function(){return new N$(this.L())}; g.W(Le,g.$U);Le.prototype.next=function(){return this.L.next()}; Le.prototype[Symbol.iterator]=function(){return new N$(this.L)}; Le.prototype.T=function(){return new N$(this.L)}; g.W(N$,cb);N$.prototype.next=function(){return this.Z.next()};tM.prototype.clone=function(){return new tM(this.T,this.B,this.Z,this.K,this.j,this.C,this.L,this.J)}; tM.prototype.equals=function(a){return this.T==a.T&&this.B==a.B&&this.Z==a.Z&&this.K==a.K&&this.j==a.j&&this.C==a.C&&this.L==a.L&&this.J==a.J};FW.prototype.clone=function(){return new FW(this.start,this.end)}; FW.prototype.getLength=function(){return this.end-this.start};(function(){if(iBb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.ej()))?a[1]:"0"}return lz?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.ej()))?a[0].replace(/_/g,"."):"10"):g.TO?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.ej()))?a[1]:""):LbX||Nw5||Qds?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.ej()))?a[1].replace(/_/g,"."):""):""})();var kWR=function(){if(g.Uj)return hM(/Firefox\/([0-9.]+)/);if(g.pe||g.U9||g.KR)return Qsb;if(g.s_){if(tb()||ek()){var a=hM(/CriOS\/([0-9.]+)/);if(a)return a}return hM(/Chrome\/([0-9.]+)/)}if(g.Nr&&!tb())return hM(/Version\/([0-9.]+)/);if(ai||lR){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.ej()))return a[1]+"."+a[2]}else if(g.zI)return(a=hM(/Android\s+([0-9.]+)/))?a:hM(/Version\/([0-9.]+)/);return""}();g.iV(g.Ke,g.k);g.Z=g.Ke.prototype;g.Z.subscribe=function(a,l,m){var T=this.L[a];T||(T=this.L[a]=[]);var y=this.C;this.T[y]=a;this.T[y+1]=l;this.T[y+2]=m;this.C=y+3;T.push(y);return y}; g.Z.unsubscribe=function(a,l,m){if(a=this.L[a]){var T=this.T;if(a=a.find(function(y){return T[y+1]==l&&T[y+2]==m}))return this.rR(a)}return!1}; g.Z.rR=function(a){var l=this.T[a];if(l){var m=this.L[l];this.j!=0?(this.Z.push(a),this.T[a+1]=function(){}):(m&&g.Wn(m,a),delete this.T[a],delete this.T[a+1],delete this.T[a+2])}return!!l}; g.Z.publish=function(a,l){var m=this.L[a];if(m){var T=Array(arguments.length-1),y=arguments.length,R;for(R=1;R0&&this.j==0)for(;m=this.Z.pop();)this.rR(m)}}return R!=0}return!1}; g.Z.clear=function(a){if(a){var l=this.L[a];l&&(l.forEach(this.rR,this),delete this.L[a])}else this.T.length=0,this.L={}}; g.Z.sL=function(){g.Ke.l4.sL.call(this);this.clear();this.Z.length=0};g.zw.prototype.set=function(a,l){l===void 0?this.T.remove(a):this.T.set(a,g.ok(l))}; g.zw.prototype.get=function(a){try{var l=this.T.get(a)}catch(m){return}if(l!==null)try{return JSON.parse(l)}catch(m){throw"Storage: Invalid value was encountered";}}; g.zw.prototype.remove=function(a){this.T.remove(a)};g.iV(vb,g.zw);vb.prototype.set=function(a,l){vb.l4.set.call(this,a,ILd(l))}; vb.prototype.L=function(a){a=vb.l4.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; vb.prototype.get=function(a){if(a=this.L(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.iV($e,vb);$e.prototype.set=function(a,l,m){if(l=ILd(l)){if(m){if(m=m.length)return g.Ht;var y=m.key(l++);if(a)return g.si(y);y=m.getItem(y);if(typeof y!=="string")throw"Storage mechanism: Invalid value was encountered";return g.si(y)}; return T}; g.Z.clear=function(){JM(this);this.T.clear()}; g.Z.key=function(a){JM(this);return this.T.key(a)};g.iV(Bb,fe);g.iV(x2Q,fe);g.iV(ke,St);ke.prototype.set=function(a,l){this.L.set(this.T+a,l)}; ke.prototype.get=function(a){return this.L.get(this.T+a)}; ke.prototype.remove=function(a){this.L.remove(this.T+a)}; ke.prototype.nH=function(a){var l=this.L[Symbol.iterator](),m=this,T=new g.$U;T.next=function(){var y=l.next();if(y.done)return y;for(y=y.value;y.slice(0,m.T.length)!=m.T;){y=l.next();if(y.done)return y;y=y.value}return g.si(a?y.slice(m.T.length):m.L.get(y))}; return T};wK.prototype.getValue=function(){return this.L}; wK.prototype.clone=function(){return new wK(this.T,this.L)};g.Z=IH.prototype;g.Z.Q2=function(a,l){var m=this.T;m.push(new wK(a,l));a=m.length-1;l=this.T;for(m=l[a];a>0;){var T=a-1>>1;if(l[T].T>m.T)l[a]=l[T],a=T;else break}l[a]=m}; g.Z.remove=function(){var a=this.T,l=a.length,m=a[0];if(!(l<=0)){if(l==1)a.length=0;else{a[0]=a.pop();a=0;l=this.T;for(var T=l.length,y=l[a];a>1;){var R=a*2+1,H=a*2+2;R=Hy.T)break;l[a]=l[R];a=R}l[a]=y}return m.getValue()}}; g.Z.hs=function(){for(var a=this.T,l=[],m=a.length,T=0;T>>16&65535|0;for(var R;m!==0;){R=m>2E3?2E3:m;m-=R;do y=y+l[T++]|0,a=a+y|0;while(--R);y%=65521;a%=65521}return y|a<<16|0};for(var p5={},GA,Xns=[],Vc=0;Vc<256;Vc++){GA=Vc;for(var YXr=0;YXr<8;YXr++)GA=GA&1?3988292384^GA>>>1:GA>>>1;Xns[Vc]=GA}p5=function(a,l,m,T){m=T+m;for(a^=-1;T>>8^Xns[(a^l[T])&255];return a^-1};var bp={};bp={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 lp=[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],ys=[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],pvd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qAP=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],dh=Array(576);xe(dh);var jQ=Array(60);xe(jQ);var Tc=Array(512);xe(Tc);var aw=Array(256);xe(aw);var mo=Array(29);xe(mo);var Rw=Array(30);xe(Rw);var PnR,G6l,Vzb,AQz=!1;var NM;NM=[new L5(0,0,0,0,function(a,l){var m=65535;for(m>a.V5-5&&(m=a.V5-5);;){if(a.dW<=1){Zf(a);if(a.dW===0&&l===0)return 1;if(a.dW===0)break}a.Eb+=a.dW;a.dW=0;var T=a.UP+m;if(a.Eb===0||a.Eb>=T)if(a.dW=a.Eb-T,a.Eb=T,AW(a,!1),a.WY.XJ===0)return 1;if(a.Eb-a.UP>=a.j$-262&&(AW(a,!1),a.WY.XJ===0))return 1}a.Q2=0;if(l===4)return AW(a,!0),a.WY.XJ===0?3:4;a.Eb>a.UP&&AW(a,!1);return 1}), new L5(4,4,8,4,Wp),new L5(4,5,16,8,Wp),new L5(4,6,32,32,Wp),new L5(4,4,16,16,cp),new L5(8,16,32,32,cp),new L5(8,16,128,128,cp),new L5(8,32,128,256,cp),new L5(32,128,258,1024,cp),new L5(32,258,258,4096,cp)];var jIp={};jIp=function(){this.input=null;this.PM=this.DE=this.vM=0;this.output=null;this.PA=this.XJ=this.EU=0;this.msg="";this.state=null;this.V_=2;this.UG=0};var Zrb=Object.prototype.toString; Qs.prototype.push=function(a,l){var m=this.WY,T=this.options.chunkSize;if(this.ended)return!1;var y=l===~~l?l:l===!0?4:0;typeof a==="string"?m.input=XZ7(a):Zrb.call(a)==="[object ArrayBuffer]"?m.input=new Uint8Array(a):m.input=a;m.vM=0;m.DE=m.input.length;do{m.XJ===0&&(m.output=new oH.NV(T),m.EU=0,m.XJ=T);a=dP7(m,y);if(a!==1&&a!==0)return this.ue(a),this.ended=!0,!1;if(m.XJ===0||m.DE===0&&(y===4||y===2))if(this.options.to==="string"){var R=oH.Ko(m.output,m.EU);l=R;R=R.length;if(R<65537&&(l.subarray&& u_D||!l.subarray))l=String.fromCharCode.apply(null,oH.Ko(l,R));else{for(var H="",b=0;b0||m.XJ===0)&&a!==1);if(y===4)return(m=this.WY)&&m.state?(T=m.state.status,T!==42&&T!==69&&T!==73&&T!==91&&T!==103&&T!==113&&T!==666?a=gh(m,-2):(m.state=null,a=T===113?gh(m,-3):0)):a=-2,this.ue(a),this.ended=!0,a===0;y===2&&(this.ue(0),m.XJ=0);return!0}; Qs.prototype.ue=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):oH.a$(this.chunks));this.chunks=[];this.err=a;this.msg=this.WY.msg};var eQ="@@redux/INIT"+tW(),tzP="@@redux/REPLACE"+tW();var eG7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var UF_=[0,HD_,-3,TA];g.W(KX5,L0);var GUR=function(){var a=[0,bDs,qXs,rv,HD_,rv,-1,TA,HD_,TA,-1,bDs,TA,qXs,aB,UF_,rv,-1,TA];return function(l,m){var T={TR:!0};m&&Object.assign(T,m);l=DE7(l,void 0,void 0,T);try{var y=new KX5,R=y.Tx;C0(a)(R,l);var H=y}finally{l.free()}return H}}();var zG5=-1326686898;var C4Q=new g.Ou("adInfoDialogEndpoint");var VEl=new g.Ou("adPingingEndpoint");var B_d=new g.Ou("crossDeviceProgressCommand");var Rn=new g.Ou("actionCompanionAdRenderer");var MN=new g.Ou("adActionInterstitialRenderer");var rI9=new g.Ou("adDurationRemainingRenderer");var B_=new g.Ou("adHoverTextButtonRenderer");var wwb=new g.Ou("adInfoDialogRenderer");var c1=new g.Ou("adMessageRenderer");var kP=new g.Ou("adPreviewRenderer");var qW=new g.Ou("adsEngagementPanelRenderer");var i87=new g.Ou("dismissablePanelTextPortraitImageRenderer");var gn5=new g.Ou("adsEngagementPanelSectionListViewModel");var a2B=new g.Ou("flyoutCtaRenderer");var H_=new g.Ou("imageCompanionAdRenderer");var b3=new g.Ou("instreamAdPlayerOverlayRenderer");var FRd=new g.Ou("instreamSurveyAdBackgroundImageRenderer");var J_=new g.Ou("instreamSurveyAdPlayerOverlayRenderer");var t_=new g.Ou("instreamSurveyAdRenderer"),fl=new g.Ou("instreamSurveyAdSingleSelectQuestionRenderer"),S_=new g.Ou("instreamSurveyAdMultiSelectQuestionRenderer"),pk=new g.Ou("instreamSurveyAdAnswerRenderer"),l25=new g.Ou("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var GC=new g.Ou("instreamVideoAdRenderer");var mjD=new g.Ou("textOverlayAdContentRenderer"),TG_=new g.Ou("enhancedTextOverlayAdContentRenderer"),y0_=new g.Ou("imageOverlayAdContentRenderer");var gF=new g.Ou("playerOverlayLayoutRenderer");var i3=new g.Ou("videoInterstitialButtonedCenteredLayoutRenderer");var GNt=new g.Ou("aboveFeedAdLayoutRenderer");var V27=new g.Ou("belowPlayerAdLayoutRenderer");var Pqt=new g.Ou("inPlayerAdLayoutRenderer");var h_=new g.Ou("playerBytesAdLayoutRenderer");var sW=new g.Ou("playerBytesSequenceItemAdLayoutRenderer");var $P=new g.Ou("playerUnderlayAdLayoutRenderer");var Q1=new g.Ou("adIntroRenderer");var A_=new g.Ou("playerBytesSequentialLayoutRenderer");var Y55=new g.Ou("slidingTextPlayerOverlayRenderer");var e_=new g.Ou("surveyTextInterstitialRenderer");var OW=new g.Ou("videoAdTrackingRenderer");var RMd=new g.Ou("simpleAdBadgeRenderer");var iy=new g.Ou("skipAdRenderer"),HcD=new g.Ou("skipButtonRenderer");var Cl=new g.Ou("adSlotRenderer");var zC=new g.Ou("squeezebackPlayerSidePanelRenderer");var qtd=new g.Ou("timedPieCountdownRenderer");var wv=new g.Ou("adAvatarViewModel");var IF=new g.Ou("adBadgeViewModel");var CC=new g.Ou("adButtonViewModel");var bcs=new g.Ou("adDetailsLineViewModel");var g__=new g.Ou("adDisclosureBannerViewModel");var Mjn=new g.Ou("adPodIndexViewModel");var icg=new g.Ou("imageBackgroundViewModel");var djg=new g.Ou("adGridCardCollectionViewModel");var jV9=new g.Ou("adGridCardTextViewModel");var A05=new g.Ou("adPreviewViewModel");var P5V=new g.Ou("playerAdAvatarLockupCardButtonedViewModel");var Gm5=new g.Ou("skipAdButtonViewModel");var VjD=new g.Ou("skipAdViewModel");var p25=new g.Ou("timedPieCountdownViewModel");var Zcg=new g.Ou("visitAdvertiserLinkViewModel");var bM=new g.Ou("bannerImageLayoutViewModel");var g2=new g.Ou("topBannerImageTextIconButtonedLayoutViewModel");var MW=new g.Ou("adsEngagementPanelLayoutViewModel");var v_=new g.Ou("displayUnderlayTextGridCardsLayoutViewModel");g.FF=new g.Ou("browseEndpoint");var WnX=new g.Ou("confirmDialogEndpoint");var RuP=new g.Ou("commandContext");var gHP=new g.Ou("rawColdConfigGroup");var bZQ=new g.Ou("rawHotConfigGroup");g.Lu=new g.Ou("commandExecutorCommand");g.W($Pw,L0);var gcP={VX8:0,tXt:1,yKj:32,l5t:61,O2x:67,stT:103,Lcx:86,cKj:42,NUt:60,dhz:62,I58:73,a5b:76,Z2L:88,jtj:90,i2O:99,zv8:98,UHj:100,vV8:102,qej:41,hdK:69,DHx:70,EVu:71,VC8:2,B6O:27,ANDROID:3,d6b:54,XEu:14,nAT:91,Muj:55,Pkj:24,rpx:20,gAj:18,GWu:21,cpx:104,vdu:30,TkL:29,LHb:28,pug:101,saM:34,avz:36,zOL:38,IOS:5,mgO:15,WfN:92,Kfj:40,xgz:25,AOj:17,VcK:19,BlK:64,b_j:66,SHj:26,fiT:22,pI8:33,RcM:68,YHj:35,kzM:53,JOL:37,Ffj:39,inL:7,qZx:57,hvb:43,Ekx:59,DhT:93,lvL:74,uMz:75,ok8:85,ChK:65,mhL:80,K_8:8,Uhg:10, xhu:58,F_t:63,evx:72,IvO:23,CAu:11,edN:13,QaT:12,Onx:16,GFj:56,TtM:31,KML:77,rVL:84,nkb:87,zFM:89,g7T:94,j88:95};g.W(K5,L0);K5.prototype.tf=function(){return UM(this,3)}; K5.prototype.Gn=function(){return UM(this,5)}; K5.prototype.QF=function(a){return lP(this,5,a)};g.W(zc,L0);g.W(sI3,L0);g.W(vp,L0);g.Z=vp.prototype;g.Z.getDeviceId=function(){return UM(this,6)}; g.Z.LG=function(a){var l=OM(this,9,wr,3,!0);LV(l,a);return l[a]}; g.Z.getPlayerType=function(){return ra(this,36)}; g.Z.setHomeGroupInfo=function(a){return of(this,sI3,81,a)}; g.Z.clearLocationPlayabilityToken=function(){return QJ(this,89)};g.W($v,L0);$v.prototype.getValue=function(){return UM(this,k2(this,HZt,2))}; var HZt=[2,3,4,5,6];g.W(SQ,L0);SQ.prototype.setTrackingParams=function(a){return QJ(this,1,Ytw(a,!1))};g.W(f5,L0);g.W(JW,L0);JW.prototype.LG=function(a){var l=OM(this,5,Il,3,!0);LV(l,a);return l[a]};g.W(Bp,L0);Bp.prototype.getToken=function(){return uL(this,2)}; Bp.prototype.setToken=function(a){return lP(this,2,a)};g.W(kv,L0);kv.prototype.setSafetyMode=function(a){return T0(this,5,a)};g.W(n5,L0);n5.prototype.Vs=function(a){return of(this,vp,1,a)};var w2=new g.Ou("thumbnailLandscapePortraitRenderer");g.c0d=new g.Ou("changeEngagementPanelVisibilityAction");var PQw=new g.Ou("continuationCommand");g.LnF=new g.Ou("openPopupAction");g.ZJ=new g.Ou("webCommandMetadata");var kC7=new g.Ou("metadataBadgeRenderer");var AJz=new g.Ou("signalServiceEndpoint");var I9=new g.Ou("innertubeCommand");var l1l=new g.Ou("loggingDirectives");var ZG5={eFt:"EMBEDDED_PLAYER_MODE_UNKNOWN",uXu:"EMBEDDED_PLAYER_MODE_DEFAULT",CSg:"EMBEDDED_PLAYER_MODE_PFP",o7O:"EMBEDDED_PLAYER_MODE_PFL"};var d3p=new g.Ou("channelThumbnailEndpoint");var i35=new g.Ou("embeddedPlayerErrorMessageRenderer");var qYb=new g.Ou("embeddedPlayerOverlayVideoDetailsRenderer"),jh3=new g.Ou("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Al5=new g.Ou("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var fDQ=new g.Ou("embedsInfoPanelRenderer");var NGX=new g.Ou("feedbackEndpoint");var QV_=new g.Ou("callToActionButtonViewModel");var tjc=new g.Ou("interactionLoggingCommandMetadata");var PpR={gkj:"WEB_DISPLAY_MODE_UNKNOWN",Xug:"WEB_DISPLAY_MODE_BROWSER",Phg:"WEB_DISPLAY_MODE_MINIMAL_UI",rKb:"WEB_DISPLAY_MODE_STANDALONE",MXN:"WEB_DISPLAY_MODE_FULLSCREEN"};g.W(wh,L0);wh.prototype.getPlayerType=function(){return ra(this,7)}; wh.prototype.f$=function(){return UM(this,19)}; wh.prototype.setVideoId=function(a){return lP(this,19,a)};g.W(Iw,L0);g.W(C5,L0);g.W(xv,L0); var eMg=[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 Fnn=new g.Ou("loggingContext");g.W(Df,L0);g.W(up,L0);up.prototype.f$=function(){return uL(this,k2(this,Py,1))}; up.prototype.setVideoId=function(a){return JK(this,1,Py,YF(a))}; up.prototype.getPlaylistId=function(){return uL(this,k2(this,Py,2))}; var Py=[1,2];g.W(SAR,L0);var yZ=new g.Ou("changeKeyedMarkersVisibilityCommand");var hMF=new g.Ou("changeMarkersVisibilityCommand");var w_3=new g.Ou("loadMarkersCommand");var Ocd=new g.Ou("suggestedActionDataViewModel");var MUd=new g.Ou("timelyActionViewModel");var gD7=new g.Ou("timelyActionsOverlayViewModel");var c1d=new g.Ou("productListItemRenderer");var KnD=new g.Ou("shoppingOverlayRenderer");var b33=new g.Ou("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var zMB=new g.Ou("adFeedbackEndpoint");var v_9=new g.Ou("menuEndpoint");var FIR=new g.Ou("phoneDialerEndpoint");var te5=new g.Ou("sendSmsEndpoint");var H3d=new g.Ou("copyTextEndpoint");var $jn=new g.Ou("shareEndpoint"),sVn=new g.Ou("shareEntityEndpoint"),Str=new g.Ou("shareEntityServiceEndpoint"),f25=new g.Ou("webPlayerShareEntityServiceEndpoint");g.I8=new g.Ou("urlEndpoint");g.m3=new g.Ou("watchEndpoint");var J0s=new g.Ou("watchPlaylistEndpoint");g.BGr=new g.Ou("offlineOrchestrationActionCommand");var YP3=new g.Ou("compositeVideoOverlayRenderer");var km5=new g.Ou("miniplayerRenderer");var ylz=new g.Ou("paidContentOverlayRenderer");var n_5=new g.Ou("playerMutedAutoplayOverlayRenderer"),w2B=new g.Ou("playerMutedAutoplayEndScreenRenderer");var UCP=new g.Ou("unserializedPlayerResponse"),I2n=new g.Ou("unserializedPlayerResponse");var C5g=new g.Ou("playlistEditEndpoint");var Wt;g.nl=new g.Ou("buttonRenderer");Wt=new g.Ou("toggleButtonRenderer");var b8H=new g.Ou("counterfactualRenderer");var E_c=new g.Ou("resolveUrlCommandMetadata");var o__=new g.Ou("modifyChannelNotificationPreferenceEndpoint");var GX7=new g.Ou("pingingEndpoint");var xj5=new g.Ou("unsubscribeEndpoint");g.hU=new g.Ou("subscribeButtonRenderer");var DjB=new g.Ou("subscribeEndpoint");var vVl=new g.Ou("buttonViewModel");var M2b=new g.Ou("qrCodeRenderer");var ib7={nht:"LIVING_ROOM_APP_MODE_UNSPECIFIED",cOL:"LIVING_ROOM_APP_MODE_MAIN",GzO:"LIVING_ROOM_APP_MODE_KIDS",yOz:"LIVING_ROOM_APP_MODE_MUSIC",NlO:"LIVING_ROOM_APP_MODE_UNPLUGGED",zcj:"LIVING_ROOM_APP_MODE_GAMING"};var $WR=new g.Ou("autoplaySwitchButtonRenderer");var OS,i47,Rxp,LFd;OS=new g.Ou("decoratedPlayerBarRenderer");i47=new g.Ou("chapteredPlayerBarRenderer");Rxp=new g.Ou("multiMarkersPlayerBarRenderer");LFd=new g.Ou("chapterRenderer");g.Pkd=new g.Ou("markerRenderer");var FFd=new g.Ou("decoratedPlayheadRenderer");var J_l=new g.Ou("desktopOverlayConfigRenderer");var dDH=new g.Ou("engagementPanelSectionListRenderer");var SWt=new g.Ou("gatedActionsOverlayViewModel");var Z47=new g.Ou("heatMarkerRenderer");var pod=new g.Ou("heatmapRenderer");var nP7=new g.Ou("watchToWatchTransitionRenderer");var gRH=new g.Ou("playlistPanelRenderer");var uGd=new g.Ou("productUpsellSuggestedActionViewModel");var X2g=new g.Ou("suggestedActionTimeRangeTrigger"),Ytg=new g.Ou("suggestedActionsRenderer"),UjX=new g.Ou("suggestedActionRenderer");var WFb=new g.Ou("timedMarkerDecorationRenderer");var NF7=new g.Ou("cipher");var rVQ=new g.Ou("playerVars");var r0B=new g.Ou("playerVars");var ct=g.u7.window,a45,l45,Xn=(ct==null?void 0:(a45=ct.yt)==null?void 0:a45.config_)||(ct==null?void 0:(l45=ct.ytcfg)==null?void 0:l45.data_)||{};g.Xt("yt.config_",Xn);var at=[];var oY3=/^[\w.]*$/,wvt={q:!0,search_query:!0},nYd=String(y7);var AR=new function(){var a=window.document;this.T=window;this.L=a}; g.Xt("yt.ads_.signals_.getAdSignalsString",function(a){return Rt(Gv(a))});g.bV();var DPR="XMLHttpRequest"in g.u7?function(){return new XMLHttpRequest}:null;var mEX="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.F(mEX);var UP5={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"},g$b="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.F(mEX)),RWw=!1,mVb=hR;g.W(zv,dg);sZ.prototype.then=function(a,l,m){return this.T?this.T.then(a,l,m):this.L===1&&a?(a=a.call(m,this.Z))&&typeof a.then==="function"?a:fy(a):this.L===2&&l?(a=l.call(m,this.Z))&&typeof a.then==="function"?a:Sn(a):this}; sZ.prototype.getValue=function(){return this.Z}; sZ.prototype.VH=function(){return this.L==2}; sZ.prototype.$goog_Thenable=!0;var JR=!1;var Xz=ai||lR;var VY7=/^([0-9\.]+):([0-9\.]+)$/;g.W(GO,dg);GO.prototype.name="BiscottiError";g.W(PW,dg);PW.prototype.name="BiscottiMissingError";var cy5={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Vb=null;var yIw=Az(["data-"]),Kyw={};var Tjs=0,pZ=g.Y5?"webkit":w8?"moz":g.pe?"ms":g.KR?"o":"",ybX=g.Yl("ytDomDomGetNextId")||function(){return++Tjs}; g.Xt("ytDomDomGetNextId",ybX);var sAR={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};Qb.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Qb.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Qb.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var tN=g.u7.ytEventsEventsListeners||{};g.Xt("ytEventsEventsListeners",tN);var Jyd=g.u7.ytEventsEventsCounter||{count:0};g.Xt("ytEventsEventsCounter",Jyd);var wfl=V6(function(){var a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}}); window.addEventListener("test",null,l)}catch(m){}return a}),BRd=V6(function(){var a=!1; try{var l=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,l)}catch(m){}return a});var Lk;Lk=window;g.E=Lk.ytcsi&&Lk.ytcsi.now?Lk.ytcsi.now:Lk.performance&&Lk.performance.timing&&Lk.performance.now&&Lk.performance.timing.navigationStart?function(){return Lk.performance.timing.navigationStart+Lk.performance.now()}:function(){return(new Date).getTime()};g.iV(KZ,g.k);KZ.prototype.N=function(a){a.T===void 0&&Sdw(a);var l=a.T;a.L===void 0&&Sdw(a);this.T=new g.$5(l,a.L)}; KZ.prototype.Xh=function(){return this.T||new g.$5}; KZ.prototype.Ij=function(){if(this.T){var a=(0,g.E)();if(this.j!=0){var l=this.C,m=this.T,T=l.x-m.x;l=l.y-m.y;T=Math.sqrt(T*T+l*l)/(a-this.j);this.L[this.Z]=Math.abs((T-this.K)/this.K)>.5?1:0;for(m=l=0;m<4;m++)l+=this.L[m]||0;l>=3&&this.B();this.K=T}this.j=a;this.C=this.T;this.Z=(this.Z+1)%4}}; KZ.prototype.sL=function(){g.Ly(this.J);g.FY(this.lT)};g.W(zO,g.k);zO.prototype.W=function(a,l,m,T,y){m=g.B(g.me((0,g.Rs)(m,T||this.ZR)));m={target:a,name:l,callback:m};var R;y&&wfl()&&(R={passive:!0});a.addEventListener(l,m.callback,R);this.B.push(m);return m}; zO.prototype.DT=function(a){for(var l=0;l=n.OZ)||N.T.version>=X||N.T.objectStoreNames.contains(S)||t.push(S)}M=t;if(M.length===0){L.iT(5);break}d=Object.keys(m.options.Dl); A=b.objectStoreNames();if(m.Km.options.version+1)throw G.close(),m.Z=!1,Oed(m,V);return L.return(G);case 8:throw l(), P instanceof Error&&!g.Q7("ytidb_async_stack_killswitch")&&(P.stack=P.stack+"\n"+H.substring(H.indexOf("\n")+1)),Qi(P,m.name,"",(p=m.options.version)!=null?p:-1);}})} function l(){m.T===T&&(m.T=void 0)} var m=this;if(!this.Z)throw Oed(this);if(this.T)return this.T;var T,y={blocking:function(R){R.close()}, closed:l,x2L:l,upgrade:this.options.upgrade};return this.T=T=a()};var DZ=new o$("YtIdbMeta",{Dl:{databases:{OZ:1}},upgrade:function(a,l){l(1)&&g.vw(a,"databases",{keyPath:"actualName"})}});var aW,rC=new function(){}(new function(){});new g.pr;g.W(Tx,o$);Tx.prototype.L=function(a,l,m){m=m===void 0?{}:m;return(this.options.shared?BKd:JMl)(a,l,Object.assign({},m))}; Tx.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?ISl:kwQ)(this.name,a)};var jM_={},Eez=g.yQ("ytGcfConfig",{Dl:(jM_.coldConfigStore={OZ:1},jM_.hotConfigStore={OZ:1},jM_),shared:!1,upgrade:function(a,l){l(1)&&(g.Bw(g.vw(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Bw(g.vw(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.W(Hj,g.k);Hj.prototype.sL=function(){for(var a=g.c(this.L),l=a.next();!l.done;l=a.next()){var m=this.T;l=m.indexOf(l.value);l>=0&&m.splice(l,1)}this.L.length=0;g.k.prototype.sL.call(this)};de.prototype.QF=function(a){this.hotHashData=a;g.Xt("yt.gcf.config.hotHashData",this.hotHashData||null)};var Abs=typeof TextEncoder!=="undefined"?new TextEncoder:null,$MH=Abs?function(a){return Abs.encode(a)}:function(a){a=g.mL(a); for(var l=new Uint8Array(a.length),m=0;m=l?!1:!0}; g.Z.KO=function(){var a=this;if(!kq(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.tp.F$("QUEUED",this.rN).then(function(l){l&&!a.oI(l,a.Le)?a.GF.Q8(function(){return g.J(function(m){if(m.L==1)return l.id===void 0?m.iT(2):g.z(m,a.tp.XL(l.id,a.rN),2);a.KO();g.c5(m)})}):a.EF.Dq()&&a.eZ()})};var IW;var dpp={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 GyD={},UMQ=g.yQ("ServiceWorkerLogsDatabase",{Dl:(GyD.SWHealthLog={OZ:1},GyD),shared:!0,upgrade:function(a,l){l(1)&&g.Bw(g.vw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var oW={},yRR=0;var xq;uQ.prototype.requestComplete=function(a,l){l&&(this.L=!0);a=this.removeParams(a);this.T.get(a)||this.T.set(a,l)}; uQ.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.T.get(a))?!1:a===!1&&this.L?!0:null}; uQ.prototype.removeParams=function(a){return a.split("?")[0]}; uQ.prototype.removeParams=uQ.prototype.removeParams;uQ.prototype.isEndpointCFR=uQ.prototype.isEndpointCFR;uQ.prototype.requestComplete=uQ.prototype.requestComplete;uQ.getInstance=XB;g.W(Yq,g.Vz);g.Z=Yq.prototype;g.Z.Dq=function(){return this.T.Dq()}; g.Z.n1=function(a){this.T.T=a}; g.Z.Cj=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; g.Z.Nk=function(){this.L=!0}; g.Z.listen=function(a,l){return this.T.listen(a,l)}; g.Z.bj=function(a){a=IA(this.T,a);a.then(function(l){g.Q7("use_cfr_monitor")&&XB().requestComplete("generate_204",l)}); return a}; Yq.prototype.sendNetworkCheckRequest=Yq.prototype.bj;Yq.prototype.listen=Yq.prototype.listen;Yq.prototype.enableErrorFlushing=Yq.prototype.Nk;Yq.prototype.getWindowStatus=Yq.prototype.Cj;Yq.prototype.networkStatusHint=Yq.prototype.n1;Yq.prototype.isNetworkAvailable=Yq.prototype.Dq;Yq.getInstance=qZP;g.W(g.Uc,g.Vz);g.Uc.prototype.Dq=function(){var a=g.Yl("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.L)():!0}; g.Uc.prototype.n1=function(a){var l=g.Yl("yt.networkStatusManager.instance.networkStatusHint").bind(this.L);l&&l(a)}; g.Uc.prototype.bj=function(a){var l=this,m;return g.J(function(T){m=g.Yl("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(l.L);return g.Q7("skip_network_check_if_cfr")&&XB().isEndpointCFR("generate_204")?T.return(new Promise(function(y){var R;l.n1(((R=window.navigator)==null?void 0:R.onLine)||!0);y(l.Dq())})):m?T.return(m(a)):T.return(!0)})};var re;g.W(ao,nI);ao.prototype.writeThenSend=function(a,l){l||(l={});l=mP(a,l);g.rQ()||(this.T=!1);nI.prototype.writeThenSend.call(this,a,l)}; ao.prototype.sendThenWrite=function(a,l,m){l||(l={});l=mP(a,l);g.rQ()||(this.T=!1);nI.prototype.sendThenWrite.call(this,a,l,m)}; ao.prototype.sendAndWrite=function(a,l){l||(l={});l=mP(a,l);g.rQ()||(this.T=!1);nI.prototype.sendAndWrite.call(this,a,l)}; ao.prototype.awaitInitialization=function(){return this.Z.promise};var dyd=g.u7.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Xt("ytNetworklessLoggingInitializationOptions",dyd);g.TG.prototype.isReady=function(){!this.config_&&b5P()&&(this.config_=g.AJ());return!!this.config_};var VkX,Hg,b$;VkX=g.u7.ytPubsubPubsubInstance||new g.Ke;Hg=g.u7.ytPubsubPubsubSubscribedKeys||{};b$=g.u7.ytPubsubPubsubTopicToKeys||{};g.qQ=g.u7.ytPubsubPubsubIsSynchronous||{};g.Ke.prototype.subscribe=g.Ke.prototype.subscribe;g.Ke.prototype.unsubscribeByKey=g.Ke.prototype.rR;g.Ke.prototype.publish=g.Ke.prototype.publish;g.Ke.prototype.clear=g.Ke.prototype.clear;g.Xt("ytPubsubPubsubInstance",VkX);g.Xt("ytPubsubPubsubTopicToKeys",b$);g.Xt("ytPubsubPubsubIsSynchronous",g.qQ); g.Xt("ytPubsubPubsubSubscribedKeys",Hg);var p$7={};g.W(Lp,g.k);Lp.prototype.append=function(a){if(!this.L)throw Error("This does not support the append operation");a=a.hN();this.hN().appendChild(a)}; g.W(NQ,Lp);NQ.prototype.hN=function(){return this.T};g.W(QM,g.k);QM.prototype.onTouchStart=function(a){this.B=!0;this.L=a.touches.length;this.T.isActive()&&(this.T.stop(),this.K=!0);a=a.touches;this.C=cRH(this,a)||a.length!=1;var l=a.item(0);this.C||!l?this.N=this.J=Infinity:(this.J=l.clientX,this.N=l.clientY);for(l=this.Z.length=0;l=0)}if(l||a&&Math.pow(a.clientX-this.J,2)+Math.pow(a.clientY-this.N,2)>25)this.j=!0}; QM.prototype.onTouchEnd=function(a){var l=a.changedTouches;l&&this.B&&this.L==1&&!this.j&&!this.K&&!this.C&&cRH(this,l)&&(this.Ij=a,this.T.start());this.L=a.touches.length;this.L===0&&(this.j=this.B=!1,this.Z.length=0);this.K=!1};var tm=Date.now().toString();var Kp={};var fp=Symbol("injectionDeps");vg.prototype.toString=function(){return"InjectionToken("+this.name+")"}; QtH.prototype.resolve=function(a){return a instanceof $O?Jm(this,a.key,[],!0):Jm(this,a,[])};var Bg;var np=window;var EU=g.Q7("web_enable_lifecycle_monitoring")&&w6()!==0,z0d=g.Q7("web_enable_lifecycle_monitoring");h05.prototype.cancel=function(){for(var a=g.c(this.T),l=a.next();!l.done;l=a.next())l=l.value,l.jobId===void 0||l.aI||this.scheduler.ac(l.jobId),l.aI=!0;this.L.resolve()};g.Z=oo.prototype;g.Z.install=function(a){this.plugins.push(a);return this}; g.Z.uninstall=function(){var a=this;g.Jz.apply(0,arguments).forEach(function(l){l=a.plugins.indexOf(l);l>-1&&a.plugins.splice(l,1)})}; g.Z.transition=function(a,l){var m=this;EU&&e0d(this.state);var T=this.transitions.find(function(R){return Array.isArray(R.from)?R.from.find(function(H){return H===m.state&&R.to===a}):R.from===m.state&&R.to===a}); if(T){this.L&&(Oy5(this.L),this.L=void 0);val(this,a,l);this.state=a;EU&&Io(this.state);T=T.action.bind(this);var y=this.plugins.filter(function(R){return R[a]}).map(function(R){return R[a]}); T(Ked(this,y),l)}else throw Error("no transition specified from "+this.state+" to "+a);}; g.Z.Aa8=function(a){var l=g.Jz.apply(1,arguments);g.yi();for(var m=g.c(a),T=m.next(),y={};!T.done;y={ax:void 0},T=m.next())y.ax=T.value,lSz(function(R){return function(){DE(R.ax.name);XH(function(){return R.ax.callback.apply(R.ax,g.F(l))}); u$(R.ax.name)}}(y))}; g.Z.xAM=function(a){var l=g.Jz.apply(1,arguments),m,T,y,R;return g.J(function(H){H.L==1&&(g.yi(),m=g.c(a),T=m.next(),y={});if(H.L!=3){if(T.done)return H.iT(0);y.AC=T.value;y.CM=void 0;R=function(b){return function(){DE(b.AC.name);var M=XH(function(){return b.AC.callback.apply(b.AC,g.F(l))}); Av(M)?b.CM=g.Q7("web_lifecycle_error_handling_killswitch")?M.then(function(){u$(b.AC.name)}):M.then(function(){u$(b.AC.name)},function(d){Fe7(d); u$(b.AC.name)}):u$(b.AC.name)}}(y); lSz(R);return y.CM?g.z(H,y.CM,3):H.iT(3)}y={AC:void 0,CM:void 0};T=m.next();return H.iT(2)})}; g.Z.H3=function(a){var l=g.Jz.apply(1,arguments),m=this,T=a.map(function(y){return{JL:function(){DE(y.name);XH(function(){return y.callback.apply(y,g.F(l))}); u$(y.name)}, priority:xO(m,y)}}); T.length&&(this.L=new h05(T))}; g.b7.Object.defineProperties(oo.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var UU;g.W(YO,oo);YO.prototype.K=function(a,l){var m=this;this.T=g.m$(0,function(){m.currentState==="application_navigating"&&m.transition("none")},5E3); a(l==null?void 0:l.event)}; YO.prototype.C=function(a,l){this.T&&(g.Ed.ac(this.T),this.T=null);a(l==null?void 0:l.event)};var Nx=[];g.Xt("yt.logging.transport.getScrapedGelPayloads",function(){return Nx});r6.prototype.storePayload=function(a,l){a=a9(a);this.store[a]?this.store[a].push(l):(this.L={},this.store[a]=[l]);this.T++;g.Q7("more_accurate_gel_parser")&&(l=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(l));return a}; r6.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var l=mz(this,a.keys.splice(0,1)[0]),m=[],T=0;T=0){T=!1;break a}}T=!0}T&&(l=Es(l))&&this.CP(l)}}; g.Z.ly=function(a){return a}; g.Z.onTouchStart=function(a){this.jt.onTouchStart(a)}; g.Z.onTouchMove=function(a){this.jt.onTouchMove(a)}; g.Z.onTouchEnd=function(a){if(this.jt)this.jt.onTouchEnd(a)}; g.Z.CP=function(a){this.layoutId?this.Y8.executeCommand(a,this.layoutId):(a=new g.YH("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kt(a))}; g.Z.createServerVe=function(a,l){this.api.createServerVe(a,this);this.api.setTrackingParams(a,l)}; g.Z.logVisibility=function(a,l){this.api.hasVe(a)&&this.api.logVisibility(a,l,this.interactionLoggingClientData)}; g.Z.sL=function(){this.clear(null);this.DT(this.yg);for(var a=g.c(this.qj),l=a.next();!l.done;l=a.next())this.DT(l.value);g.Z7.prototype.sL.call(this)};g.W(Bk,Wk); Bk.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);this.T=l;if(l.text==null&&l.icon==null)g.nU(Error("ButtonRenderer did not have text or an icon set."));else{switch(l.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}a!=null&&g.M$(this.element,a);l.text!=null&&(a=g.Lj(l.text),g.Vk(a)||(this.element.setAttribute("aria-label",a),this.Z=new g.Z7({U:"span",S:"ytp-ad-button-text",Lx:a}),g.w(this,this.Z),this.Z.DK(this.element)));l.accessibilityData&&l.accessibilityData.accessibilityData&& l.accessibilityData.accessibilityData.label&&!g.Vk(l.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",l.accessibilityData.accessibilityData.label);l.icon!=null&&(l=Jj(l.icon,this.j),l!=null&&(this.L=new g.Z7({U:"span",S:"ytp-ad-button-icon",X:[l]}),g.w(this,this.L)),this.C?Rj(this.element,this.L.element,0):this.L.DK(this.element))}}; Bk.prototype.clear=function(){this.hide()}; Bk.prototype.onClick=function(a){Wk.prototype.onClick.call(this,a);a=g.c(F$7(this));for(var l=a.next();!l.done;l=a.next())l=l.value,this.layoutId?this.Y8.executeCommand(l,this.layoutId):g.kt(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.W(kg,g.k);kg.prototype.sL=function(){this.L&&g.FY(this.L);this.T.clear();nj=null;g.k.prototype.sL.call(this)}; kg.prototype.register=function(a,l){l&&this.T.set(a,l)}; var nj=null;g.W(Cj,Wk); Cj.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);a=l.hoverText||null;l=l.button&&g.I(l.button,g.nl)||null;l==null?g.kt(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Bk(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,void 0,void 0,void 0,void 0,this.Z),g.w(this,this.button),this.button.init(dx("button"),l,this.macros),a&&this.button.element.setAttribute("aria-label",g.Lj(a)),this.button.DK(this.element),this.N&&!g.gK(this.button.element, "ytp-ad-clickable")&&g.M$(this.button.element,"ytp-ad-clickable"),this.Z&&g.M$(this.button.element,"ytp-ad-hover-text-button--clean-player"),a&&(this.L=new g.Z7({U:"div",S:"ytp-ad-hover-text-container"}),this.C&&(l=new g.Z7({U:"div",S:"ytp-ad-hover-text-callout"}),l.DK(this.L.element),g.w(this,l)),g.w(this,this.L),this.L.DK(this.element),l=wx(a),Rj(this.L.element,l,0)),this.show())}; Cj.prototype.hide=function(){this.button&&this.button.hide();this.L&&this.L.hide();Wk.prototype.hide.call(this)}; Cj.prototype.show=function(){this.button&&this.button.show();Wk.prototype.show.call(this)};g.W(o8,Wk); o8.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);m=(a=l.thumbnail)&&ED(a)||"";g.Vk(m)?Math.random()<.01&&g.nU(Error("Found AdImage without valid image URL")):(this.T?g.nA(this.element,"backgroundImage","url("+m+")"):Xu(this.element,{src:m}),Xu(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),l&&l.adRendererCommands&&l.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; o8.prototype.clear=function(){this.hide()};g.W(xg,Wk);g.Z=xg.prototype;g.Z.hide=function(){Wk.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.Z.show=function(){this.Z=document.activeElement;Wk.prototype.show.call(this);this.j.focus()}; g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);this.L=l;l.dialogMessages||l.title!=null?l.confirmLabel==null?g.kt(Error("ConfirmDialogRenderer.confirmLabel was not set.")):l.cancelLabel==null?g.kt(Error("ConfirmDialogRenderer.cancelLabel was not set.")):zbw(this,l):g.kt(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.Z.clear=function(){g.$H(this.T);this.hide()}; g.Z.El=function(){this.hide()}; g.Z.yI=function(){var a=this.L.cancelEndpoint;a&&(this.layoutId?this.Y8.executeCommand(a,this.layoutId):g.kt(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.Z.uc=function(){var a=this.L.confirmNavigationEndpoint||this.L.confirmEndpoint;a&&(this.layoutId?this.Y8.executeCommand(a,this.layoutId):g.kt(Error("Missing layoutId for confirm dialog.")));this.hide()};g.W(D7,Wk);g.Z=D7.prototype; g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);this.Z=l;if(l.defaultText==null&&l.defaultIcon==null)g.kt(Error("ToggleButtonRenderer must have either text or icon set."));else if(l.defaultIcon==null&&l.toggledIcon!=null)g.kt(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(l.style){switch(l.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}a!=null&&g.M$(this.j,a)}a={};l.defaultText? (m=g.Lj(l.defaultText),g.Vk(m)||(a.buttonText=m,this.api.Y().experiments.XO("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",m),this.api.Y().experiments.XO("fix_h5_toggle_button_a11y")&&this.L.setAttribute("aria-label",m))):g.r8(this.hM,!1);l.defaultTooltip&&(a.tooltipText=l.defaultTooltip,this.T.hasAttribute("aria-label")||this.L.setAttribute("aria-label",l.defaultTooltip));l.defaultIcon?(m=Jj(l.defaultIcon),this.updateValue("untoggledIconTemplateSpec",m),l.toggledIcon?(this.lT= !0,m=Jj(l.toggledIcon),this.updateValue("toggledIconTemplateSpec",m)):(g.r8(this.N,!0),g.r8(this.C,!1)),g.r8(this.T,!1)):g.r8(this.L,!1);g.rg(a)||this.update(a);l.isToggled&&(g.M$(this.j,"ytp-ad-toggle-button-toggled"),this.toggleButton(l.isToggled));uT(this);this.W(this.element,"change",this.BO);this.show()}}; g.Z.onClick=function(a){this.qj.length>0&&(this.toggleButton(!this.isToggled()),this.BO());Wk.prototype.onClick.call(this,a)}; g.Z.BO=function(){g.AM(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.c(vT5(this,this.isToggled())),l=a.next();!l.done;l=a.next())l=l.value,this.layoutId?this.Y8.executeCommand(l,this.layoutId):g.kt(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);uT(this)}; g.Z.clear=function(){this.hide()}; g.Z.toggleButton=function(a){g.AM(this.j,"ytp-ad-toggle-button-toggled",a);this.T.checked=a;uT(this)}; g.Z.isToggled=function(){return this.T.checked};g.W(Xf,zO);Xf.prototype.C=function(a){if(Array.isArray(a)){a=g.c(a);for(var l=a.next();!l.done;l=a.next())l=l.value,l instanceof $r3&&this.j(l)}};g.W(Yg,Wk);g.Z=Yg.prototype;g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);l.reasons?l.confirmLabel==null?g.kt(Error("AdFeedbackRenderer.confirmLabel was not set.")):(l.cancelLabel==null&&g.nU(Error("AdFeedbackRenderer.cancelLabel was not set.")),l.title==null&&g.nU(Error("AdFeedbackRenderer.title was not set.")),J7d(this,l)):g.kt(Error("AdFeedbackRenderer.reasons were not set."))}; g.Z.clear=function(){hN(this.C);hN(this.N);this.j.length=0;this.hide()}; g.Z.hide=function(){this.T&&this.T.hide();this.L&&this.L.hide();Wk.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.Z.show=function(){this.T&&this.T.show();this.L&&this.L.show();this.Z=document.activeElement;Wk.prototype.show.call(this);this.C.focus()}; g.Z.M5=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.Z.ofN=function(){this.hide()}; UD.prototype.hN=function(){return this.T.element}; UD.prototype.getCommand=function(){return this.L}; UD.prototype.isChecked=function(){return this.Z.checked};g.W(rx,xg);rx.prototype.El=function(a){xg.prototype.El.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; rx.prototype.yI=function(a){xg.prototype.yI.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; rx.prototype.uc=function(a){xg.prototype.uc.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.W(aE,Wk);g.Z=aE.prototype; g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);this.C=l;if(l.dialogMessage==null&&l.title==null)g.kt(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{l.confirmLabel==null&&g.nU(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=l.closeOverlayRenderer&&g.I(l.closeOverlayRenderer,g.nl)||null)this.T=new Bk(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.w(this,this.T),this.T.init(dx("button"),a,this.macros),this.T.DK(this.element);l.title&&(a=g.Lj(l.title),this.updateValue("title",a));if(l.adReasons)for(a=l.adReasons,m=0;m=this.Cx?(this.lT.hide(),this.St=!0,this.publish("i")):this.Z&&this.Z.isTemplated()&&(a=Math.max(0,Math.ceil((this.Cx-a)/1E3)),a!=this.wb&&(TD(this.Z,{TIME_REMAINING:String(a)}),this.wb=a)))}};g.W(M4,yu);g.Z=M4.prototype; g.Z.init=function(a,l,m){yu.prototype.init.call(this,a,l,m);if(l.image&&l.image.thumbnail)if(l.headline)if(l.description)if((a=l.actionButton&&g.I(l.actionButton,g.nl))&&a.navigationEndpoint){var T=this.api.getVideoData(2);if(T!=null)if(l.image&&l.image.thumbnail){var y=l.image.thumbnail.thumbnails;y!=null&&y.length>0&&g.Vk(g.W6(y[0].url))&&(y[0].url=T.profilePicture)}else g.nU(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Z.init(dx("ad-image"),l.image,m);this.C.init(dx("ad-text"), l.headline,m);this.j.init(dx("ad-text"),l.description,m);this.L.init(dx("button"),a,m);m=Ud(this.L.element);Y$(this.L.element,m+" This link opens in new tab");this.lT=a.navigationEndpoint;this.api.MR()||this.show();this.api.Y().V("enable_larger_flyout_cta_on_desktop")&&(this.OL("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.OL("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.OL("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.OL("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.OL("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.OL("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.L.element.classList.add("ytp-flyout-cta-action-button-large"),this.L.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.OL("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.kM.bind(this));this.hM=l.startMs||0;RE(this)}else g.kt(Error("FlyoutCtaRenderer has no valid action button."));else g.kt(Error("FlyoutCtaRenderer has no description AdText."));else g.kt(Error("FlyoutCtaRenderer has no headline AdText."));else g.nU(Error("FlyoutCtaRenderer has no image."))}; g.Z.onClick=function(a){yu.prototype.onClick.call(this,a);this.api.pauseVideo();!g.qw(this.L.element,a.target)&&this.lT&&(this.layoutId?this.Y8.executeCommand(this.lT,this.layoutId):g.kt(Error("Missing layoutId for flyout cta.")))}; g.Z.YW=function(){if(this.T){var a=this.T.getProgressState();(a&&a.current||this.Cx)&&1E3*a.current>=this.hM&&(Hr(this),g.dK(this.element,"ytp-flyout-cta-inactive"),this.L.element.removeAttribute("tabIndex"))}}; g.Z.b1=function(){this.clear()}; g.Z.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.kM.bind(this))}; g.Z.show=function(){this.L&&this.L.show();yu.prototype.show.call(this)}; g.Z.hide=function(){this.L&&this.L.hide();yu.prototype.hide.call(this)}; g.Z.kM=function(a){a=="hidden"?this.show():this.hide()};g.W(iG,Wk);g.Z=iG.prototype; g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);this.T=l;if(this.T.rectangle)for(a=this.T.likeButton&&g.I(this.T.likeButton,Wt),l=this.T.dislikeButton&&g.I(this.T.dislikeButton,Wt),this.Z.init(dx("toggle-button"),a,m),this.L.init(dx("toggle-button"),l,m),this.W(this.element,"change",this.WO),this.j.show(100),this.show(),m=g.c(this.T&&this.T.impressionCommands||[]),a=m.next();!a.done;a=m.next())a=a.value,this.layoutId?this.Y8.executeCommand(a,this.layoutId):g.kt(Error("Missing layoutId for instream user sentiment."))}; g.Z.clear=function(){this.hide()}; g.Z.hide=function(){this.Z.hide();this.L.hide();Wk.prototype.hide.call(this)}; g.Z.show=function(){this.Z.show();this.L.show();Wk.prototype.show.call(this)}; g.Z.WO=function(){LNd(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.Pz("onYtShowToast",this.T.postMessageAction);this.j.hide()}; g.Z.onClick=function(a){this.qj.length>0&&this.WO();Wk.prototype.onClick.call(this,a)};g.W(d_,g.k);g.Z=d_.prototype;g.Z.sL=function(){this.reset();g.k.prototype.sL.call(this)}; g.Z.reset=function(){g.$H(this.j);this.C=!1;this.T&&this.T.stop();this.K.stop();this.Z&&(this.Z=!1,this.B.play())}; g.Z.start=function(){this.reset();this.j.W(this.L,"mouseover",this.R3,this);this.j.W(this.L,"mouseout",this.JQ,this);this.Ij&&(this.j.W(this.L,"focusin",this.R3,this),this.j.W(this.L,"focusout",this.JQ,this));this.T?this.T.start():(this.C=this.Z=!0,g.nA(this.L,{opacity:this.N}))}; g.Z.R3=function(){this.Z&&(this.Z=!1,this.B.play());this.K.stop();this.T&&this.T.stop()}; g.Z.JQ=function(){this.C?this.K.start():this.T&&this.T.start()}; g.Z.zN=function(){this.Z||(this.Z=!0,this.J.play(),this.C=!0)};var Xw7=[new jI("b.f_",!1,0),new jI("j.s_",!1,2),new jI("r.s_",!1,4),new jI("e.h_",!1,6),new jI("i.s_",!0,8),new jI("s.t_",!1,10),new jI("p.h_",!1,12),new jI("s.i_",!1,14),new jI("f.i_",!1,16),new jI("a.b_",!1,18),new jI("a.o_",!1),new jI("g.o_",!1,22),new jI("p.i_",!1,24),new jI("p.m_",!1),new jI("n.k_",!0,20),new jI("i.f_",!1),new jI("a.s_",!0),new jI("m.c_",!1),new jI("n.h_",!1,26),new jI("o.p_",!1),new jI("m.p_",!0,28),new jI("o.a_",!1)].reduce(function(a,l){a[l.L]=l;return a},{});g.W(cr,yu);g.Z=cr.prototype; g.Z.init=function(a,l,m){yu.prototype.init.call(this,a,l,m);this.lT=l;(this.hM=UrQ(this))&&g.nU(Error("hasAdControlInClickCommands_ is true."));if(!l||g.rg(l))g.kt(Error("SkipButtonRenderer was not specified or empty."));else if(!l.message||g.rg(l.message))g.kt(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.C?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};l=Jj(a);l==null?g.kt(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")): (this.Z=new g.Z7({U:"button",uT:[this.C?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],X:[{U:"span",S:this.C?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",X:[l]}]}),g.w(this,this.Z),this.Z.DK(this.j.element),this.L=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,"ytp-ad-skip-button-text"),this.C&&this.L.element.classList.add("ytp-ad-skip-button-text-centered"),this.L.init(dx("ad-text"),this.lT.message,m),g.w(this,this.L),Rj(this.Z.element,this.L.element, 0));var T=T===void 0?null:T;m=this.api.Y();!(this.qj.length>0)&&m.L&&(Ol?0:"ontouchstart"in document.documentElement&&(u_P()||Q6()))&&(this.DT(this.yg),T&&this.DT(T),this.qj=[this.W(this.element,"touchstart",this.onTouchStart,this),this.W(this.element,"touchmove",this.onTouchMove,this),this.W(this.element,"touchend",this.onTouchEnd,this)])}}; g.Z.clear=function(){this.Cx.reset();this.hide()}; g.Z.hide=function(){this.j.hide();this.L&&this.L.hide();Hr(this);yu.prototype.hide.call(this)}; g.Z.onClick=function(a){if(this.Z!=null){if(a){var l=a||window.event;l.returnValue=!1;l.preventDefault&&l.preventDefault()}var m;if(Dr5(a,{contentCpn:((m=this.api.getVideoData(1))==null?void 0:m.clientPlaybackNonce)||""})===0)this.api.Pz("onAbnormalityDetected");else if(yu.prototype.onClick.call(this,a),this.publish("j"),this.api.Pz("onAdSkip"),this.St||!this.hM)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.Z.ly=function(a){if(!this.St)return this.hM&&Vu("SkipButton click commands not pruned while ALC exist"),a;var l,m=(l=g.I(a,g.Lu))==null?void 0:l.commands;if(!m)return a;a=[];for(l=0;l=this.C&&r7t(this,!0)};g.W(Qu,Bk);Qu.prototype.init=function(a,l,m){Bk.prototype.init.call(this,a,l,m);a=!1;l.text!=null&&(a=g.Lj(l.text),a=!g.Vk(a));a?l.navigationEndpoint==null?g.nU(Error("No visit advertiser clickthrough provided in renderer,")):l.style!=="STYLE_UNKNOWN"?g.nU(Error("Button style was not a link-style type in renderer,")):this.show():g.nU(Error("No visit advertiser text was present in the renderer."))};g.W(tw,Wk); tw.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);a=l.text;g.Vk(ck(a))?g.nU(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(l=a.text,this.Z&&!this.L&&(l=this.api.Y(),l=a.text+" "+(l&&l.L?"\u2022":"\u00b7")),l={text:l,isTemplated:a.isTemplated},a.style&&(l.style=a.style),a.targetId&&(l.targetId=a.targetId),a=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),a.init(dx("simple-ad-badge"),l,m),a.DK(this.element),g.w(this,a)),this.show())}; tw.prototype.clear=function(){this.hide()};g.W(eI,jN);g.W(F1,g.Aj);g.Z=F1.prototype;g.Z.oX=function(){return this.durationMs}; g.Z.stop=function(){this.T&&this.Gq.DT(this.T)}; g.Z.ex=function(a){this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")}; g.Z.getProgressState=function(){return this.L}; g.Z.yb=function(a){g.Wr(a,2)&&this.publish("g")};g.W(hw,g.Aj);g.Z=hw.prototype;g.Z.oX=function(){return this.durationMs}; g.Z.start=function(){this.T||(this.T=!0,this.Jb.start())}; g.Z.stop=function(){this.T&&(this.T=!1,this.Jb.stop())}; g.Z.ex=function(){this.Lh+=100;var a=!1;this.Lh>this.durationMs&&(this.Lh=this.durationMs,this.Jb.stop(),a=!0);this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Lh/1E3};this.publish("h");a&&this.publish("g")}; g.Z.getProgressState=function(){return this.L};g.W(zD,yu);g.Z=zD.prototype;g.Z.init=function(a,l,m){yu.prototype.init.call(this,a,l,m);var T;if(l==null?0:(T=l.templatedCountdown)==null?0:T.templatedAdText){a=l.templatedCountdown.templatedAdText;if(!a.isTemplated){g.nU(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.L=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);this.L.init(dx("ad-text"),a,{});this.L.DK(this.element);g.w(this,this.L)}this.show()}; g.Z.clear=function(){this.hide()}; g.Z.hide=function(){Hr(this);yu.prototype.hide.call(this)}; g.Z.b1=function(){this.hide()}; g.Z.YW=function(){if(this.T!=null){var a=this.T.getProgressState();if(a!=null&&a.current!=null&&this.L){var l=this.T instanceof F1?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof hw?a.seekableEnd:this.api.getDuration(2,!1);a=a.current;var m,T,y=((m=this.api.getVideoData())==null?0:(T=m.WN)==null?0:T.call(m))?Math.max(l-a,0):l-a;TD(this.L,{FORMATTED_AD_DURATION_REMAINING:String(g.O6(y)), TIME_REMAINING:String(Math.ceil(y))})}}}; g.Z.show=function(){RE(this);yu.prototype.show.call(this)};g.W(vr,mu);vr.prototype.onClick=function(a){mu.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.W(s6,Wk);s6.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(a=l.content){g.bK(this.element,a);var m,T;l=((m=l.interaction)==null?void 0:(T=m.accessibility)==null?void 0:T.label)||a;this.element.setAttribute("aria-label",l)}else g.kt(Error("AdSimpleAttributedString does not have text content"))}; s6.prototype.clear=function(){this.hide()}; s6.prototype.onClick=function(a){Wk.prototype.onClick.call(this,a)};g.W(SI,Wk); SI.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});(a=l.label)&&a.content&&!g.Vk(a.content)?(this.adBadgeText.init(dx("ad-simple-attributed-string"),new $f(a)),(l=l.adPodIndex)&&l.content&&!g.Vk(l.content)&&(this.T=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),this.T.DK(this.element),g.w(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(dx("ad-simple-attributed-string"),new $f(l))),this.element.classList.add(this.L?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.kt(Error("No label is returned in AdBadgeViewModel."))}; SI.prototype.show=function(){this.adBadgeText.show();var a;(a=this.T)==null||a.show();Wk.prototype.show.call(this)}; SI.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.T)==null||a.hide();Wk.prototype.hide.call(this)};g.W(fu,Wk);fu.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});(a=l.adPodIndex)&&a.content&&!g.Vk(a.content)&&(this.T=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),this.T.DK(this.element),g.w(this,this.T),this.T.init(dx("ad-simple-attributed-string"),new $f(a)),l.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()}; fu.prototype.show=function(){var a;(a=this.T)==null||a.show();Wk.prototype.show.call(this)}; fu.prototype.hide=function(){var a;(a=this.T)==null||a.hide();Wk.prototype.hide.call(this)};g.W(Jw,Wk); Jw.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(l!=null&&l.text){var m;if(((m=l.text)==null?0:m.content)&&!g.Vk(l.text.content)){this.T=new g.Z7({U:"div",S:"ytp-ad-disclosure-banner__text",Lx:l.text.content});g.w(this,this.T);this.T.DK(this.element);var T,y;a=((T=l.interaction)==null?void 0:(y=T.accessibility)==null?void 0:y.label)||l.text.content;this.element.setAttribute("aria-label",a);var R;if((R=l.interaction)==null?0:R.onTap)this.L=new g.Z7({U:"div",S:"ytp-ad-disclosure-banner__chevron",X:[g.eN()]}), g.w(this,this.L),this.L.DK(this.element);this.show()}}else g.kt(Error("No banner text found in AdDisclosureBanner."))}; Jw.prototype.clear=function(){this.hide()};Br.prototype.getLength=function(){return this.T-this.L};g.W(nu,g.Z7);nu.prototype.ex=function(){var a=this.L.getProgressState(),l=a.seekableEnd;this.api.getPresentingPlayerType()===2&&(l=this.Z?this.Z/1E3:a.seekableEnd);a=kf(new Br(a.seekableStart,l),a.current,0);this.progressBar.style.width=a*100+"%"}; nu.prototype.onStateChange=function(){g.kN(this.api.Y())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.L.subscribe("h",this.ex,this),this.ex()):this.T!==-1&&(this.hide(),this.L.rR(this.T),this.T=-1))};g.W(w_,Wk); w_.prototype.init=function(a,l,m,T){Wk.prototype.init.call(this,a,l,m);if(l.skipOrPreviewRenderer){if(a=g.I(l.skipOrPreviewRenderer,iy))m=new N4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.L,this.N),m.DK(this.AM),m.init(dx("skip-button"),a,this.macros),g.w(this,m);if(a=g.I(l.skipOrPreviewRenderer,iy))var y=a.skipOffsetMilliseconds}l.brandInteractionRenderer&&(a=l.brandInteractionRenderer.brandInteractionRenderer,m=new iG(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8), m.DK(this.hM),m.init(dx("instream-user-sentiment"),a,this.macros),g.w(this,m));if(a=g.I(l,a2B))if(a=g.I(a,a2B))m=new M4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.L,!!l.showWithoutLinkedMediaLayout),g.w(this,m),m.DK(this.C),m.init(dx("flyout-cta"),a,this.macros);T=T&&T.videoAdDurationSeconds;l.adBadgeRenderer&&(m=l.adBadgeRenderer,a=g.I(m,IF),a!=null?(m=new SI(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!1),g.w(this,m),m.DK(this.T),m.init(dx("ad-badge"), a,this.macros),this.Z=m.element):(a=m.simpleAdBadgeRenderer,a==null&&(a={text:{text:"Anuncio",isTemplated:!1}}),m=new tw(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!0),g.w(this,m),m.DK(this.T),m.init(dx("simple-ad-badge"),a,this.macros)));l.adPodIndex&&(a=g.I(l.adPodIndex,Mjn),a!=null&&(m=new fu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,m),m.DK(this.T),m.init(dx("ad-pod-index"),a)));l.adDurationRemaining&&!l.showWithoutLinkedMediaLayout&&(a=l.adDurationRemaining.adDurationRemainingRenderer, a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),T=new zD(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.L,T,!1),g.w(this,T),T.DK(this.T),T.init(dx("ad-duration-remaining"),a,this.macros));l.adInfoRenderer&&(T=g.I(l.adInfoRenderer,B_))&&(a=new lG(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.element,void 0,!1),g.w(this,a),this.Z!==null?this.T.insertBefore(a.element,this.Z.nextSibling):a.DK(this.T), a.init(dx("ad-info-hover-text-button"),T,this.macros));l.visitAdvertiserRenderer&&(T=g.I(l.visitAdvertiserRenderer,g.nl))&&(a=this.api.Y(),a=g.vS(a)&&a.V("embeds_embc3ds_atb")&&a.V("embeds_embc3ds_atb_no_visinfo"),m=mt7(this)&&this.j&&!a?this.j:this.T)&&(a=new Qu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,a),a.DK(m),a.init(dx("visit-advertiser"),T,this.macros),x$(a.element),T=Ud(a.element),Y$(a.element,T+" This link opens in new tab"));!(T=this.api.Y())||g.J$(T)||g.vS(T)|| T.controlsType!="3"&&!T.disableOrganicUi||(y=new nu(this.api,this.L,y,!1),y.DK(this.Cx),g.w(this,y));l.adDisclosureBannerRenderer&&(l=g.I(l.adDisclosureBannerRenderer,g__))&&(y=new Jw(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),y.DK(this.lT),y.init(dx("ad-disclosure-banner"),l),g.w(this,y));this.api.Y().V("enable_updated_html5_player_focus_style")&&g.M$(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; w_.prototype.clear=function(){this.hide()};E6.prototype.set=function(a,l,m){m=m!==void 0?Date.now()+m:void 0;this.T.set(a,l,m)}; E6.prototype.get=function(a){return this.T.get(a)}; E6.prototype.remove=function(a){this.T.remove(a)};var yJb=null;var X1=null,Yf=null,U6=null,gq5=null;g.Xt("yt.www.ads.eventcache.getLastCompanionData",function(){return X1}); g.Xt("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Xt("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Yf}); g.Xt("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return U6}); g.Xt("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return gq5});var iIP=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);r_.prototype.handleResponse=function(a,l){if(!l)throw Error("request needs to be passed into ConsistencyService");var m,T;l=((m=l.C6.context)==null?void 0:(T=m.request)==null?void 0:T.consistencyTokenJars)||[];var y;(a=(y=a.responseContext)==null?void 0:y.consistencyTokenJar)&&this.replace(l,a)}; r_.prototype.replace=function(a,l){a=g.c(a);for(var m=a.next();!m.done;m=a.next())delete this.T[m.value.encryptedTokenJarContents];jWb(this,l)};var Lvr=window.location.hostname.split(".").slice(-2).join("."),h1;lu.getInstance=function(){h1=g.Yl("yt.clientLocationService.instance");h1||(h1=new lu,g.Xt("yt.clientLocationService.instance",h1));return h1}; g.Z=lu.prototype; g.Z.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.T)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Z||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.Z|| this.locationPlayabilityToken}; g.Z.handleResponse=function(a){var l;a=(l=a.responseContext)==null?void 0:l.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.T=void 0,g.Uu("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=a0(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.ka("YT_CL",JSON.stringify({loctok:a}),15552E3,Lvr,!0))}; g.Z.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=a0(this))&&this.localStorage.remove("yt-location-playability-token"):g.w0("YT_CL");this.Z=void 0;this.L!==-1&&(clearTimeout(this.L),this.L=-1)}; g.Z.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var l=!1,m=1E4;g.Uu("INNERTUBE_CLIENT_NAME")==="MWEB"&&(l=!0,m=15E3);return new Promise(function(T,y){navigator.geolocation.getCurrentPosition(function(R){a.T=R;T(R)},function(R){y(R)},{enableHighAccuracy:l, maximumAge:0,timeout:m})})}; g.Z.createUnpluggedLocationInfo=function(a){var l={};a=a.coords;if(a==null?0:a.latitude)l.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)l.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)l.locationRadiusMeters=Math.round(a.accuracy);return l}; g.Z.createLocationInfo=function(a){var l={};a=a.coords;if(a==null?0:a.latitude)l.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)l.longitudeE7=Math.floor(a.longitude*1E7);return l};g.Z=pj5.prototype;g.Z.contains=function(a){return Object.prototype.hasOwnProperty.call(this.T,a)}; g.Z.get=function(a){if(this.contains(a))return this.T[a]}; g.Z.set=function(a,l){this.T[a]=l}; g.Z.JK=function(){return Object.keys(this.T)}; g.Z.remove=function(a){delete this.T[a]};T8.prototype.getModuleId=function(a){return g.B(a.serviceId.getModuleId())}; T8.prototype.get=function(a){a:{var l=g.B(this.mappings.get(a.toString()));switch(l.type){case "mapping":a=l.value;break a;case "factory":l=l.value();this.mappings.set(a.toString(),{type:"mapping",value:l});a=l;break a;default:a=rG(l)}}return a}; T8.prototype.registerService=function(a,l){this.mappings.set(a.toString(),{type:"mapping",value:l});return a}; new T8;var OH={},ZI5=(OH.WEB_UNPLUGGED="^unplugged/",OH.WEB_UNPLUGGED_ONBOARDING="^unplugged/",OH.WEB_UNPLUGGED_OPS="^unplugged/",OH.WEB_UNPLUGGED_PUBLIC="^unplugged/",OH.WEB_CREATOR="^creator/",OH.WEB_KIDS="^kids/",OH.WEB_EXPERIMENTS="^experiments/",OH.WEB_MUSIC="^music/",OH.WEB_REMIX="^music/",OH.WEB_MUSIC_EMBEDDED_PLAYER="^music/",OH.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",OH);HF.prototype.K=function(a,l,m){l=l===void 0?{}:l;m=m===void 0?Gx:m;var T={context:g.m0(a.clickTrackingParams,!1,this.j)};var y=this.L(a);if(y){this.T(T,y,l);var R;l=g.R0(this.Z());(y=(R=g.I(a.commandMetadata,g.ZJ))==null?void 0:R.apiUrl)&&(l=y);R=dVb(It(l));a=Object.assign({},{command:a},void 0);T={input:R,qa:Cy(R),C6:T,config:a};T.config.Wh?T.config.Wh.identity=m:T.config.Wh={identity:m};return T}m=new g.YH("Error: Failed to create Request from Command.",a);g.kt(m)}; g.b7.Object.defineProperties(HF.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.W(ql,HF);g.W(p$,ql);p$.prototype.K=function(){return{input:"/getDatasyncIdsEndpoint",qa:Cy("/getDatasyncIdsEndpoint","GET"),C6:{}}}; p$.prototype.Z=function(){return[]}; p$.prototype.L=function(){}; p$.prototype.T=function(){};var NjD={},rJH=(NjD.GET_DATASYNC_IDS=yn(p$),NjD);var Kk={},QMc=(Kk["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Kk["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Kk["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Kk["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Kk["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Kk["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Kk["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Kk["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Kk["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Kk["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Kk["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Kk["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Kk["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Kk["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Kk["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Kk["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Kk["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Kk["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Kk["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Kk["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Kk["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Kk["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Kk["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Kk.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Kk["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Kk["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Kk["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Kk["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Kk["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Kk["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Kk["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Kk["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Kk["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Kk["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Kk["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Kk["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Kk["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Kk["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Kk["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Kk["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Kk.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Kk["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Kk["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Kk["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Kk["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Kk["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Kk["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Kk["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Kk["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Kk["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Kk["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Kk["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Kk["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Kk["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Kk["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Kk["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Kk["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Kk["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Kk["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Kk["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Kk["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Kk["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Kk["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Kk["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Kk["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Kk["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Kk["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Kk["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Kk["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Kk["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Kk["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Kk["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Kk["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Kk["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Kk["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Kk["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Kk["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Kk["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Kk["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Kk),zA={},eTt=(zA.auto_search="LATENCY_ACTION_AUTO_SEARCH",zA.ad_to_ad="LATENCY_ACTION_AD_TO_AD",zA.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",zA.app_startup="LATENCY_ACTION_APP_STARTUP",zA.browse="LATENCY_ACTION_BROWSE",zA.cast_splash="LATENCY_ACTION_CAST_SPLASH",zA.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",zA.channels="LATENCY_ACTION_CHANNELS",zA.chips="LATENCY_ACTION_CHIPS",zA.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",zA.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", zA.editor="LATENCY_ACTION_EDITOR",zA.embed="LATENCY_ACTION_EMBED",zA.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",zA.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",zA.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",zA.explore="LATENCY_ACTION_EXPLORE",zA.favorites="LATENCY_ACTION_FAVORITES",zA.home="LATENCY_ACTION_HOME",zA.inboarding="LATENCY_ACTION_INBOARDING",zA.landing="LATENCY_ACTION_LANDING",zA.library="LATENCY_ACTION_LIBRARY",zA.live= "LATENCY_ACTION_LIVE",zA.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",zA.management="LATENCY_ACTION_MANAGEMENT",zA.mini_app="LATENCY_ACTION_MINI_APP_PLAY",zA.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",zA.onboarding="LATENCY_ACTION_ONBOARDING",zA.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",zA.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",zA.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",zA.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", zA.prebuffer="LATENCY_ACTION_PREBUFFER",zA.prefetch="LATENCY_ACTION_PREFETCH",zA.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",zA.profile_switcher="LATENCY_ACTION_LOGIN",zA.projects="LATENCY_ACTION_PROJECTS",zA.reel_watch="LATENCY_ACTION_REEL_WATCH",zA.results="LATENCY_ACTION_RESULTS",zA.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",zA.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",zA.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",zA.review="LATENCY_ACTION_REVIEW",zA.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",zA.search_ui="LATENCY_ACTION_SEARCH_UI",zA.search_suggest="LATENCY_ACTION_SUGGEST",zA.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",zA.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",zA.seek="LATENCY_ACTION_PLAYER_SEEK",zA.settings="LATENCY_ACTION_SETTINGS",zA.store="LATENCY_ACTION_STORE",zA.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",zA.tenx="LATENCY_ACTION_TENX",zA.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",zA.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", zA.watch="LATENCY_ACTION_WATCH",zA.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",zA["watch,watch7"]="LATENCY_ACTION_WATCH",zA["watch,watch7_html5"]="LATENCY_ACTION_WATCH",zA["watch,watch7ad"]="LATENCY_ACTION_WATCH",zA["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",zA.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",zA.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",zA.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",zA.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",zA.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",zA.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",zA.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",zA.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",zA);Object.assign(eTt,QMc);g.W(FX,VQ);var nq3=new pI("aft-recorded",FX);var tk9=g.u7.ytLoggingGelSequenceIdObj_||{};g.Xt("ytLoggingGelSequenceIdObj_",tk9);var K$=g.u7.ytLoggingLatencyUsageStats_||{};g.Xt("ytLoggingLatencyUsageStats_",K$);h9.prototype.tick=function(a,l,m,T){z8(this,"tick_"+a+"_"+l)||g.js("latencyActionTicked",{tickName:a,clientActionNonce:l},{timestamp:m,cttAuthInfo:T})}; h9.prototype.info=function(a,l,m){var T=Object.keys(a).join("");z8(this,"info_"+T+"_"+l)||(a=Object.assign({},a),a.clientActionNonce=l,g.js("latencyActionInfo",a,{cttAuthInfo:m}))}; h9.prototype.jspbInfo=function(a,l,m){for(var T="",y=0;y=y.length?(l.append(y),a-=y.length):a?(l.append(new Uint8Array(y.buffer,y.byteOffset,a)),m.append(new Uint8Array(y.buffer,y.byteOffset+a,y.length-a)),a=0):m.append(y);return{N$:l,Xm:m}}; g.Z.isFocused=function(a){return a>=this.N9&&a=64&&(this.C.set(a.subarray(0,64-this.L),this.L),l=64-this.L,this.L=0,wg3(this,this.C,0));for(;l+64<=m;l+=64)wg3(this,a,l);l=this.start&&(a=2&&m.ssdaiAdsConfig&&Vu("Unexpected ad placement renderers length",a.slot,null,{length:T.length});var y;((y=m.adSlots)==null?0:y.some(function(R){var H,b;return((H=g.I(R,Cl))==null?void 0:(b=H.adSlotMetadata)==null?void 0:b.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||T.some(function(R){var H,b,M,d; return!!((H=R.renderer)==null?0:(b=H.linearAdSequenceRenderer)==null?0:(M=b.linearAds)==null?0:M.length)||!((d=R.renderer)==null||!d.instreamVideoAdRenderer)})||ijd(a)})}; g$.prototype.Xz=function(){Xy7(this.T)};Mm.prototype.ww=function(){var a=this;ud5(this.L,function(){var l=bS(a.slot.clientMetadata,"metadata_type_ad_break_request_data");return l.cueProcessedMs?a.T.get().fetch({Uv:l.getAdBreakUrl,Fw:new g.Rq(l.B5,l.VF),cueProcessedMs:l.cueProcessedMs}):a.T.get().fetch({Uv:l.getAdBreakUrl,Fw:new g.Rq(l.B5,l.VF)})})}; Mm.prototype.Xz=function(){Xy7(this.L)};il.prototype.ww=function(){var a=this.slot.clientMetadata,l,m=(l=this.slot.fulfilledLayout)!=null?l:bS(a,"metadata_type_fulfilled_layout");hoH(this.callback,this.slot,m)}; il.prototype.Xz=function(){cU(this.callback,this.slot,new Y("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")};jJ.prototype.build=function(a,l){return l.fulfilledLayout||d$(l,{au:["metadata_type_fulfilled_layout"]})?new il(a,l):this.Z(a,l)};g.W(Ag,jJ); Ag.prototype.Z=function(a,l){if(d$(l,{au:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new g$(a,l,this.T,this.L,this.zE,this.ZK,this.x8,this.EL,this.vN);if(d$(l,{au:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Mm(a,l,this.T,this.L,this.zE,this.ZK);throw new Y("Unsupported slot with type: "+l.slotType+" and client metadata: "+gM(l.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.W(PL,jJ);PL.prototype.Z=function(a,l){throw new Y("Unsupported slot with type: "+l.slotType+" and client metadata: "+gM(l.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.Z=dX3.prototype;g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.init=function(){}; g.Z.release=function(){}; g.Z.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.n$(this.slot,a,new HU("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 l=bS(a.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Xl(this.slot,a),O83(this.Z, this.slot,l)):Vu("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}}; g.Z.zq=function(a,l){a.layoutId!==this.layout.layoutId?this.callback.n$(this.slot,a,new HU("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.ZT(this.slot,a,l),Aj3(this),PT7(this))};g.W(WL,g.Aj);g.Z=WL.prototype;g.Z.JN=function(){return this.L.slot}; g.Z.JM=function(){return this.L.layout}; g.Z.init=function(){this.Z.get().addListener(this)}; g.Z.release=function(){this.Z.get().removeListener(this);this.dispose()}; g.Z.Pc=function(){}; g.Z.XT=function(){}; g.Z.dh=function(){}; g.Z.g3=function(){}; g.Z.startRendering=function(a){var l=this;Zd(this.L,a,function(){return void l.Mz()})}; g.Z.Mz=function(){this.Z.get().Mz(this.T)}; g.Z.zq=function(a,l){var m=this;Zd(this.L,a,function(){var T=m.Z.get();IGQ(T,m.T,3);m.T=[];m.callback.ZT(m.slot,a,l)})}; g.Z.sL=function(){this.Z.FO()||this.Z.get().removeListener(this);g.Aj.prototype.sL.call(this)}; g.b7.Object.defineProperties(WL.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.L.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.L.layout}}});hg.prototype.PE=function(a,l){l=l===void 0?!1:l;var m=(this.Z.get(a)||[]).concat();if(l=l&&Zjt(a)){var T=this.Z.get(l);T&&m.push.apply(m,g.F(T))}zV(this,a,m);this.T.add(a);l&&this.T.add(l)}; hg.prototype.fE=function(a,l){l=l===void 0?!1:l;if(!this.T.has(a)){var m=l&&Zjt(a);m&&(l=!this.T.has(m));this.PE(a,l)}};g.W(L63,jN);g.W(fh,WL);g.Z=fh.prototype;g.Z.s0=function(a,l){Q0("ads-engagement-panel-layout",a,S8(this.C.get()),this.x8.get(),this.j,this.K,this.JN(),this.JM(),l)}; g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),g.I(this.JM().renderingContent,MW),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(l,m,T,y,R){return new L63(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(a,l){this.K===l.layoutId&&(this.j===null?this.j=this.x8.get().ju():Vu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)};g.W(Q87,jN);g.W(Jg,WL);g.Z=Jg.prototype;g.Z.s0=function(a,l){Q0("banner-image",a,S8(this.C.get()),this.x8.get(),this.j,this.K,this.JN(),this.JM(),l)}; g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),g.I(this.JM().renderingContent,bM),this.callback,"metadata_type_banner_image_layout_view_model",function(l,m,T,y,R){return new Q87(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(a,l){this.K===l.layoutId&&(this.j===null?this.j=this.x8.get().ju():Vu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)};g.W(BL,jN);g.W(kZ,WL);g.Z=kZ.prototype;g.Z.s0=function(a,l){Q0("action-companion",a,S8(this.C.get()),this.x8.get(),this.j,this.K,this.JN(),this.JM(),l)}; g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),g.I(this.JM().renderingContent,Rn),this.callback,"metadata_type_action_companion_ad_renderer",function(l,m,T,y,R){return new BL(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(a,l){l.layoutId===this.layout.layoutId?this.Hz.fE("impression"):this.K===l.layoutId&&(this.j===null?this.j=this.x8.get().ju():Vu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)};g.W(F6t,jN);g.W(nh,WL);g.Z=nh.prototype;g.Z.s0=function(a,l){Q0("image-companion",a,S8(this.C.get()),this.x8.get(),this.j,this.K,this.JN(),this.JM(),l)}; g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),g.I(this.JM().renderingContent,H_),this.callback,"metadata_type_image_companion_ad_renderer",function(l,m,T,y,R){return new F6t(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(a,l){l.layoutId===this.layout.layoutId?this.Hz.fE("impression"):this.K===l.layoutId&&(this.j===null?this.j=this.x8.get().ju():Vu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)};g.W(Ojz,jN);g.W(w$,WL);g.Z=w$.prototype;g.Z.s0=function(a,l){Q0("shopping-companion",a,S8(this.C.get()),this.x8.get(),this.j,this.K,this.JN(),this.JM(),l)}; g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(l,m,T,y,R){return new Ojz(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(a,l){l.layoutId===this.layout.layoutId?this.Hz.fE("impression"):this.K===l.layoutId&&(this.j===null?this.j=this.x8.get().ju():Vu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)};g.W(Ch,WL);g.Z=Ch.prototype;g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(l,m,T,y,R){return new BL(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(){}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)}; g.Z.s0=function(){};g.Z=SDb.prototype;g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.init=function(){this.EL.get().addListener(this);this.EL.get().Ez.push(this);var a=bS(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=bS(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");tg(this.layout.sb)&&aF(this.Ub.get(),this.layout.layoutId,{OB:l,hm:a,listener:this})}; g.Z.release=function(){this.EL.get().removeListener(this);SkP(this.EL.get(),this);tg(this.layout.sb)&&lI(this.Ub.get(),this.layout.layoutId)}; g.Z.startRendering=function(a){this.callback.Xl(this.slot,a)}; g.Z.zq=function(a,l){H6P(this.ZK.get())&&!this.T&&(this.Hz.fE("abandon"),this.T=!0);this.callback.ZT(this.slot,a,l)}; g.Z.AV=function(a){switch(a.id){case "part2viewed":this.Hz.fE("start");this.Hz.fE("impression");break;case "videoplaytime25":this.Hz.fE("first_quartile");break;case "videoplaytime50":this.Hz.fE("midpoint");break;case "videoplaytime75":this.Hz.fE("third_quartile");break;case "videoplaytime100":H6P(this.ZK.get())?this.T||(this.Hz.fE("complete"),this.T=!0):this.Hz.fE("complete");SJ(this.Hz)&&$Z(this.Hz,Infinity,!0);qkw(this.ZK.get())&&Iq(this.L,Infinity,!0);break;case "engagedview":SJ(this.Hz)||this.Hz.fE("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Vu("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.Z.onVolumeChange=function(){}; g.Z.GS=function(){}; g.Z.C7=function(){}; g.Z.B4=function(){}; g.Z.onFullscreenToggled=function(){}; g.Z.b4=function(){}; g.Z.J$=function(){}; g.Z.ow=function(a){qkw(this.ZK.get())&&Iq(this.L,a*1E3,!1);SJ(this.Hz)&&$Z(this.Hz,a*1E3,!1)}; g.Z.S$=function(){}; g.Z.Lz=function(){this.Hz.fE("active_view_measurable")}; g.Z.s6=function(){this.Hz.fE("active_view_viewable")}; g.Z.Td=function(){this.Hz.fE("active_view_fully_viewable_audible_half_duration")}; g.Z.lC=function(){this.Hz.fE("audio_measurable")}; g.Z.ID=function(){this.Hz.fE("audio_audible")};g.W(Eb,WL);g.Z=Eb.prototype;g.Z.init=function(){WL.prototype.init.call(this);var a=g.B(bS(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),l={adsClientData:this.layout.AN};this.T.push(new eI(a,this.layout.layoutId,bS(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),l,!0))}; g.Z.J6=function(){this.j||this.EL.get().resumeVideo(1)}; g.Z.startRendering=function(a){WL.prototype.startRendering.call(this,a);bI(this.EL.get(),"ad-showing");this.callback.Xl(this.slot,a);this.K.UB=this}; g.Z.zq=function(a,l){WL.prototype.zq.call(this,a,l);gv(this.EL.get(),"ad-showing");xh(this.K,this)}; g.Z.s0=function(a){switch(a){case "ad-info-icon-button":(this.j=this.EL.get().zF(1))||this.EL.get().pauseVideo();break;case "visit-advertiser":this.EL.get().pauseVideo()}}; g.Z.sL=function(){WL.prototype.sL.call(this)};g.W(oq,jN);g.W(xZ,WL);g.Z=xZ.prototype;g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(l,m,T,y,R){return new oq(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(){}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)}; g.Z.s0=function(){};g.W(Dd,jN);g.W(ul,WL);ul.prototype.init=function(){WL.prototype.init.call(this);this.T.push(new Dd(g.I(this.layout.renderingContent,v_),this.layout.layoutId,{adsClientData:this.layout.AN}))}; ul.prototype.s0=function(){f3(this.j.get(),this.K)&&Nm(this.x8.get(),3)}; ul.prototype.startRendering=function(a){WL.prototype.startRendering.call(this,a);this.callback.Xl(this.slot,a)}; ul.prototype.sL=function(){WL.prototype.sL.call(this)};g.W(XM,jN);g.W(YZ,WL);YZ.prototype.init=function(){WL.prototype.init.call(this);var a=g.I(this.layout.renderingContent,MN)||bS(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),l=cL(this.Hz);this.T.push(new XM(a,l,this.layout.layoutId,{adsClientData:this.layout.AN},!0,!0))}; YZ.prototype.startRendering=function(a){WL.prototype.startRendering.call(this,a);this.callback.Xl(this.slot,a)}; YZ.prototype.s0=function(a,l){if(l===this.layout.layoutId)switch(a){case "skip-button":var m;(a=(m=bS(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&a.YP(this.JN(),this.layout)}}; YZ.prototype.sL=function(){WL.prototype.sL.call(this)};r$.prototype.build=function(a,l,m,T){if(Ub(T,{au:["metadata_type_ad_break_response_data"],w7:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new dX3(a,m,T,this.L,this.Z,this.T);throw new HU("Unsupported layout with type: "+T.layoutType+" and client metadata: "+gM(T.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.W(Bx7,jN);g.W(a_,WL);g.Z=a_.prototype;g.Z.s0=function(a,l){Q0("ads-engagement-panel",a,S8(this.C.get()),this.x8.get(),this.j,this.K,this.JN(),this.JM(),l)}; g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),g.I(this.JM().renderingContent,qW),this.callback,"metadata_type_ads_engagement_panel_renderer",function(l,m,T,y,R){return new Bx7(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(a,l){l.layoutId===this.layout.layoutId?this.Hz.fE("impression"):this.K===l.layoutId&&(this.j===null?this.j=this.x8.get().ju():Vu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)};g.W(l3,WL);g.Z=l3.prototype;g.Z.s0=function(a,l){Q0("top-banner-image-text-icon-buttoned",a,S8(this.C.get()),this.x8.get(),this.j,this.K,this.JN(),this.JM(),l)}; g.Z.startRendering=function(a){Lh(this.Hz,this.JN(),this.JM(),g.I(this.JM().renderingContent,g2),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(l,m,T,y,R){return new oq(l,m,T,y,R)},this.T); WL.prototype.startRendering.call(this,a)}; g.Z.Xl=function(a,l){this.K===l.layoutId&&(this.j===null?this.j=this.x8.get().ju():Vu("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.sL=function(){ZW(this.gW(),this);WL.prototype.sL.call(this)};wkP.prototype.build=function(a,l,m,T){if(Ub(T,ksd())||g.I(T.renderingContent,qW)!==void 0)return new a_(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);if(Ub(T,e7H())||g.I(T.renderingContent,Rn)!==void 0)return new kZ(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);if(Ub(T,h7l())||g.I(T.renderingContent,H_)!==void 0)return new nh(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);if(Ub(T,K6t()))return new w$(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);if(Ub(T,s8w()))return new Ch(a,m,T,this.Nt,this.x8,this.gW, this.Ub,this.T);if(Ub(T,tNp())||g.I(T.renderingContent,bM)!==void 0)return new Jg(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);if(Ub(T,ngt())||g.I(T.renderingContent,g2)!==void 0)return new l3(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);if(Ub(T,f77()))return new xZ(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);if(Ub(T,Nx7())||g.I(T.renderingContent,MW)!==void 0)return new fh(a,m,T,this.Nt,this.x8,this.gW,this.Ub,this.T);throw new HU("Unsupported layout with type: "+T.layoutType+" and client metadata: "+ gM(T.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};I7l.prototype.build=function(a,l,m,T){if(Ub(T,{au:["metadata_type_linked_player_bytes_layout_id"],w7:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new ul(a,m,T,this.Nt,this.x8,this.T);throw new HU("Unsupported layout with type: "+T.layoutType+" and client metadata: "+gM(T.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.Z=CTQ.prototype;g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.init=function(){}; g.Z.release=function(){}; g.Z.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.n$(this.slot,a,new HU("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.Xl(this.slot,a),this.Hz.fE("impression"),XZ(this.fu,a,"normal"))}; g.Z.zq=function(a,l){a.layoutId!==this.layout.layoutId?this.callback.n$(this.slot,a,new HU("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.ZT(this.slot,a,l)};g.Z=ogl.prototype;g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.init=function(){}; g.Z.release=function(){}; g.Z.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.n$(this.slot,a,new HU("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.Xl(this.slot,a),this.Hz.fE("impression"),XZ(this.fu,a,"normal"))}; g.Z.zq=function(a,l){a.layoutId!==this.layout.layoutId?this.callback.n$(this.slot,a,new HU("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.ZT(this.slot,a,l)};ml.prototype.build=function(a,l,m,T){if(!this.ZK.get().D.Y().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Ub(T,EgH()))return new CTQ(a,m,T,this.x8,this.fu)}else if(Ub(T,{au:[],w7:["LAYOUT_TYPE_FORECASTING"]}))return new ogl(a,m,T,this.x8,this.fu);throw new HU("Unsupported layout with type: "+T.layoutType+" and client metadata: "+gM(T.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.W(uf3,jN);g.W(TM,WL);g.Z=TM.prototype;g.Z.init=function(){WL.prototype.init.call(this);var a=g.I(this.layout.renderingContent,gF)||g.B(bS(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),l={adsClientData:this.layout.AN};this.T.push(new uf3(a,bS(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,l))}; g.Z.J6=function(){this.j||this.EL.get().resumeVideo(2)}; g.Z.startRendering=function(a){WL.prototype.startRendering.call(this,a);this.callback.Xl(this.slot,a);this.K.UB=this}; g.Z.zq=function(a,l){WL.prototype.zq.call(this,a,l);xh(this.K,this)}; g.Z.s0=function(a,l){if(!YI(this.ZK.get(),"stop_handling_click_for_non_rendering_overlay_layout")||l===this.layout.layoutId){if(f3(this.C.get(),this.B))switch(a){case "visit-advertiser-link":Nm(this.x8.get(),3)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.EL.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.EL.get().zF(2))||this.EL.get().pauseVideo();break; case "visit-advertiser-link":this.EL.get().pauseVideo();g.B(XkH(this)).DF();break;case "skip-button":if(a=XkH(this),this.layout.renderingContent&&!T9(this.layout.clientMetadata,"metadata_type_dai")||!a.qS){var m;(a=(m=bS(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&a.YP(this.JN(),this.layout)}else Vu("Requesting to skip by LegacyPlayerBytes when components enabled"),a.qV(this.JN(),this.layout)}}}; g.Z.sL=function(){WL.prototype.sL.call(this)};g.W(yR,WL);g.Z=yR.prototype;g.Z.init=function(){WL.prototype.init.call(this);var a=g.I(this.layout.renderingContent,b3)||g.B(bS(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),l={adsClientData:this.layout.AN},m;(m=!!this.layout.renderingContent)||(m=!R_(this).qS);this.T.push(new eI(a,this.layout.layoutId,bS(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),l,m))}; g.Z.J6=function(){this.j||this.EL.get().resumeVideo(2)}; g.Z.startRendering=function(a){WL.prototype.startRendering.call(this,a);this.callback.Xl(this.slot,a);this.K.UB=this}; g.Z.zq=function(a,l){WL.prototype.zq.call(this,a,l);xh(this.K,this)}; g.Z.s0=function(a,l){if(!this.ZK||!YI(this.ZK.get(),"stop_handling_click_for_non_rendering_overlay_layout")||l===this.layout.layoutId){if(f3(this.C.get(),this.B))switch(a){case "visit-advertiser":Nm(this.x8.get(),3)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.EL.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.EL.get().zF(2))||this.EL.get().pauseVideo();break; case "visit-advertiser":this.EL.get().pauseVideo();g.B(R_(this)).DF();break;case "skip-button":if(a=R_(this),this.layout.renderingContent&&!T9(this.layout.clientMetadata,"metadata_type_dai")||!a.qS){var m;(a=(m=bS(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&a.YP(this.JN(),this.layout)}else Vu("Requesting to skip by LegacyPlayerBytes"),a.qV(this.JN(),this.layout)}}}; g.Z.sL=function(){WL.prototype.sL.call(this)};g.W(UX5,jN);g.W(HT,WL);g.Z=HT.prototype;g.Z.startRendering=function(a){var l=this;Zd(this.L,a,function(){l.T.push(new UX5(bS(l.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.AN));l.Mz();l.callback.Xl(l.slot,a);g.u(rA(l.EL.get(),1),512)&&l.callback.n$(l.JN(),l.JM(),new HU("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.Z.J$=function(){}; g.Z.b4=function(a){if(a.state.isError()){var l;this.callback.n$(this.JN(),this.JM(),new HU("A player error happened during adNotify",{playerErrorCode:(l=a.state.p7)==null?void 0:l.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.Z.onFullscreenToggled=function(){}; g.Z.C7=function(){}; g.Z.B4=function(){}; g.Z.GS=function(){}; g.Z.onVolumeChange=function(){}; g.Z.AV=function(){}; g.Z.S$=function(){}; g.Z.s0=function(){};g.W(acd,jN);g.W(qN,WL);qN.prototype.init=function(){WL.prototype.init.call(this);var a=g.I(this.layout.renderingContent,i3),l=cL(this.Hz);this.T.push(new acd(a,l,this.layout.layoutId,{adsClientData:this.layout.AN}))}; qN.prototype.startRendering=function(a){WL.prototype.startRendering.call(this,a);this.callback.Xl(this.slot,a)}; qN.prototype.s0=function(a,l){if(l===this.layout.layoutId)switch(a){case "skip-button":var m;(a=(m=bS(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&a.YP(this.JN(),this.layout)}}; qN.prototype.sL=function(){WL.prototype.sL.call(this)};lcw.prototype.build=function(a,l,m,T){if(a=dF(a,m,T,this.Nt,this.EL,this.x8,this.L,this.T,this.ZK))return a;throw new HU("Unsupported layout with type: "+T.layoutType+" and client metadata: "+gM(T.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.Z=PT.prototype;g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.init=function(){this.EL.get().addListener(this);this.EL.get().Ez.push(this);if(this.layout.renderingContent){var a=this.Bz.get();a=cs(a,1).Hl/1E3}else a=bS(this.layout.clientMetadata,"metadata_type_video_length_seconds");var l=g.I(this.layout.renderingContent,OW),m=l?eJ(l.pings):bS(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");l=l?pkt(l.pings):bS(this.layout.clientMetadata,"metadata_type_active_view_identifier");tg(this.layout.sb)&&aF(this.Ub.get(),this.layout.layoutId, {OB:m,hm:a,listener:this,An:l})}; g.Z.release=function(){this.EL.get().removeListener(this);SkP(this.EL.get(),this);tg(this.layout.sb)&&lI(this.Ub.get(),this.layout.layoutId)}; g.Z.startRendering=function(a){this.callback.Xl(this.slot,a)}; g.Z.zq=function(a,l){GM(this,"abandon");this.callback.ZT(this.slot,a,l)}; g.Z.AV=function(a){switch(a.id){case "part2viewed":this.Hz.fE("start");this.Hz.fE("impression");break;case "videoplaytime25":this.Hz.fE("first_quartile");break;case "videoplaytime50":this.Hz.fE("midpoint");break;case "videoplaytime75":this.Hz.fE("third_quartile");break;case "videoplaytime100":GM(this,"complete");SJ(this.Hz)&&$Z(this.Hz,Infinity,!0);break;case "engagedview":SJ(this.Hz)||this.Hz.fE("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Vu("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.Z.onVolumeChange=function(){}; g.Z.GS=function(){}; g.Z.C7=function(){}; g.Z.B4=function(){}; g.Z.onFullscreenToggled=function(){}; g.Z.b4=function(a){this.T||(g.Wr(a,4)&&!g.Wr(a,2)?vL(this.Hz,"pause"):Zc(a,4)<0&&!(Zc(a,2)<0)&&vL(this.Hz,"resume"))}; g.Z.J$=function(){}; g.Z.ow=function(a){SJ(this.Hz)&&$Z(this.Hz,a*1E3,!1)}; g.Z.S$=function(){GM(this,"swipe")}; g.Z.Lz=function(){this.Hz.fE("active_view_measurable")}; g.Z.s6=function(){this.Hz.fE("active_view_viewable")}; g.Z.Td=function(){this.Hz.fE("active_view_fully_viewable_audible_half_duration")}; g.Z.lC=function(){this.Hz.fE("audio_measurable")}; g.Z.ID=function(){this.Hz.fE("audio_audible")};m45.prototype.build=function(a,l,m,T){if(m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.I(T.renderingContent,OW)!==void 0)return new PT(a,m,T,this.EL,this.x8,this.ZK,this.Ub,this.Bz);l=["metadata_type_ad_placement_config"];for(var y=g.c(Ob()),R=y.next();!R.done;R=y.next())l.push(R.value);if(Ub(T,{au:l,w7:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new PT(a,m,T,this.EL,this.x8,this.ZK,this.Ub,this.Bz):new SDb(a,m,T,this.EL,this.x8, this.mW,this.ZK,this.Ub);throw new HU("Unsupported layout with type: "+T.layoutType+" and client metadata: "+gM(T.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Lw={contentCpn:"",Oz:new Map};d4t.prototype.nx=function(a,l){var m={};l=Object.assign({},l,(m.cc=this.v$.D$(),m));this.v$.D.Tu(a,l)};var Cd5,fk; Cd5={tuK:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",jaK:"AUTHENTICATION_MALFORMED",Uwu:"AUTHENTICATION_MISSING",qrL:"BAD_REQUEST",KHN:"CAST_SESSION_DEVICE_MISMATCHED",FHL:"CAST_SESSION_VIDEO_MISMATCHED",xw8:"CAST_TOKEN_EXPIRED",A$j:"CAST_TOKEN_FAILED",VHT:"CAST_TOKEN_MALFORMED",BkL:"CGI_PARAMS_MALFORMED",SrN:"CGI_PARAMS_MISSING",IEj:"DEVICE_FALLBACK",AVu:"GENERIC_WITH_LINK_AND_CPN",V$g:"ERROR_HDCP",Bdx:"LICENSE",S9u:"VIDEO_UNAVAILABLE",RFj:"FORMAT_UNAVAILABLE",HhL:"GEO_FAILURE", TlM:"HTML5_AUDIO_RENDERER_ERROR",LfT:"GENERIC_WITHOUT_LINK",scg:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Z_j:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",jcM:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Ug8:"HTML5_SPS_UMP_STATUS_REJECTED",ecg:"INVALID_DRM_MESSAGE",LyM:"PURCHASE_NOT_FOUND",sVz:"PURCHASE_REFUNDED",h98:"RENTAL_EXPIRED",mEL:"RETRYABLE_ERROR",SO8:"SERVER_ERROR",t4j:"SIGNATURE_EXPIRED",gFK:"STOPPED_BY_ANOTHER_PLAYBACK",z9O:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",GXt:"STREAMING_NOT_ALLOWED", ysT:"STREAM_LICENSE_NOT_FOUND",L_j:"TOO_MANY_REQUESTS",sHO:"TOO_MANY_REQUESTS_WITH_LINK",Znj:"TOO_MANY_STREAMS_PER_ENTITLEMENT",jHM:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",W_j:"VIDEO_FORBIDDEN",JKg:"VIDEO_NOT_FOUND",odz:"BROWSER_OR_EXTENSION_ERROR"};fk={}; g.JO=(fk.ALREADY_PINNED_ON_A_DEVICE="Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",fk.DEVICE_FALLBACK="Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",fk.GENERIC_WITH_LINK_AND_CPN="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",fk.LICENSE= "Se ha producido un error de licencia con este v\u00eddeo.",fk.VIDEO_UNAVAILABLE="El v\u00eddeo no est\u00e1 disponible",fk.FORMAT_UNAVAILABLE="Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",fk.GEO_FAILURE="Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",fk.HTML5_AUDIO_RENDERER_ERROR="No se ha podido procesar el audio. Reinicia tu ordenador.",fk.GENERIC_WITHOUT_LINK="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",fk.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de v\u00eddeo.",fk.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.",fk.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",fk.HTML5_SPS_UMP_STATUS_REJECTED="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", fk.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",fk.PURCHASE_NOT_FOUND="Este v\u00eddeo es de pago.",fk.PURCHASE_REFUNDED="Te hemos devuelto el importe de este v\u00eddeo.",fk.RENTAL_EXPIRED="El periodo de alquiler de este v\u00eddeo ha finalizado.",fk.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",fk.CAST_SESSION_VIDEO_MISMATCHED="El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",fk.CAST_TOKEN_FAILED= "La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",fk.CAST_TOKEN_EXPIRED="La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",fk.CAST_TOKEN_MALFORMED="La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",fk.SERVER_ERROR="Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",fk.STOPPED_BY_ANOTHER_PLAYBACK="Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.", fk.STREAM_LICENSE_NOT_FOUND="Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",fk.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.",fk.STREAMING_NOT_ALLOWED="No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",fk.RETRYABLE_ERROR="Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",fk.TOO_MANY_REQUESTS="Inicia sesi\u00f3n para ver este v\u00eddeo.", fk.TOO_MANY_REQUESTS_WITH_LINK="Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",fk.TOO_MANY_STREAMS_PER_USER="Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.",fk.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",fk.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.",fk.VIDEO_FORBIDDEN="El acceso a este v\u00eddeo est\u00e1 prohibido.", fk.VIDEO_NOT_FOUND="No es posible encontrar este v\u00eddeo.",fk.BROWSER_OR_EXTENSION_ERROR="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",fk);var E5c;var o5X=g.ej(),xEX=o5X.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!xEX||xEX.length<2)E5c=void 0;else{var DEV=o5X.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);E5c=DEV&&DEV.length===6?Number(DEV[5].replace("_",".")):0}var I4=E5c,v3=I4>=0;g.W(g.BT,zO);g.BT.prototype.W=function(a,l,m,T,y){return zO.prototype.W.call(this,a,l,m,T,y)};var J1={},eP=(J1.FAIRPLAY="fairplay",J1.PLAYREADY="playready",J1.WIDEVINE="widevine",J1.CLEARKEY=null,J1.FLASHACCESS=null,J1.UNKNOWN=null,J1.WIDEVINE_CLASSIC=null,J1);k9.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Bt={},Ow=(Bt.WIDTH={name:"width",video:!0,valid:640,XM:99999},Bt.HEIGHT={name:"height",video:!0,valid:360,XM:99999},Bt.FRAMERATE={name:"framerate",video:!0,valid:30,XM:9999},Bt.BITRATE={name:"bitrate",video:!0,valid:3E5,XM:2E9},Bt.EOTF={name:"eotf",video:!0,valid:"bt709",XM:"catavision"},Bt.CHANNELS={name:"channels",video:!1,valid:2,XM:99},Bt.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",XM:"invalidformat"},Bt.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", XM:"nope"},Bt.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",XM:"av99.0.05M.08"},Bt.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",XM:"invalid"},Bt);var uud=["h","H"],X6r=["9","("],YJd=["9h","(h"],UEX=["8","*"],rbF=["a","A"],aNn=["o","O"],lNV=["m","M"],mwg=["mac3","MAC3"],TyX=["meac3","MEAC3"],kd={},QS7=(kd.h=uud,kd.H=uud,kd["9"]=X6r,kd["("]=X6r,kd["9h"]=YJd,kd["(h"]=YJd,kd["8"]=UEX,kd["*"]=UEX,kd.a=rbF,kd.A=rbF,kd.o=aNn,kd.O=aNn,kd.m=lNV,kd.M=lNV,kd.mac3=mwg,kd.MAC3=mwg,kd.meac3=TyX,kd.MEAC3=TyX,kd),ydd=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),g9z=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var r={},o_=(r["0"]="f",r["160"]="h",r["133"]="h",r["134"]="h",r["135"]="h",r["136"]="h",r["137"]="h",r["264"]="h",r["266"]="h",r["138"]="h",r["298"]="h",r["299"]="h",r["304"]="h",r["305"]="h",r["214"]="h",r["216"]="h",r["374"]="h",r["375"]="h",r["140"]="a",r["141"]="a",r["327"]="sa",r["258"]="m",r["380"]="mac3",r["328"]="meac3",r["161"]="H",r["142"]="H",r["143"]="H",r["144"]="H",r["222"]="H",r["223"]="H",r["145"]="H",r["224"]="H",r["225"]="H",r["146"]="H",r["226"]="H",r["227"]="H",r["147"]="H",r["384"]= "H",r["376"]="H",r["385"]="H",r["377"]="H",r["149"]="A",r["261"]="M",r["381"]="MAC3",r["329"]="MEAC3",r["598"]="9",r["278"]="9",r["242"]="9",r["243"]="9",r["244"]="9",r["775"]="9",r["776"]="9",r["777"]="9",r["778"]="9",r["779"]="9",r["780"]="9",r["781"]="9",r["782"]="9",r["783"]="9",r["247"]="9",r["248"]="9",r["353"]="9",r["355"]="9",r["356"]="9",r["271"]="9",r["577"]="9",r["313"]="9",r["579"]="9",r["272"]="9",r["302"]="9",r["303"]="9",r["407"]="9",r["408"]="9",r["308"]="9",r["315"]="9",r["330"]= "9h",r["331"]="9h",r["332"]="9h",r["333"]="9h",r["334"]="9h",r["335"]="9h",r["336"]="9h",r["337"]="9h",r["338"]="so",r["600"]="o",r["250"]="o",r["251"]="o",r["774"]="o",r["194"]="*",r["195"]="*",r["220"]="*",r["221"]="*",r["196"]="*",r["197"]="*",r["279"]="(",r["280"]="(",r["317"]="(",r["318"]="(",r["273"]="(",r["274"]="(",r["357"]="(",r["358"]="(",r["275"]="(",r["359"]="(",r["360"]="(",r["276"]="(",r["583"]="(",r["584"]="(",r["314"]="(",r["585"]="(",r["561"]="(",r["277"]="(",r["361"]="(h",r["362"]= "(h",r["363"]="(h",r["364"]="(h",r["365"]="(h",r["366"]="(h",r["591"]="(h",r["592"]="(h",r["367"]="(h",r["586"]="(h",r["587"]="(h",r["368"]="(h",r["588"]="(h",r["562"]="(h",r["409"]="(",r["410"]="(",r["411"]="(",r["412"]="(",r["557"]="(",r["558"]="(",r["394"]="1",r["395"]="1",r["396"]="1",r["397"]="1",r["398"]="1",r["399"]="1",r["720"]="1",r["721"]="1",r["400"]="1",r["401"]="1",r["571"]="1",r["402"]="1",r["694"]="1h",r["695"]="1h",r["696"]="1h",r["697"]="1h",r["698"]="1h",r["699"]="1h",r["700"]="1h", r["701"]="1h",r["702"]="1h",r["703"]="1h",r["386"]="3",r["387"]="w",r["406"]="6",r["787"]="1",r["788"]="1",r["548"]="1e",r["549"]="1e",r["550"]="1e",r["551"]="1e",r["809"]="1e",r["810"]="1e",r["552"]="1e",r["811"]="1e",r["812"]="1e",r["553"]="1e",r["813"]="1e",r["814"]="1e",r["554"]="1e",r["815"]="1e",r["816"]="1e",r["555"]="1e",r["817"]="1e",r["818"]="1e",r["572"]="1e",r["556"]="1e",r["645"]="(",r["646"]="(",r["647"]="(",r["648"]="(",r["649"]="(",r["650"]="(",r["651"]="(",r["652"]="(",r["653"]="(", r["654"]="(",r["655"]="(",r["656"]="(",r["657"]="(",r["658"]="(",r["659"]="(",r["660"]="(",r["661"]="(",r["662"]="(",r["663"]="(",r["664"]="(",r["665"]="(",r["666"]="(",r["667"]="(",r["668"]="(",r["669"]="(",r["670"]="(",r["671"]="(",r["672"]="(",r["673"]="(",r["674"]="(h",r["675"]="(h",r["676"]="(h",r["677"]="(h",r["678"]="(h",r["679"]="(h",r["680"]="(h",r["681"]="(h",r["682"]="(h",r["683"]="(h",r["684"]="(h",r["685"]="(h",r["686"]="(h",r["687"]="(h",r["688"]="A",r["689"]="A",r["690"]="A",r["691"]= "MEAC3",r["773"]="i",r["806"]="I",r["805"]="I",r["829"]="9",r["830"]="9",r["831"]="9",r["832"]="9",r["833"]="9",r["834"]="9",r["835"]="9",r["836"]="9",r["837"]="9",r["838"]="9",r["839"]="9",r["840"]="9",r["841"]="(",r["842"]="(",r["843"]="(",r["844"]="(",r["845"]="(",r["846"]="(",r["847"]="(",r["848"]="(",r["849"]="(",r["850"]="(",r["851"]="(",r["852"]="(",r["865"]="9",r["866"]="9",r["867"]="9",r["868"]="9",r["869"]="9",r["870"]="9",r["871"]="9",r["872"]="9",r["873"]="9",r["874"]="9",r["875"]="9", r["876"]="9",r["877"]="(",r["878"]="(",r["879"]="(",r["880"]="(",r["881"]="(",r["882"]="(",r["883"]="(",r["884"]="(",r["885"]="(",r["886"]="(",r["887"]="(",r["888"]="(",r);var nk={},ROR=(nk.STEREO_LAYOUT_UNKNOWN=0,nk.STEREO_LAYOUT_LEFT_RIGHT=1,nk.STEREO_LAYOUT_TOP_BOTTOM=2,nk);var w7,Px;w7={};g.wF=(w7.auto=0,w7.tiny=144,w7.light=144,w7.small=240,w7.medium=360,w7.large=480,w7.hd720=720,w7.hd1080=1080,w7.hd1440=1440,w7.hd2160=2160,w7.hd2880=2880,w7.highres=4320,w7);Px={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var Cw="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");I_.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};x9.prototype.n5=function(){return this.containerType===2}; x9.prototype.isEncrypted=function(){return!!this.u0}; x9.prototype.q2=function(){return!!this.audio}; x9.prototype.YN=function(){return!!this.video}; var XI=!1;g.W(Vv,g.Aj);g.Z=Vv.prototype;g.Z.appendBuffer=function(a,l,m){if(this.gO.P6()!==this.appendWindowStart+this.start||this.gO.DL()!==this.appendWindowEnd+this.start||this.gO.YX()!==this.timestampOffset+this.start)this.gO.supports(1),this.gO.T3(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.gO.D5(this.timestampOffset+this.start);this.gO.appendBuffer(a,l,m)}; g.Z.abort=function(){this.gO.abort()}; g.Z.remove=function(a,l){this.gO.remove(a+this.start,l+this.start)}; g.Z.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.Z.clear=function(){this.gO.clear()}; g.Z.T3=function(a,l){this.appendWindowStart=a;this.appendWindowEnd=l}; g.Z.R4=function(){return this.timestampOffset+this.start}; g.Z.P6=function(){return this.appendWindowStart}; g.Z.DL=function(){return this.appendWindowEnd}; g.Z.D5=function(a){this.timestampOffset=a}; g.Z.YX=function(){return this.timestampOffset}; g.Z.PY=function(a){a=this.gO.PY(a===void 0?!1:a);return GR(a,this.start,this.end)}; g.Z.C_=function(){return this.gO.C_()}; g.Z.M$=function(){return this.gO.M$()}; g.Z.oV=function(){return this.gO.oV()}; g.Z.uP=function(){return this.gO.uP()}; g.Z.Vl=function(){this.gO.Vl()}; g.Z.SV=function(a){return this.gO.SV(a)}; g.Z.vt=function(){return this.gO.vt()}; g.Z.xg=function(){return this.gO.xg()}; g.Z.jz=function(){return this.gO.jz()}; g.Z.vH=function(a,l,m){this.gO.vH(a,l,m)}; g.Z.I1=function(a,l,m){this.gO.I1(a,l,m)}; g.Z.DG=function(a,l){return this.gO.DG(a,l)}; g.Z.supports=function(a){return this.gO.supports(a)}; g.Z.VL=function(){return this.gO.VL()}; g.Z.isView=function(){return!0}; g.Z.WX=function(){return this.gO.WX()?this.isActive:!1}; g.Z.isLocked=function(){return this.o2&&!this.isActive}; g.Z.rW=function(a){a=this.gO.rW(a);a.vw=this.start+"-"+this.end;return a}; g.Z.AS=function(){return this.gO.AS()}; g.Z.Um=function(){return this.gO.Um()}; g.Z.kJ=function(){return this.gO.kJ()}; g.Z.sL=function(){this.gO.YE(this.G9);g.Aj.prototype.sL.call(this)};var WB=!1;g.W(Zg,g.Aj);g.Z=Zg.prototype;g.Z.appendBuffer=function(a,l,m){this.sz=!1;m&&(this.zl=m);if(a.length){var T;((T=this.VO)==null?0:T.appendBuffer)?this.VO.appendBuffer(a):this.VO?this.VO.append(a):this.V2&&this.V2.webkitSourceAppend(this.id,a)}l&&(l.isEncrypted()&&(this.YQ=this.zl),l.type===3&&(this.yX=l),this.g9.push(l.LR()),this.g9.length>4&&this.g9.shift());this.gF&&(this.gF.length>=2||a.length>1048576?delete this.gF:this.gF.push(a))}; g.Z.abort=function(){try{this.VO?this.VO.abort():this.V2&&this.V2.webkitSourceAbort(this.id)}catch(l){if(Ax7){var a=new g.YH("Error while abort the source buffer: "+l.name+", "+l.message);g.kt(a)}}this.zl=this.yX=null}; g.Z.remove=function(a,l,m){this.sz=!1;var T;if((T=this.VO)==null?0:T.remove)m&&m({b:gV(this.PY()),s:a,e:l}),this.VO.remove(a,l)}; g.Z.removeAll=function(){this.remove(this.P6(),this.DL())}; g.Z.clear=function(){this.oV()||(this.abort(),this.removeAll(),this.YQ=this.zl=this.yX=null,this.appendWindowStart=this.timestampOffset=0,this.Q7=bH([],[]),this.sz=!1,this.gF=pT?[]:void 0,this.Y9=!0)}; g.Z.P6=function(){if(WB&&this.YN)return this.appendWindowStart;var a;return((a=this.VO)==null?void 0:a.appendWindowStart)||0}; g.Z.DL=function(){var a;return((a=this.VO)==null?void 0:a.appendWindowEnd)||0}; g.Z.T3=function(a,l){this.VO&&(WB&&this.YN?(this.appendWindowStart=a,this.VO.appendWindowEnd=l):a>this.P6()?(this.VO.appendWindowEnd=l,this.VO.appendWindowStart=a):(this.VO.appendWindowStart=a,this.VO.appendWindowEnd=l))}; g.Z.R4=function(){return this.timestampOffset}; g.Z.D5=function(a){WB?this.timestampOffset=a:this.supports(1)&&(this.VO.timestampOffset=a)}; g.Z.YX=function(){return WB?this.timestampOffset:this.supports(1)?this.VO.timestampOffset:0}; g.Z.PY=function(a){if(a===void 0?0:a)return this.sz||this.C_()||(this.Q7=this.PY(!1),this.sz=!0),this.Q7;try{return this.VO?this.VO.buffered:this.V2?this.V2.webkitSourceBuffered(this.id):bH([0],[Infinity])}catch(l){return bH([],[])}}; g.Z.C_=function(){var a;return((a=this.VO)==null?void 0:a.updating)||!1}; g.Z.oV=function(){return this.Y9}; g.Z.uP=function(){return!this.Y9&&this.C_()}; g.Z.Vl=function(){this.Y9=!1}; g.Z.SV=function(a){var l=a==null?void 0:a.Gu;a=a==null?void 0:a.containerType;return!l&&!a||l===this.Gu&&a===this.containerType}; g.Z.vt=function(){return this.zl}; g.Z.xg=function(){return this.YQ}; g.Z.DG=function(a,l){return this.containerType!==a||this.Gu!==l}; g.Z.vH=function(a,l,m){if(this.containerType!==a||m&&this.DG(a,m))this.supports(4),oy()&&this.VO.changeType(l),m&&(this.Gu=m);this.containerType=a}; g.Z.I1=function(a,l,m){this.containerType&&this.DG(a,l)&&oy()&&this.VO.changeType(m);this.containerType=a;this.Gu=l}; g.Z.VL=function(){return this.yX}; g.Z.isView=function(){return!1}; g.Z.supports=function(a){switch(a){case 1:var l;return((l=this.VO)==null?void 0:l.timestampOffset)!==void 0;case 0:var m;return!((m=this.VO)==null||!m.appendBuffer);case 2:var T;return!((T=this.VO)==null||!T.remove);case 3:var y,R;return!!(((y=this.VO)==null?0:y.addEventListener)&&((R=this.VO)==null?0:R.removeEventListener));case 4:return!(!this.VO||!this.VO.changeType);default:return!1}}; g.Z.WX=function(){return!this.C_()}; g.Z.isLocked=function(){return!1}; g.Z.rW=function(a){a.to=this.YX();a.up=this.C_();var l,m=((l=this.VO)==null?void 0:l.appendWindowStart)||0,T;l=((T=this.VO)==null?void 0:T.appendWindowEnd)||Infinity;a.aw=m.toFixed(3)+"-"+l.toFixed(3);return a}; g.Z.M$=function(){var a;return((a=this.VO)==null?void 0:a.writeHead)||0}; g.Z.AS=function(){for(var a={},l=0;l=7&&jEP(this,function(){g.ZC(function(){Kup(a,a.getCurrentTime(),0)},500)}); return l}; g.Z.seekTo=function(a){this.Tb()>0&&(v3&&I4<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; g.Z.p_=function(){if(!this.L&&this.Wz)if(this.Wz.K)try{var a;YM(this,{l:"mer",sr:(a=this.vz)==null?void 0:a.TJ(),rs:rV(this.Wz)});this.Wz.clear();this.L=this.Wz;this.Wz=void 0}catch(l){a=new g.YH("Error while clearing Media Source in MediaElement: "+l.name+", "+l.message),g.kt(a),this.stopVideo()}else this.stopVideo()}; g.Z.stopVideo=function(){var a=this;if(!this.L){var l;(l=this.Wz)==null||Fu3(l);if(iEd){if(!this.Z){var m=new l6;m.then(void 0,function(){}); this.Z=m;dY3&&this.pause();g.ZC(function(){a.Z===m&&(RS(a),m.resolve())},200)}}else RS(this)}}; g.Z.L6=function(){var a=this.dL();return Au(a)&&this.getDuration()?dV(a,this.getCurrentTime()):0}; g.Z.TG=function(){var a=this.getDuration();return a===Infinity?1:a?this.L6()/a:0}; g.Z.rW=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:gV(this.ZP(),",",3),vbu:gV(this.dL()),vbs:gV(this.Dx()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Tb(),vns:""+this.SU(),vec:""+this.YA(),vemsg:this.La(),vvol:""+this.getVolume(),vdom:""+ +this.CD(),vsrc:""+ +!!this.Lu(),vw:""+a.width,vh:""+a.height}}catch(l){return{}}}; g.Z.hasError=function(){return this.YA()>0}; g.Z.addEventListener=function(a,l){this.j.listen(a,l,!1,this);this.wQ(a)}; g.Z.removeEventListener=function(a,l){this.j.DT(a,l,!1,this)}; g.Z.dispatchEvent=function(a){if(this.Z&&a.type==="pause")return!1;if(jJ5){var l,m=((l=a.T)==null?void 0:l.timeStamp)||Infinity;l=m>performance.now()?m-Date.now()+performance.now():m;m=this.L||this.Wz;if((m==null?0:m.oV())||l<=((m==null?void 0:m.C)||0)){var T;YM(this,{l:"mede",sr:(T=this.vz)==null?void 0:T.TJ(),et:a.type});return!1}if(this.IF)return YM(this,{l:"medes",et:a.type}),m&&a.type==="seeking"&&(m.C=performance.now(),this.IF=!1),!1}return this.j.dispatchEvent(a)}; g.Z.pA=function(){this.C=!1}; g.Z.Sp=function(){this.C=!0;this.a7(!0)}; g.Z.Eq=function(){this.C&&!this.bH()&&this.a7(!0)}; g.Z.equals=function(a){return!!a&&a.hN()===this.hN()}; g.Z.sL=function(){this.B&&this.removeEventListener("volumechange",this.Eq);iEd&&RS(this);g.k.prototype.sL.call(this)}; var iEd=!1,dY3=!1,jJ5=!1,$4d=!1;g.Z=g.qz.prototype;g.Z.isPaused=function(){return g.u(this,4)}; g.Z.isPlaying=function(){return g.u(this,8)&&!g.u(this,512)&&!g.u(this,64)&&!g.u(this,2)}; g.Z.isOrWillBePlaying=function(){return g.u(this,8)&&!g.u(this,2)&&!g.u(this,1024)}; g.Z.isCued=function(){return g.u(this,64)&&!g.u(this,8)&&!g.u(this,4)}; g.Z.isBuffering=function(){return g.u(this,1)&&!g.u(this,2)}; g.Z.isError=function(){return g.u(this,128)}; g.Z.isSuspended=function(){return g.u(this,512)}; g.Z.Oa=function(){return g.u(this,64)&&g.u(this,4)}; g.Z.toString=function(){return"PSt."+this.state.toString(16)}; var IB={},Ck=(IB.BUFFERING="buffering-mode",IB.CUED="cued-mode",IB.ENDED="ended-mode",IB.PAUSED="paused-mode",IB.PLAYING="playing-mode",IB.SEEKING="seeking-mode",IB.UNSTARTED="unstarted-mode",IB);g.W(VF,g.k);g.Z=VF.prototype;g.Z.SX=function(){return this.Z}; g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.init=function(){var a=bS(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=bS(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");tg(this.layout.sb)&&aF(this.Ub.get(),this.layout.layoutId,{OB:l,hm:a,listener:this,gU:this.UQ()});FMQ(this.x8.get(),this);a=this.HE;l=this.layout.layoutId;var m={gU:this.UQ()};a.T.set(l,m);this.TV()}; g.Z.fG=function(){}; g.Z.release=function(){tg(this.layout.sb)&&lI(this.Ub.get(),this.layout.layoutId);hwQ(this.x8.get(),this);this.HE.T.delete(this.layout.layoutId);this.BM()}; g.Z.F9=function(){}; g.Z.f3=function(){}; g.Z.startRendering=function(a){tS(pd(this));if(Z$(this,a)){var l=this.T;eS(l.params.Xa.ZK.get(),!0)&&iuH(l,"p_sr",{});Ws(this);this.t2(a);this.UQ()||this.KM(!1)}}; g.Z.Xl=function(a,l){if(l.layoutId===this.layout.layoutId){this.PF="rendering";this.L=this.EL.get().isMuted()||this.EL.get().getVolume()===0;this.fE("impression");this.fE("start");if(this.EL.get().isMuted()){eC(this,"mute");var m;a=((m=G4(this))==null?void 0:m.muteCommands)||[];xI(this.mW.get(),a,this.layout.layoutId)}if(this.EL.get().isFullscreen()){this.PE("fullscreen");var T;m=((T=G4(this))==null?void 0:T.fullscreenCommands)||[];xI(this.mW.get(),m,this.layout.layoutId)}this.UQ()||(T=this.iM.get(), T.Z&&!T.L&&(T.K=!1,T.L=!0,T.actionType!=="ad_to_video"&&(uu("pbs",void 0,T.actionType),g.Q7("finalize_all_timelines")&&oqR(T.actionType))));this.S4(1);this.fC(l);var y;l=((y=G4(this))==null?void 0:y.impressionCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}}; g.Z.IE=function(a,l,m){this.B={x_:3,jK:a==="load_timeout"?402:400,errorMessage:l.message};this.fE("error");var T;a=((T=G4(this))==null?void 0:T.errorCommands)||[];xI(this.mW.get(),a,this.layout.layoutId);this.UQ()||this.K2.n$(this.slot,this.layout,l,m)}; g.Z.JR=function(){if(this.PF==="rendering"){eC(this,"pause");var a,l=((a=G4(this))==null?void 0:a.pauseCommands)||[];xI(this.mW.get(),l,this.layout.layoutId);this.S4(2)}}; g.Z.fK=function(){if(this.PF==="rendering"){eC(this,"resume");var a,l=((a=G4(this))==null?void 0:a.resumeCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}}; g.Z.g1=function(a,l){l=l===void 0?!1:l;if(this.PF==="rendering"){var m={currentTimeSec:a,flush:l};FI(this.T,"p_ip",m);$Z(this.Hz,a*1E3,l);this.L||$Z(this.Hz,a*1E3,l===void 0?!1:l);var T=this.Om();if(T){T/=1E3;if(a>=T*.25||l)this.fE("first_quartile"),FI(this.T,"p_fq",m);if(a>=T*.5||l)this.fE("midpoint"),FI(this.T,"p_sq",m);if(a>=T*.75||l)this.fE("third_quartile"),FI(this.T,"p_tq",m);this.ZK.get().D.Y().experiments.XO("enable_progress_command_flush_on_kabuki")?Iq(this.j,a*1E3,l):Iq(this.j,a*1E3,kDd(this)? l:!1)}}}; g.Z.D$=function(){var a;return((a=cs(this.Bz.get(),1))==null?void 0:a.clientPlaybackNonce)||""}; g.Z.cM=function(a,l){a.layoutId!==this.layout.layoutId?this.K2.n$(this.slot,a,new HU("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"):l()}; g.Z.ZT=function(a,l,m){if(l.layoutId===this.layout.layoutId)switch(this.PF="not_rendering",this.layoutExitReason=void 0,this.UQ()||(a=m!=="normal"||this.position+1===this.C)&&this.KM(a),this.Wk(m),this.S4(0),m){case "abandoned":if(sb(this.Hz,"impression")){var T,y=((T=G4(this))==null?void 0:T.abandonCommands)||[];xI(this.mW.get(),y,this.layout.layoutId)}break;case "normal":T=((y=G4(this))==null?void 0:y.completeCommands)||[];xI(this.mW.get(),T,this.layout.layoutId);break;case "skipped":var R;T=((R= G4(this))==null?void 0:R.skipCommands)||[];xI(this.mW.get(),T,this.layout.layoutId)}}; g.Z.iq=function(){return this.layout.layoutId}; g.Z.I4=function(){return this.B}; g.Z.Lz=function(){if(this.PF==="rendering"){this.Hz.fE("active_view_measurable");var a,l=((a=G4(this))==null?void 0:a.activeViewMeasurableCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}}; g.Z.Td=function(){if(this.PF==="rendering"){this.Hz.fE("active_view_fully_viewable_audible_half_duration");var a,l=((a=G4(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}}; g.Z.s6=function(){if(this.PF==="rendering"){this.Hz.fE("active_view_viewable");var a,l=((a=G4(this))==null?void 0:a.activeViewViewableCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}}; g.Z.ID=function(){if(this.PF==="rendering"){this.Hz.fE("audio_audible");var a,l=((a=G4(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}}; g.Z.lC=function(){if(this.PF==="rendering"){this.Hz.fE("audio_measurable");var a,l=((a=G4(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}}; g.Z.KM=function(a){this.iM.get().KM(bS(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,a,this.position,this.C,!1)}; g.Z.onFullscreenToggled=function(a){if(this.PF==="rendering")if(a){this.PE("fullscreen");var l,m=((l=G4(this))==null?void 0:l.fullscreenCommands)||[];xI(this.mW.get(),m,this.layout.layoutId)}else this.PE("end_fullscreen"),l=((m=G4(this))==null?void 0:m.endFullscreenCommands)||[],xI(this.mW.get(),l,this.layout.layoutId)}; g.Z.onVolumeChange=function(){if(this.PF==="rendering")if(this.EL.get().isMuted()){eC(this,"mute");var a,l=((a=G4(this))==null?void 0:a.muteCommands)||[];xI(this.mW.get(),l,this.layout.layoutId)}else eC(this,"unmute"),a=((l=G4(this))==null?void 0:l.unmuteCommands)||[],xI(this.mW.get(),a,this.layout.layoutId)}; g.Z.C7=function(){}; g.Z.B4=function(){}; g.Z.GS=function(){}; g.Z.AV=function(){}; g.Z.S$=function(){}; g.Z.PE=function(a){this.Hz.PE(a,!this.L)}; g.Z.fE=function(a){this.Hz.fE(a,!this.L)}; g.Z.UQ=function(){var a=bS(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(Vu("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.ZK.get().UQ(a)};g.W(z4,VF);g.Z=z4.prototype;g.Z.TV=function(){}; g.Z.BM=function(){var a=this.x8.get();a.rJ===this&&(a.rJ=null);this.Jb.stop()}; g.Z.F9=function(){this.Jb.stop();VF.prototype.JR.call(this)}; g.Z.f3=function(){$Q(this);VF.prototype.fK.call(this)}; g.Z.Om=function(){return bS(this.JM().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.Z.zq=function(a,l){var m=this;this.cM(a,function(){m.PF!=="rendering_stop_requested"&&(m.PF="rendering_stop_requested",m.layoutExitReason=l,Ld(m,l),m.Jb.stop())})}; g.Z.ex=function(){var a=Date.now(),l=a-this.tL;this.tL=a;this.Lh+=l;this.Lh>=this.Om()?this.HT():(this.g1(this.Lh/1E3),vs(this,this.Lh))}; g.Z.Wk=function(){}; g.Z.J$=function(){}; g.W(sp,z4);g.Z=sp.prototype;g.Z.b4=function(a){if(this.PF!=="not_rendering"){a=Nz(this,a);var l=this.EL.get().getPresentingPlayerType()===2;this.PF==="rendering_start_requested"?l&&jS(a)&&this.HX():l?g.Wr(a,2)?Vu("Receive player ended event during MediaBreak",this.JN(),this.JM()):QF(this,a):this.CG()}}; g.Z.t2=function(){Jwd(this);BlR(this.EL.get());this.x8.get().rJ=this;xb("pbp")||xb("pbs")||uu("pbp");xb("pbp","watch")||xb("pbs","watch")||uu("pbp",void 0,"watch");this.HX()}; g.Z.fC=function(a){this.iM.get();var l=bS(a.clientMetadata,"metadata_type_ad_placement_config").kind,m=this.position===0;a=bS(a.clientMetadata,"metadata_type_linked_in_player_layout_type");a={adBreakType:tn(l),adType:Y6l(a)};var T=void 0;m?l!=="AD_PLACEMENT_KIND_START"&&(T="video_to_ad"):T="ad_to_ad";C$("ad_mbs",void 0,T);g.Ex(a,T);$Q(this)}; g.Z.CG=function(){this.hv()}; g.Z.HT=function(){wrb(this);this.hv()}; g.W(SC,z4);g.Z=SC.prototype;g.Z.b4=function(a){this.PF!=="not_rendering"&&(a=Nz(this,a),QF(this,a))}; g.Z.t2=function(){Vu("Not used in SSAP")}; g.Z.fC=function(){$Q(this)}; g.Z.CG=function(){Vu("Not used in SSAP")}; g.Z.HT=function(){wrb(this);this.K2.Pq(this.JN(),this.JM(),"normal")}; g.W(fd,SC);fd.prototype.zq=function(a,l){var m=this;this.cM(a,function(){WT(m.Z,l)&&(m.PF="rendering_stop_requested",m.layoutExitReason=l,Ld(m,l),m.Jb.stop())})}; fd.prototype.startRendering=function(a){tS(pd(this));Z$(this,a)&&(Ws(this),this.x8.get().rJ=this)};g.W(kQ,VF);g.Z=kQ.prototype;g.Z.CG=function(){this.hv()}; g.Z.b4=function(a){if(this.PF!=="not_rendering"){a=Nz(this,a);var l=this.EL.get().getPresentingPlayerType()===2;this.PF==="rendering_start_requested"?l&&jS(a)&&this.HX():!l||g.Wr(a,2)?this.hv():QF(this,a)}}; g.Z.TV=function(){bS(this.JM().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=bS(this.JM().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.Z.BM=function(){bS(this.JM().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.J5){var a=this.context.Xa,l=this.J5,m=this.JM().layoutId;if(eS(a.ZK.get(),!0)){var T={};a.nx("mccru",(T.cid=l,T.p_ac=m,T))}this.VP.get().removeCueRange(this.J5)}this.J5=void 0;var y;(y=this.HK)==null||y.dispose();this.UU&&this.UU.dispose()}; g.Z.t2=function(a){var l=Jn(this.ZK.get()),m=Bs(this.ZK.get());if(l&&m&&!this.UQ()){m=bS(a.clientMetadata,"metadata_type_preload_player_vars");var T=this.ZK.get();T=g.PU(T.D.Y().experiments,"html5_preload_wait_time_secs");m&&this.UU&&this.UU.start(T*1E3)}EfQ(this,a);Jwd(this);l?(m=this.Tq.get(),a=bS(a.clientMetadata,"metadata_type_player_vars"),m.D.loadVideoByPlayerVars(a,!1,2)):U9b(this.Tq.get(),bS(a.clientMetadata,"metadata_type_player_vars"));var y;(y=this.HK)==null||y.start();l||this.Tq.get().D.playVideo(2)}; g.Z.fC=function(){var a;(a=this.HK)==null||a.stop();this.J5="adcompletioncuerange:"+this.JM().layoutId;this.VP.get().addCueRange(this.J5,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.Xa;var l=this.J5,m=this.JM().layoutId;if(eS(a.ZK.get(),!0)){var T={};a.nx("mccr",(T.cid=l,T.p_ac=m,T))}(this.adCpn=fcP(this))||Vu("Media layout confirmed started, but ad CPN not set.");this.tW.get().Im("onAdStart",this.adCpn);this.RS=Date.now()}; g.Z.Om=function(){var a;return(a=cs(this.Bz.get(),2))==null?void 0:a.Hl}; g.Z.DF=function(){this.Hz.PE("clickthrough")}; g.Z.zq=function(a,l){var m=this;this.cM(a,function(){if(m.PF!=="rendering_stop_requested"){m.PF="rendering_stop_requested";m.layoutExitReason=l;Ld(m,l);var T;(T=m.HK)==null||T.stop();m.UU&&m.UU.stop();ofb(m)}})}; g.Z.onCueRangeEnter=function(a){if(a!==this.J5)Vu("Received CueRangeEnter signal for unknown layout.",this.JN(),this.JM(),{cueRangeId:a});else{var l=this.context.Xa,m=this.JM().layoutId;if(eS(l.ZK.get(),!0)){var T={};l.nx("mccre",(T.cid=a,T.p_ac=m,T))}this.VP.get().removeCueRange(this.J5);this.J5=void 0;YI(this.context.ZK.get(),"html5_ssap_flush_at_stop_rendering")&&this.UQ()||(a=bS(this.JM().clientMetadata,"metadata_type_video_length_seconds"),this.g1(a,!0),this.fE("complete"))}}; g.Z.Wk=function(a){a!=="abandoned"&&this.tW.get().Im("onAdComplete");this.tW.get().Im("onAdEnd",this.adCpn)}; g.Z.onCueRangeExit=function(){}; g.Z.J$=function(a){this.PF==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.EL.get().Ni(!0),this.g1(a))}; g.Z.g1=function(a,l){VF.prototype.g1.call(this,a,l===void 0?!1:l);l=Date.now()-this.RS;var m=a*1E3,T={contentCpn:this.D$(),adCpn:fcP(this)};if(a-this.pI>=5){var y=l=2||(this.Yv.zq(this.layout,l),a=YI(this.params.context.ZK.get(),"html5_ssap_pass_transition_reason")&&l==="abandoned",this.jf()&&!a&&(YI(this.params.context.ZK.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(l)||Vu("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:l})),this.vN.get().finishSegmentByCpn(this.layout.layoutId, cs(this.Bz.get(),1).clientPlaybackNonce,hn(l,this.params.context.ZK))),this.EL.get().removeListener(this),this.mw()&&cT(this.Yv.SX())&&this.gp.ZT(this.slot,this.layout,ZQ(this.Yv.SX())))}; g.Z.AA=function(a,l,m){gf5({cpn:a,v$:this.Bz.get(),L3:!0});this.JM().layoutId!==a||YI(this.params.context.ZK.get(),"html5_ssap_pass_transition_reason")&&m===5||(pw(this.Yv.SX())<2&&(a=Op(m,this.params.context.ZK),a==="error"?this.gp.n$(this.slot,this.layout,new HU("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"):XZ(this.Za,this.layout, a)),YI(this.params.context.ZK.get(),"html5_ssap_exit_without_waiting_for_transition")||this.gp.ZT(this.slot,this.layout,ZQ(this.Yv.SX())))};g.W(Ep,g.k);g.Z=Ep.prototype;g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.Ks=function(){}; g.Z.gN=function(){return this.M6[this.G5]}; g.Z.hE=function(){return this.G5}; g.Z.F9=function(a,l){var m=this.gN();l.layoutId!==xQ(m,a,l)?Vu("pauseLayout for a PlayerBytes layout that is not currently active",a,l):m.F9()}; g.Z.f3=function(a,l){var m=this.gN();l.layoutId!==xQ(m,a,l)?Vu("resumeLayout for a PlayerBytes layout that is not currently active",a,l):m.f3()}; g.Z.qV=function(a,l){var m=this.gN();mld(this,a,l);TYz(m,a,l)&&this.OC(m.JN(),m.JM(),"skipped")}; g.Z.YP=function(a,l){var m=this.gN();y9P(this);Rql(m,a,l)&&(a=H$t(this,m,a,l),a!==void 0&&(this.UQ()?Vu("Should not happen. Should delete"):b$d(this,m.JN(),m.JM(),a)))}; g.Z.Kq=function(a,l){var m=Object.assign({},oS(this),{layoutId:l.layoutId}),T=m.layoutId,y=m.L3;if(m.gU){var R={};QR(m.v$,"wrse",(R.ec=T,R.is=y,R.ctp=NN(T),R))}KJ(this.C2,a,l)}; g.Z.Xl=function(a,l){var m;(m=this.gN())==null||m.Xl(a,l)}; g.Z.ZT=function(a,l,m){l.layoutId===this.JM().layoutId&&(this.oN=!1,ZW(this.gW(),this));var T;(T=this.gN())==null||T.ZT(a,l,m)}; g.Z.J$=function(a){var l;(l=this.gN())==null||l.J$(a)}; g.Z.zM=function(a,l,m){this.hE()===-1&&(this.callback.Xl(this.slot,this.layout),this.G5++);var T=this.gN();T?(T.IE(a,l,m),this.UQ()&&this.callback.n$(this.slot,this.layout,l,m)):Vu("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.hE()),layoutId:this.JM().layoutId})}; g.Z.onFullscreenToggled=function(a){var l;(l=this.gN())==null||l.onFullscreenToggled(a)}; g.Z.C7=function(a){var l;(l=this.gN())==null||l.C7(a)}; g.Z.GS=function(a){var l;(l=this.gN())==null||l.GS(a)}; g.Z.onVolumeChange=function(){var a;(a=this.gN())==null||a.onVolumeChange()}; g.Z.jp=function(a,l,m){z9(this.C2,a,l,m)}; g.Z.WA=function(a){a.startRendering(a.JM())}; g.Z.init=function(){var a=bS(this.JM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.M6.length<1)throw new Y("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.M6.length)});if(a=bS(this.JM().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.c(this.M6);for(var l=a.next();!l.done;l=a.next())l=l.value,l.init(),OUt(this.C2,this.slot,l.JM()),Kzd(this.C2,this.slot,l.JM()); if(this.UQ())for(this.Bz.get().addListener(this),T_d(lqP(this),this.Bz.get()),a=lqP(this),a=g.c(a),l=a.next();!l.done;l=a.next())this.AT(l.value)}; g.Z.AT=function(a){var l=bS(a.clientMetadata,"metadata_type_player_vars");l?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&Vu("Non-video ad contains playerVars",this.slot,a),this.Tq.get().addPlayerResponseForAssociation({playerVars:l})):(a=U47(a),this.Tq.get().addPlayerResponseForAssociation({Wa:a}))}; g.Z.release=function(){var a=bS(this.JM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=bS(this.JM().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.c(this.M6);for(var l=a.next();!l.done;l=a.next())l=l.value,zo7(this.C2,this.slot,l.JM()),l.release();this.UQ()&&(this.Bz.get().removeListener(this),ywb())}; g.Z.cM=function(a){return a.layoutId!==this.JM().layoutId?(this.callback.n$(this.JN(),a,new HU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.JM().layoutId+("and LayoutType: "+this.JM().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.Z.qB=function(){this.EL.get().addListener(this);pJ(this.gW(),this)}; g.Z.b4=function(a){if(a.state.isError()){var l,m;this.zM((l=a.state.p7)==null?void 0:l.errorCode,new HU("There was a player error during this media layout.",{playerErrorCode:(m=a.state.p7)==null?void 0:m.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(l=this.gN())&&l.b4(a)}; g.Z.UQ=function(){var a=bS(this.JN().clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(Vu("Expected SSAP eligibility in PlayerBytes slots",this.JN(),this.JM()),!1):this.ZK.get().UQ(a)}; g.Z.B4=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.AV=function(){}; g.Z.S$=function(){}; g.W(YQ,Ep);g.Z=YQ.prototype;g.Z.xa=function(a,l,m){this.OC(a,l,m)}; g.Z.FW=function(a,l){this.OC(a,l,"error")}; g.Z.OC=function(a,l,m){var T=this;qxt(this,a,l,m,function(){D$(T,T.hE()+1)})}; g.Z.startRendering=function(a){this.cM(a)&&(this.qB(),u4H(this.iM.get()),yhz(this.ZK.get())||BlR(this.EL.get()),this.hE()===-1&&D$(this,this.hE()+1))}; g.Z.zq=function(a,l){var m=this;this.oN=!0;this.hE()===this.M6.length?this.callback.ZT(this.slot,this.layout,l):(a=this.gN(),a.zq(a.JM(),l),this.U7=function(){m.callback.ZT(m.slot,m.layout,l)}); kFQ(this.EL.get());U9b(this.Tq.get(),{});a=rA(this.EL.get(),1);a.isPaused()&&!g.u(a,2)&&this.EL.get().playVideo();this.EL.get().removeListener(this);this.oN&&gb7(this)}; g.Z.AA=function(){}; g.Z.xP=function(){}; g.Z.Pq=function(){}; g.W(Up,Ep);g.Z=Up.prototype;g.Z.xa=function(a,l,m){a=Object.assign({},oS(this),{layoutId:l.layoutId,layoutExitReason:m});l=a.layoutId;m=a.layoutExitReason;var T={};QR(a.v$,"prse",(T.xc=l,T.ler=m,T.ctp=NN(l),T))}; g.Z.FW=function(){Vu("onSubLayoutError in SSAP")}; g.Z.OC=function(){Vu("exitSubLayoutAndPlayNext in SSAP")}; g.Z.gN=function(){return this.qA}; g.Z.hE=function(){var a=this;return this.M6.findIndex(function(l){var m;return l.JM().layoutId===((m=a.qA)==null?void 0:m.JM().layoutId)})}; g.Z.WA=function(a){GD(this.qA===void 0,"replacing another adapter");this.qA=a;a.startRendering(a.JM())}; g.Z.jp=function(a,l,m){z9(this.C2,a,l,m);var T;GD(l.layoutId===((T=this.qA)==null?void 0:T.JM().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot: "+a.slotType:"",subLayout:Pr(l)})&&(this.qA=void 0)}; g.Z.release=function(){Ep.prototype.release.call(this);GD(this.qA===void 0,"currentAdapter is still active during release");this.qA=void 0}; g.Z.jf=function(){return this.EL.get().getPresentingPlayerType()===2}; g.Z.zq=function(a,l){function m(){rD(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(l)||Vu("Composite stopRendering: Unexpected layout exit reason",this.slot,a,{layoutExitReason:l}))} function T(){this.qA&&au(this,this.qA,l);if(this.jf()&&(!rD(this)||l!=="abandoned")){m.call(this);var R;var H=((R=this.Bz.get().D.getVideoData())==null?void 0:R.clientPlaybackNonce)||"";R=cs(this.Bz.get(),1).clientPlaybackNonce;this.vN.get().finishSegmentByCpn(H,R,hn(l,this.ZK))}MGb(this,l)} function y(){if(this.qA){var R=this.qA;pw(R.SX())<2&&R.zq(R.JM(),l);R=rD(this)&&l==="abandoned";this.jf()&&!R&&(m.call(this),this.vN.get().finishSegmentByCpn(this.qA.JM().layoutId,cs(this.Bz.get(),1).clientPlaybackNonce,hn(l,this.ZK)))}} GD(a.layoutId===this.JM().layoutId,"StopRendering for wrong layout")&&WT(this.Kd.L,l)&&(this.mw()?T.call(this):y.call(this))}; g.Z.ZT=function(a,l,m){Ep.prototype.ZT.call(this,a,l,m);l.layoutId===this.JM().layoutId&&this.EL.get().removeListener(this)}; g.Z.D$=function(){return cs(this.Bz.get(),1).clientPlaybackNonce}; g.Z.AA=function(a,l,m){gf5(Object.assign({},oS(this),{cpn:a}));if(!rD(this)||m!==5)if(this.mw()){if(this.qA&&this.qA.JM().layoutId!==l){var T=this.qA.JM().layoutId;T!==a&&Vu("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:T,exitingCpn:a,enteringCpn:l});a=Op(m,this.ZK);au(this,this.qA,a)}else this.qA&&Vu("onClipExited: active layout is entering again");l===this.D$()&&dl5(this,m)}else{if(this.qA&&this.qA.JM().layoutId===a)i$b(this,this.qA,m);else{var y;Vu("Exiting cpn does not match active cpn", this.slot,(T=this.qA)==null?void 0:T.JM(),{exitingCpn:a,transitionReason:m,activeCpn:(y=this.qA)==null?void 0:y.JM().layoutId})}l===this.D$()&&(this.qA!==void 0&&(Vu("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Pr(this.qA.JM())}),i$b(this,this.qA,m)),dl5(this,m),MGb(this,this.Kd.L.T))}}; g.Z.mw=function(){return YI(this.ZK.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.Z.startRendering=function(a){this.cM(a)&&(a=this.Kd,GD(a.T===1,"tickStartRendering: state is not initial"),a.T=2,this.qB())}; g.Z.xP=function(a){bup(Object.assign({},oS(this),{cpn:a}));var l=this.M6.find(function(m){return m.JM().layoutId===a}); l?(this.Kd.T!==2&&(uNH(this.D6,this.slot.slotId),GD(this.Kd.T===2,"Expect started"),this.callback.Xl(this.slot,this.layout)),this.WA(l),KJ(this.C2,this.slot,l.JM())):j07(this,a)}; g.Z.qV=function(a,l){mld(this,a,l);var m=this.gN();m?TYz(m,a,l)&&A9b(this,"skipped"):Pud(this,"onSkipRequested")}; g.Z.YP=function(a,l){var m;a:{if(m=this.gN()){if(y9P(this),Rql(m,a,l)&&(a=H$t(this,m,a,l),a!==void 0)){m={xx:m,KAj:this.M6[a]};break a}}else Pud(this,"SkipWithAdPodSkip");m=void 0}if(a=m)m=a.xx,l=a.KAj,a=m.JM().layoutId,this.mw()?au(this,m,"skipped"):m.zq(m.JM(),"skipped"),m=l.JM().layoutId,this.vN.get().finishSegmentByCpn(a,m,hn("skipped",this.ZK))}; g.Z.Kq=function(){Vu("Not used in html5_ssap_fix_layout_exit")}; g.Z.b4=function(a){var l;(l=this.gN())==null||l.b4(a)}; g.Z.zM=function(){Vu("Not used in html5_ssap_fix_layout_exit")}; g.Z.Pq=function(a,l,m){var T;if(((T=this.gN())==null?void 0:T.JM().layoutId)!==l.layoutId)return void Vu("requestToExitSubLayout: wrong layout");A9b(this,m)};g.W(ly,g.k);g.Z=ly.prototype;g.Z.JN=function(){return this.Yv.JN()}; g.Z.JM=function(){return this.Yv.JM()}; g.Z.init=function(){var a=bS(this.JM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.TV()}; g.Z.TV=function(){this.Yv.init()}; g.Z.release=function(){var a=bS(this.JM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.BM()}; g.Z.BM=function(){this.Yv.release()}; g.Z.F9=function(){this.Yv.F9()}; g.Z.f3=function(){this.Yv.f3()}; g.Z.qV=function(a,l){Vu("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.JN(),this.JM(),{requestingSlot:a,requestingLayout:l})}; g.Z.startRendering=function(a){a.layoutId!==this.JM().layoutId?this.callback.n$(this.JN(),a,new HU("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.JM().layoutId+("and LayoutType: "+this.JM().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.EL.get().addListener(this),pJ(this.gW(),this),u4H(this.iM.get()),yhz(this.ZK.get())||BlR(this.EL.get()),this.Yv.startRendering(a))}; g.Z.zq=function(a,l){this.oN=!0;this.Yv.zq(a,l);kFQ(this.EL.get());U9b(this.Tq.get(),{});a=rA(this.EL.get(),1);a.isPaused()&&!g.u(a,2)&&this.EL.get().playVideo();this.EL.get().removeListener(this);this.oN&&this.Yv.CG()}; g.Z.Xl=function(a,l){this.Yv.Xl(a,l)}; g.Z.ZT=function(a,l,m){l.layoutId===this.JM().layoutId&&(this.oN=!1,ZW(this.gW(),this));this.Yv.ZT(a,l,m);l.layoutId===this.JM().layoutId&&u6(this.iM.get())}; g.Z.J$=function(a){this.Yv.J$(a)}; g.Z.b4=function(a){if(a.state.isError()){var l,m;this.zM((l=a.state.p7)==null?void 0:l.errorCode,new HU("There was a player error during this media layout.",{playerErrorCode:(m=a.state.p7)==null?void 0:m.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Yv.b4(a)}; g.Z.zM=function(a,l,m){this.Yv.IE(a,l,m)}; g.Z.onFullscreenToggled=function(a){this.Yv.onFullscreenToggled(a)}; g.Z.C7=function(a){this.Yv.C7(a)}; g.Z.GS=function(a){this.Yv.GS(a)}; g.Z.onVolumeChange=function(){this.Yv.onVolumeChange()}; g.Z.B4=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.AV=function(){}; g.Z.S$=function(){};g.Z=mr.prototype;g.Z.JN=function(){return this.slot}; g.Z.JM=function(){return this.layout}; g.Z.init=function(){this.Ru.get().addListener(this);this.EL.get().addListener(this);var a=bS(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var l=bS(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.j){var m=oJ7(this.Ru.get()).slice(-1)[0];m!==void 0&&(a=m.startSecs*1E3,l=(m.startSecs+m.Da)*1E3)}this.fG(a,l);var T;m=(T=yA(this.Bz.get()))==null?void 0:T.clientPlaybackNonce;T=this.layout.AN.adClientDataEntry;T2(this.x8.get(),{daiStateTrigger:{filledAdsDurationMs:l-a,contentCpn:m, adClientData:T}});var y=this.Ru.get();y=pFz(y.Z,a,l);y!==null&&(T2(this.x8.get(),{daiStateTrigger:{filledAdsDurationMs:y-a,contentCpn:m,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:T}}),this.vN.get().Ae(y,l))}; g.Z.release=function(){this.BM();this.Ru.get().removeListener(this);this.EL.get().removeListener(this)}; g.Z.startRendering=function(){this.t2();this.callback.Xl(this.slot,this.layout)}; g.Z.zq=function(a,l){this.jD(l);if(this.driftRecoveryMs!==null){a=this.driftRecoveryMs.toString();var m=Math.round(Z$z(this)-bS(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),T=Math,y=T.round;var R=this.EL.get().D.EP();Ru(this,{driftRecoveryMs:a,breakDurationMs:m,driftFromHeadMs:y.call(T,R*1E3).toString()});this.driftRecoveryMs=null}this.callback.ZT(this.slot,this.layout,l)}; g.Z.dY=function(){return!1}; g.Z.CC=function(a){var l=bS(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),m=bS(this.layout.clientMetadata,"metadata_type_layout_exit_ms");a*=1E3;if(l<=a&&a0&&vU(this.T(),l)}; g.Z.Ap=function(a){this.K.delete(a.slotId);for(var l=[],m=g.c(this.eW.values()),T=m.next();!T.done;T=m.next()){T=T.value;var y=T.trigger;y instanceof an&&y.triggeringSlotId===a.slotId&&l.push(T)}l.length>0&&vU(this.T(),l)}; g.Z.K7=function(a){for(var l=[],m=g.c(this.eW.values()),T=m.next();!T.done;T=m.next()){T=T.value;var y=T.trigger;y instanceof Cb&&y.slotType===a.slotType&&y.T!==a.slotId&&l.push(T)}l.length>0&&vU(this.T(),l)}; g.Z.C$=function(a){this.Z.add(a.slotId);for(var l=[],m=g.c(this.eW.values()),T=m.next();!T.done;T=m.next())T=T.value,T.trigger instanceof uy&&a.slotId===T.trigger.triggeringSlotId&&l.push(T);l.length>0&&vU(this.T(),l)}; g.Z.m1=function(a){this.Z.delete(a.slotId);this.j.add(a.slotId);for(var l=[],m=g.c(this.eW.values()),T=m.next();!T.done;T=m.next())if(T=T.value,T.trigger instanceof X$)a.slotId===T.trigger.triggeringSlotId&&l.push(T);else if(T.trigger instanceof vY){var y=T.trigger;a.slotId===y.slotId&&this.L.has(y.triggeringLayoutId)&&l.push(T)}l.length>0&&vU(this.T(),l)}; g.Z.FK=function(a){for(var l=[],m=g.c(this.eW.values()),T=m.next();!T.done;T=m.next())T=T.value,T.trigger instanceof Yc&&a.slotId===T.trigger.triggeringSlotId&&l.push(T);l.length>0&&vU(this.T(),l)}; g.Z.xA=function(a){for(var l=[],m=g.c(this.eW.values()),T=m.next();!T.done;T=m.next())T=T.value,T.trigger instanceof Uf&&a.slotId===T.trigger.triggeringSlotId&&l.push(T);l.length>0&&vU(this.T(),l)}; g.Z.c$=function(a,l){this.C.add(l.layoutId)}; g.Z.jq=function(a,l){this.C.delete(l.layoutId)}; g.Z.Xl=function(a,l){this.L.add(l.layoutId);for(var m=[],T=g.c(this.eW.values()),y=T.next();!y.done;y=T.next())if(y=y.value,y.trigger instanceof $c)l.layoutId===y.trigger.triggeringLayoutId&&m.push(y);else if(y.trigger instanceof Iu){var R=y.trigger;a.slotType===R.slotType&&l.layoutType===R.layoutType&&l.layoutId!==R.T&&m.push(y)}else y.trigger instanceof vY&&(R=y.trigger,l.layoutId===R.triggeringLayoutId&&this.j.has(R.slotId)&&m.push(y));m.length>0&&vU(this.T(),m)}; g.Z.ZT=function(a,l,m){this.L.delete(l.layoutId);a=[];for(var T=g.c(this.eW.values()),y=T.next();!y.done;y=T.next())if(y=y.value,y.trigger instanceof Sl&&l.layoutId===y.trigger.triggeringLayoutId&&a.push(y),y.trigger instanceof sf){var R=y.trigger;l.layoutId===R.triggeringLayoutId&&R.T.includes(m)&&a.push(y)}a.length>0&&vU(this.T(),a)}; g.Z.B$=function(){}; g.Z.Vy=function(){this.j.clear()}; g.Z.xF=function(){};g.W(EY,g.k);EY.prototype.f_=function(a,l,m,T){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(l instanceof Kb))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in CloseRequestedTriggerAdapter");this.eW.set(l.triggerId,new TC(a,l,m,T))}; EY.prototype.HI=function(a){this.eW.delete(a.triggerId)};g.W(xR,g.k);xR.prototype.f_=function(a,l,m,T){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(l instanceof Of||l instanceof ou))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.eW.set(l.triggerId,new TC(a,l,m,T))}; xR.prototype.HI=function(a){this.eW.delete(a.triggerId)}; xR.prototype.Vy=function(a){for(var l=[],m=l.push,T=m.apply,y=[],R=g.c(this.eW.values()),H=R.next();!H.done;H=R.next())H=H.value,H.trigger instanceof Of&&H.trigger.Rm===a&&y.push(H);T.call(m,l,g.F(y));m=l.push;T=m.apply;y=[];R=g.c(this.eW.values());for(H=R.next();!H.done;H=R.next())H=H.value,H.trigger instanceof ou&&H.trigger.T!==a&&y.push(H);T.call(m,l,g.F(y));l.length&&vU(this.T(),l)}; xR.prototype.xF=function(a){for(var l=[],m=l.push,T=m.apply,y=[],R=g.c(this.eW.values()),H=R.next();!H.done;H=R.next()){H=H.value;var b=H.trigger;b instanceof ou&&b.T===a&&y.push(H)}T.call(m,l,g.F(y));l.length&&vU(this.T(),l)};g.W(DV,g.k);g.Z=DV.prototype;g.Z.f_=function(a,l,m,T){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");var y="adtriggercuerange:"+l.triggerId;if(l instanceof nb)khb(this,a,l,m,T,y,l.T.start,l.T.end,l.Rm,l.visible);else if(l instanceof z2)khb(this,a,l,m,T,y,0x7ffffffffffff,0x8000000000000,l.Rm,l.visible);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in CueRangeTriggerAdapter");}; g.Z.HI=function(a){var l=this.eW.get(a.triggerId);l&&this.VP.get().removeCueRange(l.cueRangeId);this.eW.delete(a.triggerId)}; g.Z.onCueRangeEnter=function(a){var l=nkw(this,a);if(l&&(l=this.eW.get(l)))if(g.u(rA(this.EL.get()),32))this.T.add(l.cueRangeId);else{var m=l==null?void 0:l.Tc.trigger;if(m instanceof nb||m instanceof z2){if(eS(this.context.ZK.get())){var T=l.Tc.slot,y=l.Tc.layout,R={};this.context.Xa.nx("cre",(R.ca=l.Tc.category,R.tt=m.triggerType,R.st=T.slotType,R.lt=y==null?void 0:y.layoutType,R.cid=a,R))}vU(this.L(),[l.Tc])}}}; g.Z.onCueRangeExit=function(a){(a=nkw(this,a))&&(a=this.eW.get(a))&&this.T.delete(a.cueRangeId)}; g.Z.b4=function(a){if(Zc(a,16)<0){a=g.c(this.T);for(var l=a.next();!l.done;l=a.next())this.onCueRangeEnter(l.value,!0);this.T.clear()}}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.Xl=function(){}; g.Z.ZT=function(){}; g.Z.B$=function(){}; g.Z.J$=function(){}; g.Z.onFullscreenToggled=function(){}; g.Z.C7=function(){}; g.Z.B4=function(){}; g.Z.GS=function(){}; g.Z.onVolumeChange=function(){}; g.Z.AV=function(){}; g.Z.S$=function(){};g.W(uW,g.k);g.Z=uW.prototype; g.Z.f_=function(a,l,m,T){if(this.L.has(l.triggerId)||this.Z.has(l.triggerId))throw new Y("Tried to re-register the trigger.");a=new TC(a,l,m,T);if(a.trigger instanceof kc)this.L.set(a.trigger.triggerId,a);else if(a.trigger instanceof fb)this.Z.set(a.trigger.triggerId,a);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.L.has(a.trigger.triggerId)&&a.slot.slotId===this.T&&vU(this.j(),[a])}; g.Z.HI=function(a){this.L.delete(a.triggerId);this.Z.delete(a.triggerId)}; g.Z.Ks=function(a){a=a.slotId;if(this.T!==a){var l=[];this.T!=null&&l.push.apply(l,g.F(wl3(this.Z,this.T)));a!=null&&l.push.apply(l,g.F(wl3(this.L,a)));this.T=a;l.length&&vU(this.j(),l)}}; g.Z.AA=function(){}; g.Z.xP=function(){};g.W(X2,g.k);g.Z=X2.prototype;g.Z.f_=function(a,l,m,T){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(l instanceof Ef))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.eW.set(l.triggerId,new TC(a,l,m,T))}; g.Z.HI=function(a){this.eW.delete(a.triggerId)}; g.Z.Xl=function(){}; g.Z.ZT=function(){}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){};g.W(YR,g.k);g.Z=YR.prototype;g.Z.B$=function(a,l){for(var m=[],T=g.c(this.eW.values()),y=T.next();!y.done;y=T.next()){y=y.value;var R=y.trigger;R.opportunityType===a&&(R.associatedSlotId&&R.associatedSlotId!==l||m.push(y))}m.length&&vU(this.T(),m)}; g.Z.f_=function(a,l,m,T){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(l instanceof Dxb))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in OpportunityEventTriggerAdapter");this.eW.set(l.triggerId,new TC(a,l,m,T))}; g.Z.HI=function(a){this.eW.delete(a.triggerId)}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.Xl=function(){}; g.Z.ZT=function(){};g.W(UY,g.k);g.Z=UY.prototype;g.Z.f_=function(a,l,m,T){a=new TC(a,l,m,T);if(l instanceof JV||l instanceof wk||l instanceof BY||l instanceof xc||l instanceof Dl7){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");this.eW.set(l.triggerId,a)}else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in PrefetchTriggerAdapter");}; g.Z.HI=function(a){this.eW.delete(a.triggerId)}; g.Z.k0=function(a){var l=a.slotFulfillmentTriggers.find(function(m){return m instanceof JV}); l&&(rT(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",l.breakDurationMs,new Set([a.slotId]),!0),qC(this.x8.get(),"ads_css","sid."+a.slotId+";bd."+l.breakDurationMs+";fs."+this.Z.size))}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.Xl=function(){}; g.Z.ZT=function(){}; g.Z.B$=function(){}; g.Z.dY=function(a){var l=this;if(!this.T)return Vu("Unexpected cue break before fetch instructions are available"),!1;this.L&&this.L.stop();this.j&&g.l0(this.j);var m=EkP(this,a);if(!m){for(var T=[],y=g.c(this.eW.values()),R=y.next();!R.done;R=y.next())R=R.value.trigger,R instanceof JV&&T.push(R.breakDurationMs);qC(this.x8.get(),"ads_ncfs","cid."+a.identifier+";cd."+a.Da.toFixed(3)+T.slice(0,6).map(function(H){return";bd."+H}).join("")); return!1}(new g.aH(function(){var H=m.trigger,b=m.slot;rT(l,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",H.breakDurationMs,new Set,!0);rT(l,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",H.breakDurationMs,new Set,!1);l.Z.add(b.slotId);qC(l.x8.get(),"ads_csf","sid."+b.slotId+";bd."+H.breakDurationMs+";fs."+l.Z.size)},10)).start(); return!0}; g.Z.CC=function(){}; g.Z.Vy=function(a){this.T&&this.T.contentCpn!==a?(Vu("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.T.contentCpn}),qC(this.x8.get(),"ads_ccvl","fs."+this.Z.size),aO(this)):CgP(this)}; g.Z.xF=function(a){this.T&&this.T.contentCpn!==a&&Vu("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.T.contentCpn},!0);qC(this.x8.get(),"ads_ccve","fs."+this.Z.size);aO(this)}; g.Z.xO=function(a){var l=this;if(this.T)Vu("Unexpected multiple fetch instructions for the current content");else{this.T=a;a=xbp(a);this.L=new g.aH(function(){CgP(l)},a?a:6E5); this.L.start();this.j=new g.aH(function(){l.T&&(l.L&&(l.L.stop(),l.L.start()),I07(l,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},okl(this.T)); a=tl(this.EL.get());for(var m=g.c(oJ7(this.Ru.get())),T=m.next();!T.done;T=m.next())T=T.value,qC(this.x8.get(),"nocache","ct."+Date.now()+";cmt."+a+";d."+T.Da.toFixed(3)+";tw."+(T.startSecs-a)+";cid."+T.identifier+";")}}; g.Z.sL=function(){g.k.prototype.sL.call(this);aO(this)};g.W(lo,g.k);g.Z=lo.prototype;g.Z.f_=function(a,l,m,T){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(l instanceof mV))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.eW.set(l.triggerId,new TC(a,l,m,T));a=this.T.has(l.triggeringLayoutId)?g.B(this.T.get(l.triggeringLayoutId)):new Set;a.add(l);this.T.set(l.triggeringLayoutId,a)}; g.Z.HI=function(a){this.eW.delete(a.triggerId);if(!(a instanceof mV))throw new Y("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var l=this.L.get(a.triggerId);l&&(l.dispose(),this.L.delete(a.triggerId));if(l=this.T.get(a.triggeringLayoutId))l.delete(a),l.size===0&&this.T.delete(a.triggeringLayoutId)}; g.Z.k0=function(){}; g.Z.Ap=function(){}; g.Z.K7=function(){}; g.Z.C$=function(){}; g.Z.m1=function(){}; g.Z.FK=function(){}; g.Z.xA=function(){}; g.Z.c$=function(){}; g.Z.jq=function(){}; g.Z.B$=function(){}; g.Z.Xl=function(a,l){var m=this;if(this.T.has(l.layoutId)){a=g.B(this.T.get(l.layoutId));a=g.c(a);var T=a.next();for(l={};!T.done;l={LW:void 0},T=a.next())l.LW=T.value,T=new g.aH(function(y){return function(){var R=g.B(m.eW.get(y.LW.triggerId));vU(m.Z(),[R])}}(l),l.LW.durationMs),T.start(),this.L.set(l.LW.triggerId,T)}}; g.Z.ZT=function(){};g.W(m5,g.k);m5.prototype.f_=function(a,l,m,T){if(this.eW.has(l.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(l instanceof F$))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in VideoTransitionTriggerAdapter.");this.eW.set(l.triggerId,new TC(a,l,m,T))}; m5.prototype.HI=function(a){this.eW.delete(a.triggerId)};Hc.prototype.hC=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.W(gP,g.k);g.Z=gP.prototype;g.Z.logEvent=function(a){this.jE(a)}; g.Z.rd=function(a,l,m){this.jE(a,void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,void 0,m)}; g.Z.GW=function(a,l,m,T){this.jE(a,void 0,void 0,void 0,l,m?m:void 0,void 0,void 0,l.adSlotLoggingData,m?m.adLayoutLoggingData:void 0,void 0,T)}; g.Z.nW=function(a,l,m,T){YI(this.ZK.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",m,"slot:",l,"layout:",T);ju(this.T.get())&&this.jE(a,void 0,void 0,void 0,l,T?T:void 0,void 0,m,l.adSlotLoggingData,T?T.adLayoutLoggingData:void 0)}; g.Z.XA=function(a,l,m,T,y){this.jE(a,l,m,T,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y)}; g.Z.yr=function(a,l,m,T){this.jE("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,m,T,void 0,void 0,m.adSlotLoggingData,T?T.adLayoutLoggingData:void 0,{errorType:a,errorMessage:l})}; g.Z.jE=function(a,l,m,T,y,R,H,b,M,d,A,P){var G=this;P=P===void 0?0:P;YI(this.ZK.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",y,"layout:",R,"ping:",H,"Opportunity:",{opportunityType:l,associatedSlotId:m,Zdb:T,hmN:b,adSlotLoggingData:M,adLayoutLoggingData:d});try{var V=function(){if(!G.ZK.get().D.Y().V("html5_disable_client_tmp_logs")&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||Vu("Empty PACF event type",y,R);var p=ju(G.T.get()),L={eventType:a,eventOrder:++G.eventCount},N={}; y&&(N.slotData=dM(p,y));R&&(N.layoutData=Q9H(p,R));H&&(N.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:H.T.serializedAdPingMetadata,pingIndex:H.index});b&&(N.triggerData=iS(b.trigger,b.category));l&&(N.opportunityData=tE7(p,l,m,T));p={organicPlaybackContext:{contentCpn:cs(G.Bz.get(),1).clientPlaybackNonce}};p.organicPlaybackContext.isLivePlayback=cs(G.Bz.get(),1).Fl;var e;p.organicPlaybackContext.isMdxPlayback=(e=cs(G.Bz.get(),1))==null?void 0:e.isMdxPlayback; var t;if((t=cs(G.Bz.get(),1))==null?0:t.daiEnabled)p.organicPlaybackContext.isDaiContent=!0;var v;if(e=(v=cs(G.Bz.get(),2))==null?void 0:v.clientPlaybackNonce)p.adVideoPlaybackContext={adVideoCpn:e};p&&(N.externalContext=p);L.adClientData=N;M&&(L.serializedSlotAdServingData=M.serializedSlotAdServingDataEntry);d&&(L.serializedAdServingData=d.serializedAdServingDataEntry);A&&(L.errorInfo=A);g.js("adsClientStateChange",{adsClientEvent:L})}}; P&&P>0?g.m$(g.yi(),function(){return V()},P):V()}catch(p){YI(this.ZK.get(),"html5_log_pacf_logging_errors")&&g.m$(g.yi(),function(){Vu(p instanceof Error?p:String(p),y,R,{pacf_message:"exception during pacf logging"})})}};var HFn=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.W(Me,gP);g.Z=Me.prototype; g.Z.rd=function(a,l,m){gP.prototype.rd.call(this,a,l,m);eS(this.ZK.get())&&(m={},this.context.Xa.nx("pacf",(m.et=a,m.st=l.slotType,m.si=l.slotId,m)))}; g.Z.GW=function(a,l,m,T){var y=HFn.has(a);gP.prototype.GW.call(this,a,l,m,T);eS(this.ZK.get(),y)&&(T={},this.context.Xa.nx("pacf",(T.et=a,T.st=l.slotType,T.si=l.slotId,T.lt=m==null?void 0:m.layoutType,T.li=m==null?void 0:m.layoutId,T.p_ac=m==null?void 0:m.layoutId,T)))}; g.Z.XA=function(a,l,m,T,y){gP.prototype.XA.call(this,a,l,m,T,y);eS(this.ZK.get())&&(m={},this.context.Xa.nx("pacf",(m.et=a,m.ot=l,m.ss=T==null?void 0:T.length,m)))}; g.Z.nW=function(a,l,m,T){gP.prototype.nW.call(this,a,l,m,T);if(eS(this.ZK.get())){var y={};this.context.Xa.nx("pacf",(y.et=a,y.tt=m.trigger.triggerType,y.tc=m.category,y.st=l.slotType,y.si=l.slotId,y.lt=T==null?void 0:T.layoutType,y.li=T==null?void 0:T.layoutId,y.p_ac=T==null?void 0:T.layoutId,y))}}; g.Z.yr=function(a,l,m,T){gP.prototype.yr.call(this,a,l,m,T);if(eS(this.ZK.get(),!0)){var y={};this.context.Xa.nx("perror",(y.ert=a,y.erm=l,y.st=m.slotType,y.si=m.slotId,y.lt=T==null?void 0:T.layoutType,y.li=T==null?void 0:T.layoutId,y.p_ac=T==null?void 0:T.layoutId,y))}}; g.Z.jE=function(a,l,m,T,y,R,H,b,M,d,A){var P=this.ZK.get();g.OF(P.D.Y())?(P=this.ZK.get(),P=g.PU(P.D.Y().experiments,"H5_async_logging_delay_ms")):P=void 0;gP.prototype.jE.call(this,a,l,m,T,y,R,H,b,M,d,A,P)};io.prototype.clear=function(){this.T.clear()};g.Z=dP.prototype;g.Z.state=function(){return this.Nd==="fulfilled"?{state:"fulfilled",value:this.result}:this.VH()?{state:"rejected",reason:this.error}:{state:"pending"}}; g.Z.VH=function(){return this.Nd==="rejected"}; g.Z.wait=function(){var a=this;return function m(){return fP(m,function(T){if(T.L==1)return g.Qp(T,2),g.z(T,{hS:a},4);if(T.L!=2)return T.return(T.T);g.zH(T);return g.$l(T,0)})}()}; g.Z.sE=function(a){Av(a)||jo(a)?Zh(Pc(a),this.sE.bind(this),this.reject.bind(this)):(this.Nd="fulfilled",this.result=a,po(this))}; g.Z.reject=function(a){this.Nd="rejected";this.error=a;po(this)}; var jo=Nw(function(a){return OPB(a)?a instanceof dP:!1});Object.freeze({Fkg:function(a){var l=tv(a);return Zh(Qo(l,function(m){return l[m].VH()}),function(m){return Number.isNaN(m)?l.map(function(T){return T.state().value}):l[m]})}, xLx:function(a){var l=tv(a);return Zh(Qo(l),function(){return l.map(function(m){return m.state()})})}, Ayz:function(a){var l=tv(a);return Zh(Qo(l,function(m){return l[m].Nd==="fulfilled"}),function(m){return Number.isNaN(m)?GP(new AggregateError(l.map(function(T){return T.state().reason}))):l[m].state().value})}, V5O:function(a){var l=tv(a);return Zh(Qo(l,function(){return!0}),function(m){return l[m]})}});var eo=window.KcO||"es";Ko.prototype.Vs=function(a){this.client=a}; Ko.prototype.T=function(){this.clear();this.csn=g.KU()}; Ko.prototype.clear=function(){this.Z.clear();this.L.clear();this.j.clear();this.csn=null};vc.prototype.Vs=function(a){g.me(zP().Vs).bind(zP())(a)}; vc.prototype.clear=function(){g.me(zP().clear).bind(zP())()};g.Z=$V.prototype;g.Z.Vs=function(a){this.client=a}; g.Z.kq=function(a,l){var m=this;l=l===void 0?{}:l;g.me(function(){var T,y,R,H=((T=g.I(a==null?void 0:a.commandMetadata,g.ZJ))==null?void 0:T.rootVe)||((y=g.I(a==null?void 0:a.commandMetadata,tjc))==null?void 0:(R=y.screenVisualElement)==null?void 0:R.uiType);if(H){T=g.I(a==null?void 0:a.commandMetadata,E_c);if(T==null?0:T.parentTrackingParams){var b=g.Fd(T.parentTrackingParams);if(T.parentCsn)var M=T.parentCsn}else l.clickedVisualElement?b=l.clickedVisualElement:a.clickTrackingParams&&(b=g.Fd(a.clickTrackingParams)); a:{T=g.I(a,g.m3);y=g.I(a,J0s);if(T){if(y=dZR(T,"VIDEO")){T={token:y,videoId:T.videoId};break a}}else if(y&&(T=dZR(y,"PLAYLIST"))){T={token:T,playlistId:y.playlistId};break a}T=void 0}l=Object.assign({},{cttAuthInfo:T,parentCsn:M},l);if(g.Q7("expectation_logging")){var d;l.loggingExpectations=((d=g.I(a==null?void 0:a.commandMetadata,tjc))==null?void 0:d.loggingExpectations)||void 0}So(m,H,b,l)}else g.nU(new g.YH("Error: Trying to create a new screen without a rootVeType",a))})()}; g.Z.clickCommand=function(a,l,m){a=a.clickTrackingParams;m=m===void 0?0:m;a?(m=g.KU(m===void 0?0:m))?(R8(this.client,m,g.Fd(a),l),l=!0):l=!1:l=!1;return l}; g.Z.stateChanged=function(a,l,m){this.visualElementStateChanged(g.Fd(a),l,m===void 0?0:m)}; g.Z.visualElementStateChanged=function(a,l,m){m=m===void 0?0:m;m===0&&this.L.has(m)?this.J.push([a,l]):pUp(this,a,l,m)};kV.prototype.fetch=function(a,l,m){var T=this,y=cZb(a,l,m);return new Promise(function(R,H){function b(){if(m==null?0:m.Yu)try{var d=T.handleResponse(a,y.status,y.response,m);R(d)}catch(A){H(A)}else R(T.handleResponse(a,y.status,y.response,m))} y.onerror=b;y.onload=b;var M;y.send((M=l.body)!=null?M:null)})}; kV.prototype.handleResponse=function(a,l,m,T){m=m.replace(")]}'","");try{var y=JSON.parse(m)}catch(R){g.nU(new g.YH("JSON parsing failed after XHR fetch",a,l,m));if((T==null?0:T.Yu)&&m)throw new g.HX(1,"JSON parsing failed after XHR fetch");y={}}l!==200&&(g.nU(new g.YH("XHR API fetch failed",a,l,m)),y=Object.assign({},y,{errorMetadata:{status:l}}));return y};no.getInstance=function(){var a=g.Yl("ytglobal.storage_");a||(a=new no,g.Xt("ytglobal.storage_",a));return a}; no.prototype.estimate=function(){var a,l,m;return g.J(function(T){a=navigator;return((l=a.storage)==null?0:l.estimate)?T.return(a.storage.estimate()):((m=a.webkitTemporaryStorage)==null?0:m.queryUsageAndQuota)?T.return(LK7()):T.return()})}; g.Xt("ytglobal.storageClass_",no);i4.prototype.Ft=function(a){this.handleError(a)}; i4.prototype.logEvent=function(a,l){switch(a){case "IDB_DATA_CORRUPTED":g.Q7("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",l);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",l);break;case "IS_SUPPORTED_COMPLETED":g.Q7("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",l);break;case "QUOTA_EXCEEDED":Qx3(this,l);break;case "TRANSACTION_ENDED":this.Z&&Math.random()<=.1&&this.T("idbTransactionEnded",l);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a= Object.assign({},l,{hasWindowUnloaded:this.L}),this.T("idbTransactionAborted",a)}};var EH={},gP7=g.yQ("yt-player-local-media",{Dl:(EH.index={OZ:2},EH.media={OZ:2},EH.captions={OZ:5},EH),shared:!1,upgrade:function(a,l){l(2)&&(g.vw(a,"index"),g.vw(a,"media"));l(5)&&g.vw(a,"captions");l(6)&&($T(a,"metadata"),$T(a,"playerdata"))}, version:5});var q0d={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},oB;a:{var xd=g.ej();xd=xd.toLowerCase();if(g.Z2(xd,"android")){var bF5=xd.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(bF5){var gXc=parseFloat(bF5[1]);if(gXc<100){oB=gXc;break a}}var M$n=xd.match("("+Object.keys(q0d).join("|")+")");oB=M$n?q0d[M$n[0]]:0}else oB=void 0}var fR=oB,Sd=fR>=0;var CF5=window;var tuR=V6(function(){var a,l;return(l=(a=window).matchMedia)==null?void 0:l.call(a,"(prefers-reduced-motion: reduce)").matches});var IO;g.wP=new v8;IO=0;var RT=vIH()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.U9?!0:!1;var oO={vV:function(a){a[q[76]]()}, xU:function(a,l){a[q[52]](0,l)}, hP:function(a,l){var m=a[0];a[0]=a[l%a[q[9]]];a[l%a[q[9]]]=m}};var Hbb={Vuu:"adunit",v7t:"detailpage",hFg:"editpage",E7j:"embedded",PxN:"leanback",a3L:"previewpage",I3b:"profilepage",CS:"unplugged",yE8:"playlistoverview",rsL:"sponsorshipsoffer",R9x:"shortspage",cVb:"handlesclaiming",i_u:"immersivelivepage",c$x:"creatormusic",qHK:"immersivelivepreviewpage",eOb:"admintoolyurt",p78:"shortsaudiopivot",MHz:"consumption"};var sxw=2592E3;var DJ,iFc,LY;DJ={};g.rP=(DJ.STOP_EVENT_PROPAGATION="html5-stop-propagation",DJ.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",DJ.IV_DRAWER_OPEN="ytp-iv-drawer-open",DJ.MAIN_VIDEO="html5-main-video",DJ.VIDEO_CONTAINER="html5-video-container",DJ.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",DJ.HOUSE_BRAND="house-brand",DJ);iFc={};LY=(iFc.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",iFc.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",iFc);var CSp={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Dmd={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},uM5={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"},azd={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var hxQ={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Mn.prototype.getLanguageInfo=function(){return this.WF}; g.Mn.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags}; g.Mn.prototype.toString=function(){return this.WF.name}; g.Mn.prototype.getLanguageInfo=g.Mn.prototype.getLanguageInfo;ic.prototype.equals=function(a){return this.L===a.L&&this.T===a.T&&this.Z===a.Z&&this.reason===a.reason&&(!jR||this.Nj===a.Nj)}; ic.prototype.isLocked=function(){return this.Z&&!!this.L&&this.L===this.T}; ic.prototype.compose=function(a){if(a.Z&&AP(a))return xW;if(a.Z||AP(this))return a;if(this.Z||AP(a))return this;var l=this.L&&a.L?Math.max(this.L,a.L):this.L||a.L,m=this.T&&a.T?Math.min(this.T,a.T):this.T||a.T;l=Math.min(l,m);var T=0;jR&&(T=this.Nj!==0&&a.Nj!==0?Math.min(this.Nj,a.Nj):this.Nj===0?a.Nj:this.Nj);return jR&&l===this.L&&m===this.T&&T===this.Nj||!jR&&l===this.L&&m===this.T?this:jR?new ic(l,m,!1,m===this.T&&T===this.Nj?this.reason:a.reason,T):new ic(l,m,!1,m===this.T?this.reason:a.reason)}; ic.prototype.j=function(a){return!a.video||jR&&this.Nj!==0&&this.Nj=0}; g.Z.dT=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN}; g.Z.bM=function(){return this.segments[0].startTime}; g.Z.qR=function(){return this.segments.length}; g.Z.qE=function(){return 0}; g.Z.l$=function(a){return(a=this.gs(a))?a.mN:-1}; g.Z.RX=function(a){return(a=this.xk(a))?a.sourceURL:""}; g.Z.getStartTime=function(a){return(a=this.xk(a))?a.startTime:0}; g.Z.E_=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.Z.tS=l7(1);g.Z.isLoaded=function(){return this.segments.length>0}; g.Z.xk=function(a){if(this.T&&this.T.mN===a)return this.T;a=g.KD(this.segments,new Bx(a,0,0,0,""),function(l,m){return l.mN-m.mN}); return this.T=a>=0?this.segments[a]:null}; g.Z.gs=function(a){if(this.T&&this.T.startTime<=a&&a=0?this.segments[a]:this.segments[Math.max(0,-a-2)]}; g.Z.append=function(a){if(a.length)if(a=g.NF(a),this.segments.length){var l=this.segments.length?g.jc(this.segments).endTime:0,m=a[0].mN-this.HN();m>1&&t7b(this.segments);for(m=m>0?0:-m+1;ma.mN&&this.index.Wu()<=a.mN+1}; g.Z.update=function(a,l,m){this.index.append(a);Q_R(this.index,m);a=this.index;a.L=l;a.Z="update"}; g.Z.Du=function(){return this.gK()?!0:fN.prototype.Du.call(this)}; g.Z.j5=function(a,l){var m=this.index.RX(a),T=this.index.getStartTime(a),y=this.index.getDuration(a),R;l?y=R=0:R=this.info.Nj>0?this.info.Nj*y:1E3;return new uD([new wH(3,this,void 0,"liveCreateRequestInfoForSegment",a,T,y,0,R,!l)],m)}; g.Z.KQ=function(){return this.gK()?0:this.initRange.length}; g.Z.ir=function(){return!1};mY.prototype.update=function(a){var l=void 0;this.L&&(l=this.L);var m=new mY,T=Array.from(a.getElementsByTagName("S"));if(T.length){var y=+ab(a,"timescale")||1,R=(+T[0].getAttribute("t")||0)/y,H=+ab(a,"startNumber")||0;m.j=R;var b=l?l.startSecs+l.Da:0,M=Date.parse(ZT7(ab(a,"yt:segmentIngestTime")))/1E3;m.K=a.parentElement.tagName==="SegmentTemplate";m.K&&(m.B=ab(a,"media"));a=l?H-l.mN:1;m.C=a>0?0:-a+1;a=g.c(T);for(T=a.next();!T.done;T=a.next()){T=T.value;for(var d=+T.getAttribute("d")/y,A=(+T.getAttribute("yt:sid")|| 0)/y,P=+T.getAttribute("r")||0,G=0;G<=P;G++)if(l&&H<=l.mN)H++;else{var V=new Vy7(H,b,d,M+A,R);m.T.push(V);var p=T;var L=y,N=V.startSecs;V=p.getAttribute("yt:cuepointTimeOffset");var e=p.getAttribute("yt:cuepointDuration");if(V&&e){V=Number(V);N=-V/L+N;L=Number(e)/L;e=p.getAttribute("yt:cuepointContext")||null;var t=p.getAttribute("yt:cuepointIdentifier")||"";p=p.getAttribute("yt:cuepointEvent")||"";p=new Xp(N,L,e,t,jjV[p]||"unknown",V)}else p=null;p&&m.Z.push(p);H++;b+=d;R+=d;M+=d+A}}m.T.length&& (m.L=g.jc(m.T))}this.C=m.C;this.L=m.L||this.L;g.tI(this.T,m.T);g.tI(this.Z,m.Z);this.K=m.K;this.B=m.B;this.j===-1&&(this.j=m.getStreamTimeOffset())}; mY.prototype.getStreamTimeOffset=function(){return this.j===-1?0:this.j};g.W(yB,g.ky);g.Z=yB.prototype;g.Z.us=function(){return this.Ca}; g.Z.Hu=function(a,l){a=Rb(this,a);return a>=0&&(l||!this.segments[a].pending)}; g.Z.Wu=function(){return this.ih?this.segments.length?this.gs(this.bM()).mN:-1:g.ky.prototype.Wu.call(this)}; g.Z.bM=function(){if(this.mx)return 0;if(!this.ih)return g.ky.prototype.bM.call(this);if(!this.segments.length)return 0;var a=Math.max(g.jc(this.segments).endTime-this.fY,0);return this.sQ>0&&g.B(this.gs(a)).mN0)return this.u1/1E3;if(!this.segments.length)return g.ky.prototype.dT.call(this);var a=this.HN();if(!this.ih||a<=this.segments[this.segments.length-1].mN)a=this.segments[this.segments.length-1];else{var l=this.segments[this.segments.length-1];a=new Bx(a,Math.max(0,l.startTime-(l.mN-a)*this.Ca),this.Ca,0,"sq/"+a,void 0,void 0,!0)}return this.mx?Math.min(this.fY,a.endTime):a.endTime}; g.Z.qR=function(){return this.ih?this.segments.length?this.HN()-this.Wu()+1:0:g.ky.prototype.qR.call(this)}; g.Z.HN=function(){var a=Math.min(this.h$,Math.max(g.ky.prototype.HN.call(this),this.uY)),l=this.fY*1E3;l=this.u1>0&&this.u10&&this.uY>0&&!l&&(l=this.gs(this.fY))&&(a=Math.min(l.mN-1,a));return a}; g.Z.IN=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.Z.Mq=function(a){var l=Rb(this,a.mN);if(l>=0)this.segments[l]=a;else if(this.segments.splice(-(l+1),0,a),this.ZV&&a.mN%(300/this.Ca)===0){var m=this.segments[0].mN,T=Math.floor(this.ZV/this.Ca);a=a.mN-T;l=-(l+1)-T;l>0&&a>m&&(this.segments=this.segments.slice(l))}}; g.Z.K4=function(){return this.uY}; g.Z.d9=function(a){return TU?!this.L&&a>=0&&this.HN()<=a:g.ky.prototype.d9.call(this,a)}; g.Z.gs=function(a){if(!this.ih)return g.ky.prototype.gs.call(this,a);if(!this.segments.length)return null;var l=this.segments[this.segments.length-1];if(a=l.endTime)l=l.mN+Math.floor((a-l.endTime)/this.Ca+1);else{l=$B(this.segments,function(T){return a=T.endTime?1:0}); if(l>=0)return this.segments[l];var m=-(l+1);l=this.segments[m-1];m=this.segments[m];l=Math.floor((a-l.endTime)/((m.startTime-l.endTime)/(m.mN-l.mN-1))+1)+l.mN}return this.xk(l)}; g.Z.xk=function(a){if(!this.ih)return g.ky.prototype.xk.call(this,a);if(!this.segments.length)return null;var l=Rb(this,a);if(l>=0)return this.segments[l];var m=-(l+1);l=this.Ca;if(m===0)var T=Math.max(0,this.segments[0].startTime-(this.segments[0].mN-a)*l);else m===this.segments.length?(T=this.segments[this.segments.length-1],T=T.endTime+(a-T.mN-1)*l):(T=this.segments[m-1],l=this.segments[m],l=(l.startTime-T.endTime)/(l.mN-T.mN-1),T=T.endTime+(a-T.mN-1)*l);return new Bx(a,T,l,0,"sq/"+a,void 0,void 0, !0)}; var TU=!1;g.W(HK,rH);g.Z=HK.prototype;g.Z.HC=function(){return!0}; g.Z.Du=function(){return!0}; g.Z.Z4=function(a){return this.xs()&&a.Z&&!a.K||!a.T.index.d9(a.mN)}; g.Z.L1=function(){}; g.Z.rT=function(a,l){return typeof a!=="number"||isFinite(a)?rH.prototype.rT.call(this,a,l===void 0?!1:l):new uD([new wH(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Y7,void 0,this.Y7*this.info.Nj)],"")}; g.Z.j5=function(a,l){var m=m===void 0?!1:m;if(this.index.Hu(a))return rH.prototype.j5.call(this,a,l);var T=this.index.getStartTime(a),y=Math.round(this.Y7*this.info.Nj),R=this.Y7;l&&(R=y=0);return new uD([new wH(m?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,T,R,void 0,y,!l)],a>=0?"sq/"+a:"")};g.W(qO,fN);g.Z=qO.prototype;g.Z.Cl=function(){return!1}; g.Z.xs=function(){return!1}; g.Z.HC=function(){return!1}; g.Z.L1=function(){return new uD([new wH(1,this,void 0,"otfInit")],this.K)}; g.Z.ZU=function(){return null}; g.Z.C9=function(a){this.Z4(a);return FHQ(this,oG(a),!1)}; g.Z.rT=function(a,l){l=l===void 0?!1:l;a=this.index.l$(a);l&&(a=Math.min(this.index.HN(),a+1));return FHQ(this,a,!0)}; g.Z.MY=function(a){a.info.type===1&&(this.T||(this.T=e2(a.T)),a.L&&a.L.uri==="http://youtube.com/streaming/otf/durations/112015"&&hFp(this,a.L))}; g.Z.Z4=function(a){return a.Z===0?!0:this.index.HN()>a.mN&&this.index.Wu()<=a.mN+1}; g.Z.KQ=function(){return 0}; g.Z.ir=function(){return!1};g.bw.prototype.info=function(){}; g.bw.prototype.debug=function(){}; g.bw.prototype.T=function(a){gS.apply(null,[5,this.tag,a].concat(g.F(g.Jz.apply(1,arguments))))}; var zFz=new Map,syw=new Map,vMb=new function(){var a=this;this.T=new Map;this.lM={V7N:function(){return a.T}}};MO.prototype.Iu=function(){return this.T.Iu()};g.Z=g.GU.prototype;g.Z.Hu=function(a){return a<=this.HN()}; g.Z.qE=function(a){return this.offsets[a]}; g.Z.getStartTime=function(a){return this.startTicks[a]/this.T}; g.Z.E_=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.Z.tS=l7(0);g.Z.V1=function(){return NaN}; g.Z.getDuration=function(a){a=this.UE(a);return a>=0?a/this.T:-1}; g.Z.UE=function(a){return a+1=0}; g.Z.dT=function(){return this.L?this.startTicks[this.count]/this.T:NaN}; g.Z.bM=function(){return 0}; g.Z.qR=function(){return this.count}; g.Z.RX=function(){return""}; g.Z.l$=function(a){a=g.KD(this.startTicks.subarray(0,this.count),a*this.T);return a>=0?a:Math.max(0,-a-2)}; g.Z.isLoaded=function(){return this.HN()>=0}; g.Z.eB=function(a,l){if(a>=this.HN())return 0;var m=0;for(l=this.getStartTime(a)+l;athis.getStartTime(a);a++)m=Math.max(m,CHt(this,a)/this.getDuration(a));return m}; g.Z.resize=function(a){a+=2;var l=this.offsets;this.offsets=new Float64Array(a+1);var m=this.startTicks;this.startTicks=new Float64Array(a+1);for(a=0;a0&&a&&(m=m.range.end+1,a=Math.min(a,this.info.contentLength-m),a>0&&T.push(new wH(4,this,k4(m,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,l)));return new uD(T)}; g.Z.MY=function(a){if(a.info.type===1){if(this.T)return;this.T=e2(a.T)}else if(a.info.type===2){if(this.K||this.index.HN()>=0)return;if(g.ay(this.info)){var l=this.index,m=a.Iu();a=a.info.range.start;var T=g.lD(m,0,1936286840);m=fQt(T);l.T=m.timescale;var y=m.gA;l.offsets[0]=m.VM+a+T.size;l.startTicks[0]=y;l.L=!0;a=m.RA.length;for(T=0;T0&&a===R[0].wr)for(a=0;a=l+m)break}y.length||(a=new g.YH("b189619593",""+a,""+l,""+m),g.kt(a));return new uD(y)}; g.Z.YM=function(a){for(var l=this.rF(a.info),m=a.info.range.start+a.info.L,T=[],y=0;y=this.index.qE(m+1);)m++;return this.qO(m,l,a.Z).gb}; g.Z.Z4=function(a){a.Kh();return this.Du()?!0:a.range.end+1this.info.contentLength&&(l=new Ji(l.start,this.info.contentLength-1)),new uD([new wH(4,a.T,l,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);a.type===4&&(a=this.rF(a),a=a[a.length-1]);var m=0,T=a.range.start+a.L+a.Z;a.type===3&&(a.Kh(),m=a.mN,T===a.range.end+1&&(m+=1));return this.qO(m,T,l)}; g.Z.C9=function(){return null}; g.Z.rT=function(a,l){l=l===void 0?!1:l;a=this.index.l$(a);l&&(a=Math.min(this.index.HN(),a+1));return this.qO(a,this.index.qE(a),0,void 0)}; g.Z.Cl=function(){return!0}; g.Z.xs=function(){return!0}; g.Z.HC=function(){return!1}; g.Z.KQ=function(){return this.indexRange.length+this.initRange.length}; g.Z.ir=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var XQ={},Hd7=(XQ.COLOR_PRIMARIES_BT709="bt709",XQ.COLOR_PRIMARIES_BT2020="bt2020",XQ.COLOR_PRIMARIES_UNKNOWN=null,XQ.COLOR_PRIMARIES_UNSPECIFIED=null,XQ),Yd={},oMt=(Yd.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Yd.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Yd.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Yd.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Yd.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Yd.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Yd);g.ZO.prototype.getName=function(){return this.name}; g.ZO.prototype.getId=function(){return this.id}; g.ZO.prototype.getIsDefault=function(){return this.isDefault}; g.ZO.prototype.toString=function(){return this.name}; g.ZO.prototype.getName=g.ZO.prototype.getName;g.ZO.prototype.getId=g.ZO.prototype.getId;g.ZO.prototype.getIsDefault=g.ZO.prototype.getIsDefault;var XJz=/action_display_post/;var YKp,LS,NO;g.W(QB,g.Aj);g.Z=QB.prototype;g.Z.isLoading=function(){return this.state===1}; g.Z.BV=function(){return this.state===3}; g.Z.B7u=function(a){var l=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.Fl=this.L=!0;this.timeline||(this.timeline=new cu7);tyl(this.timeline,a);this.publish("refresh");for(a=0;a=0?A=BO(G):P=P+"?range="+G}M.call(b,new Bx(d.mN,d.startSecs,d.Da,d.T,P,A,d.L))}T=y}m.update(T,this.isLive,this.St)}eF7(this.timeline);return!0}this.duration=pJH(ab(a,"mediaPresentationDuration")); a:{for(a=0;a0))return this.OG()-a}}a=this.T;for(var l in a){var m=a[l].index;if(m.isLoaded()&&!Ry(a[l].info.mimeType))return m.bM()}return 0}; g.Z.getStreamTimeOffset=function(){return this.B}; g.Z.V1=function(a){for(var l in this.T){var m=this.T[l].index;if(m.isLoaded()){var T=m.l$(a),y=m.V1(T);if(y)return y+a-m.getStartTime(T)}}return NaN}; var BK=null,Adc,ki=!((Adc=navigator.mediaCapabilities)==null||!Adc.decodingInfo),dzz={commentary:1,alternate:2,dub:3,main:4};var qK=new Set,nS=new Map;CS.prototype.clone=function(a){return new CS(this.flavor,a,this.L,this.experiments)}; CS.prototype.rW=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; CS.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 PKB={},aT=(PKB.playready=["com.youtube.playready","com.microsoft.playready"],PKB.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],PKB),UH={},OHQ=(UH.widevine="DRM_SYSTEM_WIDEVINE",UH.fairplay="DRM_SYSTEM_FAIRPLAY",UH.playready="DRM_SYSTEM_PLAYREADY",UH),r7={},GbI=(r7.widevine=1,r7.fairplay=2,r7.playready=3,r7);var TI;g.W(lj,g.k); lj.prototype.initialize=function(a,l){for(var m=this,T=g.c(Object.keys(a)),y=T.next();!y.done;y=T.next()){y=g.c(a[y.value]);for(var R=y.next();!R.done;R=y.next())if(R=R.value,R.u0)for(var H=g.c(Object.keys(R.u0)),b=H.next();!b.done;b=H.next()){var M=b.value;b=M;M=aT[M];!M&&this.V("html5_enable_vp9_fairplay")&&b==="fairplay"&&(M=["com.youtube.fairplay.sbdl"]);if(M){M=g.c(M);for(var d=M.next();!d.done;d=M.next())d=d.value,this.Z[d]=this.Z[d]||new CS(b,d,R.u0[b],this.UL.experiments),this.T[b]=this.T[b]|| {},this.T[b][R.mimeType]=!0}}}XL()&&(this.Z["com.youtube.fairplay"]=new CS("fairplay","com.youtube.fairplay","",this.UL.experiments),this.V("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.L=tCt(l,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(A){return!!m.Z[A]})}; lj.prototype.V=function(a){return this.UL.experiments.XO(a)};var V$5={"":"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"};vQd.prototype.V=function(a){return this.experiments.XO(a)};var bb5={RED:"red",ugj:"white"};$zl.prototype.XO=function(a){a=this.flags[a];JSON.stringify(a);return a==="true"};var f$w=Promise.resolve(),nQQ=window.queueMicrotask?window.queueMicrotask.bind(window):Jnb;qq.prototype.canPlayType=function(a,l){a=a.canPlayType?a.canPlayType(l):!1;Xz?a=a||pIB[l]:fR===2.2?a=a||ZFD[l]:DC()&&(a=a||WEF[l]);return!!a}; qq.prototype.isTypeSupported=function(a){return this.N?window.cast.receiver.platform.canDisplayType(a):SS(a)}; var ZFD={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},WEF={"application/x-mpegURL":"maybe"},pIB={"application/x-mpegURL":"maybe"};g.W(Mq,g.Aj);Mq.prototype.add=function(a,l){if(!this.items[a]&&(l.fM||l.ra||l.SD)){var m=this.items,T=l;Object.isFrozen&&!Object.isFrozen(l)&&(T=Object.create(l),Object.freeze(T));m[a]=T;this.publish("vast_info_card_add",a)}}; Mq.prototype.remove=function(a){var l=this.get(a);delete this.items[a];return l}; Mq.prototype.get=function(a){return this.items[a]||null}; Mq.prototype.isEmpty=function(){return g.rg(this.items)};var d1;jd.prototype.add=function(a){if(this.pos+20>this.data.length){var l=new Uint8Array(this.data.length*2);l.set(this.data);this.data=l}for(;a>31;)this.data[this.pos++]=d1[(a&31)+32],a>>=5;this.data[this.pos++]=d1[a|0]}; jd.prototype.N2=function(){return g.K8(this.data.subarray(0,this.pos))}; jd.prototype.reset=function(){this.pos=0};PS.prototype.wk=function(a,l){var m=Math.pow(this.alpha,a);this.T=l*(1-m)+m*this.T;this.L+=a}; PS.prototype.Xc=function(){return this.T/(1-Math.pow(this.alpha,this.L))};GI.prototype.wk=function(a,l){for(var m=0;m<10;m++){var T=this.T[m],y=T+(m===0?a:0),R=1*Math.pow(2,m);if(y<=R)break;T=Math.min(1,(y-R*.5)/T);for(y=0;y<16;y++)R=this.values[m*16+y]*T,this.values[(m+1)*16+y]+=R,this.T[m+1]+=R,this.values[m*16+y]-=R,this.T[m]-=R}T=m=0;y=8192;l>8192&&(m=Math.ceil(Math.log(l/8192)/Math.log(2)),T=8192*Math.pow(2,m-1),y=T*2);m+2>16?this.values[15]+=a:(l=(l-T)/(y-T),this.values[m]+=a*(1-l),this.values[m+1]+=a*l);this.T[0]+=a}; GI.prototype.Xc=function(){var a=a===void 0?this.L:a;var l=l===void 0?.02:l;var m=m===void 0?.98:m;for(var T=this.Z,y=0;y<16;y++)T[y]=this.values[y];y=this.T[0];for(var R=1;R<11;R++){var H=this.T[R];if(H===0)break;for(var b=Math.min(1,(a-y)/H),M=0;M<16;M++)T[M]+=this.values[R*16+M]*b;y+=H*b;if(b<1)break}for(R=a=H=0;R<16;R++){b=H+T[R]/y;a+=Math.max(0,Math.min(b,m)-Math.max(H,l))*(R>0?8192*Math.pow(2,R-1):0);if(b>m)break;H=b}return a/(m-l)};VX.prototype.wk=function(a,l){a=Math.min(this.T,Math.max(1,Math.round(a*this.resolution)));a+this.L>=this.T&&(this.Z=!0);for(;a--;)this.values[this.L]=l,this.L=(this.L+1)%this.T;this.G4=!0}; VX.prototype.percentile=function(a){var l=this;if(!this.Z&&this.L===0)return 0;this.G4&&(g.sX(this.K,function(m,T){return l.values[m]-l.values[T]}),this.G4=!1); return this.values[this.K[Math.round(a*((this.Z?this.T:this.L)-1))]]||0}; VX.prototype.Xc=function(){return this.C?(this.percentile(this.j-this.C)+this.percentile(this.j)+this.percentile(this.j+this.C))/3:this.percentile(this.j)};g.W(pR,g.k);pR.prototype.tM=function(){var a;(a=this.AM)==null||a.start();if(ed(this)&&this.policy.J){var l;(l=this.xv)==null||l.wc()}};rnQ.prototype.V=function(a){return this.experiments.XO(a)};g.W(lkl,g.k);var qfb="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),jub={ypu:"caoe",NRK:"capsv",EdM:"cbrand",uat:"cbr",C$L:"cbrver",WHN:"cchip",w1N:"ccappver",tHO:"ccrv",p4M:"cfrmver",Dgj:"c",ohu:"cver",ut8:"ctheme",Ehj:"cplayer",EWz:"cmodel",IK:"cnetwork",Q8T:"cos",OS_VERSION:"cosver",rEN:"cplatform",uxj:"crqyear"};g.W(xN,g.k);g.Z=xN.prototype;g.Z.V=function(a){return this.experiments.XO(a)}; g.Z.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.Z.getVideoUrl=function(a,l,m,T,y,R,H){l={list:l};m&&(y?l.time_continue=m:l.t=m);m=H?"music.youtube.com":g.uj(this);y=m==="www.youtube.com";!R&&T&&y?R="https://youtu.be/"+a:g.kN(this)?(R="https://"+m+"/fire",l.v=a):(R&&y?(R=this.protocol+"://"+m+"/shorts/"+a,T&&(l.feature="share")):(R=this.protocol+"://"+m+"/watch",l.v=a),Xz&&(a=fy7())&&(l.ebc=a));return g.S$(R,l)}; g.Z.getVideoEmbedCode=function(a,l,m,T){l="https://"+g.uj(this)+"/embed/"+l;T&&(l=g.S$(l,{list:T}));T=m.width;m=m.height;l=pm(l);a=pm(a!=null?a:"YouTube video player");return'')}; g.Z.supportsGaplessAudio=function(){return g.s_&&!Xz&&EZ()>=74||g.Uj&&g.OJ(68)?!0:!1}; g.Z.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.St||g.Nr?!1:!0}; g.Z.getPlayerType=function(){return this.T.cplayer}; g.Z.bZ=function(){return this.Be}; var Vl7=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],dCd=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Pyd=[19];var aQ={},Wrt=(aQ["140"]={numChannels:2},aQ["141"]={numChannels:2},aQ["251"]={audioSampleRate:48E3,numChannels:2},aQ["774"]={audioSampleRate:48E3,numChannels:2},aQ["380"]={numChannels:6},aQ["328"]={numChannels:6},aQ["773"]={},aQ),lk={},pY5=(lk["1"]='video/mp4; codecs="av01.0.08M.08"',lk["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',lk["1e"]='video/mp4; codecs="av01.0.08M.08"',lk["9"]='video/webm; codecs="vp9"',lk["("]='video/webm; codecs="vp9"',lk["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', lk.h='video/mp4; codecs="avc1.64001e"',lk.H='video/mp4; codecs="avc1.64001e"',lk.o='audio/webm; codecs="opus"',lk.a='audio/mp4; codecs="mp4a.40.2"',lk.ah='audio/mp4; codecs="mp4a.40.2"',lk.mac3='audio/mp4; codecs="ac-3"; channels=6',lk.meac3='audio/mp4; codecs="ec-3"; channels=6',lk.i='audio/mp4; codecs="iamf.001.001.Opus"',lk),mF={},Zbt=(mF["337"]={width:3840,height:2160,bitrate:3E7,fps:30},mF["336"]={width:2560,height:1440,bitrate:15E6,fps:30},mF["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, mF["702"]={width:7680,height:4320,bitrate:4E7,fps:60},mF["701"]={width:3840,height:2160,bitrate:2E7,fps:60},mF["700"]={width:2560,height:1440,bitrate:1E7,fps:60},mF["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},mF["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},mF["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},mF["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, mF["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},mF["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},mF["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},mF["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},mF["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},mF["315"]={width:3840,height:2160,bitrate:2E7,fps:60},mF["308"]={width:2560, height:1440,bitrate:1E7,fps:60},mF["303"]={width:1920,height:1080,bitrate:5E6,fps:60},mF["302"]={width:1280,height:720,bitrate:25E5,fps:60},mF["299"]={width:1920,height:1080,bitrate:75E5,fps:60},mF["298"]={width:1280,height:720,bitrate:35E5,fps:60},mF["571"]={width:7680,height:4320,bitrate:3E7,fps:60},mF["401"]={width:3840,height:2160,bitrate:15E6,fps:60},mF["400"]={width:2560,height:1440,bitrate:75E5,fps:60},mF["399"]={width:1920,height:1080,bitrate:2E6,fps:60},mF["398"]={width:1280,height:720,bitrate:1E6, fps:60},mF["397"]={width:854,height:480,bitrate:4E5,fps:30},mF["396"]={width:640,height:360,bitrate:25E4,fps:30},mF["787"]={width:1080,height:608,bitrate:2E5,fps:30},mF["788"]={width:1080,height:608,bitrate:4E5,fps:30},mF["572"]={width:7680,height:4320,bitrate:3E7,fps:60},mF["555"]={width:3840,height:2160,bitrate:15E6,fps:60},mF["554"]={width:2560,height:1440,bitrate:75E5,fps:60},mF["553"]={width:1920,height:1080,bitrate:2E6,fps:60},mF["552"]={width:1280,height:720,bitrate:1E6,fps:60},mF["551"]={width:854, height:480,bitrate:4E5,fps:30},mF["550"]={width:640,height:360,bitrate:25E4,fps:30},mF["313"]={width:3840,height:2160,bitrate:8E6,fps:30},mF["271"]={width:2560,height:1440,bitrate:4E6,fps:30},mF["248"]={width:1920,height:1080,bitrate:2E6,fps:30},mF["247"]={width:1280,height:720,bitrate:15E5,fps:30},mF["244"]={width:854,height:480,bitrate:52E4,fps:30},mF["243"]={width:640,height:360,bitrate:28E4,fps:30},mF["137"]={width:1920,height:1080,bitrate:4E6,fps:30},mF["136"]={width:1280,height:720,bitrate:3E6, fps:30},mF["135"]={width:854,height:480,bitrate:1E6,fps:30},mF["385"]={width:1920,height:1080,bitrate:6503313,fps:60},mF["376"]={width:1280,height:720,bitrate:5706960,fps:60},mF["384"]={width:1280,height:720,bitrate:3660979,fps:60},mF["225"]={width:1280,height:720,bitrate:5805E3,fps:30},mF["224"]={width:1280,height:720,bitrate:453E4,fps:30},mF["145"]={width:1280,height:720,bitrate:2682052,fps:30},mF);g.Z=i1.prototype;g.Z.getInfo=function(){return this.T}; g.Z.e0=function(){return null}; g.Z.qD=function(){var a=this.e0();return a?(a=g.br(a.DR),Number(a.expire)):NaN}; g.Z.IA=function(){}; g.Z.getHeight=function(){return this.T.video.height};Qup.prototype.build=function(){Fr3(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],l={};a:if(this.T)var m=this.T;else{m="";for(var T=g.c(this.Z),y=T.next();!y.done;y=T.next())if(y=y.value,y.WF){if(y.WF.getIsDefault()){m=y.WF.getId();break a}m||(m=y.WF.getId())}}T=g.c(this.Z);for(y=T.next();!y.done;y=T.next())if(y=y.value,this.C||!y.WF||y.WF.getId()===m)l[y.itag]||(l[y.itag]=[]),l[y.itag].push(y);m=g.c(this.L);for(T=m.next();!T.done;T=m.next())if(T=T.value,y=l[T.T]){y=g.c(y);for(var R=y.next();!R.done;R= y.next()){var H=a,b=H.push;R=R.value;var M="#EXT-X-MEDIA:TYPE=AUDIO,",d="YES",A="audio";if(R.WF){A=R.WF;var P=A.getId().split(".")[0];P&&(M+='LANGUAGE="'+P+'",');(this.T?this.T===A.getId():A.getIsDefault())||(d="NO");A=A.getName()}P="";T!==null&&(P=T.itag.toString());P=ji(this,R.url,P);M=M+('NAME="'+A+'",DEFAULT='+(d+',AUTOSELECT=YES,GROUP-ID="'))+(e9P(R,T)+'",URI="'+(P+'"'));b.call(H,M)}}m=g.c(this.K);for(T=m.next();!T.done;T=m.next())T=T.value,y=cdV,T=(H=T.WF)?'#EXT-X-MEDIA:URI="'+ji(this,T.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+y+'",LANGUAGE="'+H.getId()+'",NAME="'+H.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,T&&a.push(T);m=this.K.length>0?cdV:void 0;T=g.c(this.L);for(y=T.next();!y.done;y=T.next())y=y.value,b=l[y.T],H=void 0,((H=b)==null?void 0:H.length)>0&&(H=y,b=b[0],b="#EXT-X-STREAM-INF:BANDWIDTH="+(H.bitrate+b.bitrate)+',CODECS="'+(H.codecs+","+b.codecs+'",RESOLUTION=')+(H.width+"x"+H.height+',AUDIO="')+(e9P(b,H)+'",')+(m?'SUBTITLES="'+m+'",':"")+"CLOSED-CAPTIONS=NONE",H.fps>1&&(b+= ",FRAME-RATE="+H.fps),H.bJ&&(b+=",VIDEO-RANGE="+H.bJ),a.push(b),a.push(ji(this,y.url,"")));return a.join("\n")}; var cdV="text";g.W(Ae,i1);Ae.prototype.qD=function(){return this.expiration}; Ae.prototype.e0=function(){if(!this.DR||this.DR.FO()){var a=this.L.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.DR=new xM(a)}return this.DR};g.W(PV,i1);PV.prototype.e0=function(){return new xM(this.L.eb())}; PV.prototype.IA=function(){this.L=f_(this.L)};g.W(Gi,i1);Gi.prototype.e0=function(){return new xM(this.L)};var Tk={},JVQ=(Tk.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Tk.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Tk.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Tk);g.Z=g.VK.prototype;g.Z.getId=function(){return this.id}; g.Z.getName=function(){return this.name}; g.Z.isServable=function(){return this.T}; g.Z.eb=function(){return this.url}; g.Z.getXtags=function(){return this.xtags}; g.Z.toString=function(){return this.languageCode+": "+g.p7(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.Z.equals=function(a){return a?this.toString()===a.toString():!1}; g.Z.Q1=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Cy5={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Ec3={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},oc7=/^(\d*)_((\d*)_?(\d*))$/;var DCt={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},u$w={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var yE={},LEg=(yE.ALWAYS=1,yE.BY_REQUEST=3,yE.UNKNOWN=void 0,yE),RQ={},Ny9=(RQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",RQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",RQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",RQ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",RQ);var Qo3; Qo3=function(a){for(var l=Object.keys(a),m={},T=0;TT-l?-1:a}; g.Z.j1=function(){return this.L.HN()}; g.Z.aC=function(){return this.L.Wu()}; g.Z.Q0=function(a){this.L=a};g.W(oX,C7);oX.prototype.L=function(a,l){return C7.prototype.L.call(this,"$N|"+a,l)}; oX.prototype.K=function(a,l,m){return new ES(a,l,m,this.isLive)};var vPp=[],rp=new Set;g.W(g.Dj,g.Aj);g.Z=g.Dj.prototype; g.Z.setData=function(a){a=a||{};var l=a.errordetail;l!=null&&(this.errorDetail=l);var m=a.errorcode;m!=null?this.errorCode=m:a.status==="fail"&&(this.errorCode="auth");var T=a.reason;T!=null&&(this.errorReason=T);var y=a.subreason;y!=null&&(this.m_=y);this.V("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||(this.UL.bZ()?"r"+g.FH(15):g.FH(16)));this.rb=qp(this.UL.rb,a.livemonitor);t_t(this,a);var R=a.raw_player_response;if(R)this.rI=R;else{var H=a.player_response; H&&(R=JSON.parse(H))}if(this.V("html5_enable_ssap_entity_id")){var b=a.cached_load;b&&(this.MH=qp(this.MH,b));if(!this.clientPlaybackNonce){var M=a.cpn;M?(this.A2("ssei","shdc"),this.clientPlaybackNonce=M):this.clientPlaybackNonce=this.UL.bZ()?"r"+g.FH(15):g.FH(16)}}R&&(this.playerResponse=R);if(this.playerResponse){var d=this.playerResponse.annotations;if(d)for(var A=g.c(d),P=A.next();!P.done;P=A.next()){var G=P.value.playerAnnotationsUrlsRenderer;if(G){G.adsOnly&&(this.oR=!0);var V=G.loadPolicy; V&&(this.annotationsLoadPolicy=LEg[V]);var p=G.invideoUrl;p&&(this.AM=TV(p));break}}var L=this.playerResponse.attestation;L&&Yfz(this,L);var N=this.playerResponse.cotn;N&&(this.cotn=N);var e=this.playerResponse.heartbeatParams;if(e){t8t(this)&&(this.F8=!0);var t=e.heartbeatToken;t&&(this.drmSessionId=e.drmSessionId||"",this.heartbeatToken=t,this.di=Number(e.intervalMilliseconds),this.nV=Number(e.maxRetries),this.II=!!e.softFailOnError,this.wZ=!!e.useInnertubeHeartbeatsForDrm,this.A6=!0);this.heartbeatServerData= e.heartbeatServerData;var v;this.zz=!((v=e.heartbeatAttestationConfig)==null||!v.requiresAttestation)}var S=this.playerResponse.messages;S&&lD7(this,S);var n=this.playerResponse.overlay;if(n){var X=n.playerControlsOverlayRenderer;if(X)if(T2w(this,X.controlBgHtml),X.mutedAutoplay){var D=g.I(X.mutedAutoplay,n_5);if(D&&D.endScreen){var yp=g.I(D.endScreen,w2B);yp&&yp.text&&(this.uQ=g.Lj(yp.text))}}else this.mutedAutoplay=!1}var H5=this.playerResponse.playabilityStatus;if(H5){var ad=H5.backgroundability; ad&&ad.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Md,U;if((Md=H5.offlineability)==null?0:(U=Md.offlineabilityRenderer)==null?0:U.offlineable)this.offlineable=!0;var Nd=H5.contextParams;Nd&&(this.contextParams=Nd);var hz=H5.pictureInPicture;hz&&hz.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);H5.playableInEmbed&&(this.allowEmbed=!0);var EQ=H5.ypcClickwrap;if(EQ){var ec=EQ.playerLegacyDesktopYpcClickwrapRenderer,MF=EQ.ypcRentalActivationRenderer;if(ec)this.NH= ec.durationMessage||"",this.kN=!0;else if(MF){var KP=MF.durationMessage;this.NH=KP?g.Lj(KP):"";this.kN=!0}}var Ft=H5.errorScreen;if(Ft){if(Ft.playerLegacyDesktopYpcTrailerRenderer){var Hn=Ft.playerLegacyDesktopYpcTrailerRenderer;this.Mi=Hn.trailerVideoId||"";var Q=Ft.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var gw=Q&&Q.ypcTrailerRenderer}else if(Ft.playerLegacyDesktopYpcOfferRenderer)Hn=Ft.playerLegacyDesktopYpcOfferRenderer;else if(Ft.ypcTrailerRenderer){gw=Ft.ypcTrailerRenderer;var D9=gw.fullVideoMessage; this.Et=D9?g.Lj(D9):"";var Nj,zd;this.Mi=((Nj=g.I(gw,I2n))==null?void 0:(zd=Nj.videoDetails)==null?void 0:zd.videoId)||""}Hn&&(this.xe=Hn.itemTitle||"",Hn.itemUrl&&(this.Kz=Hn.itemUrl),Hn.itemBuyUrl&&(this.zG=Hn.itemBuyUrl),this.ew=Hn.itemThumbnail||"",this.zd=Hn.offerHeadline||"",this.bY=Hn.offerDescription||"",this.Z$=Hn.offerId||"",this.d1=Hn.offerButtonText||"",this.VY=Hn.offerButtonFormattedText||null,this.wP=Hn.overlayDurationMsec||NaN,this.Et=Hn.fullVideoMessage||"",this.ph=!0);if(gw){var Gd= g.I(gw,I2n);if(Gd)this.Ns={raw_player_response:Gd};else{var ww=g.I(gw,r0B);this.Ns=ww?H$(ww):null}this.ph=!0}}}var fD=this.playerResponse.playbackTracking;if(fD){var vn=a,h=NU(fD.googleRemarketingUrl);h&&(this.googleRemarketingUrl=h);var O=NU(fD.youtubeRemarketingUrl);O&&(this.youtubeRemarketingUrl=O);var K={},f=NU(fD.ptrackingUrl);if(f){var C=QK(f),tz=C.oid;tz&&(this.CX=tz);var TH=C.pltype;TH&&(this.eS=TH);var ZR=C.ptchn;ZR&&(this.o1=ZR);var Rd=C.ptk;Rd&&(this.C8=encodeURIComponent(Rd));var v5=C.m; v5&&(this.Ok=v5)}var UQ=NU(fD.qoeUrl);if(UQ){for(var Q5=g.br(UQ),Qk=g.c(Object.keys(Q5)),$_=Qk.next();!$_.done;$_=Qk.next()){var XP=$_.value,D2=Q5[XP];Q5[XP]=Array.isArray(D2)?D2.join(","):D2}this.In=Q5;var YA=Q5.cat;YA&&(this.V("html5_enable_qoe_cat_list")?this.Ln=this.Ln.concat(YA.split(",")):this.mf=YA);var Nc=Q5.live;Nc&&(this.Pr=Nc);var jp=Q5.drm_product;jp&&(this.drmProduct=jp)}var $1=NU(fD.videostatsPlaybackUrl);if($1){var Z4=QK($1),sh=Z4.adformat;if(sh){vn.adformat=sh;var Dn=this.Y(),uv=xC7(sh, this.JH,Dn.j,Dn.J);uv&&(this.adFormat=uv)}var F6=Z4.aqi;F6&&(vn.ad_query_id=F6);var H6=Z4.autoplay;H6&&(this.dR=H6=="1",this.GB=H6=="1");var U8=Z4.autonav;U8&&(this.isAutonav=U8=="1");var qj=Z4.delay;qj&&(this.vF=Lm(qj));var F3=Z4.ei;F3&&(this.eventId=F3);if(Z4.adcontext||sh)this.dR=!0;var Eu=Z4.feature;Eu&&(this.sZ=Eu);var pc=Z4.list;pc&&(this.playlistId=pc);var WJ=Z4.of;WJ&&(this.Pj=WJ);var cJ=Z4.osid;cJ&&(this.osid=cJ);var LT=Z4.referrer;LT&&(this.referrer=LT);var bu=Z4.sdetail;bu&&(this.A_=bu); var iB=Z4.ssrt;iB&&(this.f2=iB=="1");var Ni=Z4.subscribed;Ni&&(this.subscribed=Ni=="1");var gY=Z4.uga;gY&&(this.userGenderAge=gY);var Qv=Z4.upt;Qv&&(this.RW=Qv);var tu=Z4.vm;tu&&(this.videoMetadata=tu);K.playback=Z4}var ey=NU(fD.videostatsWatchtimeUrl);if(ey){var Fc=QK(ey),hu=Fc.ald;hu&&(this.l3=hu);K.watchtime=Fc}var OK=NU(fD.atrUrl);if(OK){var rn=QK(OK);K.atr=rn}var hy=NU(fD.engageUrl);if(hy){var ap=QK(hy);K.engage=ap}this.IH=K;if(fD.promotedPlaybackTracking){var EM=fD.promotedPlaybackTracking; EM.startUrls&&(this.K8=EM.startUrls);EM.firstQuartileUrls&&(this.al=EM.firstQuartileUrls);EM.secondQuartileUrls&&(this.nP=EM.secondQuartileUrls);EM.thirdQuartileUrls&&(this.eK=EM.thirdQuartileUrls);EM.completeUrls&&(this.md=EM.completeUrls);EM.engagedViewUrls&&(EM.engagedViewUrls.length>1&&g.nU(new g.YH("There are more than one engaged_view_urls.")),this.xw=EM.engagedViewUrls[0])}}var Ml=this.playerResponse.playerCueRanges;Ml&&Ml.length>0&&(this.cueRanges=Ml);var KT=this.playerResponse.playerCueRangeSet; KT&&g.aY(this,KT);a:{var iu=this.playerResponse.adPlacements;if(iu)for(var zR=g.c(iu),dY=zR.next();!dY.done;dY=zR.next()){var vJ=void 0,$M=void 0,sK=(vJ=dY.value.adPlacementRenderer)==null?void 0:($M=vJ.renderer)==null?void 0:$M.videoAdTrackingRenderer;if(sK){var Sy=sK;break a}}Sy=null}var jG=Sy;fD&&fD.promotedPlaybackTracking&&jG&&g.nU(new g.YH("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var Z1;if(!(Z1=jG))a:{for(var fT=g.c(this.playerResponse.adSlots||[]), A9=fT.next();!A9.done;A9=fT.next()){var PF=g.I(A9.value,Cl);if(PF===void 0||!pXw(PF))break;var Ju=void 0,lb=(Ju=PF.fulfillmentContent)==null?void 0:Ju.fulfilledLayout,BJ=g.I(lb,sW);if(BJ&&Kl(BJ)){Z1=!0;break a}}Z1=!1}Z1&&(this.oF=!0);var kM=this.playerResponse.playerAds;if(kM)for(var mW=a,nT=g.c(kM),Wj=nT.next();!Wj.done;Wj=nT.next()){var wV=Wj.value;if(wV){var Iy=wV.playerLegacyDesktopWatchAdsRenderer;if(Iy){var Od=Iy.playerAdParams;if(Od){Od.autoplay=="1"&&(this.GB=this.dR=!0);this.Ew=Od.encodedAdSafetyReason|| null;Od.showContentThumbnail!==void 0&&(this.cI=!!Od.showContentThumbnail);mW.enabled_engage_types=Od.enabledEngageTypes;break}}}}var hd=this.playerResponse.playerConfig;if(hd){var Xy=hd.manifestlessWindowedLiveConfig;if(Xy){var CT=Number(Xy.minDvrSequence),G8=Number(Xy.maxDvrSequence),cj=Number(Xy.minDvrMediaTimeMs),LI=Number(Xy.maxDvrMediaTimeMs),Vn=Number(Xy.startWalltimeMs);CT&&(this.sQ=CT);cj&&(this.jt=cj/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Mf(this)&&(this.Wd=cj/ 1E3));G8&&(this.h$=G8);LI&&(this.ZR=LI/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Mf(this)&&(this.Gz=LI/1E3));Vn&&(this.QO=Vn/1E3);(CT||cj)&&(G8||LI)&&(this.allowLiveDvr=this.isLivePlayback=this.Ij=!0,this.mx=!1)}var Yp=hd.daiConfig;if(Yp){if(Yp.enableDai){this.Gt=!0;var Nt=Yp.enableServerStitchedDai;Nt&&(this.enableServerStitchedDai=Nt);var EK=Yp.enablePreroll;EK&&(this.Uk=EK)}var ya;if(Yp.daiType==="DAI_TYPE_SS_DISABLED"||((ya=Yp.debugInfo)==null?0:ya.isDisabledUnpluggedChannel))this.QY= !0;Yp.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Nz=!0)}var jF=hd.audioConfig;if(jF){var ow=jF.loudnessDb;ow!=null&&(this.Dv=ow);var ABH=jF.trackAbsoluteLoudnessLkfs;ABH!=null&&(this.n4=ABH);var Pb7=jF.loudnessTargetLkfs;Pb7!=null&&(this.loudnessTargetLkfs=Pb7);jF.audioMuted&&(this.Xt=!0);jF.muteOnStart&&(this.Nq=!0);var V1=jF.loudnessNormalizationConfig;if(V1){V1.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);V1.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var GlP=V1.minimumLoudnessTargetLkfs;GlP!=null&&(this.minimumLoudnessTargetLkfs=GlP);var V3p=V1.maxStatefulTimeThresholdSec;V3p!=null&&(this.maxStatefulTimeThresholdSec=V3p)}jF.playAudioOnly&&(this.Be=!0)}var dLz=hd.playbackEndConfig;if(dLz){var pi5=dLz.endSeconds,Zqb=dLz.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(pi5&&(this.endSeconds=pi5),Zqb&&(this.limitedPlaybackDurationInSeconds=Zqb))}var cQ=hd.fairPlayConfig;if(cQ){var WWw=cQ.certificate;WWw&&(this.St=ij(WWw));var cBd=Number(cQ.keyRotationPeriodMs); cBd>0&&(this.h_=cBd);var LWl=Number(cQ.keyPrefetchMarginMs);LWl>0&&(this.iD=LWl)}var H8=hd.playbackStartConfig;if(H8){this.lh=Number(H8.startSeconds);var Nfz=H8.liveUtcStartSeconds,Qp7=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;Nfz&&!Qp7&&(this.liveUtcStartSeconds=Number(Nfz));var jlP=H8.startPosition;if(jlP){var t3d=jlP.utcTimeMillis;t3d&&!Qp7&&(this.liveUtcStartSeconds=Number(t3d)*.001);var eQp=jlP.streamTimeMillis;eQp&&(this.wO=Number(eQp)*.001)}this.progressBarStartPosition=H8.progressBarStartPosition; this.progressBarEndPosition=H8.progressBarEndPosition}else{var ArH=hd.skippableSegmentsConfig;if(ArH){var FW5=ArH.introSkipDurationMs;FW5&&(this.NE=Number(FW5)/1E3);var hQ7=ArH.outroSkipDurationMs;hQ7&&(this.XV=Number(hQ7)/1E3)}}var PJ3=hd.skippableIntroConfig;if(PJ3){var Oq7=Number(PJ3.startMs),KW7=Number(PJ3.endMs);isNaN(Oq7)||isNaN(KW7)||(this.v1=Oq7,this.xN=KW7)}var zQb=hd.streamSelectionConfig;zQb&&(this.Ug=Number(zQb.maxBitrate));var v77=hd.vrConfig;v77&&(this.dK=v77.partialSpherical=="1"); var pl=hd.webDrmConfig;if(pl){pl.skipWidevine&&(this.Vw=!0);var $ht=pl.widevineServiceCert;$ht&&(this.a8=ij($ht));pl.useCobaltWidevine&&(this.useCobaltWidevine=!0);pl.startWithNoQualityConstraint&&(this.Mg=!0)}var DK=hd.mediaCommonConfig;if(DK){var LW=DK.dynamicReadaheadConfig;if(LW){this.maxReadAheadMediaTimeMs=LW.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=LW.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=LW.readAheadGrowthRateMs||NaN;var sp7,S2H=DK==null?void 0:(sp7=DK.mediaUstreamerRequestConfig)== null?void 0:sp7.videoPlaybackUstreamerConfig;S2H&&(this.Ku=ij(S2H));var Gf7=DK==null?void 0:DK.sabrContextUpdates;if(Gf7&&Gf7.length>0)for(var faz=g.c(Gf7),V9z=faz.next();!V9z.done;V9z=faz.next()){var VM=V9z.value;if(VM.type&&VM.value){var Yu_={type:VM.type,scope:VM.scope,value:ij(VM.value)||void 0,sendByDefault:VM.sendByDefault};this.sabrContextUpdates.set(VM.type,Yu_)}}}var JBP=DK.serverPlaybackStartConfig;JBP&&(this.serverPlaybackStartConfig=JBP);DK.useServerDrivenAbr&&(this.JV=!0);var Bfl=DK.requestPipeliningConfig; Bfl&&(this.requestPipeliningConfig=Bfl)}var klH=hd.inlinePlaybackConfig;klH&&(this.m6=!!klH.showAudioControls);var No=hd.embeddedPlayerConfig;if(No){this.embeddedPlayerConfig=No;var pAP=No.embeddedPlayerMode;if(pAP){var n7b=this.Y();n7b.qj=pAP;n7b.Z=pAP==="EMBEDDED_PLAYER_MODE_PFL"}var wil=No.permissions;wil&&(this.allowImaMonetization=!!wil.allowImaMonetization)}var Ial=hd.ssapConfig;Ial&&(this.zT=Ial.ssapPrerollEnabled||!1);var Qg=hd.webPlayerConfig;Qg&&(Qg.gatewayExperimentGroup&&(this.gatewayExperimentGroup= Qg.gatewayExperimentGroup),Qg.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var u_=this.playerResponse.streamingData;if(u_){var ZVz=u_.formats;if(ZVz){for(var ZD=[],CbP=g.c(ZVz),WLw=CbP.next();!WLw.done;WLw=CbP.next()){var crt=WLw.value;ZD.push(crt.itag+"/"+crt.width+"x"+crt.height)}this.f9=ZD.join(",");ZD=[];for(var E7d=g.c(ZVz),LLl=E7d.next();!LLl.done;LLl=E7d.next()){var W_=LLl.value,c_={itag:W_.itag,type:W_.mimeType,quality:W_.quality},o7t=W_.url;o7t&&(c_.url=o7t);var tk=JP(W_),UMX=tk.ji, rWs=tk.wJ,aC5=tk.s;tk.yT&&(c_.url=UMX,c_.sp=rWs,c_.s=aC5);ZD.push(g.s0(c_))}this.VX=ZD.join(",")}var Nrt=u_.hlsFormats;if(Nrt&&!this.V("safari_live_drm_captions_fix")){var xhH=hd||null,eg={};if(xhH){var QlQ=xhH.audioPairingConfig;if(QlQ&&QlQ.pairs)for(var Dh7=g.c(QlQ.pairs),t9t=Dh7.next();!t9t.done;t9t=Dh7.next()){var u97=t9t.value,eBP=u97.videoItag;eg[eBP]||(eg[eBP]=[]);eg[eBP].push(u97.audioItag)}}for(var Xiz={},Y2b=g.c(Nrt),FL7=Y2b.next();!FL7.done;FL7=Y2b.next()){var Uhp=FL7.value;Xiz[Uhp.itag]= Uhp.bitrate}for(var rBw=[],aPz=g.c(Nrt),hBb=aPz.next();!hBb.done;hBb=aPz.next()){var HP=hBb.value,OB={itag:HP.itag,type:HP.mimeType,url:HP.url,bitrate:HP.bitrate,width:HP.width,height:HP.height,fps:HP.fps},FE=HP.audioTrack;if(FE){var lPd=FE.displayName;lPd&&(OB.name=lPd,OB.audio_track_id=FE.id,FE.audioIsDefault&&(OB.is_default="1"))}if(HP.drmFamilies){for(var mHR=[],T5p=g.c(HP.drmFamilies),OV7=T5p.next();!OV7.done;OV7=T5p.next())mHR.push(eP[OV7.value]);OB.drm_families=mHR.join(",")}var hk=eg[HP.itag]; if(hk&&hk.length){OB.audio_itag=hk.join(",");var yoP=Xiz[hk[0]];yoP&&(OB.bitrate+=yoP)}var Rmp=xi3(HP);Rmp&&(OB.eotf=Rmp);HP.audioChannels&&(OB.audio_channels=HP.audioChannels);rBw.push(g.s0(OB))}this.hlsFormats=rBw.join(",")}var KL5=u_.licenseInfos;if(KL5&&KL5.length>0){for(var HOw={},q7H=g.c(KL5),zBP=q7H.next();!zBP.done;zBP=q7H.next()){var bOd=zBP.value,gL5=bOd.drmFamily,Mvb=bOd.url;gL5&&Mvb&&(HOw[eP[gL5]]=Mvb)}this.u0=HOw}var iOR=u_.drmParams;iOR&&(this.drmParams=iOR);var dHp=u_.dashManifestUrl; dHp&&(this.tN=g.S$(dHp,{cpn:this.clientPlaybackNonce}));var jmt=u_.hlsManifestUrl;jmt&&(this.hlsvp=jmt);var AoP=u_.probeUrl;AoP&&(this.probeUrl=TV(g.S$(AoP,{cpn:this.clientPlaybackNonce})));var Ps3=u_.serverAbrStreamingUrl;Ps3&&(this.W4=new g.K_(Ps3,!0))}var GpH=this.playerResponse.trackingParams;GpH&&(this.Cx=GpH);var qE=this.playerResponse.videoDetails;if(qE){var K1=a,vF3=qE.videoId;vF3&&(this.videoId=vF3,K1.video_id||(K1.video_id=vF3));var $Ld=qE.title;$Ld&&(this.title=$Ld,K1.title||(K1.title= $Ld));var sll=qE.lengthSeconds;sll&&(this.lengthSeconds=Number(sll),K1.length_seconds||(K1.length_seconds=sll));var VvP=qE.keywords;VvP&&(this.keywords=KVp(VvP));var SeR=qE.channelId;SeR&&(this.r6=SeR,K1.ucid||(K1.ucid=SeR));var pRP=qE.viewCount;pRP&&(this.rawViewCount=Number(pRP));var fUH=qE.author;fUH&&(this.author=fUH,K1.author||(K1.author=fUH));var ZOR=qE.shortDescription;ZOR&&(this.shortDescription=ZOR);var Wgl=qE.isCrawlable;Wgl&&(this.isListed=Wgl);var co5=qE.musicVideoType;co5&&(this.musicVideoType= co5);var JrQ=qE.isLive;JrQ!=null&&(this.isLivePlayback=JrQ);if(JrQ||qE.isUpcoming)this.isPremiere=!qE.isLiveContent;var LgQ=qE.thumbnail;LgQ&&(this.J=L7(LgQ));var N5d=qE.isExternallyHostedPodcast;N5d&&(this.isExternallyHostedPodcast=N5d);var Brt=qE.viewerLivestreamJoinPosition;if(Brt==null?0:Brt.utcTimeMillis)this.f1=Lm(Brt.utcTimeMillis);var Qm3=hd||null,kfQ=a;qE.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);qE.isUpcoming&&(this.isUpcoming=!0);if(qE.isPostLiveDvr){this.mx=!0;var tvz=qE.latencyClass; tvz&&(this.latencyClass=Ny9[tvz]||"UNKNOWN");qE.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var nFb=!1;this.rb?(this.allowLiveDvr=bj()?!0:lR&&I4<5?!1:!0,this.isLivePlayback=!0):qE.isLive?(kfQ.livestream="1",this.allowLiveDvr=qE.isLiveDvrEnabled?bj()?!0:lR&&I4<5?!1:!0:!1,this.partnerId=27,nFb=!0):qE.isUpcoming&&(nFb=!0);if(qE.isLive||this.rb){qE.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var emb=qE.latencyClass;emb&&(this.latencyClass=Ny9[emb]||"UNKNOWN");var FgH=qE.liveChunkReadahead; FgH&&(this.liveChunkReadahead=FgH);var qJ=Qm3&&Qm3.livePlayerConfig;if(qJ){qJ.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);qJ.hasSubfragmentedWebm&&(this.FV=!0);qJ.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var hmb=qJ.liveExperimentalContentId;hmb&&(this.liveExperimentalContentId=Number(hmb));var OOP=qJ.isLiveHeadPlayable;this.V("html5_live_head_playable")&&OOP!=null&&(this.isLiveHeadPlayable=OOP)}}nFb&&(this.isLivePlayback=!0,kfQ.adformat&&kfQ.adformat.split("_")[1]!== "8"||this.lT.push("heartbeat"),this.A6=!0)}var Kg7=qE.isPrivate;Kg7!==void 0&&(this.isPrivate=qp(this.isPrivate,Kg7))}if(H5){var zmw=qE||null,vLb=!1,bZ=H5.errorScreen;vLb=bZ&&(bZ.playerLegacyDesktopYpcOfferRenderer||bZ.playerLegacyDesktopYpcTrailerRenderer||bZ.ypcTrailerRenderer)?!0:zmw&&zmw.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(H5.status);if(!vLb){this.errorCode=BkQ(H5.errorCode)||"auth";var Ov=bZ&&bZ.playerErrorMessageRenderer;if(Ov){this.playerErrorMessageRenderer= Ov;var $HP=Ov.reason;$HP&&(this.errorReason=g.Lj($HP));var wAd=Ov.subreason;wAd&&(this.m_=g.Lj(wAd),this.D9=wAd)}else this.errorReason=H5.reason||null;var IUQ=H5.status;if(IUQ==="LOGIN_REQUIRED")this.errorDetail="1";else if(IUQ==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(IUQ==="AGE_CHECK_REQUIRED"){var sm7=H5.errorScreen,S7p=sm7&&sm7.playerKavRenderer;this.errorDetail=S7p&&S7p.kavUrl?"4":"3"}else this.errorDetail=H5.isBlockedInRestrictedMode?"5":"0"}}var fP3=this.playerResponse.interstitialPods; fP3&&aD7(this,fP3);this.AM&&this.eventId&&(this.AM=My(this.AM,{ei:this.eventId}));var CJz=this.playerResponse.captions;if(CJz&&CJz.playerCaptionsTracklistRenderer)a:{var zW=CJz.playerCaptionsTracklistRenderer;this.captionTracks=[];if(zW.captionTracks)for(var JoR=g.c(zW.captionTracks),EFH=JoR.next();!EFH.done;EFH=JoR.next()){var vZ=EFH.value,B5b=FV7(vZ.baseUrl);if(!B5b)break a;var oF5={is_translateable:!!vZ.isTranslatable,languageCode:vZ.languageCode,languageName:vZ.name&&g.Lj(vZ.name),url:B5b,vss_id:vZ.vssId, kind:vZ.kind};oF5.name=vZ.trackName;oF5.displayName=vZ.name&&g.Lj(vZ.name);this.captionTracks.push(new g.VK(oF5))}this.gf=zW.audioTracks||[];this.TT=zW.defaultAudioTrackIndex||0;this.Pi=[];if(zW.translationLanguages)for(var kpd=g.c(zW.translationLanguages),xLP=kpd.next();!xLP.done;xLP=kpd.next()){var gq=xLP.value,pp={};pp.languageCode=gq.languageCode;pp.languageName=g.Lj(gq.languageName);if(gq.translationSourceTrackIndices){pp.translationSourceTrackIndices=[];for(var nLz=g.c(gq.translationSourceTrackIndices), DLH=nLz.next();!DLH.done;DLH=nLz.next())pp.translationSourceTrackIndices.push(DLH.value)}if(gq.excludeAudioTrackIndices){pp.excludeAudioTrackIndices=[];for(var wR3=g.c(gq.excludeAudioTrackIndices),uht=wR3.next();!uht.done;uht=wR3.next())pp.excludeAudioTrackIndices.push(uht.value)}this.Pi.push(pp)}this.GY=[];if(zW.defaultTranslationSourceTrackIndices)for(var IPl=g.c(zW.defaultTranslationSourceTrackIndices),XA3=IPl.next();!XA3.done;XA3=IPl.next())this.GY.push(XA3.value);this.Ma=!!zW.contribute&&!!zW.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.lh=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&mWp(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Csd;this.compositeLiveIngestionOffsetToken=(Csd=this.playerResponse.playbackTracking)==null?void 0:Csd.compositeLiveIngestionOffsetToken; var ELt;this.compositeLiveStatusToken=(ELt=this.playerResponse.playbackTracking)==null?void 0:ELt.compositeLiveStatusToken}XU(this,a);a.queue_info&&(this.queueInfo=a.queue_info);var oLd=a.hlsdvr;oLd!=null&&(this.allowLiveDvr=Number(oLd)===1?bj()?!0:lR&&I4<5?!1:!0:!1);this.adQueryId=a.ad_query_id||null;this.Ew||(this.Ew=a.encoded_ad_safety_reason||null);this.Xt=qp(this.Xt,a.infringe||a.muted);this.Af=a.authkey;this.a6=a.authuser;this.mutedAutoplay=qp(this.mutedAutoplay,a&&a.playmuted);this.mutedAutoplayDurationMode= gQ(this.mutedAutoplayDurationMode,a&&a.muted_autoplay_duration_mode);this.Xb=qp(this.Xb,a&&a.mutedautoplay);var KW=a.length_seconds;KW&&(this.lengthSeconds=typeof KW==="string"?Lm(KW):KW);if(this.isAd()||this.GX||!g.AN(g.w1(this.UL)))this.endSeconds=gQ(this.endSeconds,this.XV||a.end||a.endSeconds);else{var lCc=g.w1(this.UL),zZ=this.lengthSeconds;switch(lCc){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":zZ>30?this.limitedPlaybackDurationInSeconds=30:zZ<30&&zZ>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=zZ*.2}}this.Cx=Mp(this.Cx,a.itct);this.dI=qp(this.dI,a.is_live_destination);this.isLivePlayback=qp(this.isLivePlayback,a.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Fl();a.isUpcoming&&(this.isUpcoming=qp(this.isUpcoming,a.isUpcoming));this.mx=qp(this.mx,a.post_live_playback);this.Ij&&(this.mx=!1);this.isMdxPlayback=qp(this.isMdxPlayback,a.mdx);var vQ=a.mdx_control_mode; vQ&&(this.mdxControlMode=typeof vQ==="number"?vQ:Lm(vQ));this.isInlinePlaybackNoAd=qp(this.isInlinePlaybackNoAd,a.is_inline_playback_no_ad);this.uZ=gQ(this.uZ,a.reload_count);this.reloadReason=Mp(this.reloadReason,a.reload_reason);this.cI=qp(this.cI,a.show_content_thumbnail);this.cycToken=a.cyc||null;var xH3=cV(a);Object.keys(xH3).length>0&&(this.J=xH3);this.qj=Mp(this.qj,a.vvt);this.mdxEnvironment=Mp(this.mdxEnvironment,a.mdx_environment);a.source_container_playlist_id&&(this.sourceContainerPlaylistId= a.source_container_playlist_id);a.serialized_mdx_metadata&&(this.serializedMdxMetadata=a.serialized_mdx_metadata);this.sT=a.osig;this.eventId||(this.eventId=a.eventid);this.osid||(this.osid=a.osid);this.playlistId=Mp(this.playlistId,a.list);a.index&&(this.playlistIndex=this.playlistIndex===void 0?gQ(0,a.index):gQ(this.playlistIndex,a.index));this.ZJ=a.pyv_view_beacon_url;this.DJ=a.pyv_quartile25_beacon_url;this.ED=a.pyv_quartile50_beacon_url;this.u2=a.pyv_quartile75_beacon_url;this.h1=a.pyv_quartile100_beacon_url; var DHP=a.session_data;!this.oS&&DHP&&(this.oS=y7(DHP,"&").feature);this.isFling=gQ(this.isFling?1:0,a.is_fling)===1;this.vnd=gQ(this.vnd,a.vnd);this.forceAdsUrl=Mp(this.forceAdsUrl,a.force_ads_url);this.lS=Mp(this.lS,a.ctrl);this.Rc=Mp(this.Rc,a.ytr);this.qF=a.ytrcc;this.CN=a.ytrexp;this.mp=a.ytrext;this.Aa=Mp(this.Aa,a.adformat);this.JH=Mp(this.JH,a.attrib);this.slotPosition=gQ(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.f2=qp(this.f2,a.ssrt);this.videoId=dQ(a)||this.videoId; this.C=Mp(this.C,a.vss_credentials_token);this.P7=Mp(this.P7,a.vss_credentials_token_type);this.Be=qp(this.Be,a.audio_only);this.tM=qp(this.tM,a.aac_high);this.Kf=qp(this.Kf,a.prefer_low_quality_audio);this.aP=qp(this.aP,a.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?a.qoe_cat&&(this.Ln=this.Ln.concat(a.qoe_cat.split(","))):this.mf=Mp(this.mf,a.qoe_cat);this.jn=qp(this.jn,a.download_media);var uVw=a.prefer_gapless;this.B=uVw!=null?qp(this.B,uVw):this.B?this.B:this.UL.preferGapless&&this.UL.supportsGaplessShorts(); YLp(this.playerResponse)&&this.lT.push("ad");var XRb=a.adaptive_fmts;XRb&&(this.adaptiveFormats=XRb,this.Tu("adpfmts",{},!0));var Y7d=a.allow_embed;Y7d&&(this.allowEmbed=Number(Y7d)===1);var UH3=a.backgroundable;UH3&&(this.backgroundable=Number(UH3)===1);var row=a.autonav;row&&(this.isAutonav=Number(row)===1);var aBb=a.autoplay;aBb&&(this.dR=this.GB=Number(aBb)===1);var lBw=a.iv_load_policy;lBw&&(this.annotationsLoadPolicy=bR(this.annotationsLoadPolicy,lBw,IT));var mTd=a.cc_lang_pref;mTd&&(this.captionsLanguagePreference= Mp(mTd,this.captionsLanguagePreference));var TWl=a.cc_load_policy;TWl&&(this.kU=bR(this.kU,TWl,IT));var ytt;this.deviceCaptionsOn=(ytt=a.device_captions_on)!=null?ytt:void 0;var R5p;this.sW=(R5p=a.device_captions_lang_pref)!=null?R5p:"";var Hg5;this.T5=(Hg5=a.viewer_selected_caption_langs)!=null?Hg5:[];if(!this.V("html5_enable_ssap_entity_id")){var qol=a.cached_load;qol&&(this.MH=qp(this.MH,qol))}if(a.dash==="0"||a.dash===0||a.dash===!1)this.Al=!0;var bgd=a.dashmpd;bgd&&(this.tN=g.S$(bgd,{cpn:this.clientPlaybackNonce})); var gz3=a.delay;gz3&&(this.vF=Lm(gz3));var Yez=this.XV||a.end;if(this.SW?Yez!=null:Yez!=void 0)this.clipEnd=gQ(this.clipEnd,Yez);var MVt=a.fmt_list;MVt&&(this.f9=MVt);a.heartbeat_preroll&&this.lT.push("heartbeat");this.Wg=-Math.floor(Math.random()*10);this.J7=-Math.floor(Math.random()*40);var igP=a.is_listed;igP&&(this.isListed=qp(this.isListed,igP));var dT7=a.is_private;dT7&&(this.isPrivate=qp(this.isPrivate,dT7));var jv3=a.is_dni;jv3&&(this.Rh=qp(this.Rh,jv3));var At3=a.dni_color;At3&&(this.ai= Mp(this.ai,At3));var Pm7=a.pipable;Pm7&&(this.pipable=qp(this.pipable,Pm7));this.BL=(this.cm=this.pipable&&this.UL.CY)&&!this.UL.showMiniplayerButton;var Gzt=a.paid_content_overlay_duration_ms;Gzt&&(this.paidContentOverlayDurationMs=Lm(Gzt));var VVt=a.paid_content_overlay_text;VVt&&(this.paidContentOverlayText=VVt);var pzt=a.url_encoded_fmt_stream_map;pzt&&(this.VX=pzt);var Zg3=a.hls_formats;Zg3&&(this.hlsFormats=Zg3);var WTt=a.hlsvp;WTt&&(this.hlsvp=WTt);var $u=a.live_start_walltime;$u&&(this.e2= typeof $u==="number"?$u:Lm($u));var Sg=a.live_manifest_duration;Sg&&(this.Ek=typeof Sg==="number"?Sg:Lm(Sg));var ct5=a.player_params;ct5&&(this.playerParams=ct5);var LTH=a.partnerid;LTH&&(this.partnerId=gQ(this.partnerId,LTH));var NWt=a.probe_url;NWt&&(this.probeUrl=TV(g.S$(NWt,{cpn:this.clientPlaybackNonce})));var ULl=a.pyv_billable_url;ULl&&mXH(ULl)&&(this.xw=ULl);var rr5=a.pyv_conv_url;rr5&&mXH(rr5)&&(this.jQ=rr5);zxb(this,a);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.lh||this.NE||a.start||a.startSeconds)&&this.Tu("lss",{css:this.startSeconds,pcss:this.lh,iss:this.NE,ps:a.start||void 0,pss:a.startSeconds||void 0}):this.lZ=this.startSeconds=gQ(this.startSeconds,this.lh||this.NE||a.start||a.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Qvz=a.live_utc_start;if(Qvz!=null)this.liveUtcStartSeconds=Number(Qvz);else{var a5w=this.startSeconds;a5w&&isFinite(a5w)&&a5w>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var tV3=a.utc_start_millis;tV3&&(this.liveUtcStartSeconds=Number(tV3)*.001)}var e5d=a.stream_time_start_millis;e5d&&(this.wO=Number(e5d)*.001);var l57=this.NE||a.start;(this.SW?l57==null||Number(a.resume)===1:l57==void 0||a.resume=="1")||this.isLivePlayback||(this.clipStart=gQ(this.clipStart,l57));var FTP=a.url_encoded_third_party_media;FTP&&(this.n_=qy(FTP));var m6Q=a.ypc_offer_button_formatted_text;if(m6Q){var h5p=JSON.parse(m6Q);this.VY=h5p!=null?h5p:null;this.t1=m6Q}var Ogl= a.ypc_offer_button_text;Ogl&&(this.d1=Ogl);var KTd=a.ypc_offer_description;KTd&&(this.bY=KTd);var z5l=a.ypc_offer_headline;z5l&&(this.zd=z5l);var vz7=a.ypc_full_video_message;vz7&&(this.Et=vz7);var $TH=a.ypc_offer_id;$TH&&(this.Z$=$TH);var svl=a.ypc_buy_url;svl&&(this.zG=svl);var Sob=a.ypc_item_thumbnail;Sob&&(this.ew=Sob);var fB7=a.ypc_item_title;fB7&&(this.xe=fB7);var Jtp=a.ypc_item_url;Jtp&&(this.Kz=Jtp);var BWp=a.ypc_vid;BWp&&(this.Mi=BWp);a.ypc_overlay_timeout&&(this.wP=Number(a.ypc_overlay_timeout)); var kzz=a.ypc_trailer_player_vars;kzz&&(this.Ns=H$(kzz));var nzH=a.ypc_original_itct;nzH&&(this.qFj=nzH);this.r6=Mp(this.r6,a.ucid);this.Bh=a.storyboard_spec||null;this.uD=a.live_storyboard_spec||null;this.iB=a.iv_endscreen_url||null;this.A6=qp(this.A6,a.ypc_license_checker_module);this.ph=qp(this.ph,a.ypc_module);this.kN=qp(this.kN,a.ypc_clickwrap_module);this.ph&&this.lT.push("ypc");this.kN&&this.lT.push("ypc_clickwrap");this.BH={video_id:a.video_id,eventid:a.eventid,cbrand:a.cbrand,cbr:a.cbr,cbrver:a.cbrver, c:a.c,cver:a.cver,ctheme:a.ctheme,cplayer:a.cplayer,cmodel:a.cmodel,cnetwork:a.cnetwork,cos:a.cos,cosver:a.cosver,cplatform:a.cplatform,user_age:a.user_age,user_display_image:a.user_display_image,user_display_name:a.user_display_name,user_gender:a.user_gender,csi_page_type:a.csi_page_type,csi_service_name:a.csi_service_name,enablecsi:a.enablecsi,enabled_engage_types:a.enabled_engage_types};ex7(this,a);var wzw=a.cotn;wzw&&(this.cotn=wzw);if(EPd(this))jD(this)&&(this.isLivePlayback&&this.tN&&(this.kA= !0),this.St&&(this.aH=!0));else if(oPp(this))this.kA=!0;else{var IBd,Cmd,Ezz=((IBd=this.playerResponse)==null?void 0:(Cmd=IBd.streamingData)==null?void 0:Cmd.adaptiveFormats)||[];if(Ezz.length>0)var Ll=CM7(this,Ezz);else{var oz3=this.adaptiveFormats;if(oz3&&!jD(this)){this.UL.K.Z&&(ki=!0);var MJ=W9(oz3),Ta7=this.u0,xTw=this.lengthSeconds,myr=this.isLivePlayback,NW=this.mx,iZ=this.UL,T0c=qpd(MJ);if(myr||NW){var DTl=iZ==null?void 0:iZ.experiments,Ei=new QB("",DTl,!0);Ei.Fl=!0;Ei.isManifestless=!0;Ei.L= !NW;Ei.isLive=!NW;Ei.mx=NW;for(var uRw=g.c(MJ),yKd=uRw.next();!yKd.done;yKd=uRw.next()){var dq=yKd.value,Xzt=h8(dq,Ta7),ZE=Oj(dq.url,dq.sp,dq.s),Yod=ZE.get("id");Yod&&Yod.includes("%7E")&&(Ei.N=!0);var UTQ=void 0,yR9=(UTQ=DTl)==null?void 0:UTQ.XO("html5_max_known_end_time_rebase"),R0F=Number(dq.target_duration_sec)||5,Hyc=Number(dq.max_dvr_duration_sec)||14400,rt7=Number(ZE.get("mindsq")||ZE.get("min_sq")||"0"),a3Q=Number(ZE.get("maxdsq")||ZE.get("max_sq")||"0")||Infinity;Ei.sQ=Ei.sQ||rt7;Ei.h$=Ei.h$|| a3Q;var qZD=!Ry(Xzt.mimeType);ZE&&cK(Ei,new HK(ZE,Xzt,{Y7:R0F,ih:qZD,fY:Hyc,sQ:rt7,h$:a3Q,ZV:300,mx:NW,sK:yR9}))}var l3l=Ei}else{if(T0c==="FORMAT_STREAM_TYPE_OTF"){var fW=xTw;fW=fW===void 0?0:fW;var jm=new QB("",iZ==null?void 0:iZ.experiments,!1);jm.duration=fW||0;for(var m5p=g.c(MJ),R$d=m5p.next();!R$d.done;R$d=m5p.next()){var AE=R$d.value,HvR=h8(AE,Ta7,jm.duration),qM3=Oj(AE.url,AE.sp,AE.s);if(qM3)if(HvR.streamType==="FORMAT_STREAM_TYPE_OTF")cK(jm,new qO(qM3,HvR,"sq/0"));else{var byn=BO(AE.init), gaB=BO(AE.index);cK(jm,new pS(qM3,HvR,byn,gaB))}}jm.isOtf=!0;var TU7=jm}else{var Jk=xTw;Jk=Jk===void 0?0:Jk;var BQ=new QB("",iZ==null?void 0:iZ.experiments,!1);BQ.duration=Jk||0;for(var y2H=g.c(MJ),bvp=y2H.next();!bvp.done;bvp=y2H.next()){var P8=bvp.value,Mn_=h8(P8,Ta7,BQ.duration),iyF=g.B(BO(P8.init)),dyF=g.B(BO(P8.index)),RYQ=Oj(P8.url,P8.sp,P8.s);RYQ&&cK(BQ,new pS(RYQ,Mn_,iyF,dyF))}TU7=BQ}l3l=TU7}var HHH=l3l;if(MJ.length>0){var qzt=MJ[0];if(this.Y().playerStyle==="hangouts-meet"&&qzt.url){var jtF= g.br(qzt.url);this.YV=this.YV||Number(jtF.expire)}}var ARr=this.isLivePlayback&&!this.mx&&!this.Ij&&!this.isPremiere;this.V("html5_live_head_playable")&&(!AU(this)&&ARr&&this.Tu("missingLiveHeadPlayable",{}),this.UL.Ij==="yt"&&(HHH.AM=!0));Ll=HHH}else Ll=null;this.Tu("pafmts",{isManifestFilled:!!Ll})}if(Ll){VZ(this,Ll);var bHz=!0}else bHz=!1;bHz?this.enableServerStitchedDai=this.enableServerStitchedDai&&P9(this):this.tN&&(this.UL.Ij==="yt"&&this.Fl()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")? this.Tu("deprecateMflFallback",{}):this.kA=!0)}var g2p=a.adpings;g2p&&(this.Dk=g2p?H$(g2p):null);var gCz=a.feature;gCz&&(this.sZ=gCz);var MZR=a.referrer;MZR&&(this.referrer=MZR);this.clientScreenNonce=Mp(this.clientScreenNonce,a.csn);this.ol=gQ(this.ol,a.root_ve_type);this.XS=gQ(this.XS,a.kids_age_up_mode);this.SW||a.kids_app_info==void 0||(this.kidsAppInfo=a.kids_app_info);this.SW&&a.kids_app_info!=null&&(this.kidsAppInfo=a.kids_app_info);this.IP=qp(this.IP,a.upg_content_filter_mode);this.unpluggedFilterModeType= gQ(this.unpluggedFilterModeType,a.unplugged_filter_mode_type);var iHz=a.unplugged_location_info;iHz&&(this.nR=iHz);var d5Q=a.unplugged_partner_opt_out;d5Q&&(this.Qt=Mp("",d5Q));this.kR=qp(this.kR,a.disable_watch_next);this.YR=Mp(this.YR,a.internal_ip_override);this.wI=!!a.is_yto_interstitial;(this.interstitials.length||this.wI)&&this.lT.push("yto");var je7=a.Fx;je7&&(this.Fx=je7);if(this.V("html5_persist_csi_timer"))this.N=Mp(this.N,a.csi_timer);else{var A2w;this.N=(A2w=a.csi_timer)!=null?A2w:""}a.watchUrl&& (this.watchUrl=a.watchUrl);var Wg=a.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&Wg&&wY5(this,Wg);if(Wg==null?0:Wg.ustreamerConfig)this.bA=ij(Wg.ustreamerConfig);var Pzb,Gq3,VZz=Wg==null?void 0:(Pzb=Wg.loggingContext)==null?void 0:(Gq3=Pzb.qoeLoggingContext)==null?void 0:Gq3.serializedContextData;VZz&&(this.F1L=VZz);g.vS(this.UL)&&this.UL.Ng&&(this.embedsRct=Mp(this.embedsRct,a.rct),this.embedsRctn=Mp(this.embedsRctn,a.rctn));this.P4=this.P4||!!a.pause_at_start;a.default_active_source_video_id&& (this.defaultActiveSourceVideoId=a.default_active_source_video_id)}; g.Z.Y=function(){return this.UL}; g.Z.V=function(a){return this.UL.V(a)}; g.Z.zA=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.Z.hasSupportedAudio51Tracks=function(){var a;return!((a=this.OQ)==null||!a.rb)}; g.Z.getUserAudio51Preference=function(){var a=1;l1(this.UL)&&this.V("html5_ytv_surround_toggle_default_off")?a=0:g.Ul(this.UL)&&this.isLivePlayback&&this.wR()&&(a=0);var l;return(l=g.BW("yt-player-audio51"))!=null?l:a}; g.Z.g5=function(){this.FO()||(this.T.L||this.T.unsubscribe("refresh",this.g5,this),this.hJ(-1))}; g.Z.hJ=function(a){if(!this.isLivePlayback||!this.K||this.K.flavor!=="fairplay"){var l=gQQ(this.T,this.M7);if(l.length>0){for(var m=g.c(l),T=m.next();!T.done;T=m.next())T=T.value,T.startSecs=Math.max(T.startSecs,this.bM()),this.V("html5_cuepoint_identifier_logging")&&T.event==="start"&&this.Tu("cuepoint",{pubCue:T.identifier,segNum:a});this.publish("cuepointupdated",l,a);this.M7+=l.length;if(P9(this)&&this.UL.bZ())for(l=g.c(l),m=l.next();!m.done;m=l.next())m=m.value,this.Tu("cuepoint",{segNum:a,event:m.event, startSecs:m.startSecs,id:m.identifier.slice(-16)}),m.event==="start"&&(m=m.startSecs,this.t7.start=this.wW,this.t7.end=m+3)}}}; g.Z.eA=function(){this.FO()||(this.loading=!1,this.publish("dataloaded"))}; g.Z.wR=function(){return this.eI!==void 0?this.eI:this.eI=!!this.u0||!!this.T&&Nn(this.T)}; g.Z.FR=function(a){var l=this;if(this.FO())return Sn();this.FU=this.Mj=this.Z=null;Yw(this,"html5_high_res_logging_always")&&(this.UL.Be=!0);return X_b(this,a).then(void 0,function(){return UWt(l,a)}).then(void 0,function(){return r_p(l)}).then(void 0,function(){return lVQ(l)})}; g.Z.fO=function(a){this.Z=a;YWd(this,this.Z.getAvailableAudioTracks());if(this.Z){a=g.c(this.Z.videoInfos);for(var l=a.next();!l.done;l=a.next()){l=l.value;var m=l.containerType;m!==0&&(this.NU[m]=l.id)}}a=this.getAvailableAudioTracks();a=a.concat(this.WE);for(l=0;l0?this.Z.getAvailableAudioTracks():this.rl||[]:[]}; g.Z.getAudioTrack=function(){var a=this;if(this.j&&!lH(this.j)){var l=g.Pn(this.getAvailableAudioTracks(),function(y){return y.id===a.j.id}),m; if(this.V("html5_sabr_skip_client_audio_init_selection")&&!l&&((m=this.j.WF)==null?0:m.id)){var T=this.j.WF.id;l=g.Pn(this.getAvailableAudioTracks(),function(y){return y.WF.id===T}); this.Tu("nat",{id:this.j.id,track:!!l})}return l||this.WE}if(this.rl){if(!this.JP)for(l=g.c(this.rl),m=l.next();!m.done;m=l.next())if(m=m.value,m.WF.getIsDefault()){this.JP=m;break}return this.JP||this.WE}return this.WE}; g.Z.getPlayerResponse=function(){return this.playerResponse}; g.Z.getWatchNextResponse=function(){return this.hM}; g.Z.getHeartbeatResponse=function(){return this.p9}; g.Z.mm=function(){return this.watchUrl?this.watchUrl:this.UL.getVideoUrl(this.videoId)}; g.Z.e8=function(){return!!this.T&&(a$d(this.T)||l$7(this.T)||mzH(this.T))}; g.Z.getEmbeddedPlayerResponse=function(){return this.f7}; g.Z.gk=function(){return(this.eventLabel||this.UL.hM)==="shortspage"}; g.Z.isAd=function(){return!!this.adFormat}; g.Z.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.Z.WN=function(){var a,l,m;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((a=this.playerResponse)==null?0:(l=a.playerConfig)==null?0:(m=l.daiConfig)==null?0:m.ssaEnabledPlayback)}; g.Z.uR=function(){return t8t(this)?this.F8:this.A6||this.TW}; g.Z.fP=function(){return this.ph||this.TW}; g.Z.EW=function(){return Yw(this,"html5_samsung_vp9_live")}; g.Z.Tu=function(a,l,m){this.publish("ctmp",a,l,m)}; g.Z.A2=function(a,l,m){this.publish("ctmpstr",a,l,m)}; g.Z.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.Z.getGetAdBreakContext=function(a,l){a=a===void 0?NaN:a;l=l===void 0?NaN:l;var m={isSabr:Mf(this)},T,y=(T=this.getHeartbeatResponse())==null?void 0:T.adBreakHeartbeatParams;y&&(m.adBreakHeartbeatParams=y);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(a)&&!isNaN(l)){l=a-l;for(var R in this.T.T)if(T=this.T.T[R],T.info.YN()||T.info.q2())if(T=T.index,T.isLoaded()){R=T.l$(l);T=T.V1(R)+l-T.getStartTime(R);this.Tu("gabc",{t:a.toFixed(3),mt:l.toFixed(3),sg:R,igt:T.toFixed(3)}); m.livePlaybackPosition={utcTimeMillis:""+(T*1E3).toFixed(0)};break}}return m}; g.Z.isEmbedsShortsMode=function(a,l){if(!g.vS(this.UL)||(this.UL.qj||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||l)return!1;var m,T;return!!(((m=this.embeddedPlayerConfig)==null?0:(T=m.embeddedPlayerFlags)==null?0:T.isShortsExperienceEligible)&&a.width<=a.height)}; g.Z.sL=function(){g.Aj.prototype.sL.call(this);this.Dk=null;delete this.zs;delete this.accountLinkingConfig;delete this.T;this.Z=this.p9=this.playerResponse=this.hM=null;this.VX=this.adaptiveFormats="";delete this.botguardData;this.wb=this.suggestions=this.CY=null;this.sabrContextUpdates.clear()};var $37={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},sh5={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},zKH={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},hKw={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"},Kct={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},O33={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"},vRQ={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.W(gf,g.k);g.Z=gf.prototype;g.Z.handleExternalCall=function(a,l,m){var T=this.state.B[a],y=this.state.J[a],R=T;if(y)if(m&&aq(m,I4s))R=y;else if(!T)throw Error('API call from an untrusted origin: "'+m+'"');this.logApiCall(a,m);if(R){m=!1;T=g.c(l);for(y=T.next();!y.done;y=T.next())if(String(y.value).includes("javascript:")){m=!0;break}m&&g.nU(Error('Dangerous call to "'+a+'" with ['+l+"]."));return R.apply(this,l)}throw Error('Unknown API method: "'+a+'".');}; g.Z.logApiCall=function(a,l,m){var T=this.app.Y();T.JP&&!this.state.N.has(a)&&(this.state.N.add(a),g.js("webPlayerApiCalled",{callerUrl:T.loaderUrl,methodName:a,origin:l||void 0,playerStyle:T.playerStyle||void 0,embeddedPlayerMode:T.qj,errorCode:m}))}; g.Z.publish=function(a){var l=g.Jz.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[a].concat(g.F(l)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.L.publish.apply(this.state.L,[a].concat(g.F(l))),this.state.j.publish.apply(this.state.j,[a].concat(g.F(l)))}; g.Z.Pz=function(a){var l=g.Jz.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[a].concat(g.F(l)));this.state.L.publish.apply(this.state.L,[a].concat(g.F(l)))}; g.Z.PN=function(a){var l=g.Jz.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[a].concat(g.F(l)));this.state.L.publish.apply(this.state.L,[a].concat(g.F(l)));this.state.j.publish.apply(this.state.j,[a].concat(g.F(l)))}; g.Z.Fe=function(a){var l=g.Jz.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[a].concat(g.F(l)));this.state.L.publish.apply(this.state.L,[a].concat(g.F(l)));this.state.j.publish.apply(this.state.j,[a].concat(g.F(l)));this.state.K.publish.apply(this.state.K,[a].concat(g.F(l)))}; g.Z.V=function(a){return this.app.Y().V(a)}; g.Z.sL=function(){if(this.state.element){var a=this.state.element,l;for(l in this.state.T)this.state.T.hasOwnProperty(l)&&(a[l]=null);this.state.element=null}g.k.prototype.sL.call(this)};g.W(AB,g.Ke);AB.prototype.publish=function(a){var l=g.Jz.apply(1,arguments);if(this.K.has(a))return this.K.get(a).push(l),!0;var m=!1;try{for(l=[l],this.K.set(a,l);l.length;)m=g.Ke.prototype.publish.call.apply(g.Ke.prototype.publish,[this,a].concat(g.F(l.shift())))}finally{this.K.delete(a)}return m};g.W(Pi,g.k);Pi.prototype.sL=function(){this.K.dispose();this.j.dispose();this.L.dispose();this.Z.dispose();this.N=this.T=this.J=this.B=this.C=void 0};var w1b=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.W(Va,gf);g.Z=Va.prototype;g.Z.getApiInterface=function(){return Array.from(this.state.C)}; g.Z.Yx=function(a,l){this.state.K.subscribe(a,l)}; g.Z.i$N=function(a,l){this.state.K.unsubscribe(a,l)}; g.Z.getPlayerState=function(a){return Y17(this.app,a)}; g.Z.Tr=function(){return Y17(this.app)}; g.Z.faM=function(a,l,m){Wi(this)&&(ft(this.app,!0,1),k3(this.app,a,l,m,1))}; g.Z.getCurrentTime=function(a,l,m){var T=this.getPlayerState(a);if(this.app.getAppState()===2&&T===5){var y;return((y=this.app.getVideoData())==null?void 0:y.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&T===0?OE(this.app,a):a?this.app.getCurrentTime(a,l,m):this.app.getCurrentTime(a)}; g.Z.XF=function(){return this.app.getCurrentTime(1)}; g.Z.N_=function(){var a=this.app.V1(1);return isNaN(a)?this.getCurrentTime(1):a}; g.Z.rz=function(){return this.app.getDuration(1)}; g.Z.Qv=function(a,l){a=g.Km(Math.floor(a),0,100);isFinite(a)&&Fs(this.app,{volume:a,muted:this.isMuted()},l)}; g.Z.cax=function(a){this.Qv(a,!1)}; g.Z.cK=function(a){Fs(this.app,{muted:!0,volume:this.getVolume()},a)}; g.Z.ejL=function(){this.cK(!1)}; g.Z.U8=function(a){Za(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||Fs(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)}; g.Z.tqx=function(){Za(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.U8(!1)}; g.Z.getPlayerMode=function(){var a={};this.app.getVideoData().Rh&&(a.pfp={enableIma:g.Tl(this.app.getVideoData())&&this.app.vY().allowImaMonetization,autoplay:nK(this.app.vY()),mutedAutoplay:this.app.vY().mutedAutoplay});return a}; g.Z.qm=function(){var a=this.app.getPresentingPlayerType();if(a===2&&!this.app.Gt()){var l=eO(this.app.iZ());if(!TwF(l)||yzd(l))return}(l=this.app.CH().W1)?l.playVideo():this.app.playVideo(a)}; g.Z.wYz=function(){ft(this.app,!0,1);this.qm()}; g.Z.pauseVideo=function(a){var l=this.app.getPresentingPlayerType();if(l!==2||this.app.Gt()||TwF(eO(this.app.iZ()))){var m=this.app.CH().W1;m?m.pauseVideo():this.app.pauseVideo(l,a)}}; g.Z.D2z=function(){var a=this.app,l=!1;a.aj.SW&&(a.bT.publish("pageTransition"),l=!0);a.stopVideo(l)}; g.Z.clearVideo=function(){}; g.Z.getAvailablePlaybackRates=function(){var a=this.app.Y();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.j?a.ancestorOrigins[0]:window.location.origin)||a.f2?p6r:a.supportsVarispeedExtendedFeatures?Zm_:a.V("web_remix_allow_up_to_3x_playback_rate")&&g.IE(a)?Wvg:FQ:[1]}; g.Z.getPlaybackQuality=function(a){return(a=this.app.EQ(a))?a.getPlaybackQuality():"unknown"}; g.Z.Mdg=function(){}; g.Z.getAvailableQualityLevels=function(a){return(a=this.app.EQ(a))?(a=g.xX(a.AK(),function(l){return l.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]}; g.Z.Yr=function(){return this.getAvailableQualityLevels(1)}; g.Z.U5=function(){return this.QT()}; g.Z.O5=function(){return 1}; g.Z.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; g.Z.QT=function(){return this.getVideoLoadedFraction()}; g.Z.h8=function(){return 0}; g.Z.getSize=function(){var a=this.app.cz().getPlayerSize();return{width:a.width,height:a.height}}; g.Z.setSize=function(){this.app.cz().resize()}; g.Z.loadVideoById=function(a,l,m,T){if(!a)return!1;a=Gl(a,l,m);return this.app.loadVideoByPlayerVars(a,T)}; g.Z.Px=function(a,l,m){a=this.loadVideoById(a,l,m,1);ft(this.app,a,1)}; g.Z.cueVideoById=function(a,l,m,T){a=Gl(a,l,m);this.app.cueVideoByPlayerVars(a,T)}; g.Z.Va=function(a,l,m){this.cueVideoById(a,l,m,1)}; g.Z.loadVideoByUrl=function(a,l,m,T){a=nRP(a,l,m);return this.app.loadVideoByPlayerVars(a,T)}; g.Z.z$=function(a,l,m){a=this.loadVideoByUrl(a,l,m,1);ft(this.app,a,1)}; g.Z.cueVideoByUrl=function(a,l,m,T){a=nRP(a,l,m);this.app.cueVideoByPlayerVars(a,T)}; g.Z.Sk=function(a,l,m){this.cueVideoByUrl(a,l,m,1)}; g.Z.E5=function(){var a=this.app.Y();if(a.lT)return"";var l=this.app.vY(),m=void 0;l.isLivePlayback||(m=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(l.videoId,this.getPlaylistId()||void 0,m)}; g.Z.Po=function(){return this.app.getDebugText()}; g.Z.getVideoEmbedCode=function(){var a=this.app.Y();if(a.lT)return"";var l=this.app.vY(),m=a.getVideoEmbedCode;l=l.isPrivate?"":l.title;var T=this.app.vY().videoId;return m.call(a,l,T,this.app.cz().getPlayerSize(),this.getPlaylistId()||void 0)}; g.Z.pS=function(a,l,m){return Rj7(this.app,a,l,m)}; g.Z.removeCueRange=function(a){return q4w(this.app,a)}; g.Z.loadPlaylist=function(a,l,m,T){this.app.loadPlaylist(a,l,m,T)}; g.Z.XZ=function(a,l,m,T){this.loadPlaylist(a,l,m,T);ft(this.app,!0,1)}; g.Z.cuePlaylist=function(a,l,m,T){this.app.cuePlaylist(a,l,m,T)}; g.Z.nextVideo=function(a,l){this.app.nextVideo(a,l)}; g.Z.mjx=function(){this.nextVideo();ft(this.app,!0,1)}; g.Z.previousVideo=function(a){this.app.previousVideo(a)}; g.Z.cbz=function(){this.previousVideo();ft(this.app,!0,1)}; g.Z.playVideoAt=function(a){this.app.playVideoAt(a)}; g.Z.Qug=function(a){this.playVideoAt(a);ft(this.app,!0,1)}; g.Z.setShuffle=function(a){var l=this.app.getPlaylist();l&&l.setShuffle(a)}; g.Z.setLoop=function(a){var l=this.app.getPlaylist();l&&(l.loop=a)}; g.Z.s5=function(){var a=this.app.getPlaylist();if(!a)return null;for(var l=[],m=0;m=400)if(a=g.B(this.vY()),this.D.Y().V("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var l,m,T,y;a=!!((l=a.getWatchNextResponse())==null?0:(m=l.contents)==null?0:(T=m.twoColumnWatchNextResults)==null?0:(y=T.autoplay)==null?0:y.autoplay)!==!1}if(a)this.T||(this.T=!0,this.zx(this.T),this.D.Y().V("web_player_autonav_toggle_always_listen")||de7(this), l=g.B(this.vY()),this.wV(l.autonavState),this.D.logVisibility(this.element,this.T));else if(this.T=!1,this.zx(this.T),!this.D.Y().V("web_player_autonav_toggle_always_listen"))for(this.D.Y().V("web_player_autonav_toggle_always_listen"),l=g.c(this.L),m=l.next();!m.done;m=l.next())this.DT(m.value)}; g.Z.wV=function(a){Avp(this)?this.isChecked=a!==1:((a=a!==1)||(g.EC(),a=g.Q7("web_autonav_allow_off_by_default")&&!g.oi(0,141)&&g.Uu("AUTONAV_OFF_BY_DEFAULT")?!1:!g.oi(0,140)),this.isChecked=a);jOz(this)}; g.Z.onClick=function(){this.isChecked=!this.isChecked;this.D.uj(this.isChecked?2:1);jOz(this);if(Avp(this)){var a=g.B(this.vY()).autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.D.Pz("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.D.Pz("innertubeCommand",a.onDisabledCommand)}this.D.logClick(this.element)}; g.Z.getValue=function(){return this.isChecked}; g.Z.vY=function(){return this.D.getVideoData(1)};g.W(Pot,rf);g.W(HR,g.ub);HR.prototype.onClick=function(){this.enabled&&(qH(this,!this.checked),this.publish("select",this.checked))}; HR.prototype.getValue=function(){return this.checked}; HR.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Vob=["en-CA","en","es-MX","fr-CA"];g.W(Ao,HR);Ao.prototype.k8=function(a){a?this.T||(this.Ob.mL(this),this.T=!0):this.T&&(this.Ob.W$(this),this.T=!1);this.T&&qH(this,efz())}; Ao.prototype.j=function(){g.dK(this.element,"ytp-menuitem-highlight-transition-enabled")}; Ao.prototype.Z=function(a){var l=efz();a!==l&&(l=g.EC(),DX(190,a),DX(192,!0),l.save(),this.D.Pz("cinematicSettingsToggleChange",a))}; Ao.prototype.sL=function(){this.T&&this.Ob.W$(this);HR.prototype.sL.call(this)};g.W(PR,rf);PR.prototype.updateCinematicSettings=function(a){this.T=a;var l;(l=this.menuItem)==null||l.k8(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.W(W5R,rf);g.W(Gp,rf);Gp.prototype.setCreatorEndscreenVisibility=function(a){var l;(l=Kx(this.api.iZ()))==null||l.zx(a)}; Gp.prototype.T=function(a){function l(T){T==="creatorendscreen"&&(T=Kx(m.api.iZ()))&&T.dAO(m.hideButton)} var m=this;this.hideButton=a;this.events.W(this.api,"modulecreated",l);l("creatorendscreen")};g.W(VW,HR);VW.prototype.j=function(a){this.Z(a?1:0)}; VW.prototype.L=function(){var a=this.hasDrcAudioTrack(),l=this.T()===1&&a;qH(this,l);this.setEnabled(a)}; VW.prototype.sL=function(){this.Ob.W$(this);HR.prototype.sL.call(this)};g.W(pO,rf);pO.prototype.getDrcUserPreference=function(){return this.T}; pO.prototype.setDrcUserPreference=function(a){g.JN("yt-player-drc-pref",a,31536E3);a!==this.T&&(this.T=a,this.updateEnvironmentData(),this.L()&&this.api.Uw())}; pO.prototype.updateEnvironmentData=function(){this.api.Y().kN=this.T===1}; pO.prototype.L=function(){var a,l,m=(a=this.api.getVideoData())==null?void 0:(l=a.Z)==null?void 0:l.T;if(!m)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var T,y,R=(T=this.api.Nc())==null?void 0:(y=T.WF)==null?void 0:y.id;return md(m,function(H){var b;return H.audio.T&&((b=H.WF)==null?void 0:b.id)===R})}return md(m,function(H){var b; return((b=H.audio)==null?void 0:b.T)===!0})};g.W(ZP,rf);ZP.prototype.onVideoDataChange=function(){var a=this,l=this.api.getVideoData();this.api.FJ("embargo",1);var m=l==null?void 0:l.FA.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(m==null?0:m.length)?L5b(this,m.filter(function(T){return cvt(a,T)})):(l==null?0:l.cueRanges)&&L5b(this,l.cueRanges.filter(function(T){return cvt(a,T)}))}; ZP.prototype.L=function(a){return a.embargo!==void 0}; ZP.prototype.sL=function(){rf.prototype.sL.call(this);this.T={}};g.W(WR,rf); WR.prototype.addEmbedsConversionTrackingParams=function(a){var l=this.api.Y(),m=l.widgetReferrer,T=l.tN,y=this.T,R="",H=l.getWebPlayerContextConfig();H&&(R=H.embedsIframeOriginParam||"");m.length>0&&(a.embeds_widget_referrer=m);T.length>0&&(a.embeds_referring_euri=T);l.j&&R.length>0&&(a.embeds_referring_origin=R);H&&H.embedsFeature&&(a.feature=H.embedsFeature);y.length>0&&(l.V("embeds_web_enable_lite_experiment_control_arm_logging")?y.unshift(28572):g.AN(g.w1(l))&&y.unshift(159628),l=y.join(","),l= g.ur()?l:g.yT(l,4),a.source_ve_path=l);this.T.length=0};g.W(NPl,rf);g.W(QO7,rf);g.W(cR,g.k);cR.prototype.sL=function(){g.k.prototype.sL.call(this);this.T=null;this.L&&this.L.disconnect()};g.W(eIP,rf);g.W(LO,g.x);LO.prototype.show=function(){g.x.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; LO.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null)}; LO.prototype.onVideoDataChange=function(a){var l,m,T=(l=this.api.getVideoData())==null?void 0:(m=l.getPlayerResponse())==null?void 0:m.playabilityStatus;T&&(l=F5z(T),g.u(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!l?(this.L=0,this.stopTimer(),this.hide()):(a=(l.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",hv(l.label)),Ood(this,a))))}; LO.prototype.sL=function(){this.stopTimer();g.x.prototype.sL.call(this)};g.W(K57,rf);g.W(NH,g.x);NH.prototype.onClick=function(){this.bT.logClick(this.element);this.bT.Pz("onFullerscreenEduClicked")}; NH.prototype.k8=function(){this.bT.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.bT.logVisibility(this.element,this.bT.isFullscreen()&&!this.T)};g.W(QW,rf);QW.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var l;(l=this.T)!=null&&(g.AM(l.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!l.L&&(l.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"),e3(l.bT,l.element,l),l.L=!0))}; QW.prototype.updateFullerscreenEduButtonVisibility=function(a){var l;(l=this.T)!=null&&(l.T=a,l.k8())};g.W(zId,g.x);g.W(sO3,rf);g.W(to,rf);to.prototype.getSphericalProperties=function(){var a=g.s2(this.api.iZ());return a?a.getSphericalProperties():{}}; to.prototype.setSphericalProperties=function(a){if(a){var l=g.s2(this.api.iZ());l&&l.setSphericalProperties(a,!0)}};g.W(ev,rf);g.Z=ev.prototype;g.Z.createClientVe=function(a,l,m,T){this.api.createClientVe(a,l,m,T===void 0?!1:T)}; g.Z.createServerVe=function(a,l,m){this.api.createServerVe(a,l,m===void 0?!1:m)}; g.Z.setTrackingParams=function(a,l){this.api.setTrackingParams(a,l)}; g.Z.logClick=function(a,l){this.api.logClick(a,l)}; g.Z.logVisibility=function(a,l,m){this.api.logVisibility(a,l,m)}; g.Z.hasVe=function(a){return this.api.hasVe(a)}; g.Z.destroyVe=function(a){this.api.destroyVe(a)};var fh5=!1;ho.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; ho.prototype.getPlaybackRate=function(){return this.playbackRate};$L.prototype.LB=function(a){var l=g.mH(a.info.T.info,this.Vg.Fl),m=a.info.mN+this.j,T=a.info.startTime*1E3;if(this.policy.Mj)try{T=this.policy.Mj?g.dS(a)*1E3:a.info.startTime*1E3}catch(H){Math.random()>.99&&this.logger&&(T=e2(a.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.LR(),encodedDataView:g.Tf(T,4)})),T=a.info.startTime*1E3}var y=a.info.clipId,R=this.policy.Mj?g.BV7(a)*1E3:a.info.duration*1E3;this.policy.Mj&&(T<0||R<0)&&(this.logger&&(this.logger({missingSegInfo:a.info.LR(), startTimeMs:T,durationMs:R}),this.policy.c7||(T<0&&(T=a.info.startTime*1E3),R<0&&(R=a.info.duration*1E3))),this.policy.c7&&(T<0&&(T=a.info.startTime*1E3),R<0&&(R=a.info.duration*1E3)));return{formatId:l,mN:m,startTimeMs:T,clipId:y,rA:R}}; $L.prototype.D5=function(a){this.timestampOffset=a};s7.prototype.seek=function(a,l){a!==this.T&&(this.seekCount=0);this.T=a;var m=this.videoTrack.L,T=this.audioTrack.L,y=this.audioTrack.VO,R=mnt(this,this.videoTrack,a,this.videoTrack.VO,l);l=mnt(this,this.audioTrack,this.policy.wO?a:R,y,l);a=Math.max(a,R,l);this.K=!0;this.Vg.isManifestless&&(Ya7(this,this.videoTrack,m),Ya7(this,this.audioTrack,T));return a}; s7.prototype.isSeeking=function(){return this.K}; s7.prototype.qf=function(a){this.Z=a}; var llw=2/24;var Rlz=0;g.Z=om.prototype;g.Z.yN=function(){this.N=this.now();Xsd(this.Og,this.N);this.qt.yN()}; g.Z.mQ=function(a,l){var m=this.policy.L?(0,g.E)():0;xL(this,a,l);a-this.C<10&&this.L>0||this.Z9(a,l);this.qt.mQ(a,l);this.policy.L&&(a=(0,g.E)()-m,this.uZ+=a,this.yg=Math.max(a,this.yg))}; g.Z.Z9=function(a,l){var m=(a-this.C)/1E3,T=l-this.Z;this.n2||(Nq(this.Og,m,T),this.UJ(m,T));this.C=a;this.Z=l}; g.Z.L2=function(){this.qj&&H_7(this);this.qt.L2()}; g.Z.C3=function(a){this.qj||(this.qj=this.K-this.SW+a,this.tN=this.K,this.Ug=this.B)}; g.Z.Lp=function(a,l){a=a===void 0?this.B:a;l=l===void 0?this.K:l;this.L>0||(this.J=a,this.L=l,this.Ij=this.isActive=!0)}; g.Z.B9=function(){return this.Ca||2}; g.Z.ZN=function(){}; g.Z.Vh=function(){var a,l={rn:this.requestNumber,rt:(this.B-this.T).toFixed(),lb:this.K,stall:(1E3*this.j).toFixed(),ht:(this.N-this.T).toFixed(),elt:(this.J-this.T).toFixed(),elb:this.L,d:(a=this.hM)==null?void 0:a.N2()};this.url&&Sa3(l,this.url);this.policy.L&&(l.mph=this.yg.toFixed(),l.tph=this.uZ.toFixed());l.ulb=this.Kx;l.ult=this.lT;return l}; g.Z.now=function(){return(0,g.E)()}; g.Z.deactivate=function(){this.isActive&&(this.isActive=!1)};g.W(us,om);g.Z=us.prototype;g.Z.Vh=function(){var a=om.prototype.Vh.call(this);a.pb=this.Pb;a.pt=(1E3*this.vF).toFixed();a.se=this.wW;return a}; g.Z.vZ=function(){var a=this.qt;this.Mj||(this.Mj=a.vZ?a.vZ():1);return this.Mj}; g.Z.bP=function(){return this.kW?this.vZ()!==1:!1}; g.Z.Ul=function(a,l,m){if(!this.QO){this.QO=!0;if(!this.n2){xL(this,a,l);this.Z9(a,l);var T=this.vZ();this.wW=m;if(!this.n2)if(T===2){T=a-this.J0)||XV(this,T,l),this.L>0&&cS(this.Og,l,this.j));a=(a-this.T)/ 1E3||.01;this.policy.J&&!(this.L>0)||WS(this.Og,a,this.Z,b_d(this),this.EZ)}this.deactivate()}}; g.Z.PB=function(a,l,m){m&&(this.Mj=2);a<0&&this.Ca&&(a=this.Ca);l?this.tM+=a:this.St+=a}; g.Z.B9=function(){return this.St||this.tM||om.prototype.B9.call(this)}; g.Z.Z9=function(a,l){var m=(a-this.C)/1E3,T=l-this.Z,y=this.vZ();this.isActive?y===1&&((T>0||this.policy.K)&&(m>.2||T<1024)?(this.j+=m,T>0&&m>.2&&XV(this,this.WV?m:.05,T),this.lZ=!0):T>0&&(XV(this,m,T),this.lZ=!0)):l&&l>=this.policy.T&&this.Lp(a,l);om.prototype.Z9.call(this,a,l)}; g.Z.T0=function(a){if(!this.n2){xL(this,a,this.K);var l=(a-this.T)/1E3;this.vZ()!==2&&this.L>0&&(this.j+=(a-this.C)/1E3,cS(this.Og,this.Z,this.j));WS(this.Og,l,this.Z,b_d(this),this.EZ,!0);a=(a-this.C)/1E3;Nq(this.Og,a,0);this.UJ(a,0)}}; g.Z.Lp=function(a,l){a=a===void 0?this.B:a;l=l===void 0?this.K:l;if(!(this.L>0)&&(om.prototype.Lp.call(this,a,l),this.vZ()===1)){l=(this.N-this.T)/1E3;var m=(a-this.N)/1E3;this.kW&&YL(this,this.now());this.ZR||this.n2||(this.Ca&&(m=Math.max(0,m-this.Ca)),a=this.Og,a.J.wk(1,l),a.hM.wk(1,m))}}; g.Z.SB=function(){this.kW&&YL(this,this.now());return this.AM}; g.Z.VS=function(){var a;if(a=this.Z>this.IQ)a=(a=this.Z)?a>=this.policy.T:!1;return a}; g.Z.p4=function(){return this.wb}; g.Z.pk=function(a){a=a===void 0?this.now():a;if(this.kW){YL(this,a);if(this.Mj?this.bP():this.jt!==this.Cx){var l=this.Cx;if(a0?m+a:m+Math.max(a,l)}; g.Z.C4=function(){return this.now()-this.J}; g.Z.Bc=function(){return(this.Z-this.L)*1E3/this.C4()||0}; g.Z.JU=function(){return this.J};U7.prototype.feed=function(a){L8(this.T,a);this.qI()}; U7.prototype.qI=function(){if(this.j){if(!this.T.getLength())return;var a=this.T.split(this.Z-this.L),l=a.N$;a=a.Xm;if(!this.qt.C3(this.j,l,this.L,this.Z))return;this.L+=l.getLength();this.T=a;this.L===this.Z&&(this.j=this.Z=this.L=void 0)}for(;;){var m=0;a=g.c(dnb(this.T,m));l=a.next().value;m=a.next().value;m=g.c(dnb(this.T,m));a=m.next().value;m=m.next().value;if(l<0||a<0)break;if(!this.T.iO(m,a)){if(!this.qt.C3||!this.T.iO(m,1))break;m=this.T.split(m).Xm;this.qt.C3(l,m,0,a)&&(this.j=l,this.L= m.getLength(),this.Z=a,this.T=new cX([]));break}a=this.T.split(m).Xm.split(a);m=a.Xm;this.qt.xS(l,a.N$);this.T=m}}; U7.prototype.dispose=function(){this.T=new cX};g.Z=r5.prototype;g.Z.ZB=function(){return 0}; g.Z.K4=function(){return null}; g.Z.EE=function(){return null}; g.Z.Dg=function(){return this.state>=1}; g.Z.isComplete=function(){return this.state>=3}; g.Z.BV=function(){return this.state===5}; g.Z.onStateChange=function(){}; g.Z.Rf=function(a){var l=this.state;this.state=a;this.onStateChange(l);this.callback&&this.callback(this,l)}; g.Z.uU=function(a){a&&this.state=this.xhr.HEADERS_RECEIVED}; g.Z.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(l){return""}}; g.Z.Gc=function(){return+this.getResponseHeader("content-length")}; g.Z.OO=function(){return this.L}; g.Z.FI=function(){return this.status>=200&&this.status<300&&!!this.L}; g.Z.Vr=function(){return this.T.getLength()>0}; g.Z.QJ=function(){var a=this.T;this.T=new cX;return a}; g.Z.MQ=function(){return this.T}; g.Z.abort=function(){this.FO=!0;this.xhr.abort()}; g.Z.kE=function(){return!0}; g.Z.Ti=function(){return this.Z}; g.Z.La=function(){return""};mT.prototype.Qr=function(a,l){l=l===void 0?1:l;this.D0+=l;this.L+=a;a/=l;for(var m=0;m0)T+="."+lm[y].toFixed(0)+"_"+m.T[y].toFixed(0);else break;m=T}m&&(a[l]=m)}this.T=new APl;return a}; g.Z.toString=function(){return""};g.Z=Z_d.prototype;g.Z.isActive=function(){return!1}; g.Z.ZA=function(){}; g.Z.Rp=function(){}; g.Z.h7=function(){}; g.Z.Ga=function(){}; g.Z.BD=function(a,l){l()}; g.Z.vT=function(){return{}}; g.Z.toString=function(){return""};var q_,Qjn,t$d,enI,FEn,bk,Lx,yI,vop;q_=new Z_d;Qjn=!!+rh("html5_enable_profiler");t$d=!!+rh("html5_onesie_enable_profiler");enI=!!+rh("html5_offline_encryption_enable_profiler");FEn=!!+rh("html5_performance_impact_profiling_timer_ms");bk=Qjn||t$d||enI||FEn?new Gu5:q_;g.$D=Qjn?bk:q_;Lx=t$d?bk:q_;yI=enI?bk:q_;vop=FEn?bk:q_;g.Z=L23.prototype;g.Z.getResponseHeader=function(a){return a==="content-type"?this.T.get("type"):""}; g.Z.abort=function(){}; g.Z.Ir=function(){return!0}; g.Z.Gc=function(){return this.range.length}; g.Z.OO=function(){return this.loaded}; g.Z.FI=function(){return!!this.loaded}; g.Z.Vr=function(){return!!this.L.getLength()}; g.Z.QJ=function(){var a=this.L;this.L=new cX;return a}; g.Z.MQ=function(){return this.L}; g.Z.kE=function(){return!0}; g.Z.Ti=function(){return!!this.error}; g.Z.La=function(){return this.error};g.Z=Qgd.prototype;g.Z.start=function(a){var l={credentials:"include",cache:"no-store"};Object.assign(l,this.B);this.j&&(l.signal=this.j.signal);a=new Request(a,l);fetch(a).then(this.N,this.onError).then(void 0,dC)}; g.Z.onDone=function(){this.FO()||this.qt.L2()}; g.Z.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null}; g.Z.Ir=function(){return!!this.responseHeaders}; g.Z.OO=function(){return this.L}; g.Z.Gc=function(){return+this.getResponseHeader("content-length")}; g.Z.FI=function(){return this.status>=200&&this.status<300&&!!this.L}; g.Z.Vr=function(){return!!this.T.getLength()}; g.Z.QJ=function(){this.Vr();var a=this.T;this.T=new cX;return a}; g.Z.MQ=function(){this.Vr();return this.T}; g.Z.FO=function(){return this.K}; g.Z.abort=function(){this.Z&&this.Z.cancel().catch(function(){}); this.j&&this.j.abort();this.K=!0}; g.Z.kE=function(){return!0}; g.Z.Ti=function(){return this.C}; g.Z.La=function(){return this.errorMessage};g.Z=tRH.prototype;g.Z.onDone=function(){if(!this.FO){this.status=this.xhr.status;try{this.response=this.xhr.response,this.L=this.response.byteLength}catch(a){}this.T=!0;this.qt.L2()}}; g.Z.mF=function(){this.xhr.readyState===2&&this.qt.yN()}; g.Z.Sq=function(a){this.FO||(this.status=this.xhr.status,this.T||(this.L=a.loaded),this.qt.mQ((0,g.E)(),a.loaded))}; g.Z.Ir=function(){return this.xhr.readyState>=2}; g.Z.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(l){return g.nU(Error("Could not read XHR header "+a)),""}}; g.Z.Gc=function(){return+this.getResponseHeader("content-length")}; g.Z.OO=function(){return this.L}; g.Z.FI=function(){return this.status>=200&&this.status<300&&this.T&&!!this.L}; g.Z.Vr=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.Z.QJ=function(){this.Vr();var a=this.response;this.response=void 0;return new cX([new Uint8Array(a)])}; g.Z.MQ=function(){this.Vr();return new cX([new Uint8Array(this.response)])}; g.Z.abort=function(){this.FO=!0;this.xhr.abort()}; g.Z.kE=function(){return!1}; g.Z.Ti=function(){return!1}; g.Z.La=function(){return""};g.W(Hz,g.k);Hz.prototype.HV=function(){if(!this.He.length)return[];var a=this.He;this.He=[];this.Z=g.jc(a).info;return a}; Hz.prototype.dH=function(){return this.He}; Hz.prototype.sL=function(){g.k.prototype.sL.call(this);this.T=null;this.He.length=0;this.gb.length=0;this.Z=null};g.W(bm,g.k);g.Z=bm.prototype; g.Z.uej=function(){if(!this.FO()){var a=(0,g.E)(),l=!1;if(this.policy.cI){a=a-(this.timing.L>0?this.timing.J:this.timing.T)-this.timing.B9()*1E3;var m=hi(gW(this),!1);a>=2E3*m?l=!0:a>=this.policy.Nx*m&&(this.T=this.policy.rl)}else if(this.timing.L>0){if(this.K){this.policy.wW&&(this.T=0);return}var T=this.timing.p4();this.timing.pk();var y=this.timing.p4();y-T>=this.policy.VX*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(y-T).toFixed(0)}),l=this.T>=5):this.T=0}else{var R=a-this.timing.SB(); this.policy.rl&&R>0&&(this.T+=1);l=hi(gW(this),!1)*this.policy.Xb;(l=R>l*1E3)&&this.logger.debug(function(){return"Elbow late by "+R.toFixed(3)})}this.T>0&&this.qt.rh(); l?this.pp():this.L.start()}}; g.Z.pp=function(){this.j=!0;this.qt.qc();this.lastError="net.timeout";im(this)}; g.Z.canRetry=function(a){var l=gW(this);a=a?this.policy.f1:this.policy.W4;return l.timedOut0&&(l=l.T.getUint8(0),a.ubyte=l,m===1&&l===0&&(a.b248180278=!0))}this.At&&(a.rc=this.policy.Ns?this.At:this.At.toString());this.policy.FU&&this.KK&&(a.tr=this.KK);a.itag=this.info.gb[0].T.info.itag;a.ml=""+ +this.info.gb[0].T.Du();a.sq=""+this.info.gb[0].mN;this.Z6&&(a.ifi=""+ +SR(this.info.DR.L));this.At!==410&&this.At!==500&&this.At!==503||(a.fmt_unav="true");var T;(m=this.errorMessage||((T=this.xhr)==null? void 0:T.La()))&&(a.msg=m);this.HQ&&(a.smb="1");this.info.isDecorated()&&(a.sdai="1");return a}; g.Z.jB=function(){return gyR(this.timing)}; g.Z.La=function(){return this.xhr.La()||""}; g.Z.VS=function(){return this.isComplete()||this.timing.VS()}; g.Z.mQ=function(){!this.FO()&&this.xhr&&(this.At=this.xhr.status,this.policy.oR&&this.U0&&this.D3(!1),this.B7()?this.uU(2):!this.IU&&this.VS()&&(this.uU(),this.IU=!0))}; g.Z.yN=function(){if(!this.FO()&&this.xhr){if(!this.S1&&this.xhr.Ir()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.S1=((0,g.E)()-a)/1E3}this.xhr.Ir()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.di&&!nI7()&&g.JN("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var l=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),m;(m=this.Yn)==null||m.stop();this.uY=a||this.uY; this.u1=l||this.u1}}; g.Z.L2=function(){var a=this.xhr;if(!this.FO()&&a){this.At=a.status;a=this.y6(a);if(this.policy.FU){var l;(l=this.Yn)==null||l.stop()}a===5?im(this.CR):this.Rf(a);this.CR.L.stop()}}; g.Z.y6=function(a){var l=this;Rk5(this);if(dW(this.CR,this.xhr.status,this.S5?this.timing.Ij||this.jh:this.xhr.FI(),!1,this.bO))return 5;var m="";jV(this.CR,this.xhr)&&(m=zlw(this.CR,this.xhr));if(m)return Fr(gW(this.CR)),this.info.UH(this.Z6,m),3;m=a.OO();if(this.PV){this.D3(!0);Rk5(this);if(dW(this.CR,this.xhr.status,this.timing.Ij||this.jh,!1,this.bO))return 5;if(!this.wC){if(this.jh)return Fr(gW(this.CR)),3;this.CR.lastError="net.closed";return 5}}else{if(dW(this.CR,this.xhr.status,this.xhr.FI(), !1,this.bO))return 5;var T=this.info.Z;if(T&&T!==m||a.Ti())return this.CR.lastError="net.closed",5;this.D3(!0)}T=jgt(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=jgt(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.W3=!0,this.policy.nf&&(T=a);O_w(this.CR,m,T?Number(T):0,this.info.gb[0].type===5);this.logger.debug(function(){var y=l.timing;return"Succeeded, rtpd="+(y.vF*1E3+y.T-Date.now()).toFixed(0)}); return 4}; g.Z.canRetry=function(){this.FO();var a=this.info.isDecorated();return this.CR.canRetry(a)}; g.Z.onStateChange=function(){this.isComplete()&&(this.policy.bY?this.qc():this.timing.deactivate())}; g.Z.pp=function(){this.CR.pp()}; g.Z.rh=function(){this.callback&&this.callback(this,this.state)}; g.Z.t5=function(){return this.CR.t5()}; g.Z.dispose=function(){r5.prototype.dispose.call(this);this.CR.dispose();var a;(a=this.Yn)==null||a.dispose();this.policy.bY||this.qc()}; g.Z.qc=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.Z.HV=function(){if(!this.dH().length)return[];this.nQ=!0;return this.U0.HV()}; g.Z.B7=function(){if(this.state<1)return!1;if(this.U0&&this.U0.He.length)return!0;var a;return((a=this.xhr)==null?0:a.Vr())?!0:!1}; g.Z.dH=function(){this.D3(!1);return this.U0?this.U0.dH():[]}; g.Z.D3=function(a){try{if(a||this.xhr.Ir()&&this.xhr.Vr()&&!jV(this.CR,this.xhr)&&!this.Bq)this.U0||(this.U0=new Hz(this.policy,this.info.gb)),this.xhr.Vr()&&(this.PV?this.PV.feed(this.xhr.QJ()):qT(this.U0,this.xhr.QJ(),a&&!this.xhr.Vr()))}catch(l){this.PV?mAb(this,l):g.nU(l)}}; g.Z.xS=function(a,l){switch(a){case 21:a=l.split(1).Xm;THR(this,a);break;case 22:this.wC=!0;qT(this.U0,new cX([]),!0);break;case 43:if(a=n8(new s5(l),1))this.info.UH(this.Z6,a),this.jh=!0;break;case 45:l=gu(new s5(l));a=l.yd;l=l.Nm;a&&l&&(this.BX=a/l);break;case 44:this.Gj=nZt(new s5(l));var m,T,y;!this.timing.Ij&&((m=this.Gj)==null?void 0:m.action)===4&&((T=this.Gj)==null?0:(y=T.xI)==null?0:y.S5)&&(this.S5=this.Gj.xI.S5);break;case 53:this.policy.FU&&(a=JgQ(new s5(l)).WZ)&&(this.Yn||(this.WZ=a,this.Yn= new g.aH(this.q5,a,this)),this.Yn.start());break;case 60:this.NR=bc(new s5(l));break;case 58:if(a=PlH(new s5(l)))this.IR=a,a.IR===3&&(this.bO=!0)}}; g.Z.C3=function(a,l,m,T){m||this.timing.C3(T);if(a!==21)return!1;if(a=this.policy.oR)if(T=l.getLength()+m===T,a*=this.info.gb[0].T.info.Nj,!T&&l.getLength()0)return!1;if(!this.xhr.Ir())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.PV)var a=!this.info.Z;else this.xhr.Gc()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a=a==="audio/mp4"||a==="video/mp4"||a==="video/webm");if(!a)return!1;if(isNaN(this.info.OF)){a=this.xhr.getResponseHeader("x-head-seqnum");var l=this.timing.policy.B?1:0;if(!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(a)>this.info.gb[0].mN+l)return!1}return!0}; g.Z.fQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.Z.K4=function(){this.xhr&&(this.uY=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.uY}; g.Z.EE=function(){this.xhr&&(this.u1=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.u1}; g.Z.YA=function(){return this.CR.YA()}; g.Z.q5=function(){if(!this.FO()&&this.xhr){this.KK="heartbeat";var a=this.CR;a.T+=2;this.rh()}};g.W(Lg,om);g.Z=Lg.prototype;g.Z.Z9=function(a,l){var m=(a-this.C)/1E3,T=l-this.Z;this.L>0?T>0&&(this.jt&&(m>.2||T<1024?(this.j+=m,m>.2&&HN5(this,.05,T)):HN5(this,m,T)),this.Cx&&(this.AM+=T,this.St+=m)):l>this.policy.T&&this.Lp(a,l);om.prototype.Z9.call(this,a,l)}; g.Z.Ul=function(a,l){xL(this,a,l);this.Z9(a,l);this.jt&&(l=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.L>0&&cS(this.Og,this.AM,this.j),a=(a-this.T)/1E3||.01,this.policy.J&&!(this.L>0)||WS(this.Og,a,this.Z,l,!1))}; g.Z.T0=function(a){xL(this,a,this.K);var l=(a-this.C)/1E3;Nq(this.Og,l,0);this.UJ(l,0);!this.jt&&this.L>0||(l=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.L>0&&(this.j+=(a-this.C)/1E3,cS(this.Og,this.AM,this.j)),WS(this.Og,((a-this.T)/1E3||.01)*this.policy.Ij,this.Z,l,!1,!0))}; g.Z.QA=function(a){a=a.pw||2147483647;(a&2)!==2&&(this.Cx=!1);(a&1)===1&&(this.jt=!0)}; g.Z.Bw=function(a){a=a.pw||2147483647;(a&2)===2&&(this.Cx=!1);(a&1)===1&&(this.jt=!1)}; g.Z.JU=function(){return this.J}; g.Z.C4=function(){var a=this.Cx?this.now()-this.C:0;return Math.max(this.St*1E3+a,1)}; g.Z.Bc=function(){return this.AM*1E3/this.C4()}; g.Z.Lp=function(a,l){a=a===void 0?this.B:a;l=l===void 0?this.K:l;this.L>0||(om.prototype.Lp.call(this,a,l),l=this.Og,a=(a-this.N)/1E3,l.J.wk(1,(this.N-this.T)/1E3),l.hM.wk(1,a))}; g.Z.ZN=function(a){this.tM=a}; g.Z.Vh=function(){var a=om.prototype.Vh.call(this);a.rbw=this.Bc();a.rbe=+this.Cx;a.gbe=+this.jt;a.ackt=(this.tM-this.T).toFixed();return a}; g.Z.pk=function(){}; g.Z.p4=function(){return NaN}; g.Z.SB=function(){return this.T+this.snapshot.delay*1E3};NT.prototype.xS=function(a,l){l.getLength();switch(a){case 20:a=new s5(l);a={dU:JL(a,1),videoId:n8(a,2),itag:JL(a,3),lmt:JL(a,4),xtags:n8(a,5),cq:JL(a,6),rU:BX(a,8),qH:JL(a,9),PAj:JL(a,10),startMs:JL(a,11),durationMs:JL(a,12),Yt:JL(a,14),timeRange:ws(a,15,rZt),Ry:JL(a,16),Ls:JL(a,17),clipId:n8(a,1E3)};this.YO(a);break;case 21:this.Rw(l,!1);break;case 22:this.p6(l);break;case 31:a=E5(l,Ohw);this.XP(a);break;case 52:a=E5(l,B$7);this.KZ(a);break;default:this.F_(a,l)}}; NT.prototype.YO=function(){}; NT.prototype.F_=function(){};g.W(QI,NT);g.Z=QI.prototype; g.Z.F_=function(a,l){l.getLength();switch(a){case 35:this.Ri(l);break;case 44:this.JA(l);break;case 43:this.rY(l);break;case 53:this.X_(l);break;case 55:a=new s5(l);ws(a,1,Idl);ws(a,2,oZt);break;case 56:this.kP();break;case 57:this.iC(l);break;case 42:this.BR(l);break;case 45:this.Ye(l);break;case 59:this.Ww(l);break;case 51:this.Rx(l);break;case 49:this.QA(l);break;case 50:this.Bw(l);break;case 47:this.pc(l);break;case 58:this.GD(l);break;case 61:this.qt.NN.ZN((0,g.E)());break;case 66:this.eE(l); break;case 46:this.bb(l);break;case 67:this.onSnackbarMessage(l)}}; g.Z.Rx=function(a){a=new s5(a);a={Qku:C8(a,1,Hx),Y$j:C8(a,2,Hx)};this.qt.Rx(a)}; g.Z.Ww=function(a){var l=new s5(a);a=I7(l,1);var m=I7(l,2);l=I7(l,3);this.qt.Ww(a,m,l)}; g.Z.Ye=function(a){a=gu(new s5(a));this.qt.Ye(a)}; g.Z.pc=function(a){a=E5(a,vZ3);this.qt.pc(a)}; g.Z.BR=function(a){a=new s5(a);a={videoId:n8(a,1),formatId:ws(a,2,Hx),endTimeMs:JL(a,3),lzu:JL(a,4),mimeType:n8(a,5),oU:ws(a,6,N$Q),indexRange:ws(a,7,N$Q),nA:ws(a,8,Qq3)};this.qt.BR(a)}; g.Z.iC=function(a){a=oZt(new s5(a));this.qt.iC(a)}; g.Z.kP=function(){this.qt.kP()}; g.Z.Ri=function(a){a=KwQ(new s5(a));this.qt.Ri(a)}; g.Z.X_=function(a){a=JgQ(new s5(a));this.qt.X_(a)}; g.Z.JA=function(a){a=nZt(new s5(a));this.qt.JA(a)}; g.Z.rY=function(a){a={redirectUrl:n8(new s5(a),1)};this.qt.rY(a)}; g.Z.Rw=function(a){var l=a.getUint8(0);if(a.getLength()!==1){a=a.split(1).Xm;var m=this.L[l]||null;m&&zz(this.qt.NA,l,m,a)}}; g.Z.p6=function(a){a=a.getUint8(0);var l=this.L[a]||null;l&&this.qt.p6(a,l)}; g.Z.KZ=function(a){this.qt.KZ(a)}; g.Z.YO=function(a){var l=a.dU,m=a.rU,T=a.cq,y=a.Ls,R=a.Ry,H=a.qH,b=a.startMs,M=a.durationMs,d=a.timeRange,A=a.Yt,P=a.clipId,G=S4(a);a=ydd.has(o_[""+a.itag]);this.L[l]=G;this.qt.PB(G,a,{dU:l,rU:!!m,cq:T!=null?T:-1,qH:H!=null?H:-1,startMs:b!=null?b:-1,durationMs:M!=null?M:-1,Yt:A,Ls:y,Ry:R,clipId:P,timeRange:d})}; g.Z.QA=function(a){a={pw:JL(new s5(a),1)};this.qt.QA(a)}; g.Z.Bw=function(a){a={pw:JL(new s5(a),1)};this.qt.Bw(a)}; g.Z.XP=function(a){this.qt.XP(a)}; g.Z.GD=function(a){a=PlH(new s5(a));this.qt.GD(a)}; g.Z.eE=function(a){a={fB:ws(new s5(a),1,SbR)};this.qt.eE(a)}; g.Z.onSnackbarMessage=function(a){a=JL(new s5(a),1);this.qt.onSnackbarMessage(a)}; g.Z.bb=function(a){a={reloadPlaybackParams:ws(new s5(a),1,Agd)};this.qt.bb(a)};g.W(tt,g.k);g.Z=tt.prototype;g.Z.YB=function(){return Array.from(this.Sx.keys())}; g.Z.P5=function(a){a=this.Sx.get(a);var l=a.He;a.Fq+=l.getLength();a.He=new cX;return l}; g.Z.gL=function(a){return this.Sx.get(a).gL}; g.Z.C1=function(a){return this.Sx.get(a).C1}; g.Z.PB=function(a,l,m,T){this.Sx.get(a)||iN7(this,a,l);l=this.Sx.get(a);if(this.Vg){a=jG5(this,a,m);if(T)for(var y=g.c(a),R=y.next();!R.done;R=y.next()){R=R.value;var H=T;R.lT=H;R.startTime+=H;R.j+=H;R.C+=H}dAt(this,m.dU,l,a)}else m.rU?l.uX=m.Yt:l.qM.push(m),l.aA.push(m)}; g.Z.Ut=function(a){var l;return((l=this.Sx.get(a))==null?void 0:l.gb)||[]}; g.Z.uU=function(){for(var a=g.c(this.Sx.values()),l=a.next();!l.done;l=a.next())l=l.value,l.FL&&(l.Sq&&l.Sq(),l.FL=!1)}; g.Z.p6=function(a,l){this.logger.debug(function(){return"[onMediaEnd] formatId: "+l}); var m=this.Sx.get(l);if(eV){if(m&&!m.gL){if(m.x7.get(a))m.x7.get(a).FD=!0;else{var T;((T=this.l0)==null?0:T.Ug)&&m.x7.set(a,{data:new cX,Vc:0,FD:!0})}m.C1=!0}}else m&&!m.C1&&(m.C1=!0)}; g.Z.HV=function(a){if(eV){var l=this.Sx.get(a);if(l)for(var m=g.c(l.x7),T=m.next();!T.done;T=m.next()){var y=g.c(T.value);T=y.next().value;y=y.next().value;var R=l.YG.get(T);if(IG(R[0])){if(!y.FD)continue;var H=R,b=y.data;b.getLength();R=0;var M=[];H=g.c(H);for(var d=H.next();!d.done;d=H.next()){d=d.value;var A=d.Z,P=ND(b,R,A);R+=A;M.push(new MO(d,P))}l.GG.push.apply(l.GG,g.F(M))}else if(y.data.getLength()>0||!R[0].range&&y.FD)b=void 0,R=R[0],M=y.Vc,H=y.data,R.range||(b=y.FD),d=H.getLength(),b=new MO(di7(R, R.L+M,d,b),H),y.Vc+=b.info.Z,l.GG.push(b);l.x7.get(T).data=new cX;y.FD&&l.x7.delete(T)}a=this.Sx.get(a);if(!a)return[];l=a.GG;a.GG=[];m=g.c(l);for(T=m.next();!T.done;T=m.next())a.Fq+=T.value.info.Z;return l||[]}m=(l=this.Sx.get(a))==null?void 0:l.U0;if(!m)return[];this.D3(a,m);return m.HV()}; g.Z.B7=function(a){if(eV)return Kg(this,a);var l,m,T;return!!((m=(l=this.Sx.get(a))==null?void 0:l.U0)==null?0:(T=m.dH())==null?0:T.length)||Kg(this,a)}; g.Z.D3=function(a,l){for(;Kg(this,a);){var m=this.P5(a);var T=a;T=this.Sx.get(T).gL&&!Oo(this,T);qT(l,m,T&&M4b(this,a))}}; g.Z.sL=function(){g.k.prototype.sL.call(this);for(var a=g.c(this.Sx.keys()),l=a.next();!l.done;l=a.next())FR(this,l.value);var m;if((m=this.l0)==null?0:m.zz)for(a=g.c(this.Sx.values()),l=a.next();!l.done;l=a.next())l=l.value,l.x7.clear(),l.YG.clear(),l.GG.length=0,l.gb.length=0,l.aA.length=0,l.qM.length=0;this.Sx.clear()}; var eV=!1;g.W(vz,g.k);g.Z=vz.prototype;g.Z.mQ=function(){!this.FO()&&this.xhr&&(this.D3(!1),Ir(this.qt,this))}; g.Z.yN=function(){}; g.Z.L2=function(){if(!this.FO()&&this.xhr){var a=this.y6();a===5?im(this.CR):this.Rf(a);this.CR.L.stop();var l;(l=this.i8)==null||l.stop()}}; g.Z.y6=function(){var a="";jV(this.CR,this.xhr)&&(a=zlw(this.CR,this.xhr));if(a)return this.info.DR.UH(this.Z6,a),3;this.D3(!0);if(dW(this.CR,this.xhr.status,this.xhr.FI(),this.info.Ik(),this.bO))return 5;if(this.Ak)return 3;O_w(this.CR,this.xhr.OO(),0,this.Ik());this.policy.tN&&HKz(this.qt);return 4}; g.Z.D3=function(a){var l=this.xhr;if((a||!jV(this.CR,this.xhr))&&l.Vr()){a=l.QJ();var m=a.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+m}); this.PV.feed(a)}}; g.Z.xS=function(a,l){this.xhr.kE()&&a===21&&pOd(this);this.VK.xS(a,l)}; g.Z.C3=function(a,l,m,T){m||(this.NN.C3(T),this.policy.Bh&&a===21&&pOd(this));if(a!==21)return!1;this.NN.Ij=!0;a=l.getLength();m||(this.x4=l.getUint8(0),l=l.split(1).Xm);var y=this.policy.cg,R=this.VK.L[this.x4],H=this.Vg.Z.get(R);if(y&&H&&(y*=H.info.Nj,a+m!==T&&a0){this.policy.cI&&this.CR.L.stop();a=this.NN.C4();l=this.NN.Bc();var m=ZN7(this,a);if(!(l>m.PK||m.Iw>0&&this.info.hG()>m.Iw)){this.Qd=(0,g.E)();var T;(T=this.i8)==null||T.stop();this.policy.tN&&(T=this.qt,a={QB:Math.round(l*a/1E3),XI:a},T.policy.tN&&(T.qj=a,T.gP++));this.pp()}}}}; g.Z.pp=function(){this.CR.pp()}; g.Z.JA=function(a){this.qt.JA(a,this.j7())}; g.Z.rY=function(a){this.Ak=!0;this.info.DR.UH(this.Z6,a.redirectUrl)}; g.Z.QA=function(a){this.NN instanceof Lg&&this.NN.QA(a)}; g.Z.Bw=function(a){this.NN instanceof Lg&&this.NN.Bw(a)}; g.Z.BR=function(a){var l=a.formatId,m=S4({itag:l.itag,lmt:l.lmt,xtags:l.xtags}),T,y,R=new Ji(((T=a.oU)==null?void 0:T.first)||0,((y=a.oU)==null?void 0:y.fI)||0),H,b;T=new Ji(((H=a.indexRange)==null?void 0:H.first)||0,((b=a.indexRange)==null?void 0:b.fI)||0);if(!this.Vg.Z.get(m)){m=a.nA||{};if(this.policy.p9){var M,d;a=(M=a.mimeType)!=null?M:"";M=(d=l.itag)!=null?d:0;d=o_[""+M];m.mimeType=d!=="9"&&d!=="9h"?a:'video/webm; codecs="'+["vp09",d==="9h"?"02":"00","51",d==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else m.mimeType=a.mimeType;m.itag=l.itag;m.lastModified=""+(l.lmt||0);m.xtags=l.xtags;l=this.Vg;d=Oj("");M=Fi(m,null);cK(l,new pS(d,M,R,T))}}; g.Z.Ye=function(a){this.qt.Ye(a)}; g.Z.onSnackbarMessage=function(a){if(this.policy.XS)this.qt.onSnackbarMessage(a)}; g.Z.XP=function(a){this.xb=a;this.y9=(0,g.E)();this.qt.XP(a)}; g.Z.Ww=function(a,l,m){this.qt.Ww(a,l,m)}; g.Z.iC=function(a){a.scope===2&&(this.cD=a);this.qt.iC(a)}; g.Z.kP=function(){this.X7=!0;this.qt.kP()}; g.Z.Rx=function(a){this.policy.xe&&this.qt.Rx(a)}; g.Z.pc=function(a){this.qt.pc(a,this.j7())}; g.Z.GD=function(a){a.IR===3&&(this.bO=!0);this.qt.GD(a)}; g.Z.eE=function(a){this.qt.eE(a)}; g.Z.bb=function(a){this.qt.bb(a)}; g.Z.canRetry=function(){this.FO();return this.CR.canRetry(!1)}; g.Z.dispose=function(){if(!this.FO()){g.k.prototype.dispose.call(this);this.CR.dispose();var a;(a=this.i8)==null||a.dispose();this.Rf(-1);this.qc()}}; g.Z.Rf=function(a){this.state=a;Ir(this.qt,this)}; g.Z.Ik=function(){return this.info.Ik()}; g.Z.HG=function(){return this.X7}; g.Z.Wc=function(){return this.cD}; g.Z.PB=function(a,l,m){m.clipId&&(this.clipId=m.clipId);this.policy.Z&&!l&&(this.w6=m.qH);this.NA.PB(a,l,m,0);if(this.policy.Gz&&this.xb&&this.NN instanceof us){var T=this.xb.Az;this.NN.PB(m.durationMs/1E3,l,T>0&&m.qH+1>=T)}this.NA.Sx.get(a).z5=!0}; g.Z.p6=function(a,l){this.NA.p6(a,l)}; g.Z.KZ=function(a){this.requestIdentifier=a}; g.Z.HV=function(a){return this.NA.HV(a)}; g.Z.Ut=function(a){return this.NA.Ut(a)}; g.Z.B7=function(a){return this.NA.B7(a)}; g.Z.YB=function(){return this.NA.YB()}; g.Z.vZ=function(){return 1}; g.Z.j7=function(){return this.NN.requestNumber}; g.Z.Sz=function(){return this.requestIdentifier}; g.Z.eb=function(){return this.Z6.eb()}; g.Z.Y2=function(){this.qc()}; g.Z.qc=function(){this.NN.deactivate();var a;(a=this.xhr)==null||a.abort()}; g.Z.isComplete=function(){return this.state>=3}; g.Z.Wp=function(){return this.state===3}; g.Z.BV=function(){return this.state===5}; g.Z.Jg=function(){return this.state===4}; g.Z.TU=function(){return this.isComplete()}; g.Z.Dg=function(){return this.state>=1}; g.Z.t5=function(){return this.policy.wW?this.CR.t5():0}; g.Z.rh=function(){this.policy.wW&&Ir(this.qt,this)}; g.Z.fm=function(){return nNl(this.info)}; g.Z.YA=function(){return this.CR.YA()}; g.Z.lY=function(){var a=vy3(this.CR);Object.assign(a,IeQ(this.info));a.req="sabr";a.rn=this.j7();var l;if((l=this.xhr)==null?0:l.status)a.rc=this.policy.Ns?this.xhr.status:this.xhr.status.toString();var m;(l=(m=this.xhr)==null?void 0:m.La())&&(a.msg=l);this.Qd&&(m=ZN7(this,this.Qd-this.NN.JU()),a.letm=m.Jd,a.mrbps=m.PK,a.mram=m.Iw);return a};Wi5.prototype.tick=function(a,l){this.ticks[a]=l?window.performance.timing.navigationStart+l:(0,g.E)()};g.W(so,g.Aj);g.Z=so.prototype; g.Z.e_=function(a,l,m,T){if(this.policy.NH&&this.policy.Z){var y=a.We||null;y?(Sq3(this,a.mN,kz(this,a.startTime,a.mN),{We:y,mN:a.mN,TD:!!l,YN:m},this.Z),T&&this.Z&&this.Z.zD(a.mN,a.startTime,this.L,(l==null?void 0:l.T)||[],(l==null?void 0:l.L)||[],(l==null?void 0:l.Z)||[],m,(l==null?void 0:l.DU)||0,(l==null?void 0:l.j)||void 0)):this.L===1&&fg(this,5,"noad")}else{var R=!1;this.policy.Z&&(R=m?this.qj===a.mN:this.jt===a.mN);if(this.Z&&T&&!R){T=[];R=[];var H=[],b=void 0,M=0;l&&(T=l.T,R=l.L,H=l.Z,b= l.j,M=l.DU,this.Tu("sdai",{sq:a.mN,ssvicpns:T.join("."),ssvid:R.join(".")}));this.policy.Z&&(m?this.qj=a.mN:this.jt=a.mN);this.Z.zD(a.mN,a.startTime,this.L,T,R,H,m,M,b)}this.policy.Z?m&&(this.L===1&&fg(this,5,"noad"),a.mN!==((y=this.T)==null?void 0:y.mN)&&(v47(this,a,l,m),isNaN(a.startTime)||$AP(this,a.mN,kz(this,a.startTime,a.mN),!!l,this.Z))):m&&v47(this,a,l)}}; g.Z.QG=function(a,l,m){var T=this.videoTrack.T.index.HN()<=l;this.T={We:a,mN:l,TD:m};T&&SV(this,a,l)}; g.Z.UM=function(){this.Z&&this.Z.UM()}; g.Z.Tu=function(a,l,m){(a!=="sdai"||this.policy.A6||(m===void 0?0:m))&&this.loader.Tu(a,l)}; g.Z.RV=function(a,l){var m=this.videoTrack.T.index.l$(a);if(m>=0){var T;var y=((T=l.QP.Em(m,2))==null?void 0:T.z4)||"";if(this.policy.Z||y)return l.xE(a,m),Jt(this.loader,a,a,m),this.Tu("sdai",{cmskpad:1,t:a.toFixed(3),sq:m}),!0}this.Tu("sdai",{cmskpad:0,t:a.toFixed(3),sq:m});return!1};g.W(Cg,g.k);Cg.prototype.AP=function(a,l,m){m=m===void 0?{}:m;this.policy.hV=Ib(a,m,this.j,l===void 0?!1:l)};um.prototype.Dc=function(a){var l=this;if(this.policy.YR){var m=new Set(a);m.size===this.hM.size&&[].concat(g.F(m)).every(function(T){return l.hM.has(T)})||(this.loader.Tu("lwnmow",{itagDenylist:[].concat(g.F(a)).join(",")}),this.loader.kY(!!m.size),this.N=-1,this.hM=m,Yz(this,this.T),this.AM=!0)}}; um.prototype.AP=function(a,l,m){m=m===void 0?{}:m;var T=this.policy.hV;this.K.AP(a,l===void 0?!1:l,m);if(T!==this.policy.hV){Yz(this,this.T);Uo(this);var y,R;T>this.policy.hV&&((y=this.Z)==null?0:Y9(y.info))&&((R=this.nextVideo)==null||!Y9(R.info))&&(this.Ij=!0)}};mj.prototype.D5=function(a){this.timestampOffset=a;this.flush()}; mj.prototype.flush=function(){if(this.T.pos>0){var a={a:this.track.q2(),u:this.T.N2(),pd:Math.round(this.j),ad:Math.round(this.Z)},l=this.L;if(l){var m=l.T.info;a.itag=m.itag;m.T&&(a.xtags=m.T);a.sq=l.mN;a.st=l.startTime;a.sd=l.duration;this.track.policy.wf&&(a.si=l.LR());l.K&&(a.esl=l.L+l.Z);l.Kh()&&(a.eos=1)}isNaN(this.timestampOffset)||(a.to=this.timestampOffset);var T;if(l=(T=this.track.VO)==null?void 0:T.rW({})){for(var y in l)this.C[y]!==l[y]&&(a["sb_"+y]=l[y]);this.C=l}this.track.Tu("sbu", a);this.T.reset();this.buffered=[];this.K=this.Z=this.j=0;this.timestampOffset=this.L=void 0}};yO.prototype.dispose=function(){this.lT=!0}; yO.prototype.FO=function(){return this.lT}; g.W(M5,Error);jZ.prototype.skip=function(a){this.offset+=a}; jZ.prototype.qE=function(){return this.offset};g.Z=NS3.prototype;g.Z.BT=function(){return this.L}; g.Z.jm=function(){return this.L.length?this.L[this.L.length-1]:null}; g.Z.A$=function(){this.L=[];pH(this);Gq(this)}; g.Z.P5=function(a){this.St=this.L.shift().info;a.info.equals(this.St)}; g.Z.Ut=function(){return g.xX(this.L,function(a){return a.info})}; g.Z.q2=function(){return!!this.C.info.audio}; g.Z.isDrm=function(){return!!this.C.info.u0}; g.Z.getDuration=function(){return this.C.index.dT()};g.W(Sv,r5);g.Z=Sv.prototype;g.Z.onStateChange=function(){this.FO()&&(ht(this.NA,this.formatId),this.T.dispose())}; g.Z.lY=function(){var a=g4p(this.NA,this.formatId),l;var m=((l=this.NA.Sx.get(this.formatId))==null?void 0:l.bytesReceived)||0;var T;l=((T=this.NA.Sx.get(this.formatId))==null?void 0:T.Fq)||0;return{expected:a,received:m,bytesShifted:l,sliceLength:Oo(this.NA,this.formatId),isAnyMediaEndReceived:this.NA.C1(this.formatId)}}; g.Z.jB=function(){return 0}; g.Z.VS=function(){return!0}; g.Z.HV=function(){return this.NA.HV(this.formatId)}; g.Z.dH=function(){return[]}; g.Z.B7=function(){return this.NA.B7(this.formatId)}; g.Z.YA=function(){return this.lastError}; g.Z.t5=function(){return 0};g.W(LH,g.k);g.Z=LH.prototype;g.Z.q2=function(){return!!this.T.info.audio}; g.Z.jm=function(){return this.j.jm()}; g.Z.P5=function(a){this.j.P5(a);var l;(l=this.J)!=null&&(l.K.add(a.info.mN),l.T=EVH(l,l.yO,l.As,a,l.T),l.Z=a,l.C=(0,g.E)());this.Nj=Math.max(this.Nj,a.info.T.info.Nj||0)}; g.Z.getDuration=function(){return this.T.index.dT()}; g.Z.A$=function(){Jo(this);this.j.A$()}; g.Z.m3=function(){return this.j}; g.Z.isRequestPending=function(a){return this.Z.length?a===this.Z[this.Z.length-1].info.gb[0].mN:!1}; g.Z.D5=function(a){var l;(l=this.J)==null||l.D5(a);var m;(m=this.N)==null||m.D5(a)}; g.Z.Tu=function(a,l){this.loader.Tu(a,l)}; g.Z.uu=function(){return this.loader.uu()}; g.Z.dispose=function(){var a;(a=this.N)==null||a.flush();g.k.prototype.dispose.call(this)};g.W(Ez,g.k);Ez.prototype.Z=function(){this.L++>15||(this.T=!this.T,new dqP(this.loader,this.policy,this.Og,this.DR,this.T),this.delay.start())}; g.Z=dqP.prototype;g.Z.yN=function(){}; g.Z.mQ=function(){}; g.Z.L2=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.OO()===this.size)this.loader.Tu("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.Ir()&&(a="net.closed");this.onError(a)}}; g.Z.onError=function(a){var l=this;this.loader.handleError(a,this.getInfo());FV("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(m){l.loader.Tu("pathprobe",m)},function(m){l.loader.handleError(m.errorCode,m.details)})}; g.Z.getInfo=function(){var a=this.timing.Vh();a.shost=vx(this.location.t$);a.pb=this.size;return a};g.W(oe,g.k); oe.prototype.B=function(a,l){if(a.B){this.Vg.isLive?(a=this.Vg.sQ&&this.Vg.j?a.T.j5(this.Vg.sQ,!1):a.T.rT(Infinity),a.OF=this.OF):a=a.T.j5(0,!1);if(this.Ij){var m=this.Ij;a.OF===0&&(a.K=m.J)}else a.K=this.N;return a}m=a.L;if(!m.T.Du())return m.T.Cl()?(a=KO(this.K,a.T.info.Nj,l.T.info.Nj,0),a=g.B(m.T.ZU(m,a))):a=g.B(m.T.C9(m)),a;var T=m.C-this.loader.getCurrentTime(),y=!m.range||m.Z===0&&m.L===0?0:m.range.length-(m.L+m.Z),R=m.T;this.AL(a,T)&&y===0&&(this.Vg.isManifestless?R=a.T:(R=m.startTime+aa7, m.Z&&(R+=m.duration),nO(a,R),m=a.L,R=m.T));R.Cl()?(y=this.Z,l=KO(this.K,R.info.Nj,l.T.info.Nj,T,y.j.length>0&&y.J===0&&this.loader.le),T=J2(a),a=g.B(m.T.ZU(m,l)),(l=a.Z)&&a.gb.length>1&&(T||a.DR.Z||a.gb[0].T!==m.T?a=g.B(m.T.ZU(m,a.gb[0].Z)):(T=a.gb[a.gb.length-1],R=T.Z/l,!T.K&&R<.4&&(a=g.B(m.T.ZU(m,l-T.Z)))))):(m.mN<0&&(l=x4(m),l.pr=""+a.Z.length,this.loader.isSeeking()&&(l.sk="1"),l.snss=m.J,this.loader.Tu("nosq",l)),a=g.B(R.C9(m)));if(this.policy.qj)for(m=g.c(a.gb),l=m.next();!l.done;l=m.next())l.value.type= 6;return a}; oe.prototype.AL=function(a,l){if(!J2(a)||!a.T.Du())return!1;var m=this.Z.AM||Yj5(a)||l<=this.policy.Hg||this.Z.Ij;this.logger.debug(function(){return"ready to adapt: "+m+", upgrade pending: "+Yj5(a)+", health: "+l}); return m}; oe.prototype.sL=function(){g.k.prototype.sL.call(this)}; var aa7=2/24;g.W(YC,g.k);YC.prototype.qQ=function(a,l,m){var T;var y=((T=this.L)==null?void 0:T.reason)==="m"?"m":this.L&&Kkz(this,this.L)?this.L.reason:"a";this.loader.qQ(new Iv(a,y,m));uz(this.loader,l,a,!0)}; YC.prototype.by=function(a,l){for(var m=g.c(this.qj),T=m.next();!T.done;T=m.next())if(T=T.value,T.id===a)return this.l0.yp||(this.Z=[T]),this.K=this.Vg.T[a],pg(this.l0)&&(this.Ij=!0),a=new Iv(this.K,l?"t":"m"),l&&(this.J=!0),a;this.Z=[];return null}; YC.prototype.AP=function(a,l,m){m=m===void 0?{}:m;this.T.AP(a,l===void 0?!1:l,m)};rU.prototype.setData=function(a,l,m){var T=this;m=m===void 0?{}:m;if(l==null?0:l.ZR)this.Vv=V4d(this,l,m),a.w0=this.DR.w0();if(this.Ik())return!0;this.data=a;this.T=B1l(a,function(y,R){var H;(H=T.qt)==null||H.nx(y,R)},l==null?void 0:l.L); if(!this.T)return!1;this.L=g.rs(this.T,ZhP);return!0}; rU.prototype.Ik=function(){return this.requestType===1}; rU.prototype.hG=function(){var a;return((a=this.qt)==null?void 0:a.hG())||0}; rU.prototype.isDecorated=function(){var a;return!((a=this.data)==null||!a.W7)};ar.prototype.encrypt=function(a){this.lm.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a}; ar.prototype.FO=function(){return this.cipher===0}; ar.prototype.dispose=function(){this.lm.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};lF.prototype.encrypt=function(a,l){return Pc(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:l},this.key,a).catch(function(m){return Promise.reject(m.name+": "+m.message)}).then(function(m){return new Uint8Array(m)}))}; lF.prototype.FO=function(){return this.T}; lF.prototype.dispose=function(){this.T=!0}; mG.prototype.encrypt=function(a,l){return Pc(this.L(a,l))}; mG.prototype.L=function(a,l){c8(this.Z,l);return this.Z.encrypt(a)}; mG.prototype.FO=function(){return this.T}; mG.prototype.dispose=function(){this.T=!0}; TZ.prototype.encrypt=function(a,l){return Pc(this.L(a,l))}; TZ.prototype.L=function(a,l){l=this.lm.uG(l);var m=this.T;m.lm.exports.AES128CTRCipher_setCounter(m.cipher,l.byteOffset);this.lm.free(l.byteOffset);l=this.lm.uG(a);this.T.encrypt(l!=null?l:a);return l?this.lm.zV(l):a}; TZ.prototype.FO=function(){return this.T.FO()}; TZ.prototype.dispose=function(){this.T.dispose()}; Lx.Rp(lF,{encrypt:EN7("oan2")});Lx.Rp(mG,{encrypt:EN7("oap")});Lx.Rp(TZ,{encrypt:EN7("oalw")});yg.prototype.encrypt=function(a,l){var m=this,T=GP("");a.length<=this.Cf&&this.T&&!this.K&&(T=Wc(T,function(){return m.T?m.T.encrypt(a,l):GP("wasm unavailable")})); a.length<=this.MO&&(this.T&&this.K&&(T=Wc(T,function(){return m.T?m.T.encrypt(a,l):GP("wasm unavailable")})),T=Wc(T,function(){return Dqd(m,a,l)})); return Wc(Wc(T,function(){return uKz(m,a,l)}),function(){return Dqd(m,a,l)})}; yg.prototype.L=function(a,l){if(this.T)return this.T.L(a,l);this.Z||(this.Z=new mG(this.key));return this.Z.L(a,l)}; yg.prototype.FO=function(){return this.C}; yg.prototype.dispose=function(){this.C=!0;var a;(a=this.j)==null||Zh(a,g.Go);g.Go(this.T);g.Go(this.Z)};Rr.prototype.encrypt=function(a){(0,g.E)();return(new g.em(this.T.T)).encrypt(a,this.iv)}; Rr.prototype.decrypt=function(a,l){(0,g.E)();return(new g.em(this.T.T)).decrypt(a,l)}; Rr.prototype.FO=function(){return this.Z}; Rr.prototype.dispose=function(){this.Z=!0;g.Go(this.L)};g.W(HQ,g.k);HQ.prototype.Z=function(a,l){if(l){l=l instanceof g.K_?l:qo(this,l);var m;((m=this.T.get(a))==null?void 0:vx(m.location))!==vx(l)&&this.T.set(a,new RHz(l,a))}else this.T.delete(a)}; HQ.prototype.load=function(){var a=this,l,m,T,y,R,H,b,M,d,A;return g.J(function(P){switch(P.L){case 1:l=a.T.get(0);g.LP(P,2);var G;if(G=l&&!a.L)G=vx(l.location),G=a.L===MT(G);if(G){P.iT(4);break}return g.z(P,TpH(a,a.L?2:0),5);case 5:if(m=P.T)a.Z(0,m),SR(m)&&a.Z(1,f_(m));case 4:g.e7(P,3);break;case 2:T=g.OQ(P);g.nU(T);if(!a.L){P.iT(3);break}a.L=!1;return g.z(P,a.load(),7);case 7:return P.return();case 3:if(!a.aj.experiments.XO("html5_onesie_probe_ec_hosts")){P.iT(0);break}g.LP(P,9);y=a;R=y.Z;H=3;return g.z(P, TpH(a,1),11);case 11:return R.call(y,H,P.T),b=a,M=b.Z,d=4,g.z(P,TpH(a,2),12);case 12:M.call(b,d,P.T);g.e7(P,0);break;case 9:A=g.OQ(P),g.nU(A),g.c5(P)}})}; HQ.prototype.B=function(){var a=this,l,m;return g.J(function(T){g.l0(a.J);l=g.PU(a.aj.experiments,"html5_onesie_prewarm_max_lact_ms");if(zG()>=l)return T.return();(m=a.T.get(0))&&mUQ(a,m);g.c5(T)})}; var aj3={vFj:0,Box:1,UEL:2,blz:3,ndj:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};b7d.prototype.decrypt=function(a){var l=this,m,T,y,R,H,b;return g.J(function(M){switch(M.L){case 1:if(H7p(l))return M.return();l.L=!0;l.nu.dO("omd_s");m=new Uint8Array(16);Ql()?T=new g.tE(a):y=new g.em(a);case 2:if(!l.T.length||!l.T[0].isEncrypted){M.iT(4);break}R=l.T.shift();if(!T){H=y.decrypt(R.buffer.e$(),m);M.iT(5);break}return g.z(M,T.decrypt(R.buffer.e$(),m),6);case 6:H=M.T;case 5:b=H;qSQ(m);var d=l.nu,A=R.videoId,P=R.dU,G=R.formatId,V=new cX([b]),p;(p=gi(d.cF,A))==null||zz(p,P,G,V);M.iT(2); break;case 4:l.nu.dO("omd_c"),Mo(l),l.L=!1,l.nu.Cs(),g.c5(M)}})}; b7d.prototype.enqueue=function(a,l,m,T,y){this.T.push({videoId:a,dU:l,formatId:m,buffer:T,isEncrypted:y});this.L||Mo(this)};var pV3=!!Uint8Array.prototype.copyWithin,iF=[],gWP=[],dUw=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jg=[],di=[],Ak=[],Mid=[];GZ.prototype.hg=function(a){return g.ViH(new g.i7d(a))}; GZ.prototype.D8=function(a){function l(H){if(!H.done)return R.append(H.value),y.read().then(function(b){return l(b)})} if(!("DecompressionStream"in window))return GP("native decompression unavailable");var m=new DecompressionStream("gzip"),T=m.writable.getWriter();T.write(a).then(function(){return T.close()}); var y=m.readable.getReader(),R=new cX([]);return Wc(Zh(Zh(Pc(y.read()),l),function(){return R.e$()}),function(H){return GP(H.message)})}; GZ.prototype.E7=function(a,l){var m=void 0,T=l.uG(a);T&&(m=T.byteOffset,a=T);T=l.exports.getInflatedSize(a.byteOffset,a.length);if(T===0)return GP("bad compressed input");var y=l.malloc(T);if(l.exports.inflateGzip(a.byteOffset,a.length,y))return l.free(y),GP("inflateGzip failed");m&&l.free(m);return Pc(new Uint8Array(l.exports.memory.buffer,y,T))}; Lx.Rp(GZ,{hg:function(a){return{profile:"gzjb",D0:Math.ceil(a.byteLength/16)}}, D8:function(a){return{profile:"gznb",D0:Math.ceil(a.byteLength/16)}}, E7:function(a){return{profile:"gzwb",D0:Math.ceil(a.byteLength/16)}}});g.W(QXb,NT);g.Z=QXb.prototype;g.Z.Cs=function(){this.cF.Cs()}; g.Z.F_=function(a,l){switch(a){case 10:var m=E5(l,Fw7);a=m.kEM;var T=!1;switch(a){case 0:this.Z=!m.Mo.Ky;this.iv=m.Mo.iv;break;case 2:break;case 23:var y=this.cF;m=m.Oxu;y.dO("omp_r");m.videoId&&(y.Ne=m.videoId);y.Ne!==y.videoData.videoId&&(y.videoData.bv=y.Ne,y.Tu("ompp","vid."+y.Ne));y.z2=!0;break;case 24:m=this.cF;m.dO("omp_c");m.z2=!1;m.EN=!1;var R=(y=m.Zu)==null?void 0:y.get(m.Ne);m.notifySubscribers(m.Ne);R!=null&&(R.T=!0);Zw(m);break;default:T=!0}this.cF.EO&&this.cF.Tu("ombup","id.10;pt."+ a+";len."+l.getLength()+(T?";ignored.1":""));this.j=a;break;case 11:FSl(this,l);break;case 12:this.Rw(l,!0);break;case 37:l=E5(l,h67);(l.PU||l.qZ)&&l.videoId&&this.cF.Lm.set(l.videoId,l);break;case 60:this.J4(l);break;case 47:this.V("html5_server_playback_start_policy")&&(l=E5(l,vZ3),this.cF.playbackStartPolicy=l);break;case 35:this.Ri(l);break;case 45:this.Ye(l);break;case 66:this.eE(l);break;default:this.cF.EO&&this.cF.Tu("ombup","id."+a+";len."+l.getLength()+";ignored.1")}}; g.Z.XP=function(a){this.cF.XP(a)}; g.Z.J4=function(a){a=E5(a,bc);this.cF.J4(a)}; g.Z.Ye=function(a){a=E5(a,gu);this.cF.Ye(a)}; g.Z.YO=function(a){var l=a.dU,m=a.rU,T=a.cq,y=a.Ry,R=a.qH,H=a.startMs,b=a.durationMs,M=a.timeRange,d=a.Yt,A=S4(a),P=ydd.has(o_[""+a.itag]);m&&this.dO(P?"oais_r":"ovis_r");var G=this.T[A]!==void 0;this.cF.EO&&this.cF.Tu("ombup","id.20;hid."+l+";fid."+A);var V=a.videoId||"";this.L[l]=A;this.K[l]=V;G||(this.T[A]={videoId:V,ND:!1,q2:P,headers:[]});this.T[A].headers.push(a);this.cF.PB(V,A,P,{dU:l,rU:!!m,cq:T!=null?T:-1,qH:R!=null?R:-1,startMs:H!=null?H:-1,durationMs:b!=null?b:-1,Yt:d!=null?d:0,Ry:y,timeRange:M})}; g.Z.Rw=function(a,l){var m=a.getUint8(0);this.cF.EO&&this.cF.Tu("ombup","id."+(l?12:21)+";len."+a.getLength()+";hid."+m);if(a.getLength()!==1){a=a.split(1).Xm;var T=this.L[m]||null,y=this.K[m]||"";T&&(this.eq(this.T[T].q2?"oafs_r":"ovfs_r"),this.queue.enqueue(y,m,T,a,l))}}; g.Z.p6=function(a){var l=a.getUint8(0);this.cF.EO&&this.cF.Tu("ombup","id.22;len."+a.getLength()+";hid."+l);a=this.L[l]||null;var m=this.K[l]||"";if(a)if(this.V("html5_use_ump_request_slicer")){var T=this.queue;T.T.push({videoId:m,dU:l,formatId:a,isEncrypted:!1,Wo:!0});T.L||Mo(T)}else this.cF.p6(m,l,a)}; g.Z.KZ=function(a){this.cF.KZ(a)}; g.Z.mS=function(a,l){var m=this,T,y,R,H,b,M,d,A,P,G;return g.J(function(V){switch(V.L){case 1:m.cF.mS();T=a.e$();if(!l){R=T;V.iT(2);break}return g.z(V,BpP(m.cF,T,m.iv),3);case 3:R=V.T;case 2:y=R;if(!m.cF.enableCompression){V.iT(4);break}b=(H=performance)==null?void 0:H.now();return g.z(V,Z77(y),5);case 5:y=V.T,m.cF.Tu("decompression",{ds:"DecompressionStream"in window,rt:((M=performance)==null?NaN:M.now())-b});case 4:try{d=E5(y,jq5)}catch(p){return A=p instanceof Error?{name:p.name,message:p.message}: {},A.webcrypto=""+ +!!Ql(),A.enc=""+ +m.Z,P=new O_("onesie.response.parse",A),V.return(Promise.reject(P))}Npp(d);G=g.K8(d.body);return V.return(G)}})}; g.Z.Ri=function(a){this.V("html5_consume_onesie_next_request_policy_for_sabr")&&(a=E5(a,KwQ),this.cF.Ri(a))}; g.Z.eE=function(a){a={fB:ws(new s5(a),1,SbR)};this.cF.eE(a)}; g.Z.dO=function(a){this.cF.dO(a)}; g.Z.eq=function(a){return this.cF.eq(a)}; g.Z.V=function(a){return this.cF.V(a)};g.W(pW,g.k);g.Z=pW.prototype;g.Z.YB=function(a){var l,m;return((m=(l=this.Zu)==null?void 0:l.get(a))==null?void 0:m.YB())||[]}; g.Z.B7=function(a,l){var m;return!((m=gi(this,l))==null||!m.B7(a))}; g.Z.HV=function(a,l){var m;return((m=gi(this,l))==null?void 0:m.HV(a))||[]}; g.Z.Ut=function(a,l){var m;return((m=gi(this,l))==null?void 0:m.Ut(a))||[]}; g.Z.Rf=function(a){this.state=a;this.notifySubscribers()}; g.Z.Ik=function(){return!1}; g.Z.HG=function(){return!1}; g.Z.Wc=function(){}; g.Z.dO=function(a){this.vz.dO(a)}; g.Z.eq=function(a){return this.vz.eq(a)}; g.Z.C3=function(a,l,m,T){m||this.NN.C3(T);return!1}; g.Z.xS=function(a,l){this.nu.xS(a,l)}; g.Z.A4=function(){this.dO("orfb");this.Of=!0;if(kiQ(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.OO(),rt:(1E3*gyR(this.NN)).toFixed(),shost:g.Fl(this.aQ),trigger:"o1"};this.Tu("pathprobe",hS(a))}}; g.Z.mS=function(){this.dO("opr_r");this.vp=!0}; g.Z.PB=function(a,l,m,T){if(this.Zu){if(!this.Zu.has(a)){var y=new tt(this);this.Zu.set(a,y);g.w(this,y)}var R;(R=this.Zu.get(a))==null||R.PB(l,m,T);Zw(this);m||(this.w6=T.qH)}else Zw(this)}; g.Z.XP=function(a){this.ye=a;a.AI!=null&&this.vz.VJ(a.AI)}; g.Z.J4=function(a){this.NR=a}; g.Z.Ri=function(a){a.videoId&&this.Jw.set(a.videoId,a)}; g.Z.Cs=function(){if(this.Zu)for(var a=g.c(this.Zu.keys()),l=a.next();!l.done;l=a.next()){var m=void 0;(m=this.Zu.get(l.value))==null||m.uU()}}; g.Z.Ye=function(a){this.Wl=a}; g.Z.eE=function(a){if(a==null?0:a.fB)if(a=a.fB.T9){a=g.c(a);for(var l=a.next();!l.done;l=a.next())l=l.value,l.videoId&&this.N4.set(l.videoId,l)}}; g.Z.Tu=function(a,l,m){this.vz.Tu(a,l,m===void 0?!1:m)}; g.Z.p6=function(a,l,m){var T;(T=gi(this,a))==null||T.p6(l,m)}; g.Z.KZ=function(a){this.DN.set(a.videoId,a)}; g.Z.fetch=function(){var a=this,l,m,T,y,R,H,b,M,d,A,P,G,V,p,L,N,e,t,v,S,n;return g.J(function(X){switch(X.L){case 1:a.logger.debug("Onesie fetch started.");a.Lf?a.GZ.start():a.wH.start();a.dO("or_i");l=a.aj.experiments.XO("html5_onesie_verbose_timing");m={};T=(0,g.E)();y=function(D){l&&(m[D]=(0,g.E)()-T)}; y("loc_s");if(R=O7R(a.videoData,a.xp)){X.iT(2);break}y("loc_async");H=g.PU(a.aj.experiments,"html5_onesie_redirector_timeout_ms");return g.z(X,KSR(a.videoData,a.xp,H),3);case 3:R=X.T;case 2:if(!R)return a.logger.info("Onesie URL creation failed."),b={url:"0"},M=new O_("onesie.unavailable.hotconfig",b),a.Mw(M),X.return(a.lK);a.Vv=vx(R);y("loc_e");d=g.b1(a.aj,g.wn(a.videoData));A=!!d.T;if(!A){P=d.getValue();X.iT(4);break}return g.z(X,d.T,5);case 5:P=X.T;case 4:G=P;a.V("html5_log_onesie_empty_oauth")&& !G&&a.Tu("no_token",{async:A});y("oauth");V=vWR(a.playerRequest,a.aj,a.videoData,G,MT(a.Vv));g.LP(X,6);if(!JeR(a,V)){y("or_s_sync");a.JB=sXQ(V,a.A3,a.aj,a.vz,a.KA.onesieUstreamerConfig,(p=a.videoData.nC)==null?void 0:p.bA);X.iT(8);break}y("or_s_async");return g.z(X,fjt(V,a.A3,a.aj,a.vz,a.KA.onesieUstreamerConfig,(L=a.videoData.nC)==null?void 0:L.bA),9);case 9:a.JB=X.T;case 8:g.e7(X,7);break;case 6:return N=g.OQ(X),a.logger.info("Failed to create OnesieRequestProto."),a.Mw(N),X.return(a.lK);case 7:return y("or_e"), l&&a.Tu("oreqvt",m),a.enableCompression=a.JB.hL.Re,a.dO("osor"),e=bRQ(),t=g.rs(a.JB,umP),v={method:"POST",body:t,headers:{"Content-Type":"text/plain",Referer:location.origin}},S=a.V("html5_onesie_media_capabilities"),zHz(R,a.videoData,wV5(a),S),a.logger.debug("Starting Onesie network request."),a.EO&&a.Tu("ombrs","1"),n=a.vz.Y().schedule,a.NN=new us(a,{Og:n,nM:a.EO,UJ:function(D,yp){a.vz.T1(D,yp)}, EZ:!0}),R.set("rn",""+a.NN.requestNumber),a.aQ=R.eb(),DP(a.NN,a.aQ),a.dO("or_p"),a.xhr=Rv(new ti(R),e,a.NN,RT,v),a.bd.start(),X.return(a.lK)}})}; g.Z.vZ=function(){return 2}; g.Z.yN=function(){this.dO("orh_r")}; g.Z.mQ=function(){!this.Of&&this.xhr.OO()&&this.A4();if(this.QE&&!this.Lf){var a;(a=this.WJ)==null||a.start()}this.D3()}; g.Z.L2=function(a){a=a===void 0?!1:a;this.logger.debug("onXhrDone");this.D3();if(!(this.FO()||this.state>=4)){var l=Vg(this),m=this.xhr;l.rc=m.status;a&&(l.ab=!0);if(m.La()){var T="onesie.net";l.msg=m.La()}else m.status>=400?T="onesie.net.badstatus":m.FI()?this.vp||(T="onesie.response.noplayerresponse"):T=m.status===204?"onesie.net.nocontent":"onesie.net.connect";T?this.Mw(new O_(T,l)):(this.dO("or_fs"),this.NN.Ul((0,g.E)(),m.OO(),0),this.Rf(4),this.EO&&this.Tu("rqs",l));this.EO&&this.Tu("ombre", "ok."+ +!T);this.EN=!1;Zw(this);tib(this.nu);if(!this.Lf){this.wH.stop();var y;(y=this.WJ)==null||y.stop()}var R;if(a=(R=this.xp)==null?void 0:yez(R))for(R=0;R1E3){var a;(a=this.NN)==null||a.T0((0,g.E)());a=Vg(this);if(this.aj.bZ()&&this.xhr instanceof av){var l=this.xhr;a.xrs=l.xhr.readyState;a.xpb=l.T.getLength();a.xdc=l.j}this.Mw(new O_("net.timeout",a))}}else(0,g.E)()-this.NN.T>1E4&&((l=this.NN)==null||l.T0((0,g.E)()),this.zy());this.isComplete()||this.GZ.start()}}; g.Z.zy=function(){this.logger.info("Onesie request timed out");this.EN=!1;if(!Zw(this)){var a=Vg(this);a.timeout="1";this.Mw(new O_("onesie.request",a))}}; g.Z.Mw=function(a){var l=this;a=zM(a);this.QE?this.vz.yP(a):(this.lK.reject(a),this.QE=!0);tib(this.nu);this.Lf||this.wH.stop();this.dO("or_fe");var m,T;(m=this.xp)==null||(T=yez(m))==null||T.forEach(function(y){l.Tu("pathprobe",y)}); this.Rf(5);this.dispose()}; g.Z.isComplete=function(){return this.state>=3}; g.Z.Jg=function(){return this.state===4}; g.Z.TU=function(a){var l,m;return this.isComplete()||!!((l=this.Zu)==null?0:(m=l.get(a))==null?0:m.T)}; g.Z.Wp=function(){return!1}; g.Z.BV=function(){return this.state===5}; g.Z.notifySubscribers=function(a){for(var l=0;l102400&&!this.Ag&&(this.dO("or100k"),this.Ag=!0);if(a.Vr()){var l=a.QJ(),m=l.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+m}); this.EO&&this.Tu("ombrss","len."+m);this.PV.feed(l)}if(this.Zu)for(var T=g.c(this.Zu.keys()),y=T.next();!y.done;y=T.next()){var R=y.value;a=void 0;(a=this.Zu.get(R))==null||a.uU();this.notifySubscribers(R)}}catch(H){this.Mw(H)}}; g.Z.j7=function(){return this.NN.requestNumber}; g.Z.Sz=function(a){return this.DN.get(a)};g.W(C15,g.k);g.Z=C15.prototype;g.Z.JX=function(a,l){this.Ij=void 0;HKz(this);RZt(this,a,l)}; g.Z.F2=function(a){if(this.T.length===0)return!1;var l=this.T[0];return l instanceof pW?a===this.loader.getCurrentTime()*1E3:!(l instanceof vz&&wS7(l.info))&&Math.abs(l.fm()-a)<50}; g.Z.Ri=function(a){this.L=a;this.Ij=(0,g.E)()+(a.backoffTimeMs||0)}; g.Z.JA=function(a,l){if(a.action===void 0){var m=this.vz.sM();m!==void 0&&this.loader.So(m)}else if(a.action!==0||!this.AM)switch(a.action===0&&this.policy.Br&&(a.action=2),m={},m.reason=a.A9,m.action=a.action,m.rn=l,a.action){case 1:this.policy.Z&&this.B&&this.B.ws(void 0,void 0,m);break;case 0:this.AM=!0;this.videoData.WN()&&this.policy.Z&&this.B&&this.B.ws(void 0,void 0,m,!1);this.loader.WP(m);break;case 2:this.policy.mp?(k2Q(a.A9)!=="sabr.config"&&delete m.reason,this.loader.handleError(k2Q(a.A9), m,1)):this.loader.handleError("sabr.config",m,1);break;case 3:this.policy.ZR&&((a=this.Vg.J)!=null&&(a.J=!0),this.loader.handleError("sabr.hostfallback",m))}}; g.Z.iC=function(a){a&&(this.loader.Tu("sabrctxt",{onsbrctxt:a.type,scp:a.scope,dflt:a.sendByDefault}),a.type&&a.sendByDefault&&this.ix.add(a.type),a.scope!==2&&(a.type&&this.videoData.sabrContextUpdates.set(a.type,a),this.vz.iC(a)))}; g.Z.kP=function(){}; g.Z.Ye=function(a){if(a.yd!==void 0&&a.Nm){var l=a.yd/a.Nm;this.audioTrack.B=!1;this.videoTrack.B=!1;if(this.policy.lT||this.policy.v1||this.policy.Ln)this.loader.wL.L=!1;this.loader.hK(l,1);if(this.vz.getCurrentTime()!==l){var m={hW:"sabr_seek",Cv:!0,N8:!0};a.seekSource&&(m.seekSource=a.seekSource);CO(this.loader,l+.1,m)}}}; g.Z.onSnackbarMessage=function(a){this.vz.publish("onSnackbarMessage",a)}; g.Z.XP=function(a){a.Az&&a.KG&&fS(this.Vg,a.Az,a.KG);this.policy.zL&&(a.Fk&&a.Aw&&(this.Vg.Wd=a.Fk/a.Aw),a.jl&&a.Uh&&(this.Vg.Gz=a.jl/a.Uh));this.policy.n4&&KK(this.videoData)&&!this.videoData.Ij&&a.KG&&this.loader.hK(a.KG,1E3);a.AI!=null&&this.vz.VJ(a.AI);this.policy.Et&&a.Ev&&(a=((0,g.E)()-a.Ev)/1E3,this.loader.iG.wk(1,a))}; g.Z.GD=function(a){this.loader.GD(a)}; g.Z.rK=function(a){return this.ix.has(a)}; g.Z.Ww=function(a,l,m){this.policy.L&&this.loader.Tu("sabrctxtplc",{start:a?a.join("_"):"",stop:l?l.join("_"):"",discard:m?m.join("_"):""});if(a){a=g.c(a);for(var T=a.next();!T.done;T=a.next())this.ix.add(T.value)}if(l)for(l=g.c(l),a=l.next();!a.done;a=l.next())a=a.value,this.ix.has(a)&&this.ix.delete(a);if(m)for(m=g.c(m),l=m.next();!l.done;l=m.next())if(l=l.value,this.videoData.sabrContextUpdates.has(l)&&(this.videoData.sabrContextUpdates.delete(l),l===3&&(this.videoData.Hg="")),this.policy.N&&this.T.length)for(a= g.c(this.T),T=a.next();!T.done;T=a.next())if(T=T.value,!(T instanceof pW)){var y=void 0;((y=T.cD)==null?void 0:y.type)===l&&(T.cD=void 0)}}; g.Z.Rx=function(){}; g.Z.d2=function(a){this.K=a}; g.Z.R5=function(a){this.Kx=a}; g.Z.pc=function(a,l){CH(this.policy,a,4,l)}; g.Z.eE=function(a){if(a==null?0:a.fB)if(a=a.fB.T9){a=g.c(a);for(var l=a.next();!l.done;l=a.next())if(l=l.value,l.formatId){var m=this.Vg.Z.get(S4(l.formatId));m&&m.info&&(m.info.debugInfo=l.debugInfo)}}}; g.Z.bb=function(a){(a=a==null?void 0:a.reloadPlaybackParams)&&this.vz.publish("reloadplayer",a)}; g.Z.f$=function(){return this.vz.f$()||""}; g.Z.hG=function(){var a=vB(this.audioTrack,!0)*1E3,l=vB(this.videoTrack,!0)*1E3;return Math.min(a,l)}; g.Z.nx=function(a,l){this.loader.Tu(a,l)}; g.Z.dg=function(a){F3H(this.loader,Yqp(this.tM,a))}; g.Z.sL=function(){g.k.prototype.sL.call(this);this.L=void 0;RZt(this,!0,"i");this.T=[]};gw7.prototype.qI=function(a,l){if(this.j)return AUl(this,l);if(l=E7(a)){var m=l.L;m&&m.Z&&m.T&&(a=a.Z.length?a.Z[0]:null)&&a.state>=2&&!a.BV()&&a.info.OF===0&&(this.j=a,this.B=m,this.L=l.info,this.C=this.startTimeSecs=Date.now()/1E3,this.K=this.L.startTime)}return NaN}; gw7.prototype.clear=function(){this.L=this.B=this.j=null;this.T=this.K=this.C=this.startTimeSecs=NaN;this.Z=!1};g.W(g.or,g.k);g.Z=g.or.prototype;g.Z.initialize=function(a,l,m){this.logger.debug(function(){return"Initialized, t="+a}); a=a||0;this.policy.T||(l=riH(this.T),K37(this.vz,new Iv(l.video,l.reason)),this.vz.U6(new Iv(l.audio,l.reason)));this.Vg.isManifestless&&tdp(this.K);this.B&&iK7(this.B,this.videoTrack.T);l=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var T=!this.Vg.isManifestless;this.policy.iD&&(T=T||this.Vg.mx);this.policy.hM||(this.currentTime=T?a:l);this.policy.lT&&this.seek(this.getCurrentTime(),{}).wd(function(){}); if(this.policy.T){var y;((y=this.N)==null?0:Ijz(y,this.f$()||""))&&ZK5(this)&&p97(this,this.videoTrack)&&p97(this,this.audioTrack)&&(qnz(this.j,this.N),this.policy.K&&VD3(this))}else this.lT&&(W35(this,this.videoTrack),W35(this,this.audioTrack),bN7(this.lT),delete this.lT);m?(this.policy.L7?(this.uZ=m,xu(this,m)):xu(this,!1),g.l0(this.Tj)):(m=this.getCurrentTime()===0,D3(this.K,this.videoTrack,this.videoTrack.T,m),D3(this.K,this.audioTrack,this.audioTrack.T,m),this.policy.T&&xUp(this.j,!0),this.policy.lT|| this.seek(this.getCurrentTime(),{}).wd(function(){}),this.timing.tick("gv")); (this.Vg.sQ||this.Vg.h$||this.Vg.jt||this.Vg.ZR||this.Vg.QO)&&this.vz.l8(this.Vg)}; g.Z.resume=function(){if(this.isSuspended||this.le){this.logger.debug("Resumed.");this.GT=this.le=this.isSuspended=!1;try{this.qI()}catch(a){g.kt(a)}}}; g.Z.m7=function(){return!this.policy.EG}; g.Z.Ql=function(a,l){a=a===void 0?!1:a;l=l===void 0?!1:l;this.logger.debug("detaching media source");QY3(this);this.vz.TJ()&&(this.C=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Kx&&this.Tu("loader",{setsmb:1}),this.policy.qj=!0,this.A$()):(this.policy.L7?xu(this,this.uZ):xu(this,!1),l||this.A$())}; g.Z.setAudioTrack=function(a,l,m){m=m===void 0?!1:m;if(!this.FO()){var T=!isNaN(l);m&&T&&(this.audioTrack.lT=Date.now(),this.policy.OQ&&(this.wb=!0));if(this.policy.T){var y=this.Z.by(a.id,T);this.logger.debug(function(){return"Logging new audio format: "+y.T.info.id}); this.vz.U6(y)}else{var R=XOH(this.T,a.id,T);this.logger.debug(function(){return"Logging new audio format: "+R.audio.info.id}); this.vz.U6(new Iv(R.audio,R.reason))}if(T&&(m=this.audioTrack.T.index.l$(l),this.Tu("setAudio",{id:a.id,cmt:l,sq:m}),m>=0)){this.policy.T&&this.JX(!0,"mosaic");$C(this.audioTrack,m,NaN,NaN);!this.policy.p5&&this.Vg.isLive&&SP(this.Vg,m,!1);return}this.vz.Oe()}}; g.Z.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)}; g.Z.Li=function(a){var l=this.j.K;this.j.d2(a);this.Tu("scfidc",{curr:S4(l),"new":S4(a)});a&&S4(a)!==S4(l)&&(this.JX(!0,"caption change"),this.qI())}; g.Z.TY=function(a){this.j.R5(a)}; g.Z.qQ=function(a){var l=a.T.info.q2();this.logger.debug(function(){return"New "+(l?"audio":"video")+" format from SABR: "+qi(a.T.info)}); l?this.vz.U6(a):K37(this.vz,a)}; g.Z.dg=function(a){CN(a.gb[a.gb.length-1])&&F3H(this,Yqp(this.T,a.gb[0].T))}; g.Z.Yk=function(){return this.vz.Yk()}; g.Z.f4=function(){return this.vz.f4()}; g.Z.GD=function(a){this.vz.Y().bZ()&&this.Tu("sps",{status:a.IR||""});if(a.IR===1)this.vz.videoData.wf=0;else if(a.IR===2||a.IR===3){var l=!1;if(a.IR===3){l=this.vz.gT();var m;this.Ug=(m=a.jhj)!=null?m:Infinity;this.vz.videoData.wf=l+1;(l=QTt(this))&&this.r4(!0)}this.vz.Go(!0,l)}}; g.Z.hx=function(){return this.vz.hx()}; g.Z.SH=function(){return this.vz.SH()}; g.Z.NP=function(a){this.vz.NP(a)}; g.Z.XYO=function(){var a,l=(a=this.vz.TE())==null?void 0:a.getCurrentTime();l?this.vz.Tu("rms",{cta:l}):g.l0(this.wW)}; g.Z.qI=function(){eZP(this);if(this.Wz&&uH(this.Wz)&&!this.Wz.C_()&&(!this.policy.hM||isFinite(this.getCurrentTime()))){var a=QO(this.videoTrack);a=this.policy.md&&a&&a.Kh();this.Vg.isManifestless&&this.Vg.j&&zU(this.Vg)?(this.C=zU(this.Vg),this.Wz.yf(this.C)):J8(this.Vg)&&!a?isNaN(this.C)?(this.C=this.getCurrentTime()+3600,this.Wz.yf(this.C)):this.C<=this.getCurrentTime()+1800&&(this.C=Math.max(this.C+1800,this.getCurrentTime()+3600),this.Wz.yf(this.C)):this.Wz.isView||(a=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.C)||this.C!==a)&&a>0&&(this.Wz.yf(a),this.C=a))}if(!this.FO())if(KS(this.Vg)&&this.Vg.BV()){var l=this.Vg;this.handleError("manifest.net.retryexhausted",l.wb?{rc:l.At}:{rc:l.At.toString()},1)}else if(this.policy.T)a:{try{mfb(this.j);this.Vg.isManifestless&&this.policy.K&&w5(this.wL);var m;((m=this.Wz)==null?0:UK(m))&&this.J3();xUp(this.j)}catch(H){g.nU(H);l=H;if(l.message.includes("changeType")){this.Tu("ssap",{exp:l.name,msg:l.message,s:l.stack});break a}this.handleError("fmt.unplayable", {exp:l.name,msg:l.message,s:l.stack},1)}uFl(this);g.l0(this.tM)}else if(!this.Vg.L||!aet(this.videoTrack)&&!aet(this.audioTrack)||(this.videoTrack.K||this.audioTrack.K)&&this.policy.vF?m=!1:(this.A$(),this.vz.seekTo(Infinity,{hW:"checkLoaderTracksSync",hK:!0}),m=!0),!m){eZP(this);this.Vg.isManifestless&&(leb(this.videoTrack),leb(this.audioTrack),w5(this.wL),(m=E7(this.videoTrack))&&m.L&&(m=m.L.Z&&!this.policy.Tz,this.Tu(m===this.policy.B.ZE?"strm":"strmbug",{strm:m,sfmp4:this.policy.B.ZE,dfs:this.policy.Tz}, !0)));if(this.Wz)this.J3();else if(this.policy.j){var T;m=!1;if(this.policy.gf){var y;a=g.c([this.videoTrack,this.audioTrack]);for(y=a.next();!y.done;y=a.next()){var R=y.value;for(y=E7(R);y&&R.jm()!==QO(R);y=E7(R))R.P5(y);m=m||!!y}}else(l=E7(this.videoTrack))&&this.videoTrack.P5(l),(T=E7(this.audioTrack))&&this.audioTrack.P5(T);Oz(this.videoTrack)&&Oz(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(l||T||m)&&wi(this)}cUH(this);D3(this.K,this.videoTrack,this.videoTrack.T, !1);D3(this.K,this.audioTrack,this.audioTrack.T,!1);this.policy.S0||OKP(this,this.videoTrack,this.audioTrack);GId(this.K,this.videoTrack,this.audioTrack);GId(this.K,this.audioTrack,this.videoTrack);uFl(this);this.B&&(l=this.B,l.j?(T=l.C+l.policy.ew,l.Z||(T=Math.min(T,l.startTimeSecs+l.policy.n_)),l=Math.max(0,T*1E3-Date.now())):l=NaN,isNaN(l)||g.l0(this.Eg,l));g.l0(this.tM)}}; g.Z.WP=function(a){this.vz.WP(a)}; g.Z.J3=function(){var a=this;if(this.Wz){var l=this.Wz.T,m=this.Wz.L;Tfd(this,this.audioTrack);Tfd(this,this.videoTrack);var T=vw3(this);if(T){if(this.policy.qd){if(!l.vt()){var y=E7(this.audioTrack);if(y){if(!Ev(this,this.audioTrack,l,y.info))return;Snp(this,this.audioTrack,l,y)}}if(!m.vt()&&(y=E7(this.videoTrack))){if(!Ev(this,this.videoTrack,m,y.info))return;Snp(this,this.videoTrack,m,y)}}this.Hd||(this.Hd=(0,g.E)(),this.logger.debug(function(){return"Appends pause start "+a.Hd+" reason "+T}), this.policy.L&&this.Tu("apdps",{r:T}))}else if(this.Hd&&(zZp(this,this.Hd),this.Hd=0),$fz(this),y=!1,nww(this,this.videoTrack,m)&&(y=!0,NHd(this.timing),Fip(this.timing)),this.Wz&&!this.Wz.gL()&&(nww(this,this.audioTrack,l)&&(y=!0,QG5(this.timing),hkl(this.timing)),!this.FO()&&this.Wz))!this.policy.EG&&Oz(this.videoTrack)&&Oz(this.audioTrack)&&uH(this.Wz)&&!this.Wz.C_()&&(m=!1,m=QO(this.audioTrack).T,m=m===this.Vg.T[m.info.id])&&(this.logger.debug("Setting EOS"),tIP(this.Wz),YpQ(this.schedule)),y&& !this.Wz.isAsync()&&wi(this)}}; g.Z.aB=function(a){var l,m=a===((l=this.Wz)==null?void 0:l.T)?this.audioTrack:this.videoTrack,T;if((T=E7(m))==null?0:T.isLocked){if(this.vz.Y().bZ()){var y;this.Tu("eosl",{ounlock:(y=E7(m))==null?void 0:y.info.LR()})}var R;xfb(this,a===((R=this.Wz)==null?void 0:R.T))}var H;if(this.policy.OQ&&a===((H=this.Wz)==null?void 0:H.T)&&this.rb){l=this.rb-this.getCurrentTime();var b;this.vz.Tu("asl",{l:l,xtag:(b=QO(this.audioTrack))==null?void 0:b.T.info.T});this.wb=!1;this.rb=0}a.oV()&&a.PY().length===0&& (a.Vl(),this.Wz&&!this.Wz.oV()&&(this.vz.Y().bZ()&&this.vz.Tu("rms",{ld:"seek"}),this.Wz.C=performance.now(),this.vz.y_(),this.vz.Y().bZ()&&g.l0(this.wW)));var M;(M=m.N)!=null&&Tq(M,0);this.policy.SW?N1H(this):this.qI()}; g.Z.fKj=function(a){if(this.Wz){var l=QO(a===this.Wz.T?this.audioTrack:this.videoTrack);if(a=a.kJ())for(var m=0;m5&&a.Ij.shift();l=l.mN;var T;if((T=this.vz.getVideoData())==null?0:T.enableServerStitchedDai)T=HRw(this.audioTrack,l),m=HRw(this.videoTrack,l),T!==0&&m!==0&&T!==m&&this.handleError("ssdai.avsync",{sq:l,a:T,v:m},0)}}; g.Z.QG=function(a,l,m,T){a.info.video&&this.L.QG(l,m,T)}; g.Z.Dc=function(a){this.T.Dc(a)}; g.Z.ov=l7(20);g.Z.Hj=function(){return this.videoTrack.B||this.audioTrack.B}; g.Z.seek=function(a,l){if(this.FO())return f1();if(this.Hj())return f1("seeking to head");if(this.policy.lT&&!isFinite(a))return rvt(this.wL),g.SF(Infinity);eZP(this);this.Vf=(0,g.E)();this.policy.T||cUH(this,a);this.Wz&&this.Wz.T&&this.Wz.L&&!this.vz.getVideoData().yV&&(this.Wz.T.isLocked()||this.Wz.L.isLocked())&&this.vz.Oe({reattachOnLockedBuffer:1,vsb:""+this.Wz.L.isLocked(),asb:""+this.Wz.T.isLocked()});var m=this.getCurrentTime(),T=this.wL.seek(a,l);this.policy.hM||(this.currentTime=T);ng(this.L, a,m,this.policy.Nu&&!l.Cv);wi(this);return g.SF(T)}; g.Z.F2=function(a){return this.policy.T&&this.j.F2(a)}; g.Z.rK=function(a){return this.j.rK(a)}; g.Z.JX=function(a,l){this.j.JX(a,l)}; g.Z.getCurrentTime=function(){if(this.policy.hM){var a=this.YX()||0;return this.vz.getCurrentTime()-a}return this.currentTime}; g.Z.O_=function(){return this.audioTrack.T.info}; g.Z.Ii=function(){return this.videoTrack.T.info}; g.Z.Ip=function(){return this.audioTrack.T.info.Gu}; g.Z.lq=function(){return this.videoTrack.T.info.Gu}; g.Z.sL=function(){try{this.Ql(),Jo(this.audioTrack),Jo(this.videoTrack),BB(this.audioTrack),BB(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.k.prototype.sL.call(this)}catch(a){g.kt(a)}}; g.Z.handleError=function(a,l,m){m=m===void 0?0:m;var T=Kw(m);a==="fmt.unplayable"&&this.Vg.isLive&&(this.policy.qd=!1,sj(this.Vg));l=new O_(a,l,m);g.y5(this);hS(l.details);this.vz.handleError(l);a!=="html5.invalidstate"&&l.errorCode!=="fmt.unplayable"&&a!=="fmt.unparseable"&&T&&this.dispose()}; g.Z.rW=function(){var a=QO(this.audioTrack),l=QO(this.videoTrack);a={lct:this.getCurrentTime().toFixed(3),lsk:this.wL.isSeeking(),lmf:this.T.T.isLocked(),lbw:QX(this.schedule).toFixed(3),lhd:LR(this.schedule).toFixed(3),lst:((this.schedule.B.Xc()||0)*1E9).toFixed(3),laa:a?a.LR():"",lva:l?l.LR():"",lar:this.audioTrack.L?this.audioTrack.L.LR():"",lvr:this.videoTrack.L?this.videoTrack.L.LR():"",laq:""+KH(this.audioTrack),lvq:""+KH(this.videoTrack)};this.Wz&&!this.Wz.gL()&&this.Wz.T&&this.Wz.L&&(a.lab= gV(this.Wz.T.PY()),a.lvb=gV(this.Wz.L.PY()));this.Hd&&(a.lapt=((0,g.E)()-this.Hd).toFixed(0),a.lapr=vw3(this));this.hM&&(a.lapmabht=((0,g.E)()-this.hM).toFixed(0),a.lapmabh=kL(this,this.audioTrack).toFixed(0));this.Cx&&(a.lapmvbht=((0,g.E)()-this.Cx).toFixed(0),a.lapmvbh=kL(this,this.videoTrack).toFixed(0));this.Kx&&(a.lapsdai=((0,g.E)()-this.Kx).toFixed(0));return a}; g.Z.A$=function(){try{this.policy.T&&this.j.JX(!1,"pending"),this.audioTrack.A$(),this.videoTrack.A$()}catch(a){g.kt(a)}this.policy.j=""}; g.Z.LQ=function(){return O7(this.J)}; g.Z.Tu=function(a,l,m){this.vz.Tu(a,l,m===void 0?!1:m)}; g.Z.f$=function(){return this.vz.f$()}; g.Z.hK=function(a,l){a/=l;isNaN(this.timestampOffset)&&yBp(this,a-Math.min(a,this.policy.zY));return(a-this.timestampOffset)*l}; g.Z.YX=function(){return this.timestampOffset}; g.Z.isSeeking=function(){return this.wL.isSeeking()}; g.Z.UM=function(){this.L.UM()}; g.Z.AP=function(a,l,m){l=l===void 0?!1:l;m=m===void 0?{}:m;this.policy.T?this.Z.AP(a,l,m):this.T.AP(a,l,m)}; g.Z.RV=function(a,l){if(this.Ij&&this.L.RV(a,this.Ij))return yBp(this,this.timestampOffset-l),wi(this),this.policy.Z&&(sj(this.Vg),BB(this.audioTrack),BB(this.videoTrack),this.A$()),!0;l=this.videoTrack.T.index.l$(a);this.handleError("ad.skipfailed",{dec:!!this.Ij,t:a.toFixed(3),sq:l});return!1}; g.Z.getManifest=function(){return this.Vg}; g.Z.isOffline=function(){return!!this.vz.getVideoData().cotn}; g.Z.T1=function(a,l){this.vz.T1(a,l)}; g.Z.W5=function(a){if(this.policy.T)this.j.JX(!0,"utc"),this.qI();else{var l=this.vz.getVideoData().Ku;if(l){var m=this.K;m.bk=a;m.Ku=l;Xk(this)}}}; g.Z.So=function(a){this.videoTrack.B=!1;this.audioTrack.B=!1;this.wL.L=!1;this.vz.So(a)}; g.Z.qf=function(a){this.wL.qf(a-this.YX())}; g.Z.Uz=function(){this.vz.Uz()}; g.Z.r4=function(a){a!==this.policy.kA&&((this.policy.kA=a)||this.qI())}; g.Z.dF=function(a,l){var m=this.audioTrack.VO,T=this.videoTrack.VO;m&&T&&(m.remove(a,l),T.remove(a,l))}; g.Z.Oe=function(a){this.vz.Oe(a)}; g.Z.kY=function(a){this.vz.kY(a)}; g.Z.gT=function(){return this.vz.gT()}; g.Z.F5=function(){sj(this.Vg);this.A$()};g.Z=g.uF.prototype;g.Z.Tf=function(a,l,m,T,y,R){return this.QP.Tf(a,l,m,T,y,R)}; g.Z.X0=function(a,l,m,T,y,R){return this.QP.X0(a,l,m,T,y,R)}; g.Z.Yg=function(a){return this.QP.Yg(a)}; g.Z.r3=function(a){this.QP.r3(a)}; g.Z.ws=function(a,l,m,T){return this.QP.ws(a,l,m,T)}; g.Z.UM=function(){this.QP.UM()}; g.Z.xE=function(a,l){this.QP.xE(a,l)}; g.Z.Mm=function(){this.QP.Mm()}; g.Z.c6=l7(62);g.Z.UH=function(a,l,m){this.QP.UH(a,l,m)}; g.Z.QU=l7(65);g.Z.zD=function(a,l,m,T,y,R,H,b,M){this.QP.zD(a,l,m,T,y,R,H,b,M)}; g.Z.Dw=function(a){this.QP.Dw(a)}; g.Z.dc=function(a){return this.QP.dc(a)}; g.Z.fA=function(a){return this.QP.fA(a)};g.W(XE,g.Aj);g.W(Yu,XE);Yu.prototype.C=function(a,l){if(a&&l){var m=Number(Jd(a,"cpi"))*1+1;isNaN(m)||m<=0||mthis.Z&&(this.Z=m,g.rg(this.T)||(this.T={},this.j.stop(),this.L.stop())),this.T[l]=a,g.l0(this.L))}}; Yu.prototype.K=function(){for(var a=g.c(Object.keys(this.T)),l=a.next();!l.done;l=a.next()){var m=l.value;l=this.publish;for(var T=this.Z,y=g.e$(this.T[m]),R=[],H=g.c(y[6].split("&")),b=H.next();!b.done;b=H.next())b=b.value,b.indexOf("cpi=")===0?R.push("cpi="+T.toString()):b.indexOf("ek=")===0?R.push("ek="+g.Gy(m)):R.push(b);y[6]="?"+R.join("&");m="skd://"+y.slice(2).join("");y=m.length*2;T=new Uint8Array(y+4);T[0]=y%256;T[1]=(y-T[0])/256;for(y=0;y0)for(var m=g.c(this.T),T=m.next();!T.done;T=m.next())if(l===T.value.info.cryptoPeriodIndex){l=!0;break a}l=!1}if(!l){l=(0,g.E)();a:{m=a.cryptoPeriodIndex;if(!isNaN(m)){T=g.c(this.Z.values());for(var y=T.next();!y.done;y=T.next())if(Math.abs(y.value.cryptoPeriodIndex-m)<=1){m=!0;break a}}m=!1}m?(m=a.T,m=Math.max(0,Math.random()*((isNaN(m)?120:m)-30))*1E3):m=0;this.publish("log_qoe",{wvagt:"delay."+m,cpi:a.cryptoPeriodIndex,reqlen:this.T.length, ignore:this.j});m<=0?bq7(this,a):this.j||(this.T.push({time:l+m,info:a}),g.l0(this.L,m))}}; Uv.prototype.sL=function(){this.T=[];XE.prototype.sL.call(this)};var Gk={},jpz=(Gk.DRM_TRACK_TYPE_AUDIO="AUDIO",Gk.DRM_TRACK_TYPE_SD="SD",Gk.DRM_TRACK_TYPE_HD="HD",Gk.DRM_TRACK_TYPE_UHD1="UHD1",Gk);g.W(iqP,g.k);g.W(ZHH,g.Aj);g.Z=ZHH.prototype;g.Z.f6=function(a){var l=this;if(!(this.FO()||a.size<=0)){var m={};a.forEach(function(T,y){var R=xi(l.L)?y:T;y=new Uint8Array(xi(l.L)?T:y);xi(l.L)&&Sz3(y);T=g.Tf(y,4);Sz3(y);y=g.Tf(y,4);l.T[T]?l.T[T].status=R:l.T[y]?l.T[y].status=R:l.T[T]={type:"",status:R};l.aj.V("html5_authorized_drm_track_types")?(R=l.T[T].type,T=$5w(R),lA(l,R)&&!m[T]&&(l.nh.push(T),m[T]=!0)):(l.j=[],lA(l,l.T[T].type)&&l.nh.push($5w(l.T[T].type)))}); zYz(this,",");ri(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.Z.error=function(a,l,m,T){this.FO()||(this.publish("licenseerror",a,l,m,T),a==="drm.provision"&&(a=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));Kw(l)&&this.dispose()}; g.Z.shouldRetry=function(a,l){return!a&&this.requestNumber===l.requestNumber}; g.Z.sL=function(){this.T={};g.Aj.prototype.sL.call(this)}; g.Z.rW=function(){var a={ctype:this.J.contentType||"",length:this.J.initData.length,requestedKeyIds:this.jt,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Z&&(a.keyStatuses=this.T);return a}; g.Z.getInfo=function(){var a=this.j.join();if(aP(this)){var l=new Set,m;for(m in this.T)this.T[m].status!=="usable"&&l.add(this.T[m].type);a+="/UKS."+Array.from(l)}return a+="/"+this.cryptoPeriodIndex}; g.Z.eb=function(){return this.url};g.W(mQ,g.k);g.Z=mQ.prototype;g.Z.v_=function(a){if(this.K){var l=a.messageType||"license-request";this.K(new Uint8Array(a.message),l)}}; g.Z.f6=function(){this.B&&this.B(this.T.keyStatuses)}; g.Z.onClosed=function(){this.FO()||g.xa("xboxone")&&this.Z&&this.Z("closedShouldNotRetry")}; g.Z.Lq=function(a){this.K&&this.K(a.message,"license-request")}; g.Z.TI=function(a){if(this.Z){if(this.L){var l=this.L.error.code;a=this.L.error.systemCode}else l=a.errorCode,a=a.systemCode;this.Z("t.prefixedKeyError;c."+l+";sc."+a,l,a)}}; g.Z.Iq=function(){this.C&&this.C()}; g.Z.update=function(a){var l=this;if(this.T)return this.T.update(a).then(null,Oa(function(m){J2Q(l,"t.update",m)})); this.L?this.L.update(a):this.element.addKey?this.element.addKey(this.J.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.J.keySystem,a,this.initData,this.sessionId);return fy()}; g.Z.sL=function(){this.T&&(this.N?this.T.close().catch(g.nU):this.T.close());this.element=null;g.k.prototype.sL.call(this)};g.W(TE,g.k);g.Z=TE.prototype;g.Z.setServerCertificate=function(){return this.L.setServerCertificate?this.T.flavor==="widevine"&&this.T.a8?this.L.setServerCertificate(this.T.a8):Xi(this.T)&&this.T.St?this.L.setServerCertificate(this.T.St):null:null}; g.Z.createSession=function(a,l){var m=a.initData;if(this.T.keySystemAccess){l&&l("createsession");var T=this.L.createSession();uw(this.T)?m=nCQ(m,this.T.St):Xi(this.T)&&(m=q2d(m)||new Uint8Array(0));l&&l("genreq");a=T.generateRequest(a.contentType,m);var y=new mQ(null,null,null,T,null,this.B);a.then(function(){l&&l("genreqsuccess")},Oa(function(H){J2Q(y,"t.generateRequest",H)})); return y}if(ob(this.T))return I3w(this,m);if(DO(this.T))return wB7(this,m);if((T=this.element)==null?0:T.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,m);else{var R;(R=this.element)==null||R.webkitGenerateKeyRequest(this.T.keySystem,m)}return this.j=new mQ(this.element,this.T,m,null,null,this.B)}; g.Z.Te=function(a){var l=Cz5(this,a);l&&l.Lq(a)}; g.Z.lL=function(a){var l=Cz5(this,a);l&&l.TI(a)}; g.Z.IB=function(a){var l=Cz5(this,a);l&&l.Iq(a)}; g.Z.getMetrics=function(){if(this.L&&this.L.getMetrics)try{var a=this.L.getMetrics()}catch(l){}return a}; g.Z.sL=function(){this.Z=this.L=null;var a;(a=this.j)==null||a.dispose();a=g.c(Object.values(this.C));for(var l=a.next();!l.done;l=a.next())l.value.dispose();this.C={};g.k.prototype.sL.call(this);delete this.element};g.Z=yY.prototype;g.Z.get=function(a){a=this.findIndex(a);return a!==-1?this.values[a]:null}; g.Z.remove=function(a){a=this.findIndex(a);a!==-1&&(this.keys.splice(a,1),this.values.splice(a,1))}; g.Z.removeAll=function(){this.keys=[];this.values=[]}; g.Z.set=function(a,l){var m=this.findIndex(a);m!==-1?this.values[m]=l:(this.keys.push(a),this.values.push(l))}; g.Z.findIndex=function(a){return g.V5(this.keys,function(l){return g.Sc(a,l)})};g.W(x5w,g.Aj);g.Z=x5w.prototype;g.Z.j0T=function(a){this.O9({onecpt:1});a.initData&&XBQ(this,new Uint8Array(a.initData),a.initDataType)}; g.Z.JNT=function(a){this.O9({onndky:1});XBQ(this,a.initData,a.contentType)}; g.Z.O6=function(a){this.O9({onneedkeyinfo:1});this.aj.V("html5_eme_loader_sync")&&(this.B.get(a.initData)||this.B.set(a.initData,a));ukt(this,a)}; g.Z.Qw=function(a){this.Z.push(a);RP(this)}; g.Z.createSession=function(a){var l=U55(this)?pKw(a):g.Tf(a.initData);this.L.get(l);this.qj=!0;a=new ZHH(this.videoData,this.aj,a,this.drmSessionId);this.L.set(l,a);a.subscribe("ctmp",this.Hy,this);a.subscribe("keystatuseschange",this.f6,this);a.subscribe("licenseerror",this.ES,this);a.subscribe("newlicense",this.nJ,this);a.subscribe("newsession",this.aq,this);a.subscribe("sessionready",this.eL,this);a.subscribe("fairplay_next_need_key_info",this.zk,this);this.aj.V("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", this.jS,this);a.subscribe("sabrlicenseconstraint",this.gvL,this);NU7(a,this.j)}; g.Z.nJ=function(a){this.FO()||(this.O9({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))}; g.Z.aq=function(){this.FO()||(this.O9({newlcssn:1}),this.Z.shift(),this.qj=!1,RP(this))}; g.Z.eL=function(){if(ob(this.T)&&(this.O9({onsnrdy:1}),this.Cx--,this.Cx===0)){var a=this.Ij,l,m;(l=a.element)==null||(m=l.msSetMediaKeys)==null||m.call(l,a.Z)}}; g.Z.f6=function(a){if(!this.FO()){!this.Kx&&this.videoData.V("html5_log_drm_metrics_on_key_statuses")&&(r27(this),this.Kx=!0);this.O9({onksch:1});var l=this.jS;if(!aP(a)&&g.U9&&a.L.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var m="large";else{m=[];var T=!0;if(aP(a))for(var y=g.c(Object.keys(a.T)),R=y.next();!R.done;R=y.next())R=R.value,a.T[R].status==="usable"&&m.push(a.T[R].type),a.T[R].status!=="unknown"&&(T=!1);if(!aP(a)||T)m=a.j;m=Kjd(m)}l.call(this,m);this.publish("keystatuseschange", a)}}; g.Z.Hy=function(a,l){this.FO()||this.publish("ctmp",a,l)}; g.Z.zk=function(a,l){this.FO()||this.publish("fairplay_next_need_key_info",a,l)}; g.Z.ES=function(a,l,m,T){this.FO()||(this.videoData.V("html5_log_drm_metrics_on_error")&&r27(this),this.publish("licenseerror",a,l,m,T))}; g.Z.lO=function(){return this.J}; g.Z.jS=function(a){var l=g.du("auto",a,!1,"l");if(this.videoData.Mg){if(this.J.equals(l))return}else if(Ybl(this.J,a))return;this.J=l;this.publish("qualitychange");this.O9({updtlq:a})}; g.Z.gvL=function(a){this.videoData.sabrLicenseConstraint=a}; g.Z.sL=function(){this.T.keySystemAccess&&this.element&&(this.jt?this.element.setMediaKeys(null).catch(g.nU):this.element.setMediaKeys(null));this.element=null;this.Z=[];for(var a=g.c(this.L.values()),l=a.next();!l.done;l=a.next())l=l.value,l.unsubscribe("ctmp",this.Hy,this),l.unsubscribe("keystatuseschange",this.f6,this),l.unsubscribe("licenseerror",this.ES,this),l.unsubscribe("newlicense",this.nJ,this),l.unsubscribe("newsession",this.aq,this),l.unsubscribe("sessionready",this.eL,this),l.unsubscribe("fairplay_next_need_key_info", this.zk,this),this.aj.V("html5_enable_vp9_fairplay")&&l.unsubscribe("qualitychange",this.jS,this),l.dispose();this.L.clear();this.C.removeAll();this.B.removeAll();this.heartbeatParams=null;g.Aj.prototype.sL.call(this)}; g.Z.rW=function(){for(var a={systemInfo:this.T.rW(),sessions:[]},l=g.c(this.L.values()),m=l.next();!m.done;m=l.next())a.sessions.push(m.value.rW());return a}; g.Z.getInfo=function(){return this.L.size<=0?"no session":""+this.L.values().next().value.getInfo()+(this.K?"/KR":"")}; g.Z.O9=function(a,l){l=l===void 0?!1:l;this.FO()||(hS(a),(this.aj.bZ()||l)&&this.publish("ctmp","drmlog",a))};g.W(ykw,g.k);g.Z=ykw.prototype;g.Z.aX=function(){return!!this.cj}; g.Z.Wt=function(){return this.L}; g.Z.handleError=function(a){var l=this;Mg3(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!gud(this,a.errorCode,a.details))&&!Ak3(this,a)){if(this.UL.Ij!=="yt"&&doH(this,a)&&this.videoData.YV&&(0,g.E)()/1E3>this.videoData.YV&&this.UL.Ij==="hm"){var m=Object.assign({e:a.errorCode},a.details);m.stalesigexp="1";m.expire=this.videoData.YV;m.init=this.videoData.KX/1E3;m.now=(0,g.E)()/1E3;m.systelapsed=((0,g.E)()-this.videoData.KX)/1E3;a= new O_(a.errorCode,m,2);this.vz.jd(a.errorCode,2,"SIGNATURE_EXPIRED",hS(a.details))}if(Kw(a.severity)){var T;m=(T=this.vz.loader)==null?void 0:T.T.T;if(this.UL.V("html5_use_network_error_code_enums"))if(iWb(a)&&m&&m.isLocked())var y="FORMAT_UNAVAILABLE";else if(this.UL.C||a.errorCode!=="auth"||a.details.rc!==429)a.errorCode==="ump.spsrejectfailure"&&(y="HTML5_SPS_UMP_STATUS_REJECTED");else{y="TOO_MANY_REQUESTS";var R="6"}else iWb(a)&&m&&m.isLocked()?y="FORMAT_UNAVAILABLE":this.UL.C||a.errorCode!== "auth"||a.details.rc!=="429"?a.errorCode==="ump.spsrejectfailure"&&(y="HTML5_SPS_UMP_STATUS_REJECTED"):(y="TOO_MANY_REQUESTS",R="6");this.vz.jd(a.errorCode,a.severity,y,hS(a.details),R)}else this.vz.publish("nonfatalerror",a),T=/^pp/.test(this.videoData.clientPlaybackNonce),this.yP(a.errorCode,a.details),T&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.E)(),FV(a,"manifest",function(H){l.C=!0;l.Tu("pathprobe",H)}, function(H){l.yP(H.errorCode,H.details)}))}}; g.Z.Tu=function(a,l){this.vz.R0().Tu(a,l)}; g.Z.yP=function(a,l){l=hS(l);this.vz.R0().yP(a,l)};HC.prototype.lw=function(a,l){return(l===void 0?0:l)?{tq:a?bA(this,a):xW,Ym:a?tgt(this,a):xW,luK:a?Nib(this,a):xW,Z7t:a?zt7(this,a.videoData):xW,LF:a?vu3(this,a.videoData,a):xW,Zab:a?ckp(this,a):xW,Oax:ZWb(this)}:{tq:a?bA(this,a):xW}}; HC.prototype.uH=function(a){var l;g.J$(this.aj)&&(l=window.screen&&window.screen.width?new g.Sk(window.screen.width,window.screen.height):null);l||(l=this.aj.TF?this.aj.TF.clone():this.O4.jH());(ai||lz||a)&&l.scale(g.r1());return l}; HC.prototype.V=function(a){return this.aj.V(a)};g.W(gN,g.k);gN.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(hnc)?this.networkErrorCount++:this.nonNetworkErrorCount++}; gN.prototype.send=function(){if(!(this.Z||this.T<0)){Sv5(this);var a=g.Dw(this.provider)-this.T,l="PLAYER_PLAYBACK_STATE_UNKNOWN",m=this.playerState.p7;this.playerState.isError()?l=m&&m.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.u(this.playerState,2)?l="PLAYER_PLAYBACK_STATE_ENDED":g.u(this.playerState,64)?l="PLAYER_PLAYBACK_STATE_UNSTARTED":g.u(this.playerState,16)||g.u(this.playerState,32)?l="PLAYER_PLAYBACK_STATE_SEEKING":g.u(this.playerState,1)&&g.u(this.playerState, 4)?l="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.u(this.playerState,1)?l="PLAYER_PLAYBACK_STATE_BUFFERING":g.u(this.playerState,4)?l="PLAYER_PLAYBACK_STATE_PAUSED":g.u(this.playerState,8)&&(l="PLAYER_PLAYBACK_STATE_PLAYING");m=V$5[QZ(this.provider.videoData)];a:switch(this.provider.aj.playerCanaryState){case "canary":var T="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":T="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:T="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var y=fwp(this.provider), R=this.L<0?a:this.L-this.T;a=this.provider.aj.Sd+36E5<(0,g.E)();l={started:this.L>=0,stateAtSend:l,joinLatencySecs:R,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:T,playerCanaryStage:y,isAd:this.provider.videoData.isAd(),liveMode:m,hasDrm:!!g.LK(this.provider.videoData),isGapless:this.provider.videoData.B,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Mf(this.provider.videoData)};a||g.js("html5PlayerHealthEvent",l);this.Z=!0;this.dispose()}}; gN.prototype.sL=function(){this.Z||this.send();window.removeEventListener("error",this.CZ);window.removeEventListener("unhandledrejection",this.CZ);g.k.prototype.sL.call(this)}; var hnc=/\bnet\b/;g.W(Biw,g.k);Biw.prototype.sL=function(){nuR(this);g.k.prototype.sL.call(this)};var wQw=/[?&]cpn=/;g.W(MK,g.k);MK.prototype.flush=function(){var a={};this.L&&(a.pe=this.L);this.T.length>0&&(a.pt=this.T.join("."));this.T=[];return a}; MK.prototype.stop=function(){var a=this,l,m,T;return g.J(function(y){if(y.L==1)return g.LP(y,2),g.z(y,(l=a.j)==null?void 0:l.stop(),4);if(y.L!=2)return(m=y.T)&&a.logTrace(m),g.e7(y,0);T=g.OQ(y);a.L=uEQ(T.message);g.c5(y)})}; MK.prototype.logTrace=function(a){this.encoder.reset();this.encoder.add(1);this.encoder.add(a.resources.length);for(var l=g.c(a.resources),m=l.next();!m.done;m=l.next()){m=m.value.replace("https://www.youtube.com/s/","");this.encoder.add(m.length);for(var T=0;T=0?a:g.Dw(this.provider),this.qj?OFs.has(this.K5)&&(this.T.size||(this.K5==="PL"?a>=this.L+30:a<=this.lT+30||a>=this.L+1200&&a<=this.lT+86400))&&(g.jw(this,a,"vps",[this.K5]),this.L=a):["PL","B","S"].indexOf(this.K5)>-1&&(this.T.size||a>=this.L+30)&&(g.jw(this,a,"vps",[this.K5]),this.L=a),this.T.size)){this.sequenceNumber===7E3&&g.nU(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){GE(this,a);var l=this.provider.vz.Ty(); l=g.c(l);for(var m=l.next();!m.done;m=l.next())m=m.value,this.Tu(m.key,m.value);l=a;m=this.provider.vz.eM();var T=m.droppedVideoFrames||0,y=m.totalVideoFrames||0,R=T-this.pZ,H=y&&!this.Ro;T>m.totalVideoFrames||R>5E3?bLb(this,"html5.badframedropcount","df."+T+";tf."+m.totalVideoFrames):(R>0||H)&&g.jw(this,l,"df",[R]);this.pZ=T;this.Ro=y;this.J>0&&(g.jw(this,a,"glf",[this.J]),this.J=0);bk.isActive()&&(a=bk.vT(),Object.keys(a).length>0&&this.Tu("profile",a));this.QO&&VY(this,"lwnmow");this.provider.aj.bZ()&& this.provider.V("html5_record_now")&&this.Tu("now",{wt:(0,g.E)()});a={};this.provider.videoData.L&&(a.fmt=this.provider.videoData.L.itag,(l=this.provider.videoData.j)&&l.itag!==a.fmt&&(a.afmt=l.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.uI&&(a.addocid=this.uI);this.contentCpn&&(a.ccpn=this.contentCpn);this.Ij&&(a.cdocid=this.Ij);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=JU(this.provider.videoData);a.content_v=kw(this.provider.videoData); a.ns=this.provider.aj.Ij;a.fexp=Spp(this.provider.aj.experiments).toString();a.cl=(753393358).toString();(l=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=l);(l=QZ(this.provider.videoData))&&(a.live=l);this.provider.videoData.wR()&&(a.drm=1,this.provider.videoData.K&&(a.drm_system=GbI[this.provider.videoData.K.flavor]||0),this.provider.videoData.drmProduct&&(a.drm_product=this.provider.videoData.drmProduct));d0()&&this.provider.videoData.C&&(a.ctt=this.provider.videoData.C,a.cttype= this.provider.videoData.P7,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.ZO&&(a.dai_fallback="1")):this.provider.videoData.XU?a.dai="cs":this.provider.videoData.QY&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.In){if(l=this.provider.videoData.In,a&&l)for(l.ns==="3pp"&&(a.ns="3pp"),this.nR.has(l.ns)&& VY(this,"hbps"),l.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=l.shbpslc),this.provider.aj.experiments.XO("html5_use_server_qoe_el_value")&&this.yg.delete("el"),m=g.c(Object.keys(l)),T=m.next();!T.done;T=m.next())T=T.value,this.yg.has(T)||(a[T]=l[T])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;this.isEmbargoed&&(a.embargoed="1");Object.assign(a,this.provider.aj.T);if(l=a.seq)l={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+l,serializedWatchEndpointLoggingContext:this.provider.videoData.F1L},this.serializedHouseBrandPlayerServiceLoggingContext&&(l.serializedHouseBrandPlayerServiceLoggingContext=Rl(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(l.playerResponseCpn=this.provider.videoData.playerResponseCpn),dN.length&&(l.decoderInfo=dN),this.provider.vz.z7()&&(l.transitionStitchType=4,this.hM&&(l.timestampOffsetMsecs=this.hM)),this.remoteControlMode&& (l.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(l.remoteConnectedDevices=this.remoteConnectedDevices),l=g.rs(l,Lw5),l=g.Tf(l,4),this.T.set("qclc",[l]);a=g.S$("//"+this.provider.aj.Ln+"/api/stats/qoe",a);m=l="";T=g.c(this.T.entries());for(y=T.next();!y.done;y=T.next())R=g.c(y.value),y=R.next().value,R=R.next().value,H=void 0,(H=R)!=null&&H.join&&(y="&"+y+"="+R.join(","),y.length>100?m+=y:l+=y);yDP(this,a+l,m.replace(/ /g,"%20"))}this.T.clear()}}; g.Z.kY=function(a){this.QO=a}; g.Z.w2=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;VY(this,"eme-"+(a.keySystemAccess?"final":ob(a)?"ms":uw(a)?"ytfp":DO(a)?"safarifp":"nonfinal"))}}; g.Z.JE=l7(59);g.Z.JO=function(a){this.isEmbargoed=a}; g.Z.y4=l7(36);g.Z.XK=l7(42);g.Z.onPlaybackRateChange=function(a){var l=g.Dw(this.provider);a&&a!==this.FU&&(g.jw(this,l,"rate",[a]),this.FU=a);this.qj||this.reportStats(l)}; g.Z.y8=l7(30);g.Z.getPlayerState=function(a){if(g.u(a,128))return"ER";if(g.u(a,2048))return"B";if(g.u(a,512))return"SU";if(g.u(a,16)||g.u(a,32))return"S";if(a.isOrWillBePlaying()&&g.u(a,64))return"B";var l=KE_[Ps(a)];g.OF(this.provider.aj)&&l==="B"&&this.provider.vz.getVisibilityState()===3&&(l="SU");l==="B"&&g.u(a,4)&&(l="PB");return l}; g.Z.sL=function(){g.k.prototype.sL.call(this);g.Ly(this.jt);g.Ly(this.wW)}; g.Z.ZF=function(a){this.isOffline=a;g.jw(this,g.Dw(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.Z.Tu=function(a,l,m){var T=this.wO.indexOf(a)!==-1;T||this.wO.push(a);if(!m||!T){var y=typeof l!=="string"?hS(l):l;y=Mwt(y);if(!m&&!/^t[.]/.test(y)){var R=g.Dw(this.provider)*1E3;y="t."+R.toFixed()+";"+y}PC(this,"ctmp",a+":"+y);this.logger.debug(function(){return"ctmp "+a+" "+y}); Rp7(this);return R}}; g.Z.Zo=function(a,l,m){this.K={Vdx:Number(this.Tu("glrem",{nst:a.toFixed(),rem:l.toFixed(),ca:+m})),fJ:a,UAO:l,isAd:m}}; g.Z.SE=function(a,l,m){g.jw(this,g.Dw(this.provider),"ad_playback",[a,l,m])}; g.Z.sJ=function(a,l){var m=g.Dw(this.provider)*1E3;PC(this,"daism","t."+m.toFixed(0)+";smw."+(a*1E3).toFixed(0)+";smo."+(l*1E3).toFixed(0))}; g.Z.resume=function(){var a=this;this.provider.aj.bZ()&&this.Tu("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.jt)?HLQ(this):this.jt=g.W$(function(){a.reportStats()},1E4)}; var VE={},KE_=(VE[5]="N",VE[-1]="N",VE[3]="B",VE[0]="EN",VE[2]="PA",VE[1]="PL",VE[-1E3]="ER",VE[1E3]="N",VE),OFs=new Set(["PL","B","S"]),dN=[];dKH.prototype.update=function(){if(this.B){var a=this.Ja()||0,l=g.Dw(this.provider);a>=this.provider.vz.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.T||PA3(this,a,l)){var m;if(!(m=al-this.BZ+2||PA3(this,a,l))){m=this.provider.vz.getVolume();var T=m!==this.N,y=this.provider.vz.isMuted()?1:0;y!==this.J?(this.J=y,m=!0):(!T||this.j>=0||(this.N=m,this.j=l),m=l-this.j,this.j>=0&&m>2?(this.j=-1,m=!0):m=!1)}m&&(cC(this),this.Z=a);this.BZ=l;this.T=a}}}; dKH.prototype.Ja=function(){var a=this.provider.vz.Ja();return this.provider.aj.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&IY(this.provider.videoData)?a+this.provider.vz.YX():a};GEl.prototype.send=function(a){var l=this;if(!this.wb){var m=pCH(this),T=g.S$(this.uri,m);this.aj.V("vss_through_gel_double")&&ZLw(T);this.qj&&!this.aj.V("html5_simplify_pings")?QPb(this,T):Vw3(this,a).then(function(y){l.qj&&(y=y||{},y.method="POST",y.postParams={atr:l.attestationResponse});oul(T,y,{token:l.lT,Xn:l.ZR,mdxEnvironment:l.mdxEnvironment},l.aj,a,l.hM,l.isFinal&&l.Be||l.Kx||l.Z&&l.Sd)}); this.wb=!0}}; GEl.prototype.L=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()}; var p4={},LQl=(p4.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,p4.LIVING_ROOM_APP_MODE_MAIN=1,p4.LIVING_ROOM_APP_MODE_KIDS=2,p4.LIVING_ROOM_APP_MODE_MUSIC=3,p4.LIVING_ROOM_APP_MODE_UNPLUGGED=4,p4.LIVING_ROOM_APP_MODE_GAMING=5,p4),Zu={},cDQ=(Zu.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Zu.EMBEDDED_PLAYER_MODE_DEFAULT=1,Zu.EMBEDDED_PLAYER_MODE_PFP=2,Zu.EMBEDDED_PLAYER_MODE_PFL=3,Zu);g.W(NK,g.k);NK.prototype.Sq=function(){this.T.update();$Kl(this)&&(FQH(this),hpb(this))}; NK.prototype.sL=function(){g.k.prototype.sL.call(this);ew(this);jPd(this.T)}; NK.prototype.rW=function(){return pCH(QY(this,"playback"))}; NK.prototype.ju=function(a){var l=QY(this,"engage");l.jt=a;return WQR(l,kEz(this.provider))};BNH.prototype.isEmpty=function(){return this.endTime===this.startTime};hD.prototype.V=function(a){return this.aj.V(a)}; hD.prototype.getCurrentTime=function(){if(g.US(this.videoData)){var a=this.vz.z7();if(a){var l=this.vz.getCurrentTime(),m;a=(((m=a.wz(l*1E3))==null?void 0:m.gG)||0)/1E3;return l-a}}return this.vz.getCurrentTime()}; hD.prototype.Ja=function(){if(g.US(this.videoData)){var a=this.vz.z7();if(a){var l=this.vz.Ja(),m;a=(((m=a.wz(l*1E3))==null?void 0:m.gG)||0)/1E3;return l-a}}return this.vz.Ja()}; var nKd={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.W(g.Or,g.k);g.Z=g.Or.prototype;g.Z.Sq=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B1){var a;(a=this.Z.get(this.B1))==null||a.Sq()}else this.T&&this.T.Sq()}; g.Z.JO=function(a){this.qoe&&this.qoe.JO(a)}; g.Z.y4=l7(35);g.Z.XK=l7(41);g.Z.sJ=function(a,l){this.qoe&&this.qoe.sJ(a,l)}; g.Z.g0=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B1){var a;(a=this.Z.get(this.B1))!=null&&cC(a.T)}else this.T&&cC(this.T.T)}; g.Z.yP=function(a,l){this.qoe&&bLb(this.qoe,a,l);if(this.L)this.L.onError(a)}; g.Z.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.T&&cC(this.T.T)}; g.Z.JE=l7(58);g.Z.Tu=function(a,l,m){this.qoe&&this.qoe.Tu(a,l,m)}; g.Z.Zo=function(a,l,m){this.qoe&&this.qoe.Zo(a,l,m)}; g.Z.VJ=function(a){var l;(l=this.qoe)==null||l.VJ(a)}; g.Z.l8=function(a){var l;(l=this.qoe)==null||l.l8(a)}; g.Z.kY=function(a){this.qoe&&this.qoe.kY(a)}; g.Z.SE=function(a,l,m){this.qoe&&this.qoe.SE(a,l,m)}; g.Z.y8=l7(29);g.Z.Iv=function(){if(this.qoe)return this.qoe.Iv()}; g.Z.rW=function(){if(this.provider.videoData.enableServerStitchedDai&&this.B1){var a,l;return(l=(a=this.Z.get(this.B1))==null?void 0:a.rW())!=null?l:{}}return this.T?this.T.rW():{}}; g.Z.ML=function(){var a;return(a=this.qoe)==null?void 0:a.ML()}; g.Z.Cp=function(a,l){var m;(m=this.qoe)==null||m.Cp(a,l)}; g.Z.ju=function(a){return this.T?this.T.ju(a):function(){}}; g.Z.getVideoData=function(){return this.provider.videoData}; g.Z.resume=function(){this.qoe&&this.qoe.resume()};g.W(vC,g.k); vC.prototype.bF=function(){if(this.T.has(void 0)){var a=this.T.get(void 0);if(!(void 0).videoId||a.T&&a.qoe)return;this.L.Tu("ssap",{rlc:void 0});this.T.has(void 0)&&(oKd(this.T.get(void 0)),this.T.delete(void 0))}if(!this.T.has(void 0)){a=new hD(void 0,this.aj,this.vz);var l=Math.round(KL(this.L)*1E3);a=new g.Or(a,l);a.T&&a.qoe||this.L.Tu("nqv",{vv:(void 0).videoId});l=this.L.getVideoData();this.T.set(void 0,a);if(a.qoe){var m=a.qoe,T=l.videoId||"";m.contentCpn=l.clientPlaybackNonce;m.Ij=T}wCz(a)}}; vC.prototype.FQ=function(a){if(a!==void 0){var l=this.R0(a),m=this.R0(),T,y=a===((T=l.getVideoData())==null?void 0:T.clientPlaybackNonce),R;T=void 0===((R=m.getVideoData())==null?void 0:R.clientPlaybackNonce);var H;R=y?((H=l.getVideoData())==null?void 0:H.videoId)||"":"nvd";var b;H=T?((b=m.getVideoData())==null?void 0:b.videoId)||"":"nvd";y&&(l=l.qoe)!=null&&(Zz(l,4,0,void 0,H),l.reportStats());T&&(zE(m),(l=m.qoe)!=null&&(Zz(l,4,1,a,R),l.reportStats()),EKd(m,new g.pu(void 0,m.K5)),IzH(m))}}; vC.prototype.R0=function(a){a=a||this.B1;return this.T.get(a)||this.L};g.W(g.$K,g.k);g.Z=g.$K.prototype; g.Z.d7=function(a,l){this.sync();l&&this.T.array.length>=2E3&&this.Qh("captions",1E4);l=this.T;if(a.length>1&&a.length>l.array.length)l.array=l.array.concat(a),l.array.sort(l.T);else for(var m=g.c(a),T=m.next();!T.done;T=m.next())T=T.value,!l.array.length||l.T(T,l.array[l.array.length-1])>0?l.array.push(T):g.JI(l.array,T,l.T);a=g.c(a);for(l=a.next();!l.done;l=a.next())l=l.value,l.namespace==="ad"&&this.K("ssap",{acrsid:l.getId(),acrsst:l.start,acrset:l.end,acrscpt:l.playerType});this.Z=NaN;this.sync()}; g.Z.Yh=function(a){a.length>1E4&&g.nU(new g.YH("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.FO()){for(var l=g.c(a),m=l.next();!m.done;m=l.next())(m=m.value)&&m.namespace==="ad"&&this.K("ssap",{rcrid:m.getId(),rcst:m.start,rcet:m.end,rcpt:m.playerType});var T=new Set(a);this.L=this.L.filter(function(y){return!T.has(y)}); Tmw(this.T,T);this.sync()}}; g.Z.Qh=function(a,l){var m=(isNaN(this.Z)?g.u(this.vz.getPlayerState(),2)?0x8000000000000:this.vz.getCurrentTime()*1E3:this.Z)-l;l=this.SH().filter(function(T){return T.namespace===a&&T.endthis.T,R=g.u(m,8)&&g.u(m,16),H=this.vz.Fm().isBackground()||m.isSuspended();CL(this,this.wb,R&&!H,y,"qoe.slowseek",function(){},"timeout"); var b=isFinite(this.T);b=R&&b&&vfP(l,this.T);var M=!T||Math.abs(T-this.T)>10,d=this.aj.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),A=T===0&&this.L&&[11,10].includes(this.L);CL(this,this.rb,b&&M&&!H&&(!d||!A),y,"qoe.slowseek",function(){l.seekTo(a.T)},"set_cmt"); M=b&&iH(l.dL(),this.T);var P=this.vz.loader;b=!P||P.m7();var G=function(){l.seekTo(a.T+.001)}; CL(this,this.Cx,M&&b&&!H,y,"qoe.slowseek",G,"jiggle_cmt");b=function(){return a.vz.M2()}; CL(this,this.St,M&&!H,y,"qoe.slowseek",b,"new_elem");M=An(m);d=m.isBuffering();var V=l.dL(),p=Mi(V,T),L=p>=0&&V.end(p)>T+5,N=M&&d&&L;A=this.vz.getVideoData();CL(this,this.AM,T<.002&&this.T<.002&&R&&g.OF(this.aj)&&g.B9(A)&&!H,y,"qoe.slowseek",b,"slow_seek_shorts");CL(this,this.N,A.gk()&&R&&!H&&!A.Kx,y,"qoe.slowseek",b,"slow_seek_gapless_shorts");CL(this,this.lT,N&&!H,M&&!d,"qoe.longrebuffer",G,"jiggle_cmt");CL(this,this.jt,N&&!H,M&&!d,"qoe.longrebuffer",b,"new_elem_nnr");if(P){var e=P.getCurrentTime(); R=l.ZP();R=cw5(R,e);R=!P.isSeeking()&&T===R;CL(this,this.ZR,M&&d&&R&&!H,M&&!d&&!R,"qoe.longrebuffer",function(){l.seekTo(e)},"seek_to_loader")}R={}; G=Mi(V,Math.max(T-3.5,0));N=G>=0&&T>V.end(G)-1.1;var t=G>=0&&G+1=0&&N&&t<11;R.close2edge=N;R.gapsize=t;R.buflen=V.length;this.L&&(R.seekSour=this.L);CL(this,this.qj,M&&d&&!H,M&&!d,"qoe.longrebuffer",function(){},"timeout",R); R=m.isSuspended();R=this.vz.Pu()&&!R;CL(this,this.B,R,!R,"qoe.start15s",function(){a.vz.IY("ad")},"ads_preroll_timeout"); R=this.aj.experiments.XO("html5_use_playback_rate_in_skip_slow_ad")?this.vz.getPlaybackRate()*1E3:1E3;p=T-this.j5;CL(this,this.Mj,g.B9(A)&&P,M&&!d,"qoe.longrebuffer",function(){a.vz.Oe()},"reset_media_source"); CL(this,this.tM,g.B9(A)&&P,M&&!d,"qoe.longrebuffer",b,"reset_media_element");this.j===0&&(this.C=T);P=d&&this.T===0&&T>1&&T===this.C;CL(this,this.Kx,g.B9(A)&&P,M&&!d,"qoe.slowseek",function(){l.seekTo(0)},"reseek_after_time_jump"); H=m.isOrWillBePlaying()&&!H;L=this.vz.RH()-T<6&&!L&&this.vz.v5();CL(this,this.J,A.gk()&&H&&d&&L,M&&!d,"qoe.longrebuffer",function(){a.vz.M2(!1,!0)},"handoff_end_long_buffer_reload"); m=qf(A)&&this.L===104&&H&&(d||g.u(m,8)&&g.u(m,16));CL(this,this.Ij,m,y,"qoe.start15s",b,"gapless_slow_start");this.j=T;this.K.start()}}; IP.prototype.yP=function(a,l,m){l=this.rW(l);l.wn=m;l.wdup=this.Z[a]?"1":"0";this.vz.yP(new O_(a,l));this.Z[a]=!0}; IP.prototype.rW=function(a){a=Object.assign(this.vz.rW(!0),a.rW());this.T&&(a.stt=this.T.toFixed(3));this.vz.getVideoData().isLivePlayback&&(a.ct=this.vz.getCurrentTime().toFixed(3),a.to=this.vz.YX().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; nL.prototype.reset=function(){this.T=this.L=this.Z=this.startTimestamp=0;this.j=!1}; nL.prototype.test=function(a){if(!this.K||this.L)return!1;if(!a)return this.reset(),!1;a=(0,g.E)();if(!this.startTimestamp)this.startTimestamp=a,this.Z=0;else if(this.Z>=this.K)return this.L=a,!0;this.Z+=1;return!1}; nL.prototype.rW=function(){var a={},l=(0,g.E)();this.startTimestamp&&(a.wsd=(l-this.startTimestamp).toFixed());this.L&&(a.wtd=(l-this.L).toFixed());this.T&&(a.wssd=(l-this.T).toFixed());return a};g.W(NmP,g.k);g.Z=NmP.prototype;g.Z.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.K||this.Z||!this.mediaElement.HD()||this.seekTo(.01,{hW:"seektimeline_setupMediaElement"})),Er(this)):xK(this)}; g.Z.getCurrentTime=function(){if(oP(this.vz)){if(!isNaN(this.L))return this.L}else if(!isNaN(this.L)&&isFinite(this.L))return this.L;return this.mediaElement&&JcH(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.Z.sM=function(){return this.wb}; g.Z.Ja=function(){return this.getCurrentTime()-this.YX()}; g.Z.oy=function(){return this.T?this.T.oy():Infinity}; g.Z.isAtLiveHead=function(a){if(!this.T)return!1;a===void 0&&(a=this.getCurrentTime());return BC(this.T,a)}; g.Z.Fu=function(){return!!this.T&&this.T.Fu()}; g.Z.seekTo=function(a,l){var m=l===void 0?{}:l;l=m.mR===void 0?!1:m.mR;var T=m.cA===void 0?0:m.cA;var y=m.uO===void 0?!1:m.uO;var R=m.Mf===void 0?0:m.Mf;var H=m.hW===void 0?"":m.hW;var b=m.seekSource===void 0?void 0:m.seekSource;var M=m.hK===void 0?!1:m.hK;var d=m.Cv===void 0?!1:m.Cv;m=m.N8===void 0?!1:m.N8;M&&(a+=this.YX());Mf(this.videoData)&&b===29&&(this.wb=void 0);M=a=this.OG())||!g.On(this.videoData),A||(L={st:L,mst:this.OG()},this.T&&this.V("html5_high_res_seek_logging")&&(L.ht=this.T.oy(),L.adft=G_w(this.T)),this.vz.Tu("seeknotallowed",L)),L=A));if(!L)return this.j&&(this.j=null,sZ7(this)),g.SF(this.getCurrentTime());L=.005;d&&this.V("html5_sabr_seek_no_shift_tolerance")&&(L=0);if(Math.abs(a-this.L)<=L&&this.lT)return this.K;H&&(L=a,(this.aj.bZ()||this.V("html5_log_seek_reasons"))&&this.vz.Tu("seekreason",{reason:H, tgt:L}));b&&(this.J.L=b);this.lT&&xK(this);this.K||(this.K=new l6);a&&!isFinite(a)&&F1Q(this,!1);(H=m||M)||(H=a,H=!(this.videoData.isLivePlayback&&this.videoData.Z&&!this.videoData.Z.T&&!(this.mediaElement&&this.mediaElement.Tb()>0&&T4(this.mediaElement)>0)||P9(this.videoData)&&this.bM()===this.OG(!1)?0:isFinite(H)||!P9(this.videoData)));H||(a=uA(this,a,y));a&&!isFinite(a)&&F1Q(this,!1);this.Z=a;this.St=R;this.L=a;this.C=0;this.T&&(y=this.T,R=a,VXl(y,R,!1),pe7(y,R));y=this.vz;R=a;H={mR:l,seekSource:b}; y.KR.Z=R;m=y.lG;m.mediaTime=R;m.T=!0;H.mR&&y.D2(H);H=R>y.videoData.endSeconds&&R>y.videoData.limitedPlaybackDurationInSeconds;y.pY&&H&&isFinite(R)&&Pe3(y);Rl.start&&Pe3(this.vz);return this.K}; g.Z.OG=function(a){if(!this.videoData.isLivePlayback)return this.vz.videoData.OG();var l;return Un(this.videoData)&&((l=this.mediaElement)==null?0:l.isPaused())&&this.videoData.T?(a=this.getCurrentTime(),NTP(this.V1(a)*1E3)+a):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Mf(this.videoData)&&this.videoData.T?a?this.videoData.T.lT||0:this.videoData.T.Gz||0:P9(this.videoData)&&this.videoData.Ij&&this.videoData.T?this.videoData.T.OG()+this.timestampOffset:this.videoData.Z&&this.videoData.Z.T? !a&&this.T?this.T.oy():this.vz.videoData.OG()+this.timestampOffset:this.mediaElement?XL()?NTP(g.B(this.mediaElement.dD()).getTime()):T4(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.Z.bM=function(){if(g.US(this.videoData))return 0;if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Mf(this.videoData)){var a;return((a=this.videoData.T)==null?void 0:a.Wd)||0}a=this.videoData?this.videoData.bM()+this.timestampOffset:this.timestampOffset;if(Un(this.videoData)&&this.videoData.T){var l,m=Number((l=this.videoData.progressBarStartPosition)==null?void 0:l.utcTimeMillis)/1E3;l=this.getCurrentTime();l=this.V1(l)-l;if(!isNaN(m)&&!isNaN(l))return Math.max(a,m-l)}return a}; g.Z.y_=function(){this.K||this.seekTo(this.Z,{hW:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.Z.Hj=function(){return this.lT&&!isFinite(this.L)}; g.Z.sL=function(){h17(this,null);this.J.dispose();g.k.prototype.sL.call(this)}; g.Z.rW=function(){var a={};this.loader&&Object.assign(a,this.loader.rW());this.mediaElement&&Object.assign(a,this.mediaElement.rW());return a}; g.Z.yG=function(a){this.timestampOffset=a}; g.Z.getStreamTimeOffset=function(){return P9(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.Z.YX=function(){return this.timestampOffset}; g.Z.V1=function(a){return this.videoData&&this.videoData.T?this.videoData.T.V1(a-this.timestampOffset):NaN}; g.Z.TG=function(){if(!this.mediaElement)return 0;if(KK(this.videoData)){var a=this.mediaElement,l=a.dL();a=(Au(l)&&a.getDuration()?l.end(l.length-1):0)+this.timestampOffset-this.bM();l=this.OG()-this.bM();return Math.max(0,Math.min(1,a/l))}return this.mediaElement.TG()}; g.Z.U6=function(a){this.B&&(this.B.T=a)}; g.Z.W5=function(a,l){this.vz.Tu("requestUtcSeek",{time:a});Mf(this.videoData)&&(this.wb=a);var m;(m=this.loader)==null||m.W5(a);l&&(this.qj=l)}; g.Z.So=function(a){Mf(this.videoData)&&(this.wb=void 0);if(this.qj)this.vz.Tu("utcSeekingFallback",{source:"streamTime",timeSeconds:this.qj}),this.vz.seekTo(this.qj,{hW:"utcSeekingFallback_streamTime"}),this.qj=0;else{var l=this.getCurrentTime();isNaN(l)||(a=this.V1(l)-a,l-=a,this.vz.Tu("utcSeekingFallback",{source:"estimate",timeSeconds:l}),this.vz.seekTo(l,{hW:"utcSeekingFallback_estimate"}))}}; g.Z.Uz=function(){this.qj=0}; g.Z.V=function(a){return this.aj&&this.aj.V(a)};g.W(X7,g.k);X7.prototype.start=function(){this.L.start()}; X7.prototype.stop=function(){this.L.stop()}; X7.prototype.clear=function(){for(var a=g.c(this.T.values()),l=a.next();!l.done;l=a.next())l.value.clear()}; X7.prototype.sample=function(){for(var a=g.c(this.Z),l=a.next();!l.done;l=a.next()){var m=g.c(l.value);l=m.next().value;m=m.next().value;this.T.has(l)||this.T.set(l,new CXt(znD.has(l)));this.T.get(l).update(m())}this.L.start()}; var znD=new Set(["networkactivity"]);CXt.prototype.update=function(a){this.L?(this.buffer.add(a-this.T||0),this.T=a):this.buffer.add(a)}; CXt.prototype.clear=function(){this.buffer.clear();this.T=0};rN.prototype.Dg=function(){return this.started}; rN.prototype.start=function(){this.started=!0}; rN.prototype.reset=function(){this.finished=this.started=!1};var uqP=!1;g.W(g.T_,g.Aj);g.Z=g.T_.prototype;g.Z.sL=function(){this.logger.debug("dispose");g.Ly(this.rB);Til(this.aY);this.visibility.unsubscribe("visibilitystatechange",this.aY);qPd(this);He(this);g.Ed.ac(this.Cz);this.oa();this.QX=null;g.Go(this.videoData);g.Go(this.OP);g.Go(this.Sj);g.Go(this.kH);g.VL(this.xjg);this.pY=null;g.Aj.prototype.sL.call(this)}; g.Z.SE=function(a,l,m,T,y){if(this.aj.V("html5_log_ad_playback_docid")){var R=this.R0();if(R.qoe){R=R.qoe;var H=this.aj.Ij||"yt";g.jw(R,g.Dw(R.provider),"ad_playback",[a,l,m,y,H])}}else this.R0().SE(a,l,m);this.V("html5_log_media_perf_info")&&this.Tu("adloudness",{ld:T.toFixed(3),cpn:a})}; g.Z.Ip=function(){var a;return(a=this.loader)==null?void 0:a.Ip()}; g.Z.lq=function(){var a;return(a=this.loader)==null?void 0:a.lq()}; g.Z.Ii=function(){var a;return(a=this.loader)==null?void 0:a.Ii()}; g.Z.O_=function(){var a;return(a=this.loader)==null?void 0:a.O_()}; g.Z.wR=function(){return this.videoData.wR()}; g.Z.TJ=function(){return this.V("html5_not_reset_media_source")&&!this.wR()&&!this.videoData.isLivePlayback&&g.B9(this.videoData)&&!this.aj.supportsGaplessShorts()}; g.Z.jZ=function(){this.videoData.B&&(this.videoData.vS=this.videoData.vS||this.xv.Qg().Ip(),this.videoData.I9=this.videoData.I9||this.xv.Qg().lq());if(M8Q(this.videoData)||!XF(this.videoData)){var a=this.videoData.errorDetail;this.jd(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),a,a,this.videoData.m_||void 0)}this.V("html5_generate_content_po_token")&&this.A7();this.V("html5_enable_d6de4")&&this.I2()}; g.Z.yM=function(){return this.lU}; g.Z.bF=function(){!this.Io||this.Io.FO();this.Io=new g.Or(new hD(this.videoData,this.aj,this));this.lU=new vC(this.aj,this,this.Io)}; g.Z.getVideoData=function(){return this.videoData}; g.Z.Y=function(){return this.aj}; g.Z.lw=function(a){return this.k7.lw(this.QX,a===void 0?!1:a)}; g.Z.R0=function(a){if(a)a:{for(var l=this.lU,m=g.c(l.T.values()),T=m.next();!T.done;T=m.next())if(T=T.value,T.getVideoData().videoId===a){a=T;break a}a=l.L}else a=this.lU.R0();return a}; g.Z.Fm=function(){return this.visibility}; g.Z.cS=function(){return this.mediaElement&&this.mediaElement.L8()?this.mediaElement.hN():null}; g.Z.TE=function(){return this.mediaElement}; g.Z.d0=function(){if(this.V("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.Y().C&&this.Y().houseBrandUserStatus&&this.Tu("hbut",{status:this.Y().houseBrandUserStatus});if(this.videoData.Q1())return!0;this.jd("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.Z.rp=function(a){(a=a===void 0?!1:a)||g.US(this.videoData)||zE(this.R0());this.qe=a;!this.d0()||this.xt.Dg()?g.OF(this.aj)&&this.videoData.isLivePlayback&&this.xt.Dg()&&!this.xt.finished&&!this.qe&&this.cG():(this.xt.start(),a=this.R0(),KL(a),a.qoe&&HLQ(a.qoe),this.cG())}; g.Z.cG=function(){if(this.videoData.isLoaded()){var a=this.OP;g.PU(a.UL.experiments,"html5_player_min_build_cl")>0&&g.PU(a.UL.experiments,"html5_player_min_build_cl")>753393358&&jrl(a,"oldplayer");ixw(this)}else this.videoData.kA||this.videoData.aH?this.qe&&g.OF(this.aj)&&this.videoData.isLivePlayback||(this.videoData.kA?DWH(this.videoData):(a=this.R0(),a.qoe&&(a=a.qoe,VY(a,"protected"),a.provider.videoData.K?a.w2():a.provider.videoData.subscribe("dataloaded",a.w2,a)),IDt(this.videoData))):!this.videoData.loading&& this.NG&&bxb(this)}; g.Z.Yb=function(a){this.QP=a;this.loader&&(Yn3(this.loader,new g.uF(a)),this.Tu("sdai",{sdsstm:1}))}; g.Z.z7=function(){return null}; g.Z.fn=l7(16);g.Z.isFullscreen=function(){return this.visibility.isFullscreen()}; g.Z.isBackground=function(){return this.visibility.isBackground()}; g.Z.Uw=function(){var a=this;this.logger.debug("Updating for format change");y4(this).then(function(){return m1(a)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.Z.qU=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.rp();this.d0()&&!g.u(this.playerState,128)&&(this.AX.Dg()||(this.AX.start(),this.videoData.P4?this.If(Mz(this.playerState,4)):this.If(Mz(Mz(this.playerState,8),1))),gSQ(this))}; g.Z.w9=function(){return this.xt.finished}; g.Z.sendAbandonmentPing=function(){g.u(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.B8(!0),qPd(this),g.Ed.ac(this.Cz))}; g.Z.EJ=function(a,l){a=a===void 0?!0:a;(l===void 0||l)&&this.mediaElement&&this.mediaElement.pause();this.If(a?new g.qz(14):new g.qz)}; g.Z.a9=function(){this.R0().g0()}; g.Z.jd=function(a,l,m,T,y,R){this.logger.debug(function(){return"set player error: ec="+a+", detail="+y}); var H,b;g.YB(Cd5,m)?H=m:m?b=m:H="GENERIC_WITHOUT_LINK";T=(T||"")+(";a6s."+j2());if(a==="auth"||a==="drm.auth"||a==="heartbeat.stop")m&&(T+=";r."+m.replaceAll(" ","_")),R&&(T+="sr."+R.replaceAll(" ","_"));l={errorCode:a,errorDetail:y,errorMessage:b||g.JO[H]||"",Xw:H,m_:R||"",lj:T,ZL:l,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;RZ(this,"dataloaderror");this.If(gD(this.playerState,128,l));g.Ed.ac(this.Cz);He(this);this.p_()}; g.Z.IY=function(a){this.t6=this.t6.filter(function(l){return a!==l}); this.logger.debug(function(){return"set preroll ready for "+a}); g.US(this.videoData)&&!this.OH()&&this.CE.eq("pl_pr");this.AX.Dg()&&gSQ(this)}; g.Z.OH=function(){var a;(a=!!this.t6.length)||(a=this.V8.T.array[0],a=!!a&&a.start<=-0x8000000000000);return a}; g.Z.Fu=function(){return this.KR.Fu()}; g.Z.isPlaying=function(){return this.playerState.isPlaying()}; g.Z.Oa=function(){return this.playerState.Oa()&&this.videoData.P4}; g.Z.getPlayerState=function(){return this.playerState}; g.Z.Li=function(a){var l;(l=this.loader)==null||l.Li(a)}; g.Z.TY=function(a){var l;(l=this.loader)==null||l.TY(a)}; g.Z.getPlayerType=function(){return this.playerType}; g.Z.getPreferredQuality=function(){if(this.QX){var a=this.QX;a=a.videoData.Nu.compose(a.videoData.l5);a=Gu(a)}else a="auto";return a}; g.Z.Zz=l7(22);g.Z.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.Z.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.hN()===this.mediaElement.hN()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())this.X5(),this.mediaElement=a,this.mediaElement.vz=this,FB7(this),this.KR.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.oa();if(!this.playerState.isError()){var l=i6(this.playerState,512);g.u(l,8)&&!g.u(l,2)&&(l=Mz(l,1));a.isView()&&(l=i6(l,64));this.If(l)}this.mediaElement= a;this.mediaElement.vz=this;!g.OF(this.aj)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);FB7(this);this.KR.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.OP.aX()&&h83(this.mediaElement)}}; g.Z.oa=function(a,l,m){a=a===void 0?!1:a;l=l===void 0?!1:l;m=m===void 0?!1:m;this.logger.debug("remove media element");if(this.mediaElement){var T=this.getCurrentTime();T>0&&(this.KR.Z=T);this.KR.setMediaElement(null);!a&&this.TJ()?LB7(this):this.PZ(m);this.loader&&(wi(this.loader),Mu(this,l));this.d4.stop();if(this.mediaElement&&(!this.AX.Dg()&&!this.Pu()||this.playerState.isError()||g.u(this.playerState,2)||this.If(Mz(this.playerState,512)),this.mediaElement)){this.X5();if(a||!this.mediaElement.isView())this.CE.Ji("mesv_s"), this.mediaElement.stopVideo(),iX(this);this.mediaElement=this.mediaElement.vz=null}}}; g.Z.playVideo=function(a,l){a=a===void 0?!1:a;l=l===void 0?!1:l;var m=this,T,y,R,H,b,M;return g.J(function(d){if(d.L==1){m.logger.debug("start play video");var A=window.google_image_requests;A&&A.length>10&&(window.google_image_requests=A.slice(-10));if(g.u(m.playerState,128))return d.return();if(m.OP.Wt())return m.publish("signatureexpired"),d.return();m.mediaElement&&zE(m.R0());m.qU();(g.u(m.playerState,64)||a)&&m.If(Mz(m.playerState,8));return m.AX.finished&&m.mediaElement?m.QX||!m.Hw?d.iT(2): g.z(d,m.Hw,3):d.return()}if(d.L!=2&&g.u(m.playerState,128))return d.return();if(!m.videoData.Z)return m.videoData.isLivePlayback&&!g.g1(m.aj.K,!0)?(T="html5.unsupportedlive",y=2):(T=m.videoData.wR()?"fmt.unplayable":"fmt.noneavailable",y=1),g.nU(Error("selectableFormats")),m.jd(T,y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),d.return();if(m.rL()&&m.videoData.Z.T)return m.logger.debug("rebuild playbackData for airplay"),d.return(y4(m));if(oP(m))A=m.KR,AU(A.videoData)?!A.isAtLiveHead(A.getCurrentTime())&& A.Fu()&&A.vz.seekTo(Infinity,{hW:"seektimeline_peggedToLive",seekSource:34}):g.US(A.videoData)&&A.getCurrentTime()H;if(!b||!H){R&&b&&(T=Math.max(T,R));var M;R=WGz(l,(M=y.T)==null?void 0:M.videoInfos);M=l.vz.getPlaybackRate();M>1&&R&&(M=k4l(l.aj.K,y.T.videoInfos,M),a.T!==0&& M=480;if(l.V("html5_exponential_memory_for_sticky")){d=l.aj.Aa;A=1;var P=P===void 0?!1:P;mCd(d,"sticky-lifetime");d.values["sticky-lifetime"]&&d.Md["sticky-lifetime"]||(d.values["sticky-lifetime"]=0,d.Md["sticky-lifetime"]=0);P&&FK(d,"sticky-lifetime")>.0625&&(A=d.Md["sticky-lifetime"]*2); d.values["sticky-lifetime"]+=1*Math.pow(2,d.T/A);d.Md["sticky-lifetime"]=A;d.j.start()}if(l.V("html5_perf_cap_override_sticky")){P=l.Z;d=l.V("html5_perserve_av1_perf_cap");d=d===void 0?!1:d;if(d===void 0?0:d){A=uo();a=g.c(Object.keys(A));for(l=a.next();!l.done;l=a.next())l=l.value,l.indexOf("1")!==0&&delete A[l];g.JN("yt-player-performance-cap",A,2592E3)}else g.kH("yt-player-performance-cap");BM5(d);if(d){d=g.c(nS.keys());for(A=d.next();!A.done;A=d.next())A=A.value,A.startsWith("1")||nS.delete(A); d=g.c(qK.values());for(A=d.next();!A.done;A=d.next())A=A.value,A.startsWith("1")||qK.delete(A);d=g.c(P.keys());for(A=d.next();!A.done;A=d.next())A=A.value,A.startsWith("1")||P.delete(A)}else nS.clear(),qK.clear(),P.clear()}}}this.loader&&(P=this.loader,m=m||"",P.policy.T?xz(P.Z.T,m):xz(P.T.K,m));this.Ow()}; g.Z.getUserPlaybackQualityPreference=function(){return this.videoData.Z&&!this.videoData.Z.T?Gu(this.videoData.Nu):Px[xV()]}; g.Z.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.Z.setUserAudio51Preference=function(a,l){this.getUserAudio51Preference()!==a&&(this.Tu("toggle51",{pref:a}),g.JN("yt-player-audio51",a,l?31536E3:2592E3),this.Uw())}; g.Z.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.Z.setProximaLatencyPreference=function(a){var l=this.getProximaLatencyPreference();this.Tu("proxima",{pref:a});g.JN("yt-player-proxima-pref",a,31536E3);l!==a&&(a=this.KR,a.rb=!0,a.vz.seekTo(Infinity,{hW:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.Z.getProximaLatencyPreference=function(){var a;return(a=Dh())!=null?a:0}; g.Z.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.Z.A7=function(){this.videoData.videoId?this.xv.A7(this.videoData):this.Tu("povid",{})}; g.Z.I2=function(){this.videoData.videoId?this.xv.I2(this.videoData):this.Tu("piavid",{})}; g.Z.Ow=function(){if(!this.FO()&&!g.u(this.playerState,128)&&this.videoData.Z){if(this.videoData.Z.T)lX(this);else{var a=gm(this),l=this.videoData;a:{var m=this.videoData.FU;if(a.T){for(var T=g.c(m),y=T.next();!y.done;y=T.next()){y=y.value;var R=y.getInfo(),H=g.wF[R.video.quality];if((!a.Z||R.video.quality!=="auto")&&H<=a.T){m=y;break a}}m=m[m.length-1]}else m=m[0]}l.Mj=m;Gel(this,a.reason,KB3(this,this.videoData.Mj))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.KR.jt= !1,this.playVideo()}}; g.Z.Gd=function(a,l){if(this.FO()||g.u(this.playerState,128))return!1;var m,T=!((m=this.videoData.Z)==null||!m.T);m=T&&l?this.getCurrentTime()-this.YX():NaN;if(this.aj.experiments.XO("html5_record_audio_format_intent")){var y=this.R0();if(y.qoe){y=y.qoe;var R=[a.WF.id,isNaN(m)?"m":"t"];g.jw(y,g.Dw(y.provider),"afi",R)}}if(T)return l&&(T=K17(this.KR),this.Tu("aswh",{id:a.id,xtags:a.xtags,bh:T.toFixed(3)})),this.loader.setAudioTrack(a,m,l),!0;if(p33(this)){a:{l=this.mediaElement.audioTracks();for(T= 0;T=0?a:this.getCurrentTime()}; g.Z.V1=function(){var a;return((a=this.videoData.T)==null?0:a.V1)?this.videoData.T.V1(this.getCurrentTime()-this.YX()):this.mediaElement&&(a=this.mediaElement.dD())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN}; g.Z.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.YX():this.OG()?this.OG():0}; g.Z.Dn=function(){var a=new XCb;if(this.loader){var l=this.aj.schedule,m=this.aj.bZ();m=m===void 0?!1:m;a.GC=l.jt;a.fp=l.St;a.bandwidthEstimate=t$(l);if(m){m=(l.J.Xc()*1E3).toFixed();var T=(l.hM.Xc()*1E3).toFixed(),y=LR(l).toFixed(2),R=((l.B.Xc()||0)*1E9).toFixed(2),H=l.Z.Xc().toFixed(0),b=l.Kx.Xc().toFixed(0),M=l.N.percentile(.5).toFixed(2),d=l.N.percentile(.92).toFixed(2),A=l.N.percentile(.96).toFixed(2),P=l.N.percentile(.98).toFixed(2);l.T?l.T.reset():l.T=new jd;l.T.add(l.qj);l.T.add(l.interruptions.length); for(var G=0,V=l.interruptions.length-1;V>=0;V--){var p=l.interruptions[V];l.T.add(p-G);G=p}G=0;for(V=l.j.length-1;V>=0;V--){p=l.j[V];var L=p.stamp/36E5;l.T.add(L-G);G=L;l.T.add(p.net/1E3);l.T.add(p.max)}l=l.T.N2();a.T={ttr:m,ttm:T,d:y,st:R,bw:H,abw:b,v50:M,v92:d,v96:A,v98:P,"int":l}}X97(this.loader,a)}else this.mediaElement&&(a.Yw=yF(this.mediaElement));a.GC=this.GC;a.fp=this.fp;a.Z=this.isAtLiveHead()&&this.isPlaying()?RdH(this):NaN;return a}; g.Z.T1=function(a,l){this.fp+=a;this.GC+=l}; g.Z.TG=function(){return this.mediaElement?g.On(this.videoData)?1:KK(this.videoData)?this.isAtLiveHead()||this.Fu()?1:this.KR.TG():this.mediaElement.TG():0}; g.Z.uq=function(){var a=this.JF,l=Ur(a,"bandwidth"),m=Ur(a,"bufferhealth"),T=Ur(a,"livelatency"),y=Ur(a,"networkactivity"),R=YK(a,"bandwidth"),H=YK(a,"bufferhealth"),b=YK(a,"livelatency");a=YK(a,"networkactivity");var M=this.eM(),d=M.droppedVideoFrames;M=M.totalVideoFrames;var A=this.getCurrentTime();if(this.MI){var P="IT/"+(this.MI.T.getInfo()+"/"+Gu(this.lO()));P+="/"+this.MI.getInfo()}else P="";var G=this.isGapless(),V=this.i$(),p=this.Iv(),L=g.bX(this),N=this.getPlayerState(),e=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var t=0;var v="";if(this.QP){if(this.QP.j4){v="D,";break a}t=this.QP.Cn;v=this.QP.C5.substring(0,4)}t>0?(t="AD"+t+", ",v&&(t+=v+", "),v=t):v=""}return{Is:R,mT:H,currentTime:A,bG:P,droppedVideoFrames:d,isGapless:G,i$:V,Gf:p,dj:l,X6:m,Pp:T,rj:y,GU:b,Sl:a,Jq:L,playerState:N,Pl:e,tF:v,totalVideoFrames:M}}; g.Z.rW=function(a){var l={};if(a===void 0?0:a){Object.assign(l,this.R0().rW());this.mediaElement&&(Object.assign(l,this.mediaElement.rW()),a=this.eM(),l.dvf=a.droppedVideoFrames,l.tvf=a.totalVideoFrames);this.loader&&Object.assign(l,this.loader.rW());this.MI&&(l.drm=JSON.stringify(this.MI.rW()));l.state=this.playerState.state.toString(16);g.u(this.playerState,128)&&(l.debug_error=JSON.stringify(this.playerState.p7));this.OH()&&(l.prerolls=this.t6.join(","));this.videoData.Ug&&(l.ismb=this.videoData.Ug); this.videoData.latencyClass!=="UNKNOWN"&&(l.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(l.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)l.is_mosaic=1;this.videoData.cotn&&(l.is_offline=1,l.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(l.playerResponseCpn=this.videoData.playerResponseCpn);this.xv.isOrchestrationLeader()&&(l.leader=1);this.videoData.isLivePlayback&& (this.videoData.T&&$i(this.videoData.T)&&(l.segduration=$i(this.videoData.T)),a=this.KR,l.lat=a.B?MXb(a.B.j):0,l.liveutcstart=this.videoData.liveUtcStartSeconds);l.relative_loudness=this.videoData.Dv.toFixed(3);if(a=g.bX(this))l.optimal_format=a.video.qualityLabel;l.user_qual=xV();l.release_version=q[24]}l.debug_videoId=this.videoData.videoId;return l}; g.Z.addCueRange=function(a){this.D4([a])}; g.Z.removeCueRange=function(a){this.V8.Yh([a])}; g.Z.VA=function(){this.V8.sync()}; g.Z.Qh=function(a,l){return this.V8.Qh(a,l)}; g.Z.D4=function(a,l){this.V8.d7(a,l)}; g.Z.Sw=function(a){this.V8.Yh(a)}; g.Z.SH=function(){return this.V8.SH()||[]}; g.Z.F0=function(){return this.pB}; g.Z.rL=function(){return this.visibility.rL()}; g.Z.Ee=function(){this.mediaElement&&this.mediaElement.Ee()}; g.Z.eu8=function(){RZ(this)}; g.Z.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.Z.X5=function(){g.$H(this.UK)}; g.Z.Oc=function(){this.ex();this.publish("onLoadProgress",this.TG())}; g.Z.Bl=function(a){var l=a.target.Lu();if(this.mediaElement&&this.mediaElement.Lu()&&this.mediaElement.Lu()===l){JOQ(this,a.type);switch(a.type){case "error":var m=Hs(this.mediaElement)||"",T=this.mediaElement.La();if(m==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.Tu("capchg",{msg:T}),this.M2(!0)):y4(this);return}if(this.mediaElement.hasError()&&gud(this.OP,m,{msg:T}))return;if(this.isBackground()&&this.mediaElement.YA()===4){this.p_();qu(this,"unplayable");return}break; case "durationchange":m=this.mediaElement.getDuration();isFinite(m)&&(!this.Wz||m>0)&&m!==1&&this.yf(m);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());ycl(this.V8);this.R0().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":ke7(this);this.publish("onLoadedMetadata");OxH(this);m=this.V1();this.videoData.f1&&(this.videoData.f1=m);break;case "loadstart":OxH(this);break;case "progress":case "suspend":g.PU(this.aj.experiments, "html5_progress_event_throttle_ms")>0?this.qo.QV():this.Oc();break;case "playing":this.CE.Ji("plev");this.nk&&!oP(this)&&(this.nk=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{hW:"videoplayer_onPlaying"})));break;case "timeupdate":m=this.mediaElement&&!this.mediaElement.getCurrentTime();T=this.mediaElement&&this.mediaElement.Tb()===0;if(m&&(!this.aE||T))return;this.aE=this.aE||!!this.mediaElement.getCurrentTime();hdR(this);this.ex();if(!this.mediaElement|| this.mediaElement.Lu()!==l)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.ZP().length>0&&this.mediaElement.dL().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Tb()>2||!this.mediaElement.isSeeking()&&iH(this.mediaElement.dL(),this.mediaElement.getCurrentTime()))&&(m=this.mediaElement.rW(), m.bh=yF(this.mediaElement).toFixed(3),this.Tu("uwe",m));break;case "resize":ke7(this);this.videoData.L&&this.videoData.L.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.yw&&g.u(this.playerState,8)&&!g.u(this.playerState,1024)&&this.getCurrentTime()===0&&g.Nr){qu(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Lu()===l){n6t(this.KR,a);this.publish("videoelementevent",a);l=this.playerState;T=this.lG;var y= this.mediaElement,R=this.aj.experiments;m=this.videoData.clientPlaybackNonce;if(!g.u(l,128)){var H=l.state;y=y?y:a.target;var b=y.getCurrentTime();if(!g.u(l,64)||a.type!=="ended"&&a.type!=="pause"){var M=y.getDuration();M=y.isEnded()||b>1&&Math.abs(b-M)<1.1;var d=a.type==="pause"&&y.isEnded();b=a.type==="ended"||a.type==="waiting"||a.type==="timeupdate"&&!g.u(l,4)&&!sr(T,b);if(d||M&&b)y.SU()>0&&y.Lu()&&(H=14);else switch(a.type){case "error":Hs(y)&&(H|=128);break;case "pause":g.u(l,256)?(H^=256)|| (H=64):g.u(l,32)||g.u(l,2)||g.u(l,4)||(H=4,g.u(l,1)&&g.u(l,8)&&(H|=1));break;case "playing":R=H;H=(H|8)&-1093;R&4?(H|=1,b6(T,y,!0)):sr(T,y.getCurrentTime())&&(H&=-2);g.u(l,1)&&b6(T,y)&&(H|=1);break;case "seeking":H|=16;g.u(l,8)&&(H|=1);H&=-3;break;case "seeked":H&=-17;b6(T,y,!0);break;case "waiting":g.u(l,2)||(H|=1);b6(T,y);break;case "timeupdate":R=g.u(l,16);b=g.u(l,4);(g.u(l,8)||R)&&!b&&sr(T,y.getCurrentTime())&&(H=8);b6(T,y)&&(H|=1);break;case "progress":case "suspend":R.XO("html5_track_underruns_on_progress")&& b6(T,y)}}T=H;H=null;T&128&&(H=a.target,y=Hs(H),R=1,y?(y==="capability.changed"&&(R=2),b="GENERIC_WITHOUT_LINK",M=H.rW(),M.mediaElem="1",/AUDIO_RENDERER/.test(H.La())&&(b="HTML5_AUDIO_RENDERER_ERROR"),H={errorCode:y,errorMessage:g.JO[b]||"",Xw:b,lj:hS(M),ZL:R,cpn:l.p7?l.p7.cpn:""}):H=null,H&&(H.cpn=m));l=gD(l,T,H)}!g.u(this.playerState,1)&&g.u(l,1)&&ft5(this,"evt"+a.type);this.If(l)}}}; g.Z.SLg=function(a){a=a.T.availability==="available";a!==this.pB&&(this.pB=a,this.publish("airplayavailabilitychange"))}; g.Z.kuT=function(){var a=(0,g.E)(),l=this.mediaElement.rL();this.Tu("airplay",{ia:l});!l&&!isNaN(this.mP)&&a-this.mP<2E3||(this.mP=a,l!==this.rL()&&(a=this.visibility,a.T!==l&&(a.T=l,a.aY()),this.Tu("airplay",{rbld:l}),this.Uw()),this.publish("airplayactivechange"))}; g.Z.yu=function(a){if(this.loader){var l=this.loader,m=l.L,T=l.getCurrentTime(),y=Date.now()-m.N;m.N=NaN;m.Tu("sdai",{adfetchdone:a,d:y});a&&!isNaN(m.B)&&m.L!==3&&Jt(m.loader,T,m.B,m.C);m.policy.Z?m.K=NaN:m.j=NaN;fg(m,4,m.L===3?"adfps":"adf");wi(l)}}; g.Z.Cc=function(){g.Ly(this.rB);this.d4.stop();this.videoData.Kx=!0;this.aj.Wd=!0;this.aj.ZR=0;var a=this.OP;if(a.videoData.L){var l=a.UL.K,m=a.videoData.L.Gu;l.j.has(m)&&(l.j.delete(m),l.L=!0)}a.T.stop();this.Zt();g.u(this.playerState,8)&&this.If(i6(this.playerState,65));this.qe=!1;IzH(this.R0());g.l0(this.Sj);this.publish("playbackstarted");(a=g.Yl("yt.scheduler.instance.clearPriorityThreshold"))?a():Hw(0)}; g.Z.Zt=function(){var a=this.xv.vY(),l={},m={};!xb("pbs",this.CE.timerName)&&vF.measure&&vF.getEntriesByName&&(vF.getEntriesByName("mark_nr")[0]?xt3("mark_nr"):xt3());a.videoId&&(l.videoId=a.videoId);a.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(l.clientPlaybackNonce=a.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(m.isPausedOnLoad=!0);m.itag=a.L?Number(a.L.itag):-1;a.Ia&&(m.preloadType=String(this.lX?2:1));l.liveStreamMode=V$5[QZ(a)];l.playerInfo=m;this.CE.infoGel(l); if(this.loader){a=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(a.Z&&(l=window.performance.getEntriesByName(a.Z),l.length&&(l=l[0],a.tick("vri",l.fetchStart),a.tick("vdns",l.domainLookupEnd),a.tick("vreq",l.requestStart),a.tick("vrc",l.responseEnd))),a.L&&(l=window.performance.getEntriesByName(a.L),l.length&&(l=l[0],a.tick("ari",l.fetchStart),a.tick("adns",l.domainLookupEnd),a.tick("areq",l.requestStart),a.tick("arc",l.responseEnd))));a=a.ticks;for(var T in a)a.hasOwnProperty(T)&& this.CE.tick(T,a[T])}}; g.Z.ex=function(a){var l=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){z1P(this.KR,this.isPlaying());var m=this.getCurrentTime();!this.loader||g.u(this.playerState,4)&&g.On(this.videoData)||g.u(this.playerState,32)&&Mf(this.videoData)||lab(this.loader,m);m>5&&(this.KR.Z=m);var T=g.R$();T?g.Ed.ac(this.Cz):g.c$(this.Cz);var y=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!y||Un(this.videoData))&&!g.u(this.playerState,128)){var R=function(){if(l.mediaElement&&!g.u(l.playerState, 128)){l.aj.bZ()&&JOQ(l,"pfx");var H=l.getCurrentTime();l.V("html5_buffer_underrun_transition_fix")&&(H-=l.YX());var b=yF(l.mediaElement),M=g.u(l.playerState,8),d=sr(l.lG,H),A=sE5(l.lG,H,(0,g.E)(),b);M&&d?l.If(i6(l.playerState,1)):M&&A?(M=l.getDuration(),d=AU(l.videoData),M&&Math.abs(M-H)<1.1?(l.Tu("setended",{ct:H,bh:b,dur:M,live:d}),l.mediaElement.pn()?(l.logger.debug("seek to 0 because of looping"),l.seekTo(0,{hW:"videoplayer_loop",seekSource:37})):l.EJ()):(l.playerState.isBuffering()||ft5(l,"progress_fix"), l.If(Mz(l.playerState,1)))):(M&&!d&&!A&&H>0&&(M=(Date.now()-l.cj)/1E3,d=l.getDuration(),H>d-1&&l.Tu("misspg",{t:H.toFixed(2),d:d.toFixed(2),r:M.toFixed(2),bh:b.toFixed(2)})),l.playerState.isPaused()&&l.playerState.isBuffering()&&yF(l.mediaElement)>5&&l.If(i6(l.playerState,1)));l.ex()}}; this.mediaElement.ZP().length===0?this.Cz=T?g.Ed.Q8(R,100):g.ZC(R,100):this.Cz=T?g.Ed.Q8(R,500):g.ZC(R,500)}this.videoData.wW=m;!a&&this.isPlaying()&&zd7(this);KGP(this.k7,this.QX,this.TE(),this.isBackground())&&lX(this);this.publish("progresssync",a);y&&Un(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.Z.A8=function(){this.jd("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.Z.Iv=function(){return this.R0().Iv()}; g.Z.LQ=function(){return this.loader?this.loader.LQ():t$(this.aj.schedule,!0)}; g.Z.If=function(a){if(!g.jC(this.playerState,a)){this.logger.debug(function(){return"Setting state "+a.toString()}); var l=new g.pu(a,this.playerState);this.playerState=a;BdP(this);var m=!this.z0.length;this.z0.push(l);var T=this.mediaElement&&this.mediaElement.isSeeking();T=l.oldState.state===8&&!T;g.Wr(l,1)&&T&&g.u(this.playerState,8)&&!g.u(this.playerState,64)&&this.loader&&(L37(this.loader),this.mediaElement&&yF(this.mediaElement)>=5&&htz(this.k7,this.QX)&&lX(this));(T=g.PU(this.aj.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.u(a,1)&&(g.u(a,8)||g.u(a,16))?this.uV.start(T):this.uV.stop();(Zc(l, 8)<0||g.Wr(l,1024))&&this.d4.stop();!g.Wr(l,8)||this.videoData.Kx||g.u(l.state,1024)||this.d4.start();g.u(l.state,8)&&Zc(l,16)<0&&!g.u(l.state,32)&&!g.u(l.state,2)&&this.playVideo();g.u(l.state,2)&&KK(this.videoData)&&(this.yf(this.getCurrentTime()),this.ex(!0));g.Wr(l,2)&&(this.B8(!0),this.aj.bZ()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Mf(this.videoData)&&this.videoData.T&&(T={minst:""+this.videoData.T.Wd,cminst:""+(this.videoData.T.bM()+this.YX()),maxst:""+this.videoData.T.Gz, hts:""+this.videoData.T.lT,cmaxst:""+(this.videoData.T.OG()+this.YX())},this.Tu("sabrSeekableBoundaries",T)));g.Wr(l,128)&&this.p_();this.videoData.T&&this.videoData.isLivePlayback&&!this.zK&&(Zc(l,8)<0?VCl(this.videoData.T):g.Wr(l,8)&&this.videoData.T.resume());Ozz(this.KR,l);EKd(this.R0(),l);if(m&&!this.FO())try{for(var y=g.c(this.z0),R=y.next();!R.done;R=y.next()){var H=R.value;R15(this.V8,H);this.publish("statechange",H)}}finally{this.z0.length=0}}}; g.Z.PR=function(){this.CE.tick("qoes")}; g.Z.y_=function(){this.KR.y_()}; g.Z.ES=function(a,l,m,T){a:{var y=this.OP;T=T===void 0?"LICENSE":T;m=m.substring(0,256);var R=Kw(l);a==="drm.keyerror"&&this.MI&&this.MI.L.keys.length>1&&y.j<96&&(a="drm.sessionlimitexhausted",R=!1);var H=y.UL.experiments.XO("html5_retry_on_drm_unavailable"),b=y.UL.experiments.XO("html5_retry_on_drm_key_error"),M=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(H&&a==="drm.unavailable"||b&&a==="drm.keyerror"&&!m.match(M))y.yP("qoe.restart",{retryOnDrmError:1,e:a,detail:m}),y.vz.M2(!0);else{if(R)if(y.videoData.L&& y.videoData.L.video.isHdr())PFt(y,a);else{if(y.vz.jd(a,l,T,m),HWP(y,{detail:m}))break a}else y.yP(a,{detail:m});a==="drm.sessionlimitexhausted"&&(y.Tu("retrydrm",{sessionLimitExhausted:1}),y.j++,SP3(y.vz))}}}; g.Z.e4L=function(){var a=this,l=g.PU(this.aj.experiments,"html5_license_constraint_delay"),m=Ri();l&&m?(l=new g.aH(function(){a.Ow();RZ(a)},l),g.w(this,l),l.start()):(this.Ow(),RZ(this))}; g.Z.kO=function(a){this.publish("heartbeatparams",a)}; g.Z.f6=function(a){this.Tu("keystatuses",vCb(a));var l="auto",m=!1;this.videoData.L&&(l=this.videoData.L.video.quality,m=this.videoData.L.video.isHdr());a:{switch(l){case "highres":case "hd2880":l="UHD2";break;case "hd2160":case "hd1440":l="UHD1";break;case "hd1080":case "hd720":l="HD";break;case "large":case "medium":case "small":case "light":case "tiny":l="SD";break;default:l="";break a}m&&(l+="HDR")}l=aP(a)?lA(a,l):a.j.includes(l);this.videoData.nh=a.nh;if(this.V("html5_enable_vp9_fairplay")){if(m)if(a.B){var T; if((T=this.MI)==null?0:Xi(T.T))if((m=this.MI)==null)m=0;else{for(var y=T=void 0,R=g.c(m.L.values()),H=R.next();!H.done;H=R.next())H=H.value,T||(T=seR(H,"SD")),y||(y=seR(H,"AUDIO"));m.O9({sd:T,audio:y});m=T==="output-restricted"||y==="output-restricted"}else m=!l;if(m){this.Tu("drm",{dshdr:1});PFt(this.OP);return}}else{this.videoData.Br||(this.videoData.Br=!0,this.Tu("drm",{dphdr:1}),this.M2(!0));return}var b;if((b=this.MI)==null?0:Xi(b.T))return}else if(b=a.B&&l,m&&!b){PFt(this.OP);return}l||lA(a, "AUDIO")&&lA(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),a=vCb(a),this.gX?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.jd("drm.keyerror",2,void 0,"info."+a)):(this.gX=!0,this.yP(new O_("qoe.restart",Object.assign({},{retrydrm:1},a))),lX(this),SP3(this)))}; g.Z.mtT=function(){if(!this.videoData.Kx&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.Tb()>0&&yF(this.mediaElement)>=5&&this.videoData.Z&&this.videoData.Z.T&&(this.If(Mz(this.playerState,1)),ft5(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");BdP(this);var l=this.videoData.Z;a={restartmsg:a,mfmt:!H9(this.videoData),mdrm:!(!(l&&l.videoInfos&&l.videoInfos.length&&l.videoInfos[0].u0)||this.MI),mfmtinfo:!this.videoData.L,prerolls:this.OH()?this.t6.join(","): "0"};if(this.MI){l=this.MI;if(l.L.size<=0){var m="ns;";l.N||(m+="nr;");l=m+="ql."+l.Z.length}else l=vCb(l.L.values().next().value),l=hS(l);a.drmp=l}var T;Object.assign(a,((T=this.loader)==null?void 0:T.rW())||{});var y;Object.assign(a,((y=this.mediaElement)==null?void 0:y.rW())||{});this.R0().yP("qoe.start15s",hS(a));this.publish("loadsofttimeout")}}; g.Z.yf=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,RZ(this))}; g.Z.B8=function(a,l){var m=this;a=a===void 0?!1:a;if(!this.er)if(xb("att_s","player_att")||uu("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var y,R,H,b;return g.J(function(M){switch(M.L){case 1:if(!(y=a)){M.iT(2);break}return g.z(M,g.cmH(),3);case 3:y=!M.T;case 2:if(y)return M.return();g.LP(M,4);R=DKp(m.R0());if(!R)throw Error();H={};return g.z(M,g.WPd((H.cpn=m.videoData.clientPlaybackNonce,H.encryptedVideoId=m.videoData.videoId||"",H),3E4),6);case 6:b=M.T;if(m.er)throw Error(); if(!b.challenge)throw g.nU(Error("Not sending attestation ping; no attestation challenge string")),Error();m.er=!0;var d=[b.challenge];b.error?d.push("r1c="+b.error):b.webResponse&&d.push("r1a="+b.webResponse);var A;((A=b.adblockReporting)==null?void 0:A.reportingStatus)!==void 0&&d.push("r6a="+b.adblockReporting.reportingStatus);var P;((P=b.adblockReporting)==null?void 0:P.broadSpectrumDetectionResult)!==void 0&&d.push("r6b="+b.adblockReporting.broadSpectrumDetectionResult);R(d.join("&"));uu("att_f", void 0,"player_att");g.e7(M,0);break;case 4:g.OQ(M),uu("att_e",void 0,"player_att"),g.c5(M)}})})().then(function(){l==null||l()}); else{var T=new g.KKP(this.videoData);if("c1a"in T.Ll&&!g.wP.isInitialized()){uu("att_wb",void 0,"player_att");this.bV===2&&Math.random()<.01&&g.nU(Error("Botguard not available after 2 attempts"));if(a)return;if(this.bV<5){g.l0(this.kH);this.bV++;return}}(T=g.zfz(T))?(uu("att_f",void 0,"player_att"),xKR(this.R0(),T),this.er=!0):uu("att_e",void 0,"player_att")}}; g.Z.RH=function(a){a=a===void 0?!1:a;return AU(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Fu()||g.On(this.videoData))?this.getCurrentTime():this.OG(a)}; g.Z.Zn=function(){return g.US(this.videoData)?this.videoData.bM():this.bM()}; g.Z.OG=function(a){return this.KR.OG(a===void 0?!1:a)}; g.Z.bM=function(){return this.KR.bM()}; g.Z.YX=function(){return this.KR?this.KR.YX():0}; g.Z.getStreamTimeOffset=function(){return this.KR?this.KR.getStreamTimeOffset():0}; g.Z.jc=function(){var a=0;this.aj.V("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.YX():this.getStreamTimeOffset());return a}; g.Z.setPlaybackRate=function(a){var l;this.playbackRate!==a&&WGz(this.k7,(l=this.videoData.Z)==null?void 0:l.videoInfos)&&(this.playbackRate=a,lX(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; g.Z.getPlaybackRate=function(){return this.playbackRate}; g.Z.getPlaybackQuality=function(){var a="unknown";if(this.videoData.L&&(a=this.videoData.L.video.quality,a==="auto"&&this.mediaElement)){var l=this.cS();l&&l.videoHeight>0&&(a=nw(l.videoWidth,l.videoHeight))}return a}; g.Z.isHdr=function(){return!!(this.videoData.L&&this.videoData.L.video&&this.videoData.L.video.isHdr())}; g.Z.sendVideoStatsEngageEvent=function(a,l){var m=this.R0();m.T?(m=QY(m.T,"engage"),m.jt=a,m.send(l)):l&&l()}; g.Z.ju=function(a){return this.R0().ju(a)}; g.Z.isAtLiveHead=function(a,l){l=l===void 0?!1:l;return AU(this.videoData)&&(this.cT||l)?this.KR.isAtLiveHead(a):!1}; g.Z.EP=function(){var a=this.OG(),l=this.getCurrentTime(),m;(m=!AU(this.videoData))||(m=this.KR,m=!(m.T&&m.T.Z));return m||this.Fu()||isNaN(a)||isNaN(l)?0:Math.max(0,a-l)}; g.Z.h0=function(a){(this.cT=a)||this.d4.stop();this.videoData.T&&(a?this.videoData.T.resume():VCl(this.videoData.T));if(this.loader){var l=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.Pu()&&this.videoData.isLivePlayback;a&&!l?this.loader.resume():Mu(this,!0)}g.u(this.playerState,2)||a?g.u(this.playerState,512)&&a&&this.If(i6(this.playerState,512)):this.If(Mz(this.playerState,512));l=this.R0();l.qoe&&(l=l.qoe,g.jw(l,g.Dw(l.provider),"stream",[a?"A":"I"]))}; g.Z.OS=function(a){a={n:a.name,m:a.message};this.R0().yP("player.exception",hS(a))}; g.Z.y8=l7(28);g.Z.JE=l7(57);g.Z.JO=function(a){this.R0().JO(a)}; g.Z.VJ=function(a){this.R0().VJ(a)}; g.Z.kY=function(a){this.R0().kY(a)}; g.Z.y4=l7(34);g.Z.XK=l7(40);g.Z.l8=function(a){this.R0().l8(a)}; g.Z.fV=function(){this.Tu("hidden",{},!0)}; g.Z.eM=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.Z.m7=function(){return this.loader?this.loader.m7():!0}; g.Z.setLoop=function(a){this.loop=a;this.mediaElement&&!g.OF(this.aj)&&this.mediaElement.setLoop(a)}; g.Z.pn=function(){return this.mediaElement&&!g.OF(this.aj)?this.mediaElement.pn():this.loop}; g.Z.yG=function(a){this.Tu("timestamp",{o:a.toString()});this.KR.yG(a)}; g.Z.dO=function(a){this.CE.tick(a)}; g.Z.eq=function(a){return this.CE.eq(a)}; g.Z.Ji=function(a){this.CE.Ji(a)}; g.Z.Tu=function(a,l,m){m=m===void 0?!1:m;this.R0().Tu(a,l,m)}; g.Z.A2=function(a,l,m){m=m===void 0?!1:m;this.R0().Tu(a,l,m)}; g.Z.yP=function(a){this.R0().yP(a.errorCode,hS(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")||a==="qoe.restart"){a=this.loader?IOQ(this.loader.videoTrack):{};var l,m;this.Tu("lasoe",Object.assign(this.loader?IOQ(this.loader.audioTrack):{},(l=this.Wz)==null?void 0:(m=l.T)==null?void 0:m.AS()));var T,y;this.Tu("lvsoe",Object.assign(a,(T=this.Wz)==null?void 0:(y=T.L)==null?void 0:y.AS()))}}; g.Z.Zo=function(a,l,m){this.R0().Zo(a,l,m)}; g.Z.OJ=function(a,l,m,T,y,R,H,b){var M;if((M=this.videoData.T)!=null&&M.isLive){var d=l.playerType===2?l:a,A=a.videoData.videoId,P=l.videoData.videoId;if(A&&P){M=this.R0();if(M.qoe){var G=M.qoe,V=a.cpn,p=l.cpn,L=d.videoData.Aa,N=G.provider.videoData.clientPlaybackNonce,e=G.provider.videoData.videoId,t=p!==N&&P!==e;N=V!==N&&A!==e;G.reportStats();G.adCpn&&G.adCpn!==V||(G.adCpn=N?V:"",G.uI=N?A:"",G.adFormat=N?L:void 0,Zz(G,2,R?4:y?2:0,p,P,T),G.reportStats(),G.adCpn=t?p:"",G.uI=t?P:"",G.adFormat=t?L: void 0,Zz(G,2,R?5:y?3:1,V,A,m),G.reportStats())}m=a.cpn;if(M.Z.has(m)){if(y=g.B(M.Z.get(m)),F7(y,!0).send(),ew(y),m!==M.provider.videoData.clientPlaybackNonce){Srb(y);var v;(v=M.T)==null||KQl(v);M.Z.delete(m)}}else M.B1=M.provider.videoData.clientPlaybackNonce,M.B1&&M.T&&(M.Z.set(M.B1,M.T),F7(M.T).send(),ew(M.T));v=l.cpn;d=d.videoData;T-=this.jc();if(M.Z.has(v)){T=g.B(M.Z.get(v));var S=T.Z&&isNaN(T.K)?tD(T):NaN;T=sPl(T,!1);isNaN(S)||(T.B=S);T.send()}else T=u7P(M,M.provider,d,T),M.Z.set(v,T),fzd(T, new g.pu(Mz(new g.qz,8),new g.qz)),OLP(T),(S=M.T)==null||ew(S);M.B1=v;if(this.V("html5_unify_csi_server_stitched_transition_logging")){if(M=this.CE,S=l.cpn,T=this.videoData.clientPlaybackNonce,l=l.videoData,a=(a.cpn===T?"video":"ad")+"_to_"+(S===T?"video":"ad"),a!=="video_to_ad"){T=a==="ad_to_video"?void 0:l;d=T==null?void 0:T.Wa;v={};if(l==null?0:l.C)v.cttAuthInfo={token:l.C,videoId:l.videoId};H&&(v.startTime=H);o0(a,v);var n,X,D;H={targetVideoId:(n=l==null?void 0:l.videoId)!=null?n:"empty_video", targetCpn:S,adVideoId:(X=T==null?void 0:T.videoId)!=null?X:"empty_video",adClientPlaybackNonce:(D=d==null?void 0:d.cpn)!=null?D:T==null?void 0:T.clientPlaybackNonce};d&&(H.adBreakType=d.adBreakType,H.adType=d.adType);g.Ex(H,a);MB(M,b,a)}}else n=this.CE,D=this.videoData.clientPlaybackNonce,X=l.videoData,D=(a.cpn===D?"video":"ad")+"_to_"+(l.cpn===D?"video":"ad"),a={},X.C&&(a.cttAuthInfo={token:X.C,videoId:X.videoId}),H&&(a.startTime=H),o0(D,a),g.Ex({targetVideoId:X.videoId,targetCpn:l.cpn,isSsdai:!0}, D),n.aj.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?H||MB(n,b,D):MB(n,b,D)}}else this.logger.T(360717806,"SSTEvent for nonSS")}; g.Z.Ty=function(){var a=this.xv,l=a.lR;a.lR=[];return l}; g.Z.WP=function(a){this.videoData.Ef=!0;this.yP(new O_("sabr.fallback",a));this.M2(!0)}; g.Z.cX=function(a,l){this.videoData.ZO=!0;if(l===void 0||l)this.yP(new O_("qoe.restart",a)),this.M2(!0);this.videoData.WN()&&this.V("html5_reload_caption_on_ssdai_fallback")&&this.xv.bC()}; g.Z.j9=function(a){this.Tu("sdai",{aftimeout:a});this.yP(new O_("ad.fetchtimeout",{timeout:a}))}; g.Z.Uu=function(a,l){this.Tu("timelineerror",a);a=new O_("dai.timelineerror",a);l?this.jd("dai.timelineerror",1,"RETRYABLE_ERROR",hS(a.details)):this.yP(a)}; g.Z.uu=function(){return KL(this.R0())}; g.Z.getPlayerSize=function(){return this.O4.getPlayerSize()}; g.Z.jH=function(){return this.O4.jH()}; g.Z.Rg=function(){return this.CE}; g.Z.Hv=function(){return this.xv.Hv()}; g.Z.getVolume=function(){return this.xv.getVolume()}; g.Z.e7=function(){return this.xv.e7()}; g.Z.isMuted=function(){return this.xv.isMuted()}; g.Z.vC=function(){return this.xv.vC()}; g.Z.JD=function(){this.zK=!0}; g.Z.V=function(a){return this.aj.V(a)}; g.Z.Il=function(a,l,m,T,y){this.Tu("xvt",{m:a,g:l?1:0,tt:m?1:0,np:T?1:0,c:y})}; g.Z.ma=function(){var a;(a=this.loader)==null||a.resume()}; g.Z.Pu=function(){return g.pD(this.t6,"ad")}; g.Z.RV=function(){var a=this.getCurrentTime(),l=a-this.YX();var m=this.mediaElement?jy(this.mediaElement.dL()):0;m=Math.floor(Math.max(m-l,0))+100;var T;return((T=this.loader)==null?0:T.RV(l,m))?(this.Tu("sdai",{skipad:1,ct:l.toFixed(3),adj:m.toFixed(3)}),Mf(this.videoData)&&this.loader.seek(l+m,{seekSource:89,hW:"videoplayer_skipServerStitchedAd"}),IAt(this.KR,a),!0):!1}; g.Z.bZ=function(){return this.aj.bZ()}; g.Z.Yk=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.LM||"";this.xv.LX();return this.aj.Xe||""}; g.Z.f4=function(){if(this.videoData.videoId)return this.videoData.vr}; g.Z.f$=function(){return this.videoData.videoId}; g.Z.hx=function(){return this.xv.DC}; g.Z.X4=function(){return this.qe}; g.Z.v5=function(){return this.xv.v5()}; g.Z.W5=function(a,l){this.KR.W5(a,l)}; g.Z.Uz=function(){this.KR.Uz()}; g.Z.Go=function(a,l){var m=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.xv.Go(a,l,m)}; g.Z.dF=function(a,l){var m;(m=this.loader)==null||m.dF(a,l)}; g.Z.xZ=function(){var a=this.o8();return!!a&&a.xZ()}; g.Z.Cp=function(a,l){this.R0().Cp(a,l)}; g.Z.ML=function(){return this.R0().ML()}; g.Z.gT=function(){return this.videoData.wf}; g.Z.i$=function(){return this.xv.i$()}; g.Z.xQ=function(){return this.xv.xQ(this)}; g.Z.r4=function(a){var l;(l=this.loader)==null||l.r4(a)}; g.Z.F5=function(){var a;(a=this.loader)==null||a.F5()};g.W(nSw,rf);g.W(w3d,rf);g.Z=w3d.prototype;g.Z.seekToChapterWithAnimation=function(a){var l=this;if(g.pq(this.api)&&!(a<0)){var m=this.api.getVideoData(),T=m.L7;if(T&&a=0)return;l=~l;g.hI(this.items,l,0,a);Rj(this.menuItems.element,a.element,l)}a.subscribe("size-change",this.wY,this);this.menuItems.publish("size-change")}; g.Z.W$=function(a){a.unsubscribe("size-change",this.wY,this);this.FO()||(g.Wn(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))}; g.Z.wY=function(){this.menuItems.publish("size-change")}; g.Z.focus=function(){for(var a=0,l=0;l1&&g.hc(this)}; g.Z.Vt=function(){GQH(this);this.I0&&(A47(this),g.Y1(this.element,this.size))}; g.Z.v4=function(){var a=this.T.pop();PY7(this,a,this.T[this.T.length-1],!0)}; g.Z.Lg=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.KE();a.preventDefault();break;case 37:this.T.length>1&&this.v4();a.preventDefault();break;case 39:a.preventDefault()}}; g.Z.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.Z.sL=function(){g.Cq.prototype.sL.call(this);this.C&&this.C.dispose();this.B&&this.B.dispose()};g.W(OR,g.eX);OR.prototype.open=function(a,l){this.initialize(a.items)&&this.fR(l,!!l)}; OR.prototype.initialize=function(a){g.tc(this.GE);if(a===void 0||a.length===0)return!1;var l=a.length;a=g.c(a);for(var m=a.next();!m.done;m=a.next())this.mL(m.value,l--);return!0}; OR.prototype.mL=function(a,l){a.menuNavigationItemRenderer?Z9b(this,a.menuNavigationItemRenderer,l):a.menuServiceItemRenderer&&Wtw(this,a.menuServiceItemRenderer,l)};g.W(Kz,Lz);g.Z=Kz.prototype;g.Z.Kc=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.g4(),this.onClickCommand&&this.D.Pz("innertubeCommand",this.onClickCommand))}; g.Z.HB=function(){this.enabled=!1;this.N.hide()}; g.Z.Fr=function(){return!!this.T&&this.enabled}; g.Z.onVideoDataChange=function(a,l){this.Jk(l);if(this.T){this.QK();a:if(!this.isCounterfactual){var m,T,y;this.banner.update({title:(m=this.T)==null?void 0:m.title,subtitle:(T=this.T)==null?void 0:T.subtitle,metadata:(y=this.T)==null?void 0:y.metadataText});var R;this.onClickCommand=g.I((R=this.T)==null?void 0:R.onTap,I9);var H;if(a=g.I((H=this.T)==null?void 0:H.onOverflow,I9))this.B=g.I(a,v_9);var b;if((b=this.T)==null?0:b.thumbnailImage){var M,d;H=((M=this.T)==null?void 0:(d=M.thumbnailImage)== null?void 0:d.sources)||[];if(H.length===0)break a;this.thumbnailImage.update({url:H[0].url})}else{var A;if((A=this.T)==null?0:A.thumbnailIconName){var P;this.thumbnailIcon.update({icon:(P=this.T)==null?void 0:P.thumbnailIconName})}}var G;this.shouldShowOverflowButton=!((G=this.T)==null||!G.shouldShowOverflowButton);var V;this.shouldHideDismissButton=!((V=this.T)==null||!V.shouldHideDismissButton)}var p;this.banner.element.setAttribute("aria-label",((p=this.T)==null?void 0:p.a11yLabel)||"");var L; this.tM=(L=this.T)==null?void 0:L.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;LtQ(this)}}; g.Z.Utj=function(){this.isVisible=!0;LtQ(this)}; g.Z.iEj=function(){this.isVisible=!1;LtQ(this)}; g.Z.Q3=function(){Lz.prototype.Q3.call(this);this.L&&this.D.logVisibility(this.banner.element,this.isVisible)}; g.Z.g4=function(){Lz.prototype.g4.call(this,!1);this.L&&this.D.logClick(this.banner.element)}; g.Z.s1=function(a){this.C||(this.C=new OR(this.D),g.w(this,this.C));var l,m;if((l=this.B)==null?0:(m=l.menu)==null?0:m.menuRenderer)this.C.open(this.B.menu.menuRenderer,a.target),a.preventDefault()}; g.Z.Jk=function(){}; g.Z.QK=function(){}; g.Z.sL=function(){this.D.FJ("suggested_action_view_model");Lz.prototype.sL.call(this)};g.W(z_,Kz); z_.prototype.Jk=function(a){var l,m,T;this.productUpsellSuggestedActionViewModel=g.I((l=a.getWatchNextResponse())==null?void 0:(m=l.playerOverlays)==null?void 0:(T=m.playerOverlayRenderer)==null?void 0:T.suggestedActionViewModel,uGd);var y;if((y=this.productUpsellSuggestedActionViewModel)==null?0:y.content){var R;this.T=g.I((R=this.productUpsellSuggestedActionViewModel)==null?void 0:R.content,Ocd)}var H,b;if(this.L=!!((H=this.productUpsellSuggestedActionViewModel)==null?0:(b=H.loggingDirectives)==null? 0:b.trackingParams)){var M,d;this.D.setTrackingParams(this.banner.element,((M=this.productUpsellSuggestedActionViewModel)==null?void 0:(d=M.loggingDirectives)==null?void 0:d.trackingParams)||null)}var A;this.isCounterfactual=!((A=this.productUpsellSuggestedActionViewModel)==null||!A.isCounterfactualServing)}; z_.prototype.QK=function(){var a=[],l,m=g.c(((l=this.productUpsellSuggestedActionViewModel)==null?void 0:l.ranges)||[]);for(l=m.next();!l.done;l=m.next()){var T=l.value;T&&(l=Number(T.startTimeMilliseconds),T=Number(T.endTimeMilliseconds),isNaN(l)||isNaN(T)||a.push(new g.Rq(l,T,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.D.d7(a)};g.W(Nod,rf);g.W(ve,rf);ve.prototype.onVideoDataChange=function(a,l){var m=this;if(!En(l)&&(a==="newdata"&&tBw(this),this.L&&this.Z&&a==="dataloaded")){var T;Zh(gp(this.api.Y(),(T=this.api.getVideoData())==null?void 0:g.wn(T)),function(y){m.Z=!1;vmz(m,y)})}}; ve.prototype.kd=function(){var a=this;if(g.OF(this.api.Y())){var l,m=g.b1(this.api.Y(),(l=this.api.getVideoData())==null?void 0:g.wn(l));return Zh(Pc(m),function(T){var y=nq();wf(y,T);return a.api.kd(y)})}return Pc(this.api.kd())};g.W(g.sR,g.ub);g.Z=g.sR.prototype;g.Z.open=function(){g.Fq(this.Ob,this.L)}; g.Z.cE=function(a){$Rz(this);var l=this.options[a];l&&(l.element.setAttribute("aria-checked","true"),this.MN(this.LH(a)),this.Z=a)}; g.Z.sP=function(a){g.tc(this.L);for(var l={},m=!1,T=0;T=0?this.T.playbackRate:1}catch(a){return 1}}; g.Z.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.T.playbackRate=a);return a}; g.Z.pn=function(){return this.T.loop}; g.Z.setLoop=function(a){this.T.loop=a}; g.Z.canPlayType=function(a,l){return this.T.canPlayType(a,l)}; g.Z.isPaused=function(){return this.T.paused}; g.Z.isSeeking=function(){return this.T.seeking}; g.Z.isEnded=function(){return this.T.ended}; g.Z.bH=function(){return this.T.muted}; g.Z.a7=function(a){JS();this.T.muted=a}; g.Z.ZP=function(){return this.T.played||bH([],[])}; g.Z.dL=function(){try{var a=this.T.buffered}catch(l){}return a||bH([],[])}; g.Z.Dx=function(){return this.T.seekable||bH([],[])}; g.Z.dD=function(){var a=this.T;return a.getStartDate?a.getStartDate():null}; g.Z.getCurrentTime=function(){return this.T.currentTime}; g.Z.setCurrentTime=function(a){this.T.currentTime=a}; g.Z.getDuration=function(){return this.T.duration}; g.Z.load=function(){var a=this.T.playbackRate;try{this.T.load()}catch(l){}this.T.playbackRate=a}; g.Z.pause=function(){this.T.pause()}; g.Z.play=function(){var a=this.T.play();if(!a||!a.then)return null;a.then(void 0,function(){}); return a}; g.Z.Tb=function(){return this.T.readyState}; g.Z.SU=function(){return this.T.networkState}; g.Z.YA=function(){return this.T.error?this.T.error.code:null}; g.Z.La=function(){return this.T.error?this.T.error.message:""}; g.Z.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var a=this.T,l=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:l||0,totalVideoFrames:a}}return{}}; g.Z.rL=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.Z.Ee=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.Z.togglePictureInPicture=function(){var a=this.T,l=window.document;window.document.pictureInPictureEnabled?this.T!==l.pictureInPictureElement?a.requestPictureInPicture():l.exitPictureInPicture():fw()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.Z.Xh=function(){var a=this.T;return new g.$5(a.offsetLeft,a.offsetTop)}; g.Z.getSize=function(){return g.Uh(this.T)}; g.Z.setSize=function(a){g.Y1(this.T,a)}; g.Z.getVolume=function(){return this.T.volume}; g.Z.setVolume=function(a){JS();this.T.volume=a}; g.Z.wQ=function(a){this.K[a]||(this.T.addEventListener(a,this.listener),this.K[a]=this.listener)}; g.Z.setAttribute=function(a,l){this.T.setAttribute(a,l)}; g.Z.removeAttribute=function(a){this.T.removeAttribute(a)}; g.Z.hasAttribute=function(a){return this.T.hasAttribute(a)}; g.Z.N7=l7(67);g.Z.MC=l7(69);g.Z.PQ=l7(71);g.Z.Bb=l7(73);g.Z.YD=function(){return Np(this.T)}; g.Z.qL=function(a){g.M$(this.T,a)}; g.Z.Eo=function(a){return g.IR(this.T,a)}; g.Z.CD=function(){return g.qw(document.body,this.T)}; g.Z.audioTracks=function(){var a=this.T;if("audioTracks"in a)return a.audioTracks}; g.Z.sL=function(){for(var a=g.c(Object.keys(this.K)),l=a.next();!l.done;l=a.next())l=l.value,this.T.removeEventListener(l,this.K[l]);mZ.prototype.sL.call(this)}; g.Z.sx=function(a){this.T.disableRemotePlayback=a};g.W(x6,g.x);g.W(uX,g.x);uX.prototype.show=function(){g.x.prototype.show.call(this);this.k8();this.bT.V("html5_enable_moving_s4n_window")&&g.OF(this.bT.Y())&&this.J()}; uX.prototype.hide=function(){g.x.prototype.hide.call(this);this.delay.stop();this.j.stop()}; uX.prototype.k8=function(){var a=(0,g.E)(),l=om3(this.bT);DA(this.T,l.bandwidth_samples);DA(this.B,l.network_activity_samples);DA(this.Z,l.live_latency_samples);DA(this.L,l.buffer_health_samples);var m={};l=g.c(Object.entries(l));for(var T=l.next();!T.done;T=l.next()){var y=g.c(T.value);T=y.next().value;y=y.next().value;this.N[T]!==y&&(m[T]=" "+String(y));this.N[T]=y}this.update(m);a=(0,g.E)()-a>25?5E3:500;this.delay.start(a)}; uX.prototype.J=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.j.start(2E4)};g.W(uJw,rf);g.W(Xq,g.k);Xq.prototype.T=function(){var a=(0,g.E)()-this.startTime;a=athis.j[a])&&(this.T=a,UR(this))}; g.Z.onCueRangeExit=function(a){var l=bYw(this,a);l&&this.T===a&&this.api.Pz("innertubeCommand",l);this.clearTimeout();this.T=void 0}; g.Z.onTimeout=function(a){this.T!==void 0&&(a==null?void 0:a.cueRangeId)===this.T&&(this.J=!1,(a=bYw(this,this.T))&&this.api.Pz("innertubeCommand",a))}; g.Z.zo=function(a){this.L=a}; g.Z.gY=function(){UR(this);this.L=void 0}; g.Z.setTimeout=function(a){var l=this,m=Number(a==null?void 0:a.maxVisibleDurationMilliseconds);m&&(this.clearTimeout(),this.N=setTimeout(function(){l.onTimeout(a)},m))}; g.Z.clearTimeout=function(){this.N&&clearTimeout(this.N);this.N=void 0;this.J=!1}; g.Z.sL=function(){this.timelyActions=this.L=this.T=this.videoId=void 0;this.j={};this.Yh();this.clearTimeout();rf.prototype.sL.call(this)};g.W(iY5,rf);g.W(a4,HR);a4.prototype.C=function(a){this.j(a?2:1)}; a4.prototype.L=function(){var a=this.D.getPresentingPlayerType();a===2||a===3?(this.T=!1,this.Ob.W$(this)):this.T||(a=this.hasVoiceBoostAudioTrack(),this.setEnabled(a),a=this.Z()===2&&a,qH(this,a),this.Ob.mL(this),this.T=!0)}; a4.prototype.sL=function(){this.Ob.W$(this);HR.prototype.sL.call(this)};g.W(le,rf);le.prototype.getVoiceBoostUserPreference=function(){return this.T}; le.prototype.setVoiceBoostUserPreference=function(a){this.api.Tu("vb_set",{pref:a});g.JN("yt-player-voice-boost",a);a!==this.T&&(this.T=a,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Uw())}; le.prototype.hasVoiceBoostAudioTrack=function(){var a,l,m=(a=this.api.getVideoData())==null?void 0:(l=a.Z)==null?void 0:l.T;return m?md(m,function(T){var y;return((y=T.audio)==null?void 0:y.L)===!0}):!1}; le.prototype.updateEnvironmentData=function(){this.api.Y().sZ=this.T};var LUw=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.W(ym,rf);ym.prototype.sL=function(){this.B&&(g.Ly(this.B),this.B=void 0);rf.prototype.sL.call(this)}; ym.prototype.LX=function(){(this.L?!this.T:this.Z)&&H3(this)}; ym.prototype.pu=function(a,l,m){var T=this;if(AGt(a)){var y=m||"";if(this.T)l=qB(this,y),POP(a,l);else{var R=new g.pr;l.push(R.promise);this.K.promise.then(function(){var H=qB(T,y);POP(a,H);R.resolve()})}}}; ym.prototype.A7=function(a){var l=this;if(this.L||this.Z)a.LM=qB(this,a.videoId),this.T||(this.j=new l6,this.K.promise.then(function(){l.CE.eq("pot_if");a.LM=qB(l,a.videoId)}))};g.W(be,rf);be.prototype.setFullscreenQuickActions=function(a){this.T&&this.api.getRootNode().removeChild(this.T);a?(g.M$(a,"ytp-fullscreen-quick-actions"),g.M$(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.fq(this.api,a,4)):g.dK(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.T=a;QzR(this,this.api.isFullscreen())}; be.prototype.setPlayerOverlayVideoDetailsRenderer=function(a){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);a?(g.M$(a,"ytp-fullscreen-metadata"),this.api.V("delhi_modern_web_player_fullscreen_metadata_bottom")?g.M$(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.M$(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.fq(this.api,a,4)):(g.dK(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.dK(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=a;QzR(this,this.api.isFullscreen())};g.W(tUt,rf);g.W(gd,g.k);gd.prototype.T=function(){for(var a=g.c(g.Jz.apply(0,arguments)),l=a.next();!l.done;l=a.next())(l=l.value)&&this.features.push(l)}; gd.prototype.sL=function(){for(var a=this.features.length-1;a>=0;a--)this.features[a].dispose();this.features.length=0;g.k.prototype.sL.call(this)};eul.prototype.reset=function(){this.T=this.L=NaN};g.Z=FUp.prototype;g.Z.reset=function(){n$(this.timerName)}; g.Z.tick=function(a,l){C$(a,l,this.timerName)}; g.Z.eq=function(a){return Dq(a,void 0,this.timerName)}; g.Z.Ji=function(a){Kd(a,void 0,this.timerName)}; g.Z.infoGel=function(a){g.Ex(a,this.timerName)};g.W(KUd,g.Aj);g.Z=KUd.prototype;g.Z.AE=function(a){return this.loop||!!a||this.index+1=0}; g.Z.setShuffle=function(a){this.shuffle=a;a=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var l=0;l0)||ze(this,1,!0)}; g.Z.MW=function(){this.C=!0;this.T.DT(this.K);this.K=this.T.W(document,"mouseup",this.O1)}; g.Z.O1=function(){this.C=!1;ze(this,8,!1);this.T.DT(this.K);this.K=this.T.W(this.target,"mousedown",this.MW)}; g.Z.PO=function(a){if(a=(a=a.changedTouches)&&a[0])this.jt=a.identifier,this.T.DT(this.J),this.J=this.T.W(this.target,"touchend",this.iL,void 0,!0),ze(this,1024,!0)}; g.Z.iL=function(a){if(a=a.changedTouches)for(var l=0;l1280||R>720)if(y=m.UF("maxresdefault.jpg"))break;if(T>640||R>480)if(y=m.UF("maxresdefault.jpg"))break; if(T>320||R>180)if(y=m.UF("sddefault.jpg")||m.UF("hqdefault.jpg")||m.UF("mqdefault.jpg"))break;if(y=m.UF("default.jpg"))break}g.mS(l)&&(l=new Image,l.addEventListener("load",function(){Ut3()}),l.src=y?y:"",this.api.Rg().tick("ftr")); this.j.style.backgroundImage=y?"url("+y+")":""};g.W(g.SO,g.x);g.SO.prototype.resize=function(){}; g.SO.prototype.L=function(a){var l=this;this.Z=!1;tK3(this);var m=a.Xw,T=this.api.Y();m!=="GENERIC_WITHOUT_LINK"||T.C?m==="TOO_MANY_REQUESTS"?(T=g.B(this.api.getVideoData()),this.MN(B3(this,"TOO_MANY_REQUESTS_WITH_LINK",T.mm(),void 0,void 0,void 0,!1))):m!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||T.C?this.api.Y().V("html5_enable_bandaid_error_screen")&&m==="HTML5_SPS_UMP_STATUS_REJECTED"&&!T.C?(T=T.hostLanguage,a="//support.google.com/youtube?p=videoError",T&&(a=g.S$(a,{hl:T})),this.MN(B3(this,"HTML5_SPS_UMP_STATUS_REJECTED", a))):this.api.Y().V("enable_adb_handling_in_sabr")&&m==="BROWSER_OR_EXTENSION_ERROR"&&!T.C?(T=T.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",T&&(a=g.S$(a,{hl:T})),this.MN(B3(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.MN(g.fx(a.errorMessage)):this.MN(B3(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=T.hostLanguage,m="//support.google.com/youtube/?p=player_error1",a&&(m=g.S$(m, {hl:a})),this.MN(B3(this,"GENERIC_WITH_LINK_AND_CPN",m,!0)),T.SW&&!T.j&&Qa7(this,function(R){if(g.bs(R,l.api,!YN(l.api.Y()))){R={as3:!1,html5:!0,player:!0,cpn:g.B(l.api.getVideoData()).clientPlaybackNonce};var H=l.api;H.PN("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:R});H.isFullscreen()&&H.toggleFullscreen()}})); if(this.Z){var y=this.OL("ytp-error-link");y&&(this.api.createClientVe(y,this,216104),this.api.logVisibility(y,!0),Qa7(this,function(){l.api.logClick(y)}))}}; var NAl=/([^<>]+)<\/a>/;g.W(eC7,g.x);g.Z=eC7.prototype;g.Z.onClick=function(a){this.innertubeCommand?(this.D.Pz("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.bs(a,this.D,!0);this.D.logClick(this.element)}; g.Z.onVideoDataChange=function(a,l){hC7(this,l);this.K5&&Otd(this,this.K5)}; g.Z.qX=function(a){var l=g.B(this.D.getVideoData());this.videoId!==l.videoId&&hC7(this,l);this.T&&Otd(this,a.state);this.K5=a.state}; g.Z.fR=function(){this.fade.show();this.D.publish("paidcontentoverlayvisibilitychange",!0);this.D.logVisibility(this.element,!0)}; g.Z.KE=function(){this.fade.hide();this.D.publish("paidcontentoverlayvisibilitychange",!1);this.D.logVisibility(this.element,!1)};g.W(kS,g.x);kS.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.x.prototype.hide.call(this)}; kS.prototype.onStateChange=function(a){this.Rf(a.state)}; kS.prototype.Rf=function(a){if(g.u(a,128)||this.api.X4())var l=!1;else{var m;l=this.api.V("web_watch_enable_multiview_manager")&&((m=this.api.getVideoData())==null?0:En(m))?!1:g.u(a,16)||g.u(a,1)?!0:!1}l?this.T.start():this.hide()}; kS.prototype.L=function(){this.message.style.display="block"};g.W(nx,g.Cq);nx.prototype.onMutedAutoplayChange=function(a){this.Z&&(a?(KAd(this),this.fR()):(this.T&&this.logClick(),this.KE()))}; nx.prototype.Nw=function(a){this.api.isMutedByMutedAutoplay()&&g.Wr(a,2)&&this.KE()}; nx.prototype.onClick=function(){this.api.unMute();this.logClick()}; nx.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.W(g.wd,g.BT);g.Z=g.wd.prototype;g.Z.init=function(){var a=this.api,l=a.getPlayerStateObject();this.LV=a.getPlayerSize();this.If(l);this.iK();this.Mt();this.api.publish("basechromeinitialized",this);this.pQ()&&this.api.publish("standardControlsInitialized")}; g.Z.onVideoDataChange=function(a,l){var m=this.Gl!==l.videoId;if(m||a==="newdata"){a=this.api;a.isFullscreen()||(this.LV=a.getPlayerSize());var T;((T=this.api.getVideoData(1))==null?0:g.US(T))&&this.jI()}m&&(this.Gl=l.videoId,m=this.mA,m.qj=3E3,ze(m,512,!0),this.iK());this.api.V("web_render_jump_buttons")&&l.showSeekingControls&&(this.aO=572)}; g.Z.tWL=function(){this.onVideoDataChange("newdata",g.B(this.api.getVideoData()))}; g.Z.U4=function(){var a=this.api.yy()&&this.api.Xg(),l=this.api.hI();return this.i9||a||this.Id||l}; g.Z.jI=function(){var a=!this.U4();g.AM(this.api.getRootNode(),"ytp-menu-shown",!a);var l;((l=this.api.getVideoData(1))==null?0:g.US(l))&&g.AM(this.api.getRootNode(),"ytp-hide-controls",!a)}; g.Z.Jo=function(a){try{if(!g.qw(this.api.getRootNode(),a))return!1}catch(l){return!1}for(;a&&!wnl(a);)a=a===this.api.getRootNode()?null:a.parentElement||null;return!!a}; g.Z.oo=function(a){var l=this.api.getRootNode();g.AM(l,"ytp-autohide",a);g.AM(l,"ytp-autohide-active",!0);this.GN.start(a?250:100);a&&(this.l_=!1,g.dK(l,"ytp-touch-mode"));this.q4=!a;this.api.W8(!a)}; g.Z.DH=function(){var a=this.api.getRootNode();g.AM(a,"ytp-autohide-active",!1)}; g.Z.MxN=function(){this.r_=!0}; g.Z.XNM=function(a){if(this.api.Y().V("player_doubletap_to_seek")||this.api.Y().B)this.r_=!1,this.g_&&this.DT(this.g_),this.eG===0&&Cx(this,a)?(this.lP(),this.yc.start(),this.g_=this.W(this.api.cz(),"touchmove",this.MxN,void 0,!0)):this.yc.stop();saz(this)&&Cx(this,a)&&!this.api.Y().B&&v3z(this);var l=this.yC.qg();if(!g.vS(this.api.Y())&&h$&&SEQ(this,a))l&&a.preventDefault();else if(this.l_=!0,g.M$(this.api.getRootNode(),"ytp-touch-mode"),this.mA.c5(),this.api.Y().V("player_doubletap_to_seek")||this.api.Y().B)if(l= this.api.getPlayerStateObject(),!(!this.api.zA()||g.u(l,2)&&g.O2(this.api)||g.u(l,64))){l=Date.now()-this.Qe;this.eG+=1;if(l<=350){this.B6=!0;l=this.api.getPlayerSize().width/3;var m=this.api.getRootNode().getBoundingClientRect(),T=a.targetTouches[0].clientX-m.left;m=a.targetTouches[0].clientY-m.top;var y=(this.eG-1)*10;T>0&&Tl*2&&T=650,T=a.width<528;this.mA.resize();g.AM(l,"ytp-fullscreen",this.api.isFullscreen());g.AM(l,"ytp-large-width-mode",m);g.AM(l,"ytp-xsmall-width-mode",T);g.AM(l,"ytp-small-mode",this.GA());g.AM(l,"ytp-tiny-mode",this.DA());g.AM(l,"ytp-big-mode",this.hp());this.Fc&&this.Fc.resize(a)}; g.Z.Nw=function(a){this.If(a.state);this.iK()}; g.Z.I7=l7(5);g.Z.CQ=function(){var a=!!this.Gl&&!this.api.oh()&&!this.Tv,l=this.api.getPresentingPlayerType()===2,m=this.api.Y();if(l){if(Nw5&&m.V("enable_visit_advertiser_support_on_ipad_mweb"))return!1;l=eO(this.api.iZ());a&&(l&&l.player?a=(a=l.player.getVideoData(2))?a.isListed&&!g.Fm(l.player.Y()):!1:(Vu("showInfoBarDuringAd: this is null"),a=!1));return a}return a&&(m.aH||this.api.isFullscreen()||m.ph)}; g.Z.iK=function(){var a=this.CQ();this.Mh!==a&&(this.Mh=a,g.AM(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.Z.If=function(a){var l=a.isCued()||this.api.OH()&&this.api.getPresentingPlayerType()!==3;l!==this.isCued&&(this.isCued=l,this.z3&&this.DT(this.z3),this.z3=this.W(this.api.cz(),"touchstart",this.XNM,void 0,l));var m=this.mA,T=a.isPlaying()&&!g.u(a,32)||this.api.Qj();ze(m,128,!T);m=this.mA;T=this.api.getPresentingPlayerType()===3;ze(m,256,T);m=this.api.getRootNode();g.u(a,2)?T=[Ck.ENDED]:(T=[],g.u(a,8)?T.push(Ck.PLAYING):g.u(a,4)&&T.push(Ck.PAUSED),g.u(a,1)&&!g.u(a,32)&&T.push(Ck.BUFFERING),g.u(a, 32)&&T.push(Ck.SEEKING),g.u(a,64)&&T.push(Ck.UNSTARTED));g.Sc(this.EX,T)||(g.jt(m,this.EX),this.EX=T,g.i0(m,T));T=this.api.Y();var y=g.u(a,2);a:{var R=this.api.Y();var H=R.controlsType;switch(H){case "2":case "0":R=!1;break a}R=H==="3"&&!g.u(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:yzd(eO(this.api.iZ())))||this.api.hI()||g.vS(R)&&this.api.getPresentingPlayerType()===2?!1:!0}g.AM(m,"ytp-hide-controls",!R);g.AM(m,"ytp-native-controls",T.controlsType==="3"&&!l&&!y&&!this.Id);g.u(a, 128)&&!g.vS(T)?(this.Fc||(this.Fc=new g.SO(this.api),g.w(this,this.Fc),g.fq(this.api,this.Fc.element,4)),this.Fc.L(a.p7),this.Fc.show()):this.Fc&&(this.Fc.dispose(),this.Fc=null)}; g.Z.RR=function(){return this.api.yy()&&this.api.Xg()?(this.api.N3(!1,!1),!0):this.api.oh()?(g.Kq(this.api,!0),!0):!1}; g.Z.onMutedAutoplayChange=function(a){this.Id=a;this.jI()}; g.Z.hp=function(){return!1}; g.Z.GA=function(){return!this.hp()&&(this.api.getPlayerSize().width=0&&l.left>=0&&l.bottom>l.top&&l.right>l.left?l:null;l=this.size;a=a.clone();l=l.clone();T&&(H=l,y=5,(y&65)==65&&(a.x=T.right)&&(y&=-2),(y&132)==132&&(a.y=T.bottom)&&(y&=-5),a.xT.right&&(H.width=Math.min(T.right-a.x,R+H.width-T.left),H.width=Math.max(H.width,0))),a.x+H.width>T.right&&y&1&&(a.x=Math.max(T.right-H.width,T.left)),a.yT.bottom&&(H.height=Math.min(T.bottom-a.y,R+H.height-T.top),H.height=Math.max(H.height,0))),a.y+H.height>T.bottom&&y&4&&(a.y=Math.max(T.bottom-H.height,T.top)));T=new g.Jq(0,0,0,0);T.left=a.x;T.top=a.y;T.width= l.width;T.height=l.height;g.x1(this.element,new g.$5(T.left,T.top));g.$H(this.j);this.j.W(E2(this),"contextmenu",this.TW8);this.j.W(this.D,"fullscreentoggled",this.onFullscreenToggled);this.j.W(this.D,"pageTransition",this.Cg)}; g.Z.TW8=function(a){if(!a.defaultPrevented){var l=OC(a);g.qw(this.element,l)||this.KE();this.D.Y().disableNativeContextMenu&&a.preventDefault()}}; g.Z.onFullscreenToggled=function(){this.KE();HCl(this)}; g.Z.Cg=function(){this.KE()};g.W(rd,g.x);rd.prototype.onClick=function(){var a=this,l,m,T,y;return g.J(function(R){if(R.L==1)return l=a.api.Y(),m=g.B(a.api.getVideoData()),T=a.api.getPlaylistId(),y=l.getVideoUrl(m.videoId,T,void 0,!0),g.z(R,gh5(a,y),2);R.T&&bCd(a);a.api.logClick(a.element);g.c5(R)})}; rd.prototype.k8=function(){this.updateValue("icon",{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{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 enlace");this.visible=qgQ(this);g.AM(this.element,"ytp-copylink-button-visible", this.visible);this.zx(this.visible);this.tooltip.n7();this.api.logVisibility(this.element,this.visible&&this.K)}; rd.prototype.kX=function(a){g.x.prototype.kX.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; rd.prototype.sL=function(){g.x.prototype.sL.call(this);g.dK(this.element,"ytp-copylink-button-visible")};g.W(Me7,g.x);g.Z=Me7.prototype;g.Z.show=function(){g.x.prototype.show.call(this);g.l0(this.L)}; g.Z.hide=function(){this.j.stop();this.Z=0;this.OL("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.dK(this.element,"ytp-chapter-seek");g.dK(this.element,"ytp-time-seeking");g.x.prototype.hide.call(this)}; g.Z.M3=function(a,l,m,T){this.Z=a===this.B?this.Z+T:T;this.B=a;var y=a===-1?this.N:this.J;y&&this.D.logClick(y);this.C?this.L.stop():g.Tw(this.L);this.j.start();this.element.setAttribute("data-side",a===-1?"back":"forward");var R=3*this.D.cz().getPlayerSize().height;y=this.D.cz().getPlayerSize();y=y.width/3-3*y.height;this.T.style.width=R+"px";this.T.style.height=R+"px";a===1?(this.T.style.left="",this.T.style.right=y+"px"):a===-1&&(this.T.style.right="",this.T.style.left=y+"px");var H=R*2.5;R=H/ 2;var b=this.OL("ytp-doubletap-ripple");b.style.width=H+"px";b.style.height=H+"px";a===1?(a=this.D.cz().getPlayerSize().width-l+Math.abs(y),b.style.left="",b.style.right=a-R+"px"):a===-1&&(a=Math.abs(y)+l,b.style.right="",b.style.left=a-R+"px");b.style.top="calc((33% + "+Math.round(m)+"px) - "+R+"px)";if(m=this.OL("ytp-doubletap-ripple"))m.classList.remove("ytp-doubletap-ripple"),m.classList.add("ytp-doubletap-ripple");iCw(this,this.C?this.Z:T)}; g.Z.rP=function(a,l,m){if(m=m===void 0?null:m){var T=a===-1?this.N.visualElement:this.J.visualElement;m={seekData:m};var y=g.KU();y&&g.me(yf)(void 0,y,T,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",m,void 0)}this.Z=a===this.B?this.Z+l:l;this.B=a;T=this.D.cz().getPlayerSize();this.C?this.L.stop():g.Tw(this.L);this.j.start();this.element.setAttribute("data-side",a===-1?"back":"forward");g.M$(this.element,"ytp-time-seeking");this.T.style.width="110px";this.T.style.height="110px";m=T.width*.1-15;a=== 1?this.Ij?(this.T.style.right=m+"px",this.T.style.left=""):(this.T.style.right="",this.T.style.left=T.width*.8-30+"px"):a===-1&&(this.Ij?(this.T.style.right="",this.T.style.left=m+"px"):(this.T.style.right="",this.T.style.left=T.width*.1-15+"px"));this.T.style.top=T.height*.5+15+"px";iCw(this,this.C?this.Z:l)}; g.Z.UN=function(a,l,m){m=m===void 0?null:m;g.Tw(this.L);this.j.start();switch(a){case -1:a="back";break;case 1:a="forward";break;default:a=""}this.element.setAttribute("data-side",a);this.T.style.width="0";this.T.style.height="0";g.M$(this.element,"ytp-chapter-seek");this.updateValue("seekText",l);this.updateValue("seekTime","");l=this.OL("ytp-seek-icon");if(m){a:if(m){switch(m){case "PREMIUM_STANDALONE":m=NCP();break a;case "PREMIUM_STANDALONE_CAIRO":m=Q$l();break a}m=void 0}else m=null;this.updateValue("seekIcon", m);l.style.display="inline-block"}else l.style.display="none"};g.W(d1l,Lz);g.Z=d1l.prototype;g.Z.m$=function(a){this.Cx||(this.Cx=new OR(this.D),g.w(this,this.Cx));var l,m;if((l=this.lZ)==null?0:(m=l.menu)==null?0:m.menuRenderer)this.Cx.open(this.lZ.menu.menuRenderer,a.target),a.preventDefault()}; g.Z.Fr=function(){return!!this.T}; g.Z.dZ=function(){return!!this.T}; g.Z.Kc=function(a){a.target===this.overflowButton.element?a.preventDefault():(this.Ug&&this.D.Pz("innertubeCommand",this.Ug),this.g4(!1))}; g.Z.HB=function(){this.g4(!0);var a,l;((a=this.T)==null?0:(l=a.bannerData)==null?0:l.dismissedStatusKey)&&this.SW.push(this.T.bannerData.dismissedStatusKey);this.sN()}; g.Z.tQ=function(){this.sN();mt(this)}; g.Z.H$O=function(a){var l=this,m;if(a.id!==((m=this.T)==null?void 0:m.identifier)){this.sN();m=g.c(this.qj);for(var T=m.next();!T.done;T=m.next()){var y=T.value,R=void 0,H=void 0;if((T=(R=y)==null?void 0:(H=R.bannerData)==null?void 0:H.itemData)&&y.identifier===a.id){H=R=void 0;var b=((R=y)==null?void 0:(H=R.bannerData)==null?void 0:H.dismissedStatusKey)||"";if(this.SW.includes(b))return;this.T=y;this.banner.element.setAttribute("aria-label",T.accessibilityLabel||"");T.trackingParams&&(this.j=!0, this.D.setTrackingParams(this.badge.element,T.trackingParams));this.N.show();ce(this);this.hM.zx(!T.stayInApp);QFQ(this);A6p(this);lY(this);this.Ug=g.I(T.onTapCommand,I9);if(y=g.I(T.menuOnTap,I9))this.lZ=g.I(y,v_9);y=void 0;this.banner.update({thumbnail:(y=(T.thumbnailSources||[])[0])==null?void 0:y.url,title:T.productTitle,price:T.priceReplacementText?T.priceReplacementText:T.price,salesOriginalPrice:VeQ(this),priceDropReferencePrice:pM7(this),promotionText:G1b(this),priceA11yText:ZCQ(this),affiliateDisclaimer:T.affiliateDisclaimer, vendor:WI3(this)});b=H=R=y=void 0;((y=T)==null?0:(R=y.hiddenProductOptions)==null?0:R.showDropCountdown)&&((H=T)==null?0:(b=H.hiddenProductOptions)==null?0:b.dropTimestampMs)&&(this.uZ=new g.aH(function(){NvR(l)},1E3),this.hM.hide(),this.countdownTimer.show(),NvR(this)); this.D.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&jF3(this)&&(this.wW=new g.aH(function(){PId(l)},1E3),PId(this))}}this.D.getRootNode()&&g.M$(this.D.getRootNode(),"ytp-featured-product-shown")}}; g.Z.sN=function(){this.T&&(this.T=void 0,this.tV(),this.D.getRootNode()&&g.dK(this.D.getRootNode(),"ytp-featured-product-shown"))}; g.Z.onVideoDataChange=function(a,l){var m=this;a==="dataloaded"&&mt(this);var T,y,R;a=g.I((T=l.getWatchNextResponse())==null?void 0:(y=T.playerOverlays)==null?void 0:(R=y.playerOverlayRenderer)==null?void 0:R.productsInVideoOverlayRenderer,KnD);this.overflowButton.show();this.dismissButton.hide();var H=a==null?void 0:a.featuredProductsEntityKey;this.trendingOfferEntityKey=a==null?void 0:a.trendingOfferEntityKey;this.qj.length||(LId(this,H),lY(this));var b;(b=this.Eg)==null||b.call(this);this.Eg=g.RY.subscribe(function(){LId(m, H);lY(m)})}; g.Z.sL=function(){mt(this);QFQ(this);A6p(this);Lz.prototype.sL.call(this)};g.W(OC3,g.x);OC3.prototype.onClick=function(){this.D.logClick(this.element,this.L)};g.W(KIR,g.Cq);g.Z=KIR.prototype;g.Z.show=function(){g.Cq.prototype.show.call(this);this.D.publish("infopaneldetailvisibilitychange",!0);this.D.logVisibility(this.element,!0);zNH(this,!0)}; g.Z.hide=function(){g.Cq.prototype.hide.call(this);this.D.publish("infopaneldetailvisibilitychange",!1);this.D.logVisibility(this.element,!1);zNH(this,!1)}; g.Z.getId=function(){return this.j}; g.Z.TB=function(){return this.itemData.length}; g.Z.onVideoDataChange=function(a,l){if(l){var m,T,y,R;this.update({title:((m=l.M9)==null?void 0:(T=m.title)==null?void 0:T.content)||"",body:((y=l.M9)==null?void 0:(R=y.bodyText)==null?void 0:R.content)||""});var H;a=((H=l.M9)==null?void 0:H.trackingParams)||null;this.D.setTrackingParams(this.element,a);H=g.c(this.itemData);for(a=H.next();!a.done;a=H.next())a.value.dispose();this.itemData=[];var b;if((b=l.M9)==null?0:b.ctaButtons)for(l=g.c(l.M9.ctaButtons),b=l.next();!b.done;b=l.next())if(b=g.I(b.value, QV_))b=new OC3(this.D,b,this.T),b.Q1&&(this.itemData.push(b),b.DK(this.items))}}; g.Z.sL=function(){this.hide();g.Cq.prototype.sL.call(this)};g.W(sF3,g.x);g.Z=sF3.prototype;g.Z.onVideoDataChange=function(a,l){$1d(this,l);this.K5&&fpz(this,this.K5)}; g.Z.xl=function(a){var l=g.B(this.D.getVideoData());this.videoId!==l.videoId&&$1d(this,l);fpz(this,a.state);this.K5=a.state}; g.Z.r5=function(a){(this.Z=a)?this.hide():this.T&&this.show()}; g.Z.FY=function(){this.L||this.fR();this.showControls=!0}; g.Z.Kg=function(){this.L||this.KE();this.showControls=!1}; g.Z.fR=function(){var a,l=(a=this.D)==null?void 0:a.getPlayerSize();a=l.width<380;var m;l=l.height<(((m=this.D)==null?0:m.isEmbedsShortsMode())?400:280);var T,y;(((T=this.D)==null?0:T.getPlayerStateObject().isCued())||((y=this.D)==null?0:g.u(y.getPlayerStateObject(),1024)))&&a&&l||!this.T||this.Z||(this.fade.show(),this.D.publish("infopanelpreviewvisibilitychange",!0),this.D.logVisibility(this.element,!0))}; g.Z.KE=function(){this.T&&!this.Z&&(this.fade.hide(),this.D.publish("infopanelpreviewvisibilitychange",!1),this.D.logVisibility(this.element,!1))}; g.Z.gNb=function(){this.L=!1;this.showControls||this.KE()};var S0X={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(S0X).reduce(function(a,l){a[S0X[l]]=l;return a},{}); var fNB={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(fNB).reduce(function(a,l){a[fNB[l]]=l;return a},{}); var Jdd={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Jdd).reduce(function(a,l){a[Jdd[l]]=l;return a},{});var ByI,kbD;ByI=[{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"}];kbD=[{option:0,text:TQ(0)},{option:.25,text:TQ(.25)},{option:.5,text:TQ(.5)},{option:.75,text:TQ(.75)},{option:1,text:TQ(1)}]; g.qR=[{option:"fontFamily",text:"Conjunto de fuentes",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:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:ByI},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:TQ(.5)},{option:-1,text:TQ(.75)},{option:0,text:TQ(1)},{option:1, text:TQ(1.5)},{option:2,text:TQ(2)},{option:3,text:TQ(3)},{option:4,text:TQ(4)}]},{option:"background",text:"Color de fondo",options:ByI},{option:"backgroundOpacity",text:"Opacidad del fondo",options:kbD},{option:"windowColor",text:"Color de la ventana",options:ByI},{option:"windowOpacity",text:"Opacidad de la ventana",options:kbD},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:TQ(.25)},{option:.5,text:TQ(.5)},{option:.75,text:TQ(.75)},{option:1,text:TQ(1)}]}];var nXs=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.W(Ipd,g.BT);g.Z=Ipd.prototype; g.Z.rg=function(a){a.repeat||(this.Z.Vj=!1);var l=!1,m=a.keyCode,T=OC(a),y=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||nXs.includes(m)),R=!1,H=!1,b=this.api.Y();a.defaultPrevented?(y=!1,H=!0):b.im&&!this.api.isMutedByEmbedsMutedAutoplay()&&(y=!1);if(m===9)l=!0;else{if(T)switch(m){case 32:case 13:if(T.tagName==="BUTTON"||T.tagName==="A"||T.tagName==="INPUT")l=!0,y=!1;else if(y){var M=T.getAttribute("role");!M||M!=="option"&&M!=="button"&&M.indexOf("menuitem")!==0|| (l=!0,T.click(),R=!0)}break;case 37:case 39:case 36:case 35:l=T.getAttribute("role")==="slider";break;case 38:case 40:M=T.getAttribute("role"),T=m===38?T.previousSibling:T.nextSibling,M==="slider"?l=!0:y&&(M==="option"?(T&&T.getAttribute("role")==="option"&&T.focus(),R=l=!0):M&&M.indexOf("menuitem")===0&&(T&&T.hasAttribute("role")&&T.getAttribute("role").indexOf("menuitem")===0&&T.focus(),R=l=!0))}if(y&&!R)switch(m){case 38:R=Math.min(this.api.getVolume()+5,100);xS(this.xf,R,!1);this.api.setVolume(R); H=R=!0;break;case 40:R=Math.max(this.api.getVolume()-5,0);xS(this.xf,R,!0);this.api.setVolume(R);H=R=!0;break;case 36:this.api.zA()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),H=R=!0);break;case 35:this.api.zA()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),H=R=!0)}}l&&R2(this,!0);(l||H)&&this.mA.c5();(R||y&&this.handleGlobalKeyDown(m,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();b.J&&(a={keyCode:a.keyCode, altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Fe("onKeyPress",a))}; g.Z.gg=function(a){var l=a.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.Z.un)&&this.handleGlobalKeyUp(l,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()}; g.Z.handleGlobalKeyUp=function(a,l,m,T,y,R,H){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:l,ctrlKey:m,altKey:T,metaKey:y,key:R,code:H});l=!1;if(this.Z.Vj)return l;(R=g.s2(this.api.iZ()))&&(R=R.VU)&&R.I0&&(R.MD(a),l=!0);switch(a){case 9:R2(this,!0);l=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.Z.un||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.Y().im){var b,M;a=(b=this.progressBar)== null?void 0:(M=b.L)==null?void 0:M.isEnabled;l=this.zC(a)}break;case 39:(lz?T:m)&&!y&&this.api.zA()&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),b=(b=this.api.getVideoData())?b.L7:[],M=BvP(b,this.api.getCurrentTime()*1E3),M!==-1&&this.T!=null&&(this.T.UN(1,b[M].title),this.api.seekTo(b[M].startTime/1E3,void 0,void 0,void 0,52),l=!0))}return l}; g.Z.handleGlobalKeyDown=function(a,l,m,T,y,R,H,b){b||(this.Z.Vj=!1);var M=!1,d=this.api.Y();if(d.im&&!this.api.isMutedByEmbedsMutedAutoplay())return M;var A=g.s2(this.api.iZ());if(A&&(A=A.VU)&&A.I0)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:M=A.X$(a)}d.C||M||(M=R||String.fromCharCode(a).toLowerCase(),this.L+=M,"awesome".indexOf(this.L)===0||this.api.V("web_player_rtr_ctrls")&&"bday".indexOf(this.L)===0?(M=!0,4===this.L.length&&this.L==="bday"&&this.api.V("web_player_rtr_ctrls")&& (Wxt(this.K),this.mA.c5()),7===this.L.length&&this.L==="awesome"&&LNd(this.api.getRootNode(),"ytp-color-party")):(this.L=M,M="awesome".indexOf(this.L)===0||"bday".indexOf(this.L)===0));if(!M&&(!this.api.isMutedByEmbedsMutedAutoplay()||nXs.includes(a))){var P=this.api.getVideoData(),G,V;A=(G=this.progressBar)==null?void 0:(V=G.L)==null?void 0:V.isEnabled;G=P?P.L7:[];V=lz?T:m;switch(a){case 80:l&&!d.AM&&(o4(this.xf,ts3(),"Anterior"),this.api.previousVideo(),M=!0);break;case 78:l&&!d.AM&&(o4(this.xf, OD(),"Siguiente"),this.api.nextVideo(),M=!0);break;case 74:this.api.zA()&&(this.api.startSeekCsiAction(),this.T?this.api.V("enable_key_press_seek_logging")?(M=Ha(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.T.rP(-1,10,M)):this.T.rP(-1,10):o4(this.xf,{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),M=!0);break;case 76:this.api.zA()&&(this.api.startSeekCsiAction(),this.T?this.api.V("enable_key_press_seek_logging")?(M=Ha(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.T.rP(1,10,M)):this.T.rP(1,10):o4(this.xf,{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),M=!0);break;case 37:this.api.zA()&&(this.api.startSeekCsiAction(),V?(V=k1z(G,this.api.getCurrentTime()*1E3),V!==-1&&this.T!=null&&(this.T.UN(-1,G[V].title),this.api.seekTo(G[V].startTime/1E3,void 0,void 0,void 0,53),M=!0)):(this.T?this.api.V("enable_key_press_seek_logging")?(M=Ha(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.T.rP(-1,5,M)):this.T.rP(-1,5):o4(this.xf,{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),M=!0));break;case 39:this.api.zA()&&(this.api.startSeekCsiAction(),V?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(V=BvP(G,this.api.getCurrentTime()*1E3),V!==-1&&this.T!=null&&(this.T.UN(1,G[V].title),this.api.seekTo(G[V].startTime/1E3,void 0,void 0,void 0,52),M=!0)):(this.T!=null?this.api.V("enable_key_press_seek_logging")?(M=Ha(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.T.rP(1,5,M)):this.T.rP(1, 5):o4(this.xf,{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),M=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),xS(this.xf,this.api.getVolume(),!1)):(this.api.mute(),xS(this.xf,0,!0));M=!0;break;case 32:M=this.api.V("web_speedmaster_spacebar_control")?!this.api.Y().AM:this.zC(A);break;case 75:M=this.zC(A);break;case 190:l?d.enableSpeedOptions&&Eh3(this)&&(M=this.api.getPlaybackRate(),this.api.setPlaybackRate(M+.25,!0),J3z(this.xf,!1),M=!0):this.api.zA()&&(this.step(1),M=!0);break;case 188:l? d.enableSpeedOptions&&Eh3(this)&&(M=this.api.getPlaybackRate(),this.api.setPlaybackRate(M-.25,!0),J3z(this.xf,!0),M=!0):this.api.zA()&&(this.step(-1),M=!0);break;case 70:GP3(this.api)&&(this.api.toggleFullscreen().catch(function(){}),M=!0); break;case 27:A?(this.progressBar.aN(),M=!0):this.C()&&(M=!0)}if(d.controlsType!=="3")switch(a){case 67:g.NB(this.api.iZ())&&(d=this.api.getOption("captions","track"),this.api.toggleSubtitles(),BA7(this.xf,!d||d&&!d.displayName),M=!0);break;case 79:bY(this,"textOpacity");break;case 87:bY(this,"windowOpacity");break;case 187:case 61:bY(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:bY(this,"fontSizeIncrement",!0,!0)}var p;l||m||T||(a>=48&&a<=57?p=a-48:a>=96&&a<=105&&(p=a-96));p!=null&&this.api.zA()&& (this.api.startSeekCsiAction(),d=this.api.getProgressState(),this.api.seekTo(p/10*(d.seekableEnd-d.seekableStart)+d.seekableStart,void 0,void 0,void 0,81),M=!0);M&&this.mA.c5()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:l,ctrlKey:m,altKey:T,metaKey:y,key:R,code:H,repeat:b},this.Z);return M}; g.Z.step=function(a){this.api.zA();if(this.api.getPlayerStateObject().isPaused()){var l=g.B(this.api.getVideoData()).L;l&&(l=l.video)&&this.api.seekBy(a/(l.fps||30),void 0,void 0,a>0?77:78)}}; g.Z.zC=function(a){if(!this.api.Y().AM){var l;var m,T=(l=this.api.getVideoData())==null?void 0:(m=l.getPlayerResponse())==null?void 0:m.playabilityStatus;if(T){var y;l=((y=g.I(T.miniplayer,km5))==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else l=!1;l&&this.api.Pz("onExpandMiniplayer");a?this.progressBar.Gw():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.xf.pP(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.Z.sL=function(){g.Tw(this.j);g.BT.prototype.sL.call(this)};g.W(g.go,g.x);g.go.prototype.tX=l7(11); g.go.prototype.k8=function(){var a=this.D.Y(),l=a.Z||this.D.V("web_player_hide_overflow_button_if_empty_menu")&&this.Er.isEmpty();a=g.vS(a)&&g.vi(this.D)&&g.u(this.D.getPlayerStateObject(),128);var m=this.D.getPlayerSize();this.visible=this.D.GA()&&!a&&m.width>=240&&!g.Tl(g.B(this.D.getVideoData()))&&!l&&!this.T&&!this.D.isEmbedsShortsMode();g.AM(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.D.n7();this.D.logVisibility(this.element,this.visible&&this.K)}; g.go.prototype.kX=function(a){g.x.prototype.kX.call(this,a);this.D.logVisibility(this.element,this.visible&&a)}; g.go.prototype.sL=function(){g.x.prototype.sL.call(this);g.dK(this.element,"ytp-overflow-button-visible")};g.W(ohH,g.Cq);g.Z=ohH.prototype;g.Z.Ar=function(a){a=OC(a);g.qw(this.element,a)&&(g.qw(this.T,a)||g.qw(this.closeButton,a)||op(this))}; g.Z.KE=function(){g.Cq.prototype.KE.call(this);this.D.TX(this.element)}; g.Z.show=function(){this.I0&&this.D.publish("OVERFLOW_PANEL_OPENED");g.Cq.prototype.show.call(this);this.element.setAttribute("aria-modal","true");D1P(this,!0)}; g.Z.hide=function(){g.Cq.prototype.hide.call(this);this.element.removeAttribute("aria-modal");D1P(this,!1)}; g.Z.onFullscreenToggled=function(a){!a&&this.qg()&&op(this)}; g.Z.isEmpty=function(){return this.actionButtons.length===0}; g.Z.focus=function(){for(var a=g.c(this.actionButtons),l=a.next();!l.done;l=a.next())if(l=l.value,l.I0){l.focus();break}};g.W(uw3,g.x);uw3.prototype.onClick=function(a){g.bs(a,this.api)&&this.api.playVideoAt(this.index)};g.W(XMz,g.Cq);g.Z=XMz.prototype;g.Z.show=function(){g.Cq.prototype.show.call(this);this.T.W(this.api,"videodatachange",this.Lw);this.T.W(this.api,"onPlaylistUpdate",this.Lw);this.Lw()}; g.Z.hide=function(){g.Cq.prototype.hide.call(this);g.$H(this.T);this.updatePlaylist(null)}; g.Z.Lw=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Y().Z&&(this.OL("ytp-playlist-menu-title-name").removeAttribute("href"),this.Z&&(this.DT(this.Z),this.Z=null))}; g.Z.CO=function(){var a=this.playlist,l=a.author,m=l?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",T={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};l&&(T.AUTHOR=l);this.update({title:a.title,subtitle:g.ph(m,T),playlisturl:this.api.getVideoUrl(!0)});l=a.L;if(l===this.j)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[a.index];else{m=g.c(this.playlistData);for(T=m.next();!T.done;T=m.next())T.value.dispose(); m=a.getLength();this.playlistData=[];for(T=0;T=this.L&&!a.Z&&!l.isAd()&&!this.api.isEmbedsShortsMode()}else a=!1;this.visible=a;this.zx(this.visible);g.AM(this.element,"ytp-search-button-visible",this.visible);g.AM(this.element,"ytp-show-search-title",!this.api.GA());this.api.logVisibility(this.element,this.visible&&this.K)}; A4.prototype.kX=function(a){g.x.prototype.kX.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.W(Pa,g.x); Pa.prototype.trigger=function(a,l,m,T){this.show();if(this.j&&a!==this.j){var y=1;this.L&&(y=bkz(this));T7H(this,y,!1);qHR(this)}this.j=a;this.Z=this.j===-1?this.J:this.N;a="";l?(this.B+=l,a=g.O6(this.B)):this.B=0;this.updateValue(this.j===-1?"durationBack":"durationForward",a);if(this.T==="hidden"||this.T==="fading-out")l=0,this.T==="fading-out"&&(l=bkz(this),Hkd(this)),y1t(this,l),this.T!=="fading-out"&&Rs7(this,this.Z.querySelector(".ytp-seek-overlay-arrow-persistent")),this.T="fading-in";else if(this.T=== "fading-in"||this.T==="lingering")l=this.Z.querySelector(".ytp-seek-overlay-duration"),a=g.PU(this.D.Y().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,l.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+a+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),Hkd(this),this.T==="lingering"&&(this.C.stop(),this.C.start());this.Ij=(0,g.E)();m&&gdP(this,m,T)}; Pa.prototype.M3=function(a,l,m,T){this.trigger(a,T)}; Pa.prototype.rP=function(a,l,m){this.trigger(a,l);m&&(a=a===-1?this.N.visualElement:this.J.visualElement,m={seekData:m},(l=g.KU())&&g.me(yf)(void 0,l,a,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",m,void 0))}; Pa.prototype.UN=function(a,l,m){this.trigger(a,void 0,l,m)};g.W(g.GQ,g.x);g.Z=g.GQ.prototype;g.Z.H5=l7(8); g.Z.onClick=function(){var a=this,l=this.api.Y(),m=g.B(this.api.getVideoData(this.api.getPresentingPlayerType())),T=this.api.getPlaylistId();l=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):l.getVideoUrl(m.videoId,T,void 0,!0);if(navigator.share)try{var y=navigator.share({title:m.title,url:l});y instanceof Promise&&y.catch(function(R){ik5(a,R)})}catch(R){R instanceof Error&&ik5(this,R)}else this.T.RR(),op(this.Z,this.element,!1); this.api.logClick(this.element)}; g.Z.k8=function(){var a=this.api.Y(),l=this.api.isEmbedsShortsMode();g.AM(this.element,"ytp-show-share-title",g.vS(a)&&!l);this.T.hp()&&l?(a=(this.api.cz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.nA(this.element,"right",a+"px")):l&&g.nA(this.element,"right","0px");this.updateValue("icon",{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{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=MaQ(this);g.AM(this.element,"ytp-share-button-visible",this.visible);this.zx(this.visible);this.tooltip.n7();this.api.logVisibility(this.element,MaQ(this)&&this.K)}; g.Z.kX=function(a){g.x.prototype.kX.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; g.Z.sL=function(){g.x.prototype.sL.call(this);g.dK(this.element,"ytp-share-button-visible")};g.W(jBz,g.Cq);g.Z=jBz.prototype;g.Z.Se=function(a){a=OC(a);g.qw(this.C,a)||g.qw(this.closeButton,a)||op(this)}; g.Z.KE=function(){g.Cq.prototype.KE.call(this);this.tooltip.TX(this.element);this.api.logVisibility(this.T,!1);for(var a=g.c(this.Z),l=a.next();!l.done;l=a.next())l=l.value,this.api.hasVe(l.element)&&this.api.logVisibility(l.element,!1)}; g.Z.show=function(){var a=this.I0;g.Cq.prototype.show.call(this);this.k8();a||this.api.Pz("onSharePanelOpened")}; g.Z.aKt=function(){this.I0&&this.k8()}; g.Z.k8=function(){var a=this;g.M$(this.element,"ytp-share-panel-loading");g.dK(this.element,"ytp-share-panel-fail");var l=g.B(this.api.getVideoData()),m=this.api.getPlaylistId()&&this.j.checked;l.getSharePanelCommand&&Yb(g.B(this.api.kd()),l.getSharePanelCommand,{includeListId:m}).then(function(T){a.FO()||(g.dK(a.element,"ytp-share-panel-loading"),GAb(a,T))}); l=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",l);this.updateValue("linkText",l);this.updateValue("shareLinkWithUrl",g.ph("Compartir enlace: $URL",{URL:l}));is(this.T);this.api.logVisibility(this.T,!0)}; g.Z.onFullscreenToggled=function(a){!a&&this.qg()&&op(this)}; g.Z.focus=function(){this.T.focus()}; g.Z.sL=function(){g.Cq.prototype.sL.call(this);A1R(this)};g.W(ZkH,Lz);g.Z=ZkH.prototype;g.Z.sL=function(){QBw(this);Lz.prototype.sL.call(this)}; g.Z.Kc=function(a){a.target!==this.dismissButton.element&&(this.g4(!1),this.D.Pz("innertubeCommand",this.onClickCommand))}; g.Z.HB=function(){this.Mj=!0;this.g4(!0);this.tV()}; g.Z.uUj=function(a){this.B=a;this.tV()}; g.Z.onVideoDataChange=function(a,l){if(a=!!l.videoId&&this.videoId!==l.videoId)this.videoId=l.videoId,this.Mj=!1,this.jt=!0,this.J=this.lT=!1,QBw(this),N7b(this,!1),this.L=this.T=!1,p9(this),Wmb(this);if(a||!l.videoId)this.Ij=this.j=!1;var m,T;if(l==null?0:(m=l.getPlayerResponse())==null?0:(T=m.videoDetails)==null?0:T.isLiveContent)this.aY(!1);else{var y,R,H;l=g.I((y=l.getWatchNextResponse())==null?void 0:(R=y.playerOverlays)==null?void 0:(H=R.playerOverlayRenderer)==null?void 0:H.productsInVideoOverlayRenderer, KnD);this.B=this.enabled=!1;if(l){if(y=l==null?void 0:l.featuredProductsEntityKey){R=g.RY.getState().entities;var b;if((b=T7(R,"featuredProductsEntity",y))==null?0:b.productsData){this.aY(!1);return}}this.enabled=!0;if(!this.j){var M;b=(M=l.badgeInteractionLogging)==null?void 0:M.trackingParams;(this.j=!!b)&&this.D.setTrackingParams(this.badge.element,b||null)}if(!this.Ij){var d;if(this.Ij=!((d=l.dismissButton)==null||!d.trackingParams)){var A;this.D.setTrackingParams(this.dismissButton.element,((A= l.dismissButton)==null?void 0:A.trackingParams)||null)}}l.isContentForward&&(M=l.productsData,N7b(this,!0),Wmb(this),M=Lm3(this,M),d=[],M.length>0&&d.push(M[0]),M.length>1&&(A=new g.x({U:"div",S:"ytp-suggested-action-more-products-icon"}),g.w(this,A),d.push(A),d.push.apply(d,g.F(M.slice(1)))),this.C=new g.x({U:"div",X:d,S:"ytp-suggested-action-content-forward-container"}),g.w(this,this.C),this.Kx.element.append(this.C.element));this.text=g.Lj(l.text);var P;if(M=(P=l.dismissButton)==null?void 0:P.a11yLabel)this.tM= g.Lj(M);this.onClickCommand=l.onClickCommand;this.timing=l.timing;this.d7()}dRp(this);ce(this);this.tV()}}; g.Z.Fr=function(){return!this.B&&this.enabled&&!this.Mj&&!this.D.GA()&&!this.ZR&&(this.J||this.jt)}; g.Z.US=function(a){Lz.prototype.US.call(this,a);if(this.T||this.L)this.timing&&Vj(this.timing.preview)&&(this.T=!1,p9(this),this.L=!1,p9(this),this.D.FJ("shopping_overlay_preview_collapsed"),this.D.FJ("shopping_overlay_preview_expanded"),a=Zi(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Vj(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.D.FJ("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.D.d7([a])), this.lT=!0,ce(this);p9(this)}; g.Z.aY=function(a){(this.J=a)?(We(this),ce(this,!1)):(QBw(this),this.AM.start());this.tV()}; g.Z.d7=function(a){var l=this.timing;a=(a===void 0?0:a)+this.D.getCurrentTime();var m=[],T=l.visible,y=l.preview;l=l.expanded;Vj(T)&&(Va7(T,a),m.push(Zi(T.startSec,T.endSec,"shopping_overlay_visible")));Vj(y)&&(Va7(y,a),T=y.startSec+1,m.push(Zi(y.startSec,T,"shopping_overlay_preview_collapsed")),m.push(Zi(T,y.endSec,"shopping_overlay_preview_expanded")));Vj(l)&&(Va7(l,a),m.push(Zi(l.startSec,l.endSec,"shopping_overlay_expanded")));this.D.d7(m)}; g.Z.tV=function(){Lz.prototype.tV.call(this);this.D.getRootNode()&&g.AM(this.D.getRootNode(),"ytp-shopping-pill-shown",this.Fr())};g.W(Fmb,g.x); Fmb.prototype.k8=function(){var a=this.api.Y();this.zx(g.vS(a)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.I0);var l=g.B(this.api.getVideoData()),m=!1;this.api.getPresentingPlayerType()===2?m=!!l.videoId&&!!l.isListed&&!!l.author&&!!l.yg&&!!l.profilePicture:g.vS(a)&&(m=!!l.videoId&&!!l.yg&&!!l.profilePicture&&!g.Tl(l)&&!a.Z&&!(a.B&&this.api.getPlayerSize().width<200));var T=l.profilePicture;a=g.vS(a)?l.expandedTitle:l.author;T=T=== void 0?"":T;a=a===void 0?"":a;m?(this.L!==T&&(this.T.style.backgroundImage="url("+T+")",this.L=T),this.updateValue("channelLogoLabel",g.ph("Foto de $CHANNEL_NAME",{CHANNEL_NAME:a})),g.M$(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.dK(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,m&&this.K);this.api.logVisibility(this.channelName,m&&this.K);this.subscribeButton&&(this.subscribeButton.channelId=l.r6);this.updateValue("expandedTitle",l.expandedTitle)};g.W(Wa,g.Cq);Wa.prototype.show=function(){g.Cq.prototype.show.call(this);this.T.start()}; Wa.prototype.hide=function(){g.Cq.prototype.hide.call(this);this.T.stop()}; Wa.prototype.xW=function(a,l){a==="dataloaded"&&((this.v1=l.v1,this.xN=l.xN,isNaN(this.v1)||isNaN(this.xN))?this.Z&&(this.D.FJ("intro"),this.D.removeEventListener(g.qm("intro"),this.B),this.D.removeEventListener(g.bl("intro"),this.C),this.D.removeEventListener("onShowControls",this.j),this.hide(),this.Z=!1):(this.D.addEventListener(g.qm("intro"),this.B),this.D.addEventListener(g.bl("intro"),this.C),this.D.addEventListener("onShowControls",this.j),a=new g.Rq(this.v1,this.xN,{priority:9,namespace:"intro"}), this.D.d7([a]),this.Z=!0))};g.W(ca,g.x);ca.prototype.onClick=function(){this.D.Ee()}; ca.prototype.k8=function(){var a=!0;g.vS(this.D.Y())&&(a=a&&this.D.cz().getPlayerSize().width>=480);this.zx(a);this.updateValue("icon",this.D.rL()?{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,G:{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"}}]}: {U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.W(Ok7,g.x);Ok7.prototype.sL=function(){this.T=null;g.x.prototype.sL.call(this)};g.W(L9,g.x);L9.prototype.onClick=function(){this.D.Pz("innertubeCommand",this.L)}; L9.prototype.N=function(a){a!==this.C&&(this.update({title:a,ariaLabel:a}),this.C=a);a?this.show():this.hide()}; L9.prototype.J=function(){this.T.disabled=this.L==null;g.AM(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.ex()};g.W(NR,L9);NR.prototype.onClickCommand=function(a){g.I(a,yZ)&&this.ex()}; NR.prototype.updateVideoData=function(a,l){var m,T,y;a=g.I((m=l.getWatchNextResponse())==null?void 0:(T=m.playerOverlays)==null?void 0:(y=T.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,OS);m=g.I(a==null?void 0:a.playerBarActionButton,g.nl);this.D.V("web_player_updated_entrypoint")&&(this.B=hv(m==null?void 0:m.text));this.L=m==null?void 0:m.command;L9.prototype.J.call(this)}; NR.prototype.ex=function(){var a=this.D.V("web_player_updated_entrypoint")?this.B:"",l=this.j.T,m,T=((m=this.D.getLoopRange())==null?void 0:m.type)==="clips";if(l.length>1&&!T){a=this.D.getProgressState().current*1E3;m=yj(l,a);a=l[m].title||"Cap\u00edtulos";if(m!==this.currentIndex||this.Z)this.D.Pz("innertubeCommand",l[m].onActiveCommand),this.currentIndex=m;this.Z=!1}else this.Z=!0;L9.prototype.N.call(this,a)};g.W(Qj,g.Z7);Qj.prototype.L=function(){var a;(a=this.element.parentElement)==null||a.classList.contains("ytp-right-controls-left");(this.T=!this.T)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Qj.prototype.isExpanded=function(){return this.T};g.W(t4,g.x);t4.prototype.Z=function(a){g.u(a.state,32)?zsR(this,this.api.Zv()):this.I0&&(g.u(a.state,16)||g.u(a.state,1))||this.fade.hide()}; t4.prototype.Sq=function(){var a=this.api.getPlayerStateObject();(g.u(a,32)||g.u(a,16))&&vdH(this)}; t4.prototype.j=function(){this.frameIndex=NaN;vdH(this)}; t4.prototype.hide=function(){this.T&&zsR(this,null);g.x.prototype.hide.call(this)};g.W($7d,g.x);g.Z=$7d.prototype;g.Z.onClick=function(){var a=this;if(this.D.Y().vF||this.D.Y().B){this.D.logClick(this.element);try{this.D.toggleFullscreen().catch(function(l){a.mI(l)})}catch(l){this.mI(l)}}else op(this.message,this.element,!0)}; g.Z.mI=function(a){String(a).includes("fullscreen error")?g.nU(a):g.kt(a);this.SP()}; g.Z.SP=function(){this.disable();this.message.fR(this.element,!0)}; g.Z.jw=function(){LZ()===this.D.getRootNode()?this.Z.start():(this.Z.stop(),this.message&&this.message.hide())}; g.Z.I6=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=window.screen.width*.9,l=window.screen.height*.9,m=Math.max(window.outerWidth,window.innerWidth),T=Math.max(window.outerHeight,window.innerHeight);if(m>T!==a>l){var y=m;m=T;T=y}a>m&&l>T&&this.SP()}}; g.Z.disable=function(){var a=this;if(!this.message){var l=(ZX(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Cq(this.D,{U:"div",uT:["ytp-popup","ytp-generic-popup"],G:{role:"alert",tabindex:"0"}, X:[l[0],{U:"a",G:{href:"https://support.google.com/youtube/answer/6276924",target:this.D.Y().N},Lx:l[2]},l[4]]},100,!0);this.message.hide();g.w(this,this.message);this.message.subscribe("show",function(m){a.L.Jv(a.message,m)}); g.fq(this.D,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.Z.k8=function(){var a=GP3(this.D),l=this.D.Y().B&&this.D.getPlayerSize().width<250;this.zx(a&&!l);var m;((m=this.D.Y())==null?0:m.V("embeds_use_parent_visibility_in_ve_logging"))?this.D.logVisibility(this.element,this.I0&&this.K):this.D.logVisibility(this.element,this.I0)}; g.Z.tE=function(a){if(a){var l={U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"g",S:"ytp-fullscreen-button-corner-2",X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{U:"g",S:"ytp-fullscreen-button-corner-3",X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{U:"g",S:"ytp-fullscreen-button-corner-0",X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{U:"g", S:"ytp-fullscreen-button-corner-1",X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.F9(this.D,"Salir del modo de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"});document.activeElement===this.element&&this.D.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(m){g.nU(m)})}else l={U:"svg", G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"g",S:"ytp-fullscreen-button-corner-0",X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{U:"g",S:"ytp-fullscreen-button-corner-1",X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{U:"g",S:"ytp-fullscreen-button-corner-2",X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{U:"g",S:"ytp-fullscreen-button-corner-3", X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.F9(this.D,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});a=this.message?null:a;this.update({title:a,icon:l});this.L.b0().n7()}; g.Z.sL=function(){this.message||((0,this.T)(),this.T=null);g.x.prototype.sL.call(this)}; g.Z.kX=function(a){g.x.prototype.kX.call(this,a);var l;((l=this.D.Y())==null?0:l.V("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.I0&&a)};g.W(eB,g.x);eB.prototype.onClick=function(){this.D.logClick(this.element);this.D.seekBy(this.T,!0);var a=this.T>0?1:-1,l=Math.abs(this.T),m;(m=this.D.b$().BS)&&m.rP(a,l);this.L.isActive()?this.Z=!0:(a=["ytp-jump-spin"],this.T<0&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.F(a)),g.l0(this.L))};g.W(FJ,L9);FJ.prototype.onClickCommand=function(a){g.I(a,hMF)&&this.ex()}; FJ.prototype.updateVideoData=function(){var a,l;this.L=(a=SHd(this))==null?void 0:(l=a.onTap)==null?void 0:l.innertubeCommand;L9.prototype.J.call(this)}; FJ.prototype.ex=function(){var a="",l=this.j.B,m,T=(m=SHd(this))==null?void 0:m.headerTitle;m=T?g.Lj(T):"";var y;T=((y=this.D.getLoopRange())==null?void 0:y.type)==="clips";l.length>1&&!T&&(a=this.D.getProgressState().current*1E3,y=J6w(l,a),a=y!=null?l[y].title:m,y!=null&&y!==this.currentIndex&&(this.D.Pz("innertubeCommand",l[y].onActiveCommand),this.currentIndex=y));L9.prototype.N.call(this,a)};g.W(h4,g.x);h4.prototype.onClick=function(){this.D.Pz("onCollapseMiniplayer");this.D.logClick(this.element)}; h4.prototype.k8=function(){this.visible=!this.D.isFullscreen();this.zx(this.visible);this.D.logVisibility(this.element,this.visible&&this.K)}; h4.prototype.kX=function(a){g.x.prototype.kX.call(this,a);this.D.logVisibility(this.element,this.visible&&a)};g.W(ON,g.x);ON.prototype.init=function(){this.updateValue("minvalue",this.C);this.updateValue("maxvalue",this.B);this.updateValue("stepvalue",this.J);this.updateValue("slidervalue",this.T);fJ7(this,this.T)}; ON.prototype.j=function(){K9(this,Number(this.L.value));this.L.focus()}; ON.prototype.Z=function(a){if(!a.defaultPrevented){switch(a.code){case "ArrowDown":a=-this.J;break;case "ArrowUp":a=this.J;break;default:return}K9(this,Math.min(this.B,Math.max(Number((this.T+a).toFixed(2)),this.C)))}};g.W(zQ,ON);zQ.prototype.onVolumeChange=function(a){if(this.N)this.N=!1;else{var l=a.volume;l===0||a.muted?K9(this,0):K9(this,l)}}; zQ.prototype.j=function(){ON.prototype.j.call(this);this.Ij(this.T)}; zQ.prototype.Z=function(a){ON.prototype.Z.call(this,a);this.Ij(this.T)}; zQ.prototype.lT=function(a,l){this.N=!0;a===0||l?this.D.mute():(this.D.isMuted()&&this.D.unMute(),this.D.setVolume(a))};g.W(J15,g.x);g.W($m,g.x);g.Z=$m.prototype;g.Z.zg=function(a){this.visible=a.width>=300||this.Cx;this.zx(this.visible);this.D.logVisibility(this.element,this.visible&&this.K)}; g.Z.HR=function(){this.D.Y().Kx?this.D.isMuted()?this.D.unMute():this.D.mute():op(this.message,this.element,!0);this.D.logClick(this.element)}; g.Z.mIu=function(a){if(this.D.Y().Kx&&this.T)if(a.target===this.Z){var l;if(!this.D.EH()||((l=this.T)==null?0:l.isVisible))this.HR();else{var m;(m=this.T)!=null&&va(m,!0)}}else{var T;(T=this.T)!=null&&va(T,!0)}else this.HR()}; g.Z.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.Z.setVolume=function(a,l){var m=this,T=l?0:a/100,y=this.D.Y();a=T===0?1:a>50?1:0;if(this.J!==a){var R=this.qj;isNaN(R)?wtH(this,a):UR5(this.Kx,function(b){wtH(m,R+(m.J-R)*b)},250); this.J=a}T=T===0?1:0;if(this.B!==T){var H=this.lT;isNaN(H)?IJ7(this,T):UR5(this.jt,function(b){IJ7(m,H+(m.B-H)*b)},250); this.B=T}y.Kx&&(y=g.F9(this.D,"Silenciar","m"),T=g.F9(this.D,"Activar sonido","m"),this.updateValue("title",l?T:y),this.update({"data-title-no-tooltip":l?"Activar sonido":"Silenciar"}),this.tooltip.n7())}; g.Z.kX=function(a){g.x.prototype.kX.call(this,a);this.D.logVisibility(this.element,this.visible&&a)}; var kAw=["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"],nd3=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.W(g.sN,g.x);g.Z=g.sN.prototype;g.Z.onStateChange=function(a){this.Rf(a.state);var l;((l=this.D.Y())==null?0:l.V("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.I0&&this.K)}; g.Z.Rf=function(a){var l=g.On(g.B(this.D.getVideoData())),m=!1;a.isOrWillBePlaying()?a=l?4:2:g.u(a,2)?(a=3,m=l):a=1;this.element.disabled=m;if(this.T!==a){l=null;switch(a){case 2:l=g.F9(this.D,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:l="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:l=g.F9(this.D,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:l="Detener reproducci\u00f3n en directo", this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n en directo"})}a===3?this.update({title:l,icon:Ca7(a)}):(this.update({title:l}),(l=Ca7(a))&&this.T&&this.T!==3?amw(this.transition,this.element,l):this.updateValue("icon",l));this.tooltip.n7();this.T=a}}; g.Z.onVideoDataChange=function(){g.AM(this.element,"ytp-play-button-playlist",g.vi(this.D))}; g.Z.zC=function(a){this.D.logClick(this.element);if(this.D.getPlayerStateObject().isOrWillBePlaying())this.D.pauseVideo();else{if(this.D.isMinimized()&&this.D.getPlayerStateObject().isCued()){var l={},m;if((m=this.D.getVideoData())==null?0:m.C)l.cttAuthInfo={token:this.D.getVideoData().C,videoId:this.D.getVideoData().videoId};o0("direct_playback",l);this.D.Rg().timerName="direct_playback"}this.D.playVideo()}this.D.isMinimized()&&(a==null?void 0:a.type)==="click"&&this.element.blur()}; g.Z.kX=function(a){g.x.prototype.kX.call(this,a);var l;((l=this.D.Y())==null?0:l.V("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.I0&&a)};g.W(g.SB,g.x);g.Z=g.SB.prototype;g.Z.onVideoDataChange=function(){od5(this);this.j&&(this.DT(this.j),this.j=null);this.videoData=this.D.getVideoData(1);if(this.playlist=this.D.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.W(this.D,"progresssync",this.W_);this.Z=x7P(this);Edz(this);this.sX(this.D.cz().getPlayerSize())}; g.Z.sX=function(a){a=a===void 0?this.D.cz().getPlayerSize():a;var l,m=((l=this.D.getLoopRange())==null?void 0:l.type)==="clips";a=(g.vi(this.D)||this.T&&g.JB(this.D)&&!this.D.V("web_hide_next_button")||D7d(this))&&!m&&(this.T||a.width>=400);this.zx(a);this.D.logVisibility(this.element,a)}; g.Z.onClick=function(a){this.D.logClick(this.element);var l=!0;this.B?l=g.bs(a,this.D):a.preventDefault();l&&(this.T&&this.D.getPresentingPlayerType()===5?this.D.publish("ytoprerollinternstitialnext"):this.T?(ie(this.D.Rg()),this.D.publish("playlistnextbuttonclicked",this.element),this.D.nextVideo(!0)):this.Z?this.D.seekTo(0):(ie(this.D.Rg()),this.D.publish("playlistprevbuttonclicked",this.element),this.D.previousVideo(!0)))}; g.Z.W_=function(){var a=x7P(this);a!==this.Z&&(this.Z=a,Edz(this))}; g.Z.sL=function(){this.L&&(this.L(),this.L=null);od5(this);g.x.prototype.sL.call(this)};g.W(Xt7,g.x);g.Z=Xt7.prototype;g.Z.fg=function(a){this.jj(a.pageX);this.Zy(a.pageX+a.deltaX);YHd(this)}; g.Z.jj=function(a){this.Ij=a-this.Cx}; g.Z.Zy=function(a){a-=this.Cx;!isNaN(this.Ij)&&this.thumbnails.length>0&&(this.N=a-this.Ij,this.thumbnails.length>0&&this.N!==0&&(this.Z=this.J+this.N,a=m_z(this,this.Z),this.Z<=this.T/2&&this.Z>=luR(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.nA(this.jt,"transform","translateX("+(this.Z-this.T/2)+"px)"),uQt(this,a)):this.Z=this.J))}; g.Z.Jr=function(){this.lT&&(this.lT.kp=!0);var a=(0,g.E)()-this.St<300;if(Math.abs(this.N)<5&&!a){this.St=(0,g.E)();a=this.Ij+this.N;var l=this.T/2-a;this.jj(a);this.Zy(a+l);YHd(this);this.api.logClick(this.C)}YHd(this)}; g.Z.pg=function(){f9(this,this.api.getCurrentTime())}; g.Z.play=function(a){this.api.seekTo(m_z(this,this.Z),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)}; g.Z.onExit=function(a){this.api.seekTo(this.AM,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)}; g.Z.Mt=function(a,l){this.Cx=a;this.T=l;f9(this,this.api.getCurrentTime())}; g.Z.enable=function(){this.isEnabled||(this.isEnabled=!0,this.AM=this.api.getCurrentTime(),uQt(this,this.AM),g.AM(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Kx=this.W(this.element,"wheel",this.fg),this.logVisibility(this.isEnabled))}; g.Z.disable=function(){this.isEnabled=!1;this.hide();g.AM(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Kx&&this.DT(this.Kx);this.logVisibility(this.isEnabled)}; g.Z.reset=function(){this.disable();this.j=[];this.hM=!1}; g.Z.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.C,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)}; g.Z.sL=function(){for(;this.L.length;){var a=void 0;(a=this.L.pop())==null||a.dispose()}g.x.prototype.sL.call(this)}; g.W(U7b,g.x);g.W(r1w,g.x);g.W(TLQ,g.x);g.W(J4,g.x);J4.prototype.hN=function(a){return a==="PLAY_PROGRESS"?this.J:a==="LOAD_PROGRESS"?this.B:a==="LIVE_BUFFER"?this.C:this.Z};H4P.prototype.update=function(a,l,m,T){m=m===void 0?0:m;this.width=l;this.j=m;this.T=l-m-(T===void 0?0:T);this.position=g.Km(a,m,m+this.T);this.Z=this.position-m;this.L=this.Z/this.T};g.W(qTb,g.x);g.W(g.n9,g.Z7);g.Z=g.n9.prototype; g.Z.gC=function(){var a=!1,l=this.api.getVideoData();if(!l)return a;this.api.FJ("timedMarkerCueRange");MWQ(this);for(var m=g.c(l.wb),T=m.next();!T.done;T=m.next()){T=T.value;var y=void 0,R=(y=this.tM[T])==null?void 0:y.markerType;y=void 0;var H=(y=this.tM[T])==null?void 0:y.markers;if(!H)break;if(R==="MARKER_TYPE_TIMESTAMPS"){a=g.c(H);for(R=a.next();!R.done;R=a.next()){y=R.value;R=new qTb;H=void 0;R.title=((H=y.title)==null?void 0:H.simpleText)||"";R.timeRangeStartMillis=Number(y.startMillis);R.T= Number(y.durationMillis);var b=H=void 0;R.onActiveCommand=(b=(H=y.onActive)==null?void 0:H.innertubeCommand)!=null?b:void 0;Gkd(this,R)}VW7(this,this.B);a=this.B;R=this.Xe;y=[];H=null;for(b=0;bM&&(H.end=M);M=nh7(M,M+A);y.push(M);H=M;R[M.id]=a[b].onActiveCommand}}this.api.d7(y);this.kA=this.tM[T];a=!0}else if(R==="MARKER_TYPE_HEATMAP"){T=this.tM[T];A=d=y=M=b=H=void 0;if(T&& T.markers){R=(y=(A=T.markersMetadata)==null?void 0:(d=A.heatmapMetadata)==null?void 0:d.minHeightDp)!=null?y:0;y=(H=(M=T.markersMetadata)==null?void 0:(b=M.heatmapMetadata)==null?void 0:b.maxHeightDp)!=null?H:60;H=this.T.length;b=null;for(M=0;M=A&&p<=P&&d.push(V)}y>0&&(this.lT.style.height= y+"px");A=this.j[M];P=d;V=R;var L=y,N=M===0;N=N===void 0?!1:N;yTl(A,L);G=P;p=A.L;N=N===void 0?!1:N;var e=1E3/G.length,t=[];t.push({x:0,y:100});for(var v=0;v0&&(b=d[d.length-1])}g.wo(this)}y=void 0;R=[];if(T=(y=T.markersDecoration)==null?void 0:y.timedMarkerDecorations)for(T=g.c(T),y=T.next();!y.done;y=T.next())y=y.value,M=b=H=void 0,R.push({visibleTimeRangeStartMillis:(H=y.visibleTimeRangeStartMillis)!=null?H:-1,visibleTimeRangeEndMillis:(b=y.visibleTimeRangeEndMillis)!=null?b:-1,decorationTimeMillis:(M=y.decorationTimeMillis)!= null?M:NaN,label:y.label?g.Lj(y.label):""});T=R;this.heatMarkersDecorations=T}}l.GP=this.B;g.AM(this.element,"ytp-timed-markers-enabled",a);return a}; g.Z.Mt=function(){g.wo(this);EN(this);VW7(this,this.B);if(this.L){var a=g.ui(this.element).x||0;this.L.Mt(a,this.C)}(a=this.api.getVideoData())&&!this.api.V("themed_progress_bar_refresh_on_resize_killswitch")&&h4p(this,a)}; g.Z.onClickCommand=function(a){if(a=g.I(a,yZ)){var l=a.key;a.isVisible&&l&&cTl(this,l)}}; g.Z.qGt=function(a){this.api.Pz("innertubeCommand",this.Xe[a.id])}; g.Z.ex=function(){EN(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.qz()}; g.Z.RB=function(a){if(!a.defaultPrevented){var l=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);l=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);l=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);l=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);l=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&Ym(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);l=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&Ym(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),l=!0}l&&a.preventDefault()}}; g.Z.xW=function(a,l){this.updateVideoData(l,a==="newdata")}; g.Z.R_=function(){this.xW("newdata",g.B(this.api.getVideoData()))}; g.Z.updateVideoData=function(a,l){l=l===void 0?!1:l;var m=!!a&&a.Q1();m&&(Un(a)||e4Q(this)?this.TW=!1:this.TW=a.allowLiveDvr,g.AM(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!Un(a))),this.api.V("enable_custom_playhead_parsing")&&h4p(this,a));wow(this,this.api.zA());if(l){if(m){l=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=l;UN(this);for(Di(this,this.Ij,this.lZ);this.j.length>0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.uZ={};var T;(T=this.L)==null||T.reset(); Tn(this);g.AM(this.api.getRootNode(),"ytp-fine-scrubbing-exp",km(this))}else this.qz();this.Ur()}if(a){var y;T=((y=this.o0)==null?void 0:y.type)==="clips";if(y=!a.isLivePlayback){y=g.B(this.api.getVideoData());l=g.K7(y);m=d_3(y);var R;y=l!=null||m!=null&&m.length>0||((R=y.oW)==null?void 0:R.length)>0}if(y&&!T){R=g.B(this.api.getVideoData());T=g.K7(R);y=!1;if(T==null?0:T.markersMap){y=g.B(this.api.getVideoData());var H;y.zL=((H=T.visibleOnLoad)==null?void 0:H.key)||y.zL;H=g.c(T.markersMap);for(T=H.next();!T.done;T= H.next())T=T.value,T.key&&T.value&&(this.uZ[T.key]=T.value,T.value.onChapterRepeat&&(y.pYz=T.value.onChapterRepeat));y.zL!=null&&cTl(this,y.zL);y=!0}var b;if(((b=R.oW)==null?void 0:b.length)>0){b=g.RY.getState().entities;H=g.c(R.oW);for(T=H.next();!T.done;T=H.next()){T=T.value;m=void 0;l=(m=T7(b,"macroMarkersListEntity",T))==null?void 0:m.markersList;var M=m=void 0;if(((m=l)==null?void 0:m.markerType)==="MARKER_TYPE_TIMESTAMPS"||((M=l)==null?void 0:M.markerType)==="MARKER_TYPE_HEATMAP")this.tM[T]= l}y=this.gC()||y}!y&&(b=d_3(R))&&(AT5(this,b),R.L7=this.T,jQH(this));O4d(this,null);a.hh&&this.j.length===0&&(a=a.hh,b=a.key,a.isVisible&&b&&cTl(this,b))}else b4P(this),MWQ(this)}EN(this)}; g.Z.Yc=function(a){this.J&&!g.u(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.J.cancel();var l;((l=this.L)==null?0:l.isEnabled)&&g.u(a.state,8)&&this.api.pauseVideo();a=this.api.getPresentingPlayerType()===2||!this.api.zA()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.AM(this.Sd,"ytp-hide-scrubber-button",a)}; g.Z.Gg=function(a){var l=!!this.o0!==!!a,m=this.o0;this.o0=a;O4d(this,m);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",pwd()),this.updateValue("clipendicon",pwd()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Msd()),this.updateValue("clipendicon",gTd()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")),l&&(this.updateVideoData(this.api.getVideoData(), !0),g.wo(this)),UN(this));Di(this,this.Ij,this.lZ)}; g.Z.eAz=function(a,l,m){var T=g.ui(this.element),y=C9(this).T,R=m?m.getAttribute("data-tooltip"):void 0,H=m?m.getAttribute("data-position"):void 0,b=m?m.getAttribute("data-offset-y"):void 0;b=b?Number(b):0;H&&(a=kf(this.Z,Number(m.getAttribute("data-position")),0)*y+g.ui(this.progressBar).x);this.vF.x=a-T.x;this.vF.y=l-T.y;a=C9(this);m=XJ(this,a);l=0;var M;if((M=this.api.getVideoData())==null?0:Un(M))(M=this.api.getProgressState().seekableEnd)&&m>M&&(m=M,a.position=kf(this.Z,M)*C9(this).T),l=this.Z.L; e4Q(this)&&(l=this.Z.L);M=R||g.O6(this.TW?m-this.Z.T:m-l);l=a.position+this.Or;m-=this.api.YX();var d;if((d=this.L)==null||!d.isEnabled)if(this.api.Zv()){if(this.T.length>1){d=uY(this,this.vF.x,!0);if(!this.o0)for(T=0;T1)for(T=0;T0)for(d=this.vF.x,T=g.c(this.B),y=T.next();!y.done;y=T.next())y=y.value,H=I2(this,y.timeRangeStartMillis/ (this.Z.T*1E3),C9(this)),g.AM(y.element,"ytp-timed-marker-hover",H<=d&&H+6>=d);T=this.tooltip.scale;d=this.api.V("delhi_modern_web_player")?67:45;b=(isNaN(b)?0:b)-d*T;this.api.V("web_key_moments_markers")?this.kA?(d=J6w(this.B,m*1E3),d=d!=null?this.B[d].title:""):(d=yj(this.T,m*1E3),d=this.T[d].title):(d=yj(this.T,m*1E3),d=this.T[d].title);d||(b+=16*T);this.tooltip.scale===.6&&(g.aX(this.api.Y())?(b=this.api.cz().getPlayerSize().height-225,b=d?b+110:b+110+16):b=d?110:126);T=yj(this.T,m*1E3);this.hM= KFw(this,m,T)?T:KFw(this,m,T+1)?T+1:-1;g.AM(this.api.getRootNode(),"ytp-progress-bar-snap",this.hM!==-1&&this.T.length>1);T=!1;y=g.c(this.heatMarkersDecorations);for(H=y.next();!H.done;H=y.next()){H=H.value;var A=m*1E3;A>=H.visibleTimeRangeStartMillis&&A<=H.visibleTimeRangeEndMillis&&(d=H.label,M=g.O6(H.decorationTimeMillis/1E3),T=!0)}this.xN!==T&&(this.xN=T,this.api.logVisibility(this.OQ,this.xN));g.AM(this.api.getRootNode(),"ytp-progress-bar-decoration",T);T=160*this.tooltip.scale*2;y=d.length* (this.N?8.55:5.7);y=y<=T?y:T;H=y<160*this.tooltip.scale;T=3;!H&&y/2>a.position&&(T=1);!H&&y/2>this.C-a.position&&(T=2);this.api.Y().B&&(b-=10);this.j.length&&this.j[0].Q1&&(b-=14*(this.N?2:1),this.AM||(this.AM=!0,this.api.logVisibility(this.lT,this.AM)));var P;if(km(this)&&(((P=this.L)==null?0:P.isEnabled)||this.wb>0)){var G;b-=((G=this.L)==null?0:G.isEnabled)?az(this):this.wb}P=void 0;km(this)&&!this.api.V("web_player_hide_fine_scrubbing_edu")&&(P="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas", this.Cx||(this.Cx=!0,this.api.logVisibility(this.p5,this.Cx)));this.tooltip.P8(l,m,M,!!R,b,d,T,P)}else this.tooltip.P8(l,m,M,!!R,b);g.M$(this.api.getRootNode(),"ytp-progress-bar-hover");tWQ(this)}; g.Z.CMT=function(){this.Ur();g.dK(this.api.getRootNode(),"ytp-progress-bar-hover");this.AM&&(this.AM=!1,this.api.logVisibility(this.lT,this.AM));this.Cx&&(this.Cx=!1,this.api.logVisibility(this.p5,this.Cx))}; g.Z.ovx=function(a,l){var m=g.ui(this.element);this.FU=a-m.x;km(this)&&this.L&&(this.L.hM?f9(this.L,this.api.getCurrentTime()):au7(this.L),this.L.show(),g.AM(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.L.isEnabled));this.Be&&(this.Be.dispose(),this.Be=null);this.mf=l;this.VX=this.api.getCurrentTime();this.T.length>1&&this.hM!==-1?this.api.seekTo(this.T[this.hM].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(XJ(this,C9(this)),!1,void 0,void 0,7);g.M$(this.element,"ytp-drag");(this.L7= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.Z.mNb=function(){if(km(this)&&this.L){var a=az(this);this.wb>=a*.5?(this.L.enable(),f9(this.L,this.api.getCurrentTime()),nsH(this,a)):Tn(this)}if(g.u(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var l;if((l=this.L)==null?0:l.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.hM!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&Ym(this,this.VX,this.T[this.hM].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.hM].startTime/1E3,void 0,void 0,void 0,7);else{a=XJ(this,C9(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&Ym(this,this.VX,a,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(a,void 0,void 0,void 0,7);l=g.c(this.heatMarkersDecorations);for(var m=l.next();!m.done;m=l.next())m=m.value,a*1E3>=m.visibleTimeRangeStartMillis&&a*1E3<=m.visibleTimeRangeEndMillis&& this.api.logClick(this.OQ)}g.dK(this.element,"ytp-drag");this.qj&&(this.jt.src=this.qj);this.L7&&!g.u(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.Z.KLz=function(a,l){var m=this,T=C9(this),y=XJ(this,T);this.api.V("enable_custom_playhead_parsing")&&!this.api.cz().iA&&(T.position>this.FU+2?this.Ug&&(this.jt.src=this.Ug):T.position1);this.zx(a&&this.D.cz().getPlayerSize().width>=400);this.D.logVisibility(this.element,this.I0);var l=1;a&&this.isActive()&&(l=2);if(this.T!==l){this.T=l;switch(l){case 1:this.updateValue("icon",{U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{U:"path",nE:!0,G:{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.q9R())}g.AM(this.element,"ytp-remote-button-active",this.isActive())}}; yq.prototype.L=function(){if(this.D.getOption("remote","quickCast"))this.D.setOption("remote","quickCast",!0);else{var a=this.Ob,l=this.element;if(a.qg())a.KE();else{a.initialize();a:{var m=g.c(a.GE.items);for(var T=m.next();!T.done;T=m.next())if(T=T.value,T.priority===1){m=T;break a}m=null}m&&(m.open(),a.fR(l));a.fR(l)}}this.D.logClick(this.element)};g.W(Rz,g.x);Rz.prototype.T=function(a){var l=this.D.Y(),m=400;this.D.V("web_player_small_hbp_settings_menu")&&l.C?m=300:l.B&&(m=200);a=this.L&&a.width>=m;this.zx(a);this.D.V("embeds_use_parent_visibility_in_ve_logging")?this.D.logVisibility(this.element,a&&this.K):this.D.logVisibility(this.element,a)}; Rz.prototype.Z=function(){if(this.Ob.I0)this.Ob.KE();else{var a=g.NB(this.D.iZ());a&&!a.loaded&&(a.N6("tracklist",{includeAsr:!0}).length||a.load());this.D.logClick(this.element);this.Ob.fR(this.element)}}; Rz.prototype.updateBadge=function(){var a=this.D.isHdr(),l=this.D.getPresentingPlayerType(),m=l!==2&&l!==3,T=g.S3(this.D),y=m&&!!g.s2(this.D.iZ());l=y&&T.displayMode===1;T=y&&T.displayMode===2;m=(y=l||T)||!m?null:this.D.getPlaybackQuality();g.AM(this.element,"ytp-hdr-quality-badge",a);g.AM(this.element,"ytp-hd-quality-badge",!a&&(m==="hd1080"||m==="hd1440"));g.AM(this.element,"ytp-4k-quality-badge",!a&&m==="hd2160");g.AM(this.element,"ytp-5k-quality-badge",!a&&m==="hd2880");g.AM(this.element,"ytp-8k-quality-badge", !a&&m==="highres");g.AM(this.element,"ytp-3d-badge-grey",!a&&y&&l);g.AM(this.element,"ytp-3d-badge",!a&&y&&T)};g.W(H4,HR);H4.prototype.isLoaded=function(){var a=g.OP(this.D.iZ());return a!==void 0&&a.loaded}; H4.prototype.k8=function(){g.OP(this.D.iZ())!==void 0&&this.D.getPresentingPlayerType()!==3?this.T||(this.Ob.mL(this),this.T=!0):this.T&&(this.Ob.W$(this),this.T=!1);qH(this,this.isLoaded())}; H4.prototype.onSelect=function(a){this.isLoaded();a?this.D.loadModule("annotations_module"):this.D.unloadModule("annotations_module");this.D.publish("annotationvisibility",a)}; H4.prototype.sL=function(){this.T&&this.Ob.W$(this);HR.prototype.sL.call(this)};g.W(q8,g.sR);q8.prototype.k8=function(){var a=this.D.getAvailableAudioTracks();a.length>1?(this.sP(g.xX(a,this.T)),this.tracks=g.kB(a,this.T,this),this.countLabel.MN(a.length?" ("+a.length+")":""),this.publish("size-change"),this.cE(this.T(this.D.getAudioTrack())),this.enable(!0)):this.enable(!1)}; q8.prototype.lk=function(a){g.sR.prototype.lk.call(this,a);this.D.setAudioTrack(this.tracks[a]);this.Ob.v4()}; q8.prototype.T=function(a){return a.toString()};g.W(bO,HR); bO.prototype.L=function(){var a=this.D.getPresentingPlayerType();if(a!==2&&a!==3&&g.JB(this.D))this.T||(this.Ob.mL(this),this.T=!0,this.Z.push(this.W(this.D,"videodatachange",this.L)),this.Z.push(this.W(this.D,"videoplayerreset",this.L)),this.Z.push(this.W(this.D,"onPlaylistUpdate",this.L)),this.Z.push(this.W(this.D,"autonavchange",this.j)),a=g.B(this.D.getVideoData()),this.j(a.autonavState),this.D.logVisibility(this.element,this.T));else if(this.T){this.Ob.W$(this);this.T=!1;a=g.c(this.Z);for(var l= a.next();!l.done;l=a.next())this.DT(l.value)}}; bO.prototype.j=function(a){qH(this,a!==1)}; bO.prototype.onSelect=function(a){this.D.uj(a?2:1);this.T&&(this.D.logVisibility(this.element,this.T),this.D.logClick(this.element))}; bO.prototype.sL=function(){this.T&&this.Ob.W$(this);HR.prototype.sL.call(this)};g.W(Ck7,g.ub);Ck7.prototype.onClick=function(a){a.preventDefault();var l,m;(l=g.pq(this.D))==null||(m=l.mM())==null||m.KE();var T,y;(T=g.pq(this.D))==null||(y=T.Z7())==null||y.fR(a.target)};g.W(Es5,g.sR);g.Z=Es5.prototype; g.Z.K9=function(){var a=this.D.getPresentingPlayerType();if(a!==2&&a!==3){this.jt=this.D.AK();var l=this.D.getAvailableQualityLevels();if(this.T){this.j={};a=g.j3(this.D,"getAvailableQualityData",[]);a=g.c(a);for(var m=a.next();!m.done;m=a.next())m=m.value,this.j[m.qualityLabel]=m;a=Object.keys(this.j);l[l.length-1]==="auto"&&a.push("auto");this.qj=new Set(l)}else if(this.C){m=g.j3(this.D,"getAvailableQualityData",[]);a=[];m=g.c(m);for(var T=m.next();!T.done;T=m.next())T=T.value,this.N[T.quality]= T,T.quality&&a.push(T.quality);l[l.length-1]==="auto"&&a.push("auto")}else a=l;g.lhw(this.D)&&this.D.OM()&&a.unshift("missing-qualities");l=this.D.app.Qg();m=l.getVideoData();if(!m.L||!m.L.video||m.L.video.qualityOrdinal<1080||m.FN)l=!1;else{T=/^qsa/.test(m.clientPlaybackNonce);var y="r";m.L.id.indexOf(";")>=0&&(T=/^[a-p]/.test(m.clientPlaybackNonce),y="x");T?(l.Tu("iqss",{trigger:y},!0),l=!0):l=!1}l&&a.unshift("inline-survey");this.sP(a);l=g.B(this.D.getVideoData()).cotn?!0:!1;m=this.lT.Dq();m=!g.aX(this.D.Y())|| !(l===void 0?0:l)||!(m===void 0||m);l=this.L;m=m===void 0?!1:m;l.nm&&g.AM(l.OL("ytp-panel-footer"),"ytp-panel-hide-footer",m===void 0?!1:m);if(a.length){this.cO();this.enable(!0);return}}this.enable(!1)}; g.Z.cO=function(){if(this.T){var a=this.D.getPreferredQuality();this.qj.has(a)&&(this.B=this.D.getPlaybackQuality(),this.Ij=this.D.getPlaybackQualityLabel(),a==="auto"?(this.cE(a),this.MN(this.LH(a))):this.cE(this.Ij))}else a=this.D.getPreferredQuality(),this.options[a]&&(this.B=this.D.getPlaybackQuality(),this.cE(a),a==="auto"&&this.MN(this.LH(a)))}; g.Z.lk=function(a){if(a!=="missing-qualities"){g.sR.prototype.lk.call(this,a);var l=this.T?this.j[a]:this.N[a];var m=l==null?void 0:l.quality,T=l==null?void 0:l.formatId,y=l==null?void 0:l.paygatedQualityDetails;l=y==null?void 0:y.endpoint;if(y){var R;y=(R=this.options[a])==null?void 0:R.element;this.D.logClick(y)}if(this.T){var H,b;if((H=g.I(l,g.LnF))==null?0:(b=H.popup)==null?0:b.notificationActionRenderer)this.D.Pz("innertubeCommand",l);else if(l){this.D.Pz("innertubeCommand",l);return}T?this.D.setPlaybackQuality(m, T):this.D.setPlaybackQuality(m)}else{if(this.C){var M,d;if((M=g.I(l,g.LnF))==null?0:(d=M.popup)==null?0:d.notificationActionRenderer)this.D.Pz("innertubeCommand",l);else if(l){this.D.Pz("innertubeCommand",l);return}}this.D.setPlaybackQuality(a)}this.Ob.KE();this.K9()}}; g.Z.open=function(){for(var a=g.c(Object.values(this.options)),l=a.next();!l.done;l=a.next()){l=l.value;var m=void 0;this.D.hasVe((m=l)==null?void 0:m.element)&&(m=void 0,this.D.logVisibility((m=l)==null?void 0:m.element,!0))}g.sR.prototype.open.call(this);this.D.logClick(this.element)}; g.Z.KU=function(a,l,m){var T=this;if(a==="missing-qualities")return new g.ub({U:"a",uT:["ytp-menuitem"],G:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.D.Y().N,tabindex:"0",role:"menuitemradio"},X:[{U:"div",uT:["ytp-menuitem-label"],Lx:"{{label}}"}]},l,this.LH(a));if(a!=="inline-survey"){var y,R=(y=this.T?this.j[a]:this.N[a])==null?void 0:y.paygatedQualityDetails;y=R==null?void 0:R.veType;R=R==null?void 0:R.trackingParams;l=g.sR.prototype.KU.call(this,a,l,m);R?(this.D.createServerVe(l.element, this,!0),this.D.setTrackingParams(l.element,R)):y&&this.D.createClientVe(l.element,this,y,!0);return l}a=[{U:"span",Lx:"\u00bfSe ve bien?"}];m=g.c([!0,!1]);R=m.next();for(y={};!R.done;y={sj:void 0},R=m.next())y.sj=R.value,R=new g.x({U:"span",S:"ytp-menuitem-inline-survey-response",X:[y.sj?Vsd():dr3()],G:{tabindex:"0",role:"button"}}),R.listen("click",function(H){return function(){var b=T.D.app.Qg();b.Tu("iqsr",{tu:H.sj});b.getVideoData().FN=!0;T.Ob.KE();T.K9()}}(y)),a.push(R); return new g.ub({U:"div",S:"ytp-menuitem",G:{"aria-disabled":"true"},X:[{U:"div",uT:["ytp-menuitem-label"],X:a}]},l)}; g.Z.LH=function(a,l){l=l===void 0?!1:l;if(a==="missing-qualities")return{U:"div",Lx:"\u00bfFalta alguna opci\u00f3n?"};if(a==="inline-survey")return"";var m=this.C||this.T?[D_Q(this,a,l,!1)]:[x_d(this,a)];var T=this.D.getPreferredQuality();l||T!=="auto"||a!=="auto"||(m.push(" "),this.T?m.push(D_Q(this,this.Ij,l,!0,["ytp-menu-label-secondary"])):this.C?m.push(D_Q(this,this.B,l,!0,["ytp-menu-label-secondary"])):m.push(x_d(this,this.B,["ytp-menu-label-secondary"])));return{U:"div",X:m}};g.W(g3,ON);g3.prototype.j=function(){ON.prototype.j.call(this);this.N&&uD7(this)}; g3.prototype.jt=function(){this.Ij()}; g3.prototype.lT=function(){this.D.setPlaybackRate(this.T,!0)}; g3.prototype.Z=function(a){ON.prototype.Z.call(this,a);this.Ij();uD7(this);a.preventDefault()};g.W(M8,g.x);g.Z=M8.prototype;g.Z.init=function(){this.YY(this.T);this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.Z)}; g.Z.w$=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var l=-this.J;break;case 39:case 38:l=this.J;break;default:return}this.YY(this.T+l);a.preventDefault()}}; g.Z.Yl=function(a){var l=this.T;l+=(a.deltaX||-a.deltaY)<0?-this.N:this.N;this.YY(l);a.preventDefault()}; g.Z.Qi=function(a){a=(a-g.ui(this.j).x)/this.Ij*this.range+this.L;this.YY(a)}; g.Z.YY=function(a,l){l=l===void 0?"":l;a=g.Km(a,this.L,this.Z);l===""&&(l=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",l);this.lT.style.left=(a-this.L)/this.range*(this.Ij-this.hM)+"px";this.T=a}; g.Z.focus=function(){this.Kx.focus()};g.W(iO,M8);iO.prototype.jt=function(){this.D.setPlaybackRate(this.T,!0)}; iO.prototype.YY=function(a){M8.prototype.YY.call(this,a,YT7(this,a).toString());this.C&&(XoH(this),this.qj())}; iO.prototype.updateValues=function(){var a=this.D.getPlaybackRate();YT7(this,this.T)!==a&&(this.YY(a),XoH(this))};g.W(U_7,g.Z7);U_7.prototype.focus=function(){this.T.focus()};g.W(rTp,Nu);g.W(as5,g.sR);g.Z=as5.prototype;g.Z.LH=function(a){return a==="1"?"Normal":a.toLocaleString()}; g.Z.k8=function(){var a,l=(a=this.D.getVideoData())==null?void 0:a.WN();a=this.D.getPresentingPlayerType(l);this.enable(a!==2&&a!==3);T4l(this)}; g.Z.sP=function(a){g.sR.prototype.sP.call(this,a);this.B&&this.B.L.focus()}; g.Z.UA=function(a){g.sR.prototype.UA.call(this,a);a?(this.Ij=this.W(this.D,"onPlaybackRateChange",this.onPlaybackRateChange),T4l(this),lsP(this,this.D.getPlaybackRate())):(this.DT(this.Ij),this.Ij=null)}; g.Z.onPlaybackRateChange=function(a){var l=this.D.getPlaybackRate();!this.j&&this.N.includes(l)||mgt(this,l);lsP(this,a)}; g.Z.KU=function(a,l,m){return a===this.T&&yF5(this.D)?g.sR.prototype.KU.call(this,a,l,m,{U:"div",S:"ytp-speed-slider-menu-footer",X:[this.B]}):g.sR.prototype.KU.call(this,a,l,m)}; g.Z.lk=function(a){g.sR.prototype.lk.call(this,a);a===this.T?this.D.setPlaybackRate(this.C,!0):this.D.setPlaybackRate(Number(a),!0);yF5(this.D)&&a===this.T||this.Ob.v4()}; g.Z.vG=function(a){var l=a===this.T;this.j=!1;l&&d3(this.D)&&!yF5(this.D)?(a=new rTp(this.D),g.Fq(this.Ob,a)):g.sR.prototype.vG.call(this,a)};g.W(Hf7,g.sR);g.Z=Hf7.prototype;g.Z.cE=function(a){g.sR.prototype.cE.call(this,a)}; g.Z.y0=function(a){return a.option.toString()}; g.Z.getOption=function(a){return this.settings[a]}; g.Z.LH=function(a){return this.getOption(a).text||""}; g.Z.lk=function(a){g.sR.prototype.lk.call(this,a);this.publish("settingChange",this.setting,this.settings[a].option)};g.W(AG,g.Q4);AG.prototype.eH=function(a){for(var l=g.c(Object.keys(a)),m=l.next();!m.done;m=l.next()){var T=m.value;if(m=this.fv[T]){var y=a[T].toString();T=!!a[T+"Override"];m.options[y]&&(m.cE(y),m.j.element.setAttribute("aria-checked",String(!T)),m.T.element.setAttribute("aria-checked",String(T)))}}}; AG.prototype.BI=function(a,l){this.publish("settingChange",a,l)};g.W(P4,g.sR);P4.prototype.T=function(a){return a.languageCode}; P4.prototype.LH=function(a){return this.languages[a].languageName||""}; P4.prototype.lk=function(a){this.publish("select",a);this.D.logClick(this.element);g.hc(this.Ob)};g.W(g87,g.sR);g.Z=g87.prototype;g.Z.FS=function(a){return g.rg(a)?"__off__":a.displayName}; g.Z.LH=function(a){return a==="__off__"?"Desactivados":a==="__translate__"?"Traducir autom\u00e1ticamente":a==="__contribute__"?"A\u00f1adir subt\u00edtulos":a==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(a==="__off__"?{}:this.tracks[a]).displayName}; g.Z.lk=function(a){if(a==="__translate__")this.T.open();else if(a==="__contribute__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var l=g.Co(this.D.Y(),g.B(this.D.getVideoData()));g.uG(l)}else if(a==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var m=MMw(this);Gn(this,m);g.sR.prototype.lk.call(this,this.FS(m));var T,y;m=(l=this.D.getVideoData().getPlayerResponse())==null?void 0:(T=l.captions)==null?void 0:(y=T.playerCaptionsTracklistRenderer)== null?void 0:y.openTranscriptCommand;this.D.Pz("innertubeCommand",m);this.Ob.v4();this.j&&this.D.logClick(this.j)}else{if(a==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();l=MMw(this);Gn(this,l);g.sR.prototype.lk.call(this,this.FS(l));var R,H;l=(m=this.D.getVideoData().getPlayerResponse())==null?void 0:(R=m.captions)==null?void 0:(H=R.playerCaptionsTracklistRenderer)==null?void 0:H.openTranscriptCommand;this.D.Pz("innertubeCommand",l)}else this.D.logClick(this.element), Gn(this,a==="__off__"?{}:this.tracks[a]),g.sR.prototype.lk.call(this,a);this.Ob.v4()}}; g.Z.k8=function(){var a=this.D.getOptions();a=a&&a.indexOf("captions")!==-1;var l=this.D.getVideoData(),m=l&&l.Ma,T,y=!((T=this.D.getVideoData())==null||!g.u9(T));T={};if(a||m){var R;if(a){var H=g.B(this.D.getOption("captions","track"));T=cz7(this.D.getOption("captions","tracklist",{includeAsr:!0}));var b=y?[]:cz7(this.D.getOption("captions","translationLanguages"));this.tracks=g.kB(T,this.FS,this);y=g.xX(T,this.FS);var M,d;MMw(this)&&((R=l.getPlayerResponse())==null?0:(M=R.captions)==null?0:(d=M.playerCaptionsTracklistRenderer)== null?0:d.openTranscriptCommand)&&y.push("__correction__");if(b.length&&!g.rg(H)){if((R=H.translationLanguage)&&R.languageName){var A=R.languageName;R=b.findIndex(function(P){return P.languageName===A}); vlw(b,R)}qV5(this.T,b);y.push("__translate__")}R=this.FS(H)}else this.tracks={},y=[],R="__off__";y.unshift("__off__");this.tracks.__off__={};m&&y.unshift("__contribute__");this.tracks[R]||(this.tracks[R]=H,y.push(R));this.sP(y);this.cE(R);H&&H.translationLanguage?this.T.cE(this.T.T(H.translationLanguage)):$Rz(this.T);a&&this.C.eH(g.B(this.D.getSubtitlesUserSettings()));this.countLabel.MN(T&&T.length?" ("+T.length+")":"");this.publish("size-change");this.D.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.Z.H_=function(a){var l=g.B(this.D.getOption("captions","track"));l=g.mn(l);l.translationLanguage=this.T.languages[a];Gn(this,l)}; g.Z.BI=function(a,l){if(a==="reset")this.D.resetSubtitlesUserSettings();else{var m={};m[a]=l;this.D.updateSubtitlesUserSettings(m)}bf7(this,!0);this.B.start();this.C.eH(g.B(this.D.getSubtitlesUserSettings()))}; g.Z.nv8=function(a){a||g.Tw(this.B)}; g.Z.sL=function(){g.Tw(this.B);g.sR.prototype.sL.call(this)}; g.Z.open=function(){g.sR.prototype.open.call(this);this.options.__correction__&&!this.j&&(this.j=this.options.__correction__.element,this.D.createClientVe(this.j,this,167341),this.D.logVisibility(this.j,!0))};g.W(ifd,g.eX);g.Z=ifd.prototype; g.Z.initialize=function(){if(!this.isInitialized){var a=this.D.Y();this.isInitialized=!0;try{this.Vd=new Es5(this.D,this)}catch(m){g.nU(Error("QualityMenuItem creation failed"))}g.w(this,this.Vd);var l=new g87(this.D,this);g.w(this,l);a.Z||(l=new H4(this.D,this),g.w(this,l));a.enableSpeedOptions&&(l=new as5(this.D,this),g.w(this,l));(g.vS(a)||a.C)&&(a.L||a.St)&&(l=new Ck7(this.D,this),g.w(this,l));a.p5&&!a.V("web_player_move_autonav_toggle")&&(a=new bO(this.D,this),g.w(this,a));a=new q8(this.D,this); g.w(this,a);this.D.publish("settingsMenuInitialized");Iud(this.settingsButton,this.GE.TB())}}; g.Z.mL=function(a){this.initialize();this.GE.mL(a);Iud(this.settingsButton,this.GE.TB())}; g.Z.W$=function(a){this.I0&&this.GE.TB()<=1&&this.hide();this.GE.W$(a);Iud(this.settingsButton,this.GE.TB())}; g.Z.fR=function(a){this.initialize();this.GE.TB()>0&&g.eX.prototype.fR.call(this,a)}; g.Z.KE=function(){this.wB?this.wB=!1:g.eX.prototype.KE.call(this)}; g.Z.show=function(){g.eX.prototype.show.call(this);g.M$(this.D.getRootNode(),"ytp-settings-shown")}; g.Z.hide=function(){g.eX.prototype.hide.call(this);g.dK(this.D.getRootNode(),"ytp-settings-shown")}; g.Z.aY=function(a){this.D.logVisibility(this.element,a);this.D.publish("settingsMenuVisibilityChanged",a)};g.W(j5d,g.x);g.Z=j5d.prototype;g.Z.onClick=function(){if(AF5(this)&&(this.D.toggleSubtitles(),this.D.logClick(this.element),!this.isEnabled())){var a=!1,l=g.oi(g.EC(),65);g.aX(this.D.Y())&&l!=null&&(a=!l);a&&this.D.Y().V("web_player_nitrate_promo_tooltip")&&this.D.publish("showpromotooltip",this.element)}}; g.Z.DIK=function(a){var l,m;(l=g.pq(this.D))==null||(m=l.mM())==null||m.fR(a)}; g.Z.isEnabled=function(){return!!this.D.getOption("captions","track").displayName}; g.Z.k8=function(){var a=AF5(this),l=300;this.D.Y().B&&(l=480);if(this.D.Y().C){this.updateValue("title",g.F9(this.D,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var m=a}else{if(a)(m=this.OL("ytp-subtitles-button-icon"))==null||m.setAttribute("fill-opacity","1"),this.updateValue("title",g.F9(this.D,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var T;(T=this.OL("ytp-subtitles-button-icon"))==null||T.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.n7();m=m&&this.D.cz().getPlayerSize().width>=l;this.zx(m);this.D.V("embeds_use_parent_visibility_in_ve_logging")?this.D.logVisibility(this.element,m&&this.K):this.D.logVisibility(this.element,m);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.Z.kX=function(a){g.x.prototype.kX.call(this,a);this.D.Y().V("embeds_use_parent_visibility_in_ve_logging")&&this.D.logVisibility(this.element,this.I0&&a)};g.W(g.Vq,g.x);g.Z=g.Vq.prototype; g.Z.ex=function(){var a=this.api.cz().getPlayerSize().width,l=this.N;this.api.Y().B&&(l=400);l=a>=l&&(!pY(this)||!g.u(this.api.getPlayerStateObject(),64));this.zx(l);g.AM(this.element,"ytp-time-display-allow-autohide",l&&a<400);a=this.api.getProgressState();if(l){var m=this.api.getPresentingPlayerType();l=this.api.getCurrentTime(m,!1);this.L&&(l-=a.airingStart);Zm(this)&&(l-=this.o0.startTimeMs/1E3);Zm(this)||pY(this)||!this.Z||(l-=this.api.getDuration(m,!1));var T=g.O6(l);this.j!==T&&(this.updateValue("currenttime", T),this.j=T);m=Zm(this)?(this.o0.endTimeMs-this.o0.startTimeMs)/1E3:this.api.getDuration(m,!1);T=g.O6(m);this.C!==T&&(this.updateValue("duration",T),this.C=T,l&&(l=g.ph("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.O6(l,!0),DURATION:g.O6(m,!0)}),this.updateValue("timeDisplayAriaLabel",l)))}P2P(this,a.isAtLiveHead);G5t(this,this.api.getLoopRange())}; g.Z.onLoopRangeChange=function(a){var l=this.o0!==a;this.o0=a;l&&(this.ex(),VM7(this))}; g.Z.Kxt=function(){this.api.setLoopRange(null)}; g.Z.n88=function(){this.Z=!this.Z;this.ex()}; g.Z.onVideoDataChange=function(a,l,m){this.updateVideoData((this.api.Y().V("enable_topsoil_wta_for_halftime")||this.api.Y().V("enable_topsoil_wta_for_halftime_live_infra"))&&m===2?this.api.getVideoData(1):l);this.ex();VM7(this)}; g.Z.updateVideoData=function(a){this.Yy=a.isLivePlayback&&!a.rb;this.L=Un(a);this.isPremiere=a.isPremiere;g.AM(this.element,"ytp-live",pY(this))}; g.Z.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.Z.sL=function(){this.T&&this.T();g.x.prototype.sL.call(this)};g.W(ZfQ,g.x);g.Z=ZfQ.prototype;g.Z.jw=function(){var a=this.api.hp();this.Z!==a&&(this.Z=a,p7l(this,this.api.getVolume(),this.api.isMuted()))}; g.Z.NW=function(a){this.zx(a.width>=350)}; g.Z.MX=function(a){if(!a.defaultPrevented){var l=a.keyCode,m=null;l===37?m=this.volume-5:l===39?m=this.volume+5:l===36?m=0:l===35&&(m=100);m!==null&&(m=g.Km(m,0,100),m===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(m)),a.preventDefault())}}; g.Z.d$=function(a){var l=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(l<0?-10:10)):this.api.setVolume(this.volume+g.Km(l/10,-10,10));a.preventDefault()}; g.Z.T7u=function(){W4(this,this.T,!0,this.L,this.api.EH());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.Z.XY=function(a){var l=this.Z?78:52,m=this.Z?18:12;a-=g.ui(this.J).x;this.api.setVolume(g.Km((a-m/2)/(l-m),0,1)*100)}; g.Z.l6j=function(){W4(this,this.T,!1,this.L,this.api.EH());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.Z.onVolumeChange=function(a){p7l(this,a.volume,a.muted)}; g.Z.Dd=function(){W4(this,this.T,this.isDragging,this.L,this.api.EH())}; g.Z.sL=function(){g.x.prototype.sL.call(this);g.dK(this.B,"ytp-volume-slider-active")};g.W(c4,g.x); c4.prototype.onVideoDataChange=function(){var a=this.api.Y();this.Mt();this.visible=!!g.B(this.api.getVideoData()).videoId&&!g.Tl(g.B(this.api.getVideoData(1)));this.zx(this.visible);this.api.logVisibility(this.element,this.visible&&this.K);if(this.visible){var l=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",l)}a.Z&&(this.T&&(this.DT(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.M$(this.element,"no-link")); l=this.api.Y();a=g.B(this.api.getVideoData());var m="";l.Z||(l=g.uj(l),l.indexOf("www.")===0&&(l=l.substring(4)),m=g.Rp(a)?"Ver en YouTube Music":l==="youtube.com"?"Ver en YouTube":g.ph("Ver en $WEBSITE",{WEBSITE:l}));this.updateValue("title",m)}; c4.prototype.onClick=function(a){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var l=this.api.Y(),m=this.api.getVideoUrl(!g.Ku(a),!1,!0,!0);if(g.vS(l)){var T={};g.vS(l)&&g.j3(this.api,"addEmbedsConversionTrackingParams",[T]);m=g.S$(m,T)}g.g5(m,this.api,a);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; c4.prototype.Mt=function(){var a={U:"svg",G:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},X:[{U:"path",nE:!0,S:"ytp-svg-fill",G:{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 "}}]}, l=28666,m=g.B(this.api.getVideoData());this.api.isEmbedsShortsMode()?a={U:"svg",G:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},X:[{U:"path",G:{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.Rp(m)&&(a={U:"svg",G:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},X:[{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}},{U:"path",G:{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"}}]},l=216163);g.Rp(m)?g.M$(this.element,"ytp-youtube-music-button"):g.dK(this.element,"ytp-youtube-music-button");a.G=Object.assign({},a.G,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,l,!0)}; c4.prototype.kX=function(a){g.x.prototype.kX.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.W(LhP,g.BT);g.Z=LhP.prototype;g.Z.Sq=function(){if(this.D.V("web_player_max_seekable_on_ended")||!g.u(this.D.getPlayerStateObject(),2))this.progressBar.ex(),this.Kx.ex()}; g.Z.oo=function(){this.Z_();this.mA.L?this.Sq():this.progressBar.Ur()}; g.Z.P_=function(){this.Sq();this.N.start()}; g.Z.Z_=function(){var a;if(a=!this.D.Y().L){a=this.progressBar;var l=2*g.r1()*a.C;a=a.Z.getLength()*1E3/a.api.getPlaybackRate()/l<300}a=a&&this.D.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;l=!a;this.mA.L||(a=l=!1);l?this.jt||(this.jt=this.W(this.D,"progresssync",this.Sq)):this.jt&&(this.DT(this.jt),this.jt=null);a?this.N.isActive()||this.N.start():this.N.stop()}; g.Z.Mt=function(){var a=this.D.hp(),l=this.D.cz().getPlayerSize(),m=this.D.cz().iA,T=Q5w(this),y=tMt(this),R=Math.max(l.width-T*2,100);if(this.lZ!==l.width||this.vF!==a||this.D.V("web_player_rtr_ctrls")&&this.yj!==m)this.lZ=l.width,this.vF=a,this.yj=m,this.j.element.style.width=y+"px",this.j.element.style.left=T+"px",g.BL5(this.progressBar,T,y,a),this.D.b0().aS=y;m=this.Z;R=Math.min(570*(a?1.5:1),R);a=Math.min(413*(a?1.5:1),Math.round((l.height-evP(this))*.82));m.maxWidth=R;m.maxHeight=a;m.Vt();this.Z_(); this.D.Y().V("html5_player_dynamic_bottom_gradient")&&hsQ(this.yg,l.height)}; g.Z.onVideoDataChange=function(){var a=g.B(this.D.getVideoData());this.tM.style.background=a.Rh?a.ai:"";this.lT&&sB7(this.lT,a.showSeekingControls);this.Ij&&sB7(this.Ij,a.showSeekingControls)}; g.Z.hN=function(){return this.j.element};g.W(Fhd,Lz);g.Z=Fhd.prototype;g.Z.Kc=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.D.Pz("innertubeCommand",this.onClickCommand),this.HB())}; g.Z.HB=function(){this.enabled=!1;this.N.hide()}; g.Z.onVideoDataChange=function(a,l){a==="dataloaded"&&hvw(this);a=[];var m,T,y,R;if(l=(R=g.I((m=l.getWatchNextResponse())==null?void 0:(T=m.playerOverlays)==null?void 0:(y=T.playerOverlayRenderer)==null?void 0:y.suggestedActionsRenderer,Ytg))==null?void 0:R.suggestedActions)for(m=g.c(l),T=m.next();!T.done;T=m.next())(T=g.I(T.value,UjX))&&g.I(T.trigger,X2g)&&a.push(T);if(a.length!==0){m=[];a=g.c(a);for(T=a.next();!T.done;T=a.next())if(T=T.value,y=g.I(T.trigger,X2g))R=(R=T.title)?g.Lj(R):"View Chapters", l=y.timeRangeStartMillis,y=y.timeRangeEndMillis,l!=null&&y!=null&&T.tapCommand&&(m.push(new g.Rq(l,y,{priority:9,namespace:"suggested_action_button_visible",id:R})),this.suggestedActions[R]=T.tapCommand);this.D.d7(m)}}; g.Z.Fr=function(){return this.enabled}; g.Z.aY=function(){this.enabled?this.AM.start():We(this);this.tV()}; g.Z.sL=function(){hvw(this);Lz.prototype.sL.call(this)};var N_={},Qq=(N_.CHANNEL_NAME="ytp-title-channel-name",N_.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",N_.LINK="ytp-title-link",N_.SESSIONLINK="yt-uix-sessionlink",N_.SUBTEXT="ytp-title-subtext",N_.TEXT="ytp-title-text",N_.TITLE="ytp-title",N_);g.W(tG,g.x);tG.prototype.onClick=function(a){this.api.logClick(this.element);var l=this.api.Y(),m=this.api.getVideoUrl(!g.Ku(a),!1,!0);g.vS(l)&&(l={},g.j3(this.api,"addEmbedsConversionTrackingParams",[l]),m=g.S$(m,l));g.g5(m,this.api,a)}; tG.prototype.k8=function(){var a=g.B(this.api.getVideoData()),l=this.api.Y();this.updateValue("title",a.title);var m={U:"a",S:Qq.CHANNEL_NAME,G:{href:"{{channelLink}}",target:"_blank"},Lx:"{{channelName}}"};this.api.Y().Z&&(m={U:"span",S:Qq.CHANNEL_NAME,Lx:"{{channelName}}",G:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",m);OfP(this);this.api.getPresentingPlayerType()===2&&(m=g.B(this.api.getVideoData()),m.videoId&&m.isListed&&m.author&&m.yg&&m.profilePicture?(this.updateValue("channelLink", m.yg),this.updateValue("channelName",m.author),this.updateValue("channelTitleFocusable","0")):OfP(this));m=l.externalFullscreen||!this.api.isFullscreen()&&l.ph;g.AM(this.link,Qq.FULLERSCREEN_LINK,m);l.lT||!a.videoId||m||g.Tl(a)||l.Z?this.T&&(this.updateValue("url",null),this.DT(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.W(this.link,"click",this.onClick)));l.Z&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.vS(l)?a.expandedTitle: a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.W(g.Fa,g.x);g.Z=g.Fa.prototype;g.Z.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:zvl(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=a}; g.Z.P8=function(a,l,m,T,y,R,H,b){if(!this.jt||this.env.B){this.type===3&&this.Ur();this.type!==1&&(g.b0(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.L&&this.L.dispose(),(this.L=this.api.Zv())&&this.L.subscribe("l",this.Gk,this));if(b){var M=g.Uh(this.bg).height||141;this.qj.style.bottom=M+2+"px"}else this.qj.style.display="none";this.env.V("delhi_modern_web_player")?this.update({pillTimeStamp:m,pillTitle:R!=null?R:"",eduText:b!=null?b:""}):(this.update({text:m, title:R!=null?R:"",eduText:b!=null?b:""}),g.AM(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!R));this.api.isInline()&&g.M$(this.bottomText,"ytp-modern-tooltip-text");g.AM(this.element,"ytp-text-detail",!!T);m=-1;this.L&&(m=kW(this.L,243*this.scale),this.env.V("web_l3_storyboard")&&this.L.levels.length===4&&(m=this.L.levels.length-1),m=N2b(this.L,m,l));$gd(this,m);if(H)switch(l=g.Uh(this.element).width,H){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= l+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=l/2+"px",this.title.style.textAlign="center"}v85(this,!!T,a,y)}}; g.Z.T2=function(){this.type===1&&this.Ur()}; g.Z.Rl=function(a,l){if(this.type)if(this.type===3)this.Ur();else return;Khl(this,a,3,l)}; g.Z.n7=function(){this.T&&!this.B&&this.T.hasAttribute("title")&&(this.Z=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.C&&zvl(this))}; g.Z.Gk=function(a,l){a<=this.j&&this.j<=l&&(a=this.j,this.j=NaN,$gd(this,a))}; g.Z.Hx=function(){c_5(this.L,this.j,243*this.scale)}; g.Z.Ur=function(){switch(this.type){case 2:var a=this.T;a.removeEventListener("mouseout",this.J);a.addEventListener("mouseover",this.hM);a.removeEventListener("blur",this.J);a.addEventListener("focus",this.hM);s57(this);break;case 3:s57(this);break;case 1:this.L&&(this.L.unsubscribe("l",this.Gk,this),this.L=null),this.api.removeEventListener("videoready",this.N),this.Ij.stop()}this.type=null;this.C&&this.fade.hide()}; g.Z.TX=function(){if(this.T)for(var a=0;a=0;l--)if(this.QN[l]===a){this.QN.splice(l,1);break}ze(this.mA,64,this.QN.length>0)}; g.Z.U4=function(){this.api.yy()&&this.api.Xg();return!!this.Cb||n8l(this)||g.wd.prototype.U4.call(this)}; g.Z.vg=l7(3);g.Z.H5=l7(7);g.Z.tX=l7(10); g.Z.jI=function(){var a=!this.U4(),l=a&&this.api.yy()&&!g.u(this.api.getPlayerStateObject(),2)&&!g.Tl(g.B(this.api.getVideoData()))&&!this.api.Y().Z&&!this.api.isEmbedsShortsMode(),m=this.nY&&g.vi(this.api)&&g.u(this.api.getPlayerStateObject(),128);a||m?(this.aZ.show(),this.IZ.show()):(this.aZ.hide(),this.IZ.hide(),this.api.TX(this.mH.element));l?this.Zq.fR():this.Zq.KE();this.Jt&&N4t(this.Jt,this.lr||!a);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&w7w(this);g.wd.prototype.jI.call(this)}; g.Z.uC=function(a,l,m,T,y){a.style.left="";a.style.top="";a.style.bottom="";var R=g.Uh(a),H=T||this.Jt&&g.qw(this.Jt.hN(),l),b=T=null;m!=null&&H||(T=g.Uh(l),b=g.X8(l,this.api.getRootNode()),m==null&&(m=b.x+T.width/2));m-=R.width/2;H?(l=this.Jt,T=Q5w(l),b=tMt(l),H=this.api.cz().getPlayerSize().height,m=g.Km(m,T,T+b-R.width),R=H-evP(l)-R.height):g.qw(this.mH.element,l)?(l=this.api.cz().getPlayerSize().width,m=g.Km(m,12,l-R.width-12),R=this.hp()?this.Np:this.y7,this.api.Y().playerStyle==="gvn"&&(R+= 20),this.nY&&(R-=this.hp()?26:18)):(l=this.api.cz().getPlayerSize(),m=g.Km(m,12,l.width-R.width-12),R=b.y>(l.height-T.height)/2?b.y-R.height-12:b.y+T.height+12);a.style.top=R+(y||0)+"px";a.style.left=m+"px"}; g.Z.oo=function(a){a&&(this.api.TX(this.mH.element),this.Jt&&this.api.TX(this.Jt.hN()));this.Uf&&(g.AM(this.contextMenu.element,"ytp-autohide",a),g.AM(this.contextMenu.element,"ytp-autohide-active",!0));g.wd.prototype.oo.call(this,a)}; g.Z.DH=function(){g.wd.prototype.DH.call(this);this.Uf&&(g.AM(this.contextMenu.element,"ytp-autohide-active",!1),this.Uf&&(this.contextMenu.hide(),this.Er&&this.Er.hide()))}; g.Z.KH=function(a,l){var m=this.api.cz().getPlayerSize();m=new g.Jq(0,0,m.width,m.height);if(a||this.mA.L&&!this.U4()){if(this.api.Y().aH||l)a=this.hp()?this.Np:this.y7,m.top+=a,m.height-=a;this.Jt&&(m.height-=evP(this.Jt))}return m}; g.Z.jw=function(a){var l=this.api.getRootNode();a?l.parentElement?(l.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.Y().externalFullscreen||(l.parentElement.insertBefore(this.X1.element,l),l.parentElement.insertBefore(this.dw.element,l.nextSibling))):g.kt(Error("Player not in DOM.")):(l.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),this.X1.detach(),this.dw.detach());this.Mt();this.iK()}; g.Z.hp=function(){var a=this.api.Y();return this.api.isFullscreen()&&!a.B||!1}; g.Z.showControls=function(a){this.i9=!a;this.jI()}; g.Z.Mt=function(){var a=this.hp();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.AM(this.contextMenu.element,"ytp-big-mode",a);this.jI();this.api.V("web_player_hide_overflow_button_if_empty_menu")||w7w(this);this.iK();var l=this.api.isEmbedsShortsMode();l&&a?(a=(this.api.cz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.nA(this.mH.element,"padding-left",a+"px"),g.nA(this.mH.element,"padding-right",a+"px")):l&&(g.nA(this.mH.element,"padding-left",""),g.nA(this.mH.element,"padding-right", ""));g.wd.prototype.Mt.call(this)}; g.Z.CQ=function(){if(n8l(this)&&!g.vi(this.api))return!1;var a=g.B(this.api.getVideoData());return!g.vS(this.api.Y())||this.api.getPresentingPlayerType()===2||!this.f7||((a=this.f7||a.f7)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.I(a.videoDetails,qYb)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.wd.prototype.CQ.call(this):!1}; g.Z.iK=function(){g.wd.prototype.iK.call(this);this.api.logVisibility(this.title.element,!!this.Mh);this.Wq&&this.Wq.kX(!!this.Mh);this.channelAvatar.kX(!!this.Mh);this.overflowButton&&this.overflowButton.kX(this.GA()&&!!this.Mh);this.shareButton&&this.shareButton.kX(!this.GA()&&!!this.Mh);this.Sm&&this.Sm.kX(!this.GA()&&!!this.Mh);this.searchButton&&this.searchButton.kX(!this.GA()&&!!this.Mh);this.copyLinkButton&&this.copyLinkButton.kX(!this.GA()&&!!this.Mh);if(!this.Mh){this.api.TX(this.mH.element); for(var a=0;a5&&l.Tu("glrs",{cmt:m});l.seekTo(0,{seekSource:58});l.Tu("glrre",{cmt:m})}}; zn.prototype.sL=function(){this.T=null;g.k.prototype.sL.call(this)};g.W(g.v4,mZ);g.Z=g.v4.prototype;g.Z.isView=function(){return!0}; g.Z.HD=function(){var a=this.mediaElement.getCurrentTime();if(a1;iH(a.PY(),T-.01)&&!y&&(sy(this,4),m.isActive=!1,m.o2=m.o2||m.isActive,(this.K===1?this.T:this.L).Tu("sbh",{}),l.isActive=!0,l.o2=l.o2||l.isActive,this.K!==0&&(this.T.getVideoData().yV=!0));a=this.j.L;if(this.j.T.isActive&&a.isActive&&(sy(this,5),this.K!==0)){a=this.L.Ii();m=this.T.Ii(); this.T.Tu("sbs",{citag:m==null?void 0:m.itag,nitag:a==null?void 0:a.itag});this.L.Tu("gitags",{pitag:m==null?void 0:m.itag,citag:a==null?void 0:a.itag});var R;(R=this.L)==null||R.vJ()}}}; g.Z.N5=function(){this.v5()&&this.ag("player-reload-after-handoff")}; g.Z.ag=function(a,l){l=l===void 0?{}:l;if(!this.FO()&&this.status.status!==6){var m=this.status.status>=4&&a!=="player-reload-after-handoff";this.status={status:Infinity,error:a};if(this.T&&this.L){var T=this.L.getVideoData().clientPlaybackNonce;this.T.yP(new O_("dai.transitionfailure",Object.assign(l,{cpn:T,transitionTimeMs:this.Xx,msg:a})));this.T.jV(m)}this.lK.reject(a);this.dispose()}}; g.Z.v5=function(){return this.status.status>=4&&this.status.status<6}; g.Z.sL=function(){lop(this);this.T.unsubscribe("newelementrequired",this.N5,this);if(this.Z){var a=this.Z.L;this.Z.T.gO.unsubscribe("updateend",this.OA,this);a.gO.unsubscribe("updateend",this.OA,this)}g.k.prototype.sL.call(this)}; g.Z.vL=function(a){g.Wr(a,128)&&this.ag("player-error-event")};g.W(SU,g.k);SU.prototype.clearQueue=function(a,l){a=a===void 0?!1:a;l=l===void 0?!1:l;this.j&&this.j.reject("Queue cleared");this.app.Y().V("html5_gapless_fallback_on_qoe_restart_v2")||l&&this.L&&this.L.jV(!1);fY(this,a)}; SU.prototype.i$=function(){return!this.T}; SU.prototype.v5=function(){var a;return((a=this.Z)==null?void 0:a.v5())||!1}; SU.prototype.sL=function(){fY(this);g.k.prototype.sL.call(this)};g.W(bER,g.Aj);g.Z=bER.prototype;g.Z.getVisibilityState=function(a,l,m,T,y,R,H,b){return a?4:awb()?3:l?2:m?1:T?5:y?7:R?8:H?9:b?10:0}; g.Z.tE=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.aY())}; g.Z.setMinimized=function(a){this.L!==a&&(this.L=a,this.aY())}; g.Z.setInline=function(a){this.inline!==a&&(this.inline=a,this.aY())}; g.Z.uo=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.aY())}; g.Z.setSqueezeback=function(a){this.Z!==a&&(this.Z=a,this.aY())}; g.Z.Z2=function(a){this.j!==a&&(this.j=a,this.aY())}; g.Z.rL=function(){return this.T}; g.Z.e7=function(){return this.fullscreen!==0}; g.Z.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.Z.vj=function(){return this.fullscreen}; g.Z.isMinimized=function(){return this.L}; g.Z.isInline=function(){return this.inline}; g.Z.isBackground=function(){return awb()}; g.Z.FX=function(){return this.pictureInPicture}; g.Z.wK=function(){return!1}; g.Z.zf=function(){return this.Z}; g.Z.hO=function(){return this.j}; g.Z.aY=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.rL(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.FX(),this.wK(),this.zf(),this.hO());a!==this.C&&this.publish("visibilitystatechange");this.C=a}; g.Z.sL=function(){Til(this.K);g.Aj.prototype.sL.call(this)};g.W(g.JG,g.k);g.Z=g.JG.prototype;g.Z.sL=function(){this.videoData=this.playerState=null;g.k.prototype.sL.call(this)}; g.Z.addCueRange=function(){}; g.Z.D4=function(){}; g.Z.Zt=function(){}; g.Z.xZ=function(){return!1}; g.Z.d0=function(){return!1}; g.Z.AJ=function(){return!1}; g.Z.g0=function(){}; g.Z.cX=function(){}; g.Z.Qh=function(){return[]}; g.Z.yl=function(){}; g.Z.getAudioTrack=function(){return this.getVideoData().WE}; g.Z.Nc=function(){return null}; g.Z.getAvailableAudioTracks=function(){return[]}; g.Z.AK=function(){return[]}; g.Z.Qu=function(){return[]}; g.Z.wT=function(){return""}; g.Z.SH=function(){return[]}; g.Z.Ip=function(){}; g.Z.Ja=function(){return 0}; g.Z.getCurrentTime=function(){return 0}; g.Z.lq=function(){}; g.Z.Ii=function(){}; g.Z.rW=function(){return{}}; g.Z.getDuration=function(){return 0}; g.Z.oy=function(){return 0}; g.Z.V1=function(){return 0}; g.Z.F0=function(){return!1}; g.Z.EP=function(){return 0}; g.Z.L6=function(){return 0}; g.Z.fn=l7(15);g.Z.uu=function(){return 0}; g.Z.pn=function(){return!1}; g.Z.RH=function(){return 0}; g.Z.TE=function(){return null}; g.Z.o8=function(){return null}; g.Z.bM=function(){return 0}; g.Z.Zn=function(){return 0}; g.Z.M2=function(){return g.J(function(a){g.c5(a)})}; g.Z.Zz=l7(21);g.Z.getPlaybackQuality=function(){return"auto"}; g.Z.getPlaybackRate=function(){return 1}; g.Z.getPlayerState=function(){this.playerState||(this.playerState=new g.qz);return this.playerState}; g.Z.getPlayerType=function(){return 0}; g.Z.getPlaylistSequenceForTime=function(){return null}; g.Z.ju=function(){return function(){}}; g.Z.Yk=function(){return""}; g.Z.getPreferredQuality=function(){return"unknown"}; g.Z.ML=function(){}; g.Z.getProximaLatencyPreference=function(){return 0}; g.Z.w3=function(){return xW}; g.Z.Zv=function(){return null}; g.Z.getStoryboardFormat=function(){return null}; g.Z.getStreamTimeOffset=function(){return 0}; g.Z.jc=function(){return 0}; g.Z.YX=function(){return 0}; g.Z.uq=function(){return{Is:[],mT:[],currentTime:0,bG:"",droppedVideoFrames:0,isGapless:!1,i$:!0,Gf:0,dj:0,X6:0,Pp:0,rj:0,GU:[],Sl:[],Jq:null,playerState:this.getPlayerState(),Pl:null,tF:"",totalVideoFrames:0}}; g.Z.getUserAudio51Preference=function(){return 0}; g.Z.getUserPlaybackQualityPreference=function(){return""}; g.Z.getVideoData=function(){this.videoData||(this.videoData=new g.Dj(this.aj),g.w(this,this.videoData));return this.videoData}; g.Z.Q6=function(){return null}; g.Z.cS=function(){return null}; g.Z.f$=function(){}; g.Z.getVideoLoadedFraction=function(){return 0}; g.Z.yu=function(){}; g.Z.handleError=function(){}; g.Z.jV=function(){}; g.Z.GM=function(){}; g.Z.h6=l7(46);g.Z.OH=function(){return!1}; g.Z.hasSupportedAudio51Tracks=function(){return!1}; g.Z.Pu=function(){return!1}; g.Z.rL=function(){return!1}; g.Z.isAtLiveHead=function(){return!1}; g.Z.m7=function(){return!0}; g.Z.isGapless=function(){return!1}; g.Z.isHdr=function(){return!1}; g.Z.Oa=function(){return!1}; g.Z.w9=function(){return!1}; g.Z.X4=function(){return!1}; g.Z.isProximaLatencyEligible=function(){return!1}; g.Z.i$=function(){return!0}; g.Z.rK=function(){return!1}; g.Z.Wt=function(){return!1}; g.Z.fV=function(){}; g.Z.r4=function(){}; g.Z.vJ=function(){}; g.Z.wc=function(){}; g.Z.Cc=function(){}; g.Z.VA=function(){}; g.Z.OS=function(){}; g.Z.JE=l7(56);g.Z.y8=l7(27);g.Z.F5=function(){}; g.Z.pauseVideo=function(){}; g.Z.playVideo=function(){return g.J(function(a){return a.return()})}; g.Z.SE=function(){}; g.Z.y4=l7(33);g.Z.XK=l7(39);g.Z.Il=function(){}; g.Z.Tu=function(){}; g.Z.JO=function(){}; g.Z.sJ=function(){}; g.Z.Zo=function(){}; g.Z.yP=function(){}; g.Z.j9=function(){}; g.Z.Uu=function(){}; g.Z.OJ=function(){}; g.Z.jJ=function(){}; g.Z.Ou=function(){}; g.Z.p_=function(){}; g.Z.dF=function(){}; g.Z.removeCueRange=function(){}; g.Z.Sw=function(){}; g.Z.FJ=function(){return[]}; g.Z.PZ=function(){}; g.Z.oa=function(){}; g.Z.X5=function(){}; g.Z.uy=function(){}; g.Z.ma=function(){}; g.Z.W5=function(){}; g.Z.seekTo=function(){}; g.Z.sendAbandonmentPing=function(){}; g.Z.sendVideoStatsEngageEvent=function(){}; g.Z.EJ=function(){}; g.Z.setLoop=function(){}; g.Z.JD=function(){}; g.Z.setMediaElement=function(){}; g.Z.nZ=function(){}; g.Z.setPlaybackRate=function(){}; g.Z.jd=function(){}; g.Z.Cp=function(){}; g.Z.IY=function(){}; g.Z.setProximaLatencyPreference=function(){}; g.Z.TY=function(){}; g.Z.Li=function(){}; g.Z.jZ=function(){}; g.Z.Yb=function(){}; g.Z.setUserAudio51Preference=function(){}; g.Z.kG=function(){}; g.Z.TJ=function(){return!1}; g.Z.Ee=function(){}; g.Z.RV=function(){return!1}; g.Z.rp=function(){}; g.Z.qU=function(){}; g.Z.D2=function(){}; g.Z.stopVideo=function(){}; g.Z.subscribe=function(){return NaN}; g.Z.H7=function(){}; g.Z.togglePictureInPicture=function(){}; g.Z.yF=function(){return 0}; g.Z.unsubscribe=function(){return!1}; g.Z.YE=function(){}; g.Z.Gd=function(){return!1}; g.Z.Ow=function(){}; g.Z.h0=function(){}; g.Z.Uw=function(){};g.W(nY,g.k);g.Z=nY.prototype;g.Z.get=function(a){B4(this);var l=this.data.find(function(m){return m.key===a}); return l?l.value:null}; g.Z.set=function(a,l,m){this.remove(a,!0);B4(this);a={key:a,value:l,expire:Infinity};m&&isFinite(m)&&(m*=1E3,a.expire=(0,g.E)()+m);for(this.data.push(a);this.data.length>this.Z;)(m=this.data.shift())&&w3(this,m,!0);kD(this)}; g.Z.remove=function(a,l){l=l===void 0?!1:l;var m=this.data.find(function(T){return T.key===a}); m&&(w3(this,m,l),g.cn(this.data,function(T){return T.key===a}),kD(this))}; g.Z.removeAll=function(a){if(a=a===void 0?!1:a)for(var l=g.c(this.data),m=l.next();!m.done;m=l.next())w3(this,m.value,a);this.data=[];kD(this)}; g.Z.sL=function(){var a=this;g.k.prototype.sL.call(this);this.data.forEach(function(l){w3(a,l,!0)}); this.data=[]};g.W(g.Iz,g.k);g.Z=g.Iz.prototype;g.Z.sL=function(){for(var a=g.c(Object.values(this.Z)),l=a.next();!l.done;l=a.next())l.value.dispose();gEQ(this);this.T.dispose();g.k.prototype.sL.call(this)}; g.Z.EQ=function(a){return a?a===1?this.J:this.L.getVideoData().enableServerStitchedDai&&a===2?this.L.getVideoData().Uk?this.Z[2]||this.L:this.L:g.US(this.L.getVideoData())&&a===2?this.Z[2]||this.L:this.Z[a]||null:this.L}; g.Z.BY=function(a){var l=a.cpn;a=a.playerType;if(l)a:{a=g.c(Object.values(this.Z));for(var m=a.next();!m.done;m=a.next())if(m=m.value,m.wT()===l){l=m;break a}l=this.K[l]||null}else l=a?this.EQ(a):this.L;return l}; g.Z.jW=function(){return this.J}; g.Z.S9=function(a){this.J=a}; g.Z.Qg=function(){return this.L}; g.Z.X9=function(a){this.L=a;CY(this)}; g.Z.b8=l7(52);g.Z.ZG=l7(54);g.W(Ey,g.k);Ey.prototype.enqueue=function(a){if(a.T()!==this)return!1;this.segments.push(a);return!0}; Ey.prototype.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.T.clear();this.L=void 0}; Ey.prototype.sL=function(){this.removeAll();g.k.prototype.sL.call(this)};g.W(pmt,g.Ip);g.Z=pmt.prototype;g.Z.Ha=function(){}; g.Z.wT=function(){return this.videoData.clientPlaybackNonce}; g.Z.getVideoData=function(){var a=this.QP;var l=g.Ip.prototype.getCurrentTime.call(this);if(a.j4)a=void 0;else{var m=void 0;a.C5&&(m=a.Z.get(a.C5));if(!m){m=OEw(a,l*1E3);var T,y=(T=m)==null?void 0:T.cpn;a.C5?y&&a.C5!==y&&a.nx({cpcnm:y+"_"+a.C5,cmt:l.toFixed(3)}):a.nx({cpcna:y,cmt:l.toFixed(3)})}var R;a=(R=m)==null?void 0:R.videoData}return a||g.Ip.prototype.getVideoData.call(this)}; g.Z.getCurrentTime=function(a){if(a)a=this.QP.HZ/1E3||g.Ip.prototype.getCurrentTime.call(this);else{var l=this.QP;a=g.Ip.prototype.getCurrentTime.call(this);a=(l=hhH(l,a*1E3))?a-l.start/1E3:a}return a}; g.Z.getDuration=function(){var a=this.QP,l=g.Ip.prototype.getCurrentTime.call(this);return(a=OEw(a,l*1E3))?a.durationMs/1E3:0};g.oz.prototype.Em=function(a,l){if(l===1)return this.T.get(a);if(l===2)return this.Z.get(a);if(l===3)return this.L.get(a)}; g.oz.prototype.QU=l7(64);g.oz.prototype.zD=function(a,l,m,T){m={z4:T,DU:m};l?this.Z.set(a,m):this.T.set(a,m)}; g.oz.prototype.clearAll=function(){this.T.clear();this.Z.clear();this.L.clear()}; g.W(g.xD,g.k);g.Z=g.xD.prototype;g.Z.WD=function(a){var l=a.UZ?a.UZ*1E3:a.HF,m=this.L.get(a.cpn);m&&this.playback.removeCueRange(m);this.L.delete(a.cpn);this.Z.delete(a.cpn);m=this.K.indexOf(a);m>=0&&this.K.splice(m,1);m=[];for(var T=g.c(this.C),y=T.next();!y.done;y=T.next())y=y.value,y.end<=l?this.playback.removeCueRange(y):m.push(y);this.C=m;JxH(this,0,l+a.durationMs)}; g.Z.onCueRangeEnter=function(a){this.AM.push(a);var l=a.getId();this.nx({oncueEnter:1,cpn:l,start:a.start,end:a.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ja()||0).toFixed(3)});var m=l==="";this.Mj.add(a.L);var T=this.Z.get(l);if(m){var y;if(this.playback.getVideoData().WN()&&((y=this.T)==null?0:y.SN)&&this.j){this.Cn=0;this.T=void 0;this.lT&&(this.events.DT(this.lT),this.lT=null);this.j="";this.St=!0;return}}else if(this.nx({enterAdCueRange:1}),this.playback.getVideoData().WN()&& (T==null?0:T.PC))return;if(this.St&&!this.T)this.St=!1,!m&&T&&(m=this.playback.getCurrentTime(),r3(this,{ou:a,isAd:!0,K6:!0,Su:m,adCpn:l},{isAd:!1,K6:!1,Su:m}),this.C5=T.cpn,this.tK(T.cpn),YD(this,T),a=Xa(this,"midab",T),this.nx(a),this.Cn=1),this.J=!1;else if(this.T){if(this.T.K6)this.nx({a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.Su,cpn:l,currentTime:this.playback.getCurrentTime()}),T=this.playback.getCurrentTime(),a={ou:a,isAd:!m,K6:!0,Su:T,adCpn:l},l={ou:this.T.ou, isAd:this.T.isAd,K6:!1,Su:T,adCpn:this.T.adCpn},this.T.ou&&this.Mj.delete(this.T.ou.L),r3(this,a,l);else{if(this.T.ou===a){this.nx({same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.Su,cpn:l,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.T=void 0;return}if(this.T.adCpn===l){l&&this.nx({dchtsc:l});this.T=void 0;return}a={ou:a,isAd:!m,K6:!0,Su:this.playback.getCurrentTime(),adCpn:l};r3(this,a,this.T)}this.T=void 0;this.J=!1}else this.T= {ou:a,isAd:!m,K6:!0,Su:this.playback.getCurrentTime(),adCpn:l}}; g.Z.tK=function(a){var l=this.app.CH().K[a]||null;l?(a=this.Z.has(a),M1H(this.app.CH(),l,a)):this.nx({no_sscp_for_cpn:a})}; g.Z.onCueRangeExit=function(a){var l=a.getId();this.nx({oncueExit:1,cpn:l,start:a.start,end:a.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ja()||0).toFixed(3)});var m=l==="",T=this.Z.get(l);if(this.playback.getVideoData().WN()&&!m&&T){if(T.PC)return;T.PC=!0;this.N.clear();if(this.aj.V("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.xZ()){var y=T.HF;this.playback.dF(y/1E3,(y+T.durationMs)/1E3)}else this.playback.Tu("lifa",{remove:0})}if(this.Mj.has(a.L))if(this.Mj.delete(a.L), this.AM=this.AM.filter(function(R){return R!==a}),this.St&&(this.J=this.St=!1,this.nx({cref:1})),this.T){if(this.T.K6){if(this.T.ou===a){this.nx({same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.Su,cpn:l,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.T=void 0;return}if(this.T.adCpn===l){l&&this.nx({dchtsc:l});this.T=void 0;return}l={ou:a,isAd:!m,K6:!1,Su:this.playback.getCurrentTime(),adCpn:l};r3(this,this.T,l)}else if(this.nx({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.Su,upcomingCpn:l,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.T.adCpn===l)return;this.T=void 0;this.J=!1}else this.T={ou:a,isAd:!m,K6:!1,Su:this.playback.getCurrentTime(),adCpn:l};else this.nx({ignore_single_exit:1})}; g.Z.VQ=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,HF:0,playerType:1,cN:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.Z.Yp=function(){if(this.j4)return!1;var a=void 0;this.C5&&(a=this.Z.get(this.C5));return this.playback.getVideoData().WN()?!!a&&!a.PC:!!a}; g.Z.seekTo=function(a,l,m,T){a=a===void 0?0:a;l=l===void 0?{}:l;m=m===void 0?!1:m;T=T===void 0?null:T;if(this.playback.getVideoData().WN()&&a<=this.HZ/1E3)this.playback.pauseVideo(),this.HZ=0,this.J=!0,this.playback.M2(),this.playback.seekTo(a),this.playback.playVideo();else if(this.J=!0,m)WO3(this,a,l);else{m=this.app.Qg();var y=m===this.tM?this.ZR:null;lN(this,!1);this.SW=a;this.QO=l;T!=null&&this.uZ.start(T);m&&(this.ZR=y||m.getPlayerState(),m.D2(l),this.tM=m)}}; g.Z.sL=function(){lN(this,!1);KO5(this);zhz(this);g.k.prototype.sL.call(this)}; g.Z.Dw=function(a){this.Ug=a;this.nx({swebm:a})}; g.Z.UH=function(a,l,m){if(m&&l){var T=this.N.get(a);if(T){T.locations||(T.locations=new Map);var y=Number(l.split(";")[0]);m=new g.K_(m);this.nx({hdlredir:1,itag:l,seg:a,hostport:vx(m)});T.locations.set(y,m)}}}; g.Z.X0=function(a,l,m,T,y,R){var H=T===3,b=$Yp(this,a,l,T,m,R);if(!b){TB(this,l,H);var M=g.vEt(this,l)?"undec":"ncp";this.nx({gvprp:M,mt:a,seg:l,tt:T,itag:m,ce:R});return null}H||this.N.set(l,b);R=b.iS;var d;T=((d=this.Em(l-1,T,y))==null?void 0:d.z4)||"";T===""&&this.nx({eds:1});d=Sm3(this,b.ssdaiAdsConfig);y=this.playback.getVideoData();var A;H=((A=y.L)==null?void 0:A.containerType)||0;A=y.NU[H];b=b.n6&&l>=b.n6?b.n6:void 0;A={EA:R?kK7(this,R):[],wx:d,z4:T,VC:b,lB:Lm(A.split(";")[0]),Tp:A.split(";")[1]|| ""};b={W7:A};this.yg&&(a={gvprpro:"v",sq:l,mt:a.toFixed(3),itag:m,acpns:((M=A.EA)==null?void 0:M.join("_"))||"none",abid:R},this.nx(a));return b}; g.Z.Yg=function(a){a:{if(!this.j4){var l=sJt(this,a);if(!(this.playback.getVideoData().WN()&&(l==null?0:l.PC)))break a}l=void 0}var m=l;if(!m)return this.nx({gvprp:"ncp",mt:a}),null;l=m.iS;var T=Sm3(this,m.ssdaiAdsConfig);m=m.n6&&m.gZ&&a>=m.gZ?m.n6:void 0;var y=this.playback.getVideoData(),R,H=((R=y.L)==null?void 0:R.containerType)||0;R=y.NU[H];R={EA:l?kK7(this,l):[],wx:T,VC:m,lB:Lm(R.split(";")[0]),Tp:R.split(";")[1]||""};var b;a={gvprpro:"v",mt:a.toFixed(3),acpns:((b=R.EA)==null?void 0:b.join("_"))|| "none",abid:l};this.nx(a);return R}; g.Z.Tf=function(a,l,m,T,y,R){var H=Number(m.split(";")[0]),b=T===3;a=$Yp(this,a,l,T,m,R);this.nx({gdu:1,seg:l,itag:H,pb:""+!!a});if(!a)return TB(this,l,b),null;a.locations||(a.locations=new Map);if(!a.locations.has(H)){var M,d;R=(M=a.videoData.getPlayerResponse())==null?void 0:(d=M.streamingData)==null?void 0:d.adaptiveFormats;if(!R)return this.nx({gdu:"noadpfmts",seg:l,itag:H}),TB(this,l,b),null;M=R.find(function(G){return G.itag===H}); if(!M||!M.url){var A=a.videoData.videoId;a=[];var P=g.c(R);for(T=P.next();!T.done;T=P.next())a.push(T.value.itag);this.nx({gdu:"nofmt",seg:l,vid:A,itag:H,fullitag:m,itags:a.join(",")});TB(this,l,b);return null}a.locations.set(H,new g.K_(M.url,!0))}R=a.locations.get(H);if(!R)return this.nx({gdu:"nourl",seg:l,itag:H}),TB(this,l,b),null;R=new ti(R);this.Ug&&(R.get("dvc")?this.nx({dvc:R.get("dvc")||""}):R.set("dvc","webm"));(T=(P=this.Em(l-1,T,y))==null?void 0:P.z4)&&R.set("daistate",T);a.n6&&l>=a.n6&& R.set("skipsq",""+a.n6);(P=this.playback.getVideoData().clientPlaybackNonce)&&R.set("cpn",P);P=[];a.iS&&(P=kK7(this,a.iS),P.length>0&&R.set("acpns",P.join(",")));b||this.N.set(l,a);b=null;b=R.get("aids");T=R.eb();(T==null?void 0:T.length)>2048&&this.nx({urltoolong:1,sq:l,itag:H,len:T.length});this.yg&&(T&&(R=a.cpn,y=a.iS,IoH(this,R,y),y&&!this.EG.has(y)&&(R=nEQ(this,R,y),M=wmw(this,y),this.nx({iofa:R}),this.nx({noawnzd:M-R}),this.nx({acpns:P.join("."),aids:(A=b)==null?void 0:A.replace(/,/g,".")}), this.EG.add(y))),this.nx({gdu:"v",seg:l,itag:m,ast:a.HF.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));return T}; g.Z.xE=function(a,l,m){m=m===void 0?!1:m;var T=mA(this,a,l);if(T){var y=void 0,R=T.iS;if(R){this.nx({skipadonsq:l,sts:m,abid:R,acpn:T.cpn,avid:T.videoData.videoId});m=this.B.get(R);if(!m)return;m=g.c(m);for(R=m.next();!R.done;R=m.next())R=R.value,R.n6=l,R.gZ=a,R.HF>T.HF&&(y=R)}this.j=T.cpn;foz(this);a=this.playback.getCurrentTime();Uy(this,T,y,a,a,!1,!0)}}; g.Z.Mm=function(){for(var a=g.c(this.K),l=a.next();!l.done;l=a.next())l=l.value,l.n6=NaN,l.gZ=NaN;foz(this);this.nx({rsac:"resetSkipAd",sac:this.j});this.j=""}; g.Z.Em=function(a,l,m){return this.Kx.Em(a,l,m)}; g.Z.QU=l7(63); g.Z.zD=function(a,l,m,T,y,R,H,b,M){T.length>0&&this.nx({onssinfo:1,sq:a,start:l.toFixed(3),cpns:T.join(","),ds:y.join(","),isVideo:H?1:0});M&&this.Kx.zD(a,H,b,M);if(H){if(T.length&&y.length)for(this.j&&this.j===T[0]&&this.nx({skipfail:1,sq:a,acpn:this.j}),a=l+this.jc(),H=0;H0&&(this.Cn=0,this.C5="",this.api.publish("serverstitchedvideochange"));this.playback.cX(m,T);return!0}; g.Z.UM=function(){this.nx({rstdaist:1});this.Kx.clearAll()}; g.Z.Me=function(a){var l;if(a!==((l=this.jt)==null?void 0:l.identifier))this.nx({ignorenoad:a});else{this.lZ.add(a);this.nx({noadrcv:a});var m;((m=this.jt)==null?void 0:m.identifier)===a&&uO(this)}}; g.Z.dc=function(a){if(this.j4)return this.nx({dai_disabled:a.event}),!1;if(this.playback.getVideoData().WN()&&(this.aj.V("html5_lifa_no_gab_on_predict_start")&&a.event==="predictStart"||a.event==="continue"||a.event==="stop"))return this.nx({cuepoint_skipped:a.event}),!1;var l=eO(this.api.iZ());if(l=l?l.dc(a):!1)this.Ij={Fi:a.identifier,OW:a.startSecs};else if(this.Ij&&this.Ij.Fi===a.identifier&&a.startSecs>this.Ij.OW+1){this.nx({cueStChg:a.identifier,oldSt:this.Ij.OW.toFixed(3),newSt:a.startSecs.toFixed(3), abid:this.Ij.UW});if(this.Ij.UW){var m=a.startSecs-this.Ij.OW,T=this.B.get(this.Ij.UW);if(T){T=g.c(T);for(var y=T.next();!y.done;y=T.next())y=y.value,y.HF>=0&&(y.HF+=m*1E3,this.aj.V("html5_ssdai_update_timeline_on_start_time_change")&&(y.cN+=m*1E3),this.nx({newApEt:y.HF,newApPrt:y.cN,acpn:y.cpn}))}}this.Ij.OW=a.startSecs}return l}; g.Z.fA=function(a){return this.j4?!1:!!sJt(this,a)}; g.Z.rZ=function(a){var l=this;if(this.aj.V("html5_lifa_ignore_multiple_skips")&&this.lT)return this.nx({unfinished_skip:this.C5}),!1;this.playback.pauseVideo();var m=this.playback.getCurrentTime(),T=this.aj.V("html5_lifa_reset_segment_index_on_skip"),y=T?m+this.playback.jc():m,R=this.Z.get(this.C5),H=this.L.get(this.C5);if(R){this.j=this.C5;this.J=!1;R.PC=!0;m=this.playback.getCurrentTime();this.T={ou:H,isAd:!0,K6:!1,Su:m,adCpn:this.C5,SN:R,s9j:a};this.playback.OJ(R,this.VQ(),m,this.playback.getCurrentTime(), !1,!0,a,(0,g.E)());T&&this.playback.F5();if(H==null?0:H.start)this.HZ=m*1E3-H.start;this.N.clear();this.playback.M2();a=this.VQ();this.C5=a.cpn;this.tK(a.cpn);this.api.publish("serverstitchedvideochange");this.playback.seekTo(y,{seekSource:89,hW:"lifa_skip"});this.playback.playVideo();this.lT||(this.lT=this.events.W(this.api,"progresssync",function(){l.WD(R)})); return!0}this.nx({skipFail:m},!0);return!1}; g.Z.nx=function(a,l){((l===void 0?0:l)||this.yg||this.playback.getVideoData().WN())&&this.playback.Tu("sdai",a)}; var QJQ=0;g.W(C8H,g.xD);g.Z=C8H.prototype;g.Z.onCueRangeEnter=function(a){var l=a.getId();this.playback.Tu("sdai",{oncueEnter:1,cpn:l,start:a.start,end:a.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ja()||0).toFixed(3)});a=this.Z.get(l);this.playback.Tu("sdai",{enterAdCueRange:1});l=this.C5||this.VQ().cpn;var m;l=(m=this.Z.get(l))!=null?m:this.VQ();a&&(m={PP:l,HP:a,dQ:this.playback.getCurrentTime()},this.FQ(m))}; g.Z.onCueRangeExit=function(a){var l=this.playback.getCurrentTime()*1E3;a=a.getId();for(var m=g.c(this.L.values()),T=m.next();!T.done;T=m.next())if(T=T.value,T.getId()!==a&&l>=T.start&&l<=T.end)return;if(l=this.Z.get(a))l={PP:l,HP:this.VQ(),dQ:this.playback.getCurrentTime()},this.FQ(l)}; g.Z.FQ=function(a){this.j||this.J||Ra(this,this.C5);var l=a.PP,m=a.HP;if(m.cpn===this.C5)this.playback.Tu("sdai",{igtranssame:1,enter:m.cpn,exit:l.cpn});else{var T=this.J,y=!!this.j;this.j="";var R=a.dQ,H=l.playerType===2?l.HF/1E3+l.videoData.wW:this.VQ().videoData.wW;this.api.V("html5_ssdai_enable_media_end_cue_range")&&(y||T||l.playerType!==2?(T||y)&&this.nx({mecr:0,seek:T,skip:y}):this.api.yF(l.cpn));if(l.playerType===2&&m.playerType===2)y?this.playback.Tu("sdai",{igtransskip:1,enter:m.cpn,exit:l.cpn, seek:T,skip:this.j}):Uy(this,l,m,H,R,T,y);else{this.C5=m.cpn;this.tK(m.cpn);a=a.Iuj;if(l.playerType===1&&m.playerType===2){this.HZ=0;YD(this,m);var b=Xa(this,"c2a",m);this.playback.Tu("sdai",b);this.Cn++}else if(l.playerType===2&&m.playerType===1){b=l.videoData.wW;this.api.publish("serverstitchedvideochange");var M=Xa(this,"a2c");this.playback.Tu("sdai",M);this.Cn=0;this.HZ=b*1E3;this.nR=H;xYH(this,l.iS)}this.playback.OJ(l,m,H,R,T,y,a)}this.j="";this.J=!1}}; g.Z.seekTo=function(a,l,m,T){a=a===void 0?0:a;l=l===void 0?{}:l;m=m===void 0?!1:m;T=T===void 0?null:T;Ra(this,this.C5);this.playback.getVideoData().WN()&&a<=this.nR?(this.playback.pauseVideo(),this.nR=this.HZ=0,EE5(this,a)):g.xD.prototype.seekTo.call(this,a,l,m,T)}; g.Z.xE=function(a,l,m){m=m===void 0?!1:m;var T=mA(this,a,l);if(T){var y=void 0,R=T.iS;if(R){this.playback.Tu("sdai",{skipadonsq:l,sts:m,abid:R,acpn:T.cpn,avid:T.videoData.videoId});m=this.B.get(R);if(!m)return;m=g.c(m);for(R=m.next();!R.done;R=m.next())R=R.value,R.n6=l,R.gZ=a,R.HF>T.HF&&(y=R)}Ra(this,this.C5);this.j=T.cpn;foz(this);a=this.playback.getCurrentTime();Uy(this,T,y,a,a,!1,!0);this.j="";this.J=!1}}; g.Z.zD=function(a,l,m,T,y,R,H,b,M){T.length>0&&this.playback.Tu("sdai",{onssinfo:1,sq:a,start:l.toFixed(3),cpns:T.join(","),ds:y.join(","),isVideo:H?1:0});M&&this.Kx.zD(a,H,b,M);if(H){if(T.length&&y.length)for(this.j&&this.j===T[0]&&this.playback.Tu("sdai",{skipfail:1,sq:a,acpn:this.j}),a=l+this.jc(),m=0;m=0&&this.K.splice(a,1)};g.W(uo5,g.k);g.Z=uo5.prototype;g.Z.onCueRangeEnter=function(a){if(this.T===this.app.Qg()){var l=this.K.get(a);l?lTp(this,l.target,l.Xx,a):this.yP("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(l=this.L.find(function(y){return y.kB.ou===a})){var m=l.kB,T=m.target; m=m.Xx;T?lTp(this,T,m,a):aTl(this,l.cN,m,a)}}; g.Z.onQueuedVideoLoaded=function(){var a=this.B;gA(this);if(a){if(!bN(this,a)){var l=this.app.Qg();this.yP("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:l==null?void 0:l.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.app.Qg().addCueRange(a.kB.ou)}}; g.Z.seekTo=function(a,l,m,T){a=a===void 0?0:a;l=l===void 0?{}:l;T=T===void 0?null:T;if(m===void 0?0:m)DYw(this,a,l);else{m=this.app.Qg()||null;var y=m===this.j?this.C:null;MG(this,!1);this.Ij=a;this.N=l;T!=null&&this.J.start(T);m&&(this.C=y||m.getPlayerState(),m.D2(),this.j=m)}}; g.Z.Nw=function(a){g.Wr(a,128)&&HXl(this)}; g.Z.isManifestless=function(){return P9(this.T.getVideoData())}; g.Z.sL=function(){MG(this,!1);bXP(this);g.k.prototype.sL.call(this)}; g.Z.yP=function(a,l){this.T.yP(new O_(a,l))}; var XmP=0;var got="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.W(iN,g.k);iN.prototype.eU=function(a){if(a)return this.L.get(a)}; iN.prototype.sL=function(){this.T.removeAll();this.L.removeAll();g.k.prototype.sL.call(this)};g.wI9=V6(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(l){return l.name}});g.W(AX7,g.x);g.Z=AX7.prototype;g.Z.qL=function(){g.i0(this.element,g.Jz.apply(0,arguments))}; g.Z.oa=function(){this.Gx&&(this.Gx.removeEventListener("focus",this.VG),g.HI(this.Gx),this.Gx=null)}; g.Z.BP=function(){this.FO();var a=this.app.Y();a.lh||this.qL("tag-pool-enabled");a.C&&this.qL(g.rP.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.qL("ytp-gvn"),this.element.style.backgroundColor="transparent");a.SW&&(this.Up=g.g6("yt-dom-content-change",this.resize,this));this.W(window,"orientationchange",this.resize,this);this.W(window,"resize",this.resize,this)}; g.Z.W8=function(a){g.J$(this.app.Y());this.aF=!a;dA(this)}; g.Z.resize=function(){if(this.Gx){var a=this.jH();if(!a.isEmpty()){var l=!g.fm(a,this.fZ.getSize()),m=ZXt(this);l&&(this.fZ.width=a.width,this.fZ.height=a.height);a=this.app.Y();(m||l||this.PD||a.SW)&&this.app.bT.publish("resize",this.getPlayerSize())}}}; g.Z.xW=function(a,l){this.updateVideoData(l)}; g.Z.updateVideoData=function(a){if(this.Gx){var l=this.app.Y();Xz&&(this.Gx.setAttribute("x-webkit-airplay","allow"),a.title?this.Gx.setAttribute("title",a.title):this.Gx.removeAttribute("title"));this.Gx.setAttribute("controlslist","nodownload");l.eI&&a.videoId&&(this.Gx.poster=a.UF("default.jpg"))}l=g.tU(a,"yt:bgcolor");this.Mu.style.backgroundColor=l?l:"";this.N1=iR(g.tU(a,"yt:stretch"));this.nD=iR(g.tU(a,"yt:crop"),!0);g.AM(this.element,"ytp-dni",a.Rh);this.resize()}; g.Z.setGlobalCrop=function(a){this.tG=iR(a,!0);this.resize()}; g.Z.setCenterCrop=function(a){this.qJ=a;this.resize()}; g.Z.tE=function(){}; g.Z.getPlayerSize=function(){var a=this.app.Y(),l=this.app.bT.isFullscreen(),m=a.externalFullscreen&&g.vS(a);if(l&&DC()&&!m)return new g.Sk(window.outerWidth,window.outerHeight);m=!isNaN(this.H6.width)&&!isNaN(this.H6.height);var T=this.app.Y().V("kevlar_player_enable_squeezeback_fullscreen_sizing");if(l&&!m&&T)return new g.Sk(this.element.clientWidth,this.element.clientHeight);if(l||a.xe){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.jG&&this.jG.media=== a||(this.jG=window.matchMedia(a));var y=this.jG&&this.jG.matches}if(y)return new g.Sk(window.innerWidth,window.innerHeight)}else if(m)return this.H6.clone();return new g.Sk(this.element.clientWidth,this.element.clientHeight)}; g.Z.jH=function(){var a=this.app.Y().V("enable_desktop_player_underlay"),l=this.getPlayerSize(),m=g.PU(this.app.Y().experiments,"player_underlay_min_player_width");return a&&this.e3&&l.width>m?(a=g.PU(this.app.Y().experiments,"player_underlay_video_width_fraction"),new g.Sk(Math.min(l.height*this.getVideoAspectRatio(),l.width*a),Math.min(l.height,l.width*a/this.getVideoAspectRatio()))):l}; g.Z.getVideoAspectRatio=function(){return isNaN(this.N1)?G3d(this):this.N1}; g.Z.getVideoContentRect=function(a){var l=this.jH();a=VTd(this,l,this.getVideoAspectRatio(),a);return new g.Jq((l.width-a.width)/2,(l.height-a.height)/2,a.width,a.height)}; g.Z.Ni=function(a){this.e3=a;this.resize()}; g.Z.MR=function(){return this.G0}; g.Z.onMutedAutoplayChange=function(){dA(this)}; g.Z.setInternalSize=function(a){g.fm(this.H6,a)||(this.H6=a,this.resize())}; g.Z.sL=function(){this.Up&&g.MQ(this.Up);this.oa();g.x.prototype.sL.call(this)};g.Z=cXd.prototype;g.Z.click=function(a,l){this.elements.has(a);this.T.has(a);var m=g.KU();m&&a.visualElement&&g.iT(m,a.visualElement,l)}; g.Z.createClientVe=function(a,l,m,T){var y=this;T=T===void 0?!1:T;this.elements.has(a);this.elements.add(a);m=PRH(m);a.visualElement=m;var R=g.KU(),H=g.Os();R&&H&&(g.Q7("combine_ve_grafts")?fo(sa(),m,H):g.me(g.rE)(void 0,R,H,m));l.addOnDisposeCallback(function(){y.elements.has(a)&&y.destroyVe(a)}); T&&this.L.add(a)}; g.Z.createServerVe=function(a,l,m){var T=this;m=m===void 0?!1:m;this.elements.has(a);this.elements.add(a);l.addOnDisposeCallback(function(){T.destroyVe(a)}); m&&this.L.add(a)}; g.Z.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.Z.delete(a);this.T.delete(a);this.L.delete(a)}; g.Z.kq=function(a,l){this.clientPlaybackNonce!==l&&(this.clientPlaybackNonce=l,So(sa(),a),Lxd(this))}; g.Z.setTrackingParams=function(a,l){this.elements.has(a);l&&(a.visualElement=g.Fd(l))}; g.Z.zx=function(a,l,m){this.elements.has(a);l?this.T.add(a):this.T.delete(a);var T=g.KU(),y=a.visualElement;this.L.has(a)?T&&y&&(l?g.gx(T,[y]):g.MX(T,[y])):l&&!this.Z.has(a)&&(T&&y&&g.bT(T,y,void 0,m),this.Z.add(a))}; g.Z.hasVe=function(a){return this.elements.has(a)};g.W(g.Pu,g.k);g.Pu.create=function(a,l,m,T){try{var y=typeof a==="string"?a:"player"+g.y5(a),R=QE[y];if(R){try{R.dispose()}catch(b){g.kt(b)}QE[y]=null}var H=new g.Pu(a,l,m,T);H.addOnDisposeCallback(function(){QE[y]=null;H.tR&&H.tR()}); return QE[y]=H}catch(b){throw g.kt(b),(b&&b instanceof Error?b:Error(String(b))).stack;}}; g.Z=g.Pu.prototype;g.Z.Fm=function(){return this.visibility}; g.Z.S9=function(a){var l=this.jW();if(a!==l){a.getVideoData().autonavState=l.getVideoData().autonavState;l.YE(this.BG,this);var m=l.getPlaybackRate();l.dispose();this.uM.S9(a);a.setPlaybackRate(m);a.H7(this.BG,this);OXl(this)}}; g.Z.kd=function(){this.DI||(this.DI=g.gs(nq(),WKQ()));return this.DI}; g.Z.oa=function(a){if(this.mediaElement){this.SZ&&(this.events.DT(this.SZ),this.SZ=null);g.$H(this.WB);this.Qg().oa(!0,!1,a);this.template.oa();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.hD()}catch(l){g.nU(l)}this.mediaElement=null}}; g.Z.X9=function(a,l,m){m=m===void 0?!1:m;if(a!==this.Qg()){this.logger.debug(function(){return"start set presenting player, type "+a.getPlayerType()+", vid "+a.getVideoData().videoId}); var T=null;m||(m=this.Qg(),T=m.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),tO(this.r7,3),Bu(this,"cuerangesremoved",m.SH()),this.XX&&!a.isGapless()&&m.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),m=a.TJ()&&m.TJ(),this.CE.Ji("iv_s"),k3w(this,m));a.getPlayerType()===1&&this.S9(a);BcR(this,a);this.uM.X9(a);this.mediaElement&&a.setMediaElement(this.mediaElement);a.H7(this.GI,this);a.Wt()?j67(this,"setPresenting",!1):(this.xW("newdata",a,a.getVideoData()), T&&!g.jC(T,a.getPlayerState())&&this.jL(new g.pu(a.getPlayerState(),T)),l=l&&this.V("html5_player_preload_ad_fix")&&a.getPlayerType()===1,a.w9()&&!l&&this.xW("dataloaded",a,a.getVideoData()),(l=(l=a.getVideoData().L)&&l.video)&&this.bT.Fe("onPlaybackQualityChange",l.quality),Bu(this,"cuerangesadded",a.SH()),l=a.getPlayerState(),g.u(l,2)?JXb(this):g.u(l,8)?a.playVideo():a.Oa()&&a.pauseVideo(),l=this.jW(),a.getPlayerType()===2&&(a.getVideoData().gD=l.getVideoData().clientPlaybackNonce),a.getPlayerType()!== 2||this.Gt()||(T=a.getVideoData(),l.SE(T.clientPlaybackNonce,T.Aa||"",T.breakType||0,T.Dv,T.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.Z.Hq=function(){if(this.jW()!==this.Qg()){var a=this.Qg();this.logger.debug(function(){return"release presenting player, type "+a.getPlayerType()+", vid "+a.getVideoData().videoId}); this.X9(this.jW())}}; g.Z.CH=function(){return this.uM}; g.Z.BY=function(a){return this.uM.BY(a)}; g.Z.EQ=function(a){return this.uM.EQ(a)}; g.Z.jW=function(){return this.uM.jW()}; g.Z.Qg=function(){return this.uM.Qg()}; g.Z.oT=l7(50);g.Z.pzO=function(){cu(this)||(this.logger.debug("application playback ready"),this.cZ(5))}; g.Z.ITx=function(){if(!cu(this)){this.logger.debug("playback ready");gjR(this);var a=this.Qg(),l=a.getPlayerState();a.Oa()?this.pauseVideo():l.isOrWillBePlaying()&&this.playVideo()}}; g.Z.canPlayType=function(a){return $9(a)}; g.Z.Y=function(){return this.aj}; g.Z.getVideoData=function(){return this.Qg().getVideoData()}; g.Z.ov=l7(19);g.Z.vY=function(){return this.jW().getVideoData()}; g.Z.getVideoLoadedFraction=function(a){return(a=this.BY({playerType:a}))?a.getVideoLoadedFraction():this.uM.T.getVideoLoadedFraction()}; g.Z.cz=function(){return this.template}; g.Z.iZ=function(){return this.r7}; g.Z.Rg=function(){return this.CE}; g.Z.lJ=function(a){var l=this.BY({playerType:1});l&&l.EJ(a)}; g.Z.Hv=function(){var a=this.r7.Hv();this.bT.publish("videoStatsPingCreated",a);return a}; g.Z.getVolume=function(){return Math.round(this.bT.getVolume())}; g.Z.isMuted=function(){return this.bT.isMuted()}; g.Z.vC=function(){if(this.jW()===this.Qg()&&this.o0)return this.o0.postId}; g.Z.L1u=function(){var a=this;this.V("use_rta_for_player")||(g.OF(this.aj)?g.b1(this.aj,g.wn(this.getVideoData())).then(function(l){wf(nq(),l);kYp(a.getVideoData(),a.aj,a.kd())}):kYp(this.getVideoData(),this.aj,this.kd()))}; g.Z.A7=function(a){this.bT.publish("poTokenVideoBindingChange",a)}; g.Z.I2=function(a){this.bT.publish("d6de4videobindingchange",a)}; g.Z.LX=function(){this.rS&&this.rS.LX()}; g.Z.Ox=function(a){this.rS=a}; g.Z.yA=function(a){if(a===1){this.CE.tick("vr");var l=this.Qg();l.Zt();huQ(this.CE,l.getVideoData(),bB7(this));dGP(this.r7)}l=this.aj;if(RX(l)&&l.J||g.kN(l)){var m;(((m=this.Qg().getVideoData())==null?0:m.enableServerStitchedDai)||!this.Gt())&&this.bT.Fe("onAdStateChange",a)}}; g.Z.setLoopVideo=function(a){var l=this.Qg();l===this.jW()&&l.pn()!==a&&(l.setLoop(a),this.bT.Pz("onLoopChange",a))}; g.Z.getLoopVideo=function(){return this.Qg().pn()}; g.Z.setLoopRange=function(a){var l=!1;!!this.o0!==!!a?l=!0:this.o0&&a&&(l=this.o0.startTimeMs!==a.startTimeMs||this.o0.endTimeMs!==a.endTimeMs||this.o0.postId!==a.postId||this.o0.type!==a.type);if(l){l=this.Qg();qf(l.getVideoData())&&l.Tu("slr",{et:(a==null?void 0:a.endTimeMs)||-1});l=this.jW();l.FJ("applooprange");if(a){var m=new g.Rq(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"});l.addCueRange(m)}else{this.vY().clipConfig=void 0;var T;((m=this.o0)==null?void 0:m.type)!=="repeatChapter"|| isNaN(Number((T=this.o0)==null?void 0:T.loopCount))||(m={loopCount:String(this.o0.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.js("repeatChapterLoopEvent",m))}this.o0=a;this.bT.Pz("onLoopRangeChange",a||void 0);this.jW()===this.Qg()&&(this.AD(),l.g0())}}; g.Z.getLoopRange=function(){return this.o0}; g.Z.AD=function(){var a="",l=this.jW();this.o0?l!==this.Qg()?a="pnea":D0w(this,l.getCurrentTime())&&(this.o0.loopCount=0,a="ilr"):a="nlr";var m=this.Qg();if(qf(m.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var T,y;m.Tu("slrre",{rej:a,ct:l.getCurrentTime(),lst:(T=this.o0)==null?void 0:T.startTimeMs,let:(y=this.o0)==null?void 0:y.endTimeMs})}else m.Tu("slrre",{});a||Xql(this)}; g.Z.setPlaybackRate=function(a,l){if(!isNaN(a)){a=$0H(this,a);var m=this.jW();m.getPlaybackRate()!==a&&(m.setPlaybackRate(a),l&&!this.aj.j&&g.JN("yt-player-playback-rate",a),this.bT.Fe("onPlaybackRateChange",a))}}; g.Z.getCurrentTime=function(a,l){l=l===void 0?!0:l;var m=this.uM.W1;if(m)return m.getCurrentTime();var T=a===2&&this.getVideoData().enableServerStitchedDai;m=null;T?m=this.Qg():m=this.BY({playerType:a});return m?T&&this.tb?(a=this.uM.C)?a.getCurrentTime(l):m.getCurrentTime():l?(l=Wu(this,m),zB(this,l.getCurrentTime(),l)):m.getCurrentTime():this.uM.T.getCurrentTime()}; g.Z.L6=function(){var a=this.BY({playerType:void 0});if(!a)return this.uM.T.L6();a=Wu(this,a);return zB(this,a.L6(),a)}; g.Z.getDuration=function(a,l){l=l===void 0?!0:l;var m=this.getVideoData(),T=a===2&&m.enableServerStitchedDai,y=null;T?y=this.Qg():y=this.BY({playerType:a});if(!y)return this.uM.T.getDuration();if(m.hasProgressBarBoundaries()&&!T){var R,H=Number((R=m.progressBarStartPosition)==null?void 0:R.utcTimeMillis),b;R=Number((b=m.progressBarEndPosition)==null?void 0:b.utcTimeMillis);if(!isNaN(H)&&!isNaN(R))return(R-H)/1E3}if(qf(m)&&!m.isLivePlayback)return OE(this,a);if(l)return a=Zr(this,y),zB(this,a.getDuration(), a);if(T&&this.tb){var M;return((M=this.uM.C)==null?void 0:M.getDuration())||0}return y.getDuration()}; g.Z.V1=function(a){var l=this.BY({playerType:a});return l?this.Gt(l)?(l=Zr(this,l),l.V1()-l.getCurrentTime()+this.getCurrentTime(a)):l.V1():this.uM.T.V1()}; g.Z.AG=function(){return this.h9}; g.Z.addPlayerResponseForAssociation=function(){}; g.Z.finishSegmentByCpn=function(){return[]}; g.Z.BP=function(){this.template.BP();var a=this.bT;a.state.element=this.template.element;var l=a.state.element,m;for(m in a.state.T)a.state.T.hasOwnProperty(m)&&(l[m]=a.state.T[m]);(a=v$t(this.template.element))&&this.events.W(this.template,a,this.onFullscreenChange)}; g.Z.getDebugText=function(a){var l=this.jW().rW(a),m=this.Qg();if(m!==this.jW()){m=m.rW(a);for(var T=g.c(Object.keys(m)),y=T.next();!y.done;y=T.next())y=y.value,l["ad"+y]=m[y];if(a){m=l;T={};if(y=EJ(document,"movie_player"))T.bounds=y.getBoundingClientRect(),T["class"]=y.className;y={};var R=g.ud("video-ads");R?(Gg3(R,y),y.html=R.outerHTML):y.missing=1;R={};var H=g.ud("videoAdUiSkipContainer"),b=g.ud("ytp-ad-skip-button-container"),M=g.ud("ytp-skip-ad-button"),d=H||b||M;d?(Gg3(d,R),R.ima=H?1:0,R.bulleit= b?1:0,R.component=M?1:0):R.missing=1;T=JSON.stringify({player:T,videoAds:y,skipButton:R});m.ad_skipBtnDbgInfo=T}}a&&this.mediaElement&&(l["0sz"]=""+(+Jb(this.mediaElement.getSize())===0),l.op=this.mediaElement.Eo("opacity"),m=this.mediaElement.Xh().y+this.mediaElement.getSize().height,l.yof=""+(+m<=0),l.dis=this.mediaElement.Eo("display"));a&&((a=(0,g.pL)())&&(l.gpu=a),(a=this.aj.playerStyle)&&(l.ps=a),this.aj.St&&(l.webview=1));l.debug_playbackQuality=this.bT.getPlaybackQuality(1);l.debug_date=(new Date).toString(); l.origin=window.origin;l.timestamp=Date.now();delete l.uga;delete l.q;return JSON.stringify(l,null,2)}; g.Z.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Y().experiments.experimentIds.join(", "),player_release:q[24]},l;if(l=this.getPlayerStateObject().p7)a.player_error_code=l.errorCode,a.player_error_details=JSON.stringify(l.errorDetail);return a}; g.Z.getPresentingPlayerType=function(a){if(this.appState===1)return 1;if(cu(this))return 3;var l;return a&&((l=this.tb)==null?0:l.Yp(this.getCurrentTime()))?2:this.Qg().getPlayerType()}; g.Z.hI=function(){return!1}; g.Z.getPlayerStateObject=function(a){var l=this.uM.W1;return l?l.getPlayerState():this.BY({playerType:a}).getPlayerState()}; g.Z.getAppState=function(){return this.appState}; g.Z.hAj=function(a){switch(a.type){case "loadedmetadata":this.e9.start();a=g.c(this.zj);for(var l=a.next();!l.done;l=a.next())l=l.value,HBQ(this,l.id,l.lqx,l.Iqg,void 0,!1);this.zj=[];break;case "loadstart":this.CE.Ji("gv");break;case "progress":case "timeupdate":jy(a.target.dL())>=2&&this.CE.Ji("l2s");break;case "playing":g.Ti&&this.e9.start();if(g.OF(this.aj))a=!1;else{l=g.s2(this.iZ());a=this.mediaElement.Eo("display")==="none"||Jb(this.mediaElement.getSize())===0;var m=jK(this.template),T=this.Qg().getVideoData(), y=g.IE(this.aj);T=b9(T);l=!m||l||y||T||this.aj.wb;a=a&&!l}a&&(a=this.Qg(),a.fV(),this.getVideoData().uZ||(this.getVideoData().uZ=1,this.ZZ(),a.playVideo()))}}; g.Z.NWO=function(a){this.bT.PN("onLoadProgress",a)}; g.Z.iRz=function(){this.bT.publish("playbackstalledatstart")}; g.Z.sf8=function(a,l){this.bT.publish("sabrCaptionsDataLoaded",a,l)}; g.Z.rWN=function(a){this.Qg().Li(a)}; g.Z.PMg=function(a){this.Qg().TY(a)}; g.Z.Evj=function(a){a=Wu(this,this.Qg());a=zB(this,a.getCurrentTime(),a);this.bT.Fe("onVideoProgress",a);this.aj.GX&&m97(this,this.visibility.FX())&&this.pauseVideo()}; g.Z.PZO=function(){this.bT.Fe("onAutoplayBlocked");var a=this.Qg().getVideoData();a&&(a.nf=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.vS(this.aj)&&(a={autoplayBrowserPolicy:ag(),autoplayIntended:lc(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.js("embedsAutoplayStatusChanged",a))}; g.Z.TOL=function(){this.bT.publish("progresssync")}; g.Z.vvM=function(){this.bT.PN("onPlaybackPauseAtStart")}; g.Z.YLg=function(a){if(this.getPresentingPlayerType()===1){g.Wr(a,1)&&!g.u(a.state,64)&&this.vY().isLivePlayback&&this.jW().isAtLiveHead()&&this.bT.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Wr(a,2)){if(this.o0&&this.o0.endTimeMs>=(this.getDuration()-1)*1E3){Xql(this);return}JXb(this)}if(g.u(a.state,128)){var l=a.state;this.cancelPlayback(5);l=l.p7;JSON.stringify({errorData:l,debugInfo:this.getDebugText(!0)});this.bT.Fe("onError",U3P(l.errorCode));this.bT.PN("onDetailedError",{errorCode:l.errorCode, errorDetail:l.errorDetail,message:l.errorMessage,messageKey:l.Xw,cpn:l.cpn});(0,g.E)()-this.aj.Sd>6048E5&&this.bT.PN("onReloadRequired")}l={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!xb("pbresume","ad_to_video")&&xb("_start","ad_to_video")){var m=this.getVideoData();l.clientPlaybackNonce=m.clientPlaybackNonce;m.videoId&&(l.videoId=m.videoId);g.Ex(l,"ad_to_video");C$("pbresume",void 0,"ad_to_video");dGP(this.r7)}this.bT.publish("applicationplayerstatechange",a)}}; g.Z.jL=function(a){this.uM.W1||this.bT.publish("presentingplayerstatechange",a)}; g.Z.Nw=function(a){pt(this,Ps(a.state));g.u(a.state,1024)&&this.bT.isMutedByMutedAutoplay()&&(Fs(this,{muted:!1,volume:this.Yd.volume},!1),h3(this,!1))}; g.Z.Qjz=function(a,l){a==="newdata"&&OXl(this);this.bT.publish("applicationvideodatachange",a,l)}; g.Z.MWL=function(a,l){this.bT.PN("onPlaybackAudioChange",this.bT.getAudioTrack().WF.name);this.bT.publish("internalaudioformatchange",this.bT.getAudioTrack().WF.id,l)}; g.Z.DNK=function(a){var l=this.Qg().getVideoData();a===l&&this.bT.Fe("onPlaybackQualityChange",a.L.video.quality)}; g.Z.Rn=function(){var a=this.uM.Z[2]||null;a&&(a=a.getVideoData(),this.Qg().Tu("ssdai",{cleanaply:1,acpn:a==null?void 0:a.clientPlaybackNonce,avid:a.videoId,isDai:this.vY().enableServerStitchedDai?1:0}),delete this.uM.Z[2])}; g.Z.qgL=function(a,l){this.xW(a,this.Qg(),l)}; g.Z.xW=function(a,l,m){this.logger.debug(function(){return"on video data change "+a+", player type "+l.getPlayerType()+", vid "+m.videoId}); this.aj.bZ()&&l.Tu("vdc",{type:a,vid:m.videoId||"",cpn:m.clientPlaybackNonce||""});l===this.jW()&&(this.aj.Or=m.oauthToken);l===this.jW()&&(this.getVideoData().enableServerStitchedDai&&!this.tb?(this.jW().Tu("sdai",{initSstm:1}),this.tb=this.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?new C8H(this.bT,this.aj,this.jW(),this):new g.xD(this.bT,this.aj,this.jW(),this)):!this.getVideoData().enableServerStitchedDai&&this.tb&&(this.tb.dispose(),this.tb=null,gEQ(this.uM)));if(a==="newdata")this.logger.debug("new video data, destroy modules"), tO(this.r7,2),this.bT.publish("videoplayerreset",l);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.jW()===this.Qg()?(El(m.UL,m.BH),CC3(this)):wq7(this));l.getPlayerType()===1&&(this.aj.Kx&&Ptb(this),this.getVideoData().isLivePlayback&&!this.aj.Ew&&this.ag("html5.unsupportedlive",2,"DEVICE_FALLBACK"),m.isLoaded()&&((RKQ(m)||this.getVideoData().Dk)&&this.bT.publish("legacyadtrackingpingchange",this.getVideoData()),m.hasProgressBarBoundaries()&&U05(this)));this.bT.publish("videodatachange", a,m,l.getPlayerType())}this.bT.Fe("onVideoDataChange",{type:a,playertype:l.getPlayerType()});this.AD();var T=m.ol;T?this.yh.kq(T,m.clientPlaybackNonce):Lxd(this.yh)}; g.Z.vP=function(){NG(this,null);this.bT.PN("onPlaylistUpdate")}; g.Z.FLt=function(a){delete this.v8[a.getId()];this.jW().removeCueRange(a);a:{a=this.getVideoData();var l,m,T,y,R,H,b,M,d,A,P=((l=a.hM)==null?void 0:(m=l.contents)==null?void 0:(T=m.singleColumnWatchNextResults)==null?void 0:(y=T.autoplay)==null?void 0:(R=y.autoplay)==null?void 0:R.sets)||((H=a.hM)==null?void 0:(b=H.contents)==null?void 0:(M=b.twoColumnWatchNextResults)==null?void 0:(d=M.autoplay)==null?void 0:(A=d.autoplay)==null?void 0:A.sets);if(P)for(l=g.c(P),m=l.next();!m.done;m=l.next())if(m= m.value,y=T=void 0,m=m.autoplayVideo||((T=m.autoplayVideoRenderer)==null?void 0:(y=T.autoplayEndpointRenderer)==null?void 0:y.endpoint),T=g.I(m,g.m3),R=y=void 0,m!=null&&((y=T)==null?void 0:y.videoId)===a.videoId&&((R=T)==null?0:R.continuePlayback)){a=m;break a}a=null}(l=g.I(a,g.m3))&&this.bT.Pz("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:l.videoId,watchEndpoint:l})}; g.Z.cZ=function(a){var l=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+l.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(pt(this,-1),pt(this,5)),this.appState=a,this.bT.publish("appstatechange",a))}; g.Z.ag=function(a,l,m,T,y){this.jW().jd(a,l,m,T,y)}; g.Z.Mx=function(a,l){this.jW().handleError(new O_(a,l))}; g.Z.isAtLiveHead=function(a,l){l=l===void 0?!1:l;var m=this.BY({playerType:a});if(!m)return this.uM.T.isAtLiveHead();a=Zr(this,m);m=Wu(this,m);return a!==m?a.isAtLiveHead(zB(this,m.getCurrentTime(),m),!0):a.isAtLiveHead(void 0,l)}; g.Z.EP=function(){var a=this.BY({playerType:void 0});return a?Zr(this,a).EP():this.uM.T.EP()}; g.Z.seekTo=function(a,l,m,T,y){l=l!==!1;if(T=this.BY({playerType:T}))this.appState===2&&t3(this),this.Gt(T)?vu(this)?this.tb.seekTo(a,{seekSource:y},l,m):this.QP.seekTo(a,{seekSource:y},l,m):T.seekTo(a,{mR:!l,cA:m,hW:"application",seekSource:y})}; g.Z.seekBy=function(a,l,m,T){this.seekTo(this.getCurrentTime()+a,l,m,T)}; g.Z.ZRT=function(){this.bT.Fe("SEEK_COMPLETE")}; g.Z.HEg=function(){this.bT.Pz("onAbnormalityDetected")}; g.Z.ORt=function(a){this.bT.Pz("onSnackbarMessage",a)}; g.Z.jfL=function(a){var l=this.Qg(),m=l.getVideoData();if(this.appState===1||this.appState===2)m.startSeconds=a;this.appState===2?g.u(l.getPlayerState(),512)||t3(this):this.bT.Fe("SEEK_TO",a)}; g.Z.dtK=function(){this.bT.publish("airplayactivechange");this.aj.V("html5_external_airplay_events")&&this.bT.PN("onAirPlayActiveChange",this.bT.rL())}; g.Z.XFx=function(){this.bT.publish("airplayavailabilitychange");this.aj.V("html5_external_airplay_events")&&this.bT.PN("onAirPlayAvailabilityChange",this.bT.pB())}; g.Z.showAirplayPicker=function(){this.Qg().Ee()}; g.Z.rNT=function(){this.bT.publish("beginseeking")}; g.Z.z4L=function(){this.bT.publish("endseeking")}; g.Z.getStoryboardFormat=function(a){return(a=this.BY({playerType:a}))?Zr(this,a).getStoryboardFormat():this.uM.T.getStoryboardFormat()}; g.Z.Zv=function(a){return(a=this.BY({playerType:a}))?Zr(this,a).getVideoData().Zv():this.uM.T.Zv()}; g.Z.Gt=function(a){a=(a||this.Qg()).getVideoData();if(vu(this))a=a===this.tb.playback.getVideoData();else a:{var l=this.QP;if(a===l.T.getVideoData()&&l.L.length)a=!0;else{l=g.c(l.L);for(var m=l.next();!m.done;m=l.next())if(a.XU===m.value.XU){a=!0;break a}a=!1}}return a}; g.Z.yY=function(a,l,m,T,y,R,H,b){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n lengthMs="+T+" enterTimeMs="+y}); var M="",d=vu(this);this.Qg().Tu("appattl",{sstm:this.tb?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:d});M=d?ehd(this.tb,a,l,m,T,y,R,H,b):rxl(this.QP,a,m,T,y,R);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+M}); return M}; g.Z.SM=function(a,l,m,T,y,R,H,b){if(vu(this)){var M=ehd(this.tb,a,l,m,T,y,R,H,b);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+M})}return""}; g.Z.Me=function(a){var l;(l=this.tb)==null||l.Me(a)}; g.Z.Ae=function(a,l){a=a===void 0?-1:a;l=l===void 0?Infinity:l;vu(this)||bXP(this.QP,a,l)}; g.Z.TP=function(a,l,m){if(vu(this)){var T=this.tb,y=T.wW.get(a);y?(m===void 0&&(m=y.cN),y.durationMs=l,y.cN=m):T.Ft("Invalid_timelinePlaybackId_"+a+"_specified")}else{T=this.QP;y=null;for(var R=g.c(T.L),H=R.next();!H.done;H=R.next())if(H=H.value,H.XU===a){y=H;break}y?(m===void 0&&(m=y.cN),q17(T,y,l,m)):Hu(T,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; g.Z.enqueueVideoByPlayerVars=function(a,l,m,T){m=m===void 0?Infinity:m;T=T===void 0?"":T;this.Gt();a=new g.Dj(this.aj,a);T&&(a.XU=T);rXd(this,a,l,m)}; g.Z.queueNextVideo=function(a,l,m,T,y){m=m===void 0?NaN:m;a=this.preloadVideoByPlayerVars(a,l===void 0?1:l,m,T===void 0?"":T,y===void 0?"":y);l=this.Qg();a&&(this.V("html5_check_queue_on_data_loaded")?this.Y().supportsGaplessShorts()&&l.getVideoData().B&&(m=this.eh,T=this.XX.B,m.j!==a&&(m.L=l,m.j=a,m.Z=1,m.T=a.getVideoData(),m.K=T,m.T.isLoaded()?m.C():m.T.subscribe("dataloaded",m.C,m))):(m=xg5(l,a,this.XX.B),m!=null?(l.Tu("sgap",m),l.getVideoData().B&&l.jV(!1)):(a=a.getVideoData(),l=this.eh,l.T!== a&&(l.T=a,l.Z=1,a.isLoaded()?l.B():l.T.subscribe("dataloaded",l.B,l)))))}; g.Z.lH=function(a,l,m,T){var y=this;m=m===void 0?0:m;T=T===void 0?0:T;Zr(this,this.Qg()).JD();Rh3(this.XX,a,l,m,T).then(function(){y.bT.PN("onQueuedVideoLoaded")},function(){})}; g.Z.i$=function(){return this.XX.i$()}; g.Z.xQ=function(a){var l=this.XX.T;return l?l.AJ(a):!1}; g.Z.clearQueue=function(a,l){a=a===void 0?!1:a;l=l===void 0?!1:l;this.logger.debug("Clearing queue");this.XX.clearQueue(a,l)}; g.Z.loadVideoByPlayerVars=function(a,l,m,T,y,R){l=l===void 0?1:l;var H=this.jW();if(l===2&&this.vY().enableServerStitchedDai&&H&&!H.Pu())return H.Tu("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:l}),!1;var b=!1;H=new g.Dj(this.aj,a);H.reloadPlaybackParams=R;g.mS(this.aj)&&!H.dR&&ie(this.CE);var M;R=this.CE;var d=(M=H.N)!=null?M:"";R.timerName=d;this.CE.eq("pl_i");this.V("web_player_early_cpn")&&H.clientPlaybackNonce&&this.CE.infoGel({clientPlaybackNonce:H.clientPlaybackNonce});SYQ(H).supportsVp9Encoding=== !1&&this.Qg().Tu("noVp9enc",{});if(this.Y().supportsGaplessShorts()){M=qmp(this.XX,H,l);if(M==null){pt(this,-1);this.aj.bZ()&&this.aj.V("html5_short_gapless_unlisten_after_seek")&&this.Qg().Tu("sgap",{ul:1});a=this.XX;a.app.Y().V("html5_gapless_new_slr")?Kt(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().S0=!0;var A;(A=a.T)==null||A.ma();var P;(P=a.T)==null||P.jJ();m={hW:"gapless_to_next_video",seekSource:60};T=g.PU(a.app.Y().experiments,"html5_gapless_seek_offset"); var G;(G=a.app.Qg())==null||G.seekTo(HEp(a)+T,m);if(!a.app.getPlayerStateObject(l).isPlaying()){var V;(V=a.app.Qg())==null||V.playVideo(!0)}if(a.app.Y().V("html5_short_gapless_unlisten_after_seek")){var p;(p=a.app.Qg())==null||p.X5()}a.C();return!0}G=this.V("html5_shorts_gapless_preload_fallback");V=this.XX.T;G&&V&&!V.FO()&&(p=V.getVideoData(),p=this.aj.V("html5_autonav_autoplay_in_preload_key")?sE(this,l,p):SK(this,l,p.videoId,p.XU),this.uM.j.set(p,V,3600));this.XX.clearQueue(G);this.Qg().Tu("sgap", {f:M})}if(y){for(;H.Fx.length&&H.Fx[0].isExpired();)H.Fx.shift();b=H.Fx.length-1;b=b>0&&y.L(H.Fx[b])&&y.L(H.Fx[b-1]);H.Fx.push(y)}m||(a&&zu7(a)?(YN(this.aj)&&!this.uS&&(a.fetch=0),NG(this,a)):this.playlist&&NG(this,null),a&&(this.uS=qp(!1,a.external_list)));this.bT.publish("loadvideo");l=this.VN(H,l,T);b&&this.ag("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+H.Fx.join()).replace(/[;:,]/g,"_"));return l}; g.Z.preloadVideoByPlayerVars=function(a,l,m,T,y){l=l===void 0?1:l;m=m===void 0?NaN:m;T=T===void 0?"":T;y=y===void 0?"":y;var R="";if(this.aj.V("html5_autonav_autoplay_in_preload_key"))R=lvQ(this,l,a,y);else{var H=dQ(a);R=SK(this,l,H,y)}if(this.uM.j.get(R))return this.logger.debug(function(){return"already preloaded "+R}),null; a=new g.Dj(this.aj,a);y&&(a.XU=y);return av5(this,a,l,m,T)}; g.Z.setMinimized=function(a){this.visibility.setMinimized(a);(a=PN7(this.r7))&&(this.isMinimized()?a.load():a.unload());this.bT.publish("minimized")}; g.Z.setInline=function(a){this.visibility.setInline(a)}; g.Z.setInlinePreview=function(a){this.visibility.setInline(a)}; g.Z.uo=function(a){TJH(this,a)||this.visibility.uo(a)}; g.Z.setSqueezeback=function(a){this.visibility.setSqueezeback(a)}; g.Z.jg=function(){var a,l=(a=this.mediaElement)==null?void 0:a.hN();l&&(this.aj.n3&&Wc(Vo(function(){return document.exitFullscreen()}),function(){}),Wc(Vo(function(){return Np(l)}),function(){}))}; g.Z.zA8=function(){this.mediaElement.hN();this.mediaElement.hN().webkitPresentationMode==="picture-in-picture"?this.uo(!0):this.uo(!1)}; g.Z.togglePictureInPicture=function(){this.Qg().togglePictureInPicture()}; g.Z.VN=function(a,l,m){l=l===void 0?1:l;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+l}); xb("_start",this.CE.timerName)||g.me(f$)(void 0,this.CE.timerName);var T=!1,y=x0d(this,l,a,!1);y?(T=!0,a.dispose()):(y=GB(this,l,a,!0,m),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&y.d0()&&y.rp(),this.e9.stop(),l===1&&l!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,l),this.X9(y));y===this.jW()&&(this.aj.Or=a.oauthToken);if(!y.d0())return!1;if(y===this.jW())return this.cZ(1),m=t3(this),T&&this.V("html5_player_preload_ad_fix")&&y.getPlayerType()===1&& y.w9()&&this.xW("dataloaded",y,y.getVideoData()),m;y.qU();return!0}; g.Z.cueVideoByPlayerVars=function(a,l){var m=this;l=l===void 0?1:l;var T=this.jW();if(this.vY().enableServerStitchedDai&&T&&!T.Pu()&&a&&Object.keys(a).length>0)T.Tu("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:l});else if(a&&zu7(a))if(this.Bt=!0,NG(this,a),(a=g.dd(this.playlist))&&a.Q1())J3(this,a,l);else this.playlist.onReady(function(){Qw(m)}); else{l||(l=this.getPresentingPlayerType());l===1&&this.vP();T=new g.Dj(this.aj,a);var y=g.vS(this.aj)&&!this.aj.lT&&l===1&&!T.isAd()&&!T.Aa;this.bT.publish("cuevideo");y?(this.Qg().getVideoData().loading=!0,B37(T,a?a:{}).then(function(R){J3(m,R,l)}),T.dispose()):J3(this,T,l)}}; g.Z.zX=function(a,l,m,T,y,R,H){if(!a&&!m)throw Error("Playback source is invalid");if(sl(this.aj)||g.Fm(this.aj))return l=l||{},l.lact=zG(),l.vis=this.bT.getVisibilityState(),this.bT.Pz("onPlayVideo",{videoId:a,watchEndpoint:R,sessionData:l,listId:m}),!1;OYp(this.CE);this.CE.reset();a={video_id:a};T&&(a.autoplay="1");T&&(a.autonav="1");R&&(a.player_params=R.playerParams);H&&(a.oauth_token=H);m?(a.list=m,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0}; g.Z.cuePlaylist=function(a,l,m,T){this.Bt=!0;yfP(this,a,l,m,T)}; g.Z.loadPlaylist=function(a,l,m,T){this.Bt=!1;yfP(this,a,l,m,T)}; g.Z.zc=function(){return this.bT.isMutedByMutedAutoplay()?!1:this.uM.W1?!0:!(!this.playlist||!this.playlist.AE())}; g.Z.R9=l7(13); g.Z.nextVideo=function(a,l){var m=g.Tj(this.jW().getVideoData());g.JB(this.bT)&&m?this.zX(m.videoId,l?m.RT:m.sessionData,m.playlistId,l,void 0,m.cL||void 0):this.uS?this.bT.PN("onPlaylistNext"):this.getPresentingPlayerType()===3?g.B(zl(this.r7)).nextVideo():!this.playlist||YN(this.aj)&&!this.bT.isFullscreen()||(this.playlist.AE(a)&&szb(this.playlist,vDR(this.playlist)),this.playlist.loaded?(a=l&&this.aj.V("html5_player_autonav_logging"),l&&this.bT.publish("playlistautonextvideo"),this.VN(g.B(g.dd(this.playlist,void 0, l,a)),1)):this.Bt=!1)}; g.Z.previousVideo=function(a){this.uS?this.bT.PN("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.B(zl(this.r7)).yZ():!this.playlist||YN(this.aj)&&!this.bT.isFullscreen()||(this.playlist.Dz(a)&&szb(this.playlist,$87(this.playlist)),this.playlist.loaded?this.VN(g.B(g.dd(this.playlist)),1):this.Bt=!1)}; g.Z.playVideoAt=function(a){this.uS?this.bT.PN("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.VN(g.B(g.dd(this.playlist,a)),1):this.Bt=!1,szb(this.playlist,a))}; g.Z.getPlaylist=function(){return this.playlist}; g.Z.jM=l7(25);g.Z.WNt=function(a){this.bT.Fe("onCueRangeEnter",a.getId())}; g.Z.JM8=function(a){this.bT.Fe("onCueRangeExit",a.getId())}; g.Z.bC=function(){var a=g.NB(this.iZ());a&&a.bC()}; g.Z.D4=function(a,l,m){var T=this.BY({playerType:l});if(T){if(this.V("html5_ssdai_enable_media_end_cue_range")&&this.tb){T.getPlayerType()===2&&this.tb.Yp(this.getCurrentTime())&&(T=this.jW());for(var y=g.c(a),R=y.next();!R.done;R=y.next())R.value.Z=this.tb.C5}T.D4(a,m);l&&this.getPresentingPlayerType()!==l||Bu(this,"cuerangesadded",a)}}; g.Z.Sw=function(a,l){var m=this.BY({playerType:l});m&&(m.Sw(a),l&&this.getPresentingPlayerType()!==l||Bu(this,"cuerangesremoved",a))}; g.Z.yF=function(a){return this.Qg().yF(a)}; g.Z.Rjt=function(){function a(){var T=l.screenLayer||(l.isMinimized()?3:0),y=g.KU(T);if(y&&y!=="UNDEFINED_CSN"){var R=l.aj.V("web_player_attach_player_response_ve"),H=l.aj.V("web_playback_associated_ve");T={cpn:l.getVideoData().clientPlaybackNonce,csn:y};l.getVideoData().Cx&&(R||H)&&(R=g.Fd(l.getVideoData().Cx),g.bT(y,R),H&&(T.playbackVe=R.getAsJson()));l.getVideoData().queueInfo&&(T.queueInfo=l.getVideoData().queueInfo);y={};l.V("web_playback_associated_log_ctt")&&l.getVideoData().C&&(y.cttAuthInfo= {token:l.getVideoData().C,videoId:l.getVideoData().videoId});g.js("playbackAssociated",T,y)}else g.nU(new g.YH("CSN Missing or undefined during playback association"))} var l=this,m=this.Qg();this.getPresentingPlayerType();huQ(this.CE,m.getVideoData(),bB7(this));Lt(this)&&this.aj.j&&JU(this.vY())==="embedded"&&this.IM&&Math.random()<.01&&g.js("autoplayTriggered",{intentional:this.intentionalPlayback});this.IM=!1;dGP(this.r7);this.V("web_player_defer_ad")&&ITP(this);this.bT.PN("onPlaybackStartExternal");(this.aj.V("mweb_client_log_screen_associated"),oT(this.aj))||a();m={};this.getVideoData().C&&(m.cttAuthInfo={token:this.getVideoData().C,videoId:this.getVideoData().videoId}); m.sampleRate=20;o0("player_att",m);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.aX(this.aj)||g.yX(this.aj)==="MWEB"?g.m$(g.yi(),function(){eK(l)}):eK(this); this.AD();uTz(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.vS(this.aj)&&(m={autoplayBrowserPolicy:ag(),autoplayIntended:lc(this.getVideoData()),autoplayStatus:EIQ(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.js("embedsAutoplayStatusChanged",m))}; g.Z.cNu=function(){this.bT.publish("internalAbandon");$3(this)}; g.Z.onApiChange=function(){var a=this.Qg();this.aj.J?this.bT.Fe("onApiChange",a.getPlayerType()):this.bT.Fe("onApiChange")}; g.Z.bEK=function(){var a=this.mediaElement;a={volume:g.Km(Math.floor(a.getVolume()*100),0,100),muted:a.bH()};a.muted||h3(this,!1);this.Yd=g.mn(a);this.bT.Fe("onVolumeChange",a)}; g.Z.mutedAutoplay=function(a){var l=this.getVideoData().videoId;isNaN(this.LC)&&(this.LC=this.getVideoData().startSeconds);if((a==null?0:a.videoId)||l)this.loadVideoByPlayerVars({video_id:(a==null?0:a.videoId)?a==null?void 0:a.videoId:l,playmuted:!0,start:this.LC,muted_autoplay_duration_mode:a==null?void 0:a.durationMode}),this.bT.PN("onMutedAutoplayStarts")}; g.Z.onFullscreenChange=function(){var a=MA3(this);this.tE(a?1:0);d9P(this,!!a)}; g.Z.tE=function(a){var l=!!a,m=!!this.vj()!==l;this.visibility.tE(a);this.template.tE(l);this.V("html5_media_fullscreen")&&!l&&this.mediaElement&&MA3(this)===this.mediaElement.hN()&&this.mediaElement.YD();this.template.resize();m&&this.CE.tick("fsc");m&&(this.bT.publish("fullscreentoggled",l),a=this.vY(),l={fullscreen:l,videoId:a.b7||a.videoId,time:this.getCurrentTime()},this.bT.getPlaylistId()&&(l.listId=this.bT.getPlaylistId()),this.bT.Fe("onFullscreenChange",l))}; g.Z.e7=function(){return this.visibility.e7()}; g.Z.isFullscreen=function(){return this.visibility.isFullscreen()}; g.Z.vj=function(){return this.visibility.vj()}; g.Z.Ygg=function(){var a=this.vj();a!==0&&a!==1||this.tE(MA3(this)?1:0);a=window.screen.width*window.screen.height;var l=window.outerHeight*window.outerWidth;this.aj.vS?(this.X2=Math.max(this.X2,a,l),a=l/this.X20&&(M=Math.floor(d/1E3))}M=l?l.Da:M;var A={AD_BLOCK:this.T++,AD_BREAK_LENGTH:M,AUTONAV_STATE:nt(this.player.Y()),CA_TYPE:"image",CPN:b.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.EP()*1E3,LACT:zG(),LIVE_INDEX:l?this.Z++:1,LIVE_TARGETING_CONTEXT:l&&l.context?l.context:"",MIDROLL_POS:R? Math.round(R.start/1E3):0,MIDROLL_POS_MS:R?Math.round(R.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.cz().jH().height,P_W:this.player.cz().jH().width,YT_REMOTE:y?y.join(","):""},P=P$(AR);Object.keys(P).forEach(function(V){P[V]!=null&&(A[V.toUpperCase()]=P[V].toString())}); m!==""&&(A.BISCOTTI_ID=m);m={};jn(a)&&(m.sts="20209",(l=this.player.Y().forcedExperiments)&&(m.forced_experiments=l));var G=My(g.fG(a,A),m);return G.split("?").length!==2?f1(Error("Invalid AdBreakInfo URL")):g.b1(this.player.Y(),b==null?void 0:b.oauthToken).then(function(V){if(V&&d0()){var p=nq();wf(p,V)}V=g.B(T.player.kd(p));p=JfH(T,G,A,b.isMdxPlayback,H);return g.Ux(V,p,"/youtubei/v1/player/ad_break").then(function(L){return L})})}; wA.prototype.reset=function(){this.Z=this.T=1};g.W(BJP,wA); BJP.prototype.L=function(a,l,m){l=l===void 0?{}:l;var T=l.r0;var y=l.ou;var R=l.cueProcessedMs;m=m===void 0?"":m;l=this.T;this.T++;var H=this.player.Y().V("h5_disable_macro_substitution_in_get_ad_break")?a:kgH(this,a,{r0:T,ou:y,cueProcessedMs:R},m,l);if(H.split("?").length!==2)return Math.random()<.1&&g.nU(Error("Invalid AdBreakInfo URL")),f1(Error("Invalid AdBreakInfo URL"));var b=this.player.getVideoData(1).isMdxPlayback,M=m;m=K_l.exec(H);m=m!=null&&m.length>=2?m[1]:"";a=zjR.test(H);var d=vjQ.exec(H); d=d!=null&&d.length>=2?d[1]:"";var A=$9p.exec(H);A=A!=null&&A.length>=2&&!Number.isNaN(Number(A[1]))?Number(A[1]):1;var P=s6l.exec(H);P=P!=null&&P.length>=2?P[1]:"0";var G=CR(this.player.Y().Fa),V=g.m0(this.player.getVideoData(1).Cx,!0);Q6b(this,V,H,M===""?"":M,this.player.Y(),this.player.getVideoData(1));M={splay:!1,lactMilliseconds:String(zG()),playerHeightPixels:Math.trunc(this.player.cz().jH().height),playerWidthPixels:Math.trunc(this.player.cz().jH().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20209,autonavState:nt(this.player.Y())};if(b){b={};var p=this.player.Y().Dv;F_7(b,p?p.join(","):"")&&(M.mdxContext=b)}if(b=S4d.includes(G)?void 0:g.ny("PREF")){p=b.split(RegExp("[:&]"));for(var L=0,N=p.length;L1&&e[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}M.autoCaptionsDefaultOn=OB3(b)}H=fvz.exec(H);(H=H!=null&&H.length>=2?H[1]:"")&&d&&(V.user.credentialTransferTokens= [{token:H,scope:"VIDEO"}]);H={contentPlaybackContext:M};M=this.player.getVideoData(1).getGetAdBreakContext();b=this.player.getVideoData(1).clientPlaybackNonce;p=R!==void 0?Math.round(R).toString():void 0;L=(T==null?0:T.context)?T.context:void 0;N=0;R&&y&&!T&&(y=y.end-y.start,y>0&&(N=Math.floor(y/1E3)));T=(T=Math.trunc((T?T.Da:N)*1E3))?String(T):void 0;y=this.player.EP()*1E3;y=Number.isNaN(y)?0:Math.trunc(y);l={adBlock:l,params:m,breakIndex:A,breakPositionMs:P,clientPlaybackNonce:b,topLevelDomain:G, isProxyAdTagRequest:a,context:V,overridePlaybackContext:H,cueProcessedMs:p,videoId:d?d:void 0,liveTargetingParams:L,breakLengthMs:T,driftFromHeadMs:y?String(y):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:M?M:void 0};return njR(this,l)};var CKc={DET:"replaceUrlMacros",pVj:"onAboutThisAdPopupClosed",WmN:"executeCommand"};wDd.prototype.wv=function(){return"adPingingEndpoint"}; wDd.prototype.NL=function(a,l,m){ewP(this.x8.get(),a,l,m)};Ivt.prototype.wv=function(){return"changeEngagementPanelVisibilityAction"}; Ivt.prototype.NL=function(a){this.D.Pz("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};Ctp.prototype.wv=function(){return"loggingUrls"}; Ctp.prototype.NL=function(a,l,m){a=g.c(a);for(var T=a.next();!T.done;T=a.next())T=T.value,ewP(this.x8.get(),T.baseUrl,l,m,T.attributionSrcMode)};g.W(ojQ,g.k);g.W(Ct,g.k);g.Z=Ct.prototype;g.Z.addListener=function(a){this.listeners.push(a)}; g.Z.removeListener=function(a){this.listeners=this.listeners.filter(function(l){return l!==a})}; g.Z.Vy=function(a,l,m,T,y,R,H,b){if(a==="")Vu("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(a!==this.T||m){this.T=a;this.EL.get().Vy(a,l,m,T,y,R,H,b);this.Bz.get().Vy(a,l,m,T,y,R,H,b);var M;(M=this.Ru)==null||M.get().Vy(a,l,m,T,y,R,H,b);this.L.Vy(a,l,m,T,y,R,H,b);M=g.c(this.listeners);for(var d=M.next();!d.done;d=M.next())d.value.Vy(a,l,m,T,y,R,H,b)}else Vu("Duplicate content video loaded signal")}; g.Z.oXO=function(){this.T&&this.xF(this.T)}; g.Z.xF=function(a){this.T=void 0;for(var l=g.c(this.listeners),m=l.next();!m.done;m=l.next())m.value.xF(a)};EE.prototype.KM=function(a,l,m,T,y){x9p(this);this.K=!l&&m===0;var R=this.D.getVideoData(1),H=this.D.getVideoData(2);R&&(this.contentCpn=R.clientPlaybackNonce,this.videoId=R.videoId,this.T=R.C);H&&(this.adCpn=H.clientPlaybackNonce,this.adVideoId=H.videoId,this.adFormat=H.adFormat);this.j=a;T<=0?(x9p(this),this.K=!l&&m===0):(this.actionType=this.K?l?"unknown_type":"video_to_ad":l?"ad_to_video":"ad_to_ad",this.videoStreamType=y?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Z=!0,xb("_start",this.actionType)&&XDd(this)))}; EE.prototype.reset=function(){return new EE(this.D)};g.W(oa,g.k);oa.prototype.addCueRange=function(a,l,m,T,y,R,H){R=R===void 0?3:R;H=H===void 0?1:H;this.T.has(a)?Vu("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Y4d(a,l,m,T,R),this.T.set(a.id,{ou:a,listener:y,Bd:H}),this.D.d7([a],H))}; oa.prototype.removeCueRange=function(a){var l=this.T.get(a);l?(this.D.Yh([l.ou],l.Bd),this.T.delete(l.ou.id)):Vu("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; oa.prototype.onCueRangeEnter=function(a){if(this.T.has(a.id))g.B(this.T.get(a.id)).listener.onCueRangeEnter(a.id)}; oa.prototype.onCueRangeExit=function(a){if(this.T.has(a.id))g.B(this.T.get(a.id)).listener.onCueRangeExit(a.id)}; g.W(Y4d,g.Rq);x3.prototype.addPlayerResponseForAssociation=function(a){this.D.addPlayerResponseForAssociation(a)};Dr.prototype.yA=function(a){this.D.yA(a)}; Dr.prototype.Im=function(a){var l=g.Jz.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.D.Fe.apply(this.D,[a].concat(g.F(l))):this.D.Pz.apply(this.D,[a].concat(g.F(l)))};uN.prototype.UQ=function(a){return a&&Xs(this)};var MH5=null;g.W(gJR,g.Aj);gJR.prototype.uw=function(a){return this.T.hasOwnProperty(a)?this.T[a].uw():{}}; g.Xt("ytads.bulleit.getVideoMetadata",function(a){return Y3().uw(a)}); g.Xt("ytads.bulleit.triggerExternalActivityEvent",function(a,l,m){var T=Y3();m=b65(m);m!==null&&T.publish(m,{queryId:a,viewabilityString:l})});g.Z=UE.prototype;g.Z.PE=function(a,l){if(!this.T.has(a))return{};if(l==="seek"){l=!1;l=l===void 0?!1:l;var m=Xl(y$).d3(a,{});m?rt(m):l&&(a=Xl(y$).LP(null,Nv(),!1,a),a.AO=3,th3([a]));return{}}l=dsp(l);if(l===null)return{};var T=this.D.cS();if(!T)return{};var y=this.D.getPresentingPlayerType(!0);if((m=this.D.getVideoData(y))==null||!m.isAd())return{};m={opt_adElement:T,opt_fullscreen:this.EL.get().isFullscreen()};return t5d(l,a,m)}; g.Z.wu=function(a,l,m,T,y){this.T.has(a)&&(T<=0||y<=0||Xl(y$).wu(a,l,m,T,y))}; g.Z.Lz=function(a){var l;(l=this.T.get(a.queryId))==null||l.Lz()}; g.Z.Td=function(a){var l;(l=this.T.get(a.queryId))==null||l.Td()}; g.Z.s6=function(a){var l;(l=this.T.get(a.queryId))==null||l.s6()}; g.Z.ID=function(a){var l;(l=this.T.get(a.queryId))==null||l.ID()}; g.Z.lC=function(a){var l;(l=this.T.get(a.queryId))==null||l.lC()};chz.prototype.send=function(a,l,m,T){try{LMQ(this,a,l,m,T===void 0?!1:T)}catch(y){}};g.W(Nlt,chz);QDb.prototype.send=function(a,l,m,T){var y=!1;try{if(T==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||T==="ATTRIBUTION_SRC_MODE_XHR_OPTION")y=!0,a=R0d(a);T=y;var R=g.e$(a);if(R[1]==="https")var H=a;else R[1]="https",H=td("https",R[2],R[3],R[4],R[5],R[6],R[7]);var b=H1d(H);R=[];var M;if(M=EYR(H))M=this.ZK.get().D.Y().experiments.XO("add_auth_headers_to_remarketing_google_dot_com_ping");if(jn(H)||M)R.push({headerType:"USER_AUTH"}),R.push({headerType:"PLUS_PAGE_ID"}),R.push({headerType:"VISITOR_ID"}),R.push({headerType:"EOM_VISITOR_ID"}), R.push({headerType:"AUTH_USER"}),R.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:H,scrubReferrer:b,headers:R},l,m,T)}catch(d){}};T1.prototype.ju=function(){return this.D.ju(1)};g.W(yH,g.k);g.Z=yH.prototype;g.Z.D$=function(){return this.D.getVideoData(1).clientPlaybackNonce}; g.Z.addListener=function(a){this.listeners.push(a)}; g.Z.removeListener=function(a){this.listeners=this.listeners.filter(function(l){return l!==a})}; g.Z.Vy=function(){this.Kw.clear();this.H0=null;this.LY.get().clear()}; g.Z.xF=function(){}; g.Z.C0T=function(a,l,m,T,y){l.videoId==="nPpU29QrbiU"&&this.D.Tu("ads_ssm_vdc_s",{pt:m,dvt:a});F2(this.ZK.get())&&a!=="dataloaded"||$sd(this,l,m);if(Xs(this.ZK.get())&&a==="newdata"&&y!==void 0){a=this.D$();var R=l.clientPlaybackNonce,H={};QR(this,"rte",(H.ec=R,H.xc=T==null?void 0:T.clientPlaybackNonce,H.tr=y,H.pt=m,H.ia=R!==a,H.ctp=NN(R),H));l=l.clientPlaybackNonce;T=T==null?void 0:T.clientPlaybackNonce;y=sDz(y);if(y!==1)if(T!==void 0)for(m=g.c(this.listeners),a=m.next();!a.done;a=m.next())a.value.AA(T, l,y);else Vu("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:l,transitionReason:String(y)});y=g.c(this.listeners);for(T=y.next();!T.done;T=y.next())T.value.xP(l)}}; g.Z.yWj=function(a,l){a!==void 0&&(this.H0=a,l===void 0?Vu("Expected ad video start time on SS video changed"):this.Kw.set(a,l));var m=this.D.getPresentingPlayerType(!0),T=this.D.getVideoData(m),y;a===void 0?y=null:y=this.LY.get().T.get(a)||null;this.D.getVideoData(1).Tu("ads_ssvc",{pt:m,cpn:T==null?void 0:T.clientPlaybackNonce,crtt:this.D.getCurrentTime(1,!1),atlh:this.D.isAtLiveHead(),adstt:l,pid:a,slid:y==null?void 0:y.layoutId});T?$sd(this,T,m):Vu("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.D.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; g.Z.FR=function(a,l){var m=a.author,T=a.clientPlaybackNonce,y=a.isListed,R=a.XU,H=a.title,b=a.lS,M=a.Rc,d=a.isMdxPlayback,A=a.P7,P=a.mdxEnvironment,G=a.isAutonav,V=a.GB,p=a.dR,L=a.MH,N=a.videoId||"",e=a.profilePicture||"",t=a.r6||"",v=a.gk()||!1,S=a.WN()||!1;a=a.qF||void 0;R=this.LY.get().T.get(R)||{layoutId:null,slotId:null};var n=this.D.getVideoData(1),X=n.Fl();n=n.getPlayerResponse();l=1E3*this.D.getDuration(l);var D=1E3*this.D.getDuration(1),yp,H5,ad=(n==null?void 0:(yp=n.playerConfig)==null? void 0:(H5=yp.daiConfig)==null?void 0:H5.enableDai)||!1,Md,U;yp=(n==null?void 0:(Md=n.playerConfig)==null?void 0:(U=Md.daiConfig)==null?void 0:U.enablePreroll)||!1;return Object.assign({},R,{videoId:N,author:m,clientPlaybackNonce:T,Hl:l,dk:D,daiEnabled:ad,pT:yp,isListed:y,Fl:X,profilePicture:e,title:H,r6:t,lS:b,Rc:M,qF:a,isMdxPlayback:d,P7:A,mdxEnvironment:P,isAutonav:G,GB:V,dR:p,MH:L,gk:v,WN:S})}; g.Z.sL=function(){this.listeners.length=0;this.Au=null;g.k.prototype.sL.call(this)};g.W(RF,g.k);g.Z=RF.prototype;g.Z.Vy=function(){var a=this;Xs(this.ZK.get())||(this.T=pF(function(){a.D.FO()||a.D.IY("ad",1)}))}; g.Z.xF=function(){}; g.Z.addListener=function(a){this.listeners.push(a)}; g.Z.removeListener=function(a){this.listeners=this.listeners.filter(function(l){return l!==a})}; g.Z.ow=function(){}; g.Z.playVideo=function(){this.D.playVideo()}; g.Z.pauseVideo=function(){this.D.pauseVideo()}; g.Z.resumeVideo=function(a){this.zF(a)&&this.D.playVideo()}; g.Z.zF=function(a){return this.D.getPlayerState(a)===2}; g.Z.getCurrentTimeSec=function(a,l,m){var T=this.Bz.get().H0;if(a===2&&!l&&T!==null)return fGb(this,T);YI(this.ZK.get(),"html5_ssap_use_cpn_to_get_time")||(m=void 0);return m!==void 0?this.D.getCurrentTime(a,l,m):this.D.getCurrentTime(a,l)}; g.Z.getVolume=function(){return this.D.getVolume()}; g.Z.isMuted=function(){return this.D.isMuted()}; g.Z.getPresentingPlayerType=function(){return this.D.getPresentingPlayerType(!0)}; g.Z.getPlayerState=function(a){return this.D.getPlayerState(a)}; g.Z.isFullscreen=function(){return this.D.isFullscreen()}; g.Z.isAtLiveHead=function(){return this.D.isAtLiveHead()}; g.Z.Ni=function(a){this.D.Ni(a)}; g.Z.xNx=function(){var a=this.D.getPresentingPlayerType(!0),l=this.getCurrentTimeSec(a,!1);if(a===2){a=g.c(this.listeners);for(var m=a.next();!m.done;m=a.next())m.value.J$(l)}else if(a===1)for(a=g.c(this.Ez),m=a.next();!m.done;m=a.next())m.value.ow(l)}; g.Z.lTg=function(a){for(var l=g.c(this.listeners),m=l.next();!m.done;m=l.next())m.value.b4(a,this.getPresentingPlayerType())}; g.Z.onFullscreenToggled=function(a){for(var l=g.c(this.listeners),m=l.next();!m.done;m=l.next())m.value.onFullscreenToggled(a)}; g.Z.onVolumeChange=function(){for(var a=g.c(this.listeners),l=a.next();!l.done;l=a.next())l.value.onVolumeChange()}; g.Z.C7=function(){for(var a=this.D.isMinimized(),l=g.c(this.listeners),m=l.next();!m.done;m=l.next())m.value.C7(a)}; g.Z.B4=function(a){for(var l=g.c(this.listeners),m=l.next();!m.done;m=l.next())m.value.B4(a)}; g.Z.Mt=function(){for(var a=this.D.cz().jH(),l=g.c(this.listeners),m=l.next();!m.done;m=l.next())m.value.GS(a)}; g.Z.AV=function(a){for(var l=g.c(this.listeners),m=l.next();!m.done;m=l.next())m.value.AV(a)}; g.Z.S$=function(){for(var a=g.c(this.listeners),l=a.next();!l.done;l=a.next())l.value.S$()};g.W(nJz,g.k);g.W(M1,g.k);M1.prototype.sL=function(){this.Nh.FO()||this.Nh.get().removeListener(this);g.k.prototype.sL.call(this)};iI.prototype.fetch=function(a){var l=a.Fw;return this.T.fetch(a.Uv,{r0:a.r0===void 0?void 0:a.r0,ou:l,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(m){return wGR(m,l)})};g.W(dv,g.k);g.Z=dv.prototype;g.Z.addListener=function(a){this.listeners.push(a)}; g.Z.removeListener=function(a){this.listeners=this.listeners.filter(function(l){return l!==a})}; g.Z.Mz=function(a){IGQ(this,a,1)}; g.Z.onAdUxClicked=function(a,l){je(this,function(m){m.s0(a,l)})}; g.Z.h4=function(a){je(this,function(l){l.XT(a)})}; g.Z.qP=function(a){je(this,function(l){l.dh(a)})}; g.Z.bxN=function(a){je(this,function(l){l.g3(a)})};A6.prototype.reduce=function(a){switch(a.event){case "unknown":return}var l=a.identifier;var m=this.T[l];m?l=m:(m={m4:null,M0:-Infinity},l=this.T[l]=m);m=a.startSecs+a.T/1E3;if(!(m=this.T.startSecs&&m.startSecs<=this.T.startSecs+this.T.Da;if(T){T=void 0;if(hl(this.ZK.get())&&m.identifier!==((T=this.T)==null?void 0:T.identifier)){var y=T=void 0,R=void 0,H=void 0;qC(this.x8.get(),"ocud","ccpi."+m.identifier+";ccpe."+m.event+";ccps."+m.startSecs+";\n ccpd."+m.Da+";pcpi."+((T=this.T)==null?void 0: T.identifier)+";pcpe."+((y=this.T)==null?void 0:y.event)+";\n pcps."+((R=this.T)==null?void 0:R.startSecs)+";pcpd."+((H=this.T)==null?void 0:H.Da)+";")}T=void 0;m.identifier!==((T=this.T)==null?void 0:T.identifier)&&Vu("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=m,xst(this,m)}}}; g.Z.sL=function(){this.L!=null&&(this.L.unsubscribe("cuepointupdated",this.eP,this),this.L=null);this.listeners.length=0;this.j.length=0;g.k.prototype.sL.call(this)};g.Z=VH.prototype;g.Z.yY=function(a,l,m,T,y,R,H){return this.D.yY(a,l,m,T,y,R,H)}; g.Z.Ae=function(a,l){this.D.Ae(a,l)}; g.Z.TP=function(a,l,m){this.D.TP(a,l,m)}; g.Z.Me=function(a){this.D.Me(a)}; g.Z.SM=function(a,l,m,T,y,R,H){return this.D.SM(a,l,m,T,y,R,H)}; g.Z.RV=function(a){return this.D.RV(a)}; g.Z.finishSegmentByCpn=function(a,l,m){m=XG7(m);this.D.finishSegmentByCpn(a,l,m)};g.W(pC,g.k);g.W(Usb,g.k);g.W(rh3,g.k);g.W(abb,g.k);g.W(lbb,g.k);g.W(mkt,g.k);g.W(yYR,g.k);yYR.prototype.Z=function(){return this.L};g.W(R2Q,Xf); R2Q.prototype.j=function(a){var l=a.content;if(l.componentType==="shopping-companion")switch(a.actionType){case 1:case 2:a=this.T.getVideoData(1);this.T.Pz("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.T,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:this.T.Pz("updateKevlarOrC3Companion",{})}else if(l.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.T.getVideoData(1); this.T.Pz("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.T,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l.renderer&&(l=this.T.getVideoData(1),this.T.Pz("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId})),this.T.Pz("updateKevlarOrC3Companion",{})}else if(l.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.T.getVideoData(1);this.T.Pz("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.T,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l=this.T.getVideoData(1),this.T.Pz("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId}),this.T.Pz("updateKevlarOrC3Companion",{})}else if(l.componentType==="top-banner-image-text-icon-buttoned")switch(a.actionType){case 1:case 2:a=this.T.getVideoData(1);this.T.Pz("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.T,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l.renderer&&(l=this.T.getVideoData(1),this.T.Pz("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId})),this.T.Pz("updateKevlarOrC3Companion",{})}else if(l.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.T.getVideoData(1);this.T.Pz("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.T,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l=this.T.getVideoData(1),this.T.Pz("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId}),this.T.Pz("updateKevlarOrC3Companion",{})}else if(l.componentType==="ads-engagement-panel")switch(l=l.renderer,a.actionType){case 1:case 2:this.T.Pz("updateEngagementPanelAction",l.addAction);this.T.Pz("changeEngagementPanelVisibility", l.expandAction);break;case 3:this.T.Pz("changeEngagementPanelVisibility",l.hideAction),this.T.Pz("updateEngagementPanelAction",l.removeAction)}else if(l.componentType==="ads-engagement-panel-layout"){var m=l.renderer;switch(a.actionType){case 1:case 2:this.T.Pz("updateEngagementPanelAction",{action:Es(m.addAction),layoutId:l.layoutId,onLayoutVisibleCallback:l.T,interactionLoggingClientData:l.interactionLoggingClientData});this.T.Pz("changeEngagementPanelVisibility",Es(m.expandAction));break;case 3:this.T.Pz("changeEngagementPanelVisibility", Es(m.hideAction)),this.T.Pz("updateEngagementPanelAction",{action:Es(m.removeAction)})}}};g.W(Hst,yu);g.Z=Hst.prototype;g.Z.init=function(a,l,m){yu.prototype.init.call(this,a,l,m);g.nA(this.Z,"stroke-dasharray","0 "+this.L);this.Z.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.j.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.Z.clear=function(){this.hide()}; g.Z.hide=function(){Hr(this);yu.prototype.hide.call(this)}; g.Z.show=function(){RE(this);yu.prototype.show.call(this)}; g.Z.b1=function(){this.hide()}; g.Z.YW=function(){if(this.T){var a=this.T.getProgressState();a!=null&&a.current!=null&&g.nA(this.Z,"stroke-dasharray",a.current/a.seekableEnd*this.L+" "+this.L)}};g.W(qG7,Wk);g.Z=qG7.prototype; g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);if(l.image&&l.image.thumbnail)if(l.headline)if(l.description)if(l.backgroundImage&&l.backgroundImage.thumbnail)if(l.actionButton&&g.I(l.actionButton,g.nl))if(a=l.durationMilliseconds||0,typeof a!=="number"||a<=0)g.kt(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(l.navigationEndpoint){var T=this.api.getVideoData(2);if(T!=null){var y=l.image.thumbnail.thumbnails;y!=null&& y.length>0&&g.Vk(g.W6(y[0].url))&&(y[0].url=T.profilePicture,g.Vk(g.W6(T.profilePicture))&&OTH("VideoPlayer",239976093,"Expected non-empty profile picture."));y=l.backgroundImage.thumbnail.thumbnails;y!=null&&y.length>0&&g.Vk(g.W6(y[0].url))&&(y[0].url=T.UF());y=l.headline;y!=null&&g.Vk(g.W6(y.text))&&(y.text=T.author)}this.N.init(dx("ad-image"),l.image,m);this.C.init(dx("ad-text"),l.headline,m);this.Z.init(dx("ad-text"),l.description,m);this.St.init(dx("ad-image"),l.backgroundImage,m);T=["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.Z.element.classList.add("ytp-ad-action-interstitial-description-light");T.push("ytp-ad-action-interstitial-action-button-dark");this.api.Y().L&&(T.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),T.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Y().V("enable_unified_action_endcap_on_web")&& !this.api.Y().L&&(T.push("ytp-ad-action-interstitial-action-button-unified"),this.wb.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.rb.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.MA.classList.add("ytp-ad-action-interstitial-card-unified"),this.lT.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.hM.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Cx.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.AM.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Bk(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,T);g.w(this,this.actionButton);this.actionButton.DK(this.wb); this.actionButton.init(dx("button"),g.I(l.actionButton,g.nl),m);x$(this.actionButton.element);T=Ud(this.actionButton.element);Y$(this.actionButton.element,T+" This link opens in new tab");this.navigationEndpoint=l.navigationEndpoint;this.j.W(this.Cx,"click",this.M4,this);this.j.W(this.lT,"click",this.M4,this);!this.api.Y().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.Y().L||this.j.W(this.hM,"click",this.M4,this);this.T=this.mU?new F1(this.api,a):new hw(a);g.w(this,this.T);if(l.skipButton){(a= g.I(l.skipButton,HcD))&&this.T&&(this.skipButton=new cr(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.T,this.H8),g.w(this,this.skipButton),this.skipButton.DK(this.element),this.skipButton.init(dx("skip-button"),a,m));if(m=l.adBadgeRenderer)if(m=g.I(m,RMd))a=new tw(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!0,!0),a.DK(this.AM),a.init(dx("simple-ad-badge"),m,this.macros),g.w(this,a);if(m=l.adInfoRenderer)if(m=g.I(m,B_))a=new lG(this.api,this.layoutId,this.interactionLoggingClientData, this.Y8,this.element,void 0,!0),a.DK(this.AM),a.init(dx("ad-info-hover-text-button"),m,this.macros),g.w(this,a)}else l.nonskippableOverlayRenderer&&(a=g.I(l.nonskippableOverlayRenderer,kP))&&this.T&&(this.L=new g_(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.T,!1),g.w(this,this.L),this.L.DK(this.element),this.L.init(dx("ad-preview"),a,m));l.countdownRenderer&&(l=l.countdownRenderer,g.I(l,qtd)&&this.T&&(m=new Hst(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8, this.T),g.w(this,m),m.DK(this.element),m.init(dx("timed-pie-countdown"),g.I(l,qtd),this.macros)));this.show();this.element.focus()}else g.kt(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.kt(Error("AdActionInterstitialRenderer has no button."));else g.kt(Error("AdActionInterstitialRenderer has no background AdImage."));else g.kt(Error("AdActionInterstitialRenderer has no description AdText."));else g.kt(Error("AdActionInterstitialRenderer has no headline AdText."));else g.kt(Error("AdActionInterstitialRenderer has no image."))}; g.Z.clear=function(){g.$H(this.j);this.hide()}; g.Z.show=function(){bsP(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.L&&this.L.show();Wk.prototype.show.call(this)}; g.Z.hide=function(){bsP(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.L&&this.L.hide();Wk.prototype.hide.call(this)}; g.Z.M4=function(){this.navigationEndpoint&&(this.layoutId?this.Y8.executeCommand(this.navigationEndpoint,this.layoutId):g.kt(Error("Missing layoutId for ad action interstitial.")))};var jKR={iconType:"CLOSE"},LC=new g.Sk(320,63);g.W(dkP,Wk);g.Z=dkP.prototype; g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);this.j=l;this.N=g.NF(this.j.onClickCommands||[]);this.AM=this.j.onErrorCommand||null;if(a=this.j.contentSupportedRenderer)a=this.j.contentSupportedRenderer,l=this.j.adInfoRenderer||null,g.I(a,mjD)?(this.C=g.ud("ytp-ad-overlay-ad-info-button-container",this.Z.element),AY7(this,l),a=GTb(this,g.I(a,mjD))):g.I(a,TG_)?(this.C=g.ud("ytp-ad-overlay-ad-info-button-container",this.L.element),AY7(this,l),a=V07(this,g.I(a,TG_))):g.I(a,y0_)?(this.C= g.ud("ytp-ad-overlay-ad-info-button-container",this.T.element),AY7(this,l),a=phP(this,g.I(a,y0_))):(g.kt(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Zsw(this,!0))}; g.Z.clear=function(){Zsw(this,!1);this.Cx.reset();this.lT=0;this.Z.hide();this.logVisibility(this.Z.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.Z.O5x=function(){this.wb&&(this.layoutId?this.Y8.executeCommand(this.wb,this.layoutId):g.kt(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.Z.UX=function(){a:{if(this.j&&this.j.closeButton&&this.j.closeButton.buttonRenderer){var a=this.j.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.c(a);for(var l=a.next();!l.done;l=a.next())l=l.value,this.layoutId?this.Y8.executeCommand(l,this.layoutId):g.kt(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.Z.Vtj=function(){this.St||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.Z.t4=function(){this.St||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.t4("invideo-overlay")}; g.Z.BbO=function(a){a.target===this.C&&g.ud("ytp-ad-button",this.rb.element).click()};g.W(WR7,yu);g.Z=WR7.prototype;g.Z.init=function(a,l,m){yu.prototype.init.call(this,a,l,m);a=l.durationMs;this.Z=a==null||a===0?0:a+this.T.getProgressState().current*1E3;if(l.text)var T=l.text.templatedAdText;else l.staticMessage&&(T=l.staticMessage);this.messageText.init(dx("ad-text"),T,m);this.messageText.DK(this.L.element);this.j.show(100);this.show()}; g.Z.clear=function(){this.hide()}; g.Z.hide=function(){cYd(this,!1);yu.prototype.hide.call(this);this.L.hide();this.messageText.hide();Hr(this)}; g.Z.show=function(){cYd(this,!0);yu.prototype.show.call(this);RE(this);this.L.show();this.messageText.show()}; g.Z.b1=function(){this.hide()}; g.Z.YW=function(){if(this.T!=null){var a=this.T.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.lT&&a>=this.Z?(this.j.hide(),this.lT=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.Z-a)/1E3)),a!==this.C&&(TD(this.messageText,{TIME_REMAINING:String(a)}),this.C=a)))}};g.W(LRl,Wk);g.Z=LRl.prototype; g.Z.init=function(a,l,m){Wk.prototype.init.call(this,a,l,{});l.image&&l.image.thumbnail?l.headline?l.description?l.actionButton&&g.I(l.actionButton,g.nl)?(this.Z.init(dx("ad-image"),l.image,m),this.L.init(dx("ad-text"),l.headline,m),this.j.init(dx("ad-text"),l.description,m),a=["ytp-ad-underlay-action-button"],this.api.Y().V("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Bk(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8, a),l.backgroundColor&&g.nA(this.element,"background-color",g.Cu(l.backgroundColor)),g.w(this,this.actionButton),this.actionButton.DK(this.C),this.actionButton.init(dx("button"),g.I(l.actionButton,g.nl),m),l=g.PU(this.api.Y().experiments,"player_underlay_video_width_fraction"),this.api.Y().V("place_shrunken_video_on_left_of_player")?(m=this.T,g.dK(m,"ytp-ad-underlay-left-container"),g.M$(m,"ytp-ad-underlay-right-container"),g.nA(this.T,"margin-left",Math.round((l+.02)*100)+"%")):(m=this.T,g.dK(m,"ytp-ad-underlay-right-container"), g.M$(m,"ytp-ad-underlay-left-container")),g.nA(this.T,"width",Math.round((1-l-.04)*100)+"%"),this.api.MR()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.l2.bind(this)),this.api.addEventListener("resize",this.IS.bind(this))):g.kt(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.kt(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.kt(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.kt(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.Z.show=function(){NIp(!0);this.actionButton&&this.actionButton.show();Wk.prototype.show.call(this)}; g.Z.hide=function(){NIp(!1);this.actionButton&&this.actionButton.hide();Wk.prototype.hide.call(this)}; g.Z.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.l2.bind(this));this.api.removeEventListener("resize",this.IS.bind(this));this.hide()}; g.Z.onClick=function(a){Wk.prototype.onClick.call(this,a);this.actionButton&&g.qw(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.Z.l2=function(a){a==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.Z.IS=function(a){a.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):a.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.nA(this.L.element,"font-size",a.width/40+"px")};g.W(N1,Wk); N1.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);l.toggledLoggingParams&&(this.toggledLoggingParams=l.toggledLoggingParams);l.answer&&g.I(l.answer,g.nl)?(a=new Bk(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.DK(this.answer),a.init(dx("ytp-ad-survey-answer-button"),g.I(l.answer,g.nl),m),a.show()):l.answer&&g.I(l.answer,Wt)&&(this.T=new D7(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8, ["ytp-ad-survey-answer-toggle-button"]),this.T.DK(this.answer),g.w(this,this.T),this.T.init(dx("survey-answer-button"),g.I(l.answer,Wt),m));this.show()}; N1.prototype.CP=function(a){this.layoutId?DW(this.Y8,a,this.layoutId,this.macros):(a=new g.YH("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kt(a))}; N1.prototype.onClick=function(a){Wk.prototype.onClick.call(this,a);if(this.api.Y().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; N1.prototype.clear=function(){this.hide()};g.W(QK7,Wk);QK7.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);l.answer&&g.I(l.answer,Wt)&&(this.button=new D7(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.DK(this.T),this.button.init(dx("survey-none-of-the-above-button"),g.I(l.answer,Wt),m));this.show()};g.W(QH,Bk);QH.prototype.init=function(a,l,m){Bk.prototype.init.call(this,a,l,m);a=!1;l.text&&(l=g.Lj(l.text),a=!g.Vk(l));a||g.nU(Error("No submit text was present in the renderer."))}; QH.prototype.onClick=function(a){this.publish("l");Bk.prototype.onClick.call(this,a)};g.W(t6,Wk); t6.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);if(a=l.skipOrPreviewRenderer)g.I(a,iy)?(a=g.I(a,iy),m=new N4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.j,!0),m.DK(this.skipOrPreview),m.init(dx("skip-button"),a,this.macros),g.w(this,m),this.T=m):g.I(a,kP)&&(a=g.I(a,kP),m=new g_(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.j,!1),m.DK(this.skipOrPreview),m.init(dx("ad-preview"),a,this.macros),m.lT.show(100),m.show(),g.w(this,m), this.T=m);this.T==null&&(a=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(l)),g.kt(a));l.submitButton&&(a=l.submitButton,g.I(a,g.nl)&&(a=g.I(a,g.nl),m=new QH(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),m.DK(this.submitButton),m.init(dx("survey-submit"),a,this.macros),g.w(this,m),this.L=m));if(a=l.adBadgeRenderer)a=g.I(a,RMd),m=new tw(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!0,!0,!0),m.DK(this.Z),m.init(dx("simple-ad-badge"), a,this.macros),this.adBadge=m.element,g.w(this,m);if(a=l.adDurationRemaining)a=g.I(a,rI9),m=new zD(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.j,void 0,!0),m.DK(this.Z),m.init(dx("ad-duration-remaining"),a,this.macros),g.w(this,m);(l=l.adInfoRenderer)&&g.I(l,B_)&&(a=new lG(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.element,void 0,!0),g.w(this,a),this.adBadge!==void 0?this.Z.insertBefore(a.element,this.adBadge.nextSibling):a.DK(this.Z),a.init(dx("ad-info-hover-text-button"), g.I(l,B_),this.macros));this.show()}; t6.prototype.clear=function(){this.hide()};g.W(ee,Wk);ee.prototype.init=function(a,l,m){Wk.prototype.init.call(this,a,l,m);Osz(this)}; ee.prototype.show=function(){this.Z=Date.now();Wk.prototype.show.call(this)}; ee.prototype.OR=function(){};g.W(KRd,ee);g.Z=KRd.prototype;g.Z.init=function(a,l,m){var T=this;ee.prototype.init.call(this,a,l,m);l.questionText&&t0b(this,l.questionText);l.answers&&l.answers.forEach(function(y,R){g.I(y,pk)&&e27(T,g.I(y,pk),m,R)}); this.C=new Set(this.L.map(function(y){return y.T.T})); (a=l.noneOfTheAbove)&&(a=g.I(a,l25))&&z23(this,a,m);l.surveyAdQuestionCommon&&h2b(this,l.surveyAdQuestionCommon);l.submitEndpoints&&(this.submitEndpoints=l.submitEndpoints);this.W(this.element,"change",this.onChange);this.show()}; g.Z.OR=function(){v0R(this,!1);this.j.L.subscribe("l",this.juN,this)}; g.Z.onChange=function(a){a.target===this.noneOfTheAbove.button.T?$kH(this):this.C.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),v0R(this,!0))}; g.Z.juN=function(){var a=[],l=this.L.reduce(function(y,R,H){var b=R.toggledLoggingParams;R.T&&R.T.isToggled()&&b&&(y.push(b),a.push(H));return y},[]).join("&"),m=this.submitEndpoints.map(function(y){if(!y.loggingUrls)return y; y=g.Tm(y);y.loggingUrls=y.loggingUrls.map(function(R){R.baseUrl&&(R.baseUrl=fF(R.baseUrl,l));return R}); return y}); if(m){m=g.c(m);for(var T=m.next();!T.done;T=m.next())T=T.value,this.layoutId?DW(this.Y8,T,this.layoutId,this.macros):g.kt(Error("Missing layoutId for multi_select_question."))}this.api.Y().V("supports_multi_step_on_desktop")&&this.lT(a)}; g.Z.clear=function(){this.api.Y().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.W(Fw,ee);Fw.prototype.init=function(a,l,m){var T=this;ee.prototype.init.call(this,a,l,m);l.questionText&&t0b(this,l.questionText);l.answers&&l.answers.forEach(function(y,R){g.I(y,pk)&&e27(T,g.I(y,pk),m,R)}); l.surveyAdQuestionCommon?h2b(this,l.surveyAdQuestionCommon):dC(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(l)));this.show()}; Fw.prototype.clear=function(){this.api.Y().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.W(h6,Wk);h6.prototype.init=function(a,l,m){var T=this;Wk.prototype.init.call(this,a,l,m);if(this.api.Y().V("supports_multi_step_on_desktop")){var y;this.conditioningRules=(y=l.conditioningRules)!=null?y:[];var R;this.L=(R=l.questions)!=null?R:[];var H;((H=l.questions)==null?0:H.length)&&JYH(this,0)}else(l.questions||[]).forEach(function(b){g.I(b,fl)?SGR(T,g.I(b,fl),m):g.I(b,S_)&&fbQ(T,g.I(b,S_),m)}); this.show()}; h6.prototype.clear=function(){this.api.Y().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; h6.prototype.j=function(a){var l=this;if(this.api.Y().V("supports_multi_step_on_desktop")){var m;if((m=this.conditioningRules)==null?0:m.length){var T;if(a.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(y){return y.questionIndex===l.T})==null)g.kt(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(y){if(y.questionIndex===l.T)switch(y.condition){case "CONDITION_ALL_OF":var R;if((R=y.answerIndices)==null?0:R.every(function(b){return a.includes(b)}))T=y.nextQuestionIndex; break;case "CONDITION_ANY_OF":var H;if((H=y.answerIndices)==null?0:H.some(function(b){return a.includes(b)}))T=y.nextQuestionIndex; break;default:g.kt(Error("Expected specified condition in survey conditioning rules."))}}),T!=null)JYH(this,T); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.kt(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.W(Og,Wk); Og.prototype.init=function(a,l,m){var T=this;Wk.prototype.init.call(this,a,l,m);a=l.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.kt(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(l.timeoutCommands)if(l.text)if(l.ctaButton&&g.I(l.ctaButton,g.nl))if(l.brandImage)if(l.backgroundImage&&g.I(l.backgroundImage,w2)&&g.I(l.backgroundImage,w2).landscape){this.layoutId||g.kt(Error("Missing layoutId for survey interstitial."));BIp(this.interstitial,g.I(l.backgroundImage, w2).landscape);BIp(this.logoImage,l.brandImage);g.bK(this.text,g.Lj(l.text));var y=["ytp-ad-survey-interstitial-action-button"];y.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Bk(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,y);g.w(this,this.actionButton);this.actionButton.DK(this.L);this.actionButton.init(dx("button"),g.I(l.ctaButton,g.nl),m);this.actionButton.show();this.T=new F1(this.api,a*1E3);this.T.subscribe("g",function(){T.transition.hide()}); g.w(this,this.T);this.W(this.element,"click",function(R){var H=R.target===T.interstitial;R=T.actionButton.element.contains(R.target);if(H||R)if(T.transition.hide(),H)T.api.onAdUxClicked(T.componentType,T.layoutId)}); this.transition.show(100)}else g.kt(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.kt(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.kt(Error("SurveyTextInterstitialRenderer has no button."));else g.kt(Error("SurveyTextInterstitialRenderer has no text."));else g.kt(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Og.prototype.clear=function(){this.hide()}; Og.prototype.show=function(){kTH(!0);Wk.prototype.show.call(this)}; Og.prototype.hide=function(){kTH(!1);Wk.prototype.hide.call(this)};g.W(KC,yu);g.Z=KC.prototype; g.Z.init=function(a,l){yu.prototype.init.call(this,a,l,{});if(l.durationMilliseconds){if(l.durationMilliseconds<0){g.kt(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+l.durationMilliseconds));return}this.L=l.durationMilliseconds}else this.L=this.T.oX();var m;if((m=l.previewText)==null||!m.text||g.Vk(l.previewText.text))g.kt(Error("No text is returned for AdPreview."));else{this.C=l.previewText;l.previewText.isTemplated||g.bK(this.Z,l.previewText.text);var T; if(((T=this.api.getVideoData(1))==null?0:T.cI)&&l.previewImage){var y,R;(a=((R=OI(((y=l.previewImage)==null?void 0:y.sources)||[],52,!1))==null?void 0:R.url)||"")&&a.length?(this.previewImage=new g.Z7({U:"img",S:"ytp-preview-ad__image",G:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.w(this,this.previewImage),this.previewImage.DK(this.element)):g.kt(Error("Failed to get imageUrl in AdPreview."))}else this.Z.classList.add("ytp-preview-ad__text--padding--wide")}}; g.Z.clear=function(){this.hide()}; g.Z.hide=function(){Hr(this);yu.prototype.hide.call(this)}; g.Z.show=function(){RE(this);yu.prototype.show.call(this)}; g.Z.b1=function(){this.hide()}; g.Z.YW=function(){if(this.T){var a=this.T.getProgressState();if(a!=null&&a.current)if(a=1E3*a.current,a>=this.L)this.transition.hide();else{var l;if((l=this.C)==null?0:l.isTemplated)if(l=Math.max(0,Math.ceil((this.L-a)/1E3)),l!==this.j){var m,T;(a=(m=this.C)==null?void 0:(T=m.text)==null?void 0:T.replace("{TIME_REMAINING}",String(l)))&&g.bK(this.Z,a);this.j=l}}}};g.W(z1,Wk); z1.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});var m,T;if((a=((T=OI(((m=l.image)==null?void 0:m.sources)||[],n07(l),!0))==null?void 0:T.url)||"")&&a.length){m=this.OL("ytp-ad-avatar");m.src=a;var y,R;if(T=(y=l.interaction)==null?void 0:(R=y.accessibility)==null?void 0:R.label)m.alt=T;switch(l.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(l.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.kt(Error("Failed to get imageUrl in AdAvatar."))}; z1.prototype.clear=function(){this.hide()}; z1.prototype.onClick=function(a){Wk.prototype.onClick.call(this,a)};g.W(vM,Wk); vM.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});var m;a=(m=l.label)==null?void 0:m.content;if((m=a!=null&&!g.Vk(a))||l.iconImage){m&&(this.buttonText=new g.Z7({U:"span",S:"ytp-ad-button-vm__text",Lx:a}),g.w(this,this.buttonText),this.buttonText.DK(this.element));var T,y,R=((T=l.interaction)==null?0:(y=T.accessibility)==null?0:y.label)||m?a:"";R&&Y$(this.element,R+" This link opens in new tab");x$(this.element);if(l.iconImage){T=void 0;if(l.iconImage){a:{y=l.iconImage;if(y.sources)for(y= g.c(y.sources),a=y.next();!a.done;a=y.next())if(a=a.value,R=void 0,(R=a.clientResource)==null?0:R.imageName){y=a;break a}y=void 0}if(y){var H;T={iconType:(H=y.clientResource)==null?void 0:H.imageName}}}H=Jj(T,!1,this.L);H!=null&&(this.buttonIcon=new g.Z7({U:"span",S:"ytp-ad-button-vm__icon",X:[H]}),g.w(this,this.buttonIcon),l.iconLeading?(Rj(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):m?(this.buttonIcon.DK(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.DK(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(l.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.T?"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(l.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.nU(Error("AdButton does not have label or an icon."))}; vM.prototype.clear=function(){this.hide()}; vM.prototype.onClick=function(a){Wk.prototype.onClick.call(this,a)};g.W(wh7,yu);g.Z=wh7.prototype; g.Z.init=function(a,l){yu.prototype.init.call(this,a,l,{});this.api.Y().V("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.OL("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"),Rj(this.OL("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.I(l.avatar,wv)){var m=l.headline;if(m){var T=l.description;if(T){var y=g.I(l.button,CC);y?(this.adAvatar.init(dx("ad-avatar"),a),this.headline.init(dx("ad-simple-attributed-string"),new $f(m)),this.description.init(dx("ad-simple-attributed-string"),new $f(T)),m.content&&m.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(dx("ad-button"),y),this.startMilliseconds=l.startMs||0,this.api.MR()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.WH.bind(this)),RE(this)):g.kt(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kt(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kt(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kt(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.Z.YW=function(){if(this.T){var a=this.T.getProgressState();a&&a.current&&1E3*a.current>=this.startMilliseconds&&(Hr(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.Z.b1=function(){this.clear()}; g.Z.onClick=function(a){this.api.pauseVideo();yu.prototype.onClick.call(this,a)}; g.Z.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.WH.bind(this))}; g.Z.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();yu.prototype.show.call(this)}; g.Z.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();yu.prototype.hide.call(this)}; g.Z.WH=function(a){a==="hidden"?this.show():this.hide()};g.W($h,Wk);g.Z=$h.prototype; g.Z.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(!l.label||g.Vk(l.label))g.kt(Error("No label is returned for SkipAdButton."));else if(g.bK(this.j,l.label),a=Jj({iconType:"SKIP_NEXT_NEW"}),a==null)g.kt(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Z=new g.Z7({U:"span",S:"ytp-skip-ad-button__icon",X:[a]}),g.w(this,this.Z),this.Z.DK(this.element),this.api.Y().experiments.XO("enable_skip_to_next_messaging")&&(l=g.W6(l.targetId)))this.L=!0,this.element.setAttribute("data-tooltip-target-id",l), this.element.setAttribute("data-tooltip-target-fixed","")}; g.Z.onClick=function(a){a&&a.preventDefault();var l,m;Dr5(a,{contentCpn:(m=(l=this.api.getVideoData(1))==null?void 0:l.clientPlaybackNonce)!=null?m:""})===0?this.api.Pz("onAbnormalityDetected"):(Wk.prototype.onClick.call(this,a),this.api.Pz("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.Z.clear=function(){this.T.reset();this.hide()}; g.Z.hide=function(){Wk.prototype.hide.call(this)}; g.Z.show=function(){this.T.start();Wk.prototype.show.call(this);this.L&&this.api.Y().experiments.XO("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.W(IbP,yu);g.Z=IbP.prototype; g.Z.init=function(a,l){yu.prototype.init.call(this,a,l,{});a=g.I(l.preskipState,A05);var m;if((m=this.api.getVideoData())==null?0:m.isDaiEnabled()){if(!a){g.kt(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.L=new KC(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.T);g.w(this,this.L);this.L.DK(this.element);var T;(T=this.L)==null||T.init(dx("preview-ad"),a);(m=this.L)!=null&&(m.transition.show(100),m.show())}(m=g.I(l.skippableState,Gm5))?(l.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=l.skipOffsetMilliseconds:(g.nU(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Z.init(dx("skip-button"),m),this.show()):g.kt(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.Z.show=function(){RE(this);yu.prototype.show.call(this)}; g.Z.hide=function(){!this.isSkippable&&this.L?this.L.hide():this.Z&&this.Z.hide();Hr(this);yu.prototype.hide.call(this)}; g.Z.clear=function(){var a;(a=this.L)==null||a.clear();this.Z&&this.Z.clear();Hr(this);yu.prototype.hide.call(this)}; g.Z.b1=function(){this.hide()}; g.Z.YW=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;(a=this.L)!=null&&a.transition.hide();(a=this.Z)!=null&&(a.transition.show(),a.show())}};g.W(sg,Wk); sg.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(l.label){var m;((m=l.label)==null?0:m.content)&&!g.Vk(l.label.content)&&(this.linkText=new g.Z7({U:"span",S:"ytp-visit-advertiser-link__text",Lx:l.label.content}),g.w(this,this.linkText),this.linkText.DK(this.element));var T,y;if((T=l.interaction)==null?0:(y=T.accessibility)==null?0:y.label)Y$(this.element,l.interaction.accessibility.label+" This link opens in new tab");else{var R;((R=l.label)==null?0:R.content)&&!g.Vk(l.label.content)&&Y$(this.element, l.label.content+" This link opens in new tab")}x$(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.kt(Error("No label found in VisitAdvertiserLink."))}; sg.prototype.onClick=function(a){Wk.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; sg.prototype.clear=function(){this.hide()};g.W(Se,Wk); Se.prototype.init=function(a,l,m,T){Wk.prototype.init.call(this,a,l,{});if(l.skipOrPreview){m=l.skipOrPreview;a=g.I(m,VjD);m=g.I(m,A05);if(a)this.xE=new IbP(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.L),g.w(this,this.xE),this.xE.DK(this.N),this.xE.init(dx("skip-ad"),a);else{var y;m&&((y=this.api.getVideoData())==null?0:y.isDaiEnabled())&&(this.j=new KC(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.L,1),g.w(this,this.j),this.j.DK(this.N),this.j.init(dx("ad-preview"), m),y=this.j,y.transition.show(100),y.show())}if(y=g.I(l.skipOrPreview,VjD))var R=y.skipOffsetMilliseconds}l.playerAdCard&&(y=g.I(l.playerAdCard,P5V))&&(this.playerAdCard=new wh7(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.L),g.w(this,this.playerAdCard),this.playerAdCard.DK(this.hM),this.playerAdCard.init(dx("ad-avatar-lockup-card"),y));l.adBadgeRenderer&&((y=g.I(l.adBadgeRenderer,IF))?(this.Z=new SI(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!0),g.w(this, this.Z),this.Z.DK(this.T),this.Z.init(dx("ad-badge"),y)):g.kt(Error("AdBadgeViewModel is not found in player overlay layout.")));l.adPodIndex&&(y=g.I(l.adPodIndex,Mjn))&&(this.adPodIndex=new fu(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.adPodIndex),this.adPodIndex.DK(this.T),this.adPodIndex.init(dx("ad-pod-index"),y));l.adInfoRenderer&&((y=g.I(l.adInfoRenderer,B_))?(this.adInfoButton=new lG(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.element, void 0,!0),g.w(this,this.adInfoButton),this.Z!==void 0?this.T.insertBefore(this.adInfoButton.element,this.Z.element.nextSibling):this.adInfoButton.DK(this.T),this.adInfoButton.init(dx("ad-info-hover-text-button"),y,this.macros)):g.nU(Error("AdInfoRenderer is not found in player overlay layout.")));var H;y=(H=this.api.getVideoData())==null?void 0:H.isDaiEnabled();l.adDurationRemaining&&y&&(H=g.I(l.adDurationRemaining,rI9))&&(this.adDurationRemaining=new zD(this.api,this.layoutId,this.interactionLoggingClientData, this.Y8,this.L,T.videoAdDurationSeconds,!0),g.w(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.DK(this.T),this.adDurationRemaining.init(dx("ad-duration-remaining"),H,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));l.visitAdvertiserLink&&(T=g.I(l.visitAdvertiserLink,Zcg))&&(this.visitAdvertiserLink=new sg(this.api,this.layoutId, this.interactionLoggingClientData,this.Y8),g.w(this,this.visitAdvertiserLink),this.visitAdvertiserLink.DK(this.T),this.visitAdvertiserLink.init(dx("visit-advertiser-link"),T));l.adDisclosureBanner&&(l=g.I(l.adDisclosureBanner,g__))&&(this.adDisclosureBanner=new Jw(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.adDisclosureBanner),this.adDisclosureBanner.DK(this.lT),this.adDisclosureBanner.init(dx("ad-disclosure-banner"),l));this.C=new nu(this.api,this.L,R,!0);g.w(this, this.C);g.fq(this.api,this.C.element,4);this.show()}; Se.prototype.clear=function(){this.hide()};g.W(Cx3,Wk);g.Z=Cx3.prototype; g.Z.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(l!=null&&l.title)if(a=l.title)if(this.headline.init(dx("ad-simple-attributed-string"),new $f(a)),a=g.I(l.moreInfoButton,CC)){if(this.moreInfoButton.init(dx("ad-button"),a),l.descriptions)l.descriptions.length>0&&(a=l.descriptions[0])&&(this.T=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.T),this.T.DK(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(dx("ad-simple-attributed-string"), new $f(a))),l.descriptions.length>1&&(l=l.descriptions[1])&&(this.L=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.L),this.L.DK(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.L.init(dx("ad-simple-attributed-string"),new $f(l)))}else g.kt(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.kt(Error("No headline found in AdGridCardText."));else g.kt(Error("No headline found in AdGridCardText."))}; g.Z.onClick=function(a){Wk.prototype.onClick.call(this,a);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Z.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var a;(a=this.T)==null||a.clear();var l;(l=this.L)==null||l.clear()}; g.Z.hide=function(){this.headline.hide();this.moreInfoButton.hide();var a;(a=this.T)==null||a.hide();var l;(l=this.L)==null||l.hide();Wk.prototype.hide.call(this)}; g.Z.show=function(){Wk.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var a;(a=this.T)==null||a.show();var l;(l=this.L)==null||l.show()};g.W(fC,Wk);fC.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(l!=null&&l.gridCards)if(l.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.kt(Error("Only single column style is currently supported in AdGridCardCollection."));else for(a=g.c(l.gridCards),l=a.next();!l.done;l=a.next()){if(l=g.I(l.value,jV9)){var m=new Cx3(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,m);m.DK(this.element);m.init(dx("ad-grid-card-text"),l);this.T.push(m)}}else g.kt(Error("No grid cards found in AdGridCardCollection."))}; fC.prototype.show=function(){for(var a=g.c(this.T),l=a.next();!l.done;l=a.next())l.value.show();Wk.prototype.show.call(this)}; fC.prototype.clear=function(){this.hide();for(var a=g.c(this.T),l=a.next();!l.done;l=a.next())l.value.clear()}; fC.prototype.hide=function(){for(var a=g.c(this.T),l=a.next();!l.done;l=a.next())l.value.hide();Wk.prototype.hide.call(this)};g.W(J6,yu);g.Z=J6.prototype;g.Z.init=function(a,l,m,T,y){y=y===void 0?0:y;yu.prototype.init.call(this,a,l,m,T);this.playerProgressOffsetMs=y;RE(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.z9.bind(this));this.api.addEventListener("resize",this.JZ.bind(this));this.api.MR()?(this.L=!0,this.api.Ni(!0),this.show()):this.hide()}; g.Z.YW=function(){if(this.T){var a=this.T.getProgressState();a&&a.current&&!this.L&&1E3*a.current>=this.playerProgressOffsetMs&&(this.L=!0,this.api.Ni(!0),this.show())}}; g.Z.b1=function(){this.L&&this.api.Ni(!1);this.hide()}; g.Z.clear=function(){this.api.Ni(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.z9.bind(this));this.api.removeEventListener("resize",this.JZ.bind(this));Hr(this);this.hide()}; g.Z.hide=function(){E0t(!1);yu.prototype.hide.call(this)}; g.Z.show=function(){E0t(!0);yu.prototype.show.call(this)};g.W(o0z,J6);g.Z=o0z.prototype; g.Z.init=function(a,l,m,T){if(l!=null&&l.adGridCardCollection)if(l!=null&&l.adButton){var y=Number(l.playerProgressOffsetMs||"0");isNaN(y)?J6.prototype.init.call(this,a,l,m,T):J6.prototype.init.call(this,a,l,m,T,y);a=l.headline;m=g.I(l.adAvatar,wv);a&&m?(this.headline=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.headline),this.headline.DK(this.OL("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(dx("ad-simple-attributed-string"),new $f(a)), this.adAvatar=new z1(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.adAvatar),this.adAvatar.DK(this.OL("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(dx("ad-avatar"),m)):this.j.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");a=g.I(l.adGridCardCollection,djg);this.adGridCardCollection.init(dx("ad-grid-card-collection"),a);l=g.I(l.adButton,CC);this.adButton.init(dx("ad-button"),l); this.hide()}else g.kt(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.kt(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.Z.onClick=function(a){(this.adButton&&g.qw(this.adButton.element,a.target)||this.adAvatar&&g.qw(this.adAvatar.element,a.target))&&this.api.pauseVideo();J6.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Z.JZ=function(){}; g.Z.clear=function(){this.hide();var a;(a=this.headline)==null||a.clear();var l;(l=this.adAvatar)==null||l.clear();this.adGridCardCollection.clear();this.adButton.clear();J6.prototype.clear.call(this)}; g.Z.show=function(){var a;(a=this.headline)==null||a.show();var l;(l=this.adAvatar)==null||l.show();this.adGridCardCollection.show();this.adButton.show();J6.prototype.show.call(this)}; g.Z.hide=function(){var a;(a=this.headline)==null||a.hide();var l;(l=this.adAvatar)==null||l.hide();this.adGridCardCollection.hide();this.adButton.hide();J6.prototype.hide.call(this)}; g.Z.z9=function(a){a==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))};g.W(BM,Wk); BM.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(l.attributes===void 0)g.kt(Error("No attributes found in AdDetailsLineViewModel."));else if(l.style===void 0)g.kt(Error("No style found in AdDetailsLineViewModel."));else{a=g.c(l.attributes);for(var m=a.next();!m.done;m=a.next())if(m=m.value,m.text!==void 0){m=m.text;var T=l.style,y=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,y);y.DK(this.element);a:switch(T){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":T="ytp-ad-details-line__text--style-responsive"; break a;default:T="ytp-ad-details-line__text--style-standard"}y.element.classList.add(T);y.init(dx("ad-simple-attributed-string"),new $f(m));this.T.push(y)}this.show()}}; BM.prototype.show=function(){this.T.forEach(function(a){a.show()}); Wk.prototype.show.call(this)}; BM.prototype.clear=function(){this.hide()}; BM.prototype.hide=function(){this.T.forEach(function(a){a.hide()}); Wk.prototype.hide.call(this)};g.W(kh,Wk);kh.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});var m,T;(a=((T=OI(((m=l.image)==null?void 0:m.sources)||[]))==null?void 0:T.url)||"")&&a.length?(m=this.OL("ytp-image-background-image"),g.nA(m,"backgroundImage","url("+a+")"),l.blurLevel!==void 0&&g.nA(m,"filter","blur("+l.blurLevel+"px)"),l.gradient!==void 0&&(l=new g.x({U:"div",uT:["ytp-image-background--gradient-vertical"]}),g.w(this,l),l.DK(this.element)),this.show()):g.kt(Error("Failed to get imageUrl in ImageBackground."))}; kh.prototype.clear=function(){this.hide()};g.W(xkP,yu);g.Z=xkP.prototype;g.Z.init=function(a,l){yu.prototype.init.call(this,a,l,{});g.nA(this.Z,"stroke-dasharray","0 "+this.L);this.show()}; g.Z.clear=function(){this.hide()}; g.Z.hide=function(){Hr(this);yu.prototype.hide.call(this)}; g.Z.show=function(){RE(this);yu.prototype.show.call(this)}; g.Z.b1=function(){this.hide()}; g.Z.YW=function(){if(this.T){var a=this.T.getProgressState();a!=null&&a.current!=null&&g.nA(this.Z,"stroke-dasharray",a.current/a.seekableEnd*this.L+" "+this.L)}};g.W(nC,Wk); nC.prototype.init=function(a,l){Wk.prototype.init.call(this,a,l,{});if(uv3(l)){this.adAvatar=new z1(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.adAvatar);this.adAvatar.DK(this.OL("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(dx("ad-avatar"),g.I(l.adAvatar,wv));this.headline=new s6(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8);g.w(this,this.headline);this.headline.DK(this.OL("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); this.headline.init(dx("ad-simple-attributed-string"),new $f(l.headline));if(a=g.I(l.adDetailsLine,bcs))this.detailsLine=new BM(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.detailsLine),this.detailsLine.DK(this.OL("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(dx("ad-details-line"),a);this.adButton=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!0);g.w(this,this.adButton); this.adButton.DK(this.OL("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(dx("ad-button"),g.I(l.adButton,CC));this.adBadge=new SI(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,!0);g.w(this,this.adBadge);this.adBadge.DK(this.j);this.adBadge.init(dx("ad-badge"),g.I(l.adBadge,IF));this.adInfoButton=new lG(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.element,void 0,!0);g.w(this,this.adInfoButton);this.adInfoButton.DK(this.j); this.adInfoButton.init(dx("ad-info-hover-text-button"),g.I(l.adInfoRenderer,B_),this.macros);if(a=g.I(l.skipAdButton,Gm5))this.skipAdButton=new $h(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.skipAdButton),this.skipAdButton.DK(this.element),this.skipAdButton.init(dx("skip-button"),a);this.L=new hw(l.durationMilliseconds);g.w(this,this.L);if(a=g.I(l.countdownViewModel,p25))this.T=new xkP(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8,this.L),g.w(this, this.T),this.T.DK(this.OL("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(dx("timed-pie-countdown"),a);if(l=g.I(l.imageBackground,icg))this.imageBackground=new kh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y8),g.w(this,this.imageBackground),this.imageBackground.DK(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(dx("image-background"), l);this.show();this.element.focus()}}; nC.prototype.clear=function(){g.$H(this.Z);this.hide()}; nC.prototype.show=function(){Dk5(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Wk.prototype.show.call(this)}; nC.prototype.hide=function(){Dk5(!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.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();Wk.prototype.hide.call(this)};g.W(Eg,g.Aj);g.Z=Eg.prototype;g.Z.oX=function(){return 1E3*this.api.getDuration(this.Bd,!1)}; g.Z.stop=function(){this.T&&this.Gq.DT(this.T)}; g.Z.ex=function(){var a=this.api.getProgressState(this.Bd);this.L={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Bd,!1)};this.publish("h")}; g.Z.getProgressState=function(){return this.L}; g.Z.HW=function(a){g.Wr(a,2)&&this.publish("g")};var EX_="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.W(oF,Xf); oF.prototype.j=function(a){var l=a.id,m=a.content,T=m.componentType;if(!EX_.includes(T))switch(a.actionType){case 1:a=this.api;var y=this.Y8,R=m.layoutId,H=m.interactionLoggingClientData,b=m instanceof XM?m.mU:!1,M=m instanceof XM||m instanceof eI?m.H8:!1;H=H===void 0?{}:H;b=b===void 0?!1:b;M=M===void 0?!1:M;switch(T){case "invideo-overlay":a=new dkP(a,R,H,y);break;case "player-overlay":a=new w_(a,R,H,y,new Eg(a),M);break;case "player-overlay-layout":a=new Se(a,R,H,y,new Eg(a));break;case "survey":a= new h6(a,R,H,y);break;case "ad-action-interstitial":a=new qG7(a,R,H,y,b,M);break;case "video-interstitial-buttoned-centered":a=new nC(a,R,H,y);break;case "survey-interstitial":a=new Og(a,R,H,y);break;case "ad-message":a=new WR7(a,R,H,y,new Eg(a,1));break;case "player-underlay":a=new LRl(a,R,H,y);break;case "display-underlay-text-grid-cards":a=new o0z(a,R,H,y,new Eg(a));break;default:a=null}if(!a){g.nU(Error("No UI component returned from ComponentFactory for type: "+T));break}g.X_(this.L,l)?g.nU(Error("Ad UI component already registered: "+ l)):this.L[l]=a;a.bind(m);m instanceof Dd?this.Z?this.Z.append(a.zv):g.nU(Error("Underlay view was not created but UnderlayRenderer was created")):this.K.append(a.zv);break;case 2:l=Xhb(this,a);if(l==null)break;l.bind(m);break;case 3:m=Xhb(this,a),m!=null&&(g.Go(m),g.X_(this.L,l)?(m=this.L,l in m&&delete m[l]):g.nU(Error("Ad UI component does not exist: "+l)))}}; oF.prototype.sL=function(){g.VL(Object.values(this.L));this.L={};Xf.prototype.sL.call(this)};g.W(YGl,g.P3);g.Z=YGl.prototype;g.Z.create=function(){try{Ukw(this),this.load(),this.created=!0,Ukw(this)}catch(a){Vu(a instanceof Error?a:String(a))}}; g.Z.load=function(){try{lRs(this)}finally{Xs(WM(this.T).qs)&&this.player.IY("ad",1)}}; g.Z.destroy=function(){var a=this.player.getVideoData(1);this.T.T.ZC.xF(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.Z.unload=function(){g.P3.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(l){Vu(l instanceof Error?l:String(l))}if(this.L!=null){var a=this.L;this.L=null;a.dispose()}this.Z.reset()}; g.Z.fl=function(){return!1}; g.Z.getAdState=function(){return-1}; g.Z.getOptions=function(){return Object.values(CKc)}; g.Z.N6=function(a,l){l=l===void 0?{}:l;switch(a){case "replaceUrlMacros":return a=l,a.url?(l=GFd(this.player),Object.assign(l,a.Btj),a=g.fG(a.url,l)):a=null,a;case "onAboutThisAdPopupClosed":this.J6(l);break;case "executeCommand":a=l;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; g.Z.dc=function(a){var l;return!((l=this.T.T.Ru)==null||!l.get().dc(a))}; g.Z.J6=function(a){a.isMuted&&dxd(WM(this.T).bu,WM(this.T).lA,a.layoutId);this.UB&&this.UB.J6()}; g.Z.executeCommand=function(a){WM(this.T).Y8.executeCommand(a.command,a.layoutId)};g.Xt("yt.player.Application.create",g.Pu.create);g.Xt("yt.player.Application.createAlternate",g.Pu.create);zP7(SE(),INs);var oX_=g.Yl("ytcsi.tick");oX_&&oX_("pe");g.AO("ad",YGl);g.W(g.uI,g.k);g.uI.prototype.start=function(a,l,m){this.config={from:a,to:l,duration:m,startTime:(0,g.E)()};this.next()}; g.uI.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.uI.prototype.next=function(){if(this.config){var a=this.config,l=a.from,m=a.to,T=a.duration;a=a.startTime;var y=(0,g.E)()-a;a=this.T;T=BXP(a,y/T);if(T==0)a=a.B;else if(T==1)a=a.J;else{y=v6(a.B,a.K,T);var R=v6(a.K,a.C,T);a=v6(a.C,a.J,T);y=v6(y,R,T);R=v6(R,a,T);a=v6(y,R,T)}a=g.Km(a,0,1);this.callback(l+(m-l)*a);a<1&&this.delay.start()}};g.W(g.Xw,g.x);g.Z=g.Xw.prototype;g.Z.hasSuggestions=function(){return this.suggestionData.length>0}; g.Z.dM=function(){this.L&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.Z.show=function(){g.x.prototype.show.call(this);qQ5(this)}; g.Z.XG=function(){this.L&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.Z.jw=function(){this.Mt(this.api.cz().getPlayerSize())}; g.Z.Mt=function(a){var l=this.api.isEmbedsShortsMode()?.5625:16/9,m=this.api.hp();a=a.width-(m?112:58);m=Math.ceil(a/(m?320:192));var T=(a-m*8)/m;l=Math.floor(T/l);for(var y=g.c(this.T),R=y.next();!R.done;R=y.next())R=R.value.OL("ytp-suggestion-image"),R.style.width=T+"px",R.style.height=l+"px";this.suggestions.element.style.height=l+"px";this.j=T;this.J=l;this.containerWidth=a;this.columns=m;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Yh(this)}; g.Z.onVideoDataChange=function(){var a=this.api.Y(),l=g.B(this.api.getVideoData());this.C=l.Rh?!1:a.j;this.suggestionData=l.suggestions?g.BN(l.suggestions,function(m){return m&&!m.playlistId}):[]; gl_(this);l.Rh?this.title.update({title:g.ph("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:l.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}; g.Z.scrollTo=function(a){a=g.Km(a,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.B.start(this.scrollPosition,a,1E3);this.scrollPosition=a;g.Yh(this);qQ5(this)};})(_yt_player);